diff --git a/README.md b/README.md index d37683c5..29e867e5 100644 --- a/README.md +++ b/README.md @@ -34,15 +34,24 @@ meteor add ethereum:web3 ### In the Browser -Build and include `dist/web3.min.js` in your html file. +Use the prebuild ``dist/web3.min.js``, or +build using the [web3.js][repo] repository: +```bash +npm run-script build +``` + +Then include `dist/web3.js` in your html file. +This will expose the `Web3` object on the window object. ## Usage -Use the `Web3` object directly from global namespace: ```js +// in node.js +var Web3 = require('web3'); + var web3 = new Web3('ws://localhost:8546'); -console.log(Web3); +console.log(web3); > { eth: ... , shh: ... , @@ -86,10 +95,18 @@ sudo apt-get install npm ### Building (gulp) +Build only the web3.js package + ```bash npm run-script build ``` +Or build all sub packages as well + +```bash +npm run-script build-all +``` + This will put all the browser build files into the `dist` folder. @@ -99,6 +116,7 @@ This will put all the browser build files into the `dist` folder. npm test ``` +[repo]: https://github.com/ethereum/web3.js [docs]: http://web3js.readthedocs.io/en/1.0/ [npm-image]: https://badge.fury.io/js/web3.png [npm-url]: https://npmjs.org/package/web3 diff --git a/bower.json b/bower.json index cbc644bf..9671c1a4 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "namespace": "ethereum", "name": "web3", - "version": "undefined", + "version": "1.0.0-beta.8", "description": "Ethereum JavaScript API", "license": "LGPL-3.0", "main": [ diff --git a/dist/web3.min.js b/dist/web3.min.js index 02cc65d5..fd4f583e 100644 --- a/dist/web3.min.js +++ b/dist/web3.min.js @@ -1 +1 @@ -"use strict";var _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_slicedToArray=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_typeof="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(t){return void 0===t?"undefined":_typeof2(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":_typeof2(t)};!function(t){if("object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Web3=t()}}(function(){var define,module,exports;return function t(e,n,r){function i(s,a){if(!n[s]){if(!e[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[s]={exports:{}};e[s][0].call(f.exports,function(t){var n=e[s][1][t];return i(n||t)},f,f.exports,t,e,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s>6],i=0==(32&n);if(31==(31&n)){var o=n;for(n=0;128==(128&o);){if(o=t.readUInt8(e),t.isError(o))return o;n<<=7,n|=127&o}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:h.tag[n]}}function s(t,e,n){var r=t.readUInt8(n);if(t.isError(r))return r;if(!e&&128===r)return null;if(0==(128&r))return r;var i=127&r;if(i>4)return t.error("length octect is too long");r=0;for(var o=0;o=31?r.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|=h.tagClassByName[n||"universal"]<<6)}var a=t("inherits"),c=t("buffer").Buffer,u=t("../../asn1"),f=u.base,h=u.constants.der;e.exports=r,r.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},a(i,f.Node),i.prototype._encodeComposite=function(t,e,n,r){var i=s(t,e,n,this.reporter);if(r.length<128)return(u=new c(2))[0]=i,u[1]=r.length,this._createEncoderBuffer([u,r]);for(var o=1,a=r.length;a>=256;a>>=8)o++;var u=new c(2+o);u[0]=i,u[1]=128|o;for(var a=1+o,f=r.length;f>0;a--,f>>=8)u[a]=255&f;return this._createEncoderBuffer([u,r])},i.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var n=new c(2*t.length),r=0;r=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}for(var r=0,i=0;i=128;a>>=7)r++}for(var o=new c(r),s=o.length-1,i=t.length-1;i>=0;i--){var a=t[i];for(o[s--]=127&a;(a>>=7)>0;)o[s--]=128|127&a}return this._createEncoderBuffer(o)},i.prototype._encodeTime=function(t,e){var n,r=new Date(t);return"gentime"===e?n=[o(r.getFullYear()),o(r.getUTCMonth()+1),o(r.getUTCDate()),o(r.getUTCHours()),o(r.getUTCMinutes()),o(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[o(r.getFullYear()%100),o(r.getUTCMonth()+1),o(r.getUTCDate()),o(r.getUTCHours()),o(r.getUTCMinutes()),o(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},i.prototype._encodeNull=function(){return this._createEncoderBuffer("")},i.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!c.isBuffer(t)){var n=t.toArray();!t.sign&&128&n[0]&&n.unshift(0),t=new c(n)}if(c.isBuffer(t)){i=t.length;0===t.length&&i++;var r=new c(i);return t.copy(r),0===t.length&&(r[0]=0),this._createEncoderBuffer(r)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var i=1,o=t;o>=256;o>>=8)i++;for(o=(r=new Array(i)).length-1;o>=0;o--)r[o]=255&t,t>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(new c(r))},i.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},i.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},i.prototype._skipDefault=function(t,e,n){var r,i=this._baseState;if(null===i.default)return!1;var o=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,n).join()),o.length!==i.defaultBuffer.length)return!1;for(r=0;r0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return s[t>>18&63]+s[t>>12&63]+s[t>>6&63]+s[63&t]}function o(t,e,n){for(var r,o=[],s=e;s0?u-4:u;var f=0;for(e=0;e>16&255,s[f++]=i>>8&255,s[f++]=255&i;return 2===o?(i=a[t.charCodeAt(e)]<<2|a[t.charCodeAt(e+1)]>>4,s[f++]=255&i):1===o&&(i=a[t.charCodeAt(e)]<<10|a[t.charCodeAt(e+1)]<<4|a[t.charCodeAt(e+2)]>>2,s[f++]=i>>8&255,s[f++]=255&i),s},n.fromByteArray=function(t){for(var e,n=t.length,r=n%3,i="",a=[],c=0,u=n-r;cu?u:c+16383));return 1===r?(e=t[n-1],i+=s[e>>2],i+=s[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=s[e>>10],i+=s[e>>4&63],i+=s[e<<2&63],i+="="),a.push(i),a.join("")};for(var s=[],a=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,h=u.length;fa||t<0?(e=Math.abs(t)%a,t<0?a-e:e):t}function r(t){for(;0>>8^255&n^99,this.SBOX[i]=n,this.INV_SBOX[n]=i,a=t[s=t[o=t[i]]],r=257*t[n]^16843008*n,this.SUB_MIX[0][i]=r<<24|r>>>8,this.SUB_MIX[1][i]=r<<16|r>>>16,this.SUB_MIX[2][i]=r<<8|r>>>24,this.SUB_MIX[3][i]=r,r=16843009*a^65537*s^257*o^16843008*i,this.INV_SUB_MIX[0][n]=r<<24|r>>>8,this.INV_SUB_MIX[1][n]=r<<16|r>>>16,this.INV_SUB_MIX[2][n]=r<<8|r>>>24,this.INV_SUB_MIX[3][n]=r,0===i?i=c=1:(i=o^t[t[t[a^o]]],c^=t[t[c]]);return!0};var c=new i;s.blockSize=16,s.prototype.blockSize=s.blockSize,s.keySize=32,s.prototype.keySize=s.keySize,s.prototype._doReset=function(){var t,e,n,r,i,o;for(e=(n=this._key).length,this._nRounds=e+6,i=4*(this._nRounds+1),this._keySchedule=[],r=0;r>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=c.RCON[r/e|0]<<24):e>6&&r%e==4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),this._keySchedule[r-e]^o);for(this._invKeySchedule=[],t=0;t>>24]]^c.INV_SUB_MIX[1][c.SBOX[o>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[o>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&o]];return!0},s.prototype.encryptBlock=function(e){e=o(new t(e));var n=this._doCryptBlock(e,this._keySchedule,c.SUB_MIX,c.SBOX),r=new t(16);return r.writeUInt32BE(n[0],0),r.writeUInt32BE(n[1],4),r.writeUInt32BE(n[2],8),r.writeUInt32BE(n[3],12),r},s.prototype.decryptBlock=function(e){var n=[(e=o(new t(e)))[3],e[1]];e[1]=n[0],e[3]=n[1];var r=this._doCryptBlock(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX),i=new t(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i},s.prototype.scrub=function(){r(this._keySchedule),r(this._invKeySchedule),r(this._key)},s.prototype._doCryptBlock=function(t,n,r,i){var o,s,a,c,u,f,h,l,d;s=t[0]^n[0],a=t[1]^n[1],c=t[2]^n[2],u=t[3]^n[3],o=4;for(var p=1;p>>24]^r[1][a>>>16&255]^r[2][c>>>8&255]^r[3][255&u]^n[o++],h=r[0][a>>>24]^r[1][c>>>16&255]^r[2][u>>>8&255]^r[3][255&s]^n[o++],l=r[0][c>>>24]^r[1][u>>>16&255]^r[2][s>>>8&255]^r[3][255&a]^n[o++],d=r[0][u>>>24]^r[1][s>>>16&255]^r[2][a>>>8&255]^r[3][255&c]^n[o++],s=f,a=h,c=l,u=d;return f=(i[s>>>24]<<24|i[a>>>16&255]<<16|i[c>>>8&255]<<8|i[255&u])^n[o++],h=(i[a>>>24]<<24|i[c>>>16&255]<<16|i[u>>>8&255]<<8|i[255&s])^n[o++],l=(i[c>>>24]<<24|i[u>>>16&255]<<16|i[s>>>8&255]<<8|i[255&a])^n[o++],d=(i[u>>>24]<<24|i[s>>>16&255]<<16|i[a>>>8&255]<<8|i[255&c])^n[o++],[e(f),e(h),e(l),e(d)]},n.AES=s}).call(this,t("buffer").Buffer)},{buffer:45}],20:[function(t,e,n){(function(n){function r(t,e,i,a){if(!(this instanceof r))return new r(t,e,i);s.call(this),this._finID=n.concat([i,new n([0,0,0,1])]),i=n.concat([i,new n([0,0,0,2])]),this._cipher=new o.AES(e),this._prev=new n(i.length),this._cache=new n(""),this._secCache=new n(""),this._decrypt=a,this._alen=0,this._len=0,i.copy(this._prev),this._mode=t;var u=new n(4);u.fill(0),this._ghash=new c(this._cipher.encryptBlock(u)),this._authTag=null,this._called=!1}function i(t,e){var n=0;t.length!==e.length&&n++;for(var r=Math.min(t.length,e.length),i=-1;++i16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},i.prototype.flush=function(){if(this.cache.length)return this.cache};var p={ECB:t("./modes/ecb"),CBC:t("./modes/cbc"),CFB:t("./modes/cfb"),CFB8:t("./modes/cfb8"),CFB1:t("./modes/cfb1"),OFB:t("./modes/ofb"),CTR:t("./modes/ctr"),GCM:t("./modes/ctr")};n.createDecipher=function(t,e){var n=f[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=d(e,!1,n.key,n.iv);return s(t,r.key,r.iv)},n.createDecipheriv=s}).call(this,t("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:45,"cipher-base":46,evp_bytestokey:82,inherits:99}],23:[function(t,e,n){(function(e){function r(t,n,o){if(!(this instanceof r))return new r(t,n,o);a.call(this),this._cache=new i,this._cipher=new s.AES(n),this._prev=new e(o.length),o.copy(this._prev),this._mode=t,this._autopadding=!0}function i(){if(!(this instanceof i))return new i;this.cache=new e("")}function o(t,n,i){var o=u[t.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=new e(i)),"string"==typeof n&&(n=new e(n)),n.length!==o.key/8)throw new TypeError("invalid key length "+n.length);if(i.length!==o.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===o.type?new h(d[o.mode],n,i):"auth"===o.type?new l(d[o.mode],n,i):new r(d[o.mode],n,i)}var s=t("./aes"),a=t("cipher-base"),c=t("inherits"),u=t("./modes"),f=t("evp_bytestokey"),h=t("./streamCipher"),l=t("./authCipher");c(r,a),r.prototype._update=function(t){this._cache.add(t);for(var n,r,i=[];n=this._cache.get();)r=this._mode.encrypt(this,n),i.push(r);return e.concat(i)},r.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if("10101010101010101010101010101010"!==t.toString("hex"))throw this._cipher.scrub(),new Error("data not multiple of block length")},r.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},i.prototype.add=function(t){this.cache=e.concat([this.cache,t])},i.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},i.prototype.flush=function(){for(var t=16-this.cache.length,n=new e(t),r=-1;++rc||t<0?(e=Math.abs(t)%c,t<0?c-e:e):t}function s(t,e){return[t[0]^e[0],t[1]^e[1],t[2]^e[2],t[3]^e[3]]}var a=new t(16);a.fill(0),e.exports=n,n.prototype.ghash=function(t){for(var e=-1;++e0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,e&&(n[0]=n[0]^225<<24)}this.state=i(o)},n.prototype.update=function(e){this.cache=t.concat([this.cache,e]);for(var n;this.cache.length>=16;)n=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(n)},n.prototype.final=function(e,n){return this.cache.length&&this.ghash(t.concat([this.cache,a],16)),this.ghash(i([0,e,0,n])),this.state};var c=Math.pow(2,32)}).call(this,t("buffer").Buffer)},{buffer:45}],25:[function(t,e,n){n["aes-128-ecb"]={cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},n["aes-192-ecb"]={cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},n["aes-256-ecb"]={cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},n["aes-128-cbc"]={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},n["aes-192-cbc"]={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},n["aes-256-cbc"]={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},n.aes128=n["aes-128-cbc"],n.aes192=n["aes-192-cbc"],n.aes256=n["aes-256-cbc"],n["aes-128-cfb"]={cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},n["aes-192-cfb"]={cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},n["aes-256-cfb"]={cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},n["aes-128-cfb8"]={cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},n["aes-192-cfb8"]={cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},n["aes-256-cfb8"]={cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},n["aes-128-cfb1"]={cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},n["aes-192-cfb1"]={cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},n["aes-256-cfb1"]={cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},n["aes-128-ofb"]={cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},n["aes-192-ofb"]={cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},n["aes-256-ofb"]={cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},n["aes-128-ctr"]={cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},n["aes-192-ctr"]={cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},n["aes-256-ctr"]={cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},n["aes-128-gcm"]={cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},n["aes-192-gcm"]={cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},n["aes-256-gcm"]={cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},{}],26:[function(t,e,n){var r=t("buffer-xor");n.encrypt=function(t,e){var n=r(e,t._prev);return t._prev=t._cipher.encryptBlock(n),t._prev},n.decrypt=function(t,e){var n=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return r(i,n)}},{"buffer-xor":44}],27:[function(t,e,n){(function(e){function r(t,n,r){var o=n.length,s=i(n,t._cache);return t._cache=t._cache.slice(o),t._prev=e.concat([t._prev,r?n:s]),s}var i=t("buffer-xor");n.encrypt=function(t,n,i){for(var o,s=new e("");n.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=new e("")),!(t._cache.length<=n.length)){s=e.concat([s,r(t,n,i)]);break}o=t._cache.length,s=e.concat([s,r(t,n.slice(0,o),i)]),n=n.slice(o)}return s}}).call(this,t("buffer").Buffer)},{buffer:45,"buffer-xor":44}],28:[function(t,e,n){(function(t){function e(t,e,n){for(var i,o,s,a=-1,c=0;++a<8;)i=t._cipher.encryptBlock(t._prev),o=e&1<<7-a?128:0,c+=(128&(s=i[0]^o))>>a%8,t._prev=r(t._prev,n?o:s);return c}function r(e,n){var r=e.length,i=-1,o=new t(e.length);for(e=t.concat([e,new t([n])]);++i>7;return o}n.encrypt=function(n,r,i){for(var o=r.length,s=new t(o),a=-1;++a=0||!n.umod(t.prime1)||!n.umod(t.prime2);)n=new s(a(e));return n}var s=t("bn.js"),a=t("randombytes");e.exports=i,i.getr=o}).call(this,t("buffer").Buffer)},{"bn.js":"BN",buffer:45,randombytes:124}],38:[function(t,e,n){e.exports=t("./browser/algorithms.json")},{"./browser/algorithms.json":39}],39:[function(t,e,n){e.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],40:[function(t,e,n){e.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],41:[function(t,e,n){(function(n){function r(t){c.Writable.call(this);var e=l[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=a(e.hash),this._tag=e.id,this._signType=e.sign}function i(t){c.Writable.call(this);var e=l[t];if(!e)throw new Error("Unknown message digest");this._hash=a(e.hash),this._tag=e.id,this._signType=e.sign}function o(t){return new r(t)}function s(t){return new i(t)}var a=t("create-hash"),c=t("stream"),u=t("inherits"),f=t("./sign"),h=t("./verify"),l=t("./algorithms.json");Object.keys(l).forEach(function(t){l[t].id=new n(l[t].id,"hex"),l[t.toLowerCase()]=l[t]}),u(r,c.Writable),r.prototype._write=function(t,e,n){this._hash.update(t),n()},r.prototype.update=function(t,e){return"string"==typeof t&&(t=new n(t,e)),this._hash.update(t),this},r.prototype.sign=function(t,e){this.end();var n=this._hash.digest(),r=f(n,t,this._hashType,this._signType,this._tag);return e?r.toString(e):r},u(i,c.Writable),i.prototype._write=function(t,e,n){this._hash.update(t),n()},i.prototype.update=function(t,e){return"string"==typeof t&&(t=new n(t,e)),this._hash.update(t),this},i.prototype.verify=function(t,e,r){"string"==typeof e&&(e=new n(e,r)),this.end();var i=this._hash.digest();return h(e,i,t,this._signType,this._tag)},e.exports={Sign:o,Verify:s,createSign:o,createVerify:s}}).call(this,t("buffer").Buffer)},{"./algorithms.json":39,"./sign":42,"./verify":43,buffer:45,"create-hash":49,inherits:99,stream:148}],42:[function(t,e,n){(function(n){function r(t,e){var r=b[e.curve.join(".")];if(!r)throw new Error("unknown curve "+e.curve.join("."));var i=new d(r).keyFromPrivate(e.privateKey).sign(t);return new n(i.toDER())}function i(t,e,n){for(var r,i=e.params.priv_key,c=e.params.p,h=e.params.q,l=e.params.g,d=new p(0),m=a(t,h).mod(h),b=!1,v=s(i,h,t,n);!1===b;)d=f(l,r=u(h,v,n),c,h),0===(b=r.invm(h).imul(m.add(i.mul(d))).mod(h)).cmpn(0)&&(b=!1,d=new p(0));return o(d,b)}function o(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t)),128&e[0]&&(e=[0].concat(e));var r=[48,t.length+e.length+4,2,t.length];return r=r.concat(t,[2,e.length],e),new n(r)}function s(t,e,r,i){if((t=new n(t.toArray())).length0&&n.ishrn(r),n}function c(t,e){t=(t=a(t,e)).mod(e);var r=new n(t.toArray());if(r.length=e)throw new Error("invalid sig")}var s=t("bn.js"),a=t("elliptic").ec,c=t("parse-asn1"),u=t("./curves.json");e.exports=function(t,e,o,a,u){var f=c(o);if("ec"===f.type){if("ecdsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong public key type");return r(t,e,f)}if("dsa"===f.type){if("dsa"!==a)throw new Error("wrong public key type");return i(t,e,f)}if("rsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong public key type");e=n.concat([u,e]);for(var h=f.modulus.byteLength(),l=[1],d=0;e.length+l.length+2$)throw new RangeError("Invalid typed array length");var e=new Uint8Array(t);return e.__proto__=i.prototype,e}function i(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(t)}return o(t,e,n)}function o(t,e,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return t instanceof ArrayBuffer?h(t,e,n):"string"==typeof t?u(t,e):l(t)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function a(t,e,n){return s(t),t<=0?r(t):void 0!==e?"string"==typeof n?r(t).fill(e,n):r(t).fill(e):r(t)}function c(t){return s(t),r(t<0?0:0|d(t))}function u(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!i.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,e),o=r(n),s=o.write(t,e);return s!==n&&(o=o.slice(0,s)),o}function f(t){for(var e=t.length<0?0:0|d(t.length),n=r(e),i=0;i=$)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+$.toString(16)+" bytes");return 0|t}function p(t,e){if(i.isBuffer(t))return t.length;if(V(t)||t instanceof ArrayBuffer)return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(t).length;default:if(r)return D(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,n);case"utf8":case"utf-8":return E(this,e,n);case"ascii":return C(this,e,n);case"latin1":case"binary":return A(this,e,n);case"base64":return M(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,W(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=i.from(e,r)),i.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,i){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}var u;if(i){var f=-1;for(u=n;ua&&(n=a-c),u=n;u>=0;u--){for(var h=!0,l=0;li&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s239?4:o>223?3:o>191?2:1;if(i+a<=n){var c,u,f,h;switch(a){case 1:o<128&&(s=o);break;case 2:128==(192&(c=t[i+1]))&&(h=(31&o)<<6|63&c)>127&&(s=h);break;case 3:c=t[i+1],u=t[i+2],128==(192&c)&&128==(192&u)&&(h=(15&o)<<12|(63&c)<<6|63&u)>2047&&(h<55296||h>57343)&&(s=h);break;case 4:c=t[i+1],u=t[i+2],f=t[i+3],128==(192&c)&&128==(192&u)&&128==(192&f)&&(h=(15&o)<<18|(63&c)<<12|(63&u)<<6|63&f)>65535&&h<1114112&&(s=h)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=a}return j(r)}function j(t){var e=t.length;if(e<=G)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,n,r,o,s){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function F(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(t,e,n,r,i){return e=+e,n>>>=0,i||F(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(t,e,n,r,23,4),n+4}function O(t,e,n,r,i){return e=+e,n>>>=0,i||F(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(t,e,n,r,52,8),n+8}function N(t){if((t=t.trim().replace(J,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}function L(t){return t<16?"0"+t.toString(16):t.toString(16)}function D(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],s=0;s55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=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((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function U(t){return K.toByteArray(N(t))}function H(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function V(t){return"function"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(t)}function W(t){return t!==t}var K=t("base64-js"),X=t("ieee754");n.Buffer=i,n.SlowBuffer=function(t){return+t!=t&&(t=0),i.alloc(+t)},n.INSPECT_MAX_BYTES=50;var $=2147483647;n.kMaxLength=$,i.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),i.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),i.poolSize=8192,i.from=function(t,e,n){return o(t,e,n)},i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,i.alloc=function(t,e,n){return a(t,e,n)},i.allocUnsafe=function(t){return c(t)},i.allocUnsafeSlow=function(t){return c(t)},i.isBuffer=function(t){return null!=t&&!0===t._isBuffer},i.compare=function(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,s=Math.min(n,r);o0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),""},i.prototype.compare=function(t,e,n,r,o){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,o>>>=0,this===t)return 0;for(var s=o-r,a=n-e,c=Math.min(s,a),u=this.slice(r,o),f=t.slice(e,n),h=0;h>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return g(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var G=4096;i.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o>>=0,e>>>=0,n||P(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},i.prototype.readUInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o=i&&(r-=Math.pow(2,8*e)),r},i.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||P(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},i.prototype.readInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){t>>>=0,e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(t,e){t>>>=0,e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return t>>>=0,e||P(t,4,this.length),X.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return t>>>=0,e||P(t,4,this.length),X.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return t>>>=0,e||P(t,8,this.length),X.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return t>>>=0,e||P(t,8,this.length),X.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||B(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o>>=0,n>>>=0,r||B(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},i.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,1,255,0),this[e]=255&t,e+1},i.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},i.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);B(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+n},i.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);B(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},i.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},i.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeFloatLE=function(t,e,n){return R(this,t,e,!0,n)},i.prototype.writeFloatBE=function(t,e,n){return R(this,t,e,!1,n)},i.prototype.writeDoubleLE=function(t,e,n){return O(this,t,e,!0,n)},i.prototype.writeDoubleBE=function(t,e,n){return O(this,t,e,!1,n)},i.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var s;if("number"==typeof t)for(s=e;s>>2),s=0,a=0;s>5]|=128<>>9<<4)]=e;for(var n=1732584193,r=-271733879,i=-1732584194,f=271733878,h=0;h>16)+(e>>16)+(n>>16)<<16|65535&n}function f(t,e){return t<>>32-e}var h=t("./make-hash");e.exports=function(t){return h(t,r)}},{"./make-hash":50}],52:[function(t,e,n){function r(t,e){s.call(this,"digest"),"string"==typeof e&&(e=a.from(e));var n="sha512"===t||"sha384"===t?128:64;this._alg=t,this._key=e,e.length>n?e=("rmd160"===t?new u:f(t)).update(e).digest():e.lengthc?e=t(e):e.length0;r--)e+=this._buffer(t,e),n+=this._flushBuffer(i,n);return e+=this._buffer(t,e),i},r.prototype.final=function(t){var e;t&&(e=this.update(t));var n;return n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},r.prototype._pad=function(t,e){if(0===e)return!1;for(;e>>1];n=c.r28shl(n,s),r=c.r28shl(r,s),c.pc2(n,r,t.keys,i)}},i.prototype._update=function(t,e,n,r){var i=this._desState,o=c.readUInt32BE(t,e),s=c.readUInt32BE(t,e+4);c.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],c.writeUInt32BE(n,o,r),c.writeUInt32BE(n,s,r+4)},i.prototype._pad=function(t,e){for(var n=t.length-e,r=e;r>>0,o=l}c.rip(s,o,r,i)},i.prototype._decrypt=function(t,e,n,r,i){for(var o=n,s=e,a=t.keys.length-2;a>=0;a-=2){var u=t.keys[a],f=t.keys[a+1];c.expand(o,t.tmp,0),u^=t.tmp[0],f^=t.tmp[1];var h=c.substitute(u,f),l=o;o=(s^c.permute(h))>>>0,s=l}c.rip(o,s,r,i)}},{"../des":55,inherits:99,"minimalistic-assert":103}],59:[function(t,e,n){function r(t,e){o.equal(e.length,24,"Invalid key length");var n=e.slice(0,8),r=e.slice(8,16),i=e.slice(16,24);this.ciphers="encrypt"===t?[u.create({type:"encrypt",key:n}),u.create({type:"decrypt",key:r}),u.create({type:"encrypt",key:i})]:[u.create({type:"decrypt",key:i}),u.create({type:"encrypt",key:r}),u.create({type:"decrypt",key:n})]}function i(t){c.call(this,t);var e=new r(this.type,this.options.key);this._edeState=e}var o=t("minimalistic-assert"),s=t("inherits"),a=t("../des"),c=a.Cipher,u=a.DES;s(i,c),e.exports=i,i.create=function(t){return new i(t)},i.prototype._update=function(t,e,n,r){var i=this._edeState;i.ciphers[0]._update(t,e,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},i.prototype._pad=u.prototype._pad,i.prototype._unpad=u.prototype._unpad},{"../des":55,inherits:99,"minimalistic-assert":103}],60:[function(t,e,n){n.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},n.writeUInt32BE=function(t,e,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},n.ip=function(t,e,n,r){for(var i=0,o=0,s=6;s>=0;s-=2){for(a=0;a<=24;a+=8)i<<=1,i|=e>>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=t>>>a+s&1}for(s=6;s>=0;s-=2){for(a=1;a<=25;a+=8)o<<=1,o|=e>>>a+s&1;for(var a=1;a<=25;a+=8)o<<=1,o|=t>>>a+s&1}n[r+0]=i>>>0,n[r+1]=o>>>0},n.rip=function(t,e,n,r){for(var i=0,o=0,s=0;s<4;s++)for(a=24;a>=0;a-=8)i<<=1,i|=e>>>a+s&1,i<<=1,i|=t>>>a+s&1;for(s=4;s<8;s++)for(var a=24;a>=0;a-=8)o<<=1,o|=e>>>a+s&1,o<<=1,o|=t>>>a+s&1;n[r+0]=i>>>0,n[r+1]=o>>>0},n.pc1=function(t,e,n,r){for(var i=0,o=0,s=7;s>=5;s--){for(a=0;a<=24;a+=8)i<<=1,i|=e>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=t>>a+s&1}for(a=0;a<=24;a+=8)i<<=1,i|=e>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1}for(var a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;n[r+0]=i>>>0,n[r+1]=o>>>0},n.r28shl=function(t,e){return t<>>28-e};var r=[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];n.pc2=function(t,e,n,i){for(var o=0,s=0,a=r.length>>>1,c=0;c>>r[c]&1;for(c=a;c>>r[c]&1;n[i+0]=o>>>0,n[i+1]=s>>>0},n.expand=function(t,e,n){var r=0,i=0;r=(1&t)<<5|t>>>27;for(o=23;o>=15;o-=4)r<<=6,r|=t>>>o&63;for(var o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[n+0]=r>>>0,e[n+1]=i>>>0};var i=[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];n.substitute=function(t,e){for(var n=0,r=0;r<4;r++)n<<=4,n|=s=i[64*r+(o=t>>>18-6*r&63)];for(r=0;r<4;r++){var o=e>>>18-6*r&63,s=i[256+64*r+o];n<<=4,n|=s}return n>>>0};var o=[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];n.permute=function(t){for(var e=0,n=0;n>>o[n]&1;return e>>>0},n.padSplit=function(t,e,n){for(var r=t.toString(2);r.lengtht;)n.ishrn(1);if(n.isEven()&&n.iadd(h),n.testn(1)||n.iadd(l),e.cmp(l)){if(!e.cmp(d))for(;n.mod(p).cmp(m);)n.iadd(v)}else for(;n.mod(u).cmp(b);)n.iadd(v);if(r=n.shrn(1),i(r)&&i(n)&&o(r)&&o(n)&&f.test(r)&&f.test(n))return n}}var a=t("randombytes");e.exports=s,s.simpleSieve=i,s.fermatTest=o;var c=t("bn.js"),u=new c(24),f=new(t("miller-rabin")),h=new c(1),l=new c(2),d=new c(5),p=(new c(16),new c(8),new c(10)),m=new c(3),b=(new c(7),new c(11)),v=new c(4),y=(new c(12),null)},{"bn.js":"BN","miller-rabin":102,randombytes:124}],64:[function(t,e,n){e.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(t,e,n){var r=n;r.version=t("../package.json").version,r.utils=t("./elliptic/utils"),r.rand=t("brorand"),r.curve=t("./elliptic/curve"),r.curves=t("./elliptic/curves"),r.ec=t("./elliptic/ec"),r.eddsa=t("./elliptic/eddsa")},{"../package.json":80,"./elliptic/curve":68,"./elliptic/curves":71,"./elliptic/ec":72,"./elliptic/eddsa":75,"./elliptic/utils":79,brorand:17}],66:[function(t,e,n){function r(t,e){this.type=t,this.p=new o(e.p,16),this.red=e.prime?o.red(e.prime):o.mont(this.p),this.zero=new o(0).toRed(this.red),this.one=new o(1).toRed(this.red),this.two=new o(2).toRed(this.red),this.n=e.n&&new o(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function i(t,e){this.curve=t,this.type=e,this.precomputed=null}var o=t("bn.js"),s=t("../../elliptic").utils,a=s.getNAF,c=s.getJSF,u=s.assert;e.exports=r,r.prototype.point=function(){throw new Error("Not implemented")},r.prototype.validate=function(){throw new Error("Not implemented")},r.prototype._fixedNafMul=function(t,e){u(t.precomputed);var n=t._getDoubles(),r=a(e,1),i=(1<=s;e--)c=(c<<1)+r[e];o.push(c)}for(var f=this.jpoint(null,null,null),h=this.jpoint(null,null,null),l=i;l>0;l--){for(s=0;s=0;c--){for(var e=0;c>=0&&0===o[c];c--)e++;if(c>=0&&e++,s=s.dblp(e),c<0)break;var f=o[c];u(0!==f),s="affine"===t.type?f>0?s.mixedAdd(i[f-1>>1]):s.mixedAdd(i[-f-1>>1].neg()):f>0?s.add(i[f-1>>1]):s.add(i[-f-1>>1].neg())}return"affine"===t.type?s.toP():s},r.prototype._wnafMulAdd=function(t,e,n,r,i){for(var o=this._wnafT1,s=this._wnafT2,u=this._wnafT3,f=0,h=0;h=1;h-=2){var d=h-1,p=h;if(1===o[d]&&1===o[p]){var m=[e[d],null,null,e[p]];0===e[d].y.cmp(e[p].y)?(m[1]=e[d].add(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].add(e[p].neg())):(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],v=c(n[d],n[p]);f=Math.max(v[0].length,f),u[d]=new Array(f),u[p]=new Array(f);for(S=0;S=0;h--){for(var x=0;h>=0;){for(var k=!0,S=0;S=0&&x++,_=_.dblp(x),h<0)break;for(S=0;S0?M=s[S][E-1>>1]:E<0&&(M=s[S][-E-1>>1].neg()),_="affine"===M.type?_.mixedAdd(M):_.add(M))}}for(h=0;h=Math.ceil((t.bitLength()+1)/e.step)},i.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i":""},i.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},i.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),s=o.redSub(n),a=r.redSub(e),c=i.redMul(s),u=o.redMul(a),f=i.redMul(a),h=s.redMul(o);return this.curve.point(c,u,h,f)},i.prototype._projDbl=function(){var t,e,n,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var s=(u=this.curve._mulA(i)).redAdd(o);if(this.zOne)t=r.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),e=s.redMul(u.redSub(o)),n=s.redSqr().redSub(s).redSub(s);else{var a=this.z.redSqr(),c=s.redSub(a).redISub(a);t=r.redSub(i).redISub(o).redMul(c),e=s.redMul(u.redSub(o)),n=s.redMul(c)}}else{var u=i.redAdd(o),a=this.curve._mulC(this.c.redMul(this.z)).redSqr(),c=u.redSub(a).redSub(a);t=this.curve._mulC(r.redISub(u)).redMul(c),e=this.curve._mulC(u).redMul(i.redISub(o)),n=u.redMul(c)}return this.curve.point(t,e,n)},i.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},i.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),r=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=n.redSub(e),s=i.redSub(r),a=i.redAdd(r),c=n.redAdd(e),u=o.redMul(s),f=a.redMul(c),h=o.redMul(c),l=s.redMul(a);return this.curve.point(u,f,l,h)},i.prototype._projAdd=function(t){var e,n,r=this.z.redMul(t.z),i=r.redSqr(),o=this.x.redMul(t.x),s=this.y.redMul(t.y),a=this.curve.d.redMul(o).redMul(s),c=i.redSub(a),u=i.redAdd(a),f=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(s),h=r.redMul(c).redMul(f);return this.curve.twisted?(e=r.redMul(u).redMul(s.redSub(this.curve._mulA(o))),n=c.redMul(u)):(e=r.redMul(u).redMul(s.redSub(o)),n=this.curve._mulC(c).redMul(u)),this.curve.point(h,e,n)},i.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},i.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},i.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},i.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},i.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},i.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()},i.prototype.getY=function(){return this.normalize(),this.y.fromRed()},i.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},i.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var n=t.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}return!1},i.prototype.toP=i.prototype.normalize,i.prototype.mixedAdd=i.prototype.add},{"../../elliptic":65,"../curve":68,"bn.js":"BN",inherits:99}],68:[function(t,e,n){var r=n;r.base=t("./base"),r.short=t("./short"),r.mont=t("./mont"),r.edwards=t("./edwards")},{"./base":66,"./edwards":67,"./mont":69,"./short":70}],69:[function(t,e,n){function r(t){c.call(this,"mont",t),this.a=new s(t.a,16).toRed(this.red),this.b=new s(t.b,16).toRed(this.red),this.i4=new s(4).toRed(this.red).redInvm(),this.two=new s(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function i(t,e,n){c.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new s(e,16),this.z=new s(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}var o=t("../curve"),s=t("bn.js"),a=t("inherits"),c=o.base,u=t("../../elliptic").utils;a(r,c),e.exports=r,r.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),r=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e);return 0===r.redSqrt().redSqr().cmp(r)},a(i,c.BasePoint),r.prototype.decodePoint=function(t,e){return this.point(u.toArray(t,e),1)},r.prototype.point=function(t,e){return new i(this,t,e)},r.prototype.pointFromJSON=function(t){return i.fromJSON(this,t)},i.prototype.precompute=function(){},i.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},i.fromJSON=function(t,e){return new i(t,e[0],e[1]||t.one)},i.prototype.inspect=function(){return this.isInfinity()?"":""},i.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},i.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),n=t.redSub(e),r=t.redMul(e),i=n.redMul(e.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},i.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(n),s=i.redMul(r),a=e.z.redMul(o.redAdd(s).redSqr()),c=e.x.redMul(o.redISub(s).redSqr());return this.curve.point(a,c)},i.prototype.mul=function(t){for(var e=t.clone(),n=this,r=this.curve.point(null,null),i=this,o=[];0!==e.cmpn(0);e.iushrn(1))o.push(e.andln(1));for(var s=o.length-1;s>=0;s--)0===o[s]?(n=n.diffAdd(r,i),r=r.dbl()):(r=n.diffAdd(r,i),n=n.dbl());return r},i.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},i.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../../elliptic":65,"../curve":68,"bn.js":"BN",inherits:99}],70:[function(t,e,n){function r(t){f.call(this,"short",t),this.a=new c(t.a,16).toRed(this.red),this.b=new c(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function i(t,e,n,r){f.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new c(e,16),this.y=new c(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function o(t,e,n,r){f.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new c(0)):(this.x=new c(e,16),this.y=new c(n,16),this.z=new c(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}var s=t("../curve"),a=t("../../elliptic"),c=t("bn.js"),u=t("inherits"),f=s.base,h=a.utils.assert;u(r,f),e.exports=r,r.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,n;if(t.beta)e=new c(t.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);e=(e=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(t.lambda)n=new c(t.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?n=i[0]:(n=i[1],h(0===this.g.mul(n).x.cmp(this.g.x.redMul(e))))}var o;return o=t.basis?t.basis.map(function(t){return{a:new c(t.a,16),b:new c(t.b,16)}}):this._getEndoBasis(n),{beta:e,lambda:n,basis:o}}},r.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:c.mont(t),n=new c(2).toRed(e).redInvm(),r=n.redNeg(),i=new c(3).toRed(e).redNeg().redSqrt().redMul(n);return[r.redAdd(i).fromRed(),r.redSub(i).fromRed()]},r.prototype._getEndoBasis=function(t){for(var e,n,r,i,o,s,a,u,f,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=t,d=this.n.clone(),p=new c(1),m=new c(0),b=new c(0),v=new c(1),y=0;0!==l.cmpn(0);){var g=d.div(l);u=d.sub(g.mul(l)),f=b.sub(g.mul(p));var _=v.sub(g.mul(m));if(!r&&u.cmp(h)<0)e=a.neg(),n=p,r=u.neg(),i=f;else if(r&&2==++y)break;a=u,d=l,l=u,b=p,p=f,v=m,m=_}o=u.neg(),s=f;var w=r.sqr().add(i.sqr());return o.sqr().add(s.sqr()).cmp(w)>=0&&(o=e,s=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:i},{a:o,b:s}]},r.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),s=i.mul(n.a),a=o.mul(r.a),c=i.mul(n.b),u=o.mul(r.b);return{k1:t.sub(s).sub(a),k2:c.add(u).neg()}},r.prototype.pointFromX=function(t,e){(t=new c(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(e&&!i||!e&&i)&&(r=r.redNeg()),this.point(t,r)},r.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},r.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},i.prototype.isInfinity=function(){return this.inf},i.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},i.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),r=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},i.prototype.getX=function(){return this.x.fromRed()},i.prototype.getY=function(){return this.y.fromRed()},i.prototype.mul=function(t){return t=new c(t,16),this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},i.prototype.mulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},i.prototype.jmulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},i.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},i.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,r=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return e},i.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},u(o,f.BasePoint),r.prototype.jpoint=function(t,e,n){return new o(this,t,e,n)},o.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r)},o.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},o.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(n),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(n.redMul(this.z)),a=r.redSub(i),c=o.redSub(s);if(0===a.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),f=u.redMul(a),h=r.redMul(u),l=c.redSqr().redIAdd(f).redISub(h).redISub(h),d=c.redMul(h.redISub(l)).redISub(o.redMul(f)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(l,d,p)},o.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,r=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),s=n.redSub(r),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),f=n.redMul(c),h=a.redSqr().redIAdd(u).redISub(f).redISub(f),l=a.redMul(f.redISub(h)).redISub(i.redMul(u)),d=this.z.redMul(s);return this.curve.jpoint(h,l,d)},o.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,n=0;n=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}return!1},o.prototype.inspect=function(){return this.isInfinity()?"":""},o.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../../elliptic":65,"../curve":68,"bn.js":"BN",inherits:99}],71:[function(t,e,n){function r(t){"short"===t.type?this.curve=new a.curve.short(t):"edwards"===t.type?this.curve=new a.curve.edwards(t):this.curve=new a.curve.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,c(this.g.validate(),"Invalid curve"),c(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function i(t,e){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){var n=new r(e);return Object.defineProperty(o,t,{configurable:!0,enumerable:!0,value:n}),n}})}var o=n,s=t("hash.js"),a=t("../elliptic"),c=a.utils.assert;o.PresetCurve=r,i("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:s.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),i("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:s.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),i("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:s.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),i("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:s.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),i("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:s.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),i("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["9"]}),i("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var u;try{u=t("./precomputed/secp256k1")}catch(t){u=void 0}i("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:s.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",u]})},{"../elliptic":65,"./precomputed/secp256k1":78,"hash.js":84}],72:[function(t,e,n){function r(t){if(!(this instanceof r))return new r(t);"string"==typeof t&&(a(s.curves.hasOwnProperty(t),"Unknown curve "+t),t=s.curves[t]),t instanceof s.curves.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var i=t("bn.js"),o=t("hmac-drbg"),s=t("../../elliptic"),a=s.utils.assert,c=t("./key"),u=t("./signature");e.exports=r,r.prototype.keyPair=function(t){return new c(this,t)},r.prototype.keyFromPrivate=function(t,e){return c.fromPrivate(this,t,e)},r.prototype.keyFromPublic=function(t,e){return c.fromPublic(this,t,e)},r.prototype.genKeyPair=function(t){t||(t={});for(var e=new o({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||s.rand(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new i(2));;){var a=new i(e.generate(n));if(!(a.cmp(r)>0))return a.iaddn(1),this.keyFromPrivate(a)}},r.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},r.prototype.sign=function(t,e,n,r){"object"===(void 0===n?"undefined":_typeof(n))&&(r=n,n=null),r||(r={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new i(t,16));for(var s=this.n.byteLength(),a=e.getPrivate().toArray("be",s),c=t.toArray("be",s),f=new o({hash:this.hash,entropy:a,nonce:c,pers:r.pers,persEnc:r.persEnc||"utf8"}),h=this.n.sub(new i(1)),l=0;!0;l++){var d=r.k?r.k(l):new i(f.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(h)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var m=p.getX(),b=m.umod(this.n);if(0!==b.cmpn(0)){var v=d.invm(this.n).mul(b.mul(e.getPrivate()).iadd(t));if(0!==(v=v.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(b)?2:0);return r.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),y^=1),new u({r:b,s:v,recoveryParam:y})}}}}}},r.prototype.verify=function(t,e,n,r){t=this._truncateToN(new i(t,16)),n=this.keyFromPublic(n,r);var o=(e=new u(e,"hex")).r,s=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var a=s.invm(this.n),c=a.mul(t).umod(this.n),f=a.mul(o).umod(this.n);if(!this.curve._maxwellTrick)return!(h=this.g.mulAdd(c,n.getPublic(),f)).isInfinity()&&0===h.getX().umod(this.n).cmp(o);var h=this.g.jmulAdd(c,n.getPublic(),f);return!h.isInfinity()&&h.eqXToP(o)},r.prototype.recoverPubKey=function(t,e,n,r){a((3&n)===n,"The recovery param is more than two bits"),e=new u(e,r);var o=this.n,s=new i(t),c=e.r,f=e.s,h=1&n,l=n>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");c=l?this.curve.pointFromX(c.add(this.curve.n),h):this.curve.pointFromX(c,h);var d=e.r.invm(o),p=o.sub(s).mul(d).umod(o),m=f.mul(d).umod(o);return this.g.mulAdd(p,c,m)},r.prototype.getKeyRecoveryParam=function(t,e,n,r){if(null!==(e=new u(e,r)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},{"../../elliptic":65,"./key":73,"./signature":74,"bn.js":"BN","hmac-drbg":96}],73:[function(t,e,n){function r(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var i=t("bn.js"),o=t("../../elliptic").utils.assert;e.exports=r,r.fromPublic=function(t,e,n){return e instanceof r?e:new r(t,{pub:e,pubEnc:n})},r.fromPrivate=function(t,e,n){return e instanceof r?e:new r(t,{priv:e,privEnc:n})},r.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},r.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},r.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},r.prototype._importPrivate=function(t,e){this.priv=new i(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},r.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?o(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},r.prototype.derive=function(t){return t.mul(this.priv).getX()},r.prototype.sign=function(t,e,n){return this.ec.sign(t,this,e,n)},r.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},r.prototype.inspect=function(){return""}},{"../../elliptic":65,"bn.js":"BN"}],74:[function(t,e,n){function r(t,e){if(t instanceof r)return t;this._importDER(t,e)||(f(t.r&&t.s,"Signature without r or s"),this.r=new c(t.r,16),this.s=new c(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function i(){this.place=0}function o(t,e){var n=t[e.place++];if(!(128&n))return n;for(var r=15&n,i=0,o=0,s=e.place;o>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}var c=t("bn.js"),u=t("../../elliptic").utils,f=u.assert;e.exports=r,r.prototype._importDER=function(t,e){t=u.toArray(t,e);var n=new i;if(48!==t[n.place++])return!1;if(o(t,n)+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;var r=o(t,n),s=t.slice(n.place,r+n.place);if(n.place+=r,2!==t[n.place++])return!1;var a=o(t,n);if(t.length!==a+n.place)return!1;var f=t.slice(n.place,a+n.place);return 0===s[0]&&128&s[1]&&(s=s.slice(1)),0===f[0]&&128&f[1]&&(f=f.slice(1)),this.r=new c(s),this.s=new c(f),this.recoveryParam=null,!0},r.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=s(e),n=s(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];a(r,e.length),(r=r.concat(e)).push(2),a(r,n.length);var i=r.concat(n),o=[48];return a(o,i.length),o=o.concat(i),u.encode(o,t)}},{"../../elliptic":65,"bn.js":"BN"}],75:[function(t,e,n){function r(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof r))return new r(t);var t=o.curves[t].curve;this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=i.sha512}var i=t("hash.js"),o=t("../../elliptic"),s=o.utils,a=s.assert,c=s.parseBytes,u=t("./key"),f=t("./signature");e.exports=r,r.prototype.sign=function(t,e){t=c(t);var n=this.keyFromSecret(e),r=this.hashInt(n.messagePrefix(),t),i=this.g.mul(r),o=this.encodePoint(i),s=this.hashInt(o,n.pubBytes(),t).mul(n.priv()),a=r.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:a,Rencoded:o})},r.prototype.verify=function(t,e,n){t=c(t),e=this.makeSignature(e);var r=this.keyFromPublic(n),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(r.pub().mul(i)).eq(o)},r.prototype.hashInt=function(){for(var t=this.hash(),e=0;e=0;){var o;if(i.isOdd()){var s=i.andln(r-1);o=s>(r>>1)-1?(r>>1)-s:s,i.isubn(o)}else o=0;n.push(o);for(var a=0!==i.cmpn(0)&&0===i.andln(r-1)?e+1:1,c=1;c0||e.cmpn(-i)>0;){var o=t.andln(3)+r&3,s=e.andln(3)+i&3;3===o&&(o=-1),3===s&&(s=-1);var a;a=0==(1&o)?0:3!=(u=t.andln(7)+r&7)&&5!==u||2!==s?o:-o,n[0].push(a);var c;if(0==(1&s))c=0;else{var u=e.andln(7)+i&7;c=3!==u&&5!==u||2!==o?s:-s}n[1].push(c),2*r===a+1&&(r=1-r),2*i===c+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return n},r.cachedProperty=function(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(t){return"string"==typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new i(t,"hex","le")}},{"bn.js":"BN","minimalistic-assert":103,"minimalistic-crypto-utils":104}],80:[function(t,e,n){e.exports={_from:"elliptic@^6.0.0",_id:"elliptic@6.4.0",_inBundle:!1,_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_location:"/elliptic",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"elliptic@^6.0.0",name:"elliptic",escapedName:"elliptic",rawSpec:"^6.0.0",saveSpec:null,fetchSpec:"^6.0.0"},_requiredBy:["/browserify-sign","/create-ecdh","/secp256k1"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",_spec:"elliptic@^6.0.0",_where:"/Users/frozeman/Sites/_ethereum/web3/node_modules/browserify-sign",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},bundleDependencies:!1,dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},deprecated:!1,description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0"}},{}],81:[function(t,e,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function o(t){return"number"==typeof t}function s(t){return"object"===(void 0===t?"undefined":_typeof(t))&&null!==t}function a(t){return void 0===t}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(t){if(!o(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},r.prototype.emit=function(t){var e,n,r,o,c,u;if(this._events||(this._events={}),"error"===t&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var f=new Error('Uncaught, unspecified "error" event. ('+e+")");throw f.context=e,f}if(n=this._events[t],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),n.apply(this,o)}else if(s(n))for(o=Array.prototype.slice.call(arguments,1),r=(u=n.slice()).length,c=0;c0&&this._events[t].length>n&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(t,e){function n(){this.removeListener(t,n),r||(r=!0,e.apply(this,arguments))}if(!i(e))throw TypeError("listener must be a function");var r=!1;return n.listener=e,this.on(t,n),this},r.prototype.removeListener=function(t,e){var n,r,o,a;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],o=n.length,r=-1,n===e||i(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(s(n)){for(a=o;a-- >0;)if(n[a]===e||n[a].listener&&n[a].listener===e){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},r.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],i(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},r.prototype.listeners=function(t){return this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},r.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},r.listenerCount=function(t,e){return t.listenerCount(e)}},{}],82:[function(t,e,n){(function(n){var r=t("create-hash/md5");e.exports=function(t,e,i,o){n.isBuffer(t)||(t=new n(t,"binary")),e&&!n.isBuffer(e)&&(e=new n(e,"binary")),i/=8,o=o||0;for(var s,a,c=0,u=0,f=new n(i),h=new n(o),l=0,d=[];;){if(l++>0&&d.push(s),d.push(t),e&&d.push(e),s=r(n.concat(d)),d=[],a=0,i>0)for(;0!==i&&a!==s.length;)f[c++]=s[a],i--,a++;if(o>0&&a!==s.length)for(;0!==o&&a!==s.length;)h[u++]=s[a],o--,a++;if(0===i&&0===o)break}for(a=0;a=this._blockSize;){for(var o=this._blockOffset;o0;++s)this._length[s]+=a,(a=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*a);return this},r.prototype._update=function(t){throw new Error("_update is not implemented")},r.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();return void 0!==t&&(e=e.toString(t)),e},r.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=r}).call(this,t("buffer").Buffer)},{buffer:45,inherits:99,stream:148}],84:[function(t,e,n){var r=n;r.utils=t("./hash/utils"),r.common=t("./hash/common"),r.sha=t("./hash/sha"),r.ripemd=t("./hash/ripemd"),r.hmac=t("./hash/hmac"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"./hash/common":85,"./hash/hmac":86,"./hash/ripemd":87,"./hash/sha":88,"./hash/utils":95}],85:[function(t,e,n){function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var i=t("./utils"),o=t("minimalistic-assert");n.BlockHash=r,r.prototype.update=function(t,e){if(t=i.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=i.join32(t,0,t.length-n,this.endian);for(var r=0;r>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;othis.blockSize&&(t=(new this.Hash).update(t).digest()),o(t.length<=this.blockSize);for(var e=t.length;e>>3},n.g1_256=function(t){return s(t,17)^s(t,19)^t>>>10}},{"../utils":95}],95:[function(t,e,n){function r(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function i(t){return 1===t.length?"0"+t:t}function o(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}var s=t("minimalistic-assert"),a=t("inherits");n.inherits=a,n.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),r=0;r>8,s=255&i;o?n.push(o,s):n.push(s)}else for(r=0;r>>0}return o},n.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},n.rotr32=function(t,e){return t>>>e|t<<32-e},n.rotl32=function(t,e){return t<>>32-e},n.sum32=function(t,e){return t+e>>>0},n.sum32_3=function(t,e,n){return t+e+n>>>0},n.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},n.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},n.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,s=(o>>0,t[e+1]=o},n.sum64_hi=function(t,e,n,r){return(e+r>>>0>>0},n.sum64_lo=function(t,e,n,r){return e+r>>>0},n.sum64_4_hi=function(t,e,n,r,i,o,s,a){var c=0,u=e;return c+=(u=u+r>>>0)>>0)>>0)>>0},n.sum64_4_lo=function(t,e,n,r,i,o,s,a){return e+r+o+a>>>0},n.sum64_5_hi=function(t,e,n,r,i,o,s,a,c,u){var f=0,h=e;return f+=(h=h+r>>>0)>>0)>>0)>>0)>>0},n.sum64_5_lo=function(t,e,n,r,i,o,s,a,c,u){return e+r+o+a+u>>>0},n.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},n.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},n.shr64_hi=function(t,e,n){return t>>>n},n.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},{inherits:99,"minimalistic-assert":103}],96:[function(t,e,n){function r(t){if(!(this instanceof r))return new r(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),n=o.toArray(t.nonce,t.nonceEnc||"hex"),i=o.toArray(t.pers,t.persEnc||"hex");s(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,i)}var i=t("hash.js"),o=t("minimalistic-crypto-utils"),s=t("minimalistic-assert");e.exports=r,r.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},r.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=n,n=e,e=null),n&&(n=o.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length>1,f=-7,h=n?i-1:0,l=n?-1:1,d=t[e+h];for(h+=l,o=d&(1<<-f)-1,d>>=-f,f+=a;f>0;o=256*o+t[e+h],h+=l,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=r;f>0;s=256*s+t[e+h],h+=l,f-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=u}return(d?-1:1)*s*Math.pow(2,o-r)},n.write=function(t,e,n,r,i,o){var s,a,c,u=8*o-i-1,f=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+h>=1?l/c:l*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=f?(a=0,s=f):s+h>=1?(a=(e*c-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[n+d]=255&a,d+=p,a/=256,i-=8);for(s=s<0;t[n+d]=255&s,d+=p,s/=256,u-=8);t[n+d-p]|=128*m}},{}],98:[function(t,e,n){var r=[].indexOf;e.exports=function(t,e){if(r)return t.indexOf(e);for(var n=0;n>=7-r),new i(n)},r.prototype.test=function(t,e,n){var r=t.bitLength(),o=i.mont(t),s=new i(1).toRed(o);e||(e=Math.max(1,r/48|0));for(var a=t.subn(1),c=a.subn(1),u=0;!a.testn(u);u++);for(var f=t.shrn(u),h=a.toRed(o);e>0;e--){var l=this._rand(c);n&&n(l);var d=l.toRed(o).redPow(f);if(0!==d.cmp(s)&&0!==d.cmp(h)){for(var p=1;p0;e--){var h=this._rand(a),l=t.gcd(h);if(0!==l.cmpn(1))return l;var d=h.toRed(r).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(f)){for(var p=1;p>8,s=255&i;o?n.push(o,s):n.push(s)}return n},o.zero2=r,o.toHex=i,o.encode=function(t,e){return"hex"===e?i(t):t}},{}],105:[function(t,e,n){e.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],106:[function(t,e,n){var r=t("asn1.js");n.certificate=t("./certificate");var i=r.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});n.RSAPrivateKey=i;var o=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});n.RSAPublicKey=o;var s=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});n.PublicKey=s;var a=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),c=r.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});n.PrivateKey=c;var u=r.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});n.EncryptedPrivateKey=u;var f=r.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});n.DSAPrivateKey=f,n.DSAparam=r.define("DSAparam",function(){this.int()});var h=r.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())});n.ECPrivateKey=h;var l=r.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});n.signature=r.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":107,"asn1.js":2}],107:[function(t,e,n){var r=t("asn1.js"),i=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),s=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),a=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}),c=r.define("RelativeDistinguishedName",function(){this.setof(o)}),u=r.define("RDNSequence",function(){this.seqof(c)}),f=r.define("Name",function(){this.choice({rdnSequence:this.use(u)})}),h=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),l=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(f),this.key("validity").use(h),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())}),p=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())});e.exports=p},{"asn1.js":2}],108:[function(t,e,n){(function(n){var r=/Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m,i=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,o=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,s=t("evp_bytestokey"),a=t("browserify-aes");e.exports=function(t,e){var c,u=t.toString(),f=u.match(r);if(f){var h="aes"+f[1],l=new n(f[2],"hex"),d=new n(f[3].replace(/\r?\n/g,""),"base64"),p=s(e,l.slice(0,8),parseInt(f[1],10)).key,m=[],b=a.createDecipheriv(h,p,l);m.push(b.update(d)),m.push(b.final()),c=n.concat(m)}else{var v=u.match(o);c=new n(v[2].replace(/\r?\n/g,""),"base64")}return{tag:u.match(i)[1],data:c}}}).call(this,t("buffer").Buffer)},{"browserify-aes":21,buffer:45,evp_bytestokey:82}],109:[function(t,e,n){(function(n){function r(t){var e;"object"!==(void 0===t?"undefined":_typeof(t))||n.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=new n(t));var r,s,c=a(t,e),u=c.tag,f=c.data;switch(u){case"CERTIFICATE":s=o.certificate.decode(f,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(s||(s=o.PublicKey.decode(f,"der")),r=s.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPublicKey.decode(s.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return s.subjectPrivateKey=s.subjectPublicKey,{type:"ec",data:s};case"1.2.840.10040.4.1":return s.algorithm.params.pub_key=o.DSAparam.decode(s.subjectPublicKey.data,"der"),{type:"dsa",data:s.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+u);case"ENCRYPTED PRIVATE KEY":f=i(f=o.EncryptedPrivateKey.decode(f,"der"),e);case"PRIVATE KEY":switch(s=o.PrivateKey.decode(f,"der"),r=s.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPrivateKey.decode(s.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:s.algorithm.curve,privateKey:o.ECPrivateKey.decode(s.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return s.algorithm.params.priv_key=o.DSAparam.decode(s.subjectPrivateKey,"der"),{type:"dsa",params:s.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+u);case"RSA PUBLIC KEY":return o.RSAPublicKey.decode(f,"der");case"RSA PRIVATE KEY":return o.RSAPrivateKey.decode(f,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:o.DSAPrivateKey.decode(f,"der")};case"EC PRIVATE KEY":return f=o.ECPrivateKey.decode(f,"der"),{curve:f.parameters.value,privateKey:f.privateKey};default:throw new Error("unknown key type "+u)}}function i(t,e){var r=t.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=s[t.algorithm.decrypt.cipher.algo.join(".")],a=t.algorithm.decrypt.cipher.iv,f=t.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,l=u.pbkdf2Sync(e,r,i,h),d=c.createDecipheriv(o,l,a),p=[];return p.push(d.update(f)),p.push(d.final()),n.concat(p)}var o=t("./asn1"),s=t("./aesid.json"),a=t("./fixProc"),c=t("browserify-aes"),u=t("pbkdf2");e.exports=r,r.signature=o.signature}).call(this,t("buffer").Buffer)},{"./aesid.json":105,"./asn1":106,"./fixProc":108,"browserify-aes":21,buffer:45,pbkdf2:111}],110:[function(t,e,n){(function(t){function e(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r=-1&&!i;o--){var s=o>=0?arguments[o]:t.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(n=s+"/"+n,i="/"===s.charAt(0))}return n=e(r(n.split("/"),function(t){return!!t}),!i).join("/"),(i?"/":"")+n||"."},n.normalize=function(t){var i=n.isAbsolute(t),o="/"===s(t,-1);return(t=e(r(t.split("/"),function(t){return!!t}),!i).join("/"))||i||(t="."),t&&o&&(t+="/"),(i?"/":"")+t},n.isAbsolute=function(t){return"/"===t.charAt(0)},n.join=function(){var t=Array.prototype.slice.call(arguments,0);return n.normalize(r(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},n.relative=function(t,e){function r(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=n.resolve(t).substr(1),e=n.resolve(e).substr(1);for(var i=r(t.split("/")),o=r(e.split("/")),s=Math.min(i.length,o.length),a=s,c=0;c=6?"utf-8":"binary",e.exports=n}).call(this,t("_process"))},{_process:117}],114:[function(t,e,n){var r=Math.pow(2,30)-1;e.exports=function(t,e){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>r||e!==e)throw new TypeError("Bad key length")}},{}],115:[function(t,e,n){function r(t,e,n){var r=i(t),o="sha512"===t||"sha384"===t?128:64;e.length>o?e=r(e):e.length1)for(var n=1;n=e.length){o++;break}var s=e.slice(2,i-1);e.slice(i-1,i);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++,s.length<8&&o++,o)throw new Error("decryption error");return e.slice(i)}function o(t,e){t=new n(t),e=new n(e);var r=0,i=t.length;t.length!==e.length&&(r++,i=Math.min(t.length,e.length));for(var o=-1;++oh||new u(e).cmp(c.modulus)>=0)throw new Error("decryption error");var d;d=o?l(new u(e),c):f(e,c);var p=new n(h-d.length);if(p.fill(0),d=n.concat([p,d],h),4===a)return r(c,d);if(1===a)return i(0,d,o);if(3===a)return d;throw new Error("unknown padding")}}).call(this,t("buffer").Buffer)},{"./mgf":119,"./withPublic":122,"./xor":123,"bn.js":"BN","browserify-rsa":37,buffer:45,"create-hash":49,"parse-asn1":109}],121:[function(t,e,n){(function(n){function r(t,e){var r=t.modulus.byteLength(),i=e.length,o=c("sha1").update(new n("")).digest(),s=o.length,l=2*s;if(i>r-l-2)throw new Error("message too long");var d=new n(r-i-l-2);d.fill(0);var p=r-s-1,m=a(s),b=f(n.concat([o,d,new n([1]),e],p),u(m,p)),v=f(m,u(b,s));return new h(n.concat([new n([0]),v,b],r))}function i(t,e,r){var i=e.length,s=t.modulus.byteLength();if(i>s-11)throw new Error("message too long");var a;return r?(a=new n(s-i-3)).fill(255):a=o(s-i-3),new h(n.concat([new n([0,r?1:2]),a,new n([0]),e],s))}function o(t,e){for(var r,i=new n(t),o=0,s=a(2*t),c=0;o=0)throw new Error("data too long for modulus")}return n?d(a,c):l(a,c)}}).call(this,t("buffer").Buffer)},{"./mgf":119,"./withPublic":122,"./xor":123,"bn.js":"BN","browserify-rsa":37,buffer:45,"create-hash":49,"parse-asn1":109,randombytes:124}],122:[function(t,e,n){(function(n){var r=t("bn.js");e.exports=function(t,e){return new n(t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed().toArray())}}).call(this,t("buffer").Buffer)},{"bn.js":"BN",buffer:45}],123:[function(t,e,n){e.exports=function(t,e){for(var n=t.length,r=-1;++r65536)throw new Error("requested too many random bytes");var s=new r.Uint8Array(t);t>0&&o.getRandomValues(s);var a=i.from(s.buffer);return"function"==typeof e?n.nextTick(function(){e(null,a)}):a}:e.exports=function(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:117,"safe-buffer":139}],125:[function(t,e,n){e.exports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":126}],126:[function(t,e,n){function r(t){if(!(this instanceof r))return new r(t);u.call(this,t),f.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this._writableState.ended||s(o,this)}function o(t){t.end()}var s=t("process-nextick-args"),a=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};e.exports=r;var c=t("core-util-is");c.inherits=t("inherits");var u=t("./_stream_readable"),f=t("./_stream_writable");c.inherits(r,u);for(var h=a(f.prototype),l=0;l0?("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===N.prototype||(e=i(e)),r?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):f(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?f(t,s,e,!1):y(t,s)):f(t,s,e,!1))):r||(s.reading=!1)}return l(s)}function f(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&b(t)),y(t,e)}function h(t,e){var n;return o(e)||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function l(t){return!t.ended&&(t.needReadable||t.length=K?t=K:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function p(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=d(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function m(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,b(t)}}function b(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(z("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?P(v,t):v(t))}function v(t){z("emit readable"),t.emit("readable"),S(t)}function y(t,e){e.readingMore||(e.readingMore=!0,P(g,t,e))}function g(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=E(t,e.buffer,e.decoder),n}function E(t,e,n){var r;return to.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),0===(t-=s)){s===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++r}return e.length-=r,i}function C(t,e){var n=N.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),0===(t-=s)){s===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++i}return e.length-=i,n}function A(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,P(T,e,t))}function T(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function I(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return z("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?A(this):b(this),null;if(0===(t=p(t,e))&&e.ended)return 0===e.length&&A(this),null;var r=e.needReadable;z("need readable",r),(0===e.length||e.length-t0?M(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&A(this)),null!==i&&this.emit("data",i),i},c.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},c.prototype.pipe=function(t,e){function r(t,e){z("onunpipe"),t===l&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,o())}function i(){z("onend"),t.end()}function o(){z("cleanup"),t.removeListener("close",u),t.removeListener("finish",f),t.removeListener("drain",m),t.removeListener("error",c),t.removeListener("unpipe",r),l.removeListener("end",i),l.removeListener("end",h),l.removeListener("data",a),b=!0,!d.awaitDrain||t._writableState&&!t._writableState.needDrain||m()}function a(e){z("ondata"),v=!1,!1!==t.write(e)||v||((1===d.pipesCount&&d.pipes===t||d.pipesCount>1&&-1!==I(d.pipes,t))&&!b&&(z("false write response, pause",l._readableState.awaitDrain),l._readableState.awaitDrain++,v=!0),l.pause())}function c(e){z("onerror",e),h(),t.removeListener("error",c),0===R(t,"error")&&t.emit("error",e)}function u(){t.removeListener("finish",f),h()}function f(){z("onfinish"),t.removeListener("close",u),h()}function h(){z("unpipe"),l.unpipe(t)}var l=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=t;break;case 1:d.pipes=[d.pipes,t];break;default:d.pipes.push(t)}d.pipesCount+=1,z("pipe count=%d opts=%j",d.pipesCount,e);var p=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?i:h;d.endEmitted?P(p):l.once("end",p),t.on("unpipe",r);var m=_(l);t.on("drain",m);var b=!1,v=!1;return l.on("data",a),s(t,"error",c),t.once("close",u),t.once("finish",f),t.emit("pipe",l),d.flowing||(z("pipe resume"),l.resume()),t},c.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o-1?setImmediate:j;u.WritableState=c;var T=t("core-util-is");T.inherits=t("inherits");var I={deprecate:t("util-deprecate")},P=t("./internal/streams/stream"),B=t("safe-buffer").Buffer,F=r.Uint8Array||function(){},R=t("./internal/streams/destroy");T.inherits(u,P),c.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(c.prototype,"buffer",{get:I.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}();var O;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(O=Function.prototype[Symbol.hasInstance],Object.defineProperty(u,Symbol.hasInstance,{value:function(t){return!!O.call(this,t)||t&&t._writableState instanceof c}})):O=function(t){return t instanceof this},u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},u.prototype.write=function(t,e,n){var r=this._writableState,i=!1,c=s(t)&&!r.objectMode;return c&&!B.isBuffer(t)&&(t=o(t)),"function"==typeof e&&(n=e,e=null),c?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=a),r.ended?f(this,n):(c||h(this,r,t,n))&&(r.pendingcb++,i=d(this,r,c,t,e,n)),i},u.prototype.cork=function(){this._writableState.corked++},u.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||_(this,t))},u.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},u.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},u.prototype._writev=null,u.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||M(this,r,n)},Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),u.prototype.destroy=R.destroy,u.prototype._undestroy=R.undestroy,u.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":126,"./internal/streams/destroy":132,"./internal/streams/stream":133,_process:117,"core-util-is":47,inherits:99,"process-nextick-args":116,"safe-buffer":139,"util-deprecate":150}],131:[function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,n){t.copy(e,n)}var o=t("safe-buffer").Buffer;e.exports=function(){function t(){r(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var e=o.allocUnsafe(t>>>0),n=this.head,r=0;n;)i(n.data,e,r),r+=n.data.length,n=n.next;return e},t}()},{"safe-buffer":139}],132:[function(t,e,n){function r(t,e){t.emit("error",e)}var i=t("process-nextick-args");e.exports={destroy:function(t,e){var n=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;o||s?e?e(t):!t||this._writableState&&this._writableState.errorEmitted||i(r,this,t):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(i(r,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)}))},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":116}],133:[function(t,e,n){e.exports=t("events").EventEmitter},{events:81}],134:[function(t,e,n){e.exports=t("./readable").PassThrough},{"./readable":135}],135:[function(t,e,n){(n=e.exports=t("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=t("./lib/_stream_writable.js"),n.Duplex=t("./lib/_stream_duplex.js"),n.Transform=t("./lib/_stream_transform.js"),n.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":126,"./lib/_stream_passthrough.js":127,"./lib/_stream_readable.js":128,"./lib/_stream_transform.js":129,"./lib/_stream_writable.js":130}],136:[function(t,e,n){e.exports=t("./readable").Transform},{"./readable":135}],137:[function(t,e,n){e.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":130}],138:[function(t,e,n){(function(n){function r(){h.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function i(t,e){return t<>>32-e}function o(t,e,n,r,o,s,a,c){return i(t+(e^n^r)+s+a|0,c)+o|0}function s(t,e,n,r,o,s,a,c){return i(t+(e&n|~e&r)+s+a|0,c)+o|0}function a(t,e,n,r,o,s,a,c){return i(t+((e|~n)^r)+s+a|0,c)+o|0}function c(t,e,n,r,o,s,a,c){return i(t+(e&r|n&~r)+s+a|0,c)+o|0}function u(t,e,n,r,o,s,a,c){return i(t+(e^(n|~r))+s+a|0,c)+o|0}var f=t("inherits"),h=t("hash-base");f(r,h),r.prototype._update=function(){for(var t=new Array(16),e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,r=this._b,f=this._c,h=this._d,l=this._e;l=o(l,n=o(n,r,f,h,l,t[0],0,11),r,f=i(f,10),h,t[1],0,14),r=o(r=i(r,10),f=o(f,h=o(h,l,n,r,f,t[2],0,15),l,n=i(n,10),r,t[3],0,12),h,l=i(l,10),n,t[4],0,5),h=o(h=i(h,10),l=o(l,n=o(n,r,f,h,l,t[5],0,8),r,f=i(f,10),h,t[6],0,7),n,r=i(r,10),f,t[7],0,9),n=o(n=i(n,10),r=o(r,f=o(f,h,l,n,r,t[8],0,11),h,l=i(l,10),n,t[9],0,13),f,h=i(h,10),l,t[10],0,14),f=o(f=i(f,10),h=o(h,l=o(l,n,r,f,h,t[11],0,15),n,r=i(r,10),f,t[12],0,6),l,n=i(n,10),r,t[13],0,7),l=s(l=i(l,10),n=o(n,r=o(r,f,h,l,n,t[14],0,9),f,h=i(h,10),l,t[15],0,8),r,f=i(f,10),h,t[7],1518500249,7),r=s(r=i(r,10),f=s(f,h=s(h,l,n,r,f,t[4],1518500249,6),l,n=i(n,10),r,t[13],1518500249,8),h,l=i(l,10),n,t[1],1518500249,13),h=s(h=i(h,10),l=s(l,n=s(n,r,f,h,l,t[10],1518500249,11),r,f=i(f,10),h,t[6],1518500249,9),n,r=i(r,10),f,t[15],1518500249,7),n=s(n=i(n,10),r=s(r,f=s(f,h,l,n,r,t[3],1518500249,15),h,l=i(l,10),n,t[12],1518500249,7),f,h=i(h,10),l,t[0],1518500249,12),f=s(f=i(f,10),h=s(h,l=s(l,n,r,f,h,t[9],1518500249,15),n,r=i(r,10),f,t[5],1518500249,9),l,n=i(n,10),r,t[2],1518500249,11),l=s(l=i(l,10),n=s(n,r=s(r,f,h,l,n,t[14],1518500249,7),f,h=i(h,10),l,t[11],1518500249,13),r,f=i(f,10),h,t[8],1518500249,12),r=a(r=i(r,10),f=a(f,h=a(h,l,n,r,f,t[3],1859775393,11),l,n=i(n,10),r,t[10],1859775393,13),h,l=i(l,10),n,t[14],1859775393,6),h=a(h=i(h,10),l=a(l,n=a(n,r,f,h,l,t[4],1859775393,7),r,f=i(f,10),h,t[9],1859775393,14),n,r=i(r,10),f,t[15],1859775393,9),n=a(n=i(n,10),r=a(r,f=a(f,h,l,n,r,t[8],1859775393,13),h,l=i(l,10),n,t[1],1859775393,15),f,h=i(h,10),l,t[2],1859775393,14),f=a(f=i(f,10),h=a(h,l=a(l,n,r,f,h,t[7],1859775393,8),n,r=i(r,10),f,t[0],1859775393,13),l,n=i(n,10),r,t[6],1859775393,6),l=a(l=i(l,10),n=a(n,r=a(r,f,h,l,n,t[13],1859775393,5),f,h=i(h,10),l,t[11],1859775393,12),r,f=i(f,10),h,t[5],1859775393,7),r=c(r=i(r,10),f=c(f,h=a(h,l,n,r,f,t[12],1859775393,5),l,n=i(n,10),r,t[1],2400959708,11),h,l=i(l,10),n,t[9],2400959708,12),h=c(h=i(h,10),l=c(l,n=c(n,r,f,h,l,t[11],2400959708,14),r,f=i(f,10),h,t[10],2400959708,15),n,r=i(r,10),f,t[0],2400959708,14),n=c(n=i(n,10),r=c(r,f=c(f,h,l,n,r,t[8],2400959708,15),h,l=i(l,10),n,t[12],2400959708,9),f,h=i(h,10),l,t[4],2400959708,8),f=c(f=i(f,10),h=c(h,l=c(l,n,r,f,h,t[13],2400959708,9),n,r=i(r,10),f,t[3],2400959708,14),l,n=i(n,10),r,t[7],2400959708,5),l=c(l=i(l,10),n=c(n,r=c(r,f,h,l,n,t[15],2400959708,6),f,h=i(h,10),l,t[14],2400959708,8),r,f=i(f,10),h,t[5],2400959708,6),r=u(r=i(r,10),f=c(f,h=c(h,l,n,r,f,t[6],2400959708,5),l,n=i(n,10),r,t[2],2400959708,12),h,l=i(l,10),n,t[4],2840853838,9),h=u(h=i(h,10),l=u(l,n=u(n,r,f,h,l,t[0],2840853838,15),r,f=i(f,10),h,t[5],2840853838,5),n,r=i(r,10),f,t[9],2840853838,11),n=u(n=i(n,10),r=u(r,f=u(f,h,l,n,r,t[7],2840853838,6),h,l=i(l,10),n,t[12],2840853838,8),f,h=i(h,10),l,t[2],2840853838,13),f=u(f=i(f,10),h=u(h,l=u(l,n,r,f,h,t[10],2840853838,12),n,r=i(r,10),f,t[14],2840853838,5),l,n=i(n,10),r,t[1],2840853838,12),l=u(l=i(l,10),n=u(n,r=u(r,f,h,l,n,t[3],2840853838,13),f,h=i(h,10),l,t[8],2840853838,14),r,f=i(f,10),h,t[11],2840853838,11),r=u(r=i(r,10),f=u(f,h=u(h,l,n,r,f,t[6],2840853838,8),l,n=i(n,10),r,t[15],2840853838,5),h,l=i(l,10),n,t[13],2840853838,6),h=i(h,10);var d=this._a,p=this._b,m=this._c,b=this._d,v=this._e;v=u(v,d=u(d,p,m,b,v,t[5],1352829926,8),p,m=i(m,10),b,t[14],1352829926,9),p=u(p=i(p,10),m=u(m,b=u(b,v,d,p,m,t[7],1352829926,9),v,d=i(d,10),p,t[0],1352829926,11),b,v=i(v,10),d,t[9],1352829926,13),b=u(b=i(b,10),v=u(v,d=u(d,p,m,b,v,t[2],1352829926,15),p,m=i(m,10),b,t[11],1352829926,15),d,p=i(p,10),m,t[4],1352829926,5),d=u(d=i(d,10),p=u(p,m=u(m,b,v,d,p,t[13],1352829926,7),b,v=i(v,10),d,t[6],1352829926,7),m,b=i(b,10),v,t[15],1352829926,8),m=u(m=i(m,10),b=u(b,v=u(v,d,p,m,b,t[8],1352829926,11),d,p=i(p,10),m,t[1],1352829926,14),v,d=i(d,10),p,t[10],1352829926,14),v=c(v=i(v,10),d=u(d,p=u(p,m,b,v,d,t[3],1352829926,12),m,b=i(b,10),v,t[12],1352829926,6),p,m=i(m,10),b,t[6],1548603684,9),p=c(p=i(p,10),m=c(m,b=c(b,v,d,p,m,t[11],1548603684,13),v,d=i(d,10),p,t[3],1548603684,15),b,v=i(v,10),d,t[7],1548603684,7),b=c(b=i(b,10),v=c(v,d=c(d,p,m,b,v,t[0],1548603684,12),p,m=i(m,10),b,t[13],1548603684,8),d,p=i(p,10),m,t[5],1548603684,9),d=c(d=i(d,10),p=c(p,m=c(m,b,v,d,p,t[10],1548603684,11),b,v=i(v,10),d,t[14],1548603684,7),m,b=i(b,10),v,t[15],1548603684,7),m=c(m=i(m,10),b=c(b,v=c(v,d,p,m,b,t[8],1548603684,12),d,p=i(p,10),m,t[12],1548603684,7),v,d=i(d,10),p,t[4],1548603684,6),v=c(v=i(v,10),d=c(d,p=c(p,m,b,v,d,t[9],1548603684,15),m,b=i(b,10),v,t[1],1548603684,13),p,m=i(m,10),b,t[2],1548603684,11),p=a(p=i(p,10),m=a(m,b=a(b,v,d,p,m,t[15],1836072691,9),v,d=i(d,10),p,t[5],1836072691,7),b,v=i(v,10),d,t[1],1836072691,15),b=a(b=i(b,10),v=a(v,d=a(d,p,m,b,v,t[3],1836072691,11),p,m=i(m,10),b,t[7],1836072691,8),d,p=i(p,10),m,t[14],1836072691,6),d=a(d=i(d,10),p=a(p,m=a(m,b,v,d,p,t[6],1836072691,6),b,v=i(v,10),d,t[9],1836072691,14),m,b=i(b,10),v,t[11],1836072691,12),m=a(m=i(m,10),b=a(b,v=a(v,d,p,m,b,t[8],1836072691,13),d,p=i(p,10),m,t[12],1836072691,5),v,d=i(d,10),p,t[2],1836072691,14),v=a(v=i(v,10),d=a(d,p=a(p,m,b,v,d,t[10],1836072691,13),m,b=i(b,10),v,t[0],1836072691,13),p,m=i(m,10),b,t[4],1836072691,7),p=s(p=i(p,10),m=s(m,b=a(b,v,d,p,m,t[13],1836072691,5),v,d=i(d,10),p,t[8],2053994217,15),b,v=i(v,10),d,t[6],2053994217,5),b=s(b=i(b,10),v=s(v,d=s(d,p,m,b,v,t[4],2053994217,8),p,m=i(m,10),b,t[1],2053994217,11),d,p=i(p,10),m,t[3],2053994217,14),d=s(d=i(d,10),p=s(p,m=s(m,b,v,d,p,t[11],2053994217,14),b,v=i(v,10),d,t[15],2053994217,6),m,b=i(b,10),v,t[0],2053994217,14),m=s(m=i(m,10),b=s(b,v=s(v,d,p,m,b,t[5],2053994217,6),d,p=i(p,10),m,t[12],2053994217,9),v,d=i(d,10),p,t[2],2053994217,12),v=s(v=i(v,10),d=s(d,p=s(p,m,b,v,d,t[13],2053994217,9),m,b=i(b,10),v,t[9],2053994217,12),p,m=i(m,10),b,t[7],2053994217,5),p=o(p=i(p,10),m=s(m,b=s(b,v,d,p,m,t[10],2053994217,15),v,d=i(d,10),p,t[14],2053994217,8),b,v=i(v,10),d,t[12],0,8),b=o(b=i(b,10),v=o(v,d=o(d,p,m,b,v,t[15],0,5),p,m=i(m,10),b,t[10],0,12),d,p=i(p,10),m,t[4],0,9),d=o(d=i(d,10),p=o(p,m=o(m,b,v,d,p,t[1],0,12),b,v=i(v,10),d,t[5],0,5),m,b=i(b,10),v,t[8],0,14),m=o(m=i(m,10),b=o(b,v=o(v,d,p,m,b,t[7],0,6),d,p=i(p,10),m,t[6],0,8),v,d=i(d,10),p,t[2],0,13),v=o(v=i(v,10),d=o(d,p=o(p,m,b,v,d,t[13],0,6),m,b=i(b,10),v,t[14],0,5),p,m=i(m,10),b,t[0],0,15),p=o(p=i(p,10),m=o(m,b=o(b,v,d,p,m,t[3],0,13),v,d=i(d,10),p,t[9],0,11),b,v=i(v,10),d,t[11],0,11),b=i(b,10);var y=this._b+f+b|0;this._b=this._c+h+v|0,this._c=this._d+l+d|0,this._d=this._e+n+p|0,this._e=this._a+r+m|0,this._a=y},r.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},e.exports=r}).call(this,t("buffer").Buffer)},{buffer:45,"hash-base":83,inherits:99}],139:[function(t,e,n){function r(t,e){for(var n in t)e[n]=t[n]}function i(t,e,n){return s(t,e,n)}var o=t("buffer"),s=o.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?e.exports=o:(r(o,n),n.Buffer=i),r(s,i),i.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return s(t,e,n)},i.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=s(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},i.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return s(t)},i.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},{buffer:45}],140:[function(t,e,n){(function(t){function n(e,n){this._block=new t(e),this._finalSize=n,this._blockSize=e,this._len=0,this._s=0}n.prototype.update=function(e,n){"string"==typeof e&&(e=new t(e,n=n||"utf8"));for(var r=this._len+=e.length,i=this._s||0,o=0,s=this._block;i=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(e,this._blockSize-4);var n=this._update(this._block)||this._hash();return t?n.toString(t):n},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n}).call(this,t("buffer").Buffer)},{buffer:45}],141:[function(t,e,n){(n=e.exports=function(t){t=t.toLowerCase();var e=n[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e}).sha=t("./sha"),n.sha1=t("./sha1"),n.sha224=t("./sha224"),n.sha256=t("./sha256"),n.sha384=t("./sha384"),n.sha512=t("./sha512")},{"./sha":142,"./sha1":143,"./sha224":144,"./sha256":145,"./sha384":146,"./sha512":147}],142:[function(t,e,n){(function(n){function r(){this.init(),this._w=f,c.call(this,64,56)}function i(t){return t<<5|t>>>27}function o(t){return t<<30|t>>>2}function s(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}var a=t("inherits"),c=t("./hash"),u=[1518500249,1859775393,-1894007588,-899497514],f=new Array(80);a(r,c),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,a=0|this._c,c=0|this._d,f=0|this._e,h=0;h<16;++h)e[h]=t.readInt32BE(4*h);for(;h<80;++h)e[h]=e[h-3]^e[h-8]^e[h-14]^e[h-16];for(var l=0;l<80;++l){var d=~~(l/20),p=i(n)+s(d,r,a,c)+f+e[l]+u[d]|0;f=c,c=a,a=o(r),r=n,n=p}this._a=n+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=c+this._d|0,this._e=f+this._e|0},r.prototype._hash=function(){var t=new n(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":140,buffer:45,inherits:99}],143:[function(t,e,n){(function(n){function r(){this.init(),this._w=h,u.call(this,64,56)}function i(t){return t<<1|t>>>31}function o(t){return t<<5|t>>>27}function s(t){return t<<30|t>>>2}function a(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}var c=t("inherits"),u=t("./hash"),f=[1518500249,1859775393,-1894007588,-899497514],h=new Array(80);c(r,u),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,c=0|this._c,u=0|this._d,h=0|this._e,l=0;l<16;++l)e[l]=t.readInt32BE(4*l);for(;l<80;++l)e[l]=i(e[l-3]^e[l-8]^e[l-14]^e[l-16]);for(var d=0;d<80;++d){var p=~~(d/20),m=o(n)+a(p,r,c,u)+h+e[d]+f[p]|0;h=u,u=c,c=s(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=c+this._c|0,this._d=u+this._d|0,this._e=h+this._e|0},r.prototype._hash=function(){var t=new n(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":140,buffer:45,inherits:99}],144:[function(t,e,n){(function(n){function r(){this.init(),this._w=a,s.call(this,64,56)}var i=t("inherits"),o=t("./sha256"),s=t("./hash"),a=new Array(64);i(r,o),r.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},r.prototype._hash=function(){var t=new n(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":140,"./sha256":145,buffer:45,inherits:99}],145:[function(t,e,n){(function(n){function r(){this.init(),this._w=d,h.call(this,64,56)}function i(t,e,n){return n^t&(e^n)}function o(t,e,n){return t&e|n&(t|e)}function s(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function a(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function c(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function u(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}var f=t("inherits"),h=t("./hash"),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],d=new Array(64);f(r,h),r.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,f=0|this._c,h=0|this._d,d=0|this._e,p=0|this._f,m=0|this._g,b=0|this._h,v=0;v<16;++v)e[v]=t.readInt32BE(4*v);for(;v<64;++v)e[v]=u(e[v-2])+e[v-7]+c(e[v-15])+e[v-16]|0;for(var y=0;y<64;++y){var g=b+a(d)+i(d,p,m)+l[y]+e[y]|0,_=s(n)+o(n,r,f)|0;b=m,m=p,p=d,d=h+g|0,h=f,f=r,r=n,n=g+_|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=f+this._c|0,this._d=h+this._d|0,this._e=d+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},r.prototype._hash=function(){var t=new n(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":140,buffer:45,inherits:99}],146:[function(t,e,n){(function(n){function r(){this.init(),this._w=a,s.call(this,128,112)}var i=t("inherits"),o=t("./sha512"),s=t("./hash"),a=new Array(160);i(r,o),r.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},r.prototype._hash=function(){function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}var e=new n(48);return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":140,"./sha512":147,buffer:45,inherits:99}],147:[function(t,e,n){(function(n){function r(){this.init(),this._w=b,p.call(this,128,112)}function i(t,e,n){return n^t&(e^n)}function o(t,e,n){return t&e|n&(t|e)}function s(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function a(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function c(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function u(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function f(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function h(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function l(t,e){return t>>>0>>0?1:0}var d=t("inherits"),p=t("./hash"),m=[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],b=new Array(160);d(r,p),r.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,d=0|this._ch,p=0|this._dh,b=0|this._eh,v=0|this._fh,y=0|this._gh,g=0|this._hh,_=0|this._al,w=0|this._bl,x=0|this._cl,k=0|this._dl,S=0|this._el,M=0|this._fl,E=0|this._gl,j=0|this._hl,C=0;C<32;C+=2)e[C]=t.readInt32BE(4*C),e[C+1]=t.readInt32BE(4*C+4);for(;C<160;C+=2){var A=e[C-30],T=e[C-30+1],I=c(A,T),P=u(T,A),B=f(A=e[C-4],T=e[C-4+1]),F=h(T,A),R=e[C-14],O=e[C-14+1],N=e[C-32],L=e[C-32+1],D=P+O|0,q=I+R+l(D,P)|0;q=(q=q+B+l(D=D+F|0,F)|0)+N+l(D=D+L|0,L)|0,e[C]=q,e[C+1]=D}for(var z=0;z<160;z+=2){q=e[z],D=e[z+1];var U=o(n,r,d),H=o(_,w,x),V=s(n,_),W=s(_,n),K=a(b,S),X=a(S,b),$=m[z],G=m[z+1],J=i(b,v,y),Z=i(S,M,E),Q=j+X|0,Y=g+K+l(Q,j)|0;Y=(Y=(Y=Y+J+l(Q=Q+Z|0,Z)|0)+$+l(Q=Q+G|0,G)|0)+q+l(Q=Q+D|0,D)|0;var tt=W+H|0,et=V+U+l(tt,W)|0;g=y,j=E,y=v,E=M,v=b,M=S,b=p+Y+l(S=k+Q|0,k)|0,p=d,k=x,d=r,x=w,r=n,w=_,n=Y+et+l(_=Q+tt|0,Q)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+x|0,this._dl=this._dl+k|0,this._el=this._el+S|0,this._fl=this._fl+M|0,this._gl=this._gl+E|0,this._hl=this._hl+j|0,this._ah=this._ah+n+l(this._al,_)|0,this._bh=this._bh+r+l(this._bl,w)|0,this._ch=this._ch+d+l(this._cl,x)|0,this._dh=this._dh+p+l(this._dl,k)|0,this._eh=this._eh+b+l(this._el,S)|0,this._fh=this._fh+v+l(this._fl,M)|0,this._gh=this._gh+y+l(this._gl,E)|0,this._hh=this._hh+g+l(this._hl,j)|0},r.prototype._hash=function(){function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}var e=new n(64);return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":140,buffer:45,inherits:99}],148:[function(t,e,n){function r(){i.call(this)}e.exports=r;var i=t("events").EventEmitter;t("inherits")(r,i),r.Readable=t("readable-stream/readable.js"),r.Writable=t("readable-stream/writable.js"),r.Duplex=t("readable-stream/duplex.js"),r.Transform=t("readable-stream/transform.js"),r.PassThrough=t("readable-stream/passthrough.js"),r.Stream=r,r.prototype.pipe=function(t,e){function n(e){t.writable&&!1===t.write(e)&&u.pause&&u.pause()}function r(){u.readable&&u.resume&&u.resume()}function o(){f||(f=!0,t.end())}function s(){f||(f=!0,"function"==typeof t.destroy&&t.destroy())}function a(t){if(c(),0===i.listenerCount(this,"error"))throw t}function c(){u.removeListener("data",n),t.removeListener("drain",r),u.removeListener("end",o),u.removeListener("close",s),u.removeListener("error",a),t.removeListener("error",a),u.removeListener("end",c),u.removeListener("close",c),t.removeListener("close",c)}var u=this;u.on("data",n),t.on("drain",r),t._isStdio||e&&!1===e.end||(u.on("end",o),u.on("close",s));var f=!1;return u.on("error",a),t.on("error",a),u.on("end",c),u.on("close",c),t.on("close",c),t.emit("pipe",u),t}},{events:81,inherits:99,"readable-stream/duplex.js":125,"readable-stream/passthrough.js":134,"readable-stream/readable.js":135,"readable-stream/transform.js":136,"readable-stream/writable.js":137}],149:[function(t,e,n){function r(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function i(t){var e=r(t);if("string"!=typeof e&&(b.isEncoding===v||!v(t)))throw new Error("Unknown encoding: "+t);return e||t}function o(t){this.encoding=i(t);var e;switch(this.encoding){case"utf16le":this.text=f,this.end=h,e=4;break;case"utf8":this.fillLast=u,e=4;break;case"base64":this.text=l,this.end=d,e=3;break;default:return this.write=p,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=b.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:-1}function a(t,e,n){var r=e.length-1;if(r=0?(i>0&&(t.lastNeed=i-1),i):--r=0?(i>0&&(t.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}function c(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�".repeat(n);if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�".repeat(n+1);if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�".repeat(n+2)}}function u(t){var e=this.lastTotal-this.lastNeed,n=c(this,t,e);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function f(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function h(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function l(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function d(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function p(t){return t.toString(this.encoding)}function m(t){return t&&t.length?this.write(t):""}var b=t("safe-buffer").Buffer,v=b.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};n.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n0)return t.substr(t.lastIndexOf("."))}},void 0===n&&(n={}),(i={charset:"UTF-8",catalog:{},lookup:function(t,e,n){var i,o=this.charset;return void 0===e&&(e=!1),"string"==typeof e&&(o=e,e=!0),""===(i=void 0!==r.extname?r.extname(t).toLowerCase():t.lastIndexOf(".")>0?t.substr(t.lastIndexOf(".")).toLowerCase():t)&&(i=t),void 0!==this.catalog[i]?!0===e&&0===this.catalog[i].indexOf("text/")&&this.catalog[i].indexOf("charset")<0?this.catalog[i]+"; charset="+o:this.catalog[i]:void 0!==n&&(!0===e&&0===n.indexOf("text/")?n+"; charset="+o:n)},set:function(t,e){var n=!0,r=this;return t.indexOf(",")>-1?t.split(",").forEach(function(t){t=t.trim(),r.catalog[t]=e,r.catalog[t]!==e&&(n=!1)}):r.catalog[t]=e,n},del:function(t){return delete this.catalog[t],void 0===this.catalog[t]},forEach:function(t){var e,n=this;for(e in n.catalog)n.catalog.hasOwnProperty(e)&&t(e,n.catalog[e]);return n.catalog}}).set(".ez","application/andrew-inset"),i.set(".aw","application/applixware"),i.set(".atom","application/atom+xml"),i.set(".atomcat","application/atomcat+xml"),i.set(".atomsvc","application/atomsvc+xml"),i.set(".ccxml","application/ccxml+xml"),i.set(".cu","application/cu-seeme"),i.set(".davmount","application/davmount+xml"),i.set(".ecma","application/ecmascript"),i.set(".emma","application/emma+xml"),i.set(".epub","application/epub+zip"),i.set(".pfr","application/font-tdpfr"),i.set(".stk","application/hyperstudio"),i.set(".jar","application/java-archive"),i.set(".ser","application/java-serialized-object"),i.set(".class","application/java-vm"),i.set(".js","application/javascript"),i.set(".json","application/json"),i.set(".lostxml","application/lost+xml"),i.set(".hqx","application/mac-binhex40"),i.set(".cpt","application/mac-compactpro"),i.set(".mrc","application/marc"),i.set(".ma,.nb,.mb","application/mathematica"),i.set(".mathml","application/mathml+xml"),i.set(".mbox","application/mbox"),i.set(".mscml","application/mediaservercontrol+xml"),i.set(".mp4s","application/mp4"),i.set(".doc,.dot","application/msword"),i.set(".mxf","application/mxf"),i.set(".oda","application/oda"),i.set(".opf","application/oebps-package+xml"),i.set(".ogx","application/ogg"),i.set(".onetoc,.onetoc2,.onetmp,.onepkg","application/onenote"),i.set(".xer","application/patch-ops-error+xml"),i.set(".pdf","application/pdf"),i.set(".pgp","application/pgp-encrypted"),i.set(".asc,.sig","application/pgp-signature"),i.set(".prf","application/pics-rules"),i.set(".p10","application/pkcs10"),i.set(".p7m,.p7c","application/pkcs7-mime"),i.set(".p7s","application/pkcs7-signature"),i.set(".cer","application/pkix-cert"),i.set(".crl","application/pkix-crl"),i.set(".pkipath","application/pkix-pkipath"),i.set(".pki","application/pkixcmp"),i.set(".pls","application/pls+xml"),i.set(".ai,.eps,.ps","application/postscript"),i.set(".cww","application/prs.cww"),i.set(".rdf","application/rdf+xml"),i.set(".rif","application/reginfo+xml"),i.set(".rnc","application/relax-ng-compact-syntax"),i.set(".rl","application/resource-lists+xml"),i.set(".rld","application/resource-lists-diff+xml"),i.set(".rs","application/rls-services+xml"),i.set(".rsd","application/rsd+xml"),i.set(".rss","application/rss+xml"),i.set(".rtf","application/rtf"),i.set(".sbml","application/sbml+xml"),i.set(".scq","application/scvp-cv-request"),i.set(".scs","application/scvp-cv-response"),i.set(".spq","application/scvp-vp-request"),i.set(".spp","application/scvp-vp-response"),i.set(".sdp","application/sdp"),i.set(".setpay","application/set-payment-initiation"),i.set(".setreg","application/set-registration-initiation"),i.set(".shf","application/shf+xml"),i.set(".smi,.smil","application/smil+xml"),i.set(".rq","application/sparql-query"),i.set(".srx","application/sparql-results+xml"),i.set(".gram","application/srgs"),i.set(".grxml","application/srgs+xml"),i.set(".ssml","application/ssml+xml"),i.set(".plb","application/vnd.3gpp.pic-bw-large"),i.set(".psb","application/vnd.3gpp.pic-bw-small"),i.set(".pvb","application/vnd.3gpp.pic-bw-var"),i.set(".tcap","application/vnd.3gpp2.tcap"),i.set(".pwn","application/vnd.3m.post-it-notes"),i.set(".aso","application/vnd.accpac.simply.aso"),i.set(".imp","application/vnd.accpac.simply.imp"),i.set(".acu","application/vnd.acucobol"),i.set(".atc,.acutc","application/vnd.acucorp"),i.set(".air","application/vnd.adobe.air-application-installer-package+zip"),i.set(".xdp","application/vnd.adobe.xdp+xml"),i.set(".xfdf","application/vnd.adobe.xfdf"),i.set(".azf","application/vnd.airzip.filesecure.azf"),i.set(".azs","application/vnd.airzip.filesecure.azs"),i.set(".azw","application/vnd.amazon.ebook"),i.set(".acc","application/vnd.americandynamics.acc"),i.set(".ami","application/vnd.amiga.ami"),i.set(".apk","application/vnd.android.package-archive"),i.set(".cii","application/vnd.anser-web-certificate-issue-initiation"),i.set(".fti","application/vnd.anser-web-funds-transfer-initiation"),i.set(".atx","application/vnd.antix.game-component"),i.set(".mpkg","application/vnd.apple.installer+xml"),i.set(".swi","application/vnd.arastra.swi"),i.set(".aep","application/vnd.audiograph"),i.set(".mpm","application/vnd.blueice.multipass"),i.set(".bmi","application/vnd.bmi"),i.set(".rep","application/vnd.businessobjects"),i.set(".cdxml","application/vnd.chemdraw+xml"),i.set(".mmd","application/vnd.chipnuts.karaoke-mmd"),i.set(".cdy","application/vnd.cinderella"),i.set(".cla","application/vnd.claymore"),i.set(".c4g,.c4d,.c4f,.c4p,.c4u","application/vnd.clonk.c4group"),i.set(".csp","application/vnd.commonspace"),i.set(".cdbcmsg","application/vnd.contact.cmsg"),i.set(".cmc","application/vnd.cosmocaller"),i.set(".clkx","application/vnd.crick.clicker"),i.set(".clkk","application/vnd.crick.clicker.keyboard"),i.set(".clkp","application/vnd.crick.clicker.palette"),i.set(".clkt","application/vnd.crick.clicker.template"),i.set(".clkw","application/vnd.crick.clicker.wordbank"),i.set(".wbs","application/vnd.criticaltools.wbs+xml"),i.set(".pml","application/vnd.ctc-posml"),i.set(".ppd","application/vnd.cups-ppd"),i.set(".car","application/vnd.curl.car"),i.set(".pcurl","application/vnd.curl.pcurl"),i.set(".rdz","application/vnd.data-vision.rdz"),i.set(".fe_launch","application/vnd.denovo.fcselayout-link"),i.set(".dna","application/vnd.dna"),i.set(".mlp","application/vnd.dolby.mlp"),i.set(".dpg","application/vnd.dpgraph"),i.set(".dfac","application/vnd.dreamfactory"),i.set(".geo","application/vnd.dynageo"),i.set(".mag","application/vnd.ecowin.chart"),i.set(".nml","application/vnd.enliven"),i.set(".esf","application/vnd.epson.esf"),i.set(".msf","application/vnd.epson.msf"),i.set(".qam","application/vnd.epson.quickanime"),i.set(".slt","application/vnd.epson.salt"),i.set(".ssf","application/vnd.epson.ssf"),i.set(".es3,.et3","application/vnd.eszigno3+xml"),i.set(".ez2","application/vnd.ezpix-album"),i.set(".ez3","application/vnd.ezpix-package"),i.set(".fdf","application/vnd.fdf"),i.set(".mseed","application/vnd.fdsn.mseed"),i.set(".seed,.dataless","application/vnd.fdsn.seed"),i.set(".gph","application/vnd.flographit"),i.set(".ftc","application/vnd.fluxtime.clip"),i.set(".fm,.frame,.maker,.book","application/vnd.framemaker"),i.set(".fnc","application/vnd.frogans.fnc"),i.set(".ltf","application/vnd.frogans.ltf"),i.set(".fsc","application/vnd.fsc.weblaunch"),i.set(".oas","application/vnd.fujitsu.oasys"),i.set(".oa2","application/vnd.fujitsu.oasys2"),i.set(".oa3","application/vnd.fujitsu.oasys3"),i.set(".fg5","application/vnd.fujitsu.oasysgp"),i.set(".bh2","application/vnd.fujitsu.oasysprs"),i.set(".ddd","application/vnd.fujixerox.ddd"),i.set(".xdw","application/vnd.fujixerox.docuworks"),i.set(".xbd","application/vnd.fujixerox.docuworks.binder"),i.set(".fzs","application/vnd.fuzzysheet"),i.set(".txd","application/vnd.genomatix.tuxedo"),i.set(".ggb","application/vnd.geogebra.file"),i.set(".ggt","application/vnd.geogebra.tool"),i.set(".gex,.gre","application/vnd.geometry-explorer"),i.set(".gmx","application/vnd.gmx"),i.set(".kml","application/vnd.google-earth.kml+xml"),i.set(".kmz","application/vnd.google-earth.kmz"),i.set(".gqf,.gqs","application/vnd.grafeq"),i.set(".gac","application/vnd.groove-account"),i.set(".ghf","application/vnd.groove-help"),i.set(".gim","application/vnd.groove-identity-message"),i.set(".grv","application/vnd.groove-injector"),i.set(".gtm","application/vnd.groove-tool-message"),i.set(".tpl","application/vnd.groove-tool-template"),i.set(".vcg","application/vnd.groove-vcard"),i.set(".zmm","application/vnd.handheld-entertainment+xml"),i.set(".hbci","application/vnd.hbci"),i.set(".les","application/vnd.hhe.lesson-player"),i.set(".hpgl","application/vnd.hp-hpgl"),i.set(".hpid","application/vnd.hp-hpid"),i.set(".hps","application/vnd.hp-hps"),i.set(".jlt","application/vnd.hp-jlyt"),i.set(".pcl","application/vnd.hp-pcl"),i.set(".pclxl","application/vnd.hp-pclxl"),i.set(".sfd-hdstx","application/vnd.hydrostatix.sof-data"),i.set(".x3d","application/vnd.hzn-3d-crossword"),i.set(".mpy","application/vnd.ibm.minipay"),i.set(".afp,.listafp,.list3820","application/vnd.ibm.modcap"),i.set(".irm","application/vnd.ibm.rights-management"),i.set(".sc","application/vnd.ibm.secure-container"),i.set(".icc,.icm","application/vnd.iccprofile"),i.set(".igl","application/vnd.igloader"),i.set(".ivp","application/vnd.immervision-ivp"),i.set(".ivu","application/vnd.immervision-ivu"),i.set(".xpw,.xpx","application/vnd.intercon.formnet"),i.set(".qbo","application/vnd.intu.qbo"),i.set(".qfx","application/vnd.intu.qfx"),i.set(".rcprofile","application/vnd.ipunplugged.rcprofile"),i.set(".irp","application/vnd.irepository.package+xml"),i.set(".xpr","application/vnd.is-xpr"),i.set(".jam","application/vnd.jam"),i.set(".rms","application/vnd.jcp.javame.midlet-rms"),i.set(".jisp","application/vnd.jisp"),i.set(".joda","application/vnd.joost.joda-archive"),i.set(".ktz,.ktr","application/vnd.kahootz"),i.set(".karbon","application/vnd.kde.karbon"),i.set(".chrt","application/vnd.kde.kchart"),i.set(".kfo","application/vnd.kde.kformula"),i.set(".flw","application/vnd.kde.kivio"),i.set(".kon","application/vnd.kde.kontour"),i.set(".kpr,.kpt","application/vnd.kde.kpresenter"),i.set(".ksp","application/vnd.kde.kspread"),i.set(".kwd,.kwt","application/vnd.kde.kword"),i.set(".htke","application/vnd.kenameaapp"),i.set(".kia","application/vnd.kidspiration"),i.set(".kne,.knp","application/vnd.kinar"),i.set(".skp,.skd,.skt,.skm","application/vnd.koan"),i.set(".sse","application/vnd.kodak-descriptor"),i.set(".lbd","application/vnd.llamagraphics.life-balance.desktop"),i.set(".lbe","application/vnd.llamagraphics.life-balance.exchange+xml"),i.set(".123","application/vnd.lotus-1-2-3"),i.set(".apr","application/vnd.lotus-approach"),i.set(".pre","application/vnd.lotus-freelance"),i.set(".nsf","application/vnd.lotus-notes"),i.set(".org","application/vnd.lotus-organizer"),i.set(".scm","application/vnd.lotus-screencam"),i.set(".lwp","application/vnd.lotus-wordpro"),i.set(".portpkg","application/vnd.macports.portpkg"),i.set(".mcd","application/vnd.mcd"),i.set(".mc1","application/vnd.medcalcdata"),i.set(".cdkey","application/vnd.mediastation.cdkey"),i.set(".mwf","application/vnd.mfer"),i.set(".mfm","application/vnd.mfmp"),i.set(".flo","application/vnd.micrografx.flo"),i.set(".igx","application/vnd.micrografx.igx"),i.set(".mif","application/vnd.mif"),i.set(".daf","application/vnd.mobius.daf"),i.set(".dis","application/vnd.mobius.dis"),i.set(".mbk","application/vnd.mobius.mbk"),i.set(".mqy","application/vnd.mobius.mqy"),i.set(".msl","application/vnd.mobius.msl"),i.set(".plc","application/vnd.mobius.plc"),i.set(".txf","application/vnd.mobius.txf"),i.set(".mpn","application/vnd.mophun.application"),i.set(".mpc","application/vnd.mophun.certificate"),i.set(".xul","application/vnd.mozilla.xul+xml"),i.set(".cil","application/vnd.ms-artgalry"),i.set(".cab","application/vnd.ms-cab-compressed"),i.set(".xls,.xlm,.xla,.xlc,.xlt,.xlw","application/vnd.ms-excel"),i.set(".xlam","application/vnd.ms-excel.addin.macroenabled.12"),i.set(".xlsb","application/vnd.ms-excel.sheet.binary.macroenabled.12"),i.set(".xlsm","application/vnd.ms-excel.sheet.macroenabled.12"),i.set(".xltm","application/vnd.ms-excel.template.macroenabled.12"),i.set(".eot","application/vnd.ms-fontobject"),i.set(".chm","application/vnd.ms-htmlhelp"),i.set(".ims","application/vnd.ms-ims"),i.set(".lrm","application/vnd.ms-lrm"),i.set(".cat","application/vnd.ms-pki.seccat"),i.set(".stl","application/vnd.ms-pki.stl"),i.set(".ppt,.pps,.pot","application/vnd.ms-powerpoint"),i.set(".ppam","application/vnd.ms-powerpoint.addin.macroenabled.12"),i.set(".pptm","application/vnd.ms-powerpoint.presentation.macroenabled.12"),i.set(".sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"),i.set(".ppsm","application/vnd.ms-powerpoint.slideshow.macroenabled.12"),i.set(".potm","application/vnd.ms-powerpoint.template.macroenabled.12"),i.set(".mpp,.mpt","application/vnd.ms-project"),i.set(".docm","application/vnd.ms-word.document.macroenabled.12"),i.set(".dotm","application/vnd.ms-word.template.macroenabled.12"),i.set(".wps,.wks,.wcm,.wdb","application/vnd.ms-works"),i.set(".wpl","application/vnd.ms-wpl"),i.set(".xps","application/vnd.ms-xpsdocument"),i.set(".mseq","application/vnd.mseq"),i.set(".mus","application/vnd.musician"),i.set(".msty","application/vnd.muvee.style"),i.set(".nlu","application/vnd.neurolanguage.nlu"),i.set(".nnd","application/vnd.noblenet-directory"),i.set(".nns","application/vnd.noblenet-sealer"),i.set(".nnw","application/vnd.noblenet-web"),i.set(".ngdat","application/vnd.nokia.n-gage.data"),i.set(".n-gage","application/vnd.nokia.n-gage.symbian.install"),i.set(".rpst","application/vnd.nokia.radio-preset"),i.set(".rpss","application/vnd.nokia.radio-presets"),i.set(".edm","application/vnd.novadigm.edm"),i.set(".edx","application/vnd.novadigm.edx"),i.set(".ext","application/vnd.novadigm.ext"),i.set(".odc","application/vnd.oasis.opendocument.chart"),i.set(".otc","application/vnd.oasis.opendocument.chart-template"),i.set(".odb","application/vnd.oasis.opendocument.database"),i.set(".odf","application/vnd.oasis.opendocument.formula"),i.set(".odft","application/vnd.oasis.opendocument.formula-template"),i.set(".odg","application/vnd.oasis.opendocument.graphics"),i.set(".otg","application/vnd.oasis.opendocument.graphics-template"),i.set(".odi","application/vnd.oasis.opendocument.image"),i.set(".oti","application/vnd.oasis.opendocument.image-template"),i.set(".odp","application/vnd.oasis.opendocument.presentation"),i.set(".ods","application/vnd.oasis.opendocument.spreadsheet"),i.set(".ots","application/vnd.oasis.opendocument.spreadsheet-template"),i.set(".odt","application/vnd.oasis.opendocument.text"),i.set(".otm","application/vnd.oasis.opendocument.text-master"),i.set(".ott","application/vnd.oasis.opendocument.text-template"),i.set(".oth","application/vnd.oasis.opendocument.text-web"),i.set(".xo","application/vnd.olpc-sugar"),i.set(".dd2","application/vnd.oma.dd2+xml"),i.set(".oxt","application/vnd.openofficeorg.extension"),i.set(".pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),i.set(".sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),i.set(".ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),i.set(".potx","application/vnd.openxmlformats-officedocument.presentationml.template"),i.set(".xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),i.set(".xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),i.set(".docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),i.set(".dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),i.set(".dp","application/vnd.osgi.dp"),i.set(".pdb,.pqa,.oprc","application/vnd.palm"),i.set(".str","application/vnd.pg.format"),i.set(".ei6","application/vnd.pg.osasli"),i.set(".efif","application/vnd.picsel"),i.set(".plf","application/vnd.pocketlearn"),i.set(".pbd","application/vnd.powerbuilder6"),i.set(".box","application/vnd.previewsystems.box"),i.set(".mgz","application/vnd.proteus.magazine"),i.set(".qps","application/vnd.publishare-delta-tree"),i.set(".ptid","application/vnd.pvi.ptid1"),i.set(".qxd,.qxt,.qwd,.qwt,.qxl,.qxb","application/vnd.quark.quarkxpress"),i.set(".mxl","application/vnd.recordare.musicxml"),i.set(".musicxml","application/vnd.recordare.musicxml+xml"),i.set(".cod","application/vnd.rim.cod"),i.set(".rm","application/vnd.rn-realmedia"),i.set(".link66","application/vnd.route66.link66+xml"),i.set(".see","application/vnd.seemail"),i.set(".sema","application/vnd.sema"),i.set(".semd","application/vnd.semd"),i.set(".semf","application/vnd.semf"),i.set(".ifm","application/vnd.shana.informed.formdata"),i.set(".itp","application/vnd.shana.informed.formtemplate"),i.set(".iif","application/vnd.shana.informed.interchange"),i.set(".ipk","application/vnd.shana.informed.package"),i.set(".twd,.twds","application/vnd.simtech-mindmapper"),i.set(".mmf","application/vnd.smaf"),i.set(".teacher","application/vnd.smart.teacher"),i.set(".sdkm,.sdkd","application/vnd.solent.sdkm+xml"),i.set(".dxp","application/vnd.spotfire.dxp"),i.set(".sfs","application/vnd.spotfire.sfs"),i.set(".sdc","application/vnd.stardivision.calc"),i.set(".sda","application/vnd.stardivision.draw"),i.set(".sdd","application/vnd.stardivision.impress"),i.set(".smf","application/vnd.stardivision.math"),i.set(".sdw","application/vnd.stardivision.writer"),i.set(".vor","application/vnd.stardivision.writer"),i.set(".sgl","application/vnd.stardivision.writer-global"),i.set(".sxc","application/vnd.sun.xml.calc"),i.set(".stc","application/vnd.sun.xml.calc.template"),i.set(".sxd","application/vnd.sun.xml.draw"),i.set(".std","application/vnd.sun.xml.draw.template"),i.set(".sxi","application/vnd.sun.xml.impress"),i.set(".sti","application/vnd.sun.xml.impress.template"),i.set(".sxm","application/vnd.sun.xml.math"),i.set(".sxw","application/vnd.sun.xml.writer"),i.set(".sxg","application/vnd.sun.xml.writer.global"),i.set(".stw","application/vnd.sun.xml.writer.template"),i.set(".sus,.susp","application/vnd.sus-calendar"),i.set(".svd","application/vnd.svd"),i.set(".sis,.sisx","application/vnd.symbian.install"),i.set(".xsm","application/vnd.syncml+xml"),i.set(".bdm","application/vnd.syncml.dm+wbxml"),i.set(".xdm","application/vnd.syncml.dm+xml"),i.set(".tao","application/vnd.tao.intent-module-archive"),i.set(".tmo","application/vnd.tmobile-livetv"),i.set(".tpt","application/vnd.trid.tpt"),i.set(".mxs","application/vnd.triscape.mxs"),i.set(".tra","application/vnd.trueapp"),i.set(".ufd,.ufdl","application/vnd.ufdl"),i.set(".utz","application/vnd.uiq.theme"),i.set(".umj","application/vnd.umajin"),i.set(".unityweb","application/vnd.unity"),i.set(".uoml","application/vnd.uoml+xml"),i.set(".vcx","application/vnd.vcx"),i.set(".vsd,.vst,.vss,.vsw","application/vnd.visio"),i.set(".vis","application/vnd.visionary"),i.set(".vsf","application/vnd.vsf"),i.set(".wbxml","application/vnd.wap.wbxml"),i.set(".wmlc","application/vnd.wap.wmlc"),i.set(".wmlsc","application/vnd.wap.wmlscriptc"),i.set(".wtb","application/vnd.webturbo"),i.set(".wpd","application/vnd.wordperfect"),i.set(".wqd","application/vnd.wqd"),i.set(".stf","application/vnd.wt.stf"),i.set(".xar","application/vnd.xara"),i.set(".xfdl","application/vnd.xfdl"),i.set(".hvd","application/vnd.yamaha.hv-dic"),i.set(".hvs","application/vnd.yamaha.hv-script"),i.set(".hvp","application/vnd.yamaha.hv-voice"),i.set(".osf","application/vnd.yamaha.openscoreformat"),i.set(".osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"),i.set(".saf","application/vnd.yamaha.smaf-audio"),i.set(".spf","application/vnd.yamaha.smaf-phrase"),i.set(".cmp","application/vnd.yellowriver-custom-menu"),i.set(".zir,.zirz","application/vnd.zul"),i.set(".zaz","application/vnd.zzazz.deck+xml"),i.set(".vxml","application/voicexml+xml"),i.set(".hlp","application/winhlp"),i.set(".wsdl","application/wsdl+xml"),i.set(".wspolicy","application/wspolicy+xml"),i.set(".abw","application/x-abiword"),i.set(".ace","application/x-ace-compressed"),i.set(".aab,.x32,.u32,.vox","application/x-authorware-bin"),i.set(".aam","application/x-authorware-map"),i.set(".aas","application/x-authorware-seg"),i.set(".bcpio","application/x-bcpio"),i.set(".torrent","application/x-bittorrent"),i.set(".bz","application/x-bzip"),i.set(".bz2,.boz","application/x-bzip2"),i.set(".vcd","application/x-cdlink"),i.set(".chat","application/x-chat"),i.set(".pgn","application/x-chess-pgn"),i.set(".cpio","application/x-cpio"),i.set(".csh","application/x-csh"),i.set(".deb,.udeb","application/x-debian-package"),i.set(".dir,.dcr,.dxr,.cst,.cct,.cxt,.w3d,.fgd,.swa","application/x-director"),i.set(".wad","application/x-doom"),i.set(".ncx","application/x-dtbncx+xml"),i.set(".dtb","application/x-dtbook+xml"),i.set(".res","application/x-dtbresource+xml"),i.set(".dvi","application/x-dvi"),i.set(".bdf","application/x-font-bdf"),i.set(".gsf","application/x-font-ghostscript"),i.set(".psf","application/x-font-linux-psf"),i.set(".otf","application/x-font-otf"),i.set(".pcf","application/x-font-pcf"),i.set(".snf","application/x-font-snf"),i.set(".ttf,.ttc","application/x-font-ttf"),i.set(".woff","application/font-woff"),i.set(".pfa,.pfb,.pfm,.afm","application/x-font-type1"),i.set(".spl","application/x-futuresplash"),i.set(".gnumeric","application/x-gnumeric"),i.set(".gtar","application/x-gtar"),i.set(".hdf","application/x-hdf"),i.set(".jnlp","application/x-java-jnlp-file"),i.set(".latex","application/x-latex"),i.set(".prc,.mobi","application/x-mobipocket-ebook"),i.set(".application","application/x-ms-application"),i.set(".wmd","application/x-ms-wmd"),i.set(".wmz","application/x-ms-wmz"),i.set(".xbap","application/x-ms-xbap"),i.set(".mdb","application/x-msaccess"),i.set(".obd","application/x-msbinder"),i.set(".crd","application/x-mscardfile"),i.set(".clp","application/x-msclip"),i.set(".exe,.dll,.com,.bat,.msi","application/x-msdownload"),i.set(".mvb,.m13,.m14","application/x-msmediaview"),i.set(".wmf","application/x-msmetafile"),i.set(".mny","application/x-msmoney"),i.set(".pub","application/x-mspublisher"),i.set(".scd","application/x-msschedule"),i.set(".trm","application/x-msterminal"),i.set(".wri","application/x-mswrite"),i.set(".nc,.cdf","application/x-netcdf"),i.set(".p12,.pfx","application/x-pkcs12"),i.set(".p7b,.spc","application/x-pkcs7-certificates"),i.set(".p7r","application/x-pkcs7-certreqresp"),i.set(".rar","application/x-rar-compressed"),i.set(".sh","application/x-sh"),i.set(".shar","application/x-shar"),i.set(".swf","application/x-shockwave-flash"),i.set(".xap","application/x-silverlight-app"),i.set(".sit","application/x-stuffit"),i.set(".sitx","application/x-stuffitx"),i.set(".sv4cpio","application/x-sv4cpio"),i.set(".sv4crc","application/x-sv4crc"),i.set(".tar","application/x-tar"),i.set(".tcl","application/x-tcl"),i.set(".tex","application/x-tex"),i.set(".tfm","application/x-tex-tfm"),i.set(".texinfo,.texi","application/x-texinfo"),i.set(".ustar","application/x-ustar"),i.set(".src","application/x-wais-source"),i.set(".der,.crt","application/x-x509-ca-cert"),i.set(".fig","application/x-xfig"),i.set(".xpi","application/x-xpinstall"),i.set(".xenc","application/xenc+xml"),i.set(".xhtml,.xht","application/xhtml+xml"),i.set(".xml,.xsl","application/xml"),i.set(".dtd","application/xml-dtd"),i.set(".xop","application/xop+xml"),i.set(".xslt","application/xslt+xml"),i.set(".xspf","application/xspf+xml"),i.set(".mxml,.xhvml,.xvml,.xvm","application/xv+xml"),i.set(".zip","application/zip"),i.set(".adp","audio/adpcm"),i.set(".au,.snd","audio/basic"),i.set(".mid,.midi,.kar,.rmi","audio/midi"),i.set(".mp4a","audio/mp4"),i.set(".m4a,.m4p","audio/mp4a-latm"),i.set(".mpga,.mp2,.mp2a,.mp3,.m2a,.m3a","audio/mpeg"),i.set(".oga,.ogg,.spx","audio/ogg"),i.set(".eol","audio/vnd.digital-winds"),i.set(".dts","audio/vnd.dts"),i.set(".dtshd","audio/vnd.dts.hd"),i.set(".lvp","audio/vnd.lucent.voice"),i.set(".pya","audio/vnd.ms-playready.media.pya"),i.set(".ecelp4800","audio/vnd.nuera.ecelp4800"),i.set(".ecelp7470","audio/vnd.nuera.ecelp7470"),i.set(".ecelp9600","audio/vnd.nuera.ecelp9600"),i.set(".aac","audio/x-aac"),i.set(".aif,.aiff,.aifc","audio/x-aiff"),i.set(".m3u","audio/x-mpegurl"),i.set(".wax","audio/x-ms-wax"),i.set(".wma","audio/x-ms-wma"),i.set(".ram,.ra","audio/x-pn-realaudio"),i.set(".rmp","audio/x-pn-realaudio-plugin"),i.set(".wav","audio/x-wav"),i.set(".cdx","chemical/x-cdx"),i.set(".cif","chemical/x-cif"),i.set(".cmdf","chemical/x-cmdf"),i.set(".cml","chemical/x-cml"),i.set(".csml","chemical/x-csml"),i.set(".xyz","chemical/x-xyz"),i.set(".bmp","image/bmp"),i.set(".cgm","image/cgm"),i.set(".g3","image/g3fax"),i.set(".gif","image/gif"),i.set(".ief","image/ief"),i.set(".jp2","image/jp2"),i.set(".jpeg,.jpg,.jpe","image/jpeg"),i.set(".pict,.pic,.pct","image/pict"),i.set(".png","image/png"),i.set(".btif","image/prs.btif"),i.set(".svg,.svgz","image/svg+xml"),i.set(".tiff,.tif","image/tiff"),i.set(".psd","image/vnd.adobe.photoshop"),i.set(".djvu,.djv","image/vnd.djvu"),i.set(".dwg","image/vnd.dwg"),i.set(".dxf","image/vnd.dxf"),i.set(".fbs","image/vnd.fastbidsheet"),i.set(".fpx","image/vnd.fpx"),i.set(".fst","image/vnd.fst"),i.set(".mmr","image/vnd.fujixerox.edmics-mmr"),i.set(".rlc","image/vnd.fujixerox.edmics-rlc"),i.set(".mdi","image/vnd.ms-modi"),i.set(".npx","image/vnd.net-fpx"),i.set(".wbmp","image/vnd.wap.wbmp"),i.set(".xif","image/vnd.xiff"),i.set(".ras","image/x-cmu-raster"),i.set(".cmx","image/x-cmx"),i.set(".fh,.fhc,.fh4,.fh5,.fh7","image/x-freehand"),i.set(".ico","image/x-icon"),i.set(".pntg,.pnt,.mac","image/x-macpaint"),i.set(".pcx","image/x-pcx"),i.set(".pnm","image/x-portable-anymap"),i.set(".pbm","image/x-portable-bitmap"),i.set(".pgm","image/x-portable-graymap"),i.set(".ppm","image/x-portable-pixmap"),i.set(".qtif,.qti","image/x-quicktime"),i.set(".rgb","image/x-rgb"),i.set(".xbm","image/x-xbitmap"),i.set(".xpm","image/x-xpixmap"),i.set(".xwd","image/x-xwindowdump"),i.set(".eml,.mime","message/rfc822"),i.set(".igs,.iges","model/iges"),i.set(".msh,.mesh,.silo","model/mesh"),i.set(".dwf","model/vnd.dwf"),i.set(".gdl","model/vnd.gdl"),i.set(".gtw","model/vnd.gtw"),i.set(".mts","model/vnd.mts"),i.set(".vtu","model/vnd.vtu"),i.set(".wrl,.vrml","model/vrml"),i.set(".ics,.ifb","text/calendar"),i.set(".css","text/css"),i.set(".csv","text/csv"),i.set(".html,.htm","text/html"),i.set(".txt,.text,.conf,.def,.list,.log,.in","text/plain"),i.set(".dsc","text/prs.lines.tag"),i.set(".rtx","text/richtext"),i.set(".sgml,.sgm","text/sgml"),i.set(".tsv","text/tab-separated-values"),i.set(".t,.tr,.roff,.man,.me,.ms","text/troff"),i.set(".uri,.uris,.urls","text/uri-list"),i.set(".curl","text/vnd.curl"),i.set(".dcurl","text/vnd.curl.dcurl"),i.set(".scurl","text/vnd.curl.scurl"),i.set(".mcurl","text/vnd.curl.mcurl"),i.set(".fly","text/vnd.fly"),i.set(".flx","text/vnd.fmi.flexstor"),i.set(".gv","text/vnd.graphviz"),i.set(".3dml","text/vnd.in3d.3dml"),i.set(".spot","text/vnd.in3d.spot"),i.set(".jad","text/vnd.sun.j2me.app-descriptor"),i.set(".wml","text/vnd.wap.wml"),i.set(".wmls","text/vnd.wap.wmlscript"),i.set(".s,.asm","text/x-asm"),i.set(".c,.cc,.cxx,.cpp,.h,.hh,.dic","text/x-c"),i.set(".f,.for,.f77,.f90","text/x-fortran"),i.set(".p,.pas","text/x-pascal"),i.set(".java","text/x-java-source"),i.set(".etx","text/x-setext"),i.set(".uu","text/x-uuencode"),i.set(".vcs","text/x-vcalendar"),i.set(".vcf","text/x-vcard"),i.set(".3gp","video/3gpp"),i.set(".3g2","video/3gpp2"),i.set(".h261","video/h261"),i.set(".h263","video/h263"),i.set(".h264","video/h264"),i.set(".jpgv","video/jpeg"),i.set(".jpm,.jpgm","video/jpm"),i.set(".mj2,.mjp2","video/mj2"),i.set(".mp4,.mp4v,.mpg4,.m4v","video/mp4"),i.set(".webm","video/webm"),i.set(".mpeg,.mpg,.mpe,.m1v,.m2v","video/mpeg"),i.set(".ogv","video/ogg"),i.set(".qt,.mov","video/quicktime"),i.set(".fvt","video/vnd.fvt"),i.set(".mxu,.m4u","video/vnd.mpegurl"),i.set(".pyv","video/vnd.ms-playready.media.pyv"),i.set(".viv","video/vnd.vivo"),i.set(".dv,.dif","video/x-dv"),i.set(".f4v","video/x-f4v"),i.set(".fli","video/x-fli"),i.set(".flv","video/x-flv"),i.set(".asf,.asx","video/x-ms-asf"),i.set(".wm","video/x-ms-wm"),i.set(".wmv","video/x-ms-wmv"),i.set(".wmx","video/x-ms-wmx"),i.set(".wvx","video/x-ms-wvx"),i.set(".avi","video/x-msvideo"),i.set(".movie","video/x-sgi-movie"),i.set(".ice","x-conference/x-cooltalk"),i.set(".gz","application/x-gzip"),i.set(".tgz","application/x-tar"),i.set(".tar","application/x-tar"),i.set(".epub","application/epub+zip"),i.set(".mobi","application/x-mobipocket-ebook"),i.set("README,LICENSE,COPYING,TODO,ABOUT,AUTHORS,CONTRIBUTORS","text/plain"),i.set("manifest,.manifest,.mf,.appcache","text/cache-manifest"),void 0!==n&&(n.charset=i.charset,n.catalog=i.catalog,n.lookup=i.lookup,n.set=i.set,n.del=i.del,n.forEach=i.forEach),void 0===e.MimeType&&(e.MimeType=i),void 0===e.mimeType&&(e.mimeType=i)}(this)},{path:110}],156:[function(t,e,n){var r=t("trim"),i=t("for-each"),o=function(t){return"[object Array]"===Object.prototype.toString.call(t)};e.exports=function(t){if(!t)return{};var e={};return i(r(t).split("\n"),function(t){var n=t.indexOf(":"),i=r(t.slice(0,n)).toLowerCase(),s=r(t.slice(n+1));void 0===e[i]?e[i]=s:o(e[i])?e[i].push(s):e[i]=[e[i],s]}),e}},{"for-each":152,trim:162}],157:[function(t,e,n){var r=t("strict-uri-encode");n.extract=function(t){return t.split("?")[1]||""},n.parse=function(t){return"string"!=typeof t?{}:(t=t.trim().replace(/^(\?|#|&)/,""))?t.split("&").reduce(function(t,e){var n=e.replace(/\+/g," ").split("="),r=n.shift(),i=n.length>0?n.join("="):void 0;return r=decodeURIComponent(r),i=void 0===i?null:decodeURIComponent(i),t.hasOwnProperty(r)?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i,t},{}):{}},n.stringify=function(t){return t?Object.keys(t).sort().map(function(e){var n=t[e];return Array.isArray(n)?n.sort().map(function(t){return r(e)+"="+r(t)}).join("&"):r(e)+"="+r(n)}).filter(function(t){return t.length>0}).join("&"):""}},{"strict-uri-encode":158}],158:[function(t,e,n){e.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},{}],159:[function(t,e,n){e.exports={"windows-amd64":{archive:"swarm-windows-amd64-1.6.7.exe",binaryMD5:"c2d827dc4553d9b91a7d6c1d5a6140fd",archiveMD5:"059196d21548060a18a12e17cc0ee59a"},"linux-amd64":{archive:"swarm-linux-amd64-1.6.7",binaryMD5:"85002d79b8ebc2d2f2f10fb198636a81",archiveMD5:"3e8874299ab8c0e3043d70ebb6673879"},"linux-386":{archive:"swarm-linux-386-1.6.7",binaryMD5:"35bc2ab976f60f96a2cede117e0df19d",archiveMD5:"7868a86c9cbdf8ac7ac2e5682b4ce40f"},"darwin-amd64":{archive:"swarm-darwin-amd64-1.6.7",binaryMD5:"c499b186645229260dd6ab685dd58f07",archiveMD5:"0794d111e5018eac3b657bcb29851121"},"linux-arm5":{archive:"swarm-linux-arm5-1.6.7",binaryMD5:"516fcd85246c905529442cd9b689c12f",archiveMD5:"47312708d417cb196b07ba0af1d3abb4"},"linux-arm6":{archive:"swarm-linux-arm6-1.6.7",binaryMD5:"82ff7bdbe388b4a190f4101c5150d3b4",archiveMD5:"350276de7bb175a15c314cfc4cb7f8fd"},"linux-mips":{archive:"swarm-linux-mips-1.6.7",binaryMD5:"e1e95280441c0ca35633927792ef5317",archiveMD5:"8fb4b64e94cd73aa718db787b9d4c53e"},"linux-arm7":{archive:"swarm-linux-arm7-1.6.7",binaryMD5:"bfc0b4d1c86d8a975af052fc7854bdd3",archiveMD5:"4378641d8e1e1fbb947f941c8fca8613"},"linux-arm64":{archive:"swarm-linux-arm64-1.6.7",binaryMD5:"bbac21a6c6fa8208f67ca4123d3f948a",archiveMD5:"4e503160327c5fbcca0414f17c54e5ee"},"linux-mipsle":{archive:"swarm-linux-mipsle-1.6.7",binaryMD5:"a82f191b2f9d2c470d0273219c820657",archiveMD5:"3016bdb6d237ae654c0cdf36fe85dc7c"},"windows-386":{archive:"swarm-windows-386-1.6.7.exe",binaryMD5:"ce0b34640642e58068ae5a359faef102",archiveMD5:"640aede4da08a3a9d8a6ac0434ba7c0f"},"linux-mips64":{archive:"swarm-linux-mips64-1.6.7",binaryMD5:"9da967664f384817adb5083fd1ffe8f1",archiveMD5:"357a33be470f8f89ba2619957a08deff"},"linux-mips64le":{archive:"swarm-linux-mips64le-1.6.7",binaryMD5:"ec1abcf7b216e87645ec83954d8344cd",archiveMD5:"a81fd0158190d99813c738ffa4f87627"}}},{}],160:[function(t,e,n){(function(t){var n=function(e){return function(){return new Promise(function(n,r){var i=function(r){var i={},o=r.target.files.length,s=0;[].map.call(r.target.files,function(r){var a=new FileReader;a.onload=function(a){var c=new t(a.target.result);if("directory"===e){var u=r.webkitRelativePath;i[u.slice(u.indexOf("/")+1)]={type:"text/plain",data:c},++s===o&&n(i)}else if("file"===e){var f=r.webkitRelativePath;n({type:mimetype.lookup(f),data:c})}else n(c)},a.readAsArrayBuffer(r)})},o=void 0;"directory"===e?((o=document.createElement("input")).addEventListener("change",i),o.type="file",o.webkitdirectory=!0,o.mozdirectory=!0,o.msdirectory=!0,o.odirectory=!0,o.directory=!0):((o=document.createElement("input")).addEventListener("change",i),o.type="file");var s=document.createEvent("MouseEvents");s.initEvent("click",!0,!1),o.dispatchEvent(s)})}};e.exports={data:n("data"),file:n("file"),directory:n("directory")}}).call(this,t("buffer").Buffer)},{buffer:45}],161:[function(t,e,n){var r=t("mimetype"),i=t("./pick.js"),o=t("xhr-request-promise"),s=t("./../archives/archives.json"),a=t("buffer").Buffer,c=function(t){return function(e){return function(n){return n[t]=e,n}}},u=function(t){return function(e){for(var n={},r=0,i=t.length;r0){var s=t("path").join(r,o);i.push(b(e)(n[o])(s))}return Promise.all(i).then(function(){return r})})}}},y=function(t){return function(e){return o(t+"/bzzr:/",{body:e,method:"POST"})}},g=function(t){return function(e){return function(n){return function(r){return function i(s){var a="/"===n[0]?n:"/"+n,c=t+"/bzz:/"+e+a,u={method:"PUT",headers:{"Content-Type":r.type},body:r.data};return o(c,u).catch(function(t){return s>0&&i(s-1)})}(3)}}}},_=function(t){return function(e){return x(t)({"":e})}},w=function(e){return function(n){return t("fs-promise").readFile(n).then(function(t){return _(e)({type:r.lookup(n),data:t})})}},x=function(t){return function(e){return y(t)("{}").then(function(n){var r=function(n){return function(r){return g(t)(r)(n)(e[n])}};return Object.keys(e).reduce(function(t,e){return t.then(r(e))},Promise.resolve(n))})}},k=function(e){return function(n){return t("fs-promise").readFile(n).then(y(e))}},S=function(e){return function(n){return function(i){return t("./files.js").directoryTree(i).then(function(e){return Promise.all(e.map(function(e){return t("fs-promise").readFile(e)})).then(function(t){var n=e.map(function(t){return t.slice(i.length)}),o=e.map(function(t){return r.lookup(t)||"text/plain"});return u(n)(t.map(function(t,e){return{type:o[e],data:t}}))})}).then(function(t){return f(n?{"":t[n]}:{})(t)}).then(x(e))}}},M=function(t){return function(e){if("data"===e.pick)return i.data().then(y(t));if("file"===e.pick)return i.file().then(_(t));if("directory"===e.pick)return i.directory().then(x(t));if(e.path)switch(e.kind){case"data":return k(t)(e.path);case"file":return w(t)(e.path);case"directory":return S(t)(e.defaultFile)(e.path)}else{if("string"==typeof e)return y(t)(new a(e));if(e.length)return y(t)(e);if(e instanceof Object)return x(t)(e)}return Promise.reject(new Error("Bad arguments"))}},E=function(t){return function(e){return function(n){return I(t)(e).then(function(r){return r?n?v(t)(e)(n):m(t)(e):n?b(t)(e)(n):l(t)(e)})}}},j=function(e,n){var r=t("os"),i=r.platform().replace("win32","windows")+"-"+("x64"===r.arch()?"amd64":"386"),o=(n||s)[i],a="http://ethereum-mist.s3.amazonaws.com/swarm/"+o.archive+".tar.gz",c=o.archiveMD5,u=o.binaryMD5;return t("./files.js").safeDownloadArchived(a)(c)(u)(e)},C=function(e){return new Promise(function(n,r){var i=t("child_process").spawn,o=function(t){return function(e){return-1!==(""+e).indexOf(t)}},s=e.account,a=e.password,c=e.dataDir,u=e.ensApi,f=e.privateKey,h=0,l=i(e.binPath,["--bzzaccount",s||f,"--datadir",c,"--ens-api",u]),d=function(t){0===h&&o("Passphrase")(t)?setTimeout(function(){h=1,l.stdin.write(a+"\n")},500):o("Swarm http proxy started")(t)&&(h=2,clearTimeout(p),n(l))};l.stdout.on("data",d),l.stderr.on("data",d);var p=setTimeout(function(){return r(new Error("Couldn't start swarm process."))},2e4)})},A=function(t){return new Promise(function(e,n){t.stderr.removeAllListeners("data"),t.stdout.removeAllListeners("data"),t.stdin.removeAllListeners("error"),t.removeAllListeners("error"),t.removeAllListeners("exit"),t.kill("SIGINT");var r=setTimeout(function(){return t.kill("SIGKILL")},8e3);t.once("close",function(){clearTimeout(r),e()})})},T=function(t){return y(t)("test").then(function(t){return"c9a99c7d326dcc6316f32fe2625b311f6dc49a175e6877681ded93137d3569e7"===t}).catch(function(){return!1})},I=function(t){return function(e){return l(t)(e).then(function(t){return!!JSON.parse(t.toString()).entries}).catch(function(){return!1})}},P=function(t){return function(e,n,r,i,o){return void 0!==e&&(t=t(e)),void 0!==n&&(t=t(n)),void 0!==r&&(t=t(r)),void 0!==i&&(t=t(i)),void 0!==o&&(t=t(o)),t}},B=function(t){return{download:function(e,n){return E(t)(e)(n)},downloadData:P(l(t)),downloadDataToDisk:P(b(t)),downloadDirectory:P(m(t)),downloadDirectoryToDisk:P(v(t)),downloadEntries:P(d(t)),downloadRoutes:P(p(t)),isAvailable:function(){return T(t)},upload:function(e){return M(t)(e)},uploadData:P(y(t)),uploadFile:P(_(t)),uploadFileFromDisk:P(_(t)),uploadDataFromDisk:P(k(t)),uploadDirectory:P(x(t)),uploadDirectoryFromDisk:P(S(t)),uploadToManifest:P(g(t)),pick:i}};e.exports={at:B,local:function(t){return function(e){return T("http://localhost:8500").then(function(n){return n?e(B("http://localhost:8500")).then(function(){}):j(t.binPath,t.archives).onData(function(e){return(t.onProgress||function(){})(e.length)}).then(function(){return C(t)}).then(function(t){return e(B("http://localhost:8500")).then(function(){return t})}).then(A)})}},download:E,downloadBinary:j,downloadData:l,downloadDataToDisk:b,downloadDirectory:m,downloadDirectoryToDisk:v,downloadEntries:d,downloadRoutes:p,isAvailable:T,startProcess:C,stopProcess:A,upload:M,uploadData:y,uploadDataFromDisk:k,uploadFile:_,uploadFileFromDisk:w,uploadDirectory:x,uploadDirectoryFromDisk:S,uploadToManifest:g,pick:i}},{"./../archives/archives.json":159,"./pick.js":160,buffer:45,mimetype:155,"xhr-request-promise":165}],162:[function(t,e,n){(n=e.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},n.right=function(t){return t.replace(/\s*$/,"")}},{}],163:[function(t,e,n){(function(){function t(t){function e(e,n,r,i,o,s){for(;o>=0&&o0?0:a-1;return arguments.length<3&&(i=n[s?s[c]:c],c+=t),e(n,r,i,s,c,a)}}function r(t){return function(e,n,r){n=x(n,r);for(var i=j(e),o=t>0?0:i-1;o>=0&&o0?s=o>=0?o:Math.max(o+a,s):a=o>=0?Math.min(o+1,a):o+a+1;else if(n&&o&&a)return o=n(r,i),r[o]===i?o:-1;if(i!==i)return(o=e(l.call(r,s,a),_.isNaN))>=0?o+s:-1;for(o=t>0?s:a-1;o>=0&&o=0&&e<=E};_.each=_.forEach=function(t,e,n){e=w(e,n);var r,i;if(C(t))for(r=0,i=t.length;r=0},_.invoke=function(t,e){var n=l.call(arguments,2),r=_.isFunction(e);return _.map(t,function(t){var i=r?e:t[e];return null==i?i:i.apply(t,n)})},_.pluck=function(t,e){return _.map(t,_.property(e))},_.where=function(t,e){return _.filter(t,_.matcher(e))},_.findWhere=function(t,e){return _.find(t,_.matcher(e))},_.max=function(t,e,n){var r,i,o=-1/0,s=-1/0;if(null==e&&null!=t)for(var a=0,c=(t=C(t)?t:_.values(t)).length;ao&&(o=r);else e=x(e,n),_.each(t,function(t,n,r){((i=e(t,n,r))>s||i===-1/0&&o===-1/0)&&(o=t,s=i)});return o},_.min=function(t,e,n){var r,i,o=1/0,s=1/0;if(null==e&&null!=t)for(var a=0,c=(t=C(t)?t:_.values(t)).length;ar||void 0===n)return 1;if(ne?(s&&(clearTimeout(s),s=null),a=u,o=t.apply(r,i),s||(r=i=null)):s||!1===n.trailing||(s=setTimeout(c,f)),o}},_.debounce=function(t,e,n){var r,i,o,s,a,c=function c(){var u=_.now()-s;u=0?r=setTimeout(c,e-u):(r=null,n||(a=t.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,s=_.now();var u=n&&!r;return r||(r=setTimeout(c,e)),u&&(a=t.apply(o,i),o=i=null),a}},_.wrap=function(t,e){return _.partial(e,t)},_.negate=function(t){return function(){return!t.apply(this,arguments)}},_.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},_.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},_.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},_.once=_.partial(_.before,2);var P=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];_.keys=function(t){if(!_.isObject(t))return[];if(b)return b(t);var e=[];for(var n in t)_.has(t,n)&&e.push(n);return P&&o(t,e),e},_.allKeys=function(t){if(!_.isObject(t))return[];var e=[];for(var n in t)e.push(n);return P&&o(t,e),e},_.values=function(t){for(var e=_.keys(t),n=e.length,r=Array(n),i=0;i":">",'"':""","'":"'","`":"`"},O=_.invert(R),N=function(t){var e=function(e){return t[e]},n="(?:"+_.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}};_.escape=N(R),_.unescape=N(O),_.result=function(t,e,n){var r=null==t?void 0:t[e];return void 0===r&&(r=n),_.isFunction(r)?r.call(t):r};var L=0;_.uniqueId=function(t){var e=++L+"";return t?t+e:e},_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var D=/(.)^/,q={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},z=/\\|'|\r|\n|\u2028|\u2029/g,U=function(t){return"\\"+q[t]};_.template=function(t,e,n){!e&&n&&(e=n),e=_.defaults({},e,_.templateSettings);var r=RegExp([(e.escape||D).source,(e.interpolate||D).source,(e.evaluate||D).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,function(e,n,r,s,a){return o+=t.slice(i,a).replace(z,U),i=a+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":s&&(o+="';\n"+s+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var s=new Function(e.variable||"obj","_",o)}catch(t){throw t.source=o,t}var a=function(t){return s.call(this,t,_)},c=e.variable||"obj";return a.source="function("+c+"){\n"+o+"}",a},_.chain=function(t){var e=_(t);return e._chain=!0,e};var H=function(t,e){return t._chain?_(e).chain():e};_.mixin=function(t){_.each(_.functions(t),function(e){var n=_[e]=t[e];_.prototype[e]=function(){var t=[this._wrapped];return h.apply(t,arguments),H(this,n.apply(_,t))}})},_.mixin(_),_.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=c[t];_.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],H(this,n)}}),_.each(["concat","join","slice"],function(t){var e=c[t];_.prototype[t]=function(){return H(this,e.apply(this._wrapped,arguments))}}),_.prototype.value=function(){return this._wrapped},_.prototype.valueOf=_.prototype.toJSON=_.prototype.value,_.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return _})}).call(this)},{}],164:[function(t,e,n){e.exports=function(t,e){if(e){e=(e=e.trim().replace(/^(\?|#|&)/,""))?"?"+e:e;var n=t.split(/[\?\#]/)[0];e&&/\:\/\/[^\/]*$/.test(n)&&(n+="/");var r=t.match(/(\#.*)$/);t=n+e,r&&(t+=r[0])}return t}},{}],165:[function(t,e,n){var r=t("xhr-request");e.exports=function(t,e){return new Promise(function(n,i){r(t,e,function(t,e){t?i(t):n(e)})})}},{"xhr-request":166}],166:[function(t,e,n){var r=t("query-string"),i=t("url-set-query"),o=t("object-assign"),s=t("./lib/ensure-header.js"),a=t("./lib/request.js"),c="application/json",u=function(){};e.exports=function(t,e,n){if(!t||"string"!=typeof t)throw new TypeError("must specify a URL");if("function"==typeof e&&(n=e,e={}),n&&"function"!=typeof n)throw new TypeError("expected cb to be undefined or a function");n=n||u;var f=(e=e||{}).json?"json":"text",h=(e=o({responseType:f},e)).headers||{},l=(e.method||"GET").toUpperCase(),d=e.query;return d&&("string"!=typeof d&&(d=r.stringify(d)),t=i(t,d)),"json"===e.responseType&&s(h,"Accept",c),e.json&&"GET"!==l&&"HEAD"!==l&&(s(h,"Content-Type",c),e.body=JSON.stringify(e.body)),e.method=l,e.url=t,e.headers=h,delete e.query,delete e.json,a(e,n)}},{"./lib/ensure-header.js":167,"./lib/request.js":169,"object-assign":170,"query-string":157,"url-set-query":164}],167:[function(t,e,n){e.exports=function(t,e,n){var r=e.toLowerCase();t[e]||t[r]||(t[e]=n)}},{}],168:[function(t,e,n){e.exports=function(t,e){return e?{statusCode:e.statusCode,headers:e.headers,method:t.method,url:t.url,rawRequest:e.rawRequest?e.rawRequest:e}:null}},{}],169:[function(t,e,n){var r=t("xhr"),i=t("./normalize-response");e.exports=function(t,e){delete t.uri;var n=!1;return"json"===t.responseType&&(t.responseType="text",n=!0),r(t,function(r,o,s){if(n&&!r)try{var a=o.rawRequest.responseText;s=JSON.parse(a)}catch(t){r=t}o=i(t,o),r?e(r,null,o):e(r,s,o)})}},{"./normalize-response":168,xhr:171}],170:[function(t,e,n){function r(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function i(t){var e=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t))),e.filter(function(e){return o.call(t,e)})}var o=Object.prototype.propertyIsEnumerable;e.exports=Object.assign||function(t,e){for(var n,o,s=r(t),a=1;a0&&(d=setTimeout(function(){if(!l){l=!0,u.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",n(t)}},t.timeout)),u.setRequestHeader)for(h in v)v.hasOwnProperty(h)&&u.setRequestHeader(h,v[h]);else if(t.headers&&!r(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(u.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(u),u.send(b||null),u}function a(t){if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;return""!==t.responseType||e?null:t.responseXML}var c=t("global/window"),u=t("is-function"),f=t("parse-headers"),h=t("xtend");e.exports=o,o.XMLHttpRequest=c.XMLHttpRequest||function(){},o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:c.XDomainRequest,function(t,e){for(var n=0;n1?(t[n[0]]=t[n[0]]||{},t[n[0]][n[1]]=e):t[n[0]]=e},a.prototype._confirmTransaction=function(t,e,n,i){var s=this,a=!1,c=!0,u=0,f=0,h=null,l=r.isObject(n.params[0])&&n.params[0].gas?n.params[0].gas:null,d=r.isObject(n.params[0])&&n.params[0].data&&n.params[0].from&&!n.params[0].to,p=function(n,r,p){n?(p.unsubscribe(),a=!0,o._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transactions receipt. Are you using HttpProvider? Please switch to Websockets.",data:n},t.eventEmitter,t.reject)):(p||(p={unsubscribe:function(){clearInterval(h)}}),s.eth.getTransactionReceipt(e).catch(function(e){p.unsubscribe(),a=!0,o._fireError({message:"Failed to check for transaction receipt:",data:e},t.eventEmitter,t.reject)}).then(function(e){if(!e)throw new Error('Receipt is "null"');return i&&i.receiptFormatter&&(e=i.receiptFormatter(e)),t.eventEmitter.listeners("confirmation").length>0&&(t.eventEmitter.emit("confirmation",f,e),c=!1,25===++f&&(p.unsubscribe(),t.eventEmitter.removeAllListeners())),e}).then(function(e){if(d&&!a){if(!e.contractAddress)return a=!0,void o._fireError(new Error("The transaction receipt didn't contain a contract address."),t.eventEmitter,t.reject);s.eth.getCode(e.contractAddress,function(n,r){r&&(r.length>2?(t.eventEmitter.emit("receipt",e),i&&i.contractDeployFormatter?t.resolve(i.contractDeployFormatter(e)):t.resolve(e)):o._fireError(new Error("The contract code couldn't be stored, please check your gas limit."),t.eventEmitter,t.reject),c&&(p.unsubscribe(),t.eventEmitter.removeAllListeners()),a=!0)})}return e}).then(function(e){d||a||(e.outOfGas||l&&l===e.gasUsed?(e&&(e=JSON.stringify(e,null,2)),o._fireError(new Error("Transaction ran out of gas. Please provide more gas:\n"+e),t.eventEmitter,t.reject)):(t.eventEmitter.emit("receipt",e),t.resolve(e)),c&&(p.unsubscribe(),t.eventEmitter.removeAllListeners()),a=!0)}).catch(function(){u>=50&&(p.unsubscribe(),a=!0,o._fireError(new Error("Transaction was not mined within 50 blocks, please make sure your transaction was properly send. Be aware that it might still be mined!"),t.eventEmitter,t.reject)),u++}))};r.isFunction(this.requestManager.provider.on)?s.eth.subscribe("newBlockHeaders",p):h=setInterval(p,1e3)};var c=function(t,e){return r.isNumber(t)?e.wallet[t]:r.isObject(t)&&t.address&&t.privateKey?t:e.wallet[t.toLowerCase()]};a.prototype.buildCall=function(){var t=this,e=r.isString(t.call)?t.call.toLowerCase():a.call,n="eth_sendtransaction"===e||"eth_sendrawtransaction"===e,i=function(){var e=this,i=s(!n),a=t.toPayload(Array.prototype.slice.call(arguments)),u=function(r,s){if(s=t.formatOutput(s),r)return r.error&&(r=r.error),void o._fireError(r,i.eventEmitter,i.reject,a.callback);a.callback&&a.callback(null,s),n?t.eth&&(i.eventEmitter.emit("transactionHash",s),t._confirmTransaction(i,s,a,e)):r||i.resolve(s)},f=function(e){a.method="eth_sendRawTransaction",a.params=[e.rawTransaction],t.requestManager.send(a,u)},h=function(t,e){if(e&&e.eth&&e.eth.accounts&&e.eth.accounts.wallet.length){var n;if("eth_sendtransaction"===t.method.toLowerCase()){var o=t.params[0];if((n=c(r.isObject(o)?o.from:null,e.eth.accounts))&&n.privateKey){delete o.from;var s=e.eth.accounts.signTransaction(o,n.privateKey);return r.isFunction(s.then)?s.then(f):f(s)}}else if("eth_sign"===t.method.toLowerCase()){var a=t.params[1];if((n=c(t.params[0],e.eth.accounts))&&n.privateKey){var h=e.eth.accounts.sign(a,n.privateKey);return t.callback&&t.callback(null,h.signature),void i.resolve(h.signature)}}}return e.requestManager.send(t,u)};return n&&t.eth&&r.isObject(a.params[0])&&!a.params[0].gasPrice?t.eth.getGasPrice(function(e,n){n&&(a.params[0].gasPrice=o.numberToHex(n)),h(a,t)}):h(a,t),i.eventEmitter};return i.request=this.request.bind(this),i},a.prototype.request=function(){var t=this.toPayload(Array.prototype.slice.call(arguments));return t.format=this.formatOutput.bind(this),t},e.exports=a},{underscore:179,"web3-core-helpers":178,"web3-core-promievent":183,"web3-utils":304}],181:[function(t,e,n){(function(t,r){!function(t){if("object"==(void 0===n?"undefined":_typeof(n))&&void 0!==e)e.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i;"undefined"!=typeof window?i=window:void 0!==r?i=r:"undefined"!=typeof self&&(i=self),i.Promise=t()}}(function(){var e,n,i;return function t(e,n,r){function i(s,a){if(!n[s]){if(!e[s]){var c="function"==typeof _dereq_&&_dereq_;if(!a&&c)return c(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[s]={exports:{}};e[s][0].call(f.exports,function(t){var n=e[s][1][t];return i(n||t)},f,f.exports,t,e,n,r)}return n[s].exports}for(var o="function"==typeof _dereq_&&_dereq_,s=0;s0;){var e=t.shift();if("function"==typeof e){var n=t.shift(),r=t.shift();e.call(n,r)}else e._settlePromises()}},i.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},i.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},i.prototype._reset=function(){this._isTickUsed=!1},n.exports=i,n.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(t,e,n){e.exports=function(t,e,n,r){var i=!1,o=function(t,e){this._reject(e)},s=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(o,o,null,this,t)},a=function(t,e){0==(50397184&this._bitField)&&this._resolveCallback(e.target)},c=function(t,e){e.promiseRejectionQueued||this._reject(t)};t.prototype.bind=function(o){i||(i=!0,t.prototype._propagateFrom=r.propagateFromFunction(),t.prototype._boundValue=r.boundValueFunction());var u=n(o),f=new t(e);f._propagateFrom(this,1);var h=this._target();if(f._setBoundTo(u),u instanceof t){var l={promiseRejectionQueued:!1,promise:f,target:h,bindingPromise:u};h._then(e,s,void 0,f,l),u._then(a,c,void 0,f,l),f._setOnCancel(u)}else f._resolveCallback(h);return f},t.prototype._setBoundTo=function(t){void 0!==t?(this._bitField=2097152|this._bitField,this._boundTo=t):this._bitField=-2097153&this._bitField},t.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},t.bind=function(e,n){return t.resolve(n).bind(e)}}},{}],4:[function(t,e,n){var r;"undefined"!=typeof Promise&&(r=Promise);var i=t("./promise")();i.noConflict=function(){try{Promise===i&&(Promise=r)}catch(t){}return i},e.exports=i},{"./promise":22}],5:[function(t,e,n){var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}e.exports=function(e){function n(t,n){var r;if(null!=t&&(r=t[n]),"function"!=typeof r){var i="Object "+a.classString(t)+" has no method '"+a.toString(n)+"'";throw new e.TypeError(i)}return r}function r(t){return n(t,this.pop()).apply(t,this)}function i(t){return t[this]}function o(t){var e=+this;return e<0&&(e=Math.max(0,e+t.length)),t[e]}var s,a=t("./util"),c=a.canEvaluate;a.isIdentifier;e.prototype.call=function(t){var e=[].slice.call(arguments,1);return e.push(t),this._then(r,void 0,void 0,e,void 0)},e.prototype.get=function(t){var e;if("number"==typeof t)e=o;else if(c){var n=s(t);e=null!==n?n:i}else e=i;return this._then(e,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,e,n){e.exports=function(e,n,r,i){var o=t("./util"),s=o.tryCatch,a=o.errorObj,c=e._async;e.prototype.break=e.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var t=this,e=t;t.isCancellable();){if(!t._cancelBy(e)){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}var n=t._cancellationParent;if(null==n||!n.isCancellable()){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}t._isFollowing()&&t._followee().cancel(),e=t,t=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(t){return t===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this.isCancellable()&&(this._setCancelled(),c.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(t,e){if(o.isArray(t))for(var n=0;n=0)return i[t]}var r=!1,i=[];return t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){},e.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,i.push(this._trace))},e.prototype._popContext=function(){if(void 0!==this._trace){var t=i.pop(),e=t._promiseCreated;return t._promiseCreated=null,e}return null},e.CapturedTrace=null,e.create=function(){if(r)return new e},e.deactivateLongStackTraces=function(){},e.activateLongStackTraces=function(){var i=t.prototype._pushContext,o=t.prototype._popContext,s=t._peekContext,a=t.prototype._peekContext,c=t.prototype._promiseCreated;e.deactivateLongStackTraces=function(){t.prototype._pushContext=i,t.prototype._popContext=o,t._peekContext=s,t.prototype._peekContext=a,t.prototype._promiseCreated=c,r=!1},r=!0,t.prototype._pushContext=e.prototype._pushContext,t.prototype._popContext=e.prototype._popContext,t._peekContext=t.prototype._peekContext=n,t.prototype._promiseCreated=function(){var t=this._peekContext();t&&null==t._promiseCreated&&(t._promiseCreated=this)}},e}},{}],9:[function(e,n,r){n.exports=function(n,r){function i(t,e){return{promise:e}}function o(){return!1}function s(t,e,n){var r=this;try{t(e,n,function(t){if("function"!=typeof t)throw new TypeError("onCancel must be a function, got: "+R.toString(t));r._attachCancellationCallback(t)})}catch(t){return t}}function a(t){if(!this.isCancellable())return this;var e=this._onCancel();void 0!==e?R.isArray(e)?e.push(t):this._setOnCancel([e,t]):this._setOnCancel(t)}function c(){return this._onCancelField}function u(t){this._onCancelField=t}function f(){this._cancellationParent=void 0,this._onCancelField=void 0}function h(t,e){if(0!=(1&e)){this._cancellationParent=t;var n=t._branchesRemainingToCancel;void 0===n&&(n=0),t._branchesRemainingToCancel=n+1}0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function l(){var t=this._boundTo;return void 0!==t&&t instanceof n?t.isFulfilled()?t.value():void 0:t}function d(){this._trace=new C(this._peekContext())}function p(t,e){if(O(t)){var n=this._trace;if(void 0!==n&&e&&(n=n._parent),void 0!==n)n.attachExtraTrace(t);else if(!t.__stackCleaned__){var r=w(t);R.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),R.notEnumerableProp(t,"__stackCleaned__",!0)}}}function m(t,e,r){if(tt.warnings){var i,o=new F(t);if(e)r._attachExtraTrace(o);else if(tt.longStackTraces&&(i=n._peekContext()))i.attachExtraTrace(o);else{var s=w(o);o.stack=s.message+"\n"+s.stack.join("\n")}G("warning",o)||x(o,"",!0)}}function b(t,e){for(var n=0;n=0;--a)if(r[a]===o){s=a;break}for(a=s;a>=0;--a){var c=r[a];if(e[i]!==c)break;e.pop(),i--}e=r}}function g(t){for(var e=[],n=0;n0&&(e=e.slice(n)),e}function w(t){var e=t.stack,n=t.toString();return e="string"==typeof e&&e.length>0?_(t):[" (No stack trace)"],{message:n,stack:g(e)}}function x(t,e,n){if("undefined"!=typeof console){var r;if(R.isObject(t)){var i=t.stack;r=e+D(i,t)}else r=e+String(t);"function"==typeof I?I(r,n):"function"!=typeof console.log&&"object"!==_typeof(console.log)||console.log(r)}}function k(t,e,n,r){var i=!1;try{"function"==typeof e&&(i=!0,"rejectionHandled"===t?e(r):e(n,r))}catch(t){B.throwLater(t)}"unhandledRejection"===t?G(t,n,r)||i||x(n,"Unhandled rejection "):G(t,r)}function S(t){var e;if("function"==typeof t)e="[function "+(t.name||"anonymous")+"]";else{if(e=t&&"function"==typeof t.toString?t.toString():R.toString(t),/\[object [a-zA-Z0-9$_]+\]/.test(e))try{e=JSON.stringify(t)}catch(t){}0===e.length&&(e="(empty array)")}return"(<"+M(e)+">, no stack trace)"}function M(t){return t.length<41?t:t.substr(0,38)+"..."}function E(){return"function"==typeof Y}function j(t){var e=t.match(Q);if(e)return{fileName:e[1],line:parseInt(e[2],10)}}function C(t){this._parent=t,this._promisesCreated=0;var e=this._length=1+(void 0===t?0:t._length);Y(this,C),e>32&&this.uncycle()}var A,T,I,P=n._getDomain,B=n._async,F=e("./errors").Warning,R=e("./util"),O=R.canAttachTrace,N=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,L=null,D=null,q=!1,z=!(0==R.env("BLUEBIRD_DEBUG")),U=!(0==R.env("BLUEBIRD_WARNINGS")||!z&&!R.env("BLUEBIRD_WARNINGS")),H=!(0==R.env("BLUEBIRD_LONG_STACK_TRACES")||!z&&!R.env("BLUEBIRD_LONG_STACK_TRACES")),V=0!=R.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(U||!!R.env("BLUEBIRD_W_FORGOTTEN_RETURN"));n.prototype.suppressUnhandledRejections=function(){var t=this._target();t._bitField=-1048577&t._bitField|524288},n.prototype._ensurePossibleRejectionHandled=function(){0==(524288&this._bitField)&&(this._setRejectionIsUnhandled(),B.invokeLater(this._notifyUnhandledRejection,this,void 0))},n.prototype._notifyUnhandledRejectionIsHandled=function(){k("rejectionHandled",A,void 0,this)},n.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},n.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},n.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var t=this._settledValue();this._setUnhandledRejectionIsNotified(),k("unhandledRejection",T,t,this)}},n.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},n.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},n.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},n.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},n.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},n.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},n.prototype._warn=function(t,e,n){return m(t,e,n||this)},n.onPossiblyUnhandledRejection=function(t){var e=P();T="function"==typeof t?null===e?t:e.bind(t):void 0},n.onUnhandledRejectionHandled=function(t){var e=P();A="function"==typeof t?null===e?t:e.bind(t):void 0};var W=function(){};n.longStackTraces=function(){if(B.haveItemsQueued()&&!tt.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!tt.longStackTraces&&E()){var t=n.prototype._captureStackTrace,e=n.prototype._attachExtraTrace;tt.longStackTraces=!0,W=function(){if(B.haveItemsQueued()&&!tt.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");n.prototype._captureStackTrace=t,n.prototype._attachExtraTrace=e,r.deactivateLongStackTraces(),B.enableTrampoline(),tt.longStackTraces=!1},n.prototype._captureStackTrace=d,n.prototype._attachExtraTrace=p,r.activateLongStackTraces(),B.disableTrampolineIfNecessary()}},n.hasLongStackTraces=function(){return tt.longStackTraces&&E()};var K=function(){try{var t=document.createEvent("CustomEvent");return t.initCustomEvent("testingtheevent",!1,!0,{}),R.global.dispatchEvent(t),function(t,e){var n=document.createEvent("CustomEvent");return n.initCustomEvent(t.toLowerCase(),!1,!0,e),!R.global.dispatchEvent(n)}}catch(t){}return function(){return!1}}(),X=R.isNode?function(){return t.emit.apply(t,arguments)}:R.global?function(t){var e="on"+t.toLowerCase(),n=R.global[e];return!!n&&(n.apply(R.global,[].slice.call(arguments,1)),!0)}:function(){return!1},$={promiseCreated:i,promiseFulfilled:i,promiseRejected:i,promiseResolved:i,promiseCancelled:i,promiseChained:function(t,e,n){return{promise:e,child:n}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,n){return{reason:e,promise:n}},rejectionHandled:i},G=function(t){var e=!1;try{e=X.apply(null,arguments)}catch(t){B.throwLater(t),e=!0}var n=!1;try{n=K(t,$[t].apply(null,arguments))}catch(t){B.throwLater(t),n=!0}return n||e};n.config=function(t){if("longStackTraces"in(t=Object(t))&&(t.longStackTraces?n.longStackTraces():!t.longStackTraces&&n.hasLongStackTraces()&&W()),"warnings"in t){var e=t.warnings;tt.warnings=!!e,V=tt.warnings,R.isObject(e)&&"wForgottenReturn"in e&&(V=!!e.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!tt.cancellation){if(B.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");n.prototype._clearCancellationData=f,n.prototype._propagateFrom=h,n.prototype._onCancel=c,n.prototype._setOnCancel=u,n.prototype._attachCancellationCallback=a,n.prototype._execute=s,J=h,tt.cancellation=!0}"monitoring"in t&&(t.monitoring&&!tt.monitoring?(tt.monitoring=!0,n.prototype._fireEvent=G):!t.monitoring&&tt.monitoring&&(tt.monitoring=!1,n.prototype._fireEvent=o))},n.prototype._fireEvent=o,n.prototype._execute=function(t,e,n){try{t(e,n)}catch(t){return t}},n.prototype._onCancel=function(){},n.prototype._setOnCancel=function(t){},n.prototype._attachCancellationCallback=function(t){},n.prototype._captureStackTrace=function(){},n.prototype._attachExtraTrace=function(){},n.prototype._clearCancellationData=function(){},n.prototype._propagateFrom=function(t,e){};var J=function(t,e){0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)},Z=function(){return!1},Q=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;R.inherits(C,Error),r.CapturedTrace=C,C.prototype.uncycle=function(){var t=this._length;if(!(t<2)){for(var e=[],n={},r=0,i=this;void 0!==i;++r)e.push(i),i=i._parent;for(r=(t=this._length=r)-1;r>=0;--r){var o=e[r].stack;void 0===n[o]&&(n[o]=r)}for(r=0;r0&&(e[s-1]._parent=void 0,e[s-1]._length=1),e[r]._parent=void 0,e[r]._length=1;var a=r>0?e[r-1]:this;s=0;--u)e[u]._length=c,c++;return}}}},C.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var e=w(t),n=e.message,r=[e.stack],i=this;void 0!==i;)r.push(g(i.stack.split("\n"))),i=i._parent;y(r),v(r),R.notEnumerableProp(t,"stack",b(n,r)),R.notEnumerableProp(t,"__stackCleaned__",!0)}};var Y=function(){var t=/^\s*at\s*/,e=function(t,e){return"string"==typeof t?t:void 0!==e.name&&void 0!==e.message?e.toString():S(e)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,L=t,D=e;var n=Error.captureStackTrace;return Z=function(t){return N.test(t)},function(t,e){Error.stackTraceLimit+=6,n(t,e),Error.stackTraceLimit-=6}}var r=new Error;if("string"==typeof r.stack&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0)return L=/@/,D=e,q=!0,function(t){t.stack=(new Error).stack};var i;try{throw new Error}catch(t){i="stack"in t}return"stack"in r||!i||"number"!=typeof Error.stackTraceLimit?(D=function(t,e){return"string"==typeof t?t:"object"!==(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e||void 0===e.name||void 0===e.message?S(e):e.toString()},null):(L=t,D=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(I=function(t){console.warn(t)},R.isNode&&t.stderr.isTTY?I=function(t,e){var n=e?"":"";console.warn(n+t+"\n")}:R.isNode||"string"!=typeof(new Error).stack||(I=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}));var tt={warnings:U,longStackTraces:!1,cancellation:!1,monitoring:!1};return H&&n.longStackTraces(),{longStackTraces:function(){return tt.longStackTraces},warnings:function(){return tt.warnings},cancellation:function(){return tt.cancellation},monitoring:function(){return tt.monitoring},propagateFromFunction:function(){return J},boundValueFunction:function(){return l},checkForgottenReturns:function(t,e,n,r,i){if(void 0===t&&null!==e&&V){if(void 0!==i&&i._returnedNonUndefined())return;n&&(n+=" ");var o="a promise was created in a "+n+"handler but was not returned from it";r._warn(o,!0,e)}},setBounds:function(t,e){if(E()){for(var n,r,i=t.stack.split("\n"),o=e.stack.split("\n"),s=-1,a=-1,c=0;c=a||(Z=function(t){if(N.test(t))return!0;var e=j(t);return!!(e&&e.fileName===n&&s<=e.line&&e.line<=a)})}},warn:m,deprecated:function(t,e){var n=t+" is deprecated and will be removed in a future version.";return e&&(n+=" Use "+e+" instead."),m(n)},CapturedTrace:C,fireDomEvent:K,fireGlobalEvent:X}}},{"./errors":12,"./util":36}],10:[function(t,e,n){e.exports=function(t){function e(){return this.value}function n(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(n){return n instanceof t&&n.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:n},void 0)},t.prototype.throw=t.prototype.thenThrow=function(t){return this._then(n,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:t},void 0);var e=arguments[1];return this.caught(t,function(){throw e})},t.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof t&&n.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:n},void 0);var r=arguments[1];r instanceof t&&r.suppressUnhandledRejections();return this.caught(n,function(){return r})}}},{}],11:[function(t,e,n){e.exports=function(t,e){function n(){return o(this)}function r(t,n){return i(t,n,e,e)}var i=t.reduce,o=t.all;t.prototype.each=function(t){return this.mapSeries(t)._then(n,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return i(this,t,e,e)},t.each=function(t,e){return r(t,e)._then(n,void 0,void 0,t,void 0)},t.mapSeries=r}},{}],12:[function(t,e,n){function r(t,e){function n(r){if(!(this instanceof n))return new n(r);h(this,"message","string"==typeof r?r:e),h(this,"name",t),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return f(n,Error),n}function i(t){if(!(this instanceof i))return new i(t);h(this,"name","OperationalError"),h(this,"message",t),this.cause=t,this.isOperational=!0,t instanceof Error?(h(this,"message",t.message),h(this,"stack",t.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}var o,s,a=t("./es5"),c=a.freeze,u=t("./util"),f=u.inherits,h=u.notEnumerableProp,l=r("Warning","warning"),d=r("CancellationError","cancellation error"),p=r("TimeoutError","timeout error"),m=r("AggregateError","aggregate error");try{o=TypeError,s=RangeError}catch(t){o=r("TypeError","type error"),s=r("RangeError","range error")}for(var b="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),v=0;v1?t.cancelPromise._reject(e):t.cancelPromise._cancel(),t.cancelPromise=null,!0)}function s(){return c.call(this,this.promise._target()._settledValue())}function a(t){if(!o(this,t))return h.e=t,h}function c(t){var r=this.promise,c=this.handler;if(!this.called){this.called=!0;var u=this.isFinallyHandler()?c.call(r._boundValue()):c.call(r._boundValue(),t);if(void 0!==u){r._setReturnedNonUndefined();var l=n(u,r);if(l instanceof e){if(null!=this.cancelPromise){if(l.isCancelled()){var d=new f("late cancellation observer");return r._attachExtraTrace(d),h.e=d,h}l.isPending()&&l._attachCancellationCallback(new i(this))}return l._then(s,a,void 0,this,void 0)}}}return r.isRejected()?(o(this),h.e=t,h):(o(this),t)}var u=t("./util"),f=e.CancellationError,h=u.errorObj;return r.prototype.isFinallyHandler=function(){return 0===this.type},i.prototype._resultCancelled=function(){o(this.finallyHandler)},e.prototype._passThrough=function(t,e,n,i){return"function"!=typeof t?this.then():this._then(n,i,void 0,new r(this,e,t),void 0)},e.prototype.lastly=e.prototype.finally=function(t){return this._passThrough(t,0,c,c)},e.prototype.tap=function(t){return this._passThrough(t,1,c)},r}},{"./util":36}],16:[function(t,e,n){e.exports=function(e,n,r,i,o,s){function a(t,n,r){for(var o=0;o0&&"function"==typeof arguments[e]){t=arguments[e]}var r=[].slice.call(arguments);t&&r.pop();var i=new n(r).promise();return void 0!==t?i.spread(t):i}}},{"./util":36}],18:[function(t,e,n){e.exports=function(e,n,r,i,o,s){function a(t,e,n,r){this.constructor$(t),this._promise._captureStackTrace();var i=u();this._callback=null===i?e:i.bind(e),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=n>=1?[]:d,this._init$(void 0,-2)}function c(t,e,n,i){if("function"!=typeof e)return r("expecting a function but got "+f.classString(e));var o="object"===(void 0===n?"undefined":_typeof(n))&&null!==n?n.concurrency:0;return o="number"==typeof o&&isFinite(o)&&o>=1?o:0,new a(t,e,o,i).promise()}var u=e._getDomain,f=t("./util"),h=f.tryCatch,l=f.errorObj,d=[];f.inherits(a,n),a.prototype._init=function(){},a.prototype._promiseFulfilled=function(t,n){var r=this._values,o=this.length(),a=this._preservedValues,c=this._limit;if(n<0){if(n=-1*n-1,r[n]=t,c>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(c>=1&&this._inFlight>=c)return r[n]=t,this._queue.push(n),!1;null!==a&&(a[n]=t);var u=this._promise,f=this._callback,d=u._boundValue();u._pushContext();var p=h(f).call(d,t,n,o),m=u._popContext();if(s.checkForgottenReturns(p,m,null!==a?"Promise.filter":"Promise.map",u),p===l)return this._reject(p.e),!0;var b=i(p,this._promise);if(b instanceof e){var v=(b=b._target())._bitField;if(0==(50397184&v))return c>=1&&this._inFlight++,r[n]=b,b._proxy(this,-1*(n+1)),!1;if(0==(33554432&v))return 0!=(16777216&v)?(this._reject(b._reason()),!0):(this._cancel(),!0);p=b._value()}r[n]=p}return++this._totalResolved>=o&&(null!==a?this._filter(r,a):this._resolve(r),!0)},a.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,n=this._values;t.length>0&&this._inFlight1){o.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],f=arguments[2];c=s.isArray(u)?a(t).apply(f,u):a(t).call(f,u)}else c=a(t)();var h=r._popContext();return o.checkForgottenReturns(c,h,"Promise.try",r),r._resolveFromSyncValue(c),r},e.prototype._resolveFromSyncValue=function(t){t===s.errorObj?this._rejectCallback(t.e,!1):this._resolveCallback(t,!0)}}},{"./util":36}],20:[function(t,e,n){function r(t){return t instanceof Error&&c.getPrototypeOf(t)===Error.prototype}function i(t){var e;if(r(t)){(e=new a(t)).name=t.name,e.message=t.message,e.stack=t.stack;for(var n=c.keys(t),i=0;i1){var n,r=new Array(e-1),i=0;for(n=0;n0&&"function"!=typeof t&&"function"!=typeof e){var n=".then() only accepts functions but was passed: "+d.classString(t);arguments.length>1&&(n+=", "+d.classString(e)),this._warn(n)}return this._then(t,e,void 0,void 0,void 0)},i.prototype.done=function(t,e){this._then(t,e,void 0,void 0,void 0)._setIsFinal()},i.prototype.spread=function(t){return"function"!=typeof t?h("expecting a function but got "+d.classString(t)):this.all()._then(t,void 0,void 0,w,void 0)},i.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},i.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new S(this).promise()},i.prototype.error=function(t){return this.caught(d.originatesFromRejection,t)},i.is=function(t){return t instanceof i},i.fromNode=i.fromCallback=function(t){var e=new i(_);e._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=P(t)(T(e,n));return r===I&&e._rejectCallback(r.e,!0),e._isFateSealed()||e._setAsyncGuaranteed(),e},i.all=function(t){return new S(t).promise()},i.cast=function(t){var e=k(t);return e instanceof i||((e=new i(_))._captureStackTrace(),e._setFulfilled(),e._rejectionHandler0=t),e},i.resolve=i.fulfilled=i.cast,i.reject=i.rejected=function(t){var e=new i(_);return e._captureStackTrace(),e._rejectCallback(t,!0),e},i.setScheduler=function(t){if("function"!=typeof t)throw new y("expecting a function but got "+d.classString(t));var e=b._schedule;return b._schedule=t,e},i.prototype._then=function(t,e,n,r,o){var s=void 0!==o,a=s?o:new i(_),u=this._target(),f=u._bitField;s||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0!=(50397184&f)?this._boundValue():u===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var h=c();if(0!=(50397184&f)){var l,d,p=u._settlePromiseCtx;0!=(33554432&f)?(d=u._rejectionHandler0,l=t):0!=(16777216&f)?(d=u._fulfillmentHandler0,l=e,u._unsetRejectionIsUnhandled()):(p=u._settlePromiseLateCancellationObserver,d=new g("late cancellation observer"),u._attachExtraTrace(d),l=e),b.invoke(p,u,{handler:null===h?l:"function"==typeof l&&h.bind(l),promise:a,receiver:r,value:d})}else u._addCallbacks(t,e,a,r,h);return a},i.prototype._length=function(){return 65535&this._bitField},i.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},i.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},i.prototype._setLength=function(t){this._bitField=-65536&this._bitField|65535&t},i.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},i.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},i.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},i.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},i.prototype._isFinal=function(){return(4194304&this._bitField)>0},i.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},i.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},i.prototype._setAsyncGuaranteed=function(){this._bitField=134217728|this._bitField},i.prototype._receiverAt=function(t){var e=0===t?this._receiver0:this[4*t-4+3];if(e!==l)return void 0===e&&this._isBound()?this._boundValue():e},i.prototype._promiseAt=function(t){return this[4*t-4+2]},i.prototype._fulfillmentHandlerAt=function(t){return this[4*t-4+0]},i.prototype._rejectionHandlerAt=function(t){return this[4*t-4+1]},i.prototype._boundValue=function(){},i.prototype._migrateCallback0=function(t){t._bitField;var e=t._fulfillmentHandler0,n=t._rejectionHandler0,r=t._promise0,i=t._receiverAt(0);void 0===i&&(i=l),this._addCallbacks(e,n,r,i,null)},i.prototype._migrateCallbackAt=function(t,e){var n=t._fulfillmentHandlerAt(e),r=t._rejectionHandlerAt(e),i=t._promiseAt(e),o=t._receiverAt(e);void 0===o&&(o=l),this._addCallbacks(n,r,i,o,null)},i.prototype._addCallbacks=function(t,e,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof t&&(this._fulfillmentHandler0=null===i?t:i.bind(t)),"function"==typeof e&&(this._rejectionHandler0=null===i?e:i.bind(e));else{var s=4*o-4;this[s+2]=n,this[s+3]=r,"function"==typeof t&&(this[s+0]=null===i?t:i.bind(t)),"function"==typeof e&&(this[s+1]=null===i?e:i.bind(e))}return this._setLength(o+1),o},i.prototype._proxy=function(t,e){this._addCallbacks(void 0,void 0,e,t,null)},i.prototype._resolveCallback=function(t,e){if(0==(117506048&this._bitField)){if(t===this)return this._rejectCallback(u(),!1);var n=k(t,this);if(!(n instanceof i))return this._fulfill(t);e&&this._propagateFrom(n,2);var r=n._target(),o=r._bitField;if(0==(50397184&o)){var s=this._length();s>0&&r._migrateCallback0(this);for(var a=1;a>>16)){if(t===this){var n=u();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=t,(65535&e)>0&&(0!=(134217728&e)?this._settlePromises():b.settlePromises(this))}},i.prototype._reject=function(t){var e=this._bitField;if(!((117506048&e)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=t,this._isFinal())return b.fatalError(t,d.isNode);(65535&e)>0?0!=(134217728&e)?this._settlePromises():b.settlePromises(this):this._ensurePossibleRejectionHandled()}},i.prototype._fulfillPromises=function(t,e){for(var n=1;n0){if(0!=(16842752&t)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,t),this._rejectPromises(e,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,t),this._fulfillPromises(e,r)}this._setLength(0)}this._clearCancellationData()},i.prototype._settledValue=function(){var t=this._bitField;return 0!=(33554432&t)?this._rejectionHandler0:0!=(16777216&t)?this._fulfillmentHandler0:void 0},i.defer=i.pending=function(){return j.deprecated("Promise.defer","new Promise"),{promise:new i(_),resolve:o,reject:s}},d.notEnumerableProp(i,"_makeSelfResolutionError",u),e("./method")(i,_,k,h,j),e("./bind")(i,_,k,j),e("./cancel")(i,S,h,j),e("./direct_resolve")(i),e("./synchronous_inspection")(i),e("./join")(i,S,k,_,j),i.Promise=i,e("./map.js")(i,S,h,k,_,j),e("./using.js")(i,h,k,E,_,j),e("./timers.js")(i,_,j),e("./generators.js")(i,h,_,k,n,j),e("./nodeify.js")(i),e("./call_get.js")(i),e("./props.js")(i,S,k,h),e("./race.js")(i,_,k,h),e("./reduce.js")(i,S,h,k,_,j),e("./settle.js")(i,S,j),e("./some.js")(i,S,h),e("./promisify.js")(i,_),e("./any.js")(i),e("./each.js")(i,_),e("./filter.js")(i,_),d.toFastProperties(i),d.toFastProperties(i.prototype),a({a:1}),a({b:2}),a({c:3}),a(1),a(function(){}),a(void 0),a(!1),a(new i(_)),j.setBounds(m.firstLineError,d.lastLineError),i}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(t,e,n){e.exports=function(e,n,r,i,o){function s(t){switch(t){case-2:return[];case-3:return{}}}function a(t){var r=this._promise=new e(n);t instanceof e&&r._propagateFrom(t,3),r._setOnCancel(this),this._values=t,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var c=t("./util");c.isArray;return c.inherits(a,o),a.prototype.length=function(){return this._length},a.prototype.promise=function(){return this._promise},a.prototype._init=function t(n,o){var a=r(this._values,this._promise);if(a instanceof e){var u=(a=a._target())._bitField;if(this._values=a,0==(50397184&u))return this._promise._setAsyncGuaranteed(),a._then(t,this._reject,void 0,this,o);if(0==(33554432&u))return 0!=(16777216&u)?this._reject(a._reason()):this._cancel();a=a._value()}if(null!==(a=c.asArray(a)))0!==a.length?this._iterate(a):-5===o?this._resolveEmptyArray():this._resolve(s(o));else{var f=i("expecting an array or an iterable object but got "+c.classString(a)).reason();this._promise._rejectCallback(f,!1)}},a.prototype._iterate=function(t){var n=this.getActualLength(t.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,s=null,a=0;a=this._length&&(this._resolve(this._values),!0)},a.prototype._promiseCancelled=function(){return this._cancel(),!0},a.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},a.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var n=0;n=this._length){var n;if(this._isMap)n=l(this._values);else{n={};for(var r=this.length(),i=0,o=this.length();i>1},e.prototype.props=function(){return s(this)},e.props=function(t){return s(t)}}},{"./es5":13,"./util":36}],26:[function(t,e,n){function r(t,e,n,r,i){for(var o=0;o=this._length&&(this._resolve(this._values),!0)},i.prototype._promiseFulfilled=function(t,e){var n=new o;return n._bitField=33554432,n._settledValueField=t,this._promiseResolved(e,n)},i.prototype._promiseRejected=function(t,e){var n=new o;return n._bitField=16777216,n._settledValueField=t,this._promiseResolved(e,n)},e.settle=function(t){return r.deprecated(".settle()",".reflect()"),new i(t).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(t,e,n){e.exports=function(e,n,r){function i(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function o(t,e){if((0|e)!==e||e<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new i(t),o=n.promise();return n.setHowMany(e),n.init(),o}var s=t("./util"),a=t("./errors").RangeError,c=t("./errors").AggregateError,u=s.isArray,f={};s.inherits(i,n),i.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var t=u(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},i.prototype.init=function(){this._initialized=!0,this._init()},i.prototype.setUnwrap=function(){this._unwrap=!0},i.prototype.howMany=function(){return this._howMany},i.prototype.setHowMany=function(t){this._howMany=t},i.prototype._promiseFulfilled=function(t){return this._addFulfilled(t),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},i.prototype._promiseRejected=function(t){return this._addRejected(t),this._checkOutcome()},i.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(f),this._checkOutcome())},i.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new c,e=this.length();e0?this._reject(t):this._cancel(),!0}return!1},i.prototype._fulfilled=function(){return this._totalResolved},i.prototype._rejected=function(){return this._values.length-this.length()},i.prototype._addRejected=function(t){this._values.push(t)},i.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t},i.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},i.prototype._getRangeError=function(t){var e="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";return new a(e)},i.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(t,e){return o(t,e)},e.prototype.some=function(t){return o(this,t)},e._SomePromiseArray=i}},{"./errors":12,"./util":36}],32:[function(t,e,n){e.exports=function(t){function e(t){void 0!==t?(t=t._target(),this._bitField=t._bitField,this._settledValueField=t._isFateSealed()?t._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}e.prototype._settledValue=function(){return this._settledValueField};var n=e.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=e.prototype.error=e.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=e.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},o=e.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},s=e.prototype.isPending=function(){return 0==(50397184&this._bitField)},a=e.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};e.prototype.isCancelled=t.prototype._isCancelled=function(){return 65536==(65536&this._bitField)},t.prototype.isCancelled=function(){return this._target()._isCancelled()},t.prototype.isPending=function(){return s.call(this._target())},t.prototype.isRejected=function(){return o.call(this._target())},t.prototype.isFulfilled=function(){return i.call(this._target())},t.prototype.isResolved=function(){return a.call(this._target())},t.prototype.value=function(){return n.call(this._target())},t.prototype.reason=function(){var t=this._target();return t._unsetRejectionIsUnhandled(),r.call(t)},t.prototype._value=function(){return this._settledValue()},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=e}},{}],33:[function(t,e,n){e.exports=function(e,n){function r(t){return t.then}function i(t){try{return r(t)}catch(t){return c.e=t,c}}function o(t){return f.call(t,"_promise0")}function s(t,r,i){var o=new e(n),s=o;i&&i._pushContext(),o._captureStackTrace(),i&&i._popContext();var u=!0,f=a.tryCatch(r).call(t,function(t){o&&(o._resolveCallback(t),o=null)},function(t){o&&(o._rejectCallback(t,u,!0),o=null)});return u=!1,o&&f===c&&(o._rejectCallback(f.e,!0,!0),o=null),s}var a=t("./util"),c=a.errorObj,u=a.isObject,f={}.hasOwnProperty;return function(t,r){if(u(t)){if(t instanceof e)return t;var a=i(t);if(a===c)return r&&r._pushContext(),f=e.reject(a.e),r&&r._popContext(),f;if("function"==typeof a){if(o(t)){var f=new e(n);return t._then(f._fulfill,f._reject,void 0,f,null),f}return s(t,a,r)}}return t}}},{"./util":36}],34:[function(t,e,n){e.exports=function(e,n,r){function i(t){this.handle=t}function o(t){return clearTimeout(this.handle),t}function s(t){throw clearTimeout(this.handle),t}var a=t("./util"),c=e.TimeoutError;i.prototype._resultCancelled=function(){clearTimeout(this.handle)};var u=function(t){return f(+this).thenReturn(t)},f=e.delay=function(t,o){var s,a;return void 0!==o?(s=e.resolve(o)._then(u,null,null,t,void 0),r.cancellation()&&o instanceof e&&s._setOnCancel(o)):(s=new e(n),a=setTimeout(function(){s._fulfill()},+t),r.cancellation()&&s._setOnCancel(new i(a))),s._setAsyncGuaranteed(),s};e.prototype.delay=function(t){return f(t,this)};var h=function(t,e,n){var r;r="string"!=typeof e?e instanceof Error?e:new c("operation timed out"):new c(e),a.markAsOriginatingFromRejection(r),t._attachExtraTrace(r),t._reject(r),null!=n&&n.cancel()};e.prototype.timeout=function(t,e){t=+t;var n,a,c=new i(setTimeout(function(){n.isPending()&&h(n,e,a)},t));return r.cancellation()?(a=this.then(),(n=a._then(o,s,void 0,c,void 0))._setOnCancel(c)):n=this._then(o,s,void 0,c,void 0),n}}},{"./util":36}],35:[function(t,e,n){e.exports=function(e,n,r,i,o,s){function a(t){setTimeout(function(){throw t},0)}function c(t){var e=r(t);return e!==t&&"function"==typeof t._isDisposable&&"function"==typeof t._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}function u(t,n){function i(){if(s>=u)return f._fulfill();var o=c(t[s++]);if(o instanceof e&&o._isDisposable()){try{o=r(o._getDisposer().tryDispose(n),t.promise)}catch(t){return a(t)}if(o instanceof e)return o._then(i,a,null,null,null)}i()}var s=0,u=t.length,f=new e(o);return i(),f}function f(t,e,n){this._data=t,this._promise=e,this._context=n}function h(t,e,n){this.constructor$(t,e,n)}function l(t){return f.isDisposer(t)?(this.resources[this.index]._setDisposable(t),t.promise()):t}function d(t){this.length=t,this.promise=null,this[t-1]=null}var p=t("./util"),m=t("./errors").TypeError,b=t("./util").inherits,v=p.errorObj,y=p.tryCatch;f.prototype.data=function(){return this._data},f.prototype.promise=function(){return this._promise},f.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():null},f.prototype.tryDispose=function(t){var e=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=null!==e?this.doDispose(e,t):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},f.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},b(h,f),h.prototype.doDispose=function(t,e){return this.data().call(t,t,e)},d.prototype._resultCancelled=function(){for(var t=this.length,n=0;n0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},e.prototype.disposer=function(t){if("function"==typeof t)return new h(t,this,i());throw new m}}},{"./errors":12,"./util":36}],36:[function(e,n,i){function o(){try{var t=A;return A=null,t.apply(this,arguments)}catch(t){return C.e=t,C}}function s(t){return A=t,o}function a(t){return null==t||!0===t||!1===t||"string"==typeof t||"number"==typeof t}function c(t){return"function"==typeof t||"object"===(void 0===t?"undefined":_typeof(t))&&null!==t}function u(t){return a(t)?new Error(y(t)):t}function f(t,e){var n,r=t.length,i=new Array(r+1);for(n=0;n1,r=e.length>0&&!(1===e.length&&"constructor"===e[0]),i=B.test(t+"")&&E.names(t).length>0;if(n||r||i)return!0}return!1}catch(t){return!1}}function m(t){function e(){}e.prototype=t;for(var n=8;n--;)new e;return t}function b(t){return F.test(t)}function v(t,e,n){for(var r=new Array(t),i=0;i10||e[0]>0}(),D.isNode&&D.toFastProperties(t);try{throw new Error}catch(t){D.lastLineError=t}n.exports=D},{"./es5":13}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:117}],182:[function(t,e,n){function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function i(){}var o="function"!=typeof Object.create&&"~";i.prototype._events=void 0,i.prototype.listeners=function(t,e){var n=o?o+t:t,r=this._events&&this._events[n];if(e)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,s=r.length,a=new Array(s);i1?(t[n[0]]=t[n[0]]||{},t[n[0]][n[1]]=e):t[n[0]]=e},i.prototype.buildCall=function(){var t=this;return function(){t.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway.");var e=new r({subscription:t.subscriptions[arguments[0]],requestManager:t.requestManager,type:t.type});return e.subscribe.apply(e,arguments)}},e.exports={subscriptions:i,subscription:r}},{"./subscription.js":192}],192:[function(t,e,n){function r(t){s.call(this),this.id=null,this.callback=null,this.arguments=null,this._reconnectIntervalId=null,this.options={subscription:t.subscription,type:t.type,requestManager:t.requestManager}}var i=t("underscore"),o=t("web3-core-helpers").errors,s=t("eventemitter3");(r.prototype=Object.create(s.prototype)).constructor=r,r.prototype._extractCallback=function(t){if(i.isFunction(t[t.length-1]))return t.pop()},r.prototype._validateArgs=function(t){var e=this.options.subscription;if(e||(e={}),e.params||(e.params=0),t.length!==e.params)throw o.InvalidNumberOfParams(t.length,e.params+1,t[0])},r.prototype._formatInput=function(t){var e=this.options.subscription;return e&&e.inputFormatter?e.inputFormatter.map(function(e,n){return e?e(t[n]):t[n]}):t},r.prototype._formatOutput=function(t){var e=this.options.subscription;return e&&e.outputFormatter&&t?e.outputFormatter(t):t},r.prototype._toPayload=function(t){var e=[];if(this.callback=this._extractCallback(t),this.subscriptionMethod||(this.subscriptionMethod=t.shift(),this.options.subscription.subscriptionName&&(this.subscriptionMethod=this.options.subscription.subscriptionName)),this.arguments||(this.arguments=this._formatInput(t),this._validateArgs(this.arguments),t=[]),e.push(this.subscriptionMethod),e=e.concat(this.arguments),t.length)throw new Error("Only a callback is allowed as parameter on an already instantiated subscription.");return{method:this.options.type+"_subscribe",params:e}},r.prototype.unsubscribe=function(t){this.options.requestManager.removeSubscription(this.id,t),this.id=null,this.removeAllListeners(),clearInterval(this._reconnectIntervalId)},r.prototype.subscribe=function(){var t=this,e=Array.prototype.slice.call(arguments),n=this._toPayload(e);if(!n)return this;if(!this.options.requestManager.provider.on){var r=new Error("The current provider doesn't support subscriptions"+this.options.requestManager.provider.constructor.name);return this.callback(r,null,this),this.emit("error",r),this}return this.id&&this.unsubscribe(),this.options.params=n.params[1],"logs"===n.params[0]&&i.isObject(n.params[1])&&n.params[1].hasOwnProperty("fromBlock")&&isFinite(n.params[1].fromBlock)&&this.options.requestManager.send({method:"eth_getLogs",params:[n.params[1]]},function(e,n){e?(t.callback(e,null,t),t.emit("error",e)):n.forEach(function(e){var n=t._formatOutput(e);t.callback(null,n,t),t.emit("data",n)})}),"object"===_typeof(n.params[1])&&delete n.params[1].fromBlock,this.options.requestManager.send(n,function(e,r){!e&&r?(t.id=r,t.options.requestManager.addSubscription(t.id,n.params[0],t.options.type,function(e,n){i.isArray(n)&&(n=n[0]);var r=t._formatOutput(n);if(e)t.options.requestManager.removeSubscription(t.id),t.options.requestManager.provider.once&&(t._reconnectIntervalId=setInterval(function(){t.options.requestManager.provider.reconnect()},500),t.options.requestManager.provider.once("connect",function(){clearInterval(t._reconnectIntervalId),t.subscribe(t.callback)})),t.emit("error",e);else{if(i.isFunction(t.options.subscription.subscriptionHandler))return t.options.subscription.subscriptionHandler.call(t,r);t.emit("data",r)}i.isFunction(t.callback)&&t.callback(e,r,t)})):i.isFunction(t.callback)&&(t.callback(e,null,t),t.emit("error",e))}),this},e.exports=r},{eventemitter3:189,underscore:190,"web3-core-helpers":178}],193:[function(t,e,n){var r=t("web3-core-helpers").formatters,i=t("web3-core-method"),o=t("web3-utils");e.exports=function(t){var e=function(e){var n;return e.property?(t[e.property]||(t[e.property]={}),n=t[e.property]):n=t,e.methods&&e.methods.forEach(function(e){e instanceof i||(e=new i(e)),e.attachToObject(n),e.setRequestManager(t._requestManager)}),t};return e.formatters=r,e.utils=o,e.Method=i,e}},{"web3-core-helpers":178,"web3-core-method":180,"web3-utils":304}],194:[function(t,e,n){var r=t("web3-requestmanager"),i=t("./extend.js");e.exports={packageInit:function(t,e){if(e=Array.prototype.slice.call(e),!t)throw new Error('You need to instantiate using the "new" keyword.');Object.defineProperty(t,"currentProvider",{get:function(){return t._provider},set:function(){return t._provider},enumerable:!0}),e[0]&&e[0]._requestManager?t._requestManager=new r.Manager(e[0].currentProvider):(t._requestManager=new r.Manager,t._requestManager.setProvider(e[0],e[1])),t.givenProvider=r.Manager.givenProvider,t.providers=r.Manager.providers,t._provider=t._requestManager.provider,t.setProvider=function(e,n){return t._requestManager.setProvider(e,n),t._provider=t._requestManager.provider,!0},t.BatchRequest=r.BatchManager.bind(null,t._requestManager),t.extend=i(t)},addProviders:function(t){t.givenProvider=r.Manager.givenProvider,t.providers=r.Manager.providers}}},{"./extend.js":193,"web3-requestmanager":187}],195:[function(t,e,n){!function(e,n){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}function s(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return r}function a(t,e,n,r){for(var i=0,o=Math.min(t.length,n),s=e;s=49?a-49+10:a>=17?a-17+10:a}return i}function c(t){for(var e=new Array(t.bitLength()),n=0;n>>i}return e}function u(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,c=s/67108864|0;n.words[0]=a;for(var u=1;u>>26,h=67108863&c,l=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=l;d++){var p=u-d|0;f+=(s=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&s}n.words[u]=0|h,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}function f(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function h(t,e,n){return(new l).mulp(t,e,n)}function l(t,e){this.x=t,this.y=e}function d(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){d.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function m(){d.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){d.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function v(){d.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function y(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function g(t){y.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"===(void 0===e?"undefined":_typeof(e))?e.exports=o:n.BN=o,o.BN=o,o.wordSize=26;var _;try{_=t("buffer").Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"===(void 0===t?"undefined":_typeof(t))&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"===(void 0===t?"undefined":_typeof(t)))return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,s=o%r,c=Math.min(o,o-s)+n,u=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],x=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){t=t||10,e=0|e||1;var n;if(16===t||"hex"===t){n="";for(var i=0,o=0,s=0;s>>24-i&16777215)||s!==this.length-1?w[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var u=x[t],f=k[t];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var l=h.modn(f).toString(t);n=(h=h.idivn(f)).isZero()?l+n:w[u-l.length]+l+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==_),this.toArrayLike(_,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var s,a,c="le"===e,u=new t(o),f=this.clone();if(c){for(a=0;!f.isZero();a++)s=f.andln(255),f.iushrn(8),u[a]=s;for(;a=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;var r,i;n>0?(r=this,i=t):(r=t,i=this);for(var o=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,d=0|s[1],p=8191&d,m=d>>>13,b=0|s[2],v=8191&b,y=b>>>13,g=0|s[3],_=8191&g,w=g>>>13,x=0|s[4],k=8191&x,S=x>>>13,M=0|s[5],E=8191&M,j=M>>>13,C=0|s[6],A=8191&C,T=C>>>13,I=0|s[7],P=8191&I,B=I>>>13,F=0|s[8],R=8191&F,O=F>>>13,N=0|s[9],L=8191&N,D=N>>>13,q=0|a[0],z=8191&q,U=q>>>13,H=0|a[1],V=8191&H,W=H>>>13,K=0|a[2],X=8191&K,$=K>>>13,G=0|a[3],J=8191&G,Z=G>>>13,Q=0|a[4],Y=8191&Q,tt=Q>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ct=8191&at,ut=at>>>13,ft=0|a[8],ht=8191&ft,lt=ft>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var bt=(u+(r=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,U))+Math.imul(l,z)|0))<<13)|0;u=((o=Math.imul(l,U))+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,U))+Math.imul(m,z)|0,o=Math.imul(m,U);var vt=(u+(r=r+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(l,V)|0))<<13)|0;u=((o=o+Math.imul(l,W)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,z),i=(i=Math.imul(v,U))+Math.imul(y,z)|0,o=Math.imul(y,U),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0;var yt=(u+(r=r+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,$)|0)+Math.imul(l,X)|0))<<13)|0;u=((o=o+Math.imul(l,$)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(_,z),i=(i=Math.imul(_,U))+Math.imul(w,z)|0,o=Math.imul(w,U),r=r+Math.imul(v,V)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,W)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,$)|0;var gt=(u+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,J)|0))<<13)|0;u=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(k,z),i=(i=Math.imul(k,U))+Math.imul(S,z)|0,o=Math.imul(S,U),r=r+Math.imul(_,V)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(w,V)|0,o=o+Math.imul(w,W)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,$)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,$)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Z)|0;var _t=(u+(r=r+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,Y)|0))<<13)|0;u=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,z),i=(i=Math.imul(E,U))+Math.imul(j,z)|0,o=Math.imul(j,U),r=r+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,W)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,$)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,$)|0,r=r+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,Z)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,tt)|0;var wt=(u+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(l,nt)|0))<<13)|0;u=((o=o+Math.imul(l,rt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,U))+Math.imul(T,z)|0,o=Math.imul(T,U),r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,W)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,$)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(v,Y)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var xt=(u+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,st)|0)+Math.imul(l,ot)|0))<<13)|0;u=((o=o+Math.imul(l,st)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,U))+Math.imul(B,z)|0,o=Math.imul(B,U),r=r+Math.imul(A,V)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,W)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,$)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(v,nt)|0,i=(i=i+Math.imul(v,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,st)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0;var kt=(u+(r=r+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,ut)|0)+Math.imul(l,ct)|0))<<13)|0;u=((o=o+Math.imul(l,ut)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(R,z),i=(i=Math.imul(R,U))+Math.imul(O,z)|0,o=Math.imul(O,U),r=r+Math.imul(P,V)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(B,V)|0,o=o+Math.imul(B,W)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,$)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Z)|0,r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(_,nt)|0,i=(i=i+Math.imul(_,rt)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(v,ot)|0,i=(i=i+Math.imul(v,st)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,r=r+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,ut)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,ut)|0;var St=(u+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;u=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(L,z),i=(i=Math.imul(L,U))+Math.imul(D,z)|0,o=Math.imul(D,U),r=r+Math.imul(R,V)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,$)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Z)|0,r=r+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,tt)|0,r=r+Math.imul(k,nt)|0,i=(i=i+Math.imul(k,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(_,ot)|0,i=(i=i+Math.imul(_,st)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,r=r+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,ut)|0)+Math.imul(y,ct)|0,o=o+Math.imul(y,ut)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0;var Mt=(u+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(l,pt)|0))<<13)|0;u=((o=o+Math.imul(l,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,V),i=(i=Math.imul(L,W))+Math.imul(D,V)|0,o=Math.imul(D,W),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,$)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(j,nt)|0,o=o+Math.imul(j,rt)|0,r=r+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,st)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,r=r+Math.imul(_,ct)|0,i=(i=i+Math.imul(_,ut)|0)+Math.imul(w,ct)|0,o=o+Math.imul(w,ut)|0,r=r+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var Et=(u+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;u=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,$))+Math.imul(D,X)|0,o=Math.imul(D,$),r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(B,Y)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(T,nt)|0,o=o+Math.imul(T,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,st)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,r=r+Math.imul(k,ct)|0,i=(i=i+Math.imul(k,ut)|0)+Math.imul(S,ct)|0,o=o+Math.imul(S,ut)|0,r=r+Math.imul(_,ht)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(w,ht)|0,o=o+Math.imul(w,lt)|0;var jt=(u+(r=r+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(y,pt)|0))<<13)|0;u=((o=o+Math.imul(y,mt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(L,J),i=(i=Math.imul(L,Z))+Math.imul(D,J)|0,o=Math.imul(D,Z),r=r+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,st)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,r=r+Math.imul(E,ct)|0,i=(i=i+Math.imul(E,ut)|0)+Math.imul(j,ct)|0,o=o+Math.imul(j,ut)|0,r=r+Math.imul(k,ht)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ct=(u+(r=r+Math.imul(_,pt)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(w,pt)|0))<<13)|0;u=((o=o+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(L,Y),i=(i=Math.imul(L,tt))+Math.imul(D,Y)|0,o=Math.imul(D,tt),r=r+Math.imul(R,nt)|0,i=(i=i+Math.imul(R,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,st)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,st)|0,r=r+Math.imul(A,ct)|0,i=(i=i+Math.imul(A,ut)|0)+Math.imul(T,ct)|0,o=o+Math.imul(T,ut)|0,r=r+Math.imul(E,ht)|0,i=(i=i+Math.imul(E,lt)|0)+Math.imul(j,ht)|0,o=o+Math.imul(j,lt)|0;var At=(u+(r=r+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,mt)|0)+Math.imul(S,pt)|0))<<13)|0;u=((o=o+Math.imul(S,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(L,nt),i=(i=Math.imul(L,rt))+Math.imul(D,nt)|0,o=Math.imul(D,rt),r=r+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,st)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,r=r+Math.imul(P,ct)|0,i=(i=i+Math.imul(P,ut)|0)+Math.imul(B,ct)|0,o=o+Math.imul(B,ut)|0,r=r+Math.imul(A,ht)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(T,ht)|0,o=o+Math.imul(T,lt)|0;var Tt=(u+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(j,pt)|0))<<13)|0;u=((o=o+Math.imul(j,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(L,ot),i=(i=Math.imul(L,st))+Math.imul(D,ot)|0,o=Math.imul(D,st),r=r+Math.imul(R,ct)|0,i=(i=i+Math.imul(R,ut)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,ut)|0,r=r+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(B,ht)|0,o=o+Math.imul(B,lt)|0;var It=(u+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(T,pt)|0))<<13)|0;u=((o=o+Math.imul(T,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(L,ct),i=(i=Math.imul(L,ut))+Math.imul(D,ct)|0,o=Math.imul(D,ut),r=r+Math.imul(R,ht)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(O,ht)|0,o=o+Math.imul(O,lt)|0;var Pt=(u+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(B,pt)|0))<<13)|0;u=((o=o+Math.imul(B,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(L,ht),i=(i=Math.imul(L,lt))+Math.imul(D,ht)|0,o=Math.imul(D,lt);var Bt=(u+(r=r+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(O,pt)|0))<<13)|0;u=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863;var Ft=(u+(r=Math.imul(L,pt))|0)+((8191&(i=(i=Math.imul(L,mt))+Math.imul(D,pt)|0))<<13)|0;return u=((o=Math.imul(D,mt))+(i>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,c[0]=bt,c[1]=vt,c[2]=yt,c[3]=gt,c[4]=_t,c[5]=wt,c[6]=xt,c[7]=kt,c[8]=St,c[9]=Mt,c[10]=Et,c[11]=jt,c[12]=Ct,c[13]=At,c[14]=Tt,c[15]=It,c[16]=Pt,c[17]=Bt,c[18]=Ft,0!==u&&(c[19]=u,n.length++),n};Math.imul||(S=u),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?S(this,t,e):n<63?u(this,t,e):n<1024?f(this,t,e):h(this,t,e)},l.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},l.prototype.permute=function(t,e,n,r,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=c(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0);var i;i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,u=0;u=0&&(0!==f||u>=i);u--){var h=0|this.words[u];this.words[u]=f<<26-o|h>>>o,f=h&a}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+n]=67108863&s}for(;i>26,this.words[i+n]=67108863&s;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,s=0|i.words[i.length-1];0!==(n=26-this._countBits(s))&&(i=i.ushln(n),r.iushln(n),s=0|i.words[i.length-1]);var a,c=r.length-i.length;if("mod"!==e){(a=new o(null)).length=c+1,a.words=new Array(a.length);for(var u=0;u=0;h--){var l=67108864*(0|r.words[i.length+h])+(0|r.words[i.length+h-1]);for(l=Math.min(l/s|0,67108863),r._ishlnsubmul(i,l,h);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(i,1,h),r.isZero()||(r.negative^=1);a&&(a.words[h]=l)}return a&&a.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},o.prototype.divmod=function(t,e,n){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var i,s,a;return 0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),a=new o(0),c=new o(1),u=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(f),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(f),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(a),s.isub(c)):(n.isub(e),a.isub(i),c.isub(s))}return{a:a,b:c,gcd:n.iushln(u)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),a=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0==(e.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(e.iushrn(c);c-- >0;)i.isOdd()&&i.iadd(a),i.iushrn(1);for(var f=0,h=1;0==(n.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(a),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s)):(n.isub(e),s.isub(i))}var l;return(l=0===e.cmpn(1)?i:s).cmpn(0)<0&&l.iadd(t),l},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=t<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;this.strip();var n;if(this.length>1)n=1;else{e&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];n=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new y(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var M={k256:null,p224:null,p192:null,p25519:null};d.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},d.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):n.strip(),n},d.prototype.split=function(t,e){t.iushrn(this.n,0,e)},d.prototype.imulK=function(t){return t.imul(this.k)},i(p,d),p.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},p.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(M[t])return M[t];var e;if("k256"===t)e=new p;else if("p224"===t)e=new m;else if("p192"===t)e=new b;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new v}return M[t]=e,e},y.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},y.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},y.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},y.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},y.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},y.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},y.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},y.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},y.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},y.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},y.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},y.prototype.isqr=function(t){return this.imul(t,t.clone())},y.prototype.sqr=function(t){return this.mul(t,t)},y.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),c=a.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;0!==d.cmp(a);){for(var m=d,b=0;0!==m.cmp(a);b++)m=m.redSqr();r(b=0;r--){for(var u=e.words[r],f=c-1;f>=0;f--){var h=u>>f&1;i!==n[0]&&(i=this.sqr(i)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===r&&0===f)&&(i=this.mul(i,n[s]),a=0,s=0)):a=0}c=26}return i},y.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},y.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new g(t)},i(g,y),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},g.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},g.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{}],196:[function(t,e,n){arguments[4][163][0].apply(n,arguments)},{dup:163}],197:[function(t,e,n){function r(){}var i=t("underscore"),o=t("web3-utils"),s=t("./types/formatters"),a=t("./types/address"),c=t("./types/bool"),u=t("./types/int"),f=t("./types/uint"),h=t("./types/dynamicbytes"),l=t("./types/string"),d=t("./types/bytes"),p=function(t,e){return t.isDynamicType(e)||t.isDynamicArray(e)},m=function(t){this._types=t};m.prototype._requireType=function(t){var e=this._types.filter(function(e){return e.isType(t)})[0];if(!e)throw Error("invalid solidity type!: "+t);return e},m.prototype._getOffsets=function(t,e){for(var n=e.map(function(e,n){return e.staticPartLength(t[n])}),r=1;r0;){var e=t.shift();if("function"==typeof e){var n=t.shift(),r=t.shift();e.call(n,r)}else e._settlePromises()}},i.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},i.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},i.prototype._reset=function(){this._isTickUsed=!1},n.exports=i,n.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(t,e,n){e.exports=function(t,e,n,r){var i=!1,o=function(t,e){this._reject(e)},s=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(o,o,null,this,t)},a=function(t,e){0==(50397184&this._bitField)&&this._resolveCallback(e.target)},c=function(t,e){e.promiseRejectionQueued||this._reject(t)};t.prototype.bind=function(o){i||(i=!0,t.prototype._propagateFrom=r.propagateFromFunction(),t.prototype._boundValue=r.boundValueFunction());var u=n(o),f=new t(e);f._propagateFrom(this,1);var h=this._target();if(f._setBoundTo(u),u instanceof t){var l={promiseRejectionQueued:!1,promise:f,target:h,bindingPromise:u};h._then(e,s,void 0,f,l),u._then(a,c,void 0,f,l),f._setOnCancel(u)}else f._resolveCallback(h);return f},t.prototype._setBoundTo=function(t){void 0!==t?(this._bitField=2097152|this._bitField,this._boundTo=t):this._bitField=-2097153&this._bitField},t.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},t.bind=function(e,n){return t.resolve(n).bind(e)}}},{}],4:[function(t,e,n){var r;"undefined"!=typeof Promise&&(r=Promise);var i=t("./promise")();i.noConflict=function(){try{Promise===i&&(Promise=r)}catch(t){}return i},e.exports=i},{"./promise":22}],5:[function(t,e,n){var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}e.exports=function(e){function n(t,n){var r;if(null!=t&&(r=t[n]),"function"!=typeof r){var i="Object "+a.classString(t)+" has no method '"+a.toString(n)+"'";throw new e.TypeError(i)}return r}function r(t){return n(t,this.pop()).apply(t,this)}function i(t){return t[this]}function o(t){var e=+this;return e<0&&(e=Math.max(0,e+t.length)),t[e]}var s,a=t("./util"),c=a.canEvaluate;a.isIdentifier;e.prototype.call=function(t){var e=[].slice.call(arguments,1);return e.push(t),this._then(r,void 0,void 0,e,void 0)},e.prototype.get=function(t){var e;if("number"==typeof t)e=o;else if(c){var n=s(t);e=null!==n?n:i}else e=i;return this._then(e,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,e,n){e.exports=function(e,n,r,i){var o=t("./util"),s=o.tryCatch,a=o.errorObj,c=e._async;e.prototype.break=e.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var t=this,e=t;t.isCancellable();){if(!t._cancelBy(e)){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}var n=t._cancellationParent;if(null==n||!n.isCancellable()){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}t._isFollowing()&&t._followee().cancel(),e=t,t=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(t){return t===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this.isCancellable()&&(this._setCancelled(),c.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(t,e){if(o.isArray(t))for(var n=0;n=0)return i[t]}var r=!1,i=[];return t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){},e.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,i.push(this._trace))},e.prototype._popContext=function(){if(void 0!==this._trace){var t=i.pop(),e=t._promiseCreated;return t._promiseCreated=null,e}return null},e.CapturedTrace=null,e.create=function(){if(r)return new e},e.deactivateLongStackTraces=function(){},e.activateLongStackTraces=function(){var i=t.prototype._pushContext,o=t.prototype._popContext,s=t._peekContext,a=t.prototype._peekContext,c=t.prototype._promiseCreated;e.deactivateLongStackTraces=function(){t.prototype._pushContext=i,t.prototype._popContext=o,t._peekContext=s,t.prototype._peekContext=a,t.prototype._promiseCreated=c,r=!1},r=!0,t.prototype._pushContext=e.prototype._pushContext,t.prototype._popContext=e.prototype._popContext,t._peekContext=t.prototype._peekContext=n,t.prototype._promiseCreated=function(){var t=this._peekContext();t&&null==t._promiseCreated&&(t._promiseCreated=this)}},e}},{}],9:[function(e,n,r){n.exports=function(n,r){function i(t,e){return{promise:e}}function o(){return!1}function s(t,e,n){var r=this;try{t(e,n,function(t){if("function"!=typeof t)throw new TypeError("onCancel must be a function, got: "+R.toString(t));r._attachCancellationCallback(t)})}catch(t){return t}}function a(t){if(!this.isCancellable())return this;var e=this._onCancel();void 0!==e?R.isArray(e)?e.push(t):this._setOnCancel([e,t]):this._setOnCancel(t)}function c(){return this._onCancelField}function u(t){this._onCancelField=t}function f(){this._cancellationParent=void 0,this._onCancelField=void 0}function h(t,e){if(0!=(1&e)){this._cancellationParent=t;var n=t._branchesRemainingToCancel;void 0===n&&(n=0),t._branchesRemainingToCancel=n+1}0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function l(){var t=this._boundTo;return void 0!==t&&t instanceof n?t.isFulfilled()?t.value():void 0:t}function d(){this._trace=new C(this._peekContext())}function p(t,e){if(O(t)){var n=this._trace;if(void 0!==n&&e&&(n=n._parent),void 0!==n)n.attachExtraTrace(t);else if(!t.__stackCleaned__){var r=w(t);R.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),R.notEnumerableProp(t,"__stackCleaned__",!0)}}}function m(t,e,r){if(tt.warnings){var i,o=new F(t);if(e)r._attachExtraTrace(o);else if(tt.longStackTraces&&(i=n._peekContext()))i.attachExtraTrace(o);else{var s=w(o);o.stack=s.message+"\n"+s.stack.join("\n")}G("warning",o)||x(o,"",!0)}}function b(t,e){for(var n=0;n=0;--a)if(r[a]===o){s=a;break}for(a=s;a>=0;--a){var c=r[a];if(e[i]!==c)break;e.pop(),i--}e=r}}function g(t){for(var e=[],n=0;n0&&(e=e.slice(n)),e}function w(t){var e=t.stack,n=t.toString();return e="string"==typeof e&&e.length>0?_(t):[" (No stack trace)"],{message:n,stack:g(e)}}function x(t,e,n){if("undefined"!=typeof console){var r;if(R.isObject(t)){var i=t.stack;r=e+D(i,t)}else r=e+String(t);"function"==typeof I?I(r,n):"function"!=typeof console.log&&"object"!==_typeof(console.log)||console.log(r)}}function k(t,e,n,r){var i=!1;try{"function"==typeof e&&(i=!0,"rejectionHandled"===t?e(r):e(n,r))}catch(t){B.throwLater(t)}"unhandledRejection"===t?G(t,n,r)||i||x(n,"Unhandled rejection "):G(t,r)}function S(t){var e;if("function"==typeof t)e="[function "+(t.name||"anonymous")+"]";else{if(e=t&&"function"==typeof t.toString?t.toString():R.toString(t),/\[object [a-zA-Z0-9$_]+\]/.test(e))try{e=JSON.stringify(t)}catch(t){}0===e.length&&(e="(empty array)")}return"(<"+M(e)+">, no stack trace)"}function M(t){return t.length<41?t:t.substr(0,38)+"..."}function E(){return"function"==typeof Y}function j(t){var e=t.match(Q);if(e)return{fileName:e[1],line:parseInt(e[2],10)}}function C(t){this._parent=t,this._promisesCreated=0;var e=this._length=1+(void 0===t?0:t._length);Y(this,C),e>32&&this.uncycle()}var A,T,I,P=n._getDomain,B=n._async,F=e("./errors").Warning,R=e("./util"),O=R.canAttachTrace,N=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,L=null,D=null,q=!1,z=!(0==R.env("BLUEBIRD_DEBUG")),U=!(0==R.env("BLUEBIRD_WARNINGS")||!z&&!R.env("BLUEBIRD_WARNINGS")),H=!(0==R.env("BLUEBIRD_LONG_STACK_TRACES")||!z&&!R.env("BLUEBIRD_LONG_STACK_TRACES")),V=0!=R.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(U||!!R.env("BLUEBIRD_W_FORGOTTEN_RETURN"));n.prototype.suppressUnhandledRejections=function(){var t=this._target();t._bitField=-1048577&t._bitField|524288},n.prototype._ensurePossibleRejectionHandled=function(){0==(524288&this._bitField)&&(this._setRejectionIsUnhandled(),B.invokeLater(this._notifyUnhandledRejection,this,void 0))},n.prototype._notifyUnhandledRejectionIsHandled=function(){k("rejectionHandled",A,void 0,this)},n.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},n.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},n.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var t=this._settledValue();this._setUnhandledRejectionIsNotified(),k("unhandledRejection",T,t,this)}},n.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},n.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},n.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},n.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},n.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},n.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},n.prototype._warn=function(t,e,n){return m(t,e,n||this)},n.onPossiblyUnhandledRejection=function(t){var e=P();T="function"==typeof t?null===e?t:e.bind(t):void 0},n.onUnhandledRejectionHandled=function(t){var e=P();A="function"==typeof t?null===e?t:e.bind(t):void 0};var W=function(){};n.longStackTraces=function(){if(B.haveItemsQueued()&&!tt.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!tt.longStackTraces&&E()){var t=n.prototype._captureStackTrace,e=n.prototype._attachExtraTrace;tt.longStackTraces=!0,W=function(){if(B.haveItemsQueued()&&!tt.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");n.prototype._captureStackTrace=t,n.prototype._attachExtraTrace=e,r.deactivateLongStackTraces(),B.enableTrampoline(),tt.longStackTraces=!1},n.prototype._captureStackTrace=d,n.prototype._attachExtraTrace=p,r.activateLongStackTraces(),B.disableTrampolineIfNecessary()}},n.hasLongStackTraces=function(){return tt.longStackTraces&&E()};var K=function(){try{var t=document.createEvent("CustomEvent");return t.initCustomEvent("testingtheevent",!1,!0,{}),R.global.dispatchEvent(t),function(t,e){var n=document.createEvent("CustomEvent");return n.initCustomEvent(t.toLowerCase(),!1,!0,e),!R.global.dispatchEvent(n)}}catch(t){}return function(){return!1}}(),X=R.isNode?function(){return t.emit.apply(t,arguments)}:R.global?function(t){var e="on"+t.toLowerCase(),n=R.global[e];return!!n&&(n.apply(R.global,[].slice.call(arguments,1)),!0)}:function(){return!1},$={promiseCreated:i,promiseFulfilled:i,promiseRejected:i,promiseResolved:i,promiseCancelled:i,promiseChained:function(t,e,n){return{promise:e,child:n}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,n){return{reason:e,promise:n}},rejectionHandled:i},G=function(t){var e=!1;try{e=X.apply(null,arguments)}catch(t){B.throwLater(t),e=!0}var n=!1;try{n=K(t,$[t].apply(null,arguments))}catch(t){B.throwLater(t),n=!0}return n||e};n.config=function(t){if("longStackTraces"in(t=Object(t))&&(t.longStackTraces?n.longStackTraces():!t.longStackTraces&&n.hasLongStackTraces()&&W()),"warnings"in t){var e=t.warnings;tt.warnings=!!e,V=tt.warnings,R.isObject(e)&&"wForgottenReturn"in e&&(V=!!e.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!tt.cancellation){if(B.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");n.prototype._clearCancellationData=f,n.prototype._propagateFrom=h,n.prototype._onCancel=c,n.prototype._setOnCancel=u,n.prototype._attachCancellationCallback=a,n.prototype._execute=s,J=h,tt.cancellation=!0}"monitoring"in t&&(t.monitoring&&!tt.monitoring?(tt.monitoring=!0,n.prototype._fireEvent=G):!t.monitoring&&tt.monitoring&&(tt.monitoring=!1,n.prototype._fireEvent=o))},n.prototype._fireEvent=o,n.prototype._execute=function(t,e,n){try{t(e,n)}catch(t){return t}},n.prototype._onCancel=function(){},n.prototype._setOnCancel=function(t){},n.prototype._attachCancellationCallback=function(t){},n.prototype._captureStackTrace=function(){},n.prototype._attachExtraTrace=function(){},n.prototype._clearCancellationData=function(){},n.prototype._propagateFrom=function(t,e){};var J=function(t,e){0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)},Z=function(){return!1},Q=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;R.inherits(C,Error),r.CapturedTrace=C,C.prototype.uncycle=function(){var t=this._length;if(!(t<2)){for(var e=[],n={},r=0,i=this;void 0!==i;++r)e.push(i),i=i._parent;for(r=(t=this._length=r)-1;r>=0;--r){var o=e[r].stack;void 0===n[o]&&(n[o]=r)}for(r=0;r0&&(e[s-1]._parent=void 0,e[s-1]._length=1),e[r]._parent=void 0,e[r]._length=1;var a=r>0?e[r-1]:this;s=0;--u)e[u]._length=c,c++;return}}}},C.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var e=w(t),n=e.message,r=[e.stack],i=this;void 0!==i;)r.push(g(i.stack.split("\n"))),i=i._parent;y(r),v(r),R.notEnumerableProp(t,"stack",b(n,r)),R.notEnumerableProp(t,"__stackCleaned__",!0)}};var Y=function(){var t=/^\s*at\s*/,e=function(t,e){return"string"==typeof t?t:void 0!==e.name&&void 0!==e.message?e.toString():S(e)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,L=t,D=e;var n=Error.captureStackTrace;return Z=function(t){return N.test(t)},function(t,e){Error.stackTraceLimit+=6,n(t,e),Error.stackTraceLimit-=6}}var r=new Error;if("string"==typeof r.stack&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0)return L=/@/,D=e,q=!0,function(t){t.stack=(new Error).stack};var i;try{throw new Error}catch(t){i="stack"in t}return"stack"in r||!i||"number"!=typeof Error.stackTraceLimit?(D=function(t,e){return"string"==typeof t?t:"object"!==(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e||void 0===e.name||void 0===e.message?S(e):e.toString()},null):(L=t,D=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(I=function(t){console.warn(t)},R.isNode&&t.stderr.isTTY?I=function(t,e){var n=e?"":"";console.warn(n+t+"\n")}:R.isNode||"string"!=typeof(new Error).stack||(I=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}));var tt={warnings:U,longStackTraces:!1,cancellation:!1,monitoring:!1};return H&&n.longStackTraces(),{longStackTraces:function(){return tt.longStackTraces},warnings:function(){return tt.warnings},cancellation:function(){return tt.cancellation},monitoring:function(){return tt.monitoring},propagateFromFunction:function(){return J},boundValueFunction:function(){return l},checkForgottenReturns:function(t,e,n,r,i){if(void 0===t&&null!==e&&V){if(void 0!==i&&i._returnedNonUndefined())return;n&&(n+=" ");var o="a promise was created in a "+n+"handler but was not returned from it";r._warn(o,!0,e)}},setBounds:function(t,e){if(E()){for(var n,r,i=t.stack.split("\n"),o=e.stack.split("\n"),s=-1,a=-1,c=0;c=a||(Z=function(t){if(N.test(t))return!0;var e=j(t);return!!(e&&e.fileName===n&&s<=e.line&&e.line<=a)})}},warn:m,deprecated:function(t,e){var n=t+" is deprecated and will be removed in a future version.";return e&&(n+=" Use "+e+" instead."),m(n)},CapturedTrace:C,fireDomEvent:K,fireGlobalEvent:X}}},{"./errors":12,"./util":36}],10:[function(t,e,n){e.exports=function(t){function e(){return this.value}function n(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(n){return n instanceof t&&n.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:n},void 0)},t.prototype.throw=t.prototype.thenThrow=function(t){return this._then(n,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:t},void 0);var e=arguments[1];return this.caught(t,function(){throw e})},t.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof t&&n.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:n},void 0);var r=arguments[1];r instanceof t&&r.suppressUnhandledRejections();return this.caught(n,function(){return r})}}},{}],11:[function(t,e,n){e.exports=function(t,e){function n(){return o(this)}function r(t,n){return i(t,n,e,e)}var i=t.reduce,o=t.all;t.prototype.each=function(t){return this.mapSeries(t)._then(n,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return i(this,t,e,e)},t.each=function(t,e){return r(t,e)._then(n,void 0,void 0,t,void 0)},t.mapSeries=r}},{}],12:[function(t,e,n){function r(t,e){function n(r){if(!(this instanceof n))return new n(r);h(this,"message","string"==typeof r?r:e),h(this,"name",t),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return f(n,Error),n}function i(t){if(!(this instanceof i))return new i(t);h(this,"name","OperationalError"),h(this,"message",t),this.cause=t,this.isOperational=!0,t instanceof Error?(h(this,"message",t.message),h(this,"stack",t.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}var o,s,a=t("./es5"),c=a.freeze,u=t("./util"),f=u.inherits,h=u.notEnumerableProp,l=r("Warning","warning"),d=r("CancellationError","cancellation error"),p=r("TimeoutError","timeout error"),m=r("AggregateError","aggregate error");try{o=TypeError,s=RangeError}catch(t){o=r("TypeError","type error"),s=r("RangeError","range error")}for(var b="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),v=0;v1?t.cancelPromise._reject(e):t.cancelPromise._cancel(),t.cancelPromise=null,!0)}function s(){return c.call(this,this.promise._target()._settledValue())}function a(t){if(!o(this,t))return h.e=t,h}function c(t){var r=this.promise,c=this.handler;if(!this.called){this.called=!0;var u=this.isFinallyHandler()?c.call(r._boundValue()):c.call(r._boundValue(),t);if(void 0!==u){r._setReturnedNonUndefined();var l=n(u,r);if(l instanceof e){if(null!=this.cancelPromise){if(l.isCancelled()){var d=new f("late cancellation observer");return r._attachExtraTrace(d),h.e=d,h}l.isPending()&&l._attachCancellationCallback(new i(this))}return l._then(s,a,void 0,this,void 0)}}}return r.isRejected()?(o(this),h.e=t,h):(o(this),t)}var u=t("./util"),f=e.CancellationError,h=u.errorObj;return r.prototype.isFinallyHandler=function(){return 0===this.type},i.prototype._resultCancelled=function(){o(this.finallyHandler)},e.prototype._passThrough=function(t,e,n,i){return"function"!=typeof t?this.then():this._then(n,i,void 0,new r(this,e,t),void 0)},e.prototype.lastly=e.prototype.finally=function(t){return this._passThrough(t,0,c,c)},e.prototype.tap=function(t){return this._passThrough(t,1,c)},r}},{"./util":36}],16:[function(t,e,n){e.exports=function(e,n,r,i,o,s){function a(t,n,r){for(var o=0;o0&&"function"==typeof arguments[e]){t=arguments[e]}var r=[].slice.call(arguments);t&&r.pop();var i=new n(r).promise();return void 0!==t?i.spread(t):i}}},{"./util":36}],18:[function(t,e,n){e.exports=function(e,n,r,i,o,s){function a(t,e,n,r){this.constructor$(t),this._promise._captureStackTrace();var i=u();this._callback=null===i?e:i.bind(e),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=n>=1?[]:d,this._init$(void 0,-2)}function c(t,e,n,i){if("function"!=typeof e)return r("expecting a function but got "+f.classString(e));var o="object"===(void 0===n?"undefined":_typeof(n))&&null!==n?n.concurrency:0;return o="number"==typeof o&&isFinite(o)&&o>=1?o:0,new a(t,e,o,i).promise()}var u=e._getDomain,f=t("./util"),h=f.tryCatch,l=f.errorObj,d=[];f.inherits(a,n),a.prototype._init=function(){},a.prototype._promiseFulfilled=function(t,n){var r=this._values,o=this.length(),a=this._preservedValues,c=this._limit;if(n<0){if(n=-1*n-1,r[n]=t,c>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(c>=1&&this._inFlight>=c)return r[n]=t,this._queue.push(n),!1;null!==a&&(a[n]=t);var u=this._promise,f=this._callback,d=u._boundValue();u._pushContext();var p=h(f).call(d,t,n,o),m=u._popContext();if(s.checkForgottenReturns(p,m,null!==a?"Promise.filter":"Promise.map",u),p===l)return this._reject(p.e),!0;var b=i(p,this._promise);if(b instanceof e){var v=(b=b._target())._bitField;if(0==(50397184&v))return c>=1&&this._inFlight++,r[n]=b,b._proxy(this,-1*(n+1)),!1;if(0==(33554432&v))return 0!=(16777216&v)?(this._reject(b._reason()),!0):(this._cancel(),!0);p=b._value()}r[n]=p}return++this._totalResolved>=o&&(null!==a?this._filter(r,a):this._resolve(r),!0)},a.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,n=this._values;t.length>0&&this._inFlight1){o.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],f=arguments[2];c=s.isArray(u)?a(t).apply(f,u):a(t).call(f,u)}else c=a(t)();var h=r._popContext();return o.checkForgottenReturns(c,h,"Promise.try",r),r._resolveFromSyncValue(c),r},e.prototype._resolveFromSyncValue=function(t){t===s.errorObj?this._rejectCallback(t.e,!1):this._resolveCallback(t,!0)}}},{"./util":36}],20:[function(t,e,n){function r(t){return t instanceof Error&&c.getPrototypeOf(t)===Error.prototype}function i(t){var e;if(r(t)){(e=new a(t)).name=t.name,e.message=t.message,e.stack=t.stack;for(var n=c.keys(t),i=0;i1){var n,r=new Array(e-1),i=0;for(n=0;n0&&"function"!=typeof t&&"function"!=typeof e){var n=".then() only accepts functions but was passed: "+d.classString(t);arguments.length>1&&(n+=", "+d.classString(e)),this._warn(n)}return this._then(t,e,void 0,void 0,void 0)},i.prototype.done=function(t,e){this._then(t,e,void 0,void 0,void 0)._setIsFinal()},i.prototype.spread=function(t){return"function"!=typeof t?h("expecting a function but got "+d.classString(t)):this.all()._then(t,void 0,void 0,w,void 0)},i.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},i.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new S(this).promise()},i.prototype.error=function(t){return this.caught(d.originatesFromRejection,t)},i.is=function(t){return t instanceof i},i.fromNode=i.fromCallback=function(t){var e=new i(_);e._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=P(t)(T(e,n));return r===I&&e._rejectCallback(r.e,!0),e._isFateSealed()||e._setAsyncGuaranteed(),e},i.all=function(t){return new S(t).promise()},i.cast=function(t){var e=k(t);return e instanceof i||((e=new i(_))._captureStackTrace(),e._setFulfilled(),e._rejectionHandler0=t),e},i.resolve=i.fulfilled=i.cast,i.reject=i.rejected=function(t){var e=new i(_);return e._captureStackTrace(),e._rejectCallback(t,!0),e},i.setScheduler=function(t){if("function"!=typeof t)throw new y("expecting a function but got "+d.classString(t));var e=b._schedule;return b._schedule=t,e},i.prototype._then=function(t,e,n,r,o){var s=void 0!==o,a=s?o:new i(_),u=this._target(),f=u._bitField;s||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0!=(50397184&f)?this._boundValue():u===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var h=c();if(0!=(50397184&f)){var l,d,p=u._settlePromiseCtx;0!=(33554432&f)?(d=u._rejectionHandler0,l=t):0!=(16777216&f)?(d=u._fulfillmentHandler0,l=e,u._unsetRejectionIsUnhandled()):(p=u._settlePromiseLateCancellationObserver,d=new g("late cancellation observer"),u._attachExtraTrace(d),l=e),b.invoke(p,u,{handler:null===h?l:"function"==typeof l&&h.bind(l),promise:a,receiver:r,value:d})}else u._addCallbacks(t,e,a,r,h);return a},i.prototype._length=function(){return 65535&this._bitField},i.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},i.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},i.prototype._setLength=function(t){this._bitField=-65536&this._bitField|65535&t},i.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},i.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},i.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},i.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},i.prototype._isFinal=function(){return(4194304&this._bitField)>0},i.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},i.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},i.prototype._setAsyncGuaranteed=function(){this._bitField=134217728|this._bitField},i.prototype._receiverAt=function(t){var e=0===t?this._receiver0:this[4*t-4+3];if(e!==l)return void 0===e&&this._isBound()?this._boundValue():e},i.prototype._promiseAt=function(t){return this[4*t-4+2]},i.prototype._fulfillmentHandlerAt=function(t){return this[4*t-4+0]},i.prototype._rejectionHandlerAt=function(t){return this[4*t-4+1]},i.prototype._boundValue=function(){},i.prototype._migrateCallback0=function(t){t._bitField;var e=t._fulfillmentHandler0,n=t._rejectionHandler0,r=t._promise0,i=t._receiverAt(0);void 0===i&&(i=l),this._addCallbacks(e,n,r,i,null)},i.prototype._migrateCallbackAt=function(t,e){var n=t._fulfillmentHandlerAt(e),r=t._rejectionHandlerAt(e),i=t._promiseAt(e),o=t._receiverAt(e);void 0===o&&(o=l),this._addCallbacks(n,r,i,o,null)},i.prototype._addCallbacks=function(t,e,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof t&&(this._fulfillmentHandler0=null===i?t:i.bind(t)),"function"==typeof e&&(this._rejectionHandler0=null===i?e:i.bind(e));else{var s=4*o-4;this[s+2]=n,this[s+3]=r,"function"==typeof t&&(this[s+0]=null===i?t:i.bind(t)),"function"==typeof e&&(this[s+1]=null===i?e:i.bind(e))}return this._setLength(o+1),o},i.prototype._proxy=function(t,e){this._addCallbacks(void 0,void 0,e,t,null)},i.prototype._resolveCallback=function(t,e){if(0==(117506048&this._bitField)){if(t===this)return this._rejectCallback(u(),!1);var n=k(t,this);if(!(n instanceof i))return this._fulfill(t);e&&this._propagateFrom(n,2);var r=n._target(),o=r._bitField;if(0==(50397184&o)){var s=this._length();s>0&&r._migrateCallback0(this);for(var a=1;a>>16)){if(t===this){var n=u();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=t,(65535&e)>0&&(0!=(134217728&e)?this._settlePromises():b.settlePromises(this))}},i.prototype._reject=function(t){var e=this._bitField;if(!((117506048&e)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=t,this._isFinal())return b.fatalError(t,d.isNode);(65535&e)>0?0!=(134217728&e)?this._settlePromises():b.settlePromises(this):this._ensurePossibleRejectionHandled()}},i.prototype._fulfillPromises=function(t,e){for(var n=1;n0){if(0!=(16842752&t)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,t),this._rejectPromises(e,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,t),this._fulfillPromises(e,r)}this._setLength(0)}this._clearCancellationData()},i.prototype._settledValue=function(){var t=this._bitField;return 0!=(33554432&t)?this._rejectionHandler0:0!=(16777216&t)?this._fulfillmentHandler0:void 0},i.defer=i.pending=function(){return j.deprecated("Promise.defer","new Promise"),{promise:new i(_),resolve:o,reject:s}},d.notEnumerableProp(i,"_makeSelfResolutionError",u),e("./method")(i,_,k,h,j),e("./bind")(i,_,k,j),e("./cancel")(i,S,h,j),e("./direct_resolve")(i),e("./synchronous_inspection")(i),e("./join")(i,S,k,_,j),i.Promise=i,e("./map.js")(i,S,h,k,_,j),e("./using.js")(i,h,k,E,_,j),e("./timers.js")(i,_,j),e("./generators.js")(i,h,_,k,n,j),e("./nodeify.js")(i),e("./call_get.js")(i),e("./props.js")(i,S,k,h),e("./race.js")(i,_,k,h),e("./reduce.js")(i,S,h,k,_,j),e("./settle.js")(i,S,j),e("./some.js")(i,S,h),e("./promisify.js")(i,_),e("./any.js")(i),e("./each.js")(i,_),e("./filter.js")(i,_),d.toFastProperties(i),d.toFastProperties(i.prototype),a({a:1}),a({b:2}),a({c:3}),a(1),a(function(){}),a(void 0),a(!1),a(new i(_)),j.setBounds(m.firstLineError,d.lastLineError),i}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(t,e,n){e.exports=function(e,n,r,i,o){function s(t){switch(t){case-2:return[];case-3:return{}}}function a(t){var r=this._promise=new e(n);t instanceof e&&r._propagateFrom(t,3),r._setOnCancel(this),this._values=t,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var c=t("./util");c.isArray;return c.inherits(a,o),a.prototype.length=function(){return this._length},a.prototype.promise=function(){return this._promise},a.prototype._init=function t(n,o){var a=r(this._values,this._promise);if(a instanceof e){var u=(a=a._target())._bitField;if(this._values=a,0==(50397184&u))return this._promise._setAsyncGuaranteed(),a._then(t,this._reject,void 0,this,o);if(0==(33554432&u))return 0!=(16777216&u)?this._reject(a._reason()):this._cancel();a=a._value()}if(null!==(a=c.asArray(a)))0!==a.length?this._iterate(a):-5===o?this._resolveEmptyArray():this._resolve(s(o));else{var f=i("expecting an array or an iterable object but got "+c.classString(a)).reason();this._promise._rejectCallback(f,!1)}},a.prototype._iterate=function(t){var n=this.getActualLength(t.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,s=null,a=0;a=this._length&&(this._resolve(this._values),!0)},a.prototype._promiseCancelled=function(){return this._cancel(),!0},a.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},a.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var n=0;n=this._length){var n;if(this._isMap)n=l(this._values);else{n={};for(var r=this.length(),i=0,o=this.length();i>1},e.prototype.props=function(){return s(this)},e.props=function(t){return s(t)}}},{"./es5":13,"./util":36}],26:[function(t,e,n){function r(t,e,n,r,i){for(var o=0;o=this._length&&(this._resolve(this._values),!0)},i.prototype._promiseFulfilled=function(t,e){var n=new o;return n._bitField=33554432,n._settledValueField=t,this._promiseResolved(e,n)},i.prototype._promiseRejected=function(t,e){var n=new o;return n._bitField=16777216,n._settledValueField=t,this._promiseResolved(e,n)},e.settle=function(t){return r.deprecated(".settle()",".reflect()"),new i(t).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(t,e,n){e.exports=function(e,n,r){function i(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function o(t,e){if((0|e)!==e||e<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new i(t),o=n.promise();return n.setHowMany(e),n.init(),o}var s=t("./util"),a=t("./errors").RangeError,c=t("./errors").AggregateError,u=s.isArray,f={};s.inherits(i,n),i.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var t=u(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},i.prototype.init=function(){this._initialized=!0,this._init()},i.prototype.setUnwrap=function(){this._unwrap=!0},i.prototype.howMany=function(){return this._howMany},i.prototype.setHowMany=function(t){this._howMany=t},i.prototype._promiseFulfilled=function(t){return this._addFulfilled(t),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},i.prototype._promiseRejected=function(t){return this._addRejected(t),this._checkOutcome()},i.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(f),this._checkOutcome())},i.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new c,e=this.length();e0?this._reject(t):this._cancel(),!0}return!1},i.prototype._fulfilled=function(){return this._totalResolved},i.prototype._rejected=function(){return this._values.length-this.length()},i.prototype._addRejected=function(t){this._values.push(t)},i.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t},i.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},i.prototype._getRangeError=function(t){var e="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";return new a(e)},i.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(t,e){return o(t,e)},e.prototype.some=function(t){return o(this,t)},e._SomePromiseArray=i}},{"./errors":12,"./util":36}],32:[function(t,e,n){e.exports=function(t){function e(t){void 0!==t?(t=t._target(),this._bitField=t._bitField,this._settledValueField=t._isFateSealed()?t._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}e.prototype._settledValue=function(){return this._settledValueField};var n=e.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=e.prototype.error=e.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=e.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},o=e.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},s=e.prototype.isPending=function(){return 0==(50397184&this._bitField)},a=e.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};e.prototype.isCancelled=t.prototype._isCancelled=function(){return 65536==(65536&this._bitField)},t.prototype.isCancelled=function(){return this._target()._isCancelled()},t.prototype.isPending=function(){return s.call(this._target())},t.prototype.isRejected=function(){return o.call(this._target())},t.prototype.isFulfilled=function(){return i.call(this._target())},t.prototype.isResolved=function(){return a.call(this._target())},t.prototype.value=function(){return n.call(this._target())},t.prototype.reason=function(){var t=this._target();return t._unsetRejectionIsUnhandled(),r.call(t)},t.prototype._value=function(){return this._settledValue()},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=e}},{}],33:[function(t,e,n){e.exports=function(e,n){function r(t){return t.then}function i(t){try{return r(t)}catch(t){return c.e=t,c}}function o(t){return f.call(t,"_promise0")}function s(t,r,i){var o=new e(n),s=o;i&&i._pushContext(),o._captureStackTrace(),i&&i._popContext();var u=!0,f=a.tryCatch(r).call(t,function(t){o&&(o._resolveCallback(t),o=null)},function(t){o&&(o._rejectCallback(t,u,!0),o=null)});return u=!1,o&&f===c&&(o._rejectCallback(f.e,!0,!0),o=null),s}var a=t("./util"),c=a.errorObj,u=a.isObject,f={}.hasOwnProperty;return function(t,r){if(u(t)){if(t instanceof e)return t;var a=i(t);if(a===c)return r&&r._pushContext(),f=e.reject(a.e),r&&r._popContext(),f;if("function"==typeof a){if(o(t)){var f=new e(n);return t._then(f._fulfill,f._reject,void 0,f,null),f}return s(t,a,r)}}return t}}},{"./util":36}],34:[function(t,e,n){e.exports=function(e,n,r){function i(t){this.handle=t}function o(t){return clearTimeout(this.handle),t}function s(t){throw clearTimeout(this.handle),t}var a=t("./util"),c=e.TimeoutError;i.prototype._resultCancelled=function(){clearTimeout(this.handle)};var u=function(t){return f(+this).thenReturn(t)},f=e.delay=function(t,o){var s,a;return void 0!==o?(s=e.resolve(o)._then(u,null,null,t,void 0),r.cancellation()&&o instanceof e&&s._setOnCancel(o)):(s=new e(n),a=setTimeout(function(){s._fulfill()},+t),r.cancellation()&&s._setOnCancel(new i(a))),s._setAsyncGuaranteed(),s};e.prototype.delay=function(t){return f(t,this)};var h=function(t,e,n){var r;r="string"!=typeof e?e instanceof Error?e:new c("operation timed out"):new c(e),a.markAsOriginatingFromRejection(r),t._attachExtraTrace(r),t._reject(r),null!=n&&n.cancel()};e.prototype.timeout=function(t,e){t=+t;var n,a,c=new i(setTimeout(function(){n.isPending()&&h(n,e,a)},t));return r.cancellation()?(a=this.then(),(n=a._then(o,s,void 0,c,void 0))._setOnCancel(c)):n=this._then(o,s,void 0,c,void 0),n}}},{"./util":36}],35:[function(t,e,n){e.exports=function(e,n,r,i,o,s){function a(t){setTimeout(function(){throw t},0)}function c(t){var e=r(t);return e!==t&&"function"==typeof t._isDisposable&&"function"==typeof t._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}function u(t,n){function i(){if(s>=u)return f._fulfill();var o=c(t[s++]);if(o instanceof e&&o._isDisposable()){try{o=r(o._getDisposer().tryDispose(n),t.promise)}catch(t){return a(t)}if(o instanceof e)return o._then(i,a,null,null,null)}i()}var s=0,u=t.length,f=new e(o);return i(),f}function f(t,e,n){this._data=t,this._promise=e,this._context=n}function h(t,e,n){this.constructor$(t,e,n)}function l(t){return f.isDisposer(t)?(this.resources[this.index]._setDisposable(t),t.promise()):t}function d(t){this.length=t,this.promise=null,this[t-1]=null}var p=t("./util"),m=t("./errors").TypeError,b=t("./util").inherits,v=p.errorObj,y=p.tryCatch;f.prototype.data=function(){return this._data},f.prototype.promise=function(){return this._promise},f.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():null},f.prototype.tryDispose=function(t){var e=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=null!==e?this.doDispose(e,t):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},f.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},b(h,f),h.prototype.doDispose=function(t,e){return this.data().call(t,t,e)},d.prototype._resultCancelled=function(){for(var t=this.length,n=0;n0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},e.prototype.disposer=function(t){if("function"==typeof t)return new h(t,this,i());throw new m}}},{"./errors":12,"./util":36}],36:[function(e,n,i){function o(){try{var t=A;return A=null,t.apply(this,arguments)}catch(t){return C.e=t,C}}function s(t){return A=t,o}function a(t){return null==t||!0===t||!1===t||"string"==typeof t||"number"==typeof t}function c(t){return"function"==typeof t||"object"===(void 0===t?"undefined":_typeof(t))&&null!==t}function u(t){return a(t)?new Error(y(t)):t}function f(t,e){var n,r=t.length,i=new Array(r+1);for(n=0;n1,r=e.length>0&&!(1===e.length&&"constructor"===e[0]),i=B.test(t+"")&&E.names(t).length>0;if(n||r||i)return!0}return!1}catch(t){return!1}}function m(t){function e(){}e.prototype=t;for(var n=8;n--;)new e;return t}function b(t){return F.test(t)}function v(t,e,n){for(var r=new Array(t),i=0;i10||e[0]>0}(),D.isNode&&D.toFastProperties(t);try{throw new Error}catch(t){D.lastLineError=t}n.exports=D},{"./es5":13}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:117}],209:[function(t,e,n){!function(e,n){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}function s(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return r}function a(t,e,n,r){for(var i=0,o=Math.min(t.length,n),s=e;s=49?a-49+10:a>=17?a-17+10:a}return i}function c(t){for(var e=new Array(t.bitLength()),n=0;n>>i}return e}function u(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,c=s/67108864|0;n.words[0]=a;for(var u=1;u>>26,h=67108863&c,l=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=l;d++){var p=u-d|0;f+=(s=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&s}n.words[u]=0|h,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}function f(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function h(t,e,n){return(new l).mulp(t,e,n)}function l(t,e){this.x=t,this.y=e}function d(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){d.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function m(){d.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){d.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function v(){d.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function y(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function g(t){y.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"===(void 0===e?"undefined":_typeof(e))?e.exports=o:n.BN=o,o.BN=o,o.wordSize=26;var _;try{_=t("buffer").Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"===(void 0===t?"undefined":_typeof(t))&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"===(void 0===t?"undefined":_typeof(t)))return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,s=o%r,c=Math.min(o,o-s)+n,u=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],x=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){t=t||10,e=0|e||1;var n;if(16===t||"hex"===t){n="";for(var i=0,o=0,s=0;s>>24-i&16777215)||s!==this.length-1?w[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var u=x[t],f=k[t];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var l=h.modn(f).toString(t);n=(h=h.idivn(f)).isZero()?l+n:w[u-l.length]+l+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==_),this.toArrayLike(_,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var s,a,c="le"===e,u=new t(o),f=this.clone();if(c){for(a=0;!f.isZero();a++)s=f.andln(255),f.iushrn(8),u[a]=s;for(;a=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;var r,i;n>0?(r=this,i=t):(r=t,i=this);for(var o=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,d=0|s[1],p=8191&d,m=d>>>13,b=0|s[2],v=8191&b,y=b>>>13,g=0|s[3],_=8191&g,w=g>>>13,x=0|s[4],k=8191&x,S=x>>>13,M=0|s[5],E=8191&M,j=M>>>13,C=0|s[6],A=8191&C,T=C>>>13,I=0|s[7],P=8191&I,B=I>>>13,F=0|s[8],R=8191&F,O=F>>>13,N=0|s[9],L=8191&N,D=N>>>13,q=0|a[0],z=8191&q,U=q>>>13,H=0|a[1],V=8191&H,W=H>>>13,K=0|a[2],X=8191&K,$=K>>>13,G=0|a[3],J=8191&G,Z=G>>>13,Q=0|a[4],Y=8191&Q,tt=Q>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ct=8191&at,ut=at>>>13,ft=0|a[8],ht=8191&ft,lt=ft>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var bt=(u+(r=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,U))+Math.imul(l,z)|0))<<13)|0;u=((o=Math.imul(l,U))+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,U))+Math.imul(m,z)|0,o=Math.imul(m,U);var vt=(u+(r=r+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(l,V)|0))<<13)|0;u=((o=o+Math.imul(l,W)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,z),i=(i=Math.imul(v,U))+Math.imul(y,z)|0,o=Math.imul(y,U),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0;var yt=(u+(r=r+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,$)|0)+Math.imul(l,X)|0))<<13)|0;u=((o=o+Math.imul(l,$)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(_,z),i=(i=Math.imul(_,U))+Math.imul(w,z)|0,o=Math.imul(w,U),r=r+Math.imul(v,V)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,W)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,$)|0;var gt=(u+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,J)|0))<<13)|0;u=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(k,z),i=(i=Math.imul(k,U))+Math.imul(S,z)|0,o=Math.imul(S,U),r=r+Math.imul(_,V)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(w,V)|0,o=o+Math.imul(w,W)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,$)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,$)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Z)|0;var _t=(u+(r=r+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,Y)|0))<<13)|0;u=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,z),i=(i=Math.imul(E,U))+Math.imul(j,z)|0,o=Math.imul(j,U),r=r+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,W)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,$)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,$)|0,r=r+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,Z)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,tt)|0;var wt=(u+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(l,nt)|0))<<13)|0;u=((o=o+Math.imul(l,rt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,U))+Math.imul(T,z)|0,o=Math.imul(T,U),r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,W)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,$)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(v,Y)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var xt=(u+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,st)|0)+Math.imul(l,ot)|0))<<13)|0;u=((o=o+Math.imul(l,st)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,U))+Math.imul(B,z)|0,o=Math.imul(B,U),r=r+Math.imul(A,V)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,W)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,$)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(v,nt)|0,i=(i=i+Math.imul(v,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,st)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0;var kt=(u+(r=r+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,ut)|0)+Math.imul(l,ct)|0))<<13)|0;u=((o=o+Math.imul(l,ut)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(R,z),i=(i=Math.imul(R,U))+Math.imul(O,z)|0,o=Math.imul(O,U),r=r+Math.imul(P,V)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(B,V)|0,o=o+Math.imul(B,W)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,$)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Z)|0,r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(_,nt)|0,i=(i=i+Math.imul(_,rt)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(v,ot)|0,i=(i=i+Math.imul(v,st)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,r=r+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,ut)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,ut)|0;var St=(u+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;u=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(L,z),i=(i=Math.imul(L,U))+Math.imul(D,z)|0,o=Math.imul(D,U),r=r+Math.imul(R,V)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,$)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Z)|0,r=r+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,tt)|0,r=r+Math.imul(k,nt)|0,i=(i=i+Math.imul(k,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(_,ot)|0,i=(i=i+Math.imul(_,st)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,r=r+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,ut)|0)+Math.imul(y,ct)|0,o=o+Math.imul(y,ut)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0;var Mt=(u+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(l,pt)|0))<<13)|0;u=((o=o+Math.imul(l,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,V),i=(i=Math.imul(L,W))+Math.imul(D,V)|0,o=Math.imul(D,W),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,$)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(j,nt)|0,o=o+Math.imul(j,rt)|0,r=r+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,st)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,r=r+Math.imul(_,ct)|0,i=(i=i+Math.imul(_,ut)|0)+Math.imul(w,ct)|0,o=o+Math.imul(w,ut)|0,r=r+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var Et=(u+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;u=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,$))+Math.imul(D,X)|0,o=Math.imul(D,$),r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(B,Y)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(T,nt)|0,o=o+Math.imul(T,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,st)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,r=r+Math.imul(k,ct)|0,i=(i=i+Math.imul(k,ut)|0)+Math.imul(S,ct)|0,o=o+Math.imul(S,ut)|0,r=r+Math.imul(_,ht)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(w,ht)|0,o=o+Math.imul(w,lt)|0;var jt=(u+(r=r+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(y,pt)|0))<<13)|0;u=((o=o+Math.imul(y,mt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(L,J),i=(i=Math.imul(L,Z))+Math.imul(D,J)|0,o=Math.imul(D,Z),r=r+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,st)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,r=r+Math.imul(E,ct)|0,i=(i=i+Math.imul(E,ut)|0)+Math.imul(j,ct)|0,o=o+Math.imul(j,ut)|0,r=r+Math.imul(k,ht)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ct=(u+(r=r+Math.imul(_,pt)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(w,pt)|0))<<13)|0;u=((o=o+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(L,Y),i=(i=Math.imul(L,tt))+Math.imul(D,Y)|0,o=Math.imul(D,tt),r=r+Math.imul(R,nt)|0,i=(i=i+Math.imul(R,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,st)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,st)|0,r=r+Math.imul(A,ct)|0,i=(i=i+Math.imul(A,ut)|0)+Math.imul(T,ct)|0,o=o+Math.imul(T,ut)|0,r=r+Math.imul(E,ht)|0,i=(i=i+Math.imul(E,lt)|0)+Math.imul(j,ht)|0,o=o+Math.imul(j,lt)|0;var At=(u+(r=r+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,mt)|0)+Math.imul(S,pt)|0))<<13)|0;u=((o=o+Math.imul(S,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(L,nt),i=(i=Math.imul(L,rt))+Math.imul(D,nt)|0,o=Math.imul(D,rt),r=r+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,st)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,r=r+Math.imul(P,ct)|0,i=(i=i+Math.imul(P,ut)|0)+Math.imul(B,ct)|0,o=o+Math.imul(B,ut)|0,r=r+Math.imul(A,ht)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(T,ht)|0,o=o+Math.imul(T,lt)|0;var Tt=(u+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(j,pt)|0))<<13)|0;u=((o=o+Math.imul(j,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(L,ot),i=(i=Math.imul(L,st))+Math.imul(D,ot)|0,o=Math.imul(D,st),r=r+Math.imul(R,ct)|0,i=(i=i+Math.imul(R,ut)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,ut)|0,r=r+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(B,ht)|0,o=o+Math.imul(B,lt)|0;var It=(u+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(T,pt)|0))<<13)|0;u=((o=o+Math.imul(T,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(L,ct),i=(i=Math.imul(L,ut))+Math.imul(D,ct)|0,o=Math.imul(D,ut),r=r+Math.imul(R,ht)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(O,ht)|0,o=o+Math.imul(O,lt)|0;var Pt=(u+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(B,pt)|0))<<13)|0;u=((o=o+Math.imul(B,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(L,ht),i=(i=Math.imul(L,lt))+Math.imul(D,ht)|0,o=Math.imul(D,lt);var Bt=(u+(r=r+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(O,pt)|0))<<13)|0;u=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863;var Ft=(u+(r=Math.imul(L,pt))|0)+((8191&(i=(i=Math.imul(L,mt))+Math.imul(D,pt)|0))<<13)|0;return u=((o=Math.imul(D,mt))+(i>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,c[0]=bt,c[1]=vt,c[2]=yt,c[3]=gt,c[4]=_t,c[5]=wt,c[6]=xt,c[7]=kt,c[8]=St,c[9]=Mt,c[10]=Et,c[11]=jt,c[12]=Ct,c[13]=At,c[14]=Tt,c[15]=It,c[16]=Pt,c[17]=Bt,c[18]=Ft,0!==u&&(c[19]=u,n.length++),n};Math.imul||(S=u),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?S(this,t,e):n<63?u(this,t,e):n<1024?f(this,t,e):h(this,t,e)},l.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},l.prototype.permute=function(t,e,n,r,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=c(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0);var i;i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,u=0;u=0&&(0!==f||u>=i);u--){var h=0|this.words[u];this.words[u]=f<<26-o|h>>>o,f=h&a}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+n]=67108863&s}for(;i>26,this.words[i+n]=67108863&s;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,s=0|i.words[i.length-1];0!==(n=26-this._countBits(s))&&(i=i.ushln(n),r.iushln(n),s=0|i.words[i.length-1]);var a,c=r.length-i.length;if("mod"!==e){(a=new o(null)).length=c+1,a.words=new Array(a.length);for(var u=0;u=0;h--){var l=67108864*(0|r.words[i.length+h])+(0|r.words[i.length+h-1]);for(l=Math.min(l/s|0,67108863),r._ishlnsubmul(i,l,h);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(i,1,h),r.isZero()||(r.negative^=1);a&&(a.words[h]=l)}return a&&a.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},o.prototype.divmod=function(t,e,n){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var i,s,a;return 0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),a=new o(0),c=new o(1),u=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(f),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(f),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(a),s.isub(c)):(n.isub(e),a.isub(i),c.isub(s))}return{a:a,b:c,gcd:n.iushln(u)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),a=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0==(e.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(e.iushrn(c);c-- >0;)i.isOdd()&&i.iadd(a),i.iushrn(1);for(var f=0,h=1;0==(n.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(a),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s)):(n.isub(e),s.isub(i))}var l;return(l=0===e.cmpn(1)?i:s).cmpn(0)<0&&l.iadd(t),l},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=t<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;this.strip();var n;if(this.length>1)n=1;else{e&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];n=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new y(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var M={k256:null,p224:null,p192:null,p25519:null};d.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},d.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):n.strip(),n},d.prototype.split=function(t,e){t.iushrn(this.n,0,e)},d.prototype.imulK=function(t){return t.imul(this.k)},i(p,d),p.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},p.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(M[t])return M[t];var e;if("k256"===t)e=new p;else if("p224"===t)e=new m;else if("p192"===t)e=new b;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new v}return M[t]=e,e},y.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},y.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},y.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},y.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},y.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},y.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},y.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},y.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},y.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},y.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},y.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},y.prototype.isqr=function(t){return this.imul(t,t.clone())},y.prototype.sqr=function(t){return this.mul(t,t)},y.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),c=a.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;0!==d.cmp(a);){for(var m=d,b=0;0!==m.cmp(a);b++)m=m.redSqr();r(b=0;r--){for(var u=e.words[r],f=c-1;f>=0;f--){var h=u>>f&1;i!==n[0]&&(i=this.sqr(i)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===r&&0===f)&&(i=this.mul(i,n[s]),a=0,s=0)):a=0}c=26}return i},y.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},y.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new g(t)},i(g,y),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},g.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},g.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{}],210:[function(t,e,n){arguments[4][17][0].apply(n,arguments)},{crypto:18,dup:17}],211:[function(t,e,n){(function(t){function n(e){if(e.length%r!=0){var n=e.length+(r-e.length%r);e=t.concat([e,i],n)}for(var o=new Array(e.length>>>2),s=0,a=0;s=6.4.0 <7.0.0",type:"range"},"/Users/frozeman/Sites/_ethereum/web3/packages/web3-eth-accounts/node_modules/eth-lib"]],_from:"elliptic@>=6.4.0 <7.0.0",_id:"elliptic@6.4.0",_inCache:!0,_location:"/elliptic",_nodeVersion:"7.0.0",_npmOperationalInternal:{host:"packages-18-east.internal.npmjs.com",tmp:"tmp/elliptic-6.4.0.tgz_1487798866428_0.30510620190761983"},_npmUser:{name:"indutny",email:"fedor@indutny.com"},_npmVersion:"3.10.8",_phantomChildren:{},_requested:{raw:"elliptic@^6.4.0",scope:null,escapedName:"elliptic",name:"elliptic",rawSpec:"^6.4.0",spec:">=6.4.0 <7.0.0",type:"range"},_requiredBy:["/eth-lib"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",_shrinkwrap:null,_spec:"elliptic@^6.4.0",_where:"/Users/frozeman/Sites/_ethereum/web3/packages/web3-eth-accounts/node_modules/eth-lib",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},directories:{},dist:{shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",tarball:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz"},files:["lib"],gitHead:"6b0d2b76caae91471649c8e21f0b1d3ba0f96090",homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",maintainers:[{name:"indutny",email:"fedor@indutny.com"}],name:"elliptic",optionalDependencies:{},readme:"ERROR: No README data found!",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0"}},{}],229:[function(t,e,n){(function(n){var r=t("./bytes"),i=t("./nat"),o=t("elliptic"),s=t("./rlp"),a=new o.ec("secp256k1"),c=t("./hash"),u=c.keccak256,f=c.keccak256s,h=function(t){for(var e=f(t.slice(2)),n="0x",r=0;r<40;r++)n+=parseInt(e[r+2],16)>7?t[r+2].toUpperCase():t[r+2];return n},l=function(t){var e=new n(t.slice(2),"hex"),r="0x"+a.keyFromPrivate(e).getPublic(!1,"hex").slice(2),i=u(r);return{address:h("0x"+i.slice(-40)),privateKey:t}},d=function(t){var e=_slicedToArray(t,3),n=e[0],i=e[1],o=e[2];return r.flatten([i,o,n])},p=function(t){return[r.slice(64,65,t),r.slice(0,32,t),r.slice(32,64,t)]},m=function(t){return function(e,i){var o=a.keyFromPrivate(new n(i.slice(2),"hex")).sign(new n(e.slice(2),"hex"),{canonical:!0});return d([r.pad(1,r.fromNumber(t+o.recoveryParam)),r.pad(32,r.fromNat("0x"+o.r.toString(16))),r.pad(32,r.fromNat("0x"+o.s.toString(16)))])}},b=m(27),v=function(t,e){var i=p(e),o={v:r.toNumber(i[0]),r:i[1].slice(2),s:i[2].slice(2)},s="0x"+a.recoverPubKey(new n(t.slice(2),"hex"),o,o.v<2?o.v:1-o.v%2).encode("hex",!1).slice(2),c=u(s);return h("0x"+c.slice(-40))},y=function(t){return s.encode([r.fromNat(t.nonce),r.fromNat(t.gasPrice),r.fromNat(t.gas),t.to.toLowerCase(),r.fromNat(t.value),t.data,r.fromNat(t.chainId||"0x1"),"0x","0x"])};e.exports={create:function(t){var e=u(r.concat(r.random(32),t||r.random(32))),n=r.concat(r.concat(r.random(32),e),r.random(32)),i=u(n);return l(i)},toChecksum:h,fromPrivate:l,sign:b,recover:v,signTransaction:function(t,e){var n=y(t),r=m(2*i.toNumber(t.chainId||"0x1")+35)(u(n),e),o=s.decode(n).slice(0,6).concat(p(r));return s.encode(o)},recoverTransaction:function(t){var e=s.decode(t),n=d(e.slice(6,9)),i=r.toNumber(e[6]),o=i<35?[]:[r.fromNumber(i-35>>1),"0x","0x"],a=e.slice(0,6).concat(o),c=s.encode(a);return v(u(c),n)},transactionSigningData:y,encodeSignature:d,decodeSignature:p}}).call(this,t("buffer").Buffer)},{"./bytes":231,"./hash":232,"./nat":233,"./rlp":234,buffer:45,elliptic:213}],230:[function(t,e,n){var r=function(t,e){for(var n=[],r=0;r>5,outputBlocks:t>>5,s:function(t){return[].concat(t,t,t,t,t)}([0,0,0,0,0,0,0,0,0,0])}},c=function(t,e){for(var n,s=e.length,a=t.blocks,c=t.blockCount<<2,f=t.blockCount,h=t.outputBlocks,l=t.s,d=0;d>2]|=e[d]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(a[b>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=c){for(t.start=b-c,t.block=a[f],b=0;b>2]|=i[3&b],t.lastByteIndex===c)for(a[0]=a[f],b=1;b>4&15]+r[15&p]+r[p>>12&15]+r[p>>8&15]+r[p>>20&15]+r[p>>16&15]+r[p>>28&15]+r[p>>24&15];v%f==0&&(u(l),b=0)}return"0x"+m},u=function(t){var e,n,r,i,o,a,c,u,f,h,l,d,p,m,b,v,y,g,_,w,x,k,S,M,E,j,C,A,T,I,P,B,F,R,O,N,L,D,q,z,U,H,V,W,K,X,$,G,J,Z,Q,Y,tt,et,nt,rt,it,ot,st,at,ct,ut,ft;for(r=0;r<48;r+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],c=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],f=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],e=(d=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|c>>>31),n=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(c<<1|a>>>31),t[0]^=e,t[1]^=n,t[10]^=e,t[11]^=n,t[20]^=e,t[21]^=n,t[30]^=e,t[31]^=n,t[40]^=e,t[41]^=n,e=i^(u<<1|f>>>31),n=o^(f<<1|u>>>31),t[2]^=e,t[3]^=n,t[12]^=e,t[13]^=n,t[22]^=e,t[23]^=n,t[32]^=e,t[33]^=n,t[42]^=e,t[43]^=n,e=a^(h<<1|l>>>31),n=c^(l<<1|h>>>31),t[4]^=e,t[5]^=n,t[14]^=e,t[15]^=n,t[24]^=e,t[25]^=n,t[34]^=e,t[35]^=n,t[44]^=e,t[45]^=n,e=u^(d<<1|p>>>31),n=f^(p<<1|d>>>31),t[6]^=e,t[7]^=n,t[16]^=e,t[17]^=n,t[26]^=e,t[27]^=n,t[36]^=e,t[37]^=n,t[46]^=e,t[47]^=n,e=h^(i<<1|o>>>31),n=l^(o<<1|i>>>31),t[8]^=e,t[9]^=n,t[18]^=e,t[19]^=n,t[28]^=e,t[29]^=n,t[38]^=e,t[39]^=n,t[48]^=e,t[49]^=n,m=t[0],b=t[1],X=t[11]<<4|t[10]>>>28,$=t[10]<<4|t[11]>>>28,A=t[20]<<3|t[21]>>>29,T=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ct=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,V=t[41]<<18|t[40]>>>14,R=t[2]<<1|t[3]>>>31,O=t[3]<<1|t[2]>>>31,v=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,G=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,I=t[33]<<13|t[32]>>>19,P=t[32]<<13|t[33]>>>19,ut=t[42]<<2|t[43]>>>30,ft=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,nt=t[4]<<30|t[5]>>>2,N=t[14]<<6|t[15]>>>26,L=t[15]<<6|t[14]>>>26,g=t[25]<<11|t[24]>>>21,_=t[24]<<11|t[25]>>>21,Z=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,B=t[45]<<29|t[44]>>>3,F=t[44]<<29|t[45]>>>3,M=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,q=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,x=t[37]<<21|t[36]>>>11,Y=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,W=t[8]<<27|t[9]>>>5,K=t[9]<<27|t[8]>>>5,j=t[18]<<20|t[19]>>>12,C=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,U=t[39]<<8|t[38]>>>24,k=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=m^~v&g,t[1]=b^~y&_,t[10]=M^~j&A,t[11]=E^~C&T,t[20]=R^~N&D,t[21]=O^~L&q,t[30]=W^~X&G,t[31]=K^~$&J,t[40]=et^~rt&ot,t[41]=nt^~it&st,t[2]=v^~g&w,t[3]=y^~_&x,t[12]=j^~A&I,t[13]=C^~T&P,t[22]=N^~D&z,t[23]=L^~q&U,t[32]=X^~G&Z,t[33]=$^~J&Q,t[42]=rt^~ot&at,t[43]=it^~st&ct,t[4]=g^~w&k,t[5]=_^~x&S,t[14]=A^~I&B,t[15]=T^~P&F,t[24]=D^~z&H,t[25]=q^~U&V,t[34]=G^~Z&Y,t[35]=J^~Q&tt,t[44]=ot^~at&ut,t[45]=st^~ct&ft,t[6]=w^~k&m,t[7]=x^~S&b,t[16]=I^~B&M,t[17]=P^~F&E,t[26]=z^~H&R,t[27]=U^~V&O,t[36]=Z^~Y&W,t[37]=Q^~tt&K,t[46]=at^~ut&et,t[47]=ct^~ft&nt,t[8]=k^~m&v,t[9]=S^~b&y,t[18]=B^~M&j,t[19]=F^~E&C,t[28]=H^~R&N,t[29]=V^~O&L,t[38]=Y^~W&X,t[39]=tt^~K&$,t[48]=ut^~et&rt,t[49]=ft^~nt&it,t[0]^=s[r],t[1]^=s[r+1]},f=function(t){return function(e){var n;if("0x"===e.slice(0,2)){n=[];for(var r=2,i=e.length;r="80"?r(n.length/2,128):"")+n}var i=e.map(t).join("");return r(i.length/2,192)+i}(t)},decode:function(t){var e=2,n=function(){if(e>=t.length)throw"";var n=t.slice(e,e+2);return n<"80"?(e+=2,"0x"+n):n<"c0"?i():o()},r=function(){var n=parseInt(t.slice(e,e+=2),16)%64;return n<56?n:parseInt(t.slice(e,e+=2*(n-55)),16)},i=function(){var n=r();return"0x"+t.slice(e,e+=2*n)},o=function(){for(var t=2*r()+e,i=[];e=this._blockSize;){for(var o=this._blockOffset;o0;++s)this._length[s]+=a,(a=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*a);return this},r.prototype._update=function(t){throw new Error("_update is not implemented")},r.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();return void 0!==t&&(e=e.toString(t)),e},r.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=r}).call(this,t("buffer").Buffer)},{buffer:45,inherits:249,stream:148}],236:[function(t,e,n){arguments[4][84][0].apply(n,arguments)},{"./hash/common":237,"./hash/hmac":238,"./hash/ripemd":239,"./hash/sha":240,"./hash/utils":247,dup:84}],237:[function(t,e,n){arguments[4][85][0].apply(n,arguments)},{"./utils":247,dup:85,"minimalistic-assert":250}],238:[function(t,e,n){arguments[4][86][0].apply(n,arguments)},{"./utils":247,dup:86,"minimalistic-assert":250}],239:[function(t,e,n){arguments[4][87][0].apply(n,arguments)},{"./common":237,"./utils":247,dup:87}],240:[function(t,e,n){arguments[4][88][0].apply(n,arguments)},{"./sha/1":241,"./sha/224":242,"./sha/256":243,"./sha/384":244,"./sha/512":245,dup:88}],241:[function(t,e,n){arguments[4][89][0].apply(n,arguments)},{"../common":237,"../utils":247,"./common":246,dup:89}],242:[function(t,e,n){arguments[4][90][0].apply(n,arguments)},{"../utils":247,"./256":243,dup:90}],243:[function(t,e,n){arguments[4][91][0].apply(n,arguments)},{"../common":237,"../utils":247,"./common":246,dup:91,"minimalistic-assert":250}],244:[function(t,e,n){arguments[4][92][0].apply(n,arguments)},{"../utils":247,"./512":245,dup:92}],245:[function(t,e,n){arguments[4][93][0].apply(n,arguments)},{"../common":237,"../utils":247,dup:93,"minimalistic-assert":250}],246:[function(t,e,n){arguments[4][94][0].apply(n,arguments)},{"../utils":247,dup:94}],247:[function(t,e,n){arguments[4][95][0].apply(n,arguments)},{dup:95,inherits:249,"minimalistic-assert":250}],248:[function(t,e,n){arguments[4][96][0].apply(n,arguments)},{dup:96,"hash.js":236,"minimalistic-assert":250,"minimalistic-crypto-utils":251}],249:[function(t,e,n){arguments[4][99][0].apply(n,arguments)},{dup:99}],250:[function(t,e,n){arguments[4][103][0].apply(n,arguments)},{dup:103}],251:[function(t,e,n){arguments[4][104][0].apply(n,arguments)},{dup:104}],252:[function(t,e,n){arguments[4][111][0].apply(n,arguments)},{"./lib/async":253,"./lib/sync":256,dup:111}],253:[function(t,e,n){(function(n,r){function i(t){if(r.process&&!r.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==p[t])return p[t];var e=o(a=a||h.alloc(8),a,10,128,t).then(function(){return!0}).catch(function(){return!1});return p[t]=e,e}function o(t,e,n,r,i){return l.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(t){return l.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:{name:i}},t,r<<3)}).then(function(t){return h.from(t)})}function s(t,e){t.then(function(t){n.nextTick(function(){e(null,t)})},function(t){n.nextTick(function(){e(t)})})}var a,c=t("./precondition"),u=t("./default-encoding"),f=t("./sync"),h=t("safe-buffer").Buffer,l=r.crypto&&r.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},p=[];e.exports=function(t,e,a,l,p,m){if(h.isBuffer(t)||(t=h.from(t,u)),h.isBuffer(e)||(e=h.from(e,u)),c(a,l),"function"==typeof p&&(m=p,p=void 0),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");var b=d[(p=p||"sha1").toLowerCase()];if(!b||"function"!=typeof r.Promise)return n.nextTick(function(){var n;try{n=f(t,e,a,l,p)}catch(t){return m(t)}m(null,n)});s(i(b).then(function(n){return n?o(t,e,a,l,b):f(t,e,a,l,p)}),m)}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":254,"./precondition":255,"./sync":256,_process:117,"safe-buffer":258}],254:[function(t,e,n){(function(t){var n;n=t.browser?"utf-8":parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary",e.exports=n}).call(this,t("_process"))},{_process:117}],255:[function(t,e,n){arguments[4][114][0].apply(n,arguments)},{dup:114}],256:[function(t,e,n){arguments[4][115][0].apply(n,arguments)},{"./default-encoding":254,"./precondition":255,"create-hash/md5":212,dup:115,ripemd160:257,"safe-buffer":258,"sha.js":262}],257:[function(t,e,n){(function(n){function r(){h.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function i(t,e){return t<>>32-e}function o(t,e,n,r,o,s,a,c){return i(t+(e^n^r)+s+a|0,c)+o|0}function s(t,e,n,r,o,s,a,c){return i(t+(e&n|~e&r)+s+a|0,c)+o|0}function a(t,e,n,r,o,s,a,c){return i(t+((e|~n)^r)+s+a|0,c)+o|0}function c(t,e,n,r,o,s,a,c){return i(t+(e&r|n&~r)+s+a|0,c)+o|0}function u(t,e,n,r,o,s,a,c){return i(t+(e^(n|~r))+s+a|0,c)+o|0}var f=t("inherits"),h=t("hash-base");f(r,h),r.prototype._update=function(){for(var t=new Array(16),e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,r=this._b,f=this._c,h=this._d,l=this._e;l=o(l,n=o(n,r,f,h,l,t[0],0,11),r,f=i(f,10),h,t[1],0,14),r=o(r=i(r,10),f=o(f,h=o(h,l,n,r,f,t[2],0,15),l,n=i(n,10),r,t[3],0,12),h,l=i(l,10),n,t[4],0,5),h=o(h=i(h,10),l=o(l,n=o(n,r,f,h,l,t[5],0,8),r,f=i(f,10),h,t[6],0,7),n,r=i(r,10),f,t[7],0,9),n=o(n=i(n,10),r=o(r,f=o(f,h,l,n,r,t[8],0,11),h,l=i(l,10),n,t[9],0,13),f,h=i(h,10),l,t[10],0,14),f=o(f=i(f,10),h=o(h,l=o(l,n,r,f,h,t[11],0,15),n,r=i(r,10),f,t[12],0,6),l,n=i(n,10),r,t[13],0,7),l=s(l=i(l,10),n=o(n,r=o(r,f,h,l,n,t[14],0,9),f,h=i(h,10),l,t[15],0,8),r,f=i(f,10),h,t[7],1518500249,7),r=s(r=i(r,10),f=s(f,h=s(h,l,n,r,f,t[4],1518500249,6),l,n=i(n,10),r,t[13],1518500249,8),h,l=i(l,10),n,t[1],1518500249,13),h=s(h=i(h,10),l=s(l,n=s(n,r,f,h,l,t[10],1518500249,11),r,f=i(f,10),h,t[6],1518500249,9),n,r=i(r,10),f,t[15],1518500249,7),n=s(n=i(n,10),r=s(r,f=s(f,h,l,n,r,t[3],1518500249,15),h,l=i(l,10),n,t[12],1518500249,7),f,h=i(h,10),l,t[0],1518500249,12),f=s(f=i(f,10),h=s(h,l=s(l,n,r,f,h,t[9],1518500249,15),n,r=i(r,10),f,t[5],1518500249,9),l,n=i(n,10),r,t[2],1518500249,11),l=s(l=i(l,10),n=s(n,r=s(r,f,h,l,n,t[14],1518500249,7),f,h=i(h,10),l,t[11],1518500249,13),r,f=i(f,10),h,t[8],1518500249,12),r=a(r=i(r,10),f=a(f,h=a(h,l,n,r,f,t[3],1859775393,11),l,n=i(n,10),r,t[10],1859775393,13),h,l=i(l,10),n,t[14],1859775393,6),h=a(h=i(h,10),l=a(l,n=a(n,r,f,h,l,t[4],1859775393,7),r,f=i(f,10),h,t[9],1859775393,14),n,r=i(r,10),f,t[15],1859775393,9),n=a(n=i(n,10),r=a(r,f=a(f,h,l,n,r,t[8],1859775393,13),h,l=i(l,10),n,t[1],1859775393,15),f,h=i(h,10),l,t[2],1859775393,14),f=a(f=i(f,10),h=a(h,l=a(l,n,r,f,h,t[7],1859775393,8),n,r=i(r,10),f,t[0],1859775393,13),l,n=i(n,10),r,t[6],1859775393,6),l=a(l=i(l,10),n=a(n,r=a(r,f,h,l,n,t[13],1859775393,5),f,h=i(h,10),l,t[11],1859775393,12),r,f=i(f,10),h,t[5],1859775393,7),r=c(r=i(r,10),f=c(f,h=a(h,l,n,r,f,t[12],1859775393,5),l,n=i(n,10),r,t[1],2400959708,11),h,l=i(l,10),n,t[9],2400959708,12),h=c(h=i(h,10),l=c(l,n=c(n,r,f,h,l,t[11],2400959708,14),r,f=i(f,10),h,t[10],2400959708,15),n,r=i(r,10),f,t[0],2400959708,14),n=c(n=i(n,10),r=c(r,f=c(f,h,l,n,r,t[8],2400959708,15),h,l=i(l,10),n,t[12],2400959708,9),f,h=i(h,10),l,t[4],2400959708,8),f=c(f=i(f,10),h=c(h,l=c(l,n,r,f,h,t[13],2400959708,9),n,r=i(r,10),f,t[3],2400959708,14),l,n=i(n,10),r,t[7],2400959708,5),l=c(l=i(l,10),n=c(n,r=c(r,f,h,l,n,t[15],2400959708,6),f,h=i(h,10),l,t[14],2400959708,8),r,f=i(f,10),h,t[5],2400959708,6),r=u(r=i(r,10),f=c(f,h=c(h,l,n,r,f,t[6],2400959708,5),l,n=i(n,10),r,t[2],2400959708,12),h,l=i(l,10),n,t[4],2840853838,9),h=u(h=i(h,10),l=u(l,n=u(n,r,f,h,l,t[0],2840853838,15),r,f=i(f,10),h,t[5],2840853838,5),n,r=i(r,10),f,t[9],2840853838,11),n=u(n=i(n,10),r=u(r,f=u(f,h,l,n,r,t[7],2840853838,6),h,l=i(l,10),n,t[12],2840853838,8),f,h=i(h,10),l,t[2],2840853838,13),f=u(f=i(f,10),h=u(h,l=u(l,n,r,f,h,t[10],2840853838,12),n,r=i(r,10),f,t[14],2840853838,5),l,n=i(n,10),r,t[1],2840853838,12),l=u(l=i(l,10),n=u(n,r=u(r,f,h,l,n,t[3],2840853838,13),f,h=i(h,10),l,t[8],2840853838,14),r,f=i(f,10),h,t[11],2840853838,11),r=u(r=i(r,10),f=u(f,h=u(h,l,n,r,f,t[6],2840853838,8),l,n=i(n,10),r,t[15],2840853838,5),h,l=i(l,10),n,t[13],2840853838,6),h=i(h,10);var d=this._a,p=this._b,m=this._c,b=this._d,v=this._e;v=u(v,d=u(d,p,m,b,v,t[5],1352829926,8),p,m=i(m,10),b,t[14],1352829926,9),p=u(p=i(p,10),m=u(m,b=u(b,v,d,p,m,t[7],1352829926,9),v,d=i(d,10),p,t[0],1352829926,11),b,v=i(v,10),d,t[9],1352829926,13),b=u(b=i(b,10),v=u(v,d=u(d,p,m,b,v,t[2],1352829926,15),p,m=i(m,10),b,t[11],1352829926,15),d,p=i(p,10),m,t[4],1352829926,5),d=u(d=i(d,10),p=u(p,m=u(m,b,v,d,p,t[13],1352829926,7),b,v=i(v,10),d,t[6],1352829926,7),m,b=i(b,10),v,t[15],1352829926,8),m=u(m=i(m,10),b=u(b,v=u(v,d,p,m,b,t[8],1352829926,11),d,p=i(p,10),m,t[1],1352829926,14),v,d=i(d,10),p,t[10],1352829926,14),v=c(v=i(v,10),d=u(d,p=u(p,m,b,v,d,t[3],1352829926,12),m,b=i(b,10),v,t[12],1352829926,6),p,m=i(m,10),b,t[6],1548603684,9),p=c(p=i(p,10),m=c(m,b=c(b,v,d,p,m,t[11],1548603684,13),v,d=i(d,10),p,t[3],1548603684,15),b,v=i(v,10),d,t[7],1548603684,7),b=c(b=i(b,10),v=c(v,d=c(d,p,m,b,v,t[0],1548603684,12),p,m=i(m,10),b,t[13],1548603684,8),d,p=i(p,10),m,t[5],1548603684,9),d=c(d=i(d,10),p=c(p,m=c(m,b,v,d,p,t[10],1548603684,11),b,v=i(v,10),d,t[14],1548603684,7),m,b=i(b,10),v,t[15],1548603684,7),m=c(m=i(m,10),b=c(b,v=c(v,d,p,m,b,t[8],1548603684,12),d,p=i(p,10),m,t[12],1548603684,7),v,d=i(d,10),p,t[4],1548603684,6),v=c(v=i(v,10),d=c(d,p=c(p,m,b,v,d,t[9],1548603684,15),m,b=i(b,10),v,t[1],1548603684,13),p,m=i(m,10),b,t[2],1548603684,11),p=a(p=i(p,10),m=a(m,b=a(b,v,d,p,m,t[15],1836072691,9),v,d=i(d,10),p,t[5],1836072691,7),b,v=i(v,10),d,t[1],1836072691,15),b=a(b=i(b,10),v=a(v,d=a(d,p,m,b,v,t[3],1836072691,11),p,m=i(m,10),b,t[7],1836072691,8),d,p=i(p,10),m,t[14],1836072691,6),d=a(d=i(d,10),p=a(p,m=a(m,b,v,d,p,t[6],1836072691,6),b,v=i(v,10),d,t[9],1836072691,14),m,b=i(b,10),v,t[11],1836072691,12),m=a(m=i(m,10),b=a(b,v=a(v,d,p,m,b,t[8],1836072691,13),d,p=i(p,10),m,t[12],1836072691,5),v,d=i(d,10),p,t[2],1836072691,14),v=a(v=i(v,10),d=a(d,p=a(p,m,b,v,d,t[10],1836072691,13),m,b=i(b,10),v,t[0],1836072691,13),p,m=i(m,10),b,t[4],1836072691,7),p=s(p=i(p,10),m=s(m,b=a(b,v,d,p,m,t[13],1836072691,5),v,d=i(d,10),p,t[8],2053994217,15),b,v=i(v,10),d,t[6],2053994217,5),b=s(b=i(b,10),v=s(v,d=s(d,p,m,b,v,t[4],2053994217,8),p,m=i(m,10),b,t[1],2053994217,11),d,p=i(p,10),m,t[3],2053994217,14),d=s(d=i(d,10),p=s(p,m=s(m,b,v,d,p,t[11],2053994217,14),b,v=i(v,10),d,t[15],2053994217,6),m,b=i(b,10),v,t[0],2053994217,14),m=s(m=i(m,10),b=s(b,v=s(v,d,p,m,b,t[5],2053994217,6),d,p=i(p,10),m,t[12],2053994217,9),v,d=i(d,10),p,t[2],2053994217,12),v=s(v=i(v,10),d=s(d,p=s(p,m,b,v,d,t[13],2053994217,9),m,b=i(b,10),v,t[9],2053994217,12),p,m=i(m,10),b,t[7],2053994217,5),p=o(p=i(p,10),m=s(m,b=s(b,v,d,p,m,t[10],2053994217,15),v,d=i(d,10),p,t[14],2053994217,8),b,v=i(v,10),d,t[12],0,8),b=o(b=i(b,10),v=o(v,d=o(d,p,m,b,v,t[15],0,5),p,m=i(m,10),b,t[10],0,12),d,p=i(p,10),m,t[4],0,9),d=o(d=i(d,10),p=o(p,m=o(m,b,v,d,p,t[1],0,12),b,v=i(v,10),d,t[5],0,5),m,b=i(b,10),v,t[8],0,14),m=o(m=i(m,10),b=o(b,v=o(v,d,p,m,b,t[7],0,6),d,p=i(p,10),m,t[6],0,8),v,d=i(d,10),p,t[2],0,13),v=o(v=i(v,10),d=o(d,p=o(p,m,b,v,d,t[13],0,6),m,b=i(b,10),v,t[14],0,5),p,m=i(m,10),b,t[0],0,15),p=o(p=i(p,10),m=o(m,b=o(b,v,d,p,m,t[3],0,13),v,d=i(d,10),p,t[9],0,11),b,v=i(v,10),d,t[11],0,11),b=i(b,10);var y=this._b+f+b|0;this._b=this._c+h+v|0,this._c=this._d+l+d|0,this._d=this._e+n+p|0,this._e=this._a+r+m|0,this._a=y},r.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},e.exports=r}).call(this,t("buffer").Buffer)},{buffer:45,"hash-base":235,inherits:249}],258:[function(t,e,n){e.exports=t("buffer")},{buffer:45}],259:[function(t,e,n){e.exports=t("scryptsy")},{scryptsy:260}],260:[function(t,e,n){(function(n){function r(t,e,r,i,o){if(n.isBuffer(t)&&n.isBuffer(r))t.copy(r,i,e,e+o);else for(;o--;)r[i++]=t[e++]}var i=t("pbkdf2").pbkdf2Sync,o=2147483647;e.exports=function(t,e,s,a,c,u,f){function h(t,e,n,i){var o;for(r(t,e+64*(2*i-1),_,0,64),o=0;o<2*i;o++)p(t,64*o,_,0,64),d(_),r(_,0,t,n+64*o,64);for(o=0;o>>32-e}function d(t){var e;for(e=0;e<16;e++)y[e]=(255&t[4*e+0])<<0,y[e]|=(255&t[4*e+1])<<8,y[e]|=(255&t[4*e+2])<<16,y[e]|=(255&t[4*e+3])<<24;for(r(y,0,g,0,16),e=8;e>0;e-=2)g[4]^=l(g[0]+g[12],7),g[8]^=l(g[4]+g[0],9),g[12]^=l(g[8]+g[4],13),g[0]^=l(g[12]+g[8],18),g[9]^=l(g[5]+g[1],7),g[13]^=l(g[9]+g[5],9),g[1]^=l(g[13]+g[9],13),g[5]^=l(g[1]+g[13],18),g[14]^=l(g[10]+g[6],7),g[2]^=l(g[14]+g[10],9),g[6]^=l(g[2]+g[14],13),g[10]^=l(g[6]+g[2],18),g[3]^=l(g[15]+g[11],7),g[7]^=l(g[3]+g[15],9),g[11]^=l(g[7]+g[3],13),g[15]^=l(g[11]+g[7],18),g[1]^=l(g[0]+g[3],7),g[2]^=l(g[1]+g[0],9),g[3]^=l(g[2]+g[1],13),g[0]^=l(g[3]+g[2],18),g[6]^=l(g[5]+g[4],7),g[7]^=l(g[6]+g[5],9),g[4]^=l(g[7]+g[6],13),g[5]^=l(g[4]+g[7],18),g[11]^=l(g[10]+g[9],7),g[8]^=l(g[11]+g[10],9),g[9]^=l(g[8]+g[11],13),g[10]^=l(g[9]+g[8],18),g[12]^=l(g[15]+g[14],7),g[13]^=l(g[12]+g[15],9),g[14]^=l(g[13]+g[12],13),g[15]^=l(g[14]+g[13],18);for(e=0;e<16;++e)y[e]=g[e]+y[e];for(e=0;e<16;e++){var n=4*e;t[n+0]=y[e]>>0&255,t[n+1]=y[e]>>8&255,t[n+2]=y[e]>>16&255,t[n+3]=y[e]>>24&255}}function p(t,e,n,r,i){for(var o=0;o 0 and a power of 2");if(s>o/128/a)throw Error("Parameter N is too large");if(a>o/128/c)throw Error("Parameter r is too large");var m,b=new n(256*a),v=new n(128*a*s),y=new Int32Array(16),g=new Int32Array(16),_=new n(64),w=i(t,e,1,128*c*a,"sha256");if(f){var x=c*s*2,k=0;m=function(){++k%1e3==0&&f({current:k,total:x,percent:k/x*100})}}for(var S=0;S=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(e,this._blockSize-4);var n=this._update(this._block)||this._hash();return t?n.toString(t):n},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n}).call(this,t("buffer").Buffer)},{buffer:45}],262:[function(t,e,n){arguments[4][141][0].apply(n,arguments)},{"./sha":263,"./sha1":264,"./sha224":265,"./sha256":266,"./sha384":267,"./sha512":268,dup:141}],263:[function(t,e,n){(function(n){function r(){this.init(),this._w=f,c.call(this,64,56)}function i(t){return t<<5|t>>>27}function o(t){return t<<30|t>>>2}function s(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}var a=t("inherits"),c=t("./hash"),u=[1518500249,1859775393,-1894007588,-899497514],f=new Array(80);a(r,c),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,a=0|this._c,c=0|this._d,f=0|this._e,h=0;h<16;++h)e[h]=t.readInt32BE(4*h);for(;h<80;++h)e[h]=e[h-3]^e[h-8]^e[h-14]^e[h-16];for(var l=0;l<80;++l){var d=~~(l/20),p=i(n)+s(d,r,a,c)+f+e[l]+u[d]|0;f=c,c=a,a=o(r),r=n,n=p}this._a=n+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=c+this._d|0,this._e=f+this._e|0},r.prototype._hash=function(){var t=new n(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":261,buffer:45,inherits:249}],264:[function(t,e,n){(function(n){function r(){this.init(),this._w=h,u.call(this,64,56)}function i(t){return t<<1|t>>>31}function o(t){return t<<5|t>>>27}function s(t){return t<<30|t>>>2}function a(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}var c=t("inherits"),u=t("./hash"),f=[1518500249,1859775393,-1894007588,-899497514],h=new Array(80);c(r,u),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,c=0|this._c,u=0|this._d,h=0|this._e,l=0;l<16;++l)e[l]=t.readInt32BE(4*l);for(;l<80;++l)e[l]=i(e[l-3]^e[l-8]^e[l-14]^e[l-16]);for(var d=0;d<80;++d){var p=~~(d/20),m=o(n)+a(p,r,c,u)+h+e[d]+f[p]|0;h=u,u=c,c=s(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=c+this._c|0,this._d=u+this._d|0,this._e=h+this._e|0},r.prototype._hash=function(){var t=new n(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":261,buffer:45,inherits:249}],265:[function(t,e,n){(function(n){function r(){this.init(),this._w=a,s.call(this,64,56)}var i=t("inherits"),o=t("./sha256"),s=t("./hash"),a=new Array(64);i(r,o),r.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},r.prototype._hash=function(){var t=new n(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":261,"./sha256":266,buffer:45,inherits:249}],266:[function(t,e,n){(function(n){function r(){this.init(),this._w=d,h.call(this,64,56)}function i(t,e,n){return n^t&(e^n)}function o(t,e,n){return t&e|n&(t|e)}function s(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function a(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function c(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function u(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}var f=t("inherits"),h=t("./hash"),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],d=new Array(64);f(r,h),r.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,f=0|this._c,h=0|this._d,d=0|this._e,p=0|this._f,m=0|this._g,b=0|this._h,v=0;v<16;++v)e[v]=t.readInt32BE(4*v);for(;v<64;++v)e[v]=u(e[v-2])+e[v-7]+c(e[v-15])+e[v-16]|0;for(var y=0;y<64;++y){var g=b+a(d)+i(d,p,m)+l[y]+e[y]|0,_=s(n)+o(n,r,f)|0;b=m,m=p,p=d,d=h+g|0,h=f,f=r,r=n,n=g+_|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=f+this._c|0,this._d=h+this._d|0,this._e=d+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},r.prototype._hash=function(){var t=new n(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":261,buffer:45,inherits:249}],267:[function(t,e,n){(function(n){function r(){this.init(),this._w=a,s.call(this,128,112)}var i=t("inherits"),o=t("./sha512"),s=t("./hash"),a=new Array(160);i(r,o),r.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},r.prototype._hash=function(){function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}var e=new n(48);return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":261,"./sha512":268,buffer:45,inherits:249}],268:[function(t,e,n){(function(n){function r(){this.init(),this._w=b,p.call(this,128,112)}function i(t,e,n){return n^t&(e^n)}function o(t,e,n){return t&e|n&(t|e)}function s(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function a(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function c(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function u(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function f(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function h(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function l(t,e){return t>>>0>>0?1:0}var d=t("inherits"),p=t("./hash"),m=[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],b=new Array(160);d(r,p),r.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,d=0|this._ch,p=0|this._dh,b=0|this._eh,v=0|this._fh,y=0|this._gh,g=0|this._hh,_=0|this._al,w=0|this._bl,x=0|this._cl,k=0|this._dl,S=0|this._el,M=0|this._fl,E=0|this._gl,j=0|this._hl,C=0;C<32;C+=2)e[C]=t.readInt32BE(4*C),e[C+1]=t.readInt32BE(4*C+4);for(;C<160;C+=2){var A=e[C-30],T=e[C-30+1],I=c(A,T),P=u(T,A),B=f(A=e[C-4],T=e[C-4+1]),F=h(T,A),R=e[C-14],O=e[C-14+1],N=e[C-32],L=e[C-32+1],D=P+O|0,q=I+R+l(D,P)|0;q=(q=q+B+l(D=D+F|0,F)|0)+N+l(D=D+L|0,L)|0,e[C]=q,e[C+1]=D}for(var z=0;z<160;z+=2){q=e[z],D=e[z+1];var U=o(n,r,d),H=o(_,w,x),V=s(n,_),W=s(_,n),K=a(b,S),X=a(S,b),$=m[z],G=m[z+1],J=i(b,v,y),Z=i(S,M,E),Q=j+X|0,Y=g+K+l(Q,j)|0;Y=(Y=(Y=Y+J+l(Q=Q+Z|0,Z)|0)+$+l(Q=Q+G|0,G)|0)+q+l(Q=Q+D|0,D)|0;var tt=W+H|0,et=V+U+l(tt,W)|0;g=y,j=E,y=v,E=M,v=b,M=S,b=p+Y+l(S=k+Q|0,k)|0,p=d,k=x,d=r,x=w,r=n,w=_,n=Y+et+l(_=Q+tt|0,Q)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+x|0,this._dl=this._dl+k|0,this._el=this._el+S|0,this._fl=this._fl+M|0,this._gl=this._gl+E|0,this._hl=this._hl+j|0,this._ah=this._ah+n+l(this._al,_)|0,this._bh=this._bh+r+l(this._bl,w)|0,this._ch=this._ch+d+l(this._cl,x)|0,this._dh=this._dh+p+l(this._dl,k)|0,this._eh=this._eh+b+l(this._el,S)|0,this._fh=this._fh+v+l(this._fl,M)|0,this._gh=this._gh+y+l(this._gl,E)|0,this._hh=this._hh+g+l(this._hl,j)|0},r.prototype._hash=function(){function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}var e=new n(64);return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":261,buffer:45,inherits:249}],269:[function(t,e,n){arguments[4][163][0].apply(n,arguments)},{dup:163}],270:[function(t,e,n){(function(t){var n;if(t.crypto&&crypto.getRandomValues){var r=new Uint8Array(16);n=function(){return crypto.getRandomValues(r),r}}if(!n){var i=new Array(16);n=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}e.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],271:[function(t,e,n){function r(t,e){var n=e||0,r=s;return r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]}function i(t,e,n){var i=e&&n||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null);var s=(t=t||{}).random||(t.rng||o)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,e)for(var a=0;a<16;a++)e[i+a]=s[a];return e||r(s)}for(var o=t("./rng"),s=[],a={},c=0;c<256;c++)s[c]=(c+256).toString(16).substr(1),a[s[c]]=c;var u=o(),f=[1|u[0],u[1],u[2],u[3],u[4],u[5]],h=16383&(u[6]<<8|u[7]),l=0,d=0,p=i;p.v1=function(t,e,n){var i=e&&n||0,o=e||[],s=void 0!==(t=t||{}).clockseq?t.clockseq:h,a=void 0!==t.msecs?t.msecs:(new Date).getTime(),c=void 0!==t.nsecs?t.nsecs:d+1,u=a-l+(c-d)/1e4;if(u<0&&void 0===t.clockseq&&(s=s+1&16383),(u<0||a>l)&&void 0===t.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=a,d=c,h=s;var p=(1e4*(268435455&(a+=122192928e5))+c)%4294967296;o[i++]=p>>>24&255,o[i++]=p>>>16&255,o[i++]=p>>>8&255,o[i++]=255&p;var m=a/4294967296*1e4&268435455;o[i++]=m>>>8&255,o[i++]=255&m,o[i++]=m>>>24&15|16,o[i++]=m>>>16&255,o[i++]=s>>>8|128,o[i++]=255&s;for(var b=t.node||f,v=0;v<6;v++)o[i+v]=b[v];return e||r(o)},p.v4=i,p.parse=function(t,e,n){var r=e&&n||0,i=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){i<16&&(e[r+i++]=a[t])});i<16;)e[r+i++]=0;return e},p.unparse=r,e.exports=p},{"./rng":270}],272:[function(t,e,n){(function(n){function r(t){this.length=0,this._accounts=t,this.defaultKeyName="web3js_wallet"}var i=t("underscore"),o=t("bluebird"),s=t("eth-lib/src/account"),a=t("eth-lib/src/hash"),c=t("eth-lib/src/rlp"),u=t("crypto"),f=t("scrypt.js"),h=t("uuid"),l=t("web3-utils"),d=t("web3-core-helpers"),p=function(t){return i.isUndefined(t)||i.isNull(t)},m=function(t){t&&(this.eth=t.eth?t.eth:t),this.wallet=new r(this)};m.prototype._addAccountFunctions=function(t){var e=this;return t.signTransaction=function(n,r){return e.signTransaction(n,t.privateKey,r)},t.sign=function(n){return e.sign(n,t.privateKey)},t.encrypt=function(n,r){return e.encrypt(t.privateKey,n,r)},t},m.prototype.create=function(t){return this._addAccountFunctions(s.create(t||l.randomHex(32)))},m.prototype.privateKeyToAccount=function(t){return this._addAccountFunctions(s.fromPrivate(t))},m.prototype.signTransaction=function(t,e,n){function r(t){if(!t.gas&&!t.gasLimit)throw new Error('"gas" is missing');var r={nonce:l.numberToHex(t.nonce),to:t.to?d.formatters.inputAddressFormatter(t.to):"0x",data:t.data||"0x",value:t.value?l.numberToHex(t.value):"0x",gas:l.numberToHex(t.gasLimit||t.gas),gasPrice:l.numberToHex(t.gasPrice),chainId:l.numberToHex(t.chainId)},o=a.keccak256(s.transactionSigningData(r)),u=s.signTransaction(r,e),f=c.decode(u),h={messageHash:o,v:f[6],r:f[7],s:f[8],rawTransaction:u};return i.isFunction(n)&&n(null,h),h}var u=this;return void 0!==t.nonce&&void 0!==t.chainId&&void 0!==t.gasPrice?r(t):u&&u.eth&&u.eth.net?o.all([p(t.chainId)?u.eth.net.getId():t.chainId,p(t.gasPrice)?u.eth.getGasPrice():t.gasPrice,p(t.nonce)?u.eth.getTransactionCount(u.privateKeyToAccount(e).address):t.nonce]).then(function(e){if(p(e[0])||p(e[1])||p(e[2]))throw new Error('One of the values "chainId", "gasPrice", or "nonce" couldn\'t be fetched: '+JSON.stringify(e));return r(i.extend(t,{chainId:e[0],gasPrice:e[1],nonce:e[2]}))}):o.reject(new Error('The Eth package is set bound. Please set using "accounts.eth = eth", or provide "nonce", "chainId" and "gasPrice" in the transaction yourself.'))},m.prototype.recoverTransaction=function(t){return s.recoverTransaction(t)},m.prototype.hashMessage=function(t){var e=l.isHex(t)?l.hexToUtf8(t):t,n="Ethereum Signed Message:\n"+e.length+e;return a.keccak256s(n)},m.prototype.sign=function(t,e){var n=this.hashMessage(t),r=s.sign(n,e),i=s.decodeSignature(r);return{message:t,messageHash:n,v:i[0],r:i[1],s:i[2],signature:r}},m.prototype.recover=function(t,e){return i.isObject(t)?this.recover(t.messageHash,s.encodeSignature([t.v,t.r,t.s])):(l.isHex(t)||(t=this.hashMessage(t)),4===arguments.length?this.recover(t,s.encodeSignature([].slice.call(arguments,1,4))):s.recover(t,e))},m.prototype.decrypt=function(t,e,r){if(!i.isString(e))throw new Error("No password given.");var o=i.isObject(t)?t:JSON.parse(r?t.toLowerCase():t);if(3!==o.version)throw new Error("Not a valid V3 wallet");var s,a;if("scrypt"===o.crypto.kdf)a=o.crypto.kdfparams,s=f(new n(e),new n(a.salt,"hex"),a.n,a.r,a.p,a.dklen);else{if("pbkdf2"!==o.crypto.kdf)throw new Error("Unsupported key derivation scheme");if("hmac-sha256"!==(a=o.crypto.kdfparams).prf)throw new Error("Unsupported parameters to PBKDF2");s=u.pbkdf2Sync(new n(e),new n(a.salt,"hex"),a.c,a.dklen,"sha256")}var c=new n(o.crypto.ciphertext,"hex");if(l.sha3(n.concat([s.slice(16,32),c])).replace("0x","")!==o.crypto.mac)throw new Error("Key derivation failed - possibly wrong password");var h=u.createDecipheriv(o.crypto.cipher,s.slice(0,16),new n(o.crypto.cipherparams.iv,"hex")),d="0x"+n.concat([h.update(c),h.final()]).toString("hex");return this.privateKeyToAccount(d)},m.prototype.encrypt=function(t,e,r){var i,o=this.privateKeyToAccount(t),s=(r=r||{}).salt||u.randomBytes(32),a=r.iv||u.randomBytes(16),c=r.kdf||"scrypt",d={dklen:r.dklen||32,salt:s.toString("hex")};if("pbkdf2"===c)d.c=r.c||262144,d.prf="hmac-sha256",i=u.pbkdf2Sync(new n(e),s,d.c,d.dklen,"sha256");else{if("scrypt"!==c)throw new Error("Unsupported kdf");d.n=r.n||8192,d.r=r.r||8,d.p=r.p||1,i=f(new n(e),s,d.n,d.r,d.p,d.dklen)}var p=u.createCipheriv(r.cipher||"aes-128-ctr",i.slice(0,16),a);if(!p)throw new Error("Unsupported cipher");var m=n.concat([p.update(new n(o.privateKey.replace("0x",""),"hex")),p.final()]),b=l.sha3(n.concat([i.slice(16,32),new n(m,"hex")])).replace("0x","");return{version:3,id:h.v4({random:r.uuid||u.randomBytes(16)}),address:o.address.toLowerCase().replace("0x",""),crypto:{ciphertext:m.toString("hex"),cipherparams:{iv:a.toString("hex")},cipher:r.cipher||"aes-128-ctr",kdf:c,kdfparams:d,mac:b.toString("hex")}}},r.prototype.create=function(t,e){for(var n=0;n=2?e.slice(2):e;var n=f.decodeParameters(t,e);return 1===n.__length__?n[0]:(delete n.__length__,n)},h.prototype.deploy=function(t,e){if(t=t||{},t.arguments=t.arguments||[],!(t=this._getOrSetDefaultOptions(t)).data)return o._fireError(new Error('No "data" specified in neither the given options, nor the default options.'),null,null,e);var n=r.find(this.options.jsonInterface,function(t){return"constructor"===t.type})||{};return n.signature="constructor",this._createTxObject.apply({method:n,parent:this,deployData:t.data},t.arguments)},h.prototype._generateEventOptions=function(){var t=Array.prototype.slice.call(arguments),e=this._getCallback(t),n=r.isObject(t[t.length-1])?t.pop():{},i=r.isString(t[0])?t[0]:"allevents";if(!(i="allevents"===i.toLowerCase()?{name:"ALLEVENTS",jsonInterface:this.options.jsonInterface}:this.options.jsonInterface.find(function(t){return"event"===t.type&&(t.name===i||t.signature==="0x"+i.replace("0x",""))})))throw new Error('Event "'+i.name+"\" doesn't exist in this contract.");if(!o.isAddress(this.options.address))throw new Error("This contract object doesn't have address set yet, please set an address first.");return{params:this._encodeEventABI(i,n),event:i,callback:e}},h.prototype.clone=function(){return new h(this.options.jsonInterface,this.options.address,this.options)},h.prototype.once=function(t,e,n){var i=Array.prototype.slice.call(arguments);if(!(n=this._getCallback(i)))throw new Error("Once requires a callback as the second parameter.");e&&delete e.fromBlock,this._on(t,e,function(t,e,i){i.unsubscribe(),r.isFunction(n)&&n(t,e,i)})},h.prototype._on=function(){var t=this._generateEventOptions.apply(this,arguments);this._checkListener("newListener",t.event.name,t.callback),this._checkListener("removeListener",t.event.name,t.callback);var e=new s({subscription:{params:1,inputFormatter:[a.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(t.event),subscriptionHandler:function(t){t.removed?this.emit("changed",t):this.emit("data",t),r.isFunction(this.callback)&&this.callback(null,t,this)}},type:"eth",requestManager:this._eth._requestManager});return e.subscribe("logs",t.params,t.callback||function(){}),e},h.prototype.getPastEvents=function(){var t=this._generateEventOptions.apply(this,arguments),e=new i({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[a.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(t.event)});e.setRequestManager(this._eth._requestManager);var n=e.buildCall();return e=null,n(t.params,t.callback)},h.prototype._createTxObject=function(){var t={};if("function"===this.method.type&&(t.call=this.parent._executeMethod.bind(t,"call"),t.call.request=this.parent._executeMethod.bind(t,"call",!0)),t.send=this.parent._executeMethod.bind(t,"send"),t.send.request=this.parent._executeMethod.bind(t,"send",!0),t.encodeABI=this.parent._encodeMethodABI.bind(t),t.estimateGas=this.parent._executeMethod.bind(t,"estimate"),arguments.length){if(arguments.length!==this.method.inputs.length)throw c.InvalidNumberOfParams(arguments.length,this.method.inputs.length,this.method.name);t.arguments=arguments}return t._method=this.method,t._parent=this.parent,this.deployData&&(t._deployData=this.deployData),t},h.prototype._processExecuteArguments=function(t,e){var n={};if(n.type=t.shift(),n.callback=this._parent._getCallback(t),"call"===n.type&&!0!==t[t.length-1]&&(r.isString(t[t.length-1])||isFinite(t[t.length-1]))&&(n.defaultBlock=t.pop()),n.options=r.isObject(t[t.length-1])?t.pop():{},n.generateRequest=!0===t[t.length-1]&&t.pop(),n.options=this._parent._getOrSetDefaultOptions(n.options),n.options.data=this.encodeABI(),!this._deployData&&!o.isAddress(this._parent.options.address))throw new Error("This contract object doesn't have address set yet, please set an address first.");return this._deployData||(n.options.to=this._parent.options.address),n.options.data?n:o._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."),e.eventEmitter,e.reject,n.callback)},h.prototype._executeMethod=function(){var t=this,e=this._parent._processExecuteArguments.call(this,Array.prototype.slice.call(arguments),n),n=u("send"!==e.type);if(e.generateRequest){var i={params:[a.inputCallFormatter(e.options),a.inputDefaultBlockNumberFormatter(e.defaultBlock)],callback:e.callback};return"call"===e.type?(i.method="eth_call",i.format=this._parent._decodeMethodReturn.bind(null,this._method.outputs)):i.method="eth_sendTransaction",i}switch(e.type){case"estimate":return this._parent._eth.estimateGas(e.options,e.callback);case"call":return this._parent._eth.call(e.options,e.defaultBlock,function(i,s){if(s&&(s=t._parent._decodeMethodReturn(t._method.outputs,s)),i)return o._fireError(i,null,n.reject,e.callback);r.isFunction(e.callback)&&e.callback(null,s),n.resolve(s)}),n.eventEmitter;case"send":if(!o.isAddress(e.options.from))return o._fireError(new Error('No "from" address specified in neither the given options, nor the default options.'),n.eventEmitter,n.reject,e.callback);if(r.isBoolean(this._method.payable)&&!this._method.payable&&e.options.value&&e.options.value>0)return o._fireError(new Error("Can not send value to non-payable contract method or constructor"),n.eventEmitter,n.reject,e.callback);var s={receiptFormatter:function(e){if(r.isArray(e.logs)){var n=r.map(e.logs,function(e){return t._parent._decodeEventABI.call({name:"ALLEVENTS",jsonInterface:t._parent.options.jsonInterface},e)});e.events={};var i=0;n.forEach(function(t){t.event?e.events[t.event]=t:(e.events[i]=t,i++)}),delete e.logs}return e},contractDeployFormatter:function(e){var n=t._parent.clone();return n.options.address=e.contractAddress,n}};return this._parent._eth.sendTransaction.apply(s,[e.options,e.callback])}},e.exports=h},{underscore:273,"web3-core-helpers":178,"web3-core-method":180,"web3-core-promievent":183,"web3-core-subscriptions":191,"web3-eth-abi":197,"web3-utils":304}],275:[function(t,e,n){arguments[4][209][0].apply(n,arguments)},{dup:209}],276:[function(t,e,n){var r=t("web3-utils"),i=t("bn.js"),o=function(t,e){for(var n=t;n.length<2*e;)n="0"+n;return n},s=function(t){var e="A".charCodeAt(0),n="Z".charCodeAt(0);return t=t.toUpperCase(),(t=t.substr(4)+t.substr(0,4)).split("").map(function(t){var r=t.charCodeAt(0);return r>=e&&r<=n?r-e+10:t}).join("")},a=function(t){for(var e,n=t;n.length>2;)e=n.slice(0,9),n=parseInt(e,10)%97+n.slice(e.length);return parseInt(n,10)%97},c=function(t){this._iban=t};c.toAddress=function(t){if(!(t=new c(t)).isDirect())throw new Error("IBAN is indirect and can't be converted");return t.toAddress()},c.toIban=function(t){return c.fromAddress(t).toString()},c.fromAddress=function(t){if(!r.isAddress(t))throw new Error("Provided address is not a valid address: "+t);t=t.replace("0x","").replace("0X","");var e=new i(t,16).toString(36),n=o(e,15);return c.fromBban(n.toUpperCase())},c.fromBban=function(t){var e=("0"+(98-a(s("XE00"+t)))).slice(-2);return new c("XE"+e+t)},c.createIndirect=function(t){return c.fromBban("ETH"+t.institution+t.identifier)},c.isValid=function(t){return new c(t).isValid()},c.prototype.isValid=function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===a(s(this._iban))},c.prototype.isDirect=function(){return 34===this._iban.length||35===this._iban.length},c.prototype.isIndirect=function(){return 20===this._iban.length},c.prototype.checksum=function(){return this._iban.substr(2,2)},c.prototype.institution=function(){return this.isIndirect()?this._iban.substr(7,4):""},c.prototype.client=function(){return this.isIndirect()?this._iban.substr(11):""},c.prototype.toAddress=function(){if(this.isDirect()){var t=this._iban.substr(4),e=new i(t,36);return r.toChecksumAddress(e.toString(16,20))}return""},c.prototype.toString=function(){return this._iban},e.exports=c},{"bn.js":275,"web3-utils":304}],277:[function(t,e,n){var r=t("web3-core"),i=t("web3-core-method"),o=t("web3-utils"),s=t("web3-net"),a=t("web3-core-helpers").formatters,c=function(){var t=this;r.packageInit(this,arguments),u().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}),this.net=new s(this.currentProvider)};r.addProviders(c);var u=function(){var t=new i({name:"getAccounts",call:"personal_listAccounts",params:0,outputFormatter:o.toChecksumAddress}),e=new i({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:o.toChecksumAddress}),n=new i({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[a.inputAddressFormatter,null,null]}),r=new i({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[a.inputAddressFormatter]}),s=new i({name:"importRawKey",call:"personal_importRawKey",params:2});return[t,e,n,new i({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[a.inputTransactionFormatter,null]}),r,s,new i({name:"sign",call:"personal_sign",params:3,inputFormatter:[a.inputSignFormatter,a.inputAddressFormatter,null]}),new i({name:"ecRecover",call:"personal_ecRecover",params:2,inputFormatter:[a.inputSignFormatter,null]})]};e.exports=c},{"web3-core":194,"web3-core-helpers":178,"web3-core-method":180,"web3-net":281,"web3-utils":304}],278:[function(t,e,n){arguments[4][163][0].apply(n,arguments)},{dup:163}],279:[function(t,e,n){var r=t("underscore");e.exports=function(t){var e,n=this;return this.net.getId().then(function(t){return e=t,n.getBlock(0)}).then(function(n){var i="private";return"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"===n.hash&&1===e&&(i="main"),"0cd786a2425d16f152c658316c423e6ce1181e15c3295826d7c9904cba9ce303"===n.hash&&2===e&&(i="morden"),"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d"===n.hash&&3===e&&(i="ropsten"),r.isFunction(t)&&t(null,i),i}).catch(function(e){if(!r.isFunction(t))throw e;t(e)})}},{underscore:278}],280:[function(t,e,n){var r=t("underscore"),i=t("web3-core"),o=t("web3-core-helpers"),s=t("web3-core-subscriptions").subscriptions,a=t("web3-core-method"),c=t("web3-utils"),u=t("web3-net"),f=t("web3-eth-personal"),h=t("web3-eth-contract"),l=t("web3-eth-iban"),d=t("web3-eth-accounts"),p=t("web3-eth-abi"),m=t("./getNetworkType.js"),b=o.formatters,v=function(t){return r.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getBlockByHash":"eth_getBlockByNumber"},y=function(t){return r.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex"},g=function(t){return r.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex"},_=function(t){return r.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber"},w=function(t){return r.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber"},x=function(){var t=this;i.packageInit(this,arguments),this.clearSubscriptions=t._requestManager.clearSubscriptions,k().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager,t)}),this.net=new u(this.currentProvider),this.net.getNetworkType=m.bind(this),this.accounts=new d(this),this.personal=new f(this.currentProvider),this.Contract=h,this.Contract.prototype._eth=this,this.Iban=l,this.abi=p};i.addProviders(x),Object.defineProperty(x.prototype,"defaultBlock",{get:function(){return o.config.defaultBlock},set:function(t){return o.config.defaultBlock=t,t},enumerable:!0}),Object.defineProperty(x.prototype,"defaultAccount",{get:function(){return o.config.defaultAccount},set:function(t){return o.config.defaultAccount=t,t},enumerable:!0});var k=function(){var t=new a({name:"getProtocolVersion",call:"eth_protocolVersion",params:0}),e=new a({name:"getCoinbase",call:"eth_coinbase",params:0}),n=new a({name:"isMining",call:"eth_mining",params:0}),i=new a({name:"getHashrate",call:"eth_hashrate",params:0,outputFormatter:c.hexToNumber}),o=new a({name:"isSyncing",call:"eth_syncing",params:0,outputFormatter:b.outputSyncingFormatter}),u=new a({name:"getGasPrice",call:"eth_gasPrice",params:0,outputFormatter:b.outputBigNumberFormatter}),f=new a({name:"getAccounts",call:"eth_accounts",params:0,outputFormatter:c.toChecksumAddress}),h=new a({name:"getBlockNumber",call:"eth_blockNumber",params:0,outputFormatter:c.hexToNumber}),l=new a({name:"getBalance",call:"eth_getBalance",params:2,inputFormatter:[b.inputAddressFormatter,b.inputDefaultBlockNumberFormatter],outputFormatter:b.outputBigNumberFormatter}),d=new a({name:"getStorageAt",call:"eth_getStorageAt",params:3,inputFormatter:[b.inputAddressFormatter,c.numberToHex,b.inputDefaultBlockNumberFormatter]}),p=new a({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[b.inputAddressFormatter,b.inputDefaultBlockNumberFormatter]}),m=new a({name:"getBlock",call:v,params:2,inputFormatter:[b.inputBlockNumberFormatter,function(t){return!!t}],outputFormatter:b.outputBlockFormatter}),x=new a({name:"getUncle",call:g,params:2,inputFormatter:[b.inputBlockNumberFormatter,c.numberToHex],outputFormatter:b.outputBlockFormatter}),k=new a({name:"getBlockTransactionCount",call:_,params:1,inputFormatter:[b.inputBlockNumberFormatter],outputFormatter:c.hexToNumber}),S=new a({name:"getBlockUncleCount",call:w,params:1,inputFormatter:[b.inputBlockNumberFormatter],outputFormatter:c.hexToNumber}),M=new a({name:"getTransaction",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:b.outputTransactionFormatter}),E=new a({name:"getTransactionFromBlock",call:y,params:2,inputFormatter:[b.inputBlockNumberFormatter,c.numberToHex],outputFormatter:b.outputTransactionFormatter}),j=new a({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:b.outputTransactionReceiptFormatter}),C=new a({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[null,b.inputDefaultBlockNumberFormatter],outputFormatter:c.hexToNumber}),A=new a({name:"sendSignedTransaction",call:"eth_sendRawTransaction",params:1,inputFormatter:[null]}),T=new a({name:"signTransaction",call:"eth_signTransaction",params:1,inputFormatter:[b.inputTransactionFormatter]}),I=new a({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[b.inputTransactionFormatter]}),P=new a({name:"sign",call:"eth_sign",params:2,inputFormatter:[b.inputSignFormatter,b.inputAddressFormatter],transformPayload:function(t){return t.params.reverse(),t}}),B=new a({name:"call",call:"eth_call",params:2,inputFormatter:[b.inputCallFormatter,b.inputDefaultBlockNumberFormatter]}),F=new a({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[b.inputCallFormatter],outputFormatter:c.hexToNumber});return[t,e,n,i,o,u,f,h,l,d,p,m,x,new a({name:"getCompilers",call:"eth_getCompilers",params:0}),k,S,M,E,j,C,B,F,A,T,I,P,new a({name:"compile.solidity",call:"eth_compileSolidity",params:1}),new a({name:"compile.lll",call:"eth_compileLLL",params:1}),new a({name:"compile.serpent",call:"eth_compileSerpent",params:1}),new a({name:"submitWork",call:"eth_submitWork",params:3}),new a({name:"getWork",call:"eth_getWork",params:0}),new a({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[b.inputLogFormatter],outputFormatter:b.outputLogFormatter}),new s({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:b.outputBlockFormatter},pendingTransactions:{params:0},logs:{params:1,inputFormatter:[b.inputLogFormatter],outputFormatter:b.outputLogFormatter,subscriptionHandler:function(t){t.removed?this.emit("changed",t):this.emit("data",t),r.isFunction(this.callback)&&this.callback(null,t,this)}},syncing:{params:0,outputFormatter:b.outputSyncingFormatter,subscriptionHandler:function(t){var e=this;!0!==this._isSyncing?(this._isSyncing=!0,this.emit("changed",e._isSyncing),r.isFunction(this.callback)&&this.callback(null,e._isSyncing,this),setTimeout(function(){e.emit("data",t),r.isFunction(e.callback)&&e.callback(null,t,e)},0)):(this.emit("data",t),r.isFunction(e.callback)&&this.callback(null,t,this),clearTimeout(this._isSyncingTimeout),this._isSyncingTimeout=setTimeout(function(){t.currentBlock>t.highestBlock-200&&(e._isSyncing=!1,e.emit("changed",e._isSyncing),r.isFunction(e.callback)&&e.callback(null,e._isSyncing,e))},500))}}}})]};e.exports=x},{"./getNetworkType.js":279,underscore:278,"web3-core":194,"web3-core-helpers":178,"web3-core-method":180,"web3-core-subscriptions":191,"web3-eth-abi":197,"web3-eth-accounts":272,"web3-eth-contract":274,"web3-eth-iban":276,"web3-eth-personal":277,"web3-net":281,"web3-utils":304}],281:[function(t,e,n){var r=t("web3-core"),i=t("web3-core-method"),o=t("web3-utils"),s=function(){var t=this;r.packageInit(this,arguments),a().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})};r.addProviders(s);var a=function(){return[new i({name:"getId",call:"net_version",params:0,outputFormatter:o.hexToNumber}),new i({name:"isListening",call:"net_listening",params:0}),new i({name:"getPeerCount",call:"net_peerCount",params:0,outputFormatter:o.hexToNumber})]};e.exports=s},{"web3-core":194,"web3-core-method":180,"web3-utils":304}],282:[function(t,e,n){e.exports=XMLHttpRequest},{}],283:[function(t,e,n){var r=t("web3-core-helpers").errors,i=t("xhr2"),o=function(t,e){this.host=t||"http://localhost:8545",this.timeout=e||0,this.connected=!1};o.prototype.send=function(t,e){var n=this,o=new i;o.open("POST",this.host,!0),o.setRequestHeader("Content-Type","application/json"),o.onreadystatechange=function(){if(4===o.readyState&&1!==o.timeout){var t=o.responseText,i=null;try{t=JSON.parse(t)}catch(t){i=r.InvalidResponse(o.responseText)}n.connected=!0,e(i,t)}},o.ontimeout=function(){n.connected=!1,e(r.ConnectionTimeout(this.timeout))};try{o.send(JSON.stringify(t))}catch(t){this.connected=!1,e(r.InvalidConnection(this.host))}},e.exports=o},{"web3-core-helpers":178,xhr2:282}],284:[function(t,e,n){!function(t,r,i,o,s,a){function c(t,e){return function(){return t.call(this,e.apply(this,arguments))}}function u(t){return function(e){return e[t]}}function f(t,e){return e.apply(a,t)}function h(t){var e=t.length-1,n=i.prototype.slice;if(0==e)return function(){return t.call(this,n.call(arguments))};if(1==e)return function(){return t.call(this,arguments[0],n.call(arguments,1))};var r=i(t.length);return function(){for(var i=0;id&&(n("Max buffer length exceeded: textNode"),t=Math.max(t,L.length)),D.length>d&&(n("Max buffer length exceeded: numberNode"),t=Math.max(t,D.length)),N=d-t+$}function n(t){L!==a&&(f(L),h(),L=a),i=o(t+"\nLn: "+J+"\nCol: "+G+"\nChr: "+s),l(z(a,a,i))}function r(t){return"\r"==t||"\n"==t||" "==t||"\t"==t}var i,s,c,u=t(yt).emit,f=t(gt).emit,h=t(_t).emit,l=t(ht).emit,d=65536,p=/[\\"\n]/g,m=0,b=m++,v=m++,y=m++,g=m++,_=m++,w=m++,x=m++,k=m++,S=m++,M=m++,E=m++,j=m++,C=m++,A=m++,T=m++,I=m++,P=m++,B=m++,F=m++,R=m++,O=m,N=d,L=a,D="",q=!1,U=!1,H=b,V=[],W=null,K=0,X=0,$=0,G=0,J=1;t(mt).on(function(t){if(!i){if(U)return n("Cannot write after close");var o=0;for(s=t[0];s&&(c=s,s=t[o++]);)switch($++,"\n"==s?(J++,G=0):G++,H){case b:if("{"===s)H=y;else if("["===s)H=_;else if(!r(s))return n("Non-whitespace before {[.");continue;case k:case y:if(r(s))continue;if(H===k)V.push(S);else{if("}"===s){f({}),h(),H=V.pop()||v;continue}V.push(g)}if('"'!==s)return n('Malformed object key should start with " ');H=x;continue;case S:case g:if(r(s))continue;if(":"===s)H===g?(V.push(g),L!==a&&(f({}),u(L),L=a),X++):L!==a&&(u(L),L=a),H=v;else if("}"===s)L!==a&&(f(L),h(),L=a),h(),X--,H=V.pop()||v;else{if(","!==s)return n("Bad object");H===g&&V.push(g),L!==a&&(f(L),h(),L=a),H=k}continue;case _:case v:if(r(s))continue;if(H===_){if(f([]),X++,H=v,"]"===s){h(),X--,H=V.pop()||v;continue}V.push(w)}if('"'===s)H=x;else if("{"===s)H=y;else if("["===s)H=_;else if("t"===s)H=M;else if("f"===s)H=C;else if("n"===s)H=P;else if("-"===s)D+=s;else if("0"===s)D+=s,H=O;else{if(-1==="123456789".indexOf(s))return n("Bad value");D+=s,H=O}continue;case w:if(","===s)V.push(w),L!==a&&(f(L),h(),L=a),H=v;else{if("]"!==s){if(r(s))continue;return n("Bad array")}L!==a&&(f(L),h(),L=a),h(),X--,H=V.pop()||v}continue;case x:L===a&&(L="");var l=o-1;t:for(;;){for(;K>0;)if(W+=s,s=t.charAt(o++),4===K?(L+=String.fromCharCode(parseInt(W,16)),K=0,l=o-1):K++,!s)break t;if('"'===s&&!q){H=V.pop()||v,L+=t.substring(l,o-1);break}if(!("\\"!==s||q||(q=!0,L+=t.substring(l,o-1),s=t.charAt(o++))))break;if(q){if(q=!1,"n"===s?L+="\n":"r"===s?L+="\r":"t"===s?L+="\t":"f"===s?L+="\f":"b"===s?L+="\b":"u"===s?(K=1,W=""):L+=s,s=t.charAt(o++),l=o-1,s)continue;break}p.lastIndex=o;var d=p.exec(t);if(!d){o=t.length+1,L+=t.substring(l,o-1);break}if(o=d.index+1,!(s=t.charAt(d.index))){L+=t.substring(l,o-1);break}}continue;case M:if(!s)continue;if("r"!==s)return n("Invalid true started with t"+s);H=E;continue;case E:if(!s)continue;if("u"!==s)return n("Invalid true started with tr"+s);H=j;continue;case j:if(!s)continue;if("e"!==s)return n("Invalid true started with tru"+s);f(!0),h(),H=V.pop()||v;continue;case C:if(!s)continue;if("a"!==s)return n("Invalid false started with f"+s);H=A;continue;case A:if(!s)continue;if("l"!==s)return n("Invalid false started with fa"+s);H=T;continue;case T:if(!s)continue;if("s"!==s)return n("Invalid false started with fal"+s);H=I;continue;case I:if(!s)continue;if("e"!==s)return n("Invalid false started with fals"+s);f(!1),h(),H=V.pop()||v;continue;case P:if(!s)continue;if("u"!==s)return n("Invalid null started with n"+s);H=B;continue;case B:if(!s)continue;if("l"!==s)return n("Invalid null started with nu"+s);H=F;continue;case F:if(!s)continue;if("l"!==s)return n("Invalid null started with nul"+s);f(null),h(),H=V.pop()||v;continue;case R:if("."!==s)return n("Leading zero not followed by .");D+=s,H=O;continue;case O:if(-1!=="0123456789".indexOf(s))D+=s;else if("."===s){if(-1!==D.indexOf("."))return n("Invalid number has two dots");D+=s}else if("e"===s||"E"===s){if(-1!==D.indexOf("e")||-1!==D.indexOf("E"))return n("Invalid number has two exponential");D+=s}else if("+"===s||"-"===s){if("e"!==c&&"E"!==c)return n("Invalid symbol in number");D+=s}else D&&(f(parseFloat(D)),h(),D=""),o--,H=V.pop()||v;continue;default:return n("Unknown state: "+H)}$>=N&&e()}}),t(bt).on(function(){if(H==b)return f({}),h(),void(U=!0);H===v&&0===X||n("Unexpected end"),L!==a&&(f(L),h(),L=a),U=!0})}function I(t,e){var n,r={};for(var i in e)t(i).on(function(t){return function(e){n=t(n,e)}}(e[i]),r);t(ut).on(function(t){var e=Q(n),r=nt(e),i=Y(n);i&&(rt(Q(i))[r]=t)}),t(ft).on(function(){var t=Q(n),e=nt(t),r=Y(n);r&&delete rt(Q(r))[e]}),t(vt).on(function(){for(var n in e)t(n).un(r)})}function P(t){var e={};return t&&t.split("\r\n").forEach(function(t){var n=t.indexOf(": ");e[t.substring(0,n)]=t.substring(n+2)}),e}function B(t,e){function n(t){return{"http:":80,"https:":443}[t]}function r(e){return e.port||n(e.protocol||t.protocol)}return!!(e.protocol&&e.protocol!=t.protocol||e.host&&e.host!=t.host||e.host&&r(e)!=r(t))}function F(t){var e=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(t)||[];return{protocol:e[1]||"",host:e[2]||"",port:e[3]||""}}function R(){return new XMLHttpRequest}function O(e,n,r,i,o,s,c){function u(){var t=n.responseText,e=t.substr(l);e&&f(e),l=G(t)}var f=e(mt).emit,h=e(ht).emit,l=0,d=!0;e(vt).on(function(){n.onreadystatechange=null,n.abort()}),"onprogress"in n&&(n.onprogress=u),n.onreadystatechange=function(){function t(){try{d&&e(pt).emit(n.status,P(n.getAllResponseHeaders())),d=!1}catch(t){}}switch(n.readyState){case 2:case 3:return t();case 4:t(),2==String(n.status)[0]?(u(),e(bt).emit()):h(z(n.status,n.responseText))}};try{n.open(r,i,!0);for(var p in s)n.setRequestHeader(p,s[p]);B(t.location,F(i))||n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.withCredentials=c,n.send(o)}catch(e){t.setTimeout(X(h,z(a,a,e)),0)}}function N(t,e){return{key:t,node:e}}function L(t){function e(t,e){var n=rt(Q(t));return v(i,n)?r(t,G(n),e):t}function n(t,e,n){rt(Q(t))[e]=n}function r(t,e,r){t&&n(t,e,r);var i=_(N(e,r),t);return o(i),i}var o=t(at).emit,s=t(ct).emit,a=t(dt).emit,c=t(lt).emit,u={};return u[gt]=function(t,i){if(!t)return a(i),r(t,it,i);var o=e(t,i),s=Y(o),c=nt(Q(o));return n(s,c,i),_(N(c,i),s)},u[_t]=function(t){return s(t),Y(t)||c(rt(Q(t)))},u[yt]=r,u}function D(t,e,n){function r(t){return function(e){return e.id==t}}var i,o;return{on:function(n,r){var s={listener:n,id:r||n};return e&&e.emit(t,n,s.id),i=_(s,i),o=_(n,o),this},emit:function(){j(o,arguments)},un:function(e){var s;i=M(i,r(e),function(t){s=t}),s&&(o=M(o,function(t){return t==s.listener}),n&&n.emit(t,s.listener,s.id))},listeners:function(){return o},hasListener:function(t){return y(A(t?r(t):m,i))}}}function q(){function t(t){return n[t]=D(t,r,i)}function e(e){return n[e]||t(e)}var n={},r=t("newListener"),i=t("removeListener");return["emit","on","un"].forEach(function(t){e[t]=h(function(n,r){f(r,e(n)[t])})}),e}function z(t,e,n){try{var r=s.parse(e)}catch(t){}return{statusCode:t,body:e,jsonBody:r,thrown:n}}function U(t,e){function n(t,e,n){var r=C(n);t(e,x(Y(k(nt,r))),x(k(rt,r)))}function r(e,r,i){var o=t(e).emit;r.on(function(t){var e=i(t);!1!==e&&n(o,rt(e),t)},e),t("removeListener").on(function(n){n==e&&(t(n).listeners()||r.un(e))})}var i={node:t(ct),path:t(at)};t("newListener").on(function(t){var n=/(node|path):(.*)/.exec(t);if(n){var o=i[n[1]];o.hasListener(t)||r(t,o,e(n[2]))}})}function H(t,e){function n(t,e,n){n=n||e;var i=r(e);return t.on(function(){var e=!1;u.forget=function(){e=!0},f(arguments,i),delete u.forget,e&&t.un(n)},n),u}function r(t){return function(){try{return t.apply(u,arguments)}catch(t){setTimeout(function(){throw t})}}}function i(e,n){return t(e+":"+n)}function o(t){return function(){var e=t.apply(this,arguments);y(e)&&(e==K.drop?m():v(e))}}function s(t,e,r){var s;s="node"==t?o(r):r,n(i(t,e),s,r)}function a(t,e){for(var n in e)s(t,n,e[n])}function c(t,e,n){return J(e)?s(t,e,n):a(t,e),u}var u,l=/^(node|path):./,d=t(lt),m=t(ft).emit,v=t(ut).emit,g=h(function(e,r){if(u[e])f(r,u[e]);else{var i=t(e),o=r[0];l.test(e)?n(i,o):i.on(o)}return u});return t(dt).on(function(t){u.root=b(t)}),t(pt).on(function(t,e){u.header=function(t){return t?e[t]:e}}),u={on:g,addListener:g,removeListener:function(e,n,r){if("done"==e)d.un(n);else if("node"==e||"path"==e)t.un(e+":"+n,r);else{var i=n;t(e).un(i)}return u},emit:t.emit,node:X(c,"node"),path:X(c,"path"),done:X(n,d),start:X(function(e,n){return t(e).on(r(n),n),u},pt),fail:t(ht).on,abort:t(vt).emit,header:p,root:p,source:e}}function V(t,e,n,r,i){var o=q();return e&&O(o,R(),t,e,n,r,i),T(o),I(o,L(o)),U(o,ot),H(o,e)}function W(t,e,n,r,i,o,a){return i=i?s.parse(s.stringify(i)):{},r?J(r)||(r=s.stringify(r),i["Content-Type"]=i["Content-Type"]||"application/json"):r=null,t(n||"GET",function(t,e){return!1===e&&(-1==t.indexOf("?")?t+="?":t+="&",t+="_="+(new Date).getTime()),t}(e,a),r,i,o||!1)}function K(t){var e=tt("resume","pause","pipe"),n=X(g,e);return t?n(t)||J(t)?W(V,t):W(V,t.url,t.method,t.body,t.headers,t.withCredentials,t.cached):V()}var X=h(function(t,e){var n=e.length;return h(function(r){for(var i=0;i=0.8.0"},gitHead:"7004c39c42ac98875ab61126e5b4a925430f592c",homepage:"https://github.com/theturtle32/WebSocket-Node",keywords:["websocket","websockets","socket","networking","comet","push","RFC-6455","realtime","server","client"],license:"Apache-2.0",main:"index",name:"websocket",optionalDependencies:{},readme:"WebSocket Client & Server Implementation for Node\n=================================================\n\n[![npm version](https://badge.fury.io/js/websocket.svg)](http://badge.fury.io/js/websocket)\n\n[![NPM Downloads](https://img.shields.io/npm/dm/websocket.svg)](https://www.npmjs.com/package/websocket)\n\n[![NPM](https://nodei.co/npm/websocket.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/websocket/)\n\n[![NPM](https://nodei.co/npm-dl/websocket.png?height=3)](https://nodei.co/npm/websocket/)\n\n[ ![Codeship Status for theturtle32/WebSocket-Node](https://codeship.com/projects/70458270-8ee7-0132-7756-0a0cf4fe8e66/status?branch=master)](https://codeship.com/projects/61106)\n\nOverview\n--------\nThis is a (mostly) pure JavaScript implementation of the WebSocket protocol versions 8 and 13 for Node. There are some example client and server applications that implement various interoperability testing protocols in the \"test/scripts\" folder.\n\nFor a WebSocket client written in ActionScript 3, see my [AS3WebScocket](https://github.com/theturtle32/AS3WebSocket) project.\n\n\nDocumentation\n=============\n\n[You can read the full API documentation in the docs folder.](docs/index.md)\n\n\nChangelog\n---------\n\n***Current Version: 1.0.24*** — Released 2016-12-28\n\n***Version 1.0.24***\n\n* Fixed a bug when using native keepalive on Node >= 6.0. (Thanks, [@prossin](https://github.com/prossin))\n* Upgrading outdated dependencies\n\n***Version 1.0.23***\n\n* Official support for Node 6.x\n* Updating dependencies. Specifically, updating nan to ^2.3.3\n\n***Version 1.0.22***\n\n* Updating to work with nan 2.x\n\n\n***Version 1.0.21***\n\n* Incremented and re-published to work around an aborted npm publish of v1.0.20.\n\n***Version 1.0.20***\n\n* Added EventTarget to the W3CWebSocket interface (Thanks, [@ibc](https://github.com/ibc)!)\n* Corrected an inaccurate error message. (Thanks, [@lekoaf](https://github.com/lekoaf)!)\n\n***Version 1.0.19***\n\n* Updated to nan v1.8.x (tested with v1.8.4)\n* Added `\"license\": \"Apache-2.0\"` to package.json via [pull request #199](https://github.com/theturtle32/WebSocket-Node/pull/199) by [@pgilad](https://github.com/pgilad). See [npm1k.org](http://npm1k.org/).\n\n[View the full changelog](CHANGELOG.md)\n\nBrowser Support\n---------------\n\nAll current browsers are fully supported.\n\n* Firefox 7-9 (Old) (Protocol Version 8)\n* Firefox 10+ (Protocol Version 13)\n* Chrome 14,15 (Old) (Protocol Version 8)\n* Chrome 16+ (Protocol Version 13)\n* Internet Explorer 10+ (Protocol Version 13)\n* Safari 6+ (Protocol Version 13)\n\n***Safari older than 6.0 is not supported since it uses a very old draft of WebSockets***\n\n***If you need to simultaneously support legacy browser versions that had implemented draft-75/draft-76/draft-00, take a look here: https://gist.github.com/1428579***\n\nBenchmarks\n----------\nThere are some basic benchmarking sections in the Autobahn test suite. I've put up a [benchmark page](http://theturtle32.github.com/WebSocket-Node/benchmarks/) that shows the results from the Autobahn tests run against AutobahnServer 0.4.10, WebSocket-Node 1.0.2, WebSocket-Node 1.0.4, and ws 0.3.4.\n\nAutobahn Tests\n--------------\nThe very complete [Autobahn Test Suite](http://autobahn.ws/testsuite/) is used by most WebSocket implementations to test spec compliance and interoperability.\n\n- [View Server Test Results](http://theturtle32.github.com/WebSocket-Node/test-report/servers/)\n\nNotes\n-----\nThis library has been used in production on [worlize.com](https://www.worlize.com) since April 2011 and seems to be stable. Your mileage may vary.\n\n**Tested with the following node versions:**\n\n- 6.2.0\n- 5.11.1\n- 4.4.4\n- 0.10.45\n\nIt may work in earlier or later versions but I'm not actively testing it outside of the listed versions. YMMV.\n\nInstallation\n------------\n\nA few users have reported difficulties building the native extensions without first manually installing node-gyp. If you have trouble building the native extensions, make sure you've got a C++ compiler, and have done `npm install -g node-gyp` first. \n\nNative extensions are optional, however, and WebSocket-Node will work even if the extensions cannot be compiled.\n\nIn your project root:\n\n $ npm install websocket\n \nThen in your code:\n\n```javascript\nvar WebSocketServer = require('websocket').server;\nvar WebSocketClient = require('websocket').client;\nvar WebSocketFrame = require('websocket').frame;\nvar WebSocketRouter = require('websocket').router;\nvar W3CWebSocket = require('websocket').w3cwebsocket;\n```\n\nNote for Windows Users\n----------------------\nBecause there is a small C++ component used for validating UTF-8 data, you will need to install a few other software packages in addition to Node to be able to build this module:\n\n- [Microsoft Visual C++](http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express)\n- [Python 2.7](http://www.python.org/download/) (NOT Python 3.x)\n\n\nCurrent Features:\n-----------------\n- Licensed under the Apache License, Version 2.0\n- Protocol version \"8\" and \"13\" (Draft-08 through the final RFC) framing and handshake\n- Can handle/aggregate received fragmented messages\n- Can fragment outgoing messages\n- Router to mount multiple applications to various path and protocol combinations\n- TLS supported for outbound connections via WebSocketClient\n- TLS supported for server connections (use https.createServer instead of http.createServer)\n - Thanks to [pors](https://github.com/pors) for confirming this!\n- Cookie setting and parsing\n- Tunable settings\n - Max Receivable Frame Size\n - Max Aggregate ReceivedMessage Size\n - Whether to fragment outgoing messages\n - Fragmentation chunk size for outgoing messages\n - Whether to automatically send ping frames for the purposes of keepalive\n - Keep-alive ping interval\n - Whether or not to automatically assemble received fragments (allows application to handle individual fragments directly)\n - How long to wait after sending a close frame for acknowledgment before closing the socket.\n- [W3C WebSocket API](http://www.w3.org/TR/websockets/) for applications running on both Node and browsers (via the `W3CWebSocket` class). \n\n\nKnown Issues/Missing Features:\n------------------------------\n- No API for user-provided protocol extensions.\n\n\nUsage Examples\n==============\n\nServer Example\n--------------\n\nHere's a short example showing a server that echos back anything sent to it, whether utf-8 or binary.\n\n```javascript\n#!/usr/bin/env node\nvar WebSocketServer = require('websocket').server;\nvar http = require('http');\n\nvar server = http.createServer(function(request, response) {\n console.log((new Date()) + ' Received request for ' + request.url);\n response.writeHead(404);\n response.end();\n});\nserver.listen(8080, function() {\n console.log((new Date()) + ' Server is listening on port 8080');\n});\n\nwsServer = new WebSocketServer({\n httpServer: server,\n // You should not use autoAcceptConnections for production\n // applications, as it defeats all standard cross-origin protection\n // facilities built into the protocol and the browser. You should\n // *always* verify the connection's origin and decide whether or not\n // to accept it.\n autoAcceptConnections: false\n});\n\nfunction originIsAllowed(origin) {\n // put logic here to detect whether the specified origin is allowed.\n return true;\n}\n\nwsServer.on('request', function(request) {\n if (!originIsAllowed(request.origin)) {\n // Make sure we only accept requests from an allowed origin\n request.reject();\n console.log((new Date()) + ' Connection from origin ' + request.origin + ' rejected.');\n return;\n }\n \n var connection = request.accept('echo-protocol', request.origin);\n console.log((new Date()) + ' Connection accepted.');\n connection.on('message', function(message) {\n if (message.type === 'utf8') {\n console.log('Received Message: ' + message.utf8Data);\n connection.sendUTF(message.utf8Data);\n }\n else if (message.type === 'binary') {\n console.log('Received Binary Message of ' + message.binaryData.length + ' bytes');\n connection.sendBytes(message.binaryData);\n }\n });\n connection.on('close', function(reasonCode, description) {\n console.log((new Date()) + ' Peer ' + connection.remoteAddress + ' disconnected.');\n });\n});\n```\n\nClient Example\n--------------\n\nThis is a simple example client that will print out any utf-8 messages it receives on the console, and periodically sends a random number.\n\n*This code demonstrates a client in Node.js, not in the browser*\n\n```javascript\n#!/usr/bin/env node\nvar WebSocketClient = require('websocket').client;\n\nvar client = new WebSocketClient();\n\nclient.on('connectFailed', function(error) {\n console.log('Connect Error: ' + error.toString());\n});\n\nclient.on('connect', function(connection) {\n console.log('WebSocket Client Connected');\n connection.on('error', function(error) {\n console.log(\"Connection Error: \" + error.toString());\n });\n connection.on('close', function() {\n console.log('echo-protocol Connection Closed');\n });\n connection.on('message', function(message) {\n if (message.type === 'utf8') {\n console.log(\"Received: '\" + message.utf8Data + \"'\");\n }\n });\n \n function sendNumber() {\n if (connection.connected) {\n var number = Math.round(Math.random() * 0xFFFFFF);\n connection.sendUTF(number.toString());\n setTimeout(sendNumber, 1000);\n }\n }\n sendNumber();\n});\n\nclient.connect('ws://localhost:8080/', 'echo-protocol');\n```\n\nClient Example using the *W3C WebSocket API*\n--------------------------------------------\n\nSame example as above but using the [W3C WebSocket API](http://www.w3.org/TR/websockets/).\n\n```javascript\nvar W3CWebSocket = require('websocket').w3cwebsocket;\n\nvar client = new W3CWebSocket('ws://localhost:8080/', 'echo-protocol');\n\nclient.onerror = function() {\n console.log('Connection Error');\n};\n\nclient.onopen = function() {\n console.log('WebSocket Client Connected');\n\n function sendNumber() {\n if (client.readyState === client.OPEN) {\n var number = Math.round(Math.random() * 0xFFFFFF);\n client.send(number.toString());\n setTimeout(sendNumber, 1000);\n }\n }\n sendNumber();\n};\n\nclient.onclose = function() {\n console.log('echo-protocol Client Closed');\n};\n\nclient.onmessage = function(e) {\n if (typeof e.data === 'string') {\n console.log(\"Received: '\" + e.data + \"'\");\n }\n};\n```\n \nRequest Router Example\n----------------------\n\nFor an example of using the request router, see `libwebsockets-test-server.js` in the `test` folder.\n\n\nResources\n---------\n\nA presentation on the state of the WebSockets protocol that I gave on July 23, 2011 at the LA Hacker News meetup. [WebSockets: The Real-Time Web, Delivered](http://www.scribd.com/doc/60898569/WebSockets-The-Real-Time-Web-Delivered)\n",readmeFilename:"README.md",repository:{type:"git",url:"git+https://github.com/theturtle32/WebSocket-Node.git"},scripts:{gulp:"gulp",install:"(node-gyp rebuild 2> builderror.log) || (exit 0)",test:"faucet test/unit"},version:"1.0.24"}},{}],291:[function(t,e,n){(function(n){var r=t("underscore"),i=t("web3-core-helpers").errors;if(void 0!==n)var o=t("websocket").w3cwebsocket;var s=function(t){var e=this;this.responseCallbacks={},this.notificationCallbacks=[],this.connection=new o(t),this.addDefaultEvents(),this.connection.onmessage=function(t){var n="string"==typeof t.data?t.data:"";e._parseResponse(n).forEach(function(t){var n=null;r.isArray(t)?t.forEach(function(t){e.responseCallbacks[t.id]&&(n=t.id)}):n=t.id,n||-1===t.method.indexOf("_subscription")?e.responseCallbacks[n]&&(e.responseCallbacks[n](null,t),delete e.responseCallbacks[n]):e.notificationCallbacks.forEach(function(e){r.isFunction(e)&&e(null,t)})})}};s.prototype.addDefaultEvents=function(){var t=this;this.connection.onerror=function(){t._timeout()},this.connection.onclose=function(e){t._timeout();var n=t.notificationCallbacks;t.reset(),n.forEach(function(t){r.isFunction(t)&&t(e)})}},s.prototype._parseResponse=function(t){var e=this,n=[];return t.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(function(t){e.lastChunk&&(t=e.lastChunk+t);var r=null;try{r=JSON.parse(t)}catch(n){return e.lastChunk=t,clearTimeout(e.lastChunkTimeout),void(e.lastChunkTimeout=setTimeout(function(){throw e._timeout(),i.InvalidResponse(t)},15e3))}clearTimeout(e.lastChunkTimeout),e.lastChunk=null,r&&n.push(r)}),n},s.prototype._addResponseCallback=function(t,e){var n=t.id||t[0].id,r=t.method||t[0].method;this.responseCallbacks[n]=e,this.responseCallbacks[n].method=r},s.prototype._timeout=function(){for(var t in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(t)&&(this.responseCallbacks[t](i.InvalidConnection("on IPC")),delete this.responseCallbacks[t])},s.prototype.send=function(t,e){var n=this;this.connection.readyState!==this.connection.CONNECTING?(this.connection.send(JSON.stringify(t)),this._addResponseCallback(t,e)):setTimeout(function(){n.send(t,e)},10)},s.prototype.on=function(t,e){if("function"!=typeof e)throw new Error("The second parameter callback must be a function.");switch(t){case"data":this.notificationCallbacks.push(e);break;case"connect":this.connection.onopen=e;break;case"end":this.connection.onclose=e;break;case"error":this.connection.onerror=e}},s.prototype.removeListener=function(t,e){var n=this;switch(t){case"data":this.notificationCallbacks.forEach(function(t,r){t===e&&n.notificationCallbacks.splice(r,1)})}},s.prototype.removeAllListeners=function(t){switch(t){case"data":this.notificationCallbacks=[];break;case"connect":this.connection.onopen=null;break;case"end":this.connection.onclose=null;break;case"error":this.connection.onerror=null}},s.prototype.reset=function(){this._timeout(),this.notificationCallbacks=[],this.addDefaultEvents()},e.exports=s}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{underscore:287,"web3-core-helpers":178,websocket:288}],292:[function(t,e,n){var r=t("web3-core"),i=t("web3-core-subscriptions").subscriptions,o=t("web3-core-method"),s=t("web3-net"),a=function(){var t=this;r.packageInit(this,arguments),this.clearSubscriptions=t._requestManager.clearSubscriptions,c().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}),this.net=new s(this.currentProvider)};r.addProviders(a);var c=function(){return[new i({name:"subscribe",type:"shh",subscriptions:{messages:{params:1}}}),new o({name:"getVersion",call:"shh_version",params:0}),new o({name:"getInfo",call:"shh_info",params:0}),new o({name:"setMaxMessageSize",call:"shh_setMaxMessageSize",params:1}),new o({name:"setMinPoW",call:"shh_setMinPoW",params:1}),new o({name:"markTrustedPeer",call:"shh_markTrustedPeer",params:1}),new o({name:"newKeyPair",call:"shh_newKeyPair",params:0}),new o({name:"addPrivateKey",call:"shh_addPrivateKey",params:1}),new o({name:"deleteKeyPair",call:"shh_deleteKeyPair",params:1}),new o({name:"hasKeyPair",call:"shh_hasKeyPair",params:1}),new o({name:"getPublicKey",call:"shh_getPublicKey",params:1}),new o({name:"getPrivateKey",call:"shh_getPrivateKey",params:1}),new o({name:"newSymKey",call:"shh_newSymKey",params:0}),new o({name:"addSymKey",call:"shh_addSymKey",params:1}),new o({name:"generateSymKeyFromPassword",call:"shh_generateSymKeyFromPassword",params:1}),new o({name:"hasSymKey",call:"shh_hasSymKey",params:1}),new o({name:"getSymKey",call:"shh_getSymKey",params:1}),new o({name:"deleteSymKey",call:"shh_deleteSymKey",params:1}),new o({name:"newMessageFilter",call:"shh_newMessageFilter",params:1}),new o({name:"getFilterMessages",call:"shh_getFilterMessages",params:1}),new o({name:"deleteMessageFilter",call:"shh_deleteMessageFilter",params:1}),new o({name:"post",call:"shh_post",params:1,inputFormatter:[null]})]};e.exports=a},{"web3-core":194,"web3-core-method":180,"web3-core-subscriptions":191,"web3-net":281}],293:[function(t,e,n){arguments[4][195][0].apply(n,arguments)},{dup:195}],294:[function(t,e,n){arguments[4][232][0].apply(n,arguments)},{dup:232}],295:[function(t,e,n){function r(t){var e=t?t.toLowerCase():"ether",n=u[e];if("string"!=typeof n)throw new Error("[ethjs-unit] the unit provided "+t+" doesn't exists, please use the one of the following units "+JSON.stringify(u,null,2));return new o(n,10)}function i(t){if("string"==typeof t){if(!t.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+t+"', should be a number matching (^-?[0-9.]+).");return t}if("number"==typeof t)return String(t);if("object"===(void 0===t?"undefined":_typeof(t))&&t.toString&&(t.toTwos||t.dividedToIntegerBy))return t.toPrecision?String(t.toPrecision()):t.toString(10);throw new Error("while converting number to string, invalid number value '"+t+"' type "+(void 0===t?"undefined":_typeof(t))+".")}var o=t("bn.js"),s=t("number-to-bn"),a=new o(0),c=new o(-1),u={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};e.exports={unitMap:u,numberToString:i,getValueOfUnit:r,fromWei:function(t,e,n){var i=s(t),o=i.lt(a),f=r(e),h=u[e].length-1||1,l=n||{};o&&(i=i.mul(c));for(var d=i.mod(f).toString(10);d.length2)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal points");var l=h[0],d=h[1];if(l||(l="0"),d||(d="0"),d.length>a)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal places");for(;d.length65536){if(!i)throw new Error("Requested too many random bytes.");n(new Error("Requested too many random bytes."))}if(void 0!==r&&r.randomBytes){if(!i)return"0x"+r.randomBytes(e).toString("hex");r.randomBytes(e,function(t,e){t?n(c):n(null,"0x"+e.toString("hex"))})}else{var o;if(void 0!==r?o=r:"undefined"!=typeof msCrypto&&(o=msCrypto),o&&o.getRandomValues){var s=o.getRandomValues(new Uint8Array(e)),a="0x"+Array.from(s).map(function(t){return t.toString(16)}).join("");if(!i)return a;n(null,a)}else{var c=new Error('No "crypto" object available. This Browser doesn\'t support generating secure random bytes.');if(!i)throw c;n(c)}}}},{"./crypto.js":299}],301:[function(t,e,n){var r=t("is-hex-prefixed");e.exports=function(t){return"string"!=typeof t?t:r(t)?t.slice(2):t}},{"is-hex-prefixed":296}],302:[function(t,e,n){arguments[4][163][0].apply(n,arguments)},{dup:163}],303:[function(t,e,n){(function(t){!function(r){function i(t){for(var e,n,r=[],i=0,o=t.length;i=55296&&e<=56319&&i65535&&(i+=v((e-=65536)>>>10&1023|55296),e=56320|1023&e),i+=v(e);return i}function s(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function a(t,e){return v(t>>e&63|128)}function c(t){if(0==(4294967168&t))return v(t);var e="";return 0==(4294965248&t)?e=v(t>>6&31|192):0==(4294901760&t)?(s(t),e=v(t>>12&15|224),e+=a(t,6)):0==(4292870144&t)&&(e=v(t>>18&7|240),e+=a(t,12),e+=a(t,6)),e+=v(63&t|128)}function u(){if(b>=m)throw Error("Invalid byte index");var t=255&p[b];if(b++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function f(){var t,e,n,r,i;if(b>m)throw Error("Invalid byte index");if(b==m)return!1;if(t=255&p[b],b++,0==(128&t))return t;if(192==(224&t)){if((i=(31&t)<<6|(e=u()))>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if(e=u(),n=u(),(i=(15&t)<<12|e<<6|n)>=2048)return s(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(e=u(),n=u(),r=u(),(i=(15&t)<<18|e<<12|n<<6|r)>=65536&&i<=1114111))return i;throw Error("Invalid UTF-8 detected")}var h="object"==(void 0===n?"undefined":_typeof(n))&&n,l="object"==(void 0===e?"undefined":_typeof(e))&&e&&e.exports==h&&e,d="object"==(void 0===t?"undefined":_typeof(t))&&t;d.global!==d&&d.window!==d||(r=d);var p,m,b,v=String.fromCharCode,y={version:"2.0.0",encode:function(t){for(var e=i(t),n=e.length,r=-1,o="";++r7?n+=t[r].toUpperCase():n+=t[r];return n},toHex:o.toHex,toBN:o.toBN,bytesToHex:o.bytesToHex,hexToBytes:o.hexToBytes,hexToNumberString:o.hexToNumberString,hexToNumber:o.hexToNumber,toDecimal:o.hexToNumber,numberToHex:o.numberToHex,fromDecimal:o.numberToHex,hexToUtf8:o.hexToUtf8,hexToString:o.hexToUtf8,toUtf8:o.hexToUtf8,utf8ToHex:o.utf8ToHex,stringToHex:o.utf8ToHex,fromUtf8:o.utf8ToHex,hexToAscii:c,toAscii:c,asciiToHex:u,fromAscii:u,unitMap:i.unitMap,toWei:function(t,e){return e=f(e),o.isBN(t)?i.toWei(t,e):i.toWei(t,e).toString(10)},fromWei:function(t,e){return e=f(e),o.isBN(t)?i.fromWei(t,e):i.fromWei(t,e).toString(10)},padLeft:o.leftPad,leftPad:o.leftPad,padRight:o.rightPad,rightPad:o.rightPad}},{"./soliditySha3.js":305,"./utils.js":306,"ethjs-unit":295,randomhex:300,underscore:302}],305:[function(t,e,n){var r=t("underscore"),i=t("bn.js"),o=t("./utils.js"),s=function(t){return t.startsWith("int[")?"int256"+t.slice(3):"int"===t?"int256":t.startsWith("uint[")?"uint256"+t.slice(4):"uint"===t?"uint256":t.startsWith("fixed[")?"fixed128x128"+t.slice(5):"fixed"===t?"fixed128x128":t.startsWith("ufixed[")?"ufixed128x128"+t.slice(6):"ufixed"===t?"ufixed128x128":t},a=function(t){var e=/^\D+(\d+).*$/.exec(t);return e?parseInt(e[1],10):null},c=function(t){var e=/^\D+\d*\[(\d+)\]$/.exec(t);return e?parseInt(e[1],10):null},u=function(t){var e=void 0===t?"undefined":_typeof(t);if("string"===e)return o.isHex(t)?new i(t.replace(/0x/i,""),16):new i(t,10);if("number"===e)return new i(t);if(o.isBigNumber(t))return new i(t.toString(10));if(o.isBN(t))return t;throw new Error(t+" is not a number")},f=function(t,e,n){var r,c;if("bytes"===(t=s(t))){if(e.replace(/^0x/i,"").length%2!=0)throw new Error("Invalid bytes characters "+e.length);return e}if("string"===t)return o.utf8ToHex(e);if("bool"===t)return e?"01":"00";if(t.startsWith("address")){if(r=n?64:40,!o.isAddress(e))throw new Error(e+" is not a valid address, or the checksum is invalid.");return o.leftPad(e.toLowerCase(),r)}if(r=a(t),t.startsWith("bytes")){if(!r)throw new Error("bytes[] not yet supported in solidity");if(n&&(r=32),r<1||r>32||r256)throw new Error("Invalid uint"+r+" size");if((c=u(e)).bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+c.bitLength());if(c.lt(new i(0)))throw new Error("Supplied uint "+c.toString()+" is negative");return r?o.leftPad(c.toString("hex"),r/8*2):c}if(t.startsWith("int")){if(r%8||r<8||r>256)throw new Error("Invalid int"+r+" size");if((c=u(e)).bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+c.bitLength());return c.lt(new i(0))?c.toTwos(r).toString("hex"):r?o.leftPad(c.toString("hex"),r/8*2):c}throw new Error("Unsupported or invalid type: "+t)},h=function(t){if(r.isArray(t))throw new Error("Autodetection of array types is not supported.");var e,n,s="";if(r.isObject(t)&&(t.hasOwnProperty("v")||t.hasOwnProperty("t")||t.hasOwnProperty("value")||t.hasOwnProperty("type"))?(e=t.t||t.type,s=t.v||t.value):(e=o.toHex(t,!0),s=o.toHex(t),e.startsWith("int")||e.startsWith("uint")||(e="bytes")),!e.startsWith("int")&&!e.startsWith("uint")||"string"!=typeof s||/^(-)?0x/i.test(s)||(s=new i(s)),r.isArray(s)){if((n=c(e))&&s.length!==n)throw new Error(e+" is not matching the given array "+JSON.stringify(s));n=s.length}return r.isArray(s)?s.map(function(t){return f(e,t,n).toString("hex").replace("0x","")}).join(""):f(e,s,n).toString("hex").replace("0x","")};e.exports=function(){var t=Array.prototype.slice.call(arguments),e=r.map(t,h);return o.sha3("0x"+e.join(""))}},{"./utils.js":306,"bn.js":293,underscore:302}],306:[function(t,e,n){var r=t("underscore"),i=t("bn.js"),o=t("number-to-bn"),s=t("utf8"),a=t("eth-lib/src/hash"),c=function(t){return t instanceof i||t&&t.constructor&&"BN"===t.constructor.name},u=function(t){return t&&t.constructor&&"BigNumber"===t.constructor.name},f=function(t){try{return o.apply(null,arguments)}catch(e){throw new Error(e+' Given value: "'+t+'"')}},h=function(t){return!!/^(0x)?[0-9a-f]{40}$/i.test(t)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(t)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(t))||l(t))},l=function(t){t=t.replace(/^0x/i,"");for(var e=v(t.toLowerCase()).replace(/^0x/i,""),n=0;n<40;n++)if(parseInt(e[n],16)>7&&t[n].toUpperCase()!==t[n]||parseInt(e[n],16)<=7&&t[n].toLowerCase()!==t[n])return!1;return!0},d=function(t){var e="";t=(t=(t=(t=(t=s.encode(t)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("");for(var n=0;n>>4).toString(16)),e.push((15&t[n]).toString(16));return"0x"+e.join("")},isHex:b,leftPad:function(t,e,n){var r=/^0x/i.test(t)||"number"==typeof t,i=e-(t=t.toString(16).replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(r?"0x":"")+new Array(i).join(n||"0")+t},rightPad:function(t,e,n){var r=/^0x/i.test(t)||"number"==typeof t,i=e-(t=t.toString(16).replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(r?"0x":"")+t+new Array(i).join(n||"0")},sha3:v}},{"bn.js":293,"eth-lib/src/hash":294,"number-to-bn":297,underscore:302,utf8:303}],BN:[function(t,e,n){arguments[4][209][0].apply(n,arguments)},{dup:209}],Web3:[function(t,e,n){var r=t("../lerna.json"),i=t("../packages/web3-core"),o=t("../packages/web3-eth"),s=t("../packages/web3-net"),a=t("../packages/web3-eth-personal"),c=t("../packages/web3-shh"),u=t("../packages/web3-bzz"),f=t("../packages/web3-utils"),h=function(){i.packageInit(this,arguments),this.version=r.version,this.eth=new o(this),this.shh=new c(this),this.bzz=new u(this),this.utils=f,this.setProvider=function(t,e){return this._requestManager.setProvider(t,e),this._provider=this._requestManager.provider,this.eth.setProvider(t,e),this.eth.net.setProvider(t,e),this.eth.personal.setProvider(t,e),this.shh.setProvider(t,e),this.shh.net.setProvider(t,e),this.bzz.setProvider(t),!0}};h.prototype.version=r.version,i.addProviders(h),h.modules={Eth:o,Net:s,Personal:a,Shh:c,Bzz:u},e.exports=h},{"../lerna.json":1,"../packages/web3-bzz":173,"../packages/web3-core":194,"../packages/web3-eth":280,"../packages/web3-eth-personal":277,"../packages/web3-net":281,"../packages/web3-shh":292,"../packages/web3-utils":304}]},{},["Web3"])("Web3")}); \ No newline at end of file +"use strict";var _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_slicedToArray=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_typeof="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(t){return void 0===t?"undefined":_typeof2(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":_typeof2(t)};!function(t){if("object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Web3=t()}}(function(){var define,module,exports;return function t(e,n,r){function i(s,a){if(!n[s]){if(!e[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[s]={exports:{}};e[s][0].call(f.exports,function(t){var n=e[s][1][t];return i(n||t)},f,f.exports,t,e,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s>6],i=0==(32&n);if(31==(31&n)){var o=n;for(n=0;128==(128&o);){if(o=t.readUInt8(e),t.isError(o))return o;n<<=7,n|=127&o}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:h.tag[n]}}function s(t,e,n){var r=t.readUInt8(n);if(t.isError(r))return r;if(!e&&128===r)return null;if(0==(128&r))return r;var i=127&r;if(i>4)return t.error("length octect is too long");r=0;for(var o=0;o=31?r.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|=h.tagClassByName[n||"universal"]<<6)}var a=t("inherits"),c=t("buffer").Buffer,u=t("../../asn1"),f=u.base,h=u.constants.der;e.exports=r,r.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},a(i,f.Node),i.prototype._encodeComposite=function(t,e,n,r){var i=s(t,e,n,this.reporter);if(r.length<128)return(u=new c(2))[0]=i,u[1]=r.length,this._createEncoderBuffer([u,r]);for(var o=1,a=r.length;a>=256;a>>=8)o++;var u=new c(2+o);u[0]=i,u[1]=128|o;for(var a=1+o,f=r.length;f>0;a--,f>>=8)u[a]=255&f;return this._createEncoderBuffer([u,r])},i.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var n=new c(2*t.length),r=0;r=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}for(var r=0,i=0;i=128;a>>=7)r++}for(var o=new c(r),s=o.length-1,i=t.length-1;i>=0;i--){var a=t[i];for(o[s--]=127&a;(a>>=7)>0;)o[s--]=128|127&a}return this._createEncoderBuffer(o)},i.prototype._encodeTime=function(t,e){var n,r=new Date(t);return"gentime"===e?n=[o(r.getFullYear()),o(r.getUTCMonth()+1),o(r.getUTCDate()),o(r.getUTCHours()),o(r.getUTCMinutes()),o(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[o(r.getFullYear()%100),o(r.getUTCMonth()+1),o(r.getUTCDate()),o(r.getUTCHours()),o(r.getUTCMinutes()),o(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},i.prototype._encodeNull=function(){return this._createEncoderBuffer("")},i.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!c.isBuffer(t)){var n=t.toArray();!t.sign&&128&n[0]&&n.unshift(0),t=new c(n)}if(c.isBuffer(t)){i=t.length;0===t.length&&i++;var r=new c(i);return t.copy(r),0===t.length&&(r[0]=0),this._createEncoderBuffer(r)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var i=1,o=t;o>=256;o>>=8)i++;for(o=(r=new Array(i)).length-1;o>=0;o--)r[o]=255&t,t>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(new c(r))},i.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},i.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},i.prototype._skipDefault=function(t,e,n){var r,i=this._baseState;if(null===i.default)return!1;var o=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,n).join()),o.length!==i.defaultBuffer.length)return!1;for(r=0;r0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return s[t>>18&63]+s[t>>12&63]+s[t>>6&63]+s[63&t]}function o(t,e,n){for(var r,o=[],s=e;s0?u-4:u;var f=0;for(e=0;e>16&255,s[f++]=i>>8&255,s[f++]=255&i;return 2===o?(i=a[t.charCodeAt(e)]<<2|a[t.charCodeAt(e+1)]>>4,s[f++]=255&i):1===o&&(i=a[t.charCodeAt(e)]<<10|a[t.charCodeAt(e+1)]<<4|a[t.charCodeAt(e+2)]>>2,s[f++]=i>>8&255,s[f++]=255&i),s},n.fromByteArray=function(t){for(var e,n=t.length,r=n%3,i="",a=[],c=0,u=n-r;cu?u:c+16383));return 1===r?(e=t[n-1],i+=s[e>>2],i+=s[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=s[e>>10],i+=s[e>>4&63],i+=s[e<<2&63],i+="="),a.push(i),a.join("")};for(var s=[],a=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,h=u.length;fa||t<0?(e=Math.abs(t)%a,t<0?a-e:e):t}function r(t){for(;0>>8^255&n^99,this.SBOX[i]=n,this.INV_SBOX[n]=i,a=t[s=t[o=t[i]]],r=257*t[n]^16843008*n,this.SUB_MIX[0][i]=r<<24|r>>>8,this.SUB_MIX[1][i]=r<<16|r>>>16,this.SUB_MIX[2][i]=r<<8|r>>>24,this.SUB_MIX[3][i]=r,r=16843009*a^65537*s^257*o^16843008*i,this.INV_SUB_MIX[0][n]=r<<24|r>>>8,this.INV_SUB_MIX[1][n]=r<<16|r>>>16,this.INV_SUB_MIX[2][n]=r<<8|r>>>24,this.INV_SUB_MIX[3][n]=r,0===i?i=c=1:(i=o^t[t[t[a^o]]],c^=t[t[c]]);return!0};var c=new i;s.blockSize=16,s.prototype.blockSize=s.blockSize,s.keySize=32,s.prototype.keySize=s.keySize,s.prototype._doReset=function(){var t,e,n,r,i,o;for(e=(n=this._key).length,this._nRounds=e+6,i=4*(this._nRounds+1),this._keySchedule=[],r=0;r>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=c.RCON[r/e|0]<<24):e>6&&r%e==4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),this._keySchedule[r-e]^o);for(this._invKeySchedule=[],t=0;t>>24]]^c.INV_SUB_MIX[1][c.SBOX[o>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[o>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&o]];return!0},s.prototype.encryptBlock=function(e){e=o(new t(e));var n=this._doCryptBlock(e,this._keySchedule,c.SUB_MIX,c.SBOX),r=new t(16);return r.writeUInt32BE(n[0],0),r.writeUInt32BE(n[1],4),r.writeUInt32BE(n[2],8),r.writeUInt32BE(n[3],12),r},s.prototype.decryptBlock=function(e){var n=[(e=o(new t(e)))[3],e[1]];e[1]=n[0],e[3]=n[1];var r=this._doCryptBlock(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX),i=new t(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i},s.prototype.scrub=function(){r(this._keySchedule),r(this._invKeySchedule),r(this._key)},s.prototype._doCryptBlock=function(t,n,r,i){var o,s,a,c,u,f,h,l,d;s=t[0]^n[0],a=t[1]^n[1],c=t[2]^n[2],u=t[3]^n[3],o=4;for(var p=1;p>>24]^r[1][a>>>16&255]^r[2][c>>>8&255]^r[3][255&u]^n[o++],h=r[0][a>>>24]^r[1][c>>>16&255]^r[2][u>>>8&255]^r[3][255&s]^n[o++],l=r[0][c>>>24]^r[1][u>>>16&255]^r[2][s>>>8&255]^r[3][255&a]^n[o++],d=r[0][u>>>24]^r[1][s>>>16&255]^r[2][a>>>8&255]^r[3][255&c]^n[o++],s=f,a=h,c=l,u=d;return f=(i[s>>>24]<<24|i[a>>>16&255]<<16|i[c>>>8&255]<<8|i[255&u])^n[o++],h=(i[a>>>24]<<24|i[c>>>16&255]<<16|i[u>>>8&255]<<8|i[255&s])^n[o++],l=(i[c>>>24]<<24|i[u>>>16&255]<<16|i[s>>>8&255]<<8|i[255&a])^n[o++],d=(i[u>>>24]<<24|i[s>>>16&255]<<16|i[a>>>8&255]<<8|i[255&c])^n[o++],[e(f),e(h),e(l),e(d)]},n.AES=s}).call(this,t("buffer").Buffer)},{buffer:45}],20:[function(t,e,n){(function(n){function r(t,e,i,a){if(!(this instanceof r))return new r(t,e,i);s.call(this),this._finID=n.concat([i,new n([0,0,0,1])]),i=n.concat([i,new n([0,0,0,2])]),this._cipher=new o.AES(e),this._prev=new n(i.length),this._cache=new n(""),this._secCache=new n(""),this._decrypt=a,this._alen=0,this._len=0,i.copy(this._prev),this._mode=t;var u=new n(4);u.fill(0),this._ghash=new c(this._cipher.encryptBlock(u)),this._authTag=null,this._called=!1}function i(t,e){var n=0;t.length!==e.length&&n++;for(var r=Math.min(t.length,e.length),i=-1;++i16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},i.prototype.flush=function(){if(this.cache.length)return this.cache};var p={ECB:t("./modes/ecb"),CBC:t("./modes/cbc"),CFB:t("./modes/cfb"),CFB8:t("./modes/cfb8"),CFB1:t("./modes/cfb1"),OFB:t("./modes/ofb"),CTR:t("./modes/ctr"),GCM:t("./modes/ctr")};n.createDecipher=function(t,e){var n=f[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=d(e,!1,n.key,n.iv);return s(t,r.key,r.iv)},n.createDecipheriv=s}).call(this,t("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:45,"cipher-base":46,evp_bytestokey:82,inherits:99}],23:[function(t,e,n){(function(e){function r(t,n,o){if(!(this instanceof r))return new r(t,n,o);a.call(this),this._cache=new i,this._cipher=new s.AES(n),this._prev=new e(o.length),o.copy(this._prev),this._mode=t,this._autopadding=!0}function i(){if(!(this instanceof i))return new i;this.cache=new e("")}function o(t,n,i){var o=u[t.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=new e(i)),"string"==typeof n&&(n=new e(n)),n.length!==o.key/8)throw new TypeError("invalid key length "+n.length);if(i.length!==o.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===o.type?new h(d[o.mode],n,i):"auth"===o.type?new l(d[o.mode],n,i):new r(d[o.mode],n,i)}var s=t("./aes"),a=t("cipher-base"),c=t("inherits"),u=t("./modes"),f=t("evp_bytestokey"),h=t("./streamCipher"),l=t("./authCipher");c(r,a),r.prototype._update=function(t){this._cache.add(t);for(var n,r,i=[];n=this._cache.get();)r=this._mode.encrypt(this,n),i.push(r);return e.concat(i)},r.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if("10101010101010101010101010101010"!==t.toString("hex"))throw this._cipher.scrub(),new Error("data not multiple of block length")},r.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},i.prototype.add=function(t){this.cache=e.concat([this.cache,t])},i.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},i.prototype.flush=function(){for(var t=16-this.cache.length,n=new e(t),r=-1;++rc||t<0?(e=Math.abs(t)%c,t<0?c-e:e):t}function s(t,e){return[t[0]^e[0],t[1]^e[1],t[2]^e[2],t[3]^e[3]]}var a=new t(16);a.fill(0),e.exports=n,n.prototype.ghash=function(t){for(var e=-1;++e0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,e&&(n[0]=n[0]^225<<24)}this.state=i(o)},n.prototype.update=function(e){this.cache=t.concat([this.cache,e]);for(var n;this.cache.length>=16;)n=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(n)},n.prototype.final=function(e,n){return this.cache.length&&this.ghash(t.concat([this.cache,a],16)),this.ghash(i([0,e,0,n])),this.state};var c=Math.pow(2,32)}).call(this,t("buffer").Buffer)},{buffer:45}],25:[function(t,e,n){n["aes-128-ecb"]={cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},n["aes-192-ecb"]={cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},n["aes-256-ecb"]={cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},n["aes-128-cbc"]={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},n["aes-192-cbc"]={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},n["aes-256-cbc"]={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},n.aes128=n["aes-128-cbc"],n.aes192=n["aes-192-cbc"],n.aes256=n["aes-256-cbc"],n["aes-128-cfb"]={cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},n["aes-192-cfb"]={cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},n["aes-256-cfb"]={cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},n["aes-128-cfb8"]={cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},n["aes-192-cfb8"]={cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},n["aes-256-cfb8"]={cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},n["aes-128-cfb1"]={cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},n["aes-192-cfb1"]={cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},n["aes-256-cfb1"]={cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},n["aes-128-ofb"]={cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},n["aes-192-ofb"]={cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},n["aes-256-ofb"]={cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},n["aes-128-ctr"]={cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},n["aes-192-ctr"]={cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},n["aes-256-ctr"]={cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},n["aes-128-gcm"]={cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},n["aes-192-gcm"]={cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},n["aes-256-gcm"]={cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},{}],26:[function(t,e,n){var r=t("buffer-xor");n.encrypt=function(t,e){var n=r(e,t._prev);return t._prev=t._cipher.encryptBlock(n),t._prev},n.decrypt=function(t,e){var n=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return r(i,n)}},{"buffer-xor":44}],27:[function(t,e,n){(function(e){function r(t,n,r){var o=n.length,s=i(n,t._cache);return t._cache=t._cache.slice(o),t._prev=e.concat([t._prev,r?n:s]),s}var i=t("buffer-xor");n.encrypt=function(t,n,i){for(var o,s=new e("");n.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=new e("")),!(t._cache.length<=n.length)){s=e.concat([s,r(t,n,i)]);break}o=t._cache.length,s=e.concat([s,r(t,n.slice(0,o),i)]),n=n.slice(o)}return s}}).call(this,t("buffer").Buffer)},{buffer:45,"buffer-xor":44}],28:[function(t,e,n){(function(t){function e(t,e,n){for(var i,o,s,a=-1,c=0;++a<8;)i=t._cipher.encryptBlock(t._prev),o=e&1<<7-a?128:0,c+=(128&(s=i[0]^o))>>a%8,t._prev=r(t._prev,n?o:s);return c}function r(e,n){var r=e.length,i=-1,o=new t(e.length);for(e=t.concat([e,new t([n])]);++i>7;return o}n.encrypt=function(n,r,i){for(var o=r.length,s=new t(o),a=-1;++a=0||!n.umod(t.prime1)||!n.umod(t.prime2);)n=new s(a(e));return n}var s=t("bn.js"),a=t("randombytes");e.exports=i,i.getr=o}).call(this,t("buffer").Buffer)},{"bn.js":"BN",buffer:45,randombytes:124}],38:[function(t,e,n){e.exports=t("./browser/algorithms.json")},{"./browser/algorithms.json":39}],39:[function(t,e,n){e.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],40:[function(t,e,n){e.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],41:[function(t,e,n){(function(n){function r(t){c.Writable.call(this);var e=l[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=a(e.hash),this._tag=e.id,this._signType=e.sign}function i(t){c.Writable.call(this);var e=l[t];if(!e)throw new Error("Unknown message digest");this._hash=a(e.hash),this._tag=e.id,this._signType=e.sign}function o(t){return new r(t)}function s(t){return new i(t)}var a=t("create-hash"),c=t("stream"),u=t("inherits"),f=t("./sign"),h=t("./verify"),l=t("./algorithms.json");Object.keys(l).forEach(function(t){l[t].id=new n(l[t].id,"hex"),l[t.toLowerCase()]=l[t]}),u(r,c.Writable),r.prototype._write=function(t,e,n){this._hash.update(t),n()},r.prototype.update=function(t,e){return"string"==typeof t&&(t=new n(t,e)),this._hash.update(t),this},r.prototype.sign=function(t,e){this.end();var n=this._hash.digest(),r=f(n,t,this._hashType,this._signType,this._tag);return e?r.toString(e):r},u(i,c.Writable),i.prototype._write=function(t,e,n){this._hash.update(t),n()},i.prototype.update=function(t,e){return"string"==typeof t&&(t=new n(t,e)),this._hash.update(t),this},i.prototype.verify=function(t,e,r){"string"==typeof e&&(e=new n(e,r)),this.end();var i=this._hash.digest();return h(e,i,t,this._signType,this._tag)},e.exports={Sign:o,Verify:s,createSign:o,createVerify:s}}).call(this,t("buffer").Buffer)},{"./algorithms.json":39,"./sign":42,"./verify":43,buffer:45,"create-hash":49,inherits:99,stream:148}],42:[function(t,e,n){(function(n){function r(t,e){var r=b[e.curve.join(".")];if(!r)throw new Error("unknown curve "+e.curve.join("."));var i=new d(r).keyFromPrivate(e.privateKey).sign(t);return new n(i.toDER())}function i(t,e,n){for(var r,i=e.params.priv_key,c=e.params.p,h=e.params.q,l=e.params.g,d=new p(0),m=a(t,h).mod(h),b=!1,v=s(i,h,t,n);!1===b;)d=f(l,r=u(h,v,n),c,h),0===(b=r.invm(h).imul(m.add(i.mul(d))).mod(h)).cmpn(0)&&(b=!1,d=new p(0));return o(d,b)}function o(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t)),128&e[0]&&(e=[0].concat(e));var r=[48,t.length+e.length+4,2,t.length];return r=r.concat(t,[2,e.length],e),new n(r)}function s(t,e,r,i){if((t=new n(t.toArray())).length0&&n.ishrn(r),n}function c(t,e){t=(t=a(t,e)).mod(e);var r=new n(t.toArray());if(r.length=e)throw new Error("invalid sig")}var s=t("bn.js"),a=t("elliptic").ec,c=t("parse-asn1"),u=t("./curves.json");e.exports=function(t,e,o,a,u){var f=c(o);if("ec"===f.type){if("ecdsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong public key type");return r(t,e,f)}if("dsa"===f.type){if("dsa"!==a)throw new Error("wrong public key type");return i(t,e,f)}if("rsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong public key type");e=n.concat([u,e]);for(var h=f.modulus.byteLength(),l=[1],d=0;e.length+l.length+2$)throw new RangeError("Invalid typed array length");var e=new Uint8Array(t);return e.__proto__=i.prototype,e}function i(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(t)}return o(t,e,n)}function o(t,e,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return t instanceof ArrayBuffer?h(t,e,n):"string"==typeof t?u(t,e):l(t)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function a(t,e,n){return s(t),t<=0?r(t):void 0!==e?"string"==typeof n?r(t).fill(e,n):r(t).fill(e):r(t)}function c(t){return s(t),r(t<0?0:0|d(t))}function u(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!i.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,e),o=r(n),s=o.write(t,e);return s!==n&&(o=o.slice(0,s)),o}function f(t){for(var e=t.length<0?0:0|d(t.length),n=r(e),i=0;i=$)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+$.toString(16)+" bytes");return 0|t}function p(t,e){if(i.isBuffer(t))return t.length;if(V(t)||t instanceof ArrayBuffer)return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return L(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(t).length;default:if(r)return L(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,n);case"utf8":case"utf-8":return E(this,e,n);case"ascii":return C(this,e,n);case"latin1":case"binary":return A(this,e,n);case"base64":return M(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,W(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=i.from(e,r)),i.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,i){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}var u;if(i){var f=-1;for(u=n;ua&&(n=a-c),u=n;u>=0;u--){for(var h=!0,l=0;li&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s239?4:o>223?3:o>191?2:1;if(i+a<=n){var c,u,f,h;switch(a){case 1:o<128&&(s=o);break;case 2:128==(192&(c=t[i+1]))&&(h=(31&o)<<6|63&c)>127&&(s=h);break;case 3:c=t[i+1],u=t[i+2],128==(192&c)&&128==(192&u)&&(h=(15&o)<<12|(63&c)<<6|63&u)>2047&&(h<55296||h>57343)&&(s=h);break;case 4:c=t[i+1],u=t[i+2],f=t[i+3],128==(192&c)&&128==(192&u)&&128==(192&f)&&(h=(15&o)<<18|(63&c)<<12|(63&u)<<6|63&f)>65535&&h<1114112&&(s=h)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=a}return j(r)}function j(t){var e=t.length;if(e<=G)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,n,r,o,s){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function F(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(t,e,n,r,i){return e=+e,n>>>=0,i||F(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(t,e,n,r,23,4),n+4}function O(t,e,n,r,i){return e=+e,n>>>=0,i||F(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(t,e,n,r,52,8),n+8}function N(t){if((t=t.trim().replace(J,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}function D(t){return t<16?"0"+t.toString(16):t.toString(16)}function L(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],s=0;s55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=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((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function U(t){return K.toByteArray(N(t))}function H(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function V(t){return"function"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(t)}function W(t){return t!==t}var K=t("base64-js"),X=t("ieee754");n.Buffer=i,n.SlowBuffer=function(t){return+t!=t&&(t=0),i.alloc(+t)},n.INSPECT_MAX_BYTES=50;var $=2147483647;n.kMaxLength=$,i.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),i.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),i.poolSize=8192,i.from=function(t,e,n){return o(t,e,n)},i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,i.alloc=function(t,e,n){return a(t,e,n)},i.allocUnsafe=function(t){return c(t)},i.allocUnsafeSlow=function(t){return c(t)},i.isBuffer=function(t){return null!=t&&!0===t._isBuffer},i.compare=function(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,s=Math.min(n,r);o0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),""},i.prototype.compare=function(t,e,n,r,o){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,o>>>=0,this===t)return 0;for(var s=o-r,a=n-e,c=Math.min(s,a),u=this.slice(r,o),f=t.slice(e,n),h=0;h>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return g(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var G=4096;i.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o>>=0,e>>>=0,n||P(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},i.prototype.readUInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o=i&&(r-=Math.pow(2,8*e)),r},i.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||P(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},i.prototype.readInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){t>>>=0,e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(t,e){t>>>=0,e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return t>>>=0,e||P(t,4,this.length),X.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return t>>>=0,e||P(t,4,this.length),X.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return t>>>=0,e||P(t,8,this.length),X.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return t>>>=0,e||P(t,8,this.length),X.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||B(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o>>=0,n>>>=0,r||B(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},i.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,1,255,0),this[e]=255&t,e+1},i.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},i.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);B(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+n},i.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);B(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},i.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},i.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeFloatLE=function(t,e,n){return R(this,t,e,!0,n)},i.prototype.writeFloatBE=function(t,e,n){return R(this,t,e,!1,n)},i.prototype.writeDoubleLE=function(t,e,n){return O(this,t,e,!0,n)},i.prototype.writeDoubleBE=function(t,e,n){return O(this,t,e,!1,n)},i.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var s;if("number"==typeof t)for(s=e;s>>2),s=0,a=0;s>5]|=128<>>9<<4)]=e;for(var n=1732584193,r=-271733879,i=-1732584194,f=271733878,h=0;h>16)+(e>>16)+(n>>16)<<16|65535&n}function f(t,e){return t<>>32-e}var h=t("./make-hash");e.exports=function(t){return h(t,r)}},{"./make-hash":50}],52:[function(t,e,n){function r(t,e){s.call(this,"digest"),"string"==typeof e&&(e=a.from(e));var n="sha512"===t||"sha384"===t?128:64;this._alg=t,this._key=e,e.length>n?e=("rmd160"===t?new u:f(t)).update(e).digest():e.lengthc?e=t(e):e.length0;r--)e+=this._buffer(t,e),n+=this._flushBuffer(i,n);return e+=this._buffer(t,e),i},r.prototype.final=function(t){var e;t&&(e=this.update(t));var n;return n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},r.prototype._pad=function(t,e){if(0===e)return!1;for(;e>>1];n=c.r28shl(n,s),r=c.r28shl(r,s),c.pc2(n,r,t.keys,i)}},i.prototype._update=function(t,e,n,r){var i=this._desState,o=c.readUInt32BE(t,e),s=c.readUInt32BE(t,e+4);c.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],c.writeUInt32BE(n,o,r),c.writeUInt32BE(n,s,r+4)},i.prototype._pad=function(t,e){for(var n=t.length-e,r=e;r>>0,o=l}c.rip(s,o,r,i)},i.prototype._decrypt=function(t,e,n,r,i){for(var o=n,s=e,a=t.keys.length-2;a>=0;a-=2){var u=t.keys[a],f=t.keys[a+1];c.expand(o,t.tmp,0),u^=t.tmp[0],f^=t.tmp[1];var h=c.substitute(u,f),l=o;o=(s^c.permute(h))>>>0,s=l}c.rip(o,s,r,i)}},{"../des":55,inherits:99,"minimalistic-assert":103}],59:[function(t,e,n){function r(t,e){o.equal(e.length,24,"Invalid key length");var n=e.slice(0,8),r=e.slice(8,16),i=e.slice(16,24);this.ciphers="encrypt"===t?[u.create({type:"encrypt",key:n}),u.create({type:"decrypt",key:r}),u.create({type:"encrypt",key:i})]:[u.create({type:"decrypt",key:i}),u.create({type:"encrypt",key:r}),u.create({type:"decrypt",key:n})]}function i(t){c.call(this,t);var e=new r(this.type,this.options.key);this._edeState=e}var o=t("minimalistic-assert"),s=t("inherits"),a=t("../des"),c=a.Cipher,u=a.DES;s(i,c),e.exports=i,i.create=function(t){return new i(t)},i.prototype._update=function(t,e,n,r){var i=this._edeState;i.ciphers[0]._update(t,e,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},i.prototype._pad=u.prototype._pad,i.prototype._unpad=u.prototype._unpad},{"../des":55,inherits:99,"minimalistic-assert":103}],60:[function(t,e,n){n.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},n.writeUInt32BE=function(t,e,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},n.ip=function(t,e,n,r){for(var i=0,o=0,s=6;s>=0;s-=2){for(a=0;a<=24;a+=8)i<<=1,i|=e>>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=t>>>a+s&1}for(s=6;s>=0;s-=2){for(a=1;a<=25;a+=8)o<<=1,o|=e>>>a+s&1;for(var a=1;a<=25;a+=8)o<<=1,o|=t>>>a+s&1}n[r+0]=i>>>0,n[r+1]=o>>>0},n.rip=function(t,e,n,r){for(var i=0,o=0,s=0;s<4;s++)for(a=24;a>=0;a-=8)i<<=1,i|=e>>>a+s&1,i<<=1,i|=t>>>a+s&1;for(s=4;s<8;s++)for(var a=24;a>=0;a-=8)o<<=1,o|=e>>>a+s&1,o<<=1,o|=t>>>a+s&1;n[r+0]=i>>>0,n[r+1]=o>>>0},n.pc1=function(t,e,n,r){for(var i=0,o=0,s=7;s>=5;s--){for(a=0;a<=24;a+=8)i<<=1,i|=e>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=t>>a+s&1}for(a=0;a<=24;a+=8)i<<=1,i|=e>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1}for(var a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;n[r+0]=i>>>0,n[r+1]=o>>>0},n.r28shl=function(t,e){return t<>>28-e};var r=[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];n.pc2=function(t,e,n,i){for(var o=0,s=0,a=r.length>>>1,c=0;c>>r[c]&1;for(c=a;c>>r[c]&1;n[i+0]=o>>>0,n[i+1]=s>>>0},n.expand=function(t,e,n){var r=0,i=0;r=(1&t)<<5|t>>>27;for(o=23;o>=15;o-=4)r<<=6,r|=t>>>o&63;for(var o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[n+0]=r>>>0,e[n+1]=i>>>0};var i=[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];n.substitute=function(t,e){for(var n=0,r=0;r<4;r++)n<<=4,n|=s=i[64*r+(o=t>>>18-6*r&63)];for(r=0;r<4;r++){var o=e>>>18-6*r&63,s=i[256+64*r+o];n<<=4,n|=s}return n>>>0};var o=[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];n.permute=function(t){for(var e=0,n=0;n>>o[n]&1;return e>>>0},n.padSplit=function(t,e,n){for(var r=t.toString(2);r.lengtht;)n.ishrn(1);if(n.isEven()&&n.iadd(h),n.testn(1)||n.iadd(l),e.cmp(l)){if(!e.cmp(d))for(;n.mod(p).cmp(m);)n.iadd(v)}else for(;n.mod(u).cmp(b);)n.iadd(v);if(r=n.shrn(1),i(r)&&i(n)&&o(r)&&o(n)&&f.test(r)&&f.test(n))return n}}var a=t("randombytes");e.exports=s,s.simpleSieve=i,s.fermatTest=o;var c=t("bn.js"),u=new c(24),f=new(t("miller-rabin")),h=new c(1),l=new c(2),d=new c(5),p=(new c(16),new c(8),new c(10)),m=new c(3),b=(new c(7),new c(11)),v=new c(4),y=(new c(12),null)},{"bn.js":"BN","miller-rabin":102,randombytes:124}],64:[function(t,e,n){e.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(t,e,n){var r=n;r.version=t("../package.json").version,r.utils=t("./elliptic/utils"),r.rand=t("brorand"),r.curve=t("./elliptic/curve"),r.curves=t("./elliptic/curves"),r.ec=t("./elliptic/ec"),r.eddsa=t("./elliptic/eddsa")},{"../package.json":80,"./elliptic/curve":68,"./elliptic/curves":71,"./elliptic/ec":72,"./elliptic/eddsa":75,"./elliptic/utils":79,brorand:17}],66:[function(t,e,n){function r(t,e){this.type=t,this.p=new o(e.p,16),this.red=e.prime?o.red(e.prime):o.mont(this.p),this.zero=new o(0).toRed(this.red),this.one=new o(1).toRed(this.red),this.two=new o(2).toRed(this.red),this.n=e.n&&new o(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function i(t,e){this.curve=t,this.type=e,this.precomputed=null}var o=t("bn.js"),s=t("../../elliptic").utils,a=s.getNAF,c=s.getJSF,u=s.assert;e.exports=r,r.prototype.point=function(){throw new Error("Not implemented")},r.prototype.validate=function(){throw new Error("Not implemented")},r.prototype._fixedNafMul=function(t,e){u(t.precomputed);var n=t._getDoubles(),r=a(e,1),i=(1<=s;e--)c=(c<<1)+r[e];o.push(c)}for(var f=this.jpoint(null,null,null),h=this.jpoint(null,null,null),l=i;l>0;l--){for(s=0;s=0;c--){for(var e=0;c>=0&&0===o[c];c--)e++;if(c>=0&&e++,s=s.dblp(e),c<0)break;var f=o[c];u(0!==f),s="affine"===t.type?f>0?s.mixedAdd(i[f-1>>1]):s.mixedAdd(i[-f-1>>1].neg()):f>0?s.add(i[f-1>>1]):s.add(i[-f-1>>1].neg())}return"affine"===t.type?s.toP():s},r.prototype._wnafMulAdd=function(t,e,n,r,i){for(var o=this._wnafT1,s=this._wnafT2,u=this._wnafT3,f=0,h=0;h=1;h-=2){var d=h-1,p=h;if(1===o[d]&&1===o[p]){var m=[e[d],null,null,e[p]];0===e[d].y.cmp(e[p].y)?(m[1]=e[d].add(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].add(e[p].neg())):(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],v=c(n[d],n[p]);f=Math.max(v[0].length,f),u[d]=new Array(f),u[p]=new Array(f);for(S=0;S=0;h--){for(var x=0;h>=0;){for(var k=!0,S=0;S=0&&x++,_=_.dblp(x),h<0)break;for(S=0;S0?M=s[S][E-1>>1]:E<0&&(M=s[S][-E-1>>1].neg()),_="affine"===M.type?_.mixedAdd(M):_.add(M))}}for(h=0;h=Math.ceil((t.bitLength()+1)/e.step)},i.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i":""},i.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},i.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),s=o.redSub(n),a=r.redSub(e),c=i.redMul(s),u=o.redMul(a),f=i.redMul(a),h=s.redMul(o);return this.curve.point(c,u,h,f)},i.prototype._projDbl=function(){var t,e,n,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var s=(u=this.curve._mulA(i)).redAdd(o);if(this.zOne)t=r.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),e=s.redMul(u.redSub(o)),n=s.redSqr().redSub(s).redSub(s);else{var a=this.z.redSqr(),c=s.redSub(a).redISub(a);t=r.redSub(i).redISub(o).redMul(c),e=s.redMul(u.redSub(o)),n=s.redMul(c)}}else{var u=i.redAdd(o),a=this.curve._mulC(this.c.redMul(this.z)).redSqr(),c=u.redSub(a).redSub(a);t=this.curve._mulC(r.redISub(u)).redMul(c),e=this.curve._mulC(u).redMul(i.redISub(o)),n=u.redMul(c)}return this.curve.point(t,e,n)},i.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},i.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),r=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=n.redSub(e),s=i.redSub(r),a=i.redAdd(r),c=n.redAdd(e),u=o.redMul(s),f=a.redMul(c),h=o.redMul(c),l=s.redMul(a);return this.curve.point(u,f,l,h)},i.prototype._projAdd=function(t){var e,n,r=this.z.redMul(t.z),i=r.redSqr(),o=this.x.redMul(t.x),s=this.y.redMul(t.y),a=this.curve.d.redMul(o).redMul(s),c=i.redSub(a),u=i.redAdd(a),f=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(s),h=r.redMul(c).redMul(f);return this.curve.twisted?(e=r.redMul(u).redMul(s.redSub(this.curve._mulA(o))),n=c.redMul(u)):(e=r.redMul(u).redMul(s.redSub(o)),n=this.curve._mulC(c).redMul(u)),this.curve.point(h,e,n)},i.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},i.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},i.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},i.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},i.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},i.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()},i.prototype.getY=function(){return this.normalize(),this.y.fromRed()},i.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},i.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var n=t.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}return!1},i.prototype.toP=i.prototype.normalize,i.prototype.mixedAdd=i.prototype.add},{"../../elliptic":65,"../curve":68,"bn.js":"BN",inherits:99}],68:[function(t,e,n){var r=n;r.base=t("./base"),r.short=t("./short"),r.mont=t("./mont"),r.edwards=t("./edwards")},{"./base":66,"./edwards":67,"./mont":69,"./short":70}],69:[function(t,e,n){function r(t){c.call(this,"mont",t),this.a=new s(t.a,16).toRed(this.red),this.b=new s(t.b,16).toRed(this.red),this.i4=new s(4).toRed(this.red).redInvm(),this.two=new s(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function i(t,e,n){c.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new s(e,16),this.z=new s(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}var o=t("../curve"),s=t("bn.js"),a=t("inherits"),c=o.base,u=t("../../elliptic").utils;a(r,c),e.exports=r,r.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),r=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e);return 0===r.redSqrt().redSqr().cmp(r)},a(i,c.BasePoint),r.prototype.decodePoint=function(t,e){return this.point(u.toArray(t,e),1)},r.prototype.point=function(t,e){return new i(this,t,e)},r.prototype.pointFromJSON=function(t){return i.fromJSON(this,t)},i.prototype.precompute=function(){},i.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},i.fromJSON=function(t,e){return new i(t,e[0],e[1]||t.one)},i.prototype.inspect=function(){return this.isInfinity()?"":""},i.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},i.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),n=t.redSub(e),r=t.redMul(e),i=n.redMul(e.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},i.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(n),s=i.redMul(r),a=e.z.redMul(o.redAdd(s).redSqr()),c=e.x.redMul(o.redISub(s).redSqr());return this.curve.point(a,c)},i.prototype.mul=function(t){for(var e=t.clone(),n=this,r=this.curve.point(null,null),i=this,o=[];0!==e.cmpn(0);e.iushrn(1))o.push(e.andln(1));for(var s=o.length-1;s>=0;s--)0===o[s]?(n=n.diffAdd(r,i),r=r.dbl()):(r=n.diffAdd(r,i),n=n.dbl());return r},i.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},i.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../../elliptic":65,"../curve":68,"bn.js":"BN",inherits:99}],70:[function(t,e,n){function r(t){f.call(this,"short",t),this.a=new c(t.a,16).toRed(this.red),this.b=new c(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function i(t,e,n,r){f.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new c(e,16),this.y=new c(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function o(t,e,n,r){f.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new c(0)):(this.x=new c(e,16),this.y=new c(n,16),this.z=new c(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}var s=t("../curve"),a=t("../../elliptic"),c=t("bn.js"),u=t("inherits"),f=s.base,h=a.utils.assert;u(r,f),e.exports=r,r.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,n;if(t.beta)e=new c(t.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);e=(e=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(t.lambda)n=new c(t.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?n=i[0]:(n=i[1],h(0===this.g.mul(n).x.cmp(this.g.x.redMul(e))))}var o;return o=t.basis?t.basis.map(function(t){return{a:new c(t.a,16),b:new c(t.b,16)}}):this._getEndoBasis(n),{beta:e,lambda:n,basis:o}}},r.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:c.mont(t),n=new c(2).toRed(e).redInvm(),r=n.redNeg(),i=new c(3).toRed(e).redNeg().redSqrt().redMul(n);return[r.redAdd(i).fromRed(),r.redSub(i).fromRed()]},r.prototype._getEndoBasis=function(t){for(var e,n,r,i,o,s,a,u,f,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=t,d=this.n.clone(),p=new c(1),m=new c(0),b=new c(0),v=new c(1),y=0;0!==l.cmpn(0);){var g=d.div(l);u=d.sub(g.mul(l)),f=b.sub(g.mul(p));var _=v.sub(g.mul(m));if(!r&&u.cmp(h)<0)e=a.neg(),n=p,r=u.neg(),i=f;else if(r&&2==++y)break;a=u,d=l,l=u,b=p,p=f,v=m,m=_}o=u.neg(),s=f;var w=r.sqr().add(i.sqr());return o.sqr().add(s.sqr()).cmp(w)>=0&&(o=e,s=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:i},{a:o,b:s}]},r.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),s=i.mul(n.a),a=o.mul(r.a),c=i.mul(n.b),u=o.mul(r.b);return{k1:t.sub(s).sub(a),k2:c.add(u).neg()}},r.prototype.pointFromX=function(t,e){(t=new c(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(e&&!i||!e&&i)&&(r=r.redNeg()),this.point(t,r)},r.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},r.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},i.prototype.isInfinity=function(){return this.inf},i.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},i.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),r=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},i.prototype.getX=function(){return this.x.fromRed()},i.prototype.getY=function(){return this.y.fromRed()},i.prototype.mul=function(t){return t=new c(t,16),this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},i.prototype.mulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},i.prototype.jmulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},i.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},i.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,r=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return e},i.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},u(o,f.BasePoint),r.prototype.jpoint=function(t,e,n){return new o(this,t,e,n)},o.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r)},o.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},o.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(n),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(n.redMul(this.z)),a=r.redSub(i),c=o.redSub(s);if(0===a.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),f=u.redMul(a),h=r.redMul(u),l=c.redSqr().redIAdd(f).redISub(h).redISub(h),d=c.redMul(h.redISub(l)).redISub(o.redMul(f)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(l,d,p)},o.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,r=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),s=n.redSub(r),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),f=n.redMul(c),h=a.redSqr().redIAdd(u).redISub(f).redISub(f),l=a.redMul(f.redISub(h)).redISub(i.redMul(u)),d=this.z.redMul(s);return this.curve.jpoint(h,l,d)},o.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,n=0;n=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}return!1},o.prototype.inspect=function(){return this.isInfinity()?"":""},o.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../../elliptic":65,"../curve":68,"bn.js":"BN",inherits:99}],71:[function(t,e,n){function r(t){"short"===t.type?this.curve=new a.curve.short(t):"edwards"===t.type?this.curve=new a.curve.edwards(t):this.curve=new a.curve.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,c(this.g.validate(),"Invalid curve"),c(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function i(t,e){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){var n=new r(e);return Object.defineProperty(o,t,{configurable:!0,enumerable:!0,value:n}),n}})}var o=n,s=t("hash.js"),a=t("../elliptic"),c=a.utils.assert;o.PresetCurve=r,i("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:s.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),i("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:s.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),i("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:s.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),i("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:s.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),i("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:s.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),i("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["9"]}),i("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var u;try{u=t("./precomputed/secp256k1")}catch(t){u=void 0}i("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:s.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",u]})},{"../elliptic":65,"./precomputed/secp256k1":78,"hash.js":84}],72:[function(t,e,n){function r(t){if(!(this instanceof r))return new r(t);"string"==typeof t&&(a(s.curves.hasOwnProperty(t),"Unknown curve "+t),t=s.curves[t]),t instanceof s.curves.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var i=t("bn.js"),o=t("hmac-drbg"),s=t("../../elliptic"),a=s.utils.assert,c=t("./key"),u=t("./signature");e.exports=r,r.prototype.keyPair=function(t){return new c(this,t)},r.prototype.keyFromPrivate=function(t,e){return c.fromPrivate(this,t,e)},r.prototype.keyFromPublic=function(t,e){return c.fromPublic(this,t,e)},r.prototype.genKeyPair=function(t){t||(t={});for(var e=new o({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||s.rand(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new i(2));;){var a=new i(e.generate(n));if(!(a.cmp(r)>0))return a.iaddn(1),this.keyFromPrivate(a)}},r.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},r.prototype.sign=function(t,e,n,r){"object"===(void 0===n?"undefined":_typeof(n))&&(r=n,n=null),r||(r={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new i(t,16));for(var s=this.n.byteLength(),a=e.getPrivate().toArray("be",s),c=t.toArray("be",s),f=new o({hash:this.hash,entropy:a,nonce:c,pers:r.pers,persEnc:r.persEnc||"utf8"}),h=this.n.sub(new i(1)),l=0;!0;l++){var d=r.k?r.k(l):new i(f.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(h)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var m=p.getX(),b=m.umod(this.n);if(0!==b.cmpn(0)){var v=d.invm(this.n).mul(b.mul(e.getPrivate()).iadd(t));if(0!==(v=v.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(b)?2:0);return r.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),y^=1),new u({r:b,s:v,recoveryParam:y})}}}}}},r.prototype.verify=function(t,e,n,r){t=this._truncateToN(new i(t,16)),n=this.keyFromPublic(n,r);var o=(e=new u(e,"hex")).r,s=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var a=s.invm(this.n),c=a.mul(t).umod(this.n),f=a.mul(o).umod(this.n);if(!this.curve._maxwellTrick)return!(h=this.g.mulAdd(c,n.getPublic(),f)).isInfinity()&&0===h.getX().umod(this.n).cmp(o);var h=this.g.jmulAdd(c,n.getPublic(),f);return!h.isInfinity()&&h.eqXToP(o)},r.prototype.recoverPubKey=function(t,e,n,r){a((3&n)===n,"The recovery param is more than two bits"),e=new u(e,r);var o=this.n,s=new i(t),c=e.r,f=e.s,h=1&n,l=n>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");c=l?this.curve.pointFromX(c.add(this.curve.n),h):this.curve.pointFromX(c,h);var d=e.r.invm(o),p=o.sub(s).mul(d).umod(o),m=f.mul(d).umod(o);return this.g.mulAdd(p,c,m)},r.prototype.getKeyRecoveryParam=function(t,e,n,r){if(null!==(e=new u(e,r)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},{"../../elliptic":65,"./key":73,"./signature":74,"bn.js":"BN","hmac-drbg":96}],73:[function(t,e,n){function r(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var i=t("bn.js"),o=t("../../elliptic").utils.assert;e.exports=r,r.fromPublic=function(t,e,n){return e instanceof r?e:new r(t,{pub:e,pubEnc:n})},r.fromPrivate=function(t,e,n){return e instanceof r?e:new r(t,{priv:e,privEnc:n})},r.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},r.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},r.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},r.prototype._importPrivate=function(t,e){this.priv=new i(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},r.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?o(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},r.prototype.derive=function(t){return t.mul(this.priv).getX()},r.prototype.sign=function(t,e,n){return this.ec.sign(t,this,e,n)},r.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},r.prototype.inspect=function(){return""}},{"../../elliptic":65,"bn.js":"BN"}],74:[function(t,e,n){function r(t,e){if(t instanceof r)return t;this._importDER(t,e)||(f(t.r&&t.s,"Signature without r or s"),this.r=new c(t.r,16),this.s=new c(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function i(){this.place=0}function o(t,e){var n=t[e.place++];if(!(128&n))return n;for(var r=15&n,i=0,o=0,s=e.place;o>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}var c=t("bn.js"),u=t("../../elliptic").utils,f=u.assert;e.exports=r,r.prototype._importDER=function(t,e){t=u.toArray(t,e);var n=new i;if(48!==t[n.place++])return!1;if(o(t,n)+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;var r=o(t,n),s=t.slice(n.place,r+n.place);if(n.place+=r,2!==t[n.place++])return!1;var a=o(t,n);if(t.length!==a+n.place)return!1;var f=t.slice(n.place,a+n.place);return 0===s[0]&&128&s[1]&&(s=s.slice(1)),0===f[0]&&128&f[1]&&(f=f.slice(1)),this.r=new c(s),this.s=new c(f),this.recoveryParam=null,!0},r.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=s(e),n=s(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];a(r,e.length),(r=r.concat(e)).push(2),a(r,n.length);var i=r.concat(n),o=[48];return a(o,i.length),o=o.concat(i),u.encode(o,t)}},{"../../elliptic":65,"bn.js":"BN"}],75:[function(t,e,n){function r(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof r))return new r(t);var t=o.curves[t].curve;this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=i.sha512}var i=t("hash.js"),o=t("../../elliptic"),s=o.utils,a=s.assert,c=s.parseBytes,u=t("./key"),f=t("./signature");e.exports=r,r.prototype.sign=function(t,e){t=c(t);var n=this.keyFromSecret(e),r=this.hashInt(n.messagePrefix(),t),i=this.g.mul(r),o=this.encodePoint(i),s=this.hashInt(o,n.pubBytes(),t).mul(n.priv()),a=r.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:a,Rencoded:o})},r.prototype.verify=function(t,e,n){t=c(t),e=this.makeSignature(e);var r=this.keyFromPublic(n),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(r.pub().mul(i)).eq(o)},r.prototype.hashInt=function(){for(var t=this.hash(),e=0;e=0;){var o;if(i.isOdd()){var s=i.andln(r-1);o=s>(r>>1)-1?(r>>1)-s:s,i.isubn(o)}else o=0;n.push(o);for(var a=0!==i.cmpn(0)&&0===i.andln(r-1)?e+1:1,c=1;c0||e.cmpn(-i)>0;){var o=t.andln(3)+r&3,s=e.andln(3)+i&3;3===o&&(o=-1),3===s&&(s=-1);var a;a=0==(1&o)?0:3!=(u=t.andln(7)+r&7)&&5!==u||2!==s?o:-o,n[0].push(a);var c;if(0==(1&s))c=0;else{var u=e.andln(7)+i&7;c=3!==u&&5!==u||2!==o?s:-s}n[1].push(c),2*r===a+1&&(r=1-r),2*i===c+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return n},r.cachedProperty=function(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(t){return"string"==typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new i(t,"hex","le")}},{"bn.js":"BN","minimalistic-assert":103,"minimalistic-crypto-utils":104}],80:[function(t,e,n){e.exports={_args:[[{raw:"elliptic@^6.0.0",scope:null,escapedName:"elliptic",name:"elliptic",rawSpec:"^6.0.0",spec:">=6.0.0 <7.0.0",type:"range"},"/Users/frozeman/Sites/_ethereum/web3/node_modules/browserify-sign"]],_from:"elliptic@>=6.0.0 <7.0.0",_id:"elliptic@6.4.0",_inCache:!0,_location:"/elliptic",_nodeVersion:"7.0.0",_npmOperationalInternal:{host:"packages-18-east.internal.npmjs.com",tmp:"tmp/elliptic-6.4.0.tgz_1487798866428_0.30510620190761983"},_npmUser:{name:"indutny",email:"fedor@indutny.com"},_npmVersion:"3.10.8",_phantomChildren:{},_requested:{raw:"elliptic@^6.0.0",scope:null,escapedName:"elliptic",name:"elliptic",rawSpec:"^6.0.0",spec:">=6.0.0 <7.0.0",type:"range"},_requiredBy:["/browserify-sign","/create-ecdh","/secp256k1"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",_shrinkwrap:null,_spec:"elliptic@^6.0.0",_where:"/Users/frozeman/Sites/_ethereum/web3/node_modules/browserify-sign",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},directories:{},dist:{shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",tarball:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz"},files:["lib"],gitHead:"6b0d2b76caae91471649c8e21f0b1d3ba0f96090",homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",maintainers:[{name:"indutny",email:"fedor@indutny.com"}],name:"elliptic",optionalDependencies:{},readme:"ERROR: No README data found!",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0"}},{}],81:[function(t,e,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function o(t){return"number"==typeof t}function s(t){return"object"===(void 0===t?"undefined":_typeof(t))&&null!==t}function a(t){return void 0===t}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(t){if(!o(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},r.prototype.emit=function(t){var e,n,r,o,c,u;if(this._events||(this._events={}),"error"===t&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var f=new Error('Uncaught, unspecified "error" event. ('+e+")");throw f.context=e,f}if(n=this._events[t],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),n.apply(this,o)}else if(s(n))for(o=Array.prototype.slice.call(arguments,1),r=(u=n.slice()).length,c=0;c0&&this._events[t].length>n&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(t,e){function n(){this.removeListener(t,n),r||(r=!0,e.apply(this,arguments))}if(!i(e))throw TypeError("listener must be a function");var r=!1;return n.listener=e,this.on(t,n),this},r.prototype.removeListener=function(t,e){var n,r,o,a;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],o=n.length,r=-1,n===e||i(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(s(n)){for(a=o;a-- >0;)if(n[a]===e||n[a].listener&&n[a].listener===e){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},r.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],i(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},r.prototype.listeners=function(t){return this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},r.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},r.listenerCount=function(t,e){return t.listenerCount(e)}},{}],82:[function(t,e,n){(function(n){var r=t("create-hash/md5");e.exports=function(t,e,i,o){n.isBuffer(t)||(t=new n(t,"binary")),e&&!n.isBuffer(e)&&(e=new n(e,"binary")),i/=8,o=o||0;for(var s,a,c=0,u=0,f=new n(i),h=new n(o),l=0,d=[];;){if(l++>0&&d.push(s),d.push(t),e&&d.push(e),s=r(n.concat(d)),d=[],a=0,i>0)for(;0!==i&&a!==s.length;)f[c++]=s[a],i--,a++;if(o>0&&a!==s.length)for(;0!==o&&a!==s.length;)h[u++]=s[a],o--,a++;if(0===i&&0===o)break}for(a=0;a=this._blockSize;){for(var o=this._blockOffset;o0;++s)this._length[s]+=a,(a=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*a);return this},r.prototype._update=function(t){throw new Error("_update is not implemented")},r.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();return void 0!==t&&(e=e.toString(t)),e},r.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=r}).call(this,t("buffer").Buffer)},{buffer:45,inherits:99,stream:148}],84:[function(t,e,n){var r=n;r.utils=t("./hash/utils"),r.common=t("./hash/common"),r.sha=t("./hash/sha"),r.ripemd=t("./hash/ripemd"),r.hmac=t("./hash/hmac"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"./hash/common":85,"./hash/hmac":86,"./hash/ripemd":87,"./hash/sha":88,"./hash/utils":95}],85:[function(t,e,n){function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var i=t("./utils"),o=t("minimalistic-assert");n.BlockHash=r,r.prototype.update=function(t,e){if(t=i.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=i.join32(t,0,t.length-n,this.endian);for(var r=0;r>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;othis.blockSize&&(t=(new this.Hash).update(t).digest()),o(t.length<=this.blockSize);for(var e=t.length;e>>3},n.g1_256=function(t){return s(t,17)^s(t,19)^t>>>10}},{"../utils":95}],95:[function(t,e,n){function r(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function i(t){return 1===t.length?"0"+t:t}function o(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}var s=t("minimalistic-assert"),a=t("inherits");n.inherits=a,n.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),r=0;r>8,s=255&i;o?n.push(o,s):n.push(s)}else for(r=0;r>>0}return o},n.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},n.rotr32=function(t,e){return t>>>e|t<<32-e},n.rotl32=function(t,e){return t<>>32-e},n.sum32=function(t,e){return t+e>>>0},n.sum32_3=function(t,e,n){return t+e+n>>>0},n.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},n.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},n.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,s=(o>>0,t[e+1]=o},n.sum64_hi=function(t,e,n,r){return(e+r>>>0>>0},n.sum64_lo=function(t,e,n,r){return e+r>>>0},n.sum64_4_hi=function(t,e,n,r,i,o,s,a){var c=0,u=e;return c+=(u=u+r>>>0)>>0)>>0)>>0},n.sum64_4_lo=function(t,e,n,r,i,o,s,a){return e+r+o+a>>>0},n.sum64_5_hi=function(t,e,n,r,i,o,s,a,c,u){var f=0,h=e;return f+=(h=h+r>>>0)>>0)>>0)>>0)>>0},n.sum64_5_lo=function(t,e,n,r,i,o,s,a,c,u){return e+r+o+a+u>>>0},n.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},n.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},n.shr64_hi=function(t,e,n){return t>>>n},n.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},{inherits:99,"minimalistic-assert":103}],96:[function(t,e,n){function r(t){if(!(this instanceof r))return new r(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),n=o.toArray(t.nonce,t.nonceEnc||"hex"),i=o.toArray(t.pers,t.persEnc||"hex");s(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,i)}var i=t("hash.js"),o=t("minimalistic-crypto-utils"),s=t("minimalistic-assert");e.exports=r,r.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},r.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=n,n=e,e=null),n&&(n=o.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length>1,f=-7,h=n?i-1:0,l=n?-1:1,d=t[e+h];for(h+=l,o=d&(1<<-f)-1,d>>=-f,f+=a;f>0;o=256*o+t[e+h],h+=l,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=r;f>0;s=256*s+t[e+h],h+=l,f-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=u}return(d?-1:1)*s*Math.pow(2,o-r)},n.write=function(t,e,n,r,i,o){var s,a,c,u=8*o-i-1,f=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+h>=1?l/c:l*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=f?(a=0,s=f):s+h>=1?(a=(e*c-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[n+d]=255&a,d+=p,a/=256,i-=8);for(s=s<0;t[n+d]=255&s,d+=p,s/=256,u-=8);t[n+d-p]|=128*m}},{}],98:[function(t,e,n){var r=[].indexOf;e.exports=function(t,e){if(r)return t.indexOf(e);for(var n=0;n>=7-r),new i(n)},r.prototype.test=function(t,e,n){var r=t.bitLength(),o=i.mont(t),s=new i(1).toRed(o);e||(e=Math.max(1,r/48|0));for(var a=t.subn(1),c=a.subn(1),u=0;!a.testn(u);u++);for(var f=t.shrn(u),h=a.toRed(o);e>0;e--){var l=this._rand(c);n&&n(l);var d=l.toRed(o).redPow(f);if(0!==d.cmp(s)&&0!==d.cmp(h)){for(var p=1;p0;e--){var h=this._rand(a),l=t.gcd(h);if(0!==l.cmpn(1))return l;var d=h.toRed(r).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(f)){for(var p=1;p>8,s=255&i;o?n.push(o,s):n.push(s)}return n},o.zero2=r,o.toHex=i,o.encode=function(t,e){return"hex"===e?i(t):t}},{}],105:[function(t,e,n){e.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],106:[function(t,e,n){var r=t("asn1.js");n.certificate=t("./certificate");var i=r.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});n.RSAPrivateKey=i;var o=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});n.RSAPublicKey=o;var s=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});n.PublicKey=s;var a=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),c=r.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});n.PrivateKey=c;var u=r.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});n.EncryptedPrivateKey=u;var f=r.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});n.DSAPrivateKey=f,n.DSAparam=r.define("DSAparam",function(){this.int()});var h=r.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())});n.ECPrivateKey=h;var l=r.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});n.signature=r.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":107,"asn1.js":2}],107:[function(t,e,n){var r=t("asn1.js"),i=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),s=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),a=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}),c=r.define("RelativeDistinguishedName",function(){this.setof(o)}),u=r.define("RDNSequence",function(){this.seqof(c)}),f=r.define("Name",function(){this.choice({rdnSequence:this.use(u)})}),h=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),l=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(f),this.key("validity").use(h),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())}),p=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())});e.exports=p},{"asn1.js":2}],108:[function(t,e,n){(function(n){var r=/Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m,i=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,o=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,s=t("evp_bytestokey"),a=t("browserify-aes");e.exports=function(t,e){var c,u=t.toString(),f=u.match(r);if(f){var h="aes"+f[1],l=new n(f[2],"hex"),d=new n(f[3].replace(/\r?\n/g,""),"base64"),p=s(e,l.slice(0,8),parseInt(f[1],10)).key,m=[],b=a.createDecipheriv(h,p,l);m.push(b.update(d)),m.push(b.final()),c=n.concat(m)}else{var v=u.match(o);c=new n(v[2].replace(/\r?\n/g,""),"base64")}return{tag:u.match(i)[1],data:c}}}).call(this,t("buffer").Buffer)},{"browserify-aes":21,buffer:45,evp_bytestokey:82}],109:[function(t,e,n){(function(n){function r(t){var e;"object"!==(void 0===t?"undefined":_typeof(t))||n.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=new n(t));var r,s,c=a(t,e),u=c.tag,f=c.data;switch(u){case"CERTIFICATE":s=o.certificate.decode(f,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(s||(s=o.PublicKey.decode(f,"der")),r=s.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPublicKey.decode(s.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return s.subjectPrivateKey=s.subjectPublicKey,{type:"ec",data:s};case"1.2.840.10040.4.1":return s.algorithm.params.pub_key=o.DSAparam.decode(s.subjectPublicKey.data,"der"),{type:"dsa",data:s.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+u);case"ENCRYPTED PRIVATE KEY":f=i(f=o.EncryptedPrivateKey.decode(f,"der"),e);case"PRIVATE KEY":switch(s=o.PrivateKey.decode(f,"der"),r=s.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPrivateKey.decode(s.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:s.algorithm.curve,privateKey:o.ECPrivateKey.decode(s.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return s.algorithm.params.priv_key=o.DSAparam.decode(s.subjectPrivateKey,"der"),{type:"dsa",params:s.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+u);case"RSA PUBLIC KEY":return o.RSAPublicKey.decode(f,"der");case"RSA PRIVATE KEY":return o.RSAPrivateKey.decode(f,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:o.DSAPrivateKey.decode(f,"der")};case"EC PRIVATE KEY":return f=o.ECPrivateKey.decode(f,"der"),{curve:f.parameters.value,privateKey:f.privateKey};default:throw new Error("unknown key type "+u)}}function i(t,e){var r=t.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=s[t.algorithm.decrypt.cipher.algo.join(".")],a=t.algorithm.decrypt.cipher.iv,f=t.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,l=u.pbkdf2Sync(e,r,i,h),d=c.createDecipheriv(o,l,a),p=[];return p.push(d.update(f)),p.push(d.final()),n.concat(p)}var o=t("./asn1"),s=t("./aesid.json"),a=t("./fixProc"),c=t("browserify-aes"),u=t("pbkdf2");e.exports=r,r.signature=o.signature}).call(this,t("buffer").Buffer)},{"./aesid.json":105,"./asn1":106,"./fixProc":108,"browserify-aes":21,buffer:45,pbkdf2:111}],110:[function(t,e,n){(function(t){function e(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r=-1&&!i;o--){var s=o>=0?arguments[o]:t.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(n=s+"/"+n,i="/"===s.charAt(0))}return n=e(r(n.split("/"),function(t){return!!t}),!i).join("/"),(i?"/":"")+n||"."},n.normalize=function(t){var i=n.isAbsolute(t),o="/"===s(t,-1);return(t=e(r(t.split("/"),function(t){return!!t}),!i).join("/"))||i||(t="."),t&&o&&(t+="/"),(i?"/":"")+t},n.isAbsolute=function(t){return"/"===t.charAt(0)},n.join=function(){var t=Array.prototype.slice.call(arguments,0);return n.normalize(r(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},n.relative=function(t,e){function r(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=n.resolve(t).substr(1),e=n.resolve(e).substr(1);for(var i=r(t.split("/")),o=r(e.split("/")),s=Math.min(i.length,o.length),a=s,c=0;c=6?"utf-8":"binary",e.exports=n}).call(this,t("_process"))},{_process:117}],114:[function(t,e,n){var r=Math.pow(2,30)-1;e.exports=function(t,e){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>r||e!==e)throw new TypeError("Bad key length")}},{}],115:[function(t,e,n){function r(t,e,n){var r=i(t),o="sha512"===t||"sha384"===t?128:64;e.length>o?e=r(e):e.length1)for(var n=1;n=e.length){o++;break}var s=e.slice(2,i-1);e.slice(i-1,i);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++,s.length<8&&o++,o)throw new Error("decryption error");return e.slice(i)}function o(t,e){t=new n(t),e=new n(e);var r=0,i=t.length;t.length!==e.length&&(r++,i=Math.min(t.length,e.length));for(var o=-1;++oh||new u(e).cmp(c.modulus)>=0)throw new Error("decryption error");var d;d=o?l(new u(e),c):f(e,c);var p=new n(h-d.length);if(p.fill(0),d=n.concat([p,d],h),4===a)return r(c,d);if(1===a)return i(0,d,o);if(3===a)return d;throw new Error("unknown padding")}}).call(this,t("buffer").Buffer)},{"./mgf":119,"./withPublic":122,"./xor":123,"bn.js":"BN","browserify-rsa":37,buffer:45,"create-hash":49,"parse-asn1":109}],121:[function(t,e,n){(function(n){function r(t,e){var r=t.modulus.byteLength(),i=e.length,o=c("sha1").update(new n("")).digest(),s=o.length,l=2*s;if(i>r-l-2)throw new Error("message too long");var d=new n(r-i-l-2);d.fill(0);var p=r-s-1,m=a(s),b=f(n.concat([o,d,new n([1]),e],p),u(m,p)),v=f(m,u(b,s));return new h(n.concat([new n([0]),v,b],r))}function i(t,e,r){var i=e.length,s=t.modulus.byteLength();if(i>s-11)throw new Error("message too long");var a;return r?(a=new n(s-i-3)).fill(255):a=o(s-i-3),new h(n.concat([new n([0,r?1:2]),a,new n([0]),e],s))}function o(t,e){for(var r,i=new n(t),o=0,s=a(2*t),c=0;o=0)throw new Error("data too long for modulus")}return n?d(a,c):l(a,c)}}).call(this,t("buffer").Buffer)},{"./mgf":119,"./withPublic":122,"./xor":123,"bn.js":"BN","browserify-rsa":37,buffer:45,"create-hash":49,"parse-asn1":109,randombytes:124}],122:[function(t,e,n){(function(n){var r=t("bn.js");e.exports=function(t,e){return new n(t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed().toArray())}}).call(this,t("buffer").Buffer)},{"bn.js":"BN",buffer:45}],123:[function(t,e,n){e.exports=function(t,e){for(var n=t.length,r=-1;++r65536)throw new Error("requested too many random bytes");var s=new r.Uint8Array(t);t>0&&o.getRandomValues(s);var a=i.from(s.buffer);return"function"==typeof e?n.nextTick(function(){e(null,a)}):a}:e.exports=function(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:117,"safe-buffer":139}],125:[function(t,e,n){e.exports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":126}],126:[function(t,e,n){function r(t){if(!(this instanceof r))return new r(t);u.call(this,t),f.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this._writableState.ended||s(o,this)}function o(t){t.end()}var s=t("process-nextick-args"),a=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};e.exports=r;var c=t("core-util-is");c.inherits=t("inherits");var u=t("./_stream_readable"),f=t("./_stream_writable");c.inherits(r,u);for(var h=a(f.prototype),l=0;l0?("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===N.prototype||(e=i(e)),r?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):f(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?f(t,s,e,!1):y(t,s)):f(t,s,e,!1))):r||(s.reading=!1)}return l(s)}function f(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&b(t)),y(t,e)}function h(t,e){var n;return o(e)||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function l(t){return!t.ended&&(t.needReadable||t.length=K?t=K:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function p(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=d(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function m(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,b(t)}}function b(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(z("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?P(v,t):v(t))}function v(t){z("emit readable"),t.emit("readable"),S(t)}function y(t,e){e.readingMore||(e.readingMore=!0,P(g,t,e))}function g(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=E(t,e.buffer,e.decoder),n}function E(t,e,n){var r;return to.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),0===(t-=s)){s===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++r}return e.length-=r,i}function C(t,e){var n=N.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),0===(t-=s)){s===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++i}return e.length-=i,n}function A(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,P(T,e,t))}function T(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function I(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return z("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?A(this):b(this),null;if(0===(t=p(t,e))&&e.ended)return 0===e.length&&A(this),null;var r=e.needReadable;z("need readable",r),(0===e.length||e.length-t0?M(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&A(this)),null!==i&&this.emit("data",i),i},c.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},c.prototype.pipe=function(t,e){function r(t,e){z("onunpipe"),t===l&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,o())}function i(){z("onend"),t.end()}function o(){z("cleanup"),t.removeListener("close",u),t.removeListener("finish",f),t.removeListener("drain",m),t.removeListener("error",c),t.removeListener("unpipe",r),l.removeListener("end",i),l.removeListener("end",h),l.removeListener("data",a),b=!0,!d.awaitDrain||t._writableState&&!t._writableState.needDrain||m()}function a(e){z("ondata"),v=!1,!1!==t.write(e)||v||((1===d.pipesCount&&d.pipes===t||d.pipesCount>1&&-1!==I(d.pipes,t))&&!b&&(z("false write response, pause",l._readableState.awaitDrain),l._readableState.awaitDrain++,v=!0),l.pause())}function c(e){z("onerror",e),h(),t.removeListener("error",c),0===R(t,"error")&&t.emit("error",e)}function u(){t.removeListener("finish",f),h()}function f(){z("onfinish"),t.removeListener("close",u),h()}function h(){z("unpipe"),l.unpipe(t)}var l=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=t;break;case 1:d.pipes=[d.pipes,t];break;default:d.pipes.push(t)}d.pipesCount+=1,z("pipe count=%d opts=%j",d.pipesCount,e);var p=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?i:h;d.endEmitted?P(p):l.once("end",p),t.on("unpipe",r);var m=_(l);t.on("drain",m);var b=!1,v=!1;return l.on("data",a),s(t,"error",c),t.once("close",u),t.once("finish",f),t.emit("pipe",l),d.flowing||(z("pipe resume"),l.resume()),t},c.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o-1?setImmediate:j;u.WritableState=c;var T=t("core-util-is");T.inherits=t("inherits");var I={deprecate:t("util-deprecate")},P=t("./internal/streams/stream"),B=t("safe-buffer").Buffer,F=r.Uint8Array||function(){},R=t("./internal/streams/destroy");T.inherits(u,P),c.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(c.prototype,"buffer",{get:I.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}();var O;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(O=Function.prototype[Symbol.hasInstance],Object.defineProperty(u,Symbol.hasInstance,{value:function(t){return!!O.call(this,t)||t&&t._writableState instanceof c}})):O=function(t){return t instanceof this},u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},u.prototype.write=function(t,e,n){var r=this._writableState,i=!1,c=s(t)&&!r.objectMode;return c&&!B.isBuffer(t)&&(t=o(t)),"function"==typeof e&&(n=e,e=null),c?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=a),r.ended?f(this,n):(c||h(this,r,t,n))&&(r.pendingcb++,i=d(this,r,c,t,e,n)),i},u.prototype.cork=function(){this._writableState.corked++},u.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||_(this,t))},u.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},u.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},u.prototype._writev=null,u.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||M(this,r,n)},Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),u.prototype.destroy=R.destroy,u.prototype._undestroy=R.undestroy,u.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":126,"./internal/streams/destroy":132,"./internal/streams/stream":133,_process:117,"core-util-is":47,inherits:99,"process-nextick-args":116,"safe-buffer":139,"util-deprecate":150}],131:[function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,n){t.copy(e,n)}var o=t("safe-buffer").Buffer;e.exports=function(){function t(){r(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var e=o.allocUnsafe(t>>>0),n=this.head,r=0;n;)i(n.data,e,r),r+=n.data.length,n=n.next;return e},t}()},{"safe-buffer":139}],132:[function(t,e,n){function r(t,e){t.emit("error",e)}var i=t("process-nextick-args");e.exports={destroy:function(t,e){var n=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;o||s?e?e(t):!t||this._writableState&&this._writableState.errorEmitted||i(r,this,t):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(i(r,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)}))},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":116}],133:[function(t,e,n){e.exports=t("events").EventEmitter},{events:81}],134:[function(t,e,n){e.exports=t("./readable").PassThrough},{"./readable":135}],135:[function(t,e,n){(n=e.exports=t("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=t("./lib/_stream_writable.js"),n.Duplex=t("./lib/_stream_duplex.js"),n.Transform=t("./lib/_stream_transform.js"),n.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":126,"./lib/_stream_passthrough.js":127,"./lib/_stream_readable.js":128,"./lib/_stream_transform.js":129,"./lib/_stream_writable.js":130}],136:[function(t,e,n){e.exports=t("./readable").Transform},{"./readable":135}],137:[function(t,e,n){e.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":130}],138:[function(t,e,n){(function(n){function r(){h.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function i(t,e){return t<>>32-e}function o(t,e,n,r,o,s,a,c){return i(t+(e^n^r)+s+a|0,c)+o|0}function s(t,e,n,r,o,s,a,c){return i(t+(e&n|~e&r)+s+a|0,c)+o|0}function a(t,e,n,r,o,s,a,c){return i(t+((e|~n)^r)+s+a|0,c)+o|0}function c(t,e,n,r,o,s,a,c){return i(t+(e&r|n&~r)+s+a|0,c)+o|0}function u(t,e,n,r,o,s,a,c){return i(t+(e^(n|~r))+s+a|0,c)+o|0}var f=t("inherits"),h=t("hash-base");f(r,h),r.prototype._update=function(){for(var t=new Array(16),e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,r=this._b,f=this._c,h=this._d,l=this._e;l=o(l,n=o(n,r,f,h,l,t[0],0,11),r,f=i(f,10),h,t[1],0,14),r=o(r=i(r,10),f=o(f,h=o(h,l,n,r,f,t[2],0,15),l,n=i(n,10),r,t[3],0,12),h,l=i(l,10),n,t[4],0,5),h=o(h=i(h,10),l=o(l,n=o(n,r,f,h,l,t[5],0,8),r,f=i(f,10),h,t[6],0,7),n,r=i(r,10),f,t[7],0,9),n=o(n=i(n,10),r=o(r,f=o(f,h,l,n,r,t[8],0,11),h,l=i(l,10),n,t[9],0,13),f,h=i(h,10),l,t[10],0,14),f=o(f=i(f,10),h=o(h,l=o(l,n,r,f,h,t[11],0,15),n,r=i(r,10),f,t[12],0,6),l,n=i(n,10),r,t[13],0,7),l=s(l=i(l,10),n=o(n,r=o(r,f,h,l,n,t[14],0,9),f,h=i(h,10),l,t[15],0,8),r,f=i(f,10),h,t[7],1518500249,7),r=s(r=i(r,10),f=s(f,h=s(h,l,n,r,f,t[4],1518500249,6),l,n=i(n,10),r,t[13],1518500249,8),h,l=i(l,10),n,t[1],1518500249,13),h=s(h=i(h,10),l=s(l,n=s(n,r,f,h,l,t[10],1518500249,11),r,f=i(f,10),h,t[6],1518500249,9),n,r=i(r,10),f,t[15],1518500249,7),n=s(n=i(n,10),r=s(r,f=s(f,h,l,n,r,t[3],1518500249,15),h,l=i(l,10),n,t[12],1518500249,7),f,h=i(h,10),l,t[0],1518500249,12),f=s(f=i(f,10),h=s(h,l=s(l,n,r,f,h,t[9],1518500249,15),n,r=i(r,10),f,t[5],1518500249,9),l,n=i(n,10),r,t[2],1518500249,11),l=s(l=i(l,10),n=s(n,r=s(r,f,h,l,n,t[14],1518500249,7),f,h=i(h,10),l,t[11],1518500249,13),r,f=i(f,10),h,t[8],1518500249,12),r=a(r=i(r,10),f=a(f,h=a(h,l,n,r,f,t[3],1859775393,11),l,n=i(n,10),r,t[10],1859775393,13),h,l=i(l,10),n,t[14],1859775393,6),h=a(h=i(h,10),l=a(l,n=a(n,r,f,h,l,t[4],1859775393,7),r,f=i(f,10),h,t[9],1859775393,14),n,r=i(r,10),f,t[15],1859775393,9),n=a(n=i(n,10),r=a(r,f=a(f,h,l,n,r,t[8],1859775393,13),h,l=i(l,10),n,t[1],1859775393,15),f,h=i(h,10),l,t[2],1859775393,14),f=a(f=i(f,10),h=a(h,l=a(l,n,r,f,h,t[7],1859775393,8),n,r=i(r,10),f,t[0],1859775393,13),l,n=i(n,10),r,t[6],1859775393,6),l=a(l=i(l,10),n=a(n,r=a(r,f,h,l,n,t[13],1859775393,5),f,h=i(h,10),l,t[11],1859775393,12),r,f=i(f,10),h,t[5],1859775393,7),r=c(r=i(r,10),f=c(f,h=a(h,l,n,r,f,t[12],1859775393,5),l,n=i(n,10),r,t[1],2400959708,11),h,l=i(l,10),n,t[9],2400959708,12),h=c(h=i(h,10),l=c(l,n=c(n,r,f,h,l,t[11],2400959708,14),r,f=i(f,10),h,t[10],2400959708,15),n,r=i(r,10),f,t[0],2400959708,14),n=c(n=i(n,10),r=c(r,f=c(f,h,l,n,r,t[8],2400959708,15),h,l=i(l,10),n,t[12],2400959708,9),f,h=i(h,10),l,t[4],2400959708,8),f=c(f=i(f,10),h=c(h,l=c(l,n,r,f,h,t[13],2400959708,9),n,r=i(r,10),f,t[3],2400959708,14),l,n=i(n,10),r,t[7],2400959708,5),l=c(l=i(l,10),n=c(n,r=c(r,f,h,l,n,t[15],2400959708,6),f,h=i(h,10),l,t[14],2400959708,8),r,f=i(f,10),h,t[5],2400959708,6),r=u(r=i(r,10),f=c(f,h=c(h,l,n,r,f,t[6],2400959708,5),l,n=i(n,10),r,t[2],2400959708,12),h,l=i(l,10),n,t[4],2840853838,9),h=u(h=i(h,10),l=u(l,n=u(n,r,f,h,l,t[0],2840853838,15),r,f=i(f,10),h,t[5],2840853838,5),n,r=i(r,10),f,t[9],2840853838,11),n=u(n=i(n,10),r=u(r,f=u(f,h,l,n,r,t[7],2840853838,6),h,l=i(l,10),n,t[12],2840853838,8),f,h=i(h,10),l,t[2],2840853838,13),f=u(f=i(f,10),h=u(h,l=u(l,n,r,f,h,t[10],2840853838,12),n,r=i(r,10),f,t[14],2840853838,5),l,n=i(n,10),r,t[1],2840853838,12),l=u(l=i(l,10),n=u(n,r=u(r,f,h,l,n,t[3],2840853838,13),f,h=i(h,10),l,t[8],2840853838,14),r,f=i(f,10),h,t[11],2840853838,11),r=u(r=i(r,10),f=u(f,h=u(h,l,n,r,f,t[6],2840853838,8),l,n=i(n,10),r,t[15],2840853838,5),h,l=i(l,10),n,t[13],2840853838,6),h=i(h,10);var d=this._a,p=this._b,m=this._c,b=this._d,v=this._e;v=u(v,d=u(d,p,m,b,v,t[5],1352829926,8),p,m=i(m,10),b,t[14],1352829926,9),p=u(p=i(p,10),m=u(m,b=u(b,v,d,p,m,t[7],1352829926,9),v,d=i(d,10),p,t[0],1352829926,11),b,v=i(v,10),d,t[9],1352829926,13),b=u(b=i(b,10),v=u(v,d=u(d,p,m,b,v,t[2],1352829926,15),p,m=i(m,10),b,t[11],1352829926,15),d,p=i(p,10),m,t[4],1352829926,5),d=u(d=i(d,10),p=u(p,m=u(m,b,v,d,p,t[13],1352829926,7),b,v=i(v,10),d,t[6],1352829926,7),m,b=i(b,10),v,t[15],1352829926,8),m=u(m=i(m,10),b=u(b,v=u(v,d,p,m,b,t[8],1352829926,11),d,p=i(p,10),m,t[1],1352829926,14),v,d=i(d,10),p,t[10],1352829926,14),v=c(v=i(v,10),d=u(d,p=u(p,m,b,v,d,t[3],1352829926,12),m,b=i(b,10),v,t[12],1352829926,6),p,m=i(m,10),b,t[6],1548603684,9),p=c(p=i(p,10),m=c(m,b=c(b,v,d,p,m,t[11],1548603684,13),v,d=i(d,10),p,t[3],1548603684,15),b,v=i(v,10),d,t[7],1548603684,7),b=c(b=i(b,10),v=c(v,d=c(d,p,m,b,v,t[0],1548603684,12),p,m=i(m,10),b,t[13],1548603684,8),d,p=i(p,10),m,t[5],1548603684,9),d=c(d=i(d,10),p=c(p,m=c(m,b,v,d,p,t[10],1548603684,11),b,v=i(v,10),d,t[14],1548603684,7),m,b=i(b,10),v,t[15],1548603684,7),m=c(m=i(m,10),b=c(b,v=c(v,d,p,m,b,t[8],1548603684,12),d,p=i(p,10),m,t[12],1548603684,7),v,d=i(d,10),p,t[4],1548603684,6),v=c(v=i(v,10),d=c(d,p=c(p,m,b,v,d,t[9],1548603684,15),m,b=i(b,10),v,t[1],1548603684,13),p,m=i(m,10),b,t[2],1548603684,11),p=a(p=i(p,10),m=a(m,b=a(b,v,d,p,m,t[15],1836072691,9),v,d=i(d,10),p,t[5],1836072691,7),b,v=i(v,10),d,t[1],1836072691,15),b=a(b=i(b,10),v=a(v,d=a(d,p,m,b,v,t[3],1836072691,11),p,m=i(m,10),b,t[7],1836072691,8),d,p=i(p,10),m,t[14],1836072691,6),d=a(d=i(d,10),p=a(p,m=a(m,b,v,d,p,t[6],1836072691,6),b,v=i(v,10),d,t[9],1836072691,14),m,b=i(b,10),v,t[11],1836072691,12),m=a(m=i(m,10),b=a(b,v=a(v,d,p,m,b,t[8],1836072691,13),d,p=i(p,10),m,t[12],1836072691,5),v,d=i(d,10),p,t[2],1836072691,14),v=a(v=i(v,10),d=a(d,p=a(p,m,b,v,d,t[10],1836072691,13),m,b=i(b,10),v,t[0],1836072691,13),p,m=i(m,10),b,t[4],1836072691,7),p=s(p=i(p,10),m=s(m,b=a(b,v,d,p,m,t[13],1836072691,5),v,d=i(d,10),p,t[8],2053994217,15),b,v=i(v,10),d,t[6],2053994217,5),b=s(b=i(b,10),v=s(v,d=s(d,p,m,b,v,t[4],2053994217,8),p,m=i(m,10),b,t[1],2053994217,11),d,p=i(p,10),m,t[3],2053994217,14),d=s(d=i(d,10),p=s(p,m=s(m,b,v,d,p,t[11],2053994217,14),b,v=i(v,10),d,t[15],2053994217,6),m,b=i(b,10),v,t[0],2053994217,14),m=s(m=i(m,10),b=s(b,v=s(v,d,p,m,b,t[5],2053994217,6),d,p=i(p,10),m,t[12],2053994217,9),v,d=i(d,10),p,t[2],2053994217,12),v=s(v=i(v,10),d=s(d,p=s(p,m,b,v,d,t[13],2053994217,9),m,b=i(b,10),v,t[9],2053994217,12),p,m=i(m,10),b,t[7],2053994217,5),p=o(p=i(p,10),m=s(m,b=s(b,v,d,p,m,t[10],2053994217,15),v,d=i(d,10),p,t[14],2053994217,8),b,v=i(v,10),d,t[12],0,8),b=o(b=i(b,10),v=o(v,d=o(d,p,m,b,v,t[15],0,5),p,m=i(m,10),b,t[10],0,12),d,p=i(p,10),m,t[4],0,9),d=o(d=i(d,10),p=o(p,m=o(m,b,v,d,p,t[1],0,12),b,v=i(v,10),d,t[5],0,5),m,b=i(b,10),v,t[8],0,14),m=o(m=i(m,10),b=o(b,v=o(v,d,p,m,b,t[7],0,6),d,p=i(p,10),m,t[6],0,8),v,d=i(d,10),p,t[2],0,13),v=o(v=i(v,10),d=o(d,p=o(p,m,b,v,d,t[13],0,6),m,b=i(b,10),v,t[14],0,5),p,m=i(m,10),b,t[0],0,15),p=o(p=i(p,10),m=o(m,b=o(b,v,d,p,m,t[3],0,13),v,d=i(d,10),p,t[9],0,11),b,v=i(v,10),d,t[11],0,11),b=i(b,10);var y=this._b+f+b|0;this._b=this._c+h+v|0,this._c=this._d+l+d|0,this._d=this._e+n+p|0,this._e=this._a+r+m|0,this._a=y},r.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},e.exports=r}).call(this,t("buffer").Buffer)},{buffer:45,"hash-base":83,inherits:99}],139:[function(t,e,n){function r(t,e){for(var n in t)e[n]=t[n]}function i(t,e,n){return s(t,e,n)}var o=t("buffer"),s=o.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?e.exports=o:(r(o,n),n.Buffer=i),r(s,i),i.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return s(t,e,n)},i.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=s(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},i.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return s(t)},i.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},{buffer:45}],140:[function(t,e,n){(function(t){function n(e,n){this._block=new t(e),this._finalSize=n,this._blockSize=e,this._len=0,this._s=0}n.prototype.update=function(e,n){"string"==typeof e&&(e=new t(e,n=n||"utf8"));for(var r=this._len+=e.length,i=this._s||0,o=0,s=this._block;i=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(e,this._blockSize-4);var n=this._update(this._block)||this._hash();return t?n.toString(t):n},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n}).call(this,t("buffer").Buffer)},{buffer:45}],141:[function(t,e,n){(n=e.exports=function(t){t=t.toLowerCase();var e=n[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e}).sha=t("./sha"),n.sha1=t("./sha1"),n.sha224=t("./sha224"),n.sha256=t("./sha256"),n.sha384=t("./sha384"),n.sha512=t("./sha512")},{"./sha":142,"./sha1":143,"./sha224":144,"./sha256":145,"./sha384":146,"./sha512":147}],142:[function(t,e,n){(function(n){function r(){this.init(),this._w=f,c.call(this,64,56)}function i(t){return t<<5|t>>>27}function o(t){return t<<30|t>>>2}function s(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}var a=t("inherits"),c=t("./hash"),u=[1518500249,1859775393,-1894007588,-899497514],f=new Array(80);a(r,c),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,a=0|this._c,c=0|this._d,f=0|this._e,h=0;h<16;++h)e[h]=t.readInt32BE(4*h);for(;h<80;++h)e[h]=e[h-3]^e[h-8]^e[h-14]^e[h-16];for(var l=0;l<80;++l){var d=~~(l/20),p=i(n)+s(d,r,a,c)+f+e[l]+u[d]|0;f=c,c=a,a=o(r),r=n,n=p}this._a=n+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=c+this._d|0,this._e=f+this._e|0},r.prototype._hash=function(){var t=new n(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":140,buffer:45,inherits:99}],143:[function(t,e,n){(function(n){function r(){this.init(),this._w=h,u.call(this,64,56)}function i(t){return t<<1|t>>>31}function o(t){return t<<5|t>>>27}function s(t){return t<<30|t>>>2}function a(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}var c=t("inherits"),u=t("./hash"),f=[1518500249,1859775393,-1894007588,-899497514],h=new Array(80);c(r,u),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,c=0|this._c,u=0|this._d,h=0|this._e,l=0;l<16;++l)e[l]=t.readInt32BE(4*l);for(;l<80;++l)e[l]=i(e[l-3]^e[l-8]^e[l-14]^e[l-16]);for(var d=0;d<80;++d){var p=~~(d/20),m=o(n)+a(p,r,c,u)+h+e[d]+f[p]|0;h=u,u=c,c=s(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=c+this._c|0,this._d=u+this._d|0,this._e=h+this._e|0},r.prototype._hash=function(){var t=new n(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":140,buffer:45,inherits:99}],144:[function(t,e,n){(function(n){function r(){this.init(),this._w=a,s.call(this,64,56)}var i=t("inherits"),o=t("./sha256"),s=t("./hash"),a=new Array(64);i(r,o),r.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},r.prototype._hash=function(){var t=new n(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":140,"./sha256":145,buffer:45,inherits:99}],145:[function(t,e,n){(function(n){function r(){this.init(),this._w=d,h.call(this,64,56)}function i(t,e,n){return n^t&(e^n)}function o(t,e,n){return t&e|n&(t|e)}function s(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function a(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function c(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function u(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}var f=t("inherits"),h=t("./hash"),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],d=new Array(64);f(r,h),r.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,f=0|this._c,h=0|this._d,d=0|this._e,p=0|this._f,m=0|this._g,b=0|this._h,v=0;v<16;++v)e[v]=t.readInt32BE(4*v);for(;v<64;++v)e[v]=u(e[v-2])+e[v-7]+c(e[v-15])+e[v-16]|0;for(var y=0;y<64;++y){var g=b+a(d)+i(d,p,m)+l[y]+e[y]|0,_=s(n)+o(n,r,f)|0;b=m,m=p,p=d,d=h+g|0,h=f,f=r,r=n,n=g+_|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=f+this._c|0,this._d=h+this._d|0,this._e=d+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},r.prototype._hash=function(){var t=new n(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":140,buffer:45,inherits:99}],146:[function(t,e,n){(function(n){function r(){this.init(),this._w=a,s.call(this,128,112)}var i=t("inherits"),o=t("./sha512"),s=t("./hash"),a=new Array(160);i(r,o),r.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},r.prototype._hash=function(){function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}var e=new n(48);return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":140,"./sha512":147,buffer:45,inherits:99}],147:[function(t,e,n){(function(n){function r(){this.init(),this._w=b,p.call(this,128,112)}function i(t,e,n){return n^t&(e^n)}function o(t,e,n){return t&e|n&(t|e)}function s(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function a(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function c(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function u(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function f(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function h(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function l(t,e){return t>>>0>>0?1:0}var d=t("inherits"),p=t("./hash"),m=[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],b=new Array(160);d(r,p),r.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,d=0|this._ch,p=0|this._dh,b=0|this._eh,v=0|this._fh,y=0|this._gh,g=0|this._hh,_=0|this._al,w=0|this._bl,x=0|this._cl,k=0|this._dl,S=0|this._el,M=0|this._fl,E=0|this._gl,j=0|this._hl,C=0;C<32;C+=2)e[C]=t.readInt32BE(4*C),e[C+1]=t.readInt32BE(4*C+4);for(;C<160;C+=2){var A=e[C-30],T=e[C-30+1],I=c(A,T),P=u(T,A),B=f(A=e[C-4],T=e[C-4+1]),F=h(T,A),R=e[C-14],O=e[C-14+1],N=e[C-32],D=e[C-32+1],L=P+O|0,q=I+R+l(L,P)|0;q=(q=q+B+l(L=L+F|0,F)|0)+N+l(L=L+D|0,D)|0,e[C]=q,e[C+1]=L}for(var z=0;z<160;z+=2){q=e[z],L=e[z+1];var U=o(n,r,d),H=o(_,w,x),V=s(n,_),W=s(_,n),K=a(b,S),X=a(S,b),$=m[z],G=m[z+1],J=i(b,v,y),Z=i(S,M,E),Q=j+X|0,Y=g+K+l(Q,j)|0;Y=(Y=(Y=Y+J+l(Q=Q+Z|0,Z)|0)+$+l(Q=Q+G|0,G)|0)+q+l(Q=Q+L|0,L)|0;var tt=W+H|0,et=V+U+l(tt,W)|0;g=y,j=E,y=v,E=M,v=b,M=S,b=p+Y+l(S=k+Q|0,k)|0,p=d,k=x,d=r,x=w,r=n,w=_,n=Y+et+l(_=Q+tt|0,Q)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+x|0,this._dl=this._dl+k|0,this._el=this._el+S|0,this._fl=this._fl+M|0,this._gl=this._gl+E|0,this._hl=this._hl+j|0,this._ah=this._ah+n+l(this._al,_)|0,this._bh=this._bh+r+l(this._bl,w)|0,this._ch=this._ch+d+l(this._cl,x)|0,this._dh=this._dh+p+l(this._dl,k)|0,this._eh=this._eh+b+l(this._el,S)|0,this._fh=this._fh+v+l(this._fl,M)|0,this._gh=this._gh+y+l(this._gl,E)|0,this._hh=this._hh+g+l(this._hl,j)|0},r.prototype._hash=function(){function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}var e=new n(64);return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":140,buffer:45,inherits:99}],148:[function(t,e,n){function r(){i.call(this)}e.exports=r;var i=t("events").EventEmitter;t("inherits")(r,i),r.Readable=t("readable-stream/readable.js"),r.Writable=t("readable-stream/writable.js"),r.Duplex=t("readable-stream/duplex.js"),r.Transform=t("readable-stream/transform.js"),r.PassThrough=t("readable-stream/passthrough.js"),r.Stream=r,r.prototype.pipe=function(t,e){function n(e){t.writable&&!1===t.write(e)&&u.pause&&u.pause()}function r(){u.readable&&u.resume&&u.resume()}function o(){f||(f=!0,t.end())}function s(){f||(f=!0,"function"==typeof t.destroy&&t.destroy())}function a(t){if(c(),0===i.listenerCount(this,"error"))throw t}function c(){u.removeListener("data",n),t.removeListener("drain",r),u.removeListener("end",o),u.removeListener("close",s),u.removeListener("error",a),t.removeListener("error",a),u.removeListener("end",c),u.removeListener("close",c),t.removeListener("close",c)}var u=this;u.on("data",n),t.on("drain",r),t._isStdio||e&&!1===e.end||(u.on("end",o),u.on("close",s));var f=!1;return u.on("error",a),t.on("error",a),u.on("end",c),u.on("close",c),t.on("close",c),t.emit("pipe",u),t}},{events:81,inherits:99,"readable-stream/duplex.js":125,"readable-stream/passthrough.js":134,"readable-stream/readable.js":135,"readable-stream/transform.js":136,"readable-stream/writable.js":137}],149:[function(t,e,n){function r(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function i(t){var e=r(t);if("string"!=typeof e&&(b.isEncoding===v||!v(t)))throw new Error("Unknown encoding: "+t);return e||t}function o(t){this.encoding=i(t);var e;switch(this.encoding){case"utf16le":this.text=f,this.end=h,e=4;break;case"utf8":this.fillLast=u,e=4;break;case"base64":this.text=l,this.end=d,e=3;break;default:return this.write=p,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=b.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:-1}function a(t,e,n){var r=e.length-1;if(r=0?(i>0&&(t.lastNeed=i-1),i):--r=0?(i>0&&(t.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}function c(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�".repeat(n);if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�".repeat(n+1);if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�".repeat(n+2)}}function u(t){var e=this.lastTotal-this.lastNeed,n=c(this,t,e);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function f(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function h(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function l(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function d(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function p(t){return t.toString(this.encoding)}function m(t){return t&&t.length?this.write(t):""}var b=t("safe-buffer").Buffer,v=b.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};n.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n0)return t.substr(t.lastIndexOf("."))}},void 0===n&&(n={}),(i={charset:"UTF-8",catalog:{},lookup:function(t,e,n){var i,o=this.charset;return void 0===e&&(e=!1),"string"==typeof e&&(o=e,e=!0),""===(i=void 0!==r.extname?r.extname(t).toLowerCase():t.lastIndexOf(".")>0?t.substr(t.lastIndexOf(".")).toLowerCase():t)&&(i=t),void 0!==this.catalog[i]?!0===e&&0===this.catalog[i].indexOf("text/")&&this.catalog[i].indexOf("charset")<0?this.catalog[i]+"; charset="+o:this.catalog[i]:void 0!==n&&(!0===e&&0===n.indexOf("text/")?n+"; charset="+o:n)},set:function(t,e){var n=!0,r=this;return t.indexOf(",")>-1?t.split(",").forEach(function(t){t=t.trim(),r.catalog[t]=e,r.catalog[t]!==e&&(n=!1)}):r.catalog[t]=e,n},del:function(t){return delete this.catalog[t],void 0===this.catalog[t]},forEach:function(t){var e,n=this;for(e in n.catalog)n.catalog.hasOwnProperty(e)&&t(e,n.catalog[e]);return n.catalog}}).set(".ez","application/andrew-inset"),i.set(".aw","application/applixware"),i.set(".atom","application/atom+xml"),i.set(".atomcat","application/atomcat+xml"),i.set(".atomsvc","application/atomsvc+xml"),i.set(".ccxml","application/ccxml+xml"),i.set(".cu","application/cu-seeme"),i.set(".davmount","application/davmount+xml"),i.set(".ecma","application/ecmascript"),i.set(".emma","application/emma+xml"),i.set(".epub","application/epub+zip"),i.set(".pfr","application/font-tdpfr"),i.set(".stk","application/hyperstudio"),i.set(".jar","application/java-archive"),i.set(".ser","application/java-serialized-object"),i.set(".class","application/java-vm"),i.set(".js","application/javascript"),i.set(".json","application/json"),i.set(".lostxml","application/lost+xml"),i.set(".hqx","application/mac-binhex40"),i.set(".cpt","application/mac-compactpro"),i.set(".mrc","application/marc"),i.set(".ma,.nb,.mb","application/mathematica"),i.set(".mathml","application/mathml+xml"),i.set(".mbox","application/mbox"),i.set(".mscml","application/mediaservercontrol+xml"),i.set(".mp4s","application/mp4"),i.set(".doc,.dot","application/msword"),i.set(".mxf","application/mxf"),i.set(".oda","application/oda"),i.set(".opf","application/oebps-package+xml"),i.set(".ogx","application/ogg"),i.set(".onetoc,.onetoc2,.onetmp,.onepkg","application/onenote"),i.set(".xer","application/patch-ops-error+xml"),i.set(".pdf","application/pdf"),i.set(".pgp","application/pgp-encrypted"),i.set(".asc,.sig","application/pgp-signature"),i.set(".prf","application/pics-rules"),i.set(".p10","application/pkcs10"),i.set(".p7m,.p7c","application/pkcs7-mime"),i.set(".p7s","application/pkcs7-signature"),i.set(".cer","application/pkix-cert"),i.set(".crl","application/pkix-crl"),i.set(".pkipath","application/pkix-pkipath"),i.set(".pki","application/pkixcmp"),i.set(".pls","application/pls+xml"),i.set(".ai,.eps,.ps","application/postscript"),i.set(".cww","application/prs.cww"),i.set(".rdf","application/rdf+xml"),i.set(".rif","application/reginfo+xml"),i.set(".rnc","application/relax-ng-compact-syntax"),i.set(".rl","application/resource-lists+xml"),i.set(".rld","application/resource-lists-diff+xml"),i.set(".rs","application/rls-services+xml"),i.set(".rsd","application/rsd+xml"),i.set(".rss","application/rss+xml"),i.set(".rtf","application/rtf"),i.set(".sbml","application/sbml+xml"),i.set(".scq","application/scvp-cv-request"),i.set(".scs","application/scvp-cv-response"),i.set(".spq","application/scvp-vp-request"),i.set(".spp","application/scvp-vp-response"),i.set(".sdp","application/sdp"),i.set(".setpay","application/set-payment-initiation"),i.set(".setreg","application/set-registration-initiation"),i.set(".shf","application/shf+xml"),i.set(".smi,.smil","application/smil+xml"),i.set(".rq","application/sparql-query"),i.set(".srx","application/sparql-results+xml"),i.set(".gram","application/srgs"),i.set(".grxml","application/srgs+xml"),i.set(".ssml","application/ssml+xml"),i.set(".plb","application/vnd.3gpp.pic-bw-large"),i.set(".psb","application/vnd.3gpp.pic-bw-small"),i.set(".pvb","application/vnd.3gpp.pic-bw-var"),i.set(".tcap","application/vnd.3gpp2.tcap"),i.set(".pwn","application/vnd.3m.post-it-notes"),i.set(".aso","application/vnd.accpac.simply.aso"),i.set(".imp","application/vnd.accpac.simply.imp"),i.set(".acu","application/vnd.acucobol"),i.set(".atc,.acutc","application/vnd.acucorp"),i.set(".air","application/vnd.adobe.air-application-installer-package+zip"),i.set(".xdp","application/vnd.adobe.xdp+xml"),i.set(".xfdf","application/vnd.adobe.xfdf"),i.set(".azf","application/vnd.airzip.filesecure.azf"),i.set(".azs","application/vnd.airzip.filesecure.azs"),i.set(".azw","application/vnd.amazon.ebook"),i.set(".acc","application/vnd.americandynamics.acc"),i.set(".ami","application/vnd.amiga.ami"),i.set(".apk","application/vnd.android.package-archive"),i.set(".cii","application/vnd.anser-web-certificate-issue-initiation"),i.set(".fti","application/vnd.anser-web-funds-transfer-initiation"),i.set(".atx","application/vnd.antix.game-component"),i.set(".mpkg","application/vnd.apple.installer+xml"),i.set(".swi","application/vnd.arastra.swi"),i.set(".aep","application/vnd.audiograph"),i.set(".mpm","application/vnd.blueice.multipass"),i.set(".bmi","application/vnd.bmi"),i.set(".rep","application/vnd.businessobjects"),i.set(".cdxml","application/vnd.chemdraw+xml"),i.set(".mmd","application/vnd.chipnuts.karaoke-mmd"),i.set(".cdy","application/vnd.cinderella"),i.set(".cla","application/vnd.claymore"),i.set(".c4g,.c4d,.c4f,.c4p,.c4u","application/vnd.clonk.c4group"),i.set(".csp","application/vnd.commonspace"),i.set(".cdbcmsg","application/vnd.contact.cmsg"),i.set(".cmc","application/vnd.cosmocaller"),i.set(".clkx","application/vnd.crick.clicker"),i.set(".clkk","application/vnd.crick.clicker.keyboard"),i.set(".clkp","application/vnd.crick.clicker.palette"),i.set(".clkt","application/vnd.crick.clicker.template"),i.set(".clkw","application/vnd.crick.clicker.wordbank"),i.set(".wbs","application/vnd.criticaltools.wbs+xml"),i.set(".pml","application/vnd.ctc-posml"),i.set(".ppd","application/vnd.cups-ppd"),i.set(".car","application/vnd.curl.car"),i.set(".pcurl","application/vnd.curl.pcurl"),i.set(".rdz","application/vnd.data-vision.rdz"),i.set(".fe_launch","application/vnd.denovo.fcselayout-link"),i.set(".dna","application/vnd.dna"),i.set(".mlp","application/vnd.dolby.mlp"),i.set(".dpg","application/vnd.dpgraph"),i.set(".dfac","application/vnd.dreamfactory"),i.set(".geo","application/vnd.dynageo"),i.set(".mag","application/vnd.ecowin.chart"),i.set(".nml","application/vnd.enliven"),i.set(".esf","application/vnd.epson.esf"),i.set(".msf","application/vnd.epson.msf"),i.set(".qam","application/vnd.epson.quickanime"),i.set(".slt","application/vnd.epson.salt"),i.set(".ssf","application/vnd.epson.ssf"),i.set(".es3,.et3","application/vnd.eszigno3+xml"),i.set(".ez2","application/vnd.ezpix-album"),i.set(".ez3","application/vnd.ezpix-package"),i.set(".fdf","application/vnd.fdf"),i.set(".mseed","application/vnd.fdsn.mseed"),i.set(".seed,.dataless","application/vnd.fdsn.seed"),i.set(".gph","application/vnd.flographit"),i.set(".ftc","application/vnd.fluxtime.clip"),i.set(".fm,.frame,.maker,.book","application/vnd.framemaker"),i.set(".fnc","application/vnd.frogans.fnc"),i.set(".ltf","application/vnd.frogans.ltf"),i.set(".fsc","application/vnd.fsc.weblaunch"),i.set(".oas","application/vnd.fujitsu.oasys"),i.set(".oa2","application/vnd.fujitsu.oasys2"),i.set(".oa3","application/vnd.fujitsu.oasys3"),i.set(".fg5","application/vnd.fujitsu.oasysgp"),i.set(".bh2","application/vnd.fujitsu.oasysprs"),i.set(".ddd","application/vnd.fujixerox.ddd"),i.set(".xdw","application/vnd.fujixerox.docuworks"),i.set(".xbd","application/vnd.fujixerox.docuworks.binder"),i.set(".fzs","application/vnd.fuzzysheet"),i.set(".txd","application/vnd.genomatix.tuxedo"),i.set(".ggb","application/vnd.geogebra.file"),i.set(".ggt","application/vnd.geogebra.tool"),i.set(".gex,.gre","application/vnd.geometry-explorer"),i.set(".gmx","application/vnd.gmx"),i.set(".kml","application/vnd.google-earth.kml+xml"),i.set(".kmz","application/vnd.google-earth.kmz"),i.set(".gqf,.gqs","application/vnd.grafeq"),i.set(".gac","application/vnd.groove-account"),i.set(".ghf","application/vnd.groove-help"),i.set(".gim","application/vnd.groove-identity-message"),i.set(".grv","application/vnd.groove-injector"),i.set(".gtm","application/vnd.groove-tool-message"),i.set(".tpl","application/vnd.groove-tool-template"),i.set(".vcg","application/vnd.groove-vcard"),i.set(".zmm","application/vnd.handheld-entertainment+xml"),i.set(".hbci","application/vnd.hbci"),i.set(".les","application/vnd.hhe.lesson-player"),i.set(".hpgl","application/vnd.hp-hpgl"),i.set(".hpid","application/vnd.hp-hpid"),i.set(".hps","application/vnd.hp-hps"),i.set(".jlt","application/vnd.hp-jlyt"),i.set(".pcl","application/vnd.hp-pcl"),i.set(".pclxl","application/vnd.hp-pclxl"),i.set(".sfd-hdstx","application/vnd.hydrostatix.sof-data"),i.set(".x3d","application/vnd.hzn-3d-crossword"),i.set(".mpy","application/vnd.ibm.minipay"),i.set(".afp,.listafp,.list3820","application/vnd.ibm.modcap"),i.set(".irm","application/vnd.ibm.rights-management"),i.set(".sc","application/vnd.ibm.secure-container"),i.set(".icc,.icm","application/vnd.iccprofile"),i.set(".igl","application/vnd.igloader"),i.set(".ivp","application/vnd.immervision-ivp"),i.set(".ivu","application/vnd.immervision-ivu"),i.set(".xpw,.xpx","application/vnd.intercon.formnet"),i.set(".qbo","application/vnd.intu.qbo"),i.set(".qfx","application/vnd.intu.qfx"),i.set(".rcprofile","application/vnd.ipunplugged.rcprofile"),i.set(".irp","application/vnd.irepository.package+xml"),i.set(".xpr","application/vnd.is-xpr"),i.set(".jam","application/vnd.jam"),i.set(".rms","application/vnd.jcp.javame.midlet-rms"),i.set(".jisp","application/vnd.jisp"),i.set(".joda","application/vnd.joost.joda-archive"),i.set(".ktz,.ktr","application/vnd.kahootz"),i.set(".karbon","application/vnd.kde.karbon"),i.set(".chrt","application/vnd.kde.kchart"),i.set(".kfo","application/vnd.kde.kformula"),i.set(".flw","application/vnd.kde.kivio"),i.set(".kon","application/vnd.kde.kontour"),i.set(".kpr,.kpt","application/vnd.kde.kpresenter"),i.set(".ksp","application/vnd.kde.kspread"),i.set(".kwd,.kwt","application/vnd.kde.kword"),i.set(".htke","application/vnd.kenameaapp"),i.set(".kia","application/vnd.kidspiration"),i.set(".kne,.knp","application/vnd.kinar"),i.set(".skp,.skd,.skt,.skm","application/vnd.koan"),i.set(".sse","application/vnd.kodak-descriptor"),i.set(".lbd","application/vnd.llamagraphics.life-balance.desktop"),i.set(".lbe","application/vnd.llamagraphics.life-balance.exchange+xml"),i.set(".123","application/vnd.lotus-1-2-3"),i.set(".apr","application/vnd.lotus-approach"),i.set(".pre","application/vnd.lotus-freelance"),i.set(".nsf","application/vnd.lotus-notes"),i.set(".org","application/vnd.lotus-organizer"),i.set(".scm","application/vnd.lotus-screencam"),i.set(".lwp","application/vnd.lotus-wordpro"),i.set(".portpkg","application/vnd.macports.portpkg"),i.set(".mcd","application/vnd.mcd"),i.set(".mc1","application/vnd.medcalcdata"),i.set(".cdkey","application/vnd.mediastation.cdkey"),i.set(".mwf","application/vnd.mfer"),i.set(".mfm","application/vnd.mfmp"),i.set(".flo","application/vnd.micrografx.flo"),i.set(".igx","application/vnd.micrografx.igx"),i.set(".mif","application/vnd.mif"),i.set(".daf","application/vnd.mobius.daf"),i.set(".dis","application/vnd.mobius.dis"),i.set(".mbk","application/vnd.mobius.mbk"),i.set(".mqy","application/vnd.mobius.mqy"),i.set(".msl","application/vnd.mobius.msl"),i.set(".plc","application/vnd.mobius.plc"),i.set(".txf","application/vnd.mobius.txf"),i.set(".mpn","application/vnd.mophun.application"),i.set(".mpc","application/vnd.mophun.certificate"),i.set(".xul","application/vnd.mozilla.xul+xml"),i.set(".cil","application/vnd.ms-artgalry"),i.set(".cab","application/vnd.ms-cab-compressed"),i.set(".xls,.xlm,.xla,.xlc,.xlt,.xlw","application/vnd.ms-excel"),i.set(".xlam","application/vnd.ms-excel.addin.macroenabled.12"),i.set(".xlsb","application/vnd.ms-excel.sheet.binary.macroenabled.12"),i.set(".xlsm","application/vnd.ms-excel.sheet.macroenabled.12"),i.set(".xltm","application/vnd.ms-excel.template.macroenabled.12"),i.set(".eot","application/vnd.ms-fontobject"),i.set(".chm","application/vnd.ms-htmlhelp"),i.set(".ims","application/vnd.ms-ims"),i.set(".lrm","application/vnd.ms-lrm"),i.set(".cat","application/vnd.ms-pki.seccat"),i.set(".stl","application/vnd.ms-pki.stl"),i.set(".ppt,.pps,.pot","application/vnd.ms-powerpoint"),i.set(".ppam","application/vnd.ms-powerpoint.addin.macroenabled.12"),i.set(".pptm","application/vnd.ms-powerpoint.presentation.macroenabled.12"),i.set(".sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"),i.set(".ppsm","application/vnd.ms-powerpoint.slideshow.macroenabled.12"),i.set(".potm","application/vnd.ms-powerpoint.template.macroenabled.12"),i.set(".mpp,.mpt","application/vnd.ms-project"),i.set(".docm","application/vnd.ms-word.document.macroenabled.12"),i.set(".dotm","application/vnd.ms-word.template.macroenabled.12"),i.set(".wps,.wks,.wcm,.wdb","application/vnd.ms-works"),i.set(".wpl","application/vnd.ms-wpl"),i.set(".xps","application/vnd.ms-xpsdocument"),i.set(".mseq","application/vnd.mseq"),i.set(".mus","application/vnd.musician"),i.set(".msty","application/vnd.muvee.style"),i.set(".nlu","application/vnd.neurolanguage.nlu"),i.set(".nnd","application/vnd.noblenet-directory"),i.set(".nns","application/vnd.noblenet-sealer"),i.set(".nnw","application/vnd.noblenet-web"),i.set(".ngdat","application/vnd.nokia.n-gage.data"),i.set(".n-gage","application/vnd.nokia.n-gage.symbian.install"),i.set(".rpst","application/vnd.nokia.radio-preset"),i.set(".rpss","application/vnd.nokia.radio-presets"),i.set(".edm","application/vnd.novadigm.edm"),i.set(".edx","application/vnd.novadigm.edx"),i.set(".ext","application/vnd.novadigm.ext"),i.set(".odc","application/vnd.oasis.opendocument.chart"),i.set(".otc","application/vnd.oasis.opendocument.chart-template"),i.set(".odb","application/vnd.oasis.opendocument.database"),i.set(".odf","application/vnd.oasis.opendocument.formula"),i.set(".odft","application/vnd.oasis.opendocument.formula-template"),i.set(".odg","application/vnd.oasis.opendocument.graphics"),i.set(".otg","application/vnd.oasis.opendocument.graphics-template"),i.set(".odi","application/vnd.oasis.opendocument.image"),i.set(".oti","application/vnd.oasis.opendocument.image-template"),i.set(".odp","application/vnd.oasis.opendocument.presentation"),i.set(".ods","application/vnd.oasis.opendocument.spreadsheet"),i.set(".ots","application/vnd.oasis.opendocument.spreadsheet-template"),i.set(".odt","application/vnd.oasis.opendocument.text"),i.set(".otm","application/vnd.oasis.opendocument.text-master"),i.set(".ott","application/vnd.oasis.opendocument.text-template"),i.set(".oth","application/vnd.oasis.opendocument.text-web"),i.set(".xo","application/vnd.olpc-sugar"),i.set(".dd2","application/vnd.oma.dd2+xml"),i.set(".oxt","application/vnd.openofficeorg.extension"),i.set(".pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),i.set(".sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),i.set(".ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),i.set(".potx","application/vnd.openxmlformats-officedocument.presentationml.template"),i.set(".xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),i.set(".xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),i.set(".docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),i.set(".dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),i.set(".dp","application/vnd.osgi.dp"),i.set(".pdb,.pqa,.oprc","application/vnd.palm"),i.set(".str","application/vnd.pg.format"),i.set(".ei6","application/vnd.pg.osasli"),i.set(".efif","application/vnd.picsel"),i.set(".plf","application/vnd.pocketlearn"),i.set(".pbd","application/vnd.powerbuilder6"),i.set(".box","application/vnd.previewsystems.box"),i.set(".mgz","application/vnd.proteus.magazine"),i.set(".qps","application/vnd.publishare-delta-tree"),i.set(".ptid","application/vnd.pvi.ptid1"),i.set(".qxd,.qxt,.qwd,.qwt,.qxl,.qxb","application/vnd.quark.quarkxpress"),i.set(".mxl","application/vnd.recordare.musicxml"),i.set(".musicxml","application/vnd.recordare.musicxml+xml"),i.set(".cod","application/vnd.rim.cod"),i.set(".rm","application/vnd.rn-realmedia"),i.set(".link66","application/vnd.route66.link66+xml"),i.set(".see","application/vnd.seemail"),i.set(".sema","application/vnd.sema"),i.set(".semd","application/vnd.semd"),i.set(".semf","application/vnd.semf"),i.set(".ifm","application/vnd.shana.informed.formdata"),i.set(".itp","application/vnd.shana.informed.formtemplate"),i.set(".iif","application/vnd.shana.informed.interchange"),i.set(".ipk","application/vnd.shana.informed.package"),i.set(".twd,.twds","application/vnd.simtech-mindmapper"),i.set(".mmf","application/vnd.smaf"),i.set(".teacher","application/vnd.smart.teacher"),i.set(".sdkm,.sdkd","application/vnd.solent.sdkm+xml"),i.set(".dxp","application/vnd.spotfire.dxp"),i.set(".sfs","application/vnd.spotfire.sfs"),i.set(".sdc","application/vnd.stardivision.calc"),i.set(".sda","application/vnd.stardivision.draw"),i.set(".sdd","application/vnd.stardivision.impress"),i.set(".smf","application/vnd.stardivision.math"),i.set(".sdw","application/vnd.stardivision.writer"),i.set(".vor","application/vnd.stardivision.writer"),i.set(".sgl","application/vnd.stardivision.writer-global"),i.set(".sxc","application/vnd.sun.xml.calc"),i.set(".stc","application/vnd.sun.xml.calc.template"),i.set(".sxd","application/vnd.sun.xml.draw"),i.set(".std","application/vnd.sun.xml.draw.template"),i.set(".sxi","application/vnd.sun.xml.impress"),i.set(".sti","application/vnd.sun.xml.impress.template"),i.set(".sxm","application/vnd.sun.xml.math"),i.set(".sxw","application/vnd.sun.xml.writer"),i.set(".sxg","application/vnd.sun.xml.writer.global"),i.set(".stw","application/vnd.sun.xml.writer.template"),i.set(".sus,.susp","application/vnd.sus-calendar"),i.set(".svd","application/vnd.svd"),i.set(".sis,.sisx","application/vnd.symbian.install"),i.set(".xsm","application/vnd.syncml+xml"),i.set(".bdm","application/vnd.syncml.dm+wbxml"),i.set(".xdm","application/vnd.syncml.dm+xml"),i.set(".tao","application/vnd.tao.intent-module-archive"),i.set(".tmo","application/vnd.tmobile-livetv"),i.set(".tpt","application/vnd.trid.tpt"),i.set(".mxs","application/vnd.triscape.mxs"),i.set(".tra","application/vnd.trueapp"),i.set(".ufd,.ufdl","application/vnd.ufdl"),i.set(".utz","application/vnd.uiq.theme"),i.set(".umj","application/vnd.umajin"),i.set(".unityweb","application/vnd.unity"),i.set(".uoml","application/vnd.uoml+xml"),i.set(".vcx","application/vnd.vcx"),i.set(".vsd,.vst,.vss,.vsw","application/vnd.visio"),i.set(".vis","application/vnd.visionary"),i.set(".vsf","application/vnd.vsf"),i.set(".wbxml","application/vnd.wap.wbxml"),i.set(".wmlc","application/vnd.wap.wmlc"),i.set(".wmlsc","application/vnd.wap.wmlscriptc"),i.set(".wtb","application/vnd.webturbo"),i.set(".wpd","application/vnd.wordperfect"),i.set(".wqd","application/vnd.wqd"),i.set(".stf","application/vnd.wt.stf"),i.set(".xar","application/vnd.xara"),i.set(".xfdl","application/vnd.xfdl"),i.set(".hvd","application/vnd.yamaha.hv-dic"),i.set(".hvs","application/vnd.yamaha.hv-script"),i.set(".hvp","application/vnd.yamaha.hv-voice"),i.set(".osf","application/vnd.yamaha.openscoreformat"),i.set(".osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"),i.set(".saf","application/vnd.yamaha.smaf-audio"),i.set(".spf","application/vnd.yamaha.smaf-phrase"),i.set(".cmp","application/vnd.yellowriver-custom-menu"),i.set(".zir,.zirz","application/vnd.zul"),i.set(".zaz","application/vnd.zzazz.deck+xml"),i.set(".vxml","application/voicexml+xml"),i.set(".hlp","application/winhlp"),i.set(".wsdl","application/wsdl+xml"),i.set(".wspolicy","application/wspolicy+xml"),i.set(".abw","application/x-abiword"),i.set(".ace","application/x-ace-compressed"),i.set(".aab,.x32,.u32,.vox","application/x-authorware-bin"),i.set(".aam","application/x-authorware-map"),i.set(".aas","application/x-authorware-seg"),i.set(".bcpio","application/x-bcpio"),i.set(".torrent","application/x-bittorrent"),i.set(".bz","application/x-bzip"),i.set(".bz2,.boz","application/x-bzip2"),i.set(".vcd","application/x-cdlink"),i.set(".chat","application/x-chat"),i.set(".pgn","application/x-chess-pgn"),i.set(".cpio","application/x-cpio"),i.set(".csh","application/x-csh"),i.set(".deb,.udeb","application/x-debian-package"),i.set(".dir,.dcr,.dxr,.cst,.cct,.cxt,.w3d,.fgd,.swa","application/x-director"),i.set(".wad","application/x-doom"),i.set(".ncx","application/x-dtbncx+xml"),i.set(".dtb","application/x-dtbook+xml"),i.set(".res","application/x-dtbresource+xml"),i.set(".dvi","application/x-dvi"),i.set(".bdf","application/x-font-bdf"),i.set(".gsf","application/x-font-ghostscript"),i.set(".psf","application/x-font-linux-psf"),i.set(".otf","application/x-font-otf"),i.set(".pcf","application/x-font-pcf"),i.set(".snf","application/x-font-snf"),i.set(".ttf,.ttc","application/x-font-ttf"),i.set(".woff","application/font-woff"),i.set(".pfa,.pfb,.pfm,.afm","application/x-font-type1"),i.set(".spl","application/x-futuresplash"),i.set(".gnumeric","application/x-gnumeric"),i.set(".gtar","application/x-gtar"),i.set(".hdf","application/x-hdf"),i.set(".jnlp","application/x-java-jnlp-file"),i.set(".latex","application/x-latex"),i.set(".prc,.mobi","application/x-mobipocket-ebook"),i.set(".application","application/x-ms-application"),i.set(".wmd","application/x-ms-wmd"),i.set(".wmz","application/x-ms-wmz"),i.set(".xbap","application/x-ms-xbap"),i.set(".mdb","application/x-msaccess"),i.set(".obd","application/x-msbinder"),i.set(".crd","application/x-mscardfile"),i.set(".clp","application/x-msclip"),i.set(".exe,.dll,.com,.bat,.msi","application/x-msdownload"),i.set(".mvb,.m13,.m14","application/x-msmediaview"),i.set(".wmf","application/x-msmetafile"),i.set(".mny","application/x-msmoney"),i.set(".pub","application/x-mspublisher"),i.set(".scd","application/x-msschedule"),i.set(".trm","application/x-msterminal"),i.set(".wri","application/x-mswrite"),i.set(".nc,.cdf","application/x-netcdf"),i.set(".p12,.pfx","application/x-pkcs12"),i.set(".p7b,.spc","application/x-pkcs7-certificates"),i.set(".p7r","application/x-pkcs7-certreqresp"),i.set(".rar","application/x-rar-compressed"),i.set(".sh","application/x-sh"),i.set(".shar","application/x-shar"),i.set(".swf","application/x-shockwave-flash"),i.set(".xap","application/x-silverlight-app"),i.set(".sit","application/x-stuffit"),i.set(".sitx","application/x-stuffitx"),i.set(".sv4cpio","application/x-sv4cpio"),i.set(".sv4crc","application/x-sv4crc"),i.set(".tar","application/x-tar"),i.set(".tcl","application/x-tcl"),i.set(".tex","application/x-tex"),i.set(".tfm","application/x-tex-tfm"),i.set(".texinfo,.texi","application/x-texinfo"),i.set(".ustar","application/x-ustar"),i.set(".src","application/x-wais-source"),i.set(".der,.crt","application/x-x509-ca-cert"),i.set(".fig","application/x-xfig"),i.set(".xpi","application/x-xpinstall"),i.set(".xenc","application/xenc+xml"),i.set(".xhtml,.xht","application/xhtml+xml"),i.set(".xml,.xsl","application/xml"),i.set(".dtd","application/xml-dtd"),i.set(".xop","application/xop+xml"),i.set(".xslt","application/xslt+xml"),i.set(".xspf","application/xspf+xml"),i.set(".mxml,.xhvml,.xvml,.xvm","application/xv+xml"),i.set(".zip","application/zip"),i.set(".adp","audio/adpcm"),i.set(".au,.snd","audio/basic"),i.set(".mid,.midi,.kar,.rmi","audio/midi"),i.set(".mp4a","audio/mp4"),i.set(".m4a,.m4p","audio/mp4a-latm"),i.set(".mpga,.mp2,.mp2a,.mp3,.m2a,.m3a","audio/mpeg"),i.set(".oga,.ogg,.spx","audio/ogg"),i.set(".eol","audio/vnd.digital-winds"),i.set(".dts","audio/vnd.dts"),i.set(".dtshd","audio/vnd.dts.hd"),i.set(".lvp","audio/vnd.lucent.voice"),i.set(".pya","audio/vnd.ms-playready.media.pya"),i.set(".ecelp4800","audio/vnd.nuera.ecelp4800"),i.set(".ecelp7470","audio/vnd.nuera.ecelp7470"),i.set(".ecelp9600","audio/vnd.nuera.ecelp9600"),i.set(".aac","audio/x-aac"),i.set(".aif,.aiff,.aifc","audio/x-aiff"),i.set(".m3u","audio/x-mpegurl"),i.set(".wax","audio/x-ms-wax"),i.set(".wma","audio/x-ms-wma"),i.set(".ram,.ra","audio/x-pn-realaudio"),i.set(".rmp","audio/x-pn-realaudio-plugin"),i.set(".wav","audio/x-wav"),i.set(".cdx","chemical/x-cdx"),i.set(".cif","chemical/x-cif"),i.set(".cmdf","chemical/x-cmdf"),i.set(".cml","chemical/x-cml"),i.set(".csml","chemical/x-csml"),i.set(".xyz","chemical/x-xyz"),i.set(".bmp","image/bmp"),i.set(".cgm","image/cgm"),i.set(".g3","image/g3fax"),i.set(".gif","image/gif"),i.set(".ief","image/ief"),i.set(".jp2","image/jp2"),i.set(".jpeg,.jpg,.jpe","image/jpeg"),i.set(".pict,.pic,.pct","image/pict"),i.set(".png","image/png"),i.set(".btif","image/prs.btif"),i.set(".svg,.svgz","image/svg+xml"),i.set(".tiff,.tif","image/tiff"),i.set(".psd","image/vnd.adobe.photoshop"),i.set(".djvu,.djv","image/vnd.djvu"),i.set(".dwg","image/vnd.dwg"),i.set(".dxf","image/vnd.dxf"),i.set(".fbs","image/vnd.fastbidsheet"),i.set(".fpx","image/vnd.fpx"),i.set(".fst","image/vnd.fst"),i.set(".mmr","image/vnd.fujixerox.edmics-mmr"),i.set(".rlc","image/vnd.fujixerox.edmics-rlc"),i.set(".mdi","image/vnd.ms-modi"),i.set(".npx","image/vnd.net-fpx"),i.set(".wbmp","image/vnd.wap.wbmp"),i.set(".xif","image/vnd.xiff"),i.set(".ras","image/x-cmu-raster"),i.set(".cmx","image/x-cmx"),i.set(".fh,.fhc,.fh4,.fh5,.fh7","image/x-freehand"),i.set(".ico","image/x-icon"),i.set(".pntg,.pnt,.mac","image/x-macpaint"),i.set(".pcx","image/x-pcx"),i.set(".pnm","image/x-portable-anymap"),i.set(".pbm","image/x-portable-bitmap"),i.set(".pgm","image/x-portable-graymap"),i.set(".ppm","image/x-portable-pixmap"),i.set(".qtif,.qti","image/x-quicktime"),i.set(".rgb","image/x-rgb"),i.set(".xbm","image/x-xbitmap"),i.set(".xpm","image/x-xpixmap"),i.set(".xwd","image/x-xwindowdump"),i.set(".eml,.mime","message/rfc822"),i.set(".igs,.iges","model/iges"),i.set(".msh,.mesh,.silo","model/mesh"),i.set(".dwf","model/vnd.dwf"),i.set(".gdl","model/vnd.gdl"),i.set(".gtw","model/vnd.gtw"),i.set(".mts","model/vnd.mts"),i.set(".vtu","model/vnd.vtu"),i.set(".wrl,.vrml","model/vrml"),i.set(".ics,.ifb","text/calendar"),i.set(".css","text/css"),i.set(".csv","text/csv"),i.set(".html,.htm","text/html"),i.set(".txt,.text,.conf,.def,.list,.log,.in","text/plain"),i.set(".dsc","text/prs.lines.tag"),i.set(".rtx","text/richtext"),i.set(".sgml,.sgm","text/sgml"),i.set(".tsv","text/tab-separated-values"),i.set(".t,.tr,.roff,.man,.me,.ms","text/troff"),i.set(".uri,.uris,.urls","text/uri-list"),i.set(".curl","text/vnd.curl"),i.set(".dcurl","text/vnd.curl.dcurl"),i.set(".scurl","text/vnd.curl.scurl"),i.set(".mcurl","text/vnd.curl.mcurl"),i.set(".fly","text/vnd.fly"),i.set(".flx","text/vnd.fmi.flexstor"),i.set(".gv","text/vnd.graphviz"),i.set(".3dml","text/vnd.in3d.3dml"),i.set(".spot","text/vnd.in3d.spot"),i.set(".jad","text/vnd.sun.j2me.app-descriptor"),i.set(".wml","text/vnd.wap.wml"),i.set(".wmls","text/vnd.wap.wmlscript"),i.set(".s,.asm","text/x-asm"),i.set(".c,.cc,.cxx,.cpp,.h,.hh,.dic","text/x-c"),i.set(".f,.for,.f77,.f90","text/x-fortran"),i.set(".p,.pas","text/x-pascal"),i.set(".java","text/x-java-source"),i.set(".etx","text/x-setext"),i.set(".uu","text/x-uuencode"),i.set(".vcs","text/x-vcalendar"),i.set(".vcf","text/x-vcard"),i.set(".3gp","video/3gpp"),i.set(".3g2","video/3gpp2"),i.set(".h261","video/h261"),i.set(".h263","video/h263"),i.set(".h264","video/h264"),i.set(".jpgv","video/jpeg"),i.set(".jpm,.jpgm","video/jpm"),i.set(".mj2,.mjp2","video/mj2"),i.set(".mp4,.mp4v,.mpg4,.m4v","video/mp4"),i.set(".webm","video/webm"),i.set(".mpeg,.mpg,.mpe,.m1v,.m2v","video/mpeg"),i.set(".ogv","video/ogg"),i.set(".qt,.mov","video/quicktime"),i.set(".fvt","video/vnd.fvt"),i.set(".mxu,.m4u","video/vnd.mpegurl"),i.set(".pyv","video/vnd.ms-playready.media.pyv"),i.set(".viv","video/vnd.vivo"),i.set(".dv,.dif","video/x-dv"),i.set(".f4v","video/x-f4v"),i.set(".fli","video/x-fli"),i.set(".flv","video/x-flv"),i.set(".asf,.asx","video/x-ms-asf"),i.set(".wm","video/x-ms-wm"),i.set(".wmv","video/x-ms-wmv"),i.set(".wmx","video/x-ms-wmx"),i.set(".wvx","video/x-ms-wvx"),i.set(".avi","video/x-msvideo"),i.set(".movie","video/x-sgi-movie"),i.set(".ice","x-conference/x-cooltalk"),i.set(".gz","application/x-gzip"),i.set(".tgz","application/x-tar"),i.set(".tar","application/x-tar"),i.set(".epub","application/epub+zip"),i.set(".mobi","application/x-mobipocket-ebook"),i.set("README,LICENSE,COPYING,TODO,ABOUT,AUTHORS,CONTRIBUTORS","text/plain"),i.set("manifest,.manifest,.mf,.appcache","text/cache-manifest"),void 0!==n&&(n.charset=i.charset,n.catalog=i.catalog,n.lookup=i.lookup,n.set=i.set,n.del=i.del,n.forEach=i.forEach),void 0===e.MimeType&&(e.MimeType=i),void 0===e.mimeType&&(e.mimeType=i)}(this)},{path:110}],156:[function(t,e,n){var r=t("trim"),i=t("for-each"),o=function(t){return"[object Array]"===Object.prototype.toString.call(t)};e.exports=function(t){if(!t)return{};var e={};return i(r(t).split("\n"),function(t){var n=t.indexOf(":"),i=r(t.slice(0,n)).toLowerCase(),s=r(t.slice(n+1));void 0===e[i]?e[i]=s:o(e[i])?e[i].push(s):e[i]=[e[i],s]}),e}},{"for-each":152,trim:162}],157:[function(t,e,n){var r=t("strict-uri-encode");n.extract=function(t){return t.split("?")[1]||""},n.parse=function(t){return"string"!=typeof t?{}:(t=t.trim().replace(/^(\?|#|&)/,""))?t.split("&").reduce(function(t,e){var n=e.replace(/\+/g," ").split("="),r=n.shift(),i=n.length>0?n.join("="):void 0;return r=decodeURIComponent(r),i=void 0===i?null:decodeURIComponent(i),t.hasOwnProperty(r)?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i,t},{}):{}},n.stringify=function(t){return t?Object.keys(t).sort().map(function(e){var n=t[e];return Array.isArray(n)?n.sort().map(function(t){return r(e)+"="+r(t)}).join("&"):r(e)+"="+r(n)}).filter(function(t){return t.length>0}).join("&"):""}},{"strict-uri-encode":158}],158:[function(t,e,n){e.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},{}],159:[function(t,e,n){e.exports={"windows-amd64":{archive:"swarm-windows-amd64-1.6.7.exe",binaryMD5:"c2d827dc4553d9b91a7d6c1d5a6140fd",archiveMD5:"059196d21548060a18a12e17cc0ee59a"},"linux-amd64":{archive:"swarm-linux-amd64-1.6.7",binaryMD5:"85002d79b8ebc2d2f2f10fb198636a81",archiveMD5:"3e8874299ab8c0e3043d70ebb6673879"},"linux-386":{archive:"swarm-linux-386-1.6.7",binaryMD5:"35bc2ab976f60f96a2cede117e0df19d",archiveMD5:"7868a86c9cbdf8ac7ac2e5682b4ce40f"},"darwin-amd64":{archive:"swarm-darwin-amd64-1.6.7",binaryMD5:"c499b186645229260dd6ab685dd58f07",archiveMD5:"0794d111e5018eac3b657bcb29851121"},"linux-arm5":{archive:"swarm-linux-arm5-1.6.7",binaryMD5:"516fcd85246c905529442cd9b689c12f",archiveMD5:"47312708d417cb196b07ba0af1d3abb4"},"linux-arm6":{archive:"swarm-linux-arm6-1.6.7",binaryMD5:"82ff7bdbe388b4a190f4101c5150d3b4",archiveMD5:"350276de7bb175a15c314cfc4cb7f8fd"},"linux-mips":{archive:"swarm-linux-mips-1.6.7",binaryMD5:"e1e95280441c0ca35633927792ef5317",archiveMD5:"8fb4b64e94cd73aa718db787b9d4c53e"},"linux-arm7":{archive:"swarm-linux-arm7-1.6.7",binaryMD5:"bfc0b4d1c86d8a975af052fc7854bdd3",archiveMD5:"4378641d8e1e1fbb947f941c8fca8613"},"linux-arm64":{archive:"swarm-linux-arm64-1.6.7",binaryMD5:"bbac21a6c6fa8208f67ca4123d3f948a",archiveMD5:"4e503160327c5fbcca0414f17c54e5ee"},"linux-mipsle":{archive:"swarm-linux-mipsle-1.6.7",binaryMD5:"a82f191b2f9d2c470d0273219c820657",archiveMD5:"3016bdb6d237ae654c0cdf36fe85dc7c"},"windows-386":{archive:"swarm-windows-386-1.6.7.exe",binaryMD5:"ce0b34640642e58068ae5a359faef102",archiveMD5:"640aede4da08a3a9d8a6ac0434ba7c0f"},"linux-mips64":{archive:"swarm-linux-mips64-1.6.7",binaryMD5:"9da967664f384817adb5083fd1ffe8f1",archiveMD5:"357a33be470f8f89ba2619957a08deff"},"linux-mips64le":{archive:"swarm-linux-mips64le-1.6.7",binaryMD5:"ec1abcf7b216e87645ec83954d8344cd",archiveMD5:"a81fd0158190d99813c738ffa4f87627"}}},{}],160:[function(t,e,n){(function(t){var n=function(e){return function(){return new Promise(function(n,r){var i=function(r){var i={},o=r.target.files.length,s=0;[].map.call(r.target.files,function(r){var a=new FileReader;a.onload=function(a){var c=new t(a.target.result);if("directory"===e){var u=r.webkitRelativePath;i[u.slice(u.indexOf("/")+1)]={type:"text/plain",data:c},++s===o&&n(i)}else if("file"===e){var f=r.webkitRelativePath;n({type:mimetype.lookup(f),data:c})}else n(c)},a.readAsArrayBuffer(r)})},o=void 0;"directory"===e?((o=document.createElement("input")).addEventListener("change",i),o.type="file",o.webkitdirectory=!0,o.mozdirectory=!0,o.msdirectory=!0,o.odirectory=!0,o.directory=!0):((o=document.createElement("input")).addEventListener("change",i),o.type="file");var s=document.createEvent("MouseEvents");s.initEvent("click",!0,!1),o.dispatchEvent(s)})}};e.exports={data:n("data"),file:n("file"),directory:n("directory")}}).call(this,t("buffer").Buffer)},{buffer:45}],161:[function(t,e,n){var r=t("mimetype"),i=t("./pick.js"),o=t("xhr-request-promise"),s=t("./../archives/archives.json"),a=t("buffer").Buffer,c=function(t){return function(e){return function(n){return n[t]=e,n}}},u=function(t){return function(e){for(var n={},r=0,i=t.length;r0){var s=t("path").join(r,o);i.push(b(e)(n[o])(s))}return Promise.all(i).then(function(){return r})})}}},y=function(t){return function(e){return o(t+"/bzzr:/",{body:e,method:"POST"})}},g=function(t){return function(e){return function(n){return function(r){return function i(s){var a="/"===n[0]?n:"/"+n,c=t+"/bzz:/"+e+a,u={method:"PUT",headers:{"Content-Type":r.type},body:r.data};return o(c,u).catch(function(t){return s>0&&i(s-1)})}(3)}}}},_=function(t){return function(e){return x(t)({"":e})}},w=function(e){return function(n){return t("fs-promise").readFile(n).then(function(t){return _(e)({type:r.lookup(n),data:t})})}},x=function(t){return function(e){return y(t)("{}").then(function(n){var r=function(n){return function(r){return g(t)(r)(n)(e[n])}};return Object.keys(e).reduce(function(t,e){return t.then(r(e))},Promise.resolve(n))})}},k=function(e){return function(n){return t("fs-promise").readFile(n).then(y(e))}},S=function(e){return function(n){return function(i){return t("./files.js").directoryTree(i).then(function(e){return Promise.all(e.map(function(e){return t("fs-promise").readFile(e)})).then(function(t){var n=e.map(function(t){return t.slice(i.length)}),o=e.map(function(t){return r.lookup(t)||"text/plain"});return u(n)(t.map(function(t,e){return{type:o[e],data:t}}))})}).then(function(t){return f(n?{"":t[n]}:{})(t)}).then(x(e))}}},M=function(t){return function(e){if("data"===e.pick)return i.data().then(y(t));if("file"===e.pick)return i.file().then(_(t));if("directory"===e.pick)return i.directory().then(x(t));if(e.path)switch(e.kind){case"data":return k(t)(e.path);case"file":return w(t)(e.path);case"directory":return S(t)(e.defaultFile)(e.path)}else{if("string"==typeof e)return y(t)(new a(e));if(e.length)return y(t)(e);if(e instanceof Object)return x(t)(e)}return Promise.reject(new Error("Bad arguments"))}},E=function(t){return function(e){return function(n){return I(t)(e).then(function(r){return r?n?v(t)(e)(n):m(t)(e):n?b(t)(e)(n):l(t)(e)})}}},j=function(e,n){var r=t("os"),i=r.platform().replace("win32","windows")+"-"+("x64"===r.arch()?"amd64":"386"),o=(n||s)[i],a="http://ethereum-mist.s3.amazonaws.com/swarm/"+o.archive+".tar.gz",c=o.archiveMD5,u=o.binaryMD5;return t("./files.js").safeDownloadArchived(a)(c)(u)(e)},C=function(e){return new Promise(function(n,r){var i=t("child_process").spawn,o=function(t){return function(e){return-1!==(""+e).indexOf(t)}},s=e.account,a=e.password,c=e.dataDir,u=e.ensApi,f=e.privateKey,h=0,l=i(e.binPath,["--bzzaccount",s||f,"--datadir",c,"--ens-api",u]),d=function(t){0===h&&o("Passphrase")(t)?setTimeout(function(){h=1,l.stdin.write(a+"\n")},500):o("Swarm http proxy started")(t)&&(h=2,clearTimeout(p),n(l))};l.stdout.on("data",d),l.stderr.on("data",d);var p=setTimeout(function(){return r(new Error("Couldn't start swarm process."))},2e4)})},A=function(t){return new Promise(function(e,n){t.stderr.removeAllListeners("data"),t.stdout.removeAllListeners("data"),t.stdin.removeAllListeners("error"),t.removeAllListeners("error"),t.removeAllListeners("exit"),t.kill("SIGINT");var r=setTimeout(function(){return t.kill("SIGKILL")},8e3);t.once("close",function(){clearTimeout(r),e()})})},T=function(t){return y(t)("test").then(function(t){return"c9a99c7d326dcc6316f32fe2625b311f6dc49a175e6877681ded93137d3569e7"===t}).catch(function(){return!1})},I=function(t){return function(e){return l(t)(e).then(function(t){return!!JSON.parse(t.toString()).entries}).catch(function(){return!1})}},P=function(t){return function(e,n,r,i,o){return void 0!==e&&(t=t(e)),void 0!==n&&(t=t(n)),void 0!==r&&(t=t(r)),void 0!==i&&(t=t(i)),void 0!==o&&(t=t(o)),t}},B=function(t){return{download:function(e,n){return E(t)(e)(n)},downloadData:P(l(t)),downloadDataToDisk:P(b(t)),downloadDirectory:P(m(t)),downloadDirectoryToDisk:P(v(t)),downloadEntries:P(d(t)),downloadRoutes:P(p(t)),isAvailable:function(){return T(t)},upload:function(e){return M(t)(e)},uploadData:P(y(t)),uploadFile:P(_(t)),uploadFileFromDisk:P(_(t)),uploadDataFromDisk:P(k(t)),uploadDirectory:P(x(t)),uploadDirectoryFromDisk:P(S(t)),uploadToManifest:P(g(t)),pick:i}};e.exports={at:B,local:function(t){return function(e){return T("http://localhost:8500").then(function(n){return n?e(B("http://localhost:8500")).then(function(){}):j(t.binPath,t.archives).onData(function(e){return(t.onProgress||function(){})(e.length)}).then(function(){return C(t)}).then(function(t){return e(B("http://localhost:8500")).then(function(){return t})}).then(A)})}},download:E,downloadBinary:j,downloadData:l,downloadDataToDisk:b,downloadDirectory:m,downloadDirectoryToDisk:v,downloadEntries:d,downloadRoutes:p,isAvailable:T,startProcess:C,stopProcess:A,upload:M,uploadData:y,uploadDataFromDisk:k,uploadFile:_,uploadFileFromDisk:w,uploadDirectory:x,uploadDirectoryFromDisk:S,uploadToManifest:g,pick:i}},{"./../archives/archives.json":159,"./pick.js":160,buffer:45,mimetype:155,"xhr-request-promise":165}],162:[function(t,e,n){(n=e.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},n.right=function(t){return t.replace(/\s*$/,"")}},{}],163:[function(t,e,n){(function(){function t(t){function e(e,n,r,i,o,s){for(;o>=0&&o0?0:a-1;return arguments.length<3&&(i=n[s?s[c]:c],c+=t),e(n,r,i,s,c,a)}}function r(t){return function(e,n,r){n=x(n,r);for(var i=j(e),o=t>0?0:i-1;o>=0&&o0?s=o>=0?o:Math.max(o+a,s):a=o>=0?Math.min(o+1,a):o+a+1;else if(n&&o&&a)return o=n(r,i),r[o]===i?o:-1;if(i!==i)return(o=e(l.call(r,s,a),_.isNaN))>=0?o+s:-1;for(o=t>0?s:a-1;o>=0&&o=0&&e<=E};_.each=_.forEach=function(t,e,n){e=w(e,n);var r,i;if(C(t))for(r=0,i=t.length;r=0},_.invoke=function(t,e){var n=l.call(arguments,2),r=_.isFunction(e);return _.map(t,function(t){var i=r?e:t[e];return null==i?i:i.apply(t,n)})},_.pluck=function(t,e){return _.map(t,_.property(e))},_.where=function(t,e){return _.filter(t,_.matcher(e))},_.findWhere=function(t,e){return _.find(t,_.matcher(e))},_.max=function(t,e,n){var r,i,o=-1/0,s=-1/0;if(null==e&&null!=t)for(var a=0,c=(t=C(t)?t:_.values(t)).length;ao&&(o=r);else e=x(e,n),_.each(t,function(t,n,r){((i=e(t,n,r))>s||i===-1/0&&o===-1/0)&&(o=t,s=i)});return o},_.min=function(t,e,n){var r,i,o=1/0,s=1/0;if(null==e&&null!=t)for(var a=0,c=(t=C(t)?t:_.values(t)).length;ar||void 0===n)return 1;if(ne?(s&&(clearTimeout(s),s=null),a=u,o=t.apply(r,i),s||(r=i=null)):s||!1===n.trailing||(s=setTimeout(c,f)),o}},_.debounce=function(t,e,n){var r,i,o,s,a,c=function c(){var u=_.now()-s;u=0?r=setTimeout(c,e-u):(r=null,n||(a=t.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,s=_.now();var u=n&&!r;return r||(r=setTimeout(c,e)),u&&(a=t.apply(o,i),o=i=null),a}},_.wrap=function(t,e){return _.partial(e,t)},_.negate=function(t){return function(){return!t.apply(this,arguments)}},_.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},_.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},_.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},_.once=_.partial(_.before,2);var P=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];_.keys=function(t){if(!_.isObject(t))return[];if(b)return b(t);var e=[];for(var n in t)_.has(t,n)&&e.push(n);return P&&o(t,e),e},_.allKeys=function(t){if(!_.isObject(t))return[];var e=[];for(var n in t)e.push(n);return P&&o(t,e),e},_.values=function(t){for(var e=_.keys(t),n=e.length,r=Array(n),i=0;i":">",'"':""","'":"'","`":"`"},O=_.invert(R),N=function(t){var e=function(e){return t[e]},n="(?:"+_.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}};_.escape=N(R),_.unescape=N(O),_.result=function(t,e,n){var r=null==t?void 0:t[e];return void 0===r&&(r=n),_.isFunction(r)?r.call(t):r};var D=0;_.uniqueId=function(t){var e=++D+"";return t?t+e:e},_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var L=/(.)^/,q={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},z=/\\|'|\r|\n|\u2028|\u2029/g,U=function(t){return"\\"+q[t]};_.template=function(t,e,n){!e&&n&&(e=n),e=_.defaults({},e,_.templateSettings);var r=RegExp([(e.escape||L).source,(e.interpolate||L).source,(e.evaluate||L).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,function(e,n,r,s,a){return o+=t.slice(i,a).replace(z,U),i=a+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":s&&(o+="';\n"+s+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var s=new Function(e.variable||"obj","_",o)}catch(t){throw t.source=o,t}var a=function(t){return s.call(this,t,_)},c=e.variable||"obj";return a.source="function("+c+"){\n"+o+"}",a},_.chain=function(t){var e=_(t);return e._chain=!0,e};var H=function(t,e){return t._chain?_(e).chain():e};_.mixin=function(t){_.each(_.functions(t),function(e){var n=_[e]=t[e];_.prototype[e]=function(){var t=[this._wrapped];return h.apply(t,arguments),H(this,n.apply(_,t))}})},_.mixin(_),_.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=c[t];_.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],H(this,n)}}),_.each(["concat","join","slice"],function(t){var e=c[t];_.prototype[t]=function(){return H(this,e.apply(this._wrapped,arguments))}}),_.prototype.value=function(){return this._wrapped},_.prototype.valueOf=_.prototype.toJSON=_.prototype.value,_.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return _})}).call(this)},{}],164:[function(t,e,n){e.exports=function(t,e){if(e){e=(e=e.trim().replace(/^(\?|#|&)/,""))?"?"+e:e;var n=t.split(/[\?\#]/)[0];e&&/\:\/\/[^\/]*$/.test(n)&&(n+="/");var r=t.match(/(\#.*)$/);t=n+e,r&&(t+=r[0])}return t}},{}],165:[function(t,e,n){var r=t("xhr-request");e.exports=function(t,e){return new Promise(function(n,i){r(t,e,function(t,e){t?i(t):n(e)})})}},{"xhr-request":166}],166:[function(t,e,n){var r=t("query-string"),i=t("url-set-query"),o=t("object-assign"),s=t("./lib/ensure-header.js"),a=t("./lib/request.js"),c="application/json",u=function(){};e.exports=function(t,e,n){if(!t||"string"!=typeof t)throw new TypeError("must specify a URL");if("function"==typeof e&&(n=e,e={}),n&&"function"!=typeof n)throw new TypeError("expected cb to be undefined or a function");n=n||u;var f=(e=e||{}).json?"json":"text",h=(e=o({responseType:f},e)).headers||{},l=(e.method||"GET").toUpperCase(),d=e.query;return d&&("string"!=typeof d&&(d=r.stringify(d)),t=i(t,d)),"json"===e.responseType&&s(h,"Accept",c),e.json&&"GET"!==l&&"HEAD"!==l&&(s(h,"Content-Type",c),e.body=JSON.stringify(e.body)),e.method=l,e.url=t,e.headers=h,delete e.query,delete e.json,a(e,n)}},{"./lib/ensure-header.js":167,"./lib/request.js":169,"object-assign":170,"query-string":157,"url-set-query":164}],167:[function(t,e,n){e.exports=function(t,e,n){var r=e.toLowerCase();t[e]||t[r]||(t[e]=n)}},{}],168:[function(t,e,n){e.exports=function(t,e){return e?{statusCode:e.statusCode,headers:e.headers,method:t.method,url:t.url,rawRequest:e.rawRequest?e.rawRequest:e}:null}},{}],169:[function(t,e,n){var r=t("xhr"),i=t("./normalize-response");e.exports=function(t,e){delete t.uri;var n=!1;return"json"===t.responseType&&(t.responseType="text",n=!0),r(t,function(r,o,s){if(n&&!r)try{var a=o.rawRequest.responseText;s=JSON.parse(a)}catch(t){r=t}o=i(t,o),r?e(r,null,o):e(r,s,o)})}},{"./normalize-response":168,xhr:171}],170:[function(t,e,n){function r(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function i(t){var e=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t))),e.filter(function(e){return o.call(t,e)})}var o=Object.prototype.propertyIsEnumerable;e.exports=Object.assign||function(t,e){for(var n,o,s=r(t),a=1;a0&&(d=setTimeout(function(){if(!l){l=!0,u.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",n(t)}},t.timeout)),u.setRequestHeader)for(h in v)v.hasOwnProperty(h)&&u.setRequestHeader(h,v[h]);else if(t.headers&&!r(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(u.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(u),u.send(b||null),u}function a(t){if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;return""!==t.responseType||e?null:t.responseXML}var c=t("global/window"),u=t("is-function"),f=t("parse-headers"),h=t("xtend");e.exports=o,o.XMLHttpRequest=c.XMLHttpRequest||function(){},o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:c.XDomainRequest,function(t,e){for(var n=0;n1?(t[n[0]]=t[n[0]]||{},t[n[0]][n[1]]=e):t[n[0]]=e},a.prototype._confirmTransaction=function(t,e,n,i){var s=this,a=!1,c=!0,u=0,f=0,h=null,l=r.isObject(n.params[0])&&n.params[0].gas?n.params[0].gas:null,d=r.isObject(n.params[0])&&n.params[0].data&&n.params[0].from&&!n.params[0].to,p=function(n,r,p){n?(p.unsubscribe(),a=!0,o._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transactions receipt. Are you using HttpProvider? Please switch to Websockets.",data:n},t.eventEmitter,t.reject)):(p||(p={unsubscribe:function(){clearInterval(h)}}),s.eth.getTransactionReceipt(e).catch(function(e){p.unsubscribe(),a=!0,o._fireError({message:"Failed to check for transaction receipt:",data:e},t.eventEmitter,t.reject)}).then(function(e){if(!e)throw new Error('Receipt is "null"');return i&&i.receiptFormatter&&(e=i.receiptFormatter(e)),t.eventEmitter.listeners("confirmation").length>0&&(t.eventEmitter.emit("confirmation",f,e),c=!1,25===++f&&(p.unsubscribe(),t.eventEmitter.removeAllListeners())),e}).then(function(e){if(d&&!a){if(!e.contractAddress)return a=!0,void o._fireError(new Error("The transaction receipt didn't contain a contract address."),t.eventEmitter,t.reject);s.eth.getCode(e.contractAddress,function(n,r){r&&(r.length>2?(t.eventEmitter.emit("receipt",e),i&&i.contractDeployFormatter?t.resolve(i.contractDeployFormatter(e)):t.resolve(e)):o._fireError(new Error("The contract code couldn't be stored, please check your gas limit."),t.eventEmitter,t.reject),c&&(p.unsubscribe(),t.eventEmitter.removeAllListeners()),a=!0)})}return e}).then(function(e){d||a||(e.outOfGas||l&&l===e.gasUsed?(e&&(e=JSON.stringify(e,null,2)),o._fireError(new Error("Transaction ran out of gas. Please provide more gas:\n"+e),t.eventEmitter,t.reject)):(t.eventEmitter.emit("receipt",e),t.resolve(e)),c&&(p.unsubscribe(),t.eventEmitter.removeAllListeners()),a=!0)}).catch(function(){u>=50&&(p.unsubscribe(),a=!0,o._fireError(new Error("Transaction was not mined within 50 blocks, please make sure your transaction was properly send. Be aware that it might still be mined!"),t.eventEmitter,t.reject)),u++}))};r.isFunction(this.requestManager.provider.on)?s.eth.subscribe("newBlockHeaders",p):h=setInterval(p,1e3)};var c=function(t,e){return r.isNumber(t)?e.wallet[t]:r.isObject(t)&&t.address&&t.privateKey?t:e.wallet[t.toLowerCase()]};a.prototype.buildCall=function(){var t=this,e=r.isString(t.call)?t.call.toLowerCase():a.call,n="eth_sendtransaction"===e||"eth_sendrawtransaction"===e,i=function(){var e=this,i=s(!n),a=t.toPayload(Array.prototype.slice.call(arguments)),u=function(r,s){if(s=t.formatOutput(s),r)return r.error&&(r=r.error),void o._fireError(r,i.eventEmitter,i.reject,a.callback);a.callback&&a.callback(null,s),n?t.eth&&(i.eventEmitter.emit("transactionHash",s),t._confirmTransaction(i,s,a,e)):r||i.resolve(s)},f=function(e){a.method="eth_sendRawTransaction",a.params=[e.rawTransaction],t.requestManager.send(a,u)},h=function(t,e){if(e&&e.eth&&e.eth.accounts&&e.eth.accounts.wallet.length){var n;if("eth_sendtransaction"===t.method.toLowerCase()){var o=t.params[0];if((n=c(r.isObject(o)?o.from:null,e.eth.accounts))&&n.privateKey){delete o.from;var s=e.eth.accounts.signTransaction(o,n.privateKey);return r.isFunction(s.then)?s.then(f):f(s)}}else if("eth_sign"===t.method.toLowerCase()){var a=t.params[1];if((n=c(t.params[0],e.eth.accounts))&&n.privateKey){var h=e.eth.accounts.sign(a,n.privateKey);return t.callback&&t.callback(null,h.signature),void i.resolve(h.signature)}}}return e.requestManager.send(t,u)};return n&&t.eth&&r.isObject(a.params[0])&&!a.params[0].gasPrice?t.eth.getGasPrice(function(e,n){n&&(a.params[0].gasPrice=o.numberToHex(n)),h(a,t)}):h(a,t),i.eventEmitter};return i.request=this.request.bind(this),i},a.prototype.request=function(){var t=this.toPayload(Array.prototype.slice.call(arguments));return t.format=this.formatOutput.bind(this),t},e.exports=a},{underscore:179,"web3-core-helpers":178,"web3-core-promievent":183,"web3-utils":304}],181:[function(t,e,n){(function(t,r){!function(t){if("object"==(void 0===n?"undefined":_typeof(n))&&void 0!==e)e.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i;"undefined"!=typeof window?i=window:void 0!==r?i=r:"undefined"!=typeof self&&(i=self),i.Promise=t()}}(function(){var e,n,i;return function t(e,n,r){function i(s,a){if(!n[s]){if(!e[s]){var c="function"==typeof _dereq_&&_dereq_;if(!a&&c)return c(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[s]={exports:{}};e[s][0].call(f.exports,function(t){var n=e[s][1][t];return i(n||t)},f,f.exports,t,e,n,r)}return n[s].exports}for(var o="function"==typeof _dereq_&&_dereq_,s=0;s0;){var e=t.shift();if("function"==typeof e){var n=t.shift(),r=t.shift();e.call(n,r)}else e._settlePromises()}},i.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},i.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},i.prototype._reset=function(){this._isTickUsed=!1},n.exports=i,n.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(t,e,n){e.exports=function(t,e,n,r){var i=!1,o=function(t,e){this._reject(e)},s=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(o,o,null,this,t)},a=function(t,e){0==(50397184&this._bitField)&&this._resolveCallback(e.target)},c=function(t,e){e.promiseRejectionQueued||this._reject(t)};t.prototype.bind=function(o){i||(i=!0,t.prototype._propagateFrom=r.propagateFromFunction(),t.prototype._boundValue=r.boundValueFunction());var u=n(o),f=new t(e);f._propagateFrom(this,1);var h=this._target();if(f._setBoundTo(u),u instanceof t){var l={promiseRejectionQueued:!1,promise:f,target:h,bindingPromise:u};h._then(e,s,void 0,f,l),u._then(a,c,void 0,f,l),f._setOnCancel(u)}else f._resolveCallback(h);return f},t.prototype._setBoundTo=function(t){void 0!==t?(this._bitField=2097152|this._bitField,this._boundTo=t):this._bitField=-2097153&this._bitField},t.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},t.bind=function(e,n){return t.resolve(n).bind(e)}}},{}],4:[function(t,e,n){var r;"undefined"!=typeof Promise&&(r=Promise);var i=t("./promise")();i.noConflict=function(){try{Promise===i&&(Promise=r)}catch(t){}return i},e.exports=i},{"./promise":22}],5:[function(t,e,n){var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}e.exports=function(e){function n(t,n){var r;if(null!=t&&(r=t[n]),"function"!=typeof r){var i="Object "+a.classString(t)+" has no method '"+a.toString(n)+"'";throw new e.TypeError(i)}return r}function r(t){return n(t,this.pop()).apply(t,this)}function i(t){return t[this]}function o(t){var e=+this;return e<0&&(e=Math.max(0,e+t.length)),t[e]}var s,a=t("./util"),c=a.canEvaluate;a.isIdentifier;e.prototype.call=function(t){var e=[].slice.call(arguments,1);return e.push(t),this._then(r,void 0,void 0,e,void 0)},e.prototype.get=function(t){var e;if("number"==typeof t)e=o;else if(c){var n=s(t);e=null!==n?n:i}else e=i;return this._then(e,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,e,n){e.exports=function(e,n,r,i){var o=t("./util"),s=o.tryCatch,a=o.errorObj,c=e._async;e.prototype.break=e.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var t=this,e=t;t.isCancellable();){if(!t._cancelBy(e)){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}var n=t._cancellationParent;if(null==n||!n.isCancellable()){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}t._isFollowing()&&t._followee().cancel(),e=t,t=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(t){return t===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this.isCancellable()&&(this._setCancelled(),c.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(t,e){if(o.isArray(t))for(var n=0;n=0)return i[t]}var r=!1,i=[];return t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){},e.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,i.push(this._trace))},e.prototype._popContext=function(){if(void 0!==this._trace){var t=i.pop(),e=t._promiseCreated;return t._promiseCreated=null,e}return null},e.CapturedTrace=null,e.create=function(){if(r)return new e},e.deactivateLongStackTraces=function(){},e.activateLongStackTraces=function(){var i=t.prototype._pushContext,o=t.prototype._popContext,s=t._peekContext,a=t.prototype._peekContext,c=t.prototype._promiseCreated;e.deactivateLongStackTraces=function(){t.prototype._pushContext=i,t.prototype._popContext=o,t._peekContext=s,t.prototype._peekContext=a,t.prototype._promiseCreated=c,r=!1},r=!0,t.prototype._pushContext=e.prototype._pushContext,t.prototype._popContext=e.prototype._popContext,t._peekContext=t.prototype._peekContext=n,t.prototype._promiseCreated=function(){var t=this._peekContext();t&&null==t._promiseCreated&&(t._promiseCreated=this)}},e}},{}],9:[function(e,n,r){n.exports=function(n,r){function i(t,e){return{promise:e}}function o(){return!1}function s(t,e,n){var r=this;try{t(e,n,function(t){if("function"!=typeof t)throw new TypeError("onCancel must be a function, got: "+R.toString(t));r._attachCancellationCallback(t)})}catch(t){return t}}function a(t){if(!this.isCancellable())return this;var e=this._onCancel();void 0!==e?R.isArray(e)?e.push(t):this._setOnCancel([e,t]):this._setOnCancel(t)}function c(){return this._onCancelField}function u(t){this._onCancelField=t}function f(){this._cancellationParent=void 0,this._onCancelField=void 0}function h(t,e){if(0!=(1&e)){this._cancellationParent=t;var n=t._branchesRemainingToCancel;void 0===n&&(n=0),t._branchesRemainingToCancel=n+1}0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function l(){var t=this._boundTo;return void 0!==t&&t instanceof n?t.isFulfilled()?t.value():void 0:t}function d(){this._trace=new C(this._peekContext())}function p(t,e){if(O(t)){var n=this._trace;if(void 0!==n&&e&&(n=n._parent),void 0!==n)n.attachExtraTrace(t);else if(!t.__stackCleaned__){var r=w(t);R.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),R.notEnumerableProp(t,"__stackCleaned__",!0)}}}function m(t,e,r){if(tt.warnings){var i,o=new F(t);if(e)r._attachExtraTrace(o);else if(tt.longStackTraces&&(i=n._peekContext()))i.attachExtraTrace(o);else{var s=w(o);o.stack=s.message+"\n"+s.stack.join("\n")}G("warning",o)||x(o,"",!0)}}function b(t,e){for(var n=0;n=0;--a)if(r[a]===o){s=a;break}for(a=s;a>=0;--a){var c=r[a];if(e[i]!==c)break;e.pop(),i--}e=r}}function g(t){for(var e=[],n=0;n0&&(e=e.slice(n)),e}function w(t){var e=t.stack,n=t.toString();return e="string"==typeof e&&e.length>0?_(t):[" (No stack trace)"],{message:n,stack:g(e)}}function x(t,e,n){if("undefined"!=typeof console){var r;if(R.isObject(t)){var i=t.stack;r=e+L(i,t)}else r=e+String(t);"function"==typeof I?I(r,n):"function"!=typeof console.log&&"object"!==_typeof(console.log)||console.log(r)}}function k(t,e,n,r){var i=!1;try{"function"==typeof e&&(i=!0,"rejectionHandled"===t?e(r):e(n,r))}catch(t){B.throwLater(t)}"unhandledRejection"===t?G(t,n,r)||i||x(n,"Unhandled rejection "):G(t,r)}function S(t){var e;if("function"==typeof t)e="[function "+(t.name||"anonymous")+"]";else{if(e=t&&"function"==typeof t.toString?t.toString():R.toString(t),/\[object [a-zA-Z0-9$_]+\]/.test(e))try{e=JSON.stringify(t)}catch(t){}0===e.length&&(e="(empty array)")}return"(<"+M(e)+">, no stack trace)"}function M(t){return t.length<41?t:t.substr(0,38)+"..."}function E(){return"function"==typeof Y}function j(t){var e=t.match(Q);if(e)return{fileName:e[1],line:parseInt(e[2],10)}}function C(t){this._parent=t,this._promisesCreated=0;var e=this._length=1+(void 0===t?0:t._length);Y(this,C),e>32&&this.uncycle()}var A,T,I,P=n._getDomain,B=n._async,F=e("./errors").Warning,R=e("./util"),O=R.canAttachTrace,N=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,D=null,L=null,q=!1,z=!(0==R.env("BLUEBIRD_DEBUG")),U=!(0==R.env("BLUEBIRD_WARNINGS")||!z&&!R.env("BLUEBIRD_WARNINGS")),H=!(0==R.env("BLUEBIRD_LONG_STACK_TRACES")||!z&&!R.env("BLUEBIRD_LONG_STACK_TRACES")),V=0!=R.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(U||!!R.env("BLUEBIRD_W_FORGOTTEN_RETURN"));n.prototype.suppressUnhandledRejections=function(){var t=this._target();t._bitField=-1048577&t._bitField|524288},n.prototype._ensurePossibleRejectionHandled=function(){0==(524288&this._bitField)&&(this._setRejectionIsUnhandled(),B.invokeLater(this._notifyUnhandledRejection,this,void 0))},n.prototype._notifyUnhandledRejectionIsHandled=function(){k("rejectionHandled",A,void 0,this)},n.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},n.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},n.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var t=this._settledValue();this._setUnhandledRejectionIsNotified(),k("unhandledRejection",T,t,this)}},n.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},n.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},n.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},n.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},n.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},n.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},n.prototype._warn=function(t,e,n){return m(t,e,n||this)},n.onPossiblyUnhandledRejection=function(t){var e=P();T="function"==typeof t?null===e?t:e.bind(t):void 0},n.onUnhandledRejectionHandled=function(t){var e=P();A="function"==typeof t?null===e?t:e.bind(t):void 0};var W=function(){};n.longStackTraces=function(){if(B.haveItemsQueued()&&!tt.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!tt.longStackTraces&&E()){var t=n.prototype._captureStackTrace,e=n.prototype._attachExtraTrace;tt.longStackTraces=!0,W=function(){if(B.haveItemsQueued()&&!tt.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");n.prototype._captureStackTrace=t,n.prototype._attachExtraTrace=e,r.deactivateLongStackTraces(),B.enableTrampoline(),tt.longStackTraces=!1},n.prototype._captureStackTrace=d,n.prototype._attachExtraTrace=p,r.activateLongStackTraces(),B.disableTrampolineIfNecessary()}},n.hasLongStackTraces=function(){return tt.longStackTraces&&E()};var K=function(){try{var t=document.createEvent("CustomEvent");return t.initCustomEvent("testingtheevent",!1,!0,{}),R.global.dispatchEvent(t),function(t,e){var n=document.createEvent("CustomEvent");return n.initCustomEvent(t.toLowerCase(),!1,!0,e),!R.global.dispatchEvent(n)}}catch(t){}return function(){return!1}}(),X=R.isNode?function(){return t.emit.apply(t,arguments)}:R.global?function(t){var e="on"+t.toLowerCase(),n=R.global[e];return!!n&&(n.apply(R.global,[].slice.call(arguments,1)),!0)}:function(){return!1},$={promiseCreated:i,promiseFulfilled:i,promiseRejected:i,promiseResolved:i,promiseCancelled:i,promiseChained:function(t,e,n){return{promise:e,child:n}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,n){return{reason:e,promise:n}},rejectionHandled:i},G=function(t){var e=!1;try{e=X.apply(null,arguments)}catch(t){B.throwLater(t),e=!0}var n=!1;try{n=K(t,$[t].apply(null,arguments))}catch(t){B.throwLater(t),n=!0}return n||e};n.config=function(t){if("longStackTraces"in(t=Object(t))&&(t.longStackTraces?n.longStackTraces():!t.longStackTraces&&n.hasLongStackTraces()&&W()),"warnings"in t){var e=t.warnings;tt.warnings=!!e,V=tt.warnings,R.isObject(e)&&"wForgottenReturn"in e&&(V=!!e.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!tt.cancellation){if(B.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");n.prototype._clearCancellationData=f,n.prototype._propagateFrom=h,n.prototype._onCancel=c,n.prototype._setOnCancel=u,n.prototype._attachCancellationCallback=a,n.prototype._execute=s,J=h,tt.cancellation=!0}"monitoring"in t&&(t.monitoring&&!tt.monitoring?(tt.monitoring=!0,n.prototype._fireEvent=G):!t.monitoring&&tt.monitoring&&(tt.monitoring=!1,n.prototype._fireEvent=o))},n.prototype._fireEvent=o,n.prototype._execute=function(t,e,n){try{t(e,n)}catch(t){return t}},n.prototype._onCancel=function(){},n.prototype._setOnCancel=function(t){},n.prototype._attachCancellationCallback=function(t){},n.prototype._captureStackTrace=function(){},n.prototype._attachExtraTrace=function(){},n.prototype._clearCancellationData=function(){},n.prototype._propagateFrom=function(t,e){};var J=function(t,e){0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)},Z=function(){return!1},Q=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;R.inherits(C,Error),r.CapturedTrace=C,C.prototype.uncycle=function(){var t=this._length;if(!(t<2)){for(var e=[],n={},r=0,i=this;void 0!==i;++r)e.push(i),i=i._parent;for(r=(t=this._length=r)-1;r>=0;--r){var o=e[r].stack;void 0===n[o]&&(n[o]=r)}for(r=0;r0&&(e[s-1]._parent=void 0,e[s-1]._length=1),e[r]._parent=void 0,e[r]._length=1;var a=r>0?e[r-1]:this;s=0;--u)e[u]._length=c,c++;return}}}},C.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var e=w(t),n=e.message,r=[e.stack],i=this;void 0!==i;)r.push(g(i.stack.split("\n"))),i=i._parent;y(r),v(r),R.notEnumerableProp(t,"stack",b(n,r)),R.notEnumerableProp(t,"__stackCleaned__",!0)}};var Y=function(){var t=/^\s*at\s*/,e=function(t,e){return"string"==typeof t?t:void 0!==e.name&&void 0!==e.message?e.toString():S(e)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,D=t,L=e;var n=Error.captureStackTrace;return Z=function(t){return N.test(t)},function(t,e){Error.stackTraceLimit+=6,n(t,e),Error.stackTraceLimit-=6}}var r=new Error;if("string"==typeof r.stack&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0)return D=/@/,L=e,q=!0,function(t){t.stack=(new Error).stack};var i;try{throw new Error}catch(t){i="stack"in t}return"stack"in r||!i||"number"!=typeof Error.stackTraceLimit?(L=function(t,e){return"string"==typeof t?t:"object"!==(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e||void 0===e.name||void 0===e.message?S(e):e.toString()},null):(D=t,L=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(I=function(t){console.warn(t)},R.isNode&&t.stderr.isTTY?I=function(t,e){var n=e?"":"";console.warn(n+t+"\n")}:R.isNode||"string"!=typeof(new Error).stack||(I=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}));var tt={warnings:U,longStackTraces:!1,cancellation:!1,monitoring:!1};return H&&n.longStackTraces(),{longStackTraces:function(){return tt.longStackTraces},warnings:function(){return tt.warnings},cancellation:function(){return tt.cancellation},monitoring:function(){return tt.monitoring},propagateFromFunction:function(){return J},boundValueFunction:function(){return l},checkForgottenReturns:function(t,e,n,r,i){if(void 0===t&&null!==e&&V){if(void 0!==i&&i._returnedNonUndefined())return;n&&(n+=" ");var o="a promise was created in a "+n+"handler but was not returned from it";r._warn(o,!0,e)}},setBounds:function(t,e){if(E()){for(var n,r,i=t.stack.split("\n"),o=e.stack.split("\n"),s=-1,a=-1,c=0;c=a||(Z=function(t){if(N.test(t))return!0;var e=j(t);return!!(e&&e.fileName===n&&s<=e.line&&e.line<=a)})}},warn:m,deprecated:function(t,e){var n=t+" is deprecated and will be removed in a future version.";return e&&(n+=" Use "+e+" instead."),m(n)},CapturedTrace:C,fireDomEvent:K,fireGlobalEvent:X}}},{"./errors":12,"./util":36}],10:[function(t,e,n){e.exports=function(t){function e(){return this.value}function n(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(n){return n instanceof t&&n.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:n},void 0)},t.prototype.throw=t.prototype.thenThrow=function(t){return this._then(n,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:t},void 0);var e=arguments[1];return this.caught(t,function(){throw e})},t.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof t&&n.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:n},void 0);var r=arguments[1];r instanceof t&&r.suppressUnhandledRejections();return this.caught(n,function(){return r})}}},{}],11:[function(t,e,n){e.exports=function(t,e){function n(){return o(this)}function r(t,n){return i(t,n,e,e)}var i=t.reduce,o=t.all;t.prototype.each=function(t){return this.mapSeries(t)._then(n,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return i(this,t,e,e)},t.each=function(t,e){return r(t,e)._then(n,void 0,void 0,t,void 0)},t.mapSeries=r}},{}],12:[function(t,e,n){function r(t,e){function n(r){if(!(this instanceof n))return new n(r);h(this,"message","string"==typeof r?r:e),h(this,"name",t),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return f(n,Error),n}function i(t){if(!(this instanceof i))return new i(t);h(this,"name","OperationalError"),h(this,"message",t),this.cause=t,this.isOperational=!0,t instanceof Error?(h(this,"message",t.message),h(this,"stack",t.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}var o,s,a=t("./es5"),c=a.freeze,u=t("./util"),f=u.inherits,h=u.notEnumerableProp,l=r("Warning","warning"),d=r("CancellationError","cancellation error"),p=r("TimeoutError","timeout error"),m=r("AggregateError","aggregate error");try{o=TypeError,s=RangeError}catch(t){o=r("TypeError","type error"),s=r("RangeError","range error")}for(var b="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),v=0;v1?t.cancelPromise._reject(e):t.cancelPromise._cancel(),t.cancelPromise=null,!0)}function s(){return c.call(this,this.promise._target()._settledValue())}function a(t){if(!o(this,t))return h.e=t,h}function c(t){var r=this.promise,c=this.handler;if(!this.called){this.called=!0;var u=this.isFinallyHandler()?c.call(r._boundValue()):c.call(r._boundValue(),t);if(void 0!==u){r._setReturnedNonUndefined();var l=n(u,r);if(l instanceof e){if(null!=this.cancelPromise){if(l.isCancelled()){var d=new f("late cancellation observer");return r._attachExtraTrace(d),h.e=d,h}l.isPending()&&l._attachCancellationCallback(new i(this))}return l._then(s,a,void 0,this,void 0)}}}return r.isRejected()?(o(this),h.e=t,h):(o(this),t)}var u=t("./util"),f=e.CancellationError,h=u.errorObj;return r.prototype.isFinallyHandler=function(){return 0===this.type},i.prototype._resultCancelled=function(){o(this.finallyHandler)},e.prototype._passThrough=function(t,e,n,i){return"function"!=typeof t?this.then():this._then(n,i,void 0,new r(this,e,t),void 0)},e.prototype.lastly=e.prototype.finally=function(t){return this._passThrough(t,0,c,c)},e.prototype.tap=function(t){return this._passThrough(t,1,c)},r}},{"./util":36}],16:[function(t,e,n){e.exports=function(e,n,r,i,o,s){function a(t,n,r){for(var o=0;o0&&"function"==typeof arguments[e]){t=arguments[e]}var r=[].slice.call(arguments);t&&r.pop();var i=new n(r).promise();return void 0!==t?i.spread(t):i}}},{"./util":36}],18:[function(t,e,n){e.exports=function(e,n,r,i,o,s){function a(t,e,n,r){this.constructor$(t),this._promise._captureStackTrace();var i=u();this._callback=null===i?e:i.bind(e),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=n>=1?[]:d,this._init$(void 0,-2)}function c(t,e,n,i){if("function"!=typeof e)return r("expecting a function but got "+f.classString(e));var o="object"===(void 0===n?"undefined":_typeof(n))&&null!==n?n.concurrency:0;return o="number"==typeof o&&isFinite(o)&&o>=1?o:0,new a(t,e,o,i).promise()}var u=e._getDomain,f=t("./util"),h=f.tryCatch,l=f.errorObj,d=[];f.inherits(a,n),a.prototype._init=function(){},a.prototype._promiseFulfilled=function(t,n){var r=this._values,o=this.length(),a=this._preservedValues,c=this._limit;if(n<0){if(n=-1*n-1,r[n]=t,c>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(c>=1&&this._inFlight>=c)return r[n]=t,this._queue.push(n),!1;null!==a&&(a[n]=t);var u=this._promise,f=this._callback,d=u._boundValue();u._pushContext();var p=h(f).call(d,t,n,o),m=u._popContext();if(s.checkForgottenReturns(p,m,null!==a?"Promise.filter":"Promise.map",u),p===l)return this._reject(p.e),!0;var b=i(p,this._promise);if(b instanceof e){var v=(b=b._target())._bitField;if(0==(50397184&v))return c>=1&&this._inFlight++,r[n]=b,b._proxy(this,-1*(n+1)),!1;if(0==(33554432&v))return 0!=(16777216&v)?(this._reject(b._reason()),!0):(this._cancel(),!0);p=b._value()}r[n]=p}return++this._totalResolved>=o&&(null!==a?this._filter(r,a):this._resolve(r),!0)},a.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,n=this._values;t.length>0&&this._inFlight1){o.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],f=arguments[2];c=s.isArray(u)?a(t).apply(f,u):a(t).call(f,u)}else c=a(t)();var h=r._popContext();return o.checkForgottenReturns(c,h,"Promise.try",r),r._resolveFromSyncValue(c),r},e.prototype._resolveFromSyncValue=function(t){t===s.errorObj?this._rejectCallback(t.e,!1):this._resolveCallback(t,!0)}}},{"./util":36}],20:[function(t,e,n){function r(t){return t instanceof Error&&c.getPrototypeOf(t)===Error.prototype}function i(t){var e;if(r(t)){(e=new a(t)).name=t.name,e.message=t.message,e.stack=t.stack;for(var n=c.keys(t),i=0;i1){var n,r=new Array(e-1),i=0;for(n=0;n0&&"function"!=typeof t&&"function"!=typeof e){var n=".then() only accepts functions but was passed: "+d.classString(t);arguments.length>1&&(n+=", "+d.classString(e)),this._warn(n)}return this._then(t,e,void 0,void 0,void 0)},i.prototype.done=function(t,e){this._then(t,e,void 0,void 0,void 0)._setIsFinal()},i.prototype.spread=function(t){return"function"!=typeof t?h("expecting a function but got "+d.classString(t)):this.all()._then(t,void 0,void 0,w,void 0)},i.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},i.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new S(this).promise()},i.prototype.error=function(t){return this.caught(d.originatesFromRejection,t)},i.is=function(t){return t instanceof i},i.fromNode=i.fromCallback=function(t){var e=new i(_);e._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=P(t)(T(e,n));return r===I&&e._rejectCallback(r.e,!0),e._isFateSealed()||e._setAsyncGuaranteed(),e},i.all=function(t){return new S(t).promise()},i.cast=function(t){var e=k(t);return e instanceof i||((e=new i(_))._captureStackTrace(),e._setFulfilled(),e._rejectionHandler0=t),e},i.resolve=i.fulfilled=i.cast,i.reject=i.rejected=function(t){var e=new i(_);return e._captureStackTrace(),e._rejectCallback(t,!0),e},i.setScheduler=function(t){if("function"!=typeof t)throw new y("expecting a function but got "+d.classString(t));var e=b._schedule;return b._schedule=t,e},i.prototype._then=function(t,e,n,r,o){var s=void 0!==o,a=s?o:new i(_),u=this._target(),f=u._bitField;s||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0!=(50397184&f)?this._boundValue():u===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var h=c();if(0!=(50397184&f)){var l,d,p=u._settlePromiseCtx;0!=(33554432&f)?(d=u._rejectionHandler0,l=t):0!=(16777216&f)?(d=u._fulfillmentHandler0,l=e,u._unsetRejectionIsUnhandled()):(p=u._settlePromiseLateCancellationObserver,d=new g("late cancellation observer"),u._attachExtraTrace(d),l=e),b.invoke(p,u,{handler:null===h?l:"function"==typeof l&&h.bind(l),promise:a,receiver:r,value:d})}else u._addCallbacks(t,e,a,r,h);return a},i.prototype._length=function(){return 65535&this._bitField},i.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},i.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},i.prototype._setLength=function(t){this._bitField=-65536&this._bitField|65535&t},i.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},i.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},i.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},i.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},i.prototype._isFinal=function(){return(4194304&this._bitField)>0},i.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},i.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},i.prototype._setAsyncGuaranteed=function(){this._bitField=134217728|this._bitField},i.prototype._receiverAt=function(t){var e=0===t?this._receiver0:this[4*t-4+3];if(e!==l)return void 0===e&&this._isBound()?this._boundValue():e},i.prototype._promiseAt=function(t){return this[4*t-4+2]},i.prototype._fulfillmentHandlerAt=function(t){return this[4*t-4+0]},i.prototype._rejectionHandlerAt=function(t){return this[4*t-4+1]},i.prototype._boundValue=function(){},i.prototype._migrateCallback0=function(t){t._bitField;var e=t._fulfillmentHandler0,n=t._rejectionHandler0,r=t._promise0,i=t._receiverAt(0);void 0===i&&(i=l),this._addCallbacks(e,n,r,i,null)},i.prototype._migrateCallbackAt=function(t,e){var n=t._fulfillmentHandlerAt(e),r=t._rejectionHandlerAt(e),i=t._promiseAt(e),o=t._receiverAt(e);void 0===o&&(o=l),this._addCallbacks(n,r,i,o,null)},i.prototype._addCallbacks=function(t,e,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof t&&(this._fulfillmentHandler0=null===i?t:i.bind(t)),"function"==typeof e&&(this._rejectionHandler0=null===i?e:i.bind(e));else{var s=4*o-4;this[s+2]=n,this[s+3]=r,"function"==typeof t&&(this[s+0]=null===i?t:i.bind(t)),"function"==typeof e&&(this[s+1]=null===i?e:i.bind(e))}return this._setLength(o+1),o},i.prototype._proxy=function(t,e){this._addCallbacks(void 0,void 0,e,t,null)},i.prototype._resolveCallback=function(t,e){if(0==(117506048&this._bitField)){if(t===this)return this._rejectCallback(u(),!1);var n=k(t,this);if(!(n instanceof i))return this._fulfill(t);e&&this._propagateFrom(n,2);var r=n._target(),o=r._bitField;if(0==(50397184&o)){var s=this._length();s>0&&r._migrateCallback0(this);for(var a=1;a>>16)){if(t===this){var n=u();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=t,(65535&e)>0&&(0!=(134217728&e)?this._settlePromises():b.settlePromises(this))}},i.prototype._reject=function(t){var e=this._bitField;if(!((117506048&e)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=t,this._isFinal())return b.fatalError(t,d.isNode);(65535&e)>0?0!=(134217728&e)?this._settlePromises():b.settlePromises(this):this._ensurePossibleRejectionHandled()}},i.prototype._fulfillPromises=function(t,e){for(var n=1;n0){if(0!=(16842752&t)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,t),this._rejectPromises(e,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,t),this._fulfillPromises(e,r)}this._setLength(0)}this._clearCancellationData()},i.prototype._settledValue=function(){var t=this._bitField;return 0!=(33554432&t)?this._rejectionHandler0:0!=(16777216&t)?this._fulfillmentHandler0:void 0},i.defer=i.pending=function(){return j.deprecated("Promise.defer","new Promise"),{promise:new i(_),resolve:o,reject:s}},d.notEnumerableProp(i,"_makeSelfResolutionError",u),e("./method")(i,_,k,h,j),e("./bind")(i,_,k,j),e("./cancel")(i,S,h,j),e("./direct_resolve")(i),e("./synchronous_inspection")(i),e("./join")(i,S,k,_,j),i.Promise=i,e("./map.js")(i,S,h,k,_,j),e("./using.js")(i,h,k,E,_,j),e("./timers.js")(i,_,j),e("./generators.js")(i,h,_,k,n,j),e("./nodeify.js")(i),e("./call_get.js")(i),e("./props.js")(i,S,k,h),e("./race.js")(i,_,k,h),e("./reduce.js")(i,S,h,k,_,j),e("./settle.js")(i,S,j),e("./some.js")(i,S,h),e("./promisify.js")(i,_),e("./any.js")(i),e("./each.js")(i,_),e("./filter.js")(i,_),d.toFastProperties(i),d.toFastProperties(i.prototype),a({a:1}),a({b:2}),a({c:3}),a(1),a(function(){}),a(void 0),a(!1),a(new i(_)),j.setBounds(m.firstLineError,d.lastLineError),i}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(t,e,n){e.exports=function(e,n,r,i,o){function s(t){switch(t){case-2:return[];case-3:return{}}}function a(t){var r=this._promise=new e(n);t instanceof e&&r._propagateFrom(t,3),r._setOnCancel(this),this._values=t,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var c=t("./util");c.isArray;return c.inherits(a,o),a.prototype.length=function(){return this._length},a.prototype.promise=function(){return this._promise},a.prototype._init=function t(n,o){var a=r(this._values,this._promise);if(a instanceof e){var u=(a=a._target())._bitField;if(this._values=a,0==(50397184&u))return this._promise._setAsyncGuaranteed(),a._then(t,this._reject,void 0,this,o);if(0==(33554432&u))return 0!=(16777216&u)?this._reject(a._reason()):this._cancel();a=a._value()}if(null!==(a=c.asArray(a)))0!==a.length?this._iterate(a):-5===o?this._resolveEmptyArray():this._resolve(s(o));else{var f=i("expecting an array or an iterable object but got "+c.classString(a)).reason();this._promise._rejectCallback(f,!1)}},a.prototype._iterate=function(t){var n=this.getActualLength(t.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,s=null,a=0;a=this._length&&(this._resolve(this._values),!0)},a.prototype._promiseCancelled=function(){return this._cancel(),!0},a.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},a.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var n=0;n=this._length){var n;if(this._isMap)n=l(this._values);else{n={};for(var r=this.length(),i=0,o=this.length();i>1},e.prototype.props=function(){return s(this)},e.props=function(t){return s(t)}}},{"./es5":13,"./util":36}],26:[function(t,e,n){function r(t,e,n,r,i){for(var o=0;o=this._length&&(this._resolve(this._values),!0)},i.prototype._promiseFulfilled=function(t,e){var n=new o;return n._bitField=33554432,n._settledValueField=t,this._promiseResolved(e,n)},i.prototype._promiseRejected=function(t,e){var n=new o;return n._bitField=16777216,n._settledValueField=t,this._promiseResolved(e,n)},e.settle=function(t){return r.deprecated(".settle()",".reflect()"),new i(t).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(t,e,n){e.exports=function(e,n,r){function i(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function o(t,e){if((0|e)!==e||e<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new i(t),o=n.promise();return n.setHowMany(e),n.init(),o}var s=t("./util"),a=t("./errors").RangeError,c=t("./errors").AggregateError,u=s.isArray,f={};s.inherits(i,n),i.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var t=u(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},i.prototype.init=function(){this._initialized=!0,this._init()},i.prototype.setUnwrap=function(){this._unwrap=!0},i.prototype.howMany=function(){return this._howMany},i.prototype.setHowMany=function(t){this._howMany=t},i.prototype._promiseFulfilled=function(t){return this._addFulfilled(t),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},i.prototype._promiseRejected=function(t){return this._addRejected(t),this._checkOutcome()},i.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(f),this._checkOutcome())},i.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new c,e=this.length();e0?this._reject(t):this._cancel(),!0}return!1},i.prototype._fulfilled=function(){return this._totalResolved},i.prototype._rejected=function(){return this._values.length-this.length()},i.prototype._addRejected=function(t){this._values.push(t)},i.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t},i.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},i.prototype._getRangeError=function(t){var e="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";return new a(e)},i.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(t,e){return o(t,e)},e.prototype.some=function(t){return o(this,t)},e._SomePromiseArray=i}},{"./errors":12,"./util":36}],32:[function(t,e,n){e.exports=function(t){function e(t){void 0!==t?(t=t._target(),this._bitField=t._bitField,this._settledValueField=t._isFateSealed()?t._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}e.prototype._settledValue=function(){return this._settledValueField};var n=e.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=e.prototype.error=e.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=e.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},o=e.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},s=e.prototype.isPending=function(){return 0==(50397184&this._bitField)},a=e.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};e.prototype.isCancelled=t.prototype._isCancelled=function(){return 65536==(65536&this._bitField)},t.prototype.isCancelled=function(){return this._target()._isCancelled()},t.prototype.isPending=function(){return s.call(this._target())},t.prototype.isRejected=function(){return o.call(this._target())},t.prototype.isFulfilled=function(){return i.call(this._target())},t.prototype.isResolved=function(){return a.call(this._target())},t.prototype.value=function(){return n.call(this._target())},t.prototype.reason=function(){var t=this._target();return t._unsetRejectionIsUnhandled(),r.call(t)},t.prototype._value=function(){return this._settledValue()},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=e}},{}],33:[function(t,e,n){e.exports=function(e,n){function r(t){return t.then}function i(t){try{return r(t)}catch(t){return c.e=t,c}}function o(t){return f.call(t,"_promise0")}function s(t,r,i){var o=new e(n),s=o;i&&i._pushContext(),o._captureStackTrace(),i&&i._popContext();var u=!0,f=a.tryCatch(r).call(t,function(t){o&&(o._resolveCallback(t),o=null)},function(t){o&&(o._rejectCallback(t,u,!0),o=null)});return u=!1,o&&f===c&&(o._rejectCallback(f.e,!0,!0),o=null),s}var a=t("./util"),c=a.errorObj,u=a.isObject,f={}.hasOwnProperty;return function(t,r){if(u(t)){if(t instanceof e)return t;var a=i(t);if(a===c)return r&&r._pushContext(),f=e.reject(a.e),r&&r._popContext(),f;if("function"==typeof a){if(o(t)){var f=new e(n);return t._then(f._fulfill,f._reject,void 0,f,null),f}return s(t,a,r)}}return t}}},{"./util":36}],34:[function(t,e,n){e.exports=function(e,n,r){function i(t){this.handle=t}function o(t){return clearTimeout(this.handle),t}function s(t){throw clearTimeout(this.handle),t}var a=t("./util"),c=e.TimeoutError;i.prototype._resultCancelled=function(){clearTimeout(this.handle)};var u=function(t){return f(+this).thenReturn(t)},f=e.delay=function(t,o){var s,a;return void 0!==o?(s=e.resolve(o)._then(u,null,null,t,void 0),r.cancellation()&&o instanceof e&&s._setOnCancel(o)):(s=new e(n),a=setTimeout(function(){s._fulfill()},+t),r.cancellation()&&s._setOnCancel(new i(a))),s._setAsyncGuaranteed(),s};e.prototype.delay=function(t){return f(t,this)};var h=function(t,e,n){var r;r="string"!=typeof e?e instanceof Error?e:new c("operation timed out"):new c(e),a.markAsOriginatingFromRejection(r),t._attachExtraTrace(r),t._reject(r),null!=n&&n.cancel()};e.prototype.timeout=function(t,e){t=+t;var n,a,c=new i(setTimeout(function(){n.isPending()&&h(n,e,a)},t));return r.cancellation()?(a=this.then(),(n=a._then(o,s,void 0,c,void 0))._setOnCancel(c)):n=this._then(o,s,void 0,c,void 0),n}}},{"./util":36}],35:[function(t,e,n){e.exports=function(e,n,r,i,o,s){function a(t){setTimeout(function(){throw t},0)}function c(t){var e=r(t);return e!==t&&"function"==typeof t._isDisposable&&"function"==typeof t._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}function u(t,n){function i(){if(s>=u)return f._fulfill();var o=c(t[s++]);if(o instanceof e&&o._isDisposable()){try{o=r(o._getDisposer().tryDispose(n),t.promise)}catch(t){return a(t)}if(o instanceof e)return o._then(i,a,null,null,null)}i()}var s=0,u=t.length,f=new e(o);return i(),f}function f(t,e,n){this._data=t,this._promise=e,this._context=n}function h(t,e,n){this.constructor$(t,e,n)}function l(t){return f.isDisposer(t)?(this.resources[this.index]._setDisposable(t),t.promise()):t}function d(t){this.length=t,this.promise=null,this[t-1]=null}var p=t("./util"),m=t("./errors").TypeError,b=t("./util").inherits,v=p.errorObj,y=p.tryCatch;f.prototype.data=function(){return this._data},f.prototype.promise=function(){return this._promise},f.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():null},f.prototype.tryDispose=function(t){var e=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=null!==e?this.doDispose(e,t):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},f.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},b(h,f),h.prototype.doDispose=function(t,e){return this.data().call(t,t,e)},d.prototype._resultCancelled=function(){for(var t=this.length,n=0;n0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},e.prototype.disposer=function(t){if("function"==typeof t)return new h(t,this,i());throw new m}}},{"./errors":12,"./util":36}],36:[function(e,n,i){function o(){try{var t=A;return A=null,t.apply(this,arguments)}catch(t){return C.e=t,C}}function s(t){return A=t,o}function a(t){return null==t||!0===t||!1===t||"string"==typeof t||"number"==typeof t}function c(t){return"function"==typeof t||"object"===(void 0===t?"undefined":_typeof(t))&&null!==t}function u(t){return a(t)?new Error(y(t)):t}function f(t,e){var n,r=t.length,i=new Array(r+1);for(n=0;n1,r=e.length>0&&!(1===e.length&&"constructor"===e[0]),i=B.test(t+"")&&E.names(t).length>0;if(n||r||i)return!0}return!1}catch(t){return!1}}function m(t){function e(){}e.prototype=t;for(var n=8;n--;)new e;return t}function b(t){return F.test(t)}function v(t,e,n){for(var r=new Array(t),i=0;i10||e[0]>0}(),L.isNode&&L.toFastProperties(t);try{throw new Error}catch(t){L.lastLineError=t}n.exports=L},{"./es5":13}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:117}],182:[function(t,e,n){function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function i(){}var o="function"!=typeof Object.create&&"~";i.prototype._events=void 0,i.prototype.listeners=function(t,e){var n=o?o+t:t,r=this._events&&this._events[n];if(e)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,s=r.length,a=new Array(s);i1?(t[n[0]]=t[n[0]]||{},t[n[0]][n[1]]=e):t[n[0]]=e},i.prototype.buildCall=function(){var t=this;return function(){t.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway.");var e=new r({subscription:t.subscriptions[arguments[0]],requestManager:t.requestManager,type:t.type});return e.subscribe.apply(e,arguments)}},e.exports={subscriptions:i,subscription:r}},{"./subscription.js":192}],192:[function(t,e,n){function r(t){s.call(this),this.id=null,this.callback=null,this.arguments=null,this._reconnectIntervalId=null,this.options={subscription:t.subscription,type:t.type,requestManager:t.requestManager}}var i=t("underscore"),o=t("web3-core-helpers").errors,s=t("eventemitter3");(r.prototype=Object.create(s.prototype)).constructor=r,r.prototype._extractCallback=function(t){if(i.isFunction(t[t.length-1]))return t.pop()},r.prototype._validateArgs=function(t){var e=this.options.subscription;if(e||(e={}),e.params||(e.params=0),t.length!==e.params)throw o.InvalidNumberOfParams(t.length,e.params+1,t[0])},r.prototype._formatInput=function(t){var e=this.options.subscription;return e&&e.inputFormatter?e.inputFormatter.map(function(e,n){return e?e(t[n]):t[n]}):t},r.prototype._formatOutput=function(t){var e=this.options.subscription;return e&&e.outputFormatter&&t?e.outputFormatter(t):t},r.prototype._toPayload=function(t){var e=[];if(this.callback=this._extractCallback(t),this.subscriptionMethod||(this.subscriptionMethod=t.shift(),this.options.subscription.subscriptionName&&(this.subscriptionMethod=this.options.subscription.subscriptionName)),this.arguments||(this.arguments=this._formatInput(t),this._validateArgs(this.arguments),t=[]),e.push(this.subscriptionMethod),e=e.concat(this.arguments),t.length)throw new Error("Only a callback is allowed as parameter on an already instantiated subscription.");return{method:this.options.type+"_subscribe",params:e}},r.prototype.unsubscribe=function(t){this.options.requestManager.removeSubscription(this.id,t),this.id=null,this.removeAllListeners(),clearInterval(this._reconnectIntervalId)},r.prototype.subscribe=function(){var t=this,e=Array.prototype.slice.call(arguments),n=this._toPayload(e);if(!n)return this;if(!this.options.requestManager.provider.on){var r=new Error("The current provider doesn't support subscriptions"+this.options.requestManager.provider.constructor.name);return this.callback(r,null,this),this.emit("error",r),this}return this.id&&this.unsubscribe(),this.options.params=n.params[1],"logs"===n.params[0]&&i.isObject(n.params[1])&&n.params[1].hasOwnProperty("fromBlock")&&isFinite(n.params[1].fromBlock)&&this.options.requestManager.send({method:"eth_getLogs",params:[n.params[1]]},function(e,n){e?(t.callback(e,null,t),t.emit("error",e)):n.forEach(function(e){var n=t._formatOutput(e);t.callback(null,n,t),t.emit("data",n)})}),"object"===_typeof(n.params[1])&&delete n.params[1].fromBlock,this.options.requestManager.send(n,function(e,r){!e&&r?(t.id=r,t.options.requestManager.addSubscription(t.id,n.params[0],t.options.type,function(e,n){i.isArray(n)&&(n=n[0]);var r=t._formatOutput(n);if(e)t.options.requestManager.removeSubscription(t.id),t.options.requestManager.provider.once&&(t._reconnectIntervalId=setInterval(function(){t.options.requestManager.provider.reconnect()},500),t.options.requestManager.provider.once("connect",function(){clearInterval(t._reconnectIntervalId),t.subscribe(t.callback)})),t.emit("error",e);else{if(i.isFunction(t.options.subscription.subscriptionHandler))return t.options.subscription.subscriptionHandler.call(t,r);t.emit("data",r)}i.isFunction(t.callback)&&t.callback(e,r,t)})):i.isFunction(t.callback)&&(t.callback(e,null,t),t.emit("error",e))}),this},e.exports=r},{eventemitter3:189,underscore:190,"web3-core-helpers":178}],193:[function(t,e,n){var r=t("web3-core-helpers").formatters,i=t("web3-core-method"),o=t("web3-utils");e.exports=function(t){var e=function(e){var n;return e.property?(t[e.property]||(t[e.property]={}),n=t[e.property]):n=t,e.methods&&e.methods.forEach(function(e){e instanceof i||(e=new i(e)),e.attachToObject(n),e.setRequestManager(t._requestManager)}),t};return e.formatters=r,e.utils=o,e.Method=i,e}},{"web3-core-helpers":178,"web3-core-method":180,"web3-utils":304}],194:[function(t,e,n){var r=t("web3-requestmanager"),i=t("./extend.js");e.exports={packageInit:function(t,e){if(e=Array.prototype.slice.call(e),!t)throw new Error('You need to instantiate using the "new" keyword.');Object.defineProperty(t,"currentProvider",{get:function(){return t._provider},set:function(){return t._provider},enumerable:!0}),e[0]&&e[0]._requestManager?t._requestManager=new r.Manager(e[0].currentProvider):(t._requestManager=new r.Manager,t._requestManager.setProvider(e[0],e[1])),t.givenProvider=r.Manager.givenProvider,t.providers=r.Manager.providers,t._provider=t._requestManager.provider,t.setProvider=function(e,n){return t._requestManager.setProvider(e,n),t._provider=t._requestManager.provider,!0},t.BatchRequest=r.BatchManager.bind(null,t._requestManager),t.extend=i(t)},addProviders:function(t){t.givenProvider=r.Manager.givenProvider,t.providers=r.Manager.providers}}},{"./extend.js":193,"web3-requestmanager":187}],195:[function(t,e,n){!function(e,n){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}function s(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return r}function a(t,e,n,r){for(var i=0,o=Math.min(t.length,n),s=e;s=49?a-49+10:a>=17?a-17+10:a}return i}function c(t){for(var e=new Array(t.bitLength()),n=0;n>>i}return e}function u(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,c=s/67108864|0;n.words[0]=a;for(var u=1;u>>26,h=67108863&c,l=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=l;d++){var p=u-d|0;f+=(s=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&s}n.words[u]=0|h,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}function f(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function h(t,e,n){return(new l).mulp(t,e,n)}function l(t,e){this.x=t,this.y=e}function d(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){d.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function m(){d.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){d.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function v(){d.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function y(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function g(t){y.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"===(void 0===e?"undefined":_typeof(e))?e.exports=o:n.BN=o,o.BN=o,o.wordSize=26;var _;try{_=t("buffer").Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"===(void 0===t?"undefined":_typeof(t))&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"===(void 0===t?"undefined":_typeof(t)))return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,s=o%r,c=Math.min(o,o-s)+n,u=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],x=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){t=t||10,e=0|e||1;var n;if(16===t||"hex"===t){n="";for(var i=0,o=0,s=0;s>>24-i&16777215)||s!==this.length-1?w[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var u=x[t],f=k[t];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var l=h.modn(f).toString(t);n=(h=h.idivn(f)).isZero()?l+n:w[u-l.length]+l+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==_),this.toArrayLike(_,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var s,a,c="le"===e,u=new t(o),f=this.clone();if(c){for(a=0;!f.isZero();a++)s=f.andln(255),f.iushrn(8),u[a]=s;for(;a=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;var r,i;n>0?(r=this,i=t):(r=t,i=this);for(var o=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,d=0|s[1],p=8191&d,m=d>>>13,b=0|s[2],v=8191&b,y=b>>>13,g=0|s[3],_=8191&g,w=g>>>13,x=0|s[4],k=8191&x,S=x>>>13,M=0|s[5],E=8191&M,j=M>>>13,C=0|s[6],A=8191&C,T=C>>>13,I=0|s[7],P=8191&I,B=I>>>13,F=0|s[8],R=8191&F,O=F>>>13,N=0|s[9],D=8191&N,L=N>>>13,q=0|a[0],z=8191&q,U=q>>>13,H=0|a[1],V=8191&H,W=H>>>13,K=0|a[2],X=8191&K,$=K>>>13,G=0|a[3],J=8191&G,Z=G>>>13,Q=0|a[4],Y=8191&Q,tt=Q>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ct=8191&at,ut=at>>>13,ft=0|a[8],ht=8191&ft,lt=ft>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var bt=(u+(r=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,U))+Math.imul(l,z)|0))<<13)|0;u=((o=Math.imul(l,U))+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,U))+Math.imul(m,z)|0,o=Math.imul(m,U);var vt=(u+(r=r+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(l,V)|0))<<13)|0;u=((o=o+Math.imul(l,W)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,z),i=(i=Math.imul(v,U))+Math.imul(y,z)|0,o=Math.imul(y,U),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0;var yt=(u+(r=r+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,$)|0)+Math.imul(l,X)|0))<<13)|0;u=((o=o+Math.imul(l,$)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(_,z),i=(i=Math.imul(_,U))+Math.imul(w,z)|0,o=Math.imul(w,U),r=r+Math.imul(v,V)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,W)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,$)|0;var gt=(u+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,J)|0))<<13)|0;u=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(k,z),i=(i=Math.imul(k,U))+Math.imul(S,z)|0,o=Math.imul(S,U),r=r+Math.imul(_,V)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(w,V)|0,o=o+Math.imul(w,W)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,$)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,$)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Z)|0;var _t=(u+(r=r+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,Y)|0))<<13)|0;u=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,z),i=(i=Math.imul(E,U))+Math.imul(j,z)|0,o=Math.imul(j,U),r=r+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,W)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,$)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,$)|0,r=r+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,Z)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,tt)|0;var wt=(u+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(l,nt)|0))<<13)|0;u=((o=o+Math.imul(l,rt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,U))+Math.imul(T,z)|0,o=Math.imul(T,U),r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,W)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,$)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(v,Y)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var xt=(u+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,st)|0)+Math.imul(l,ot)|0))<<13)|0;u=((o=o+Math.imul(l,st)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,U))+Math.imul(B,z)|0,o=Math.imul(B,U),r=r+Math.imul(A,V)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,W)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,$)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(v,nt)|0,i=(i=i+Math.imul(v,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,st)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0;var kt=(u+(r=r+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,ut)|0)+Math.imul(l,ct)|0))<<13)|0;u=((o=o+Math.imul(l,ut)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(R,z),i=(i=Math.imul(R,U))+Math.imul(O,z)|0,o=Math.imul(O,U),r=r+Math.imul(P,V)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(B,V)|0,o=o+Math.imul(B,W)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,$)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Z)|0,r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(_,nt)|0,i=(i=i+Math.imul(_,rt)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(v,ot)|0,i=(i=i+Math.imul(v,st)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,r=r+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,ut)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,ut)|0;var St=(u+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;u=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(D,z),i=(i=Math.imul(D,U))+Math.imul(L,z)|0,o=Math.imul(L,U),r=r+Math.imul(R,V)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,$)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Z)|0,r=r+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,tt)|0,r=r+Math.imul(k,nt)|0,i=(i=i+Math.imul(k,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(_,ot)|0,i=(i=i+Math.imul(_,st)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,r=r+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,ut)|0)+Math.imul(y,ct)|0,o=o+Math.imul(y,ut)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0;var Mt=(u+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(l,pt)|0))<<13)|0;u=((o=o+Math.imul(l,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(D,V),i=(i=Math.imul(D,W))+Math.imul(L,V)|0,o=Math.imul(L,W),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,$)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(j,nt)|0,o=o+Math.imul(j,rt)|0,r=r+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,st)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,r=r+Math.imul(_,ct)|0,i=(i=i+Math.imul(_,ut)|0)+Math.imul(w,ct)|0,o=o+Math.imul(w,ut)|0,r=r+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var Et=(u+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;u=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(D,X),i=(i=Math.imul(D,$))+Math.imul(L,X)|0,o=Math.imul(L,$),r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(B,Y)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(T,nt)|0,o=o+Math.imul(T,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,st)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,r=r+Math.imul(k,ct)|0,i=(i=i+Math.imul(k,ut)|0)+Math.imul(S,ct)|0,o=o+Math.imul(S,ut)|0,r=r+Math.imul(_,ht)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(w,ht)|0,o=o+Math.imul(w,lt)|0;var jt=(u+(r=r+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(y,pt)|0))<<13)|0;u=((o=o+Math.imul(y,mt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(D,J),i=(i=Math.imul(D,Z))+Math.imul(L,J)|0,o=Math.imul(L,Z),r=r+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,st)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,r=r+Math.imul(E,ct)|0,i=(i=i+Math.imul(E,ut)|0)+Math.imul(j,ct)|0,o=o+Math.imul(j,ut)|0,r=r+Math.imul(k,ht)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ct=(u+(r=r+Math.imul(_,pt)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(w,pt)|0))<<13)|0;u=((o=o+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(D,Y),i=(i=Math.imul(D,tt))+Math.imul(L,Y)|0,o=Math.imul(L,tt),r=r+Math.imul(R,nt)|0,i=(i=i+Math.imul(R,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,st)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,st)|0,r=r+Math.imul(A,ct)|0,i=(i=i+Math.imul(A,ut)|0)+Math.imul(T,ct)|0,o=o+Math.imul(T,ut)|0,r=r+Math.imul(E,ht)|0,i=(i=i+Math.imul(E,lt)|0)+Math.imul(j,ht)|0,o=o+Math.imul(j,lt)|0;var At=(u+(r=r+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,mt)|0)+Math.imul(S,pt)|0))<<13)|0;u=((o=o+Math.imul(S,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(D,nt),i=(i=Math.imul(D,rt))+Math.imul(L,nt)|0,o=Math.imul(L,rt),r=r+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,st)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,r=r+Math.imul(P,ct)|0,i=(i=i+Math.imul(P,ut)|0)+Math.imul(B,ct)|0,o=o+Math.imul(B,ut)|0,r=r+Math.imul(A,ht)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(T,ht)|0,o=o+Math.imul(T,lt)|0;var Tt=(u+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(j,pt)|0))<<13)|0;u=((o=o+Math.imul(j,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(D,ot),i=(i=Math.imul(D,st))+Math.imul(L,ot)|0,o=Math.imul(L,st),r=r+Math.imul(R,ct)|0,i=(i=i+Math.imul(R,ut)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,ut)|0,r=r+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(B,ht)|0,o=o+Math.imul(B,lt)|0;var It=(u+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(T,pt)|0))<<13)|0;u=((o=o+Math.imul(T,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(D,ct),i=(i=Math.imul(D,ut))+Math.imul(L,ct)|0,o=Math.imul(L,ut),r=r+Math.imul(R,ht)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(O,ht)|0,o=o+Math.imul(O,lt)|0;var Pt=(u+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(B,pt)|0))<<13)|0;u=((o=o+Math.imul(B,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(D,ht),i=(i=Math.imul(D,lt))+Math.imul(L,ht)|0,o=Math.imul(L,lt);var Bt=(u+(r=r+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(O,pt)|0))<<13)|0;u=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863;var Ft=(u+(r=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,mt))+Math.imul(L,pt)|0))<<13)|0;return u=((o=Math.imul(L,mt))+(i>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,c[0]=bt,c[1]=vt,c[2]=yt,c[3]=gt,c[4]=_t,c[5]=wt,c[6]=xt,c[7]=kt,c[8]=St,c[9]=Mt,c[10]=Et,c[11]=jt,c[12]=Ct,c[13]=At,c[14]=Tt,c[15]=It,c[16]=Pt,c[17]=Bt,c[18]=Ft,0!==u&&(c[19]=u,n.length++),n};Math.imul||(S=u),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?S(this,t,e):n<63?u(this,t,e):n<1024?f(this,t,e):h(this,t,e)},l.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},l.prototype.permute=function(t,e,n,r,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=c(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0);var i;i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,u=0;u=0&&(0!==f||u>=i);u--){var h=0|this.words[u];this.words[u]=f<<26-o|h>>>o,f=h&a}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+n]=67108863&s}for(;i>26,this.words[i+n]=67108863&s;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,s=0|i.words[i.length-1];0!==(n=26-this._countBits(s))&&(i=i.ushln(n),r.iushln(n),s=0|i.words[i.length-1]);var a,c=r.length-i.length;if("mod"!==e){(a=new o(null)).length=c+1,a.words=new Array(a.length);for(var u=0;u=0;h--){var l=67108864*(0|r.words[i.length+h])+(0|r.words[i.length+h-1]);for(l=Math.min(l/s|0,67108863),r._ishlnsubmul(i,l,h);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(i,1,h),r.isZero()||(r.negative^=1);a&&(a.words[h]=l)}return a&&a.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},o.prototype.divmod=function(t,e,n){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var i,s,a;return 0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),a=new o(0),c=new o(1),u=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(f),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(f),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(a),s.isub(c)):(n.isub(e),a.isub(i),c.isub(s))}return{a:a,b:c,gcd:n.iushln(u)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),a=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0==(e.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(e.iushrn(c);c-- >0;)i.isOdd()&&i.iadd(a),i.iushrn(1);for(var f=0,h=1;0==(n.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(a),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s)):(n.isub(e),s.isub(i))}var l;return(l=0===e.cmpn(1)?i:s).cmpn(0)<0&&l.iadd(t),l},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=t<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;this.strip();var n;if(this.length>1)n=1;else{e&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];n=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new y(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var M={k256:null,p224:null,p192:null,p25519:null};d.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},d.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):n.strip(),n},d.prototype.split=function(t,e){t.iushrn(this.n,0,e)},d.prototype.imulK=function(t){return t.imul(this.k)},i(p,d),p.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},p.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(M[t])return M[t];var e;if("k256"===t)e=new p;else if("p224"===t)e=new m;else if("p192"===t)e=new b;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new v}return M[t]=e,e},y.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},y.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},y.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},y.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},y.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},y.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},y.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},y.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},y.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},y.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},y.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},y.prototype.isqr=function(t){return this.imul(t,t.clone())},y.prototype.sqr=function(t){return this.mul(t,t)},y.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),c=a.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;0!==d.cmp(a);){for(var m=d,b=0;0!==m.cmp(a);b++)m=m.redSqr();r(b=0;r--){for(var u=e.words[r],f=c-1;f>=0;f--){var h=u>>f&1;i!==n[0]&&(i=this.sqr(i)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===r&&0===f)&&(i=this.mul(i,n[s]),a=0,s=0)):a=0}c=26}return i},y.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},y.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new g(t)},i(g,y),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},g.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},g.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{}],196:[function(t,e,n){arguments[4][163][0].apply(n,arguments)},{dup:163}],197:[function(t,e,n){function r(){}var i=t("underscore"),o=t("web3-utils"),s=t("./types/formatters"),a=t("./types/address"),c=t("./types/bool"),u=t("./types/int"),f=t("./types/uint"),h=t("./types/dynamicbytes"),l=t("./types/string"),d=t("./types/bytes"),p=function(t,e){return t.isDynamicType(e)||t.isDynamicArray(e)},m=function(t){this._types=t};m.prototype._requireType=function(t){var e=this._types.filter(function(e){return e.isType(t)})[0];if(!e)throw Error("invalid solidity type!: "+t);return e},m.prototype._getOffsets=function(t,e){for(var n=e.map(function(e,n){return e.staticPartLength(t[n])}),r=1;r0;){var e=t.shift();if("function"==typeof e){var n=t.shift(),r=t.shift();e.call(n,r)}else e._settlePromises()}},i.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},i.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},i.prototype._reset=function(){this._isTickUsed=!1},n.exports=i,n.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(t,e,n){e.exports=function(t,e,n,r){var i=!1,o=function(t,e){this._reject(e)},s=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(o,o,null,this,t)},a=function(t,e){0==(50397184&this._bitField)&&this._resolveCallback(e.target)},c=function(t,e){e.promiseRejectionQueued||this._reject(t)};t.prototype.bind=function(o){i||(i=!0,t.prototype._propagateFrom=r.propagateFromFunction(),t.prototype._boundValue=r.boundValueFunction());var u=n(o),f=new t(e);f._propagateFrom(this,1);var h=this._target();if(f._setBoundTo(u),u instanceof t){var l={promiseRejectionQueued:!1,promise:f,target:h,bindingPromise:u};h._then(e,s,void 0,f,l),u._then(a,c,void 0,f,l),f._setOnCancel(u)}else f._resolveCallback(h);return f},t.prototype._setBoundTo=function(t){void 0!==t?(this._bitField=2097152|this._bitField,this._boundTo=t):this._bitField=-2097153&this._bitField},t.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},t.bind=function(e,n){return t.resolve(n).bind(e)}}},{}],4:[function(t,e,n){var r;"undefined"!=typeof Promise&&(r=Promise);var i=t("./promise")();i.noConflict=function(){try{Promise===i&&(Promise=r)}catch(t){}return i},e.exports=i},{"./promise":22}],5:[function(t,e,n){var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}e.exports=function(e){function n(t,n){var r;if(null!=t&&(r=t[n]),"function"!=typeof r){var i="Object "+a.classString(t)+" has no method '"+a.toString(n)+"'";throw new e.TypeError(i)}return r}function r(t){return n(t,this.pop()).apply(t,this)}function i(t){return t[this]}function o(t){var e=+this;return e<0&&(e=Math.max(0,e+t.length)),t[e]}var s,a=t("./util"),c=a.canEvaluate;a.isIdentifier;e.prototype.call=function(t){var e=[].slice.call(arguments,1);return e.push(t),this._then(r,void 0,void 0,e,void 0)},e.prototype.get=function(t){var e;if("number"==typeof t)e=o;else if(c){var n=s(t);e=null!==n?n:i}else e=i;return this._then(e,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,e,n){e.exports=function(e,n,r,i){var o=t("./util"),s=o.tryCatch,a=o.errorObj,c=e._async;e.prototype.break=e.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var t=this,e=t;t.isCancellable();){if(!t._cancelBy(e)){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}var n=t._cancellationParent;if(null==n||!n.isCancellable()){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}t._isFollowing()&&t._followee().cancel(),e=t,t=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(t){return t===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this.isCancellable()&&(this._setCancelled(),c.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(t,e){if(o.isArray(t))for(var n=0;n=0)return i[t]}var r=!1,i=[];return t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){},e.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,i.push(this._trace))},e.prototype._popContext=function(){if(void 0!==this._trace){var t=i.pop(),e=t._promiseCreated;return t._promiseCreated=null,e}return null},e.CapturedTrace=null,e.create=function(){if(r)return new e},e.deactivateLongStackTraces=function(){},e.activateLongStackTraces=function(){var i=t.prototype._pushContext,o=t.prototype._popContext,s=t._peekContext,a=t.prototype._peekContext,c=t.prototype._promiseCreated;e.deactivateLongStackTraces=function(){t.prototype._pushContext=i,t.prototype._popContext=o,t._peekContext=s,t.prototype._peekContext=a,t.prototype._promiseCreated=c,r=!1},r=!0,t.prototype._pushContext=e.prototype._pushContext,t.prototype._popContext=e.prototype._popContext,t._peekContext=t.prototype._peekContext=n,t.prototype._promiseCreated=function(){var t=this._peekContext();t&&null==t._promiseCreated&&(t._promiseCreated=this)}},e}},{}],9:[function(e,n,r){n.exports=function(n,r){function i(t,e){return{promise:e}}function o(){return!1}function s(t,e,n){var r=this;try{t(e,n,function(t){if("function"!=typeof t)throw new TypeError("onCancel must be a function, got: "+R.toString(t));r._attachCancellationCallback(t)})}catch(t){return t}}function a(t){if(!this.isCancellable())return this;var e=this._onCancel();void 0!==e?R.isArray(e)?e.push(t):this._setOnCancel([e,t]):this._setOnCancel(t)}function c(){return this._onCancelField}function u(t){this._onCancelField=t}function f(){this._cancellationParent=void 0,this._onCancelField=void 0}function h(t,e){if(0!=(1&e)){this._cancellationParent=t;var n=t._branchesRemainingToCancel;void 0===n&&(n=0),t._branchesRemainingToCancel=n+1}0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function l(){var t=this._boundTo;return void 0!==t&&t instanceof n?t.isFulfilled()?t.value():void 0:t}function d(){this._trace=new C(this._peekContext())}function p(t,e){if(O(t)){var n=this._trace;if(void 0!==n&&e&&(n=n._parent),void 0!==n)n.attachExtraTrace(t);else if(!t.__stackCleaned__){var r=w(t);R.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),R.notEnumerableProp(t,"__stackCleaned__",!0)}}}function m(t,e,r){if(tt.warnings){var i,o=new F(t);if(e)r._attachExtraTrace(o);else if(tt.longStackTraces&&(i=n._peekContext()))i.attachExtraTrace(o);else{var s=w(o);o.stack=s.message+"\n"+s.stack.join("\n")}G("warning",o)||x(o,"",!0)}}function b(t,e){for(var n=0;n=0;--a)if(r[a]===o){s=a;break}for(a=s;a>=0;--a){var c=r[a];if(e[i]!==c)break;e.pop(),i--}e=r}}function g(t){for(var e=[],n=0;n0&&(e=e.slice(n)),e}function w(t){var e=t.stack,n=t.toString();return e="string"==typeof e&&e.length>0?_(t):[" (No stack trace)"],{message:n,stack:g(e)}}function x(t,e,n){if("undefined"!=typeof console){var r;if(R.isObject(t)){var i=t.stack;r=e+L(i,t)}else r=e+String(t);"function"==typeof I?I(r,n):"function"!=typeof console.log&&"object"!==_typeof(console.log)||console.log(r)}}function k(t,e,n,r){var i=!1;try{"function"==typeof e&&(i=!0,"rejectionHandled"===t?e(r):e(n,r))}catch(t){B.throwLater(t)}"unhandledRejection"===t?G(t,n,r)||i||x(n,"Unhandled rejection "):G(t,r)}function S(t){var e;if("function"==typeof t)e="[function "+(t.name||"anonymous")+"]";else{if(e=t&&"function"==typeof t.toString?t.toString():R.toString(t),/\[object [a-zA-Z0-9$_]+\]/.test(e))try{e=JSON.stringify(t)}catch(t){}0===e.length&&(e="(empty array)")}return"(<"+M(e)+">, no stack trace)"}function M(t){return t.length<41?t:t.substr(0,38)+"..."}function E(){return"function"==typeof Y}function j(t){var e=t.match(Q);if(e)return{fileName:e[1],line:parseInt(e[2],10)}}function C(t){this._parent=t,this._promisesCreated=0;var e=this._length=1+(void 0===t?0:t._length);Y(this,C),e>32&&this.uncycle()}var A,T,I,P=n._getDomain,B=n._async,F=e("./errors").Warning,R=e("./util"),O=R.canAttachTrace,N=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,D=null,L=null,q=!1,z=!(0==R.env("BLUEBIRD_DEBUG")),U=!(0==R.env("BLUEBIRD_WARNINGS")||!z&&!R.env("BLUEBIRD_WARNINGS")),H=!(0==R.env("BLUEBIRD_LONG_STACK_TRACES")||!z&&!R.env("BLUEBIRD_LONG_STACK_TRACES")),V=0!=R.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(U||!!R.env("BLUEBIRD_W_FORGOTTEN_RETURN"));n.prototype.suppressUnhandledRejections=function(){var t=this._target();t._bitField=-1048577&t._bitField|524288},n.prototype._ensurePossibleRejectionHandled=function(){0==(524288&this._bitField)&&(this._setRejectionIsUnhandled(),B.invokeLater(this._notifyUnhandledRejection,this,void 0))},n.prototype._notifyUnhandledRejectionIsHandled=function(){k("rejectionHandled",A,void 0,this)},n.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},n.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},n.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var t=this._settledValue();this._setUnhandledRejectionIsNotified(),k("unhandledRejection",T,t,this)}},n.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},n.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},n.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},n.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},n.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},n.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},n.prototype._warn=function(t,e,n){return m(t,e,n||this)},n.onPossiblyUnhandledRejection=function(t){var e=P();T="function"==typeof t?null===e?t:e.bind(t):void 0},n.onUnhandledRejectionHandled=function(t){var e=P();A="function"==typeof t?null===e?t:e.bind(t):void 0};var W=function(){};n.longStackTraces=function(){if(B.haveItemsQueued()&&!tt.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!tt.longStackTraces&&E()){var t=n.prototype._captureStackTrace,e=n.prototype._attachExtraTrace;tt.longStackTraces=!0,W=function(){if(B.haveItemsQueued()&&!tt.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");n.prototype._captureStackTrace=t,n.prototype._attachExtraTrace=e,r.deactivateLongStackTraces(),B.enableTrampoline(),tt.longStackTraces=!1},n.prototype._captureStackTrace=d,n.prototype._attachExtraTrace=p,r.activateLongStackTraces(),B.disableTrampolineIfNecessary()}},n.hasLongStackTraces=function(){return tt.longStackTraces&&E()};var K=function(){try{var t=document.createEvent("CustomEvent");return t.initCustomEvent("testingtheevent",!1,!0,{}),R.global.dispatchEvent(t),function(t,e){var n=document.createEvent("CustomEvent");return n.initCustomEvent(t.toLowerCase(),!1,!0,e),!R.global.dispatchEvent(n)}}catch(t){}return function(){return!1}}(),X=R.isNode?function(){return t.emit.apply(t,arguments)}:R.global?function(t){var e="on"+t.toLowerCase(),n=R.global[e];return!!n&&(n.apply(R.global,[].slice.call(arguments,1)),!0)}:function(){return!1},$={promiseCreated:i,promiseFulfilled:i,promiseRejected:i,promiseResolved:i,promiseCancelled:i,promiseChained:function(t,e,n){return{promise:e,child:n}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,n){return{reason:e,promise:n}},rejectionHandled:i},G=function(t){var e=!1;try{e=X.apply(null,arguments)}catch(t){B.throwLater(t),e=!0}var n=!1;try{n=K(t,$[t].apply(null,arguments))}catch(t){B.throwLater(t),n=!0}return n||e};n.config=function(t){if("longStackTraces"in(t=Object(t))&&(t.longStackTraces?n.longStackTraces():!t.longStackTraces&&n.hasLongStackTraces()&&W()),"warnings"in t){var e=t.warnings;tt.warnings=!!e,V=tt.warnings,R.isObject(e)&&"wForgottenReturn"in e&&(V=!!e.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!tt.cancellation){if(B.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");n.prototype._clearCancellationData=f,n.prototype._propagateFrom=h,n.prototype._onCancel=c,n.prototype._setOnCancel=u,n.prototype._attachCancellationCallback=a,n.prototype._execute=s,J=h,tt.cancellation=!0}"monitoring"in t&&(t.monitoring&&!tt.monitoring?(tt.monitoring=!0,n.prototype._fireEvent=G):!t.monitoring&&tt.monitoring&&(tt.monitoring=!1,n.prototype._fireEvent=o))},n.prototype._fireEvent=o,n.prototype._execute=function(t,e,n){try{t(e,n)}catch(t){return t}},n.prototype._onCancel=function(){},n.prototype._setOnCancel=function(t){},n.prototype._attachCancellationCallback=function(t){},n.prototype._captureStackTrace=function(){},n.prototype._attachExtraTrace=function(){},n.prototype._clearCancellationData=function(){},n.prototype._propagateFrom=function(t,e){};var J=function(t,e){0!=(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)},Z=function(){return!1},Q=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;R.inherits(C,Error),r.CapturedTrace=C,C.prototype.uncycle=function(){var t=this._length;if(!(t<2)){for(var e=[],n={},r=0,i=this;void 0!==i;++r)e.push(i),i=i._parent;for(r=(t=this._length=r)-1;r>=0;--r){var o=e[r].stack;void 0===n[o]&&(n[o]=r)}for(r=0;r0&&(e[s-1]._parent=void 0,e[s-1]._length=1),e[r]._parent=void 0,e[r]._length=1;var a=r>0?e[r-1]:this;s=0;--u)e[u]._length=c,c++;return}}}},C.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var e=w(t),n=e.message,r=[e.stack],i=this;void 0!==i;)r.push(g(i.stack.split("\n"))),i=i._parent;y(r),v(r),R.notEnumerableProp(t,"stack",b(n,r)),R.notEnumerableProp(t,"__stackCleaned__",!0)}};var Y=function(){var t=/^\s*at\s*/,e=function(t,e){return"string"==typeof t?t:void 0!==e.name&&void 0!==e.message?e.toString():S(e)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,D=t,L=e;var n=Error.captureStackTrace;return Z=function(t){return N.test(t)},function(t,e){Error.stackTraceLimit+=6,n(t,e),Error.stackTraceLimit-=6}}var r=new Error;if("string"==typeof r.stack&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0)return D=/@/,L=e,q=!0,function(t){t.stack=(new Error).stack};var i;try{throw new Error}catch(t){i="stack"in t}return"stack"in r||!i||"number"!=typeof Error.stackTraceLimit?(L=function(t,e){return"string"==typeof t?t:"object"!==(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e||void 0===e.name||void 0===e.message?S(e):e.toString()},null):(D=t,L=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(I=function(t){console.warn(t)},R.isNode&&t.stderr.isTTY?I=function(t,e){var n=e?"":"";console.warn(n+t+"\n")}:R.isNode||"string"!=typeof(new Error).stack||(I=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}));var tt={warnings:U,longStackTraces:!1,cancellation:!1,monitoring:!1};return H&&n.longStackTraces(),{longStackTraces:function(){return tt.longStackTraces},warnings:function(){return tt.warnings},cancellation:function(){return tt.cancellation},monitoring:function(){return tt.monitoring},propagateFromFunction:function(){return J},boundValueFunction:function(){return l},checkForgottenReturns:function(t,e,n,r,i){if(void 0===t&&null!==e&&V){if(void 0!==i&&i._returnedNonUndefined())return;n&&(n+=" ");var o="a promise was created in a "+n+"handler but was not returned from it";r._warn(o,!0,e)}},setBounds:function(t,e){if(E()){for(var n,r,i=t.stack.split("\n"),o=e.stack.split("\n"),s=-1,a=-1,c=0;c=a||(Z=function(t){if(N.test(t))return!0;var e=j(t);return!!(e&&e.fileName===n&&s<=e.line&&e.line<=a)})}},warn:m,deprecated:function(t,e){var n=t+" is deprecated and will be removed in a future version.";return e&&(n+=" Use "+e+" instead."),m(n)},CapturedTrace:C,fireDomEvent:K,fireGlobalEvent:X}}},{"./errors":12,"./util":36}],10:[function(t,e,n){e.exports=function(t){function e(){return this.value}function n(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(n){return n instanceof t&&n.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:n},void 0)},t.prototype.throw=t.prototype.thenThrow=function(t){return this._then(n,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:t},void 0);var e=arguments[1];return this.caught(t,function(){throw e})},t.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof t&&n.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:n},void 0);var r=arguments[1];r instanceof t&&r.suppressUnhandledRejections();return this.caught(n,function(){return r})}}},{}],11:[function(t,e,n){e.exports=function(t,e){function n(){return o(this)}function r(t,n){return i(t,n,e,e)}var i=t.reduce,o=t.all;t.prototype.each=function(t){return this.mapSeries(t)._then(n,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return i(this,t,e,e)},t.each=function(t,e){return r(t,e)._then(n,void 0,void 0,t,void 0)},t.mapSeries=r}},{}],12:[function(t,e,n){function r(t,e){function n(r){if(!(this instanceof n))return new n(r);h(this,"message","string"==typeof r?r:e),h(this,"name",t),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return f(n,Error),n}function i(t){if(!(this instanceof i))return new i(t);h(this,"name","OperationalError"),h(this,"message",t),this.cause=t,this.isOperational=!0,t instanceof Error?(h(this,"message",t.message),h(this,"stack",t.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}var o,s,a=t("./es5"),c=a.freeze,u=t("./util"),f=u.inherits,h=u.notEnumerableProp,l=r("Warning","warning"),d=r("CancellationError","cancellation error"),p=r("TimeoutError","timeout error"),m=r("AggregateError","aggregate error");try{o=TypeError,s=RangeError}catch(t){o=r("TypeError","type error"),s=r("RangeError","range error")}for(var b="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),v=0;v1?t.cancelPromise._reject(e):t.cancelPromise._cancel(),t.cancelPromise=null,!0)}function s(){return c.call(this,this.promise._target()._settledValue())}function a(t){if(!o(this,t))return h.e=t,h}function c(t){var r=this.promise,c=this.handler;if(!this.called){this.called=!0;var u=this.isFinallyHandler()?c.call(r._boundValue()):c.call(r._boundValue(),t);if(void 0!==u){r._setReturnedNonUndefined();var l=n(u,r);if(l instanceof e){if(null!=this.cancelPromise){if(l.isCancelled()){var d=new f("late cancellation observer");return r._attachExtraTrace(d),h.e=d,h}l.isPending()&&l._attachCancellationCallback(new i(this))}return l._then(s,a,void 0,this,void 0)}}}return r.isRejected()?(o(this),h.e=t,h):(o(this),t)}var u=t("./util"),f=e.CancellationError,h=u.errorObj;return r.prototype.isFinallyHandler=function(){return 0===this.type},i.prototype._resultCancelled=function(){o(this.finallyHandler)},e.prototype._passThrough=function(t,e,n,i){return"function"!=typeof t?this.then():this._then(n,i,void 0,new r(this,e,t),void 0)},e.prototype.lastly=e.prototype.finally=function(t){return this._passThrough(t,0,c,c)},e.prototype.tap=function(t){return this._passThrough(t,1,c)},r}},{"./util":36}],16:[function(t,e,n){e.exports=function(e,n,r,i,o,s){function a(t,n,r){for(var o=0;o0&&"function"==typeof arguments[e]){t=arguments[e]}var r=[].slice.call(arguments);t&&r.pop();var i=new n(r).promise();return void 0!==t?i.spread(t):i}}},{"./util":36}],18:[function(t,e,n){e.exports=function(e,n,r,i,o,s){function a(t,e,n,r){this.constructor$(t),this._promise._captureStackTrace();var i=u();this._callback=null===i?e:i.bind(e),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=n>=1?[]:d,this._init$(void 0,-2)}function c(t,e,n,i){if("function"!=typeof e)return r("expecting a function but got "+f.classString(e));var o="object"===(void 0===n?"undefined":_typeof(n))&&null!==n?n.concurrency:0;return o="number"==typeof o&&isFinite(o)&&o>=1?o:0,new a(t,e,o,i).promise()}var u=e._getDomain,f=t("./util"),h=f.tryCatch,l=f.errorObj,d=[];f.inherits(a,n),a.prototype._init=function(){},a.prototype._promiseFulfilled=function(t,n){var r=this._values,o=this.length(),a=this._preservedValues,c=this._limit;if(n<0){if(n=-1*n-1,r[n]=t,c>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(c>=1&&this._inFlight>=c)return r[n]=t,this._queue.push(n),!1;null!==a&&(a[n]=t);var u=this._promise,f=this._callback,d=u._boundValue();u._pushContext();var p=h(f).call(d,t,n,o),m=u._popContext();if(s.checkForgottenReturns(p,m,null!==a?"Promise.filter":"Promise.map",u),p===l)return this._reject(p.e),!0;var b=i(p,this._promise);if(b instanceof e){var v=(b=b._target())._bitField;if(0==(50397184&v))return c>=1&&this._inFlight++,r[n]=b,b._proxy(this,-1*(n+1)),!1;if(0==(33554432&v))return 0!=(16777216&v)?(this._reject(b._reason()),!0):(this._cancel(),!0);p=b._value()}r[n]=p}return++this._totalResolved>=o&&(null!==a?this._filter(r,a):this._resolve(r),!0)},a.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,n=this._values;t.length>0&&this._inFlight1){o.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],f=arguments[2];c=s.isArray(u)?a(t).apply(f,u):a(t).call(f,u)}else c=a(t)();var h=r._popContext();return o.checkForgottenReturns(c,h,"Promise.try",r),r._resolveFromSyncValue(c),r},e.prototype._resolveFromSyncValue=function(t){t===s.errorObj?this._rejectCallback(t.e,!1):this._resolveCallback(t,!0)}}},{"./util":36}],20:[function(t,e,n){function r(t){return t instanceof Error&&c.getPrototypeOf(t)===Error.prototype}function i(t){var e;if(r(t)){(e=new a(t)).name=t.name,e.message=t.message,e.stack=t.stack;for(var n=c.keys(t),i=0;i1){var n,r=new Array(e-1),i=0;for(n=0;n0&&"function"!=typeof t&&"function"!=typeof e){var n=".then() only accepts functions but was passed: "+d.classString(t);arguments.length>1&&(n+=", "+d.classString(e)),this._warn(n)}return this._then(t,e,void 0,void 0,void 0)},i.prototype.done=function(t,e){this._then(t,e,void 0,void 0,void 0)._setIsFinal()},i.prototype.spread=function(t){return"function"!=typeof t?h("expecting a function but got "+d.classString(t)):this.all()._then(t,void 0,void 0,w,void 0)},i.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},i.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new S(this).promise()},i.prototype.error=function(t){return this.caught(d.originatesFromRejection,t)},i.is=function(t){return t instanceof i},i.fromNode=i.fromCallback=function(t){var e=new i(_);e._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=P(t)(T(e,n));return r===I&&e._rejectCallback(r.e,!0),e._isFateSealed()||e._setAsyncGuaranteed(),e},i.all=function(t){return new S(t).promise()},i.cast=function(t){var e=k(t);return e instanceof i||((e=new i(_))._captureStackTrace(),e._setFulfilled(),e._rejectionHandler0=t),e},i.resolve=i.fulfilled=i.cast,i.reject=i.rejected=function(t){var e=new i(_);return e._captureStackTrace(),e._rejectCallback(t,!0),e},i.setScheduler=function(t){if("function"!=typeof t)throw new y("expecting a function but got "+d.classString(t));var e=b._schedule;return b._schedule=t,e},i.prototype._then=function(t,e,n,r,o){var s=void 0!==o,a=s?o:new i(_),u=this._target(),f=u._bitField;s||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0!=(50397184&f)?this._boundValue():u===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var h=c();if(0!=(50397184&f)){var l,d,p=u._settlePromiseCtx;0!=(33554432&f)?(d=u._rejectionHandler0,l=t):0!=(16777216&f)?(d=u._fulfillmentHandler0,l=e,u._unsetRejectionIsUnhandled()):(p=u._settlePromiseLateCancellationObserver,d=new g("late cancellation observer"),u._attachExtraTrace(d),l=e),b.invoke(p,u,{handler:null===h?l:"function"==typeof l&&h.bind(l),promise:a,receiver:r,value:d})}else u._addCallbacks(t,e,a,r,h);return a},i.prototype._length=function(){return 65535&this._bitField},i.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},i.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},i.prototype._setLength=function(t){this._bitField=-65536&this._bitField|65535&t},i.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},i.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},i.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},i.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},i.prototype._isFinal=function(){return(4194304&this._bitField)>0},i.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},i.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},i.prototype._setAsyncGuaranteed=function(){this._bitField=134217728|this._bitField},i.prototype._receiverAt=function(t){var e=0===t?this._receiver0:this[4*t-4+3];if(e!==l)return void 0===e&&this._isBound()?this._boundValue():e},i.prototype._promiseAt=function(t){return this[4*t-4+2]},i.prototype._fulfillmentHandlerAt=function(t){return this[4*t-4+0]},i.prototype._rejectionHandlerAt=function(t){return this[4*t-4+1]},i.prototype._boundValue=function(){},i.prototype._migrateCallback0=function(t){t._bitField;var e=t._fulfillmentHandler0,n=t._rejectionHandler0,r=t._promise0,i=t._receiverAt(0);void 0===i&&(i=l),this._addCallbacks(e,n,r,i,null)},i.prototype._migrateCallbackAt=function(t,e){var n=t._fulfillmentHandlerAt(e),r=t._rejectionHandlerAt(e),i=t._promiseAt(e),o=t._receiverAt(e);void 0===o&&(o=l),this._addCallbacks(n,r,i,o,null)},i.prototype._addCallbacks=function(t,e,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof t&&(this._fulfillmentHandler0=null===i?t:i.bind(t)),"function"==typeof e&&(this._rejectionHandler0=null===i?e:i.bind(e));else{var s=4*o-4;this[s+2]=n,this[s+3]=r,"function"==typeof t&&(this[s+0]=null===i?t:i.bind(t)),"function"==typeof e&&(this[s+1]=null===i?e:i.bind(e))}return this._setLength(o+1),o},i.prototype._proxy=function(t,e){this._addCallbacks(void 0,void 0,e,t,null)},i.prototype._resolveCallback=function(t,e){if(0==(117506048&this._bitField)){if(t===this)return this._rejectCallback(u(),!1);var n=k(t,this);if(!(n instanceof i))return this._fulfill(t);e&&this._propagateFrom(n,2);var r=n._target(),o=r._bitField;if(0==(50397184&o)){var s=this._length();s>0&&r._migrateCallback0(this);for(var a=1;a>>16)){if(t===this){var n=u();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=t,(65535&e)>0&&(0!=(134217728&e)?this._settlePromises():b.settlePromises(this))}},i.prototype._reject=function(t){var e=this._bitField;if(!((117506048&e)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=t,this._isFinal())return b.fatalError(t,d.isNode);(65535&e)>0?0!=(134217728&e)?this._settlePromises():b.settlePromises(this):this._ensurePossibleRejectionHandled()}},i.prototype._fulfillPromises=function(t,e){for(var n=1;n0){if(0!=(16842752&t)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,t),this._rejectPromises(e,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,t),this._fulfillPromises(e,r)}this._setLength(0)}this._clearCancellationData()},i.prototype._settledValue=function(){var t=this._bitField;return 0!=(33554432&t)?this._rejectionHandler0:0!=(16777216&t)?this._fulfillmentHandler0:void 0},i.defer=i.pending=function(){return j.deprecated("Promise.defer","new Promise"),{promise:new i(_),resolve:o,reject:s}},d.notEnumerableProp(i,"_makeSelfResolutionError",u),e("./method")(i,_,k,h,j),e("./bind")(i,_,k,j),e("./cancel")(i,S,h,j),e("./direct_resolve")(i),e("./synchronous_inspection")(i),e("./join")(i,S,k,_,j),i.Promise=i,e("./map.js")(i,S,h,k,_,j),e("./using.js")(i,h,k,E,_,j),e("./timers.js")(i,_,j),e("./generators.js")(i,h,_,k,n,j),e("./nodeify.js")(i),e("./call_get.js")(i),e("./props.js")(i,S,k,h),e("./race.js")(i,_,k,h),e("./reduce.js")(i,S,h,k,_,j),e("./settle.js")(i,S,j),e("./some.js")(i,S,h),e("./promisify.js")(i,_),e("./any.js")(i),e("./each.js")(i,_),e("./filter.js")(i,_),d.toFastProperties(i),d.toFastProperties(i.prototype),a({a:1}),a({b:2}),a({c:3}),a(1),a(function(){}),a(void 0),a(!1),a(new i(_)),j.setBounds(m.firstLineError,d.lastLineError),i}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(t,e,n){e.exports=function(e,n,r,i,o){function s(t){switch(t){case-2:return[];case-3:return{}}}function a(t){var r=this._promise=new e(n);t instanceof e&&r._propagateFrom(t,3),r._setOnCancel(this),this._values=t,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var c=t("./util");c.isArray;return c.inherits(a,o),a.prototype.length=function(){return this._length},a.prototype.promise=function(){return this._promise},a.prototype._init=function t(n,o){var a=r(this._values,this._promise);if(a instanceof e){var u=(a=a._target())._bitField;if(this._values=a,0==(50397184&u))return this._promise._setAsyncGuaranteed(),a._then(t,this._reject,void 0,this,o);if(0==(33554432&u))return 0!=(16777216&u)?this._reject(a._reason()):this._cancel();a=a._value()}if(null!==(a=c.asArray(a)))0!==a.length?this._iterate(a):-5===o?this._resolveEmptyArray():this._resolve(s(o));else{var f=i("expecting an array or an iterable object but got "+c.classString(a)).reason();this._promise._rejectCallback(f,!1)}},a.prototype._iterate=function(t){var n=this.getActualLength(t.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,s=null,a=0;a=this._length&&(this._resolve(this._values),!0)},a.prototype._promiseCancelled=function(){return this._cancel(),!0},a.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},a.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var n=0;n=this._length){var n;if(this._isMap)n=l(this._values);else{n={};for(var r=this.length(),i=0,o=this.length();i>1},e.prototype.props=function(){return s(this)},e.props=function(t){return s(t)}}},{"./es5":13,"./util":36}],26:[function(t,e,n){function r(t,e,n,r,i){for(var o=0;o=this._length&&(this._resolve(this._values),!0)},i.prototype._promiseFulfilled=function(t,e){var n=new o;return n._bitField=33554432,n._settledValueField=t,this._promiseResolved(e,n)},i.prototype._promiseRejected=function(t,e){var n=new o;return n._bitField=16777216,n._settledValueField=t,this._promiseResolved(e,n)},e.settle=function(t){return r.deprecated(".settle()",".reflect()"),new i(t).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(t,e,n){e.exports=function(e,n,r){function i(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function o(t,e){if((0|e)!==e||e<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new i(t),o=n.promise();return n.setHowMany(e),n.init(),o}var s=t("./util"),a=t("./errors").RangeError,c=t("./errors").AggregateError,u=s.isArray,f={};s.inherits(i,n),i.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var t=u(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},i.prototype.init=function(){this._initialized=!0,this._init()},i.prototype.setUnwrap=function(){this._unwrap=!0},i.prototype.howMany=function(){return this._howMany},i.prototype.setHowMany=function(t){this._howMany=t},i.prototype._promiseFulfilled=function(t){return this._addFulfilled(t),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},i.prototype._promiseRejected=function(t){return this._addRejected(t),this._checkOutcome()},i.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(f),this._checkOutcome())},i.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new c,e=this.length();e0?this._reject(t):this._cancel(),!0}return!1},i.prototype._fulfilled=function(){return this._totalResolved},i.prototype._rejected=function(){return this._values.length-this.length()},i.prototype._addRejected=function(t){this._values.push(t)},i.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t},i.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},i.prototype._getRangeError=function(t){var e="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";return new a(e)},i.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(t,e){return o(t,e)},e.prototype.some=function(t){return o(this,t)},e._SomePromiseArray=i}},{"./errors":12,"./util":36}],32:[function(t,e,n){e.exports=function(t){function e(t){void 0!==t?(t=t._target(),this._bitField=t._bitField,this._settledValueField=t._isFateSealed()?t._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}e.prototype._settledValue=function(){return this._settledValueField};var n=e.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=e.prototype.error=e.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=e.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},o=e.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},s=e.prototype.isPending=function(){return 0==(50397184&this._bitField)},a=e.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};e.prototype.isCancelled=t.prototype._isCancelled=function(){return 65536==(65536&this._bitField)},t.prototype.isCancelled=function(){return this._target()._isCancelled()},t.prototype.isPending=function(){return s.call(this._target())},t.prototype.isRejected=function(){return o.call(this._target())},t.prototype.isFulfilled=function(){return i.call(this._target())},t.prototype.isResolved=function(){return a.call(this._target())},t.prototype.value=function(){return n.call(this._target())},t.prototype.reason=function(){var t=this._target();return t._unsetRejectionIsUnhandled(),r.call(t)},t.prototype._value=function(){return this._settledValue()},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=e}},{}],33:[function(t,e,n){e.exports=function(e,n){function r(t){return t.then}function i(t){try{return r(t)}catch(t){return c.e=t,c}}function o(t){return f.call(t,"_promise0")}function s(t,r,i){var o=new e(n),s=o;i&&i._pushContext(),o._captureStackTrace(),i&&i._popContext();var u=!0,f=a.tryCatch(r).call(t,function(t){o&&(o._resolveCallback(t),o=null)},function(t){o&&(o._rejectCallback(t,u,!0),o=null)});return u=!1,o&&f===c&&(o._rejectCallback(f.e,!0,!0),o=null),s}var a=t("./util"),c=a.errorObj,u=a.isObject,f={}.hasOwnProperty;return function(t,r){if(u(t)){if(t instanceof e)return t;var a=i(t);if(a===c)return r&&r._pushContext(),f=e.reject(a.e),r&&r._popContext(),f;if("function"==typeof a){if(o(t)){var f=new e(n);return t._then(f._fulfill,f._reject,void 0,f,null),f}return s(t,a,r)}}return t}}},{"./util":36}],34:[function(t,e,n){e.exports=function(e,n,r){function i(t){this.handle=t}function o(t){return clearTimeout(this.handle),t}function s(t){throw clearTimeout(this.handle),t}var a=t("./util"),c=e.TimeoutError;i.prototype._resultCancelled=function(){clearTimeout(this.handle)};var u=function(t){return f(+this).thenReturn(t)},f=e.delay=function(t,o){var s,a;return void 0!==o?(s=e.resolve(o)._then(u,null,null,t,void 0),r.cancellation()&&o instanceof e&&s._setOnCancel(o)):(s=new e(n),a=setTimeout(function(){s._fulfill()},+t),r.cancellation()&&s._setOnCancel(new i(a))),s._setAsyncGuaranteed(),s};e.prototype.delay=function(t){return f(t,this)};var h=function(t,e,n){var r;r="string"!=typeof e?e instanceof Error?e:new c("operation timed out"):new c(e),a.markAsOriginatingFromRejection(r),t._attachExtraTrace(r),t._reject(r),null!=n&&n.cancel()};e.prototype.timeout=function(t,e){t=+t;var n,a,c=new i(setTimeout(function(){n.isPending()&&h(n,e,a)},t));return r.cancellation()?(a=this.then(),(n=a._then(o,s,void 0,c,void 0))._setOnCancel(c)):n=this._then(o,s,void 0,c,void 0),n}}},{"./util":36}],35:[function(t,e,n){e.exports=function(e,n,r,i,o,s){function a(t){setTimeout(function(){throw t},0)}function c(t){var e=r(t);return e!==t&&"function"==typeof t._isDisposable&&"function"==typeof t._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}function u(t,n){function i(){if(s>=u)return f._fulfill();var o=c(t[s++]);if(o instanceof e&&o._isDisposable()){try{o=r(o._getDisposer().tryDispose(n),t.promise)}catch(t){return a(t)}if(o instanceof e)return o._then(i,a,null,null,null)}i()}var s=0,u=t.length,f=new e(o);return i(),f}function f(t,e,n){this._data=t,this._promise=e,this._context=n}function h(t,e,n){this.constructor$(t,e,n)}function l(t){return f.isDisposer(t)?(this.resources[this.index]._setDisposable(t),t.promise()):t}function d(t){this.length=t,this.promise=null,this[t-1]=null}var p=t("./util"),m=t("./errors").TypeError,b=t("./util").inherits,v=p.errorObj,y=p.tryCatch;f.prototype.data=function(){return this._data},f.prototype.promise=function(){return this._promise},f.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():null},f.prototype.tryDispose=function(t){var e=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=null!==e?this.doDispose(e,t):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},f.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},b(h,f),h.prototype.doDispose=function(t,e){return this.data().call(t,t,e)},d.prototype._resultCancelled=function(){for(var t=this.length,n=0;n0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},e.prototype.disposer=function(t){if("function"==typeof t)return new h(t,this,i());throw new m}}},{"./errors":12,"./util":36}],36:[function(e,n,i){function o(){try{var t=A;return A=null,t.apply(this,arguments)}catch(t){return C.e=t,C}}function s(t){return A=t,o}function a(t){return null==t||!0===t||!1===t||"string"==typeof t||"number"==typeof t}function c(t){return"function"==typeof t||"object"===(void 0===t?"undefined":_typeof(t))&&null!==t}function u(t){return a(t)?new Error(y(t)):t}function f(t,e){var n,r=t.length,i=new Array(r+1);for(n=0;n1,r=e.length>0&&!(1===e.length&&"constructor"===e[0]),i=B.test(t+"")&&E.names(t).length>0;if(n||r||i)return!0}return!1}catch(t){return!1}}function m(t){function e(){}e.prototype=t;for(var n=8;n--;)new e;return t}function b(t){return F.test(t)}function v(t,e,n){for(var r=new Array(t),i=0;i10||e[0]>0}(),L.isNode&&L.toFastProperties(t);try{throw new Error}catch(t){L.lastLineError=t}n.exports=L},{"./es5":13}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:117}],209:[function(t,e,n){!function(e,n){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}function s(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return r}function a(t,e,n,r){for(var i=0,o=Math.min(t.length,n),s=e;s=49?a-49+10:a>=17?a-17+10:a}return i}function c(t){for(var e=new Array(t.bitLength()),n=0;n>>i}return e}function u(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,c=s/67108864|0;n.words[0]=a;for(var u=1;u>>26,h=67108863&c,l=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=l;d++){var p=u-d|0;f+=(s=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&s}n.words[u]=0|h,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}function f(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function h(t,e,n){return(new l).mulp(t,e,n)}function l(t,e){this.x=t,this.y=e}function d(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){d.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function m(){d.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){d.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function v(){d.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function y(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function g(t){y.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"===(void 0===e?"undefined":_typeof(e))?e.exports=o:n.BN=o,o.BN=o,o.wordSize=26;var _;try{_=t("buffer").Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"===(void 0===t?"undefined":_typeof(t))&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"===(void 0===t?"undefined":_typeof(t)))return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,s=o%r,c=Math.min(o,o-s)+n,u=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var w=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],x=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){t=t||10,e=0|e||1;var n;if(16===t||"hex"===t){n="";for(var i=0,o=0,s=0;s>>24-i&16777215)||s!==this.length-1?w[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var u=x[t],f=k[t];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var l=h.modn(f).toString(t);n=(h=h.idivn(f)).isZero()?l+n:w[u-l.length]+l+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==_),this.toArrayLike(_,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var s,a,c="le"===e,u=new t(o),f=this.clone();if(c){for(a=0;!f.isZero();a++)s=f.andln(255),f.iushrn(8),u[a]=s;for(;a=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;var r,i;n>0?(r=this,i=t):(r=t,i=this);for(var o=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,d=0|s[1],p=8191&d,m=d>>>13,b=0|s[2],v=8191&b,y=b>>>13,g=0|s[3],_=8191&g,w=g>>>13,x=0|s[4],k=8191&x,S=x>>>13,M=0|s[5],E=8191&M,j=M>>>13,C=0|s[6],A=8191&C,T=C>>>13,I=0|s[7],P=8191&I,B=I>>>13,F=0|s[8],R=8191&F,O=F>>>13,N=0|s[9],D=8191&N,L=N>>>13,q=0|a[0],z=8191&q,U=q>>>13,H=0|a[1],V=8191&H,W=H>>>13,K=0|a[2],X=8191&K,$=K>>>13,G=0|a[3],J=8191&G,Z=G>>>13,Q=0|a[4],Y=8191&Q,tt=Q>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ct=8191&at,ut=at>>>13,ft=0|a[8],ht=8191&ft,lt=ft>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var bt=(u+(r=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,U))+Math.imul(l,z)|0))<<13)|0;u=((o=Math.imul(l,U))+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,U))+Math.imul(m,z)|0,o=Math.imul(m,U);var vt=(u+(r=r+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(l,V)|0))<<13)|0;u=((o=o+Math.imul(l,W)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,z),i=(i=Math.imul(v,U))+Math.imul(y,z)|0,o=Math.imul(y,U),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0;var yt=(u+(r=r+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,$)|0)+Math.imul(l,X)|0))<<13)|0;u=((o=o+Math.imul(l,$)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(_,z),i=(i=Math.imul(_,U))+Math.imul(w,z)|0,o=Math.imul(w,U),r=r+Math.imul(v,V)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,W)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,$)|0;var gt=(u+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,J)|0))<<13)|0;u=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(k,z),i=(i=Math.imul(k,U))+Math.imul(S,z)|0,o=Math.imul(S,U),r=r+Math.imul(_,V)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(w,V)|0,o=o+Math.imul(w,W)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,$)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,$)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Z)|0;var _t=(u+(r=r+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,Y)|0))<<13)|0;u=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,z),i=(i=Math.imul(E,U))+Math.imul(j,z)|0,o=Math.imul(j,U),r=r+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,W)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,$)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,$)|0,r=r+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,Z)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,tt)|0;var wt=(u+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(l,nt)|0))<<13)|0;u=((o=o+Math.imul(l,rt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,U))+Math.imul(T,z)|0,o=Math.imul(T,U),r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,W)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,$)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(v,Y)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var xt=(u+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,st)|0)+Math.imul(l,ot)|0))<<13)|0;u=((o=o+Math.imul(l,st)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,U))+Math.imul(B,z)|0,o=Math.imul(B,U),r=r+Math.imul(A,V)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,W)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,$)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(v,nt)|0,i=(i=i+Math.imul(v,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,st)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0;var kt=(u+(r=r+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,ut)|0)+Math.imul(l,ct)|0))<<13)|0;u=((o=o+Math.imul(l,ut)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(R,z),i=(i=Math.imul(R,U))+Math.imul(O,z)|0,o=Math.imul(O,U),r=r+Math.imul(P,V)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(B,V)|0,o=o+Math.imul(B,W)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,$)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Z)|0,r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(_,nt)|0,i=(i=i+Math.imul(_,rt)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(v,ot)|0,i=(i=i+Math.imul(v,st)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0,r=r+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,ut)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,ut)|0;var St=(u+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;u=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(D,z),i=(i=Math.imul(D,U))+Math.imul(L,z)|0,o=Math.imul(L,U),r=r+Math.imul(R,V)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,$)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Z)|0,r=r+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,tt)|0,r=r+Math.imul(k,nt)|0,i=(i=i+Math.imul(k,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(_,ot)|0,i=(i=i+Math.imul(_,st)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,r=r+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,ut)|0)+Math.imul(y,ct)|0,o=o+Math.imul(y,ut)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0;var Mt=(u+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(l,pt)|0))<<13)|0;u=((o=o+Math.imul(l,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(D,V),i=(i=Math.imul(D,W))+Math.imul(L,V)|0,o=Math.imul(L,W),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,$)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(j,nt)|0,o=o+Math.imul(j,rt)|0,r=r+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,st)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,r=r+Math.imul(_,ct)|0,i=(i=i+Math.imul(_,ut)|0)+Math.imul(w,ct)|0,o=o+Math.imul(w,ut)|0,r=r+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var Et=(u+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;u=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(D,X),i=(i=Math.imul(D,$))+Math.imul(L,X)|0,o=Math.imul(L,$),r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(B,Y)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(T,nt)|0,o=o+Math.imul(T,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,st)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,r=r+Math.imul(k,ct)|0,i=(i=i+Math.imul(k,ut)|0)+Math.imul(S,ct)|0,o=o+Math.imul(S,ut)|0,r=r+Math.imul(_,ht)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(w,ht)|0,o=o+Math.imul(w,lt)|0;var jt=(u+(r=r+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(y,pt)|0))<<13)|0;u=((o=o+Math.imul(y,mt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(D,J),i=(i=Math.imul(D,Z))+Math.imul(L,J)|0,o=Math.imul(L,Z),r=r+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,st)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,r=r+Math.imul(E,ct)|0,i=(i=i+Math.imul(E,ut)|0)+Math.imul(j,ct)|0,o=o+Math.imul(j,ut)|0,r=r+Math.imul(k,ht)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ct=(u+(r=r+Math.imul(_,pt)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(w,pt)|0))<<13)|0;u=((o=o+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(D,Y),i=(i=Math.imul(D,tt))+Math.imul(L,Y)|0,o=Math.imul(L,tt),r=r+Math.imul(R,nt)|0,i=(i=i+Math.imul(R,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,st)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,st)|0,r=r+Math.imul(A,ct)|0,i=(i=i+Math.imul(A,ut)|0)+Math.imul(T,ct)|0,o=o+Math.imul(T,ut)|0,r=r+Math.imul(E,ht)|0,i=(i=i+Math.imul(E,lt)|0)+Math.imul(j,ht)|0,o=o+Math.imul(j,lt)|0;var At=(u+(r=r+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,mt)|0)+Math.imul(S,pt)|0))<<13)|0;u=((o=o+Math.imul(S,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(D,nt),i=(i=Math.imul(D,rt))+Math.imul(L,nt)|0,o=Math.imul(L,rt),r=r+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,st)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,r=r+Math.imul(P,ct)|0,i=(i=i+Math.imul(P,ut)|0)+Math.imul(B,ct)|0,o=o+Math.imul(B,ut)|0,r=r+Math.imul(A,ht)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(T,ht)|0,o=o+Math.imul(T,lt)|0;var Tt=(u+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(j,pt)|0))<<13)|0;u=((o=o+Math.imul(j,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(D,ot),i=(i=Math.imul(D,st))+Math.imul(L,ot)|0,o=Math.imul(L,st),r=r+Math.imul(R,ct)|0,i=(i=i+Math.imul(R,ut)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,ut)|0,r=r+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(B,ht)|0,o=o+Math.imul(B,lt)|0;var It=(u+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(T,pt)|0))<<13)|0;u=((o=o+Math.imul(T,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(D,ct),i=(i=Math.imul(D,ut))+Math.imul(L,ct)|0,o=Math.imul(L,ut),r=r+Math.imul(R,ht)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(O,ht)|0,o=o+Math.imul(O,lt)|0;var Pt=(u+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(B,pt)|0))<<13)|0;u=((o=o+Math.imul(B,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(D,ht),i=(i=Math.imul(D,lt))+Math.imul(L,ht)|0,o=Math.imul(L,lt);var Bt=(u+(r=r+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(O,pt)|0))<<13)|0;u=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863;var Ft=(u+(r=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,mt))+Math.imul(L,pt)|0))<<13)|0;return u=((o=Math.imul(L,mt))+(i>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,c[0]=bt,c[1]=vt,c[2]=yt,c[3]=gt,c[4]=_t,c[5]=wt,c[6]=xt,c[7]=kt,c[8]=St,c[9]=Mt,c[10]=Et,c[11]=jt,c[12]=Ct,c[13]=At,c[14]=Tt,c[15]=It,c[16]=Pt,c[17]=Bt,c[18]=Ft,0!==u&&(c[19]=u,n.length++),n};Math.imul||(S=u),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?S(this,t,e):n<63?u(this,t,e):n<1024?f(this,t,e):h(this,t,e)},l.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},l.prototype.permute=function(t,e,n,r,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=c(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0);var i;i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,u=0;u=0&&(0!==f||u>=i);u--){var h=0|this.words[u];this.words[u]=f<<26-o|h>>>o,f=h&a}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+n]=67108863&s}for(;i>26,this.words[i+n]=67108863&s;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,s=0|i.words[i.length-1];0!==(n=26-this._countBits(s))&&(i=i.ushln(n),r.iushln(n),s=0|i.words[i.length-1]);var a,c=r.length-i.length;if("mod"!==e){(a=new o(null)).length=c+1,a.words=new Array(a.length);for(var u=0;u=0;h--){var l=67108864*(0|r.words[i.length+h])+(0|r.words[i.length+h-1]);for(l=Math.min(l/s|0,67108863),r._ishlnsubmul(i,l,h);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(i,1,h),r.isZero()||(r.negative^=1);a&&(a.words[h]=l)}return a&&a.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},o.prototype.divmod=function(t,e,n){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var i,s,a;return 0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),a=new o(0),c=new o(1),u=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(f),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(f),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(a),s.isub(c)):(n.isub(e),a.isub(i),c.isub(s))}return{a:a,b:c,gcd:n.iushln(u)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),a=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0==(e.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(e.iushrn(c);c-- >0;)i.isOdd()&&i.iadd(a),i.iushrn(1);for(var f=0,h=1;0==(n.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(a),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s)):(n.isub(e),s.isub(i))}var l;return(l=0===e.cmpn(1)?i:s).cmpn(0)<0&&l.iadd(t),l},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=t<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;this.strip();var n;if(this.length>1)n=1;else{e&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];n=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new y(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var M={k256:null,p224:null,p192:null,p25519:null};d.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},d.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):n.strip(),n},d.prototype.split=function(t,e){t.iushrn(this.n,0,e)},d.prototype.imulK=function(t){return t.imul(this.k)},i(p,d),p.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},p.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(M[t])return M[t];var e;if("k256"===t)e=new p;else if("p224"===t)e=new m;else if("p192"===t)e=new b;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new v}return M[t]=e,e},y.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},y.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},y.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},y.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},y.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},y.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},y.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},y.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},y.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},y.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},y.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},y.prototype.isqr=function(t){return this.imul(t,t.clone())},y.prototype.sqr=function(t){return this.mul(t,t)},y.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),c=a.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;0!==d.cmp(a);){for(var m=d,b=0;0!==m.cmp(a);b++)m=m.redSqr();r(b=0;r--){for(var u=e.words[r],f=c-1;f>=0;f--){var h=u>>f&1;i!==n[0]&&(i=this.sqr(i)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===r&&0===f)&&(i=this.mul(i,n[s]),a=0,s=0)):a=0}c=26}return i},y.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},y.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new g(t)},i(g,y),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},g.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},g.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{}],210:[function(t,e,n){arguments[4][17][0].apply(n,arguments)},{crypto:18,dup:17}],211:[function(t,e,n){(function(t){function n(e){if(e.length%r!=0){var n=e.length+(r-e.length%r);e=t.concat([e,i],n)}for(var o=new Array(e.length>>>2),s=0,a=0;s=6.4.0 <7.0.0",type:"range"},"/Users/frozeman/Sites/_ethereum/web3/packages/web3-eth-accounts/node_modules/eth-lib"]],_from:"elliptic@>=6.4.0 <7.0.0",_id:"elliptic@6.4.0",_inCache:!0,_location:"/elliptic",_nodeVersion:"7.0.0",_npmOperationalInternal:{host:"packages-18-east.internal.npmjs.com",tmp:"tmp/elliptic-6.4.0.tgz_1487798866428_0.30510620190761983"},_npmUser:{name:"indutny",email:"fedor@indutny.com"},_npmVersion:"3.10.8",_phantomChildren:{},_requested:{raw:"elliptic@^6.4.0",scope:null,escapedName:"elliptic",name:"elliptic",rawSpec:"^6.4.0",spec:">=6.4.0 <7.0.0",type:"range"},_requiredBy:["/eth-lib"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",_shrinkwrap:null,_spec:"elliptic@^6.4.0",_where:"/Users/frozeman/Sites/_ethereum/web3/packages/web3-eth-accounts/node_modules/eth-lib",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},directories:{},dist:{shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",tarball:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz"},files:["lib"],gitHead:"6b0d2b76caae91471649c8e21f0b1d3ba0f96090",homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",maintainers:[{name:"indutny",email:"fedor@indutny.com"}],name:"elliptic",optionalDependencies:{},readme:"ERROR: No README data found!",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0"}},{}],229:[function(t,e,n){(function(n){var r=t("./bytes"),i=t("./nat"),o=t("elliptic"),s=t("./rlp"),a=new o.ec("secp256k1"),c=t("./hash"),u=c.keccak256,f=c.keccak256s,h=function(t){for(var e=f(t.slice(2)),n="0x",r=0;r<40;r++)n+=parseInt(e[r+2],16)>7?t[r+2].toUpperCase():t[r+2];return n},l=function(t){var e=new n(t.slice(2),"hex"),r="0x"+a.keyFromPrivate(e).getPublic(!1,"hex").slice(2),i=u(r);return{address:h("0x"+i.slice(-40)),privateKey:t}},d=function(t){var e=_slicedToArray(t,3),n=e[0],i=e[1],o=e[2];return r.flatten([i,o,n])},p=function(t){return[r.slice(64,65,t),r.slice(0,32,t),r.slice(32,64,t)]},m=function(t){return function(e,i){var o=a.keyFromPrivate(new n(i.slice(2),"hex")).sign(new n(e.slice(2),"hex"),{canonical:!0});return d([r.pad(1,r.fromNumber(t+o.recoveryParam)),r.pad(32,r.fromNat("0x"+o.r.toString(16))),r.pad(32,r.fromNat("0x"+o.s.toString(16)))])}},b=m(27),v=function(t,e){var i=p(e),o={v:r.toNumber(i[0]),r:i[1].slice(2),s:i[2].slice(2)},s="0x"+a.recoverPubKey(new n(t.slice(2),"hex"),o,o.v<2?o.v:1-o.v%2).encode("hex",!1).slice(2),c=u(s);return h("0x"+c.slice(-40))},y=function(t){return s.encode([r.fromNat(t.nonce),r.fromNat(t.gasPrice),r.fromNat(t.gas),t.to.toLowerCase(),r.fromNat(t.value),t.data,r.fromNat(t.chainId||"0x1"),"0x","0x"])};e.exports={create:function(t){var e=u(r.concat(r.random(32),t||r.random(32))),n=r.concat(r.concat(r.random(32),e),r.random(32)),i=u(n);return l(i)},toChecksum:h,fromPrivate:l,sign:b,recover:v,signTransaction:function(t,e){var n=y(t),r=m(2*i.toNumber(t.chainId||"0x1")+35)(u(n),e),o=s.decode(n).slice(0,6).concat(p(r));return s.encode(o)},recoverTransaction:function(t){var e=s.decode(t),n=d(e.slice(6,9)),i=r.toNumber(e[6]),o=i<35?[]:[r.fromNumber(i-35>>1),"0x","0x"],a=e.slice(0,6).concat(o),c=s.encode(a);return v(u(c),n)},transactionSigningData:y,encodeSignature:d,decodeSignature:p}}).call(this,t("buffer").Buffer)},{"./bytes":231,"./hash":232,"./nat":233,"./rlp":234,buffer:45,elliptic:213}],230:[function(t,e,n){var r=function(t,e){for(var n=[],r=0;r>5,outputBlocks:t>>5,s:function(t){return[].concat(t,t,t,t,t)}([0,0,0,0,0,0,0,0,0,0])}},c=function(t,e){for(var n,s=e.length,a=t.blocks,c=t.blockCount<<2,f=t.blockCount,h=t.outputBlocks,l=t.s,d=0;d>2]|=e[d]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(a[b>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=c){for(t.start=b-c,t.block=a[f],b=0;b>2]|=i[3&b],t.lastByteIndex===c)for(a[0]=a[f],b=1;b>4&15]+r[15&p]+r[p>>12&15]+r[p>>8&15]+r[p>>20&15]+r[p>>16&15]+r[p>>28&15]+r[p>>24&15];v%f==0&&(u(l),b=0)}return"0x"+m},u=function(t){var e,n,r,i,o,a,c,u,f,h,l,d,p,m,b,v,y,g,_,w,x,k,S,M,E,j,C,A,T,I,P,B,F,R,O,N,D,L,q,z,U,H,V,W,K,X,$,G,J,Z,Q,Y,tt,et,nt,rt,it,ot,st,at,ct,ut,ft;for(r=0;r<48;r+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],c=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],f=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],e=(d=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|c>>>31),n=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(c<<1|a>>>31),t[0]^=e,t[1]^=n,t[10]^=e,t[11]^=n,t[20]^=e,t[21]^=n,t[30]^=e,t[31]^=n,t[40]^=e,t[41]^=n,e=i^(u<<1|f>>>31),n=o^(f<<1|u>>>31),t[2]^=e,t[3]^=n,t[12]^=e,t[13]^=n,t[22]^=e,t[23]^=n,t[32]^=e,t[33]^=n,t[42]^=e,t[43]^=n,e=a^(h<<1|l>>>31),n=c^(l<<1|h>>>31),t[4]^=e,t[5]^=n,t[14]^=e,t[15]^=n,t[24]^=e,t[25]^=n,t[34]^=e,t[35]^=n,t[44]^=e,t[45]^=n,e=u^(d<<1|p>>>31),n=f^(p<<1|d>>>31),t[6]^=e,t[7]^=n,t[16]^=e,t[17]^=n,t[26]^=e,t[27]^=n,t[36]^=e,t[37]^=n,t[46]^=e,t[47]^=n,e=h^(i<<1|o>>>31),n=l^(o<<1|i>>>31),t[8]^=e,t[9]^=n,t[18]^=e,t[19]^=n,t[28]^=e,t[29]^=n,t[38]^=e,t[39]^=n,t[48]^=e,t[49]^=n,m=t[0],b=t[1],X=t[11]<<4|t[10]>>>28,$=t[10]<<4|t[11]>>>28,A=t[20]<<3|t[21]>>>29,T=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ct=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,V=t[41]<<18|t[40]>>>14,R=t[2]<<1|t[3]>>>31,O=t[3]<<1|t[2]>>>31,v=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,G=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,I=t[33]<<13|t[32]>>>19,P=t[32]<<13|t[33]>>>19,ut=t[42]<<2|t[43]>>>30,ft=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,nt=t[4]<<30|t[5]>>>2,N=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,g=t[25]<<11|t[24]>>>21,_=t[24]<<11|t[25]>>>21,Z=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,B=t[45]<<29|t[44]>>>3,F=t[44]<<29|t[45]>>>3,M=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,L=t[26]<<25|t[27]>>>7,q=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,x=t[37]<<21|t[36]>>>11,Y=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,W=t[8]<<27|t[9]>>>5,K=t[9]<<27|t[8]>>>5,j=t[18]<<20|t[19]>>>12,C=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,U=t[39]<<8|t[38]>>>24,k=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=m^~v&g,t[1]=b^~y&_,t[10]=M^~j&A,t[11]=E^~C&T,t[20]=R^~N&L,t[21]=O^~D&q,t[30]=W^~X&G,t[31]=K^~$&J,t[40]=et^~rt&ot,t[41]=nt^~it&st,t[2]=v^~g&w,t[3]=y^~_&x,t[12]=j^~A&I,t[13]=C^~T&P,t[22]=N^~L&z,t[23]=D^~q&U,t[32]=X^~G&Z,t[33]=$^~J&Q,t[42]=rt^~ot&at,t[43]=it^~st&ct,t[4]=g^~w&k,t[5]=_^~x&S,t[14]=A^~I&B,t[15]=T^~P&F,t[24]=L^~z&H,t[25]=q^~U&V,t[34]=G^~Z&Y,t[35]=J^~Q&tt,t[44]=ot^~at&ut,t[45]=st^~ct&ft,t[6]=w^~k&m,t[7]=x^~S&b,t[16]=I^~B&M,t[17]=P^~F&E,t[26]=z^~H&R,t[27]=U^~V&O,t[36]=Z^~Y&W,t[37]=Q^~tt&K,t[46]=at^~ut&et,t[47]=ct^~ft&nt,t[8]=k^~m&v,t[9]=S^~b&y,t[18]=B^~M&j,t[19]=F^~E&C,t[28]=H^~R&N,t[29]=V^~O&D,t[38]=Y^~W&X,t[39]=tt^~K&$,t[48]=ut^~et&rt,t[49]=ft^~nt&it,t[0]^=s[r],t[1]^=s[r+1]},f=function(t){return function(e){var n;if("0x"===e.slice(0,2)){n=[];for(var r=2,i=e.length;r="80"?r(n.length/2,128):"")+n}var i=e.map(t).join("");return r(i.length/2,192)+i}(t)},decode:function(t){var e=2,n=function(){if(e>=t.length)throw"";var n=t.slice(e,e+2);return n<"80"?(e+=2,"0x"+n):n<"c0"?i():o()},r=function(){var n=parseInt(t.slice(e,e+=2),16)%64;return n<56?n:parseInt(t.slice(e,e+=2*(n-55)),16)},i=function(){var n=r();return"0x"+t.slice(e,e+=2*n)},o=function(){for(var t=2*r()+e,i=[];e=this._blockSize;){for(var o=this._blockOffset;o0;++s)this._length[s]+=a,(a=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*a);return this},r.prototype._update=function(t){throw new Error("_update is not implemented")},r.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();return void 0!==t&&(e=e.toString(t)),e},r.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=r}).call(this,t("buffer").Buffer)},{buffer:45,inherits:249,stream:148}],236:[function(t,e,n){arguments[4][84][0].apply(n,arguments)},{"./hash/common":237,"./hash/hmac":238,"./hash/ripemd":239,"./hash/sha":240,"./hash/utils":247,dup:84}],237:[function(t,e,n){arguments[4][85][0].apply(n,arguments)},{"./utils":247,dup:85,"minimalistic-assert":250}],238:[function(t,e,n){arguments[4][86][0].apply(n,arguments)},{"./utils":247,dup:86,"minimalistic-assert":250}],239:[function(t,e,n){arguments[4][87][0].apply(n,arguments)},{"./common":237,"./utils":247,dup:87}],240:[function(t,e,n){arguments[4][88][0].apply(n,arguments)},{"./sha/1":241,"./sha/224":242,"./sha/256":243,"./sha/384":244,"./sha/512":245,dup:88}],241:[function(t,e,n){arguments[4][89][0].apply(n,arguments)},{"../common":237,"../utils":247,"./common":246,dup:89}],242:[function(t,e,n){arguments[4][90][0].apply(n,arguments)},{"../utils":247,"./256":243,dup:90}],243:[function(t,e,n){arguments[4][91][0].apply(n,arguments)},{"../common":237,"../utils":247,"./common":246,dup:91,"minimalistic-assert":250}],244:[function(t,e,n){arguments[4][92][0].apply(n,arguments)},{"../utils":247,"./512":245,dup:92}],245:[function(t,e,n){arguments[4][93][0].apply(n,arguments)},{"../common":237,"../utils":247,dup:93,"minimalistic-assert":250}],246:[function(t,e,n){arguments[4][94][0].apply(n,arguments)},{"../utils":247,dup:94}],247:[function(t,e,n){arguments[4][95][0].apply(n,arguments)},{dup:95,inherits:249,"minimalistic-assert":250}],248:[function(t,e,n){arguments[4][96][0].apply(n,arguments)},{dup:96,"hash.js":236,"minimalistic-assert":250,"minimalistic-crypto-utils":251}],249:[function(t,e,n){arguments[4][99][0].apply(n,arguments)},{dup:99}],250:[function(t,e,n){arguments[4][103][0].apply(n,arguments)},{dup:103}],251:[function(t,e,n){arguments[4][104][0].apply(n,arguments)},{dup:104}],252:[function(t,e,n){arguments[4][111][0].apply(n,arguments)},{"./lib/async":253,"./lib/sync":256,dup:111}],253:[function(t,e,n){(function(n,r){function i(t){if(r.process&&!r.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==p[t])return p[t];var e=o(a=a||h.alloc(8),a,10,128,t).then(function(){return!0}).catch(function(){return!1});return p[t]=e,e}function o(t,e,n,r,i){return l.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(t){return l.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:{name:i}},t,r<<3)}).then(function(t){return h.from(t)})}function s(t,e){t.then(function(t){n.nextTick(function(){e(null,t)})},function(t){n.nextTick(function(){e(t)})})}var a,c=t("./precondition"),u=t("./default-encoding"),f=t("./sync"),h=t("safe-buffer").Buffer,l=r.crypto&&r.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},p=[];e.exports=function(t,e,a,l,p,m){if(h.isBuffer(t)||(t=h.from(t,u)),h.isBuffer(e)||(e=h.from(e,u)),c(a,l),"function"==typeof p&&(m=p,p=void 0),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");var b=d[(p=p||"sha1").toLowerCase()];if(!b||"function"!=typeof r.Promise)return n.nextTick(function(){var n;try{n=f(t,e,a,l,p)}catch(t){return m(t)}m(null,n)});s(i(b).then(function(n){return n?o(t,e,a,l,b):f(t,e,a,l,p)}),m)}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":254,"./precondition":255,"./sync":256,_process:117,"safe-buffer":258}],254:[function(t,e,n){(function(t){var n;n=t.browser?"utf-8":parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary",e.exports=n}).call(this,t("_process"))},{_process:117}],255:[function(t,e,n){arguments[4][114][0].apply(n,arguments)},{dup:114}],256:[function(t,e,n){arguments[4][115][0].apply(n,arguments)},{"./default-encoding":254,"./precondition":255,"create-hash/md5":212,dup:115,ripemd160:257,"safe-buffer":258,"sha.js":262}],257:[function(t,e,n){(function(n){function r(){h.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function i(t,e){return t<>>32-e}function o(t,e,n,r,o,s,a,c){return i(t+(e^n^r)+s+a|0,c)+o|0}function s(t,e,n,r,o,s,a,c){return i(t+(e&n|~e&r)+s+a|0,c)+o|0}function a(t,e,n,r,o,s,a,c){return i(t+((e|~n)^r)+s+a|0,c)+o|0}function c(t,e,n,r,o,s,a,c){return i(t+(e&r|n&~r)+s+a|0,c)+o|0}function u(t,e,n,r,o,s,a,c){return i(t+(e^(n|~r))+s+a|0,c)+o|0}var f=t("inherits"),h=t("hash-base");f(r,h),r.prototype._update=function(){for(var t=new Array(16),e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,r=this._b,f=this._c,h=this._d,l=this._e;l=o(l,n=o(n,r,f,h,l,t[0],0,11),r,f=i(f,10),h,t[1],0,14),r=o(r=i(r,10),f=o(f,h=o(h,l,n,r,f,t[2],0,15),l,n=i(n,10),r,t[3],0,12),h,l=i(l,10),n,t[4],0,5),h=o(h=i(h,10),l=o(l,n=o(n,r,f,h,l,t[5],0,8),r,f=i(f,10),h,t[6],0,7),n,r=i(r,10),f,t[7],0,9),n=o(n=i(n,10),r=o(r,f=o(f,h,l,n,r,t[8],0,11),h,l=i(l,10),n,t[9],0,13),f,h=i(h,10),l,t[10],0,14),f=o(f=i(f,10),h=o(h,l=o(l,n,r,f,h,t[11],0,15),n,r=i(r,10),f,t[12],0,6),l,n=i(n,10),r,t[13],0,7),l=s(l=i(l,10),n=o(n,r=o(r,f,h,l,n,t[14],0,9),f,h=i(h,10),l,t[15],0,8),r,f=i(f,10),h,t[7],1518500249,7),r=s(r=i(r,10),f=s(f,h=s(h,l,n,r,f,t[4],1518500249,6),l,n=i(n,10),r,t[13],1518500249,8),h,l=i(l,10),n,t[1],1518500249,13),h=s(h=i(h,10),l=s(l,n=s(n,r,f,h,l,t[10],1518500249,11),r,f=i(f,10),h,t[6],1518500249,9),n,r=i(r,10),f,t[15],1518500249,7),n=s(n=i(n,10),r=s(r,f=s(f,h,l,n,r,t[3],1518500249,15),h,l=i(l,10),n,t[12],1518500249,7),f,h=i(h,10),l,t[0],1518500249,12),f=s(f=i(f,10),h=s(h,l=s(l,n,r,f,h,t[9],1518500249,15),n,r=i(r,10),f,t[5],1518500249,9),l,n=i(n,10),r,t[2],1518500249,11),l=s(l=i(l,10),n=s(n,r=s(r,f,h,l,n,t[14],1518500249,7),f,h=i(h,10),l,t[11],1518500249,13),r,f=i(f,10),h,t[8],1518500249,12),r=a(r=i(r,10),f=a(f,h=a(h,l,n,r,f,t[3],1859775393,11),l,n=i(n,10),r,t[10],1859775393,13),h,l=i(l,10),n,t[14],1859775393,6),h=a(h=i(h,10),l=a(l,n=a(n,r,f,h,l,t[4],1859775393,7),r,f=i(f,10),h,t[9],1859775393,14),n,r=i(r,10),f,t[15],1859775393,9),n=a(n=i(n,10),r=a(r,f=a(f,h,l,n,r,t[8],1859775393,13),h,l=i(l,10),n,t[1],1859775393,15),f,h=i(h,10),l,t[2],1859775393,14),f=a(f=i(f,10),h=a(h,l=a(l,n,r,f,h,t[7],1859775393,8),n,r=i(r,10),f,t[0],1859775393,13),l,n=i(n,10),r,t[6],1859775393,6),l=a(l=i(l,10),n=a(n,r=a(r,f,h,l,n,t[13],1859775393,5),f,h=i(h,10),l,t[11],1859775393,12),r,f=i(f,10),h,t[5],1859775393,7),r=c(r=i(r,10),f=c(f,h=a(h,l,n,r,f,t[12],1859775393,5),l,n=i(n,10),r,t[1],2400959708,11),h,l=i(l,10),n,t[9],2400959708,12),h=c(h=i(h,10),l=c(l,n=c(n,r,f,h,l,t[11],2400959708,14),r,f=i(f,10),h,t[10],2400959708,15),n,r=i(r,10),f,t[0],2400959708,14),n=c(n=i(n,10),r=c(r,f=c(f,h,l,n,r,t[8],2400959708,15),h,l=i(l,10),n,t[12],2400959708,9),f,h=i(h,10),l,t[4],2400959708,8),f=c(f=i(f,10),h=c(h,l=c(l,n,r,f,h,t[13],2400959708,9),n,r=i(r,10),f,t[3],2400959708,14),l,n=i(n,10),r,t[7],2400959708,5),l=c(l=i(l,10),n=c(n,r=c(r,f,h,l,n,t[15],2400959708,6),f,h=i(h,10),l,t[14],2400959708,8),r,f=i(f,10),h,t[5],2400959708,6),r=u(r=i(r,10),f=c(f,h=c(h,l,n,r,f,t[6],2400959708,5),l,n=i(n,10),r,t[2],2400959708,12),h,l=i(l,10),n,t[4],2840853838,9),h=u(h=i(h,10),l=u(l,n=u(n,r,f,h,l,t[0],2840853838,15),r,f=i(f,10),h,t[5],2840853838,5),n,r=i(r,10),f,t[9],2840853838,11),n=u(n=i(n,10),r=u(r,f=u(f,h,l,n,r,t[7],2840853838,6),h,l=i(l,10),n,t[12],2840853838,8),f,h=i(h,10),l,t[2],2840853838,13),f=u(f=i(f,10),h=u(h,l=u(l,n,r,f,h,t[10],2840853838,12),n,r=i(r,10),f,t[14],2840853838,5),l,n=i(n,10),r,t[1],2840853838,12),l=u(l=i(l,10),n=u(n,r=u(r,f,h,l,n,t[3],2840853838,13),f,h=i(h,10),l,t[8],2840853838,14),r,f=i(f,10),h,t[11],2840853838,11),r=u(r=i(r,10),f=u(f,h=u(h,l,n,r,f,t[6],2840853838,8),l,n=i(n,10),r,t[15],2840853838,5),h,l=i(l,10),n,t[13],2840853838,6),h=i(h,10);var d=this._a,p=this._b,m=this._c,b=this._d,v=this._e;v=u(v,d=u(d,p,m,b,v,t[5],1352829926,8),p,m=i(m,10),b,t[14],1352829926,9),p=u(p=i(p,10),m=u(m,b=u(b,v,d,p,m,t[7],1352829926,9),v,d=i(d,10),p,t[0],1352829926,11),b,v=i(v,10),d,t[9],1352829926,13),b=u(b=i(b,10),v=u(v,d=u(d,p,m,b,v,t[2],1352829926,15),p,m=i(m,10),b,t[11],1352829926,15),d,p=i(p,10),m,t[4],1352829926,5),d=u(d=i(d,10),p=u(p,m=u(m,b,v,d,p,t[13],1352829926,7),b,v=i(v,10),d,t[6],1352829926,7),m,b=i(b,10),v,t[15],1352829926,8),m=u(m=i(m,10),b=u(b,v=u(v,d,p,m,b,t[8],1352829926,11),d,p=i(p,10),m,t[1],1352829926,14),v,d=i(d,10),p,t[10],1352829926,14),v=c(v=i(v,10),d=u(d,p=u(p,m,b,v,d,t[3],1352829926,12),m,b=i(b,10),v,t[12],1352829926,6),p,m=i(m,10),b,t[6],1548603684,9),p=c(p=i(p,10),m=c(m,b=c(b,v,d,p,m,t[11],1548603684,13),v,d=i(d,10),p,t[3],1548603684,15),b,v=i(v,10),d,t[7],1548603684,7),b=c(b=i(b,10),v=c(v,d=c(d,p,m,b,v,t[0],1548603684,12),p,m=i(m,10),b,t[13],1548603684,8),d,p=i(p,10),m,t[5],1548603684,9),d=c(d=i(d,10),p=c(p,m=c(m,b,v,d,p,t[10],1548603684,11),b,v=i(v,10),d,t[14],1548603684,7),m,b=i(b,10),v,t[15],1548603684,7),m=c(m=i(m,10),b=c(b,v=c(v,d,p,m,b,t[8],1548603684,12),d,p=i(p,10),m,t[12],1548603684,7),v,d=i(d,10),p,t[4],1548603684,6),v=c(v=i(v,10),d=c(d,p=c(p,m,b,v,d,t[9],1548603684,15),m,b=i(b,10),v,t[1],1548603684,13),p,m=i(m,10),b,t[2],1548603684,11),p=a(p=i(p,10),m=a(m,b=a(b,v,d,p,m,t[15],1836072691,9),v,d=i(d,10),p,t[5],1836072691,7),b,v=i(v,10),d,t[1],1836072691,15),b=a(b=i(b,10),v=a(v,d=a(d,p,m,b,v,t[3],1836072691,11),p,m=i(m,10),b,t[7],1836072691,8),d,p=i(p,10),m,t[14],1836072691,6),d=a(d=i(d,10),p=a(p,m=a(m,b,v,d,p,t[6],1836072691,6),b,v=i(v,10),d,t[9],1836072691,14),m,b=i(b,10),v,t[11],1836072691,12),m=a(m=i(m,10),b=a(b,v=a(v,d,p,m,b,t[8],1836072691,13),d,p=i(p,10),m,t[12],1836072691,5),v,d=i(d,10),p,t[2],1836072691,14),v=a(v=i(v,10),d=a(d,p=a(p,m,b,v,d,t[10],1836072691,13),m,b=i(b,10),v,t[0],1836072691,13),p,m=i(m,10),b,t[4],1836072691,7),p=s(p=i(p,10),m=s(m,b=a(b,v,d,p,m,t[13],1836072691,5),v,d=i(d,10),p,t[8],2053994217,15),b,v=i(v,10),d,t[6],2053994217,5),b=s(b=i(b,10),v=s(v,d=s(d,p,m,b,v,t[4],2053994217,8),p,m=i(m,10),b,t[1],2053994217,11),d,p=i(p,10),m,t[3],2053994217,14),d=s(d=i(d,10),p=s(p,m=s(m,b,v,d,p,t[11],2053994217,14),b,v=i(v,10),d,t[15],2053994217,6),m,b=i(b,10),v,t[0],2053994217,14),m=s(m=i(m,10),b=s(b,v=s(v,d,p,m,b,t[5],2053994217,6),d,p=i(p,10),m,t[12],2053994217,9),v,d=i(d,10),p,t[2],2053994217,12),v=s(v=i(v,10),d=s(d,p=s(p,m,b,v,d,t[13],2053994217,9),m,b=i(b,10),v,t[9],2053994217,12),p,m=i(m,10),b,t[7],2053994217,5),p=o(p=i(p,10),m=s(m,b=s(b,v,d,p,m,t[10],2053994217,15),v,d=i(d,10),p,t[14],2053994217,8),b,v=i(v,10),d,t[12],0,8),b=o(b=i(b,10),v=o(v,d=o(d,p,m,b,v,t[15],0,5),p,m=i(m,10),b,t[10],0,12),d,p=i(p,10),m,t[4],0,9),d=o(d=i(d,10),p=o(p,m=o(m,b,v,d,p,t[1],0,12),b,v=i(v,10),d,t[5],0,5),m,b=i(b,10),v,t[8],0,14),m=o(m=i(m,10),b=o(b,v=o(v,d,p,m,b,t[7],0,6),d,p=i(p,10),m,t[6],0,8),v,d=i(d,10),p,t[2],0,13),v=o(v=i(v,10),d=o(d,p=o(p,m,b,v,d,t[13],0,6),m,b=i(b,10),v,t[14],0,5),p,m=i(m,10),b,t[0],0,15),p=o(p=i(p,10),m=o(m,b=o(b,v,d,p,m,t[3],0,13),v,d=i(d,10),p,t[9],0,11),b,v=i(v,10),d,t[11],0,11),b=i(b,10);var y=this._b+f+b|0;this._b=this._c+h+v|0,this._c=this._d+l+d|0,this._d=this._e+n+p|0,this._e=this._a+r+m|0,this._a=y},r.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},e.exports=r}).call(this,t("buffer").Buffer)},{buffer:45,"hash-base":235,inherits:249}],258:[function(t,e,n){e.exports=t("buffer")},{buffer:45}],259:[function(t,e,n){e.exports=t("scryptsy")},{scryptsy:260}],260:[function(t,e,n){(function(n){function r(t,e,r,i,o){if(n.isBuffer(t)&&n.isBuffer(r))t.copy(r,i,e,e+o);else for(;o--;)r[i++]=t[e++]}var i=t("pbkdf2").pbkdf2Sync,o=2147483647;e.exports=function(t,e,s,a,c,u,f){function h(t,e,n,i){var o;for(r(t,e+64*(2*i-1),_,0,64),o=0;o<2*i;o++)p(t,64*o,_,0,64),d(_),r(_,0,t,n+64*o,64);for(o=0;o>>32-e}function d(t){var e;for(e=0;e<16;e++)y[e]=(255&t[4*e+0])<<0,y[e]|=(255&t[4*e+1])<<8,y[e]|=(255&t[4*e+2])<<16,y[e]|=(255&t[4*e+3])<<24;for(r(y,0,g,0,16),e=8;e>0;e-=2)g[4]^=l(g[0]+g[12],7),g[8]^=l(g[4]+g[0],9),g[12]^=l(g[8]+g[4],13),g[0]^=l(g[12]+g[8],18),g[9]^=l(g[5]+g[1],7),g[13]^=l(g[9]+g[5],9),g[1]^=l(g[13]+g[9],13),g[5]^=l(g[1]+g[13],18),g[14]^=l(g[10]+g[6],7),g[2]^=l(g[14]+g[10],9),g[6]^=l(g[2]+g[14],13),g[10]^=l(g[6]+g[2],18),g[3]^=l(g[15]+g[11],7),g[7]^=l(g[3]+g[15],9),g[11]^=l(g[7]+g[3],13),g[15]^=l(g[11]+g[7],18),g[1]^=l(g[0]+g[3],7),g[2]^=l(g[1]+g[0],9),g[3]^=l(g[2]+g[1],13),g[0]^=l(g[3]+g[2],18),g[6]^=l(g[5]+g[4],7),g[7]^=l(g[6]+g[5],9),g[4]^=l(g[7]+g[6],13),g[5]^=l(g[4]+g[7],18),g[11]^=l(g[10]+g[9],7),g[8]^=l(g[11]+g[10],9),g[9]^=l(g[8]+g[11],13),g[10]^=l(g[9]+g[8],18),g[12]^=l(g[15]+g[14],7),g[13]^=l(g[12]+g[15],9),g[14]^=l(g[13]+g[12],13),g[15]^=l(g[14]+g[13],18);for(e=0;e<16;++e)y[e]=g[e]+y[e];for(e=0;e<16;e++){var n=4*e;t[n+0]=y[e]>>0&255,t[n+1]=y[e]>>8&255,t[n+2]=y[e]>>16&255,t[n+3]=y[e]>>24&255}}function p(t,e,n,r,i){for(var o=0;o 0 and a power of 2");if(s>o/128/a)throw Error("Parameter N is too large");if(a>o/128/c)throw Error("Parameter r is too large");var m,b=new n(256*a),v=new n(128*a*s),y=new Int32Array(16),g=new Int32Array(16),_=new n(64),w=i(t,e,1,128*c*a,"sha256");if(f){var x=c*s*2,k=0;m=function(){++k%1e3==0&&f({current:k,total:x,percent:k/x*100})}}for(var S=0;S=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(e,this._blockSize-4);var n=this._update(this._block)||this._hash();return t?n.toString(t):n},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n}).call(this,t("buffer").Buffer)},{buffer:45}],262:[function(t,e,n){arguments[4][141][0].apply(n,arguments)},{"./sha":263,"./sha1":264,"./sha224":265,"./sha256":266,"./sha384":267,"./sha512":268,dup:141}],263:[function(t,e,n){(function(n){function r(){this.init(),this._w=f,c.call(this,64,56)}function i(t){return t<<5|t>>>27}function o(t){return t<<30|t>>>2}function s(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}var a=t("inherits"),c=t("./hash"),u=[1518500249,1859775393,-1894007588,-899497514],f=new Array(80);a(r,c),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,a=0|this._c,c=0|this._d,f=0|this._e,h=0;h<16;++h)e[h]=t.readInt32BE(4*h);for(;h<80;++h)e[h]=e[h-3]^e[h-8]^e[h-14]^e[h-16];for(var l=0;l<80;++l){var d=~~(l/20),p=i(n)+s(d,r,a,c)+f+e[l]+u[d]|0;f=c,c=a,a=o(r),r=n,n=p}this._a=n+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=c+this._d|0,this._e=f+this._e|0},r.prototype._hash=function(){var t=new n(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":261,buffer:45,inherits:249}],264:[function(t,e,n){(function(n){function r(){this.init(),this._w=h,u.call(this,64,56)}function i(t){return t<<1|t>>>31}function o(t){return t<<5|t>>>27}function s(t){return t<<30|t>>>2}function a(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}var c=t("inherits"),u=t("./hash"),f=[1518500249,1859775393,-1894007588,-899497514],h=new Array(80);c(r,u),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,c=0|this._c,u=0|this._d,h=0|this._e,l=0;l<16;++l)e[l]=t.readInt32BE(4*l);for(;l<80;++l)e[l]=i(e[l-3]^e[l-8]^e[l-14]^e[l-16]);for(var d=0;d<80;++d){var p=~~(d/20),m=o(n)+a(p,r,c,u)+h+e[d]+f[p]|0;h=u,u=c,c=s(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=c+this._c|0,this._d=u+this._d|0,this._e=h+this._e|0},r.prototype._hash=function(){var t=new n(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":261,buffer:45,inherits:249}],265:[function(t,e,n){(function(n){function r(){this.init(),this._w=a,s.call(this,64,56)}var i=t("inherits"),o=t("./sha256"),s=t("./hash"),a=new Array(64);i(r,o),r.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},r.prototype._hash=function(){var t=new n(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":261,"./sha256":266,buffer:45,inherits:249}],266:[function(t,e,n){(function(n){function r(){this.init(),this._w=d,h.call(this,64,56)}function i(t,e,n){return n^t&(e^n)}function o(t,e,n){return t&e|n&(t|e)}function s(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function a(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function c(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function u(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}var f=t("inherits"),h=t("./hash"),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],d=new Array(64);f(r,h),r.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,f=0|this._c,h=0|this._d,d=0|this._e,p=0|this._f,m=0|this._g,b=0|this._h,v=0;v<16;++v)e[v]=t.readInt32BE(4*v);for(;v<64;++v)e[v]=u(e[v-2])+e[v-7]+c(e[v-15])+e[v-16]|0;for(var y=0;y<64;++y){var g=b+a(d)+i(d,p,m)+l[y]+e[y]|0,_=s(n)+o(n,r,f)|0;b=m,m=p,p=d,d=h+g|0,h=f,f=r,r=n,n=g+_|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=f+this._c|0,this._d=h+this._d|0,this._e=d+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},r.prototype._hash=function(){var t=new n(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":261,buffer:45,inherits:249}],267:[function(t,e,n){(function(n){function r(){this.init(),this._w=a,s.call(this,128,112)}var i=t("inherits"),o=t("./sha512"),s=t("./hash"),a=new Array(160);i(r,o),r.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},r.prototype._hash=function(){function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}var e=new n(48);return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":261,"./sha512":268,buffer:45,inherits:249}],268:[function(t,e,n){(function(n){function r(){this.init(),this._w=b,p.call(this,128,112)}function i(t,e,n){return n^t&(e^n)}function o(t,e,n){return t&e|n&(t|e)}function s(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function a(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function c(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function u(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function f(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function h(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function l(t,e){return t>>>0>>0?1:0}var d=t("inherits"),p=t("./hash"),m=[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],b=new Array(160);d(r,p),r.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,d=0|this._ch,p=0|this._dh,b=0|this._eh,v=0|this._fh,y=0|this._gh,g=0|this._hh,_=0|this._al,w=0|this._bl,x=0|this._cl,k=0|this._dl,S=0|this._el,M=0|this._fl,E=0|this._gl,j=0|this._hl,C=0;C<32;C+=2)e[C]=t.readInt32BE(4*C),e[C+1]=t.readInt32BE(4*C+4);for(;C<160;C+=2){var A=e[C-30],T=e[C-30+1],I=c(A,T),P=u(T,A),B=f(A=e[C-4],T=e[C-4+1]),F=h(T,A),R=e[C-14],O=e[C-14+1],N=e[C-32],D=e[C-32+1],L=P+O|0,q=I+R+l(L,P)|0;q=(q=q+B+l(L=L+F|0,F)|0)+N+l(L=L+D|0,D)|0,e[C]=q,e[C+1]=L}for(var z=0;z<160;z+=2){q=e[z],L=e[z+1];var U=o(n,r,d),H=o(_,w,x),V=s(n,_),W=s(_,n),K=a(b,S),X=a(S,b),$=m[z],G=m[z+1],J=i(b,v,y),Z=i(S,M,E),Q=j+X|0,Y=g+K+l(Q,j)|0;Y=(Y=(Y=Y+J+l(Q=Q+Z|0,Z)|0)+$+l(Q=Q+G|0,G)|0)+q+l(Q=Q+L|0,L)|0;var tt=W+H|0,et=V+U+l(tt,W)|0;g=y,j=E,y=v,E=M,v=b,M=S,b=p+Y+l(S=k+Q|0,k)|0,p=d,k=x,d=r,x=w,r=n,w=_,n=Y+et+l(_=Q+tt|0,Q)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+x|0,this._dl=this._dl+k|0,this._el=this._el+S|0,this._fl=this._fl+M|0,this._gl=this._gl+E|0,this._hl=this._hl+j|0,this._ah=this._ah+n+l(this._al,_)|0,this._bh=this._bh+r+l(this._bl,w)|0,this._ch=this._ch+d+l(this._cl,x)|0,this._dh=this._dh+p+l(this._dl,k)|0,this._eh=this._eh+b+l(this._el,S)|0,this._fh=this._fh+v+l(this._fl,M)|0,this._gh=this._gh+y+l(this._gl,E)|0,this._hh=this._hh+g+l(this._hl,j)|0},r.prototype._hash=function(){function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}var e=new n(64);return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=r}).call(this,t("buffer").Buffer)},{"./hash":261,buffer:45,inherits:249}],269:[function(t,e,n){arguments[4][163][0].apply(n,arguments)},{dup:163}],270:[function(t,e,n){(function(t){var n;if(t.crypto&&crypto.getRandomValues){var r=new Uint8Array(16);n=function(){return crypto.getRandomValues(r),r}}if(!n){var i=new Array(16);n=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}e.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],271:[function(t,e,n){function r(t,e){var n=e||0,r=s;return r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]}function i(t,e,n){var i=e&&n||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null);var s=(t=t||{}).random||(t.rng||o)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,e)for(var a=0;a<16;a++)e[i+a]=s[a];return e||r(s)}for(var o=t("./rng"),s=[],a={},c=0;c<256;c++)s[c]=(c+256).toString(16).substr(1),a[s[c]]=c;var u=o(),f=[1|u[0],u[1],u[2],u[3],u[4],u[5]],h=16383&(u[6]<<8|u[7]),l=0,d=0,p=i;p.v1=function(t,e,n){var i=e&&n||0,o=e||[],s=void 0!==(t=t||{}).clockseq?t.clockseq:h,a=void 0!==t.msecs?t.msecs:(new Date).getTime(),c=void 0!==t.nsecs?t.nsecs:d+1,u=a-l+(c-d)/1e4;if(u<0&&void 0===t.clockseq&&(s=s+1&16383),(u<0||a>l)&&void 0===t.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=a,d=c,h=s;var p=(1e4*(268435455&(a+=122192928e5))+c)%4294967296;o[i++]=p>>>24&255,o[i++]=p>>>16&255,o[i++]=p>>>8&255,o[i++]=255&p;var m=a/4294967296*1e4&268435455;o[i++]=m>>>8&255,o[i++]=255&m,o[i++]=m>>>24&15|16,o[i++]=m>>>16&255,o[i++]=s>>>8|128,o[i++]=255&s;for(var b=t.node||f,v=0;v<6;v++)o[i+v]=b[v];return e||r(o)},p.v4=i,p.parse=function(t,e,n){var r=e&&n||0,i=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){i<16&&(e[r+i++]=a[t])});i<16;)e[r+i++]=0;return e},p.unparse=r,e.exports=p},{"./rng":270}],272:[function(t,e,n){(function(n){function r(t){this.length=0,this._accounts=t,this.defaultKeyName="web3js_wallet"}var i=t("underscore"),o=t("bluebird"),s=t("eth-lib/src/account"),a=t("eth-lib/src/hash"),c=t("eth-lib/src/rlp"),u=t("crypto"),f=t("scrypt.js"),h=t("uuid"),l=t("web3-utils"),d=t("web3-core-helpers"),p=function(t){return i.isUndefined(t)||i.isNull(t)},m=function(t){t&&(this.eth=t.eth?t.eth:t),this.wallet=new r(this)};m.prototype._addAccountFunctions=function(t){var e=this;return t.signTransaction=function(n,r){return e.signTransaction(n,t.privateKey,r)},t.sign=function(n){return e.sign(n,t.privateKey)},t.encrypt=function(n,r){return e.encrypt(t.privateKey,n,r)},t},m.prototype.create=function(t){return this._addAccountFunctions(s.create(t||l.randomHex(32)))},m.prototype.privateKeyToAccount=function(t){return this._addAccountFunctions(s.fromPrivate(t))},m.prototype.signTransaction=function(t,e,n){function r(t){if(!t.gas&&!t.gasLimit)throw new Error('"gas" is missing');var r={nonce:l.numberToHex(t.nonce),to:t.to?d.formatters.inputAddressFormatter(t.to):"0x",data:t.data||"0x",value:t.value?l.numberToHex(t.value):"0x",gas:l.numberToHex(t.gasLimit||t.gas),gasPrice:l.numberToHex(t.gasPrice),chainId:l.numberToHex(t.chainId)},o=a.keccak256(s.transactionSigningData(r)),u=s.signTransaction(r,e),f=c.decode(u),h={messageHash:o,v:f[6],r:f[7],s:f[8],rawTransaction:u};return i.isFunction(n)&&n(null,h),h}var u=this;return void 0!==t.nonce&&void 0!==t.chainId&&void 0!==t.gasPrice?r(t):u&&u.eth&&u.eth.net?o.all([p(t.chainId)?u.eth.net.getId():t.chainId,p(t.gasPrice)?u.eth.getGasPrice():t.gasPrice,p(t.nonce)?u.eth.getTransactionCount(u.privateKeyToAccount(e).address):t.nonce]).then(function(e){if(p(e[0])||p(e[1])||p(e[2]))throw new Error('One of the values "chainId", "gasPrice", or "nonce" couldn\'t be fetched: '+JSON.stringify(e));return r(i.extend(t,{chainId:e[0],gasPrice:e[1],nonce:e[2]}))}):o.reject(new Error('The Eth package is set bound. Please set using "accounts.eth = eth", or provide "nonce", "chainId" and "gasPrice" in the transaction yourself.'))},m.prototype.recoverTransaction=function(t){return s.recoverTransaction(t)},m.prototype.hashMessage=function(t){var e=l.isHex(t)?l.hexToUtf8(t):t,n="Ethereum Signed Message:\n"+e.length+e;return a.keccak256s(n)},m.prototype.sign=function(t,e){var n=this.hashMessage(t),r=s.sign(n,e),i=s.decodeSignature(r);return{message:t,messageHash:n,v:i[0],r:i[1],s:i[2],signature:r}},m.prototype.recover=function(t,e){return i.isObject(t)?this.recover(t.messageHash,s.encodeSignature([t.v,t.r,t.s])):(l.isHex(t)||(t=this.hashMessage(t)),4===arguments.length?this.recover(t,s.encodeSignature([].slice.call(arguments,1,4))):s.recover(t,e))},m.prototype.decrypt=function(t,e,r){if(!i.isString(e))throw new Error("No password given.");var o=i.isObject(t)?t:JSON.parse(r?t.toLowerCase():t);if(3!==o.version)throw new Error("Not a valid V3 wallet");var s,a;if("scrypt"===o.crypto.kdf)a=o.crypto.kdfparams,s=f(new n(e),new n(a.salt,"hex"),a.n,a.r,a.p,a.dklen);else{if("pbkdf2"!==o.crypto.kdf)throw new Error("Unsupported key derivation scheme");if("hmac-sha256"!==(a=o.crypto.kdfparams).prf)throw new Error("Unsupported parameters to PBKDF2");s=u.pbkdf2Sync(new n(e),new n(a.salt,"hex"),a.c,a.dklen,"sha256")}var c=new n(o.crypto.ciphertext,"hex");if(l.sha3(n.concat([s.slice(16,32),c])).replace("0x","")!==o.crypto.mac)throw new Error("Key derivation failed - possibly wrong password");var h=u.createDecipheriv(o.crypto.cipher,s.slice(0,16),new n(o.crypto.cipherparams.iv,"hex")),d="0x"+n.concat([h.update(c),h.final()]).toString("hex");return this.privateKeyToAccount(d)},m.prototype.encrypt=function(t,e,r){var i,o=this.privateKeyToAccount(t),s=(r=r||{}).salt||u.randomBytes(32),a=r.iv||u.randomBytes(16),c=r.kdf||"scrypt",d={dklen:r.dklen||32,salt:s.toString("hex")};if("pbkdf2"===c)d.c=r.c||262144,d.prf="hmac-sha256",i=u.pbkdf2Sync(new n(e),s,d.c,d.dklen,"sha256");else{if("scrypt"!==c)throw new Error("Unsupported kdf");d.n=r.n||8192,d.r=r.r||8,d.p=r.p||1,i=f(new n(e),s,d.n,d.r,d.p,d.dklen)}var p=u.createCipheriv(r.cipher||"aes-128-ctr",i.slice(0,16),a);if(!p)throw new Error("Unsupported cipher");var m=n.concat([p.update(new n(o.privateKey.replace("0x",""),"hex")),p.final()]),b=l.sha3(n.concat([i.slice(16,32),new n(m,"hex")])).replace("0x","");return{version:3,id:h.v4({random:r.uuid||u.randomBytes(16)}),address:o.address.toLowerCase().replace("0x",""),crypto:{ciphertext:m.toString("hex"),cipherparams:{iv:a.toString("hex")},cipher:r.cipher||"aes-128-ctr",kdf:c,kdfparams:d,mac:b.toString("hex")}}},r.prototype.create=function(t,e){for(var n=0;n=2?e.slice(2):e;var n=f.decodeParameters(t,e);return 1===n.__length__?n[0]:(delete n.__length__,n)},h.prototype.deploy=function(t,e){if(t=t||{},t.arguments=t.arguments||[],!(t=this._getOrSetDefaultOptions(t)).data)return o._fireError(new Error('No "data" specified in neither the given options, nor the default options.'),null,null,e);var n=r.find(this.options.jsonInterface,function(t){return"constructor"===t.type})||{};return n.signature="constructor",this._createTxObject.apply({method:n,parent:this,deployData:t.data},t.arguments)},h.prototype._generateEventOptions=function(){var t=Array.prototype.slice.call(arguments),e=this._getCallback(t),n=r.isObject(t[t.length-1])?t.pop():{},i=r.isString(t[0])?t[0]:"allevents";if(!(i="allevents"===i.toLowerCase()?{name:"ALLEVENTS",jsonInterface:this.options.jsonInterface}:this.options.jsonInterface.find(function(t){return"event"===t.type&&(t.name===i||t.signature==="0x"+i.replace("0x",""))})))throw new Error('Event "'+i.name+"\" doesn't exist in this contract.");if(!o.isAddress(this.options.address))throw new Error("This contract object doesn't have address set yet, please set an address first.");return{params:this._encodeEventABI(i,n),event:i,callback:e}},h.prototype.clone=function(){return new h(this.options.jsonInterface,this.options.address,this.options)},h.prototype.once=function(t,e,n){var i=Array.prototype.slice.call(arguments);if(!(n=this._getCallback(i)))throw new Error("Once requires a callback as the second parameter.");e&&delete e.fromBlock,this._on(t,e,function(t,e,i){i.unsubscribe(),r.isFunction(n)&&n(t,e,i)})},h.prototype._on=function(){var t=this._generateEventOptions.apply(this,arguments);this._checkListener("newListener",t.event.name,t.callback),this._checkListener("removeListener",t.event.name,t.callback);var e=new s({subscription:{params:1,inputFormatter:[a.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(t.event),subscriptionHandler:function(t){t.removed?this.emit("changed",t):this.emit("data",t),r.isFunction(this.callback)&&this.callback(null,t,this)}},type:"eth",requestManager:this._eth._requestManager});return e.subscribe("logs",t.params,t.callback||function(){}),e},h.prototype.getPastEvents=function(){var t=this._generateEventOptions.apply(this,arguments),e=new i({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[a.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(t.event)});e.setRequestManager(this._eth._requestManager);var n=e.buildCall();return e=null,n(t.params,t.callback)},h.prototype._createTxObject=function(){var t={};if("function"===this.method.type&&(t.call=this.parent._executeMethod.bind(t,"call"),t.call.request=this.parent._executeMethod.bind(t,"call",!0)),t.send=this.parent._executeMethod.bind(t,"send"),t.send.request=this.parent._executeMethod.bind(t,"send",!0),t.encodeABI=this.parent._encodeMethodABI.bind(t),t.estimateGas=this.parent._executeMethod.bind(t,"estimate"),arguments.length){if(arguments.length!==this.method.inputs.length)throw c.InvalidNumberOfParams(arguments.length,this.method.inputs.length,this.method.name);t.arguments=arguments}return t._method=this.method,t._parent=this.parent,this.deployData&&(t._deployData=this.deployData),t},h.prototype._processExecuteArguments=function(t,e){var n={};if(n.type=t.shift(),n.callback=this._parent._getCallback(t),"call"===n.type&&!0!==t[t.length-1]&&(r.isString(t[t.length-1])||isFinite(t[t.length-1]))&&(n.defaultBlock=t.pop()),n.options=r.isObject(t[t.length-1])?t.pop():{},n.generateRequest=!0===t[t.length-1]&&t.pop(),n.options=this._parent._getOrSetDefaultOptions(n.options),n.options.data=this.encodeABI(),!this._deployData&&!o.isAddress(this._parent.options.address))throw new Error("This contract object doesn't have address set yet, please set an address first.");return this._deployData||(n.options.to=this._parent.options.address),n.options.data?n:o._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."),e.eventEmitter,e.reject,n.callback)},h.prototype._executeMethod=function(){var t=this,e=this._parent._processExecuteArguments.call(this,Array.prototype.slice.call(arguments),n),n=u("send"!==e.type);if(e.generateRequest){var i={params:[a.inputCallFormatter(e.options),a.inputDefaultBlockNumberFormatter(e.defaultBlock)],callback:e.callback};return"call"===e.type?(i.method="eth_call",i.format=this._parent._decodeMethodReturn.bind(null,this._method.outputs)):i.method="eth_sendTransaction",i}switch(e.type){case"estimate":return this._parent._eth.estimateGas(e.options,e.callback);case"call":return this._parent._eth.call(e.options,e.defaultBlock,function(i,s){if(s&&(s=t._parent._decodeMethodReturn(t._method.outputs,s)),i)return o._fireError(i,null,n.reject,e.callback);r.isFunction(e.callback)&&e.callback(null,s),n.resolve(s)}),n.eventEmitter;case"send":if(!o.isAddress(e.options.from))return o._fireError(new Error('No "from" address specified in neither the given options, nor the default options.'),n.eventEmitter,n.reject,e.callback);if(r.isBoolean(this._method.payable)&&!this._method.payable&&e.options.value&&e.options.value>0)return o._fireError(new Error("Can not send value to non-payable contract method or constructor"),n.eventEmitter,n.reject,e.callback);var s={receiptFormatter:function(e){if(r.isArray(e.logs)){var n=r.map(e.logs,function(e){return t._parent._decodeEventABI.call({name:"ALLEVENTS",jsonInterface:t._parent.options.jsonInterface},e)});e.events={};var i=0;n.forEach(function(t){t.event?e.events[t.event]=t:(e.events[i]=t,i++)}),delete e.logs}return e},contractDeployFormatter:function(e){var n=t._parent.clone();return n.options.address=e.contractAddress,n}};return this._parent._eth.sendTransaction.apply(s,[e.options,e.callback])}},e.exports=h},{underscore:273,"web3-core-helpers":178,"web3-core-method":180,"web3-core-promievent":183,"web3-core-subscriptions":191,"web3-eth-abi":197,"web3-utils":304}],275:[function(t,e,n){arguments[4][209][0].apply(n,arguments)},{dup:209}],276:[function(t,e,n){var r=t("web3-utils"),i=t("bn.js"),o=function(t,e){for(var n=t;n.length<2*e;)n="0"+n;return n},s=function(t){var e="A".charCodeAt(0),n="Z".charCodeAt(0);return t=t.toUpperCase(),(t=t.substr(4)+t.substr(0,4)).split("").map(function(t){var r=t.charCodeAt(0);return r>=e&&r<=n?r-e+10:t}).join("")},a=function(t){for(var e,n=t;n.length>2;)e=n.slice(0,9),n=parseInt(e,10)%97+n.slice(e.length);return parseInt(n,10)%97},c=function(t){this._iban=t};c.toAddress=function(t){if(!(t=new c(t)).isDirect())throw new Error("IBAN is indirect and can't be converted");return t.toAddress()},c.toIban=function(t){return c.fromAddress(t).toString()},c.fromAddress=function(t){if(!r.isAddress(t))throw new Error("Provided address is not a valid address: "+t);t=t.replace("0x","").replace("0X","");var e=new i(t,16).toString(36),n=o(e,15);return c.fromBban(n.toUpperCase())},c.fromBban=function(t){var e=("0"+(98-a(s("XE00"+t)))).slice(-2);return new c("XE"+e+t)},c.createIndirect=function(t){return c.fromBban("ETH"+t.institution+t.identifier)},c.isValid=function(t){return new c(t).isValid()},c.prototype.isValid=function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===a(s(this._iban))},c.prototype.isDirect=function(){return 34===this._iban.length||35===this._iban.length},c.prototype.isIndirect=function(){return 20===this._iban.length},c.prototype.checksum=function(){return this._iban.substr(2,2)},c.prototype.institution=function(){return this.isIndirect()?this._iban.substr(7,4):""},c.prototype.client=function(){return this.isIndirect()?this._iban.substr(11):""},c.prototype.toAddress=function(){if(this.isDirect()){var t=this._iban.substr(4),e=new i(t,36);return r.toChecksumAddress(e.toString(16,20))}return""},c.prototype.toString=function(){return this._iban},e.exports=c},{"bn.js":275,"web3-utils":304}],277:[function(t,e,n){var r=t("web3-core"),i=t("web3-core-method"),o=t("web3-utils"),s=t("web3-net"),a=t("web3-core-helpers").formatters,c=function(){var t=this;r.packageInit(this,arguments),u().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}),this.net=new s(this.currentProvider)};r.addProviders(c);var u=function(){var t=new i({name:"getAccounts",call:"personal_listAccounts",params:0,outputFormatter:o.toChecksumAddress}),e=new i({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:o.toChecksumAddress}),n=new i({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[a.inputAddressFormatter,null,null]}),r=new i({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[a.inputAddressFormatter]}),s=new i({name:"importRawKey",call:"personal_importRawKey",params:2});return[t,e,n,new i({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[a.inputTransactionFormatter,null]}),r,s,new i({name:"sign",call:"personal_sign",params:3,inputFormatter:[a.inputSignFormatter,a.inputAddressFormatter,null]}),new i({name:"ecRecover",call:"personal_ecRecover",params:2,inputFormatter:[a.inputSignFormatter,null]})]};e.exports=c},{"web3-core":194,"web3-core-helpers":178,"web3-core-method":180,"web3-net":281,"web3-utils":304}],278:[function(t,e,n){arguments[4][163][0].apply(n,arguments)},{dup:163}],279:[function(t,e,n){var r=t("underscore");e.exports=function(t){var e,n=this;return this.net.getId().then(function(t){return e=t,n.getBlock(0)}).then(function(n){var i="private";return"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"===n.hash&&1===e&&(i="main"),"0cd786a2425d16f152c658316c423e6ce1181e15c3295826d7c9904cba9ce303"===n.hash&&2===e&&(i="morden"),"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d"===n.hash&&3===e&&(i="ropsten"),r.isFunction(t)&&t(null,i),i}).catch(function(e){if(!r.isFunction(t))throw e;t(e)})}},{underscore:278}],280:[function(t,e,n){var r=t("underscore"),i=t("web3-core"),o=t("web3-core-helpers"),s=t("web3-core-subscriptions").subscriptions,a=t("web3-core-method"),c=t("web3-utils"),u=t("web3-net"),f=t("web3-eth-personal"),h=t("web3-eth-contract"),l=t("web3-eth-iban"),d=t("web3-eth-accounts"),p=t("web3-eth-abi"),m=t("./getNetworkType.js"),b=o.formatters,v=function(t){return r.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getBlockByHash":"eth_getBlockByNumber"},y=function(t){return r.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex"},g=function(t){return r.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex"},_=function(t){return r.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber"},w=function(t){return r.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber"},x=function(){var t=this;i.packageInit(this,arguments),this.clearSubscriptions=t._requestManager.clearSubscriptions,k().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager,t)}),this.net=new u(this.currentProvider),this.net.getNetworkType=m.bind(this),this.accounts=new d(this),this.personal=new f(this.currentProvider),this.Contract=h,this.Contract.prototype._eth=this,this.Iban=l,this.abi=p};i.addProviders(x),Object.defineProperty(x.prototype,"defaultBlock",{get:function(){return o.config.defaultBlock},set:function(t){return o.config.defaultBlock=t,t},enumerable:!0}),Object.defineProperty(x.prototype,"defaultAccount",{get:function(){return o.config.defaultAccount},set:function(t){return o.config.defaultAccount=t,t},enumerable:!0});var k=function(){var t=new a({name:"getProtocolVersion",call:"eth_protocolVersion",params:0}),e=new a({name:"getCoinbase",call:"eth_coinbase",params:0}),n=new a({name:"isMining",call:"eth_mining",params:0}),i=new a({name:"getHashrate",call:"eth_hashrate",params:0,outputFormatter:c.hexToNumber}),o=new a({name:"isSyncing",call:"eth_syncing",params:0,outputFormatter:b.outputSyncingFormatter}),u=new a({name:"getGasPrice",call:"eth_gasPrice",params:0,outputFormatter:b.outputBigNumberFormatter}),f=new a({name:"getAccounts",call:"eth_accounts",params:0,outputFormatter:c.toChecksumAddress}),h=new a({name:"getBlockNumber",call:"eth_blockNumber",params:0,outputFormatter:c.hexToNumber}),l=new a({name:"getBalance",call:"eth_getBalance",params:2,inputFormatter:[b.inputAddressFormatter,b.inputDefaultBlockNumberFormatter],outputFormatter:b.outputBigNumberFormatter}),d=new a({name:"getStorageAt",call:"eth_getStorageAt",params:3,inputFormatter:[b.inputAddressFormatter,c.numberToHex,b.inputDefaultBlockNumberFormatter]}),p=new a({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[b.inputAddressFormatter,b.inputDefaultBlockNumberFormatter]}),m=new a({name:"getBlock",call:v,params:2,inputFormatter:[b.inputBlockNumberFormatter,function(t){return!!t}],outputFormatter:b.outputBlockFormatter}),x=new a({name:"getUncle",call:g,params:2,inputFormatter:[b.inputBlockNumberFormatter,c.numberToHex],outputFormatter:b.outputBlockFormatter}),k=new a({name:"getBlockTransactionCount",call:_,params:1,inputFormatter:[b.inputBlockNumberFormatter],outputFormatter:c.hexToNumber}),S=new a({name:"getBlockUncleCount",call:w,params:1,inputFormatter:[b.inputBlockNumberFormatter],outputFormatter:c.hexToNumber}),M=new a({name:"getTransaction",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:b.outputTransactionFormatter}),E=new a({name:"getTransactionFromBlock",call:y,params:2,inputFormatter:[b.inputBlockNumberFormatter,c.numberToHex],outputFormatter:b.outputTransactionFormatter}),j=new a({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:b.outputTransactionReceiptFormatter}),C=new a({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[null,b.inputDefaultBlockNumberFormatter],outputFormatter:c.hexToNumber}),A=new a({name:"sendSignedTransaction",call:"eth_sendRawTransaction",params:1,inputFormatter:[null]}),T=new a({name:"signTransaction",call:"eth_signTransaction",params:1,inputFormatter:[b.inputTransactionFormatter]}),I=new a({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[b.inputTransactionFormatter]}),P=new a({name:"sign",call:"eth_sign",params:2,inputFormatter:[b.inputSignFormatter,b.inputAddressFormatter],transformPayload:function(t){return t.params.reverse(),t}}),B=new a({name:"call",call:"eth_call",params:2,inputFormatter:[b.inputCallFormatter,b.inputDefaultBlockNumberFormatter]}),F=new a({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[b.inputCallFormatter],outputFormatter:c.hexToNumber});return[t,e,n,i,o,u,f,h,l,d,p,m,x,new a({name:"getCompilers",call:"eth_getCompilers",params:0}),k,S,M,E,j,C,B,F,A,T,I,P,new a({name:"compile.solidity",call:"eth_compileSolidity",params:1}),new a({name:"compile.lll",call:"eth_compileLLL",params:1}),new a({name:"compile.serpent",call:"eth_compileSerpent",params:1}),new a({name:"submitWork",call:"eth_submitWork",params:3}),new a({name:"getWork",call:"eth_getWork",params:0}),new a({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[b.inputLogFormatter],outputFormatter:b.outputLogFormatter}),new s({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:b.outputBlockFormatter},pendingTransactions:{params:0},logs:{params:1,inputFormatter:[b.inputLogFormatter],outputFormatter:b.outputLogFormatter,subscriptionHandler:function(t){t.removed?this.emit("changed",t):this.emit("data",t),r.isFunction(this.callback)&&this.callback(null,t,this)}},syncing:{params:0,outputFormatter:b.outputSyncingFormatter,subscriptionHandler:function(t){var e=this;!0!==this._isSyncing?(this._isSyncing=!0,this.emit("changed",e._isSyncing),r.isFunction(this.callback)&&this.callback(null,e._isSyncing,this),setTimeout(function(){e.emit("data",t),r.isFunction(e.callback)&&e.callback(null,t,e)},0)):(this.emit("data",t),r.isFunction(e.callback)&&this.callback(null,t,this),clearTimeout(this._isSyncingTimeout),this._isSyncingTimeout=setTimeout(function(){t.currentBlock>t.highestBlock-200&&(e._isSyncing=!1,e.emit("changed",e._isSyncing),r.isFunction(e.callback)&&e.callback(null,e._isSyncing,e))},500))}}}})]};e.exports=x},{"./getNetworkType.js":279,underscore:278,"web3-core":194,"web3-core-helpers":178,"web3-core-method":180,"web3-core-subscriptions":191,"web3-eth-abi":197,"web3-eth-accounts":272,"web3-eth-contract":274,"web3-eth-iban":276,"web3-eth-personal":277,"web3-net":281,"web3-utils":304}],281:[function(t,e,n){var r=t("web3-core"),i=t("web3-core-method"),o=t("web3-utils"),s=function(){var t=this;r.packageInit(this,arguments),a().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})};r.addProviders(s);var a=function(){return[new i({name:"getId",call:"net_version",params:0,outputFormatter:o.hexToNumber}),new i({name:"isListening",call:"net_listening",params:0}),new i({name:"getPeerCount",call:"net_peerCount",params:0,outputFormatter:o.hexToNumber})]};e.exports=s},{"web3-core":194,"web3-core-method":180,"web3-utils":304}],282:[function(t,e,n){e.exports=XMLHttpRequest},{}],283:[function(t,e,n){var r=t("web3-core-helpers").errors,i=t("xhr2"),o=function(t,e){this.host=t||"http://localhost:8545",this.timeout=e||0,this.connected=!1};o.prototype.send=function(t,e){var n=this,o=new i;o.open("POST",this.host,!0),o.setRequestHeader("Content-Type","application/json"),o.onreadystatechange=function(){if(4===o.readyState&&1!==o.timeout){var t=o.responseText,i=null;try{t=JSON.parse(t)}catch(t){i=r.InvalidResponse(o.responseText)}n.connected=!0,e(i,t)}},o.ontimeout=function(){n.connected=!1,e(r.ConnectionTimeout(this.timeout))};try{o.send(JSON.stringify(t))}catch(t){this.connected=!1,e(r.InvalidConnection(this.host))}},e.exports=o},{"web3-core-helpers":178,xhr2:282}],284:[function(t,e,n){!function(t,r,i,o,s,a){function c(t,e){return function(){return t.call(this,e.apply(this,arguments))}}function u(t){return function(e){return e[t]}}function f(t,e){return e.apply(a,t)}function h(t){var e=t.length-1,n=i.prototype.slice;if(0==e)return function(){return t.call(this,n.call(arguments))};if(1==e)return function(){return t.call(this,arguments[0],n.call(arguments,1))};var r=i(t.length);return function(){for(var i=0;id&&(n("Max buffer length exceeded: textNode"),t=Math.max(t,D.length)),L.length>d&&(n("Max buffer length exceeded: numberNode"),t=Math.max(t,L.length)),N=d-t+$}function n(t){D!==a&&(f(D),h(),D=a),i=o(t+"\nLn: "+J+"\nCol: "+G+"\nChr: "+s),l(z(a,a,i))}function r(t){return"\r"==t||"\n"==t||" "==t||"\t"==t}var i,s,c,u=t(yt).emit,f=t(gt).emit,h=t(_t).emit,l=t(ht).emit,d=65536,p=/[\\"\n]/g,m=0,b=m++,v=m++,y=m++,g=m++,_=m++,w=m++,x=m++,k=m++,S=m++,M=m++,E=m++,j=m++,C=m++,A=m++,T=m++,I=m++,P=m++,B=m++,F=m++,R=m++,O=m,N=d,D=a,L="",q=!1,U=!1,H=b,V=[],W=null,K=0,X=0,$=0,G=0,J=1;t(mt).on(function(t){if(!i){if(U)return n("Cannot write after close");var o=0;for(s=t[0];s&&(c=s,s=t[o++]);)switch($++,"\n"==s?(J++,G=0):G++,H){case b:if("{"===s)H=y;else if("["===s)H=_;else if(!r(s))return n("Non-whitespace before {[.");continue;case k:case y:if(r(s))continue;if(H===k)V.push(S);else{if("}"===s){f({}),h(),H=V.pop()||v;continue}V.push(g)}if('"'!==s)return n('Malformed object key should start with " ');H=x;continue;case S:case g:if(r(s))continue;if(":"===s)H===g?(V.push(g),D!==a&&(f({}),u(D),D=a),X++):D!==a&&(u(D),D=a),H=v;else if("}"===s)D!==a&&(f(D),h(),D=a),h(),X--,H=V.pop()||v;else{if(","!==s)return n("Bad object");H===g&&V.push(g),D!==a&&(f(D),h(),D=a),H=k}continue;case _:case v:if(r(s))continue;if(H===_){if(f([]),X++,H=v,"]"===s){h(),X--,H=V.pop()||v;continue}V.push(w)}if('"'===s)H=x;else if("{"===s)H=y;else if("["===s)H=_;else if("t"===s)H=M;else if("f"===s)H=C;else if("n"===s)H=P;else if("-"===s)L+=s;else if("0"===s)L+=s,H=O;else{if(-1==="123456789".indexOf(s))return n("Bad value");L+=s,H=O}continue;case w:if(","===s)V.push(w),D!==a&&(f(D),h(),D=a),H=v;else{if("]"!==s){if(r(s))continue;return n("Bad array")}D!==a&&(f(D),h(),D=a),h(),X--,H=V.pop()||v}continue;case x:D===a&&(D="");var l=o-1;t:for(;;){for(;K>0;)if(W+=s,s=t.charAt(o++),4===K?(D+=String.fromCharCode(parseInt(W,16)),K=0,l=o-1):K++,!s)break t;if('"'===s&&!q){H=V.pop()||v,D+=t.substring(l,o-1);break}if(!("\\"!==s||q||(q=!0,D+=t.substring(l,o-1),s=t.charAt(o++))))break;if(q){if(q=!1,"n"===s?D+="\n":"r"===s?D+="\r":"t"===s?D+="\t":"f"===s?D+="\f":"b"===s?D+="\b":"u"===s?(K=1,W=""):D+=s,s=t.charAt(o++),l=o-1,s)continue;break}p.lastIndex=o;var d=p.exec(t);if(!d){o=t.length+1,D+=t.substring(l,o-1);break}if(o=d.index+1,!(s=t.charAt(d.index))){D+=t.substring(l,o-1);break}}continue;case M:if(!s)continue;if("r"!==s)return n("Invalid true started with t"+s);H=E;continue;case E:if(!s)continue;if("u"!==s)return n("Invalid true started with tr"+s);H=j;continue;case j:if(!s)continue;if("e"!==s)return n("Invalid true started with tru"+s);f(!0),h(),H=V.pop()||v;continue;case C:if(!s)continue;if("a"!==s)return n("Invalid false started with f"+s);H=A;continue;case A:if(!s)continue;if("l"!==s)return n("Invalid false started with fa"+s);H=T;continue;case T:if(!s)continue;if("s"!==s)return n("Invalid false started with fal"+s);H=I;continue;case I:if(!s)continue;if("e"!==s)return n("Invalid false started with fals"+s);f(!1),h(),H=V.pop()||v;continue;case P:if(!s)continue;if("u"!==s)return n("Invalid null started with n"+s);H=B;continue;case B:if(!s)continue;if("l"!==s)return n("Invalid null started with nu"+s);H=F;continue;case F:if(!s)continue;if("l"!==s)return n("Invalid null started with nul"+s);f(null),h(),H=V.pop()||v;continue;case R:if("."!==s)return n("Leading zero not followed by .");L+=s,H=O;continue;case O:if(-1!=="0123456789".indexOf(s))L+=s;else if("."===s){if(-1!==L.indexOf("."))return n("Invalid number has two dots");L+=s}else if("e"===s||"E"===s){if(-1!==L.indexOf("e")||-1!==L.indexOf("E"))return n("Invalid number has two exponential");L+=s}else if("+"===s||"-"===s){if("e"!==c&&"E"!==c)return n("Invalid symbol in number");L+=s}else L&&(f(parseFloat(L)),h(),L=""),o--,H=V.pop()||v;continue;default:return n("Unknown state: "+H)}$>=N&&e()}}),t(bt).on(function(){if(H==b)return f({}),h(),void(U=!0);H===v&&0===X||n("Unexpected end"),D!==a&&(f(D),h(),D=a),U=!0})}function I(t,e){var n,r={};for(var i in e)t(i).on(function(t){return function(e){n=t(n,e)}}(e[i]),r);t(ut).on(function(t){var e=Q(n),r=nt(e),i=Y(n);i&&(rt(Q(i))[r]=t)}),t(ft).on(function(){var t=Q(n),e=nt(t),r=Y(n);r&&delete rt(Q(r))[e]}),t(vt).on(function(){for(var n in e)t(n).un(r)})}function P(t){var e={};return t&&t.split("\r\n").forEach(function(t){var n=t.indexOf(": ");e[t.substring(0,n)]=t.substring(n+2)}),e}function B(t,e){function n(t){return{"http:":80,"https:":443}[t]}function r(e){return e.port||n(e.protocol||t.protocol)}return!!(e.protocol&&e.protocol!=t.protocol||e.host&&e.host!=t.host||e.host&&r(e)!=r(t))}function F(t){var e=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(t)||[];return{protocol:e[1]||"",host:e[2]||"",port:e[3]||""}}function R(){return new XMLHttpRequest}function O(e,n,r,i,o,s,c){function u(){var t=n.responseText,e=t.substr(l);e&&f(e),l=G(t)}var f=e(mt).emit,h=e(ht).emit,l=0,d=!0;e(vt).on(function(){n.onreadystatechange=null,n.abort()}),"onprogress"in n&&(n.onprogress=u),n.onreadystatechange=function(){function t(){try{d&&e(pt).emit(n.status,P(n.getAllResponseHeaders())),d=!1}catch(t){}}switch(n.readyState){case 2:case 3:return t();case 4:t(),2==String(n.status)[0]?(u(),e(bt).emit()):h(z(n.status,n.responseText))}};try{n.open(r,i,!0);for(var p in s)n.setRequestHeader(p,s[p]);B(t.location,F(i))||n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.withCredentials=c,n.send(o)}catch(e){t.setTimeout(X(h,z(a,a,e)),0)}}function N(t,e){return{key:t,node:e}}function D(t){function e(t,e){var n=rt(Q(t));return v(i,n)?r(t,G(n),e):t}function n(t,e,n){rt(Q(t))[e]=n}function r(t,e,r){t&&n(t,e,r);var i=_(N(e,r),t);return o(i),i}var o=t(at).emit,s=t(ct).emit,a=t(dt).emit,c=t(lt).emit,u={};return u[gt]=function(t,i){if(!t)return a(i),r(t,it,i);var o=e(t,i),s=Y(o),c=nt(Q(o));return n(s,c,i),_(N(c,i),s)},u[_t]=function(t){return s(t),Y(t)||c(rt(Q(t)))},u[yt]=r,u}function L(t,e,n){function r(t){return function(e){return e.id==t}}var i,o;return{on:function(n,r){var s={listener:n,id:r||n};return e&&e.emit(t,n,s.id),i=_(s,i),o=_(n,o),this},emit:function(){j(o,arguments)},un:function(e){var s;i=M(i,r(e),function(t){s=t}),s&&(o=M(o,function(t){return t==s.listener}),n&&n.emit(t,s.listener,s.id))},listeners:function(){return o},hasListener:function(t){return y(A(t?r(t):m,i))}}}function q(){function t(t){return n[t]=L(t,r,i)}function e(e){return n[e]||t(e)}var n={},r=t("newListener"),i=t("removeListener");return["emit","on","un"].forEach(function(t){e[t]=h(function(n,r){f(r,e(n)[t])})}),e}function z(t,e,n){try{var r=s.parse(e)}catch(t){}return{statusCode:t,body:e,jsonBody:r,thrown:n}}function U(t,e){function n(t,e,n){var r=C(n);t(e,x(Y(k(nt,r))),x(k(rt,r)))}function r(e,r,i){var o=t(e).emit;r.on(function(t){var e=i(t);!1!==e&&n(o,rt(e),t)},e),t("removeListener").on(function(n){n==e&&(t(n).listeners()||r.un(e))})}var i={node:t(ct),path:t(at)};t("newListener").on(function(t){var n=/(node|path):(.*)/.exec(t);if(n){var o=i[n[1]];o.hasListener(t)||r(t,o,e(n[2]))}})}function H(t,e){function n(t,e,n){n=n||e;var i=r(e);return t.on(function(){var e=!1;u.forget=function(){e=!0},f(arguments,i),delete u.forget,e&&t.un(n)},n),u}function r(t){return function(){try{return t.apply(u,arguments)}catch(t){setTimeout(function(){throw t})}}}function i(e,n){return t(e+":"+n)}function o(t){return function(){var e=t.apply(this,arguments);y(e)&&(e==K.drop?m():v(e))}}function s(t,e,r){var s;s="node"==t?o(r):r,n(i(t,e),s,r)}function a(t,e){for(var n in e)s(t,n,e[n])}function c(t,e,n){return J(e)?s(t,e,n):a(t,e),u}var u,l=/^(node|path):./,d=t(lt),m=t(ft).emit,v=t(ut).emit,g=h(function(e,r){if(u[e])f(r,u[e]);else{var i=t(e),o=r[0];l.test(e)?n(i,o):i.on(o)}return u});return t(dt).on(function(t){u.root=b(t)}),t(pt).on(function(t,e){u.header=function(t){return t?e[t]:e}}),u={on:g,addListener:g,removeListener:function(e,n,r){if("done"==e)d.un(n);else if("node"==e||"path"==e)t.un(e+":"+n,r);else{var i=n;t(e).un(i)}return u},emit:t.emit,node:X(c,"node"),path:X(c,"path"),done:X(n,d),start:X(function(e,n){return t(e).on(r(n),n),u},pt),fail:t(ht).on,abort:t(vt).emit,header:p,root:p,source:e}}function V(t,e,n,r,i){var o=q();return e&&O(o,R(),t,e,n,r,i),T(o),I(o,D(o)),U(o,ot),H(o,e)}function W(t,e,n,r,i,o,a){return i=i?s.parse(s.stringify(i)):{},r?J(r)||(r=s.stringify(r),i["Content-Type"]=i["Content-Type"]||"application/json"):r=null,t(n||"GET",function(t,e){return!1===e&&(-1==t.indexOf("?")?t+="?":t+="&",t+="_="+(new Date).getTime()),t}(e,a),r,i,o||!1)}function K(t){var e=tt("resume","pause","pipe"),n=X(g,e);return t?n(t)||J(t)?W(V,t):W(V,t.url,t.method,t.body,t.headers,t.withCredentials,t.cached):V()}var X=h(function(t,e){var n=e.length;return h(function(r){for(var i=0;i=0.8.0"},gitHead:"7004c39c42ac98875ab61126e5b4a925430f592c",homepage:"https://github.com/theturtle32/WebSocket-Node",keywords:["websocket","websockets","socket","networking","comet","push","RFC-6455","realtime","server","client"],license:"Apache-2.0",main:"index",name:"websocket",optionalDependencies:{},readme:"WebSocket Client & Server Implementation for Node\n=================================================\n\n[![npm version](https://badge.fury.io/js/websocket.svg)](http://badge.fury.io/js/websocket)\n\n[![NPM Downloads](https://img.shields.io/npm/dm/websocket.svg)](https://www.npmjs.com/package/websocket)\n\n[![NPM](https://nodei.co/npm/websocket.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/websocket/)\n\n[![NPM](https://nodei.co/npm-dl/websocket.png?height=3)](https://nodei.co/npm/websocket/)\n\n[ ![Codeship Status for theturtle32/WebSocket-Node](https://codeship.com/projects/70458270-8ee7-0132-7756-0a0cf4fe8e66/status?branch=master)](https://codeship.com/projects/61106)\n\nOverview\n--------\nThis is a (mostly) pure JavaScript implementation of the WebSocket protocol versions 8 and 13 for Node. There are some example client and server applications that implement various interoperability testing protocols in the \"test/scripts\" folder.\n\nFor a WebSocket client written in ActionScript 3, see my [AS3WebScocket](https://github.com/theturtle32/AS3WebSocket) project.\n\n\nDocumentation\n=============\n\n[You can read the full API documentation in the docs folder.](docs/index.md)\n\n\nChangelog\n---------\n\n***Current Version: 1.0.24*** — Released 2016-12-28\n\n***Version 1.0.24***\n\n* Fixed a bug when using native keepalive on Node >= 6.0. (Thanks, [@prossin](https://github.com/prossin))\n* Upgrading outdated dependencies\n\n***Version 1.0.23***\n\n* Official support for Node 6.x\n* Updating dependencies. Specifically, updating nan to ^2.3.3\n\n***Version 1.0.22***\n\n* Updating to work with nan 2.x\n\n\n***Version 1.0.21***\n\n* Incremented and re-published to work around an aborted npm publish of v1.0.20.\n\n***Version 1.0.20***\n\n* Added EventTarget to the W3CWebSocket interface (Thanks, [@ibc](https://github.com/ibc)!)\n* Corrected an inaccurate error message. (Thanks, [@lekoaf](https://github.com/lekoaf)!)\n\n***Version 1.0.19***\n\n* Updated to nan v1.8.x (tested with v1.8.4)\n* Added `\"license\": \"Apache-2.0\"` to package.json via [pull request #199](https://github.com/theturtle32/WebSocket-Node/pull/199) by [@pgilad](https://github.com/pgilad). See [npm1k.org](http://npm1k.org/).\n\n[View the full changelog](CHANGELOG.md)\n\nBrowser Support\n---------------\n\nAll current browsers are fully supported.\n\n* Firefox 7-9 (Old) (Protocol Version 8)\n* Firefox 10+ (Protocol Version 13)\n* Chrome 14,15 (Old) (Protocol Version 8)\n* Chrome 16+ (Protocol Version 13)\n* Internet Explorer 10+ (Protocol Version 13)\n* Safari 6+ (Protocol Version 13)\n\n***Safari older than 6.0 is not supported since it uses a very old draft of WebSockets***\n\n***If you need to simultaneously support legacy browser versions that had implemented draft-75/draft-76/draft-00, take a look here: https://gist.github.com/1428579***\n\nBenchmarks\n----------\nThere are some basic benchmarking sections in the Autobahn test suite. I've put up a [benchmark page](http://theturtle32.github.com/WebSocket-Node/benchmarks/) that shows the results from the Autobahn tests run against AutobahnServer 0.4.10, WebSocket-Node 1.0.2, WebSocket-Node 1.0.4, and ws 0.3.4.\n\nAutobahn Tests\n--------------\nThe very complete [Autobahn Test Suite](http://autobahn.ws/testsuite/) is used by most WebSocket implementations to test spec compliance and interoperability.\n\n- [View Server Test Results](http://theturtle32.github.com/WebSocket-Node/test-report/servers/)\n\nNotes\n-----\nThis library has been used in production on [worlize.com](https://www.worlize.com) since April 2011 and seems to be stable. Your mileage may vary.\n\n**Tested with the following node versions:**\n\n- 6.2.0\n- 5.11.1\n- 4.4.4\n- 0.10.45\n\nIt may work in earlier or later versions but I'm not actively testing it outside of the listed versions. YMMV.\n\nInstallation\n------------\n\nA few users have reported difficulties building the native extensions without first manually installing node-gyp. If you have trouble building the native extensions, make sure you've got a C++ compiler, and have done `npm install -g node-gyp` first. \n\nNative extensions are optional, however, and WebSocket-Node will work even if the extensions cannot be compiled.\n\nIn your project root:\n\n $ npm install websocket\n \nThen in your code:\n\n```javascript\nvar WebSocketServer = require('websocket').server;\nvar WebSocketClient = require('websocket').client;\nvar WebSocketFrame = require('websocket').frame;\nvar WebSocketRouter = require('websocket').router;\nvar W3CWebSocket = require('websocket').w3cwebsocket;\n```\n\nNote for Windows Users\n----------------------\nBecause there is a small C++ component used for validating UTF-8 data, you will need to install a few other software packages in addition to Node to be able to build this module:\n\n- [Microsoft Visual C++](http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express)\n- [Python 2.7](http://www.python.org/download/) (NOT Python 3.x)\n\n\nCurrent Features:\n-----------------\n- Licensed under the Apache License, Version 2.0\n- Protocol version \"8\" and \"13\" (Draft-08 through the final RFC) framing and handshake\n- Can handle/aggregate received fragmented messages\n- Can fragment outgoing messages\n- Router to mount multiple applications to various path and protocol combinations\n- TLS supported for outbound connections via WebSocketClient\n- TLS supported for server connections (use https.createServer instead of http.createServer)\n - Thanks to [pors](https://github.com/pors) for confirming this!\n- Cookie setting and parsing\n- Tunable settings\n - Max Receivable Frame Size\n - Max Aggregate ReceivedMessage Size\n - Whether to fragment outgoing messages\n - Fragmentation chunk size for outgoing messages\n - Whether to automatically send ping frames for the purposes of keepalive\n - Keep-alive ping interval\n - Whether or not to automatically assemble received fragments (allows application to handle individual fragments directly)\n - How long to wait after sending a close frame for acknowledgment before closing the socket.\n- [W3C WebSocket API](http://www.w3.org/TR/websockets/) for applications running on both Node and browsers (via the `W3CWebSocket` class). \n\n\nKnown Issues/Missing Features:\n------------------------------\n- No API for user-provided protocol extensions.\n\n\nUsage Examples\n==============\n\nServer Example\n--------------\n\nHere's a short example showing a server that echos back anything sent to it, whether utf-8 or binary.\n\n```javascript\n#!/usr/bin/env node\nvar WebSocketServer = require('websocket').server;\nvar http = require('http');\n\nvar server = http.createServer(function(request, response) {\n console.log((new Date()) + ' Received request for ' + request.url);\n response.writeHead(404);\n response.end();\n});\nserver.listen(8080, function() {\n console.log((new Date()) + ' Server is listening on port 8080');\n});\n\nwsServer = new WebSocketServer({\n httpServer: server,\n // You should not use autoAcceptConnections for production\n // applications, as it defeats all standard cross-origin protection\n // facilities built into the protocol and the browser. You should\n // *always* verify the connection's origin and decide whether or not\n // to accept it.\n autoAcceptConnections: false\n});\n\nfunction originIsAllowed(origin) {\n // put logic here to detect whether the specified origin is allowed.\n return true;\n}\n\nwsServer.on('request', function(request) {\n if (!originIsAllowed(request.origin)) {\n // Make sure we only accept requests from an allowed origin\n request.reject();\n console.log((new Date()) + ' Connection from origin ' + request.origin + ' rejected.');\n return;\n }\n \n var connection = request.accept('echo-protocol', request.origin);\n console.log((new Date()) + ' Connection accepted.');\n connection.on('message', function(message) {\n if (message.type === 'utf8') {\n console.log('Received Message: ' + message.utf8Data);\n connection.sendUTF(message.utf8Data);\n }\n else if (message.type === 'binary') {\n console.log('Received Binary Message of ' + message.binaryData.length + ' bytes');\n connection.sendBytes(message.binaryData);\n }\n });\n connection.on('close', function(reasonCode, description) {\n console.log((new Date()) + ' Peer ' + connection.remoteAddress + ' disconnected.');\n });\n});\n```\n\nClient Example\n--------------\n\nThis is a simple example client that will print out any utf-8 messages it receives on the console, and periodically sends a random number.\n\n*This code demonstrates a client in Node.js, not in the browser*\n\n```javascript\n#!/usr/bin/env node\nvar WebSocketClient = require('websocket').client;\n\nvar client = new WebSocketClient();\n\nclient.on('connectFailed', function(error) {\n console.log('Connect Error: ' + error.toString());\n});\n\nclient.on('connect', function(connection) {\n console.log('WebSocket Client Connected');\n connection.on('error', function(error) {\n console.log(\"Connection Error: \" + error.toString());\n });\n connection.on('close', function() {\n console.log('echo-protocol Connection Closed');\n });\n connection.on('message', function(message) {\n if (message.type === 'utf8') {\n console.log(\"Received: '\" + message.utf8Data + \"'\");\n }\n });\n \n function sendNumber() {\n if (connection.connected) {\n var number = Math.round(Math.random() * 0xFFFFFF);\n connection.sendUTF(number.toString());\n setTimeout(sendNumber, 1000);\n }\n }\n sendNumber();\n});\n\nclient.connect('ws://localhost:8080/', 'echo-protocol');\n```\n\nClient Example using the *W3C WebSocket API*\n--------------------------------------------\n\nSame example as above but using the [W3C WebSocket API](http://www.w3.org/TR/websockets/).\n\n```javascript\nvar W3CWebSocket = require('websocket').w3cwebsocket;\n\nvar client = new W3CWebSocket('ws://localhost:8080/', 'echo-protocol');\n\nclient.onerror = function() {\n console.log('Connection Error');\n};\n\nclient.onopen = function() {\n console.log('WebSocket Client Connected');\n\n function sendNumber() {\n if (client.readyState === client.OPEN) {\n var number = Math.round(Math.random() * 0xFFFFFF);\n client.send(number.toString());\n setTimeout(sendNumber, 1000);\n }\n }\n sendNumber();\n};\n\nclient.onclose = function() {\n console.log('echo-protocol Client Closed');\n};\n\nclient.onmessage = function(e) {\n if (typeof e.data === 'string') {\n console.log(\"Received: '\" + e.data + \"'\");\n }\n};\n```\n \nRequest Router Example\n----------------------\n\nFor an example of using the request router, see `libwebsockets-test-server.js` in the `test` folder.\n\n\nResources\n---------\n\nA presentation on the state of the WebSockets protocol that I gave on July 23, 2011 at the LA Hacker News meetup. [WebSockets: The Real-Time Web, Delivered](http://www.scribd.com/doc/60898569/WebSockets-The-Real-Time-Web-Delivered)\n",readmeFilename:"README.md",repository:{type:"git",url:"git+https://github.com/theturtle32/WebSocket-Node.git"},scripts:{gulp:"gulp",install:"(node-gyp rebuild 2> builderror.log) || (exit 0)",test:"faucet test/unit"},version:"1.0.24"}},{}],291:[function(t,e,n){(function(n){var r=t("underscore"),i=t("web3-core-helpers").errors;if(void 0!==n)var o=t("websocket").w3cwebsocket;var s=function(t){var e=this;this.responseCallbacks={},this.notificationCallbacks=[],this.connection=new o(t),this.addDefaultEvents(),this.connection.onmessage=function(t){var n="string"==typeof t.data?t.data:"";e._parseResponse(n).forEach(function(t){var n=null;r.isArray(t)?t.forEach(function(t){e.responseCallbacks[t.id]&&(n=t.id)}):n=t.id,n||-1===t.method.indexOf("_subscription")?e.responseCallbacks[n]&&(e.responseCallbacks[n](null,t),delete e.responseCallbacks[n]):e.notificationCallbacks.forEach(function(e){r.isFunction(e)&&e(null,t)})})}};s.prototype.addDefaultEvents=function(){var t=this;this.connection.onerror=function(){t._timeout()},this.connection.onclose=function(e){t._timeout();var n=t.notificationCallbacks;t.reset(),n.forEach(function(t){r.isFunction(t)&&t(e)})}},s.prototype._parseResponse=function(t){var e=this,n=[];return t.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(function(t){e.lastChunk&&(t=e.lastChunk+t);var r=null;try{r=JSON.parse(t)}catch(n){return e.lastChunk=t,clearTimeout(e.lastChunkTimeout),void(e.lastChunkTimeout=setTimeout(function(){throw e._timeout(),i.InvalidResponse(t)},15e3))}clearTimeout(e.lastChunkTimeout),e.lastChunk=null,r&&n.push(r)}),n},s.prototype._addResponseCallback=function(t,e){var n=t.id||t[0].id,r=t.method||t[0].method;this.responseCallbacks[n]=e,this.responseCallbacks[n].method=r},s.prototype._timeout=function(){for(var t in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(t)&&(this.responseCallbacks[t](i.InvalidConnection("on IPC")),delete this.responseCallbacks[t])},s.prototype.send=function(t,e){var n=this;this.connection.readyState!==this.connection.CONNECTING?(this.connection.send(JSON.stringify(t)),this._addResponseCallback(t,e)):setTimeout(function(){n.send(t,e)},10)},s.prototype.on=function(t,e){if("function"!=typeof e)throw new Error("The second parameter callback must be a function.");switch(t){case"data":this.notificationCallbacks.push(e);break;case"connect":this.connection.onopen=e;break;case"end":this.connection.onclose=e;break;case"error":this.connection.onerror=e}},s.prototype.removeListener=function(t,e){var n=this;switch(t){case"data":this.notificationCallbacks.forEach(function(t,r){t===e&&n.notificationCallbacks.splice(r,1)})}},s.prototype.removeAllListeners=function(t){switch(t){case"data":this.notificationCallbacks=[];break;case"connect":this.connection.onopen=null;break;case"end":this.connection.onclose=null;break;case"error":this.connection.onerror=null}},s.prototype.reset=function(){this._timeout(),this.notificationCallbacks=[],this.addDefaultEvents()},e.exports=s}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{underscore:287,"web3-core-helpers":178,websocket:288}],292:[function(t,e,n){var r=t("web3-core"),i=t("web3-core-subscriptions").subscriptions,o=t("web3-core-method"),s=t("web3-net"),a=function(){var t=this;r.packageInit(this,arguments),this.clearSubscriptions=t._requestManager.clearSubscriptions,c().forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}),this.net=new s(this.currentProvider)};r.addProviders(a);var c=function(){return[new i({name:"subscribe",type:"shh",subscriptions:{messages:{params:1}}}),new o({name:"getVersion",call:"shh_version",params:0}),new o({name:"getInfo",call:"shh_info",params:0}),new o({name:"setMaxMessageSize",call:"shh_setMaxMessageSize",params:1}),new o({name:"setMinPoW",call:"shh_setMinPoW",params:1}),new o({name:"markTrustedPeer",call:"shh_markTrustedPeer",params:1}),new o({name:"newKeyPair",call:"shh_newKeyPair",params:0}),new o({name:"addPrivateKey",call:"shh_addPrivateKey",params:1}),new o({name:"deleteKeyPair",call:"shh_deleteKeyPair",params:1}),new o({name:"hasKeyPair",call:"shh_hasKeyPair",params:1}),new o({name:"getPublicKey",call:"shh_getPublicKey",params:1}),new o({name:"getPrivateKey",call:"shh_getPrivateKey",params:1}),new o({name:"newSymKey",call:"shh_newSymKey",params:0}),new o({name:"addSymKey",call:"shh_addSymKey",params:1}),new o({name:"generateSymKeyFromPassword",call:"shh_generateSymKeyFromPassword",params:1}),new o({name:"hasSymKey",call:"shh_hasSymKey",params:1}),new o({name:"getSymKey",call:"shh_getSymKey",params:1}),new o({name:"deleteSymKey",call:"shh_deleteSymKey",params:1}),new o({name:"newMessageFilter",call:"shh_newMessageFilter",params:1}),new o({name:"getFilterMessages",call:"shh_getFilterMessages",params:1}),new o({name:"deleteMessageFilter",call:"shh_deleteMessageFilter",params:1}),new o({name:"post",call:"shh_post",params:1,inputFormatter:[null]})]};e.exports=a},{"web3-core":194,"web3-core-method":180,"web3-core-subscriptions":191,"web3-net":281}],293:[function(t,e,n){arguments[4][195][0].apply(n,arguments)},{dup:195}],294:[function(t,e,n){arguments[4][232][0].apply(n,arguments)},{dup:232}],295:[function(t,e,n){function r(t){var e=t?t.toLowerCase():"ether",n=u[e];if("string"!=typeof n)throw new Error("[ethjs-unit] the unit provided "+t+" doesn't exists, please use the one of the following units "+JSON.stringify(u,null,2));return new o(n,10)}function i(t){if("string"==typeof t){if(!t.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+t+"', should be a number matching (^-?[0-9.]+).");return t}if("number"==typeof t)return String(t);if("object"===(void 0===t?"undefined":_typeof(t))&&t.toString&&(t.toTwos||t.dividedToIntegerBy))return t.toPrecision?String(t.toPrecision()):t.toString(10);throw new Error("while converting number to string, invalid number value '"+t+"' type "+(void 0===t?"undefined":_typeof(t))+".")}var o=t("bn.js"),s=t("number-to-bn"),a=new o(0),c=new o(-1),u={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};e.exports={unitMap:u,numberToString:i,getValueOfUnit:r,fromWei:function(t,e,n){var i=s(t),o=i.lt(a),f=r(e),h=u[e].length-1||1,l=n||{};o&&(i=i.mul(c));for(var d=i.mod(f).toString(10);d.length2)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal points");var l=h[0],d=h[1];if(l||(l="0"),d||(d="0"),d.length>a)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal places");for(;d.length65536){if(!i)throw new Error("Requested too many random bytes.");n(new Error("Requested too many random bytes."))}if(void 0!==r&&r.randomBytes){if(!i)return"0x"+r.randomBytes(e).toString("hex");r.randomBytes(e,function(t,e){t?n(c):n(null,"0x"+e.toString("hex"))})}else{var o;if(void 0!==r?o=r:"undefined"!=typeof msCrypto&&(o=msCrypto),o&&o.getRandomValues){var s=o.getRandomValues(new Uint8Array(e)),a="0x"+Array.from(s).map(function(t){return t.toString(16)}).join("");if(!i)return a;n(null,a)}else{var c=new Error('No "crypto" object available. This Browser doesn\'t support generating secure random bytes.');if(!i)throw c;n(c)}}}},{"./crypto.js":299}],301:[function(t,e,n){var r=t("is-hex-prefixed");e.exports=function(t){return"string"!=typeof t?t:r(t)?t.slice(2):t}},{"is-hex-prefixed":296}],302:[function(t,e,n){arguments[4][163][0].apply(n,arguments)},{dup:163}],303:[function(t,e,n){(function(t){!function(r){function i(t){for(var e,n,r=[],i=0,o=t.length;i=55296&&e<=56319&&i65535&&(i+=v((e-=65536)>>>10&1023|55296),e=56320|1023&e),i+=v(e);return i}function s(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function a(t,e){return v(t>>e&63|128)}function c(t){if(0==(4294967168&t))return v(t);var e="";return 0==(4294965248&t)?e=v(t>>6&31|192):0==(4294901760&t)?(s(t),e=v(t>>12&15|224),e+=a(t,6)):0==(4292870144&t)&&(e=v(t>>18&7|240),e+=a(t,12),e+=a(t,6)),e+=v(63&t|128)}function u(){if(b>=m)throw Error("Invalid byte index");var t=255&p[b];if(b++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function f(){var t,e,n,r,i;if(b>m)throw Error("Invalid byte index");if(b==m)return!1;if(t=255&p[b],b++,0==(128&t))return t;if(192==(224&t)){if((i=(31&t)<<6|(e=u()))>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if(e=u(),n=u(),(i=(15&t)<<12|e<<6|n)>=2048)return s(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(e=u(),n=u(),r=u(),(i=(15&t)<<18|e<<12|n<<6|r)>=65536&&i<=1114111))return i;throw Error("Invalid UTF-8 detected")}var h="object"==(void 0===n?"undefined":_typeof(n))&&n,l="object"==(void 0===e?"undefined":_typeof(e))&&e&&e.exports==h&&e,d="object"==(void 0===t?"undefined":_typeof(t))&&t;d.global!==d&&d.window!==d||(r=d);var p,m,b,v=String.fromCharCode,y={version:"2.0.0",encode:function(t){for(var e=i(t),n=e.length,r=-1,o="";++r7?n+=t[r].toUpperCase():n+=t[r];return n},toHex:o.toHex,toBN:o.toBN,bytesToHex:o.bytesToHex,hexToBytes:o.hexToBytes,hexToNumberString:o.hexToNumberString,hexToNumber:o.hexToNumber,toDecimal:o.hexToNumber,numberToHex:o.numberToHex,fromDecimal:o.numberToHex,hexToUtf8:o.hexToUtf8,hexToString:o.hexToUtf8,toUtf8:o.hexToUtf8,utf8ToHex:o.utf8ToHex,stringToHex:o.utf8ToHex,fromUtf8:o.utf8ToHex,hexToAscii:c,toAscii:c,asciiToHex:u,fromAscii:u,unitMap:i.unitMap,toWei:function(t,e){return e=f(e),o.isBN(t)?i.toWei(t,e):i.toWei(t,e).toString(10)},fromWei:function(t,e){return e=f(e),o.isBN(t)?i.fromWei(t,e):i.fromWei(t,e).toString(10)},padLeft:o.leftPad,leftPad:o.leftPad,padRight:o.rightPad,rightPad:o.rightPad}},{"./soliditySha3.js":305,"./utils.js":306,"ethjs-unit":295,randomhex:300,underscore:302}],305:[function(t,e,n){var r=t("underscore"),i=t("bn.js"),o=t("./utils.js"),s=function(t){return t.startsWith("int[")?"int256"+t.slice(3):"int"===t?"int256":t.startsWith("uint[")?"uint256"+t.slice(4):"uint"===t?"uint256":t.startsWith("fixed[")?"fixed128x128"+t.slice(5):"fixed"===t?"fixed128x128":t.startsWith("ufixed[")?"ufixed128x128"+t.slice(6):"ufixed"===t?"ufixed128x128":t},a=function(t){var e=/^\D+(\d+).*$/.exec(t);return e?parseInt(e[1],10):null},c=function(t){var e=/^\D+\d*\[(\d+)\]$/.exec(t);return e?parseInt(e[1],10):null},u=function(t){var e=void 0===t?"undefined":_typeof(t);if("string"===e)return o.isHex(t)?new i(t.replace(/0x/i,""),16):new i(t,10);if("number"===e)return new i(t);if(o.isBigNumber(t))return new i(t.toString(10));if(o.isBN(t))return t;throw new Error(t+" is not a number")},f=function(t,e,n){var r,c;if("bytes"===(t=s(t))){if(e.replace(/^0x/i,"").length%2!=0)throw new Error("Invalid bytes characters "+e.length);return e}if("string"===t)return o.utf8ToHex(e);if("bool"===t)return e?"01":"00";if(t.startsWith("address")){if(r=n?64:40,!o.isAddress(e))throw new Error(e+" is not a valid address, or the checksum is invalid.");return o.leftPad(e.toLowerCase(),r)}if(r=a(t),t.startsWith("bytes")){if(!r)throw new Error("bytes[] not yet supported in solidity");if(n&&(r=32),r<1||r>32||r256)throw new Error("Invalid uint"+r+" size");if((c=u(e)).bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+c.bitLength());if(c.lt(new i(0)))throw new Error("Supplied uint "+c.toString()+" is negative");return r?o.leftPad(c.toString("hex"),r/8*2):c}if(t.startsWith("int")){if(r%8||r<8||r>256)throw new Error("Invalid int"+r+" size");if((c=u(e)).bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+c.bitLength());return c.lt(new i(0))?c.toTwos(r).toString("hex"):r?o.leftPad(c.toString("hex"),r/8*2):c}throw new Error("Unsupported or invalid type: "+t)},h=function(t){if(r.isArray(t))throw new Error("Autodetection of array types is not supported.");var e,n,s="";if(r.isObject(t)&&(t.hasOwnProperty("v")||t.hasOwnProperty("t")||t.hasOwnProperty("value")||t.hasOwnProperty("type"))?(e=t.t||t.type,s=t.v||t.value):(e=o.toHex(t,!0),s=o.toHex(t),e.startsWith("int")||e.startsWith("uint")||(e="bytes")),!e.startsWith("int")&&!e.startsWith("uint")||"string"!=typeof s||/^(-)?0x/i.test(s)||(s=new i(s)),r.isArray(s)){if((n=c(e))&&s.length!==n)throw new Error(e+" is not matching the given array "+JSON.stringify(s));n=s.length}return r.isArray(s)?s.map(function(t){return f(e,t,n).toString("hex").replace("0x","")}).join(""):f(e,s,n).toString("hex").replace("0x","")};e.exports=function(){var t=Array.prototype.slice.call(arguments),e=r.map(t,h);return o.sha3("0x"+e.join(""))}},{"./utils.js":306,"bn.js":293,underscore:302}],306:[function(t,e,n){var r=t("underscore"),i=t("bn.js"),o=t("number-to-bn"),s=t("utf8"),a=t("eth-lib/src/hash"),c=function(t){return t instanceof i||t&&t.constructor&&"BN"===t.constructor.name},u=function(t){return t&&t.constructor&&"BigNumber"===t.constructor.name},f=function(t){try{return o.apply(null,arguments)}catch(e){throw new Error(e+' Given value: "'+t+'"')}},h=function(t){return!!/^(0x)?[0-9a-f]{40}$/i.test(t)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(t)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(t))||l(t))},l=function(t){t=t.replace(/^0x/i,"");for(var e=v(t.toLowerCase()).replace(/^0x/i,""),n=0;n<40;n++)if(parseInt(e[n],16)>7&&t[n].toUpperCase()!==t[n]||parseInt(e[n],16)<=7&&t[n].toLowerCase()!==t[n])return!1;return!0},d=function(t){var e="";t=(t=(t=(t=(t=s.encode(t)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("");for(var n=0;n>>4).toString(16)),e.push((15&t[n]).toString(16));return"0x"+e.join("")},isHex:b,leftPad:function(t,e,n){var r=/^0x/i.test(t)||"number"==typeof t,i=e-(t=t.toString(16).replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(r?"0x":"")+new Array(i).join(n||"0")+t},rightPad:function(t,e,n){var r=/^0x/i.test(t)||"number"==typeof t,i=e-(t=t.toString(16).replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(r?"0x":"")+t+new Array(i).join(n||"0")},sha3:v}},{"bn.js":293,"eth-lib/src/hash":294,"number-to-bn":297,underscore:302,utf8:303}],BN:[function(t,e,n){arguments[4][209][0].apply(n,arguments)},{dup:209}],Web3:[function(t,e,n){var r=t("../lerna.json"),i=t("../packages/web3-core"),o=t("../packages/web3-eth"),s=t("../packages/web3-net"),a=t("../packages/web3-eth-personal"),c=t("../packages/web3-shh"),u=t("../packages/web3-bzz"),f=t("../packages/web3-utils"),h=function(){i.packageInit(this,arguments),this.version=r.version,this.eth=new o(this),this.shh=new c(this),this.bzz=new u(this),this.utils=f,this.setProvider=function(t,e){return this._requestManager.setProvider(t,e),this._provider=this._requestManager.provider,this.eth.setProvider(t,e),this.eth.net.setProvider(t,e),this.eth.personal.setProvider(t,e),this.shh.setProvider(t,e),this.shh.net.setProvider(t,e),this.bzz.setProvider(t),!0}};h.prototype.version=r.version,i.addProviders(h),h.modules={Eth:o,Net:s,Personal:a,Shh:c,Bzz:u},e.exports=h},{"../lerna.json":1,"../packages/web3-bzz":173,"../packages/web3-core":194,"../packages/web3-eth":280,"../packages/web3-eth-personal":277,"../packages/web3-net":281,"../packages/web3-shh":292,"../packages/web3-utils":304}]},{},["Web3"])("Web3")}); \ No newline at end of file diff --git a/docs/web3-eth-accounts.rst b/docs/web3-eth-accounts.rst index 7cdc8f82..3b4d44d4 100644 --- a/docs/web3-eth-accounts.rst +++ b/docs/web3-eth-accounts.rst @@ -612,7 +612,7 @@ Adds an account using a private key or account object to the wallet. Parameters ---------- -1. ``account`` - ``String|Object``: A private key or account object created with :ref:`web3.eth.accounts.new() `. +1. ``account`` - ``String|Object``: A private key or account object created with :ref:`web3.eth.accounts.create() `. ------- diff --git a/gulpfile.js b/gulpfile.js index e4a7b6df..a65503fb 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -19,6 +19,7 @@ var streamify = require('gulp-streamify'); var replace = require('gulp-replace'); var DEST = path.join(__dirname, 'dist/'); + var packages = [{ fileName: 'web3', expose: 'Web3', @@ -33,15 +34,15 @@ var packages = [{ src: './packages/web3-eth/src/index.js' },{ fileName: 'web3-eth-accounts', - expose: 'Web3Accounts', + expose: 'Web3EthAccounts', src: './packages/web3-eth-accounts/src/index.js' },{ fileName: 'web3-eth-contract', - expose: 'Web3Contract', + expose: 'Web3EthContract', src: './packages/web3-eth-contract/src/index.js' },{ fileName: 'web3-eth-personal', - expose: 'Web3Personal', + expose: 'Web3EthPersonal', src: './packages/web3-eth-personal/src/index.js' },{ fileName: 'web3-eth-iban', @@ -63,10 +64,6 @@ var packages = [{ fileName: 'web3-bzz', expose: 'Web3Bzz', src: './packages/web3-bzz/src/index.js' -},{ - fileName: 'web3-core-requestmanager', - expose: 'Web3RequestManager', - src: './packages/web3-core-requestmanager/src/index.js' },{ fileName: 'web3-providers-ipc', expose: 'Web3IpcProvider', @@ -80,6 +77,22 @@ var packages = [{ fileName: 'web3-providers-ws', expose: 'Web3WsProvider', src: './packages/web3-providers-ws/src/index.js' +},{ + fileName: 'web3-core-subscriptions', + expose: 'Web3Subscriptions', + src: './packages/web3-core-subscriptions/src/index.js' +},{ + fileName: 'web3-core-requestmanager', + expose: 'Web3RequestManager', + src: './packages/web3-core-requestmanager/src/index.js' +},{ + fileName: 'web3-core-promievent', + expose: 'Web3PromiEvent', + src: './packages/web3-core-promievent/src/index.js' +},{ + fileName: 'web3-core-method', + expose: 'Web3Method', + src: './packages/web3-core-method/src/index.js' }]; var browserifyOptions = { @@ -171,5 +184,7 @@ gulp.task('watch', function() { gulp.watch(['./src/*.js'], ['lint', 'build']); }); -gulp.task('default', ['version', 'lint', 'clean', packages[packages.length-1].fileName]); +gulp.task('all', ['version', 'lint', 'clean', packages[packages.length-1].fileName]); + +gulp.task('default', ['version', 'lint', 'clean', packages[0].fileName]); diff --git a/lerna.json b/lerna.json index 4e9e89e4..59209771 100644 --- a/lerna.json +++ b/lerna.json @@ -1,4 +1,5 @@ { + "version": "1.0.0-beta.8", "lerna": "2.0.0", "packages": [ "packages/*" diff --git a/package.js b/package.js index 1e58ccec..6c3312a6 100644 --- a/package.js +++ b/package.js @@ -1,7 +1,7 @@ /* jshint ignore:start */ Package.describe({ name: 'ethereum:web3', - version: 'undefined', + version: '1.0.0-beta.8', summary: 'Ethereum JavaScript API, middleware to talk to a ethreum node over RPC', git: 'https://github.com/ethereum/ethereum.js', // By default, Meteor will default to using README.md for documentation. diff --git a/package.json b/package.json index 21300b6a..84925693 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "web3", "namespace": "ethereum", - "version": "undefined", + "version": "1.0.0-beta.8", "description": "Ethereum JavaScript API", "license": "LGPL-3.0", "main": "./src/index.js", @@ -12,6 +12,7 @@ }, "scripts": { "build": "gulp", + "build-all": "gulp all", "watch": "gulp watch", "docs": "cd docs; make html;", "lint": "jshint *.js packages", diff --git a/packages/web3-bzz/README.md b/packages/web3-bzz/README.md new file mode 100644 index 00000000..b52b05fe --- /dev/null +++ b/packages/web3-bzz/README.md @@ -0,0 +1,41 @@ +# web3-bzz + +This is a sub package of [web3.js][repo] + +This is the swarm package. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-bzz +``` + +### In the Browser + +Build running the following in the [web3.js][repo] repository: + +```bash +npm run-script build-all +``` + +Then include `dist/web3-bzz.js` in your html file. +This will expose the `Web3Personal` object on the window object. + + +## Usage + +```js +// in node.js +var Web3Bzz = require('web3-bzz'); + +var bzz = new Web3Bzz('http://swarm-gateways.net'); +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-core-helpers/README.md b/packages/web3-core-helpers/README.md new file mode 100644 index 00000000..0d973edf --- /dev/null +++ b/packages/web3-core-helpers/README.md @@ -0,0 +1,31 @@ +# web3-core-helpers + +This is a sub package of [web3.js][repo] + +Helper functions used in [web3.js][repo] packages. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-core-helpers +``` + +## Usage + +```js +// in node.js +var helpers = require('web3-core-helpers'); + +helpers.formatters; +helpers.errors; +... +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-core-method/README.md b/packages/web3-core-method/README.md new file mode 100644 index 00000000..01c5dd4e --- /dev/null +++ b/packages/web3-core-method/README.md @@ -0,0 +1,49 @@ +# web3-core-method + +This is a sub package of [web3.js][repo] + +The Method package used within most [web3.js][repo] packages. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-core-method +``` + +### In the Browser + +Build running the following in the [web3.js][repo] repository: + +```bash +npm run-script build-all +``` + +Then include `dist/web3-core-method.js` in your html file. +This will expose the `Web3Method` object on the window object. + + +## Usage + +```js +// in node.js +var Web3Method = require('web3-core-method'); + +var method = new Web3Method({ + name: 'sendTransaction', + call: 'eth_sendTransaction', + params: 1, + inputFormatter: [inputTransactionFormatter] +}); +method.attachToObject(myCoolLib); + +myCoolLib.sendTransaction({...}, function(){ ... }); +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-core-promievent/README.md b/packages/web3-core-promievent/README.md new file mode 100644 index 00000000..cfdf0b6e --- /dev/null +++ b/packages/web3-core-promievent/README.md @@ -0,0 +1,56 @@ +# web3-core-promievent + +This is a sub package of [web3.js][repo] + +This is the PromiEvent package is used to return a EventEmitter mixed with a Promise to allow multiple final states as well as chaining. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-core-promievent +``` + +### In the Browser + +Build running the following in the [web3.js][repo] repository: + +```bash +npm run-script build-all +``` + +Then include `dist/web3-core-promievent.js` in your html file. +This will expose the `Web3PromiEvent` object on the window object. + + +## Usage + +```js +// in node.js +var Web3PromiEvent = require('web3-core-promievent'); + +var myFunc = function(){ + var promiEvent = Web3PromiEvent(); + + setTimeout(function() { + promiEvent.eventEmitter.emit('done', 'Hello!'); + promiEvent.resolve('Hello!'); + }, 10); + + return promiEvent.eventEmitter; +}; + + +// and run it +myFunc() +.then(console.log); +.on('done', console.log); +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-core-requestmanager/README.md b/packages/web3-core-requestmanager/README.md new file mode 100644 index 00000000..7e160bec --- /dev/null +++ b/packages/web3-core-requestmanager/README.md @@ -0,0 +1,42 @@ +# web3-core-requestmanager + +This is a sub package of [web3.js][repo] + +The requestmanager package is used by most [web3.js][repo] packages. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-core-requestmanager +``` + +### In the Browser + +Build running the following in the [web3.js][repo] repository: + +```bash +npm run-script build-all +``` + +Then include `dist/web3-core-requestmanager.js` in your html file. +This will expose the `Web3RequestManager` object on the window object. + + +## Usage + +```js +// in node.js +var Web3WsProvider = require('web3-providers-ws'); +var Web3RequestManager = require('web3-core-requestmanager'); + +var requestManager = new Web3RequestManager(new Web3WsProvider('ws://localhost:8546')); +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-core-subscriptions/README.md b/packages/web3-core-subscriptions/README.md new file mode 100644 index 00000000..5cdbb114 --- /dev/null +++ b/packages/web3-core-subscriptions/README.md @@ -0,0 +1,57 @@ +# web3-core-subscriptions + +This is a sub package of [web3.js][repo] + +The subscriptions package used within some [web3.js][repo] packages. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-core-subscriptions +``` + +### In the Browser + +Build running the following in the [web3.js][repo] repository: + +```bash +npm run-script build-all +``` + +Then include `dist/web3-core-subscriptions.js` in your html file. +This will expose the `Web3Subscriptions` object on the window object. + + +## Usage + +```js +// in node.js +var Web3Subscriptions = require('web3-core-subscriptions'); + +var sub = new Web3Subscriptions({ + name: 'subscribe', + type: 'eth', + subscriptions: { + 'newBlockHeaders': { + subscriptionName: 'newHeads', + params: 0, + outputFormatter: formatters.outputBlockFormatter + }, + 'pendingTransactions': { + params: 0 + } + } +}); +sub.attachToObject(myCoolLib); + +myCoolLib.subscribe('newBlockHeaders', function(){ ... }); +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-core-subscriptions/src/index.js b/packages/web3-core-subscriptions/src/index.js index dea6cbcf..abb5039a 100644 --- a/packages/web3-core-subscriptions/src/index.js +++ b/packages/web3-core-subscriptions/src/index.js @@ -40,7 +40,7 @@ Subscriptions.prototype.setRequestManager = function (rm) { Subscriptions.prototype.attachToObject = function (obj) { var func = this.buildCall(); - func.call = this.call; // TODO!!! that's ugly. filter.js uses it + func.call = this.call; var name = this.name.split('.'); if (name.length > 1) { obj[name[0]] = obj[name[0]] || {}; diff --git a/packages/web3-core/README.md b/packages/web3-core/README.md new file mode 100644 index 00000000..e5599128 --- /dev/null +++ b/packages/web3-core/README.md @@ -0,0 +1,43 @@ +# web3-core + +This is a sub package of [web3.js][repo] + +The core package contains core functions for [web3.js][repo] packages. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-core +``` + + +## Usage + +```js +// in node.js +var core = require('web3-core'); + +var CoolLib = function CoolLib() { + + // sets _requestmanager and adds basic functions + core.packageInit(this, arguments); + +}; + + +CoolLib.providers; +CoolLib.givenProvider; +CoolLib.setProvider(); +CoolLib.BatchRequest(); +CoolLib.extend(); +... +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-eth-abi/README.md b/packages/web3-eth-abi/README.md new file mode 100644 index 00000000..7b1c4d65 --- /dev/null +++ b/packages/web3-eth-abi/README.md @@ -0,0 +1,42 @@ +# web3-eth-abi + +This is a sub package of [web3.js][repo] + +This is the abi package to be used in the `web-eth` package. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-eth-abi +``` + +### In the Browser + +Build running the following in the [web3.js][repo] repository: + +```bash +npm run-script build-all +``` + +Then include `dist/web3-eth-abi.js` in your html file. +This will expose the `Web3EthAbi` object on the window object. + + +## Usage + +```js +// in node.js +var Web3EthAbi = require('web3-eth-abi'); + +Web3EthAbi.encodeFunctionSignature('myMethod(uint256,string)'); +> '0x24ee0097' +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-eth-accounts/README.md b/packages/web3-eth-accounts/README.md new file mode 100644 index 00000000..b46f7943 --- /dev/null +++ b/packages/web3-eth-accounts/README.md @@ -0,0 +1,52 @@ +# web3-eth-accounts + +This is a sub package of [web3.js][repo] + +This is the accounts package to be used in the `web-eth` package. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-eth-accounts +``` + +### In the Browser + +Build running the following in the [web3.js][repo] repository: + +```bash +npm run-script build-all +``` + +Then include `dist/web3-eth-accounts.js` in your html file. +This will expose the `Web3EthAccounts` object on the window object. + + +## Usage + +```js +// in node.js +var Eth = require('web3-eth'); +var Web3EthAccounts = require('web3-eth-accounts'); + +var eth = new Eth('ws://localhost:8546'); + +var account = new Web3EthAccounts(eth); +account.create(); +> { + address: '0x2c7536E3605D9C16a7a3D7b1898e529396a65c23', + privateKey: '0x4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318', + signTransaction: function(tx){...}, + sign: function(data){...}, + encrypt: function(password){...} +} +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-eth-contract/README.md b/packages/web3-eth-contract/README.md new file mode 100644 index 00000000..5cc05d38 --- /dev/null +++ b/packages/web3-eth-contract/README.md @@ -0,0 +1,51 @@ +# web3-eth-contract + +This is a sub package of [web3.js][repo] + +This is the contract package to be used in the `web-eth` package. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-eth-contract +``` + +### In the Browser + +Build running the following in the [web3.js][repo] repository: + +```bash +npm run-script build-all +``` + +Then include `dist/web3-eth-contract.js` in your html file. +This will expose the `Web3EthContract` object on the window object. + + +## Usage + +```js +// in node.js +var Eth = require('web3-eth'); +var Web3EthContract = require('web3-eth-contract'); + +var eth = new Eth('ws://localhost:8546'); + +// add the eth package +Web3EthContract.prototype._eth = this; + +var contract = new Web3EthContract(jsonInterface, address); +contract.methods.somFunc().send({from: ....}) +.on('receipt', funciton(){ + ... +}); +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-eth-iban/README.md b/packages/web3-eth-iban/README.md new file mode 100644 index 00000000..3fcc1464 --- /dev/null +++ b/packages/web3-eth-iban/README.md @@ -0,0 +1,43 @@ +# web3-eth-iban + +This is a sub package of [web3.js][repo] + +This is the IBAN package to be used in the `web-eth` package. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-eth-iban +``` + +### In the Browser + +Build running the following in the [web3.js][repo] repository: + +```bash +npm run-script build-all +``` + +Then include `dist/web3-eth-iban.js` in your html file. +This will expose the `Web3EthIban` object on the window object. + + +## Usage + +```js +// in node.js +var Web3EthIban = require('web3-eth-iban'); + +var iban = new Web3EthIban('XE75JRZCTTLBSYEQBGAS7GID8DKR7QY0QA3'); +iban.toAddress() +> '0xa94f5374Fce5edBC8E2a8697C15331677e6EbF0B' +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-eth-personal/README.md b/packages/web3-eth-personal/README.md new file mode 100644 index 00000000..db6408f7 --- /dev/null +++ b/packages/web3-eth-personal/README.md @@ -0,0 +1,41 @@ +# web3-eth-personal + +This is a sub package of [web3.js][repo] + +This is the personal package to be used in the `web-eth` package. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-eth-personal +``` + +### In the Browser + +Build running the following in the [web3.js][repo] repository: + +```bash +npm run-script build-all +``` + +Then include `dist/web3-eth-personal.js` in your html file. +This will expose the `Web3EthPersonal` object on the window object. + + +## Usage + +```js +// in node.js +var Web3EthPersonal = require('web3-eth-personal'); + +var personal = new Web3EthPersonal('ws://localhost:8546'); +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-eth/README.md b/packages/web3-eth/README.md new file mode 100644 index 00000000..ac3ec3ff --- /dev/null +++ b/packages/web3-eth/README.md @@ -0,0 +1,41 @@ +# web3-eth + +This is a sub package of [web3.js][repo] + +This is the Eth package to be used [web3.js][repo]. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-eth +``` + +### In the Browser + +Build running the following in the [web3.js][repo] repository: + +```bash +npm run-script build-all +``` + +Then include `dist/web3-eth.js` in your html file. +This will expose the `Web3Eth` object on the window object. + + +## Usage + +```js +// in node.js +var Web3Eth = require('web3-eth'); + +var eth = new Web3Eth('ws://localhost:8546'); +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-net/README.md b/packages/web3-net/README.md new file mode 100644 index 00000000..a8160c25 --- /dev/null +++ b/packages/web3-net/README.md @@ -0,0 +1,41 @@ +# web3-net + +This is a sub package of [web3.js][repo] + +This is the net package to be used in other web3.js packages. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-net +``` + +### In the Browser + +Build running the following in the [web3.js][repo] repository: + +```bash +npm run-script build-all +``` + +Then include `dist/web3-net.js` in your html file. +This will expose the `Web3Net` object on the window object. + + +## Usage + +```js +// in node.js +var Web3Net = require('web3-net'); + +var net = new Web3Net('ws://localhost:8546'); +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-providers-http/README.md b/packages/web3-providers-http/README.md new file mode 100644 index 00000000..528e883f --- /dev/null +++ b/packages/web3-providers-http/README.md @@ -0,0 +1,41 @@ +# web3-providers-http + +*This is a sub package of [web3.js][repo]* + +This is a HTTP provider for [web3.js][repo]. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-providers-http +``` + +### In the Browser + +Build running the following in the [web3.js][repo] repository: + +```bash +npm run-script build-all +``` + +Then include `dist/web3-providers-http.js` in your html file. +This will expose the `Web3HttpProvider` object on the window object. + + +## Usage + +```js +// in node.js +var Web3HttpProvider = require('web3-providers-http'); + +var http = new Web3HttpProvider('http://localhost:8545'); +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-providers-ipc/README.md b/packages/web3-providers-ipc/README.md new file mode 100644 index 00000000..03a329ea --- /dev/null +++ b/packages/web3-providers-ipc/README.md @@ -0,0 +1,42 @@ +# web3-providers-ipc + +This is a sub package of [web3.js][repo] + +This is a IPC provider for [web3.js][repo]. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-providers-ipc +``` + +### In the Browser + +Build running the following in the [web3.js][repo] repository: + +```bash +npm run-script build-all +``` + +Then include `dist/web3-providers-ipc.js` in your html file. +This will expose the `Web3IpcProvider` object on the window object. + + +## Usage + +```js +// in node.js +var Web3IpcProvider = require('web3-providers-ipc'); +var net = require(net); + +var ipc = new Web3IpcProvider('/Users/me/Library/Ethereum/geth.ipc', net); +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-providers-ws/README.md b/packages/web3-providers-ws/README.md new file mode 100644 index 00000000..4e149aa7 --- /dev/null +++ b/packages/web3-providers-ws/README.md @@ -0,0 +1,41 @@ +# web3-providers-ws + +This is a sub package of [web3.js][repo] + +This is a websocket provider for [web3.js][repo]. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-providers-ws +``` + +### In the Browser + +Build running the following in the [web3.js][repo] repository: + +```bash +npm run-script build-all +``` + +Then include `dist/web3-providers-ws.js` in your html file. +This will expose the `Web3WsProvider` object on the window object. + + +## Usage + +```js +// in node.js +var Web3WsProvider = require('web3-providers-ws'); + +var ws = new Web3WsProvider('ws://localhost:8546'); +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-shh/README.md b/packages/web3-shh/README.md new file mode 100644 index 00000000..7b2bf688 --- /dev/null +++ b/packages/web3-shh/README.md @@ -0,0 +1,41 @@ +# web3-shh + +This is a sub package of [web3.js][repo] + +This is the whisper v5 package. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-shh +``` + +### In the Browser + +Build running the following in the [web3.js][repo] repository: + +```bash +npm run-script build-all +``` + +Then include `dist/web3-shh.js` in your html file. +This will expose the `Web3Personal` object on the window object. + + +## Usage + +```js +// in node.js +var Web3Personal = require('web3-shh'); + +var shh = new Web3Personal('ws://localhost:8546'); +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/packages/web3-utils/README.md b/packages/web3-utils/README.md new file mode 100644 index 00000000..11c1b810 --- /dev/null +++ b/packages/web3-utils/README.md @@ -0,0 +1,46 @@ +# web3-utils + +This is a sub package of [web3.js][repo] + +This contains useful utility functions for Dapp developers. +Please read the [documentation][docs] for more. + +## Installation + +### Node.js + +```bash +npm install web3-utils +``` + +### In the Browser + +Build running the following in the [web3.js][repo] repository: + +```bash +npm run-script build-all +``` + +Then include `dist/web3-utils.js` in your html file. +This will expose the `Web3Utils` object on the window object. + + +## Usage + +```js +// in node.js +var Web3Utils = require('web3-utils'); +console.log(Web3Utils); +{ + sha3: function(){}, + soliditySha3: function(){}, + isAddress: function(){}, + ... +} +``` + + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js + + diff --git a/test/node/app.js b/test/node/app.js deleted file mode 100644 index 0dd97235..00000000 --- a/test/node/app.js +++ /dev/null @@ -1,5 +0,0 @@ -var web3 = require('web3'); - -console.log(web3.version); - - diff --git a/test/node/package.json b/test/node/package.json deleted file mode 100644 index 310ad2e0..00000000 --- a/test/node/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "node", - "version": "1.0.0", - "description": "", - "main": "app.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "dependencies": { - "web3": "ethereum/web3.js#master" - } -} diff --git a/web3js.ai b/web3js.ai new file mode 100644 index 00000000..669ef50e --- /dev/null +++ b/web3js.ai @@ -0,0 +1,1516 @@ +%PDF-1.5 % +1 0 obj <>/OCGs[5 0 R 6 0 R 29 0 R 30 0 R]>>/Pages 3 0 R/Type/Catalog>> endobj 2 0 obj <>stream + + + + + application/pdf + + + Print + + + + + 2017-01-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FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYq7FXYqx/WPJ1he8pba lrcHeqj4GPuvb5jDasK1LSNQ06ThdRFQfsyDdG+TYoQeFXYq7FUVpNq11qdtbqK85F5f6oNWP3DA r1fAl2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxV2KuxVZNDDPG 0UyLJG2zIwBB+g4qxXVvIsbsZdNkEZO5gkJK/wCxbcj6cNopjN1oWsWrUmtJAP5lHNf+CWoxVRi0 3UJXCR20rMegCN/TFWbeVfLL6fW7u6fW3HFYxuEU9d/E4pf/2Q== + + + + + + uuid:394c157d-8cf0-f94e-8261-98ccb840e1bc + xmp.did:106820F817276811822ACF3CAA06C913 + uuid:5D20892493BFDB11914A8590D31508C8 + proof:pdf + + uuid:1898a391-1dba-4249-9e7f-8804d46504b0 + xmp.did:FE7F11740720681183D1839CF7E6F44E + uuid:5D20892493BFDB11914A8590D31508C8 + proof:pdf + + + + + saved + xmp.iid:FE7F11740720681183D1839CF7E6F44E + 2017-01-06T15:27:37Z + Adobe Illustrator CS6 (Macintosh) + / + + + saved + xmp.iid:106820F817276811822ACF3CAA06C913 + 2017-01-27T14:51:33Z + Adobe Illustrator CS6 (Macintosh) + / + + + + + + Document + Print + + + False + False + 1 + + 3840.000000 + 2160.000000 + Pixels + + + + Cyan + Magenta + Yellow + Black + + + + + + Default Swatch Group + 0 + + + + White + RGB + PROCESS + 255 + 255 + 255 + + + Black + RGB + PROCESS + 35 + 31 + 32 + + + CMYK Red + RGB + PROCESS + 237 + 28 + 36 + + + CMYK Yellow + RGB + PROCESS + 255 + 242 + 0 + + + CMYK Green + RGB + PROCESS + 0 + 166 + 81 + + + CMYK Cyan + RGB + PROCESS + 0 + 174 + 239 + + + CMYK Blue + RGB + PROCESS + 46 + 49 + 146 + + + CMYK Magenta + RGB + PROCESS + 236 + 0 + 140 + + + C=15 M=100 Y=90 K=10 + RGB + PROCESS + 190 + 30 + 45 + + + C=0 M=90 Y=85 K=0 + RGB + PROCESS + 239 + 65 + 54 + + + C=0 M=80 Y=95 K=0 + RGB + PROCESS + 241 + 90 + 41 + + + C=0 M=50 Y=100 K=0 + RGB + PROCESS + 247 + 148 + 30 + + + C=0 M=35 Y=85 K=0 + RGB + PROCESS + 251 + 176 + 64 + + + C=5 M=0 Y=90 K=0 + RGB + PROCESS + 249 + 237 + 50 + + + C=20 M=0 Y=100 K=0 + RGB + PROCESS + 215 + 223 + 35 + + + C=50 M=0 Y=100 K=0 + RGB + PROCESS + 141 + 198 + 63 + + + C=75 M=0 Y=100 K=0 + RGB + PROCESS + 57 + 181 + 74 + + + C=85 M=10 Y=100 K=10 + RGB + PROCESS + 0 + 148 + 68 + + + C=90 M=30 Y=95 K=30 + RGB + PROCESS + 0 + 104 + 56 + + + C=75 M=0 Y=75 K=0 + RGB + PROCESS + 43 + 182 + 115 + + + C=80 M=10 Y=45 K=0 + RGB + PROCESS + 0 + 167 + 157 + + + C=70 M=15 Y=0 K=0 + RGB + PROCESS + 39 + 170 + 225 + + + C=85 M=50 Y=0 K=0 + RGB + PROCESS + 28 + 117 + 188 + + + C=100 M=95 Y=5 K=0 + RGB + PROCESS + 43 + 57 + 144 + + + C=100 M=100 Y=25 K=25 + RGB + PROCESS + 38 + 34 + 98 + + + C=75 M=100 Y=0 K=0 + RGB + PROCESS + 102 + 45 + 145 + + + C=50 M=100 Y=0 K=0 + RGB + PROCESS + 146 + 39 + 143 + + + C=35 M=100 Y=35 K=10 + RGB + PROCESS + 158 + 31 + 99 + + + C=10 M=100 Y=50 K=0 + RGB + PROCESS + 218 + 28 + 92 + + + C=0 M=95 Y=20 K=0 + RGB + PROCESS + 238 + 42 + 123 + + + C=25 M=25 Y=40 K=0 + RGB + PROCESS + 194 + 181 + 155 + + + C=40 M=45 Y=50 K=5 + RGB + PROCESS + 155 + 133 + 121 + + + C=50 M=50 Y=60 K=25 + RGB + PROCESS + 114 + 102 + 88 + + + C=55 M=60 Y=65 K=40 + RGB + PROCESS + 89 + 74 + 66 + + + C=25 M=40 Y=65 K=0 + RGB + PROCESS + 196 + 154 + 108 + + + C=30 M=50 Y=75 K=10 + RGB + PROCESS + 169 + 124 + 80 + + + C=35 M=60 Y=80 K=25 + RGB + PROCESS + 139 + 94 + 60 + + + C=40 M=65 Y=90 K=35 + RGB + PROCESS + 117 + 76 + 41 + + + C=40 M=70 Y=100 K=50 + RGB + PROCESS + 96 + 57 + 19 + + + C=50 M=70 Y=80 K=70 + RGB + PROCESS + 60 + 36 + 21 + + + + + + Grays + 1 + + + + C=0 M=0 Y=0 K=100 + RGB + PROCESS + 35 + 31 + 32 + + + C=0 M=0 Y=0 K=90 + RGB + PROCESS + 65 + 64 + 66 + + + C=0 M=0 Y=0 K=80 + RGB + PROCESS + 88 + 89 + 91 + + + C=0 M=0 Y=0 K=70 + RGB + PROCESS + 109 + 110 + 113 + + + C=0 M=0 Y=0 K=60 + RGB + PROCESS + 128 + 130 + 133 + + + C=0 M=0 Y=0 K=50 + RGB + PROCESS + 147 + 149 + 152 + + + C=0 M=0 Y=0 K=40 + RGB + PROCESS + 167 + 169 + 172 + + + C=0 M=0 Y=0 K=30 + RGB + PROCESS + 188 + 190 + 192 + + + C=0 M=0 Y=0 K=20 + RGB + PROCESS + 209 + 211 + 212 + + + C=0 M=0 Y=0 K=10 + RGB + PROCESS + 230 + 231 + 232 + + + C=0 M=0 Y=0 K=5 + RGB + PROCESS + 241 + 242 + 242 + + + + + + Brights + 1 + + + + C=0 M=100 Y=100 K=0 + RGB + PROCESS + 237 + 28 + 36 + + + C=0 M=75 Y=100 K=0 + RGB + PROCESS + 242 + 101 + 34 + + + C=0 M=10 Y=95 K=0 + RGB + PROCESS + 255 + 222 + 23 + + + C=85 M=10 Y=100 K=0 + RGB + PROCESS + 0 + 161 + 75 + + + C=100 M=90 Y=0 K=0 + RGB + PROCESS + 33 + 64 + 154 + + + C=60 M=90 Y=0 K=0 + RGB + PROCESS + 127 + 63 + 152 + + + + + + + + + Adobe PDF library 10.01 + + + + + + + + + + + + + + + + + + + + + + + + + endstream endobj 3 0 obj <> endobj 8 0 obj <>/Resources<>/ExtGState<>/Properties<>>>/Thumb 36 0 R/TrimBox[0.0 0.0 3840.0 2160.0]/Type/Page>> endobj 32 0 obj <>stream +HlVI9 +TK"cN(rh4P@A*n(EJ\A*z/ϑ>Lۯ-RN%7޾[+ELD}~Q_,RC)i%mR=V{uS¡,YHzeۓ Q!5nJ9P5"v[ uWvU7nێ,FP^$$5DDpɁd4ڋۙ90q|dDZ a1439<0}f0{ꖐhE#R 5Y9$ +zX]@~3ϋ̬3L>س|cΏs%sZNVuAcp~Rc阏b^Aй><\I/wP;bJ@|n[fDڍ^ -[D@Dňށ(TIfйkUE'Gx"/Þ!QLwBq:p.RZ[Yh=j{9 ACIY8w;vuu-ӹ2/;@r fdk6z1FMǯk׊x]*C1ylDTAœu&4`pv)5bǸ+ +VEC04,Tp9p)1Rِ9ֿmXѭxhPxʐke&ډAeL9Jl1|)Y|zf*ѷ.G%:o]~Ljh(eMBC#\fch\ij\mr#Jܢo;oَ?I >stream +8;Z]!gMI$9&4O4Loo+g]Y:Y;L9GQ$:@3.,T.n*;fRief@%Sif_3dV)Ok+/'6SR3bl +9q7Fhkme7N\oK:^?"i4k6BkiO2r#nub+]#^#o2T&%;/3"U%t=#DK/;5(hd<.rJl^nXukH^04p_5&"H=J0K1J +F,$ endstream endobj 37 0 obj [/Indexed/DeviceRGB 255 38 0 R] endobj 38 0 obj <>stream +8;X]O>EqN@%''O_@%e@?J;%+8(9e>X=MR6S?i^YgA3=].HDXF.R$lIL@"pJ+EP(%0 +b]6ajmNZn*!='OQZeQ^Y*,=]?C.B+\Ulg9dhD*"iC[;*=3`oP1[!S^)?1)IZ4dup` +E1r!/,*0[*9.aFIR2&b-C#soRZ7Dl%MLY\.?d>Mn +6%Q2oYfNRF$$+ON<+]RUJmC0InDZ4OTs0S!saG>GGKUlQ*Q?45:CI&4J'_2j$XKrcYp0n+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=ȼ:ɹ8ʷ6˶5̵5͵6ζ7ϸ9к<Ѿ?DINU\dlvۀ܊ݖޢ)߯6DScs 2F[p(@Xr4Pm8Ww)Km endstream endobj 33 0 obj <> endobj 44 0 obj <> endobj 45 0 obj <>stream +%!PS-Adobe-3.0 %%Creator: Adobe Illustrator(R) 16.0 %%AI8_CreatorVersion: 16.0.0 %%For: (Ian Meikle) () %%Title: (Web3_70.ai) %%CreationDate: 27/01/2017 15:51 %%Canvassize: 16383 %%BoundingBox: 1170 -1782 2670 -378 %%HiResBoundingBox: 1170 -1781.6396 2670 -378.3604 %%DocumentProcessColors: Cyan Magenta Yellow Black %AI5_FileFormat 12.0 %AI12_BuildNumber: 682 %AI3_ColorUsage: Color %AI7_ImageSettings: 0 %%RGBProcessColor: 0 0 0 ([Registration]) %AI3_Cropmarks: 0 -2160 3840 0 %AI3_TemplateBox: 1920.5 -1080.5 1920.5 -1080.5 %AI3_TileBox: 1517 -1359.5 2300 -800.5 %AI3_DocumentPreview: None %AI5_ArtSize: 14400 14400 %AI5_RulerUnits: 6 %AI9_ColorModel: 1 %AI5_ArtFlags: 0 0 0 1 0 0 1 0 0 %AI5_TargetResolution: 800 %AI5_NumLayers: 2 %AI9_OpenToView: -1717.0015 636.9985 0.3333 2078 1150 18 0 0 32 191 0 0 0 1 1 0 1 1 0 1 %AI5_OpenViewLayers: 77 %%PageOrigin:1614 -1476 %AI7_GridSettings: 72 8 72 8 1 0 0.8 0.8 0.8 0.9 0.9 0.9 %AI9_Flatten: 1 %AI12_CMSettings: 00.MS %%EndComments endstream endobj 46 0 obj <>stream +%%BoundingBox: 1170 -1782 2670 -378 %%HiResBoundingBox: 1170 -1781.6396 2670 -378.3604 %AI7_Thumbnail: 128 120 8 %%BeginData: 14636 Hex Bytes %0000330000660000990000CC0033000033330033660033990033CC0033FF %0066000066330066660066990066CC0066FF009900009933009966009999 %0099CC0099FF00CC0000CC3300CC6600CC9900CCCC00CCFF00FF3300FF66 %00FF9900FFCC3300003300333300663300993300CC3300FF333300333333 %3333663333993333CC3333FF3366003366333366663366993366CC3366FF %3399003399333399663399993399CC3399FF33CC0033CC3333CC6633CC99 %33CCCC33CCFF33FF0033FF3333FF6633FF9933FFCC33FFFF660000660033 %6600666600996600CC6600FF6633006633336633666633996633CC6633FF %6666006666336666666666996666CC6666FF669900669933669966669999 %6699CC6699FF66CC0066CC3366CC6666CC9966CCCC66CCFF66FF0066FF33 %66FF6666FF9966FFCC66FFFF9900009900339900669900999900CC9900FF %9933009933339933669933999933CC9933FF996600996633996666996699 %9966CC9966FF9999009999339999669999999999CC9999FF99CC0099CC33 %99CC6699CC9999CCCC99CCFF99FF0099FF3399FF6699FF9999FFCC99FFFF %CC0000CC0033CC0066CC0099CC00CCCC00FFCC3300CC3333CC3366CC3399 %CC33CCCC33FFCC6600CC6633CC6666CC6699CC66CCCC66FFCC9900CC9933 %CC9966CC9999CC99CCCC99FFCCCC00CCCC33CCCC66CCCC99CCCCCCCCCCFF %CCFF00CCFF33CCFF66CCFF99CCFFCCCCFFFFFF0033FF0066FF0099FF00CC %FF3300FF3333FF3366FF3399FF33CCFF33FFFF6600FF6633FF6666FF6699 %FF66CCFF66FFFF9900FF9933FF9966FF9999FF99CCFF99FFFFCC00FFCC33 %FFCC66FFCC99FFCCCCFFCCFFFFFF33FFFF66FFFF99FFFFCC110000001100 %000011111111220000002200000022222222440000004400000044444444 %550000005500000055555555770000007700000077777777880000008800 %000088888888AA000000AA000000AAAAAAAABB000000BB000000BBBBBBBB %DD000000DD000000DDDDDDDDEE000000EE000000EEEEEEEE0000000000FF %00FF0000FFFFFF0000FF00FFFFFF00FFFFFF %524C45FFFFFFA87D7DFD7CFFA8FD0452A8FD79FFA87D527D527D527DA8FD %77FF7D525352525253525259FD76FF527D527D527D527D527D52A8AFFD72 %FF7D52527D5252527D52525259527DA8FD71FF7D527D527D527D527D527D %527DA8FD72FF52535252525352525253527DA8FD39FFCACAA1C3A0C2A0C2 %A0C3A1CACAFD2DFF7D527D527D527D527D527DA8FD37FFC3C3BBBBBABBB4 %BBB4BBBABB92BBBBBBC2C9CAFD2AFF527D5252527DFD04527DFD35FFA1C2 %98BA92BB92BB92BB98BB92BB98BB92BB92BA92BB99CAFD28FF7D527D527D %527D527D52FD33FFCAC9BBBA92BBBBBB98BBBBBB98BBBBBB98BBBBBB98BB %BBBB98BBB4C2C9FD26FF5252525352525253527DFD0CFFA87D7DFD23FFA0 %BB92BB92BB92BB92BB92BB92BB92BB92BB92BB92BB92BB92BB92BB92BA99 %CAFD24FF7D527D527D527D52537DFD0BFFA87D525352A8FD1FFFCABBBBBA %BBBBBBBABBBBBBBABBBBBBBABBBBBBBABBBBBBBABBBBBBBABBBBBBBABBBA %C9FD23FF5252527D5252527D52A8FD0AFFA852527D5252527DA8FD1BFFCA %C292BB98BB92BB98BB92BB98BB92BB98BB92BB92BB92BB98BB92BB98BB92 %BB98BB92BB92C2CAFD21FF7D527D527D527D5253A8FD0AFF7D527D527D52 %7D52537DFD19FFC2BBB4BB98BBBBBB98BBBBBB98BBBBBB98BBB4BB92BBB4 %BA92BBBBBB98BBBBBB98BBBBBB98BBB4BBCAFD20FF525352525253525252 %A8FD09FFA8525352525253FD05527DA8FD14FFC998BA92BB92BB92BB92BB %92BB92BB92BB92BA99C3C3CAA7C9A0BB92BB92BB92BB92BB92BB92BB92BB %92BBA8FD1FFF7D527D527D527D5259A8FD09FF7D7D527D527D527D527D52 %7D527DFD12FFC9C2B4BBBABBBBBBBABBBBBBBABBBBBBBABBB4C2C9FD08FF %C9BBBBBABBBBBBBABBBBBBBABBBBBBB4C2FD1FFF527D5252527D525252A8 %FD09FF7D527D5252527D5252527D527DA8FD10FFCF9ABA92BB98BB92BB98 %BB92BB98BB92BB92BA98C9FD0BFFCF99BB92BB98BB92BB98BB92BB98BB92 %C3CAFD1DFF7D527D527D527D52527DFD09FF527D527D527D527D527D527D %FD11FFC398BBBABB98BBBBBB98BBBBBB98BBBBBB92BBC2FD0EFFC9B4BB98 %BBBBBB98BBBBBB98BBBBBB92BBBBC2C3CFFD19FF525252535252525352A8 %FD08FFA85952525253525252535252A8FD0FFFA1BB92BB92BB92BB92BB92 %BB92BB92BB92BB92C2A8FD0FFFA1BA92BB92BB92BB92BB92BB92BB92BB92 %BB92BA92C2C3FD17FF7D527D527D527D52527EFD09FF527D527D527D527D %52537DFD0EFFCABBBBBABBBABBBBBBBABBBBBBBABBBBBBBABBBBCAFD10FF %CFC2BABBBABBBBBBBABBBBBBBABBBBBBBABBBBBBBABBBABBBBC9FD15FF52 %52527D5252527D52A8FD08FFA87D5252527D5252525952FD0DFFA8C2B4BA %92BB98BB92BB98BB92BB98BB92BB92BBA0FD11FFCABB92BB98BB92BB98BB %92BB98BB92BB98BB92BB98BB92BB98BB92BBC3FD13FF7D527D527D527D52 %53A8FD09FF527D527D527D527D527DFD0CFFA87D75BBBABB98BBBBBB98BB %BBBB98BBBBBB92C3CFFD11FFC2BBBABB98BBBBBB98BBBBBB98BBBBBB98BB %BBBB98BBBBBB98BBBBBB92BBBBCAFD11FF525352525253525252A8FD08FF %A85252535252525352527DFD0BFF7D525253527698BA92BB92BB92BB92BB %92BA99CAFD11FFC999BA92BB92BB92BB92BB92BB92BB92BB92BB92BB92BB %92BB92BB92BB92BB92BB92C2CAFD0FFF7D527D527D527D5259A8FD09FF52 %7D527D527D527D52A8FD0AFFA87D527D527D537D99BBBABBBABBBBBB92C1 %C9FD11FFCAC2B4BBBABBBBBBBABBBBBBBABBBBBBBABBBBBBBABBBBBBBABB %BBBBBABBBBBBBABBBBBB92C2CAFD0EFF527D5252527D525252A8FD08FFA8 %53527D5252527D52527DFD0AFF7D527D5252527D52535299B4BB92BA98C3 %CAFD11FFC2BA92BB98BB92BB98BB92BB98BB92BB92BA92BB92BB92BA92BB %92BB98BB92BB98BB92BB98BB92BBCAFD0DFF7D527D527D527D52527DFD09 %FF527D527D527D527D52A8FD09FFA8527D527D527D527D5259527C99BBC2 %FD12FFC998BBBABB98BBBBBB98BBBBBB98BBBBBB92BBBBC9C9CFCACAC2C1 %B4BB98BBBBBB98BBBBBB98BBBBBB92BBCAFD0CFF525252535252525352A8 %FD08FFA85952525253FD04527DFD09FF59FD0452535252525352522E7DA8 %FD11FFA1BB92BB92BB92BB92BB92BB92BB92BB92BB92C2A7FD07FFCAC998 %BA92BB92BB92BB92BB92BB92BB92C1FD0CFF7D527D527D527D52527EFD09 %FF527D527D527D527D52A8FD09FF7D527D527D527D527D527D527DFD11FF %CFBBBBBABBBABBBBBBBABBBBBBBABBBBBBBABBBBCAFD0BFFCFFD04BBBABB %BBBBBABBBBBBBABBB4C9FD0BFF5252527D5252527D52A8FD08FFA87D5252 %527DFD04527DFD09FF52595252527D5252527D527DFD10FFCAC292BA92BB %98BB92BB98BB92BB98BB92BB92BBA0FD0EFFC992BB98BB92BB98BB92BB98 %BB92BB99FD0BFF7D527D527D527D5253A8FD09FF527D527D527D527D52A8 %FD08FFA87D527D527D527D527D527DFD10FFC3BB92BBBBBB98BBBBBB98BB %BBBB98BBBBBB92C2CAFD0FFFC3BB98BBBBBB98BBBBBB98BBBBBB92C2FD0B %FF525352525253525252A8FD08FFA85252535252525352527DFD09FF5252 %52535252525352527DFD0EFFCA99BA92BB92BB92BB92BB92BB92BB92BB92 %BA99CAFD10FFA8BB92BB92BB92BB92BB92BB92BB92BA99FD0BFF7D527D52 %7D527D5259A8FD09FF527D527D527D527D52A8FD09FF7D527D527D527D52 %7D52FD0DFFCFC292BBBBBBBABBBBBBBABBBBBBBABBBBBB92BBC9FD11FFCA %C1BABBBABBBBBBBABBBBBBBABBBBBB92C9FD0BFF527D5252527D525252A8 %FD08FFA853527D5252527D52527DFD09FF5252527D5252527D527DFD0EFF %C2BB92BB98BB92BB98BB92BB98BB92BA92C3CAFD11FFC2BB92BB98BB92BB %98BB92BB98BB92BB92BBCAFD0BFF7D527D527D527D52527DFD09FF527D52 %7D527D527D52A8FD08FFA87D527D527D527D52537EFD10FFC398BBBABB98 %BBBBBB98BBBABBBCFD12FFC998BBBABB98BBBBBB98BBBBBB98BBBBBB92BB %CAFD0CFF525252535252525352A8FD08FFA85952525253FD04527DFD09FF %FD055253525252A8FD11FFCA99BA92BB92BB92BA92BBC9FD11FFA1BB92BB %92BB92BB92BB92BB92BB92BB92BB92BBA8FD0DFF7D527D527D527D52527E %FD09FF527D527D527D527D52A8FD08FFA87D527D527D527D5259A8FD13FF %C9C292FD04BBC9FD11FFCFBCBBBABBBABBBBBBBABBBBBBBABBBBBBBABBBB %CAFD0FFF5252527D5252527D52A8FD08FFA87D5252527DFD04527DFD09FF %52595252527D525252A8FD15FFC992BBC2FD11FFCAC392BA92BB98BB92BB %98BB92BB98BB92BB92BBA0FD11FF7D527D527D527D5253A8FD09FF527D52 %7D527D527D52A8FD08FFA87D527D527D527D52527DFD17FFCAFD11FFC3BB %92BBBBBB98BBBBBB98BBBBBB98BBBBBB92C2CAFD12FF7DFD045253525252 %A8FD08FFA85252535252525352527DFD09FF525252535252525352A8FD27 %FFCA99BA92BB92BB92BB92BB92BB92BB92BB92BA99CAFD14FFA8527D527D %527D5259A8FD09FF527D527D527D527D52A8FD09FF7D527D527D527D5252 %7EFD25FFCAC2B4BBBBBBBABBBBBBBABBBBBBBABBBBBBB4BBC3FD16FFA853 %5252527D525252A8FD08FFA853527D5252527D52527DFD09FF5252527D52 %52527D52A8FD24FFA0BB92BB92BB98BB92BB98BB92BB98BB92BB92C2CAFD %18FF527D527D527D52527DFD09FF527D527D527D527D52A8FD08FFA87D52 %7D527D527D5253A8FD22FFCABBBA92BBBBBB98BBBBBB98BBBBBB98BBBABB %BBCFFD1AFF7D525352525253527DA8FD07FFA85952525253FD04527DFD09 %FFFD055253525252A8FD20FFA8BB92BB92BB92BB92BB92BB92BB92BB92BB %92BBC9FD1CFFA87D527D527D527D52FD09FF527D527D527D527D52A8FD08 %FFA87D527D527D527D5259A8FD1FFFA8A8A1C2BABBBABBBBBBBABBBBBBBA %FD04BBC9FD1FFF52535252527D52527DFD07FFA87D5252527DFD04527DFD %09FF52595252527D525252A8FD1EFFA8A87DA87DA199BA92BB98BB92BB98 %BB92BBC2FD21FF7E527D527D527D5252A8FD07FF527D527D527D527D52A8 %FD08FFA87D527D527D527D52527DFD1DFFA8A87DA87EA87EA8A0BBB4BBBB %BB98BBB4C2CAFD22FFA8525253525252535252A8FD05FFA8525253525252 %5352527DFD09FF525252535252525352A8FD08FFA8A8A8FD11FFA8A87DA8 %7DA87DA87DA87DA092BB92BA99C9FD25FF7D7D527D527D527D527DA8FD04 %FFA8527D527D527D527D52A8FD09FF7D527D527D527D52527EFD09FF7EA8 %7EFD11FF7DA87DA884A87DA884A884A799BBC2FD27FFA852595252527DFD %04527DA8A8A85252527D5252527D52527DFD09FF5252527D5252527D52A8 %FD08FFA8A87DA87DA8A8FD0DFF7DA87DA87DA87DA87DA87DA87DA8CAFD29 %FF7E527D527D527D527D5259527D527D527D527D527D527D52A8FD08FFA8 %7D527D527D527D5253A8FD09FF7DA87EA87DA8A8FD0CFFA87DA87EA87DA8 %7EA87DA87DA8FD2BFFA853525352525253525252535252525352525253FD %04527DFD09FFFD055253525252A8FD08FFA8A87DA87DA87DA87DA8A8FD09 %FF7DA87DA87DA87DA87DA87DA8FD2DFFA87D527D527D527D527D527D527D %527D527D527D527D52A8FD08FFA87D527D527D527D5259A8FD09FF7DA884 %A87DA884A87DFD0AFFA87DA884A87DA884A87DA8FD2FFF7DFD04527D5252 %527D5252527D5252527DFD04527DFD09FF52595252527D525252A8FD08FF %A8A87DA87DA87DA87D84A8FD09FF7DA87DA87DA87DA87D84A8FD30FF7D53 %527D527D527D527D527D527D527D527D527D527DFD08FFA87D527D527D52 %7D52527DFD09FF7EA87DA87EA87DA87DFD09FFA8A87DA87DA87EA87DA8A8 %FD32FFFD055253525252535252525352525253525252A8FD08FF52525253 %5252525352A8FD08FFA8A87DA87DA87DA87DA8A8FD09FF7DA87DA87DA87D %A87DA8FD33FF7D52527D527D527D527D527D527D527D527D527D7DFD08FF %7D527D527D527D52527EFD09FF7EA87DA884A87DA87DFD09FFA8A87EA87D %A884A87DA8A8FD34FF7D52527D5252527D5252527D5252527DFD0452A8FD %07FF5252527D5252527D52A8FD08FFA8A87DA87DA87DA87DA8A8FD09FF7D %A87DA87DA87DA87DFD36FFA859527D527D527D527D527D527D527D527D52 %7DA8FD05FFA87D527D527D527D5253A8FD0BFF7DA87DA87EA87DFD0AFFA8 %7DA87EA87DA87EA8A8FD0DFFFD05A8A9A8FD22FFA87DFD05525352525253 %5252525352525259A8FD04FF7D525352525253525252A8FD0CFFA87E7DA8 %7D7EA8FD09FF7DA87DA87DA87DA87DA9FD0CFF7DA87D847DA87D847DA8A8 %FD21FFA85953527D527D527D527D527D527D527D52597DFFFFA8527D527D %527D527D5259A8FD0DFFA8A87DA87DFD0AFFA87DA884A87DA884A8A8FD0B %FF7DA884A87DA884A87DA87DA8A8FD22FFA87DFD0552595252527D525252 %7D5252527D5252527D5252527D525252A8FD10FF7D7DA8FD09FF7DA87DA8 %7DA87DA87DFD0BFF7E847DA87DA87DA87DA87DA87D7E7DFD24FFFD05A87D %527D527D527D527D527D527D527D527D527D527D52527DFD11FFA8FD09FF %A8A87DA87DA87EA87DA8A8FD09FFA8A87EA87DA87EA87DA87EA87DA87EA8 %7DA8A8FD26FF84FD0452535252525352525253525252535252525352A8FD %1CFF7DA87DA87DA87DA87DFD0AFFA87DA87DA87DA87DA87DA87DA87DA87D %A87DA8A8FD26FF7D52527D527D527D527D527D527D527D527D527D5259A8 %FD1BFFA8A87EA87DA884A87DA8A8FD09FFA8A884A87DA884A87DA884A87D %A884A87DA87EA87DFD26FF7D52527D5252527D5252527D5252527D525252 %5952A8FD1CFF7DA87DA87DA87DA87DFD0AFFA87DA87DA87DA87DA87DA87D %A87DA87DA87DA87DA87DA8A8FD24FF7D52527D527D527D527D527D527D52 %7D527D527DFD1DFFA87DA87EA87DA87EA8A8FD09FF7EA87DA87EA87DA87E %A87DA87EA87DA87EA87DA87EA87DA8A8FD24FF7D52525352525253525252 %5352525253525253FD1DFF7DA87DA87DA87DA87DA9FD08FFA8A87DA87DA8 %7DA87DA87DA87DA87DA87DA87DA87DA87DA87DA87DA8A8FD22FF7D7D527D %527D527D527D527D527D527D52A8FD0AFFA8FD12FFA87DA884A87DA884A8 %A8FD09FF7EA87DA884A87DA884A87DA884A87DA884A87DA884A87DA884A8 %7DA8A8FD22FF7D535252527D5252527D5252527D5253A8FD09FFA8847EFD %11FF7DA87DA87DA87DA87DFD09FFA8A87DA87DA87DA87DA87DA87DA87DA8 %7DA87DA87DA87DA87DA87DA87DA87DFD22FFA87D5253527D527D527D527D %5252A8FD0BFF84A87DAFFD0EFFA8A87DA87DA87EA87DA8A8FD09FF7DA87E %A87DA87EA87DA8A8FFA8A87DA87DA87EA87DA87EA87DA87EA87DA87DA8A8 %FD21FFA8525252535252525352527DFD0CFFA87DA87DA8A8FD0DFF7DA87D %A87DA87DA87DFD09FFA8A87DA87DA87DA87D847DFFFFFFA8A87D7E7DA87D %A87DA87DA87DA87DA87DA87DA8FD23FFA87D52595259527D7DFD0DFFA8A8 %7DA87DA8A8FD0BFFA8A87EA87DA884A87DA8A8FD09FF84A884A87DA884A8 %7DFD07FFA8A87DA87DA884A87DA884A87DA884A87DFD26FFA8A87DA8A8FD %0EFFA87DA87DA87D847DA8FD0AFF7DA87DA87DA87DA87DFD0AFFA87DA87D %A87DA87D84A8FD07FFA8A87DA87DA87DA87DA87DA87DA87DA8FD39FFA8A8 %7DA87DA87EA87DFD0AFFA87DA87EA87DA87EA8A8FD09FFA8A87DA87EA87D %A87DFD0BFFA8A87DA87EA87DA87EA87DA87EFD3AFF7DA87DA87DA87D7EA8 %FD09FF7DA87DA87DA87DA87DA9FD0AFF7DA87DA87DA87DA8A8FD0BFFA8A8 %7DA87DA87DA87DA87DA8FD3AFFA87DA87DA884A87DA8FD09FFA87DA884A8 %7DA884A8A8FD0AFFA87DA884A87DA87DA8FD0DFFA87DA87DA884A87DA884 %FD3AFFA8A87DA87DA87DA87DFD09FF7DA87DA87DA87DA87DFD0BFFA8847D %A87DA87DA87DFD0FFF7E847DA87DA87DA8FD3BFF7DA87EA87DA87EA8A8FD %07FFA8A87DA87DA87EA87DA8A8FD0BFF7DA87DA87EA87DA8A8FD0FFFA8A8 %7DA87EA87DFD3BFFA87DA87DA87DA87D7EA8FD07FF7DA87DA87DA87DA87D %FD0CFFA87DA87DA87DA87DA8A8FD10FFA87DA87DA8FD3BFFA8A87EA87DA8 %84A87DA8FD06FFA8A884A87DA884A87DA8A8FD0BFFA8A87DA884A87DA87D %A8A9FD11FFA8A87DFD3CFF7DA87DA87DA87DA87DA8A8FD04FFA87DA87DA8 %7DA87DA87DFD0DFF7E847DA87DA87DA87DA8A8FD11FFA8A8FD3DFF7DA87E %A87DA87EA87DA8A8FFA8FF7DA87DA87EA87DA87EA8A8FD0DFF7DA87DA87E %A87DA87DA8A8FD4FFFA87DA87DA87DA87DA87DA87DA87DA87DA87DA87DA8 %7DA87DA9FD0DFFA87DA87DA87DA87DA87D7E7DA8FD4EFFA87DA87DA884A8 %7DA884A87DA884A87DA884A87DA884A8A8FD0EFFA87DA884A87DA884A87D %A87DA8A8FD4CFFA8A87DA87DA87DA87DA87DA87DA87DA87DA87DA87DA87D %FD0FFFA8A87DA87DA87DA87DA87DA87D7E7DFD4CFFA8A87EA87DA87EA87D %A87EA87DA87EA87DA87EA87DA8A8FD0FFFA8A87DA87EA87DA87EA87DA87E %A87DA8FD4BFF7DA87DA87DA87DA87DA87DA87DA87DA87DA87DA87DFD11FF %A87D7DA87DA87DA87DA87DA87DA87DA8A8FD4AFFA8A87DA884A87DA884A8 %7DA884A87DA884A87DA8FD12FFA8A87EA87DA884A87DA884A87DA87EA8A8 %FD4AFFA87E7DA87DA87DA87DA87DA87DA87DA87D84A8FD13FFA8A87DA87D %A87DA87DA87DA87DA87D7E7DFD4AFFA8A87DA87EA87DA87EA87DA87EA87D %A87DFD15FFA8A87DA87DA87EA87DA87EA87DA87EA8A8FD4AFFA8A87DA87D %A87DA87DA87DA87DA87DA8FD16FFA8A87DA87DA87DA87DA87DA87DA87D7D %7EFD4BFFA87DA87DA884A87DA884A87DA8A8FD18FFA87DA884A87DA884A8 %7DA884A87DA8A8FD4CFF7E847DA87DA87DA87D7EA8FD1AFFA87DA87DA87D %A87DA87DA87DA87DA8FD4DFFA8A87DA87DA87DA8A8FD1DFFA8A87DA87DA8 %7EA87DA87EA87DA8FD4FFFA8FFA8FFA8FD1FFFA8A87DA87DA87DA87DA87D %A87DFD62FFA8FD13FF7DA884A87DA884A87DA8A8FD60FFA8847DA8A8FD11 %FF7DA87DA87DA87DA87DA8FD61FF7DA87DA8A8FD11FF7DA87EA87DA87EA8 %7DFD60FFA8A87DA87DA87DA8FD0FFFA87DA87DA87DA87D7E84FD60FF7EA8 %7DA884A87DA8FD0EFFA8A87EA87DA884A87DA8FD5FFFA8A87DA87DA87DA8 %7DA8A8FD0DFF7DA87DA87DA87DA87DFD60FF7DA87EA87DA87EA87DA87DA9 %FD0BFFA87DA87EA87DA87EA8A8FD5EFFA8A87DA87DA87DA87DA87DA87DA8 %A8FD09FFA87D7DA87DA87DA87DA8FD5FFF7DA884A87DA884A87DA884A87D %A8A8FD09FF7DA884A87DA884A8A8FD5EFFA8A87DA87DA87DA87DA87DA87D %A87DA87DA8A8FD05FFA8847DA87DA87DA87DA8FD5FFF7DA87DA87EA87DA8 %7EA87DA87EA87DA87DA8A8FFFFFFA8A87DA87DA87EA87DA884FD60FF7E7E %7DA87DA87DA87DA87DA87DA87DA87D7E7DA8A8A87DA87DA87DA87DA87DA8 %FD61FFA8A87DA87DA884A87DA884A87DA884A87DA87DA87DA884A87DA884 %A87DA884FD63FFA87D847DA87DA87DA87DA87DA87DA87DA87DA87DA87DA8 %7DA87DA87DA8FD65FFA8A87DA87EA87DA87EA87DA87EA87DA87EA87DA87E %A87DA87EA87DFD66FFA8A87DA87DA87DA87DA87DA87DA87DA87DA87DA87D %A87DA87DA8FD69FFA8A87DA884A87DA884A87DA884A87DA884A87DA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m C+/vId|' Z._{cXNRh@nیdl@en LM-3nu)ߒɤ-iЋ=Yu zAm;M;j")GD1@I}~Pހ!qA TC:^KWCx}8% N +O8N9) +6Ƈ;Al%zJv7ѐ, µ祜'kfJAR/Art)J? +!|$;>/] +>{I,9 wxyN p(*>7>Ḣ6q$`p/jxCadZDYF5 5ދ.q5I?/陉f LII(n->4$&>x'5!# MN@jq l)K^o=ye@Ddđ+&Mƒ,@wӇS$K3  ^ad#\).7m#NV2BBঘ_<>Cd'f7/$d=g܀ + endstream endobj 50 0 obj <>stream +ā. 8AB&H%XJ 7` X˜W@s%x 8h򿒼Fc@A8h//Ts NISXkN pe@hA!ʅ_L|Sb-4"⨘]0&!酑_B+>]/}:ZbTy$Ey|  +Z{8~_ Cډ8m^>7/T#7VR0T'~}3כ8߂'/_` u1d4 endstream endobj 5 0 obj <> endobj 6 0 obj <> endobj 18 0 obj [/View/Design] endobj 19 0 obj <>>> endobj 16 0 obj [/View/Design] endobj 17 0 obj <>>> endobj 31 0 obj [30 0 R 29 0 R] endobj 51 0 obj <> endobj xref 0 52 0000000004 65535 f +0000000016 00000 n +0000000185 00000 n +0000047379 00000 n +0000000000 00000 f +0000266555 00000 n +0000266625 00000 n +0000000000 00000 f +0000047430 00000 n +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000266816 00000 n +0000266847 00000 n +0000266700 00000 n +0000266731 00000 n +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000000000 00000 f +0000050006 00000 n +0000050077 00000 n +0000266932 00000 n +0000047801 00000 n +0000053181 00000 n +0000050498 00000 n +0000050385 00000 n +0000048830 00000 n +0000049445 00000 n +0000049493 00000 n +0000050269 00000 n +0000050300 00000 n +0000050153 00000 n +0000050184 00000 n +0000050533 00000 n +0000053249 00000 n +0000053489 00000 n +0000054522 00000 n +0000069362 00000 n +0000134950 00000 n +0000200538 00000 n +0000266126 00000 n +0000266964 00000 n +trailer <<64A8AB8E858948269A0BCA92EF85B468>]>> startxref 267136 %%EOF \ No newline at end of file diff --git a/web3js.svg b/web3js.svg new file mode 100644 index 00000000..df8a2fcb --- /dev/null +++ b/web3js.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + +