diff --git a/packages/lesspass-pure/dist/lesspass.min.js b/packages/lesspass-pure/dist/lesspass.min.js index 88191d0..c689313 100644 --- a/packages/lesspass-pure/dist/lesspass.min.js +++ b/packages/lesspass-pure/dist/lesspass.min.js @@ -17,4 +17,4 @@ var r=Object.freeze({});function o(t){return null==t}function i(t){return null!= * @author Feross Aboukhadijeh * @license MIT */ -t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e,n){"use strict";var r=n(1),o=n(20),i=n(48),s=n(49),a=n(26);function u(t){this.defaults=t,this.interceptors={request:new i,response:new i}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method=t.method?t.method.toLowerCase():"get";var e=[s,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=a(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(t){u.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}}),r.forEach(["post","put","patch"],function(t){u.prototype[t]=function(e,n,o){return this.request(r.merge(o||{},{method:t,url:e,data:n}))}}),t.exports=u},function(t,e,n){"use strict";var r=n(1);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=o},function(t,e,n){"use strict";var r=n(1),o=n(50),i=n(21),s=n(22),a=n(57),u=n(58);function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return c(t),t.baseURL&&!a(t.url)&&(t.url=u(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||s.adapter)(t).then(function(e){return c(t),e.data=o(e.data,e.headers,t.transformResponse),e},function(e){return i(e)||(c(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,n){"use strict";var r=n(1);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){"use strict";var r=n(1);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";var r=n(25);t.exports=function(t,e,n){var o=n.config.validateStatus;!o||o(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(1),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,s={};return t?(r.forEach(t.split("\n"),function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(s[e]&&o.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}}),s):s}},function(t,e,n){"use strict";var r=n(1);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(1);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,s){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(27);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new r(t),e(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o(function(e){t=e}),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(62),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(5))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o,i,s,a,u=1,c={},l=!1,f=t.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(t);p=p&&p.setTimeout?p:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick(function(){h(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){h(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):r=function(t){setTimeout(h,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&h(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),r=function(e){t.postMessage(s+e,"*")}),p.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;nwindow.crypto.subtle.sign({name:"HMAC"},t,r(n||"")).then(t=>o(t)))}},function(t,e,n){const r=n(68);function o(t,e){const{site:n,login:o,options:i,crypto:s}=t,{counter:a}=i||{counter:1},u=n+o+a.toString(16),{iterations:c,keylen:l,digest:f}=s||{iterations:1e5,keylen:32,digest:"sha256"};return r(e,u,c,l,f)}t.exports={isSupported:function(){try{return o({site:"lesspass.com",login:"♥",options:{uppercase:!0,lowercase:!0,digits:!0,symbols:!0,length:16,counter:1},crypto:{method:"pbkdf2",iterations:1,keylen:32,digest:"sha256"}},"tHis is a g00d! password").then(t=>"e99e20abab609cc4564ef137acb540de20d9b92dcc5cda58f78ba431444ef2da"===t?Promise.resolve(!0):Promise.resolve(!1))}catch(t){return Promise.resolve(!1)}},calcEntropy:o}},function(t,e,n){const{stringToArrayBuffer:r,arrayBufferToHex:o,getAlgorithm:i}=n(28);t.exports=function(t,e,n,s,a){return window.crypto.subtle.importKey("raw",r(t),"PBKDF2",!1,["deriveKey"]).then(t=>{const o={name:"PBKDF2",salt:r(e),iterations:n,hash:i(a)};return window.crypto.subtle.deriveKey(o,t,{name:"AES-CTR",length:8*s},!0,["encrypt","decrypt"])}).then(t=>window.crypto.subtle.exportKey("raw",t).then(t=>o(t)))}},function(t,e,n){const r=n(70),o=n(71),{consumeEntropy:i}=n(29);t.exports={renderPassword:function(t,e){const n=o.getRules(e),s=o.getSetOfCharacters(n),a=i("",r(t,16),s,e.length-n.length),u=o.getOneCharPerRule(a.entropy,n);return o.insertStringPseudoRandomly(a.value,u.entropy,u.value)}}},function(t,e,n){(function(t){var n,r=function(t){"use strict";var e=1e7,n=7,o=9007199254740992,i=f(o),s=Math.log(o);function a(t,e){return void 0===t?a[0]:void 0!==e?10==+e?G(t):U(t,e):G(t)}function u(t,e){this.value=t,this.sign=e,this.isSmall=!1}function c(t){this.value=t,this.sign=t<0,this.isSmall=!0}function l(t){return-o0?Math.floor(t):Math.ceil(t)}function m(t,n){var r,o,i=t.length,s=n.length,a=new Array(i),u=0,c=e;for(o=0;o=c?1:0,a[o]=r-u*c;for(;o0&&a.push(u),a}function g(t,e){return t.length>=e.length?m(t,e):m(e,t)}function y(t,n){var r,o,i=t.length,s=new Array(i),a=e;for(o=0;o0;)s[o++]=n%a,n=Math.floor(n/a);return s}function b(t,n){var r,o,i=t.length,s=n.length,a=new Array(i),u=0,c=e;for(r=0;r0;)s[o++]=u%a,u=Math.floor(u/a);return s}function P(t,e){for(var n=[];e-- >0;)n.push(0);return n.concat(t)}function x(t,n,r){return new u(t=0;--r)i=(s=i*c+t[r])-(o=v(s/n))*n,u[r]=0|o;return[u,0|i]}function E(t,n){var r,o,i=G(n),s=t.value,l=i.value;if(0===l)throw new Error("Cannot divide by zero");if(t.isSmall)return i.isSmall?[new c(v(s/l)),new c(s%l)]:[a[0],t];if(i.isSmall){if(1===l)return[t,a[0]];if(-1==l)return[t.negate(),a[0]];var m=Math.abs(l);if(m=0;o--){for(r=d-1,y[o+f]!==m&&(r=Math.floor((y[o+f]*d+y[o+f-1])/m)),i=0,s=0,u=b.length,a=0;ac&&(i=(i+1)*h),r=Math.ceil(i/s);do{if(k(a=C(n,r),f)<=0)break;r--}while(r);l.push(r),f=b(f,a)}return l.reverse(),[p(l),p(f)]}(s,l))[0];var w=t.sign!==i.sign,_=r[1],P=t.sign;return"number"==typeof o?(w&&(o=-o),o=new c(o)):o=new u(o,w),"number"==typeof _?(P&&(_=-_),_=new c(_)):_=new u(_,P),[o,_]}function k(t,e){if(t.length!==e.length)return t.length>e.length?1:-1;for(var n=t.length-1;n>=0;n--)if(t[n]!==e[n])return t[n]>e[n]?1:-1;return 0}function A(t){var e=t.abs();return!e.isUnit()&&(!!(e.equals(2)||e.equals(3)||e.equals(5))||!(e.isEven()||e.isDivisibleBy(3)||e.isDivisibleBy(5))&&(!!e.lesser(25)||void 0))}u.prototype=Object.create(a.prototype),c.prototype=Object.create(a.prototype),u.prototype.add=function(t){var e=G(t);if(this.sign!==e.sign)return this.subtract(e.negate());var n=this.value,r=e.value;return e.isSmall?new u(y(n,Math.abs(r)),this.sign):new u(g(n,r),this.sign)},u.prototype.plus=u.prototype.add,c.prototype.add=function(t){var e=G(t),n=this.value;if(n<0!==e.sign)return this.subtract(e.negate());var r=e.value;if(e.isSmall){if(l(n+r))return new c(n+r);r=f(Math.abs(r))}return new u(y(r,Math.abs(n)),n<0)},c.prototype.plus=c.prototype.add,u.prototype.subtract=function(t){var e=G(t);if(this.sign!==e.sign)return this.add(e.negate());var n=this.value,r=e.value;return e.isSmall?w(n,Math.abs(r),this.sign):function(t,e,n){var r;return k(t,e)>=0?r=b(t,e):(r=b(e,t),n=!n),"number"==typeof(r=p(r))?(n&&(r=-r),new c(r)):new u(r,n)}(n,r,this.sign)},u.prototype.minus=u.prototype.subtract,c.prototype.subtract=function(t){var e=G(t),n=this.value;if(n<0!==e.sign)return this.add(e.negate());var r=e.value;return e.isSmall?new c(n-r):w(r,Math.abs(n),n>=0)},c.prototype.minus=c.prototype.subtract,u.prototype.negate=function(){return new u(this.value,!this.sign)},c.prototype.negate=function(){var t=this.sign,e=new c(-this.value);return e.sign=!t,e},u.prototype.abs=function(){return new u(this.value,!1)},c.prototype.abs=function(){return new c(Math.abs(this.value))},u.prototype.multiply=function(t){var n,r,o,i=G(t),s=this.value,c=i.value,l=this.sign!==i.sign;if(i.isSmall){if(0===c)return a[0];if(1===c)return this;if(-1===c)return this.negate();if((n=Math.abs(c))0?function t(e,n){var r=Math.max(e.length,n.length);if(r<=30)return _(e,n);r=Math.ceil(r/2);var o=e.slice(r),i=e.slice(0,r),s=n.slice(r),a=n.slice(0,r),u=t(i,a),c=t(o,s),l=t(g(i,o),g(a,s)),f=g(g(u,P(b(b(l,u),c),r)),P(c,2*r));return d(f),f}(s,c):_(s,c),l)},u.prototype.times=u.prototype.multiply,c.prototype._multiplyBySmall=function(t){return l(t.value*this.value)?new c(t.value*this.value):x(Math.abs(t.value),f(Math.abs(this.value)),this.sign!==t.sign)},u.prototype._multiplyBySmall=function(t){return 0===t.value?a[0]:1===t.value?this:-1===t.value?this.negate():x(Math.abs(t.value),this.value,this.sign!==t.sign)},c.prototype.multiply=function(t){return G(t)._multiplyBySmall(this)},c.prototype.times=c.prototype.multiply,u.prototype.square=function(){return new u(S(this.value),!1)},c.prototype.square=function(){var t=this.value*this.value;return l(t)?new c(t):new u(S(f(Math.abs(this.value))),!1)},u.prototype.divmod=function(t){var e=E(this,t);return{quotient:e[0],remainder:e[1]}},c.prototype.divmod=u.prototype.divmod,u.prototype.divide=function(t){return E(this,t)[0]},c.prototype.over=c.prototype.divide=u.prototype.over=u.prototype.divide,u.prototype.mod=function(t){return E(this,t)[1]},c.prototype.remainder=c.prototype.mod=u.prototype.remainder=u.prototype.mod,u.prototype.pow=function(t){var e,n,r,o=G(t),i=this.value,s=o.value;if(0===s)return a[1];if(0===i)return a[0];if(1===i)return a[1];if(-1===i)return o.isEven()?a[1]:a[-1];if(o.sign)return a[0];if(!o.isSmall)throw new Error("The exponent "+o.toString()+" is too large.");if(this.isSmall&&l(e=Math.pow(i,s)))return new c(v(e));for(n=this,r=a[1];!0&s&&(r=r.times(n),--s),0!==s;)s/=2,n=n.square();return r},c.prototype.pow=u.prototype.pow,u.prototype.modPow=function(t,e){if(t=G(t),(e=G(e)).isZero())throw new Error("Cannot take modPow with modulus 0");for(var n=a[1],r=this.mod(e);t.isPositive();){if(r.isZero())return a[0];t.isOdd()&&(n=n.multiply(r).mod(e)),t=t.divide(2),r=r.square().mod(e)}return n},c.prototype.modPow=u.prototype.modPow,u.prototype.compareAbs=function(t){var e=G(t),n=this.value,r=e.value;return e.isSmall?1:k(n,r)},c.prototype.compareAbs=function(t){var e=G(t),n=Math.abs(this.value),r=e.value;return e.isSmall?n===(r=Math.abs(r))?0:n>r?1:-1:-1},u.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=G(t),n=this.value,r=e.value;return this.sign!==e.sign?e.sign?1:-1:e.isSmall?this.sign?-1:1:k(n,r)*(this.sign?-1:1)},u.prototype.compareTo=u.prototype.compare,c.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=G(t),n=this.value,r=e.value;return e.isSmall?n==r?0:n>r?1:-1:n<0!==e.sign?n<0?-1:1:n<0?1:-1},c.prototype.compareTo=c.prototype.compare,u.prototype.equals=function(t){return 0===this.compare(t)},c.prototype.eq=c.prototype.equals=u.prototype.eq=u.prototype.equals,u.prototype.notEquals=function(t){return 0!==this.compare(t)},c.prototype.neq=c.prototype.notEquals=u.prototype.neq=u.prototype.notEquals,u.prototype.greater=function(t){return this.compare(t)>0},c.prototype.gt=c.prototype.greater=u.prototype.gt=u.prototype.greater,u.prototype.lesser=function(t){return this.compare(t)<0},c.prototype.lt=c.prototype.lesser=u.prototype.lt=u.prototype.lesser,u.prototype.greaterOrEquals=function(t){return this.compare(t)>=0},c.prototype.geq=c.prototype.greaterOrEquals=u.prototype.geq=u.prototype.greaterOrEquals,u.prototype.lesserOrEquals=function(t){return this.compare(t)<=0},c.prototype.leq=c.prototype.lesserOrEquals=u.prototype.leq=u.prototype.lesserOrEquals,u.prototype.isEven=function(){return 0==(1&this.value[0])},c.prototype.isEven=function(){return 0==(1&this.value)},u.prototype.isOdd=function(){return 1==(1&this.value[0])},c.prototype.isOdd=function(){return 1==(1&this.value)},u.prototype.isPositive=function(){return!this.sign},c.prototype.isPositive=function(){return this.value>0},u.prototype.isNegative=function(){return this.sign},c.prototype.isNegative=function(){return this.value<0},u.prototype.isUnit=function(){return!1},c.prototype.isUnit=function(){return 1===Math.abs(this.value)},u.prototype.isZero=function(){return!1},c.prototype.isZero=function(){return 0===this.value},u.prototype.isDivisibleBy=function(t){var e=G(t),n=e.value;return 0!==n&&(1===n||(2===n?this.isEven():this.mod(e).equals(a[0])))},c.prototype.isDivisibleBy=u.prototype.isDivisibleBy,u.prototype.isPrime=function(){var t=A(this);if(void 0!==t)return t;for(var e,n,o,i,s=this.abs(),u=s.prev(),c=[2,3,5,7,11,13,17,19],l=u;l.isEven();)l=l.divide(2);for(o=0;o-o?new c(t-1):new u(i,!0)};for(var L=[1];L[L.length-1]<=e;)L.push(2*L[L.length-1]);var $=L.length,j=L[$-1];function R(t){return("number"==typeof t||"string"==typeof t)&&+Math.abs(t)<=e||t instanceof u&&t.value.length<=1}function T(t,e,n){e=G(e);for(var o=t.isNegative(),i=e.isNegative(),s=o?t.not():t,a=i?e.not():e,u=[],c=[],l=!1,f=!1;!l||!f;)s.isZero()?(l=!0,u.push(o?1:0)):o?u.push(s.isEven()?1:0):u.push(s.isEven()?0:1),a.isZero()?(f=!0,c.push(i?1:0)):i?c.push(a.isEven()?1:0):c.push(a.isEven()?0:1),s=s.over(2),a=a.over(2);for(var p=[],d=0;d=$;)e=e.multiply(j),t-=$-1;return e.multiply(L[t])},c.prototype.shiftLeft=u.prototype.shiftLeft,u.prototype.shiftRight=function(t){var e;if(!R(t))throw new Error(String(t)+" is too large for shifting.");if((t=+t)<0)return this.shiftLeft(-t);for(var n=this;t>=$;){if(n.isZero())return n;n=(e=E(n,j))[1].isNegative()?e[0].prev():e[0],t-=$-1}return(e=E(n,L[t]))[1].isNegative()?e[0].prev():e[0]},c.prototype.shiftRight=u.prototype.shiftRight,u.prototype.not=function(){return this.negate().prev()},c.prototype.not=u.prototype.not,u.prototype.and=function(t){return T(this,t,function(t,e){return t&e})},c.prototype.and=u.prototype.and,u.prototype.or=function(t){return T(this,t,function(t,e){return t|e})},c.prototype.or=u.prototype.or,u.prototype.xor=function(t){return T(this,t,function(t,e){return t^e})},c.prototype.xor=u.prototype.xor;var M=1<<30,N=(e&-e)*(e&-e)|M;function I(t){var n=t.value,r="number"==typeof n?n|M:n[0]+n[1]*e|N;return r&-r}function D(t,e){return t=G(t),e=G(e),t.greater(e)?t:e}function F(t,e){return t=G(t),e=G(e),t.lesser(e)?t:e}function B(t,e){if(t=G(t).abs(),e=G(e).abs(),t.equals(e))return t;if(t.isZero())return e;if(e.isZero())return t;for(var n,r,o=a[1];t.isEven()&&e.isEven();)n=Math.min(I(t),I(e)),t=t.divide(n),e=e.divide(n),o=o.multiply(n);for(;t.isEven();)t=t.divide(I(t));do{for(;e.isEven();)e=e.divide(I(e));t.greater(e)&&(r=e,e=t,t=r),e=e.subtract(t)}while(!e.isZero());return o.isUnit()?t:t.multiply(o)}var U=function(t,e){var n=t.length;if(2<=e&&e<=36&&n<=s/Math.log(e))return new c(parseInt(t,e));e=G(e);var r,o=[],i="-"===t[0];for(r=i?1:0;r"!==t[r]);o.push(G(t.slice(l+1,r)))}}return q(o,e,i)};function q(t,e,n){var r,o=a[0],i=a[1];for(r=t.length-1;r>=0;r--)o=o.add(t[r].times(i)),i=i.times(e);return n?o.negate():o}function z(t){var e=t.value;return"number"==typeof e&&(e=[e]),1===e.length&&e[0]<=35?"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e[0]):"<"+e+">"}function H(t,e){if((e=r(e)).isZero()){if(t.isZero())return"0";throw new Error("Cannot convert nonzero numbers to base 0.")}if(e.equals(-1))return t.isZero()?"0":t.isNegative()?new Array(1-t).join("10"):"1"+new Array(+t).join("01");var n="";if(t.isNegative()&&e.isPositive()&&(n="-",t=t.abs()),e.equals(1))return t.isZero()?"0":n+new Array(+t+1).join(1);for(var o,i=[],s=t;s.isNegative()||s.compareAbs(e)>=0;){o=s.divmod(e),s=o.quotient;var a=o.remainder;a.isNegative()&&(a=e.minus(a).abs(),s=s.next()),i.push(z(a))}return i.push(z(s)),n+i.reverse().join("")}function V(t){if(l(+t)){var e=+t;if(e===v(e))return new c(e);throw"Invalid integer: "+t}var r="-"===t[0];r&&(t=t.slice(1));var o=t.split(/e/i);if(o.length>2)throw new Error("Invalid integer: "+o.join("e"));if(2===o.length){var i=o[1];if("+"===i[0]&&(i=i.slice(1)),(i=+i)!==v(i)||!l(i))throw new Error("Invalid integer: "+i+" is not a valid exponent.");var s=o[0],a=s.indexOf(".");if(a>=0&&(i-=s.length-a-1,s=s.slice(0,a)+s.slice(a+1)),i<0)throw new Error("Cannot include negative exponent part for integers");t=s+=new Array(i+1).join("0")}if(!/^([0-9][0-9]*)$/.test(t))throw new Error("Invalid integer: "+t);for(var f=[],p=t.length,h=n,m=p-h;p>0;)f.push(+t.slice(m,p)),(m-=h)<0&&(m=0),p-=h;return d(f),new u(f,r)}function G(t){return"number"==typeof t?function(t){if(l(t)){if(t!==v(t))throw new Error(t+" is not an integer.");return new c(t)}return V(t.toString())}(t):"string"==typeof t?V(t):t}u.prototype.toString=function(t){if(void 0===t&&(t=10),10!==t)return H(this,t);for(var e,n=this.value,r=n.length,o=String(n[--r]);--r>=0;)e=String(n[r]),o+="0000000".slice(e.length)+e;return(this.sign?"-":"")+o},c.prototype.toString=function(t){return void 0===t&&(t=10),10!=t?H(this,t):String(this.value)},u.prototype.valueOf=function(){return+this.toString()},u.prototype.toJSNumber=u.prototype.valueOf,c.prototype.valueOf=function(){return this.value},c.prototype.toJSNumber=c.prototype.valueOf;for(var W=0;W<1e3;W++)a[W]=new c(W),W>0&&(a[-W]=new c(-W));return a.one=a[1],a.zero=a[0],a.minusOne=a[-1],a.max=D,a.min=F,a.gcd=B,a.lcm=function(t,e){return t=G(t).abs(),e=G(e).abs(),t.divide(B(t,e)).multiply(e)},a.isInstance=function(t){return t instanceof u||t instanceof c},a.randBetween=function(t,n){var r=F(t=G(t),n=G(n)),o=D(t,n).subtract(r);if(o.isSmall)return r.add(Math.round(Math.random()*o));for(var i=[],s=!0,a=o.value.length-1;a>=0;a--){var l=s?o.value[a]:e,f=v(Math.random()*l);i.unshift(f),f?@[\\]^_`{|}~"};t.exports={getSetOfCharacters:function(t){if(void 0===t)return o.lowercase+o.uppercase+o.digits+o.symbols;let e="";return t.forEach(t=>{e+=o[t]}),e},getOneCharPerRule:function(t,e){let n="",i=t;return e.forEach(t=>{const e=r("",i,o[t],1);n+=e.value,i=e.entropy}),{value:n,entropy:i}},insertStringPseudoRandomly:function(t,e,n){let r=e,o=t;for(let t=0;tt[e])},characterSubsets:o}},function(t,e,n){"use strict";var r=n(9);n.n(r).a},function(t,e,n){"use strict";var r=n(10);n.n(r).a},function(t,e,n){"use strict";var r=n(11);n.n(r).a},function(t,e,n){"use strict";var r=n(12);n.n(r).a},function(t,e,n){"use strict";var r=n(13);n.n(r).a},function(t,e,n){"use strict";var r=n(14);n.n(r).a},function(t,e,n){"use strict";var r=n(15);n.n(r).a},function(t,e,n){"use strict";var r=n(16);n.n(r).a},function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"refreshToken",function(){return $}),n.d(r,"saveDefaultOptions",function(){return j}),n.d(r,"loadPasswordProfile",function(){return R}),n.d(r,"getPasswordFromUrlQuery",function(){return T}),n.d(r,"savePassword",function(){return M}),n.d(r,"resetPassword",function(){return N}),n.d(r,"login",function(){return I}),n.d(r,"logout",function(){return D}),n.d(r,"getPasswords",function(){return F}),n.d(r,"saveOrUpdatePassword",function(){return B}),n.d(r,"deletePassword",function(){return U}),n.d(r,"displayMessage",function(){return q}),n.d(r,"cleanMessage",function(){return z});var o={};n.r(o),n.d(o,"isAuthenticated",function(){return G}),n.d(o,"isGuest",function(){return W}),n.d(o,"passwordURL",function(){return K}),n.d(o,"isDefaultProfile",function(){return Z});var i=n(3),s=(n(42),n(43),n(0));function a(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={data:function(){return{saved:!1}},methods:{fullReload:function(){this.$store.dispatch("resetPassword"),this.$router.push({name:"home"})},logout:function(){this.$store.dispatch("logout"),this.$router.push({name:"home"})},saveOrUpdatePassword:function(){var t=this;this.$store.dispatch("saveOrUpdatePassword"),this.saved=!0,setTimeout(function(){t.saved=!1},3e3)}},computed:function(t){for(var e=1;e-1}function vt(t,e){for(var n in e)t[n]=e[n];return t}var mt={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,i=e.data;i.routerView=!0;for(var s=o.$createElement,a=n.name,u=o.$route,c=o._routerViewCache||(o._routerViewCache={}),l=0,f=!1;o&&o._routerRoot!==o;){var p=o.$vnode&&o.$vnode.data;p&&(p.routerView&&l++,p.keepAlive&&o._inactive&&(f=!0)),o=o.$parent}if(i.routerViewDepth=l,f)return s(c[a],i,r);var d=u.matched[l];if(!d)return c[a]=null,s();var h=c[a]=d.components[a];i.registerRouteInstance=function(t,e){var n=d.instances[a];(e&&n!==t||!e&&n===t)&&(d.instances[a]=e)},(i.hook||(i.hook={})).prepatch=function(t,e){d.instances[a]=e.componentInstance},i.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==d.instances[a]&&(d.instances[a]=t.componentInstance)};var v=i.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(u,d.props&&d.props[a]);if(v){v=i.props=vt({},v);var m=i.attrs=i.attrs||{};for(var g in v)h.props&&g in h.props||(m[g]=v[g],delete v[g])}return s(h,i,r)}};var gt=/[!'()*]/g,yt=function(t){return"%"+t.charCodeAt(0).toString(16)},bt=/%2C/g,wt=function(t){return encodeURIComponent(t).replace(gt,yt).replace(bt,",")},_t=decodeURIComponent;function Ct(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=_t(n.shift()),o=n.length>0?_t(n.join("=")):null;void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}),e):e}function Pt(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return wt(e);if(Array.isArray(n)){var r=[];return n.forEach(function(t){void 0!==t&&(null===t?r.push(wt(e)):r.push(wt(e)+"="+wt(t)))}),r.join("&")}return wt(e)+"="+wt(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var xt=/\/?$/;function St(t,e,n,r){var o=r&&r.options.stringifyQuery,i=e.query||{};try{i=Ot(i)}catch(t){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:At(e,o),matched:t?kt(t):[]};return n&&(s.redirectedFrom=At(n,o)),Object.freeze(s)}function Ot(t){if(Array.isArray(t))return t.map(Ot);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=Ot(t[n]);return e}return t}var Et=St(null,{path:"/"});function kt(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function At(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var o=t.hash;return void 0===o&&(o=""),(n||"/")+(e||Pt)(r)+o}function Lt(t,e){return e===Et?t===e:!!e&&(t.path&&e.path?t.path.replace(xt,"")===e.path.replace(xt,"")&&t.hash===e.hash&&$t(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&$t(t.query,e.query)&&$t(t.params,e.params)))}function $t(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){var r=t[n],o=e[n];return"object"==typeof r&&"object"==typeof o?$t(r,o):String(r)===String(o)})}var jt,Rt=[String,Object],Tt=[String,Array],Mt={name:"RouterLink",props:{to:{type:Rt,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:Tt,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),i=o.location,s=o.route,a=o.href,u={},c=n.options.linkActiveClass,l=n.options.linkExactActiveClass,f=null==c?"router-link-active":c,p=null==l?"router-link-exact-active":l,d=null==this.activeClass?f:this.activeClass,h=null==this.exactActiveClass?p:this.exactActiveClass,v=i.path?St(null,i,null,n):s;u[h]=Lt(r,v),u[d]=this.exact?u[h]:function(t,e){return 0===t.path.replace(xt,"/").indexOf(e.path.replace(xt,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,v);var m=function(t){Nt(t)&&(e.replace?n.replace(i):n.push(i))},g={click:Nt};Array.isArray(this.event)?this.event.forEach(function(t){g[t]=m}):g[this.event]=m;var y={class:u};if("a"===this.tag)y.on=g,y.attrs={href:a};else{var b=function t(e){if(e)for(var n,r=0;r=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}(o.path||""),u=e&&e.path||"/",c=a.path?Dt(a.path,u,n||o.append):u,l=function(t,e,n){void 0===e&&(e={});var r,o=n||Ct;try{r=o(t||"")}catch(t){r={}}for(var i in e)r[i]=e[i];return r}(a.query,o.query,r&&r.options.parseQuery),f=o.hash||a.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:c,query:l,hash:f}}function ae(t,e){var n=oe(t),r=n.pathList,o=n.pathMap,i=n.nameMap;function s(t,n,s){var a=se(t,n,!1,e),c=a.name;if(c){var l=i[c];if(!l)return u(null,a);var f=l.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof a.params&&(a.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in a.params)&&f.indexOf(p)>-1&&(a.params[p]=n.params[p]);return a.path=re(l.path,a.params),u(l,a,s)}if(a.path){a.params={};for(var d=0;d=t.length?n():t[o]?e(t[o],function(){r(o+1)}):r(o+1)};r(0)}function Oe(t){return function(e,n,r){var o=!1,i=0,s=null;Ee(t,function(t,e,n,a){if("function"==typeof t&&void 0===t.cid){o=!0,i++;var u,c=Le(function(e){var o;((o=e).__esModule||Ae&&"Module"===o[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:jt.extend(e),n.components[a]=e,--i<=0&&r()}),l=Le(function(t){var e="Failed to resolve async component "+a+": "+t;s||(s=ht(t)?t:new Error(e),r(s))});try{u=t(c,l)}catch(t){l(t)}if(u)if("function"==typeof u.then)u.then(c,l);else{var f=u.component;f&&"function"==typeof f.then&&f.then(c,l)}}}),o||r()}}function Ee(t,e){return ke(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function ke(t){return Array.prototype.concat.apply([],t)}var Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Le(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var $e=function(t,e){this.router=t,this.base=function(t){if(!t)if(It){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=Et,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function je(t,e,n,r){var o=Ee(t,function(t,r,o,i){var s=function(t,e){"function"!=typeof t&&(t=jt.extend(t));return t.options[e]}(t,e);if(s)return Array.isArray(s)?s.map(function(t){return n(t,r,o,i)}):n(s,r,o,i)});return ke(r?o.reverse():o)}function Re(t,e){if(e)return function(){return t.apply(e,arguments)}}$e.prototype.listen=function(t){this.cb=t},$e.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},$e.prototype.onError=function(t){this.errorCbs.push(t)},$e.prototype.transitionTo=function(t,e,n){var r=this,o=this.router.match(t,this.current);this.confirmTransition(o,function(){r.updateRoute(o),e&&e(o),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(o)}))},function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)}))})},$e.prototype.confirmTransition=function(t,e,n){var r=this,o=this.current,i=function(t){ht(t)&&(r.errorCbs.length?r.errorCbs.forEach(function(e){e(t)}):console.error(t)),n&&n(t)};if(Lt(t,o)&&t.matched.length===o.matched.length)return this.ensureURL(),i();var s=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function Fe(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Be(t){ye?Pe(Fe(t)):window.location.hash=t}function Ue(t){ye?xe(Fe(t)):window.location.replace(Fe(t))}var qe=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}($e),ze=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ae(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!ye&&!1!==t.fallback,this.fallback&&(e="hash"),It||(e="abstract"),this.mode=e,e){case"history":this.history=new Te(this,t.base);break;case"hash":this.history=new Ne(this,t.base,this.fallback);break;case"abstract":this.history=new qe(this,t.base);break;default:0}},He={currentRoute:{configurable:!0}};function Ve(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}ze.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},He.currentRoute.get=function(){return this.history&&this.history.current},ze.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)}),!this.app){this.app=t;var n=this.history;if(n instanceof Te)n.transitionTo(n.getCurrentLocation());else if(n instanceof Ne){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},ze.prototype.beforeEach=function(t){return Ve(this.beforeHooks,t)},ze.prototype.beforeResolve=function(t){return Ve(this.resolveHooks,t)},ze.prototype.afterEach=function(t){return Ve(this.afterHooks,t)},ze.prototype.onReady=function(t,e){this.history.onReady(t,e)},ze.prototype.onError=function(t){this.history.onError(t)},ze.prototype.push=function(t,e,n){this.history.push(t,e,n)},ze.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},ze.prototype.go=function(t){this.history.go(t)},ze.prototype.back=function(){this.go(-1)},ze.prototype.forward=function(){this.go(1)},ze.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},ze.prototype.resolve=function(t,e,n){var r=se(t,e=e||this.history.current,n,this),o=this.match(r,e),i=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?Ft(t+"/"+r):r}(this.history.base,i,this.mode),normalizedTo:r,resolved:o}},ze.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Et&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(ze.prototype,He),ze.install=function t(e){if(!t.installed||jt!==e){t.installed=!0,jt=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",mt),e.component("RouterLink",Mt);var o=e.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},ze.version="3.0.7",It&&window.Vue&&window.Vue.use(ze);var Ge=ze,We=n(6),Ke=n.n(We),Ze=n(33),Je={name:"masterPassword",props:{value:String,label:String,email:String,showEncryptButton:{type:Boolean,default:!1},EncryptButtonText:String},data:function(){return{fingerprint:null,icon1:"",icon2:"",icon3:"",color1:"",color2:"",color3:""}},methods:{updateValue:function(t){var e=Math.random().toString(36).substring(7);this.setFingerprint(e),this.showRealFingerprint(t),this.$refs.passwordField.value=t,this.$emit("input",t)},togglePasswordType:function(){var t=this.$refs.passwordField;"password"===t.type?t.type="text":t.type="password"},hidePassword:function(){this.$refs.passwordField.type="password"},getColor:function(t){var e=["#000000","#074750","#009191","#FF6CB6","#FFB5DA","#490092","#006CDB","#B66DFF","#6DB5FE","#B5DAFE","#920000","#924900","#DB6D00","#24FE23"];return e[parseInt(t,16)%e.length]},getIcon:function(t){var e=["fa-hashtag","fa-heart","fa-hotel","fa-university","fa-plug","fa-ambulance","fa-bus","fa-car","fa-plane","fa-rocket","fa-ship","fa-subway","fa-truck","fa-jpy","fa-eur","fa-btc","fa-usd","fa-gbp","fa-archive","fa-area-chart","fa-bed","fa-beer","fa-bell","fa-binoculars","fa-birthday-cake","fa-bomb","fa-briefcase","fa-bug","fa-camera","fa-cart-plus","fa-certificate","fa-coffee","fa-cloud","fa-coffee","fa-comment","fa-cube","fa-cutlery","fa-database","fa-diamond","fa-exclamation-circle","fa-eye","fa-flag","fa-flask","fa-futbol-o","fa-gamepad","fa-graduation-cap"];return e[parseInt(t,16)%e.length]},setFingerprint:function(t){var e=this;Ke.a.createFingerprint(t).then(function(t){e.icon1=t[0].icon,e.color1=t[0].color,e.icon2=t[1].icon,e.color2=t[1].color,e.icon3=t[2].icon,e.color3=t[2].color,e.fingerprint=t})},showRealFingerprint:n.n(Ze)()(function(t){this.setFingerprint(t)},500),encryptMasterPassword:function(){var t=this,e=this.$refs.passwordField.value;return Ke.a.generatePassword("lesspass.com",this.email,e,L).then(function(e){t.updateValue(e)})}}},Ye=(n(72),l(Je,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"masterPassword"},[n("div",{staticClass:"input-group inner-addon left-addon"},[n("label",{staticClass:"sr-only",attrs:{for:"passwordField"}},[t._v("\n "+t._s(t.label)+"\n ")]),t._v(" "),n("i",{staticClass:"fa fa-lock"}),t._v(" "),n("input",{ref:"passwordField",staticClass:"form-control",attrs:{id:"passwordField",name:"passwordField",type:"password",autocorrect:"off",autocapitalize:"off",placeholder:t.label},domProps:{value:t.value},on:{input:function(e){return t.updateValue(e.target.value)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$emit("keyupEnter")}}}),t._v(" "),t.fingerprint&&t.value?n("span",{staticClass:"input-group-btn",on:{click:t.togglePasswordType}},[n("button",{staticClass:"btn",attrs:{id:"fingerprint",type:"button",tabindex:"-1"}},[n("small",[n("i",{staticClass:"fa fa-fw",class:[t.icon1],style:{color:t.color1}}),t._v(" "),n("i",{staticClass:"fa fa-fw",class:[t.icon2],style:{color:t.color2}}),t._v(" "),n("i",{staticClass:"fa fa-fw",class:[t.icon3],style:{color:t.color3}})])])]):t._e()]),t._v(" "),t.showEncryptButton?n("button",{staticClass:"btn btn-link btn-sm p-0",class:{disabled:""===t.email},attrs:{id:"encryptMasterPassword__btn",type:"button"},on:{click:function(e){return t.encryptMasterPassword()}}},[n("small",[t._v(t._s(t.EncryptButtonText))])]):t._e()])},[],!1,null,null,null).exports),Qe={data:function(){return{email:"",password:"",baseURL:"https://lesspass.com"}},components:{MasterPassword:Ye},methods:{formIsValid:function(){return!!(this.email&&this.password&&this.baseURL)||(ct.error(this.$t("LoginFormInvalid","LessPass URL, email, and password are mandatory")),!1)},signIn:function(){var t=this;if(this.formIsValid()){var e=this.baseURL;g({email:this.email,password:this.password},{baseURL:e}).then(function(n){t.$store.dispatch("login",{token:n.token,baseURL:e}),t.$router.push({name:"home"})}).catch(function(n){void 0===n.response&&"https://lesspass.com"!==e?ct.error(t.$t("DBNotRunning","Your LessPass Database is not running")):n.response&&400===n.response.status?ct.error(t.$t("LoginIncorrectError","The email and password you entered did not match our records. Please double-check and try again.")):ct.displayGenericError()})}},register:function(){var t=this;if(this.formIsValid()){var e=this.baseURL;y({email:this.email,password:this.password},{baseURL:e}).then(function(){ct.success(t.$t("WelcomeRegister","Welcome {email}, thank you for signing up.",{email:t.email})),t.signIn()}).catch(function(e){e.response&&void 0!==e.response.data.email?(-1!==e.response.data.email[0].indexOf("already exists")&&ct.error(t.$t("EmailAlreadyExist","This email is already registered. Want to login or recover your password?")),-1!==e.response.data.email[0].indexOf("valid email")&&ct.error(t.$t("EmailInvalid","Please enter a valid email"))):ct.displayGenericError()})}}}},Xe=(n(73),l(Qe,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form",{on:{submit:function(e){return e.preventDefault(),t.signIn(e)}}},[n("div",{staticClass:"form-group"},[n("div",{staticClass:"inner-addon left-addon"},[n("i",{staticClass:"fa fa-globe"}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.baseURL,expression:"baseURL"}],staticClass:"form-control",attrs:{id:"baseURL",autocapitalize:"none",placeholder:t.$t("LessPass Database Url")},domProps:{value:t.baseURL},on:{input:function(e){e.target.composing||(t.baseURL=e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("div",{staticClass:"col-12"},[n("div",{staticClass:"inner-addon left-addon"},[n("i",{staticClass:"fa fa-user"}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],staticClass:"form-control",attrs:{id:"email",name:"username",type:"email",autocapitalize:"none",placeholder:t.$t("Email"),required:""},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})])])]),t._v(" "),n("div",{staticClass:"form-group mb-2"},[n("master-password",{attrs:{label:t.$t("Master Password"),email:t.email,showEncryptButton:!0,EncryptButtonText:t.$t("Encrypt my master password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),t._v(" "),n("div",{staticClass:"form-group row no-gutters mb-0"},[n("div",{staticClass:"col"},[n("button",{staticClass:"btn btn-primary btn-block",attrs:{id:"signInButton"}},[t._v("\n "+t._s(t.$t("Sign In"))+"\n ")])]),t._v(" "),n("div",{staticClass:"col"},[n("button",{staticClass:"btn btn-secondary btn-block",attrs:{id:"registerButton",type:"button"},on:{click:t.register}},[t._v("\n "+t._s(t.$t("Register"))+"\n ")])])]),t._v(" "),n("div",{staticClass:"form-group mb-0"},[n("button",{staticClass:"btn btn-link btn-sm p-0",attrs:{id:"login__forgot-password-btn",type:"button"},on:{click:function(e){return t.$router.push({name:"passwordReset"})}}},[n("small",[t._v(t._s(t.$t("ForgotPassword","Forgot your password?")))])])])])},[],!1,null,null,null).exports),tn=n(18),en=n.n(tn),nn=l({},function(){this.$createElement;this._self._c;return this._m(0)},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{display:"none"}},[e("label",{attrs:{for:"username"}},[e("input",{attrs:{type:"text",id:"username",name:"username",autocomplete:"username"}})]),this._v(" "),e("label",{attrs:{for:"password"}},[e("input",{attrs:{type:"password",id:"password",name:"password",autocomplete:"current-password"}})])])}],!1,null,null,null).exports,rn=n(4),on=n.n(rn),sn={name:"inputSite",props:{value:String,label:String,passwords:{type:Array,default:function(){return[]}}},mounted:function(){var t=this;this.awesomplete=new on.a(this.$refs.siteField),this.awesomplete.item=function(t,e){var n=on.a.ITEM(t.value.site,e);return n.innerHTML+=" ".concat(t.value.login),n},this.awesomplete.filter=function(t,e){return on.a.FILTER_CONTAINS(t,e)||on.a.FILTER_CONTAINS(e,t)},this.awesomplete.data=function(t){return{label:t.site,value:t}},this.awesomplete.replace=function(e){t.$refs.siteField.value=e.label,e.value.suggestion?t.$emit("suggestionSelected",e.value.site):t.$emit("passwordProfileSelected",e.value)}},computed:{site:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}},watch:{site:function(t,e){var n=function(t){var e=x(t)||t;if(/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}):(\d{1,5})$/.test(e))return[];var n=e.toLowerCase().split(".").filter(function(t){return t.length>=2});if(n.length<2)return[];var r=n[n.length-2],o=n[n.length-1];return n.reduceRight(function(t,e){var r=n.indexOf(e);if(r>=0&&rr?r:t2&&void 0!==arguments[2]?arguments[2]:"right";t.setAttribute("data-balloon",e),t.setAttribute("data-balloon-visible",""),t.setAttribute("data-balloon-pos",n)}function vn(t){t.removeAttribute("data-balloon"),t.removeAttribute("data-balloon-visible"),t.removeAttribute("data-balloon-pos")}function mn(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n}function gn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yn={name:"password-generator-view",components:{RemoveAutoComplete:nn,InputSite:an,MasterPassword:Ye,Options:l(dn,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"options"}},[n("div",{staticClass:"form-group row"},[n("div",{staticClass:"col-12"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("label",{attrs:{for:"types"}},[t._v(t._s(t.$t("Advanced options")))])])]),t._v(" "),n("div",{staticClass:"row",attrs:{id:"types"}},[n("div",{staticClass:"col-3"},[n("button",{staticClass:"btn btn-block btn-sm px-0",class:{"btn-primary":!0===t.password.lowercase,"btn-secondary":!1===t.password.lowercase},attrs:{id:"lowercase__btn",type:"button"},on:{click:function(e){t.password.lowercase=!t.password.lowercase}}},[t._v("\n a-z\n ")])]),t._v(" "),n("div",{staticClass:"col-3"},[n("button",{staticClass:"btn btn-block btn-sm px-0",class:{"btn-primary":!0===t.password.uppercase,"btn-secondary":!1===t.password.uppercase},attrs:{id:"uppercase__btn",type:"button"},on:{click:function(e){t.password.uppercase=!t.password.uppercase}}},[t._v("\n A-Z\n ")])]),t._v(" "),n("div",{staticClass:"col-3"},[n("button",{staticClass:"btn btn-block btn-sm px-0",class:{"btn-primary":!0===t.password.numbers,"btn-secondary":!1===t.password.numbers},attrs:{id:"numbers__btn",type:"button"},on:{click:function(e){t.password.numbers=!t.password.numbers}}},[t._v("\n 0-9\n ")])]),t._v(" "),n("div",{staticClass:"col-3"},[n("button",{staticClass:"btn btn-block btn-sm px-0",class:{"btn-primary":!0===t.password.symbols,"btn-secondary":!1===t.password.symbols},attrs:{id:"symbols__btn",type:"button"},on:{click:function(e){t.password.symbols=!t.password.symbols}}},[t._v("\n %!@\n ")])])])])]),t._v(" "),n("div",{staticClass:"form-group row mb-0"},[n("div",{staticClass:"col-5 col-sm-4"},[n("label",{attrs:{for:"passwordLength"}},[t._v(t._s(t.$t("Length")))]),t._v(" "),n("div",{staticClass:"input-group input-group-sm"},[n("span",{staticClass:"input-group-btn",on:{click:function(e){t.password.length=t.decrement(t.password.length,{min:5,max:35})}}},[t._m(0)]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.password.length,expression:"password.length",modifiers:{number:!0}}],staticClass:"form-control form-control-sm",attrs:{id:"passwordLength",type:"number",min:"5",max:"35"},domProps:{value:t.password.length},on:{input:function(e){e.target.composing||t.$set(t.password,"length",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),n("span",{staticClass:"input-group-btn",on:{click:function(e){t.password.length=t.increment(t.password.length,{min:5,max:35})}}},[t._m(1)])])]),t._v(" "),n("div",{staticClass:"col-5 col-sm-4"},[n("label",{attrs:{for:"passwordCounter","data-balloon-length":"large","data-balloon":t.$t("CounterFieldHelp","Increment this value to change the generated password without changing your master password."),"data-balloon-pos":"up"}},[t._v("\n "+t._s(t.$t("Counter"))+"\n ")]),t._v(" "),n("div",{staticClass:"input-group input-group-sm"},[n("span",{staticClass:"input-group-btn",attrs:{id:"decreaseCounter__btn"},on:{click:function(e){t.password.counter=t.decrement(t.password.counter,{min:1})}}},[t._m(2)]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.password.counter,expression:"password.counter",modifiers:{number:!0}}],staticClass:"form-control form-control-sm",attrs:{id:"passwordCounter",type:"number",min:"1"},domProps:{value:t.password.counter},on:{input:function(e){e.target.composing||t.$set(t.password,"counter",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),n("span",{staticClass:"input-group-btn",attrs:{id:"increaseCounter__btn"},on:{click:function(e){t.password.counter=t.increment(t.password.counter,{min:1})}}},[t._m(3)])])])])])},[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-primary btn-sm border-blue px-2",attrs:{id:"decreaseLength__btn",type:"button"}},[e("small",[e("i",{staticClass:"fa fa-minus"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-primary btn-sm border-blue px-2",attrs:{id:"increaseLength__btn",type:"button"}},[e("small",[e("i",{staticClass:"fa fa-plus"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-primary btn-sm border-blue px-2",attrs:{type:"button"}},[e("small",[e("i",{staticClass:"fa fa-minus"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-primary btn-sm border-blue px-2",attrs:{type:"button"}},[e("small",[e("i",{staticClass:"fa fa-plus"})])])}],!1,null,null,null).exports},computed:function(t){for(var e=1;e35&&ct.warning(this.$t("LengthDeprecationWarning","The maximum length of a password is 35 characters.")),this.cleanErrors();var o={lowercase:this.password.lowercase,uppercase:this.password.uppercase,numbers:this.password.numbers,symbols:this.password.symbols,length:this.password.length,counter:this.password.counter,version:this.password.version};return Ke.a.generatePassword(e,n,r,o).then(function(e){t.passwordGenerated=e,t.cleanFormIn30Seconds()})}ct.error(this.$t("SiteLoginMasterPasswordMandatory","Site, login, and master password fields are mandatory."))},focusBestInputField:function(){try{var t=this.$refs.site.$refs.siteField,e=this.$refs.login,n=this.$refs.masterPassword;if(t&&!t.value)return void t.focus();if(e&&!e.value)return void e.focus();n.$refs.passwordField.focus()}catch(t){console.error("Can't focus password field")}},copyPassword:function(){if(en()(this.passwordGenerated)){var t=document.getElementById("copyPasswordButton");hn(t,this.$t("Copied","copied !")),setTimeout(function(){return vn(t)},2e3)}else ct.warning(this.$t("SorryCopy","Sorry, copying only works in modern browsers."))},sharePasswordProfile:function(){if(en()(this.passwordURL)){var t=this.$t("PasswordProfileCopied","Your password profile has been copied"),e=document.getElementById("sharePasswordProfileButton");hn(e,t,"left"),setTimeout(function(){return vn(e)},2e3)}else ct.warning(this.$t("SorryCopy","Sorry, copying only works in modern browsers."))},setSite:function(t){this.password.site=t},setPasswordProfile:function(t){var e=this;this.$store.dispatch("savePassword",{password:t}).then(function(){e.focusBestInputField()})}}},bn=(n(76),l(yn,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form",{attrs:{id:"password-generator",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.generatePassword(e)}}},[n("div",{staticClass:"form-group"},[n("input-site",{ref:"site",attrs:{passwords:t.passwords,label:t.$t("Site")},on:{suggestionSelected:t.setSite,passwordProfileSelected:t.setPasswordProfile},model:{value:t.password.site,callback:function(e){t.$set(t.password,"site",e)},expression:"password.site"}})],1),t._v(" "),n("remove-auto-complete"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{staticClass:"sr-only",attrs:{for:"login"}},[t._v(t._s(t.$t("Login")))]),t._v(" "),n("div",{staticClass:"inner-addon left-addon"},[n("i",{staticClass:"fa fa-user"}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password.login,expression:"password.login"}],ref:"login",staticClass:"form-control",attrs:{id:"login",name:"login",autocomplete:"off",autocorrect:"off",autocapitalize:"none",placeholder:t.$t("Login")},domProps:{value:t.password.login},on:{input:function(e){e.target.composing||t.$set(t.password,"login",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group"},[n("master-password",{ref:"masterPassword",attrs:{label:t.$t("Master Password")},on:{generatePassword:t.generatePassword},model:{value:t.masterPassword,callback:function(e){t.masterPassword=e},expression:"masterPassword"}})],1),t._v(" "),n("div",{staticClass:"form-group",class:{"mb-0":!t.showOptions}},[t.passwordGenerated?t._e():n("div",[n("button",{staticClass:"btn btn-primary border-blue",attrs:{id:"generatePassword__btn",type:"submit"}},[t._v("\n "+t._s(t.$t("Generate"))+"\n ")]),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:!t.passwordGenerated,expression:"!passwordGenerated"}],staticClass:"btn btn-secondary pull-right showOptions__btn",attrs:{type:"button"},on:{click:function(e){t.showOptions=!t.showOptions}}},[n("i",{staticClass:"fa fa-sliders"})])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.passwordGenerated,expression:"passwordGenerated"}],staticClass:"btn-group"},[n("div",{staticClass:"input-group"},[n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-primary border-blue",attrs:{id:"copyPasswordButton",type:"button"},on:{click:function(e){return t.copyPassword()}}},[n("i",{staticClass:"fa fa-clipboard"})])]),t._v(" "),n("input",{ref:"passwordGenerated",staticClass:"form-control",attrs:{id:"generated-password",type:"password",tabindex:"-1"},domProps:{value:t.passwordGenerated}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-secondary",attrs:{id:"revealGeneratedPassword",type:"button"},on:{click:function(e){return t.togglePasswordType(t.$refs.passwordGenerated)}}},[n("i",{staticClass:"fa fa-eye"})])]),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-secondary",attrs:{id:"sharePasswordProfileButton",type:"button"},on:{click:function(e){return t.sharePasswordProfile()}}},[n("i",{staticClass:"fa fa-share-alt pointer"})])]),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-secondary showOptions__btn",attrs:{type:"button"},on:{click:function(e){t.showOptions=!t.showOptions}}},[n("i",{staticClass:"fa fa-sliders"})])])])])]),t._v(" "),t.showOptions||!t.isDefaultProfile?n("options"):t._e()],1)},[],!1,null,null,null).exports);function wn(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n}function _n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Cn=l({data:function(){return{email:""}},computed:function(t){for(var e=1;e0?n("div",[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[t._v("\n "+t._s(t.$t("NoMatchFor","Oops! There are no matches for"))+' "'+t._s(t.searchQuery)+'".\n '+t._s(t.$t("UpdateYourSearch","Please try broadening your search."))+"\n ")])])]):t._e(),t._v(" "),t._l(t.filteredPasswords,function(e){return n("password-profile",{key:e.id,attrs:{password:e},on:{deleted:function(e){t.pagination.currentPage=1}}})})],2),t._v(" "),t.pagination.pageCount>1?n("div",{attrs:{id:"passwords__pagination"}},[n("paginate",{attrs:{"page-count":t.pagination.pageCount,"page-range":1,"margin-pages":1,"click-handler":t.setCurrentPage,containerClass:"pagination pagination-sm","page-class":"page-item","prev-class":"page-item","next-class":"page-item","page-link-class":"page-link","prev-link-class":"page-link","next-link-class":"page-link","prev-text":t.$t("Previous"),"next-text":t.$t("Next")}})],1):t._e()])},[],!1,null,null,null).exports);i.a.use(Ge);var Rn=new Ge({routes:[{path:"/",name:"home",component:bn},{path:"/login",name:"login",component:Xe},{path:"/passwords/",name:"passwords",component:jn},{path:"/password/reset",name:"passwordReset",component:Cn},{path:"/password/reset/confirm/:uid/:token",name:"passwordResetConfirm",component:Pn},{path:"*",redirect:"/"}]}),Tn={translate(t,e,n,r){return t&&e in t?this.compile(t[e],r):n?this.compile(n,r):e},compile:(t,e)=>e?t.replace(/{(\w*)}/g,(t,n)=>e.hasOwnProperty(n)?e[n]:""):t,getBestLanguage(t,e,n){if(void 0===e)return n;for(let n=0;n{const n=this.locales.hasOwnProperty(e)?Object.assign({},this.locales[e],t[e]):t[e];this.setLocale({lang:e,locale:n})})},getLang(){const t=e.languagesAvailable,n=window.navigator.userLanguage||window.navigator.language,r=e.defaultLanguage;return Tn.getBestLanguage(t,n,r)},_translate(t,e,n){return Tn.translate(this.locale,t,e,n)}}}),t.prototype.$polyglot=Mn),t.mixin({methods:{$t(t,e,n){return this.$polyglot._translate(t,e,n)}}}),t.locales=t=>{Object.keys(t).forEach(e=>{Mn.$polyglot.setLocale({lang:e,locale:t[e]})})}}},In=n(35),Dn=n(36),Fn=n(37),Bn=n(38),Un=n(39),qn=n(40),zn=n(41);i.a.use(Nn,{defaultLanguage:"en",languagesAvailable:["fr","es","de","zh","zh-CN","pt","pl"]}),i.a.locales({fr:In,es:Dn,de:Fn,zh:Bn,"zh-CN":Un,pt:qn,pl:zn}),Object(dt.sync)(ut,Rn),new i.a({el:"#lesspass",store:ut,router:Rn,render:function(t){return t(pt)}})}]); \ No newline at end of file +t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e,n){"use strict";var r=n(1),o=n(20),i=n(48),s=n(49),a=n(26);function u(t){this.defaults=t,this.interceptors={request:new i,response:new i}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method=t.method?t.method.toLowerCase():"get";var e=[s,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=a(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(t){u.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}}),r.forEach(["post","put","patch"],function(t){u.prototype[t]=function(e,n,o){return this.request(r.merge(o||{},{method:t,url:e,data:n}))}}),t.exports=u},function(t,e,n){"use strict";var r=n(1);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=o},function(t,e,n){"use strict";var r=n(1),o=n(50),i=n(21),s=n(22),a=n(57),u=n(58);function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return c(t),t.baseURL&&!a(t.url)&&(t.url=u(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||s.adapter)(t).then(function(e){return c(t),e.data=o(e.data,e.headers,t.transformResponse),e},function(e){return i(e)||(c(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,n){"use strict";var r=n(1);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){"use strict";var r=n(1);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";var r=n(25);t.exports=function(t,e,n){var o=n.config.validateStatus;!o||o(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(1),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,s={};return t?(r.forEach(t.split("\n"),function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(s[e]&&o.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}}),s):s}},function(t,e,n){"use strict";var r=n(1);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(1);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,s){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(27);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new r(t),e(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o(function(e){t=e}),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(62),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(5))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o,i,s,a,u=1,c={},l=!1,f=t.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(t);p=p&&p.setTimeout?p:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick(function(){h(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){h(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):r=function(t){setTimeout(h,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&h(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),r=function(e){t.postMessage(s+e,"*")}),p.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;nwindow.crypto.subtle.sign({name:"HMAC"},t,r(n||"")).then(t=>o(t)))}},function(t,e,n){const r=n(68);function o(t,e){const{site:n,login:o,options:i,crypto:s}=t,{counter:a}=i||{counter:1},u=n+o+a.toString(16),{iterations:c,keylen:l,digest:f}=s||{iterations:1e5,keylen:32,digest:"sha256"};return r(e,u,c,l,f)}t.exports={isSupported:function(){try{return o({site:"lesspass.com",login:"♥",options:{uppercase:!0,lowercase:!0,digits:!0,symbols:!0,length:16,counter:1},crypto:{method:"pbkdf2",iterations:1,keylen:32,digest:"sha256"}},"tHis is a g00d! password").then(t=>"e99e20abab609cc4564ef137acb540de20d9b92dcc5cda58f78ba431444ef2da"===t?Promise.resolve(!0):Promise.resolve(!1))}catch(t){return Promise.resolve(!1)}},calcEntropy:o}},function(t,e,n){const{stringToArrayBuffer:r,arrayBufferToHex:o,getAlgorithm:i}=n(28);t.exports=function(t,e,n,s,a){return window.crypto.subtle.importKey("raw",r(t),"PBKDF2",!1,["deriveKey"]).then(t=>{const o={name:"PBKDF2",salt:r(e),iterations:n,hash:i(a)};return window.crypto.subtle.deriveKey(o,t,{name:"AES-CTR",length:8*s},!0,["encrypt","decrypt"])}).then(t=>window.crypto.subtle.exportKey("raw",t).then(t=>o(t)))}},function(t,e,n){const r=n(70),o=n(71),{consumeEntropy:i}=n(29);t.exports={renderPassword:function(t,e){const n=o.getRules(e),s=o.getSetOfCharacters(n),a=i("",r(t,16),s,e.length-n.length),u=o.getOneCharPerRule(a.entropy,n);return o.insertStringPseudoRandomly(a.value,u.entropy,u.value)}}},function(t,e,n){(function(t){var n,r=function(t){"use strict";var e=1e7,n=7,o=9007199254740992,i=f(o),s=Math.log(o);function a(t,e){return void 0===t?a[0]:void 0!==e?10==+e?G(t):U(t,e):G(t)}function u(t,e){this.value=t,this.sign=e,this.isSmall=!1}function c(t){this.value=t,this.sign=t<0,this.isSmall=!0}function l(t){return-o0?Math.floor(t):Math.ceil(t)}function m(t,n){var r,o,i=t.length,s=n.length,a=new Array(i),u=0,c=e;for(o=0;o=c?1:0,a[o]=r-u*c;for(;o0&&a.push(u),a}function g(t,e){return t.length>=e.length?m(t,e):m(e,t)}function y(t,n){var r,o,i=t.length,s=new Array(i),a=e;for(o=0;o0;)s[o++]=n%a,n=Math.floor(n/a);return s}function b(t,n){var r,o,i=t.length,s=n.length,a=new Array(i),u=0,c=e;for(r=0;r0;)s[o++]=u%a,u=Math.floor(u/a);return s}function P(t,e){for(var n=[];e-- >0;)n.push(0);return n.concat(t)}function x(t,n,r){return new u(t=0;--r)i=(s=i*c+t[r])-(o=v(s/n))*n,u[r]=0|o;return[u,0|i]}function E(t,n){var r,o,i=G(n),s=t.value,l=i.value;if(0===l)throw new Error("Cannot divide by zero");if(t.isSmall)return i.isSmall?[new c(v(s/l)),new c(s%l)]:[a[0],t];if(i.isSmall){if(1===l)return[t,a[0]];if(-1==l)return[t.negate(),a[0]];var m=Math.abs(l);if(m=0;o--){for(r=d-1,y[o+f]!==m&&(r=Math.floor((y[o+f]*d+y[o+f-1])/m)),i=0,s=0,u=b.length,a=0;ac&&(i=(i+1)*h),r=Math.ceil(i/s);do{if(k(a=C(n,r),f)<=0)break;r--}while(r);l.push(r),f=b(f,a)}return l.reverse(),[p(l),p(f)]}(s,l))[0];var w=t.sign!==i.sign,_=r[1],P=t.sign;return"number"==typeof o?(w&&(o=-o),o=new c(o)):o=new u(o,w),"number"==typeof _?(P&&(_=-_),_=new c(_)):_=new u(_,P),[o,_]}function k(t,e){if(t.length!==e.length)return t.length>e.length?1:-1;for(var n=t.length-1;n>=0;n--)if(t[n]!==e[n])return t[n]>e[n]?1:-1;return 0}function A(t){var e=t.abs();return!e.isUnit()&&(!!(e.equals(2)||e.equals(3)||e.equals(5))||!(e.isEven()||e.isDivisibleBy(3)||e.isDivisibleBy(5))&&(!!e.lesser(25)||void 0))}u.prototype=Object.create(a.prototype),c.prototype=Object.create(a.prototype),u.prototype.add=function(t){var e=G(t);if(this.sign!==e.sign)return this.subtract(e.negate());var n=this.value,r=e.value;return e.isSmall?new u(y(n,Math.abs(r)),this.sign):new u(g(n,r),this.sign)},u.prototype.plus=u.prototype.add,c.prototype.add=function(t){var e=G(t),n=this.value;if(n<0!==e.sign)return this.subtract(e.negate());var r=e.value;if(e.isSmall){if(l(n+r))return new c(n+r);r=f(Math.abs(r))}return new u(y(r,Math.abs(n)),n<0)},c.prototype.plus=c.prototype.add,u.prototype.subtract=function(t){var e=G(t);if(this.sign!==e.sign)return this.add(e.negate());var n=this.value,r=e.value;return e.isSmall?w(n,Math.abs(r),this.sign):function(t,e,n){var r;return k(t,e)>=0?r=b(t,e):(r=b(e,t),n=!n),"number"==typeof(r=p(r))?(n&&(r=-r),new c(r)):new u(r,n)}(n,r,this.sign)},u.prototype.minus=u.prototype.subtract,c.prototype.subtract=function(t){var e=G(t),n=this.value;if(n<0!==e.sign)return this.add(e.negate());var r=e.value;return e.isSmall?new c(n-r):w(r,Math.abs(n),n>=0)},c.prototype.minus=c.prototype.subtract,u.prototype.negate=function(){return new u(this.value,!this.sign)},c.prototype.negate=function(){var t=this.sign,e=new c(-this.value);return e.sign=!t,e},u.prototype.abs=function(){return new u(this.value,!1)},c.prototype.abs=function(){return new c(Math.abs(this.value))},u.prototype.multiply=function(t){var n,r,o,i=G(t),s=this.value,c=i.value,l=this.sign!==i.sign;if(i.isSmall){if(0===c)return a[0];if(1===c)return this;if(-1===c)return this.negate();if((n=Math.abs(c))0?function t(e,n){var r=Math.max(e.length,n.length);if(r<=30)return _(e,n);r=Math.ceil(r/2);var o=e.slice(r),i=e.slice(0,r),s=n.slice(r),a=n.slice(0,r),u=t(i,a),c=t(o,s),l=t(g(i,o),g(a,s)),f=g(g(u,P(b(b(l,u),c),r)),P(c,2*r));return d(f),f}(s,c):_(s,c),l)},u.prototype.times=u.prototype.multiply,c.prototype._multiplyBySmall=function(t){return l(t.value*this.value)?new c(t.value*this.value):x(Math.abs(t.value),f(Math.abs(this.value)),this.sign!==t.sign)},u.prototype._multiplyBySmall=function(t){return 0===t.value?a[0]:1===t.value?this:-1===t.value?this.negate():x(Math.abs(t.value),this.value,this.sign!==t.sign)},c.prototype.multiply=function(t){return G(t)._multiplyBySmall(this)},c.prototype.times=c.prototype.multiply,u.prototype.square=function(){return new u(S(this.value),!1)},c.prototype.square=function(){var t=this.value*this.value;return l(t)?new c(t):new u(S(f(Math.abs(this.value))),!1)},u.prototype.divmod=function(t){var e=E(this,t);return{quotient:e[0],remainder:e[1]}},c.prototype.divmod=u.prototype.divmod,u.prototype.divide=function(t){return E(this,t)[0]},c.prototype.over=c.prototype.divide=u.prototype.over=u.prototype.divide,u.prototype.mod=function(t){return E(this,t)[1]},c.prototype.remainder=c.prototype.mod=u.prototype.remainder=u.prototype.mod,u.prototype.pow=function(t){var e,n,r,o=G(t),i=this.value,s=o.value;if(0===s)return a[1];if(0===i)return a[0];if(1===i)return a[1];if(-1===i)return o.isEven()?a[1]:a[-1];if(o.sign)return a[0];if(!o.isSmall)throw new Error("The exponent "+o.toString()+" is too large.");if(this.isSmall&&l(e=Math.pow(i,s)))return new c(v(e));for(n=this,r=a[1];!0&s&&(r=r.times(n),--s),0!==s;)s/=2,n=n.square();return r},c.prototype.pow=u.prototype.pow,u.prototype.modPow=function(t,e){if(t=G(t),(e=G(e)).isZero())throw new Error("Cannot take modPow with modulus 0");for(var n=a[1],r=this.mod(e);t.isPositive();){if(r.isZero())return a[0];t.isOdd()&&(n=n.multiply(r).mod(e)),t=t.divide(2),r=r.square().mod(e)}return n},c.prototype.modPow=u.prototype.modPow,u.prototype.compareAbs=function(t){var e=G(t),n=this.value,r=e.value;return e.isSmall?1:k(n,r)},c.prototype.compareAbs=function(t){var e=G(t),n=Math.abs(this.value),r=e.value;return e.isSmall?n===(r=Math.abs(r))?0:n>r?1:-1:-1},u.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=G(t),n=this.value,r=e.value;return this.sign!==e.sign?e.sign?1:-1:e.isSmall?this.sign?-1:1:k(n,r)*(this.sign?-1:1)},u.prototype.compareTo=u.prototype.compare,c.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=G(t),n=this.value,r=e.value;return e.isSmall?n==r?0:n>r?1:-1:n<0!==e.sign?n<0?-1:1:n<0?1:-1},c.prototype.compareTo=c.prototype.compare,u.prototype.equals=function(t){return 0===this.compare(t)},c.prototype.eq=c.prototype.equals=u.prototype.eq=u.prototype.equals,u.prototype.notEquals=function(t){return 0!==this.compare(t)},c.prototype.neq=c.prototype.notEquals=u.prototype.neq=u.prototype.notEquals,u.prototype.greater=function(t){return this.compare(t)>0},c.prototype.gt=c.prototype.greater=u.prototype.gt=u.prototype.greater,u.prototype.lesser=function(t){return this.compare(t)<0},c.prototype.lt=c.prototype.lesser=u.prototype.lt=u.prototype.lesser,u.prototype.greaterOrEquals=function(t){return this.compare(t)>=0},c.prototype.geq=c.prototype.greaterOrEquals=u.prototype.geq=u.prototype.greaterOrEquals,u.prototype.lesserOrEquals=function(t){return this.compare(t)<=0},c.prototype.leq=c.prototype.lesserOrEquals=u.prototype.leq=u.prototype.lesserOrEquals,u.prototype.isEven=function(){return 0==(1&this.value[0])},c.prototype.isEven=function(){return 0==(1&this.value)},u.prototype.isOdd=function(){return 1==(1&this.value[0])},c.prototype.isOdd=function(){return 1==(1&this.value)},u.prototype.isPositive=function(){return!this.sign},c.prototype.isPositive=function(){return this.value>0},u.prototype.isNegative=function(){return this.sign},c.prototype.isNegative=function(){return this.value<0},u.prototype.isUnit=function(){return!1},c.prototype.isUnit=function(){return 1===Math.abs(this.value)},u.prototype.isZero=function(){return!1},c.prototype.isZero=function(){return 0===this.value},u.prototype.isDivisibleBy=function(t){var e=G(t),n=e.value;return 0!==n&&(1===n||(2===n?this.isEven():this.mod(e).equals(a[0])))},c.prototype.isDivisibleBy=u.prototype.isDivisibleBy,u.prototype.isPrime=function(){var t=A(this);if(void 0!==t)return t;for(var e,n,o,i,s=this.abs(),u=s.prev(),c=[2,3,5,7,11,13,17,19],l=u;l.isEven();)l=l.divide(2);for(o=0;o-o?new c(t-1):new u(i,!0)};for(var L=[1];L[L.length-1]<=e;)L.push(2*L[L.length-1]);var $=L.length,j=L[$-1];function R(t){return("number"==typeof t||"string"==typeof t)&&+Math.abs(t)<=e||t instanceof u&&t.value.length<=1}function T(t,e,n){e=G(e);for(var o=t.isNegative(),i=e.isNegative(),s=o?t.not():t,a=i?e.not():e,u=[],c=[],l=!1,f=!1;!l||!f;)s.isZero()?(l=!0,u.push(o?1:0)):o?u.push(s.isEven()?1:0):u.push(s.isEven()?0:1),a.isZero()?(f=!0,c.push(i?1:0)):i?c.push(a.isEven()?1:0):c.push(a.isEven()?0:1),s=s.over(2),a=a.over(2);for(var p=[],d=0;d=$;)e=e.multiply(j),t-=$-1;return e.multiply(L[t])},c.prototype.shiftLeft=u.prototype.shiftLeft,u.prototype.shiftRight=function(t){var e;if(!R(t))throw new Error(String(t)+" is too large for shifting.");if((t=+t)<0)return this.shiftLeft(-t);for(var n=this;t>=$;){if(n.isZero())return n;n=(e=E(n,j))[1].isNegative()?e[0].prev():e[0],t-=$-1}return(e=E(n,L[t]))[1].isNegative()?e[0].prev():e[0]},c.prototype.shiftRight=u.prototype.shiftRight,u.prototype.not=function(){return this.negate().prev()},c.prototype.not=u.prototype.not,u.prototype.and=function(t){return T(this,t,function(t,e){return t&e})},c.prototype.and=u.prototype.and,u.prototype.or=function(t){return T(this,t,function(t,e){return t|e})},c.prototype.or=u.prototype.or,u.prototype.xor=function(t){return T(this,t,function(t,e){return t^e})},c.prototype.xor=u.prototype.xor;var M=1<<30,N=(e&-e)*(e&-e)|M;function I(t){var n=t.value,r="number"==typeof n?n|M:n[0]+n[1]*e|N;return r&-r}function D(t,e){return t=G(t),e=G(e),t.greater(e)?t:e}function F(t,e){return t=G(t),e=G(e),t.lesser(e)?t:e}function B(t,e){if(t=G(t).abs(),e=G(e).abs(),t.equals(e))return t;if(t.isZero())return e;if(e.isZero())return t;for(var n,r,o=a[1];t.isEven()&&e.isEven();)n=Math.min(I(t),I(e)),t=t.divide(n),e=e.divide(n),o=o.multiply(n);for(;t.isEven();)t=t.divide(I(t));do{for(;e.isEven();)e=e.divide(I(e));t.greater(e)&&(r=e,e=t,t=r),e=e.subtract(t)}while(!e.isZero());return o.isUnit()?t:t.multiply(o)}var U=function(t,e){var n=t.length;if(2<=e&&e<=36&&n<=s/Math.log(e))return new c(parseInt(t,e));e=G(e);var r,o=[],i="-"===t[0];for(r=i?1:0;r"!==t[r]);o.push(G(t.slice(l+1,r)))}}return q(o,e,i)};function q(t,e,n){var r,o=a[0],i=a[1];for(r=t.length-1;r>=0;r--)o=o.add(t[r].times(i)),i=i.times(e);return n?o.negate():o}function z(t){var e=t.value;return"number"==typeof e&&(e=[e]),1===e.length&&e[0]<=35?"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e[0]):"<"+e+">"}function H(t,e){if((e=r(e)).isZero()){if(t.isZero())return"0";throw new Error("Cannot convert nonzero numbers to base 0.")}if(e.equals(-1))return t.isZero()?"0":t.isNegative()?new Array(1-t).join("10"):"1"+new Array(+t).join("01");var n="";if(t.isNegative()&&e.isPositive()&&(n="-",t=t.abs()),e.equals(1))return t.isZero()?"0":n+new Array(+t+1).join(1);for(var o,i=[],s=t;s.isNegative()||s.compareAbs(e)>=0;){o=s.divmod(e),s=o.quotient;var a=o.remainder;a.isNegative()&&(a=e.minus(a).abs(),s=s.next()),i.push(z(a))}return i.push(z(s)),n+i.reverse().join("")}function V(t){if(l(+t)){var e=+t;if(e===v(e))return new c(e);throw"Invalid integer: "+t}var r="-"===t[0];r&&(t=t.slice(1));var o=t.split(/e/i);if(o.length>2)throw new Error("Invalid integer: "+o.join("e"));if(2===o.length){var i=o[1];if("+"===i[0]&&(i=i.slice(1)),(i=+i)!==v(i)||!l(i))throw new Error("Invalid integer: "+i+" is not a valid exponent.");var s=o[0],a=s.indexOf(".");if(a>=0&&(i-=s.length-a-1,s=s.slice(0,a)+s.slice(a+1)),i<0)throw new Error("Cannot include negative exponent part for integers");t=s+=new Array(i+1).join("0")}if(!/^([0-9][0-9]*)$/.test(t))throw new Error("Invalid integer: "+t);for(var f=[],p=t.length,h=n,m=p-h;p>0;)f.push(+t.slice(m,p)),(m-=h)<0&&(m=0),p-=h;return d(f),new u(f,r)}function G(t){return"number"==typeof t?function(t){if(l(t)){if(t!==v(t))throw new Error(t+" is not an integer.");return new c(t)}return V(t.toString())}(t):"string"==typeof t?V(t):t}u.prototype.toString=function(t){if(void 0===t&&(t=10),10!==t)return H(this,t);for(var e,n=this.value,r=n.length,o=String(n[--r]);--r>=0;)e=String(n[r]),o+="0000000".slice(e.length)+e;return(this.sign?"-":"")+o},c.prototype.toString=function(t){return void 0===t&&(t=10),10!=t?H(this,t):String(this.value)},u.prototype.valueOf=function(){return+this.toString()},u.prototype.toJSNumber=u.prototype.valueOf,c.prototype.valueOf=function(){return this.value},c.prototype.toJSNumber=c.prototype.valueOf;for(var W=0;W<1e3;W++)a[W]=new c(W),W>0&&(a[-W]=new c(-W));return a.one=a[1],a.zero=a[0],a.minusOne=a[-1],a.max=D,a.min=F,a.gcd=B,a.lcm=function(t,e){return t=G(t).abs(),e=G(e).abs(),t.divide(B(t,e)).multiply(e)},a.isInstance=function(t){return t instanceof u||t instanceof c},a.randBetween=function(t,n){var r=F(t=G(t),n=G(n)),o=D(t,n).subtract(r);if(o.isSmall)return r.add(Math.round(Math.random()*o));for(var i=[],s=!0,a=o.value.length-1;a>=0;a--){var l=s?o.value[a]:e,f=v(Math.random()*l);i.unshift(f),f?@[\\]^_`{|}~"};t.exports={getSetOfCharacters:function(t){if(void 0===t)return o.lowercase+o.uppercase+o.digits+o.symbols;let e="";return t.forEach(t=>{e+=o[t]}),e},getOneCharPerRule:function(t,e){let n="",i=t;return e.forEach(t=>{const e=r("",i,o[t],1);n+=e.value,i=e.entropy}),{value:n,entropy:i}},insertStringPseudoRandomly:function(t,e,n){let r=e,o=t;for(let t=0;tt[e])},characterSubsets:o}},function(t,e,n){"use strict";var r=n(9);n.n(r).a},function(t,e,n){"use strict";var r=n(10);n.n(r).a},function(t,e,n){"use strict";var r=n(11);n.n(r).a},function(t,e,n){"use strict";var r=n(12);n.n(r).a},function(t,e,n){"use strict";var r=n(13);n.n(r).a},function(t,e,n){"use strict";var r=n(14);n.n(r).a},function(t,e,n){"use strict";var r=n(15);n.n(r).a},function(t,e,n){"use strict";var r=n(16);n.n(r).a},function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"refreshToken",function(){return $}),n.d(r,"saveDefaultOptions",function(){return j}),n.d(r,"loadPasswordProfile",function(){return R}),n.d(r,"getPasswordFromUrlQuery",function(){return T}),n.d(r,"savePassword",function(){return M}),n.d(r,"resetPassword",function(){return N}),n.d(r,"login",function(){return I}),n.d(r,"logout",function(){return D}),n.d(r,"getPasswords",function(){return F}),n.d(r,"saveOrUpdatePassword",function(){return B}),n.d(r,"deletePassword",function(){return U}),n.d(r,"displayMessage",function(){return q}),n.d(r,"cleanMessage",function(){return z});var o={};n.r(o),n.d(o,"isAuthenticated",function(){return G}),n.d(o,"isGuest",function(){return W}),n.d(o,"passwordURL",function(){return K}),n.d(o,"isDefaultProfile",function(){return Z});var i=n(3),s=(n(42),n(43),n(0));function a(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={data:function(){return{saved:!1}},methods:{fullReload:function(){this.$store.dispatch("resetPassword"),this.$router.push({name:"home"})},logout:function(){this.$store.dispatch("logout"),this.$router.push({name:"home"})},saveOrUpdatePassword:function(){var t=this;this.$store.dispatch("saveOrUpdatePassword"),this.saved=!0,setTimeout(function(){t.saved=!1},3e3)}},computed:function(t){for(var e=1;e-1}function vt(t,e){for(var n in e)t[n]=e[n];return t}var mt={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,i=e.data;i.routerView=!0;for(var s=o.$createElement,a=n.name,u=o.$route,c=o._routerViewCache||(o._routerViewCache={}),l=0,f=!1;o&&o._routerRoot!==o;){var p=o.$vnode&&o.$vnode.data;p&&(p.routerView&&l++,p.keepAlive&&o._inactive&&(f=!0)),o=o.$parent}if(i.routerViewDepth=l,f)return s(c[a],i,r);var d=u.matched[l];if(!d)return c[a]=null,s();var h=c[a]=d.components[a];i.registerRouteInstance=function(t,e){var n=d.instances[a];(e&&n!==t||!e&&n===t)&&(d.instances[a]=e)},(i.hook||(i.hook={})).prepatch=function(t,e){d.instances[a]=e.componentInstance},i.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==d.instances[a]&&(d.instances[a]=t.componentInstance)};var v=i.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(u,d.props&&d.props[a]);if(v){v=i.props=vt({},v);var m=i.attrs=i.attrs||{};for(var g in v)h.props&&g in h.props||(m[g]=v[g],delete v[g])}return s(h,i,r)}};var gt=/[!'()*]/g,yt=function(t){return"%"+t.charCodeAt(0).toString(16)},bt=/%2C/g,wt=function(t){return encodeURIComponent(t).replace(gt,yt).replace(bt,",")},_t=decodeURIComponent;function Ct(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=_t(n.shift()),o=n.length>0?_t(n.join("=")):null;void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}),e):e}function Pt(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return wt(e);if(Array.isArray(n)){var r=[];return n.forEach(function(t){void 0!==t&&(null===t?r.push(wt(e)):r.push(wt(e)+"="+wt(t)))}),r.join("&")}return wt(e)+"="+wt(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var xt=/\/?$/;function St(t,e,n,r){var o=r&&r.options.stringifyQuery,i=e.query||{};try{i=Ot(i)}catch(t){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:At(e,o),matched:t?kt(t):[]};return n&&(s.redirectedFrom=At(n,o)),Object.freeze(s)}function Ot(t){if(Array.isArray(t))return t.map(Ot);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=Ot(t[n]);return e}return t}var Et=St(null,{path:"/"});function kt(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function At(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var o=t.hash;return void 0===o&&(o=""),(n||"/")+(e||Pt)(r)+o}function Lt(t,e){return e===Et?t===e:!!e&&(t.path&&e.path?t.path.replace(xt,"")===e.path.replace(xt,"")&&t.hash===e.hash&&$t(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&$t(t.query,e.query)&&$t(t.params,e.params)))}function $t(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){var r=t[n],o=e[n];return"object"==typeof r&&"object"==typeof o?$t(r,o):String(r)===String(o)})}var jt,Rt=[String,Object],Tt=[String,Array],Mt={name:"RouterLink",props:{to:{type:Rt,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:Tt,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),i=o.location,s=o.route,a=o.href,u={},c=n.options.linkActiveClass,l=n.options.linkExactActiveClass,f=null==c?"router-link-active":c,p=null==l?"router-link-exact-active":l,d=null==this.activeClass?f:this.activeClass,h=null==this.exactActiveClass?p:this.exactActiveClass,v=i.path?St(null,i,null,n):s;u[h]=Lt(r,v),u[d]=this.exact?u[h]:function(t,e){return 0===t.path.replace(xt,"/").indexOf(e.path.replace(xt,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,v);var m=function(t){Nt(t)&&(e.replace?n.replace(i):n.push(i))},g={click:Nt};Array.isArray(this.event)?this.event.forEach(function(t){g[t]=m}):g[this.event]=m;var y={class:u};if("a"===this.tag)y.on=g,y.attrs={href:a};else{var b=function t(e){if(e)for(var n,r=0;r=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}(o.path||""),u=e&&e.path||"/",c=a.path?Dt(a.path,u,n||o.append):u,l=function(t,e,n){void 0===e&&(e={});var r,o=n||Ct;try{r=o(t||"")}catch(t){r={}}for(var i in e)r[i]=e[i];return r}(a.query,o.query,r&&r.options.parseQuery),f=o.hash||a.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:c,query:l,hash:f}}function ae(t,e){var n=oe(t),r=n.pathList,o=n.pathMap,i=n.nameMap;function s(t,n,s){var a=se(t,n,!1,e),c=a.name;if(c){var l=i[c];if(!l)return u(null,a);var f=l.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof a.params&&(a.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in a.params)&&f.indexOf(p)>-1&&(a.params[p]=n.params[p]);return a.path=re(l.path,a.params),u(l,a,s)}if(a.path){a.params={};for(var d=0;d=t.length?n():t[o]?e(t[o],function(){r(o+1)}):r(o+1)};r(0)}function Oe(t){return function(e,n,r){var o=!1,i=0,s=null;Ee(t,function(t,e,n,a){if("function"==typeof t&&void 0===t.cid){o=!0,i++;var u,c=Le(function(e){var o;((o=e).__esModule||Ae&&"Module"===o[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:jt.extend(e),n.components[a]=e,--i<=0&&r()}),l=Le(function(t){var e="Failed to resolve async component "+a+": "+t;s||(s=ht(t)?t:new Error(e),r(s))});try{u=t(c,l)}catch(t){l(t)}if(u)if("function"==typeof u.then)u.then(c,l);else{var f=u.component;f&&"function"==typeof f.then&&f.then(c,l)}}}),o||r()}}function Ee(t,e){return ke(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function ke(t){return Array.prototype.concat.apply([],t)}var Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Le(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var $e=function(t,e){this.router=t,this.base=function(t){if(!t)if(It){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=Et,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function je(t,e,n,r){var o=Ee(t,function(t,r,o,i){var s=function(t,e){"function"!=typeof t&&(t=jt.extend(t));return t.options[e]}(t,e);if(s)return Array.isArray(s)?s.map(function(t){return n(t,r,o,i)}):n(s,r,o,i)});return ke(r?o.reverse():o)}function Re(t,e){if(e)return function(){return t.apply(e,arguments)}}$e.prototype.listen=function(t){this.cb=t},$e.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},$e.prototype.onError=function(t){this.errorCbs.push(t)},$e.prototype.transitionTo=function(t,e,n){var r=this,o=this.router.match(t,this.current);this.confirmTransition(o,function(){r.updateRoute(o),e&&e(o),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(o)}))},function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)}))})},$e.prototype.confirmTransition=function(t,e,n){var r=this,o=this.current,i=function(t){ht(t)&&(r.errorCbs.length?r.errorCbs.forEach(function(e){e(t)}):console.error(t)),n&&n(t)};if(Lt(t,o)&&t.matched.length===o.matched.length)return this.ensureURL(),i();var s=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function Fe(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Be(t){ye?Pe(Fe(t)):window.location.hash=t}function Ue(t){ye?xe(Fe(t)):window.location.replace(Fe(t))}var qe=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}($e),ze=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ae(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!ye&&!1!==t.fallback,this.fallback&&(e="hash"),It||(e="abstract"),this.mode=e,e){case"history":this.history=new Te(this,t.base);break;case"hash":this.history=new Ne(this,t.base,this.fallback);break;case"abstract":this.history=new qe(this,t.base);break;default:0}},He={currentRoute:{configurable:!0}};function Ve(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}ze.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},He.currentRoute.get=function(){return this.history&&this.history.current},ze.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)}),!this.app){this.app=t;var n=this.history;if(n instanceof Te)n.transitionTo(n.getCurrentLocation());else if(n instanceof Ne){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},ze.prototype.beforeEach=function(t){return Ve(this.beforeHooks,t)},ze.prototype.beforeResolve=function(t){return Ve(this.resolveHooks,t)},ze.prototype.afterEach=function(t){return Ve(this.afterHooks,t)},ze.prototype.onReady=function(t,e){this.history.onReady(t,e)},ze.prototype.onError=function(t){this.history.onError(t)},ze.prototype.push=function(t,e,n){this.history.push(t,e,n)},ze.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},ze.prototype.go=function(t){this.history.go(t)},ze.prototype.back=function(){this.go(-1)},ze.prototype.forward=function(){this.go(1)},ze.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},ze.prototype.resolve=function(t,e,n){var r=se(t,e=e||this.history.current,n,this),o=this.match(r,e),i=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?Ft(t+"/"+r):r}(this.history.base,i,this.mode),normalizedTo:r,resolved:o}},ze.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Et&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(ze.prototype,He),ze.install=function t(e){if(!t.installed||jt!==e){t.installed=!0,jt=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",mt),e.component("RouterLink",Mt);var o=e.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},ze.version="3.0.7",It&&window.Vue&&window.Vue.use(ze);var Ge=ze,We=n(6),Ke=n.n(We),Ze=n(33),Je={name:"masterPassword",props:{value:String,label:String,email:String,showEncryptButton:{type:Boolean,default:!1},EncryptButtonText:String},data:function(){return{fingerprint:null,icon1:"",icon2:"",icon3:"",color1:"",color2:"",color3:""}},methods:{updateValue:function(t){var e=Math.random().toString(36).substring(7);this.setFingerprint(e),this.showRealFingerprint(t),this.$refs.passwordField.value=t,this.$emit("input",t)},togglePasswordType:function(){var t=this.$refs.passwordField;"password"===t.type?t.type="text":t.type="password"},hidePassword:function(){this.$refs.passwordField.type="password"},getColor:function(t){var e=["#000000","#074750","#009191","#FF6CB6","#FFB5DA","#490092","#006CDB","#B66DFF","#6DB5FE","#B5DAFE","#920000","#924900","#DB6D00","#24FE23"];return e[parseInt(t,16)%e.length]},getIcon:function(t){var e=["fa-hashtag","fa-heart","fa-hotel","fa-university","fa-plug","fa-ambulance","fa-bus","fa-car","fa-plane","fa-rocket","fa-ship","fa-subway","fa-truck","fa-jpy","fa-eur","fa-btc","fa-usd","fa-gbp","fa-archive","fa-area-chart","fa-bed","fa-beer","fa-bell","fa-binoculars","fa-birthday-cake","fa-bomb","fa-briefcase","fa-bug","fa-camera","fa-cart-plus","fa-certificate","fa-coffee","fa-cloud","fa-coffee","fa-comment","fa-cube","fa-cutlery","fa-database","fa-diamond","fa-exclamation-circle","fa-eye","fa-flag","fa-flask","fa-futbol-o","fa-gamepad","fa-graduation-cap"];return e[parseInt(t,16)%e.length]},setFingerprint:function(t){var e=this;Ke.a.createFingerprint(t).then(function(t){e.icon1=t[0].icon,e.color1=t[0].color,e.icon2=t[1].icon,e.color2=t[1].color,e.icon3=t[2].icon,e.color3=t[2].color,e.fingerprint=t})},showRealFingerprint:n.n(Ze)()(function(t){this.setFingerprint(t)},500),encryptMasterPassword:function(){var t=this,e=this.$refs.passwordField.value;return Ke.a.generatePassword("lesspass.com",this.email,e,L).then(function(e){t.updateValue(e)})}}},Ye=(n(72),l(Je,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"masterPassword"},[n("div",{staticClass:"input-group inner-addon left-addon"},[n("label",{staticClass:"sr-only",attrs:{for:"passwordField"}},[t._v("\n "+t._s(t.label)+"\n ")]),t._v(" "),n("i",{staticClass:"fa fa-lock"}),t._v(" "),n("input",{ref:"passwordField",staticClass:"form-control",attrs:{id:"passwordField",name:"passwordField",type:"password",autocorrect:"off",autocapitalize:"off",placeholder:t.label},domProps:{value:t.value},on:{input:function(e){return t.updateValue(e.target.value)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$emit("keyupEnter")}}}),t._v(" "),t.fingerprint&&t.value?n("span",{staticClass:"input-group-btn",on:{click:t.togglePasswordType}},[n("button",{staticClass:"btn",attrs:{id:"fingerprint",type:"button",tabindex:"-1"}},[n("small",[n("i",{staticClass:"fa fa-fw",class:[t.icon1],style:{color:t.color1}}),t._v(" "),n("i",{staticClass:"fa fa-fw",class:[t.icon2],style:{color:t.color2}}),t._v(" "),n("i",{staticClass:"fa fa-fw",class:[t.icon3],style:{color:t.color3}})])])]):t._e()]),t._v(" "),t.showEncryptButton?n("button",{staticClass:"btn btn-link btn-sm p-0",class:{disabled:""===t.email},attrs:{id:"encryptMasterPassword__btn",type:"button"},on:{click:function(e){return t.encryptMasterPassword()}}},[n("small",[t._v(t._s(t.EncryptButtonText))])]):t._e()])},[],!1,null,null,null).exports),Qe={data:function(){return{email:"",password:"",baseURL:"https://lesspass.com"}},components:{MasterPassword:Ye},methods:{formIsValid:function(){return!!(this.email&&this.password&&this.baseURL)||(ct.error(this.$t("LoginFormInvalid","LessPass URL, email, and password are mandatory")),!1)},signIn:function(){var t=this;if(this.formIsValid()){var e=this.baseURL;g({email:this.email,password:this.password},{baseURL:e}).then(function(n){t.$store.dispatch("login",{token:n.token,baseURL:e}),t.$router.push({name:"home"})}).catch(function(n){void 0===n.response&&"https://lesspass.com"!==e?ct.error(t.$t("DBNotRunning","Your LessPass Database is not running")):n.response&&400===n.response.status?ct.error(t.$t("LoginIncorrectError","The email and password you entered did not match our records. Please double-check and try again.")):ct.displayGenericError()})}},register:function(){var t=this;if(this.formIsValid()){var e=this.baseURL;y({email:this.email,password:this.password},{baseURL:e}).then(function(){ct.success(t.$t("WelcomeRegister","Welcome {email}, thank you for signing up.",{email:t.email})),t.signIn()}).catch(function(e){e.response&&void 0!==e.response.data.email?(-1!==e.response.data.email[0].indexOf("already exists")&&ct.error(t.$t("EmailAlreadyExist","This email is already registered. Want to login or recover your password?")),-1!==e.response.data.email[0].indexOf("valid email")&&ct.error(t.$t("EmailInvalid","Please enter a valid email"))):ct.displayGenericError()})}}}},Xe=(n(73),l(Qe,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form",{on:{submit:function(e){return e.preventDefault(),t.signIn(e)}}},[n("div",{staticClass:"form-group"},[n("div",{staticClass:"inner-addon left-addon"},[n("i",{staticClass:"fa fa-globe"}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.baseURL,expression:"baseURL"}],staticClass:"form-control",attrs:{id:"baseURL",autocapitalize:"none",placeholder:t.$t("LessPass Database Url")},domProps:{value:t.baseURL},on:{input:function(e){e.target.composing||(t.baseURL=e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("div",{staticClass:"col-12"},[n("div",{staticClass:"inner-addon left-addon"},[n("i",{staticClass:"fa fa-user"}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],staticClass:"form-control",attrs:{id:"email",name:"username",type:"email",autocapitalize:"none",placeholder:t.$t("Email"),required:""},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})])])]),t._v(" "),n("div",{staticClass:"form-group mb-2"},[n("master-password",{attrs:{label:t.$t("Master Password"),email:t.email,showEncryptButton:!0,EncryptButtonText:t.$t("Encrypt my master password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),t._v(" "),n("div",{staticClass:"form-group row no-gutters mb-0"},[n("div",{staticClass:"col"},[n("button",{staticClass:"btn btn-primary btn-block",attrs:{id:"signInButton"}},[t._v("\n "+t._s(t.$t("Sign In"))+"\n ")])]),t._v(" "),n("div",{staticClass:"col"},[n("button",{staticClass:"btn btn-secondary btn-block",attrs:{id:"registerButton",type:"button"},on:{click:t.register}},[t._v("\n "+t._s(t.$t("Register"))+"\n ")])])]),t._v(" "),n("div",{staticClass:"form-group mb-0"},[n("button",{staticClass:"btn btn-link btn-sm p-0",attrs:{id:"login__forgot-password-btn",type:"button"},on:{click:function(e){return t.$router.push({name:"passwordReset"})}}},[n("small",[t._v(t._s(t.$t("ForgotPassword","Forgot your password?")))])])])])},[],!1,null,null,null).exports),tn=n(18),en=n.n(tn),nn=l({},function(){this.$createElement;this._self._c;return this._m(0)},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{display:"none"}},[e("label",{attrs:{for:"username"}},[e("input",{attrs:{type:"text",id:"username",name:"username",autocomplete:"username"}})]),this._v(" "),e("label",{attrs:{for:"password"}},[e("input",{attrs:{type:"password",id:"password",name:"password",autocomplete:"current-password"}})])])}],!1,null,null,null).exports,rn=n(4),on=n.n(rn),sn={name:"inputSite",props:{value:String,label:String,passwords:{type:Array,default:function(){return[]}}},mounted:function(){var t=this;this.awesomplete=new on.a(this.$refs.siteField),this.awesomplete.item=function(t,e){var n=on.a.ITEM(t.value.site,e);return n.innerHTML+=" ".concat(t.value.login),n},this.awesomplete.filter=function(t,e){return on.a.FILTER_CONTAINS(t,e)||on.a.FILTER_CONTAINS(e,t)},this.awesomplete.data=function(t){return{label:t.site,value:t}},this.awesomplete.replace=function(e){t.$refs.siteField.value=e.label,e.value.suggestion?t.$emit("suggestionSelected",e.value.site):t.$emit("passwordProfileSelected",e.value)}},computed:{site:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}},watch:{site:function(t,e){var n=function(t){var e=x(t)||t;if(/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}):(\d{1,5})$/.test(e))return[];var n=e.toLowerCase().split(".").filter(function(t){return t.length>=2});if(n.length<2)return[];var r=n[n.length-2],o=n[n.length-1];return n.reduceRight(function(t,e){var r=n.indexOf(e);if(r>=0&&rr?r:t2&&void 0!==arguments[2]?arguments[2]:"right";t.setAttribute("aria-label",e),t.setAttribute("data-balloon-visible",""),t.setAttribute("data-balloon-pos",n)}function vn(t){t.removeAttribute("aria-label"),t.removeAttribute("data-balloon-visible"),t.removeAttribute("data-balloon-pos")}function mn(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n}function gn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yn={name:"password-generator-view",components:{RemoveAutoComplete:nn,InputSite:an,MasterPassword:Ye,Options:l(dn,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"options"}},[n("div",{staticClass:"form-group row"},[n("div",{staticClass:"col-12"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("label",{attrs:{for:"types"}},[t._v(t._s(t.$t("Advanced options")))])])]),t._v(" "),n("div",{staticClass:"row",attrs:{id:"types"}},[n("div",{staticClass:"col-3"},[n("button",{staticClass:"btn btn-block btn-sm px-0",class:{"btn-primary":!0===t.password.lowercase,"btn-secondary":!1===t.password.lowercase},attrs:{id:"lowercase__btn",type:"button"},on:{click:function(e){t.password.lowercase=!t.password.lowercase}}},[t._v("\n a-z\n ")])]),t._v(" "),n("div",{staticClass:"col-3"},[n("button",{staticClass:"btn btn-block btn-sm px-0",class:{"btn-primary":!0===t.password.uppercase,"btn-secondary":!1===t.password.uppercase},attrs:{id:"uppercase__btn",type:"button"},on:{click:function(e){t.password.uppercase=!t.password.uppercase}}},[t._v("\n A-Z\n ")])]),t._v(" "),n("div",{staticClass:"col-3"},[n("button",{staticClass:"btn btn-block btn-sm px-0",class:{"btn-primary":!0===t.password.numbers,"btn-secondary":!1===t.password.numbers},attrs:{id:"numbers__btn",type:"button"},on:{click:function(e){t.password.numbers=!t.password.numbers}}},[t._v("\n 0-9\n ")])]),t._v(" "),n("div",{staticClass:"col-3"},[n("button",{staticClass:"btn btn-block btn-sm px-0",class:{"btn-primary":!0===t.password.symbols,"btn-secondary":!1===t.password.symbols},attrs:{id:"symbols__btn",type:"button"},on:{click:function(e){t.password.symbols=!t.password.symbols}}},[t._v("\n %!@\n ")])])])])]),t._v(" "),n("div",{staticClass:"form-group row mb-0"},[n("div",{staticClass:"col-5 col-sm-4"},[n("label",{attrs:{for:"passwordLength"}},[t._v(t._s(t.$t("Length")))]),t._v(" "),n("div",{staticClass:"input-group input-group-sm"},[n("span",{staticClass:"input-group-btn",on:{click:function(e){t.password.length=t.decrement(t.password.length,{min:5,max:35})}}},[t._m(0)]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.password.length,expression:"password.length",modifiers:{number:!0}}],staticClass:"form-control form-control-sm",attrs:{id:"passwordLength",type:"number",min:"5",max:"35"},domProps:{value:t.password.length},on:{input:function(e){e.target.composing||t.$set(t.password,"length",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),n("span",{staticClass:"input-group-btn",on:{click:function(e){t.password.length=t.increment(t.password.length,{min:5,max:35})}}},[t._m(1)])])]),t._v(" "),n("div",{staticClass:"col-5 col-sm-4"},[n("label",{attrs:{for:"passwordCounter","data-balloon-length":"large","data-balloon":t.$t("CounterFieldHelp","Increment this value to change the generated password without changing your master password."),"data-balloon-pos":"up"}},[t._v("\n "+t._s(t.$t("Counter"))+"\n ")]),t._v(" "),n("div",{staticClass:"input-group input-group-sm"},[n("span",{staticClass:"input-group-btn",attrs:{id:"decreaseCounter__btn"},on:{click:function(e){t.password.counter=t.decrement(t.password.counter,{min:1})}}},[t._m(2)]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.password.counter,expression:"password.counter",modifiers:{number:!0}}],staticClass:"form-control form-control-sm",attrs:{id:"passwordCounter",type:"number",min:"1"},domProps:{value:t.password.counter},on:{input:function(e){e.target.composing||t.$set(t.password,"counter",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),n("span",{staticClass:"input-group-btn",attrs:{id:"increaseCounter__btn"},on:{click:function(e){t.password.counter=t.increment(t.password.counter,{min:1})}}},[t._m(3)])])])])])},[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-primary btn-sm border-blue px-2",attrs:{id:"decreaseLength__btn",type:"button"}},[e("small",[e("i",{staticClass:"fa fa-minus"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-primary btn-sm border-blue px-2",attrs:{id:"increaseLength__btn",type:"button"}},[e("small",[e("i",{staticClass:"fa fa-plus"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-primary btn-sm border-blue px-2",attrs:{type:"button"}},[e("small",[e("i",{staticClass:"fa fa-minus"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-primary btn-sm border-blue px-2",attrs:{type:"button"}},[e("small",[e("i",{staticClass:"fa fa-plus"})])])}],!1,null,null,null).exports},computed:function(t){for(var e=1;e35&&ct.warning(this.$t("LengthDeprecationWarning","The maximum length of a password is 35 characters.")),this.cleanErrors();var o={lowercase:this.password.lowercase,uppercase:this.password.uppercase,numbers:this.password.numbers,symbols:this.password.symbols,length:this.password.length,counter:this.password.counter,version:this.password.version};return Ke.a.generatePassword(e,n,r,o).then(function(e){t.passwordGenerated=e,t.cleanFormIn30Seconds()})}ct.error(this.$t("SiteLoginMasterPasswordMandatory","Site, login, and master password fields are mandatory."))},focusBestInputField:function(){try{var t=this.$refs.site.$refs.siteField,e=this.$refs.login,n=this.$refs.masterPassword;if(t&&!t.value)return void t.focus();if(e&&!e.value)return void e.focus();n.$refs.passwordField.focus()}catch(t){console.error("Can't focus password field")}},copyPassword:function(){if(en()(this.passwordGenerated)){var t=document.getElementById("copyPasswordButton");hn(t,this.$t("Copied","copied !")),setTimeout(function(){return vn(t)},2e3)}else ct.warning(this.$t("SorryCopy","Sorry, copying only works in modern browsers."))},sharePasswordProfile:function(){if(en()(this.passwordURL)){var t=this.$t("PasswordProfileCopied","Your password profile has been copied"),e=document.getElementById("sharePasswordProfileButton");hn(e,t,"left"),setTimeout(function(){return vn(e)},2e3)}else ct.warning(this.$t("SorryCopy","Sorry, copying only works in modern browsers."))},setSite:function(t){this.password.site=t},setPasswordProfile:function(t){var e=this;this.$store.dispatch("savePassword",{password:t}).then(function(){e.focusBestInputField()})}}},bn=(n(76),l(yn,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form",{attrs:{id:"password-generator",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.generatePassword(e)}}},[n("div",{staticClass:"form-group"},[n("input-site",{ref:"site",attrs:{passwords:t.passwords,label:t.$t("Site")},on:{suggestionSelected:t.setSite,passwordProfileSelected:t.setPasswordProfile},model:{value:t.password.site,callback:function(e){t.$set(t.password,"site",e)},expression:"password.site"}})],1),t._v(" "),n("remove-auto-complete"),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{staticClass:"sr-only",attrs:{for:"login"}},[t._v(t._s(t.$t("Login")))]),t._v(" "),n("div",{staticClass:"inner-addon left-addon"},[n("i",{staticClass:"fa fa-user"}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password.login,expression:"password.login"}],ref:"login",staticClass:"form-control",attrs:{id:"login",name:"login",autocomplete:"off",autocorrect:"off",autocapitalize:"none",placeholder:t.$t("Login")},domProps:{value:t.password.login},on:{input:function(e){e.target.composing||t.$set(t.password,"login",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group"},[n("master-password",{ref:"masterPassword",attrs:{label:t.$t("Master Password")},on:{generatePassword:t.generatePassword},model:{value:t.masterPassword,callback:function(e){t.masterPassword=e},expression:"masterPassword"}})],1),t._v(" "),n("div",{staticClass:"form-group",class:{"mb-0":!t.showOptions}},[t.passwordGenerated?t._e():n("div",[n("button",{staticClass:"btn btn-primary border-blue",attrs:{id:"generatePassword__btn",type:"submit"}},[t._v("\n "+t._s(t.$t("Generate"))+"\n ")]),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:!t.passwordGenerated,expression:"!passwordGenerated"}],staticClass:"btn btn-secondary pull-right showOptions__btn",attrs:{type:"button"},on:{click:function(e){t.showOptions=!t.showOptions}}},[n("i",{staticClass:"fa fa-sliders"})])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.passwordGenerated,expression:"passwordGenerated"}],staticClass:"btn-group"},[n("div",{staticClass:"input-group"},[n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-primary border-blue",attrs:{id:"copyPasswordButton",type:"button"},on:{click:function(e){return t.copyPassword()}}},[n("i",{staticClass:"fa fa-clipboard"})])]),t._v(" "),n("input",{ref:"passwordGenerated",staticClass:"form-control",attrs:{id:"generated-password",type:"password",tabindex:"-1"},domProps:{value:t.passwordGenerated}}),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-secondary",attrs:{id:"revealGeneratedPassword",type:"button"},on:{click:function(e){return t.togglePasswordType(t.$refs.passwordGenerated)}}},[n("i",{staticClass:"fa fa-eye"})])]),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-secondary",attrs:{id:"sharePasswordProfileButton",type:"button"},on:{click:function(e){return t.sharePasswordProfile()}}},[n("i",{staticClass:"fa fa-share-alt pointer"})])]),t._v(" "),n("span",{staticClass:"input-group-btn"},[n("button",{staticClass:"btn btn-secondary showOptions__btn",attrs:{type:"button"},on:{click:function(e){t.showOptions=!t.showOptions}}},[n("i",{staticClass:"fa fa-sliders"})])])])])]),t._v(" "),t.showOptions||!t.isDefaultProfile?n("options"):t._e()],1)},[],!1,null,null,null).exports);function wn(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n}function _n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Cn=l({data:function(){return{email:""}},computed:function(t){for(var e=1;e0?n("div",[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[t._v("\n "+t._s(t.$t("NoMatchFor","Oops! There are no matches for"))+' "'+t._s(t.searchQuery)+'".\n '+t._s(t.$t("UpdateYourSearch","Please try broadening your search."))+"\n ")])])]):t._e(),t._v(" "),t._l(t.filteredPasswords,function(e){return n("password-profile",{key:e.id,attrs:{password:e},on:{deleted:function(e){t.pagination.currentPage=1}}})})],2),t._v(" "),t.pagination.pageCount>1?n("div",{attrs:{id:"passwords__pagination"}},[n("paginate",{attrs:{"page-count":t.pagination.pageCount,"page-range":1,"margin-pages":1,"click-handler":t.setCurrentPage,containerClass:"pagination pagination-sm","page-class":"page-item","prev-class":"page-item","next-class":"page-item","page-link-class":"page-link","prev-link-class":"page-link","next-link-class":"page-link","prev-text":t.$t("Previous"),"next-text":t.$t("Next")}})],1):t._e()])},[],!1,null,null,null).exports);i.a.use(Ge);var Rn=new Ge({routes:[{path:"/",name:"home",component:bn},{path:"/login",name:"login",component:Xe},{path:"/passwords/",name:"passwords",component:jn},{path:"/password/reset",name:"passwordReset",component:Cn},{path:"/password/reset/confirm/:uid/:token",name:"passwordResetConfirm",component:Pn},{path:"*",redirect:"/"}]}),Tn={translate(t,e,n,r){return t&&e in t?this.compile(t[e],r):n?this.compile(n,r):e},compile:(t,e)=>e?t.replace(/{(\w*)}/g,(t,n)=>e.hasOwnProperty(n)?e[n]:""):t,getBestLanguage(t,e,n){if(void 0===e)return n;for(let n=0;n{const n=this.locales.hasOwnProperty(e)?Object.assign({},this.locales[e],t[e]):t[e];this.setLocale({lang:e,locale:n})})},getLang(){const t=e.languagesAvailable,n=window.navigator.userLanguage||window.navigator.language,r=e.defaultLanguage;return Tn.getBestLanguage(t,n,r)},_translate(t,e,n){return Tn.translate(this.locale,t,e,n)}}}),t.prototype.$polyglot=Mn),t.mixin({methods:{$t(t,e,n){return this.$polyglot._translate(t,e,n)}}}),t.locales=t=>{Object.keys(t).forEach(e=>{Mn.$polyglot.setLocale({lang:e,locale:t[e]})})}}},In=n(35),Dn=n(36),Fn=n(37),Bn=n(38),Un=n(39),qn=n(40),zn=n(41);i.a.use(Nn,{defaultLanguage:"en",languagesAvailable:["fr","es","de","zh","zh-CN","pt","pl"]}),i.a.locales({fr:In,es:Dn,de:Fn,zh:Bn,"zh-CN":Un,pt:qn,pl:zn}),Object(dt.sync)(ut,Rn),new i.a({el:"#lesspass",store:ut,router:Rn,render:function(t){return t(pt)}})}]); \ No newline at end of file diff --git a/packages/lesspass-pure/src/services/tooltip.js b/packages/lesspass-pure/src/services/tooltip.js index c1512de..6e606c9 100644 --- a/packages/lesspass-pure/src/services/tooltip.js +++ b/packages/lesspass-pure/src/services/tooltip.js @@ -1,11 +1,11 @@ export function showTooltip(element, message, position = "right") { - element.setAttribute("data-balloon", message); + element.setAttribute("aria-label", message); element.setAttribute("data-balloon-visible", ""); element.setAttribute("data-balloon-pos", position); } export function hideTooltip(element) { - element.removeAttribute("data-balloon"); + element.removeAttribute("aria-label"); element.removeAttribute("data-balloon-visible"); element.removeAttribute("data-balloon-pos"); }