>>=26,l.words[u]=t,n=e}return 0!==n&&(l.words[l.length++]=n),l},r._prime=function A(l){if(I[l])return I[l];var A;if("k256"===l)A=new p;else if("p224"===l)A=new b;else if("p192"===l)A=new v;else{if("p25519"!==l)throw new Error("Unknown prime "+l);A=new y}return I[l]=A,A},g.prototype._verify1=function(l){e(0===l.negative,"red works only with positives"),e(l.red,"red works only with red numbers")},g.prototype._verify2=function(l,n){e(0===(l.negative|n.negative),"red works only with positives"),e(l.red&&l.red===n.red,"red works only with red numbers")},g.prototype.imod=function(l){return this.prime?this.prime.ireduce(l)._forceRed(this):l.umod(this.m)._forceRed(this)},g.prototype.neg=function(l){return l.isZero()?l.clone():this.m.sub(l)._forceRed(this)},g.prototype.add=function(l,n){this._verify2(l,n);var u=l.add(n);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},g.prototype.iadd=function(l,n){this._verify2(l,n);var u=l.iadd(n);return u.cmp(this.m)>=0&&u.isub(this.m),u},g.prototype.sub=function(l,n){this._verify2(l,n);var u=l.sub(n);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},g.prototype.isub=function(l,n){this._verify2(l,n);var u=l.isub(n);return u.cmpn(0)<0&&u.iadd(this.m),u},g.prototype.shl=function(l,n){return this._verify1(l),this.imod(l.ushln(n))},g.prototype.imul=function(l,n){return this._verify2(l,n),this.imod(l.imul(n))},g.prototype.mul=function(l,n){return this._verify2(l,n),this.imod(l.mul(n))},g.prototype.isqr=function(l){return this.imul(l,l.clone())},g.prototype.sqr=function(l){return this.mul(l,l)},g.prototype.sqrt=function(l){if(l.isZero())return l.clone();var n=this.m.andln(3);if(e(n%2===1),3===n){var u=this.m.add(new r(1)).iushrn(2);return this.pow(l,u)}for(var t=this.m.subn(1),i=0;!t.isZero()&&0===t.andln(1);)i++,t.iushrn(1);e(!t.isZero());var o=new r(1).toRed(this),a=o.redNeg(),s=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new r(2*f*f).toRed(this);0!==this.pow(f,s).cmp(a);)f.redIAdd(a);for(var c=this.pow(f,t),h=this.pow(l,t.addn(1).iushrn(1)),d=this.pow(l,t),p=i;0!==d.cmp(o);){for(var b=d,v=0;0!==b.cmp(o);v++)b=b.redSqr();e(v=0;t--){for(var f=n.words[t],c=s-1;c>=0;c--){var h=f>>c&1;i!==e[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,a++,(a===u||0===t&&0===c)&&(i=this.mul(i,e[o]),a=0,o=0)):a=0}s=26}return i},g.prototype.convertTo=function(l){var n=l.umod(this.m);return n===l?n.clone():n},g.prototype.convertFrom=function(l){var n=l.clone();return n.red=null,n},r.mont=function(l){return new m(l)},t(m,g),m.prototype.convertTo=function(l){return this.imod(l.ushln(this.shift))},m.prototype.convertFrom=function(l){var n=this.imod(l.mul(this.rinv));return n.red=null,n},m.prototype.imul=function(l,n){if(l.isZero()||n.isZero())return l.words[0]=0,l.length=1,l;var u=l.imul(n),e=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=u.isub(e).iushrn(this.shift),r=t;return t.cmp(this.m)>=0?r=t.isub(this.m):t.cmpn(0)<0&&(r=t.iadd(this.m)),r._forceRed(this)},m.prototype.mul=function(l,n){if(l.isZero()||n.isZero())return new r(0)._forceRed(this);var u=l.mul(n),e=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=u.isub(e).iushrn(this.shift),i=t;return t.cmp(this.m)>=0?i=t.isub(this.m):t.cmpn(0)<0&&(i=t.iadd(this.m)),i._forceRed(this)},m.prototype.invm=function(l){var n=this.imod(l._invmp(this.m).mul(this.r2));return n._forceRed(this)}}("undefined"==typeof n||n,this)},{}],17:[function(l,n,u){function e(l){this.rand=l}var t;if(n.exports=function(l){return t||(t=new e(null)),t.generate(l)},n.exports.Rand=e,e.prototype.generate=function(l){return this._rand(l)},"object"==typeof window)window.crypto&&window.crypto.getRandomValues?e.prototype._rand=function(l){var n=new Uint8Array(l);return window.crypto.getRandomValues(n),n}:window.msCrypto&&window.msCrypto.getRandomValues?e.prototype._rand=function(l){var n=new Uint8Array(l);return window.msCrypto.getRandomValues(n),n}:e.prototype._rand=function(){throw new Error("Not implemented yet")};else try{var r=l("crypto");e.prototype._rand=function(l){return r.randomBytes(l)}}catch(i){e.prototype._rand=function(l){for(var n=new Uint8Array(l),u=0;uo||l<0?(u=Math.abs(l)%o,l<0?o-u:u):l}function e(l){for(var n=0;n>>8^255&u^99,this.SBOX[t]=u,this.INV_SBOX[u]=t,r=l[t],i=l[r],o=l[i],e=257*l[u]^16843008*u,this.SUB_MIX[0][t]=e<<24|e>>>8,this.SUB_MIX[1][t]=e<<16|e>>>16,this.SUB_MIX[2][t]=e<<8|e>>>24,this.SUB_MIX[3][t]=e,e=16843009*o^65537*i^257*r^16843008*t,this.INV_SUB_MIX[0][u]=e<<24|e>>>8,this.INV_SUB_MIX[1][u]=e<<16|e>>>16,this.INV_SUB_MIX[2][u]=e<<8|e>>>24,this.INV_SUB_MIX[3][u]=e,0===t?t=a=1:(t=r^l[l[l[o^r]]],a^=l[l[a]]);return!0};var a=new t;i.blockSize=16,i.prototype.blockSize=i.blockSize,i.keySize=32,i.prototype.keySize=i.keySize,i.prototype._doReset=function(){var l,n,u,e,t,r;for(u=this._key,n=u.length,this._nRounds=n+6,t=4*(this._nRounds+1),this._keySchedule=[],e=0;e>>24,r=a.SBOX[r>>>24]<<24|a.SBOX[r>>>16&255]<<16|a.SBOX[r>>>8&255]<<8|a.SBOX[255&r],r^=a.RCON[e/n|0]<<24):n>6&&e%n===4?r=a.SBOX[r>>>24]<<24|a.SBOX[r>>>16&255]<<16|a.SBOX[r>>>8&255]<<8|a.SBOX[255&r]:void 0,this._keySchedule[e-n]^r);for(this._invKeySchedule=[],l=0;l>>24]]^a.INV_SUB_MIX[1][a.SBOX[r>>>16&255]]^a.INV_SUB_MIX[2][a.SBOX[r>>>8&255]]^a.INV_SUB_MIX[3][a.SBOX[255&r]];return!0},i.prototype.encryptBlock=function(n){n=r(new l(n));var u=this._doCryptBlock(n,this._keySchedule,a.SUB_MIX,a.SBOX),e=new l(16);return e.writeUInt32BE(u[0],0),e.writeUInt32BE(u[1],4),e.writeUInt32BE(u[2],8),e.writeUInt32BE(u[3],12),e},i.prototype.decryptBlock=function(n){n=r(new l(n));var u=[n[3],n[1]];n[1]=u[0],n[3]=u[1];var e=this._doCryptBlock(n,this._invKeySchedule,a.INV_SUB_MIX,a.INV_SBOX),t=new l(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[3],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[1],12),t},i.prototype.scrub=function(){e(this._keySchedule),e(this._invKeySchedule),e(this._key)},i.prototype._doCryptBlock=function(l,u,e,t){var r,i,o,a,s,f,c,h,d;i=l[0]^u[0],o=l[1]^u[1],a=l[2]^u[2],s=l[3]^u[3],r=4;for(var p=1;p>>24]^e[1][o>>>16&255]^e[2][a>>>8&255]^e[3][255&s]^u[r++],c=e[0][o>>>24]^e[1][a>>>16&255]^e[2][s>>>8&255]^e[3][255&i]^u[r++],h=e[0][a>>>24]^e[1][s>>>16&255]^e[2][i>>>8&255]^e[3][255&o]^u[r++],d=e[0][s>>>24]^e[1][i>>>16&255]^e[2][o>>>8&255]^e[3][255&a]^u[r++],i=f,o=c,a=h,s=d;return f=(t[i>>>24]<<24|t[o>>>16&255]<<16|t[a>>>8&255]<<8|t[255&s])^u[r++],c=(t[o>>>24]<<24|t[a>>>16&255]<<16|t[s>>>8&255]<<8|t[255&i])^u[r++],h=(t[a>>>24]<<24|t[s>>>16&255]<<16|t[i>>>8&255]<<8|t[255&o])^u[r++],d=(t[s>>>24]<<24|t[i>>>16&255]<<16|t[o>>>8&255]<<8|t[255&a])^u[r++],[n(f),n(c),n(h),n(d)]},u.AES=i}).call(this,l("buffer").Buffer)},{buffer:46}],20:[function(l,n,u){(function(u){function e(l,n,t,o){if(!(this instanceof e))return new e(l,n,t);i.call(this),this._finID=u.concat([t,new u([0,0,0,1])]),t=u.concat([t,new u([0,0,0,2])]),this._cipher=new r.AES(n),this._prev=new u(t.length),this._cache=new u(""),this._secCache=new u(""),this._decrypt=o,this._alen=0,this._len=0,t.copy(this._prev),this._mode=l;var s=new u(4);s.fill(0),this._ghash=new a(this._cipher.encryptBlock(s)),this._authTag=null,this._called=!1}function t(l,n){var u=0;l.length!==n.length&&u++;for(var e=Math.min(l.length,n.length),t=-1;++t16)return n=this.cache.slice(0,16),this.cache=this.cache.slice(16),n}else if(this.cache.length>=16)return n=this.cache.slice(0,16),this.cache=this.cache.slice(16),n;return null},t.prototype.flush=function(){if(this.cache.length)return this.cache};var b={ECB:l("./modes/ecb"),CBC:l("./modes/cbc"),CFB:l("./modes/cfb"),CFB8:l("./modes/cfb8"),CFB1:l("./modes/cfb1"),OFB:l("./modes/ofb"),CTR:l("./modes/ctr"),GCM:l("./modes/ctr")};u.createDecipher=o,u.createDecipheriv=i}).call(this,l("buffer").Buffer)},{"./aes":19,"./authCipher":20,"./modes":25,"./modes/cbc":26,"./modes/cfb":27,"./modes/cfb1":28,"./modes/cfb8":29,"./modes/ctr":30,"./modes/ecb":31,"./modes/ofb":32,"./streamCipher":33,buffer:46,"cipher-base":47,evp_bytestokey:83,inherits:92}],23:[function(l,n,u){(function(n){function e(l,u,r){return this instanceof e?(a.call(this),this._cache=new t,this._cipher=new o.AES(u),this._prev=new n(r.length),r.copy(this._prev),this._mode=l,void(this._autopadding=!0)):new e(l,u,r)}function t(){return this instanceof t?void(this.cache=new n("")):new t}function r(l,u,t){var r=f[l.toLowerCase()];if(!r)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=new n(t)),"string"==typeof u&&(u=new n(u)),u.length!==r.key/8)throw new TypeError("invalid key length "+u.length);if(t.length!==r.iv)throw new TypeError("invalid iv length "+t.length);return"stream"===r.type?new h(p[r.mode],u,t):"auth"===r.type?new d(p[r.mode],u,t):new e(p[r.mode],u,t)}function i(l,n){var u=f[l.toLowerCase()];if(!u)throw new TypeError("invalid suite type");var e=c(n,!1,u.key,u.iv);return r(l,e.key,e.iv)}var o=l("./aes"),a=l("cipher-base"),s=l("inherits"),f=l("./modes"),c=l("evp_bytestokey"),h=l("./streamCipher"),d=l("./authCipher");s(e,a),e.prototype._update=function(l){this._cache.add(l);for(var u,e,t=[];u=this._cache.get();)e=this._mode.encrypt(this,u),t.push(e);return n.concat(t)},e.prototype._final=function(){var l=this._cache.flush();if(this._autopadding)return l=this._mode.encrypt(this,l),this._cipher.scrub(),l;if("10101010101010101010101010101010"!==l.toString("hex"))throw this._cipher.scrub(),new Error("data not multiple of block length")},e.prototype.setAutoPadding=function(l){return this._autopadding=!!l,this},t.prototype.add=function(l){this.cache=n.concat([this.cache,l])},t.prototype.get=function(){if(this.cache.length>15){var l=this.cache.slice(0,16);return this.cache=this.cache.slice(16),l}return null},t.prototype.flush=function(){for(var l=16-this.cache.length,u=new n(l),e=-1;++ea||l<0?(u=Math.abs(l)%a,l<0?a-u:u):l}function i(l,n){return[l[0]^n[0],l[1]^n[1],l[2]^n[2],l[3]^n[3]]}var o=new l(16);o.fill(0),n.exports=u,u.prototype.ghash=function(l){for(var n=-1;++n0;l--)r[l]=r[l]>>>1|(1&r[l-1])<<31;r[0]=r[0]>>>1,u&&(r[0]=r[0]^225<<24)}this.state=t(o)},u.prototype.update=function(n){this.cache=l.concat([this.cache,n]);for(var u;this.cache.length>=16;)u=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(u)},u.prototype["final"]=function(n,u){return this.cache.length&&this.ghash(l.concat([this.cache,o],16)),this.ghash(t([0,n,0,u])),this.state};var a=Math.pow(2,32)}).call(this,l("buffer").Buffer)},{buffer:46}],25:[function(l,n,u){u["aes-128-ecb"]={cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},u["aes-192-ecb"]={cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},u["aes-256-ecb"]={cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},u["aes-128-cbc"]={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},u["aes-192-cbc"]={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},u["aes-256-cbc"]={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},u.aes128=u["aes-128-cbc"],u.aes192=u["aes-192-cbc"],u.aes256=u["aes-256-cbc"],u["aes-128-cfb"]={cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},u["aes-192-cfb"]={cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},u["aes-256-cfb"]={cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},u["aes-128-cfb8"]={cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},u["aes-192-cfb8"]={cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},u["aes-256-cfb8"]={cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},u["aes-128-cfb1"]={cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},u["aes-192-cfb1"]={cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},u["aes-256-cfb1"]={cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},u["aes-128-ofb"]={cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},u["aes-192-ofb"]={cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},u["aes-256-ofb"]={cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},u["aes-128-ctr"]={cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},u["aes-192-ctr"]={cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},u["aes-256-ctr"]={cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},u["aes-128-gcm"]={cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},u["aes-192-gcm"]={cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},u["aes-256-gcm"]={cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},{}],26:[function(l,n,u){var e=l("buffer-xor");u.encrypt=function(l,n){var u=e(n,l._prev);return l._prev=l._cipher.encryptBlock(u),l._prev},u.decrypt=function(l,n){var u=l._prev;l._prev=n;var t=l._cipher.decryptBlock(n);return e(t,u)}},{"buffer-xor":45}],27:[function(l,n,u){(function(n){function e(l,u,e){var r=u.length,i=t(u,l._cache);return l._cache=l._cache.slice(r),l._prev=n.concat([l._prev,e?u:i]),i}var t=l("buffer-xor");u.encrypt=function(l,u,t){for(var r,i=new n("");u.length;){if(0===l._cache.length&&(l._cache=l._cipher.encryptBlock(l._prev),l._prev=new n("")),!(l._cache.length<=u.length)){i=n.concat([i,e(l,u,t)]);break}r=l._cache.length,i=n.concat([i,e(l,u.slice(0,r),t)]),u=u.slice(r)}return i}}).call(this,l("buffer").Buffer)},{buffer:46,"buffer-xor":45}],28:[function(l,n,u){(function(l){function n(l,n,u){for(var t,r,i,o=-1,a=8,s=0;++o>o%8,l._prev=e(l._prev,u?r:i);return s}function e(n,u){var e=n.length,t=-1,r=new l(n.length);for(n=l.concat([n,new l([u])]);++t>7;return r}u.encrypt=function(u,e,t){for(var r=e.length,i=new l(r),o=-1;++o=0||!u.umod(l.prime1)||!u.umod(l.prime2);)u=new i(o(n));return u}var i=l("bn.js"),o=l("randombytes");n.exports=t,t.getr=r}).call(this,l("buffer").Buffer)},{"bn.js":16,buffer:46,randombytes:112}],38:[function(l,n,u){(function(l){"use strict";u["RSA-SHA224"]=u.sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:new l("302d300d06096086480165030402040500041c","hex")},u["RSA-SHA256"]=u.sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:new l("3031300d060960864801650304020105000420","hex")},u["RSA-SHA384"]=u.sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:new l("3041300d060960864801650304020205000430","hex")},u["RSA-SHA512"]=u.sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:new l("3051300d060960864801650304020305000440","hex")},u["RSA-SHA1"]={sign:"rsa",hash:"sha1",id:new l("3021300906052b0e03021a05000414","hex")},u["ecdsa-with-SHA1"]={sign:"ecdsa",hash:"sha1",id:new l("","hex")},u.DSA=u["DSA-SHA1"]=u["DSA-SHA"]={sign:"dsa",hash:"sha1",id:new l("","hex")},u["DSA-SHA224"]=u["DSA-WITH-SHA224"]={sign:"dsa",hash:"sha224",id:new l("","hex")},u["DSA-SHA256"]=u["DSA-WITH-SHA256"]={sign:"dsa",hash:"sha256",id:new l("","hex")},u["DSA-SHA384"]=u["DSA-WITH-SHA384"]={sign:"dsa",hash:"sha384",id:new l("","hex")},u["DSA-SHA512"]=u["DSA-WITH-SHA512"]={sign:"dsa",hash:"sha512",id:new l("","hex")},u["DSA-RIPEMD160"]={sign:"dsa",hash:"rmd160",id:new l("","hex")},u["RSA-RIPEMD160"]=u.ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:new l("3021300906052b2403020105000414","hex")},u["RSA-MD5"]=u.md5WithRSAEncryption={sign:"rsa",hash:"md5",id:new l("3020300c06082a864886f70d020505000410","hex")}}).call(this,l("buffer").Buffer)},{buffer:46}],39:[function(l,n,u){(function(u){function e(l){c.Writable.call(this);var n=d[l];if(!n)throw new Error("Unknown message digest");this._hashType=n.hash,this._hash=a(n.hash),this._tag=n.id,this._signType=n.sign}function t(l){c.Writable.call(this);var n=d[l];if(!n)throw new Error("Unknown message digest");this._hash=a(n.hash),this._tag=n.id,this._signType=n.sign}function r(l){return new e(l)}function i(l){return new t(l)}var o=l("./algos"),a=l("create-hash"),s=l("inherits"),f=l("./sign"),c=l("stream"),h=l("./verify"),d={};Object.keys(o).forEach(function(l){d[l]=d[l.toLowerCase()]=o[l]}),s(e,c.Writable),e.prototype._write=function(l,n,u){this._hash.update(l),u()},e.prototype.update=function(l,n){return"string"==typeof l&&(l=new u(l,n)),this._hash.update(l),this},e.prototype.sign=function(l,n){this.end();var e=this._hash.digest(),t=f(u.concat([this._tag,e]),l,this._hashType,this._signType);return n?t.toString(n):t},s(t,c.Writable),t.prototype._write=function(l,n,u){this._hash.update(l),u()},t.prototype.update=function(l,n){return"string"==typeof l&&(l=new u(l,n)),this._hash.update(l),this},t.prototype.verify=function(l,n,e){"string"==typeof n&&(n=new u(n,e)),this.end();var t=this._hash.digest();return h(n,u.concat([this._tag,t]),l,this._signType)},n.exports={Sign:r,Verify:i,createSign:r,createVerify:i}}).call(this,l("buffer").Buffer)},{"./algos":38,"./sign":41,"./verify":42,buffer:46,"create-hash":50,inherits:92,stream:132}],40:[function(l,n,u){"use strict";u["1.3.132.0.10"]="secp256k1",u["1.3.132.0.33"]="p224",u["1.2.840.10045.3.1.1"]="p192",u["1.2.840.10045.3.1.7"]="p256",u["1.3.132.0.34"]="p384",u["1.3.132.0.35"]="p521"},{}],41:[function(l,n,u){(function(u){function e(l,n,u,e){var i=v(n);if(i.curve){if("ecdsa"!==e)throw new Error("wrong private key type");return t(l,i)}if("dsa"===i.type){if("dsa"!==e)throw new Error("wrong private key type");return r(l,i,u)}if("rsa"!==e)throw new Error("wrong private key type");for(var o=i.modulus.byteLength(),a=[0,1];l.length+a.length+10&&u.ishrn(e),u}function s(l,n){l=a(l,n),l=l.mod(n);var e=new u(l.toArray());if(e.length=n)throw new Error("invalid sig")}var o=l("./curves"),a=l("elliptic"),s=l("parse-asn1"),f=l("bn.js"),c=a.ec;n.exports=e}).call(this,l("buffer").Buffer)},{"./curves":40,"bn.js":16,buffer:46,elliptic:65,"parse-asn1":101}],43:[function(l,n,u){arguments[4][18][0].apply(u,arguments)},{dup:18}],44:[function(l,n,u){(function(n){"use strict";var e=l("buffer"),t=e.Buffer,r=e.SlowBuffer,i=e.kMaxLength||2147483647;u.alloc=function(l,n,u){if("function"==typeof t.alloc)return t.alloc(l,n,u);if("number"==typeof u)throw new TypeError("encoding must not be number");
+if("number"!=typeof l)throw new TypeError("size must be a number");if(l>i)throw new RangeError("size is too large");var e=u,r=n;void 0===r&&(e=void 0,r=0);var o=new t(l);if("string"==typeof r)for(var a=new t(r,e),s=a.length,f=-1;++fi)throw new RangeError("size is too large");return new t(l)},u.from=function(l,u,e){if("function"==typeof t.from&&(!n.Uint8Array||Uint8Array.from!==t.from))return t.from(l,u,e);if("number"==typeof l)throw new TypeError('"value" argument must not be a number');if("string"==typeof l)return new t(l,u);if("undefined"!=typeof ArrayBuffer&&l instanceof ArrayBuffer){var r=u;if(1===arguments.length)return new t(l);"undefined"==typeof r&&(r=0);var i=e;if("undefined"==typeof i&&(i=l.byteLength-r),r>=l.byteLength)throw new RangeError("'offset' is out of bounds");if(i>l.byteLength-r)throw new RangeError("'length' is out of bounds");return new t(l.slice(r,r+i))}if(t.isBuffer(l)){var o=new t(l.length);return l.copy(o,0,0,l.length),o}if(l){if(Array.isArray(l)||"undefined"!=typeof ArrayBuffer&&l.buffer instanceof ArrayBuffer||"length"in l)return new t(l);if("Buffer"===l.type&&Array.isArray(l.data))return new t(l.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")},u.allocUnsafeSlow=function(l){if("function"==typeof t.allocUnsafeSlow)return t.allocUnsafeSlow(l);if("number"!=typeof l)throw new TypeError("size must be a number");if(l>=i)throw new RangeError("size is too large");return new r(l)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{buffer:46}],45:[function(l,n,u){(function(l){n.exports=function(n,u){for(var e=Math.min(n.length,u.length),t=new l(e),r=0;r1?arguments[1]:"utf8"):a(this,l)):arguments.length>1?new r(l,arguments[1]):new r(l)}function i(l,n){if(l=b(l,n<0?0:0|v(n)),!r.TYPED_ARRAY_SUPPORT)for(var u=0;u>>1;return u&&(l.parent=J),l}function v(l){if(l>=t())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+t().toString(16)+" bytes");return 0|l}function y(l,n){if(!(this instanceof y))return new y(l,n);var u=new r(l,n);return delete u.parent,u}function g(l,n){"string"!=typeof l&&(l=""+l);var u=l.length;if(0===u)return 0;for(var e=!1;;)switch(n){case"ascii":case"binary":case"raw":case"raws":return u;case"utf8":case"utf-8":return K(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*u;case"hex":return u>>>1;case"base64":return Y(l).length;default:if(e)return K(l).length;n=(""+n).toLowerCase(),e=!0}}function m(l,n,u){var e=!1;if(n=0|n,u=void 0===u||u===1/0?this.length:0|u,l||(l="utf8"),n<0&&(n=0),u>this.length&&(u=this.length),u<=n)return"";for(;;)switch(l){case"hex":return R(this,n,u);case"utf8":case"utf-8":return A(this,n,u);case"ascii":return B(this,n,u);case"binary":return j(this,n,u);case"base64":return I(this,n,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,n,u);default:if(e)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),e=!0}}function _(l,n,u,e){u=Number(u)||0;var t=l.length-u;e?(e=Number(e),e>t&&(e=t)):e=t;var r=n.length;if(r%2!==0)throw new Error("Invalid hex string");e>r/2&&(e=r/2);for(var i=0;i239?4:r>223?3:r>191?2:1;if(t+o<=u){var a,s,f,c;switch(o){case 1:r<128&&(i=r);break;case 2:a=l[t+1],128===(192&a)&&(c=(31&r)<<6|63&a,c>127&&(i=c));break;case 3:a=l[t+1],s=l[t+2],128===(192&a)&&128===(192&s)&&(c=(15&r)<<12|(63&a)<<6|63&s,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:a=l[t+1],s=l[t+2],f=l[t+3],128===(192&a)&&128===(192&s)&&128===(192&f)&&(c=(15&r)<<18|(63&a)<<12|(63&s)<<6|63&f,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,o=1):i>65535&&(i-=65536,e.push(i>>>10&1023|55296),i=56320|1023&i),e.push(i),t+=o}return x(e)}function x(l){var n=l.length;if(n<=$)return String.fromCharCode.apply(String,l);for(var u="",e=0;ee)&&(u=e);for(var t="",r=n;ru)throw new RangeError("Trying to access beyond buffer length")}function P(l,n,u,e,t,i){if(!r.isBuffer(l))throw new TypeError("buffer must be a Buffer instance");if(n>t||nl.length)throw new RangeError("index out of range")}function U(l,n,u,e){n<0&&(n=65535+n+1);for(var t=0,r=Math.min(l.length-u,2);t>>8*(e?t:1-t)}function T(l,n,u,e){n<0&&(n=4294967295+n+1);for(var t=0,r=Math.min(l.length-u,4);t>>8*(e?t:3-t)&255}function L(l,n,u,e,t,r){if(n>t||nl.length)throw new RangeError("index out of range");if(u<0)throw new RangeError("index out of range")}function N(l,n,u,e,t){return t||L(l,n,u,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(l,n,u,e,23,4),u+4}function D(l,n,u,e,t){return t||L(l,n,u,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(l,n,u,e,52,8),u+8}function q(l){if(l=z(l).replace(ll,""),l.length<2)return"";for(;l.length%4!==0;)l+="=";return l}function z(l){return l.trim?l.trim():l.replace(/^\s+|\s+$/g,"")}function F(l){return l<16?"0"+l.toString(16):l.toString(16)}function K(l,n){n=n||1/0;for(var u,e=l.length,t=null,r=[],i=0;i55295&&u<57344){if(!t){if(u>56319){(n-=3)>-1&&r.push(239,191,189);continue}if(i+1===e){(n-=3)>-1&&r.push(239,191,189);continue}t=u;continue}if(u<56320){(n-=3)>-1&&r.push(239,191,189),t=u;continue}u=(t-55296<<10|u-56320)+65536}else t&&(n-=3)>-1&&r.push(239,191,189);if(t=null,u<128){if((n-=1)<0)break;r.push(u)}else if(u<2048){if((n-=2)<0)break;r.push(u>>6|192,63&u|128)}else if(u<65536){if((n-=3)<0)break;r.push(u>>12|224,u>>6&63|128,63&u|128)}else{if(!(u<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;r.push(u>>18|240,u>>12&63|128,u>>6&63|128,63&u|128)}}return r}function H(l){for(var n=[],u=0;u>8,t=u%256,r.push(t),r.push(e);return r}function Y(l){return X.toByteArray(q(l))}function W(l,n,u,e){for(var t=0;t=n.length||t>=l.length);t++)n[t+u]=l[t];return t}var X=l("base64-js"),Z=l("ieee754"),G=l("isarray");u.Buffer=r,u.SlowBuffer=y,u.INSPECT_MAX_BYTES=50,r.poolSize=8192;var J={};r.TYPED_ARRAY_SUPPORT=void 0!==n.TYPED_ARRAY_SUPPORT?n.TYPED_ARRAY_SUPPORT:e(),r.TYPED_ARRAY_SUPPORT?(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array):(r.prototype.length=void 0,r.prototype.parent=void 0),r.isBuffer=function(l){return!(null==l||!l._isBuffer)},r.compare=function(l,n){if(!r.isBuffer(l)||!r.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(l===n)return 0;for(var u=l.length,e=n.length,t=0,i=Math.min(u,e);t0&&(l=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(l+=" ... ")),""},r.prototype.compare=function(l){if(!r.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?0:r.compare(this,l)},r.prototype.indexOf=function(l,n){function u(l,n,u){for(var e=-1,t=0;u+t2147483647?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 l)return 0===l.length?-1:String.prototype.indexOf.call(this,l,n);if(r.isBuffer(l))return u(this,l,n);if("number"==typeof l)return r.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,l,n):u(this,[l],n);throw new TypeError("val must be string, number or Buffer")},r.prototype.get=function(l){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(l)},r.prototype.set=function(l,n){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(l,n)},r.prototype.write=function(l,n,u,e){if(void 0===n)e="utf8",u=this.length,n=0;else if(void 0===u&&"string"==typeof n)e=n,u=this.length,n=0;else if(isFinite(n))n=0|n,isFinite(u)?(u=0|u,void 0===e&&(e="utf8")):(e=u,u=void 0);else{var t=e;e=n,n=0|u,u=t}var r=this.length-n;if((void 0===u||u>r)&&(u=r),l.length>0&&(u<0||n<0)||n>this.length)throw new RangeError("attempt to write outside buffer bounds");e||(e="utf8");for(var i=!1;;)switch(e){case"hex":return _(this,l,n,u);case"utf8":case"utf-8":return w(this,l,n,u);case"ascii":return k(this,l,n,u);case"binary":return S(this,l,n,u);case"base64":return E(this,l,n,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,l,n,u);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),i=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;r.prototype.slice=function(l,n){var u=this.length;l=~~l,n=void 0===n?u:~~n,l<0?(l+=u,l<0&&(l=0)):l>u&&(l=u),n<0?(n+=u,n<0&&(n=0)):n>u&&(n=u),n0&&(t*=256);)e+=this[l+--n]*t;return e},r.prototype.readUInt8=function(l,n){return n||C(l,1,this.length),this[l]},r.prototype.readUInt16LE=function(l,n){return n||C(l,2,this.length),this[l]|this[l+1]<<8},r.prototype.readUInt16BE=function(l,n){return n||C(l,2,this.length),this[l]<<8|this[l+1]},r.prototype.readUInt32LE=function(l,n){return n||C(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+16777216*this[l+3]},r.prototype.readUInt32BE=function(l,n){return n||C(l,4,this.length),16777216*this[l]+(this[l+1]<<16|this[l+2]<<8|this[l+3])},r.prototype.readIntLE=function(l,n,u){l=0|l,n=0|n,u||C(l,n,this.length);for(var e=this[l],t=1,r=0;++r=t&&(e-=Math.pow(2,8*n)),e},r.prototype.readIntBE=function(l,n,u){l=0|l,n=0|n,u||C(l,n,this.length);for(var e=n,t=1,r=this[l+--e];e>0&&(t*=256);)r+=this[l+--e]*t;return t*=128,r>=t&&(r-=Math.pow(2,8*n)),r},r.prototype.readInt8=function(l,n){return n||C(l,1,this.length),128&this[l]?(255-this[l]+1)*-1:this[l]},r.prototype.readInt16LE=function(l,n){n||C(l,2,this.length);var u=this[l]|this[l+1]<<8;return 32768&u?4294901760|u:u},r.prototype.readInt16BE=function(l,n){n||C(l,2,this.length);var u=this[l+1]|this[l]<<8;return 32768&u?4294901760|u:u},r.prototype.readInt32LE=function(l,n){return n||C(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},r.prototype.readInt32BE=function(l,n){return n||C(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},r.prototype.readFloatLE=function(l,n){return n||C(l,4,this.length),Z.read(this,l,!0,23,4)},r.prototype.readFloatBE=function(l,n){return n||C(l,4,this.length),Z.read(this,l,!1,23,4)},r.prototype.readDoubleLE=function(l,n){return n||C(l,8,this.length),Z.read(this,l,!0,52,8)},r.prototype.readDoubleBE=function(l,n){return n||C(l,8,this.length),Z.read(this,l,!1,52,8)},r.prototype.writeUIntLE=function(l,n,u,e){l=+l,n=0|n,u=0|u,e||P(this,l,n,u,Math.pow(2,8*u),0);var t=1,r=0;for(this[n]=255&l;++r=0&&(r*=256);)this[n+t]=l/r&255;return n+u},r.prototype.writeUInt8=function(l,n,u){return l=+l,n=0|n,u||P(this,l,n,1,255,0),r.TYPED_ARRAY_SUPPORT||(l=Math.floor(l)),this[n]=255&l,n+1},r.prototype.writeUInt16LE=function(l,n,u){return l=+l,n=0|n,u||P(this,l,n,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[n]=255&l,this[n+1]=l>>>8):U(this,l,n,!0),n+2},r.prototype.writeUInt16BE=function(l,n,u){return l=+l,n=0|n,u||P(this,l,n,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[n]=l>>>8,this[n+1]=255&l):U(this,l,n,!1),n+2},r.prototype.writeUInt32LE=function(l,n,u){return l=+l,n=0|n,u||P(this,l,n,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[n+3]=l>>>24,this[n+2]=l>>>16,this[n+1]=l>>>8,this[n]=255&l):T(this,l,n,!0),n+4},r.prototype.writeUInt32BE=function(l,n,u){return l=+l,n=0|n,u||P(this,l,n,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[n]=l>>>24,this[n+1]=l>>>16,this[n+2]=l>>>8,this[n+3]=255&l):T(this,l,n,!1),n+4},r.prototype.writeIntLE=function(l,n,u,e){if(l=+l,n=0|n,!e){var t=Math.pow(2,8*u-1);P(this,l,n,u,t-1,-t)}var r=0,i=1,o=l<0?1:0;for(this[n]=255&l;++r>0)-o&255;return n+u},r.prototype.writeIntBE=function(l,n,u,e){if(l=+l,n=0|n,!e){var t=Math.pow(2,8*u-1);P(this,l,n,u,t-1,-t)}var r=u-1,i=1,o=l<0?1:0;for(this[n+r]=255&l;--r>=0&&(i*=256);)this[n+r]=(l/i>>0)-o&255;return n+u},r.prototype.writeInt8=function(l,n,u){return l=+l,n=0|n,u||P(this,l,n,1,127,-128),r.TYPED_ARRAY_SUPPORT||(l=Math.floor(l)),l<0&&(l=255+l+1),this[n]=255&l,n+1},r.prototype.writeInt16LE=function(l,n,u){return l=+l,n=0|n,u||P(this,l,n,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[n]=255&l,this[n+1]=l>>>8):U(this,l,n,!0),n+2},r.prototype.writeInt16BE=function(l,n,u){return l=+l,n=0|n,u||P(this,l,n,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[n]=l>>>8,this[n+1]=255&l):U(this,l,n,!1),n+2},r.prototype.writeInt32LE=function(l,n,u){return l=+l,n=0|n,u||P(this,l,n,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[n]=255&l,this[n+1]=l>>>8,this[n+2]=l>>>16,this[n+3]=l>>>24):T(this,l,n,!0),n+4},r.prototype.writeInt32BE=function(l,n,u){return l=+l,n=0|n,u||P(this,l,n,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),r.TYPED_ARRAY_SUPPORT?(this[n]=l>>>24,this[n+1]=l>>>16,this[n+2]=l>>>8,this[n+3]=255&l):T(this,l,n,!1),n+4},r.prototype.writeFloatLE=function(l,n,u){return N(this,l,n,!0,u)},r.prototype.writeFloatBE=function(l,n,u){return N(this,l,n,!1,u)},r.prototype.writeDoubleLE=function(l,n,u){return D(this,l,n,!0,u)},r.prototype.writeDoubleBE=function(l,n,u){return D(this,l,n,!1,u)},r.prototype.copy=function(l,n,u,e){if(u||(u=0),e||0===e||(e=this.length),n>=l.length&&(n=l.length),n||(n=0),e>0&&e=this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),l.length-n=0;t--)l[t+n]=this[t+u];else if(i<1e3||!r.TYPED_ARRAY_SUPPORT)for(t=0;t=this.length)throw new RangeError("start out of bounds");if(u<0||u>this.length)throw new RangeError("end out of bounds");var e;if("number"==typeof l)for(e=n;e>5]|=128<>>9<<4)+14]=n;for(var u=1732584193,e=-271733879,t=-1732584194,f=271733878,c=0;c>16)+(n>>16)+(u>>16);return e<<16|65535&u}function f(l,n){return l<>>32-n}var c=l("./helpers");n.exports=function(l){return c.hash(l,e,16)}},{"./helpers":51}],53:[function(l,n,u){(function(u){"use strict";function e(l,n){i.call(this),l=l.toLowerCase(),"string"==typeof n&&(n=new u(n));var e="sha512"===l||"sha384"===l?128:64;this._alg=l,this._key=n,n.length>e?n=t(l).update(n).digest():n.length0;e--)n+=this._buffer(l,n),u+=this._flushBuffer(t,u);return n+=this._buffer(l,n),t},e.prototype["final"]=function(l){var n;l&&(n=this.update(l));var u;return u="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),n?n.concat(u):u},e.prototype._pad=function(l,n){if(0===n)return!1;for(;n>>1];u=a.r28shl(u,i),e=a.r28shl(e,i),a.pc2(u,e,l.keys,t)}},t.prototype._update=function(l,n,u,e){var t=this._desState,r=a.readUInt32BE(l,n),i=a.readUInt32BE(l,n+4);a.ip(r,i,t.tmp,0),r=t.tmp[0],i=t.tmp[1],"encrypt"===this.type?this._encrypt(t,r,i,t.tmp,0):this._decrypt(t,r,i,t.tmp,0),r=t.tmp[0],i=t.tmp[1],a.writeUInt32BE(u,r,e),a.writeUInt32BE(u,i,e+4)},t.prototype._pad=function(l,n){for(var u=l.length-n,e=n;e>>0,r=d}a.rip(i,r,e,t)},t.prototype._decrypt=function(l,n,u,e,t){for(var r=u,i=n,o=l.keys.length-2;o>=0;o-=2){var s=l.keys[o],f=l.keys[o+1];a.expand(r,l.tmp,0),s^=l.tmp[0],f^=l.tmp[1];var c=a.substitute(s,f),h=a.permute(c),d=r;r=(i^h)>>>0,i=d}a.rip(r,i,e,t)}},{"../des":55,inherits:92,"minimalistic-assert":96}],59:[function(l,n,u){"use strict";function e(l,n){r.equal(n.length,24,"Invalid key length");var u=n.slice(0,8),e=n.slice(8,16),t=n.slice(16,24);"encrypt"===l?this.ciphers=[s.create({type:"encrypt",key:u}),s.create({type:"decrypt",key:e}),s.create({type:"encrypt",key:t})]:this.ciphers=[s.create({type:"decrypt",key:t}),s.create({type:"encrypt",key:e}),s.create({type:"decrypt",key:u})]}function t(l){a.call(this,l);var n=new e(this.type,this.options.key);this._edeState=n}var r=l("minimalistic-assert"),i=l("inherits"),o=l("../des"),a=o.Cipher,s=o.DES;i(t,a),n.exports=t,t.create=function(l){return new t(l)},t.prototype._update=function(l,n,u,e){var t=this._edeState;t.ciphers[0]._update(l,n,u,e),t.ciphers[1]._update(u,e,u,e),t.ciphers[2]._update(u,e,u,e)},t.prototype._pad=s.prototype._pad,t.prototype._unpad=s.prototype._unpad},{"../des":55,inherits:92,"minimalistic-assert":96}],60:[function(l,n,u){"use strict";u.readUInt32BE=function(l,n){var u=l[0+n]<<24|l[1+n]<<16|l[2+n]<<8|l[3+n];return u>>>0},u.writeUInt32BE=function(l,n,u){l[0+u]=n>>>24,l[1+u]=n>>>16&255,l[2+u]=n>>>8&255,l[3+u]=255&n},u.ip=function(l,n,u,e){for(var t=0,r=0,i=6;i>=0;i-=2){for(var o=0;o<=24;o+=8)t<<=1,t|=n>>>o+i&1;for(var o=0;o<=24;o+=8)t<<=1,t|=l>>>o+i&1}for(var i=6;i>=0;i-=2){for(var o=1;o<=25;o+=8)r<<=1,r|=n>>>o+i&1;for(var o=1;o<=25;o+=8)r<<=1,r|=l>>>o+i&1}u[e+0]=t>>>0,u[e+1]=r>>>0},u.rip=function(l,n,u,e){for(var t=0,r=0,i=0;i<4;i++)for(var o=24;o>=0;o-=8)t<<=1,t|=n>>>o+i&1,t<<=1,t|=l>>>o+i&1;for(var i=4;i<8;i++)for(var o=24;o>=0;o-=8)r<<=1,r|=n>>>o+i&1,r<<=1,r|=l>>>o+i&1;u[e+0]=t>>>0,u[e+1]=r>>>0},u.pc1=function(l,n,u,e){for(var t=0,r=0,i=7;i>=5;i--){for(var o=0;o<=24;o+=8)t<<=1,t|=n>>o+i&1;for(var o=0;o<=24;o+=8)t<<=1,t|=l>>o+i&1}for(var o=0;o<=24;o+=8)t<<=1,t|=n>>o+i&1;for(var i=1;i<=3;i++){for(var o=0;o<=24;o+=8)r<<=1,r|=n>>o+i&1;for(var o=0;o<=24;o+=8)r<<=1,r|=l>>o+i&1}for(var o=0;o<=24;o+=8)r<<=1,r|=l>>o+i&1;u[e+0]=t>>>0,u[e+1]=r>>>0},u.r28shl=function(l,n){return l<>>28-n};var e=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];u.pc2=function(l,n,u,t){for(var r=0,i=0,o=e.length>>>1,a=0;a>>e[a]&1;for(var a=o;a>>e[a]&1;u[t+0]=r>>>0,u[t+1]=i>>>0},u.expand=function(l,n,u){var e=0,t=0;e=(1&l)<<5|l>>>27;for(var r=23;r>=15;r-=4)e<<=6,e|=l>>>r&63;for(var r=11;r>=3;r-=4)t|=l>>>r&63,t<<=6;t|=(31&l)<<1|l>>>31,n[u+0]=e>>>0,n[u+1]=t>>>0};var t=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];u.substitute=function(l,n){for(var u=0,e=0;e<4;e++){var r=l>>>18-6*e&63,i=t[64*e+r];u<<=4,u|=i}for(var e=0;e<4;e++){var r=n>>>18-6*e&63,i=t[256+64*e+r];u<<=4,u|=i}return u>>>0};var r=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];u.permute=function(l){for(var n=0,u=0;u>>r[u]&1;return n>>>0},u.padSplit=function(l,n,u){for(var e=l.toString(2);e.lengthl;)u.ishrn(1);if(u.isEven()&&u.iadd(h),u.testn(1)||u.iadd(d),n.cmp(d)){if(!n.cmp(p))for(;u.mod(b).cmp(v);)u.iadd(g)}else for(;u.mod(s).cmp(y);)u.iadd(g);if(e=u.shrn(1),t(e)&&t(u)&&r(e)&&r(u)&&c.test(e)&&c.test(u))return u}}var o=l("randombytes");n.exports=i,i.simpleSieve=t,i.fermatTest=r;var a=l("bn.js"),s=new a(24),f=l("miller-rabin"),c=new f,h=new a(1),d=new a(2),p=new a(5),b=(new a(16),new a(8),new a(10)),v=new a(3),y=(new a(7),new a(11)),g=new a(4),m=(new a(12),null)},{"bn.js":16,"miller-rabin":95,randombytes:112}],64:[function(l,n,u){n.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],65:[function(l,n,u){"use strict";var e=u;e.version=l("../package.json").version,e.utils=l("./elliptic/utils"),e.rand=l("brorand"),e.hmacDRBG=l("./elliptic/hmac-drbg"),e.curve=l("./elliptic/curve"),e.curves=l("./elliptic/curves"),e.ec=l("./elliptic/ec"),e.eddsa=l("./elliptic/eddsa")},{"../package.json":81,"./elliptic/curve":68,"./elliptic/curves":71,"./elliptic/ec":72,"./elliptic/eddsa":75,"./elliptic/hmac-drbg":78,"./elliptic/utils":80,brorand:17}],66:[function(l,n,u){"use strict";function e(l,n){this.type=l,this.p=new r(n.p,16),this.red=n.prime?r.red(n.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=n.n&&new r(n.n,16),this.g=n.g&&this.pointFromJSON(n.g,n.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var u=this.n&&this.p.div(this.n);!u||u.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function t(l,n){this.curve=l,this.type=n,this.precomputed=null}var r=l("bn.js"),i=l("../../elliptic"),o=i.utils,a=o.getNAF,s=o.getJSF,f=o.assert;n.exports=e,e.prototype.point=function(){throw new Error("Not implemented")},e.prototype.validate=function(){throw new Error("Not implemented")},e.prototype._fixedNafMul=function(l,n){f(l.precomputed);var u=l._getDoubles(),e=a(n,1),t=(1<