Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

lesspass.min.js 48 KiB

12
  1. !function(t){function r(e){if(n[e])return n[e].exports;var i=n[e]={exports:{},id:e,loaded:!1};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}var n={};return r.m=t,r.c=n,r.p="",r(0)}([function(t,r,n){t.exports=n(1)},function(t,r,n){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}var i=n(2),o=e(i);!function(){function r(t,r,o,u){return new Promise(function(a,h){t&&r&&o||h("generatePassword invalid parameter"),n(t,r).then(function(t){var r=e(t,o,u),n=i(u.password.settings);a(s(r,n))})})}function n(t,r){return new Promise(function(n,e){t&&r||e("encryptLogin parameter could not be empty");var i=8192,s=32;o["default"].pbkdf2(r,t,i,s,"sha256",function(t,r){t?e("error in pbkdf2"):n(r.toString("hex"))})})}function e(t,r){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],e=n.password,i=void 0===e?{length:12}:e,s=n.counter,u=void 0===s?1:s,a=r+u.toString(),h=o["default"].createHmac("sha256",t).update(a).digest("hex");return h.substring(0,i.length)}function i(){var t=arguments.length<=0||void 0===arguments[0]?["strong"]:arguments[0],r={lowercase:{value:"vc",order:1},uppercase:{value:"VC",order:2},numbers:{value:"n",order:3},symbols:{value:"s",order:4},strong:{value:"Cvcvns",order:5}};return t.map(function(t){return r[t]}).sort(function(t,r){return t.order>r.order}).map(function(t){return t.value}).join("")}function s(t,r){var n="";return u(t).forEach(function(t,e){var i=a(r,e);n+=h(i,t)}),n}function u(t){for(var r=[],n=0;n<t.length;n++)r.push(t.charCodeAt(n));return r}function a(t,r){return t[r%t.length]}function h(t,r){var n={V:"AEIOUY",C:"BCDFGHJKLMNPQRSTVWXZ",v:"aeiouy",c:"bcdfghjklmnpqrstvwxz",A:"AEIOUYBCDFGHJKLMNPQRSTVWXZ",a:"AEIOUYaeiouyBCDFGHJKLMNPQRSTVWXZbcdfghjklmnpqrstvwxz",n:"0123456789",s:"@&%?,=[]_:-+*$#!'^~;()/.",x:"AEIOUYaeiouyBCDFGHJKLMNPQRSTVWXZbcdfghjklmnpqrstvwxz0123456789@&%?,=[]_:-+*$#!'^~;()/."},e=n[t];return e[r%e.length]}var f={generatePassword:r,_encryptLogin:n,_deriveHash:e,_prettyPrint:s,_getTemplate:i,_getCharType:a,_getPasswordChar:h,_string2charCodes:u};"undefined"==typeof window?"undefined"!=typeof t&&"undefined"!=typeof t.exports?t.exports=f:console.error("cannot load properly lesspass"):window.lesspass=f}()},function(t,r,n){(function(t){function e(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}function i(t,r){for(var n in t)r(t[n],n)}var o=n(7);r.createHash=n(9),r.createHmac=n(22),r.randomBytes=function(r,n){if(!n||!n.call)return new t(o(r));try{n.call(this,void 0,new t(o(r)))}catch(e){n(e)}},r.getHashes=function(){return["sha1","sha256","sha512","md5","rmd160"]};var s=n(23)(r);r.pbkdf2=s.pbkdf2,r.pbkdf2Sync=s.pbkdf2Sync,i(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman"],function(t){r[t]=function(){e("sorry,",t,"is not implemented yet")}})}).call(r,n(3).Buffer)},function(t,r,n){(function(t,e){"use strict";function i(){function t(){}try{var r=new Uint8Array(1);return r.foo=function(){return 42},r.constructor=t,42===r.foo()&&r.constructor===t&&"function"==typeof r.subarray&&0===r.subarray(1,1).byteLength}catch(n){return!1}}function o(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function t(r){return this instanceof t?(t.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof r?s(this,r):"string"==typeof r?u(this,r,arguments.length>1?arguments[1]:"utf8"):a(this,r)):arguments.length>1?new t(r,arguments[1]):new t(r)}function s(r,n){if(r=g(r,n<0?0:0|y(n)),!t.TYPED_ARRAY_SUPPORT)for(var e=0;e<n;e++)r[e]=0;return r}function u(t,r,n){"string"==typeof n&&""!==n||(n="utf8");var e=0|w(r,n);return t=g(t,e),t.write(r,n),t}function a(r,n){if(t.isBuffer(n))return h(r,n);if(X(n))return f(r,n);if(null==n)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(n.buffer instanceof ArrayBuffer)return c(r,n);if(n instanceof ArrayBuffer)return l(r,n)}return n.length?p(r,n):d(r,n)}function h(t,r){var n=0|y(r.length);return t=g(t,n),r.copy(t,0,0,n),t}function f(t,r){var n=0|y(r.length);t=g(t,n);for(var e=0;e<n;e+=1)t[e]=255&r[e];return t}function c(t,r){var n=0|y(r.length);t=g(t,n);for(var e=0;e<n;e+=1)t[e]=255&r[e];return t}function l(r,n){return t.TYPED_ARRAY_SUPPORT?(n.byteLength,r=t._augment(new Uint8Array(n))):r=c(r,new Uint8Array(n)),r}function p(t,r){var n=0|y(r.length);t=g(t,n);for(var e=0;e<n;e+=1)t[e]=255&r[e];return t}function d(t,r){var n,e=0;"Buffer"===r.type&&X(r.data)&&(n=r.data,e=0|y(n.length)),t=g(t,e);for(var i=0;i<e;i+=1)t[i]=255&n[i];return t}function g(r,n){t.TYPED_ARRAY_SUPPORT?(r=t._augment(new Uint8Array(n)),r.__proto__=t.prototype):(r.length=n,r._isBuffer=!0);var e=0!==n&&n<=t.poolSize>>>1;return e&&(r.parent=K),r}function y(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function _(r,n){if(!(this instanceof _))return new _(r,n);var e=new t(r,n);return delete e.parent,e}function w(t,r){"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var e=!1;;)switch(r){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(t).length;default:if(e)return H(t).length;r=(""+r).toLowerCase(),e=!0}}function v(t,r,n){var e=!1;if(r=0|r,n=void 0===n||n===1/0?this.length:0|n,t||(t="utf8"),r<0&&(r=0),n>this.length&&(n=this.length),n<=r)return"";for(;;)switch(t){case"hex":return x(this,r,n);case"utf8":case"utf-8":return R(this,r,n);case"ascii":return P(this,r,n);case"binary":return T(this,r,n);case"base64":return S(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,r,n);default:if(e)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),e=!0}}function E(t,r,n,e){n=Number(n)||0;var i=t.length-n;e?(e=Number(e),e>i&&(e=i)):e=i;var o=r.length;if(o%2!==0)throw new Error("Invalid hex string");e>o/2&&(e=o/2);for(var s=0;s<e;s++){var u=parseInt(r.substr(2*s,2),16);if(isNaN(u))throw new Error("Invalid hex string");t[n+s]=u}return s}function b(t,r,n,e){return G(H(r,t.length-n),t,n,e)}function m(t,r,n,e){return G(J(r),t,n,e)}function B(t,r,n,e){return m(t,r,n,e)}function A(t,r,n,e){return G(q(r),t,n,e)}function I(t,r,n,e){return G(V(r,t.length-n),t,n,e)}function S(t,r,n){return 0===r&&n===t.length?Z.fromByteArray(t):Z.fromByteArray(t.slice(r,n))}function R(t,r,n){n=Math.min(t.length,n);for(var e=[],i=r;i<n;){var o=t[i],s=null,u=o>239?4:o>223?3:o>191?2:1;if(i+u<=n){var a,h,f,c;switch(u){case 1:o<128&&(s=o);break;case 2:a=t[i+1],128===(192&a)&&(c=(31&o)<<6|63&a,c>127&&(s=c));break;case 3:a=t[i+1],h=t[i+2],128===(192&a)&&128===(192&h)&&(c=(15&o)<<12|(63&a)<<6|63&h,c>2047&&(c<55296||c>57343)&&(s=c));break;case 4:a=t[i+1],h=t[i+2],f=t[i+3],128===(192&a)&&128===(192&h)&&128===(192&f)&&(c=(15&o)<<18|(63&a)<<12|(63&h)<<6|63&f,c>65535&&c<1114112&&(s=c))}}null===s?(s=65533,u=1):s>65535&&(s-=65536,e.push(s>>>10&1023|55296),s=56320|1023&s),e.push(s),i+=u}return U(e)}function U(t){var r=t.length;if(r<=Q)return String.fromCharCode.apply(String,t);for(var n="",e=0;e<r;)n+=String.fromCharCode.apply(String,t.slice(e,e+=Q));return n}function P(t,r,n){var e="";n=Math.min(t.length,n);for(var i=r;i<n;i++)e+=String.fromCharCode(127&t[i]);return e}function T(t,r,n){var e="";n=Math.min(t.length,n);for(var i=r;i<n;i++)e+=String.fromCharCode(t[i]);return e}function x(t,r,n){var e=t.length;(!r||r<0)&&(r=0),(!n||n<0||n>e)&&(n=e);for(var i="",o=r;o<n;o++)i+=F(t[o]);return i}function L(t,r,n){for(var e=t.slice(r,n),i="",o=0;o<e.length;o+=2)i+=String.fromCharCode(e[o]+256*e[o+1]);return i}function O(t,r,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>n)throw new RangeError("Trying to access beyond buffer length")}function D(r,n,e,i,o,s){if(!t.isBuffer(r))throw new TypeError("buffer must be a Buffer instance");if(n>o||n<s)throw new RangeError("value is out of bounds");if(e+i>r.length)throw new RangeError("index out of range")}function k(t,r,n,e){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-n,2);i<o;i++)t[n+i]=(r&255<<8*(e?i:1-i))>>>8*(e?i:1-i)}function Y(t,r,n,e){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-n,4);i<o;i++)t[n+i]=r>>>8*(e?i:3-i)&255}function C(t,r,n,e,i,o){if(r>i||r<o)throw new RangeError("value is out of bounds");if(n+e>t.length)throw new RangeError("index out of range");if(n<0)throw new RangeError("index out of range")}function M(t,r,n,e,i){return i||C(t,r,n,4,3.4028234663852886e38,-3.4028234663852886e38),$.write(t,r,n,e,23,4),n+4}function z(t,r,n,e,i){return i||C(t,r,n,8,1.7976931348623157e308,-1.7976931348623157e308),$.write(t,r,n,e,52,8),n+8}function j(t){if(t=N(t).replace(tt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function N(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function F(t){return t<16?"0"+t.toString(16):t.toString(16)}function H(t,r){r=r||1/0;for(var n,e=t.length,i=null,o=[],s=0;s<e;s++){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(s+1===e){(r-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(r-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((r-=1)<0)break;o.push(n)}else if(n<2048){if((r-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((r-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function J(t){for(var r=[],n=0;n<t.length;n++)r.push(255&t.charCodeAt(n));return r}function V(t,r){for(var n,e,i,o=[],s=0;s<t.length&&!((r-=2)<0);s++)n=t.charCodeAt(s),e=n>>8,i=n%256,o.push(i),o.push(e);return o}function q(t){return Z.toByteArray(j(t))}function G(t,r,n,e){for(var i=0;i<e&&!(i+n>=r.length||i>=t.length);i++)r[i+n]=t[i];return i}var Z=n(4),$=n(5),X=n(6);r.Buffer=t,r.SlowBuffer=_,r.INSPECT_MAX_BYTES=50,t.poolSize=8192;var K={};t.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:i(),t.TYPED_ARRAY_SUPPORT?(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array):(t.prototype.length=void 0,t.prototype.parent=void 0),t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(r,n){if(!t.isBuffer(r)||!t.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(r===n)return 0;for(var e=r.length,i=n.length,o=0,s=Math.min(e,i);o<s&&r[o]===n[o];)++o;return o!==s&&(e=r[o],i=n[o]),e<i?-1:i<e?1:0},t.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(r,n){if(!X(r))throw new TypeError("list argument must be an Array of Buffers.");if(0===r.length)return new t(0);var e;if(void 0===n)for(n=0,e=0;e<r.length;e++)n+=r[e].length;var i=new t(n),o=0;for(e=0;e<r.length;e++){var s=r[e];s.copy(i,o),o+=s.length}return i},t.byteLength=w,t.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?R(this,0,t):v.apply(this,arguments)},t.prototype.equals=function(r){if(!t.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r||0===t.compare(this,r)},t.prototype.inspect=function(){var t="",n=r.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},t.prototype.compare=function(r){if(!t.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?0:t.compare(this,r)},t.prototype.indexOf=function(r,n){function e(t,r,n){for(var e=-1,i=0;n+i<t.length;i++)if(t[n+i]===r[e===-1?0:i-e]){if(e===-1&&(e=i),i-e+1===r.length)return n+e}else e=-1;return-1}if(n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n>>=0,0===this.length)return-1;if(n>=this.length)return-1;if(n<0&&(n=Math.max(this.length+n,0)),"string"==typeof r)return 0===r.length?-1:String.prototype.indexOf.call(this,r,n);if(t.isBuffer(r))return e(this,r,n);if("number"==typeof r)return t.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,r,n):e(this,[r],n);throw new TypeError("val must be string, number or Buffer")},t.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},t.prototype.set=function(t,r){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,r)},t.prototype.write=function(t,r,n,e){if(void 0===r)e="utf8",n=this.length,r=0;else if(void 0===n&&"string"==typeof r)e=r,n=this.length,r=0;else if(isFinite(r))r=0|r,isFinite(n)?(n=0|n,void 0===e&&(e="utf8")):(e=n,n=void 0);else{var i=e;e=r,r=0|n,n=i}var o=this.length-r;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("attempt to write outside buffer bounds");e||(e="utf8");for(var s=!1;;)switch(e){case"hex":return E(this,t,r,n);case"utf8":case"utf-8":return b(this,t,r,n);case"ascii":return m(this,t,r,n);case"binary":return B(this,t,r,n);case"base64":return A(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,r,n);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),s=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;t.prototype.slice=function(r,n){var e=this.length;r=~~r,n=void 0===n?e:~~n,r<0?(r+=e,r<0&&(r=0)):r>e&&(r=e),n<0?(n+=e,n<0&&(n=0)):n>e&&(n=e),n<r&&(n=r);var i;if(t.TYPED_ARRAY_SUPPORT)i=t._augment(this.subarray(r,n));else{var o=n-r;i=new t(o,(void 0));for(var s=0;s<o;s++)i[s]=this[s+r]}return i.length&&(i.parent=this.parent||this),i},t.prototype.readUIntLE=function(t,r,n){t=0|t,r=0|r,n||O(t,r,this.length);for(var e=this[t],i=1,o=0;++o<r&&(i*=256);)e+=this[t+o]*i;return e},t.prototype.readUIntBE=function(t,r,n){t=0|t,r=0|r,n||O(t,r,this.length);for(var e=this[t+--r],i=1;r>0&&(i*=256);)e+=this[t+--r]*i;return e},t.prototype.readUInt8=function(t,r){return r||O(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,r){return r||O(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,r){return r||O(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,r){return r||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,r){return r||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,r,n){t=0|t,r=0|r,n||O(t,r,this.length);for(var e=this[t],i=1,o=0;++o<r&&(i*=256);)e+=this[t+o]*i;return i*=128,e>=i&&(e-=Math.pow(2,8*r)),e},t.prototype.readIntBE=function(t,r,n){t=0|t,r=0|r,n||O(t,r,this.length);for(var e=r,i=1,o=this[t+--e];e>0&&(i*=256);)o+=this[t+--e]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o},t.prototype.readInt8=function(t,r){return r||O(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},t.prototype.readInt16LE=function(t,r){r||O(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(t,r){r||O(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(t,r){return r||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,r){return r||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,r){return r||O(t,4,this.length),$.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,r){return r||O(t,4,this.length),$.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,r){return r||O(t,8,this.length),$.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,r){return r||O(t,8,this.length),$.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,r,n,e){t=+t,r=0|r,n=0|n,e||D(this,t,r,n,Math.pow(2,8*n),0);var i=1,o=0;for(this[r]=255&t;++o<n&&(i*=256);)this[r+o]=t/i&255;return r+n},t.prototype.writeUIntBE=function(t,r,n,e){t=+t,r=0|r,n=0|n,e||D(this,t,r,n,Math.pow(2,8*n),0);var i=n-1,o=1;for(this[r+i]=255&t;--i>=0&&(o*=256);)this[r+i]=t/o&255;return r+n},t.prototype.writeUInt8=function(r,n,e){return r=+r,n=0|n,e||D(this,r,n,1,255,0),t.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[n]=255&r,n+1},t.prototype.writeUInt16LE=function(r,n,e){return r=+r,n=0|n,e||D(this,r,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=255&r,this[n+1]=r>>>8):k(this,r,n,!0),n+2},t.prototype.writeUInt16BE=function(r,n,e){return r=+r,n=0|n,e||D(this,r,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=r>>>8,this[n+1]=255&r):k(this,r,n,!1),n+2},t.prototype.writeUInt32LE=function(r,n,e){return r=+r,n=0|n,e||D(this,r,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n+3]=r>>>24,this[n+2]=r>>>16,this[n+1]=r>>>8,this[n]=255&r):Y(this,r,n,!0),n+4},t.prototype.writeUInt32BE=function(r,n,e){return r=+r,n=0|n,e||D(this,r,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=255&r):Y(this,r,n,!1),n+4},t.prototype.writeIntLE=function(t,r,n,e){if(t=+t,r=0|r,!e){var i=Math.pow(2,8*n-1);D(this,t,r,n,i-1,-i)}var o=0,s=1,u=t<0?1:0;for(this[r]=255&t;++o<n&&(s*=256);)this[r+o]=(t/s>>0)-u&255;return r+n},t.prototype.writeIntBE=function(t,r,n,e){if(t=+t,r=0|r,!e){var i=Math.pow(2,8*n-1);D(this,t,r,n,i-1,-i)}var o=n-1,s=1,u=t<0?1:0;for(this[r+o]=255&t;--o>=0&&(s*=256);)this[r+o]=(t/s>>0)-u&255;return r+n},t.prototype.writeInt8=function(r,n,e){return r=+r,n=0|n,e||D(this,r,n,1,127,-128),t.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[n]=255&r,n+1},t.prototype.writeInt16LE=function(r,n,e){return r=+r,n=0|n,e||D(this,r,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=255&r,this[n+1]=r>>>8):k(this,r,n,!0),n+2},t.prototype.writeInt16BE=function(r,n,e){return r=+r,n=0|n,e||D(this,r,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=r>>>8,this[n+1]=255&r):k(this,r,n,!1),n+2},t.prototype.writeInt32LE=function(r,n,e){return r=+r,n=0|n,e||D(this,r,n,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[n]=255&r,this[n+1]=r>>>8,this[n+2]=r>>>16,this[n+3]=r>>>24):Y(this,r,n,!0),n+4},t.prototype.writeInt32BE=function(r,n,e){return r=+r,n=0|n,e||D(this,r,n,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),t.TYPED_ARRAY_SUPPORT?(this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=255&r):Y(this,r,n,!1),n+4},t.prototype.writeFloatLE=function(t,r,n){return M(this,t,r,!0,n)},t.prototype.writeFloatBE=function(t,r,n){return M(this,t,r,!1,n)},t.prototype.writeDoubleLE=function(t,r,n){return z(this,t,r,!0,n)},t.prototype.writeDoubleBE=function(t,r,n){return z(this,t,r,!1,n)},t.prototype.copy=function(r,n,e,i){if(e||(e=0),i||0===i||(i=this.length),n>=r.length&&(n=r.length),n||(n=0),i>0&&i<e&&(i=e),i===e)return 0;if(0===r.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-n<i-e&&(i=r.length-n+e);var o,s=i-e;if(this===r&&e<n&&n<i)for(o=s-1;o>=0;o--)r[o+n]=this[o+e];else if(s<1e3||!t.TYPED_ARRAY_SUPPORT)for(o=0;o<s;o++)r[o+n]=this[o+e];else r._set(this.subarray(e,e+s),n);return s},t.prototype.fill=function(t,r,n){if(t||(t=0),r||(r=0),n||(n=this.length),n<r)throw new RangeError("end < start");if(n!==r&&0!==this.length){if(r<0||r>=this.length)throw new RangeError("start out of bounds");if(n<0||n>this.length)throw new RangeError("end out of bounds");var e;if("number"==typeof t)for(e=r;e<n;e++)this[e]=t;else{var i=H(t.toString()),o=i.length;for(e=r;e<n;e++)this[e]=i[e%o]}return this}},t.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(t.TYPED_ARRAY_SUPPORT)return new t(this).buffer;for(var r=new Uint8Array(this.length),n=0,e=r.length;n<e;n+=1)r[n]=this[n];return r.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var W=t.prototype;t._augment=function(r){return r.constructor=t,r._isBuffer=!0,r._set=r.set,r.get=W.get,r.set=W.set,r.write=W.write,r.toString=W.toString,r.toLocaleString=W.toString,r.toJSON=W.toJSON,r.equals=W.equals,r.compare=W.compare,r.indexOf=W.indexOf,r.copy=W.copy,r.slice=W.slice,r.readUIntLE=W.readUIntLE,r.readUIntBE=W.readUIntBE,r.readUInt8=W.readUInt8,r.readUInt16LE=W.readUInt16LE,r.readUInt16BE=W.readUInt16BE,r.readUInt32LE=W.readUInt32LE,r.readUInt32BE=W.readUInt32BE,r.readIntLE=W.readIntLE,r.readIntBE=W.readIntBE,r.readInt8=W.readInt8,r.readInt16LE=W.readInt16LE,r.readInt16BE=W.readInt16BE,r.readInt32LE=W.readInt32LE,r.readInt32BE=W.readInt32BE,r.readFloatLE=W.readFloatLE,r.readFloatBE=W.readFloatBE,r.readDoubleLE=W.readDoubleLE,r.readDoubleBE=W.readDoubleBE,r.writeUInt8=W.writeUInt8,r.writeUIntLE=W.writeUIntLE,r.writeUIntBE=W.writeUIntBE,r.writeUInt16LE=W.writeUInt16LE,r.writeUInt16BE=W.writeUInt16BE,r.writeUInt32LE=W.writeUInt32LE,r.writeUInt32BE=W.writeUInt32BE,r.writeIntLE=W.writeIntLE,r.writeIntBE=W.writeIntBE,r.writeInt8=W.writeInt8,r.writeInt16LE=W.writeInt16LE,r.writeInt16BE=W.writeInt16BE,r.writeInt32LE=W.writeInt32LE,r.writeInt32BE=W.writeInt32BE,r.writeFloatLE=W.writeFloatLE,r.writeFloatBE=W.writeFloatBE,r.writeDoubleLE=W.writeDoubleLE,r.writeDoubleBE=W.writeDoubleBE,r.fill=W.fill,r.inspect=W.inspect,r.toArrayBuffer=W.toArrayBuffer,r};var tt=/[^+\/0-9A-Za-z-_]/g}).call(r,n(3).Buffer,function(){return this}())},function(t,r,n){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function r(t){var r=t.charCodeAt(0);return r===s||r===c?62:r===u||r===l?63:r<a?-1:r<a+10?r-a+26+26:r<f+26?r-f:r<h+26?r-h+26:void 0}function n(t){function n(t){h[c++]=t}var e,i,s,u,a,h;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=t.length;a="="===t.charAt(f-2)?2:"="===t.charAt(f-1)?1:0,h=new o(3*t.length/4-a),s=a>0?t.length-4:t.length;var c=0;for(e=0,i=0;e<s;e+=4,i+=3)u=r(t.charAt(e))<<18|r(t.charAt(e+1))<<12|r(t.charAt(e+2))<<6|r(t.charAt(e+3)),n((16711680&u)>>16),n((65280&u)>>8),n(255&u);return 2===a?(u=r(t.charAt(e))<<2|r(t.charAt(e+1))>>4,n(255&u)):1===a&&(u=r(t.charAt(e))<<10|r(t.charAt(e+1))<<4|r(t.charAt(e+2))>>2,n(u>>8&255),n(255&u)),h}function i(t){function r(t){return e.charAt(t)}function n(t){return r(t>>18&63)+r(t>>12&63)+r(t>>6&63)+r(63&t)}var i,o,s,u=t.length%3,a="";for(i=0,s=t.length-u;i<s;i+=3)o=(t[i]<<16)+(t[i+1]<<8)+t[i+2],a+=n(o);switch(u){case 1:o=t[t.length-1],a+=r(o>>2),a+=r(o<<4&63),a+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1],a+=r(o>>10),a+=r(o>>4&63),a+=r(o<<2&63),a+="="}return a}var o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="+".charCodeAt(0),u="/".charCodeAt(0),a="0".charCodeAt(0),h="a".charCodeAt(0),f="A".charCodeAt(0),c="-".charCodeAt(0),l="_".charCodeAt(0);t.toByteArray=n,t.fromByteArray=i}(r)},function(t,r){r.read=function(t,r,n,e,i){var o,s,u=8*i-e-1,a=(1<<u)-1,h=a>>1,f=-7,c=n?i-1:0,l=n?-1:1,p=t[r+c];for(c+=l,o=p&(1<<-f)-1,p>>=-f,f+=u;f>0;o=256*o+t[r+c],c+=l,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=e;f>0;s=256*s+t[r+c],c+=l,f-=8);if(0===o)o=1-h;else{if(o===a)return s?NaN:(p?-1:1)*(1/0);s+=Math.pow(2,e),o-=h}return(p?-1:1)*s*Math.pow(2,o-e)},r.write=function(t,r,n,e,i,o){var s,u,a,h=8*o-i-1,f=(1<<h)-1,c=f>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=e?0:o-1,d=e?1:-1,g=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,s=f):(s=Math.floor(Math.log(r)/Math.LN2),r*(a=Math.pow(2,-s))<1&&(s--,a*=2),r+=s+c>=1?l/a:l*Math.pow(2,1-c),r*a>=2&&(s++,a/=2),s+c>=f?(u=0,s=f):s+c>=1?(u=(r*a-1)*Math.pow(2,i),s+=c):(u=r*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;t[n+p]=255&u,p+=d,u/=256,i-=8);for(s=s<<i|u,h+=i;h>0;t[n+p]=255&s,p+=d,s/=256,h-=8);t[n+p-d]|=128*g}},function(t,r){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,r,n){(function(r,e){!function(){var i=("undefined"==typeof window?r:window)||{};_crypto=i.crypto||i.msCrypto||n(8),t.exports=function(t){if(_crypto.getRandomValues){var r=new e(t);return _crypto.getRandomValues(r),r}if(_crypto.randomBytes)return _crypto.randomBytes(t);throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}()}).call(r,function(){return this}(),n(3).Buffer)},function(t,r){},function(t,r,n){(function(r){function e(t){return function(){var n=[],e={update:function(t,e){return r.isBuffer(t)||(t=new r(t,e)),n.push(t),this},digest:function(e){var i=r.concat(n),o=t(i);return n=null,e?o.toString(e):o}};return e}}var i=n(10),o=e(n(19)),s=e(n(21));t.exports=function(t){return"md5"===t?new o:"rmd160"===t?new s:i(t)}}).call(r,n(3).Buffer)},function(t,r,n){var r=t.exports=function(t){var n=r[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n},e=n(3).Buffer,i=n(11)(e);r.sha1=n(12)(e,i),r.sha256=n(17)(e,i),r.sha512=n(18)(e,i)},function(t,r){t.exports=function(t){function r(r,n){this._block=new t(r),this._finalSize=n,this._blockSize=r,this._len=0,this._s=0}return r.prototype.init=function(){this._s=0,this._len=0},r.prototype.update=function(r,n){"string"==typeof r&&(n=n||"utf8",r=new t(r,n));for(var e=this._len+=r.length,i=this._s=this._s||0,o=0,s=this._block;i<e;){for(var u=Math.min(r.length,o+this._blockSize-i%this._blockSize),a=u-o,h=0;h<a;h++)s[i%this._blockSize+h]=r[h+o];i+=a,o+=a,i%this._blockSize===0&&this._update(s)}return this._s=i,this},r.prototype.digest=function(t){var r=8*this._len;this._block[this._len%this._blockSize]=128,this._block.fill(0,this._len%this._blockSize+1),r%(8*this._blockSize)>=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(r,this._blockSize-4);var n=this._update(this._block)||this._hash();return t?n.toString(t):n},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},r}},function(t,r,n){var e=n(13).inherits;t.exports=function(t,r){function n(){return d.length?d.pop().init():this instanceof n?(this._w=p,r.call(this,64,56),this._h=null,void this.init()):new n}function i(t,r,n,e){return t<20?r&n|~r&e:t<40?r^n^e:t<60?r&n|r&e|n&e:r^n^e}function o(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function s(t,r){return t+r|0}function u(t,r){return t<<r|t>>>32-r}var a=0,h=4,f=8,c=12,l=16,p=new("undefined"==typeof Int32Array?Array:Int32Array)(80),d=[];return e(n,r),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,r.prototype.init.call(this),this},n.prototype._POOL=d,n.prototype._update=function(t){var r,n,e,a,h,f,c,l,p,d;r=f=this._a,n=c=this._b,e=l=this._c,a=p=this._d,h=d=this._e;for(var g=this._w,y=0;y<80;y++){var _=g[y]=y<16?t.readInt32BE(4*y):u(g[y-3]^g[y-8]^g[y-14]^g[y-16],1),w=s(s(u(r,5),i(y,n,e,a)),s(s(h,_),o(y)));h=a,a=e,e=u(n,30),n=r,r=w}this._a=s(r,f),this._b=s(n,c),this._c=s(e,l),this._d=s(a,p),this._e=s(h,d)},n.prototype._hash=function(){d.length<100&&d.push(this);var r=new t(20);return r.writeInt32BE(0|this._a,a),r.writeInt32BE(0|this._b,h),r.writeInt32BE(0|this._c,f),r.writeInt32BE(0|this._d,c),r.writeInt32BE(0|this._e,l),r},n}},function(t,r,n){(function(t,e){function i(t,n){var e={seen:[],stylize:s};return arguments.length>=3&&(e.depth=arguments[2]),arguments.length>=4&&(e.colors=arguments[3]),g(n)?e.showHidden=n:n&&r._extend(e,n),b(e.showHidden)&&(e.showHidden=!1),b(e.depth)&&(e.depth=2),b(e.colors)&&(e.colors=!1),b(e.customInspect)&&(e.customInspect=!0),e.colors&&(e.stylize=o),a(e,t,e.depth)}function o(t,r){var n=i.styles[r];return n?"["+i.colors[n][0]+"m"+t+"["+i.colors[n][1]+"m":t}function s(t,r){return t}function u(t){var r={};return t.forEach(function(t,n){r[t]=!0}),r}function a(t,n,e){if(t.customInspect&&n&&S(n.inspect)&&n.inspect!==r.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(e,t);return v(i)||(i=a(t,i,e)),i}var o=h(t,n);if(o)return o;var s=Object.keys(n),g=u(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(n)),I(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(S(n)){var y=n.name?": "+n.name:"";return t.stylize("[Function"+y+"]","special")}if(m(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(A(n))return t.stylize(Date.prototype.toString.call(n),"date");if(I(n))return f(n)}var _="",w=!1,E=["{","}"];if(d(n)&&(w=!0,E=["[","]"]),S(n)){var b=n.name?": "+n.name:"";_=" [Function"+b+"]"}if(m(n)&&(_=" "+RegExp.prototype.toString.call(n)),A(n)&&(_=" "+Date.prototype.toUTCString.call(n)),I(n)&&(_=" "+f(n)),0===s.length&&(!w||0==n.length))return E[0]+_+E[1];if(e<0)return m(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var B;return B=w?c(t,n,e,g,s):s.map(function(r){return l(t,n,e,g,r,w)}),t.seen.pop(),p(B,_,E)}function h(t,r){if(b(r))return t.stylize("undefined","undefined");if(v(r)){var n="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return w(r)?t.stylize(""+r,"number"):g(r)?t.stylize(""+r,"boolean"):y(r)?t.stylize("null","null"):void 0}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function c(t,r,n,e,i){for(var o=[],s=0,u=r.length;s<u;++s)x(r,String(s))?o.push(l(t,r,n,e,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(l(t,r,n,e,i,!0))}),o}function l(t,r,n,e,i,o){var s,u,h;if(h=Object.getOwnPropertyDescriptor(r,i)||{value:r[i]},h.get?u=h.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):h.set&&(u=t.stylize("[Setter]","special")),x(e,i)||(s="["+i+"]"),u||(t.seen.indexOf(h.value)<0?(u=y(n)?a(t,h.value,null):a(t,h.value,n-1),u.indexOf("\n")>-1&&(u=o?u.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+u.split("\n").map(function(t){return" "+t}).join("\n"))):u=t.stylize("[Circular]","special")),b(s)){if(o&&i.match(/^\d+$/))return u;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+u}function p(t,r,n){var e=0,i=t.reduce(function(t,r){return e++,r.indexOf("\n")>=0&&e++,t+r.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?n[0]+(""===r?"":r+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+r+" "+t.join(", ")+" "+n[1]}function d(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function y(t){return null===t}function _(t){return null==t}function w(t){return"number"==typeof t}function v(t){return"string"==typeof t}function E(t){return"symbol"==typeof t}function b(t){return void 0===t}function m(t){return B(t)&&"[object RegExp]"===U(t)}function B(t){return"object"==typeof t&&null!==t}function A(t){return B(t)&&"[object Date]"===U(t)}function I(t){return B(t)&&("[object Error]"===U(t)||t instanceof Error)}function S(t){return"function"==typeof t}function R(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function U(t){return Object.prototype.toString.call(t)}function P(t){return t<10?"0"+t.toString(10):t.toString(10)}function T(){var t=new Date,r=[P(t.getHours()),P(t.getMinutes()),P(t.getSeconds())].join(":");return[t.getDate(),k[t.getMonth()],r].join(" ")}function x(t,r){return Object.prototype.hasOwnProperty.call(t,r)}var L=/%[sdj%]/g;r.format=function(t){if(!v(t)){for(var r=[],n=0;n<arguments.length;n++)r.push(i(arguments[n]));return r.join(" ")}for(var n=1,e=arguments,o=e.length,s=String(t).replace(L,function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(e[n++]);case"%d":return Number(e[n++]);case"%j":try{return JSON.stringify(e[n++])}catch(r){return"[Circular]"}default:return t}}),u=e[n];n<o;u=e[++n])s+=y(u)||!B(u)?" "+u:" "+i(u);return s},r.deprecate=function(n,i){function o(){
  2. if(!s){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),s=!0}return n.apply(this,arguments)}if(b(t.process))return function(){return r.deprecate(n,i).apply(this,arguments)};if(e.noDeprecation===!0)return n;var s=!1;return o};var O,D={};r.debuglog=function(t){if(b(O)&&(O=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!D[t])if(new RegExp("\\b"+t+"\\b","i").test(O)){var n=e.pid;D[t]=function(){var e=r.format.apply(r,arguments);console.error("%s %d: %s",t,n,e)}}else D[t]=function(){};return D[t]},r.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=d,r.isBoolean=g,r.isNull=y,r.isNullOrUndefined=_,r.isNumber=w,r.isString=v,r.isSymbol=E,r.isUndefined=b,r.isRegExp=m,r.isObject=B,r.isDate=A,r.isError=I,r.isFunction=S,r.isPrimitive=R,r.isBuffer=n(15);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",T(),r.format.apply(r,arguments))},r.inherits=n(16),r._extend=function(t,r){if(!r||!B(r))return t;for(var n=Object.keys(r),e=n.length;e--;)t[n[e]]=r[n[e]];return t}}).call(r,function(){return this}(),n(14))},function(t,r){function n(){c&&h&&(c=!1,h.length?f=h.concat(f):l=-1,f.length&&e())}function e(){if(!c){var t=s(n);c=!0;for(var r=f.length;r;){for(h=f,f=[];++l<r;)h&&h[l].run();l=-1,r=f.length}h=null,c=!1,u(t)}}function i(t,r){this.fun=t,this.array=r}function o(){}var s,u,a=t.exports={};!function(){try{s=setTimeout}catch(t){s=function(){throw new Error("setTimeout is not defined")}}try{u=clearTimeout}catch(t){u=function(){throw new Error("clearTimeout is not defined")}}}();var h,f=[],c=!1,l=-1;a.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)r[n-1]=arguments[n];f.push(new i(t,r)),1!==f.length||c||s(e,0)},i.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=o,a.addListener=o,a.once=o,a.off=o,a.removeListener=o,a.removeAllListeners=o,a.emit=o,a.binding=function(t){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(t){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(t,r){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,r){"function"==typeof Object.create?t.exports=function(t,r){t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,r,n){var e=n(13).inherits;t.exports=function(t,r){function n(){this.init(),this._w=p,r.call(this,64,56)}function i(t,r){return t>>>r|t<<32-r}function o(t,r){return t>>>r}function s(t,r,n){return t&r^~t&n}function u(t,r,n){return t&r^t&n^r&n}function a(t){return i(t,2)^i(t,13)^i(t,22)}function h(t){return i(t,6)^i(t,11)^i(t,25)}function f(t){return i(t,7)^i(t,18)^o(t,3)}function c(t){return i(t,17)^i(t,19)^o(t,10)}var l=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],p=new Array(64);return e(n,r),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._len=this._s=0,this},n.prototype._update=function(t){var r,n,e,i,o,p,d,g,y,_,w=this._w;r=0|this._a,n=0|this._b,e=0|this._c,i=0|this._d,o=0|this._e,p=0|this._f,d=0|this._g,g=0|this._h;for(var v=0;v<64;v++){var E=w[v]=v<16?t.readInt32BE(4*v):c(w[v-2])+w[v-7]+f(w[v-15])+w[v-16];y=g+h(o)+s(o,p,d)+l[v]+E,_=a(r)+u(r,n,e),g=d,d=p,p=o,o=i+y,i=e,e=n,n=r,r=y+_}this._a=r+this._a|0,this._b=n+this._b|0,this._c=e+this._c|0,this._d=i+this._d|0,this._e=o+this._e|0,this._f=p+this._f|0,this._g=d+this._g|0,this._h=g+this._h|0},n.prototype._hash=function(){var r=new t(32);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r.writeInt32BE(this._h,28),r},n}},function(t,r,n){var e=n(13).inherits;t.exports=function(t,r){function n(){this.init(),this._w=a,r.call(this,128,112)}function i(t,r,n){return t>>>n|r<<32-n}function o(t,r,n){return t&r^~t&n}function s(t,r,n){return t&r^t&n^r&n}var u=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);return e(n,r),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._al=-205731576,this._bl=-2067093701,this._cl=-23791573,this._dl=1595750129,this._el=-1377402159,this._fl=725511199,this._gl=-79577749,this._hl=327033209,this._len=this._s=0,this},n.prototype._update=function(t){var r,n,e,a,h,f,c,l,p,d,g,y,_,w,v,E,b=this._w;r=0|this._a,n=0|this._b,e=0|this._c,a=0|this._d,h=0|this._e,f=0|this._f,c=0|this._g,l=0|this._h,p=0|this._al,d=0|this._bl,g=0|this._cl,y=0|this._dl,_=0|this._el,w=0|this._fl,v=0|this._gl,E=0|this._hl;for(var m=0;m<80;m++){var B,A,I=2*m;if(m<16)B=b[I]=t.readInt32BE(4*I),A=b[I+1]=t.readInt32BE(4*I+4);else{var S=b[I-30],R=b[I-30+1],U=i(S,R,1)^i(S,R,8)^S>>>7,P=i(R,S,1)^i(R,S,8)^i(R,S,7);S=b[I-4],R=b[I-4+1];var T=i(S,R,19)^i(R,S,29)^S>>>6,x=i(R,S,19)^i(S,R,29)^i(R,S,6),L=b[I-14],O=b[I-14+1],D=b[I-32],k=b[I-32+1];A=P+O,B=U+L+(A>>>0<P>>>0?1:0),A+=x,B=B+T+(A>>>0<x>>>0?1:0),A+=k,B=B+D+(A>>>0<k>>>0?1:0),b[I]=B,b[I+1]=A}var Y=s(r,n,e),C=s(p,d,g),M=i(r,p,28)^i(p,r,2)^i(p,r,7),z=i(p,r,28)^i(r,p,2)^i(r,p,7),j=i(h,_,14)^i(h,_,18)^i(_,h,9),N=i(_,h,14)^i(_,h,18)^i(h,_,9),F=u[I],H=u[I+1],J=o(h,f,c),V=o(_,w,v),q=E+N,G=l+j+(q>>>0<E>>>0?1:0);q+=V,G=G+J+(q>>>0<V>>>0?1:0),q+=H,G=G+F+(q>>>0<H>>>0?1:0),q+=A,G=G+B+(q>>>0<A>>>0?1:0);var Z=z+C,$=M+Y+(Z>>>0<z>>>0?1:0);l=c,E=v,c=f,v=w,f=h,w=_,_=y+q|0,h=a+G+(_>>>0<y>>>0?1:0)|0,a=e,y=g,e=n,g=d,n=r,d=p,p=q+Z|0,r=G+$+(p>>>0<q>>>0?1:0)|0}this._al=this._al+p|0,this._bl=this._bl+d|0,this._cl=this._cl+g|0,this._dl=this._dl+y|0,this._el=this._el+_|0,this._fl=this._fl+w|0,this._gl=this._gl+v|0,this._hl=this._hl+E|0,this._a=this._a+r+(this._al>>>0<p>>>0?1:0)|0,this._b=this._b+n+(this._bl>>>0<d>>>0?1:0)|0,this._c=this._c+e+(this._cl>>>0<g>>>0?1:0)|0,this._d=this._d+a+(this._dl>>>0<y>>>0?1:0)|0,this._e=this._e+h+(this._el>>>0<_>>>0?1:0)|0,this._f=this._f+f+(this._fl>>>0<w>>>0?1:0)|0,this._g=this._g+c+(this._gl>>>0<v>>>0?1:0)|0,this._h=this._h+l+(this._hl>>>0<E>>>0?1:0)|0},n.prototype._hash=function(){function r(t,r,e){n.writeInt32BE(t,e),n.writeInt32BE(r,e+4)}var n=new t(64);return r(this._a,this._al,0),r(this._b,this._bl,8),r(this._c,this._cl,16),r(this._d,this._dl,24),r(this._e,this._el,32),r(this._f,this._fl,40),r(this._g,this._gl,48),r(this._h,this._hl,56),n},n}},function(t,r,n){function e(t,r){t[r>>5]|=128<<r%32,t[(r+64>>>9<<4)+14]=r;for(var n=1732584193,e=-271733879,i=-1732584194,f=271733878,c=0;c<t.length;c+=16){var l=n,p=e,d=i,g=f;n=o(n,e,i,f,t[c+0],7,-680876936),f=o(f,n,e,i,t[c+1],12,-389564586),i=o(i,f,n,e,t[c+2],17,606105819),e=o(e,i,f,n,t[c+3],22,-1044525330),n=o(n,e,i,f,t[c+4],7,-176418897),f=o(f,n,e,i,t[c+5],12,1200080426),i=o(i,f,n,e,t[c+6],17,-1473231341),e=o(e,i,f,n,t[c+7],22,-45705983),n=o(n,e,i,f,t[c+8],7,1770035416),f=o(f,n,e,i,t[c+9],12,-1958414417),i=o(i,f,n,e,t[c+10],17,-42063),e=o(e,i,f,n,t[c+11],22,-1990404162),n=o(n,e,i,f,t[c+12],7,1804603682),f=o(f,n,e,i,t[c+13],12,-40341101),i=o(i,f,n,e,t[c+14],17,-1502002290),e=o(e,i,f,n,t[c+15],22,1236535329),n=s(n,e,i,f,t[c+1],5,-165796510),f=s(f,n,e,i,t[c+6],9,-1069501632),i=s(i,f,n,e,t[c+11],14,643717713),e=s(e,i,f,n,t[c+0],20,-373897302),n=s(n,e,i,f,t[c+5],5,-701558691),f=s(f,n,e,i,t[c+10],9,38016083),i=s(i,f,n,e,t[c+15],14,-660478335),e=s(e,i,f,n,t[c+4],20,-405537848),n=s(n,e,i,f,t[c+9],5,568446438),f=s(f,n,e,i,t[c+14],9,-1019803690),i=s(i,f,n,e,t[c+3],14,-187363961),e=s(e,i,f,n,t[c+8],20,1163531501),n=s(n,e,i,f,t[c+13],5,-1444681467),f=s(f,n,e,i,t[c+2],9,-51403784),i=s(i,f,n,e,t[c+7],14,1735328473),e=s(e,i,f,n,t[c+12],20,-1926607734),n=u(n,e,i,f,t[c+5],4,-378558),f=u(f,n,e,i,t[c+8],11,-2022574463),i=u(i,f,n,e,t[c+11],16,1839030562),e=u(e,i,f,n,t[c+14],23,-35309556),n=u(n,e,i,f,t[c+1],4,-1530992060),f=u(f,n,e,i,t[c+4],11,1272893353),i=u(i,f,n,e,t[c+7],16,-155497632),e=u(e,i,f,n,t[c+10],23,-1094730640),n=u(n,e,i,f,t[c+13],4,681279174),f=u(f,n,e,i,t[c+0],11,-358537222),i=u(i,f,n,e,t[c+3],16,-722521979),e=u(e,i,f,n,t[c+6],23,76029189),n=u(n,e,i,f,t[c+9],4,-640364487),f=u(f,n,e,i,t[c+12],11,-421815835),i=u(i,f,n,e,t[c+15],16,530742520),e=u(e,i,f,n,t[c+2],23,-995338651),n=a(n,e,i,f,t[c+0],6,-198630844),f=a(f,n,e,i,t[c+7],10,1126891415),i=a(i,f,n,e,t[c+14],15,-1416354905),e=a(e,i,f,n,t[c+5],21,-57434055),n=a(n,e,i,f,t[c+12],6,1700485571),f=a(f,n,e,i,t[c+3],10,-1894986606),i=a(i,f,n,e,t[c+10],15,-1051523),e=a(e,i,f,n,t[c+1],21,-2054922799),n=a(n,e,i,f,t[c+8],6,1873313359),f=a(f,n,e,i,t[c+15],10,-30611744),i=a(i,f,n,e,t[c+6],15,-1560198380),e=a(e,i,f,n,t[c+13],21,1309151649),n=a(n,e,i,f,t[c+4],6,-145523070),f=a(f,n,e,i,t[c+11],10,-1120210379),i=a(i,f,n,e,t[c+2],15,718787259),e=a(e,i,f,n,t[c+9],21,-343485551),n=h(n,l),e=h(e,p),i=h(i,d),f=h(f,g)}return Array(n,e,i,f)}function i(t,r,n,e,i,o){return h(f(h(h(r,t),h(e,o)),i),n)}function o(t,r,n,e,o,s,u){return i(r&n|~r&e,t,r,o,s,u)}function s(t,r,n,e,o,s,u){return i(r&e|n&~e,t,r,o,s,u)}function u(t,r,n,e,o,s,u){return i(r^n^e,t,r,o,s,u)}function a(t,r,n,e,o,s,u){return i(n^(r|~e),t,r,o,s,u)}function h(t,r){var n=(65535&t)+(65535&r),e=(t>>16)+(r>>16)+(n>>16);return e<<16|65535&n}function f(t,r){return t<<r|t>>>32-r}var c=n(20);t.exports=function(t){return c.hash(t,e,16)}},function(t,r,n){(function(r){function n(t,n){if(t.length%o!==0){var e=t.length+(o-t.length%o);t=r.concat([t,s],e)}for(var i=[],u=n?t.readInt32BE:t.readInt32LE,a=0;a<t.length;a+=o)i.push(u.call(t,a));return i}function e(t,n,e){for(var i=new r(n),o=e?i.writeInt32BE:i.writeInt32LE,s=0;s<t.length;s++)o.call(i,t[s],4*s,!0);return i}function i(t,i,o,s){r.isBuffer(t)||(t=new r(t));var a=i(n(t,s),t.length*u);return e(a,o,s)}var o=4,s=new r(o);s.fill(0);var u=8;t.exports={hash:i}}).call(r,n(3).Buffer)},function(t,r,n){(function(r){function n(t,r,n){return t^r^n}function e(t,r,n){return t&r|~t&n}function i(t,r,n){return(t|~r)^n}function o(t,r,n){return t&n|r&~n}function s(t,r,n){return t^(r|~n)}function u(t,r){return t<<r|t>>>32-r}function a(t){var n=[1732584193,4023233417,2562383102,271733878,3285377520];"string"==typeof t&&(t=new r(t,"utf8"));var e=g(t),i=8*t.length,o=8*t.length;e[i>>>5]|=128<<24-i%32,e[(i+64>>>9<<4)+14]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);for(var s=0;s<e.length;s+=16)_(n,e,s);for(var s=0;s<5;s++){var u=n[s];n[s]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}var a=y(n);return new r(a)}t.exports=a;var h=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],f=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],p=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0],g=function(t){for(var r=[],n=0,e=0;n<t.length;n++,e+=8)r[e>>>5]|=t[n]<<24-e%32;return r},y=function(t){for(var r=[],n=0;n<32*t.length;n+=8)r.push(t[n>>>5]>>>24-n%32&255);return r},_=function(t,r,a){for(var g=0;g<16;g++){var y=a+g,_=r[y];r[y]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8)}var w,v,E,b,m,B,A,I,S,R;B=w=t[0],A=v=t[1],I=E=t[2],S=b=t[3],R=m=t[4];for(var U,g=0;g<80;g+=1)U=w+r[a+h[g]]|0,U+=g<16?n(v,E,b)+p[0]:g<32?e(v,E,b)+p[1]:g<48?i(v,E,b)+p[2]:g<64?o(v,E,b)+p[3]:s(v,E,b)+p[4],U=0|U,U=u(U,c[g]),U=U+m|0,w=m,m=b,b=u(E,10),E=v,v=U,U=B+r[a+f[g]]|0,U+=g<16?s(A,I,S)+d[0]:g<32?o(A,I,S)+d[1]:g<48?i(A,I,S)+d[2]:g<64?e(A,I,S)+d[3]:n(A,I,S)+d[4],U=0|U,U=u(U,l[g]),U=U+R|0,B=R,R=S,S=u(I,10),I=A,A=U;U=t[1]+E+S|0,t[1]=t[2]+b+R|0,t[2]=t[3]+m+B|0,t[3]=t[4]+w+A|0,t[4]=t[0]+v+I|0,t[0]=U}}).call(r,n(3).Buffer)},function(t,r,n){(function(r){function e(t,n){if(!(this instanceof e))return new e(t,n);this._opad=a,this._alg=t;var s="sha512"===t?128:64;n=this._key=r.isBuffer(n)?n:new r(n),n.length>s?n=i(t).update(n).digest():n.length<s&&(n=r.concat([n,o],s));for(var u=this._ipad=new r(s),a=this._opad=new r(s),h=0;h<s;h++)u[h]=54^n[h],a[h]=92^n[h];this._hash=i(t).update(u)}var i=n(9),o=new r(128);o.fill(0),t.exports=e,e.prototype.update=function(t,r){return this._hash.update(t,r),this},e.prototype.digest=function(t){var r=this._hash.digest();return i(this._alg).update(this._opad).update(r).digest(t)}}).call(r,n(3).Buffer)},function(t,r,n){var e=n(24);t.exports=function(t,r){r=r||{};var n=e(t);return r.pbkdf2=n.pbkdf2,r.pbkdf2Sync=n.pbkdf2Sync,r}},function(t,r,n){(function(r){t.exports=function(t){function n(t,r,n,i,o,s){if("function"==typeof o&&(s=o,o=void 0),"function"!=typeof s)throw new Error("No callback provided to pbkdf2");setTimeout(function(){var u;try{u=e(t,r,n,i,o)}catch(a){return s(a)}s(void 0,u)})}function e(n,e,i,o,s){if("number"!=typeof i)throw new TypeError("Iterations not a number");if(i<0)throw new TypeError("Bad iterations");if("number"!=typeof o)throw new TypeError("Key length not a number");if(o<0)throw new TypeError("Bad key length");s=s||"sha1",r.isBuffer(n)||(n=new r(n)),r.isBuffer(e)||(e=new r(e));var u,a,h,f=1,c=new r(o),l=new r(e.length+4);e.copy(l,0,0,e.length);for(var p=1;p<=f;p++){l.writeUInt32BE(p,e.length);var d=t.createHmac(s,n).update(l).digest();if(!u&&(u=d.length,h=new r(u),f=Math.ceil(o/u),a=o-(f-1)*u,o>(Math.pow(2,32)-1)*u))throw new TypeError("keylen exceeds maximum length");d.copy(h,0,0,u);for(var g=1;g<i;g++){d=t.createHmac(s,n).update(d).digest();for(var y=0;y<u;y++)h[y]^=d[y]}var _=(p-1)*u,w=p==f?a:u;h.copy(c,_,0,w)}return c}return{pbkdf2:n,pbkdf2Sync:e}}}).call(r,n(3).Buffer)}]);