poa-dapps-keys-generation/build/static/js/main.d5fb83ac.js

2 lines
1.3 MiB

!function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/oracles-dapps-keys-generation/",e(e.s=131)}([function(t,e,r){"use strict";(function(t){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,r){if(!o.TYPED_ARRAY_SUPPORT&&!(this instanceof o))return new o(t,e,r);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(this,t)}return a(this,t,e,r)}function a(t,e,r,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?l(t,e,r,n):"string"===typeof e?f(t,e,r):d(t,e)}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 u(t,e,r,n){return s(e),e<=0?i(t,e):void 0!==r?"string"===typeof n?i(t,e).fill(r,n):i(t,e).fill(r):i(t,e)}function c(t,e){if(s(e),t=i(t,e<0?0:0|p(e)),!o.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function f(t,e,r){if("string"===typeof r&&""!==r||(r="utf8"),!o.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|b(e,r);t=i(t,n);var a=t.write(e,r);return a!==n&&(t=t.slice(0,a)),t}function h(t,e){var r=e.length<0?0:0|p(e.length);t=i(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function l(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=h(t,e),t}function d(t,e){if(o.isBuffer(e)){var r=0|p(e.length);return t=i(t,r),0===t.length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||Z(e.length)?i(t,0):h(t,e);if("Buffer"===e.type&&Q(e.data))return h(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function m(t){return+t!=t&&(t=0),o.alloc(+t)}function b(t,e){if(o.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(t).length;default:if(n)return V(t).length;e=(""+e).toLowerCase(),n=!0}}function v(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,r);case"utf8":case"utf-8":return C(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return P(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function g(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=o.from(e,n)),o.isBuffer(e))return 0===e.length?-1:_(t,e,r,n,i);if("number"===typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):_(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,r,n,i){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}var c;if(i){var f=-1;for(c=r;c<s;c++)if(o(t,c)===o(e,-1===f?0:c-f)){if(-1===f&&(f=c),c-f+1===u)return f*a}else-1!==f&&(c-=c-f),f=-1}else for(r+u>s&&(r=s-u),c=r;c>=0;c--){for(var h=!0,l=0;l<u;l++)if(o(t,c+l)!==o(e,l)){h=!1;break}if(h)return c}return-1}function w(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function M(t,e,r,n){return W(V(e,t.length-r),t,r,n)}function k(t,e,r,n){return W(K(e),t,r,n)}function E(t,e,r,n){return k(t,e,r,n)}function x(t,e,r,n){return W(G(e),t,r,n)}function S(t,e,r,n){return W(Y(e,t.length-r),t,r,n)}function A(t,e,r){return 0===e&&r===t.length?X.fromByteArray(t):X.fromByteArray(t.slice(e,r))}function C(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=r){var u,c,f,h;switch(s){case 1:o<128&&(a=o);break;case 2:u=t[i+1],128===(192&u)&&(h=(31&o)<<6|63&u)>127&&(a=h);break;case 3:u=t[i+1],c=t[i+2],128===(192&u)&&128===(192&c)&&(h=(15&o)<<12|(63&u)<<6|63&c)>2047&&(h<55296||h>57343)&&(a=h);break;case 4:u=t[i+1],c=t[i+2],f=t[i+3],128===(192&u)&&128===(192&c)&&128===(192&f)&&(h=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&f)>65535&&h<1114112&&(a=h)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return T(n)}function T(t){var e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=J));return r}function I(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function P(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function R(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=H(t[o]);return i}function O(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function j(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function N(t,e,r,n,i,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function B(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function L(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function F(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function D(t,e,r,n,i){return i||F(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),$.write(t,e,r,n,23,4),r+4}function U(t,e,r,n,i){return i||F(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),$.write(t,e,r,n,52,8),r+8}function q(t){if(t=z(t).replace(tt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return t<16?"0"+t.toString(16):t.toString(16)}function V(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function K(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function Y(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function G(t){return X.toByteArray(q(t))}function W(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Z(t){return t!==t}var X=r(161),$=r(162),Q=r(67);e.Buffer=o,e.SlowBuffer=m,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,r){return a(null,t,e,r)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,r){return u(null,t,e,r)},o.allocUnsafe=function(t){return c(null,t)},o.allocUnsafeSlow=function(t){return c(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!Q(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=o.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},o.byteLength=b,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):v.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,r,n,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var a=i-n,s=r-e,u=Math.min(a,s),c=this.slice(n,i),f=t.slice(e,r),h=0;h<u;++h)if(c[h]!==f[h]){a=c[h],s=f[h];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},o.prototype.indexOf=function(t,e,r){return g(this,t,e,r,!0)},o.prototype.lastIndexOf=function(t,e,r){return g(this,t,e,r,!1)},o.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"===typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return M(this,t,e,r);case"ascii":return k(this,t,e,r);case"latin1":case"binary":return E(this,t,e,r);case"base64":return x(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n;if(o.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=o.prototype;else{var i=e-t;n=new o(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+t]}return n},o.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},o.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},o.prototype.readUInt8=function(t,e){return e||j(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||j(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||j(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||j(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},o.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||j(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(t,e){e||j(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(t,e){return e||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||j(t,4,this.length),$.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||j(t,4,this.length),$.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||j(t,8,this.length),$.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||j(t,8,this.length),$.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){N(this,t,e,r,Math.pow(2,8*r)-1,0)}var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},o.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){N(this,t,e,r,Math.pow(2,8*r)-1,0)}var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},o.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);N(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},o.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);N(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},o.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||N(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,r){return D(this,t,e,!0,r)},o.prototype.writeFloatBE=function(t,e,r){return D(this,t,e,!1,r)},o.prototype.writeDoubleLE=function(t,e,r){return U(this,t,e,!0,r)},o.prototype.writeDoubleBE=function(t,e,r){return U(this,t,e,!1,r)},o.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,a=n-r;if(this===t&&r<e&&e<n)for(i=a-1;i>=0;--i)t[i+e]=this[i+r];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),e);return a},o.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var a;if("number"===typeof t)for(a=e;a<r;++a)this[a]=t;else{var s=o.isBuffer(t)?t:V(new o(t,n).toString()),u=s.length;for(a=0;a<r-e;++a)this[a+e]=s[a%u]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,r(4))},function(t,e){"function"===typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e,r){function n(t,e){for(var r in t)e[r]=t[r]}function i(t,e,r){return a(t,e,r)}var o=r(0),a=o.Buffer;a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=o:(n(o,e),e.Buffer=i),n(a,i),i.from=function(t,e,r){if("number"===typeof t)throw new TypeError("Argument must not be a number");return a(t,e,r)},i.alloc=function(t,e,r){if("number"!==typeof t)throw new TypeError("Argument must be a number");var n=a(t);return void 0!==e?"string"===typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},i.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return a(t)},i.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var a=t.charCodeAt(o)-48;n<<=4,n|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function s(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}function u(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function c(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,h=67108863&u,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;i=0|t.words[p],o=0|e.words[d],a=i*o+h,f+=a/67108864|0,h=67108863&a}r.words[c]=0|h,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}function f(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var f=o-c,h=0|t.words[f],l=0|e.words[c],d=h*l,p=67108863&d;a=a+(d/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,i+=a>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function h(t,e,r){return(new l).mulp(t,e,r)}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 n(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"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;var _;try{_=r(237).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"===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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=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 r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,u=Math.min(o,o-a)+r,c=0,f=r;f<u;f+=n)c=s(t,f,f+n,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=s(t,f,t.length,e),f=0;f<a;f++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&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?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],M=[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 r;if(16===t||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,r=0!==o||a!==this.length-1?w[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=M[t],f=k[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var l=h.modn(f).toString(t);h=h.idivn(f),r=h.isZero()?l+r:w[c-l.length]+l+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof _),this.toArrayLike(_,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.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 r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.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,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.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){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();var r,n;this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;var n,i;r>0?(n=this,i=t):(n=t,i=this);for(var o=0,a=0;a<i.length;a++)e=(0|n.words[a])-(0|i.words[a])+o,o=e>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)e=(0|n.words[a])+o,o=e>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var E=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,f=0|a[0],h=8191&f,l=f>>>13,d=0|a[1],p=8191&d,m=d>>>13,b=0|a[2],v=8191&b,y=b>>>13,g=0|a[3],_=8191&g,w=g>>>13,M=0|a[4],k=8191&M,E=M>>>13,x=0|a[5],S=8191&x,A=x>>>13,C=0|a[6],T=8191&C,I=C>>>13,P=0|a[7],R=8191&P,O=P>>>13,j=0|a[8],N=8191&j,B=j>>>13,L=0|a[9],F=8191&L,D=L>>>13,U=0|s[0],q=8191&U,z=U>>>13,H=0|s[1],V=8191&H,K=H>>>13,Y=0|s[2],G=8191&Y,W=Y>>>13,Z=0|s[3],X=8191&Z,$=Z>>>13,Q=0|s[4],J=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,ft=0|s[8],ht=8191&ft,lt=ft>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(h,q),i=Math.imul(h,z),i=i+Math.imul(l,q)|0,o=Math.imul(l,z);var bt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(p,q),i=Math.imul(p,z),i=i+Math.imul(m,q)|0,o=Math.imul(m,z),n=n+Math.imul(h,V)|0,i=i+Math.imul(h,K)|0,i=i+Math.imul(l,V)|0,o=o+Math.imul(l,K)|0;var vt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),i=Math.imul(v,z),i=i+Math.imul(y,q)|0,o=Math.imul(y,z),n=n+Math.imul(p,V)|0,i=i+Math.imul(p,K)|0,i=i+Math.imul(m,V)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(h,G)|0,i=i+Math.imul(h,W)|0,i=i+Math.imul(l,G)|0,o=o+Math.imul(l,W)|0;var yt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(_,q),i=Math.imul(_,z),i=i+Math.imul(w,q)|0,o=Math.imul(w,z),n=n+Math.imul(v,V)|0,i=i+Math.imul(v,K)|0,i=i+Math.imul(y,V)|0,o=o+Math.imul(y,K)|0,n=n+Math.imul(p,G)|0,i=i+Math.imul(p,W)|0,i=i+Math.imul(m,G)|0,o=o+Math.imul(m,W)|0,n=n+Math.imul(h,X)|0,i=i+Math.imul(h,$)|0,i=i+Math.imul(l,X)|0,o=o+Math.imul(l,$)|0;var gt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=Math.imul(k,z),i=i+Math.imul(E,q)|0,o=Math.imul(E,z),n=n+Math.imul(_,V)|0,i=i+Math.imul(_,K)|0,i=i+Math.imul(w,V)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(v,G)|0,i=i+Math.imul(v,W)|0,i=i+Math.imul(y,G)|0,o=o+Math.imul(y,W)|0,n=n+Math.imul(p,X)|0,i=i+Math.imul(p,$)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,$)|0,n=n+Math.imul(h,J)|0,i=i+Math.imul(h,tt)|0,i=i+Math.imul(l,J)|0,o=o+Math.imul(l,tt)|0;var _t=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(S,q),i=Math.imul(S,z),i=i+Math.imul(A,q)|0,o=Math.imul(A,z),n=n+Math.imul(k,V)|0,i=i+Math.imul(k,K)|0,i=i+Math.imul(E,V)|0,o=o+Math.imul(E,K)|0,n=n+Math.imul(_,G)|0,i=i+Math.imul(_,W)|0,i=i+Math.imul(w,G)|0,o=o+Math.imul(w,W)|0,n=n+Math.imul(v,X)|0,i=i+Math.imul(v,$)|0,i=i+Math.imul(y,X)|0,o=o+Math.imul(y,$)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(h,rt)|0,i=i+Math.imul(h,nt)|0,i=i+Math.imul(l,rt)|0,o=o+Math.imul(l,nt)|0;var wt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(T,q),i=Math.imul(T,z),i=i+Math.imul(I,q)|0,o=Math.imul(I,z),n=n+Math.imul(S,V)|0,i=i+Math.imul(S,K)|0,i=i+Math.imul(A,V)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(k,G)|0,i=i+Math.imul(k,W)|0,i=i+Math.imul(E,G)|0,o=o+Math.imul(E,W)|0,n=n+Math.imul(_,X)|0,i=i+Math.imul(_,$)|0,i=i+Math.imul(w,X)|0,o=o+Math.imul(w,$)|0,n=n+Math.imul(v,J)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(h,ot)|0,i=i+Math.imul(h,at)|0,i=i+Math.imul(l,ot)|0,o=o+Math.imul(l,at)|0;var Mt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(R,q),i=Math.imul(R,z),i=i+Math.imul(O,q)|0,o=Math.imul(O,z),n=n+Math.imul(T,V)|0,i=i+Math.imul(T,K)|0,i=i+Math.imul(I,V)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(S,G)|0,i=i+Math.imul(S,W)|0,i=i+Math.imul(A,G)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(k,X)|0,i=i+Math.imul(k,$)|0,i=i+Math.imul(E,X)|0,o=o+Math.imul(E,$)|0,n=n+Math.imul(_,J)|0,i=i+Math.imul(_,tt)|0,i=i+Math.imul(w,J)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,n=n+Math.imul(h,ut)|0,i=i+Math.imul(h,ct)|0,i=i+Math.imul(l,ut)|0,o=o+Math.imul(l,ct)|0;var kt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,q),i=Math.imul(N,z),i=i+Math.imul(B,q)|0,o=Math.imul(B,z),n=n+Math.imul(R,V)|0,i=i+Math.imul(R,K)|0,i=i+Math.imul(O,V)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(T,G)|0,i=i+Math.imul(T,W)|0,i=i+Math.imul(I,G)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(S,X)|0,i=i+Math.imul(S,$)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(_,rt)|0,i=i+Math.imul(_,nt)|0,i=i+Math.imul(w,rt)|0,o=o+Math.imul(w,nt)|0,n=n+Math.imul(v,ot)|0,i=i+Math.imul(v,at)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,n=n+Math.imul(h,ht)|0,i=i+Math.imul(h,lt)|0,i=i+Math.imul(l,ht)|0,o=o+Math.imul(l,lt)|0;var Et=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(F,q),i=Math.imul(F,z),i=i+Math.imul(D,q)|0,o=Math.imul(D,z),n=n+Math.imul(N,V)|0,i=i+Math.imul(N,K)|0,i=i+Math.imul(B,V)|0,o=o+Math.imul(B,K)|0,n=n+Math.imul(R,G)|0,i=i+Math.imul(R,W)|0,i=i+Math.imul(O,G)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(T,X)|0,i=i+Math.imul(T,$)|0,i=i+Math.imul(I,X)|0,o=o+Math.imul(I,$)|0,n=n+Math.imul(S,J)|0,i=i+Math.imul(S,tt)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(E,rt)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(_,ot)|0,i=i+Math.imul(_,at)|0,i=i+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,n=n+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ht)|0,i=i+Math.imul(p,lt)|0,i=i+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0,n=n+Math.imul(h,pt)|0,i=i+Math.imul(h,mt)|0,i=i+Math.imul(l,pt)|0,o=o+Math.imul(l,mt)|0;var xt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(F,V),i=Math.imul(F,K),i=i+Math.imul(D,V)|0,o=Math.imul(D,K),n=n+Math.imul(N,G)|0,i=i+Math.imul(N,W)|0,i=i+Math.imul(B,G)|0,o=o+Math.imul(B,W)|0,n=n+Math.imul(R,X)|0,i=i+Math.imul(R,$)|0,i=i+Math.imul(O,X)|0,o=o+Math.imul(O,$)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(S,rt)|0,i=i+Math.imul(S,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,at)|0,i=i+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,n=n+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,i=i+Math.imul(w,ut)|0,o=o+Math.imul(w,ct)|0,n=n+Math.imul(v,ht)|0,i=i+Math.imul(v,lt)|0,i=i+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var St=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(F,G),i=Math.imul(F,W),i=i+Math.imul(D,G)|0,o=Math.imul(D,W),n=n+Math.imul(N,X)|0,i=i+Math.imul(N,$)|0,i=i+Math.imul(B,X)|0,o=o+Math.imul(B,$)|0,n=n+Math.imul(R,J)|0,i=i+Math.imul(R,tt)|0,i=i+Math.imul(O,J)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(S,ot)|0,i=i+Math.imul(S,at)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ct)|0,i=i+Math.imul(E,ut)|0,o=o+Math.imul(E,ct)|0,n=n+Math.imul(_,ht)|0,i=i+Math.imul(_,lt)|0,i=i+Math.imul(w,ht)|0,o=o+Math.imul(w,lt)|0,n=n+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(F,X),i=Math.imul(F,$),i=i+Math.imul(D,X)|0,o=Math.imul(D,$),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(B,J)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(R,rt)|0,i=i+Math.imul(R,nt)|0,i=i+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,at)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(S,ut)|0,i=i+Math.imul(S,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(k,ht)|0,i=i+Math.imul(k,lt)|0,i=i+Math.imul(E,ht)|0,o=o+Math.imul(E,lt)|0,n=n+Math.imul(_,pt)|0,i=i+Math.imul(_,mt)|0,i=i+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var Ct=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(F,J),i=Math.imul(F,tt),i=i+Math.imul(D,J)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(R,ot)|0,i=i+Math.imul(R,at)|0,i=i+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ct)|0,n=n+Math.imul(S,ht)|0,i=i+Math.imul(S,lt)|0,i=i+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var Tt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(F,rt),i=Math.imul(F,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,at)|0,i=i+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,n=n+Math.imul(R,ut)|0,i=i+Math.imul(R,ct)|0,i=i+Math.imul(O,ut)|0,o=o+Math.imul(O,ct)|0,n=n+Math.imul(T,ht)|0,i=i+Math.imul(T,lt)|0,i=i+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0,n=n+Math.imul(S,pt)|0,i=i+Math.imul(S,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var It=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(F,ot),i=Math.imul(F,at),i=i+Math.imul(D,ot)|0,o=Math.imul(D,at),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ct)|0,i=i+Math.imul(B,ut)|0,o=o+Math.imul(B,ct)|0,n=n+Math.imul(R,ht)|0,i=i+Math.imul(R,lt)|0,i=i+Math.imul(O,ht)|0,o=o+Math.imul(O,lt)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Pt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(F,ut),i=Math.imul(F,ct),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ct),n=n+Math.imul(N,ht)|0,i=i+Math.imul(N,lt)|0,i=i+Math.imul(B,ht)|0,o=o+Math.imul(B,lt)|0,n=n+Math.imul(R,pt)|0,i=i+Math.imul(R,mt)|0,i=i+Math.imul(O,pt)|0,o=o+Math.imul(O,mt)|0;var Rt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(F,ht),i=Math.imul(F,lt),i=i+Math.imul(D,ht)|0,o=Math.imul(D,lt),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(B,pt)|0,o=o+Math.imul(B,mt)|0;var Ot=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(F,pt),i=Math.imul(F,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var jt=(c+n|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,u[0]=bt,u[1]=vt,u[2]=yt,u[3]=gt,u[4]=_t,u[5]=wt,u[6]=Mt,u[7]=kt,u[8]=Et,u[9]=xt,u[10]=St,u[11]=At,u[12]=Ct,u[13]=Tt,u[14]=It,u[15]=Pt,u[16]=Rt,u[17]=Ot,u[18]=jt,0!==c&&(u[19]=c,r.length++),r};Math.imul||(E=c),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?E(this,t,e):r<63?c(this,t,e):r<1024?f(this,t,e):h(this,t,e)},l.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},l.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},l.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},l.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var h=u,l=c,d=0;d<a;d++){var p=r[f+d],m=n[f+d],b=r[f+d+a],v=n[f+d+a],y=h*b-l*v;v=h*v+l*b,b=y,r[f+d]=p+b,n[f+d]=m+v,r[f+d+a]=p-b,n[f+d+a]=m-v,d!==s&&(y=u*h-c*l,l=u*l+c*h,h=y)}},l.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},l.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},l.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},l.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},l.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},l.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,h,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*h[d];u[d]=s[d]*h[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),h(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=u(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){n("number"===typeof t&&t>=0);var i;i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var h=0|this.words[c];this.words[c]=f<<26-o|h>>>o,f=h&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o=t.length+r;this._expand(o);var a,s=0;for(i=0;i<t.length;i++){a=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;a-=67108863&u,s=(a>>26)-(u/67108864|0),this.words[i+r]=67108863&a}for(;i<this.length-r;i++)a=(0|this.words[i+r])+s,s=a>>26,this.words[i+r]=67108863&a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)a=-(0|this.words[i])+s,s=a>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){s=new o(null),s.length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var h=u-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){if(n(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var i,a,s;return 0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);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){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var f=r.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()||a.isOdd())&&(i.iadd(f),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(e.iushrn(u);u-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var f=0,h=1;0===(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a)):(r.isub(e),a.isub(i))}var l;return l=0===e.cmpn(1)?i:a,l.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(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=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 r;if(this.length>1)r=1;else{e&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];r=i===t?0:i<t?-1:1}return 0!==this.negative?0|-r:r},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var x={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,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},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 r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[n-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,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(m,d),i(b,d),i(v,d),v.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(x[t])return x[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 x[t]=e,e},y.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},y.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(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 r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},y.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},y.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},y.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var m=d,b=0;0!==m.cmp(s);b++)m=m.redSqr();n(b<p);var v=this.pow(h,new o(1).iushln(p-b-1));l=l.redMul(v),h=v.redSqr(),d=d.redMul(h),p=b}return l},y.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},y.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],f=u-1;f>=0;f--){var h=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=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 r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).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 r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}("undefined"===typeof t||t,this)}).call(e,r(18)(t))},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"===typeof window&&(r=window)}t.exports=r},function(t,e,r){var n,i;(function(){function r(t){function e(e,r,n,i,o,a){for(;o>=0&&o<a;o+=t){var s=i?i[o]:o;n=r(n,e[s],s,e)}return n}return function(r,n,i,o){n=k(n,o,4);var a=!I(r)&&M.keys(r),s=(a||r).length,u=t>0?0:s-1;return arguments.length<3&&(i=r[a?a[u]:u],u+=t),e(r,n,i,a,u,s)}}function o(t){return function(e,r,n){r=E(r,n);for(var i=T(e),o=t>0?0:i-1;o>=0&&o<i;o+=t)if(r(e[o],o,e))return o;return-1}}function a(t,e,r){return function(n,i,o){var a=0,s=T(n);if("number"==typeof o)t>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(r&&o&&s)return o=r(n,i),n[o]===i?o:-1;if(i!==i)return o=e(p.call(n,a,s),M.isNaN),o>=0?o+a:-1;for(o=t>0?a:s-1;o>=0&&o<s;o+=t)if(n[o]===i)return o;return-1}}function s(t,e){var r=N.length,n=t.constructor,i=M.isFunction(n)&&n.prototype||h,o="constructor";for(M.has(t,o)&&!M.contains(e,o)&&e.push(o);r--;)(o=N[r])in t&&t[o]!==i[o]&&!M.contains(e,o)&&e.push(o)}var u=this,c=u._,f=Array.prototype,h=Object.prototype,l=Function.prototype,d=f.push,p=f.slice,m=h.toString,b=h.hasOwnProperty,v=Array.isArray,y=Object.keys,g=l.bind,_=Object.create,w=function(){},M=function(t){return t instanceof M?t:this instanceof M?void(this._wrapped=t):new M(t)};"undefined"!==typeof t&&t.exports&&(e=t.exports=M),e._=M,M.VERSION="1.8.3";var k=function(t,e,r){if(void 0===e)return t;switch(null==r?3:r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)};case 4:return function(r,n,i,o){return t.call(e,r,n,i,o)}}return function(){return t.apply(e,arguments)}},E=function(t,e,r){return null==t?M.identity:M.isFunction(t)?k(t,e,r):M.isObject(t)?M.matcher(t):M.property(t)};M.iteratee=function(t,e){return E(t,e,1/0)};var x=function(t,e){return function(r){var n=arguments.length;if(n<2||null==r)return r;for(var i=1;i<n;i++)for(var o=arguments[i],a=t(o),s=a.length,u=0;u<s;u++){var c=a[u];e&&void 0!==r[c]||(r[c]=o[c])}return r}},S=function(t){if(!M.isObject(t))return{};if(_)return _(t);w.prototype=t;var e=new w;return w.prototype=null,e},A=function(t){return function(e){return null==e?void 0:e[t]}},C=Math.pow(2,53)-1,T=A("length"),I=function(t){var e=T(t);return"number"==typeof e&&e>=0&&e<=C};M.each=M.forEach=function(t,e,r){e=k(e,r);var n,i;if(I(t))for(n=0,i=t.length;n<i;n++)e(t[n],n,t);else{var o=M.keys(t);for(n=0,i=o.length;n<i;n++)e(t[o[n]],o[n],t)}return t},M.map=M.collect=function(t,e,r){e=E(e,r);for(var n=!I(t)&&M.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=e(t[s],s,t)}return o},M.reduce=M.foldl=M.inject=r(1),M.reduceRight=M.foldr=r(-1),M.find=M.detect=function(t,e,r){var n;if(void 0!==(n=I(t)?M.findIndex(t,e,r):M.findKey(t,e,r))&&-1!==n)return t[n]},M.filter=M.select=function(t,e,r){var n=[];return e=E(e,r),M.each(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n},M.reject=function(t,e,r){return M.filter(t,M.negate(E(e)),r)},M.every=M.all=function(t,e,r){e=E(e,r);for(var n=!I(t)&&M.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(!e(t[a],a,t))return!1}return!0},M.some=M.any=function(t,e,r){e=E(e,r);for(var n=!I(t)&&M.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(e(t[a],a,t))return!0}return!1},M.contains=M.includes=M.include=function(t,e,r,n){return I(t)||(t=M.values(t)),("number"!=typeof r||n)&&(r=0),M.indexOf(t,e,r)>=0},M.invoke=function(t,e){var r=p.call(arguments,2),n=M.isFunction(e);return M.map(t,function(t){var i=n?e:t[e];return null==i?i:i.apply(t,r)})},M.pluck=function(t,e){return M.map(t,M.property(e))},M.where=function(t,e){return M.filter(t,M.matcher(e))},M.findWhere=function(t,e){return M.find(t,M.matcher(e))},M.max=function(t,e,r){var n,i,o=-1/0,a=-1/0;if(null==e&&null!=t){t=I(t)?t:M.values(t);for(var s=0,u=t.length;s<u;s++)(n=t[s])>o&&(o=n)}else e=E(e,r),M.each(t,function(t,r,n){((i=e(t,r,n))>a||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},M.min=function(t,e,r){var n,i,o=1/0,a=1/0;if(null==e&&null!=t){t=I(t)?t:M.values(t);for(var s=0,u=t.length;s<u;s++)(n=t[s])<o&&(o=n)}else e=E(e,r),M.each(t,function(t,r,n){((i=e(t,r,n))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},M.shuffle=function(t){for(var e,r=I(t)?t:M.values(t),n=r.length,i=Array(n),o=0;o<n;o++)e=M.random(0,o),e!==o&&(i[o]=i[e]),i[e]=r[o];return i},M.sample=function(t,e,r){return null==e||r?(I(t)||(t=M.values(t)),t[M.random(t.length-1)]):M.shuffle(t).slice(0,Math.max(0,e))},M.sortBy=function(t,e,r){return e=E(e,r),M.pluck(M.map(t,function(t,r,n){return{value:t,index:r,criteria:e(t,r,n)}}).sort(function(t,e){var r=t.criteria,n=e.criteria;if(r!==n){if(r>n||void 0===r)return 1;if(r<n||void 0===n)return-1}return t.index-e.index}),"value")};var P=function(t){return function(e,r,n){var i={};return r=E(r,n),M.each(e,function(n,o){var a=r(n,o,e);t(i,n,a)}),i}};M.groupBy=P(function(t,e,r){M.has(t,r)?t[r].push(e):t[r]=[e]}),M.indexBy=P(function(t,e,r){t[r]=e}),M.countBy=P(function(t,e,r){M.has(t,r)?t[r]++:t[r]=1}),M.toArray=function(t){return t?M.isArray(t)?p.call(t):I(t)?M.map(t,M.identity):M.values(t):[]},M.size=function(t){return null==t?0:I(t)?t.length:M.keys(t).length},M.partition=function(t,e,r){e=E(e,r);var n=[],i=[];return M.each(t,function(t,r,o){(e(t,r,o)?n:i).push(t)}),[n,i]},M.first=M.head=M.take=function(t,e,r){if(null!=t)return null==e||r?t[0]:M.initial(t,t.length-e)},M.initial=function(t,e,r){return p.call(t,0,Math.max(0,t.length-(null==e||r?1:e)))},M.last=function(t,e,r){if(null!=t)return null==e||r?t[t.length-1]:M.rest(t,Math.max(0,t.length-e))},M.rest=M.tail=M.drop=function(t,e,r){return p.call(t,null==e||r?1:e)},M.compact=function(t){return M.filter(t,M.identity)};var R=function(t,e,r,n){for(var i=[],o=0,a=n||0,s=T(t);a<s;a++){var u=t[a];if(I(u)&&(M.isArray(u)||M.isArguments(u))){e||(u=R(u,e,r));var c=0,f=u.length;for(i.length+=f;c<f;)i[o++]=u[c++]}else r||(i[o++]=u)}return i};M.flatten=function(t,e){return R(t,e,!1)},M.without=function(t){return M.difference(t,p.call(arguments,1))},M.uniq=M.unique=function(t,e,r,n){M.isBoolean(e)||(n=r,r=e,e=!1),null!=r&&(r=E(r,n));for(var i=[],o=[],a=0,s=T(t);a<s;a++){var u=t[a],c=r?r(u,a,t):u;e?(a&&o===c||i.push(u),o=c):r?M.contains(o,c)||(o.push(c),i.push(u)):M.contains(i,u)||i.push(u)}return i},M.union=function(){return M.uniq(R(arguments,!0,!0))},M.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=T(t);n<i;n++){var o=t[n];if(!M.contains(e,o)){for(var a=1;a<r&&M.contains(arguments[a],o);a++);a===r&&e.push(o)}}return e},M.difference=function(t){var e=R(arguments,!0,!0,1);return M.filter(t,function(t){return!M.contains(e,t)})},M.zip=function(){return M.unzip(arguments)},M.unzip=function(t){for(var e=t&&M.max(t,T).length||0,r=Array(e),n=0;n<e;n++)r[n]=M.pluck(t,n);return r},M.object=function(t,e){for(var r={},n=0,i=T(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r},M.findIndex=o(1),M.findLastIndex=o(-1),M.sortedIndex=function(t,e,r,n){r=E(r,n,1);for(var i=r(e),o=0,a=T(t);o<a;){var s=Math.floor((o+a)/2);r(t[s])<i?o=s+1:a=s}return o},M.indexOf=a(1,M.findIndex,M.sortedIndex),M.lastIndexOf=a(-1,M.findLastIndex),M.range=function(t,e,r){null==e&&(e=t||0,t=0),r=r||1;for(var n=Math.max(Math.ceil((e-t)/r),0),i=Array(n),o=0;o<n;o++,t+=r)i[o]=t;return i};var O=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=S(t.prototype),a=t.apply(o,i);return M.isObject(a)?a:o};M.bind=function(t,e){if(g&&t.bind===g)return g.apply(t,p.call(arguments,1));if(!M.isFunction(t))throw new TypeError("Bind must be called on a function");var r=p.call(arguments,2),n=function(){return O(t,n,e,this,r.concat(p.call(arguments)))};return n},M.partial=function(t){var e=p.call(arguments,1),r=function(){for(var n=0,i=e.length,o=Array(i),a=0;a<i;a++)o[a]=e[a]===M?arguments[n++]:e[a];for(;n<arguments.length;)o.push(arguments[n++]);return O(t,r,this,this,o)};return r},M.bindAll=function(t){var e,r,n=arguments.length;if(n<=1)throw new Error("bindAll must be passed function names");for(e=1;e<n;e++)r=arguments[e],t[r]=M.bind(t[r],t);return t},M.memoize=function(t,e){var r=function(n){var i=r.cache,o=""+(e?e.apply(this,arguments):n);return M.has(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return r.cache={},r},M.delay=function(t,e){var r=p.call(arguments,2);return setTimeout(function(){return t.apply(null,r)},e)},M.defer=M.partial(M.delay,M,1),M.throttle=function(t,e,r){var n,i,o,a=null,s=0;r||(r={});var u=function(){s=!1===r.leading?0:M.now(),a=null,o=t.apply(n,i),a||(n=i=null)};return function(){var c=M.now();s||!1!==r.leading||(s=c);var f=e-(c-s);return n=this,i=arguments,f<=0||f>e?(a&&(clearTimeout(a),a=null),s=c,o=t.apply(n,i),a||(n=i=null)):a||!1===r.trailing||(a=setTimeout(u,f)),o}},M.debounce=function(t,e,r){var n,i,o,a,s,u=function(){var c=M.now()-a;c<e&&c>=0?n=setTimeout(u,e-c):(n=null,r||(s=t.apply(o,i),n||(o=i=null)))};return function(){o=this,i=arguments,a=M.now();var c=r&&!n;return n||(n=setTimeout(u,e)),c&&(s=t.apply(o,i),o=i=null),s}},M.wrap=function(t,e){return M.partial(e,t)},M.negate=function(t){return function(){return!t.apply(this,arguments)}},M.compose=function(){var t=arguments,e=t.length-1;return function(){for(var r=e,n=t[e].apply(this,arguments);r--;)n=t[r].call(this,n);return n}},M.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},M.before=function(t,e){var r;return function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=null),r}},M.once=M.partial(M.before,2);var j=!{toString:null}.propertyIsEnumerable("toString"),N=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];M.keys=function(t){if(!M.isObject(t))return[];if(y)return y(t);var e=[];for(var r in t)M.has(t,r)&&e.push(r);return j&&s(t,e),e},M.allKeys=function(t){if(!M.isObject(t))return[];var e=[];for(var r in t)e.push(r);return j&&s(t,e),e},M.values=function(t){for(var e=M.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=t[e[i]];return n},M.mapObject=function(t,e,r){e=E(e,r);for(var n,i=M.keys(t),o=i.length,a={},s=0;s<o;s++)n=i[s],a[n]=e(t[n],n,t);return a},M.pairs=function(t){for(var e=M.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=[e[i],t[e[i]]];return n},M.invert=function(t){for(var e={},r=M.keys(t),n=0,i=r.length;n<i;n++)e[t[r[n]]]=r[n];return e},M.functions=M.methods=function(t){var e=[];for(var r in t)M.isFunction(t[r])&&e.push(r);return e.sort()},M.extend=x(M.allKeys),M.extendOwn=M.assign=x(M.keys),M.findKey=function(t,e,r){e=E(e,r);for(var n,i=M.keys(t),o=0,a=i.length;o<a;o++)if(n=i[o],e(t[n],n,t))return n},M.pick=function(t,e,r){var n,i,o={},a=t;if(null==a)return o;M.isFunction(e)?(i=M.allKeys(a),n=k(e,r)):(i=R(arguments,!1,!1,1),n=function(t,e,r){return e in r},a=Object(a));for(var s=0,u=i.length;s<u;s++){var c=i[s],f=a[c];n(f,c,a)&&(o[c]=f)}return o},M.omit=function(t,e,r){if(M.isFunction(e))e=M.negate(e);else{var n=M.map(R(arguments,!1,!1,1),String);e=function(t,e){return!M.contains(n,e)}}return M.pick(t,e,r)},M.defaults=x(M.allKeys,!0),M.create=function(t,e){var r=S(t);return e&&M.extendOwn(r,e),r},M.clone=function(t){return M.isObject(t)?M.isArray(t)?t.slice():M.extend({},t):t},M.tap=function(t,e){return e(t),t},M.isMatch=function(t,e){var r=M.keys(e),n=r.length;if(null==t)return!n;for(var i=Object(t),o=0;o<n;o++){var a=r[o];if(e[a]!==i[a]||!(a in i))return!1}return!0};var B=function(t,e,r,n){if(t===e)return 0!==t||1/t===1/e;if(null==t||null==e)return t===e;t instanceof M&&(t=t._wrapped),e instanceof M&&(e=e._wrapped);var i=m.call(t);if(i!==m.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t===""+e;case"[object Number]":return+t!==+t?+e!==+e:0===+t?1/+t===1/e:+t===+e;case"[object Date]":case"[object Boolean]":return+t===+e}var o="[object Array]"===i;if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(M.isFunction(a)&&a instanceof a&&M.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}r=r||[],n=n||[];for(var u=r.length;u--;)if(r[u]===t)return n[u]===e;if(r.push(t),n.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!B(t[u],e[u],r,n))return!1}else{var c,f=M.keys(t);if(u=f.length,M.keys(e).length!==u)return!1;for(;u--;)if(c=f[u],!M.has(e,c)||!B(t[c],e[c],r,n))return!1}return r.pop(),n.pop(),!0};M.isEqual=function(t,e){return B(t,e)},M.isEmpty=function(t){return null==t||(I(t)&&(M.isArray(t)||M.isString(t)||M.isArguments(t))?0===t.length:0===M.keys(t).length)},M.isElement=function(t){return!(!t||1!==t.nodeType)},M.isArray=v||function(t){return"[object Array]"===m.call(t)},M.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},M.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){M["is"+t]=function(e){return m.call(e)==="[object "+t+"]"}}),M.isArguments(arguments)||(M.isArguments=function(t){return M.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(M.isFunction=function(t){return"function"==typeof t||!1}),M.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},M.isNaN=function(t){return M.isNumber(t)&&t!==+t},M.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===m.call(t)},M.isNull=function(t){return null===t},M.isUndefined=function(t){return void 0===t},M.has=function(t,e){return null!=t&&b.call(t,e)},M.noConflict=function(){return u._=c,this},M.identity=function(t){return t},M.constant=function(t){return function(){return t}},M.noop=function(){},M.property=A,M.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},M.matcher=M.matches=function(t){return t=M.extendOwn({},t),function(e){return M.isMatch(e,t)}},M.times=function(t,e,r){var n=Array(Math.max(0,t));e=k(e,r,1);for(var i=0;i<t;i++)n[i]=e(i);return n},M.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},M.now=Date.now||function(){return(new Date).getTime()};var L={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},F=M.invert(L),D=function(t){var e=function(e){return t[e]},r="(?:"+M.keys(t).join("|")+")",n=RegExp(r),i=RegExp(r,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(i,e):t}};M.escape=D(L),M.unescape=D(F),M.result=function(t,e,r){var n=null==t?void 0:t[e];return void 0===n&&(n=r),M.isFunction(n)?n.call(t):n};var U=0;M.uniqueId=function(t){var e=++U+"";return t?t+e:e},M.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var q=/(.)^/,z={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},H=/\\|'|\r|\n|\u2028|\u2029/g,V=function(t){return"\\"+z[t]};M.template=function(t,e,r){!e&&r&&(e=r),e=M.defaults({},e,M.templateSettings);var n=RegExp([(e.escape||q).source,(e.interpolate||q).source,(e.evaluate||q).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(n,function(e,r,n,a,s){return o+=t.slice(i,s).replace(H,V),i=s+e.length,r?o+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":n?o+="'+\n((__t=("+n+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\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 a=new Function(e.variable||"obj","_",o)}catch(t){throw t.source=o,t}var s=function(t){return a.call(this,t,M)};return s.source="function("+(e.variable||"obj")+"){\n"+o+"}",s},M.chain=function(t){var e=M(t);return e._chain=!0,e};var K=function(t,e){return t._chain?M(e).chain():e};M.mixin=function(t){M.each(M.functions(t),function(e){var r=M[e]=t[e];M.prototype[e]=function(){var t=[this._wrapped];return d.apply(t,arguments),K(this,r.apply(M,t))}})},M.mixin(M),M.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=f[t];M.prototype[t]=function(){var r=this._wrapped;return e.apply(r,arguments),"shift"!==t&&"splice"!==t||0!==r.length||delete r[0],K(this,r)}}),M.each(["concat","join","slice"],function(t){var e=f[t];M.prototype[t]=function(){return K(this,e.apply(this._wrapped,arguments))}}),M.prototype.value=function(){return this._wrapped},M.prototype.valueOf=M.prototype.toJSON=M.prototype.value,M.prototype.toString=function(){return""+this._wrapped},n=[],void 0!==(i=function(){return M}.apply(e,n))&&(t.exports=i)}).call(this)},function(t,e){"function"===typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e,r){"use strict";var n=r(157),i=r(158);t.exports={errors:n,formatters:i}},function(t,e){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(t){if(f===setTimeout)return setTimeout(t,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function o(t){if(h===clearTimeout)return clearTimeout(t);if((h===n||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function a(){m&&d&&(m=!1,d.length?p=d.concat(p):b=-1,p.length&&s())}function s(){if(!m){var t=i(a);m=!0;for(var e=p.length;e;){for(d=p,p=[];++b<e;)d&&d[b].run();b=-1,e=p.length}d=null,m=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var f,h,l=t.exports={};!function(){try{f="function"===typeof setTimeout?setTimeout:r}catch(t){f=r}try{h="function"===typeof clearTimeout?clearTimeout:n}catch(t){h=n}}();var d,p=[],m=!1,b=-1;l.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];p.push(new u(t,e)),1!==p.length||m||i(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=c,l.addListener=c,l.once=c,l.off=c,l.removeListener=c,l.removeAllListeners=c,l.emit=c,l.prependListener=c,l.prependOnceListener=c,l.listeners=function(t){return[]},l.binding=function(t){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(t){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(t,e,r){"use strict";var n=e;n.version=r(243).version,n.utils=r(244),n.rand=r(98),n.curve=r(45),n.curves=r(249),n.ec=r(257),n.eddsa=r(261)},function(t,e,r){"use strict";var n=e;n.version=r(284).version,n.utils=r(285),n.rand=r(286),n.curve=r(47),n.curves=r(292),n.ec=r(300),n.eddsa=r(304)},function(t,e,r){var n=r(5),i=r(159),o=r(69),a=r(167),s=r(168),u=function(t,e,r,i){return!n.isObject(t)||t instanceof Error||!t.data||((n.isObject(t.data)||n.isArray(t.data))&&(t.data=JSON.stringify(t.data,null,2)),t=t.message+"\n"+t.data),n.isString(t)&&(t=new Error(t)),n.isFunction(i)&&i(t),n.isFunction(r)&&(e&&n.isFunction(e.listeners)&&e.listeners("error").length&&n.isFunction(e.suppressUnhandledRejections)?e.suppressUnhandledRejections():n.isFunction(i)&&n.isFunction(e.suppressUnhandledRejections)&&e.suppressUnhandledRejections(),setTimeout(function(){r(t)},1)),e&&n.isFunction(e.emit)&&setTimeout(function(){e.emit("error",t),e.removeAllListeners()},1),e},c=function(t){if(n.isObject(t)&&t.name&&-1!==t.name.indexOf("("))return t.name;var e=t.inputs.map(function(t){return t.type}).join(",");return t.name+"("+e+")"},f=function(t){if(!o.isHexStrict(t))throw new Error("The parameter must be a valid HEX string.");var e="",r=0,n=t.length;for("0x"===t.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(t.substr(r,2),16);e+=String.fromCharCode(i)}return e},h=function(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r),i=n.toString(16);e+=i.length<2?"0"+i:i}return"0x"+e},l=function(t){if(t=t?t.toLowerCase():"ether",!i.unitMap[t])throw new Error('This unit "'+t+"\" doesn't exist, please use the one of the following units"+JSON.stringify(i.unitMap,null,2));return t},d=function(t,e){if(e=l(e),!o.isBN(t)&&!n.isString(t))throw new Error("Please pass numbers as strings or BigNumber objects to avoid precision errors.");return o.isBN(t)?i.fromWei(t,e):i.fromWei(t,e).toString(10)},p=function(t,e){if(e=l(e),!o.isBN(t)&&!n.isString(t))throw new Error("Please pass numbers as strings or BigNumber objects to avoid precision errors.");return o.isBN(t)?i.toWei(t,e):i.toWei(t,e).toString(10)},m=function(t){if("undefined"===typeof t)return"";if(!/^(0x)?[0-9a-f]{40}$/i.test(t))throw new Error('Given address "'+t+'" is not a valid Ethereum address.');t=t.toLowerCase().replace(/^0x/i,"");for(var e=o.sha3(t).replace(/^0x/i,""),r="0x",n=0;n<t.length;n++)parseInt(e[n],16)>7?r+=t[n].toUpperCase():r+=t[n];return r};t.exports={_fireError:u,_jsonInterfaceMethodToString:c,randomHex:s,_:n,BN:o.BN,isBN:o.isBN,isBigNumber:o.isBigNumber,isHex:o.isHex,isHexStrict:o.isHexStrict,sha3:o.sha3,keccak256:o.sha3,soliditySha3:a,isAddress:o.isAddress,checkAddressChecksum:o.checkAddressChecksum,toChecksumAddress:m,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:f,toAscii:f,asciiToHex:h,fromAscii:h,unitMap:i.unitMap,toWei:p,fromWei:d,padLeft:o.leftPad,leftPad:o.leftPad,padRight:o.rightPad,rightPad:o.rightPad,toTwosComplement:o.toTwosComplement}},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var a=t.charCodeAt(o)-48;n<<=4,n|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function s(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}function u(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function c(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,h=67108863&u,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;i=0|t.words[p],o=0|e.words[d],a=i*o+h,f+=a/67108864|0,h=67108863&a}r.words[c]=0|h,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}function f(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var f=o-c,h=0|t.words[f],l=0|e.words[c],d=h*l,p=67108863&d;a=a+(d/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,i+=a>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function h(t,e,r){return(new l).mulp(t,e,r)}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 n(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"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;var _;try{_=r(171).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"===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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=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 r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,u=Math.min(o,o-a)+r,c=0,f=r;f<u;f+=n)c=s(t,f,f+n,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=s(t,f,t.length,e),f=0;f<a;f++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&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?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],M=[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 r;if(16===t||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,r=0!==o||a!==this.length-1?w[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=M[t],f=k[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var l=h.modn(f).toString(t);h=h.idivn(f),r=h.isZero()?l+r:w[c-l.length]+l+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof _),this.toArrayLike(_,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.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 r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.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,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.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){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();var r,n;this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;var n,i;r>0?(n=this,i=t):(n=t,i=this);for(var o=0,a=0;a<i.length;a++)e=(0|n.words[a])-(0|i.words[a])+o,o=e>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)e=(0|n.words[a])+o,o=e>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var E=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,f=0|a[0],h=8191&f,l=f>>>13,d=0|a[1],p=8191&d,m=d>>>13,b=0|a[2],v=8191&b,y=b>>>13,g=0|a[3],_=8191&g,w=g>>>13,M=0|a[4],k=8191&M,E=M>>>13,x=0|a[5],S=8191&x,A=x>>>13,C=0|a[6],T=8191&C,I=C>>>13,P=0|a[7],R=8191&P,O=P>>>13,j=0|a[8],N=8191&j,B=j>>>13,L=0|a[9],F=8191&L,D=L>>>13,U=0|s[0],q=8191&U,z=U>>>13,H=0|s[1],V=8191&H,K=H>>>13,Y=0|s[2],G=8191&Y,W=Y>>>13,Z=0|s[3],X=8191&Z,$=Z>>>13,Q=0|s[4],J=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,ft=0|s[8],ht=8191&ft,lt=ft>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(h,q),i=Math.imul(h,z),i=i+Math.imul(l,q)|0,o=Math.imul(l,z);var bt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(p,q),i=Math.imul(p,z),i=i+Math.imul(m,q)|0,o=Math.imul(m,z),n=n+Math.imul(h,V)|0,i=i+Math.imul(h,K)|0,i=i+Math.imul(l,V)|0,o=o+Math.imul(l,K)|0;var vt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),i=Math.imul(v,z),i=i+Math.imul(y,q)|0,o=Math.imul(y,z),n=n+Math.imul(p,V)|0,i=i+Math.imul(p,K)|0,i=i+Math.imul(m,V)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(h,G)|0,i=i+Math.imul(h,W)|0,i=i+Math.imul(l,G)|0,o=o+Math.imul(l,W)|0;var yt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(_,q),i=Math.imul(_,z),i=i+Math.imul(w,q)|0,o=Math.imul(w,z),n=n+Math.imul(v,V)|0,i=i+Math.imul(v,K)|0,i=i+Math.imul(y,V)|0,o=o+Math.imul(y,K)|0,n=n+Math.imul(p,G)|0,i=i+Math.imul(p,W)|0,i=i+Math.imul(m,G)|0,o=o+Math.imul(m,W)|0,n=n+Math.imul(h,X)|0,i=i+Math.imul(h,$)|0,i=i+Math.imul(l,X)|0,o=o+Math.imul(l,$)|0;var gt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=Math.imul(k,z),i=i+Math.imul(E,q)|0,o=Math.imul(E,z),n=n+Math.imul(_,V)|0,i=i+Math.imul(_,K)|0,i=i+Math.imul(w,V)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(v,G)|0,i=i+Math.imul(v,W)|0,i=i+Math.imul(y,G)|0,o=o+Math.imul(y,W)|0,n=n+Math.imul(p,X)|0,i=i+Math.imul(p,$)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,$)|0,n=n+Math.imul(h,J)|0,i=i+Math.imul(h,tt)|0,i=i+Math.imul(l,J)|0,o=o+Math.imul(l,tt)|0;var _t=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(S,q),i=Math.imul(S,z),i=i+Math.imul(A,q)|0,o=Math.imul(A,z),n=n+Math.imul(k,V)|0,i=i+Math.imul(k,K)|0,i=i+Math.imul(E,V)|0,o=o+Math.imul(E,K)|0,n=n+Math.imul(_,G)|0,i=i+Math.imul(_,W)|0,i=i+Math.imul(w,G)|0,o=o+Math.imul(w,W)|0,n=n+Math.imul(v,X)|0,i=i+Math.imul(v,$)|0,i=i+Math.imul(y,X)|0,o=o+Math.imul(y,$)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(h,rt)|0,i=i+Math.imul(h,nt)|0,i=i+Math.imul(l,rt)|0,o=o+Math.imul(l,nt)|0;var wt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(T,q),i=Math.imul(T,z),i=i+Math.imul(I,q)|0,o=Math.imul(I,z),n=n+Math.imul(S,V)|0,i=i+Math.imul(S,K)|0,i=i+Math.imul(A,V)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(k,G)|0,i=i+Math.imul(k,W)|0,i=i+Math.imul(E,G)|0,o=o+Math.imul(E,W)|0,n=n+Math.imul(_,X)|0,i=i+Math.imul(_,$)|0,i=i+Math.imul(w,X)|0,o=o+Math.imul(w,$)|0,n=n+Math.imul(v,J)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(h,ot)|0,i=i+Math.imul(h,at)|0,i=i+Math.imul(l,ot)|0,o=o+Math.imul(l,at)|0;var Mt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(R,q),i=Math.imul(R,z),i=i+Math.imul(O,q)|0,o=Math.imul(O,z),n=n+Math.imul(T,V)|0,i=i+Math.imul(T,K)|0,i=i+Math.imul(I,V)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(S,G)|0,i=i+Math.imul(S,W)|0,i=i+Math.imul(A,G)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(k,X)|0,i=i+Math.imul(k,$)|0,i=i+Math.imul(E,X)|0,o=o+Math.imul(E,$)|0,n=n+Math.imul(_,J)|0,i=i+Math.imul(_,tt)|0,i=i+Math.imul(w,J)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,n=n+Math.imul(h,ut)|0,i=i+Math.imul(h,ct)|0,i=i+Math.imul(l,ut)|0,o=o+Math.imul(l,ct)|0;var kt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,q),i=Math.imul(N,z),i=i+Math.imul(B,q)|0,o=Math.imul(B,z),n=n+Math.imul(R,V)|0,i=i+Math.imul(R,K)|0,i=i+Math.imul(O,V)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(T,G)|0,i=i+Math.imul(T,W)|0,i=i+Math.imul(I,G)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(S,X)|0,i=i+Math.imul(S,$)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(_,rt)|0,i=i+Math.imul(_,nt)|0,i=i+Math.imul(w,rt)|0,o=o+Math.imul(w,nt)|0,n=n+Math.imul(v,ot)|0,i=i+Math.imul(v,at)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,n=n+Math.imul(h,ht)|0,i=i+Math.imul(h,lt)|0,i=i+Math.imul(l,ht)|0,o=o+Math.imul(l,lt)|0;var Et=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(F,q),i=Math.imul(F,z),i=i+Math.imul(D,q)|0,o=Math.imul(D,z),n=n+Math.imul(N,V)|0,i=i+Math.imul(N,K)|0,i=i+Math.imul(B,V)|0,o=o+Math.imul(B,K)|0,n=n+Math.imul(R,G)|0,i=i+Math.imul(R,W)|0,i=i+Math.imul(O,G)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(T,X)|0,i=i+Math.imul(T,$)|0,i=i+Math.imul(I,X)|0,o=o+Math.imul(I,$)|0,n=n+Math.imul(S,J)|0,i=i+Math.imul(S,tt)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(E,rt)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(_,ot)|0,i=i+Math.imul(_,at)|0,i=i+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,n=n+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ht)|0,i=i+Math.imul(p,lt)|0,i=i+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0,n=n+Math.imul(h,pt)|0,i=i+Math.imul(h,mt)|0,i=i+Math.imul(l,pt)|0,o=o+Math.imul(l,mt)|0;var xt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(F,V),i=Math.imul(F,K),i=i+Math.imul(D,V)|0,o=Math.imul(D,K),n=n+Math.imul(N,G)|0,i=i+Math.imul(N,W)|0,i=i+Math.imul(B,G)|0,o=o+Math.imul(B,W)|0,n=n+Math.imul(R,X)|0,i=i+Math.imul(R,$)|0,i=i+Math.imul(O,X)|0,o=o+Math.imul(O,$)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(S,rt)|0,i=i+Math.imul(S,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,at)|0,i=i+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,n=n+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,i=i+Math.imul(w,ut)|0,o=o+Math.imul(w,ct)|0,n=n+Math.imul(v,ht)|0,i=i+Math.imul(v,lt)|0,i=i+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var St=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(F,G),i=Math.imul(F,W),i=i+Math.imul(D,G)|0,o=Math.imul(D,W),n=n+Math.imul(N,X)|0,i=i+Math.imul(N,$)|0,i=i+Math.imul(B,X)|0,o=o+Math.imul(B,$)|0,n=n+Math.imul(R,J)|0,i=i+Math.imul(R,tt)|0,i=i+Math.imul(O,J)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(S,ot)|0,i=i+Math.imul(S,at)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ct)|0,i=i+Math.imul(E,ut)|0,o=o+Math.imul(E,ct)|0,n=n+Math.imul(_,ht)|0,i=i+Math.imul(_,lt)|0,i=i+Math.imul(w,ht)|0,o=o+Math.imul(w,lt)|0,n=n+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(F,X),i=Math.imul(F,$),i=i+Math.imul(D,X)|0,o=Math.imul(D,$),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(B,J)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(R,rt)|0,i=i+Math.imul(R,nt)|0,i=i+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,at)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(S,ut)|0,i=i+Math.imul(S,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(k,ht)|0,i=i+Math.imul(k,lt)|0,i=i+Math.imul(E,ht)|0,o=o+Math.imul(E,lt)|0,n=n+Math.imul(_,pt)|0,i=i+Math.imul(_,mt)|0,i=i+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var Ct=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(F,J),i=Math.imul(F,tt),i=i+Math.imul(D,J)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(R,ot)|0,i=i+Math.imul(R,at)|0,i=i+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ct)|0,n=n+Math.imul(S,ht)|0,i=i+Math.imul(S,lt)|0,i=i+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var Tt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(F,rt),i=Math.imul(F,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,at)|0,i=i+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,n=n+Math.imul(R,ut)|0,i=i+Math.imul(R,ct)|0,i=i+Math.imul(O,ut)|0,o=o+Math.imul(O,ct)|0,n=n+Math.imul(T,ht)|0,i=i+Math.imul(T,lt)|0,i=i+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0,n=n+Math.imul(S,pt)|0,i=i+Math.imul(S,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var It=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(F,ot),i=Math.imul(F,at),i=i+Math.imul(D,ot)|0,o=Math.imul(D,at),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ct)|0,i=i+Math.imul(B,ut)|0,o=o+Math.imul(B,ct)|0,n=n+Math.imul(R,ht)|0,i=i+Math.imul(R,lt)|0,i=i+Math.imul(O,ht)|0,o=o+Math.imul(O,lt)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Pt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(F,ut),i=Math.imul(F,ct),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ct),n=n+Math.imul(N,ht)|0,i=i+Math.imul(N,lt)|0,i=i+Math.imul(B,ht)|0,o=o+Math.imul(B,lt)|0,n=n+Math.imul(R,pt)|0,i=i+Math.imul(R,mt)|0,i=i+Math.imul(O,pt)|0,o=o+Math.imul(O,mt)|0;var Rt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(F,ht),i=Math.imul(F,lt),i=i+Math.imul(D,ht)|0,o=Math.imul(D,lt),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(B,pt)|0,o=o+Math.imul(B,mt)|0;var Ot=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(F,pt),i=Math.imul(F,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var jt=(c+n|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,u[0]=bt,u[1]=vt,u[2]=yt,u[3]=gt,u[4]=_t,u[5]=wt,u[6]=Mt,u[7]=kt,u[8]=Et,u[9]=xt,u[10]=St,u[11]=At,u[12]=Ct,u[13]=Tt,u[14]=It,u[15]=Pt,u[16]=Rt,u[17]=Ot,u[18]=jt,0!==c&&(u[19]=c,r.length++),r};Math.imul||(E=c),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?E(this,t,e):r<63?c(this,t,e):r<1024?f(this,t,e):h(this,t,e)},l.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},l.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},l.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},l.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var h=u,l=c,d=0;d<a;d++){var p=r[f+d],m=n[f+d],b=r[f+d+a],v=n[f+d+a],y=h*b-l*v;v=h*v+l*b,b=y,r[f+d]=p+b,n[f+d]=m+v,r[f+d+a]=p-b,n[f+d+a]=m-v,d!==s&&(y=u*h-c*l,l=u*l+c*h,h=y)}},l.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},l.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},l.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},l.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},l.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},l.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,h,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*h[d];u[d]=s[d]*h[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),h(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=u(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){n("number"===typeof t&&t>=0);var i;i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var h=0|this.words[c];this.words[c]=f<<26-o|h>>>o,f=h&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o=t.length+r;this._expand(o);var a,s=0;for(i=0;i<t.length;i++){a=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;a-=67108863&u,s=(a>>26)-(u/67108864|0),this.words[i+r]=67108863&a}for(;i<this.length-r;i++)a=(0|this.words[i+r])+s,s=a>>26,this.words[i+r]=67108863&a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)a=-(0|this.words[i])+s,s=a>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){s=new o(null),s.length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var h=u-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){if(n(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var i,a,s;return 0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);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){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var f=r.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()||a.isOdd())&&(i.iadd(f),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(e.iushrn(u);u-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var f=0,h=1;0===(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a)):(r.isub(e),a.isub(i))}var l;return l=0===e.cmpn(1)?i:a,l.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(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=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 r;if(this.length>1)r=1;else{e&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];r=i===t?0:i<t?-1:1}return 0!==this.negative?0|-r:r},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var x={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,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},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 r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[n-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,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(m,d),i(b,d),i(v,d),v.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(x[t])return x[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 x[t]=e,e},y.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},y.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(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 r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},y.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},y.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},y.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var m=d,b=0;0!==m.cmp(s);b++)m=m.redSqr();n(b<p);var v=this.pow(h,new o(1).iushln(p-b-1));l=l.redMul(v),h=v.redSqr(),d=d.redMul(h),p=b}return l},y.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},y.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],f=u-1;f>=0;f--){var h=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=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 r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).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 r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}("undefined"===typeof t||t,this)}).call(e,r(18)(t))},function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=r,r.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},function(t,e,r){function n(t,e){for(var r in t)e[r]=t[r]}function i(t,e,r){return a(t,e,r)}var o=r(0),a=o.Buffer;a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=o:(n(o,e),e.Buffer=i),n(a,i),i.from=function(t,e,r){if("number"===typeof t)throw new TypeError("Argument must not be a number");return a(t,e,r)},i.alloc=function(t,e,r){if("number"!==typeof t)throw new TypeError("Argument must be a number");var n=a(t);return void 0!==e?"string"===typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},i.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return a(t)},i.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},function(t,e,r){var n=r(5),i=r(11),o=r(188),a=r(78),s=function(t){return n.isNumber(t)&&(t=Math.trunc(t)),new a(i.toTwosComplement(t).replace("0x",""))},u=function(t){if(!i.isHexStrict(t))throw new Error('Given parameter is not bytes: "'+t+'"');var e=t.replace(/^0x/i,"");if(e.length%2!==0)throw new Error('Given parameter bytes has an invalid length: "'+t+'"');if(e.length>64)throw new Error('Given parameter bytes is too long: "'+t+'"');var r=Math.floor((e.length+63)/64);return e=i.padRight(e,64*r),new a(e)},c=function(t){if(!i.isHexStrict(t))throw new Error('Given parameter is not bytes: "'+t+'"');var e=t.replace(/^0x/i,"");if(e.length%2!==0)throw new Error('Given parameter bytes has an invalid length: "'+t+'"');var r=e.length/2,n=Math.floor((e.length+63)/64);return e=i.padRight(e,64*n),new a(s(r).value+e)},f=function(t){var e=i.utf8ToHex(t).replace(/^0x/i,""),r=e.length/2,n=Math.floor((e.length+63)/64);return e=i.padRight(e,64*n),new a(s(r).value+e)},h=function(t){return new a("000000000000000000000000000000000000000000000000000000000000000"+(t?"1":"0"))},l=function(t){return"1"===new o(t.substr(0,1),16).toString(2).substr(0,1)},d=function(t){var e=t.staticPart()||"0";return l(e)?new o(e,16).fromTwos(256).toString(10):new o(e,16).toString(10)},p=function(t,e){var r=t.staticPart();if(!r&&t.rawValue)throw new Error("Couldn't decode "+e+" from ABI: 0x"+t.rawValue);return new o(r,16).toString(10)},m=function(t,e){var r=t.staticPart();if(!r)throw new Error("Couldn't decode "+e+" from ABI: 0x"+t.rawValue);return"0000000000000000000000000000000000000000000000000000000000000001"===r},b=function(t,e){var r=e.match(/^bytes([0-9]*)/),n=parseInt(r[1]);if(t.staticPart().slice(0,2*n).length!==2*n)throw new Error("Couldn't decode "+e+" from ABI: 0x"+t.rawValue+" The size doesn't match.");return"0x"+t.staticPart().slice(0,2*n)},v=function(t){var e=2*new o(t.dynamicPart().slice(0,64),16).toNumber();return"0x"+t.dynamicPart().substr(64,e)},y=function(t){var e=t.dynamicPart().slice(0,64);if(e){var r=2*new o(e,16).toNumber();return r?i.hexToUtf8("0x"+t.dynamicPart().substr(64,r).replace(/^0x/i,"")):""}throw new Error("ERROR: The returned value is not a convertible string:"+e)},g=function(t){var e=t.staticPart();return i.toChecksumAddress("0x"+e.slice(e.length-40,e.length))};t.exports={formatInputInt:s,formatInputBytes:u,formatInputDynamicBytes:c,formatInputString:f,formatInputBool:h,formatOutputInt:d,formatOutputUInt:p,formatOutputBool:m,formatOutputBytes:b,formatOutputDynamicBytes:v,formatOutputString:y,formatOutputAddress:g,toTwosComplement:i.toTwosComplement}},function(t,e,r){"use strict";function n(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"===typeof t)if(e){if("hex"===e)for(t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!==0&&(t="0"+t),n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var n=0;n<t.length;n++){var i=t.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}else for(n=0;n<t.length;n++)r[n]=0|t[n];return r}function i(t){for(var e="",r=0;r<t.length;r++)e+=s(t[r].toString(16));return e}function o(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t,e){for(var r="",n=0;n<t.length;n++){var i=t[n];"little"===e&&(i=o(i)),r+=u(i.toString(16))}return r}function s(t){return 1===t.length?"0"+t:t}function u(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}function c(t,e,r,n){var i=r-e;C(i%4===0);for(var o=new Array(i/4),a=0,s=e;a<o.length;a++,s+=4){var u;u="big"===n?t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3]:t[s+3]<<24|t[s+2]<<16|t[s+1]<<8|t[s],o[a]=u>>>0}return o}function f(t,e){for(var r=new Array(4*t.length),n=0,i=0;n<t.length;n++,i+=4){var o=t[n];"big"===e?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r}function h(t,e){return t>>>e|t<<32-e}function l(t,e){return t<<e|t>>>32-e}function d(t,e){return t+e>>>0}function p(t,e,r){return t+e+r>>>0}function m(t,e,r,n){return t+e+r+n>>>0}function b(t,e,r,n,i){return t+e+r+n+i>>>0}function v(t,e,r,n){var i=t[e],o=t[e+1],a=n+o>>>0,s=(a<n?1:0)+r+i;t[e]=s>>>0,t[e+1]=a}function y(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0}function g(t,e,r,n){return e+n>>>0}function _(t,e,r,n,i,o,a,s){var u=0,c=e;return c=c+n>>>0,u+=c<e?1:0,c=c+o>>>0,u+=c<o?1:0,c=c+s>>>0,u+=c<s?1:0,t+r+i+a+u>>>0}function w(t,e,r,n,i,o,a,s){return e+n+o+s>>>0}function M(t,e,r,n,i,o,a,s,u,c){var f=0,h=e;return h=h+n>>>0,f+=h<e?1:0,h=h+o>>>0,f+=h<o?1:0,h=h+s>>>0,f+=h<s?1:0,h=h+c>>>0,f+=h<c?1:0,t+r+i+a+u+f>>>0}function k(t,e,r,n,i,o,a,s,u,c){return e+n+o+s+c>>>0}function E(t,e,r){return(e<<32-r|t>>>r)>>>0}function x(t,e,r){return(t<<32-r|e>>>r)>>>0}function S(t,e,r){return t>>>r}function A(t,e,r){return(t<<32-r|e>>>r)>>>0}var C=r(13),T=r(1);e.inherits=T,e.toArray=n,e.toHex=i,e.htonl=o,e.toHex32=a,e.zero2=s,e.zero8=u,e.join32=c,e.split32=f,e.rotr32=h,e.rotl32=l,e.sum32=d,e.sum32_3=p,e.sum32_4=m,e.sum32_5=b,e.sum64=v,e.sum64_hi=y,e.sum64_lo=g,e.sum64_4_hi=_,e.sum64_4_lo=w,e.sum64_5_hi=M,e.sum64_5_lo=k,e.rotr64_hi=E,e.rotr64_lo=x,e.shr64_hi=S,e.shr64_lo=A},function(t,e,r){"use strict";function n(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"===typeof t)if(e){if("hex"===e)for(t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!==0&&(t="0"+t),n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var n=0;n<t.length;n++){var i=t.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}else for(n=0;n<t.length;n++)r[n]=0|t[n];return r}function i(t){for(var e="",r=0;r<t.length;r++)e+=s(t[r].toString(16));return e}function o(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t,e){for(var r="",n=0;n<t.length;n++){var i=t[n];"little"===e&&(i=o(i)),r+=u(i.toString(16))}return r}function s(t){return 1===t.length?"0"+t:t}function u(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}function c(t,e,r,n){var i=r-e;C(i%4===0);for(var o=new Array(i/4),a=0,s=e;a<o.length;a++,s+=4){var u;u="big"===n?t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3]:t[s+3]<<24|t[s+2]<<16|t[s+1]<<8|t[s],o[a]=u>>>0}return o}function f(t,e){for(var r=new Array(4*t.length),n=0,i=0;n<t.length;n++,i+=4){var o=t[n];"big"===e?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r}function h(t,e){return t>>>e|t<<32-e}function l(t,e){return t<<e|t>>>32-e}function d(t,e){return t+e>>>0}function p(t,e,r){return t+e+r>>>0}function m(t,e,r,n){return t+e+r+n>>>0}function b(t,e,r,n,i){return t+e+r+n+i>>>0}function v(t,e,r,n){var i=t[e],o=t[e+1],a=n+o>>>0,s=(a<n?1:0)+r+i;t[e]=s>>>0,t[e+1]=a}function y(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0}function g(t,e,r,n){return e+n>>>0}function _(t,e,r,n,i,o,a,s){var u=0,c=e;return c=c+n>>>0,u+=c<e?1:0,c=c+o>>>0,u+=c<o?1:0,c=c+s>>>0,u+=c<s?1:0,t+r+i+a+u>>>0}function w(t,e,r,n,i,o,a,s){return e+n+o+s>>>0}function M(t,e,r,n,i,o,a,s,u,c){var f=0,h=e;return h=h+n>>>0,f+=h<e?1:0,h=h+o>>>0,f+=h<o?1:0,h=h+s>>>0,f+=h<s?1:0,h=h+c>>>0,f+=h<c?1:0,t+r+i+a+u+f>>>0}function k(t,e,r,n,i,o,a,s,u,c){return e+n+o+s+c>>>0}function E(t,e,r){return(e<<32-r|t>>>r)>>>0}function x(t,e,r){return(t<<32-r|e>>>r)>>>0}function S(t,e,r){return t>>>r}function A(t,e,r){return(t<<32-r|e>>>r)>>>0}var C=r(25),T=r(6);e.inherits=T,e.toArray=n,e.toHex=i,e.htonl=o,e.toHex32=a,e.zero2=s,e.zero8=u,e.join32=c,e.split32=f,e.rotr32=h,e.rotl32=l,e.sum32=d,e.sum32_3=p,e.sum32_4=m,e.sum32_5=b,e.sum64=v,e.sum64_hi=y,e.sum64_lo=g,e.sum64_4_hi=_,e.sum64_4_lo=w,e.sum64_5_hi=M,e.sum64_5_lo=k,e.rotr64_hi=E,e.rotr64_lo=x,e.shr64_hi=S,e.shr64_lo=A},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){function n(){i.call(this)}t.exports=n;var i=r(53).EventEmitter;r(1)(n,i),n.Readable=r(54),n.Writable=r(206),n.Duplex=r(207),n.Transform=r(208),n.PassThrough=r(209),n.Stream=n,n.prototype.pipe=function(t,e){function r(e){t.writable&&!1===t.write(e)&&c.pause&&c.pause()}function n(){c.readable&&c.resume&&c.resume()}function o(){f||(f=!0,t.end())}function a(){f||(f=!0,"function"===typeof t.destroy&&t.destroy())}function s(t){if(u(),0===i.listenerCount(this,"error"))throw t}function u(){c.removeListener("data",r),t.removeListener("drain",n),c.removeListener("end",o),c.removeListener("close",a),c.removeListener("error",s),t.removeListener("error",s),c.removeListener("end",u),c.removeListener("close",u),t.removeListener("close",u)}var c=this;c.on("data",r),t.on("drain",n),t._isStdio||e&&!1===e.end||(c.on("end",o),c.on("close",a));var f=!1;return c.on("error",s),t.on("error",s),c.on("end",u),c.on("close",u),t.on("close",u),t.emit("pipe",c),t}},function(t,e,r){function n(t){o.call(this),this.hashMode="string"===typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}var i=r(2).Buffer,o=r(19).Transform,a=r(42).StringDecoder;r(1)(n,o),n.prototype.update=function(t,e,r){"string"===typeof t&&(t=i.from(t,e));var n=this._update(t);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},n.prototype.setAutoPadding=function(){},n.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},n.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},n.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},n.prototype._transform=function(t,e,r){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){n=t}finally{r(n)}},n.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},n.prototype._finalOrDigest=function(t){var e=this.__final()||i.alloc(0);return t&&(e=this._toString(e,t,!0)),e},n.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new a(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return r&&(n+=this._decoder.end()),n},t.exports=n},function(t,e,r){"use strict";var n=r(156),i=r(182);t.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(e){return t.setProvider(e)},enumerable:!0,configurable:!0}),e[0]&&e[0]._requestManager?t._requestManager=new n.Manager(e[0].currentProvider):(t._requestManager=new n.Manager,t._requestManager.setProvider(e[0],e[1])),t.givenProvider=n.Manager.givenProvider,t.providers=n.Manager.providers,t._provider=t._requestManager.provider,t.setProvider||(t.setProvider=function(e,r){return t._requestManager.setProvider(e,r),t._provider=t._requestManager.provider,!0}),t.BatchRequest=n.BatchManager.bind(null,t._requestManager),t.extend=i(t)},addProviders:function(t){t.givenProvider=n.Manager.givenProvider,t.providers=n.Manager.providers}}},function(t,e,r){"use strict";var n=r(5),i=r(7).errors,o=r(7).formatters,a=r(11),s=r(74),u=r(39).subscriptions,c=function(t){if(!t.call||!t.name)throw new Error('When creating a method you need to provide at least the "name" and "call" property.');this.name=t.name,this.call=t.call,this.params=t.params||0,this.inputFormatter=t.inputFormatter,this.outputFormatter=t.outputFormatter,this.transformPayload=t.transformPayload,this.extraFormatters=t.extraFormatters,this.requestManager=t.requestManager,this.accounts=t.accounts,this.defaultBlock=t.defaultBlock||"latest",this.defaultAccount=t.defaultAccount||null};c.prototype.setRequestManager=function(t,e){this.requestManager=t,e&&(this.accounts=e)},c.prototype.createFunction=function(t,e){var r=this.buildCall();return r.call=this.call,this.setRequestManager(t||this.requestManager,e||this.accounts),r},c.prototype.attachToObject=function(t){var e=this.buildCall();e.call=this.call;var r=this.name.split(".");r.length>1?(t[r[0]]=t[r[0]]||{},t[r[0]][r[1]]=e):t[r[0]]=e},c.prototype.getCall=function(t){return n.isFunction(this.call)?this.call(t):this.call},c.prototype.extractCallback=function(t){if(n.isFunction(t[t.length-1]))return t.pop()},c.prototype.validateArgs=function(t){if(t.length!==this.params)throw i.InvalidNumberOfParams(t.length,this.params,this.name)},c.prototype.formatInput=function(t){var e=this;return this.inputFormatter?this.inputFormatter.map(function(r,n){return r?r.call(e,t[n]):t[n]}):t},c.prototype.formatOutput=function(t){var e=this;return n.isArray(t)?t.map(function(t){return e.outputFormatter&&t?e.outputFormatter(t):t}):this.outputFormatter&&t?this.outputFormatter(t):t},c.prototype.toPayload=function(t){var e=this.getCall(t),r=this.extractCallback(t),n=this.formatInput(t);this.validateArgs(n);var i={method:e,params:n,callback:r};return this.transformPayload&&(i=this.transformPayload(i)),i},c.prototype._confirmTransaction=function(t,e,r){var i=this,f=!1,h=!0,l=0,d=0,p=null,m=n.isObject(r.params[0])&&r.params[0].gas?r.params[0].gas:null,b=n.isObject(r.params[0])&&r.params[0].data&&r.params[0].from&&!r.params[0].to,v=[new c({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:o.outputTransactionReceiptFormatter}),new c({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[o.inputAddressFormatter,o.inputDefaultBlockNumberFormatter]}),new u({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:o.outputBlockFormatter}}})],y={};n.each(v,function(t){t.attachToObject(y),t.requestManager=i.requestManager});var g=function(r,n,o,u){return r?(o.unsubscribe(),f=!0,a._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:r},t.eventEmitter,t.reject)):(o||(o={unsubscribe:function(){clearInterval(p)}}),(u?s.resolve(u):y.getTransactionReceipt(e)).catch(function(e){o.unsubscribe(),f=!0,a._fireError({message:"Failed to check for transaction receipt:",data:e},t.eventEmitter,t.reject)}).then(function(e){if(!e||!e.blockHash)throw new Error("Receipt missing or blockHash null");return i.extraFormatters&&i.extraFormatters.receiptFormatter&&(e=i.extraFormatters.receiptFormatter(e)),t.eventEmitter.listeners("confirmation").length>0&&(t.eventEmitter.emit("confirmation",d,e),h=!1,25===++d&&(o.unsubscribe(),t.eventEmitter.removeAllListeners())),e}).then(function(e){if(b&&!f){if(!e.contractAddress)return h&&(o.unsubscribe(),f=!0),a._fireError(new Error("The transaction receipt didn't contain a contract address."),t.eventEmitter,t.reject);y.getCode(e.contractAddress,function(r,n){n&&(n.length>2?(t.eventEmitter.emit("receipt",e),i.extraFormatters&&i.extraFormatters.contractDeployFormatter?t.resolve(i.extraFormatters.contractDeployFormatter(e)):t.resolve(e),h&&t.eventEmitter.removeAllListeners()):a._fireError(new Error("The contract code couldn't be stored, please check your gas limit."),t.eventEmitter,t.reject),h&&o.unsubscribe(),f=!0)})}return e}).then(function(e){b||f||(e.outOfGas||m&&m===e.gasUsed?(e&&(e=JSON.stringify(e,null,2)),a._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),h&&t.eventEmitter.removeAllListeners()),h&&o.unsubscribe(),f=!0)}).catch(function(){if(++l-1>=50)return o.unsubscribe(),f=!0,a._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)}))},_=function(){n.isFunction(this.requestManager.provider.on)?y.subscribe("newBlockHeaders",g):p=setInterval(g,1e3)}.bind(this);y.getTransactionReceipt(e).then(function(e){if(e&&e.blockHash)return t.eventEmitter.listeners("confirmation").length>0&&setTimeout(function(){f||_()},1e3),g(null,0,null,e);f||_()}).catch(function(){f||_()})};var f=function(t,e){return n.isNumber(t)?e.wallet[t]:n.isObject(t)&&t.address&&t.privateKey?t:e.wallet[t.toLowerCase()]};c.prototype.buildCall=function(){var t=this,e="eth_sendTransaction"===t.call||"eth_sendRawTransaction"===t.call,r=function(){var r=s(!e),i=t.toPayload(Array.prototype.slice.call(arguments)),o=function(n,o){try{o=t.formatOutput(o)}catch(t){n=t}if(o instanceof Error&&(n=o),n)return n.error&&(n=n.error),a._fireError(n,r.eventEmitter,r.reject,i.callback);i.callback&&i.callback(null,o),e?(r.eventEmitter.emit("transactionHash",o),t._confirmTransaction(r,o,i)):n||r.resolve(o)},u=function(e){i.method="eth_sendRawTransaction",i.params=[e.rawTransaction],t.requestManager.send(i,o)},h=function(t,e){if(e&&e.accounts&&e.accounts.wallet&&e.accounts.wallet.length){var i;if("eth_sendTransaction"===t.method){var a=t.params[0];if((i=f(n.isObject(a)?a.from:null,e.accounts))&&i.privateKey){delete a.from;var s=e.accounts.signTransaction(a,i.privateKey);return n.isFunction(s.then)?s.then(u):u(s)}}else if("eth_sign"===t.method){var c=t.params[1];if((i=f(t.params[0],e.accounts))&&i.privateKey){var h=e.accounts.sign(c,i.privateKey);return t.callback&&t.callback(null,h.signature),void r.resolve(h.signature)}}}return e.requestManager.send(t,o)};if(e&&n.isObject(i.params[0])&&!i.params[0].gasPrice){new c({name:"getGasPrice",call:"eth_gasPrice",params:0}).createFunction(t.requestManager)(function(e,r){r&&(i.params[0].gasPrice=r),h(i,t)})}else h(i,t);return r.eventEmitter};return r.method=t,r.request=this.request.bind(this),r},c.prototype.request=function(){var t=this.toPayload(Array.prototype.slice.call(arguments));return t.format=this.formatOutput.bind(this),t},t.exports=c},function(t,e,r){var n=r(15),i=r(78),o=function(t){this._inputFormatter=t.inputFormatter,this._outputFormatter=t.outputFormatter};o.prototype.isType=function(t){throw"This method should be overwritten for type "+t},o.prototype.staticPartLength=function(t){return(this.nestedTypes(t)||["[1]"]).map(function(t){return parseInt(t.slice(1,-1),10)||1}).reduce(function(t,e){return t*e},32)},o.prototype.isDynamicArray=function(t){var e=this.nestedTypes(t);return!!e&&!e[e.length-1].match(/[0-9]{1,}/g)},o.prototype.isStaticArray=function(t){var e=this.nestedTypes(t);return!!e&&!!e[e.length-1].match(/[0-9]{1,}/g)},o.prototype.staticArrayLength=function(t){var e=this.nestedTypes(t);return e?parseInt(e[e.length-1].match(/[0-9]{1,}/g)||1):1},o.prototype.nestedName=function(t){var e=this.nestedTypes(t);return e?t.substr(0,t.length-e[e.length-1].length):t},o.prototype.isDynamicType=function(){return!1},o.prototype.nestedTypes=function(t){return t.match(/(\[[0-9]*\])/g)},o.prototype.encode=function(t,e){var r=this;return this.isDynamicArray(e)?function(){var i=t.length,o=r.nestedName(e),a=[];return a.push(n.formatInputInt(i).encode()),t.forEach(function(t){a.push(r.encode(t,o))}),a}():this.isStaticArray(e)?function(){for(var n=r.staticArrayLength(e),i=r.nestedName(e),o=[],a=0;a<n;a++)o.push(r.encode(t[a],i));return o}():this._inputFormatter(t,e).encode()},o.prototype.decode=function(t,e,r){var n=this;if(this.isDynamicArray(r))return function(){for(var i=parseInt("0x"+t.substr(2*e,64)),o=parseInt("0x"+t.substr(2*i,64)),a=i+32,s=n.nestedName(r),u=n.staticPartLength(s),c=32*Math.floor((u+31)/32),f=[],h=0;h<o*c;h+=c)f.push(n.decode(t,a+h,s));return f}();if(this.isStaticArray(r))return function(){for(var i=n.staticArrayLength(r),o=e,a=n.nestedName(r),s=n.staticPartLength(a),u=32*Math.floor((s+31)/32),c=[],f=0;f<i*u;f+=u)c.push(n.decode(t,o+f,a));return c}();if(this.isDynamicType(r))return function(){var o=parseInt("0x"+t.substr(2*e,64)),a=parseInt("0x"+t.substr(2*o,64)),s=Math.floor((a+31)/32),u=new i(t.substr(2*o,64*(1+s)),0,t);return n._outputFormatter(u,r)}();var o=this.staticPartLength(r),a=new i(t.substr(2*e,2*o),void 0,t);return this._outputFormatter(a,r)},t.exports=o},function(t,e,r){"use strict";function n(t){if(!(this instanceof n))return new n(t);c.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||a(o,this)}function o(t){t.end()}var a=r(41),s=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=n;var u=r(32);u.inherits=r(1);var c=r(79),f=r(55);u.inherits(n,c);for(var h=s(f.prototype),l=0;l<h.length;l++){var d=h[l];n.prototype[d]||(n.prototype[d]=f.prototype[d])}Object.defineProperty(n.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),n.prototype._destroy=function(t,e){this.push(null),this.end(),a(e,t)}},function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=r,r.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},function(t,e,r){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=r(27),e.createHash=e.Hash=r(31),e.createHmac=e.Hmac=r(85);var n=r(215),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return o};var a=r(87);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var s=r(217);e.Cipher=s.Cipher,e.createCipher=s.createCipher,e.Cipheriv=s.Cipheriv,e.createCipheriv=s.createCipheriv,e.Decipher=s.Decipher,e.createDecipher=s.createDecipher,e.Decipheriv=s.Decipheriv,e.createDecipheriv=s.createDecipheriv,e.getCiphers=s.getCiphers,e.listCiphers=s.listCiphers;var u=r(236);e.DiffieHellmanGroup=u.DiffieHellmanGroup,e.createDiffieHellmanGroup=u.createDiffieHellmanGroup,e.getDiffieHellman=u.getDiffieHellman,e.createDiffieHellman=u.createDiffieHellman,e.DiffieHellman=u.DiffieHellman;var c=r(241);e.createSign=c.createSign,e.Sign=c.Sign,e.createVerify=c.createVerify,e.Verify=c.Verify,e.createECDH=r(279);var f=r(280);e.publicEncrypt=f.publicEncrypt,e.privateEncrypt=f.privateEncrypt,e.publicDecrypt=f.publicDecrypt,e.privateDecrypt=f.privateDecrypt;var h=r(283);e.randomFill=h.randomFill,e.randomFillSync=h.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(t,e,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}function o(t,r){if(t>65536)throw new Error("requested too many random bytes");var i=new e.Uint8Array(t);t>0&&s.getRandomValues(i);var o=a.from(i.buffer);return"function"===typeof r?n.nextTick(function(){r(null,o)}):o}var a=r(2).Buffer,s=e.crypto||e.msCrypto;s&&s.getRandomValues?t.exports=o:t.exports=i}).call(e,r(4),r(8))},function(t,e,r){function n(t,e){this._block=i.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}var i=r(2).Buffer;n.prototype.update=function(t,e){"string"===typeof t&&(e=e||"utf8",t=i.from(t,e));for(var r=this._block,n=this._blockSize,o=t.length,a=this._len,s=0;s<o;){for(var u=a%n,c=Math.min(o-s,n-u),f=0;f<c;f++)r[u+f]=t[s+f];a+=c,s+=c,a%n===0&&this._update(r)}return this._len+=o,this},n.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=4294967295&r,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=n},function(t,e,r){function n(t,e){this._block=i.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}var i=r(14).Buffer;n.prototype.update=function(t,e){"string"===typeof t&&(e=e||"utf8",t=i.from(t,e));for(var r=this._block,n=this._blockSize,o=t.length,a=this._len,s=0;s<o;){for(var u=a%n,c=Math.min(o-s,n-u),f=0;f<c;f++)r[u+f]=t[s+f];a+=c,s+=c,a%n===0&&this._update(r)}return this._len+=o,this},n.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=4294967295&r,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=n},function(t,e,r){function n(t,e){this._id=t,this._clearFn=e}var i=Function.prototype.apply;e.setTimeout=function(){return new n(i.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new n(i.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},r(184),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e,r){"use strict";(function(e){function n(t){c.call(this,"digest"),this._hash=t,this.buffers=[]}function i(t){c.call(this,"digest"),this._hash=t}var o=r(1),a=r(51),s=r(52),u=r(56),c=r(20);o(n,c),n.prototype._update=function(t){this.buffers.push(t)},n.prototype._final=function(){var t=e.concat(this.buffers),r=this._hash(t);return this.buffers=null,r},o(i,c),i.prototype._update=function(t){this._hash.update(t)},i.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return t=t.toLowerCase(),"md5"===t?new n(a):new i("rmd160"===t||"ripemd160"===t?new s:u(t))}}).call(e,r(0).Buffer)},function(t,e,r){(function(t){function r(t){return Array.isArray?Array.isArray(t):"[object Array]"===b(t)}function n(t){return"boolean"===typeof t}function i(t){return null===t}function o(t){return null==t}function a(t){return"number"===typeof t}function s(t){return"string"===typeof t}function u(t){return"symbol"===typeof t}function c(t){return void 0===t}function f(t){return"[object RegExp]"===b(t)}function h(t){return"object"===typeof t&&null!==t}function l(t){return"[object Date]"===b(t)}function d(t){return"[object Error]"===b(t)||t instanceof Error}function p(t){return"function"===typeof t}function m(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function b(t){return Object.prototype.toString.call(t)}e.isArray=r,e.isBoolean=n,e.isNull=i,e.isNullOrUndefined=o,e.isNumber=a,e.isString=s,e.isSymbol=u,e.isUndefined=c,e.isRegExp=f,e.isObject=h,e.isDate=l,e.isError=d,e.isFunction=p,e.isPrimitive=m,e.isBuffer=t.isBuffer}).call(e,r(0).Buffer)},function(t,e,r){(function(e){t.exports=function(t,r){for(var n=Math.min(t.length,r.length),i=new e(n),o=0;o<n;++o)i[o]=t[o]^r[o];return i}}).call(e,r(0).Buffer)},function(t,e,r){"use strict";function n(){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=r(16),o=r(13);e.BlockHash=n,n.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){t=this.pending;var r=t.length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=i.join32(t,0,t.length-r,this.endian);for(var n=0;n<t.length;n+=this._delta32)this._update(t,n,n+this._delta32)}return this},n.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},n.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=t>>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},function(t,e,r){var n=e;n.bignum=r(3),n.define=r(265).define,n.base=r(36),n.constants=r(104),n.decoders=r(271),n.encoders=r(273)},function(t,e,r){var n=e;n.Reporter=r(268).Reporter,n.DecoderBuffer=r(103).DecoderBuffer,n.EncoderBuffer=r(103).EncoderBuffer,n.Node=r(269)},function(t,e,r){"use strict";function n(){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=r(17),o=r(25);e.BlockHash=n,n.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){t=this.pending;var r=t.length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=i.join32(t,0,t.length-r,this.endian);for(var n=0;n<t.length;n+=this._delta32)this._update(t,n,n+this._delta32)}return this},n.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},n.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=t>>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},function(t,e,r){"use strict";t.exports=r(138)},function(t,e,r){"use strict";var n=r(185),i=function(t){this.name=t.name,this.type=t.type,this.subscriptions=t.subscriptions||{},this.requestManager=null};i.prototype.setRequestManager=function(t){this.requestManager=t},i.prototype.attachToObject=function(t){var e=this.buildCall();e.call=this.call;var r=this.name.split(".");r.length>1?(t[r[0]]=t[r[0]]||{},t[r[0]][r[1]]=e):t[r[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 n({subscription:t.subscriptions[arguments[0]],requestManager:t.requestManager,type:t.type});return e.subscribe.apply(e,arguments)}},t.exports={subscriptions:i,subscription:n}},function(t,e,r){"use strict";var n=r(21),i=r(22),o=r(11),a=function(){var t=this;n.packageInit(this,arguments),[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})].forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})};n.addProviders(a),t.exports=a},function(t,e,r){"use strict";(function(e){function r(t,r,n,i){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,r)});case 3:return e.nextTick(function(){t.call(null,r,n)});case 4:return e.nextTick(function(){t.call(null,r,n,i)});default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return e.nextTick(function(){t.apply(null,o)})}}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports=r:t.exports=e.nextTick}).call(e,r(8))},function(t,e,r){"use strict";function n(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=n(t);if("string"!==typeof e&&(y.isEncoding===g||!g(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=l,this.end=d,e=4;break;case"utf8":this.fillLast=c,e=4;break;case"base64":this.text=p,this.end=m,e=3;break;default:return this.write=b,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=y.allocUnsafe(e)}function a(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:-1}function s(t,e,r){var n=e.length-1;if(n<r)return 0;var i=a(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r?0:(i=a(e[n]))>=0?(i>0&&(t.lastNeed=i-2),i):--n<r?0:(i=a(e[n]),i>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0)}function u(t,e,r){if(128!==(192&e[0]))return t.lastNeed=0,"\ufffd".repeat(r);if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"\ufffd".repeat(r+1);if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"\ufffd".repeat(r+2)}}function c(t){var e=this.lastTotal-this.lastNeed,r=u(this,t,e);return void 0!==r?r: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){var r=s(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\ufffd".repeat(this.lastTotal-this.lastNeed):e}function l(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function d(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function p(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?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-r))}function m(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function b(t){return t.toString(this.encoding)}function v(t){return t&&t.length?this.write(t):""}var y=r(2).Buffer,g=y.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}};e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=h,o.prototype.text=f,o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,r){function n(t,e,r,n){if(i.isBuffer(t)||(t=i.from(t,"binary")),e&&(i.isBuffer(e)||(e=i.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=i.alloc(a),u=i.alloc(n||0),c=i.alloc(0);a>0||n>0;){var f=new o;f.update(c),f.update(t),e&&f.update(e),c=f.digest();var h=0;if(a>0){var l=s.length-a;h=Math.min(a,c.length),c.copy(s,l,0,h),a-=h}if(h<c.length&&n>0){var d=u.length-n,p=Math.min(n,c.length-h);c.copy(u,d,h,h+p),n-=p}}return c.fill(0),{key:s,iv:u}}var i=r(2).Buffer,o=r(218);t.exports=n},function(t,e,r){function n(t){s.isBuffer(t)||(t=s.from(t));for(var e=t.length/4|0,r=new Array(e),n=0;n<e;n++)r[n]=t.readUInt32BE(4*n);return r}function i(t){for(;0<t.length;t++)t[0]=0}function o(t,e,r,n,i){for(var o,a,s,u,c=r[0],f=r[1],h=r[2],l=r[3],d=t[0]^e[0],p=t[1]^e[1],m=t[2]^e[2],b=t[3]^e[3],v=4,y=1;y<i;y++)o=c[d>>>24]^f[p>>>16&255]^h[m>>>8&255]^l[255&b]^e[v++],a=c[p>>>24]^f[m>>>16&255]^h[b>>>8&255]^l[255&d]^e[v++],s=c[m>>>24]^f[b>>>16&255]^h[d>>>8&255]^l[255&p]^e[v++],u=c[b>>>24]^f[d>>>16&255]^h[p>>>8&255]^l[255&m]^e[v++],d=o,p=a,m=s,b=u;return o=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&b])^e[v++],a=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[b>>>8&255]<<8|n[255&d])^e[v++],s=(n[m>>>24]<<24|n[b>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^e[v++],u=(n[b>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^e[v++],o>>>=0,a>>>=0,s>>>=0,u>>>=0,[o,a,s,u]}function a(t){this._key=n(t),this._reset()}var s=r(2).Buffer,u=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[a]=c,n[c]=a;var f=t[a],h=t[f],l=t[h],d=257*t[c]^16843008*c;i[0][a]=d<<24|d>>>8,i[1][a]=d<<16|d>>>16,i[2][a]=d<<8|d>>>24,i[3][a]=d,d=16843009*l^65537*h^257*f^16843008*a,o[0][c]=d<<24|d>>>8,o[1][c]=d<<16|d>>>16,o[2][c]=d<<8|d>>>24,o[3][c]=d,0===a?a=s=1:(a=f^t[t[t[l^f]]],s^=t[t[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();a.blockSize=16,a.keySize=32,a.prototype.blockSize=a.blockSize,a.prototype.keySize=a.keySize,a.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),i=[],o=0;o<e;o++)i[o]=t[o];for(o=e;o<n;o++){var a=i[o-1];o%e===0?(a=a<<8|a>>>24,a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a],a^=u[o/e|0]<<24):e>6&&o%e===4&&(a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a]),i[o]=i[o-e]^a}for(var s=[],f=0;f<n;f++){var h=n-f,l=i[h-(f%4?0:4)];s[f]=f<4||h<=4?l:c.INV_SUB_MIX[0][c.SBOX[l>>>24]]^c.INV_SUB_MIX[1][c.SBOX[l>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[l>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&l]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=s},a.prototype.encryptBlockRaw=function(t){return t=n(t),o(t,this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},a.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=s.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},a.prototype.decryptBlock=function(t){t=n(t);var e=t[1];t[1]=t[3],t[3]=e;var r=o(t,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),i=s.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i},a.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},t.exports.AES=a},function(t,e,r){"use strict";var n=e;n.base=r(245),n.short=r(246),n.mont=r(247),n.edwards=r(248)},function(t,e,r){(function(e){function n(t){var r;"object"!==typeof t||e.isBuffer(t)||(r=t.passphrase,t=t.key),"string"===typeof t&&(t=new e(t));var n,a,u=s(t,r),c=u.tag,f=u.data;switch(c){case"CERTIFICATE":a=o.certificate.decode(f,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(a||(a=o.PublicKey.decode(f,"der")),n=a.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPublicKey.decode(a.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return a.subjectPrivateKey=a.subjectPublicKey,{type:"ec",data:a};case"1.2.840.10040.4.1":return a.algorithm.params.pub_key=o.DSAparam.decode(a.subjectPublicKey.data,"der"),{type:"dsa",data:a.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+c);case"ENCRYPTED PRIVATE KEY":f=o.EncryptedPrivateKey.decode(f,"der"),f=i(f,r);case"PRIVATE KEY":switch(a=o.PrivateKey.decode(f,"der"),n=a.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPrivateKey.decode(a.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:a.algorithm.curve,privateKey:o.ECPrivateKey.decode(a.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return a.algorithm.params.priv_key=o.DSAparam.decode(a.subjectPrivateKey,"der"),{type:"dsa",params:a.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+c);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 "+c)}}function i(t,r){var n=t.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=a[t.algorithm.decrypt.cipher.algo.join(".")],s=t.algorithm.decrypt.cipher.iv,f=t.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,l=c.pbkdf2Sync(r,n,i,h),d=u.createDecipheriv(o,l,s),p=[];return p.push(d.update(f)),p.push(d.final()),e.concat(p)}var o=r(264),a=r(276),s=r(277),u=r(57),c=r(87);t.exports=n,n.signature=o.signature}).call(e,r(0).Buffer)},function(t,e,r){"use strict";var n=e;n.base=r(288),n.short=r(289),n.mont=r(290),n.edwards=r(291)},function(t,e,r){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,u=n(t),c=1;c<arguments.length;c++){r=Object(arguments[c]);for(var f in r)o.call(r,f)&&(u[f]=r[f]);if(i){s=i(r);for(var h=0;h<s.length;h++)a.call(r,s[h])&&(u[s[h]]=r[s[h]])}}return u}},function(t,e,r){"use strict";function n(t){return function(){return t}}var i=function(){};i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(t){return t},t.exports=i},function(t,e,r){var n=(r(199),function(t,e){return parseInt(t.slice(2*e+2,2*e+4),16)}),i=function(t){var e=void 0;e="undefined"!==typeof window&&window.crypto&&window.crypto.getRandomValues?window.crypto.getRandomValues(new Uint8Array(t)):r(26).randomBytes(t);for(var n="0x",i=0;i<t;++i)n+=("00"+e[i].toString(16)).slice(-2);return n},o=function(t){return(t.length-2)/2},a=function(t){return"0x"+t.reduce(function(t,e){return t+e.slice(2)},"")},s=function(t,e,r){return"0x"+r.slice(2*t+2,2*e+2)},u=function(t){for(var e="0x",r=0,n=o(t);r<n;++r)e+=t.slice(2*(n-r),2*(n-r+1));return e},c=function t(e,r){return r.length===2*e+2?r:t(e,"0x0"+r.slice(2))},f=function t(e,r){return r.length===2*e+2?r:t(e,r+"0")},h=function(t){for(var e=[],r=2,n=t.length;r<n;r+=2)e.push(parseInt(t.slice(r,r+2),16));return e},l=function(t){for(var e="0x",r=0,n=t.length;r<n;++r){var i=t[r];e+=(i<16?"0":"")+i.toString(16)}return e},d=function(t){return new Uint8Array(h(t))},p=function(t){return l([].slice.call(t,0))},m=function(t){var e=t.toString(16);return e.length%2===0?"0x"+e:"0x0"+e},b=function(t){return parseInt(t.slice(2),16)},v=function(t,e){return t.concat(e.slice(2))},y=function(t){return"0x0"===t?"0x":t.length%2===0?t:"0x0"+t.slice(2)},g=function(t){return"0"===t[2]?"0x"+t.slice(3):t},_=function(t){for(var e="0x",r=0;r<t.length;++r)e+=("00"+t.charCodeAt(r).toString(16)).slice(-2);return e},w=function(t){for(var e="",r=2;r<t.length;r+=2)e+=String.fromCharCode(parseInt(t.slice(r,r+2),16));return e},M=function(t){for(var e=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},r="0x",n=0;n!=t.length;n++){var i=t.charCodeAt(n);if(i<128)r+=e(i);else{if(i<2048)r+=e(i>>6|192);else{if(i>55295&&i<56320){if(++n==t.length)return null;var o=t.charCodeAt(n);if(o<56320||o>57343)return null;i=65536+((1023&i)<<10)+(1023&o),r+=e(i>>18|240),r+=e(i>>12&63|128)}else r+=e(i>>12|224);r+=e(i>>6&63|128)}r+=e(63&i|128)}}return r},k=function(t){for(var e="",r=0,i=o(t);r<i;){var a=n(t,r++);if(a>127){if(a>191&&a<224){if(r>=i)return null;a=(31&a)<<6|63&n(t,r)}else if(a>223&&a<240){if(r+1>=i)return null;a=(15&a)<<12|(63&n(t,r))<<6|63&n(t,++r)}else{if(!(a>239&&a<248))return null;if(r+2>=i)return null;a=(7&a)<<18|(63&n(t,r))<<12|(63&n(t,++r))<<6|63&n(t,++r)}++r}if(a<=65535)e+=String.fromCharCode(a);else{if(!(a<=1114111))return null;a-=65536,e+=String.fromCharCode(a>>10|55296),e+=String.fromCharCode(1023&a|56320)}}return e};t.exports={random:i,length:o,concat:v,flatten:a,slice:s,reverse:u,pad:c,padRight:f,fromAscii:_,toAscii:w,fromString:M,toString:k,fromNumber:m,toNumber:b,fromNat:y,toNat:g,fromArray:l,toArray:h,fromUint8Array:p,toUint8Array:d}},function(t,e,r){"use strict";function n(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var r=1732584193,n=-271733879,i=-1732584194,f=271733878,h=0;h<t.length;h+=16){var l=r,d=n,p=i,m=f;r=o(r,n,i,f,t[h+0],7,-680876936),f=o(f,r,n,i,t[h+1],12,-389564586),i=o(i,f,r,n,t[h+2],17,606105819),n=o(n,i,f,r,t[h+3],22,-1044525330),r=o(r,n,i,f,t[h+4],7,-176418897),f=o(f,r,n,i,t[h+5],12,1200080426),i=o(i,f,r,n,t[h+6],17,-1473231341),n=o(n,i,f,r,t[h+7],22,-45705983),r=o(r,n,i,f,t[h+8],7,1770035416),f=o(f,r,n,i,t[h+9],12,-1958414417),i=o(i,f,r,n,t[h+10],17,-42063),n=o(n,i,f,r,t[h+11],22,-1990404162),r=o(r,n,i,f,t[h+12],7,1804603682),f=o(f,r,n,i,t[h+13],12,-40341101),i=o(i,f,r,n,t[h+14],17,-1502002290),n=o(n,i,f,r,t[h+15],22,1236535329),r=a(r,n,i,f,t[h+1],5,-165796510),f=a(f,r,n,i,t[h+6],9,-1069501632),i=a(i,f,r,n,t[h+11],14,643717713),n=a(n,i,f,r,t[h+0],20,-373897302),r=a(r,n,i,f,t[h+5],5,-701558691),f=a(f,r,n,i,t[h+10],9,38016083),i=a(i,f,r,n,t[h+15],14,-660478335),n=a(n,i,f,r,t[h+4],20,-405537848),r=a(r,n,i,f,t[h+9],5,568446438),f=a(f,r,n,i,t[h+14],9,-1019803690),i=a(i,f,r,n,t[h+3],14,-187363961),n=a(n,i,f,r,t[h+8],20,1163531501),r=a(r,n,i,f,t[h+13],5,-1444681467),f=a(f,r,n,i,t[h+2],9,-51403784),i=a(i,f,r,n,t[h+7],14,1735328473),n=a(n,i,f,r,t[h+12],20,-1926607734),r=s(r,n,i,f,t[h+5],4,-378558),f=s(f,r,n,i,t[h+8],11,-2022574463),i=s(i,f,r,n,t[h+11],16,1839030562),n=s(n,i,f,r,t[h+14],23,-35309556),r=s(r,n,i,f,t[h+1],4,-1530992060),f=s(f,r,n,i,t[h+4],11,1272893353),i=s(i,f,r,n,t[h+7],16,-155497632),n=s(n,i,f,r,t[h+10],23,-1094730640),r=s(r,n,i,f,t[h+13],4,681279174),f=s(f,r,n,i,t[h+0],11,-358537222),i=s(i,f,r,n,t[h+3],16,-722521979),n=s(n,i,f,r,t[h+6],23,76029189),r=s(r,n,i,f,t[h+9],4,-640364487),f=s(f,r,n,i,t[h+12],11,-421815835),i=s(i,f,r,n,t[h+15],16,530742520),n=s(n,i,f,r,t[h+2],23,-995338651),r=u(r,n,i,f,t[h+0],6,-198630844),f=u(f,r,n,i,t[h+7],10,1126891415),i=u(i,f,r,n,t[h+14],15,-1416354905),n=u(n,i,f,r,t[h+5],21,-57434055),r=u(r,n,i,f,t[h+12],6,1700485571),f=u(f,r,n,i,t[h+3],10,-1894986606),i=u(i,f,r,n,t[h+10],15,-1051523),n=u(n,i,f,r,t[h+1],21,-2054922799),r=u(r,n,i,f,t[h+8],6,1873313359),f=u(f,r,n,i,t[h+15],10,-30611744),i=u(i,f,r,n,t[h+6],15,-1560198380),n=u(n,i,f,r,t[h+13],21,1309151649),r=u(r,n,i,f,t[h+4],6,-145523070),f=u(f,r,n,i,t[h+11],10,-1120210379),i=u(i,f,r,n,t[h+2],15,718787259),n=u(n,i,f,r,t[h+9],21,-343485551),r=c(r,l),n=c(n,d),i=c(i,p),f=c(f,m)}return[r,n,i,f]}function i(t,e,r,n,i,o){return c(f(c(c(e,t),c(n,o)),i),r)}function o(t,e,r,n,o,a,s){return i(e&r|~e&n,t,e,o,a,s)}function a(t,e,r,n,o,a,s){return i(e&n|r&~n,t,e,o,a,s)}function s(t,e,r,n,o,a,s){return i(e^r^n,t,e,o,a,s)}function u(t,e,r,n,o,a,s){return i(r^(e|~n),t,e,o,a,s)}function c(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function f(t,e){return t<<e|t>>>32-e}var h=r(200);t.exports=function(t){return h(t,n)}},function(t,e,r){"use strict";(function(e){function n(){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<<e|t>>>32-e}function o(t,e,r,n,o,a,s,u){return i(t+(e^r^n)+a+s|0,u)+o|0}function a(t,e,r,n,o,a,s,u){return i(t+(e&r|~e&n)+a+s|0,u)+o|0}function s(t,e,r,n,o,a,s,u){return i(t+((e|~r)^n)+a+s|0,u)+o|0}function u(t,e,r,n,o,a,s,u){return i(t+(e&n|r&~n)+a+s|0,u)+o|0}function c(t,e,r,n,o,a,s,u){return i(t+(e^(r|~n))+a+s|0,u)+o|0}var f=r(1),h=r(201);f(n,h),n.prototype._update=function(){for(var t=new Array(16),e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,f=this._c,h=this._d,l=this._e;r=o(r,n,f,h,l,t[0],0,11),f=i(f,10),l=o(l,r,n,f,h,t[1],0,14),n=i(n,10),h=o(h,l,r,n,f,t[2],0,15),r=i(r,10),f=o(f,h,l,r,n,t[3],0,12),l=i(l,10),n=o(n,f,h,l,r,t[4],0,5),h=i(h,10),r=o(r,n,f,h,l,t[5],0,8),f=i(f,10),l=o(l,r,n,f,h,t[6],0,7),n=i(n,10),h=o(h,l,r,n,f,t[7],0,9),r=i(r,10),f=o(f,h,l,r,n,t[8],0,11),l=i(l,10),n=o(n,f,h,l,r,t[9],0,13),h=i(h,10),r=o(r,n,f,h,l,t[10],0,14),f=i(f,10),l=o(l,r,n,f,h,t[11],0,15),n=i(n,10),h=o(h,l,r,n,f,t[12],0,6),r=i(r,10),f=o(f,h,l,r,n,t[13],0,7),l=i(l,10),n=o(n,f,h,l,r,t[14],0,9),h=i(h,10),r=o(r,n,f,h,l,t[15],0,8),f=i(f,10),l=a(l,r,n,f,h,t[7],1518500249,7),n=i(n,10),h=a(h,l,r,n,f,t[4],1518500249,6),r=i(r,10),f=a(f,h,l,r,n,t[13],1518500249,8),l=i(l,10),n=a(n,f,h,l,r,t[1],1518500249,13),h=i(h,10),r=a(r,n,f,h,l,t[10],1518500249,11),f=i(f,10),l=a(l,r,n,f,h,t[6],1518500249,9),n=i(n,10),h=a(h,l,r,n,f,t[15],1518500249,7),r=i(r,10),f=a(f,h,l,r,n,t[3],1518500249,15),l=i(l,10),n=a(n,f,h,l,r,t[12],1518500249,7),h=i(h,10),r=a(r,n,f,h,l,t[0],1518500249,12),f=i(f,10),l=a(l,r,n,f,h,t[9],1518500249,15),n=i(n,10),h=a(h,l,r,n,f,t[5],1518500249,9),r=i(r,10),f=a(f,h,l,r,n,t[2],1518500249,11),l=i(l,10),n=a(n,f,h,l,r,t[14],1518500249,7),h=i(h,10),r=a(r,n,f,h,l,t[11],1518500249,13),f=i(f,10),l=a(l,r,n,f,h,t[8],1518500249,12),n=i(n,10),h=s(h,l,r,n,f,t[3],1859775393,11),r=i(r,10),f=s(f,h,l,r,n,t[10],1859775393,13),l=i(l,10),n=s(n,f,h,l,r,t[14],1859775393,6),h=i(h,10),r=s(r,n,f,h,l,t[4],1859775393,7),f=i(f,10),l=s(l,r,n,f,h,t[9],1859775393,14),n=i(n,10),h=s(h,l,r,n,f,t[15],1859775393,9),r=i(r,10),f=s(f,h,l,r,n,t[8],1859775393,13),l=i(l,10),n=s(n,f,h,l,r,t[1],1859775393,15),h=i(h,10),r=s(r,n,f,h,l,t[2],1859775393,14),f=i(f,10),l=s(l,r,n,f,h,t[7],1859775393,8),n=i(n,10),h=s(h,l,r,n,f,t[0],1859775393,13),r=i(r,10),f=s(f,h,l,r,n,t[6],1859775393,6),l=i(l,10),n=s(n,f,h,l,r,t[13],1859775393,5),h=i(h,10),r=s(r,n,f,h,l,t[11],1859775393,12),f=i(f,10),l=s(l,r,n,f,h,t[5],1859775393,7),n=i(n,10),h=s(h,l,r,n,f,t[12],1859775393,5),r=i(r,10),f=u(f,h,l,r,n,t[1],2400959708,11),l=i(l,10),n=u(n,f,h,l,r,t[9],2400959708,12),h=i(h,10),r=u(r,n,f,h,l,t[11],2400959708,14),f=i(f,10),l=u(l,r,n,f,h,t[10],2400959708,15),n=i(n,10),h=u(h,l,r,n,f,t[0],2400959708,14),r=i(r,10),f=u(f,h,l,r,n,t[8],2400959708,15),l=i(l,10),n=u(n,f,h,l,r,t[12],2400959708,9),h=i(h,10),r=u(r,n,f,h,l,t[4],2400959708,8),f=i(f,10),l=u(l,r,n,f,h,t[13],2400959708,9),n=i(n,10),h=u(h,l,r,n,f,t[3],2400959708,14),r=i(r,10),f=u(f,h,l,r,n,t[7],2400959708,5),l=i(l,10),n=u(n,f,h,l,r,t[15],2400959708,6),h=i(h,10),r=u(r,n,f,h,l,t[14],2400959708,8),f=i(f,10),l=u(l,r,n,f,h,t[5],2400959708,6),n=i(n,10),h=u(h,l,r,n,f,t[6],2400959708,5),r=i(r,10),f=u(f,h,l,r,n,t[2],2400959708,12),l=i(l,10),n=c(n,f,h,l,r,t[4],2840853838,9),h=i(h,10),r=c(r,n,f,h,l,t[0],2840853838,15),f=i(f,10),l=c(l,r,n,f,h,t[5],2840853838,5),n=i(n,10),h=c(h,l,r,n,f,t[9],2840853838,11),r=i(r,10),f=c(f,h,l,r,n,t[7],2840853838,6),l=i(l,10),n=c(n,f,h,l,r,t[12],2840853838,8),h=i(h,10),r=c(r,n,f,h,l,t[2],2840853838,13),f=i(f,10),l=c(l,r,n,f,h,t[10],2840853838,12),n=i(n,10),h=c(h,l,r,n,f,t[14],2840853838,5),r=i(r,10),f=c(f,h,l,r,n,t[1],2840853838,12),l=i(l,10),n=c(n,f,h,l,r,t[3],2840853838,13),h=i(h,10),r=c(r,n,f,h,l,t[8],2840853838,14),f=i(f,10),l=c(l,r,n,f,h,t[11],2840853838,11),n=i(n,10),h=c(h,l,r,n,f,t[6],2840853838,8),r=i(r,10),f=c(f,h,l,r,n,t[15],2840853838,5),l=i(l,10),n=c(n,f,h,l,r,t[13],2840853838,6),h=i(h,10);var d=this._a,p=this._b,m=this._c,b=this._d,v=this._e;d=c(d,p,m,b,v,t[5],1352829926,8),m=i(m,10),v=c(v,d,p,m,b,t[14],1352829926,9),p=i(p,10),b=c(b,v,d,p,m,t[7],1352829926,9),d=i(d,10),m=c(m,b,v,d,p,t[0],1352829926,11),v=i(v,10),p=c(p,m,b,v,d,t[9],1352829926,13),b=i(b,10),d=c(d,p,m,b,v,t[2],1352829926,15),m=i(m,10),v=c(v,d,p,m,b,t[11],1352829926,15),p=i(p,10),b=c(b,v,d,p,m,t[4],1352829926,5),d=i(d,10),m=c(m,b,v,d,p,t[13],1352829926,7),v=i(v,10),p=c(p,m,b,v,d,t[6],1352829926,7),b=i(b,10),d=c(d,p,m,b,v,t[15],1352829926,8),m=i(m,10),v=c(v,d,p,m,b,t[8],1352829926,11),p=i(p,10),b=c(b,v,d,p,m,t[1],1352829926,14),d=i(d,10),m=c(m,b,v,d,p,t[10],1352829926,14),v=i(v,10),p=c(p,m,b,v,d,t[3],1352829926,12),b=i(b,10),d=c(d,p,m,b,v,t[12],1352829926,6),m=i(m,10),v=u(v,d,p,m,b,t[6],1548603684,9),p=i(p,10),b=u(b,v,d,p,m,t[11],1548603684,13),d=i(d,10),m=u(m,b,v,d,p,t[3],1548603684,15),v=i(v,10),p=u(p,m,b,v,d,t[7],1548603684,7),b=i(b,10),d=u(d,p,m,b,v,t[0],1548603684,12),m=i(m,10),v=u(v,d,p,m,b,t[13],1548603684,8),p=i(p,10),b=u(b,v,d,p,m,t[5],1548603684,9),d=i(d,10),m=u(m,b,v,d,p,t[10],1548603684,11),v=i(v,10),p=u(p,m,b,v,d,t[14],1548603684,7),b=i(b,10),d=u(d,p,m,b,v,t[15],1548603684,7),m=i(m,10),v=u(v,d,p,m,b,t[8],1548603684,12),p=i(p,10),b=u(b,v,d,p,m,t[12],1548603684,7),d=i(d,10),m=u(m,b,v,d,p,t[4],1548603684,6),v=i(v,10),p=u(p,m,b,v,d,t[9],1548603684,15),b=i(b,10),d=u(d,p,m,b,v,t[1],1548603684,13),m=i(m,10),v=u(v,d,p,m,b,t[2],1548603684,11),p=i(p,10),b=s(b,v,d,p,m,t[15],1836072691,9),d=i(d,10),m=s(m,b,v,d,p,t[5],1836072691,7),v=i(v,10),p=s(p,m,b,v,d,t[1],1836072691,15),b=i(b,10),d=s(d,p,m,b,v,t[3],1836072691,11),m=i(m,10),v=s(v,d,p,m,b,t[7],1836072691,8),p=i(p,10),b=s(b,v,d,p,m,t[14],1836072691,6),d=i(d,10),m=s(m,b,v,d,p,t[6],1836072691,6),v=i(v,10),p=s(p,m,b,v,d,t[9],1836072691,14),b=i(b,10),d=s(d,p,m,b,v,t[11],1836072691,12),m=i(m,10),v=s(v,d,p,m,b,t[8],1836072691,13),p=i(p,10),b=s(b,v,d,p,m,t[12],1836072691,5),d=i(d,10),m=s(m,b,v,d,p,t[2],1836072691,14),v=i(v,10),p=s(p,m,b,v,d,t[10],1836072691,13),b=i(b,10),d=s(d,p,m,b,v,t[0],1836072691,13),m=i(m,10),v=s(v,d,p,m,b,t[4],1836072691,7),p=i(p,10),b=s(b,v,d,p,m,t[13],1836072691,5),d=i(d,10),m=a(m,b,v,d,p,t[8],2053994217,15),v=i(v,10),p=a(p,m,b,v,d,t[6],2053994217,5),b=i(b,10),d=a(d,p,m,b,v,t[4],2053994217,8),m=i(m,10),v=a(v,d,p,m,b,t[1],2053994217,11),p=i(p,10),b=a(b,v,d,p,m,t[3],2053994217,14),d=i(d,10),m=a(m,b,v,d,p,t[11],2053994217,14),v=i(v,10),p=a(p,m,b,v,d,t[15],2053994217,6),b=i(b,10),d=a(d,p,m,b,v,t[0],2053994217,14),m=i(m,10),v=a(v,d,p,m,b,t[5],2053994217,6),p=i(p,10),b=a(b,v,d,p,m,t[12],2053994217,9),d=i(d,10),m=a(m,b,v,d,p,t[2],2053994217,12),v=i(v,10),p=a(p,m,b,v,d,t[13],2053994217,9),b=i(b,10),d=a(d,p,m,b,v,t[9],2053994217,12),m=i(m,10),v=a(v,d,p,m,b,t[7],2053994217,5),p=i(p,10),b=a(b,v,d,p,m,t[10],2053994217,15),d=i(d,10),m=a(m,b,v,d,p,t[14],2053994217,8),v=i(v,10),p=o(p,m,b,v,d,t[12],0,8),b=i(b,10),d=o(d,p,m,b,v,t[15],0,5),m=i(m,10),v=o(v,d,p,m,b,t[10],0,12),p=i(p,10),b=o(b,v,d,p,m,t[4],0,9),d=i(d,10),m=o(m,b,v,d,p,t[1],0,12),v=i(v,10),p=o(p,m,b,v,d,t[5],0,5),b=i(b,10),d=o(d,p,m,b,v,t[8],0,14),m=i(m,10),v=o(v,d,p,m,b,t[7],0,6),p=i(p,10),b=o(b,v,d,p,m,t[6],0,8),d=i(d,10),m=o(m,b,v,d,p,t[2],0,13),v=i(v,10),p=o(p,m,b,v,d,t[13],0,6),b=i(b,10),d=o(d,p,m,b,v,t[14],0,5),m=i(m,10),v=o(v,d,p,m,b,t[0],0,15),p=i(p,10),b=o(b,v,d,p,m,t[3],0,13),d=i(d,10),m=o(m,b,v,d,p,t[9],0,11),v=i(v,10),p=o(p,m,b,v,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+r+p|0,this._e=this._a+n+m|0,this._a=y},n.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 e(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},t.exports=n}).call(e,r(0).Buffer)},function(t,e){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(t){return"function"===typeof t}function i(t){return"number"===typeof t}function o(t){return"object"===typeof t&&null!==t}function a(t){return void 0===t}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(t){if(!i(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,r,i,s,u,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(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(r=this._events[t],a(r))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}else if(o(r))for(s=Array.prototype.slice.call(arguments,1),c=r.slice(),i=c.length,u=0;u<i;u++)c[u].apply(this,s);return!0},r.prototype.addListener=function(t,e){var i;if(!n(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,n(e.listener)?e.listener:e),this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned&&(i=a(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[t].length>i&&(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 r(){this.removeListener(t,r),i||(i=!0,e.apply(this,arguments))}if(!n(e))throw TypeError("listener must be a function");var i=!1;return r.listener=e,this.on(t,r),this},r.prototype.removeListener=function(t,e){var r,i,a,s;if(!n(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(r=this._events[t],a=r.length,i=-1,r===e||n(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(r)){for(s=a;s-- >0;)if(r[s]===e||r[s].listener&&r[s].listener===e){i=s;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},r.prototype.removeAllListeners=function(t){var e,r;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(r=this._events[t],n(r))this.removeListener(t,r);else if(r)for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},r.prototype.listeners=function(t){return this._events&&this._events[t]?n(this._events[t])?[this._events[t]]:this._events[t].slice():[]},r.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(n(e))return 1;if(e)return e.length}return 0},r.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,r){e=t.exports=r(79),e.Stream=e,e.Readable=e,e.Writable=r(55),e.Duplex=r(24),e.Transform=r(82),e.PassThrough=r(205)},function(t,e,r){"use strict";(function(e,n,i){function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){A(e,t)}}function a(t){return j.from(t)}function s(t){return j.isBuffer(t)||t instanceof N}function u(){}function c(t,e){T=T||r(24),t=t||{},this.objectMode=!!t.objectMode,e instanceof T&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){y(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function f(t){if(T=T||r(24),!L.call(f,this)&&!(this instanceof T))return new f(t);this._writableState=new c(t,this),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),O.call(this)}function h(t,e){var r=new Error("write after end");t.emit("error",r),C(e,r)}function l(t,e,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"===typeof r||void 0===r||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),C(n,o),i=!1),i}function d(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=j.from(e,r)),e}function p(t,e,r,n,i,o){if(!r){var a=d(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else m(t,e,!1,s,n,i,o);return u}function m(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function b(t,e,r,n,i){--e.pendingcb,r?(C(i,n),C(x,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(i(n),t._writableState.errorEmitted=!0,t.emit("error",n),x(t,e))}function v(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function y(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(v(r),e)b(t,r,n,e,i);else{var o=M(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||w(t,r),n?I(g,t,r,o,i):g(t,r,o,i)}}function g(t,e,r,n){r||_(t,e),e.pendingcb--,n(),x(t,e)}function _(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function w(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,m(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new o(e)}else{for(;r;){var c=r.chunk,f=r.encoding,h=r.callback;if(m(t,e,!1,e.objectMode?1:c.length,c,f,h),r=r.next,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=r,e.bufferProcessing=!1}function M(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function k(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),x(t,e)})}function E(t,e){e.prefinished||e.finalCalled||("function"===typeof t._final?(e.pendingcb++,e.finalCalled=!0,C(k,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function x(t,e){var r=M(e);return r&&(E(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}function S(t,e,r){e.ending=!0,x(t,e),r&&(e.finished?C(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function A(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}var C=r(41);t.exports=f;var T,I=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?n:C;f.WritableState=c;var P=r(32);P.inherits=r(1);var R={deprecate:r(204)},O=r(80),j=r(2).Buffer,N=i.Uint8Array||function(){},B=r(81);P.inherits(f,O),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:R.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}();var L;"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(f,Symbol.hasInstance,{value:function(t){return!!L.call(this,t)||t&&t._writableState instanceof c}})):L=function(t){return t instanceof this},f.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},f.prototype.write=function(t,e,r){var n=this._writableState,i=!1,o=s(t)&&!n.objectMode;return o&&!j.isBuffer(t)&&(t=a(t)),"function"===typeof e&&(r=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),"function"!==typeof r&&(r=u),n.ended?h(this,r):(o||l(this,n,t,r))&&(n.pendingcb++,i=p(this,n,o,t,e,r)),i},f.prototype.cork=function(){this._writableState.corked++},f.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||w(this,t))},f.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},f.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},f.prototype._writev=null,f.prototype.end=function(t,e,r){var n=this._writableState;"function"===typeof t?(r=t,t=null,e=null):"function"===typeof e&&(r=e,e=null),null!==t&&void 0!==t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||S(this,n,r)},Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),f.prototype.destroy=B.destroy,f.prototype._undestroy=B.undestroy,f.prototype._destroy=function(t,e){this.end(),e(t)}}).call(e,r(8),r(30).setImmediate,r(4))},function(t,e,r){var e=t.exports=function(t){t=t.toLowerCase();var r=e[t];if(!r)throw new Error(t+" is not supported (we accept pull requests)");return new r};e.sha=r(210),e.sha1=r(211),e.sha224=r(212),e.sha256=r(83),e.sha384=r(213),e.sha512=r(84)},function(t,e,r){function n(){return Object.keys(a)}var i=r(220),o=r(228),a=r(93);e.createCipher=e.Cipher=i.createCipher,e.createCipheriv=e.Cipheriv=i.createCipheriv,e.createDecipher=e.Decipher=o.createDecipher,e.createDecipheriv=e.Decipheriv=o.createDecipheriv,e.listCiphers=e.getCiphers=n},function(t,e,r){var n={ECB:r(221),CBC:r(222),CFB:r(223),CFB8:r(224),CFB1:r(225),OFB:r(226),CTR:r(91),GCM:r(91)},i=r(93);for(var o in i)i[o].module=n[i[o].mode];t.exports=i},function(t,e,r){"use strict";e.utils=r(230),e.Cipher=r(231),e.DES=r(232),e.CBC=r(233),e.EDE=r(234)},function(t,e,r){(function(e){function n(t){var e=o(t);return{blinder:e.toRed(a.mont(t.modulus)).redPow(new a(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}function i(t,r){var i=n(r),o=r.modulus.byteLength(),s=(a.mont(r.modulus),new a(t).mul(i.blinder).umod(r.modulus)),u=s.toRed(a.mont(r.prime1)),c=s.toRed(a.mont(r.prime2)),f=r.coefficient,h=r.prime1,l=r.prime2,d=u.redPow(r.exponent1),p=c.redPow(r.exponent2);d=d.fromRed(),p=p.fromRed();var m=d.isub(p).imul(f).umod(h);return m.imul(l),p.iadd(m),new e(p.imul(i.unblinder).umod(r.modulus).toArray(!1,o))}function o(t){for(var e=t.modulus.byteLength(),r=new a(s(e));r.cmp(t.modulus)>=0||!r.umod(t.prime1)||!r.umod(t.prime2);)r=new a(s(e));return r}var a=r(3),s=r(27);t.exports=i,i.getr=o}).call(e,r(0).Buffer)},function(t,e,r){var n=e;n.utils=r(16),n.common=r(34),n.sha=r(250),n.ripemd=r(254),n.hmac=r(255),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(t,e,r){var n=e;n.utils=r(17),n.common=r(37),n.sha=r(293),n.ripemd=r(297),n.hmac=r(298),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(t,e,r){"use strict";function n(){}function i(t){try{return t.then}catch(t){return v=t,y}}function o(t,e){try{return t(e)}catch(t){return v=t,y}}function a(t,e,r){try{t(e,r)}catch(t){return v=t,y}}function s(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof t)throw new TypeError("Promise constructor's argument is not a function");this._75=0,this._83=0,this._18=null,this._38=null,t!==n&&m(t,this)}function u(t,e,r){return new t.constructor(function(i,o){var a=new s(n);a.then(i,o),c(t,new p(e,r,a))})}function c(t,e){for(;3===t._83;)t=t._18;if(s._47&&s._47(t),0===t._83)return 0===t._75?(t._75=1,void(t._38=e)):1===t._75?(t._75=2,void(t._38=[t._38,e])):void t._38.push(e);f(t,e)}function f(t,e){b(function(){var r=1===t._83?e.onFulfilled:e.onRejected;if(null===r)return void(1===t._83?h(e.promise,t._18):l(e.promise,t._18));var n=o(r,t._18);n===y?l(e.promise,v):h(e.promise,n)})}function h(t,e){if(e===t)return l(t,new TypeError("A promise cannot be resolved with itself."));if(e&&("object"===typeof e||"function"===typeof e)){var r=i(e);if(r===y)return l(t,v);if(r===t.then&&e instanceof s)return t._83=3,t._18=e,void d(t);if("function"===typeof r)return void m(r.bind(e),t)}t._83=1,t._18=e,d(t)}function l(t,e){t._83=2,t._18=e,s._71&&s._71(t,e),d(t)}function d(t){if(1===t._75&&(c(t,t._38),t._38=null),2===t._75){for(var e=0;e<t._38.length;e++)c(t,t._38[e]);t._38=null}}function p(t,e,r){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.promise=r}function m(t,e){var r=!1,n=a(t,function(t){r||(r=!0,h(e,t))},function(t){r||(r=!0,l(e,t))});r||n!==y||(r=!0,l(e,v))}var b=r(134),v=null,y={};t.exports=s,s._47=null,s._71=null,s._44=n,s.prototype.then=function(t,e){if(this.constructor!==s)return u(this,t,e);var r=new s(n);return c(this,new p(t,e,r)),r}},function(t,e,r){"use strict";var n={};t.exports=n},function(t,e,r){"use strict";function n(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(t){console.error(t)}}n(),t.exports=r(139)},function(t,e,r){t.exports=r(149)},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){var n=r(163),i=r(164);t.exports=function(t){if("string"===typeof t||"number"===typeof t){var e=new n(1),r=String(t).toLowerCase().trim(),o="0x"===r.substr(0,2)||"-0x"===r.substr(0,3),a=i(r);if("-"===a.substr(0,1)&&(a=i(a.slice(1)),e=new n(-1,10)),a=""===a?"0":a,!a.match(/^-?[0-9]+$/)&&a.match(/^[0-9A-Fa-f]+$/)||a.match(/^[a-fA-F]+$/)||!0===o&&a.match(/^[0-9A-Fa-f]+$/))return new n(a,16).mul(e);if((a.match(/^-?[0-9]+$/)||""===a)&&!1===o)return new n(a,10).mul(e)}else if("object"===typeof t&&t.toString&&!t.pop&&!t.push&&t.toString(10).match(/^-?[0-9]+$/)&&(t.mul||t.dividedToIntegerBy))return new n(t.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(t)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},function(t,e,r){var n=r(5),i=r(70),o=r(68),a=r(166),s=r(71),u=function(t){return t instanceof i||t&&t.constructor&&"BN"===t.constructor.name},c=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"+f(t).toTwos(256).toString(16,64)},l=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))||d(t))},d=function(t){t=t.replace(/^0x/i,"");for(var e=C(t.toLowerCase()).replace(/^0x/i,""),r=0;r<40;r++)if(parseInt(e[r],16)>7&&t[r].toUpperCase()!==t[r]||parseInt(e[r],16)<=7&&t[r].toLowerCase()!==t[r])return!1;return!0},p=function(t,e,r){var n=/^0x/i.test(t)||"number"===typeof t;t=t.toString(16).replace(/^0x/i,"");var i=e-t.length+1>=0?e-t.length+1:0;return(n?"0x":"")+new Array(i).join(r||"0")+t},m=function(t,e,r){var n=/^0x/i.test(t)||"number"===typeof t;t=t.toString(16).replace(/^0x/i,"");var i=e-t.length+1>=0?e-t.length+1:0;return(n?"0x":"")+t+new Array(i).join(r||"0")},b=function(t){t=a.encode(t);var e="";t=t.replace(/^(?:\u0000)*/,""),t=t.split("").reverse().join(""),t=t.replace(/^(?:\u0000)*/,""),t=t.split("").reverse().join("");for(var r=0;r<t.length;r++){var n=t.charCodeAt(r),i=n.toString(16);e+=i.length<2?"0"+i:i}return"0x"+e},v=function(t){if(!E(t))throw new Error('The parameter "'+t+'" must be a valid HEX string.');var e="",r=0;t=t.replace(/^0x/i,""),t=t.replace(/^(?:00)*/,""),t=t.split("").reverse().join(""),t=t.replace(/^(?:00)*/,""),t=t.split("").reverse().join("");for(var n=t.length,i=0;i<n;i+=2)r=parseInt(t.substr(i,2),16),e+=String.fromCharCode(r);return a.decode(e)},y=function(t){return t?f(t).toNumber():t},g=function(t){return t?f(t).toString(10):t},_=function(t){if(!isFinite(t)&&!n.isString(t))return t;var e=f(t),r=e.toString(16);return e.lt(new i(0))?"-0x"+r.substr(1):"0x"+r},w=function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return"0x"+e.join("")},M=function(t){if(t=t.toString(16),!E(t))throw new Error('Given value "'+t+'" is not a valid hex string.');t=t.replace(/^0x/i,"");for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},k=function(t,e){if(l(t))return e?"address":"0x"+t.toLowerCase().replace(/^0x/i,"");if(n.isBoolean(t))return e?"bool":t?"0x01":"0x00";if(n.isObject(t)&&!c(t)&&!u(t))return e?"string":b(JSON.stringify(t));if(n.isString(t)){if(0===t.indexOf("-0x")||0===t.indexOf("-0X"))return e?"int256":_(t);if(0===t.indexOf("0x")||0===t.indexOf("0X"))return e?"bytes":t;if(!isFinite(t))return e?"string":b(t)}return e?t<0?"int256":"uint256":_(t)},E=function(t){return(n.isString(t)||n.isNumber(t))&&/^(-)?0x[0-9a-f]*$/i.test(t)},x=function(t){return(n.isString(t)||n.isNumber(t))&&/^(-0x)?(0x)?[0-9a-f]*$/i.test(t)},S=function(t){return!!/^(0x)?[0-9a-f]{512}$/i.test(t)&&!(!/^(0x)?[0-9a-f]{512}$/.test(t)&&!/^(0x)?[0-9A-F]{512}$/.test(t))},A=function(t){return!!/^(0x)?[0-9a-f]{64}$/i.test(t)&&!(!/^(0x)?[0-9a-f]{64}$/.test(t)&&!/^(0x)?[0-9A-F]{64}$/.test(t))},C=function(t){E(t)&&/^0x/i.test(t.toString())&&(t=M(t));var e=s.keccak256(t);return"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"===e?null:e};C._Hash=s,t.exports={BN:i,isBN:u,isBigNumber:c,toBN:f,isAddress:l,isBloom:S,isTopic:A,checkAddressChecksum:d,utf8ToHex:b,hexToUtf8:v,hexToNumber:y,hexToNumberString:g,numberToHex:_,toHex:k,hexToBytes:M,bytesToHex:w,isHex:x,isHexStrict:E,leftPad:p,rightPad:m,toTwosComplement:h,sha3:C}},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var a=t.charCodeAt(o)-48;n<<=4,n|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function s(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}function u(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function c(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,h=67108863&u,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;i=0|t.words[p],o=0|e.words[d],a=i*o+h,f+=a/67108864|0,h=67108863&a}r.words[c]=0|h,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}function f(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var f=o-c,h=0|t.words[f],l=0|e.words[c],d=h*l,p=67108863&d;a=a+(d/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,i+=a>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function h(t,e,r){return(new l).mulp(t,e,r)}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 n(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"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;var _;try{_=r(0).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"===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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=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 r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,u=Math.min(o,o-a)+r,c=0,f=r;f<u;f+=n)c=s(t,f,f+n,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=s(t,f,t.length,e),f=0;f<a;f++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&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?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],M=[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 r;if(16===t||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,r=0!==o||a!==this.length-1?w[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=M[t],f=k[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var l=h.modn(f).toString(t);h=h.idivn(f),r=h.isZero()?l+r:w[c-l.length]+l+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof _),this.toArrayLike(_,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.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 r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.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,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.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){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();var r,n;this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;var n,i;r>0?(n=this,i=t):(n=t,i=this);for(var o=0,a=0;a<i.length;a++)e=(0|n.words[a])-(0|i.words[a])+o,o=e>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)e=(0|n.words[a])+o,o=e>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var E=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,f=0|a[0],h=8191&f,l=f>>>13,d=0|a[1],p=8191&d,m=d>>>13,b=0|a[2],v=8191&b,y=b>>>13,g=0|a[3],_=8191&g,w=g>>>13,M=0|a[4],k=8191&M,E=M>>>13,x=0|a[5],S=8191&x,A=x>>>13,C=0|a[6],T=8191&C,I=C>>>13,P=0|a[7],R=8191&P,O=P>>>13,j=0|a[8],N=8191&j,B=j>>>13,L=0|a[9],F=8191&L,D=L>>>13,U=0|s[0],q=8191&U,z=U>>>13,H=0|s[1],V=8191&H,K=H>>>13,Y=0|s[2],G=8191&Y,W=Y>>>13,Z=0|s[3],X=8191&Z,$=Z>>>13,Q=0|s[4],J=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,ft=0|s[8],ht=8191&ft,lt=ft>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(h,q),i=Math.imul(h,z),i=i+Math.imul(l,q)|0,o=Math.imul(l,z);var bt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(p,q),i=Math.imul(p,z),i=i+Math.imul(m,q)|0,o=Math.imul(m,z),n=n+Math.imul(h,V)|0,i=i+Math.imul(h,K)|0,i=i+Math.imul(l,V)|0,o=o+Math.imul(l,K)|0;var vt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),i=Math.imul(v,z),i=i+Math.imul(y,q)|0,o=Math.imul(y,z),n=n+Math.imul(p,V)|0,i=i+Math.imul(p,K)|0,i=i+Math.imul(m,V)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(h,G)|0,i=i+Math.imul(h,W)|0,i=i+Math.imul(l,G)|0,o=o+Math.imul(l,W)|0;var yt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(_,q),i=Math.imul(_,z),i=i+Math.imul(w,q)|0,o=Math.imul(w,z),n=n+Math.imul(v,V)|0,i=i+Math.imul(v,K)|0,i=i+Math.imul(y,V)|0,o=o+Math.imul(y,K)|0,n=n+Math.imul(p,G)|0,i=i+Math.imul(p,W)|0,i=i+Math.imul(m,G)|0,o=o+Math.imul(m,W)|0,n=n+Math.imul(h,X)|0,i=i+Math.imul(h,$)|0,i=i+Math.imul(l,X)|0,o=o+Math.imul(l,$)|0;var gt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=Math.imul(k,z),i=i+Math.imul(E,q)|0,o=Math.imul(E,z),n=n+Math.imul(_,V)|0,i=i+Math.imul(_,K)|0,i=i+Math.imul(w,V)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(v,G)|0,i=i+Math.imul(v,W)|0,i=i+Math.imul(y,G)|0,o=o+Math.imul(y,W)|0,n=n+Math.imul(p,X)|0,i=i+Math.imul(p,$)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,$)|0,n=n+Math.imul(h,J)|0,i=i+Math.imul(h,tt)|0,i=i+Math.imul(l,J)|0,o=o+Math.imul(l,tt)|0;var _t=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(S,q),i=Math.imul(S,z),i=i+Math.imul(A,q)|0,o=Math.imul(A,z),n=n+Math.imul(k,V)|0,i=i+Math.imul(k,K)|0,i=i+Math.imul(E,V)|0,o=o+Math.imul(E,K)|0,n=n+Math.imul(_,G)|0,i=i+Math.imul(_,W)|0,i=i+Math.imul(w,G)|0,o=o+Math.imul(w,W)|0,n=n+Math.imul(v,X)|0,i=i+Math.imul(v,$)|0,i=i+Math.imul(y,X)|0,o=o+Math.imul(y,$)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(h,rt)|0,i=i+Math.imul(h,nt)|0,i=i+Math.imul(l,rt)|0,o=o+Math.imul(l,nt)|0;var wt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(T,q),i=Math.imul(T,z),i=i+Math.imul(I,q)|0,o=Math.imul(I,z),n=n+Math.imul(S,V)|0,i=i+Math.imul(S,K)|0,i=i+Math.imul(A,V)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(k,G)|0,i=i+Math.imul(k,W)|0,i=i+Math.imul(E,G)|0,o=o+Math.imul(E,W)|0,n=n+Math.imul(_,X)|0,i=i+Math.imul(_,$)|0,i=i+Math.imul(w,X)|0,o=o+Math.imul(w,$)|0,n=n+Math.imul(v,J)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(h,ot)|0,i=i+Math.imul(h,at)|0,i=i+Math.imul(l,ot)|0,o=o+Math.imul(l,at)|0;var Mt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(R,q),i=Math.imul(R,z),i=i+Math.imul(O,q)|0,o=Math.imul(O,z),n=n+Math.imul(T,V)|0,i=i+Math.imul(T,K)|0,i=i+Math.imul(I,V)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(S,G)|0,i=i+Math.imul(S,W)|0,i=i+Math.imul(A,G)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(k,X)|0,i=i+Math.imul(k,$)|0,i=i+Math.imul(E,X)|0,o=o+Math.imul(E,$)|0,n=n+Math.imul(_,J)|0,i=i+Math.imul(_,tt)|0,i=i+Math.imul(w,J)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,n=n+Math.imul(h,ut)|0,i=i+Math.imul(h,ct)|0,i=i+Math.imul(l,ut)|0,o=o+Math.imul(l,ct)|0;var kt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,q),i=Math.imul(N,z),i=i+Math.imul(B,q)|0,o=Math.imul(B,z),n=n+Math.imul(R,V)|0,i=i+Math.imul(R,K)|0,i=i+Math.imul(O,V)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(T,G)|0,i=i+Math.imul(T,W)|0,i=i+Math.imul(I,G)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(S,X)|0,i=i+Math.imul(S,$)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(_,rt)|0,i=i+Math.imul(_,nt)|0,i=i+Math.imul(w,rt)|0,o=o+Math.imul(w,nt)|0,n=n+Math.imul(v,ot)|0,i=i+Math.imul(v,at)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,n=n+Math.imul(h,ht)|0,i=i+Math.imul(h,lt)|0,i=i+Math.imul(l,ht)|0,o=o+Math.imul(l,lt)|0;var Et=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(F,q),i=Math.imul(F,z),i=i+Math.imul(D,q)|0,o=Math.imul(D,z),n=n+Math.imul(N,V)|0,i=i+Math.imul(N,K)|0,i=i+Math.imul(B,V)|0,o=o+Math.imul(B,K)|0,n=n+Math.imul(R,G)|0,i=i+Math.imul(R,W)|0,i=i+Math.imul(O,G)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(T,X)|0,i=i+Math.imul(T,$)|0,i=i+Math.imul(I,X)|0,o=o+Math.imul(I,$)|0,n=n+Math.imul(S,J)|0,i=i+Math.imul(S,tt)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(E,rt)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(_,ot)|0,i=i+Math.imul(_,at)|0,i=i+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,n=n+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ht)|0,i=i+Math.imul(p,lt)|0,i=i+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0,n=n+Math.imul(h,pt)|0,i=i+Math.imul(h,mt)|0,i=i+Math.imul(l,pt)|0,o=o+Math.imul(l,mt)|0;var xt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(F,V),i=Math.imul(F,K),i=i+Math.imul(D,V)|0,o=Math.imul(D,K),n=n+Math.imul(N,G)|0,i=i+Math.imul(N,W)|0,i=i+Math.imul(B,G)|0,o=o+Math.imul(B,W)|0,n=n+Math.imul(R,X)|0,i=i+Math.imul(R,$)|0,i=i+Math.imul(O,X)|0,o=o+Math.imul(O,$)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(S,rt)|0,i=i+Math.imul(S,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,at)|0,i=i+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,n=n+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,i=i+Math.imul(w,ut)|0,o=o+Math.imul(w,ct)|0,n=n+Math.imul(v,ht)|0,i=i+Math.imul(v,lt)|0,i=i+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var St=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(F,G),i=Math.imul(F,W),i=i+Math.imul(D,G)|0,o=Math.imul(D,W),n=n+Math.imul(N,X)|0,i=i+Math.imul(N,$)|0,i=i+Math.imul(B,X)|0,o=o+Math.imul(B,$)|0,n=n+Math.imul(R,J)|0,i=i+Math.imul(R,tt)|0,i=i+Math.imul(O,J)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(S,ot)|0,i=i+Math.imul(S,at)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ct)|0,i=i+Math.imul(E,ut)|0,o=o+Math.imul(E,ct)|0,n=n+Math.imul(_,ht)|0,i=i+Math.imul(_,lt)|0,i=i+Math.imul(w,ht)|0,o=o+Math.imul(w,lt)|0,n=n+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(F,X),i=Math.imul(F,$),i=i+Math.imul(D,X)|0,o=Math.imul(D,$),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(B,J)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(R,rt)|0,i=i+Math.imul(R,nt)|0,i=i+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,at)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(S,ut)|0,i=i+Math.imul(S,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(k,ht)|0,i=i+Math.imul(k,lt)|0,i=i+Math.imul(E,ht)|0,o=o+Math.imul(E,lt)|0,n=n+Math.imul(_,pt)|0,i=i+Math.imul(_,mt)|0,i=i+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var Ct=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(F,J),i=Math.imul(F,tt),i=i+Math.imul(D,J)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(R,ot)|0,i=i+Math.imul(R,at)|0,i=i+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ct)|0,n=n+Math.imul(S,ht)|0,i=i+Math.imul(S,lt)|0,i=i+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var Tt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(F,rt),i=Math.imul(F,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,at)|0,i=i+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,n=n+Math.imul(R,ut)|0,i=i+Math.imul(R,ct)|0,i=i+Math.imul(O,ut)|0,o=o+Math.imul(O,ct)|0,n=n+Math.imul(T,ht)|0,i=i+Math.imul(T,lt)|0,i=i+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0,n=n+Math.imul(S,pt)|0,i=i+Math.imul(S,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var It=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(F,ot),i=Math.imul(F,at),i=i+Math.imul(D,ot)|0,o=Math.imul(D,at),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ct)|0,i=i+Math.imul(B,ut)|0,o=o+Math.imul(B,ct)|0,n=n+Math.imul(R,ht)|0,i=i+Math.imul(R,lt)|0,i=i+Math.imul(O,ht)|0,o=o+Math.imul(O,lt)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Pt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(F,ut),i=Math.imul(F,ct),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ct),n=n+Math.imul(N,ht)|0,i=i+Math.imul(N,lt)|0,i=i+Math.imul(B,ht)|0,o=o+Math.imul(B,lt)|0,n=n+Math.imul(R,pt)|0,i=i+Math.imul(R,mt)|0,i=i+Math.imul(O,pt)|0,o=o+Math.imul(O,mt)|0;var Rt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(F,ht),i=Math.imul(F,lt),i=i+Math.imul(D,ht)|0,o=Math.imul(D,lt),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(B,pt)|0,o=o+Math.imul(B,mt)|0;var Ot=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(F,pt),i=Math.imul(F,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var jt=(c+n|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,u[0]=bt,u[1]=vt,u[2]=yt,u[3]=gt,u[4]=_t,u[5]=wt,u[6]=Mt,u[7]=kt,u[8]=Et,u[9]=xt,u[10]=St,u[11]=At,u[12]=Ct,u[13]=Tt,u[14]=It,u[15]=Pt,u[16]=Rt,u[17]=Ot,u[18]=jt,0!==c&&(u[19]=c,r.length++),r};Math.imul||(E=c),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?E(this,t,e):r<63?c(this,t,e):r<1024?f(this,t,e):h(this,t,e)},l.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},l.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},l.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},l.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var h=u,l=c,d=0;d<a;d++){var p=r[f+d],m=n[f+d],b=r[f+d+a],v=n[f+d+a],y=h*b-l*v;v=h*v+l*b,b=y,r[f+d]=p+b,n[f+d]=m+v,r[f+d+a]=p-b,n[f+d+a]=m-v,d!==s&&(y=u*h-c*l,l=u*l+c*h,h=y)}},l.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},l.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},l.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},l.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},l.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},l.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,h,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*h[d];u[d]=s[d]*h[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),h(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=u(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){n("number"===typeof t&&t>=0);var i;i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var h=0|this.words[c];this.words[c]=f<<26-o|h>>>o,f=h&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o=t.length+r;this._expand(o);var a,s=0;for(i=0;i<t.length;i++){a=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;a-=67108863&u,s=(a>>26)-(u/67108864|0),this.words[i+r]=67108863&a}for(;i<this.length-r;i++)a=(0|this.words[i+r])+s,s=a>>26,this.words[i+r]=67108863&a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)a=-(0|this.words[i])+s,s=a>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){s=new o(null),s.length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var h=u-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){if(n(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var i,a,s;return 0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);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){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var f=r.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()||a.isOdd())&&(i.iadd(f),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(e.iushrn(u);u-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var f=0,h=1;0===(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a)):(r.isub(e),a.isub(i))}var l;return l=0===e.cmpn(1)?i:a,l.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(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=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 r;if(this.length>1)r=1;else{e&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];r=i===t?0:i<t?-1:1}return 0!==this.negative?0|-r:r},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var x={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,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},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 r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[n-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,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(m,d),i(b,d),i(v,d),v.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(x[t])return x[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 x[t]=e,e},y.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},y.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(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 r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},y.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},y.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},y.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var m=d,b=0;0!==m.cmp(s);b++)m=m.redSqr();n(b<p);var v=this.pow(h,new o(1).iushln(p-b-1));l=l.redMul(v),h=v.redSqr(),d=d.redMul(h),p=b}return l},y.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},y.prototype.pow=function(t,e){if(e.isZero())return new o(1);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],f=u-1;f>=0;f--){var h=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=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 r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).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 r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}("undefined"===typeof t||t,this)}).call(e,r(18)(t))},function(t,e){var r="0123456789abcdef".split(""),n=[1,256,65536,16777216],i=[0,8,16,24],o=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],a=function(t){return{blocks:[],reset:!0,block:0,start:0,blockCount:1600-(t<<1)>>5,outputBlocks:t>>5,s:function(t){return[].concat(t,t,t,t,t)}([0,0,0,0,0,0,0,0,0,0])}},s=function(t,e){for(var o,a,s=e.length,c=t.blocks,f=t.blockCount<<2,h=t.blockCount,l=t.outputBlocks,d=t.s,p=0;p<s;){if(t.reset)for(t.reset=!1,c[0]=t.block,o=1;o<h+1;++o)c[o]=0;if("string"!==typeof e)for(o=t.start;p<s&&o<f;++p)c[o>>2]|=e[p]<<i[3&o++];else for(o=t.start;p<s&&o<f;++p)a=e.charCodeAt(p),a<128?c[o>>2]|=a<<i[3&o++]:a<2048?(c[o>>2]|=(192|a>>6)<<i[3&o++],c[o>>2]|=(128|63&a)<<i[3&o++]):a<55296||a>=57344?(c[o>>2]|=(224|a>>12)<<i[3&o++],c[o>>2]|=(128|a>>6&63)<<i[3&o++],c[o>>2]|=(128|63&a)<<i[3&o++]):(a=65536+((1023&a)<<10|1023&e.charCodeAt(++p)),c[o>>2]|=(240|a>>18)<<i[3&o++],c[o>>2]|=(128|a>>12&63)<<i[3&o++],c[o>>2]|=(128|a>>6&63)<<i[3&o++],c[o>>2]|=(128|63&a)<<i[3&o++]);if(t.lastByteIndex=o,o>=f){for(t.start=o-f,t.block=c[h],o=0;o<h;++o)d[o]^=c[o];u(d),t.reset=!0}else t.start=o}if(o=t.lastByteIndex,c[o>>2]|=n[3&o],t.lastByteIndex===f)for(c[0]=c[h],o=1;o<h+1;++o)c[o]=0;for(c[h-1]|=2147483648,o=0;o<h;++o)d[o]^=c[o];u(d);for(var m,b="",o=0,v=0;v<l;){for(o=0;o<h&&v<l;++o,++v)m=d[o],b+=r[m>>4&15]+r[15&m]+r[m>>12&15]+r[m>>8&15]+r[m>>20&15]+r[m>>16&15]+r[m>>28&15]+r[m>>24&15];v%h===0&&(u(d),o=0)}return"0x"+b},u=function(t){var e,r,n,i,a,s,u,c,f,h,l,d,p,m,b,v,y,g,_,w,M,k,E,x,S,A,C,T,I,P,R,O,j,N,B,L,F,D,U,q,z,H,V,K,Y,G,W,Z,X,$,Q,J,tt,et,rt,nt,it,ot,at,st,ut,ct,ft;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],a=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],u=t[3]^t[13]^t[23]^t[33]^t[43],c=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],d=t[8]^t[18]^t[28]^t[38]^t[48],p=t[9]^t[19]^t[29]^t[39]^t[49],e=d^(s<<1|u>>>31),r=p^(u<<1|s>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(c<<1|f>>>31),r=a^(f<<1|c>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=s^(h<<1|l>>>31),r=u^(l<<1|h>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=c^(d<<1|p>>>31),r=f^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=h^(i<<1|a>>>31),r=l^(a<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],b=t[1],G=t[11]<<4|t[10]>>>28,W=t[10]<<4|t[11]>>>28,T=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,V=t[41]<<18|t[40]>>>14,N=t[2]<<1|t[3]>>>31,B=t[3]<<1|t[2]>>>31,v=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,ct=t[42]<<2|t[43]>>>30,ft=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,F=t[15]<<6|t[14]>>>26,g=t[25]<<11|t[24]>>>21,_=t[24]<<11|t[25]>>>21,$=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,O=t[45]<<29|t[44]>>>3,j=t[44]<<29|t[45]>>>3,x=t[6]<<28|t[7]>>>4,S=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,U=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,M=t[37]<<21|t[36]>>>11,J=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,K=t[8]<<27|t[9]>>>5,Y=t[9]<<27|t[8]>>>5,A=t[18]<<20|t[19]>>>12,C=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,q=t[38]<<8|t[39]>>>24,z=t[39]<<8|t[38]>>>24,k=t[48]<<14|t[49]>>>18,E=t[49]<<14|t[48]>>>18,t[0]=m^~v&g,t[1]=b^~y&_,t[10]=x^~A&T,t[11]=S^~C&I,t[20]=N^~L&D,t[21]=B^~F&U,t[30]=K^~G&Z,t[31]=Y^~W&X,t[40]=et^~nt&ot,t[41]=rt^~it&at,t[2]=v^~g&w,t[3]=y^~_&M,t[12]=A^~T&P,t[13]=C^~I&R,t[22]=L^~D&q,t[23]=F^~U&z,t[32]=G^~Z&$,t[33]=W^~X&Q,t[42]=nt^~ot&st,t[43]=it^~at&ut,t[4]=g^~w&k,t[5]=_^~M&E,t[14]=T^~P&O,t[15]=I^~R&j,t[24]=D^~q&H,t[25]=U^~z&V,t[34]=Z^~$&J,t[35]=X^~Q&tt,t[44]=ot^~st&ct,t[45]=at^~ut&ft,t[6]=w^~k&m,t[7]=M^~E&b,t[16]=P^~O&x,t[17]=R^~j&S,t[26]=q^~H&N,t[27]=z^~V&B,t[36]=$^~J&K,t[37]=Q^~tt&Y,t[46]=st^~ct&et,t[47]=ut^~ft&rt,t[8]=k^~m&v,t[9]=E^~b&y,t[18]=O^~x&A,t[19]=j^~S&C,t[28]=H^~N&L,t[29]=V^~B&F,t[38]=J^~K&G,t[39]=tt^~Y&W,t[48]=ct^~et&nt,t[49]=ft^~rt&it,t[0]^=o[n],t[1]^=o[n+1]},c=function(t){return function(e){var r;if("0x"===e.slice(0,2)){r=[];for(var n=2,i=e.length;n<i;n+=2)r.push(parseInt(e.slice(n,n+2),16))}else r=e;return s(a(t),r)}};t.exports={keccak256:c(256),keccak512:c(512),keccak256s:c(256),keccak512s:c(512)}},function(t,e,r){"use strict";var n=r(11),i=r(12),o=function(t,e){for(var r=t;r.length<2*e;)r="0"+r;return r},a=function(t){var e="A".charCodeAt(0),r="Z".charCodeAt(0);return t=t.toUpperCase(),t=t.substr(4)+t.substr(0,4),t.split("").map(function(t){var n=t.charCodeAt(0);return n>=e&&n<=r?n-e+10:t}).join("")},s=function(t){for(var e,r=t;r.length>2;)e=r.slice(0,9),r=parseInt(e,10)%97+r.slice(e.length);return parseInt(r,10)%97},u=function(t){this._iban=t};u.toAddress=function(t){if(t=new u(t),!t.isDirect())throw new Error("IBAN is indirect and can't be converted");return t.toAddress()},u.toIban=function(t){return u.fromAddress(t).toString()},u.fromAddress=function(t){if(!n.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),r=e.toString(36),a=o(r,15);return u.fromBban(a.toUpperCase())},u.fromBban=function(t){var e=s(a("XE00"+t)),r=("0"+(98-e)).slice(-2);return new u("XE"+r+t)},u.createIndirect=function(t){return u.fromBban("ETH"+t.institution+t.identifier)},u.isValid=function(t){return new u(t).isValid()},u.prototype.isValid=function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===s(a(this._iban))},u.prototype.isDirect=function(){return 34===this._iban.length||35===this._iban.length},u.prototype.isIndirect=function(){return 20===this._iban.length},u.prototype.checksum=function(){return this._iban.substr(2,2)},u.prototype.institution=function(){return this.isIndirect()?this._iban.substr(7,4):""},u.prototype.client=function(){return this.isIndirect()?this._iban.substr(11):""},u.prototype.toAddress=function(){if(this.isDirect()){var t=this._iban.substr(4),e=new i(t,36);return n.toChecksumAddress(e.toString(16,20))}return""},u.prototype.toString=function(){return this._iban},t.exports=u},function(t,e,r){"use strict";var n={messageId:0};n.toPayload=function(t,e){if(!t)throw new Error('JSONRPC method should be specified for params: "'+JSON.stringify(e)+'"!');return n.messageId++,{jsonrpc:"2.0",id:n.messageId,method:t,params:e||[]}},n.isValidResponse=function(t){function e(t){return!!t&&!t.error&&"2.0"===t.jsonrpc&&("number"===typeof t.id||"string"===typeof t.id)&&void 0!==t.result}return Array.isArray(t)?t.every(e):e(t)},n.toBatchPayload=function(t){return t.map(function(t){return n.toPayload(t.method,t.params)})},t.exports=n},function(t,e,r){"use strict";var n=r(75),i=r(183),o=function(t){var e,r,o=new i(function(){e=arguments[0],r=arguments[1]});if(t)return{resolve:e,reject:r,eventEmitter:o};var a=new n;return o._events=a._events,o.emit=a.emit,o.on=a.on,o.once=a.once,o.off=a.off,o.listeners=a.listeners,o.addListener=a.addListener,o.removeListener=a.removeListener,o.removeAllListeners=a.removeAllListeners,{resolve:e,reject:r,eventEmitter:o}};o.resolve=function(t){var e=o(!0);return e.resolve(t),e.eventEmitter},t.exports=o},function(t,e,r){"use strict";function n(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(){}var o="function"!==typeof Object.create&&"~";i.prototype._events=void 0,i.prototype.listeners=function(t,e){var r=o?o+t:t,n=this._events&&this._events[r];if(e)return!!n;if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,s=new Array(a);i<a;i++)s[i]=n[i].fn;return s},i.prototype.emit=function(t,e,r,n,i,a){var s=o?o+t:t;if(!this._events||!this._events[s])return!1;var u,c,f=this._events[s],h=arguments.length;if("function"===typeof f.fn){switch(f.once&&this.removeListener(t,f.fn,void 0,!0),h){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,e),!0;case 3:return f.fn.call(f.context,e,r),!0;case 4:return f.fn.call(f.context,e,r,n),!0;case 5:return f.fn.call(f.context,e,r,n,i),!0;case 6:return f.fn.call(f.context,e,r,n,i,a),!0}for(c=1,u=new Array(h-1);c<h;c++)u[c-1]=arguments[c];f.fn.apply(f.context,u)}else{var l,d=f.length;for(c=0;c<d;c++)switch(f[c].once&&this.removeListener(t,f[c].fn,void 0,!0),h){case 1:f[c].fn.call(f[c].context);break;case 2:f[c].fn.call(f[c].context,e);break;case 3:f[c].fn.call(f[c].context,e,r);break;default:if(!u)for(l=1,u=new Array(h-1);l<h;l++)u[l-1]=arguments[l];f[c].fn.apply(f[c].context,u)}}return!0},i.prototype.on=function(t,e,r){var i=new n(e,r||this),a=o?o+t:t;return this._events||(this._events=o?{}:Object.create(null)),this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):this._events[a]=i,this},i.prototype.once=function(t,e,r){var i=new n(e,r||this,!0),a=o?o+t:t;return this._events||(this._events=o?{}:Object.create(null)),this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):this._events[a]=i,this},i.prototype.removeListener=function(t,e,r,n){var i=o?o+t:t;if(!this._events||!this._events[i])return this;var a=this._events[i],s=[];if(e)if(a.fn)(a.fn!==e||n&&!a.once||r&&a.context!==r)&&s.push(a);else for(var u=0,c=a.length;u<c;u++)(a[u].fn!==e||n&&!a[u].once||r&&a[u].context!==r)&&s.push(a[u]);return s.length?this._events[i]=1===s.length?s[0]:s:delete this._events[i],this},i.prototype.removeAllListeners=function(t){return this._events?(t?delete this._events[o?o+t:t]:this._events=o?{}:Object.create(null),this):this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prototype.setMaxListeners=function(){return this},i.prefixed=o,t.exports=i},function(t,e,r){"use strict";var n=r(21),i=r(22),o=r(11),a=r(40),s=r(7).formatters,u=function(){var t=this;n.packageInit(this,arguments),this.net=new a(this.currentProvider);var e=null,r="latest";Object.defineProperty(this,"defaultAccount",{get:function(){return e},set:function(t){return t&&(e=o.toChecksumAddress(s.inputAddressFormatter(t))),u.forEach(function(t){t.defaultAccount=e}),t},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return r},set:function(t){return r=t,u.forEach(function(t){t.defaultBlock=r}),t},enumerable:!0});var u=[new i({name:"getAccounts",call:"personal_listAccounts",params:0,outputFormatter:o.toChecksumAddress}),new i({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:o.toChecksumAddress}),new i({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[s.inputAddressFormatter,null,null]}),new i({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[s.inputAddressFormatter]}),new i({name:"importRawKey",call:"personal_importRawKey",params:2}),new i({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[s.inputTransactionFormatter,null]}),new i({name:"sign",call:"personal_sign",params:3,inputFormatter:[s.inputSignFormatter,s.inputAddressFormatter,null]}),new i({name:"ecRecover",call:"personal_ecRecover",params:2,inputFormatter:[s.inputSignFormatter,null]})];u.forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager),e.defaultBlock=t.defaultBlock,e.defaultAccount=t.defaultAccount})};n.addProviders(u),t.exports=u},function(t,e,r){function n(){}var i=r(5),o=r(11),a=r(15),s=r(189),u=r(190),c=r(191),f=r(192),h=r(193),l=r(194),d=r(195),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 r=e.map(function(e,r){return e.staticPartLength(t[r])}),n=1;n<r.length;n++)r[n]+=r[n-1];return r.map(function(r,n){return r-e[n].staticPartLength(t[n])})},m.prototype._getSolidityTypes=function(t){var e=this;return t.map(function(t){return e._requireType(t)})},m.prototype._encodeMultiWithOffset=function(t,e,r,n){var i="",o=this;return t.forEach(function(s,u){if(p(e[u],t[u])){i+=a.formatInputInt(n).encode();var c=o._encodeWithOffset(t[u],e[u],r[u],n);n+=c.length/2}else i+=o._encodeWithOffset(t[u],e[u],r[u],n)}),t.forEach(function(a,s){if(p(e[s],t[s])){var u=o._encodeWithOffset(t[s],e[s],r[s],n);n+=u.length/2,i+=u}}),i},m.prototype._encodeWithOffset=function(t,e,r,n){var i=this;return e.isDynamicArray(t)?function(){var o=e.nestedName(t),s=e.staticPartLength(o),u=r[0];return function(){var t=2;if(e.isDynamicArray(o))for(var i=1;i<r.length;i++)t+=+r[i-1][0]||0,u+=a.formatInputInt(n+i*s+32*t).encode()}(),function(){for(var t=0;t<r.length-1;t++){var a=u/2;u+=i._encodeWithOffset(o,e,r[t+1],n+a)}}(),u}():e.isStaticArray(t)?function(){var o=e.nestedName(t),s=e.staticPartLength(o),u="";return e.isDynamicArray(o)&&function(){for(var t=0,e=0;e<r.length;e++)t+=+(r[e-1]||[])[0]||0,u+=a.formatInputInt(n+e*s+32*t).encode()}(),function(){for(var t=0;t<r.length;t++){var a=u/2;u+=i._encodeWithOffset(o,e,r[t],n+a)}}(),u}():r},m.prototype.encodeFunctionSignature=function(t){return i.isObject(t)&&(t=o._jsonInterfaceMethodToString(t)),o.sha3(t).slice(0,10)},m.prototype.encodeEventSignature=function(t){return i.isObject(t)&&(t=o._jsonInterfaceMethodToString(t)),o.sha3(t)},m.prototype.encodeParameter=function(t,e){return this.encodeParameters([t],[e])},m.prototype.encodeParameters=function(t,e){i.isObject(t)&&t.inputs&&(t=i.map(t.inputs,function(t){return t.type}));var r=this._getSolidityTypes(t),n=r.map(function(r,n){return r.encode(e[n],t[n])}),o=r.reduce(function(e,n,i){var o=n.staticPartLength(t[i]),a=32*Math.floor((o+31)/32);return e+(p(r[i],t[i])?32:a)},0);return"0x"+this._encodeMultiWithOffset(t,r,n,o)},m.prototype.encodeFunctionCall=function(t,e){return this.encodeFunctionSignature(t)+this.encodeParameters(t,e).replace("0x","")},m.prototype.decodeParameter=function(t,e){if(!i.isString(t))throw new Error("Given parameter type is not a string: "+t);return this.decodeParameters([{type:t}],e)[0]},m.prototype.decodeParameters=function(t,e){var r=i.isArray(t)&&i.isString(t[0]),o=r?t:[];r||t.forEach(function(t){o.push(t.type)});var a=this._getSolidityTypes(o),s=this._getOffsets(o,a),u=new n;u.__length__=0;var c=0;return t.forEach(function(t,r){var n=a[c].decode(e.replace(/^0x/i,""),s[c],o[c],c);n="0x"===n?null:n,u[r]=n,i.isObject(t)&&t.name&&(u[t.name]=n),u.__length__++,c++}),u},m.prototype.decodeLog=function(t,e,r){var o=[],a=[];t.forEach(function(t,e){t.indexed?a[e]=t:o[e]=t});var s=e.slice(2),u=i.isArray(r)?r.map(function(t){return t.slice(2)}).join(""):r,c=this.decodeParameters(o,s),f=this.decodeParameters(a,u),h=new n;return h.__length__=0,t.forEach(function(t,e){h[e]="string"===t.type?"":null,c[e]&&(h[e]=c[e]),f[e]&&(h[e]=f[e]),t.name&&(h[t.name]=h[e]),h.__length__++}),h};var b=new m([new s,new u,new c,new f,new h,new d,new l]);t.exports=b},function(t,e,r){var n=r(15),i=function(t,e,r){this.value=t||"",this.offset=e,this.rawValue=r};i.prototype.dynamicPartLength=function(){return this.dynamicPart().length/2},i.prototype.withOffset=function(t){return new i(this.value,t)},i.prototype.combine=function(t){return new i(this.value+t.value)},i.prototype.isDynamic=function(){return void 0!==this.offset},i.prototype.offsetAsBytes=function(){return this.isDynamic()?n.toTwosComplement(this.offset).replace("0x",""):""},i.prototype.staticPart=function(){return this.isDynamic()?this.offsetAsBytes():this.value},i.prototype.dynamicPart=function(){return this.isDynamic()?this.value:""},i.prototype.encode=function(){return this.staticPart()+this.dynamicPart()},i.encodeList=function(t){var e=32*t.length,r=t.map(function(t){if(!t.isDynamic())return t;var r=e;return e+=t.dynamicPartLength(),t.withOffset(r)});return r.reduce(function(t,e){return t+e.dynamicPart()},r.reduce(function(t,e){return t+e.staticPart()},""))},t.exports=i},function(t,e,r){"use strict";(function(e,n){function i(t){return L.from(t)}function o(t){return L.isBuffer(t)||t instanceof F}function a(t,e,r){if("function"===typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?j(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}function s(t,e){O=O||r(24),t=t||{},this.objectMode=!!t.objectMode,e instanceof O&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new H,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(z||(z=r(42).StringDecoder),this.decoder=new z(t.encoding),this.encoding=t.encoding)}function u(t){if(O=O||r(24),!(this instanceof u))return new u(t);this._readableState=new s(t,this),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),B.call(this)}function c(t,e,r,n,o){var a=t._readableState;if(null===e)a.reading=!1,m(t,a);else{var s;o||(s=h(a,e)),s?t.emit("error",s):a.objectMode||e&&e.length>0?("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===L.prototype||(e=i(e)),n?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):f(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?f(t,a,e,!1):y(t,a)):f(t,a,e,!1))):n||(a.reading=!1)}return l(a)}function f(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&b(t)),y(t,e)}function h(t,e){var r;return o(e)||"string"===typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function l(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function d(t){return t>=Y?t=Y:(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 r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,b(t)}}function b(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(q("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?R(v,t):v(t))}function v(t){q("emit readable"),t.emit("readable"),E(t)}function y(t,e){e.readingMore||(e.readingMore=!0,R(g,t,e))}function g(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(q("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function _(t){return function(){var e=t._readableState;q("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&N(t,"data")&&(e.flowing=!0,E(t))}}function w(t){q("readable nexttick read 0"),t.read(0)}function M(t,e){e.resumeScheduled||(e.resumeScheduled=!0,R(k,t,e))}function k(t,e){e.reading||(q("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),E(t),e.flowing&&!e.reading&&t.read(0)}function E(t){var e=t._readableState;for(q("flow",e.flowing);e.flowing&&null!==t.read(););}function x(t,e){if(0===e.length)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=S(t,e.buffer,e.decoder),r}function S(t,e,r){var n;return t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?A(t,e):C(t,e),n}function A(t,e){var r=e.head,n=1,i=r.data;for(t-=i.length;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++n}return e.length-=n,i}function C(t,e){var r=L.allocUnsafe(t),n=e.head,i=1;for(n.data.copy(r),t-=n.data.length;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++i}return e.length-=i,r}function T(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,R(I,e,t))}function I(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function P(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}var R=r(41);t.exports=u;var O,j=r(67);u.ReadableState=s;var N=(r(53).EventEmitter,function(t,e){return t.listeners(e).length}),B=r(80),L=r(2).Buffer,F=e.Uint8Array||function(){},D=r(32);D.inherits=r(1);var U=r(202),q=void 0;q=U&&U.debuglog?U.debuglog("stream"):function(){};var z,H=r(203),V=r(81);D.inherits(u,B);var K=["error","close","destroy","pause","resume"];Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),u.prototype.destroy=V.destroy,u.prototype._undestroy=V.undestroy,u.prototype._destroy=function(t,e){this.push(null),e(t)},u.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"===typeof t&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=L.from(t,e),e=""),r=!0),c(this,t,e,!1,r)},u.prototype.unshift=function(t){return c(this,t,null,!0,!1)},u.prototype.isPaused=function(){return!1===this._readableState.flowing},u.prototype.setEncoding=function(t){return z||(z=r(42).StringDecoder),this._readableState.decoder=new z(t),this._readableState.encoding=t,this};var Y=8388608;u.prototype.read=function(t){q("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return q("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?T(this):b(this),null;if(0===(t=p(t,e))&&e.ended)return 0===e.length&&T(this),null;var n=e.needReadable;q("need readable",n),(0===e.length||e.length-t<e.highWaterMark)&&(n=!0,q("length less than watermark",n)),e.ended||e.reading?(n=!1,q("reading or ended",n)):n&&(q("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=p(r,e)));var i;return i=t>0?x(t,e):null,null===i?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&T(this)),null!==i&&this.emit("data",i),i},u.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(t,e){function r(t,e){q("onunpipe"),t===l&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,o())}function i(){q("onend"),t.end()}function o(){q("cleanup"),t.removeListener("close",c),t.removeListener("finish",f),t.removeListener("drain",b),t.removeListener("error",u),t.removeListener("unpipe",r),l.removeListener("end",i),l.removeListener("end",h),l.removeListener("data",s),v=!0,!d.awaitDrain||t._writableState&&!t._writableState.needDrain||b()}function s(e){q("ondata"),y=!1,!1!==t.write(e)||y||((1===d.pipesCount&&d.pipes===t||d.pipesCount>1&&-1!==P(d.pipes,t))&&!v&&(q("false write response, pause",l._readableState.awaitDrain),l._readableState.awaitDrain++,y=!0),l.pause())}function u(e){q("onerror",e),h(),t.removeListener("error",u),0===N(t,"error")&&t.emit("error",e)}function c(){t.removeListener("finish",f),h()}function f(){q("onfinish"),t.removeListener("close",c),h()}function h(){q("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,q("pipe count=%d opts=%j",d.pipesCount,e);var p=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr,m=p?i:h;d.endEmitted?R(m):l.once("end",m),t.on("unpipe",r);var b=_(l);t.on("drain",b);var v=!1,y=!1;return l.on("data",s),a(t,"error",u),t.once("close",c),t.once("finish",f),t.emit("pipe",l),d.flowing||(q("pipe resume"),l.resume()),t},u.prototype.unpipe=function(t){var e=this._readableState,r={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,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=P(e.pipes,t);return-1===a?this:(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)},u.prototype.on=function(t,e){var r=B.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&b(this):R(w,this))}return r},u.prototype.addListener=u.prototype.on,u.prototype.resume=function(){var t=this._readableState;return t.flowing||(q("resume"),t.flowing=!0,M(this,t)),this},u.prototype.pause=function(){return q("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(q("pause"),this._readableState.flowing=!1,this.emit("pause")),this},u.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this;t.on("end",function(){if(q("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&n.push(t)}n.push(null)}),t.on("data",function(i){if(q("wrapped data"),e.decoder&&(i=e.decoder.write(i)),(!e.objectMode||null!==i&&void 0!==i)&&(e.objectMode||i&&i.length)){n.push(i)||(r=!0,t.pause())}});for(var i in t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<K.length;o++)t.on(K[o],n.emit.bind(n,K[o]));return n._read=function(e){q("wrapped _read",e),r&&(r=!1,t.resume())},n},u._fromList=x}).call(e,r(4),r(8))},function(t,e,r){t.exports=r(53).EventEmitter},function(t,e,r){"use strict";function n(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;if(n||i)return void(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||a(o,this,t));this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(a(o,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e&&e(t)})}function i(){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)}function o(t,e){t.emit("error",e)}var a=r(41);t.exports={destroy:n,undestroy:i}},function(t,e,r){"use strict";function n(t){this.afterTransform=function(e,r){return i(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function i(t,e,r){var n=t._transformState;n.transforming=!1;var i=n.writecb;if(!i)return t.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!==r&&void 0!==r&&t.push(r),i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);s.call(this,t),this._transformState=new n(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",function(){"function"===typeof this._flush?this._flush(function(t,r){a(e,t,r)}):a(e)})}function a(t,e,r){if(e)return t.emit("error",e);null!==r&&void 0!==r&&t.push(r);var n=t._writableState,i=t._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(i.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}t.exports=o;var s=r(24),u=r(32);u.inherits=r(1),u.inherits(o,s),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,s.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var r=this;s.prototype._destroy.call(this,t,function(t){e(t),r.emit("close")})}},function(t,e,r){function n(){this.init(),this._w=p,h.call(this,64,56)}function i(t,e,r){return r^t&(e^r)}function o(t,e,r){return t&e|r&(t|e)}function a(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function s(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function u(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function c(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}var f=r(1),h=r(28),l=r(2).Buffer,d=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],p=new Array(64);f(n,h),n.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},n.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,f=0|this._c,h=0|this._d,l=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]=c(e[v-2])+e[v-7]+u(e[v-15])+e[v-16]|0;for(var y=0;y<64;++y){var g=b+s(l)+i(l,p,m)+d[y]+e[y]|0,_=a(r)+o(r,n,f)|0;b=m,m=p,p=l,l=h+g|0,h=f,f=n,n=r,r=g+_|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=f+this._c|0,this._d=h+this._d|0,this._e=l+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},n.prototype._hash=function(){var t=l.allocUnsafe(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},t.exports=n},function(t,e,r){function n(){this.init(),this._w=v,p.call(this,128,112)}function i(t,e,r){return r^t&(e^r)}function o(t,e,r){return t&e|r&(t|e)}function a(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function s(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function u(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function c(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<e>>>0?1:0}var d=r(1),p=r(28),m=r(2).Buffer,b=[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],v=new Array(160);d(n,p),n.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},n.prototype._update=function(t){for(var e=this._w,r=0|this._ah,n=0|this._bh,d=0|this._ch,p=0|this._dh,m=0|this._eh,v=0|this._fh,y=0|this._gh,g=0|this._hh,_=0|this._al,w=0|this._bl,M=0|this._cl,k=0|this._dl,E=0|this._el,x=0|this._fl,S=0|this._gl,A=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 T=e[C-30],I=e[C-30+1],P=u(T,I),R=c(I,T);T=e[C-4],I=e[C-4+1];var O=f(T,I),j=h(I,T),N=e[C-14],B=e[C-14+1],L=e[C-32],F=e[C-32+1],D=R+B|0,U=P+N+l(D,R)|0;D=D+j|0,U=U+O+l(D,j)|0,D=D+F|0,U=U+L+l(D,F)|0,e[C]=U,e[C+1]=D}for(var q=0;q<160;q+=2){U=e[q],D=e[q+1];var z=o(r,n,d),H=o(_,w,M),V=a(r,_),K=a(_,r),Y=s(m,E),G=s(E,m),W=b[q],Z=b[q+1],X=i(m,v,y),$=i(E,x,S),Q=A+G|0,J=g+Y+l(Q,A)|0;Q=Q+$|0,J=J+X+l(Q,$)|0,Q=Q+Z|0,J=J+W+l(Q,Z)|0,Q=Q+D|0,J=J+U+l(Q,D)|0;var tt=K+H|0,et=V+z+l(tt,K)|0;g=y,A=S,y=v,S=x,v=m,x=E,E=k+Q|0,m=p+J+l(E,k)|0,p=d,k=M,d=n,M=w,n=r,w=_,_=Q+tt|0,r=J+et+l(_,Q)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+M|0,this._dl=this._dl+k|0,this._el=this._el+E|0,this._fl=this._fl+x|0,this._gl=this._gl+S|0,this._hl=this._hl+A|0,this._ah=this._ah+r+l(this._al,_)|0,this._bh=this._bh+n+l(this._bl,w)|0,this._ch=this._ch+d+l(this._cl,M)|0,this._dh=this._dh+p+l(this._dl,k)|0,this._eh=this._eh+m+l(this._el,E)|0,this._fh=this._fh+v+l(this._fl,x)|0,this._gh=this._gh+y+l(this._gl,S)|0,this._hh=this._hh+g+l(this._hl,A)|0},n.prototype._hash=function(){function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}var e=m.allocUnsafe(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},t.exports=n},function(t,e,r){"use strict";function n(t,e){a.call(this,"digest"),"string"===typeof e&&(e=s.from(e));var r="sha512"===t||"sha384"===t?128:64;if(this._alg=t,this._key=e,e.length>r){e=("rmd160"===t?new c:f(t)).update(e).digest()}else e.length<r&&(e=s.concat([e,h],r));for(var n=this._ipad=s.allocUnsafe(r),i=this._opad=s.allocUnsafe(r),o=0;o<r;o++)n[o]=54^e[o],i[o]=92^e[o];this._hash="rmd160"===t?new c:f(t),this._hash.update(n)}var i=r(1),o=r(214),a=r(20),s=r(2).Buffer,u=r(51),c=r(52),f=r(56),h=s.alloc(128);i(n,a),n.prototype._update=function(t){this._hash.update(t)},n.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new c:f(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return t=t.toLowerCase(),"rmd160"===t||"ripemd160"===t?new n("rmd160",e):"md5"===t?new o(u,e):new n(t,e)}},function(t,e){t.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"}}},function(t,e,r){e.pbkdf2=r(216),e.pbkdf2Sync=r(90)},function(t,e){var r=Math.pow(2,30)-1;t.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")}},function(t,e,r){(function(e){var r;if(e.browser)r="utf-8";else{r=parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}t.exports=r}).call(e,r(8))},function(t,e,r){function n(t,e,r){var n=i(t),o="sha512"===t||"sha384"===t?128:64;e.length>o?e=n(e):e.length<o&&(e=h.concat([e,l],o));for(var a=h.allocUnsafe(o+d[t]),s=h.allocUnsafe(o+d[t]),u=0;u<o;u++)a[u]=54^e[u],s[u]=92^e[u];var c=h.allocUnsafe(o+r+4);a.copy(c,0,0,o),this.ipad1=c,this.ipad2=a,this.opad=s,this.alg=t,this.blocksize=o,this.hash=n,this.size=d[t]}function i(t){function e(e){return u(t).update(e).digest()}return"rmd160"===t||"ripemd160"===t?s:"md5"===t?a:e}function o(t,e,r,i,o){h.isBuffer(t)||(t=h.from(t,f)),h.isBuffer(e)||(e=h.from(e,f)),c(r,i),o=o||"sha1";var a=new n(o,t,e.length),s=h.allocUnsafe(i),u=h.allocUnsafe(e.length+4);e.copy(u,0,0,e.length);for(var l=0,p=d[o],m=Math.ceil(i/p),b=1;b<=m;b++){u.writeUInt32BE(b,e.length);for(var v=a.run(u,a.ipad1),y=v,g=1;g<r;g++){y=a.run(y,a.ipad2);for(var _=0;_<p;_++)v[_]^=y[_]}v.copy(s,l),l+=p}return s}var a=r(51),s=r(52),u=r(56),c=r(88),f=r(89),h=r(2).Buffer,l=h.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};n.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=o},function(t,e,r){function n(t){var e=t._cipher.encryptBlockRaw(t._prev);return a(t._prev),e}var i=r(33),o=r(2).Buffer,a=r(92);e.encrypt=function(t,e){var r=Math.ceil(e.length/16),a=t._cache.length;t._cache=o.concat([t._cache,o.allocUnsafe(16*r)]);for(var s=0;s<r;s++){var u=n(t),c=a+16*s;t._cache.writeUInt32BE(u[0],c+0),t._cache.writeUInt32BE(u[1],c+4),t._cache.writeUInt32BE(u[2],c+8),t._cache.writeUInt32BE(u[3],c+12)}var f=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),i(e,f)}},function(t,e){function r(t){for(var e,r=t.length;r--;){if(255!==(e=t.readUInt8(r))){e++,t.writeUInt8(e,r);break}t.writeUInt8(0,r)}}t.exports=r},function(t,e){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},function(t,e,r){function n(t,e){var r=0;t.length!==e.length&&r++;for(var n=Math.min(t.length,e.length),i=0;i<n;++i)r+=t[i]^e[i];return r}function i(t,e,r){if(12===e.length)return t._finID=s.concat([e,s.from([0,0,0,1])]),s.concat([e,s.from([0,0,0,2])]);var n=new f(r),i=e.length,o=i%16;n.update(e),o&&(o=16-o,n.update(s.alloc(o,0))),n.update(s.alloc(8,0));var a=8*i,u=s.alloc(8);u.writeUIntBE(a,0,8),n.update(u),t._finID=n.state;var c=s.from(t._finID);return l(c),c}function o(t,e,r,n){u.call(this);var o=s.alloc(4,0);this._cipher=new a.AES(e);var c=this._cipher.encryptBlock(o);this._ghash=new f(c),r=i(this,r,c),this._prev=s.from(r),this._cache=s.allocUnsafe(0),this._secCache=s.allocUnsafe(0),this._decrypt=n,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}var a=r(44),s=r(2).Buffer,u=r(20),c=r(1),f=r(227),h=r(33),l=r(92);c(o,u),o.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=s.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r},o.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=h(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&n(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},o.prototype.getAuthTag=function(){if(this._decrypt||!s.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},o.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},o.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=o},function(t,e,r){function n(t,e,r,n){a.call(this),this._cipher=new i.AES(e),this._prev=o.from(r),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=n,this._mode=t}var i=r(44),o=r(2).Buffer,a=r(20);r(1)(n,a),n.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},n.prototype._final=function(){this._cipher.scrub()},t.exports=n},function(t,e,r){function n(){if(null!==g)return g;var t=[];t[0]=2;for(var e=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<e&&t[i]<=n&&r%t[i]!==0;i++);e!==i&&t[i]<=n||(t[e++]=r)}return g=t,t}function i(t){for(var e=n(),r=0;r<e.length;r++)if(0===t.modn(e[r]))return 0===t.cmpn(e[r]);return!0}function o(t){var e=u.mont(t);return 0===d.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function a(t,e){if(t<16)return new u(2===e||5===e?[140,123]:[140,39]);e=new u(e);for(var r,n;;){for(r=new u(s(Math.ceil(t/8)));r.bitLength()>t;)r.ishrn(1);if(r.isEven()&&r.iadd(l),r.testn(1)||r.iadd(d),e.cmp(d)){if(!e.cmp(p))for(;r.mod(m).cmp(b);)r.iadd(y)}else for(;r.mod(c).cmp(v);)r.iadd(y);if(n=r.shrn(1),i(n)&&i(r)&&o(n)&&o(r)&&h.test(n)&&h.test(r))return r}}var s=r(27);t.exports=a,a.simpleSieve=i,a.fermatTest=o;var u=r(3),c=new u(24),f=r(97),h=new f,l=new u(1),d=new u(2),p=new u(5),m=(new u(16),new u(8),new u(10)),b=new u(3),v=(new u(7),new u(11)),y=new u(4),g=(new u(12),null)},function(t,e,r){function n(t){this.rand=t||new o.Rand}var i=r(3),o=r(98);t.exports=n,n.create=function(t){return new n(t)},n.prototype._randbelow=function(t){var e=t.bitLength(),r=Math.ceil(e/8);do{var n=new i(this.rand.generate(r))}while(n.cmp(t)>=0);return n},n.prototype._randrange=function(t,e){var r=e.sub(t);return t.add(this._randbelow(r))},n.prototype.test=function(t,e,r){var n=t.bitLength(),o=i.mont(t),a=new i(1).toRed(o);e||(e=Math.max(1,n/48|0));for(var s=t.subn(1),u=0;!s.testn(u);u++);for(var c=t.shrn(u),f=s.toRed(o);e>0;e--){var h=this._randrange(new i(2),s);r&&r(h);var l=h.toRed(o).redPow(c);if(0!==l.cmp(a)&&0!==l.cmp(f)){for(var d=1;d<u;d++){if(l=l.redSqr(),0===l.cmp(a))return!1;if(0===l.cmp(f))break}if(d===u)return!1}}return!0},n.prototype.getDivisor=function(t,e){var r=t.bitLength(),n=i.mont(t),o=new i(1).toRed(n);e||(e=Math.max(1,r/48|0));for(var a=t.subn(1),s=0;!a.testn(s);s++);for(var u=t.shrn(s),c=a.toRed(n);e>0;e--){var f=this._randrange(new i(2),a),h=t.gcd(f);if(0!==h.cmpn(1))return h;var l=f.toRed(n).redPow(u);if(0!==l.cmp(o)&&0!==l.cmp(c)){for(var d=1;d<s;d++){if(l=l.redSqr(),0===l.cmp(o))return l.fromRed().subn(1).gcd(t);if(0===l.cmp(c))break}if(d===s)return l=l.redSqr(),l.fromRed().subn(1).gcd(t)}}return!1}},function(t,e,r){function n(t){this.rand=t}var i;if(t.exports=function(t){return i||(i=new n(null)),i.generate(t)},t.exports.Rand=n,n.prototype.generate=function(t){return this._rand(t)},n.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),r=0;r<e.length;r++)e[r]=this.rand.getByte();return e},"object"===typeof self)self.crypto&&self.crypto.getRandomValues?n.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?n.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"===typeof window&&(n.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=r(238);if("function"!==typeof o.randomBytes)throw new Error("Not supported");n.prototype._rand=function(t){return o.randomBytes(t)}}catch(t){}},function(t,e,r){"use strict";function n(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!==typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e){t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!==0&&(t="0"+t);for(var n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var n=0;n<t.length;n++){var i=t.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r}function i(t){return 1===t.length?"0"+t:t}function o(t){for(var e="",r=0;r<t.length;r++)e+=i(t[r].toString(16));return e}var a=e;a.toArray=n,a.zero2=i,a.toHex=o,a.encode=function(t,e){return"hex"===e?o(t):t}},function(t,e,r){"use strict";function n(t,e,r,n){return 0===t?i(e,r,n):1===t||3===t?a(e,r,n):2===t?o(e,r,n):void 0}function i(t,e,r){return t&e^~t&r}function o(t,e,r){return t&e^t&r^e&r}function a(t,e,r){return t^e^r}function s(t){return l(t,2)^l(t,13)^l(t,22)}function u(t){return l(t,6)^l(t,11)^l(t,25)}function c(t){return l(t,7)^l(t,18)^t>>>3}function f(t){return l(t,17)^l(t,19)^t>>>10}var h=r(16),l=h.rotr32;e.ft_1=n,e.ch32=i,e.maj32=o,e.p32=a,e.s0_256=s,e.s1_256=u,e.g0_256=c,e.g1_256=f},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}var i=r(16),o=r(34),a=r(100),s=r(13),u=i.sum32,c=i.sum32_4,f=i.sum32_5,h=a.ch32,l=a.maj32,d=a.s0_256,p=a.s1_256,m=a.g0_256,b=a.g1_256,v=o.BlockHash,y=[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];i.inherits(n,v),t.exports=n,n.blockSize=512,n.outSize=256,n.hmacStrength=192,n.padLength=64,n.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=c(b(r[n-2]),r[n-7],m(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],a=this.h[2],v=this.h[3],y=this.h[4],g=this.h[5],_=this.h[6],w=this.h[7];for(s(this.k.length===r.length),n=0;n<r.length;n++){var M=f(w,p(y),h(y,g,_),this.k[n],r[n]),k=u(d(i),l(i,o,a));w=_,_=g,g=y,y=u(v,M),v=a,a=o,o=i,i=u(M,k)}this.h[0]=u(this.h[0],i),this.h[1]=u(this.h[1],o),this.h[2]=u(this.h[2],a),this.h[3]=u(this.h[3],v),this.h[4]=u(this.h[4],y),this.h[5]=u(this.h[5],g),this.h[6]=u(this.h[6],_),this.h[7]=u(this.h[7],w)},n.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;I.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=P,this.W=new Array(160)}function i(t,e,r,n,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function o(t,e,r,n,i,o){var a=e&n^~e&o;return a<0&&(a+=4294967296),a}function a(t,e,r,n,i){var o=t&r^t&i^r&i;return o<0&&(o+=4294967296),o}function s(t,e,r,n,i,o){var a=e&n^e&o^n&o;return a<0&&(a+=4294967296),a}function u(t,e){var r=g(t,e,28),n=g(e,t,2),i=g(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function c(t,e){var r=_(t,e,28),n=_(e,t,2),i=_(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function f(t,e){var r=g(t,e,14),n=g(t,e,18),i=g(e,t,9),o=r^n^i;return o<0&&(o+=4294967296),o}function h(t,e){var r=_(t,e,14),n=_(t,e,18),i=_(e,t,9),o=r^n^i;return o<0&&(o+=4294967296),o}function l(t,e){var r=g(t,e,1),n=g(t,e,8),i=w(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function d(t,e){var r=_(t,e,1),n=_(t,e,8),i=M(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function p(t,e){var r=g(t,e,19),n=g(e,t,29),i=w(t,e,6),o=r^n^i;return o<0&&(o+=4294967296),o}function m(t,e){var r=_(t,e,19),n=_(e,t,29),i=M(t,e,6),o=r^n^i;return o<0&&(o+=4294967296),o}var b=r(16),v=r(34),y=r(13),g=b.rotr64_hi,_=b.rotr64_lo,w=b.shr64_hi,M=b.shr64_lo,k=b.sum64,E=b.sum64_hi,x=b.sum64_lo,S=b.sum64_4_hi,A=b.sum64_4_lo,C=b.sum64_5_hi,T=b.sum64_5_lo,I=v.BlockHash,P=[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.inherits(n,I),t.exports=n,n.blockSize=1024,n.outSize=512,n.hmacStrength=192,n.padLength=128,n.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n<r.length;n+=2){var i=p(r[n-4],r[n-3]),o=m(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],u=l(r[n-30],r[n-29]),c=d(r[n-30],r[n-29]),f=r[n-32],h=r[n-31];r[n]=S(i,o,a,s,u,c,f,h),r[n+1]=A(i,o,a,s,u,c,f,h)}},n.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,n=this.h[0],l=this.h[1],d=this.h[2],p=this.h[3],m=this.h[4],b=this.h[5],v=this.h[6],g=this.h[7],_=this.h[8],w=this.h[9],M=this.h[10],S=this.h[11],A=this.h[12],I=this.h[13],P=this.h[14],R=this.h[15];y(this.k.length===r.length);for(var O=0;O<r.length;O+=2){var j=P,N=R,B=f(_,w),L=h(_,w),F=i(_,w,M,S,A),D=o(_,w,M,S,A,I),U=this.k[O],q=this.k[O+1],z=r[O],H=r[O+1],V=C(j,N,B,L,F,D,U,q,z,H),K=T(j,N,B,L,F,D,U,q,z,H);j=u(n,l),N=c(n,l),B=a(n,l,d,p,m),L=s(n,l,d,p,m,b);var Y=E(j,N,B,L),G=x(j,N,B,L);P=A,R=I,A=M,I=S,M=_,S=w,_=E(v,g,V,K),w=x(g,g,V,K),v=m,g=b,m=d,b=p,d=n,p=l,n=E(V,K,Y,G),l=x(V,K,Y,G)}k(this.h,0,n,l),k(this.h,2,d,p),k(this.h,4,m,b),k(this.h,6,v,g),k(this.h,8,_,w),k(this.h,10,M,S),k(this.h,12,A,I),k(this.h,14,P,R)},n.prototype._digest=function(t){return"hex"===t?b.toHex32(this.h,"big"):b.split32(this.h,"big")}},function(t,e,r){function n(t,e){if(a.call(this,e),!s.isBuffer(t))return void this.error("Input not Buffer");this.base=t,this.offset=0,this.length=t.length}function i(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(t){return t instanceof i||(t=new i(t,e)),this.length+=t.length,t},this);else if("number"===typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"===typeof t)this.value=t,this.length=s.byteLength(t);else{if(!s.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}var o=r(1),a=r(36).Reporter,s=r(0).Buffer;o(n,a),e.DecoderBuffer=n,n.prototype.save=function(){return{offset:this.offset,reporter:a.prototype.save.call(this)}},n.prototype.restore=function(t){var e=new n(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,a.prototype.restore.call(this,t.reporter),e},n.prototype.isEmpty=function(){return this.offset===this.length},n.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},n.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var r=new n(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+t,this.offset+=t,r},n.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=i,i.prototype.join=function(t,e){return t||(t=new s(this.length)),e||(e=0),0===this.length?t:(Array.isArray(this.value)?this.value.forEach(function(r){r.join(t,e),e+=r.length}):("number"===typeof this.value?t[e]=this.value:"string"===typeof this.value?t.write(this.value,e):s.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length),t)}},function(t,e,r){var n=e;n._reverse=function(t){var e={};return Object.keys(t).forEach(function(r){(0|r)==r&&(r|=0);var n=t[r];e[n]=r}),e},n.der=r(270)},function(t,e,r){function n(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new i,this.tree._init(t.body)}function i(t){c.Node.call(this,"der",t)}function o(t,e){var r=t.readUInt8(e);if(t.isError(r))return r;var n=h.tagClass[r>>6],i=0===(32&r);if(31===(31&r)){var o=r;for(r=0;128===(128&o);){if(o=t.readUInt8(e),t.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:h.tag[r]}}function a(t,e,r){var n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&128===n)return null;if(0===(128&n))return n;var i=127&n;if(i>4)return t.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var a=t.readUInt8(r);if(t.isError(a))return a;n|=a}return n}var s=r(1),u=r(35),c=u.base,f=u.bignum,h=u.constants.der;t.exports=n,n.prototype.decode=function(t,e){return t instanceof c.DecoderBuffer||(t=new c.DecoderBuffer(t,e)),this.tree._decode(t,e)},s(i,c.Node),i.prototype._peekTag=function(t,e,r){if(t.isEmpty())return!1;var n=t.save(),i=o(t,'Failed to peek tag: "'+e+'"');return t.isError(i)?i:(t.restore(n),i.tag===e||i.tagStr===e||i.tagStr+"of"===e||r)},i.prototype._decodeTag=function(t,e,r){var n=o(t,'Failed to decode tag of "'+e+'"');if(t.isError(n))return n;var i=a(t,n.primitive,'Failed to get length of "'+e+'"');if(t.isError(i))return i;if(!r&&n.tag!==e&&n.tagStr!==e&&n.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(n.primitive||null!==i)return t.skip(i,'Failed to match body of: "'+e+'"');var s=t.save(),u=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(u)?u:(i=t.offset-s.offset,t.restore(s),t.skip(i,'Failed to match body of: "'+e+'"'))},i.prototype._skipUntilEnd=function(t,e){for(;;){var r=o(t,e);if(t.isError(r))return r;var n=a(t,r.primitive,e);if(t.isError(n))return n;var i;if(i=r.primitive||null!==n?t.skip(n):this._skipUntilEnd(t,e),t.isError(i))return i;if("end"===r.tagStr)break}},i.prototype._decodeList=function(t,e,r,n){for(var i=[];!t.isEmpty();){var o=this._peekTag(t,"end");if(t.isError(o))return o;var a=r.decode(t,"der",n);if(t.isError(a)&&o)break;i.push(a)}return i},i.prototype._decodeStr=function(t,e){if("bitstr"===e){var r=t.readUInt8();return t.isError(r)?r:{unused:r,data:t.raw()}}if("bmpstr"===e){var n=t.raw();if(n.length%2===1)return t.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===e){var a=t.raw().toString("ascii");return this._isNumstr(a)?a:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){var s=t.raw().toString("ascii");return this._isPrintstr(s)?s:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},i.prototype._decodeObjid=function(t,e,r){for(var n,i=[],o=0;!t.isEmpty();){var a=t.readUInt8();o<<=7,o|=127&a,0===(128&a)&&(i.push(o),o=0)}128&a&&i.push(o);var s=i[0]/40|0,u=i[0]%40;if(n=r?i:[s,u].concat(i.slice(1)),e){var c=e[n.join(" ")];void 0===c&&(c=e[n.join(".")]),void 0!==c&&(n=c)}return n},i.prototype._decodeTime=function(t,e){var r=t.raw().toString();if("gentime"===e)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");var n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),u=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,s,u,0)},i.prototype._decodeNull=function(t){return null},i.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},i.prototype._decodeInt=function(t,e){var r=t.raw(),n=new f(r);return e&&(n=e[n.toString(10)]||n),n},i.prototype._use=function(t,e){return"function"===typeof t&&(t=t(e)),t._getDecoder("der").tree}},function(t,e,r){function n(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new i,this.tree._init(t.body)}function i(t){f.Node.call(this,"der",t)}function o(t){return t<10?"0"+t:t}function a(t,e,r,n){var i;if("seqof"===t?t="seq":"setof"===t&&(t="set"),h.tagByName.hasOwnProperty(t))i=h.tagByName[t];else{if("number"!==typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);i=t}return i>=31?n.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|=h.tagClassByName[r||"universal"]<<6)}var s=r(1),u=r(0).Buffer,c=r(35),f=c.base,h=c.constants.der;t.exports=n,n.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},s(i,f.Node),i.prototype._encodeComposite=function(t,e,r,n){var i=a(t,e,r,this.reporter);if(n.length<128){var o=new u(2);return o[0]=i,o[1]=n.length,this._createEncoderBuffer([o,n])}for(var s=1,c=n.length;c>=256;c>>=8)s++;var o=new u(2+s);o[0]=i,o[1]=128|s;for(var c=1+s,f=n.length;f>0;c--,f>>=8)o[c]=255&f;return this._createEncoderBuffer([o,n])},i.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var r=new u(2*t.length),n=0;n<t.length;n++)r.writeUInt16BE(t.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)?this._createEncoderBuffer(t):"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},i.prototype._encodeObjid=function(t,e,r){if("string"===typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s\.]+/g);for(var n=0;n<t.length;n++)t[n]|=0}else if(Array.isArray(t)){t=t.slice();for(var n=0;n<t.length;n++)t[n]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!r){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}for(var i=0,n=0;n<t.length;n++){var o=t[n];for(i++;o>=128;o>>=7)i++}for(var a=new u(i),s=a.length-1,n=t.length-1;n>=0;n--){var o=t[n];for(a[s--]=127&o;(o>>=7)>0;)a[s--]=128|127&o}return this._createEncoderBuffer(a)},i.prototype._encodeTime=function(t,e){var r,n=new Date(t);return"gentime"===e?r=[o(n.getFullYear()),o(n.getUTCMonth()+1),o(n.getUTCDate()),o(n.getUTCHours()),o(n.getUTCMinutes()),o(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?r=[o(n.getFullYear()%100),o(n.getUTCMonth()+1),o(n.getUTCDate()),o(n.getUTCHours()),o(n.getUTCMinutes()),o(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(r,"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&&!u.isBuffer(t)){var r=t.toArray();!t.sign&&128&r[0]&&r.unshift(0),t=new u(r)}if(u.isBuffer(t)){var n=t.length;0===t.length&&n++;var i=new u(n);return t.copy(i),0===t.length&&(i[0]=0),this._createEncoderBuffer(i)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var n=1,o=t;o>=256;o>>=8)n++;for(var i=new Array(n),o=i.length-1;o>=0;o--)i[o]=255&t,t>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new u(i))},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,r){var n,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,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},function(t,e){t.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"}},function(t,e,r){(function(e){function n(t){var r=new e(4);return r.writeUInt32BE(t,0),r}var i=r(31);t.exports=function(t,r){for(var o,a=new e(""),s=0;a.length<r;)o=n(s++),a=e.concat([a,i("sha1").update(t).update(o).digest()]);return a.slice(0,r)}}).call(e,r(0).Buffer)},function(t,e){t.exports=function(t,e){for(var r=t.length,n=-1;++n<r;)t[n]^=e[n];return t}},function(t,e,r){(function(e){function n(t,r){return new e(t.toRed(i.mont(r.modulus)).redPow(new i(r.publicExponent)).fromRed().toArray())}var i=r(3);t.exports=n}).call(e,r(0).Buffer)},function(t,e,r){var n=r(12),i=r(50),o=function(t){return"0x"+t.toString("hex")},a=function(t){return new n(t.slice(2),16)},s=function(t){var e="0x"+("0x"===t.slice(0,2)?new n(t.slice(2),16):new n(t,10)).toString("hex");return"0x0"===e?"0x":e},u=function(t){return l(v(t,s("10000000000")))/1e8},c=function(t){return b(h(Math.floor(1e8*t)),s("10000000000"))},f=function(t){return a(t).toString(10)},h=function(t){return"string"===typeof t?/^0x/.test(t)?t:"0x"+t:"0x"+new n(t).toString("hex")},l=function(t){return a(t).toNumber()},d=function(t){return i.pad(32,t)},p=function(t){return function(e,r){return o(a(e)[t](a(r)))}},m=p("add"),b=p("mul"),v=p("div"),y=p("sub");t.exports={toString:f,fromString:s,toNumber:l,fromNumber:h,toEther:u,fromEther:c,toUint256:d,add:m,mul:b,div:v,sub:y}},function(t,e,r){"use strict";function n(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!==typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e){t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!==0&&(t="0"+t);for(var n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var n=0;n<t.length;n++){var i=t.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r}function i(t){return 1===t.length?"0"+t:t}function o(t){for(var e="",r=0;r<t.length;r++)e+=i(t[r].toString(16));return e}var a=e;a.toArray=n,a.zero2=i,a.toHex=o,a.encode=function(t,e){return"hex"===e?o(t):t}},function(t,e,r){"use strict";function n(t,e,r,n){return 0===t?i(e,r,n):1===t||3===t?a(e,r,n):2===t?o(e,r,n):void 0}function i(t,e,r){return t&e^~t&r}function o(t,e,r){return t&e^t&r^e&r}function a(t,e,r){return t^e^r}function s(t){return l(t,2)^l(t,13)^l(t,22)}function u(t){return l(t,6)^l(t,11)^l(t,25)}function c(t){return l(t,7)^l(t,18)^t>>>3}function f(t){return l(t,17)^l(t,19)^t>>>10}var h=r(17),l=h.rotr32;e.ft_1=n,e.ch32=i,e.maj32=o,e.p32=a,e.s0_256=s,e.s1_256=u,e.g0_256=c,e.g1_256=f},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}var i=r(17),o=r(37),a=r(113),s=r(25),u=i.sum32,c=i.sum32_4,f=i.sum32_5,h=a.ch32,l=a.maj32,d=a.s0_256,p=a.s1_256,m=a.g0_256,b=a.g1_256,v=o.BlockHash,y=[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];i.inherits(n,v),t.exports=n,n.blockSize=512,n.outSize=256,n.hmacStrength=192,n.padLength=64,n.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=c(b(r[n-2]),r[n-7],m(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],a=this.h[2],v=this.h[3],y=this.h[4],g=this.h[5],_=this.h[6],w=this.h[7];for(s(this.k.length===r.length),n=0;n<r.length;n++){var M=f(w,p(y),h(y,g,_),this.k[n],r[n]),k=u(d(i),l(i,o,a));w=_,_=g,g=y,y=u(v,M),v=a,a=o,o=i,i=u(M,k)}this.h[0]=u(this.h[0],i),this.h[1]=u(this.h[1],o),this.h[2]=u(this.h[2],a),this.h[3]=u(this.h[3],v),this.h[4]=u(this.h[4],y),this.h[5]=u(this.h[5],g),this.h[6]=u(this.h[6],_),this.h[7]=u(this.h[7],w)},n.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;I.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=P,this.W=new Array(160)}function i(t,e,r,n,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function o(t,e,r,n,i,o){var a=e&n^~e&o;return a<0&&(a+=4294967296),a}function a(t,e,r,n,i){var o=t&r^t&i^r&i;return o<0&&(o+=4294967296),o}function s(t,e,r,n,i,o){var a=e&n^e&o^n&o;return a<0&&(a+=4294967296),a}function u(t,e){var r=g(t,e,28),n=g(e,t,2),i=g(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function c(t,e){var r=_(t,e,28),n=_(e,t,2),i=_(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function f(t,e){var r=g(t,e,14),n=g(t,e,18),i=g(e,t,9),o=r^n^i;return o<0&&(o+=4294967296),o}function h(t,e){var r=_(t,e,14),n=_(t,e,18),i=_(e,t,9),o=r^n^i;return o<0&&(o+=4294967296),o}function l(t,e){var r=g(t,e,1),n=g(t,e,8),i=w(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function d(t,e){var r=_(t,e,1),n=_(t,e,8),i=M(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function p(t,e){var r=g(t,e,19),n=g(e,t,29),i=w(t,e,6),o=r^n^i;return o<0&&(o+=4294967296),o}function m(t,e){var r=_(t,e,19),n=_(e,t,29),i=M(t,e,6),o=r^n^i;return o<0&&(o+=4294967296),o}var b=r(17),v=r(37),y=r(25),g=b.rotr64_hi,_=b.rotr64_lo,w=b.shr64_hi,M=b.shr64_lo,k=b.sum64,E=b.sum64_hi,x=b.sum64_lo,S=b.sum64_4_hi,A=b.sum64_4_lo,C=b.sum64_5_hi,T=b.sum64_5_lo,I=v.BlockHash,P=[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.inherits(n,I),t.exports=n,n.blockSize=1024,n.outSize=512,n.hmacStrength=192,n.padLength=128,n.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n<r.length;n+=2){var i=p(r[n-4],r[n-3]),o=m(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],u=l(r[n-30],r[n-29]),c=d(r[n-30],r[n-29]),f=r[n-32],h=r[n-31];r[n]=S(i,o,a,s,u,c,f,h),r[n+1]=A(i,o,a,s,u,c,f,h)}},n.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,n=this.h[0],l=this.h[1],d=this.h[2],p=this.h[3],m=this.h[4],b=this.h[5],v=this.h[6],g=this.h[7],_=this.h[8],w=this.h[9],M=this.h[10],S=this.h[11],A=this.h[12],I=this.h[13],P=this.h[14],R=this.h[15];y(this.k.length===r.length);for(var O=0;O<r.length;O+=2){var j=P,N=R,B=f(_,w),L=h(_,w),F=i(_,w,M,S,A),D=o(_,w,M,S,A,I),U=this.k[O],q=this.k[O+1],z=r[O],H=r[O+1],V=C(j,N,B,L,F,D,U,q,z,H),K=T(j,N,B,L,F,D,U,q,z,H);j=u(n,l),N=c(n,l),B=a(n,l,d,p,m),L=s(n,l,d,p,m,b);var Y=E(j,N,B,L),G=x(j,N,B,L);P=A,R=I,A=M,I=S,M=_,S=w,_=E(v,g,V,K),w=x(g,g,V,K),v=m,g=b,m=d,b=p,d=n,p=l,n=E(V,K,Y,G),l=x(V,K,Y,G)}k(this.h,0,n,l),k(this.h,2,d,p),k(this.h,4,m,b),k(this.h,6,v,g),k(this.h,8,_,w),k(this.h,10,M,S),k(this.h,12,A,I),k(this.h,14,P,R)},n.prototype._digest=function(t){return"hex"===t?b.toHex32(this.h,"big"):b.split32(this.h,"big")}},function(t,e){var r=function(t){var e=function(t){return t.length%2===0?t:"0"+t},r=function(t){return e(t.toString(16))},n=function(t,e){return t<56?r(e+t):r(e+r(t).length/2+55)+r(t)};return"0x"+function t(e){if("string"===typeof e){var r=e.slice(2);return(2!=r.length||r>="80"?n(r.length/2,128):"")+r}var i=e.map(t).join("");return n(i.length/2,192)+i}(t)},n=function(t){var e=2,r=function(){if(e>=t.length)throw"";var r=t.slice(e,e+2);return r<"80"?(e+=2,"0x"+r):r<"c0"?i():o()},n=function(){var r=parseInt(t.slice(e,e+=2),16)%64;return r<56?r:parseInt(t.slice(e,e+=2*(r-55)),16)},i=function(){var r=n();return"0x"+t.slice(e,e+=2*r)},o=function(){for(var t=2*n()+e,i=[];e<t;)i.push(r());return i};try{return r()}catch(t){return[]}};t.exports={encode:r,decode:n}},function(t,e){var r="0123456789abcdef".split(""),n=[1,256,65536,16777216],i=[0,8,16,24],o=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],a=function(t){return{blocks:[],reset:!0,block:0,start:0,blockCount:1600-(t<<1)>>5,outputBlocks:t>>5,s:function(t){return[].concat(t,t,t,t,t)}([0,0,0,0,0,0,0,0,0,0])}},s=function(t,e){for(var o,a,s=e.length,c=t.blocks,f=t.blockCount<<2,h=t.blockCount,l=t.outputBlocks,d=t.s,p=0;p<s;){if(t.reset)for(t.reset=!1,c[0]=t.block,o=1;o<h+1;++o)c[o]=0;if("string"!==typeof e)for(o=t.start;p<s&&o<f;++p)c[o>>2]|=e[p]<<i[3&o++];else for(o=t.start;p<s&&o<f;++p)a=e.charCodeAt(p),a<128?c[o>>2]|=a<<i[3&o++]:a<2048?(c[o>>2]|=(192|a>>6)<<i[3&o++],c[o>>2]|=(128|63&a)<<i[3&o++]):a<55296||a>=57344?(c[o>>2]|=(224|a>>12)<<i[3&o++],c[o>>2]|=(128|a>>6&63)<<i[3&o++],c[o>>2]|=(128|63&a)<<i[3&o++]):(a=65536+((1023&a)<<10|1023&e.charCodeAt(++p)),c[o>>2]|=(240|a>>18)<<i[3&o++],c[o>>2]|=(128|a>>12&63)<<i[3&o++],c[o>>2]|=(128|a>>6&63)<<i[3&o++],c[o>>2]|=(128|63&a)<<i[3&o++]);if(t.lastByteIndex=o,o>=f){for(t.start=o-f,t.block=c[h],o=0;o<h;++o)d[o]^=c[o];u(d),t.reset=!0}else t.start=o}if(o=t.lastByteIndex,c[o>>2]|=n[3&o],t.lastByteIndex===f)for(c[0]=c[h],o=1;o<h+1;++o)c[o]=0;for(c[h-1]|=2147483648,o=0;o<h;++o)d[o]^=c[o];u(d);for(var m,b="",o=0,v=0;v<l;){for(o=0;o<h&&v<l;++o,++v)m=d[o],b+=r[m>>4&15]+r[15&m]+r[m>>12&15]+r[m>>8&15]+r[m>>20&15]+r[m>>16&15]+r[m>>28&15]+r[m>>24&15];v%h===0&&(u(d),o=0)}return"0x"+b},u=function(t){var e,r,n,i,a,s,u,c,f,h,l,d,p,m,b,v,y,g,_,w,M,k,E,x,S,A,C,T,I,P,R,O,j,N,B,L,F,D,U,q,z,H,V,K,Y,G,W,Z,X,$,Q,J,tt,et,rt,nt,it,ot,at,st,ut,ct,ft;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],a=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],u=t[3]^t[13]^t[23]^t[33]^t[43],c=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],d=t[8]^t[18]^t[28]^t[38]^t[48],p=t[9]^t[19]^t[29]^t[39]^t[49],e=d^(s<<1|u>>>31),r=p^(u<<1|s>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(c<<1|f>>>31),r=a^(f<<1|c>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=s^(h<<1|l>>>31),r=u^(l<<1|h>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=c^(d<<1|p>>>31),r=f^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=h^(i<<1|a>>>31),r=l^(a<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],b=t[1],G=t[11]<<4|t[10]>>>28,W=t[10]<<4|t[11]>>>28,T=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,V=t[41]<<18|t[40]>>>14,N=t[2]<<1|t[3]>>>31,B=t[3]<<1|t[2]>>>31,v=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,ct=t[42]<<2|t[43]>>>30,ft=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,F=t[15]<<6|t[14]>>>26,g=t[25]<<11|t[24]>>>21,_=t[24]<<11|t[25]>>>21,$=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,O=t[45]<<29|t[44]>>>3,j=t[44]<<29|t[45]>>>3,x=t[6]<<28|t[7]>>>4,S=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,U=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,M=t[37]<<21|t[36]>>>11,J=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,K=t[8]<<27|t[9]>>>5,Y=t[9]<<27|t[8]>>>5,A=t[18]<<20|t[19]>>>12,C=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,q=t[38]<<8|t[39]>>>24,z=t[39]<<8|t[38]>>>24,k=t[48]<<14|t[49]>>>18,E=t[49]<<14|t[48]>>>18,t[0]=m^~v&g,t[1]=b^~y&_,t[10]=x^~A&T,t[11]=S^~C&I,t[20]=N^~L&D,t[21]=B^~F&U,t[30]=K^~G&Z,t[31]=Y^~W&X,t[40]=et^~nt&ot,t[41]=rt^~it&at,t[2]=v^~g&w,t[3]=y^~_&M,t[12]=A^~T&P,t[13]=C^~I&R,t[22]=L^~D&q,t[23]=F^~U&z,t[32]=G^~Z&$,t[33]=W^~X&Q,t[42]=nt^~ot&st,t[43]=it^~at&ut,t[4]=g^~w&k,t[5]=_^~M&E,t[14]=T^~P&O,t[15]=I^~R&j,t[24]=D^~q&H,t[25]=U^~z&V,t[34]=Z^~$&J,t[35]=X^~Q&tt,t[44]=ot^~st&ct,t[45]=at^~ut&ft,t[6]=w^~k&m,t[7]=M^~E&b,t[16]=P^~O&x,t[17]=R^~j&S,t[26]=q^~H&N,t[27]=z^~V&B,t[36]=$^~J&K,t[37]=Q^~tt&Y,t[46]=st^~ct&et,t[47]=ut^~ft&rt,t[8]=k^~m&v,t[9]=E^~b&y,t[18]=O^~x&A,t[19]=j^~S&C,t[28]=H^~N&L,t[29]=V^~B&F,t[38]=J^~K&G,t[39]=tt^~Y&W,t[48]=ct^~et&nt,t[49]=ft^~rt&it,t[0]^=o[n],t[1]^=o[n+1]},c=function(t){return function(e){var r;if("0x"===e.slice(0,2)){r=[];for(var n=2,i=e.length;n<i;n+=2)r.push(parseInt(e.slice(n,n+2),16))}else r=e;return s(a(t),r)}};t.exports={keccak256:c(256),keccak512:c(512),keccak256s:c(256),keccak512s:c(512)}},function(t,e){var r=Math.pow(2,30)-1;t.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")}},function(t,e,r){(function(e){var r;if(e.browser)r="utf-8";else{r=parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}t.exports=r}).call(e,r(8))},function(t,e,r){function n(t,e,r){var n=i(t),o="sha512"===t||"sha384"===t?128:64;e.length>o?e=n(e):e.length<o&&(e=h.concat([e,l],o));for(var a=h.allocUnsafe(o+d[t]),s=h.allocUnsafe(o+d[t]),u=0;u<o;u++)a[u]=54^e[u],s[u]=92^e[u];var c=h.allocUnsafe(o+r+4);a.copy(c,0,0,o),this.ipad1=c,this.ipad2=a,this.opad=s,this.alg=t,this.blocksize=o,this.hash=n,this.size=d[t]}function i(t){function e(e){return u(t).update(e).digest()}return"rmd160"===t||"ripemd160"===t?s:"md5"===t?a:e}function o(t,e,r,i,o){h.isBuffer(t)||(t=h.from(t,f)),h.isBuffer(e)||(e=h.from(e,f)),c(r,i),o=o||"sha1";var a=new n(o,t,e.length),s=h.allocUnsafe(i),u=h.allocUnsafe(e.length+4);e.copy(u,0,0,e.length);for(var l=0,p=d[o],m=Math.ceil(i/p),b=1;b<=m;b++){u.writeUInt32BE(b,e.length);for(var v=a.run(u,a.ipad1),y=v,g=1;g<r;g++){y=a.run(y,a.ipad2);for(var _=0;_<p;_++)v[_]^=y[_]}v.copy(s,l),l+=p}return s}var a=r(121),s=r(122),u=r(123),c=r(118),f=r(119),h=r(14).Buffer,l=h.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};n.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=o},function(t,e,r){"use strict";function n(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var r=1732584193,n=-271733879,i=-1732584194,f=271733878,h=0;h<t.length;h+=16){var l=r,d=n,p=i,m=f;r=o(r,n,i,f,t[h+0],7,-680876936),f=o(f,r,n,i,t[h+1],12,-389564586),i=o(i,f,r,n,t[h+2],17,606105819),n=o(n,i,f,r,t[h+3],22,-1044525330),r=o(r,n,i,f,t[h+4],7,-176418897),f=o(f,r,n,i,t[h+5],12,1200080426),i=o(i,f,r,n,t[h+6],17,-1473231341),n=o(n,i,f,r,t[h+7],22,-45705983),r=o(r,n,i,f,t[h+8],7,1770035416),f=o(f,r,n,i,t[h+9],12,-1958414417),i=o(i,f,r,n,t[h+10],17,-42063),n=o(n,i,f,r,t[h+11],22,-1990404162),r=o(r,n,i,f,t[h+12],7,1804603682),f=o(f,r,n,i,t[h+13],12,-40341101),i=o(i,f,r,n,t[h+14],17,-1502002290),n=o(n,i,f,r,t[h+15],22,1236535329),r=a(r,n,i,f,t[h+1],5,-165796510),f=a(f,r,n,i,t[h+6],9,-1069501632),i=a(i,f,r,n,t[h+11],14,643717713),n=a(n,i,f,r,t[h+0],20,-373897302),r=a(r,n,i,f,t[h+5],5,-701558691),f=a(f,r,n,i,t[h+10],9,38016083),i=a(i,f,r,n,t[h+15],14,-660478335),n=a(n,i,f,r,t[h+4],20,-405537848),r=a(r,n,i,f,t[h+9],5,568446438),f=a(f,r,n,i,t[h+14],9,-1019803690),i=a(i,f,r,n,t[h+3],14,-187363961),n=a(n,i,f,r,t[h+8],20,1163531501),r=a(r,n,i,f,t[h+13],5,-1444681467),f=a(f,r,n,i,t[h+2],9,-51403784),i=a(i,f,r,n,t[h+7],14,1735328473),n=a(n,i,f,r,t[h+12],20,-1926607734),r=s(r,n,i,f,t[h+5],4,-378558),f=s(f,r,n,i,t[h+8],11,-2022574463),i=s(i,f,r,n,t[h+11],16,1839030562),n=s(n,i,f,r,t[h+14],23,-35309556),r=s(r,n,i,f,t[h+1],4,-1530992060),f=s(f,r,n,i,t[h+4],11,1272893353),i=s(i,f,r,n,t[h+7],16,-155497632),n=s(n,i,f,r,t[h+10],23,-1094730640),r=s(r,n,i,f,t[h+13],4,681279174),f=s(f,r,n,i,t[h+0],11,-358537222),i=s(i,f,r,n,t[h+3],16,-722521979),n=s(n,i,f,r,t[h+6],23,76029189),r=s(r,n,i,f,t[h+9],4,-640364487),f=s(f,r,n,i,t[h+12],11,-421815835),i=s(i,f,r,n,t[h+15],16,530742520),n=s(n,i,f,r,t[h+2],23,-995338651),r=u(r,n,i,f,t[h+0],6,-198630844),f=u(f,r,n,i,t[h+7],10,1126891415),i=u(i,f,r,n,t[h+14],15,-1416354905),n=u(n,i,f,r,t[h+5],21,-57434055),r=u(r,n,i,f,t[h+12],6,1700485571),f=u(f,r,n,i,t[h+3],10,-1894986606),i=u(i,f,r,n,t[h+10],15,-1051523),n=u(n,i,f,r,t[h+1],21,-2054922799),r=u(r,n,i,f,t[h+8],6,1873313359),f=u(f,r,n,i,t[h+15],10,-30611744),i=u(i,f,r,n,t[h+6],15,-1560198380),n=u(n,i,f,r,t[h+13],21,1309151649),r=u(r,n,i,f,t[h+4],6,-145523070),f=u(f,r,n,i,t[h+11],10,-1120210379),i=u(i,f,r,n,t[h+2],15,718787259),n=u(n,i,f,r,t[h+9],21,-343485551),r=c(r,l),n=c(n,d),i=c(i,p),f=c(f,m)}return[r,n,i,f]}function i(t,e,r,n,i,o){return c(f(c(c(e,t),c(n,o)),i),r)}function o(t,e,r,n,o,a,s){return i(e&r|~e&n,t,e,o,a,s)}function a(t,e,r,n,o,a,s){return i(e&n|r&~n,t,e,o,a,s)}function s(t,e,r,n,o,a,s){return i(e^r^n,t,e,o,a,s)}function u(t,e,r,n,o,a,s){return i(r^(e|~n),t,e,o,a,s)}function c(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function f(t,e){return t<<e|t>>>32-e}var h=r(311);t.exports=function(t){return h(t,n)}},function(t,e,r){"use strict";(function(e){function n(){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<<e|t>>>32-e}function o(t,e,r,n,o,a,s,u){return i(t+(e^r^n)+a+s|0,u)+o|0}function a(t,e,r,n,o,a,s,u){return i(t+(e&r|~e&n)+a+s|0,u)+o|0}function s(t,e,r,n,o,a,s,u){return i(t+((e|~r)^n)+a+s|0,u)+o|0}function u(t,e,r,n,o,a,s,u){return i(t+(e&n|r&~n)+a+s|0,u)+o|0}function c(t,e,r,n,o,a,s,u){return i(t+(e^(r|~n))+a+s|0,u)+o|0}var f=r(6),h=r(312);f(n,h),n.prototype._update=function(){for(var t=new Array(16),e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,f=this._c,h=this._d,l=this._e;r=o(r,n,f,h,l,t[0],0,11),f=i(f,10),l=o(l,r,n,f,h,t[1],0,14),n=i(n,10),h=o(h,l,r,n,f,t[2],0,15),r=i(r,10),f=o(f,h,l,r,n,t[3],0,12),l=i(l,10),n=o(n,f,h,l,r,t[4],0,5),h=i(h,10),r=o(r,n,f,h,l,t[5],0,8),f=i(f,10),l=o(l,r,n,f,h,t[6],0,7),n=i(n,10),h=o(h,l,r,n,f,t[7],0,9),r=i(r,10),f=o(f,h,l,r,n,t[8],0,11),l=i(l,10),n=o(n,f,h,l,r,t[9],0,13),h=i(h,10),r=o(r,n,f,h,l,t[10],0,14),f=i(f,10),l=o(l,r,n,f,h,t[11],0,15),n=i(n,10),h=o(h,l,r,n,f,t[12],0,6),r=i(r,10),f=o(f,h,l,r,n,t[13],0,7),l=i(l,10),n=o(n,f,h,l,r,t[14],0,9),h=i(h,10),r=o(r,n,f,h,l,t[15],0,8),f=i(f,10),l=a(l,r,n,f,h,t[7],1518500249,7),n=i(n,10),h=a(h,l,r,n,f,t[4],1518500249,6),r=i(r,10),f=a(f,h,l,r,n,t[13],1518500249,8),l=i(l,10),n=a(n,f,h,l,r,t[1],1518500249,13),h=i(h,10),r=a(r,n,f,h,l,t[10],1518500249,11),f=i(f,10),l=a(l,r,n,f,h,t[6],1518500249,9),n=i(n,10),h=a(h,l,r,n,f,t[15],1518500249,7),r=i(r,10),f=a(f,h,l,r,n,t[3],1518500249,15),l=i(l,10),n=a(n,f,h,l,r,t[12],1518500249,7),h=i(h,10),r=a(r,n,f,h,l,t[0],1518500249,12),f=i(f,10),l=a(l,r,n,f,h,t[9],1518500249,15),n=i(n,10),h=a(h,l,r,n,f,t[5],1518500249,9),r=i(r,10),f=a(f,h,l,r,n,t[2],1518500249,11),l=i(l,10),n=a(n,f,h,l,r,t[14],1518500249,7),h=i(h,10),r=a(r,n,f,h,l,t[11],1518500249,13),f=i(f,10),l=a(l,r,n,f,h,t[8],1518500249,12),n=i(n,10),h=s(h,l,r,n,f,t[3],1859775393,11),r=i(r,10),f=s(f,h,l,r,n,t[10],1859775393,13),l=i(l,10),n=s(n,f,h,l,r,t[14],1859775393,6),h=i(h,10),r=s(r,n,f,h,l,t[4],1859775393,7),f=i(f,10),l=s(l,r,n,f,h,t[9],1859775393,14),n=i(n,10),h=s(h,l,r,n,f,t[15],1859775393,9),r=i(r,10),f=s(f,h,l,r,n,t[8],1859775393,13),l=i(l,10),n=s(n,f,h,l,r,t[1],1859775393,15),h=i(h,10),r=s(r,n,f,h,l,t[2],1859775393,14),f=i(f,10),l=s(l,r,n,f,h,t[7],1859775393,8),n=i(n,10),h=s(h,l,r,n,f,t[0],1859775393,13),r=i(r,10),f=s(f,h,l,r,n,t[6],1859775393,6),l=i(l,10),n=s(n,f,h,l,r,t[13],1859775393,5),h=i(h,10),r=s(r,n,f,h,l,t[11],1859775393,12),f=i(f,10),l=s(l,r,n,f,h,t[5],1859775393,7),n=i(n,10),h=s(h,l,r,n,f,t[12],1859775393,5),r=i(r,10),f=u(f,h,l,r,n,t[1],2400959708,11),l=i(l,10),n=u(n,f,h,l,r,t[9],2400959708,12),h=i(h,10),r=u(r,n,f,h,l,t[11],2400959708,14),f=i(f,10),l=u(l,r,n,f,h,t[10],2400959708,15),n=i(n,10),h=u(h,l,r,n,f,t[0],2400959708,14),r=i(r,10),f=u(f,h,l,r,n,t[8],2400959708,15),l=i(l,10),n=u(n,f,h,l,r,t[12],2400959708,9),h=i(h,10),r=u(r,n,f,h,l,t[4],2400959708,8),f=i(f,10),l=u(l,r,n,f,h,t[13],2400959708,9),n=i(n,10),h=u(h,l,r,n,f,t[3],2400959708,14),r=i(r,10),f=u(f,h,l,r,n,t[7],2400959708,5),l=i(l,10),n=u(n,f,h,l,r,t[15],2400959708,6),h=i(h,10),r=u(r,n,f,h,l,t[14],2400959708,8),f=i(f,10),l=u(l,r,n,f,h,t[5],2400959708,6),n=i(n,10),h=u(h,l,r,n,f,t[6],2400959708,5),r=i(r,10),f=u(f,h,l,r,n,t[2],2400959708,12),l=i(l,10),n=c(n,f,h,l,r,t[4],2840853838,9),h=i(h,10),r=c(r,n,f,h,l,t[0],2840853838,15),f=i(f,10),l=c(l,r,n,f,h,t[5],2840853838,5),n=i(n,10),h=c(h,l,r,n,f,t[9],2840853838,11),r=i(r,10),f=c(f,h,l,r,n,t[7],2840853838,6),l=i(l,10),n=c(n,f,h,l,r,t[12],2840853838,8),h=i(h,10),r=c(r,n,f,h,l,t[2],2840853838,13),f=i(f,10),l=c(l,r,n,f,h,t[10],2840853838,12),n=i(n,10),h=c(h,l,r,n,f,t[14],2840853838,5),r=i(r,10),f=c(f,h,l,r,n,t[1],2840853838,12),l=i(l,10),n=c(n,f,h,l,r,t[3],2840853838,13),h=i(h,10),r=c(r,n,f,h,l,t[8],2840853838,14),f=i(f,10),l=c(l,r,n,f,h,t[11],2840853838,11),n=i(n,10),h=c(h,l,r,n,f,t[6],2840853838,8),r=i(r,10),f=c(f,h,l,r,n,t[15],2840853838,5),l=i(l,10),n=c(n,f,h,l,r,t[13],2840853838,6),h=i(h,10);var d=this._a,p=this._b,m=this._c,b=this._d,v=this._e;d=c(d,p,m,b,v,t[5],1352829926,8),m=i(m,10),v=c(v,d,p,m,b,t[14],1352829926,9),p=i(p,10),b=c(b,v,d,p,m,t[7],1352829926,9),d=i(d,10),m=c(m,b,v,d,p,t[0],1352829926,11),v=i(v,10),p=c(p,m,b,v,d,t[9],1352829926,13),b=i(b,10),d=c(d,p,m,b,v,t[2],1352829926,15),m=i(m,10),v=c(v,d,p,m,b,t[11],1352829926,15),p=i(p,10),b=c(b,v,d,p,m,t[4],1352829926,5),d=i(d,10),m=c(m,b,v,d,p,t[13],1352829926,7),v=i(v,10),p=c(p,m,b,v,d,t[6],1352829926,7),b=i(b,10),d=c(d,p,m,b,v,t[15],1352829926,8),m=i(m,10),v=c(v,d,p,m,b,t[8],1352829926,11),p=i(p,10),b=c(b,v,d,p,m,t[1],1352829926,14),d=i(d,10),m=c(m,b,v,d,p,t[10],1352829926,14),v=i(v,10),p=c(p,m,b,v,d,t[3],1352829926,12),b=i(b,10),d=c(d,p,m,b,v,t[12],1352829926,6),m=i(m,10),v=u(v,d,p,m,b,t[6],1548603684,9),p=i(p,10),b=u(b,v,d,p,m,t[11],1548603684,13),d=i(d,10),m=u(m,b,v,d,p,t[3],1548603684,15),v=i(v,10),p=u(p,m,b,v,d,t[7],1548603684,7),b=i(b,10),d=u(d,p,m,b,v,t[0],1548603684,12),m=i(m,10),v=u(v,d,p,m,b,t[13],1548603684,8),p=i(p,10),b=u(b,v,d,p,m,t[5],1548603684,9),d=i(d,10),m=u(m,b,v,d,p,t[10],1548603684,11),v=i(v,10),p=u(p,m,b,v,d,t[14],1548603684,7),b=i(b,10),d=u(d,p,m,b,v,t[15],1548603684,7),m=i(m,10),v=u(v,d,p,m,b,t[8],1548603684,12),p=i(p,10),b=u(b,v,d,p,m,t[12],1548603684,7),d=i(d,10),m=u(m,b,v,d,p,t[4],1548603684,6),v=i(v,10),p=u(p,m,b,v,d,t[9],1548603684,15),b=i(b,10),d=u(d,p,m,b,v,t[1],1548603684,13),m=i(m,10),v=u(v,d,p,m,b,t[2],1548603684,11),p=i(p,10),b=s(b,v,d,p,m,t[15],1836072691,9),d=i(d,10),m=s(m,b,v,d,p,t[5],1836072691,7),v=i(v,10),p=s(p,m,b,v,d,t[1],1836072691,15),b=i(b,10),d=s(d,p,m,b,v,t[3],1836072691,11),m=i(m,10),v=s(v,d,p,m,b,t[7],1836072691,8),p=i(p,10),b=s(b,v,d,p,m,t[14],1836072691,6),d=i(d,10),m=s(m,b,v,d,p,t[6],1836072691,6),v=i(v,10),p=s(p,m,b,v,d,t[9],1836072691,14),b=i(b,10),d=s(d,p,m,b,v,t[11],1836072691,12),m=i(m,10),v=s(v,d,p,m,b,t[8],1836072691,13),p=i(p,10),b=s(b,v,d,p,m,t[12],1836072691,5),d=i(d,10),m=s(m,b,v,d,p,t[2],1836072691,14),v=i(v,10),p=s(p,m,b,v,d,t[10],1836072691,13),b=i(b,10),d=s(d,p,m,b,v,t[0],1836072691,13),m=i(m,10),v=s(v,d,p,m,b,t[4],1836072691,7),p=i(p,10),b=s(b,v,d,p,m,t[13],1836072691,5),d=i(d,10),m=a(m,b,v,d,p,t[8],2053994217,15),v=i(v,10),p=a(p,m,b,v,d,t[6],2053994217,5),b=i(b,10),d=a(d,p,m,b,v,t[4],2053994217,8),m=i(m,10),v=a(v,d,p,m,b,t[1],2053994217,11),p=i(p,10),b=a(b,v,d,p,m,t[3],2053994217,14),d=i(d,10),m=a(m,b,v,d,p,t[11],2053994217,14),v=i(v,10),p=a(p,m,b,v,d,t[15],2053994217,6),b=i(b,10),d=a(d,p,m,b,v,t[0],2053994217,14),m=i(m,10),v=a(v,d,p,m,b,t[5],2053994217,6),p=i(p,10),b=a(b,v,d,p,m,t[12],2053994217,9),d=i(d,10),m=a(m,b,v,d,p,t[2],2053994217,12),v=i(v,10),p=a(p,m,b,v,d,t[13],2053994217,9),b=i(b,10),d=a(d,p,m,b,v,t[9],2053994217,12),m=i(m,10),v=a(v,d,p,m,b,t[7],2053994217,5),p=i(p,10),b=a(b,v,d,p,m,t[10],2053994217,15),d=i(d,10),m=a(m,b,v,d,p,t[14],2053994217,8),v=i(v,10),p=o(p,m,b,v,d,t[12],0,8),b=i(b,10),d=o(d,p,m,b,v,t[15],0,5),m=i(m,10),v=o(v,d,p,m,b,t[10],0,12),p=i(p,10),b=o(b,v,d,p,m,t[4],0,9),d=i(d,10),m=o(m,b,v,d,p,t[1],0,12),v=i(v,10),p=o(p,m,b,v,d,t[5],0,5),b=i(b,10),d=o(d,p,m,b,v,t[8],0,14),m=i(m,10),v=o(v,d,p,m,b,t[7],0,6),p=i(p,10),b=o(b,v,d,p,m,t[6],0,8),d=i(d,10),m=o(m,b,v,d,p,t[2],0,13),v=i(v,10),p=o(p,m,b,v,d,t[13],0,6),b=i(b,10),d=o(d,p,m,b,v,t[14],0,5),m=i(m,10),v=o(v,d,p,m,b,t[0],0,15),p=i(p,10),b=o(b,v,d,p,m,t[3],0,13),d=i(d,10),m=o(m,b,v,d,p,t[9],0,11),v=i(v,10),p=o(p,m,b,v,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+r+p|0,this._e=this._a+n+m|0,this._a=y},n.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 e(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},t.exports=n}).call(e,r(0).Buffer)},function(t,e,r){var e=t.exports=function(t){t=t.toLowerCase();var r=e[t];if(!r)throw new Error(t+" is not supported (we accept pull requests)");return new r};e.sha=r(313),e.sha1=r(314),e.sha224=r(315),e.sha256=r(124),e.sha384=r(316),e.sha512=r(125)},function(t,e,r){function n(){this.init(),this._w=p,h.call(this,64,56)}function i(t,e,r){return r^t&(e^r)}function o(t,e,r){return t&e|r&(t|e)}function a(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function s(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function u(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function c(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}var f=r(6),h=r(29),l=r(14).Buffer,d=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],p=new Array(64);f(n,h),n.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},n.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,f=0|this._c,h=0|this._d,l=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]=c(e[v-2])+e[v-7]+u(e[v-15])+e[v-16]|0;for(var y=0;y<64;++y){var g=b+s(l)+i(l,p,m)+d[y]+e[y]|0,_=a(r)+o(r,n,f)|0;b=m,m=p,p=l,l=h+g|0,h=f,f=n,n=r,r=g+_|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=f+this._c|0,this._d=h+this._d|0,this._e=l+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},n.prototype._hash=function(){var t=l.allocUnsafe(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},t.exports=n},function(t,e,r){function n(){this.init(),this._w=v,p.call(this,128,112)}function i(t,e,r){return r^t&(e^r)}function o(t,e,r){return t&e|r&(t|e)}function a(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function s(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function u(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function c(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<e>>>0?1:0}var d=r(6),p=r(29),m=r(14).Buffer,b=[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],v=new Array(160);d(n,p),n.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},n.prototype._update=function(t){for(var e=this._w,r=0|this._ah,n=0|this._bh,d=0|this._ch,p=0|this._dh,m=0|this._eh,v=0|this._fh,y=0|this._gh,g=0|this._hh,_=0|this._al,w=0|this._bl,M=0|this._cl,k=0|this._dl,E=0|this._el,x=0|this._fl,S=0|this._gl,A=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 T=e[C-30],I=e[C-30+1],P=u(T,I),R=c(I,T);T=e[C-4],I=e[C-4+1];var O=f(T,I),j=h(I,T),N=e[C-14],B=e[C-14+1],L=e[C-32],F=e[C-32+1],D=R+B|0,U=P+N+l(D,R)|0;D=D+j|0,U=U+O+l(D,j)|0,D=D+F|0,U=U+L+l(D,F)|0,e[C]=U,e[C+1]=D}for(var q=0;q<160;q+=2){U=e[q],D=e[q+1];var z=o(r,n,d),H=o(_,w,M),V=a(r,_),K=a(_,r),Y=s(m,E),G=s(E,m),W=b[q],Z=b[q+1],X=i(m,v,y),$=i(E,x,S),Q=A+G|0,J=g+Y+l(Q,A)|0;Q=Q+$|0,J=J+X+l(Q,$)|0,Q=Q+Z|0,J=J+W+l(Q,Z)|0,Q=Q+D|0,J=J+U+l(Q,D)|0;var tt=K+H|0,et=V+z+l(tt,K)|0;g=y,A=S,y=v,S=x,v=m,x=E,E=k+Q|0,m=p+J+l(E,k)|0,p=d,k=M,d=n,M=w,n=r,w=_,_=Q+tt|0,r=J+et+l(_,Q)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+M|0,this._dl=this._dl+k|0,this._el=this._el+E|0,this._fl=this._fl+x|0,this._gl=this._gl+S|0,this._hl=this._hl+A|0,this._ah=this._ah+r+l(this._al,_)|0,this._bh=this._bh+n+l(this._bl,w)|0,this._ch=this._ch+d+l(this._cl,M)|0,this._dh=this._dh+p+l(this._dl,k)|0,this._eh=this._eh+m+l(this._el,E)|0,this._fh=this._fh+v+l(this._fl,x)|0,this._gh=this._gh+y+l(this._gl,S)|0,this._hh=this._hh+g+l(this._hl,A)|0},n.prototype._hash=function(){function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}var e=m.allocUnsafe(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},t.exports=n},function(t,e){function r(t){var e=n.call(t);return"[object Function]"===e||"function"===typeof t&&"[object RegExp]"!==e||"undefined"!==typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)}t.exports=r;var n=Object.prototype.toString},function(t,e,r){var n=(r(338),function(t,e){return parseInt(t.slice(2*e+2,2*e+4),16)}),i=function(t){var e=void 0;e="undefined"!==typeof window&&window.crypto&&window.crypto.getRandomValues?window.crypto.getRandomValues(new Uint8Array(t)):r(26).randomBytes(t);for(var n="0x",i=0;i<t;++i)n+=("00"+e[i].toString(16)).slice(-2);return n},o=function(t){return(t.length-2)/2},a=function(t){return"0x"+t.reduce(function(t,e){return t+e.slice(2)},"")},s=function(t,e,r){return"0x"+r.slice(2*t+2,2*e+2)},u=function(t){for(var e="0x",r=0,n=o(t);r<n;++r)e+=t.slice(2*(n-r),2*(n-r+1));return e},c=function t(e,r){return r.length===2*e+2?r:t(e,"0x0"+r.slice(2))},f=function t(e,r){return r.length===2*e+2?r:t(e,r+"0")},h=function(t){for(var e=[],r=2,n=t.length;r<n;r+=2)e.push(parseInt(t.slice(r,r+2),16));return e},l=function(t){for(var e="0x",r=0,n=t.length;r<n;++r){var i=t[r];e+=(i<16?"0":"")+i.toString(16)}return e},d=function(t){return new Uint8Array(h(t))},p=function(t){return l([].slice.call(t,0))},m=function(t){var e=t.toString(16);return e.length%2===0?"0x"+e:"0x0"+e},b=function(t){return parseInt(t.slice(2),16)},v=function(t,e){return t.concat(e.slice(2))},y=function(t){return"0x0"===t?"0x":t.length%2===0?t:"0x0"+t.slice(2)},g=function(t){return"0"===t[2]?"0x"+t.slice(3):t},_=function(t){for(var e="0x",r=0;r<t.length;++r)e+=("00"+t.charCodeAt(r).toString(16)).slice(-2);return e},w=function(t){for(var e="",r=2;r<t.length;r+=2)e+=String.fromCharCode(parseInt(t.slice(r,r+2),16));return e},M=function(t){for(var e=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},r="0x",n=0;n!=t.length;n++){var i=t.charCodeAt(n);if(i<128)r+=e(i);else{if(i<2048)r+=e(i>>6|192);else{if(i>55295&&i<56320){if(++n==t.length)return null;var o=t.charCodeAt(n);if(o<56320||o>57343)return null;i=65536+((1023&i)<<10)+(1023&o),r+=e(i>>18|240),r+=e(i>>12&63|128)}else r+=e(i>>12|224);r+=e(i>>6&63|128)}r+=e(63&i|128)}}return r},k=function(t){for(var e="",r=0,i=o(t);r<i;){var a=n(t,r++);if(a>127){if(a>191&&a<224){if(r>=i)return null;a=(31&a)<<6|63&n(t,r)}else if(a>223&&a<240){if(r+1>=i)return null;a=(15&a)<<12|(63&n(t,r))<<6|63&n(t,++r)}else{if(!(a>239&&a<248))return null;if(r+2>=i)return null;a=(7&a)<<18|(63&n(t,r))<<12|(63&n(t,++r))<<6|63&n(t,++r)}++r}if(a<=65535)e+=String.fromCharCode(a);else{if(!(a<=1114111))return null;a-=65536,e+=String.fromCharCode(a>>10|55296),e+=String.fromCharCode(1023&a|56320)}}return e};t.exports={random:i,length:o,concat:v,flatten:a,slice:s,reverse:u,pad:c,padRight:f,fromAscii:_,toAscii:w,fromString:M,toString:k,fromNumber:m,toNumber:b,fromNat:y,toNat:g,fromArray:l,toArray:h,fromUint8Array:p,toUint8Array:d}},function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(t){return i.exec(t).slice(1)};e.resolve=function(){for(var e="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,i="/"===a.charAt(0))}return e=r(n(e.split("/"),function(t){return!!t}),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),o="/"===a(t,-1);return t=r(n(t.split("/"),function(t){return!!t}),!i).join("/"),t||i||(t="."),t&&o&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;r>=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split("/")),o=n(r.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}for(var c=[],u=s;u<i.length;u++)c.push("..");return c=c.concat(o.slice(s)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){var e=o(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},e.basename=function(t,e){var r=o(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){return o(t)[3]};var a="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(e,r(8))},function(t,e){},function(t,e){t.exports={COMPRESSED_TYPE_INVALID:"compressed should be a boolean",EC_PRIVATE_KEY_TYPE_INVALID:"private key should be a Buffer",EC_PRIVATE_KEY_LENGTH_INVALID:"private key length is invalid",EC_PRIVATE_KEY_TWEAK_ADD_FAIL:"tweak out of range or resulting private key is invalid",EC_PRIVATE_KEY_TWEAK_MUL_FAIL:"tweak out of range",EC_PRIVATE_KEY_EXPORT_DER_FAIL:"couldn't export to DER format",EC_PRIVATE_KEY_IMPORT_DER_FAIL:"couldn't import from DER format",EC_PUBLIC_KEYS_TYPE_INVALID:"public keys should be an Array",EC_PUBLIC_KEYS_LENGTH_INVALID:"public keys Array should have at least 1 element",EC_PUBLIC_KEY_TYPE_INVALID:"public key should be a Buffer",EC_PUBLIC_KEY_LENGTH_INVALID:"public key length is invalid",EC_PUBLIC_KEY_PARSE_FAIL:"the public key could not be parsed or is invalid",EC_PUBLIC_KEY_CREATE_FAIL:"private was invalid, try again",EC_PUBLIC_KEY_TWEAK_ADD_FAIL:"tweak out of range or resulting public key is invalid",EC_PUBLIC_KEY_TWEAK_MUL_FAIL:"tweak out of range",EC_PUBLIC_KEY_COMBINE_FAIL:"the sum of the public keys is not valid",ECDH_FAIL:"scalar was invalid (zero or overflow)",ECDSA_SIGNATURE_TYPE_INVALID:"signature should be a Buffer",ECDSA_SIGNATURE_LENGTH_INVALID:"signature length is invalid",ECDSA_SIGNATURE_PARSE_FAIL:"couldn't parse signature",ECDSA_SIGNATURE_PARSE_DER_FAIL:"couldn't parse DER signature",ECDSA_SIGNATURE_SERIALIZE_DER_FAIL:"couldn't serialize signature to DER format",ECDSA_SIGN_FAIL:"nonce generation function failed or private key is invalid",ECDSA_RECOVER_FAIL:"couldn't recover public key from signature",MSG32_TYPE_INVALID:"message should be a Buffer",MSG32_LENGTH_INVALID:"message length is invalid",OPTIONS_TYPE_INVALID:"options should be an Object",OPTIONS_DATA_TYPE_INVALID:"options.data should be a Buffer",OPTIONS_DATA_LENGTH_INVALID:"options.data length is invalid",OPTIONS_NONCEFN_TYPE_INVALID:"options.noncefn should be a Function",RECOVERY_ID_TYPE_INVALID:"recovery should be a Number",RECOVERY_ID_VALUE_INVALID:"recovery should have value between -1 and 4",TWEAK_TYPE_INVALID:"tweak should be a Buffer",TWEAK_LENGTH_INVALID:"tweak length is invalid"}},function(t,e,r){r(132),t.exports=r(137)},function(t,e,r){"use strict";"undefined"===typeof Promise&&(r(133).enable(),window.Promise=r(135)),r(136),Object.assign=r(48)},function(t,e,r){"use strict";function n(){c=!1,s._47=null,s._71=null}function i(t){function e(e){(t.allRejections||a(h[e].error,t.whitelist||u))&&(h[e].displayId=f++,t.onUnhandled?(h[e].logged=!0,t.onUnhandled(h[e].displayId,h[e].error)):(h[e].logged=!0,o(h[e].displayId,h[e].error)))}function r(e){h[e].logged&&(t.onHandled?t.onHandled(h[e].displayId,h[e].error):h[e].onUnhandled||(console.warn("Promise Rejection Handled (id: "+h[e].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+h[e].displayId+".")))}t=t||{},c&&n(),c=!0;var i=0,f=0,h={};s._47=function(t){2===t._83&&h[t._56]&&(h[t._56].logged?r(t._56):clearTimeout(h[t._56].timeout),delete h[t._56])},s._71=function(t,r){0===t._75&&(t._56=i++,h[t._56]={displayId:null,error:r,timeout:setTimeout(e.bind(null,t._56),a(r,u)?100:2e3),logged:!1})}}function o(t,e){console.warn("Possible Unhandled Promise Rejection (id: "+t+"):"),((e&&(e.stack||e))+"").split("\n").forEach(function(t){console.warn(" "+t)})}function a(t,e){return e.some(function(e){return t instanceof e})}var s=r(63),u=[ReferenceError,TypeError,RangeError],c=!1;e.disable=n,e.enable=i},function(t,e,r){"use strict";(function(e){function r(t){a.length||(o(),s=!0),a[a.length]=t}function n(){for(;u<a.length;){var t=u;if(u+=1,a[t].call(),u>c){for(var e=0,r=a.length-u;e<r;e++)a[e]=a[e+u];a.length-=u,u=0}}a.length=0,u=0,s=!1}function i(t){return function(){function e(){clearTimeout(r),clearInterval(n),t()}var r=setTimeout(e,0),n=setInterval(e,50)}}t.exports=r;var o,a=[],s=!1,u=0,c=1024,f="undefined"!==typeof e?e:self,h=f.MutationObserver||f.WebKitMutationObserver;o="function"===typeof h?function(t){var e=1,r=new h(t),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){e=-e,n.data=e}}(n):i(n),r.requestFlush=o,r.makeRequestCallFromTimer=i}).call(e,r(4))},function(t,e,r){"use strict";function n(t){var e=new i(i._44);return e._83=1,e._18=t,e}var i=r(63);t.exports=i;var o=n(!0),a=n(!1),s=n(null),u=n(void 0),c=n(0),f=n("");i.resolve=function(t){if(t instanceof i)return t;if(null===t)return s;if(void 0===t)return u;if(!0===t)return o;if(!1===t)return a;if(0===t)return c;if(""===t)return f;if("object"===typeof t||"function"===typeof t)try{var e=t.then;if("function"===typeof e)return new i(e.bind(t))}catch(t){return new i(function(e,r){r(t)})}return n(t)},i.all=function(t){var e=Array.prototype.slice.call(t);return new i(function(t,r){function n(a,s){if(s&&("object"===typeof s||"function"===typeof s)){if(s instanceof i&&s.then===i.prototype.then){for(;3===s._83;)s=s._18;return 1===s._83?n(a,s._18):(2===s._83&&r(s._18),void s.then(function(t){n(a,t)},r))}var u=s.then;if("function"===typeof u){return void new i(u.bind(s)).then(function(t){n(a,t)},r)}}e[a]=s,0===--o&&t(e)}if(0===e.length)return t([]);for(var o=e.length,a=0;a<e.length;a++)n(a,e[a])})},i.reject=function(t){return new i(function(e,r){r(t)})},i.race=function(t){return new i(function(e,r){t.forEach(function(t){i.resolve(t).then(e,r)})})},i.prototype.catch=function(t){return this.then(null,t)}},function(t,e){!function(t){"use strict";function e(t){if("string"!==typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!==typeof t&&(t=String(t)),t}function n(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return v.iterable&&(e[Symbol.iterator]=function(){return e}),e}function i(t){this.map={},t instanceof i?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function o(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function a(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function s(t){var e=new FileReader,r=a(e);return e.readAsArrayBuffer(t),r}function u(t){var e=new FileReader,r=a(e);return e.readAsText(t),r}function c(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"===typeof t)this._bodyText=t;else if(v.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(v.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(v.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(v.arrayBuffer&&v.blob&&g(t))this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!v.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t)&&!_(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=f(t)}else this._bodyText="";this.headers.get("content-type")||("string"===typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):v.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},v.blob&&(this.blob=function(){var t=o(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?o(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(s)}),this.text=function(){var t=o(this);if(t)return t;if(this._bodyBlob)return u(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(c(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},v.formData&&(this.formData=function(){return this.text().then(p)}),this.json=function(){return this.text().then(JSON.parse)},this}function l(t){var e=t.toUpperCase();return w.indexOf(e)>-1?e:t}function d(t,e){e=e||{};var r=e.body;if(t instanceof d){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new i(t.headers)),this.method=t.method,this.mode=t.mode,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new i(e.headers)),this.method=l(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function p(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}}),e}function m(t){var e=new i;return t.split(/\r?\n/).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();e.append(n,i)}}),e}function b(t,e){e||(e={}),this.type="default",this.status="status"in e?e.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new i(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){var v={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(v.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=function(t){return t&&DataView.prototype.isPrototypeOf(t)},_=ArrayBuffer.isView||function(t){return t&&y.indexOf(Object.prototype.toString.call(t))>-1};i.prototype.append=function(t,n){t=e(t),n=r(n);var i=this.map[t];this.map[t]=i?i+","+n:n},i.prototype.delete=function(t){delete this.map[e(t)]},i.prototype.get=function(t){return t=e(t),this.has(t)?this.map[t]:null},i.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},i.prototype.set=function(t,n){this.map[e(t)]=r(n)},i.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},i.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),n(t)},i.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),n(t)},i.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),n(t)},v.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];d.prototype.clone=function(){return new d(this,{body:this._bodyInit})},h.call(d.prototype),h.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var M=[301,302,303,307,308];b.redirect=function(t,e){if(-1===M.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},t.Headers=i,t.Request=d,t.Response=b,t.fetch=function(t,e){return new Promise(function(r,n){var i=new d(t,e),o=new XMLHttpRequest;o.onload=function(){var t={status:o.status,statusText:o.statusText,headers:m(o.getAllResponseHeaders()||"")};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var e="response"in o?o.response:o.responseText;r(new b(e,t))},o.onerror=function(){n(new TypeError("Network request failed"))},o.ontimeout=function(){n(new TypeError("Network request failed"))},o.open(i.method,i.url,!0),"include"===i.credentials&&(o.withCredentials=!0),"responseType"in o&&v.blob&&(o.responseType="blob"),i.headers.forEach(function(t,e){o.setRequestHeader(e,t)}),o.send("undefined"===typeof i._bodyInit?null:i._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!==typeof self?self:this)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(38),i=r.n(n),o=r(65),a=r.n(o),s=r(148),u=r(375);a.a.render(i.a.createElement(s.a,null),document.getElementById("root")),Object(u.a)()},function(t,e,r){"use strict";function n(t){for(var e=arguments.length-1,r="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,n=0;n<e;n++)r+="&args[]="+encodeURIComponent(arguments[n+1]);throw e=Error(r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),e.name="Invariant Violation",e.framesToPop=1,e}function i(t,e,r){this.props=t,this.context=e,this.refs=g,this.updater=r||C}function o(t,e,r){this.props=t,this.context=e,this.refs=g,this.updater=r||C}function a(){}function s(t,e,r){this.props=t,this.context=e,this.refs=g,this.updater=r||C}function u(t,e,r){var n,i={},o=null,a=null;if(null!=e)for(n in void 0!==e.ref&&(a=e.ref),void 0!==e.key&&(o=""+e.key),e)R.call(e,n)&&!O.hasOwnProperty(n)&&(i[n]=e[n]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(t&&t.defaultProps)for(n in s=t.defaultProps)void 0===i[n]&&(i[n]=s[n]);return{$$typeof:M,type:t,key:o,ref:a,props:i,_owner:P.current}}function c(t){return"object"===typeof t&&null!==t&&t.$$typeof===M}function f(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,function(t){return e[t]})}function h(t,e,r,n){if(N.length){var i=N.pop();return i.result=t,i.keyPrefix=e,i.func=r,i.context=n,i.count=0,i}return{result:t,keyPrefix:e,func:r,context:n,count:0}}function l(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>N.length&&N.push(t)}function d(t,e,r,i){var o=typeof t;"undefined"!==o&&"boolean"!==o||(t=null);var a=!1;if(null===t)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case M:case k:case E:case x:a=!0}}if(a)return r(i,t,""===e?"."+p(t,0):e),1;if(a=0,e=""===e?".":e+":",Array.isArray(t))for(var s=0;s<t.length;s++){o=t[s];var u=e+p(o,s);a+=d(o,u,r,i)}else if(null===t||"undefined"===typeof t?u=null:(u=A&&t[A]||t["@@iterator"],u="function"===typeof u?u:null),"function"===typeof u)for(t=u.call(t),s=0;!(o=t.next()).done;)o=o.value,u=e+p(o,s++),a+=d(o,u,r,i);else"object"===o&&(r=""+t,n("31","[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return a}function p(t,e){return"object"===typeof t&&null!==t&&null!=t.key?f(t.key):e.toString(36)}function m(t,e){t.func.call(t.context,e,t.count++)}function b(t,e,r){var n=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?v(t,n,r,_.thatReturnsArgument):null!=t&&(c(t)&&(e=i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(j,"$&/")+"/")+r,t={$$typeof:M,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}),n.push(t))}function v(t,e,r,n,i){var o="";null!=r&&(o=(""+r).replace(j,"$&/")+"/"),e=h(e,o,n,i),null==t||d(t,"",b,e),l(e)}var y=r(48),g=r(64),_=r(49),w="function"===typeof Symbol&&Symbol.for,M=w?Symbol.for("react.element"):60103,k=w?Symbol.for("react.call"):60104,E=w?Symbol.for("react.return"):60105,x=w?Symbol.for("react.portal"):60106,S=w?Symbol.for("react.fragment"):60107,A="function"===typeof Symbol&&Symbol.iterator,C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};i.prototype.isReactComponent={},i.prototype.setState=function(t,e){"object"!==typeof t&&"function"!==typeof t&&null!=t&&n("85"),this.updater.enqueueSetState(this,t,e,"setState")},i.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},a.prototype=i.prototype;var T=o.prototype=new a;T.constructor=o,y(T,i.prototype),T.isPureReactComponent=!0;var I=s.prototype=new a;I.constructor=s,y(I,i.prototype),I.unstable_isAsyncReactComponent=!0,I.render=function(){return this.props.children};var P={current:null},R=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0},j=/\/+/g,N=[],B={Children:{map:function(t,e,r){if(null==t)return t;var n=[];return v(t,n,null,e,r),n},forEach:function(t,e,r){if(null==t)return t;e=h(null,null,e,r),null==t||d(t,"",m,e),l(e)},count:function(t){return null==t?0:d(t,"",_.thatReturnsNull,null)},toArray:function(t){var e=[];return v(t,e,null,_.thatReturnsArgument),e},only:function(t){return c(t)||n("143"),t}},Component:i,PureComponent:o,unstable_AsyncComponent:s,Fragment:S,createElement:u,cloneElement:function(t,e,r){var n=y({},t.props),i=t.key,o=t.ref,a=t._owner;if(null!=e){if(void 0!==e.ref&&(o=e.ref,a=P.current),void 0!==e.key&&(i=""+e.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(u in e)R.call(e,u)&&!O.hasOwnProperty(u)&&(n[u]=void 0===e[u]&&void 0!==s?s[u]:e[u])}var u=arguments.length-2;if(1===u)n.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];n.children=s}return{$$typeof:M,type:t.type,key:i,ref:o,props:n,_owner:a}},createFactory:function(t){var e=u.bind(null,t);return e.type=t,e},isValidElement:c,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:P,assign:y}},L=Object.freeze({default:B}),F=L&&B||L;t.exports=F.default?F.default:F},function(t,e,r){"use strict";function n(t){for(var e=arguments.length-1,r="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,n=0;n<e;n++)r+="&args[]="+encodeURIComponent(arguments[n+1]);throw e=Error(r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),e.name="Invariant Violation",e.framesToPop=1,e}function i(t,e){return(t&e)===e}function o(t,e){if(Cr.hasOwnProperty(t)||2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))return!1;if(null===e)return!0;switch(typeof e){case"boolean":return Cr.hasOwnProperty(t)?t=!0:(e=a(t))?t=e.hasBooleanValue||e.hasStringBooleanValue||e.hasOverloadedBooleanValue:(t=t.toLowerCase().slice(0,5),t="data-"===t||"aria-"===t),t;case"undefined":case"number":case"string":case"object":return!0;default:return!1}}function a(t){return Ir.hasOwnProperty(t)?Ir[t]:null}function s(t){return t[1].toUpperCase()}function u(t,e,r,n,i,o,a,s,u){Hr._hasCaughtError=!1,Hr._caughtError=null;var c=Array.prototype.slice.call(arguments,3);try{e.apply(r,c)}catch(t){Hr._caughtError=t,Hr._hasCaughtError=!0}}function c(){if(Hr._hasRethrowError){var t=Hr._rethrowError;throw Hr._rethrowError=null,Hr._hasRethrowError=!1,t}}function f(){if(Vr)for(var t in Kr){var e=Kr[t],r=Vr.indexOf(t);if(-1<r||n("96",t),!Yr[r]){e.extractEvents||n("97",t),Yr[r]=e,r=e.eventTypes;for(var i in r){var o=void 0,a=r[i],s=e,u=i;Gr.hasOwnProperty(u)&&n("99",u),Gr[u]=a;var c=a.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&h(c[o],s,u);o=!0}else a.registrationName?(h(a.registrationName,s,u),o=!0):o=!1;o||n("98",i,t)}}}}function h(t,e,r){Wr[t]&&n("100",t),Wr[t]=e,Zr[t]=e.eventTypes[r].dependencies}function l(t){Vr&&n("101"),Vr=Array.prototype.slice.call(t),f()}function d(t){var e,r=!1;for(e in t)if(t.hasOwnProperty(e)){var i=t[e];Kr.hasOwnProperty(e)&&Kr[e]===i||(Kr[e]&&n("102",e),Kr[e]=i,r=!0)}r&&f()}function p(t,e,r,n){e=t.type||"unknown-event",t.currentTarget=Jr(n),Hr.invokeGuardedCallbackAndCatchFirstError(e,r,void 0,t),t.currentTarget=null}function m(t,e){return null==e&&n("30"),null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function b(t,e,r){Array.isArray(t)?t.forEach(e,r):t&&e.call(r,t)}function v(t,e){if(t){var r=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(r))for(var i=0;i<r.length&&!t.isPropagationStopped();i++)p(t,e,r[i],n[i]);else r&&p(t,e,r,n);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function y(t){return v(t,!0)}function g(t){return v(t,!1)}function _(t,e){var r=t.stateNode;if(!r)return null;var i=$r(r);if(!i)return null;r=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(i=!i.disabled)||(t=t.type,i=!("button"===t||"input"===t||"select"===t||"textarea"===t)),t=!i;break t;default:t=!1}return t?null:(r&&"function"!==typeof r&&n("231",e,typeof r),r)}function w(t,e,r,n){for(var i,o=0;o<Yr.length;o++){var a=Yr[o];a&&(a=a.extractEvents(t,e,r,n))&&(i=m(i,a))}return i}function M(t){t&&(tn=m(tn,t))}function k(t){var e=tn;tn=null,e&&(t?b(e,y):b(e,g),tn&&n("95"),Hr.rethrowCaughtError())}function E(t){if(t[on])return t[on];for(var e=[];!t[on];){if(e.push(t),!t.parentNode)return null;t=t.parentNode}var r=void 0,n=t[on];if(5===n.tag||6===n.tag)return n;for(;t&&(n=t[on]);t=e.pop())r=n;return r}function x(t){if(5===t.tag||6===t.tag)return t.stateNode;n("33")}function S(t){return t[an]||null}function A(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function C(t,e,r){for(var n=[];t;)n.push(t),t=A(t);for(t=n.length;0<t--;)e(n[t],"captured",r);for(t=0;t<n.length;t++)e(n[t],"bubbled",r)}function T(t,e,r){(e=_(t,r.dispatchConfig.phasedRegistrationNames[e]))&&(r._dispatchListeners=m(r._dispatchListeners,e),r._dispatchInstances=m(r._dispatchInstances,t))}function I(t){t&&t.dispatchConfig.phasedRegistrationNames&&C(t._targetInst,T,t)}function P(t){if(t&&t.dispatchConfig.phasedRegistrationNames){var e=t._targetInst;e=e?A(e):null,C(e,T,t)}}function R(t,e,r){t&&r&&r.dispatchConfig.registrationName&&(e=_(t,r.dispatchConfig.registrationName))&&(r._dispatchListeners=m(r._dispatchListeners,e),r._dispatchInstances=m(r._dispatchInstances,t))}function O(t){t&&t.dispatchConfig.registrationName&&R(t._targetInst,null,t)}function j(t){b(t,I)}function N(t,e,r,n){if(r&&n)t:{for(var i=r,o=n,a=0,s=i;s;s=A(s))a++;s=0;for(var u=o;u;u=A(u))s++;for(;0<a-s;)i=A(i),a--;for(;0<s-a;)o=A(o),s--;for(;a--;){if(i===o||i===o.alternate)break t;i=A(i),o=A(o)}i=null}else i=null;for(o=i,i=[];r&&r!==o&&(null===(a=r.alternate)||a!==o);)i.push(r),r=A(r);for(r=[];n&&n!==o&&(null===(a=n.alternate)||a!==o);)r.push(n),n=A(n);for(n=0;n<i.length;n++)R(i[n],"bubbled",t);for(t=r.length;0<t--;)R(r[t],"captured",e)}function B(){return!cn&&gr.canUseDOM&&(cn="textContent"in document.documentElement?"textContent":"innerText"),cn}function L(){if(fn._fallbackText)return fn._fallbackText;var t,e,r=fn._startText,n=r.length,i=F(),o=i.length;for(t=0;t<n&&r[t]===i[t];t++);var a=n-t;for(e=1;e<=a&&r[n-e]===i[o-e];e++);return fn._fallbackText=i.slice(t,1<e?1-e:void 0),fn._fallbackText}function F(){return"value"in fn._root?fn._root.value:fn._root[B()]}function D(t,e,r,n){this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=r,t=this.constructor.Interface;for(var i in t)t.hasOwnProperty(i)&&((e=t[i])?this[i]=e(r):"target"===i?this.target=n:this[i]=r[i]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?wr.thatReturnsTrue:wr.thatReturnsFalse,this.isPropagationStopped=wr.thatReturnsFalse,this}function U(t,e,r,n){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,t,e,r,n),i}return new this(t,e,r,n)}function q(t){t instanceof this||n("223"),t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function z(t){t.eventPool=[],t.getPooled=U,t.release=q}function H(t,e,r,n){return D.call(this,t,e,r,n)}function V(t,e,r,n){return D.call(this,t,e,r,n)}function K(t,e){switch(t){case"topKeyUp":return-1!==dn.indexOf(e.keyCode);case"topKeyDown":return 229!==e.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function Y(t){return t=t.detail,"object"===typeof t&&"data"in t?t.data:null}function G(t,e){switch(t){case"topCompositionEnd":return Y(e);case"topKeyPress":return 32!==e.which?null:(kn=!0,wn);case"topTextInput":return t=e.data,t===wn&&kn?null:t;default:return null}}function W(t,e){if(En)return"topCompositionEnd"===t||!pn&&K(t,e)?(t=L(),fn._root=null,fn._startText=null,fn._fallbackText=null,En=!1,t):null;switch(t){case"topPaste":return null;case"topKeyPress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"topCompositionEnd":return _n?null:e.data;default:return null}}function Z(t){if(t=Qr(t)){Sn&&"function"===typeof Sn.restoreControlledState||n("194");var e=$r(t.stateNode);Sn.restoreControlledState(t.stateNode,t.type,e)}}function X(t){An?Cn?Cn.push(t):Cn=[t]:An=t}function $(){if(An){var t=An,e=Cn;if(Cn=An=null,Z(t),e)for(t=0;t<e.length;t++)Z(e[t])}}function Q(t,e){return t(e)}function J(t,e){if(Pn)return Q(t,e);Pn=!0;try{return Q(t,e)}finally{Pn=!1,$()}}function tt(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Rn[t.type]:"textarea"===e}function et(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function rt(t,e){if(!gr.canUseDOM||e&&!("addEventListener"in document))return!1;e="on"+t;var r=e in document;return r||(r=document.createElement("div"),r.setAttribute(e,"return;"),r="function"===typeof r[e]),!r&&yn&&"wheel"===t&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}function nt(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function it(t){var e=nt(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&"function"===typeof r.get&&"function"===typeof r.set)return Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:!0,get:function(){return r.get.call(this)},set:function(t){n=""+t,r.set.call(this,t)}}),{getValue:function(){return n},setValue:function(t){n=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}function ot(t){t._valueTracker||(t._valueTracker=it(t))}function at(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=nt(t)?t.checked?"true":"false":t.value),(t=n)!==r&&(e.setValue(t),!0)}function st(t,e,r){return t=D.getPooled(On.change,t,e,r),t.type="change",X(r),j(t),t}function ut(t){M(t),k(!1)}function ct(t){if(at(x(t)))return t}function ft(t,e){if("topChange"===t)return e}function ht(){jn&&(jn.detachEvent("onpropertychange",lt),Nn=jn=null)}function lt(t){"value"===t.propertyName&&ct(Nn)&&(t=st(Nn,t,et(t)),J(ut,t))}function dt(t,e,r){"topFocus"===t?(ht(),jn=e,Nn=r,jn.attachEvent("onpropertychange",lt)):"topBlur"===t&&ht()}function pt(t){if("topSelectionChange"===t||"topKeyUp"===t||"topKeyDown"===t)return ct(Nn)}function mt(t,e){if("topClick"===t)return ct(e)}function bt(t,e){if("topInput"===t||"topChange"===t)return ct(e)}function vt(t,e,r,n){return D.call(this,t,e,r,n)}function yt(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Fn[t])&&!!e[t]}function gt(){return yt}function _t(t,e,r,n){return D.call(this,t,e,r,n)}function wt(t){return t=t.type,"string"===typeof t?t:"function"===typeof t?t.displayName||t.name:null}function Mt(t){var e=t;if(t.alternate)for(;e.return;)e=e.return;else{if(0!==(2&e.effectTag))return 1;for(;e.return;)if(e=e.return,0!==(2&e.effectTag))return 1}return 3===e.tag?2:3}function kt(t){return!!(t=t._reactInternalFiber)&&2===Mt(t)}function Et(t){2!==Mt(t)&&n("188")}function xt(t){var e=t.alternate;if(!e)return e=Mt(t),3===e&&n("188"),1===e?null:t;for(var r=t,i=e;;){var o=r.return,a=o?o.alternate:null;if(!o||!a)break;if(o.child===a.child){for(var s=o.child;s;){if(s===r)return Et(o),t;if(s===i)return Et(o),e;s=s.sibling}n("188")}if(r.return!==i.return)r=o,i=a;else{s=!1;for(var u=o.child;u;){if(u===r){s=!0,r=o,i=a;break}if(u===i){s=!0,i=o,r=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===r){s=!0,r=a,i=o;break}if(u===i){s=!0,i=a,r=o;break}u=u.sibling}s||n("189")}}r.alternate!==i&&n("190")}return 3!==r.tag&&n("188"),r.stateNode.current===r?t:e}function St(t){if(!(t=xt(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function At(t){if(!(t=xt(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child&&4!==e.tag)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function Ct(t){var e=t.targetInst;do{if(!e){t.ancestors.push(e);break}var r;for(r=e;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;t.ancestors.push(e),e=E(r)}while(e);for(r=0;r<t.ancestors.length;r++)e=t.ancestors[r],Vn(t.topLevelType,e,t.nativeEvent,et(t.nativeEvent))}function Tt(t){Hn=!!t}function It(t,e,r){return r?Mr.listen(r,e,Rt.bind(null,t)):null}function Pt(t,e,r){return r?Mr.capture(r,e,Rt.bind(null,t)):null}function Rt(t,e){if(Hn){var r=et(e);if(r=E(r),null===r||"number"!==typeof r.tag||2===Mt(r)||(r=null),zn.length){var n=zn.pop();n.topLevelType=t,n.nativeEvent=e,n.targetInst=r,t=n}else t={topLevelType:t,nativeEvent:e,targetInst:r,ancestors:[]};try{J(Ct,t)}finally{t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>zn.length&&zn.push(t)}}}function Ot(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r["ms"+t]="MS"+e,r["O"+t]="o"+e.toLowerCase(),r}function jt(t){if(Gn[t])return Gn[t];if(!Yn[t])return t;var e,r=Yn[t];for(e in r)if(r.hasOwnProperty(e)&&e in Wn)return Gn[t]=r[e];return""}function Nt(t){return Object.prototype.hasOwnProperty.call(t,Qn)||(t[Qn]=$n++,Xn[t[Qn]]={}),Xn[t[Qn]]}function Bt(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Lt(t,e){var r=Bt(t);t=0;for(var n;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=Bt(r)}}function Ft(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&"text"===t.type||"textarea"===e||"true"===t.contentEditable)}function Dt(t,e){if(ii||null==ei||ei!==kr())return null;var r=ei;return"selectionStart"in r&&Ft(r)?r={start:r.selectionStart,end:r.selectionEnd}:window.getSelection?(r=window.getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}):r=void 0,ni&&Er(ni,r)?null:(ni=r,t=D.getPooled(ti.select,ri,t,e),t.type="select",t.target=ei,j(t),t)}function Ut(t,e,r,n){return D.call(this,t,e,r,n)}function qt(t,e,r,n){return D.call(this,t,e,r,n)}function zt(t,e,r,n){return D.call(this,t,e,r,n)}function Ht(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,32<=t||13===t?t:0}function Vt(t,e,r,n){return D.call(this,t,e,r,n)}function Kt(t,e,r,n){return D.call(this,t,e,r,n)}function Yt(t,e,r,n){return D.call(this,t,e,r,n)}function Gt(t,e,r,n){return D.call(this,t,e,r,n)}function Wt(t,e,r,n){return D.call(this,t,e,r,n)}function Zt(t){0>li||(t.current=hi[li],hi[li]=null,li--)}function Xt(t,e){li++,hi[li]=t.current,t.current=e}function $t(t){return Jt(t)?mi:di.current}function Qt(t,e){var r=t.type.contextTypes;if(!r)return Ar;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=e[i];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Jt(t){return 2===t.tag&&null!=t.type.childContextTypes}function te(t){Jt(t)&&(Zt(pi,t),Zt(di,t))}function ee(t,e,r){null!=di.cursor&&n("168"),Xt(di,e,t),Xt(pi,r,t)}function re(t,e){var r=t.stateNode,i=t.type.childContextTypes;if("function"!==typeof r.getChildContext)return e;r=r.getChildContext();for(var o in r)o in i||n("108",wt(t)||"Unknown",o);return _r({},e,r)}function ne(t){if(!Jt(t))return!1;var e=t.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||Ar,mi=di.current,Xt(di,e,t),Xt(pi,pi.current,t),!0}function ie(t,e){var r=t.stateNode;if(r||n("169"),e){var i=re(t,mi);r.__reactInternalMemoizedMergedChildContext=i,Zt(pi,t),Zt(di,t),Xt(di,i,t)}else Zt(pi,t);Xt(pi,e,t)}function oe(t,e,r){this.tag=t,this.key=e,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function ae(t,e,r){var n=t.alternate;return null===n?(n=new oe(t.tag,t.key,t.internalContextTag),n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.expirationTime=r,n.pendingProps=e,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function se(t,e,r){var i=void 0,o=t.type,a=t.key;return"function"===typeof o?(i=o.prototype&&o.prototype.isReactComponent?new oe(2,a,e):new oe(0,a,e),i.type=o,i.pendingProps=t.props):"string"===typeof o?(i=new oe(5,a,e),i.type=o,i.pendingProps=t.props):"object"===typeof o&&null!==o&&"number"===typeof o.tag?(i=o,i.pendingProps=t.props):n("130",null==o?o:typeof o,""),i.expirationTime=r,i}function ue(t,e,r,n){return e=new oe(10,n,e),e.pendingProps=t,e.expirationTime=r,e}function ce(t,e,r){return e=new oe(6,null,e),e.pendingProps=t,e.expirationTime=r,e}function fe(t,e,r){return e=new oe(7,t.key,e),e.type=t.handler,e.pendingProps=t,e.expirationTime=r,e}function he(t,e,r){return t=new oe(9,null,e),t.expirationTime=r,t}function le(t,e,r){return e=new oe(4,t.key,e),e.pendingProps=t.children||[],e.expirationTime=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function de(t){return function(e){try{return t(e)}catch(t){}}}function pe(t){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var r=e.inject(t);bi=de(function(t){return e.onCommitFiberRoot(r,t)}),vi=de(function(t){return e.onCommitFiberUnmount(r,t)})}catch(t){}return!0}function me(t){"function"===typeof bi&&bi(t)}function be(t){"function"===typeof vi&&vi(t)}function ve(t){return{baseState:t,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1}}function ye(t,e){null===t.last?t.first=t.last=e:(t.last.next=e,t.last=e),(0===t.expirationTime||t.expirationTime>e.expirationTime)&&(t.expirationTime=e.expirationTime)}function ge(t,e){var r=t.alternate,n=t.updateQueue;null===n&&(n=t.updateQueue=ve(null)),null!==r?null===(t=r.updateQueue)&&(t=r.updateQueue=ve(null)):t=null,t=t!==n?t:null,null===t?ye(n,e):null===n.last||null===t.last?(ye(n,e),ye(t,e)):(ye(n,e),t.last=e)}function _e(t,e,r,n){return t=t.partialState,"function"===typeof t?t.call(e,r,n):t}function we(t,e,r,n,i,o){null!==t&&t.updateQueue===r&&(r=e.updateQueue={baseState:r.baseState,expirationTime:r.expirationTime,first:r.first,last:r.last,isInitialized:r.isInitialized,callbackList:null,hasForceUpdate:!1}),r.expirationTime=0,r.isInitialized?t=r.baseState:(t=r.baseState=e.memoizedState,r.isInitialized=!0);for(var a=!0,s=r.first,u=!1;null!==s;){var c=s.expirationTime;if(c>o){var f=r.expirationTime;(0===f||f>c)&&(r.expirationTime=c),u||(u=!0,r.baseState=t)}else u||(r.first=s.next,null===r.first&&(r.last=null)),s.isReplace?(t=_e(s,n,t,i),a=!0):(c=_e(s,n,t,i))&&(t=a?_r({},t,c):_r(t,c),a=!1),s.isForced&&(r.hasForceUpdate=!0),null!==s.callback&&(c=r.callbackList,null===c&&(c=r.callbackList=[]),c.push(s));s=s.next}return null!==r.callbackList?e.effectTag|=32:null!==r.first||r.hasForceUpdate||(e.updateQueue=null),u||(r.baseState=t),t}function Me(t,e){var r=t.callbackList;if(null!==r)for(t.callbackList=null,t=0;t<r.length;t++){var i=r[t],o=i.callback;i.callback=null,"function"!==typeof o&&n("191",o),o.call(e)}}function ke(t,e,r,i){function o(t,e){e.updater=a,t.stateNode=e,e._reactInternalFiber=t}var a={isMounted:kt,enqueueSetState:function(r,n,i){r=r._reactInternalFiber,i=void 0===i?null:i;var o=e(r);ge(r,{expirationTime:o,partialState:n,callback:i,isReplace:!1,isForced:!1,nextCallback:null,next:null}),t(r,o)},enqueueReplaceState:function(r,n,i){r=r._reactInternalFiber,i=void 0===i?null:i;var o=e(r);ge(r,{expirationTime:o,partialState:n,callback:i,isReplace:!0,isForced:!1,nextCallback:null,next:null}),t(r,o)},enqueueForceUpdate:function(r,n){r=r._reactInternalFiber,n=void 0===n?null:n;var i=e(r);ge(r,{expirationTime:i,partialState:null,callback:n,isReplace:!1,isForced:!0,nextCallback:null,next:null}),t(r,i)}};return{adoptClassInstance:o,constructClassInstance:function(t,e){var r=t.type,n=$t(t),i=2===t.tag&&null!=t.type.contextTypes,a=i?Qt(t,n):Ar;return e=new r(e,a),o(t,e),i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=n,t.__reactInternalMemoizedMaskedChildContext=a),e},mountClassInstance:function(t,e){var r=t.alternate,i=t.stateNode,o=i.state||null,s=t.pendingProps;s||n("158");var u=$t(t);i.props=s,i.state=t.memoizedState=o,i.refs=Ar,i.context=Qt(t,u),null!=t.type&&null!=t.type.prototype&&!0===t.type.prototype.unstable_isAsyncReactComponent&&(t.internalContextTag|=1),"function"===typeof i.componentWillMount&&(o=i.state,i.componentWillMount(),o!==i.state&&a.enqueueReplaceState(i,i.state,null),null!==(o=t.updateQueue)&&(i.state=we(r,t,o,i,s,e))),"function"===typeof i.componentDidMount&&(t.effectTag|=4)},updateClassInstance:function(t,e,o){var s=e.stateNode;s.props=e.memoizedProps,s.state=e.memoizedState;var u=e.memoizedProps,c=e.pendingProps;c||null==(c=u)&&n("159");var f=s.context,h=$t(e);if(h=Qt(e,h),"function"!==typeof s.componentWillReceiveProps||u===c&&f===h||(f=s.state,s.componentWillReceiveProps(c,h),s.state!==f&&a.enqueueReplaceState(s,s.state,null)),f=e.memoizedState,o=null!==e.updateQueue?we(t,e,e.updateQueue,s,c,o):f,!(u!==c||f!==o||pi.current||null!==e.updateQueue&&e.updateQueue.hasForceUpdate))return"function"!==typeof s.componentDidUpdate||u===t.memoizedProps&&f===t.memoizedState||(e.effectTag|=4),!1;var l=c;if(null===u||null!==e.updateQueue&&e.updateQueue.hasForceUpdate)l=!0;else{var d=e.stateNode,p=e.type;l="function"===typeof d.shouldComponentUpdate?d.shouldComponentUpdate(l,o,h):!p.prototype||!p.prototype.isPureReactComponent||(!Er(u,l)||!Er(f,o))}return l?("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(c,o,h),"function"===typeof s.componentDidUpdate&&(e.effectTag|=4)):("function"!==typeof s.componentDidUpdate||u===t.memoizedProps&&f===t.memoizedState||(e.effectTag|=4),r(e,c),i(e,o)),s.props=c,s.state=o,s.context=h,l}}}function Ee(t){return null===t||"undefined"===typeof t?null:(t=Ei&&t[Ei]||t["@@iterator"],"function"===typeof t?t:null)}function xe(t,e){var r=e.ref;if(null!==r&&"function"!==typeof r){if(e._owner){e=e._owner;var i=void 0;e&&(2!==e.tag&&n("110"),i=e.stateNode),i||n("147",r);var o=""+r;return null!==t&&null!==t.ref&&t.ref._stringRef===o?t.ref:(t=function(t){var e=i.refs===Ar?i.refs={}:i.refs;null===t?delete e[o]:e[o]=t},t._stringRef=o,t)}"string"!==typeof r&&n("148"),e._owner||n("149",r)}return r}function Se(t,e){"textarea"!==t.type&&n("31","[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,"")}function Ae(t){function e(e,r){if(t){var n=e.lastEffect;null!==n?(n.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r,r.nextEffect=null,r.effectTag=8}}function r(r,n){if(!t)return null;for(;null!==n;)e(r,n),n=n.sibling;return null}function i(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(t,e,r){return t=ae(t,e,r),t.index=0,t.sibling=null,t}function a(e,r,n){return e.index=n,t?null!==(n=e.alternate)?(n=n.index,n<r?(e.effectTag=2,r):n):(e.effectTag=2,r):r}function s(e){return t&&null===e.alternate&&(e.effectTag=2),e}function u(t,e,r,n){return null===e||6!==e.tag?(e=ce(r,t.internalContextTag,n),e.return=t,e):(e=o(e,r,n),e.return=t,e)}function c(t,e,r,n){return null!==e&&e.type===r.type?(n=o(e,r.props,n),n.ref=xe(e,r),n.return=t,n):(n=se(r,t.internalContextTag,n),n.ref=xe(e,r),n.return=t,n)}function f(t,e,r,n){return null===e||7!==e.tag?(e=fe(r,t.internalContextTag,n),e.return=t,e):(e=o(e,r,n),e.return=t,e)}function h(t,e,r,n){return null===e||9!==e.tag?(e=he(r,t.internalContextTag,n),e.type=r.value,e.return=t,e):(e=o(e,null,n),e.type=r.value,e.return=t,e)}function l(t,e,r,n){return null===e||4!==e.tag||e.stateNode.containerInfo!==r.containerInfo||e.stateNode.implementation!==r.implementation?(e=le(r,t.internalContextTag,n),e.return=t,e):(e=o(e,r.children||[],n),e.return=t,e)}function d(t,e,r,n,i){return null===e||10!==e.tag?(e=ue(r,t.internalContextTag,n,i),e.return=t,e):(e=o(e,r,n),e.return=t,e)}function p(t,e,r){if("string"===typeof e||"number"===typeof e)return e=ce(""+e,t.internalContextTag,r),e.return=t,e;if("object"===typeof e&&null!==e){switch(e.$$typeof){case gi:return e.type===ki?(e=ue(e.props.children,t.internalContextTag,r,e.key),e.return=t,e):(r=se(e,t.internalContextTag,r),r.ref=xe(null,e),r.return=t,r);case _i:return e=fe(e,t.internalContextTag,r),e.return=t,e;case wi:return r=he(e,t.internalContextTag,r),r.type=e.value,r.return=t,r;case Mi:return e=le(e,t.internalContextTag,r),e.return=t,e}if(xi(e)||Ee(e))return e=ue(e,t.internalContextTag,r,null),e.return=t,e;Se(t,e)}return null}function m(t,e,r,n){var i=null!==e?e.key:null;if("string"===typeof r||"number"===typeof r)return null!==i?null:u(t,e,""+r,n);if("object"===typeof r&&null!==r){switch(r.$$typeof){case gi:return r.key===i?r.type===ki?d(t,e,r.props.children,n,i):c(t,e,r,n):null;case _i:return r.key===i?f(t,e,r,n):null;case wi:return null===i?h(t,e,r,n):null;case Mi:return r.key===i?l(t,e,r,n):null}if(xi(r)||Ee(r))return null!==i?null:d(t,e,r,n,null);Se(t,r)}return null}function b(t,e,r,n,i){if("string"===typeof n||"number"===typeof n)return t=t.get(r)||null,u(e,t,""+n,i);if("object"===typeof n&&null!==n){switch(n.$$typeof){case gi:return t=t.get(null===n.key?r:n.key)||null,n.type===ki?d(e,t,n.props.children,i,n.key):c(e,t,n,i);case _i:return t=t.get(null===n.key?r:n.key)||null,f(e,t,n,i);case wi:return t=t.get(r)||null,h(e,t,n,i);case Mi:return t=t.get(null===n.key?r:n.key)||null,l(e,t,n,i)}if(xi(n)||Ee(n))return t=t.get(r)||null,d(e,t,n,i,null);Se(e,n)}return null}function v(n,o,s,u){for(var c=null,f=null,h=o,l=o=0,d=null;null!==h&&l<s.length;l++){h.index>l?(d=h,h=null):d=h.sibling;var v=m(n,h,s[l],u);if(null===v){null===h&&(h=d);break}t&&h&&null===v.alternate&&e(n,h),o=a(v,o,l),null===f?c=v:f.sibling=v,f=v,h=d}if(l===s.length)return r(n,h),c;if(null===h){for(;l<s.length;l++)(h=p(n,s[l],u))&&(o=a(h,o,l),null===f?c=h:f.sibling=h,f=h);return c}for(h=i(n,h);l<s.length;l++)(d=b(h,n,l,s[l],u))&&(t&&null!==d.alternate&&h.delete(null===d.key?l:d.key),o=a(d,o,l),null===f?c=d:f.sibling=d,f=d);return t&&h.forEach(function(t){return e(n,t)}),c}function y(o,s,u,c){var f=Ee(u);"function"!==typeof f&&n("150"),null==(u=f.call(u))&&n("151");for(var h=f=null,l=s,d=s=0,v=null,y=u.next();null!==l&&!y.done;d++,y=u.next()){l.index>d?(v=l,l=null):v=l.sibling;var g=m(o,l,y.value,c);if(null===g){l||(l=v);break}t&&l&&null===g.alternate&&e(o,l),s=a(g,s,d),null===h?f=g:h.sibling=g,h=g,l=v}if(y.done)return r(o,l),f;if(null===l){for(;!y.done;d++,y=u.next())null!==(y=p(o,y.value,c))&&(s=a(y,s,d),null===h?f=y:h.sibling=y,h=y);return f}for(l=i(o,l);!y.done;d++,y=u.next())null!==(y=b(l,o,d,y.value,c))&&(t&&null!==y.alternate&&l.delete(null===y.key?d:y.key),s=a(y,s,d),null===h?f=y:h.sibling=y,h=y);return t&&l.forEach(function(t){return e(o,t)}),f}return function(t,i,a,u){"object"===typeof a&&null!==a&&a.type===ki&&null===a.key&&(a=a.props.children);var c="object"===typeof a&&null!==a;if(c)switch(a.$$typeof){case gi:t:{var f=a.key;for(c=i;null!==c;){if(c.key===f){if(10===c.tag?a.type===ki:c.type===a.type){r(t,c.sibling),i=o(c,a.type===ki?a.props.children:a.props,u),i.ref=xe(c,a),i.return=t,t=i;break t}r(t,c);break}e(t,c),c=c.sibling}a.type===ki?(i=ue(a.props.children,t.internalContextTag,u,a.key),i.return=t,t=i):(u=se(a,t.internalContextTag,u),u.ref=xe(i,a),u.return=t,t=u)}return s(t);case _i:t:{for(c=a.key;null!==i;){if(i.key===c){if(7===i.tag){r(t,i.sibling),i=o(i,a,u),i.return=t,t=i;break t}r(t,i);break}e(t,i),i=i.sibling}i=fe(a,t.internalContextTag,u),i.return=t,t=i}return s(t);case wi:t:{if(null!==i){if(9===i.tag){r(t,i.sibling),i=o(i,null,u),i.type=a.value,i.return=t,t=i;break t}r(t,i)}i=he(a,t.internalContextTag,u),i.type=a.value,i.return=t,t=i}return s(t);case Mi:t:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){r(t,i.sibling),i=o(i,a.children||[],u),i.return=t,t=i;break t}r(t,i);break}e(t,i),i=i.sibling}i=le(a,t.internalContextTag,u),i.return=t,t=i}return s(t)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==i&&6===i.tag?(r(t,i.sibling),i=o(i,a,u)):(r(t,i),i=ce(a,t.internalContextTag,u)),i.return=t,t=i,s(t);if(xi(a))return v(t,i,a,u);if(Ee(a))return y(t,i,a,u);if(c&&Se(t,a),"undefined"===typeof a)switch(t.tag){case 2:case 1:u=t.type,n("152",u.displayName||u.name||"Component")}return r(t,i)}}function Ce(t,e,r,i,o){function a(t,e,r){var n=e.expirationTime;e.child=null===t?Ai(e,null,r,n):Si(e,t.child,r,n)}function s(t,e){var r=e.ref;null===r||t&&t.ref===r||(e.effectTag|=128)}function u(t,e,r,n){if(s(t,e),!r)return n&&ie(e,!1),f(t,e);r=e.stateNode,qn.current=e;var i=r.render();return e.effectTag|=1,a(t,e,i),e.memoizedState=r.state,e.memoizedProps=r.props,n&&ie(e,!0),e.child}function c(t){var e=t.stateNode;e.pendingContext?ee(t,e.pendingContext,e.pendingContext!==e.context):e.context&&ee(t,e.context,!1),b(t,e.containerInfo)}function f(t,e){if(null!==t&&e.child!==t.child&&n("153"),null!==e.child){t=e.child;var r=ae(t,t.pendingProps,t.expirationTime);for(e.child=r,r.return=e;null!==t.sibling;)t=t.sibling,r=r.sibling=ae(t,t.pendingProps,t.expirationTime),r.return=e;r.sibling=null}return e.child}function h(t,e){switch(e.tag){case 3:c(e);break;case 2:ne(e);break;case 4:b(e,e.stateNode.containerInfo)}return null}var l=t.shouldSetTextContent,d=t.useSyncScheduling,p=t.shouldDeprioritizeSubtree,m=e.pushHostContext,b=e.pushHostContainer,v=r.enterHydrationState,y=r.resetHydrationState,g=r.tryToClaimNextHydratableInstance;t=ke(i,o,function(t,e){t.memoizedProps=e},function(t,e){t.memoizedState=e});var _=t.adoptClassInstance,w=t.constructClassInstance,M=t.mountClassInstance,k=t.updateClassInstance;return{beginWork:function(t,e,r){if(0===e.expirationTime||e.expirationTime>r)return h(t,e);switch(e.tag){case 0:null!==t&&n("155");var i=e.type,o=e.pendingProps,E=$t(e);return E=Qt(e,E),i=i(o,E),e.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render?(e.tag=2,o=ne(e),_(e,i),M(e,r),e=u(t,e,!0,o)):(e.tag=1,a(t,e,i),e.memoizedProps=o,e=e.child),e;case 1:t:{if(o=e.type,r=e.pendingProps,i=e.memoizedProps,pi.current)null===r&&(r=i);else if(null===r||i===r){e=f(t,e);break t}i=$t(e),i=Qt(e,i),o=o(r,i),e.effectTag|=1,a(t,e,o),e.memoizedProps=r,e=e.child}return e;case 2:return o=ne(e),i=void 0,null===t?e.stateNode?n("153"):(w(e,e.pendingProps),M(e,r),i=!0):i=k(t,e,r),u(t,e,i,o);case 3:return c(e),o=e.updateQueue,null!==o?(i=e.memoizedState,o=we(t,e,o,null,null,r),i===o?(y(),e=f(t,e)):(i=o.element,E=e.stateNode,(null===t||null===t.child)&&E.hydrate&&v(e)?(e.effectTag|=2,e.child=Ai(e,null,i,r)):(y(),a(t,e,i)),e.memoizedState=o,e=e.child)):(y(),e=f(t,e)),e;case 5:m(e),null===t&&g(e),o=e.type;var x=e.memoizedProps;return i=e.pendingProps,null===i&&null===(i=x)&&n("154"),E=null!==t?t.memoizedProps:null,pi.current||null!==i&&x!==i?(x=i.children,l(o,i)?x=null:E&&l(o,E)&&(e.effectTag|=16),s(t,e),2147483647!==r&&!d&&p(o,i)?(e.expirationTime=2147483647,e=null):(a(t,e,x),e.memoizedProps=i,e=e.child)):e=f(t,e),e;case 6:return null===t&&g(e),t=e.pendingProps,null===t&&(t=e.memoizedProps),e.memoizedProps=t,null;case 8:e.tag=7;case 7:return o=e.pendingProps,pi.current?null===o&&null===(o=t&&t.memoizedProps)&&n("154"):null!==o&&e.memoizedProps!==o||(o=e.memoizedProps),i=o.children,e.stateNode=null===t?Ai(e,e.stateNode,i,r):Si(e,e.stateNode,i,r),e.memoizedProps=o,e.stateNode;case 9:return null;case 4:t:{if(b(e,e.stateNode.containerInfo),o=e.pendingProps,pi.current)null===o&&null==(o=t&&t.memoizedProps)&&n("154");else if(null===o||e.memoizedProps===o){e=f(t,e);break t}null===t?e.child=Si(e,null,o,r):a(t,e,o),e.memoizedProps=o,e=e.child}return e;case 10:t:{if(r=e.pendingProps,pi.current)null===r&&(r=e.memoizedProps);else if(null===r||e.memoizedProps===r){e=f(t,e);break t}a(t,e,r),e.memoizedProps=r,e=e.child}return e;default:n("156")}},beginFailedWork:function(t,e,r){switch(e.tag){case 2:ne(e);break;case 3:c(e);break;default:n("157")}return e.effectTag|=64,null===t?e.child=null:e.child!==t.child&&(e.child=t.child),0===e.expirationTime||e.expirationTime>r?h(t,e):(e.firstEffect=null,e.lastEffect=null,e.child=null===t?Ai(e,null,null,r):Si(e,t.child,null,r),2===e.tag&&(t=e.stateNode,e.memoizedProps=t.props,e.memoizedState=t.state),e.child)}}}function Te(t,e,r){function i(t){t.effectTag|=4}var o=t.createInstance,a=t.createTextInstance,s=t.appendInitialChild,u=t.finalizeInitialChildren,c=t.prepareUpdate,f=t.persistence,h=e.getRootHostContainer,l=e.popHostContext,d=e.getHostContext,p=e.popHostContainer,m=r.prepareToHydrateHostInstance,b=r.prepareToHydrateHostTextInstance,v=r.popHydrationState,y=void 0,g=void 0,_=void 0;return t.mutation?(y=function(){},g=function(t,e,r){(e.updateQueue=r)&&i(e)},_=function(t,e,r,n){r!==n&&i(e)}):n(f?"235":"236"),{completeWork:function(t,e,r){var f=e.pendingProps;switch(null===f?f=e.memoizedProps:2147483647===e.expirationTime&&2147483647!==r||(e.pendingProps=null),e.tag){case 1:return null;case 2:return te(e),null;case 3:return p(e),Zt(pi,e),Zt(di,e),f=e.stateNode,f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),null!==t&&null!==t.child||(v(e),e.effectTag&=-3),y(e),null;case 5:l(e),r=h();var w=e.type;if(null!==t&&null!=e.stateNode){var M=t.memoizedProps,k=e.stateNode,E=d();k=c(k,w,M,f,r,E),g(t,e,k,w,M,f,r),t.ref!==e.ref&&(e.effectTag|=128)}else{if(!f)return null===e.stateNode&&n("166"),null;if(t=d(),v(e))m(e,r,t)&&i(e);else{t=o(w,f,r,t,e);t:for(M=e.child;null!==M;){if(5===M.tag||6===M.tag)s(t,M.stateNode);else if(4!==M.tag&&null!==M.child){M.child.return=M,M=M.child;continue}if(M===e)break;for(;null===M.sibling;){if(null===M.return||M.return===e)break t;M=M.return}M.sibling.return=M.return,M=M.sibling}u(t,w,f,r)&&i(e),e.stateNode=t}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)_(t,e,t.memoizedProps,f);else{if("string"!==typeof f)return null===e.stateNode&&n("166"),null;t=h(),r=d(),v(e)?b(e)&&i(e):e.stateNode=a(f,t,r,e)}return null;case 7:(f=e.memoizedProps)||n("165"),e.tag=8,w=[];t:for((M=e.stateNode)&&(M.return=e);null!==M;){if(5===M.tag||6===M.tag||4===M.tag)n("247");else if(9===M.tag)w.push(M.type);else if(null!==M.child){M.child.return=M,M=M.child;continue}for(;null===M.sibling;){if(null===M.return||M.return===e)break t;M=M.return}M.sibling.return=M.return,M=M.sibling}return M=f.handler,f=M(f.props,w),e.child=Si(e,null!==t?t.child:null,f,r),e.child;case 8:return e.tag=7,null;case 9:case 10:return null;case 4:return p(e),y(e),null;case 0:n("167");default:n("156")}}}}function Ie(t,e){function r(t){var r=t.ref;if(null!==r)try{r(null)}catch(r){e(t,r)}}function i(t){switch("function"===typeof be&&be(t),t.tag){case 2:r(t);var n=t.stateNode;if("function"===typeof n.componentWillUnmount)try{n.props=t.memoizedProps,n.state=t.memoizedState,n.componentWillUnmount()}catch(r){e(t,r)}break;case 5:r(t);break;case 7:o(t.stateNode);break;case 4:c&&s(t)}}function o(t){for(var e=t;;)if(i(e),null===e.child||c&&4===e.tag){if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;e=e.return}e.sibling.return=e.return,e=e.sibling}else e.child.return=e,e=e.child}function a(t){return 5===t.tag||3===t.tag||4===t.tag}function s(t){for(var e=t,r=!1,a=void 0,s=void 0;;){if(!r){r=e.return;t:for(;;){switch(null===r&&n("160"),r.tag){case 5:a=r.stateNode,s=!1;break t;case 3:case 4:a=r.stateNode.containerInfo,s=!0;break t}r=r.return}r=!0}if(5===e.tag||6===e.tag)o(e),s?g(a,e.stateNode):y(a,e.stateNode);else if(4===e.tag?a=e.stateNode.containerInfo:i(e),null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;e=e.return,4===e.tag&&(r=!1)}e.sibling.return=e.return,e=e.sibling}}var u=t.getPublicInstance,c=t.mutation;t=t.persistence,c||n(t?"235":"236");var f=c.commitMount,h=c.commitUpdate,l=c.resetTextContent,d=c.commitTextUpdate,p=c.appendChild,m=c.appendChildToContainer,b=c.insertBefore,v=c.insertInContainerBefore,y=c.removeChild,g=c.removeChildFromContainer;return{commitResetTextContent:function(t){l(t.stateNode)},commitPlacement:function(t){t:{for(var e=t.return;null!==e;){if(a(e)){var r=e;break t}e=e.return}n("160"),r=void 0}var i=e=void 0;switch(r.tag){case 5:e=r.stateNode,i=!1;break;case 3:case 4:e=r.stateNode.containerInfo,i=!0;break;default:n("161")}16&r.effectTag&&(l(e),r.effectTag&=-17);t:e:for(r=t;;){for(;null===r.sibling;){if(null===r.return||a(r.return)){r=null;break t}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag;){if(2&r.effectTag)continue e;if(null===r.child||4===r.tag)continue e;r.child.return=r,r=r.child}if(!(2&r.effectTag)){r=r.stateNode;break t}}for(var o=t;;){if(5===o.tag||6===o.tag)r?i?v(e,o.stateNode,r):b(e,o.stateNode,r):i?m(e,o.stateNode):p(e,o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},commitDeletion:function(t){s(t),t.return=null,t.child=null,t.alternate&&(t.alternate.child=null,t.alternate.return=null)},commitWork:function(t,e){switch(e.tag){case 2:break;case 5:var r=e.stateNode;if(null!=r){var i=e.memoizedProps;t=null!==t?t.memoizedProps:i;var o=e.type,a=e.updateQueue;e.updateQueue=null,null!==a&&h(r,a,o,t,i,e)}break;case 6:null===e.stateNode&&n("162"),r=e.memoizedProps,d(e.stateNode,null!==t?t.memoizedProps:r,r);break;case 3:break;default:n("163")}},commitLifeCycles:function(t,e){switch(e.tag){case 2:var r=e.stateNode;if(4&e.effectTag)if(null===t)r.props=e.memoizedProps,r.state=e.memoizedState,r.componentDidMount();else{var i=t.memoizedProps;t=t.memoizedState,r.props=e.memoizedProps,r.state=e.memoizedState,r.componentDidUpdate(i,t)}e=e.updateQueue,null!==e&&Me(e,r);break;case 3:r=e.updateQueue,null!==r&&Me(r,null!==e.child?e.child.stateNode:null);break;case 5:r=e.stateNode,null===t&&4&e.effectTag&&f(r,e.type,e.memoizedProps,e);break;case 6:case 4:break;default:n("163")}},commitAttachRef:function(t){var e=t.ref;if(null!==e){var r=t.stateNode;switch(t.tag){case 5:e(u(r));break;default:e(r)}}},commitDetachRef:function(t){null!==(t=t.ref)&&t(null)}}}function Pe(t){function e(t){return t===Ci&&n("174"),t}var r=t.getChildHostContext,i=t.getRootHostContext,o={current:Ci},a={current:Ci},s={current:Ci};return{getHostContext:function(){return e(o.current)},getRootHostContainer:function(){return e(s.current)},popHostContainer:function(t){Zt(o,t),Zt(a,t),Zt(s,t)},popHostContext:function(t){a.current===t&&(Zt(o,t),Zt(a,t))},pushHostContainer:function(t,e){Xt(s,e,t),e=i(e),Xt(a,t,t),Xt(o,e,t)},pushHostContext:function(t){var n=e(s.current),i=e(o.current);n=r(i,t.type,n),i!==n&&(Xt(a,t,t),Xt(o,n,t))},resetHostContainer:function(){o.current=Ci,s.current=Ci}}}function Re(t){function e(t,e){var r=new oe(5,null,0);r.type="DELETED",r.stateNode=e,r.return=t,r.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r}function r(t,e){switch(t.tag){case 5:return null!==(e=a(e,t.type,t.pendingProps))&&(t.stateNode=e,!0);case 6:return null!==(e=s(e,t.pendingProps))&&(t.stateNode=e,!0);default:return!1}}function i(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag;)t=t.return;l=t}var o=t.shouldSetTextContent;if(!(t=t.hydration))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){n("175")},prepareToHydrateHostTextInstance:function(){n("176")},popHydrationState:function(){return!1}};var a=t.canHydrateInstance,s=t.canHydrateTextInstance,u=t.getNextHydratableSibling,c=t.getFirstHydratableChild,f=t.hydrateInstance,h=t.hydrateTextInstance,l=null,d=null,p=!1;return{enterHydrationState:function(t){return d=c(t.stateNode.containerInfo),l=t,p=!0},resetHydrationState:function(){d=l=null,p=!1},tryToClaimNextHydratableInstance:function(t){if(p){var n=d;if(n){if(!r(t,n)){if(!(n=u(n))||!r(t,n))return t.effectTag|=2,p=!1,void(l=t);e(l,d)}l=t,d=c(n)}else t.effectTag|=2,p=!1,l=t}},prepareToHydrateHostInstance:function(t,e,r){return e=f(t.stateNode,t.type,t.memoizedProps,e,r,t),t.updateQueue=e,null!==e},prepareToHydrateHostTextInstance:function(t){return h(t.stateNode,t.memoizedProps,t)},popHydrationState:function(t){if(t!==l)return!1;if(!p)return i(t),p=!0,!1;var r=t.type;if(5!==t.tag||"head"!==r&&"body"!==r&&!o(r,t.memoizedProps))for(r=d;r;)e(t,r),r=u(r);return i(t),d=l?u(t.stateNode):null,!0}}}function Oe(t){function e(t){ot=Z=!0;var e=t.stateNode;if(e.current===t&&n("177"),e.isReadyForCommit=!1,qn.current=null,1<t.effectTag)if(null!==t.lastEffect){t.lastEffect.nextEffect=t;var r=t.firstEffect}else r=t;else r=t.firstEffect;for(V(),J=r;null!==J;){var i=!1,o=void 0;try{for(;null!==J;){var a=J.effectTag;if(16&a&&O(J),128&a){var s=J.alternate;null!==s&&D(s)}switch(-242&a){case 2:j(J),J.effectTag&=-3;break;case 6:j(J),J.effectTag&=-3,B(J.alternate,J);break;case 4:B(J.alternate,J);break;case 8:at=!0,N(J),at=!1}J=J.nextEffect}}catch(t){i=!0,o=t}i&&(null===J&&n("178"),u(J,o),null!==J&&(J=J.nextEffect))}for(K(),e.current=t,J=r;null!==J;){r=!1,i=void 0;try{for(;null!==J;){var c=J.effectTag;if(36&c&&L(J.alternate,J),128&c&&F(J),64&c)switch(o=J,a=void 0,null!==tt&&(a=tt.get(o),tt.delete(o),null==a&&null!==o.alternate&&(o=o.alternate,a=tt.get(o),tt.delete(o))),null==a&&n("184"),o.tag){case 2:o.stateNode.componentDidCatch(a.error,{componentStack:a.componentStack});break;case 3:null===nt&&(nt=a.error);break;default:n("157")}var f=J.nextEffect;J.nextEffect=null,J=f}}catch(t){r=!0,i=t}r&&(null===J&&n("178"),u(J,i),null!==J&&(J=J.nextEffect))}return Z=ot=!1,"function"===typeof me&&me(t.stateNode),rt&&(rt.forEach(m),rt=null),null!==nt&&(t=nt,nt=null,k(t)),e=e.current.expirationTime,0===e&&(et=tt=null),e}function r(t){for(;;){var e=R(t.alternate,t,Q),r=t.return,n=t.sibling,i=t;if(2147483647===Q||2147483647!==i.expirationTime){if(2!==i.tag&&3!==i.tag)var o=0;else o=i.updateQueue,o=null===o?0:o.expirationTime;for(var a=i.child;null!==a;)0!==a.expirationTime&&(0===o||o>a.expirationTime)&&(o=a.expirationTime),a=a.sibling;i.expirationTime=o}if(null!==e)return e;if(null!==r&&(null===r.firstEffect&&(r.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==r.lastEffect&&(r.lastEffect.nextEffect=t.firstEffect),r.lastEffect=t.lastEffect),1<t.effectTag&&(null!==r.lastEffect?r.lastEffect.nextEffect=t:r.firstEffect=t,r.lastEffect=t)),null!==n)return n;if(null===r){t.stateNode.isReadyForCommit=!0;break}t=r}return null}function i(t){var e=I(t.alternate,t,Q);return null===e&&(e=r(t)),qn.current=null,e}function o(t){var e=P(t.alternate,t,Q);return null===e&&(e=r(t)),qn.current=null,e}function a(t){if(null!==tt){if(!(0===Q||Q>t))if(Q<=G)for(;null!==X;)X=c(X)?o(X):i(X);else for(;null!==X&&!M();)X=c(X)?o(X):i(X)}else if(!(0===Q||Q>t))if(Q<=G)for(;null!==X;)X=i(X);else for(;null!==X&&!M();)X=i(X)}function s(t,e){if(Z&&n("243"),Z=!0,t.isReadyForCommit=!1,t!==$||e!==Q||null===X){for(;-1<li;)hi[li]=null,li--;mi=Ar,di.current=Ar,pi.current=!1,C(),$=t,Q=e,X=ae($.current,null,e)}var r=!1,i=null;try{a(e)}catch(t){r=!0,i=t}for(;r;){if(it){nt=i;break}var s=X;if(null===s)it=!0;else{var c=u(s,i);if(null===c&&n("183"),!it){try{for(r=c,i=e,c=r;null!==s;){switch(s.tag){case 2:te(s);break;case 5:A(s);break;case 3:S(s);break;case 4:S(s)}if(s===c||s.alternate===c)break;s=s.return}X=o(r),a(i)}catch(t){r=!0,i=t;continue}break}}}return e=nt,it=Z=!1,nt=null,null!==e&&k(e),t.isReadyForCommit?t.current.alternate:null}function u(t,e){var r=qn.current=null,n=!1,i=!1,o=null;if(3===t.tag)r=t,f(t)&&(it=!0);else for(var a=t.return;null!==a&&null===r;){if(2===a.tag?"function"===typeof a.stateNode.componentDidCatch&&(n=!0,o=wt(a),r=a,i=!0):3===a.tag&&(r=a),f(a)){if(at||null!==rt&&(rt.has(a)||null!==a.alternate&&rt.has(a.alternate)))return null;r=null,i=!1}a=a.return}if(null!==r){null===et&&(et=new Set),et.add(r);var s="";a=t;do{t:switch(a.tag){case 0:case 1:case 2:case 5:var u=a._debugOwner,c=a._debugSource,h=wt(a),l=null;u&&(l=wt(u)),u=c,h="\n in "+(h||"Unknown")+(u?" (at "+u.fileName.replace(/^.*[\\\/]/,"")+":"+u.lineNumber+")":l?" (created by "+l+")":"");break t;default:h=""}s+=h,a=a.return}while(a);a=s,t=wt(t),null===tt&&(tt=new Map),e={componentName:t,componentStack:a,error:e,errorBoundary:n?r.stateNode:null,errorBoundaryFound:n,errorBoundaryName:o,willRetry:i},tt.set(r,e);try{var d=e.error;d&&d.suppressReactErrorLogging||console.error(d)}catch(t){t&&t.suppressReactErrorLogging||console.error(t)}return ot?(null===rt&&(rt=new Set),rt.add(r)):m(r),r}return null===nt&&(nt=e),null}function c(t){return null!==tt&&(tt.has(t)||null!==t.alternate&&tt.has(t.alternate))}function f(t){return null!==et&&(et.has(t)||null!==t.alternate&&et.has(t.alternate))}function h(){return 20*(1+((b()+100)/20|0))}function l(t){return 0!==W?W:Z?ot?1:Q:!H||1&t.internalContextTag?h():1}function d(t,e){return p(t,e,!1)}function p(t,e){for(;null!==t;){if((0===t.expirationTime||t.expirationTime>e)&&(t.expirationTime=e),null!==t.alternate&&(0===t.alternate.expirationTime||t.alternate.expirationTime>e)&&(t.alternate.expirationTime=e),null===t.return){if(3!==t.tag)break;var r=t.stateNode;!Z&&r===$&&e<Q&&(X=$=null,Q=0);var i=r,o=e;if(Mt>_t&&n("185"),null===i.nextScheduledRoot)i.remainingExpirationTime=o,null===ut?(st=ut=i,i.nextScheduledRoot=i):(ut=ut.nextScheduledRoot=i,ut.nextScheduledRoot=st);else{var a=i.remainingExpirationTime;(0===a||o<a)&&(i.remainingExpirationTime=o)}ht||(yt?gt&&(lt=i,dt=1,w(lt,dt)):1===o?_(1,null):v(o)),!Z&&r===$&&e<Q&&(X=$=null,Q=0)}t=t.return}}function m(t){p(t,1,!0)}function b(){return G=2+((U()-Y)/10|0)}function v(t){if(0!==ct){if(t>ct)return;z(ft)}var e=U()-Y;ct=t,ft=q(g,{timeout:10*(t-2)-e})}function y(){var t=0,e=null;if(null!==ut)for(var r=ut,i=st;null!==i;){var o=i.remainingExpirationTime;if(0===o){if((null===r||null===ut)&&n("244"),i===i.nextScheduledRoot){st=ut=i.nextScheduledRoot=null;break}if(i===st)st=o=i.nextScheduledRoot,ut.nextScheduledRoot=o,i.nextScheduledRoot=null;else{if(i===ut){ut=r,ut.nextScheduledRoot=st,i.nextScheduledRoot=null;break}r.nextScheduledRoot=i.nextScheduledRoot,i.nextScheduledRoot=null}i=r.nextScheduledRoot}else{if((0===t||o<t)&&(t=o,e=i),i===ut)break;r=i,i=i.nextScheduledRoot}}r=lt,null!==r&&r===e?Mt++:Mt=0,lt=e,dt=t}function g(t){_(0,t)}function _(t,e){for(vt=e,y();null!==lt&&0!==dt&&(0===t||dt<=t)&&!pt;)w(lt,dt),y();if(null!==vt&&(ct=0,ft=-1),0!==dt&&v(dt),vt=null,pt=!1,Mt=0,mt)throw t=bt,bt=null,mt=!1,t}function w(t,r){if(ht&&n("245"),ht=!0,r<=b()){var i=t.finishedWork;null!==i?(t.finishedWork=null,t.remainingExpirationTime=e(i)):(t.finishedWork=null,null!==(i=s(t,r))&&(t.remainingExpirationTime=e(i)))}else i=t.finishedWork,null!==i?(t.finishedWork=null,t.remainingExpirationTime=e(i)):(t.finishedWork=null,null!==(i=s(t,r))&&(M()?t.finishedWork=i:t.remainingExpirationTime=e(i)));ht=!1}function M(){return!(null===vt||vt.timeRemaining()>kt)&&(pt=!0)}function k(t){null===lt&&n("246"),lt.remainingExpirationTime=0,mt||(mt=!0,bt=t)}var E=Pe(t),x=Re(t),S=E.popHostContainer,A=E.popHostContext,C=E.resetHostContainer,T=Ce(t,E,x,d,l),I=T.beginWork,P=T.beginFailedWork,R=Te(t,E,x).completeWork;E=Ie(t,u);var O=E.commitResetTextContent,j=E.commitPlacement,N=E.commitDeletion,B=E.commitWork,L=E.commitLifeCycles,F=E.commitAttachRef,D=E.commitDetachRef,U=t.now,q=t.scheduleDeferredCallback,z=t.cancelDeferredCallback,H=t.useSyncScheduling,V=t.prepareForCommit,K=t.resetAfterCommit,Y=U(),G=2,W=0,Z=!1,X=null,$=null,Q=0,J=null,tt=null,et=null,rt=null,nt=null,it=!1,ot=!1,at=!1,st=null,ut=null,ct=0,ft=-1,ht=!1,lt=null,dt=0,pt=!1,mt=!1,bt=null,vt=null,yt=!1,gt=!1,_t=1e3,Mt=0,kt=1;return{computeAsyncExpiration:h,computeExpirationForFiber:l,scheduleWork:d,batchedUpdates:function(t,e){var r=yt;yt=!0;try{return t(e)}finally{(yt=r)||ht||_(1,null)}},unbatchedUpdates:function(t){if(yt&&!gt){gt=!0;try{return t()}finally{gt=!1}}return t()},flushSync:function(t){var e=yt;yt=!0;try{t:{var r=W;W=1;try{var i=t();break t}finally{W=r}i=void 0}return i}finally{yt=e,ht&&n("187"),_(1,null)}},deferredUpdates:function(t){var e=W;W=h();try{return t()}finally{W=e}}}}function je(t){function e(t){return t=St(t),null===t?null:t.stateNode}var r=t.getPublicInstance;t=Oe(t);var i=t.computeAsyncExpiration,o=t.computeExpirationForFiber,a=t.scheduleWork;return{createContainer:function(t,e){var r=new oe(3,null,0);return t={current:r,containerInfo:t,pendingChildren:null,remainingExpirationTime:0,isReadyForCommit:!1,finishedWork:null,context:null,pendingContext:null,hydrate:e,nextScheduledRoot:null},r.stateNode=t},updateContainer:function(t,e,r,s){var u=e.current;if(r){r=r._reactInternalFiber;var c;t:{for(2===Mt(r)&&2===r.tag||n("170"),c=r;3!==c.tag;){if(Jt(c)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}(c=c.return)||n("171")}c=c.stateNode.context}r=Jt(r)?re(r,c):c}else r=Ar;null===e.context?e.context=r:e.pendingContext=r,e=s,e=void 0===e?null:e,s=null!=t&&null!=t.type&&null!=t.type.prototype&&!0===t.type.prototype.unstable_isAsyncReactComponent?i():o(u),ge(u,{expirationTime:s,partialState:{element:t},callback:e,isReplace:!1,isForced:!1,nextCallback:null,next:null}),a(u,s)},batchedUpdates:t.batchedUpdates,unbatchedUpdates:t.unbatchedUpdates,deferredUpdates:t.deferredUpdates,flushSync:t.flushSync,getPublicRootInstance:function(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return r(t.child.stateNode);default:return t.child.stateNode}},findHostInstance:e,findHostInstanceWithNoPortals:function(t){return t=At(t),null===t?null:t.stateNode},injectIntoDevTools:function(t){var r=t.findFiberByHostInstance;return pe(_r({},t,{findHostInstanceByFiber:function(t){return e(t)},findFiberByHostInstance:function(t){return r?r(t):null}}))}}}function Ne(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Mi,key:null==n?null:""+n,children:t,containerInfo:e,implementation:r}}function Be(t){return!!Wi.hasOwnProperty(t)||!Gi.hasOwnProperty(t)&&(Yi.test(t)?Wi[t]=!0:(Gi[t]=!0,!1))}function Le(t,e,r){var n=a(e);if(n&&o(e,r)){var i=n.mutationMethod;i?i(t,r):null==r||n.hasBooleanValue&&!r||n.hasNumericValue&&isNaN(r)||n.hasPositiveNumericValue&&1>r||n.hasOverloadedBooleanValue&&!1===r?De(t,e):n.mustUseProperty?t[n.propertyName]=r:(e=n.attributeName,(i=n.attributeNamespace)?t.setAttributeNS(i,e,""+r):n.hasBooleanValue||n.hasOverloadedBooleanValue&&!0===r?t.setAttribute(e,""):t.setAttribute(e,""+r))}else Fe(t,e,o(e,r)?r:null)}function Fe(t,e,r){Be(e)&&(null==r?t.removeAttribute(e):t.setAttribute(e,""+r))}function De(t,e){var r=a(e);r?(e=r.mutationMethod)?e(t,void 0):r.mustUseProperty?t[r.propertyName]=!r.hasBooleanValue&&"":t.removeAttribute(r.attributeName):t.removeAttribute(e)}function Ue(t,e){var r=e.value,n=e.checked;return _r({type:void 0,step:void 0,min:void 0,max:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=r?r:t._wrapperState.initialValue,checked:null!=n?n:t._wrapperState.initialChecked})}function qe(t,e){var r=e.defaultValue;t._wrapperState={initialChecked:null!=e.checked?e.checked:e.defaultChecked,initialValue:null!=e.value?e.value:r,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function ze(t,e){null!=(e=e.checked)&&Le(t,"checked",e)}function He(t,e){ze(t,e);var r=e.value;null!=r?0===r&&""===t.value?t.value="0":"number"===e.type?(e=parseFloat(t.value)||0,(r!=e||r==e&&t.value!=r)&&(t.value=""+r)):t.value!==""+r&&(t.value=""+r):(null==e.value&&null!=e.defaultValue&&t.defaultValue!==""+e.defaultValue&&(t.defaultValue=""+e.defaultValue),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked))}function Ve(t,e){switch(e.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":t.value="",t.value=t.defaultValue;break;default:t.value=t.value}e=t.name,""!==e&&(t.name=""),t.defaultChecked=!t.defaultChecked,t.defaultChecked=!t.defaultChecked,""!==e&&(t.name=e)}function Ke(t){var e="";return yr.Children.forEach(t,function(t){null==t||"string"!==typeof t&&"number"!==typeof t||(e+=t)}),e}function Ye(t,e){return t=_r({children:void 0},e),(e=Ke(e.children))&&(t.children=e),t}function Ge(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i<r.length;i++)e["$"+r[i]]=!0;for(r=0;r<t.length;r++)i=e.hasOwnProperty("$"+t[r].value),t[r].selected!==i&&(t[r].selected=i),i&&n&&(t[r].defaultSelected=!0)}else{for(r=""+r,e=null,i=0;i<t.length;i++){if(t[i].value===r)return t[i].selected=!0,void(n&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function We(t,e){var r=e.value;t._wrapperState={initialValue:null!=r?r:e.defaultValue,wasMultiple:!!e.multiple}}function Ze(t,e){return null!=e.dangerouslySetInnerHTML&&n("91"),_r({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Xe(t,e){var r=e.value;null==r&&(r=e.defaultValue,e=e.children,null!=e&&(null!=r&&n("92"),Array.isArray(e)&&(1>=e.length||n("93"),e=e[0]),r=""+e),null==r&&(r="")),t._wrapperState={initialValue:""+r}}function $e(t,e){var r=e.value;null!=r&&(r=""+r,r!==t.value&&(t.value=r),null==e.defaultValue&&(t.defaultValue=r)),null!=e.defaultValue&&(t.defaultValue=e.defaultValue)}function Qe(t){var e=t.textContent;e===t._wrapperState.initialValue&&(t.value=e)}function Je(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function tr(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?Je(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}function er(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&3===r.nodeType)return void(r.nodeValue=e)}t.textContent=e}function rr(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=r,o=e[r];i=null==o||"boolean"===typeof o||""===o?"":n||"number"!==typeof o||0===o||Qi.hasOwnProperty(i)&&Qi[i]?(""+o).trim():o+"px","float"===r&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}function nr(t,e,r){e&&(to[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&n("137",t,r()),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&n("60"),"object"===typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML||n("61")),null!=e.style&&"object"!==typeof e.style&&n("62",r()))}function ir(t,e){if(-1===t.indexOf("-"))return"string"===typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function or(t,e){t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument;var r=Nt(t);e=Zr[e];for(var n=0;n<e.length;n++){var i=e[n];r.hasOwnProperty(i)&&r[i]||("topScroll"===i?Pt("topScroll","scroll",t):"topFocus"===i||"topBlur"===i?(Pt("topFocus","focus",t),Pt("topBlur","blur",t),r.topBlur=!0,r.topFocus=!0):"topCancel"===i?(rt("cancel",!0)&&Pt("topCancel","cancel",t),r.topCancel=!0):"topClose"===i?(rt("close",!0)&&Pt("topClose","close",t),r.topClose=!0):Zn.hasOwnProperty(i)&&It(i,Zn[i],t),r[i]=!0)}}function ar(t,e,r,n){return r=9===r.nodeType?r:r.ownerDocument,n===eo&&(n=Je(t)),n===eo?"script"===t?(t=r.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):t="string"===typeof e.is?r.createElement(t,{is:e.is}):r.createElement(t):t=r.createElementNS(n,t),t}function sr(t,e){return(9===e.nodeType?e:e.ownerDocument).createTextNode(t)}function ur(t,e,r,n){var i=ir(e,r);switch(e){case"iframe":case"object":It("topLoad","load",t);var o=r;break;case"video":case"audio":for(o in no)no.hasOwnProperty(o)&&It(o,no[o],t);o=r;break;case"source":It("topError","error",t),o=r;break;case"img":case"image":It("topError","error",t),It("topLoad","load",t),o=r;break;case"form":It("topReset","reset",t),It("topSubmit","submit",t),o=r;break;case"details":It("topToggle","toggle",t),o=r;break;case"input":qe(t,r),o=Ue(t,r),It("topInvalid","invalid",t),or(n,"onChange");break;case"option":o=Ye(t,r);break;case"select":We(t,r),o=_r({},r,{value:void 0}),It("topInvalid","invalid",t),or(n,"onChange");break;case"textarea":Xe(t,r),o=Ze(t,r),It("topInvalid","invalid",t),or(n,"onChange");break;default:o=r}nr(e,o,ro);var a,s=o;for(a in s)if(s.hasOwnProperty(a)){var u=s[a];"style"===a?rr(t,u,ro):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&$i(t,u):"children"===a?"string"===typeof u?("textarea"!==e||""!==u)&&er(t,u):"number"===typeof u&&er(t,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Wr.hasOwnProperty(a)?null!=u&&or(n,a):i?Fe(t,a,u):null!=u&&Le(t,a,u))}switch(e){case"input":ot(t),Ve(t,r);break;case"textarea":ot(t),Qe(t,r);break;case"option":null!=r.value&&t.setAttribute("value",r.value);break;case"select":t.multiple=!!r.multiple,e=r.value,null!=e?Ge(t,!!r.multiple,e,!1):null!=r.defaultValue&&Ge(t,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(t.onclick=wr)}}function cr(t,e,r,n,i){var o=null;switch(e){case"input":r=Ue(t,r),n=Ue(t,n),o=[];break;case"option":r=Ye(t,r),n=Ye(t,n),o=[];break;case"select":r=_r({},r,{value:void 0}),n=_r({},n,{value:void 0}),o=[];break;case"textarea":r=Ze(t,r),n=Ze(t,n),o=[];break;default:"function"!==typeof r.onClick&&"function"===typeof n.onClick&&(t.onclick=wr)}nr(e,n,ro);var a,s;t=null;for(a in r)if(!n.hasOwnProperty(a)&&r.hasOwnProperty(a)&&null!=r[a])if("style"===a)for(s in e=r[a])e.hasOwnProperty(s)&&(t||(t={}),t[s]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Wr.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in n){var u=n[a];if(e=null!=r?r[a]:void 0,n.hasOwnProperty(a)&&u!==e&&(null!=u||null!=e))if("style"===a)if(e){for(s in e)!e.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(t||(t={}),t[s]="");for(s in u)u.hasOwnProperty(s)&&e[s]!==u[s]&&(t||(t={}),t[s]=u[s])}else t||(o||(o=[]),o.push(a,t)),t=u;else"dangerouslySetInnerHTML"===a?(u=u?u.__html:void 0,e=e?e.__html:void 0,null!=u&&e!==u&&(o=o||[]).push(a,""+u)):"children"===a?e===u||"string"!==typeof u&&"number"!==typeof u||(o=o||[]).push(a,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&(Wr.hasOwnProperty(a)?(null!=u&&or(i,a),o||e===u||(o=[])):(o=o||[]).push(a,u))}return t&&(o=o||[]).push("style",t),o}function fr(t,e,r,n,i){"input"===r&&"radio"===i.type&&null!=i.name&&ze(t,i),ir(r,n),n=ir(r,i);for(var o=0;o<e.length;o+=2){var a=e[o],s=e[o+1];"style"===a?rr(t,s,ro):"dangerouslySetInnerHTML"===a?$i(t,s):"children"===a?er(t,s):n?null!=s?Fe(t,a,s):t.removeAttribute(a):null!=s?Le(t,a,s):De(t,a)}switch(r){case"input":He(t,i);break;case"textarea":$e(t,i);break;case"select":t._wrapperState.initialValue=void 0,e=t._wrapperState.wasMultiple,t._wrapperState.wasMultiple=!!i.multiple,r=i.value,null!=r?Ge(t,!!i.multiple,r,!1):e!==!!i.multiple&&(null!=i.defaultValue?Ge(t,!!i.multiple,i.defaultValue,!0):Ge(t,!!i.multiple,i.multiple?[]:"",!1))}}function hr(t,e,r,n,i){switch(e){case"iframe":case"object":It("topLoad","load",t);break;case"video":case"audio":for(var o in no)no.hasOwnProperty(o)&&It(o,no[o],t);break;case"source":It("topError","error",t);break;case"img":case"image":It("topError","error",t),It("topLoad","load",t);break;case"form":It("topReset","reset",t),It("topSubmit","submit",t);break;case"details":It("topToggle","toggle",t);break;case"input":qe(t,r),It("topInvalid","invalid",t),or(i,"onChange");break;case"select":We(t,r),It("topInvalid","invalid",t),or(i,"onChange");break;case"textarea":Xe(t,r),It("topInvalid","invalid",t),or(i,"onChange")}nr(e,r,ro),n=null;for(var a in r)r.hasOwnProperty(a)&&(o=r[a],"children"===a?"string"===typeof o?t.textContent!==o&&(n=["children",o]):"number"===typeof o&&t.textContent!==""+o&&(n=["children",""+o]):Wr.hasOwnProperty(a)&&null!=o&&or(i,a));switch(e){case"input":ot(t),Ve(t,r);break;case"textarea":ot(t),Qe(t,r);break;case"select":case"option":break;default:"function"===typeof r.onClick&&(t.onclick=wr)}return n}function lr(t,e){return t.nodeValue!==e}function dr(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function pr(t){return!(!(t=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))}function mr(t,e,r,i,o){dr(r)||n("200");var a=r._reactRootContainer;if(a)so.updateContainer(e,a,t,o);else{if(!(i=i||pr(r)))for(a=void 0;a=r.lastChild;)r.removeChild(a);var s=so.createContainer(r,i);a=r._reactRootContainer=s,so.unbatchedUpdates(function(){so.updateContainer(e,s,t,o)})}return so.getPublicRootInstance(a)}function br(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return dr(e)||n("200"),Ne(t,e,null,r)}function vr(t,e){this._reactRootContainer=so.createContainer(t,e)}var yr=r(38),gr=r(140),_r=r(48),wr=r(49),Mr=r(141),kr=r(142),Er=r(143),xr=r(144),Sr=r(147),Ar=r(64);yr||n("227");var Cr={children:!0,dangerouslySetInnerHTML:!0,defaultValue:!0,defaultChecked:!0,innerHTML:!0,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,style:!0},Tr={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,HAS_STRING_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(t){var e=Tr,r=t.Properties||{},o=t.DOMAttributeNamespaces||{},a=t.DOMAttributeNames||{};t=t.DOMMutationMethods||{};for(var s in r){Ir.hasOwnProperty(s)&&n("48",s);var u=s.toLowerCase(),c=r[s];u={attributeName:u,attributeNamespace:null,propertyName:s,mutationMethod:null,mustUseProperty:i(c,e.MUST_USE_PROPERTY),hasBooleanValue:i(c,e.HAS_BOOLEAN_VALUE),hasNumericValue:i(c,e.HAS_NUMERIC_VALUE),hasPositiveNumericValue:i(c,e.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:i(c,e.HAS_OVERLOADED_BOOLEAN_VALUE),hasStringBooleanValue:i(c,e.HAS_STRING_BOOLEAN_VALUE)},1>=u.hasBooleanValue+u.hasNumericValue+u.hasOverloadedBooleanValue||n("50",s),a.hasOwnProperty(s)&&(u.attributeName=a[s]),o.hasOwnProperty(s)&&(u.attributeNamespace=o[s]),t.hasOwnProperty(s)&&(u.mutationMethod=t[s]),Ir[s]=u}}},Ir={},Pr=Tr,Rr=Pr.MUST_USE_PROPERTY,Or=Pr.HAS_BOOLEAN_VALUE,jr=Pr.HAS_NUMERIC_VALUE,Nr=Pr.HAS_POSITIVE_NUMERIC_VALUE,Br=Pr.HAS_OVERLOADED_BOOLEAN_VALUE,Lr=Pr.HAS_STRING_BOOLEAN_VALUE,Fr={Properties:{allowFullScreen:Or,async:Or,autoFocus:Or,autoPlay:Or,capture:Br,checked:Rr|Or,cols:Nr,contentEditable:Lr,controls:Or,default:Or,defer:Or,disabled:Or,download:Br,draggable:Lr,formNoValidate:Or,hidden:Or,loop:Or,multiple:Rr|Or,muted:Rr|Or,noValidate:Or,open:Or,playsInline:Or,readOnly:Or,required:Or,reversed:Or,rows:Nr,rowSpan:jr,scoped:Or,seamless:Or,selected:Rr|Or,size:Nr,start:jr,span:Nr,spellCheck:Lr,style:0,tabIndex:0,itemScope:Or,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:Lr},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(t,e){if(null==e)return t.removeAttribute("value");"number"!==t.type||!1===t.hasAttribute("value")?t.setAttribute("value",""+e):t.validity&&!t.validity.badInput&&t.ownerDocument.activeElement!==t&&t.setAttribute("value",""+e)}}},Dr=Pr.HAS_STRING_BOOLEAN_VALUE,Ur={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},qr={Properties:{autoReverse:Dr,externalResourcesRequired:Dr,preserveAlpha:Dr},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:Ur.xlink,xlinkArcrole:Ur.xlink,xlinkHref:Ur.xlink,xlinkRole:Ur.xlink,xlinkShow:Ur.xlink,xlinkTitle:Ur.xlink,xlinkType:Ur.xlink,xmlBase:Ur.xml,xmlLang:Ur.xml,xmlSpace:Ur.xml}},zr=/[\-\:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(t){var e=t.replace(zr,s);qr.Properties[e]=0,qr.DOMAttributeNames[e]=t}),Pr.injectDOMPropertyConfig(Fr),Pr.injectDOMPropertyConfig(qr);var Hr={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(t){"function"!==typeof t.invokeGuardedCallback&&n("197"),u=t.invokeGuardedCallback}},invokeGuardedCallback:function(t,e,r,n,i,o,a,s,c){u.apply(Hr,arguments)},invokeGuardedCallbackAndCatchFirstError:function(t,e,r,n,i,o,a,s,u){if(Hr.invokeGuardedCallback.apply(this,arguments),Hr.hasCaughtError()){var c=Hr.clearCaughtError();Hr._hasRethrowError||(Hr._hasRethrowError=!0,Hr._rethrowError=c)}},rethrowCaughtError:function(){return c.apply(Hr,arguments)},hasCaughtError:function(){return Hr._hasCaughtError},clearCaughtError:function(){if(Hr._hasCaughtError){var t=Hr._caughtError;return Hr._caughtError=null,Hr._hasCaughtError=!1,t}n("198")}},Vr=null,Kr={},Yr=[],Gr={},Wr={},Zr={},Xr=Object.freeze({plugins:Yr,eventNameDispatchConfigs:Gr,registrationNameModules:Wr,registrationNameDependencies:Zr,possibleRegistrationNames:null,injectEventPluginOrder:l,injectEventPluginsByName:d}),$r=null,Qr=null,Jr=null,tn=null,en={injectEventPluginOrder:l,injectEventPluginsByName:d},rn=Object.freeze({injection:en,getListener:_,extractEvents:w,enqueueEvents:M,processEventQueue:k}),nn=Math.random().toString(36).slice(2),on="__reactInternalInstance$"+nn,an="__reactEventHandlers$"+nn,sn=Object.freeze({precacheFiberNode:function(t,e){e[on]=t},getClosestInstanceFromNode:E,getInstanceFromNode:function(t){return t=t[on],!t||5!==t.tag&&6!==t.tag?null:t},getNodeFromInstance:x,getFiberCurrentPropsFromNode:S,updateFiberProps:function(t,e){t[an]=e}}),un=Object.freeze({accumulateTwoPhaseDispatches:j,accumulateTwoPhaseDispatchesSkipTarget:function(t){b(t,P)},accumulateEnterLeaveDispatches:N,accumulateDirectDispatches:function(t){b(t,O)}}),cn=null,fn={_root:null,_startText:null,_fallbackText:null},hn="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),ln={type:null,target:null,currentTarget:wr.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};_r(D.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!==typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=wr.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!==typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=wr.thatReturnsTrue)},persist:function(){this.isPersistent=wr.thatReturnsTrue},isPersistent:wr.thatReturnsFalse,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;for(e=0;e<hn.length;e++)this[hn[e]]=null}}),D.Interface=ln,D.augmentClass=function(t,e){function r(){}r.prototype=this.prototype;var n=new r;_r(n,t.prototype),t.prototype=n,t.prototype.constructor=t,t.Interface=_r({},this.Interface,e),t.augmentClass=this.augmentClass,z(t)},z(D),D.augmentClass(H,{data:null}),D.augmentClass(V,{data:null});var dn=[9,13,27,32],pn=gr.canUseDOM&&"CompositionEvent"in window,mn=null;gr.canUseDOM&&"documentMode"in document&&(mn=document.documentMode);var bn;if(bn=gr.canUseDOM&&"TextEvent"in window&&!mn){var vn=window.opera;bn=!("object"===typeof vn&&"function"===typeof vn.version&&12>=parseInt(vn.version(),10))}var yn,gn=bn,_n=gr.canUseDOM&&(!pn||mn&&8<mn&&11>=mn),wn=String.fromCharCode(32),Mn={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},kn=!1,En=!1,xn={eventTypes:Mn,extractEvents:function(t,e,r,n){var i;if(pn)t:{switch(t){case"topCompositionStart":var o=Mn.compositionStart;break t;case"topCompositionEnd":o=Mn.compositionEnd;break t;case"topCompositionUpdate":o=Mn.compositionUpdate;break t}o=void 0}else En?K(t,r)&&(o=Mn.compositionEnd):"topKeyDown"===t&&229===r.keyCode&&(o=Mn.compositionStart);return o?(_n&&(En||o!==Mn.compositionStart?o===Mn.compositionEnd&&En&&(i=L()):(fn._root=n,fn._startText=F(),En=!0)),o=H.getPooled(o,e,r,n),i?o.data=i:null!==(i=Y(r))&&(o.data=i),j(o),i=o):i=null,(t=gn?G(t,r):W(t,r))?(e=V.getPooled(Mn.beforeInput,e,r,n),e.data=t,j(e)):e=null,[i,e]}},Sn=null,An=null,Cn=null,Tn={injectFiberControlledHostComponent:function(t){Sn=t}},In=Object.freeze({injection:Tn,enqueueStateRestore:X,restoreStateIfNeeded:$}),Pn=!1,Rn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};gr.canUseDOM&&(yn=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var On={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},jn=null,Nn=null,Bn=!1;gr.canUseDOM&&(Bn=rt("input")&&(!document.documentMode||9<document.documentMode));var Ln={eventTypes:On,_isInputEventSupported:Bn,extractEvents:function(t,e,r,n){var i=e?x(e):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=ft;else if(tt(i))if(Bn)a=bt;else{a=pt;var s=dt}else!(o=i.nodeName)||"input"!==o.toLowerCase()||"checkbox"!==i.type&&"radio"!==i.type||(a=mt);if(a&&(a=a(t,e)))return st(a,r,n);s&&s(t,i,e),"topBlur"===t&&null!=e&&(t=e._wrapperState||i._wrapperState)&&t.controlled&&"number"===i.type&&(t=""+i.value,i.getAttribute("value")!==t&&i.setAttribute("value",t))}};D.augmentClass(vt,{view:null,detail:null});var Fn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};vt.augmentClass(_t,{screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:gt,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)}});var Dn={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},Un={eventTypes:Dn,extractEvents:function(t,e,r,n){if("topMouseOver"===t&&(r.relatedTarget||r.fromElement)||"topMouseOut"!==t&&"topMouseOver"!==t)return null;var i=n.window===n?n:(i=n.ownerDocument)?i.defaultView||i.parentWindow:window;if("topMouseOut"===t?(t=e,e=(e=r.relatedTarget||r.toElement)?E(e):null):t=null,t===e)return null;var o=null==t?i:x(t);i=null==e?i:x(e);var a=_t.getPooled(Dn.mouseLeave,t,r,n);return a.type="mouseleave",a.target=o,a.relatedTarget=i,r=_t.getPooled(Dn.mouseEnter,e,r,n),r.type="mouseenter",r.target=i,r.relatedTarget=o,N(a,r,t,e),[a,r]}},qn=yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,zn=[],Hn=!0,Vn=void 0,Kn=Object.freeze({get _enabled(){return Hn},get _handleTopLevel(){return Vn},setHandleTopLevel:function(t){Vn=t},setEnabled:Tt,isEnabled:function(){return Hn},trapBubbledEvent:It,trapCapturedEvent:Pt,dispatchEvent:Rt}),Yn={animationend:Ot("Animation","AnimationEnd"),animationiteration:Ot("Animation","AnimationIteration"),animationstart:Ot("Animation","AnimationStart"),transitionend:Ot("Transition","TransitionEnd")},Gn={},Wn={};gr.canUseDOM&&(Wn=document.createElement("div").style,"AnimationEvent"in window||(delete Yn.animationend.animation,delete Yn.animationiteration.animation,delete Yn.animationstart.animation),"TransitionEvent"in window||delete Yn.transitionend.transition);var Zn={topAbort:"abort",topAnimationEnd:jt("animationend")||"animationend",topAnimationIteration:jt("animationiteration")||"animationiteration",topAnimationStart:jt("animationstart")||"animationstart",topBlur:"blur",topCancel:"cancel",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topClose:"close",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoad:"load",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topToggle:"toggle",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:jt("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},Xn={},$n=0,Qn="_reactListenersID"+(""+Math.random()).slice(2),Jn=gr.canUseDOM&&"documentMode"in document&&11>=document.documentMode,ti={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},ei=null,ri=null,ni=null,ii=!1,oi={eventTypes:ti,extractEvents:function(t,e,r,n){var i,o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;if(!(i=!o)){t:{o=Nt(o),i=Zr.onSelect;for(var a=0;a<i.length;a++){var s=i[a];if(!o.hasOwnProperty(s)||!o[s]){o=!1;break t}}o=!0}i=!o}if(i)return null;switch(o=e?x(e):window,t){case"topFocus":(tt(o)||"true"===o.contentEditable)&&(ei=o,ri=e,ni=null);break;case"topBlur":ni=ri=ei=null;break;case"topMouseDown":ii=!0;break;case"topContextMenu":case"topMouseUp":return ii=!1,Dt(r,n);case"topSelectionChange":if(Jn)break;case"topKeyDown":case"topKeyUp":return Dt(r,n)}return null}};D.augmentClass(Ut,{animationName:null,elapsedTime:null,pseudoElement:null}),D.augmentClass(qt,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),vt.augmentClass(zt,{relatedTarget:null});var ai={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},si={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};vt.augmentClass(Vt,{key:function(t){if(t.key){var e=ai[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?(t=Ht(t),13===t?"Enter":String.fromCharCode(t)):"keydown"===t.type||"keyup"===t.type?si[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:gt,charCode:function(t){return"keypress"===t.type?Ht(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?Ht(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),_t.augmentClass(Kt,{dataTransfer:null}),vt.augmentClass(Yt,{touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:gt}),D.augmentClass(Gt,{propertyName:null,elapsedTime:null,pseudoElement:null}),_t.augmentClass(Wt,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null});var ui={},ci={};"abort animationEnd animationIteration animationStart blur cancel canPlay canPlayThrough click close contextMenu copy cut doubleClick drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error focus input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing progress rateChange reset scroll seeked seeking stalled submit suspend timeUpdate toggle touchCancel touchEnd touchMove touchStart transitionEnd volumeChange waiting wheel".split(" ").forEach(function(t){var e=t[0].toUpperCase()+t.slice(1),r="on"+e;e="top"+e,r={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[e]},ui[t]=r,ci[e]=r});var fi={eventTypes:ui,extractEvents:function(t,e,r,n){var i=ci[t];if(!i)return null;switch(t){case"topKeyPress":if(0===Ht(r))return null;case"topKeyDown":case"topKeyUp":t=Vt;break;case"topBlur":case"topFocus":t=zt;break;case"topClick":if(2===r.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":t=_t;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":t=Kt;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":t=Yt;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":t=Ut;break;case"topTransitionEnd":t=Gt;break;case"topScroll":t=vt;break;case"topWheel":t=Wt;break;case"topCopy":case"topCut":case"topPaste":t=qt;break;default:t=D}return e=t.getPooled(i,e,r,n),j(e),e}};Vn=function(t,e,r,n){t=w(t,e,r,n),M(t),k(!1)},en.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),$r=sn.getFiberCurrentPropsFromNode,Qr=sn.getInstanceFromNode,Jr=sn.getNodeFromInstance,en.injectEventPluginsByName({SimpleEventPlugin:fi,EnterLeaveEventPlugin:Un,ChangeEventPlugin:Ln,SelectEventPlugin:oi,BeforeInputEventPlugin:xn});var hi=[],li=-1;new Set;var di={current:Ar},pi={current:!1},mi=Ar,bi=null,vi=null,yi="function"===typeof Symbol&&Symbol.for,gi=yi?Symbol.for("react.element"):60103,_i=yi?Symbol.for("react.call"):60104,wi=yi?Symbol.for("react.return"):60105,Mi=yi?Symbol.for("react.portal"):60106,ki=yi?Symbol.for("react.fragment"):60107,Ei="function"===typeof Symbol&&Symbol.iterator,xi=Array.isArray,Si=Ae(!0),Ai=Ae(!1),Ci={},Ti=Object.freeze({default:je}),Ii=Ti&&je||Ti,Pi=Ii.default?Ii.default:Ii,Ri="object"===typeof performance&&"function"===typeof performance.now,Oi=void 0;Oi=Ri?function(){return performance.now()}:function(){return Date.now()};var ji=void 0,Ni=void 0;if(gr.canUseDOM)if("function"!==typeof requestIdleCallback||"function"!==typeof cancelIdleCallback){var Bi,Li=null,Fi=!1,Di=-1,Ui=!1,qi=0,zi=33,Hi=33;Bi=Ri?{didTimeout:!1,timeRemaining:function(){var t=qi-performance.now();return 0<t?t:0}}:{didTimeout:!1,timeRemaining:function(){var t=qi-Date.now();return 0<t?t:0}};var Vi="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(t){if(t.source===window&&t.data===Vi){if(Fi=!1,t=Oi(),0>=qi-t){if(!(-1!==Di&&Di<=t))return void(Ui||(Ui=!0,requestAnimationFrame(Ki)));Bi.didTimeout=!0}else Bi.didTimeout=!1;Di=-1,t=Li,Li=null,null!==t&&t(Bi)}},!1);var Ki=function(t){Ui=!1;var e=t-qi+Hi;e<Hi&&zi<Hi?(8>e&&(e=8),Hi=e<zi?zi:e):zi=e,qi=t+Hi,Fi||(Fi=!0,window.postMessage(Vi,"*"))};ji=function(t,e){return Li=t,null!=e&&"number"===typeof e.timeout&&(Di=Oi()+e.timeout),Ui||(Ui=!0,requestAnimationFrame(Ki)),0},Ni=function(){Li=null,Fi=!1,Di=-1}}else ji=window.requestIdleCallback,Ni=window.cancelIdleCallback;else ji=function(t){return setTimeout(function(){t({timeRemaining:function(){return 1/0}})})},Ni=function(t){clearTimeout(t)};var Yi=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Gi={},Wi={},Zi={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},Xi=void 0,$i=function(t){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,r,n,i){MSApp.execUnsafeLocalFunction(function(){return t(e,r)})}:t}(function(t,e){if(t.namespaceURI!==Zi.svg||"innerHTML"in t)t.innerHTML=e;else{for(Xi=Xi||document.createElement("div"),Xi.innerHTML="<svg>"+e+"</svg>",e=Xi.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}),Qi={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ji=["Webkit","ms","Moz","O"];Object.keys(Qi).forEach(function(t){Ji.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Qi[e]=Qi[t]})});var to=_r({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),eo=Zi.html,ro=wr.thatReturns(""),no={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},io=Object.freeze({createElement:ar,createTextNode:sr,setInitialProperties:ur,diffProperties:cr,updateProperties:fr,diffHydratedProperties:hr,diffHydratedText:lr,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(t,e,r){switch(e){case"input":if(He(t,r),e=r.name,"radio"===r.type&&null!=e){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var i=r[e];if(i!==t&&i.form===t.form){var o=S(i);o||n("90"),at(i),He(i,o)}}}break;case"textarea":$e(t,r);break;case"select":null!=(e=r.value)&&Ge(t,!!r.multiple,e,!1)}}});Tn.injectFiberControlledHostComponent(io);var oo=null,ao=null,so=Pi({getRootHostContext:function(t){var e=t.nodeType;switch(e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tr(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=tr(t,e)}return t},getChildHostContext:function(t,e){return tr(t,e)},getPublicInstance:function(t){return t},prepareForCommit:function(){oo=Hn;var t=kr();if(Ft(t)){if("selectionStart"in t)var e={start:t.selectionStart,end:t.selectionEnd};else t:{var r=window.getSelection&&window.getSelection();if(r&&0!==r.rangeCount){e=r.anchorNode;var n=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{e.nodeType,i.nodeType}catch(t){e=null;break t}var o=0,a=-1,s=-1,u=0,c=0,f=t,h=null;e:for(;;){for(var l;f!==e||0!==n&&3!==f.nodeType||(a=o+n),f!==i||0!==r&&3!==f.nodeType||(s=o+r),3===f.nodeType&&(o+=f.nodeValue.length),null!==(l=f.firstChild);)h=f,f=l;for(;;){if(f===t)break e;if(h===e&&++u===n&&(a=o),h===i&&++c===r&&(s=o),null!==(l=f.nextSibling))break;f=h,h=f.parentNode}f=l}e=-1===a||-1===s?null:{start:a,end:s}}else e=null}e=e||{start:0,end:0}}else e=null;ao={focusedElem:t,selectionRange:e},Tt(!1)},resetAfterCommit:function(){var t=ao,e=kr(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&xr(document.documentElement,r)){if(Ft(r))if(e=n.start,t=n.end,void 0===t&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(window.getSelection){e=window.getSelection();var i=r[B()].length;t=Math.min(n.start,i),n=void 0===n.end?t:Math.min(n.end,i),!e.extend&&t>n&&(i=n,n=t,t=i),i=Lt(r,t);var o=Lt(r,n);if(i&&o&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)){var a=document.createRange();a.setStart(i.node,i.offset),e.removeAllRanges(),t>n?(e.addRange(a),e.extend(o.node,o.offset)):(a.setEnd(o.node,o.offset),e.addRange(a))}}for(e=[],t=r;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(Sr(r),r=0;r<e.length;r++)t=e[r],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}ao=null,Tt(oo),oo=null},createInstance:function(t,e,r,n,i){return t=ar(t,e,r,n),t[on]=i,t[an]=e,t},appendInitialChild:function(t,e){t.appendChild(e)},finalizeInitialChildren:function(t,e,r,n){ur(t,e,r,n);t:{switch(e){case"button":case"input":case"select":case"textarea":t=!!r.autoFocus;break t}t=!1}return t},prepareUpdate:function(t,e,r,n,i){return cr(t,e,r,n,i)},shouldSetTextContent:function(t,e){return"textarea"===t||"string"===typeof e.children||"number"===typeof e.children||"object"===typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&"string"===typeof e.dangerouslySetInnerHTML.__html},shouldDeprioritizeSubtree:function(t,e){return!!e.hidden},createTextInstance:function(t,e,r,n){return t=sr(t,e),t[on]=n,t},now:Oi,mutation:{commitMount:function(t){t.focus()},commitUpdate:function(t,e,r,n,i){t[an]=i,fr(t,e,r,n,i)},resetTextContent:function(t){t.textContent=""},commitTextUpdate:function(t,e,r){t.nodeValue=r},appendChild:function(t,e){t.appendChild(e)},appendChildToContainer:function(t,e){8===t.nodeType?t.parentNode.insertBefore(e,t):t.appendChild(e)},insertBefore:function(t,e,r){t.insertBefore(e,r)},insertInContainerBefore:function(t,e,r){8===t.nodeType?t.parentNode.insertBefore(e,r):t.insertBefore(e,r)},removeChild:function(t,e){t.removeChild(e)},removeChildFromContainer:function(t,e){8===t.nodeType?t.parentNode.removeChild(e):t.removeChild(e)}},hydration:{canHydrateInstance:function(t,e){return 1!==t.nodeType||e.toLowerCase()!==t.nodeName.toLowerCase()?null:t},canHydrateTextInstance:function(t,e){return""===e||3!==t.nodeType?null:t},getNextHydratableSibling:function(t){for(t=t.nextSibling;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t},getFirstHydratableChild:function(t){for(t=t.firstChild;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t},hydrateInstance:function(t,e,r,n,i,o){return t[on]=o,t[an]=r,hr(t,e,r,i,n)},hydrateTextInstance:function(t,e,r){return t[on]=r,lr(t,e)},didNotMatchHydratedContainerTextInstance:function(){},didNotMatchHydratedTextInstance:function(){},didNotHydrateContainerInstance:function(){},didNotHydrateInstance:function(){},didNotFindHydratableContainerInstance:function(){},didNotFindHydratableContainerTextInstance:function(){},didNotFindHydratableInstance:function(){},didNotFindHydratableTextInstance:function(){}},scheduleDeferredCallback:ji,cancelDeferredCallback:Ni,useSyncScheduling:!0});Q=so.batchedUpdates,vr.prototype.render=function(t,e){so.updateContainer(t,this._reactRootContainer,null,e)},vr.prototype.unmount=function(t){so.updateContainer(null,this._reactRootContainer,null,t)};var uo={createPortal:br,findDOMNode:function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;if(e)return so.findHostInstance(e);"function"===typeof t.render?n("188"):n("213",Object.keys(t))},hydrate:function(t,e,r){return mr(null,t,e,!0,r)},render:function(t,e,r){return mr(null,t,e,!1,r)},unstable_renderSubtreeIntoContainer:function(t,e,r,i){return(null==t||void 0===t._reactInternalFiber)&&n("38"),mr(t,e,r,!1,i)},unmountComponentAtNode:function(t){return dr(t)||n("40"),!!t._reactRootContainer&&(so.unbatchedUpdates(function(){mr(null,null,t,!1,function(){t._reactRootContainer=null})}),!0)},unstable_createPortal:br,unstable_batchedUpdates:J,unstable_deferredUpdates:so.deferredUpdates,flushSync:so.flushSync,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:rn,EventPluginRegistry:Xr,EventPropagators:un,ReactControlledComponent:In,ReactDOMComponentTree:sn,ReactDOMEventListener:Kn}};so.injectIntoDevTools({findFiberByHostInstance:E,bundleType:0,version:"16.2.0",rendererPackageName:"react-dom"});var co=Object.freeze({default:uo}),fo=co&&uo||co;t.exports=fo.default?fo.default:fo},function(t,e,r){"use strict";var n=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:n,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};t.exports=i},function(t,e,r){"use strict";var n=r(49),i={listen:function(t,e,r){return t.addEventListener?(t.addEventListener(e,r,!1),{remove:function(){t.removeEventListener(e,r,!1)}}):t.attachEvent?(t.attachEvent("on"+e,r),{remove:function(){t.detachEvent("on"+e,r)}}):void 0},capture:function(t,e,r){return t.addEventListener?(t.addEventListener(e,r,!0),{remove:function(){t.removeEventListener(e,r,!0)}}):{remove:n}},registerDefault:function(){}};t.exports=i},function(t,e,r){"use strict";function n(t){if("undefined"===typeof(t=t||("undefined"!==typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}t.exports=n},function(t,e,r){"use strict";function n(t,e){return t===e?0!==t||0!==e||1/t===1/e:t!==t&&e!==e}function i(t,e){if(n(t,e))return!0;if("object"!==typeof t||null===t||"object"!==typeof e||null===e)return!1;var r=Object.keys(t),i=Object.keys(e);if(r.length!==i.length)return!1;for(var a=0;a<r.length;a++)if(!o.call(e,r[a])||!n(t[r[a]],e[r[a]]))return!1;return!0}var o=Object.prototype.hasOwnProperty;t.exports=i},function(t,e,r){"use strict";function n(t,e){return!(!t||!e)&&(t===e||!i(t)&&(i(e)?n(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var i=r(145);t.exports=n},function(t,e,r){"use strict";function n(t){return i(t)&&3==t.nodeType}var i=r(146);t.exports=n},function(t,e,r){"use strict";function n(t){var e=t?t.ownerDocument||t:document,r=e.defaultView||window;return!(!t||!("function"===typeof r.Node?t instanceof r.Node:"object"===typeof t&&"number"===typeof t.nodeType&&"string"===typeof t.nodeName))}t.exports=n},function(t,e,r){"use strict";function n(t){try{t.focus()}catch(t){}}t.exports=n},function(t,e,r){"use strict";function n(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,r){function n(i,o){try{var a=e[i](o),s=a.value}catch(t){return void r(t)}if(!a.done)return Promise.resolve(s).then(function(t){n("next",t)},function(t){n("throw",t)});t(s)}return n("next")})}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function a(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=r(66),u=r.n(s),c=r(38),f=r.n(c),h=r(151),l=r(152),d=r(364),p=r(373),m=r.n(p),b=r(374),v=(r.n(b),r(65)),y=(r.n(v),function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}()),g=function(){return f.a.createElement("div",{className:"loading-container"},f.a.createElement("div",{className:"loading"},f.a.createElement("div",{className:"loading-i"}),f.a.createElement("div",{className:"loading-i"}),f.a.createElement("div",{className:"loading-i"}),f.a.createElement("div",{className:"loading-i"}),f.a.createElement("div",{className:"loading-i"}),f.a.createElement("div",{className:"loading-i"})))},_=function(t){function e(t){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.onClick=r.onClick.bind(r),r.state={web3Config:{},mining:null},r.keysManager=null,Object(h.a)().then(function(t){r.setState({web3Config:t}),r.keysManager=new l.a({web3:t.web3Instance})}).catch(function(t){t.msg&&m()({icon:"warning",title:"Warning",content:t.node})}),r}return a(e,t),y(e,[{key:"onClick",value:function(){function t(){return e.apply(this,arguments)}var e=n(u.a.mark(function t(){var e,r,n,i,o,a=this;return u.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.setState({loading:!0}),e=window.web3.eth.defaultAccount,t.next=4,this.keysManager.isInitialKeyValid(e);case 4:if(r=t.sent,console.log(r),1===Number(r)){t.next=10;break}return this.setState({loading:!1}),m()("Warning!","The key is not valid initial Key! Please make sure you have loaded correct initial key in metamask","warning"),t.abrupt("return");case 10:if(1!==Number(r)){t.next=24;break}return t.next=13,this.keysManager.generateKeys();case 13:return n=t.sent,t.next=16,this.keysManager.generateKeys();case 16:return i=t.sent,t.next=19,this.keysManager.generateKeys();case 19:return o=t.sent,this.setState({mining:n,voting:i,payout:o,keysGenerated:!0}),t.next=23,this.keysManager.createKeys({mining:n.jsonStore.address,voting:i.jsonStore.address,payout:o.jsonStore.address,sender:e}).then(function(t){console.log(t),a.setState({loading:!1}),m()("Congratulations!","Your keys are generated!","success")}).catch(function(t){console.error(t.message),a.setState({loading:!1});var e=document.createElement("div");e.innerHTML="<div>\n Something went wrong!<br/><br/> \n "+t.message+"\n </div>",m()({icon:"error",title:"Error",content:e})});case 23:console.log(this.state);case 24:case"end":return t.stop()}},t,this)}));return t}()},{key:"render",value:function(){var t=this.state.loading?f.a.createElement(g,null):"",e=f.a.createElement("div",{className:"create-keys"},f.a.createElement("h1",null,"Create keys from initial key"),f.a.createElement("h2",null,"In this application, you will create mining, payout and voting keys. The app will make your initial key unusable after the process. Please proceed with care, don't lose your keys and follow instructions."),f.a.createElement("div",{className:"create-keys-button-container"},f.a.createElement("button",{className:"create-keys-button",onClick:this.onClick},"Generate keys"))),r=void 0;return r=this.state.keysGenerated?f.a.createElement(d.a,{mining:this.state.mining,voting:this.state.voting,payout:this.state.payout}):e,f.a.createElement("div",{className:"App"},t,f.a.createElement("section",{className:"content"},r))}}]),e}(c.Component);e.a=_},function(t,e,r){var n=function(){return this}()||Function("return this")(),i=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,o=i&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r(150),i)n.regeneratorRuntime=o;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";function r(t,e,r,n){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),s=new d(n||[]);return a._invoke=c(t,r,s),a}function n(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function i(){}function o(){}function a(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function u(t){function e(r,i,o,a){var s=n(t[r],t,i);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"===typeof c&&y.call(c,"__await")?Promise.resolve(c.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(c).then(function(t){u.value=t,o(u)},a)}a(s.arg)}function r(t,r){function n(){return new Promise(function(n,i){e(t,r,n,i)})}return i=i?i.then(n,n):n()}var i;this._invoke=r}function c(t,e,r){var i=x;return function(o,a){if(i===A)throw new Error("Generator is already running");if(i===C){if("throw"===o)throw a;return m()}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=f(s,r);if(u){if(u===T)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===x)throw i=C,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=A;var c=n(t,e,r);if("normal"===c.type){if(i=r.done?C:S,c.arg===T)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=C,r.method="throw",r.arg=c.arg)}}}function f(t,e){var r=t.iterator[e.method];if(r===b){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=b,f(t,e),"throw"===e.method))return T;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return T}var i=n(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,T;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=b),e.delegate=null,T):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,T)}function h(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function l(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(h,this),this.reset(!0)}function p(t){if(t){var e=t[_];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(y.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=b,e.done=!0,e};return n.next=n}}return{next:m}}function m(){return{value:b,done:!0}}var b,v=Object.prototype,y=v.hasOwnProperty,g="function"===typeof Symbol?Symbol:{},_=g.iterator||"@@iterator",w=g.asyncIterator||"@@asyncIterator",M=g.toStringTag||"@@toStringTag",k="object"===typeof t,E=e.regeneratorRuntime;if(E)return void(k&&(t.exports=E));E=e.regeneratorRuntime=k?t.exports:{},E.wrap=r;var x="suspendedStart",S="suspendedYield",A="executing",C="completed",T={},I={};I[_]=function(){return this};var P=Object.getPrototypeOf,R=P&&P(P(p([])));R&&R!==v&&y.call(R,_)&&(I=R);var O=a.prototype=i.prototype=Object.create(I);o.prototype=O.constructor=a,a.constructor=o,a[M]=o.displayName="GeneratorFunction",E.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},E.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,M in t||(t[M]="GeneratorFunction")),t.prototype=Object.create(O),t},E.awrap=function(t){return{__await:t}},s(u.prototype),u.prototype[w]=function(){return this},E.AsyncIterator=u,E.async=function(t,e,n,i){var o=new u(r(t,e,n,i));return E.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},s(O),O[M]="Generator",O[_]=function(){return this},O.toString=function(){return"[object Generator]"},E.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},E.values=p,d.prototype={constructor:d,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=b,this.done=!1,this.delegate=null,this.method="next",this.arg=b,this.tryEntries.forEach(l),!t)for(var e in this)"t"===e.charAt(0)&&y.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=b)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,n){return o.type="throw",o.arg=t,r.next=e,n&&(r.method="next",r.arg=b),!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=y.call(i,"catchLoc"),s=y.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&y.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,T):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),T},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),l(r),T}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;l(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:p(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=b),T}}}(function(){return this}()||Function("return this")())},function(t,e,r){"use strict";function n(t){var e=document.createElement("div");return e.innerHTML="<div>\n "+t+"\n </div>",e}var i="You haven't chosen any account in MetaMask.\nPlease, choose your initial key in MetaMask and reload the page.\nCheck Oracles network <a href='https://github.com/oraclesorg/oracles-wiki' target='blank'>wiki</a> for more info.",o=function(){return new Promise(function(t,e){window.addEventListener("load",function(){var r,o=window.web3;if("undefined"!==typeof o){var a=null;o=new window.Web3(o.currentProvider),o.version.getNetwork(function(s,u){var c=void 0;switch(u){case"12648430":c="Oracles",console.log("This is oracles");break;default:c="ERROR",a="You aren't connected to Oracles Network. \n Please, switch on Oracles plugin and refresh the page. \n Check Oracles network <a href='https://github.com/oraclesorg/oracles-wiki' target='blank'>wiki</a> for more info.",console.log("This is an unknown network.")}r={web3Instance:o,netIdName:c,netId:u,injectedWeb3:!0},null===(o.eth.defaultAccount||null)&&e({msg:i,node:n(i)}),null!==a&&e({msg:a,node:n(a)}),t(r)}),console.log("Injected web3 detected.")}else e({msg:i,node:n(i)}),console.error("Metamask not found")})})};e.a=o},function(t,e,r){"use strict";function n(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,r){function n(i,o){try{var a=e[i](o),s=a.value}catch(t){return void r(t)}if(!a.done)return Promise.resolve(s).then(function(t){n("next",t)},function(t){n("throw",t)});t(s)}return n("next")})}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=r(66),a=r.n(o),s=r(153),u=r.n(s),c=r(154),f=r.n(c),h=r(342),l=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),d=new f.a(window.web3.currentProvider),p=function(){function t(e){e.web3;i(this,t),this.keysInstance=new d.eth.Contract(u.a,"0x758492834ed6454f41d6d3d6b73d6e46d4555429")}return l(t,[{key:"isInitialKeyValid",value:function(){function t(t){return e.apply(this,arguments)}var e=n(a.a.mark(function t(e){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.keysInstance.methods.initialKeys(e).call();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}));return t}()},{key:"generateKeys",value:function(){function t(){return e.apply(this,arguments)}var e=n(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(h.a)();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}));return t}()},{key:"createKeys",value:function(t){var e=t.mining,r=t.voting,n=t.payout,i=t.sender;return this.keysInstance.methods.createKeys(e,r,n).send({from:i})}}]),t}();e.a=p},function(t,e){t.exports=[{constant:!1,inputs:[{name:"",type:"address"}],name:"removePayoutKey",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"",type:"address"}],name:"removeVotingKey",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"getVotingByMining",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"getMiningKeyByVoting",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"",type:"address"}],name:"addMiningKey",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"poaNetworkConsensus",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"miningKeyHistory",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getTime",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"isVotingActive",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"",type:"address"},{name:"",type:"address"}],name:"addPayoutKey",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"initialKeys",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"",type:"address"},{name:"",type:"address"}],name:"swapPayoutKey",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"getPayoutByMining",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"",type:"address"}],name:"removeMiningKey",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"maxLimitValidators",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"",type:"address"}],name:"initiateKeys",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"",type:"address"},{name:"",type:"address"}],name:"addVotingKey",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"isMiningActive",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"votingContract",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"",type:"address"},{name:"",type:"address"},{name:"",type:"address"}],name:"createKeys",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"initialKeysCount",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"",type:"address"},{name:"",type:"address"}],name:"swapVotingKey",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"",type:"address"},{name:"",type:"address"}],name:"swapMiningKey",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"maxNumberOfInitialKeys",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"masterOfCeremony",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"isPayoutActive",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"}]},function(t,e,r){"use strict";var n=r(155).version,i=r(21),o=r(186),a=r(40),s=r(76),u=r(320),c=r(321),f=r(11),h=function(){var t=this;i.packageInit(this,arguments),this.version=n,this.utils=f,this.eth=new o(this),this.shh=new u(this),this.bzz=new c(this);var e=this.setProvider;this.setProvider=function(r,n){return e.apply(t,arguments),this.eth.setProvider(r,n),this.shh.setProvider(r,n),this.bzz.setProvider(r),!0}};h.version=n,h.utils=f,h.modules={Eth:o,Net:a,Personal:s,Shh:u,Bzz:c},i.addProviders(h),t.exports=h},function(t,e){t.exports={_from:"web3",_id:"[email protected]",_inBundle:!1,_integrity:"sha1-u0ba9q78MT92iz3jnX9KjXvQZmM=",_location:"/web3",_phantomChildren:{},_requested:{type:"tag",registry:!0,raw:"web3",name:"web3",escapedName:"web3",rawSpec:"",saveSpec:null,fetchSpec:"latest"},_requiredBy:["#USER","/"],_resolved:"https://registry.npmjs.org/web3/-/web3-1.0.0-beta.26.tgz",_shasum:"bb46daf6aefc313f768b3de39d7f4a8d7bd06663",_spec:"web3",_where:"/Users/rstorm/repos/generate_keys_dapp",author:{name:"ethereum.org"},authors:[{name:"Fabian Vogelsteller",email:"[email protected]",homepage:"http://frozeman.de"},{name:"Marek Kotewicz",email:"[email protected]",url:"https://github.com/debris"},{name:"Marian Oancea",url:"https://github.com/cubedro"},{name:"Gav Wood",email:"[email protected]",homepage:"http://gavwood.com"},{name:"Jeffery Wilcke",email:"[email protected]",url:"https://github.com/obscuren"}],bugs:{url:"https://github.com/ethereum/web3.js/issues"},bundleDependencies:!1,dependencies:{"web3-bzz":"^1.0.0-beta.26","web3-core":"^1.0.0-beta.26","web3-eth":"^1.0.0-beta.26","web3-eth-personal":"^1.0.0-beta.26","web3-net":"^1.0.0-beta.26","web3-shh":"^1.0.0-beta.26","web3-utils":"^1.0.0-beta.26"},deprecated:!1,description:"Ethereum JavaScript API",keywords:["Ethereum","JavaScript","API"],license:"LGPL-3.0",main:"src/index.js",name:"web3",namespace:"ethereum",repository:{type:"git",url:"https://github.com/ethereum/web3.js/tree/master/packages/web3"},types:"index.d.ts",version:"1.0.0-beta.26"}},function(t,e,r){"use strict";var n=r(5),i=r(7).errors,o=r(73),a=r(172),s=r(173),u=function t(e){this.provider=null,this.providers=t.providers,this.setProvider(e),this.subscriptions={}};u.givenProvider=s,u.providers={WebsocketProvider:r(174),HttpProvider:r(178),IpcProvider:r(180)},u.prototype.setProvider=function(t,e){var r=this;if(t&&"string"===typeof t&&this.providers)if(/^http(s)?:\/\//i.test(t))t=new this.providers.HttpProvider(t);else if(/^ws(s)?:\/\//i.test(t))t=new this.providers.WebsocketProvider(t);else if(t&&"object"===typeof e&&"function"===typeof e.connect)t=new this.providers.IpcProvider(t,e);else if(t)throw new Error("Can't autodetect provider for \""+t+'"');this.provider&&this.clearSubscriptions(),this.provider=t||null,this.provider&&this.provider.on&&this.provider.on("data",function(t,e){t?Object.keys(r.subscriptions).forEach(function(e){r.subscriptions[e].callback&&r.subscriptions[e].callback(t)}):r.subscriptions[e.params.subscription]&&r.subscriptions[e.params.subscription].callback&&r.subscriptions[e.params.subscription].callback(null,e.params.result)})},u.prototype.send=function(t,e){if(e=e||function(){},!this.provider)return e(i.InvalidProvider());var r=o.toPayload(t.method,t.params);this.provider[this.provider.sendAsync?"sendAsync":"send"](r,function(t,n){return n&&n.id&&r.id!==n.id?e(new Error('Wrong response id "'+n.id+'" (expected: "'+r.id+'") in '+JSON.stringify(r))):t?e(t):n&&n.error?e(i.ErrorResponse(n)):o.isValidResponse(n)?void e(null,n.result):e(i.InvalidResponse(n))})},u.prototype.sendBatch=function(t,e){if(!this.provider)return e(i.InvalidProvider());var r=o.toBatchPayload(t);this.provider.send(r,function(t,r){return t?e(t):n.isArray(r)?void e(null,r):e(i.InvalidResponse(r))})},u.prototype.addSubscription=function(t,e,r,n){if(!this.provider.on)throw new Error("The provider doesn't support subscriptions: "+this.provider.constructor.name);this.subscriptions[t]={callback:n,type:r,name:e}},u.prototype.removeSubscription=function(t,e){var r=this;this.subscriptions[t]&&(this.send({method:this.subscriptions[t].type+"_unsubscribe",params:[t]},e),delete r.subscriptions[t])},u.prototype.clearSubscriptions=function(t){var e=this;Object.keys(this.subscriptions).forEach(function(r){t&&"syncing"===e.subscriptions[r].name||e.removeSubscription(r)}),this.provider.reset&&this.provider.reset()},t.exports={Manager:u,BatchManager:a}},function(t,e,r){"use strict";t.exports={ErrorResponse:function(t){var e=t&&t.error&&t.error.message?t.error.message:JSON.stringify(t);return new Error("Returned error: "+e)},InvalidNumberOfParams:function(t,e,r){return new Error('Invalid number of parameters for "'+r+'". Got '+t+" expected "+e+"!")},InvalidConnection:function(t){return new Error("CONNECTION ERROR: Couldn't connect to node "+t+".")},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(t){var e=t&&t.error&&t.error.message?t.error.message:"Invalid JSON RPC response: "+JSON.stringify(t);return new Error(e)},ConnectionTimeout:function(t){return new Error("CONNECTION TIMEOUT: timeout of "+t+" ms achived")}}},function(t,e,r){"use strict";var n=r(5),i=r(11),o=r(72),a=function(t){return i.toBN(t).toString(10)},s=function(t){return"latest"===t||"pending"===t||"earliest"===t},u=function(t){return!this||void 0!==t&&null!==t?"genesis"===t||"earliest"===t?"0x0":c(t):this.defaultBlock},c=function(t){if(void 0!==t)return s(t)?t:i.isHexStrict(t)?n.isString(t)?t.toLowerCase():t:i.numberToHex(t)},f=function(t){var e=t.from||(this?this.defaultAccount:null);return e&&(t.from=_(e)),t.to&&(t.to=_(t.to)),(t.gas||t.gasLimit)&&(t.gas=t.gas||t.gasLimit),["gasPrice","gas","value","nonce"].filter(function(e){return void 0!==t[e]}).forEach(function(e){t[e]=i.numberToHex(t[e])}),t},h=function(t){if(!n.isNumber(t.from)&&!n.isObject(t.from)){if(t.from=t.from||(this?this.defaultAccount:null),!t.from&&!n.isNumber(t.from))throw new Error('The send transactions "from" field must be defined!');t.from=_(t.from)}return t.to&&(t.to=_(t.to)),(t.gas||t.gasLimit)&&(t.gas=t.gas||t.gasLimit),["gasPrice","gas","value","nonce"].filter(function(e){return void 0!==t[e]}).forEach(function(e){t[e]=i.numberToHex(t[e])}),t},l=function(t){return i.isHexStrict(t)?t:i.utf8ToHex(t)},d=function(t){return null!==t.blockNumber&&(t.blockNumber=i.hexToNumber(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=i.hexToNumber(t.transactionIndex)),t.nonce=i.hexToNumber(t.nonce),t.gas=i.hexToNumber(t.gas),t.gasPrice=a(t.gasPrice),t.value=a(t.value),t.to&&i.isAddress(t.to)?t.to=i.toChecksumAddress(t.to):t.to=null,t.from&&(t.from=i.toChecksumAddress(t.from)),t},p=function(t){if("object"!==typeof t)throw new Error("Received receipt is invalid: "+t);return null!==t.blockNumber&&(t.blockNumber=i.hexToNumber(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=i.hexToNumber(t.transactionIndex)),t.cumulativeGasUsed=i.hexToNumber(t.cumulativeGasUsed),t.gasUsed=i.hexToNumber(t.gasUsed),n.isArray(t.logs)&&(t.logs=t.logs.map(v)),t.contractAddress&&(t.contractAddress=i.toChecksumAddress(t.contractAddress)),t},m=function(t){return t.gasLimit=i.hexToNumber(t.gasLimit),t.gasUsed=i.hexToNumber(t.gasUsed),t.size=i.hexToNumber(t.size),t.timestamp=i.hexToNumber(t.timestamp),null!==t.number&&(t.number=i.hexToNumber(t.number)),t.difficulty&&(t.difficulty=a(t.difficulty)),t.totalDifficulty&&(t.totalDifficulty=a(t.totalDifficulty)),n.isArray(t.transactions)&&t.transactions.forEach(function(t){if(!n.isString(t))return d(t)}),t.miner&&(t.miner=i.toChecksumAddress(t.miner)),t},b=function(t){var e=function(t){return null===t||"undefined"===typeof t?null:(t=String(t),0===t.indexOf("0x")?t:i.fromUtf8(t))};return t.topics=t.topics||[],t.topics=t.topics.map(function(t){return n.isArray(t)?t.map(e):e(t)}),e=null,t.address&&(t.address=_(t.address)),t},v=function(t){if("string"===typeof t.blockHash&&"string"===typeof t.transactionHash&&"string"===typeof t.logIndex){var e=i.sha3(t.blockHash.replace("0x","")+t.transactionHash.replace("0x","")+t.logIndex.replace("0x",""));t.id="log_"+e.replace("0x","").substr(0,8)}else t.id||(t.id=null);return null!==t.blockNumber&&(t.blockNumber=i.hexToNumber(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=i.hexToNumber(t.transactionIndex)),null!==t.logIndex&&(t.logIndex=i.hexToNumber(t.logIndex)),t.address&&(t.address=i.toChecksumAddress(t.address)),t},y=function(t){return t.ttl&&(t.ttl=i.numberToHex(t.ttl)),t.workToProve&&(t.workToProve=i.numberToHex(t.workToProve)),t.priority&&(t.priority=i.numberToHex(t.priority)),n.isArray(t.topics)||(t.topics=t.topics?[t.topics]:[]),t.topics=t.topics.map(function(t){return 0===t.indexOf("0x")?t:i.fromUtf8(t)}),t},g=function(t){return t.expiry=i.hexToNumber(t.expiry),t.sent=i.hexToNumber(t.sent),t.ttl=i.hexToNumber(t.ttl),t.workProved=i.hexToNumber(t.workProved),t.topics||(t.topics=[]),t.topics=t.topics.map(function(t){return i.toUtf8(t)}),t},_=function(t){var e=new o(t);if(e.isValid()&&e.isDirect())return e.toAddress().toLowerCase();if(i.isAddress(t))return"0x"+t.toLowerCase().replace("0x","");throw new Error('Provided address "'+t+"\" is invalid, the capitalization checksum test failed, or its an indrect IBAN address which can't be converted.")},w=function(t){return t.startingBlock=i.hexToNumber(t.startingBlock),t.currentBlock=i.hexToNumber(t.currentBlock),t.highestBlock=i.hexToNumber(t.highestBlock),t.knownStates&&(t.knownStates=i.hexToNumber(t.knownStates),t.pulledStates=i.hexToNumber(t.pulledStates)),t};t.exports={inputDefaultBlockNumberFormatter:u,inputBlockNumberFormatter:c,inputCallFormatter:f,inputTransactionFormatter:h,inputAddressFormatter:_,inputPostFormatter:y,inputLogFormatter:b,inputSignFormatter:l,outputBigNumberFormatter:a,outputTransactionFormatter:d,outputTransactionReceiptFormatter:p,outputBlockFormatter:m,outputLogFormatter:v,outputPostFormatter:g,outputSyncingFormatter:w}},function(t,e,r){"use strict";function n(t){var e=t?t.toLowerCase():"ether",r=h[e];if("string"!==typeof r)throw new Error("[ethjs-unit] the unit provided "+t+" doesn't exists, please use the one of the following units "+JSON.stringify(h,null,2));return new s(r,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"===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 "+typeof t+".")}function o(t,e,r){var i=u(t),o=i.lt(c),a=n(e),s=h[e].length-1||1,l=r||{};o&&(i=i.mul(f));for(var d=i.mod(a).toString(10);d.length<s;)d="0"+d;l.pad||(d=d.match(/^([0-9]*[1-9]|0)(0*)/)[1]);var p=i.div(a).toString(10);l.commify&&(p=p.replace(/\B(?=(\d{3})+(?!\d))/g,","));var m=p+("0"==d?"":"."+d);return o&&(m="-"+m),m}function a(t,e){var r=i(t),o=n(e),a=h[e].length-1||1,u="-"===r.substring(0,1);if(u&&(r=r.substring(1)),"."===r)throw new Error("[ethjs-unit] while converting number "+t+" to wei, invalid value");var c=r.split(".");if(c.length>2)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal points");var l=c[0],d=c[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.length<a;)d+="0";l=new s(l),d=new s(d);var p=l.mul(o).add(d);return u&&(p=p.mul(f)),new s(p.toString(10),10)}var s=r(160),u=r(68),c=new s(0),f=new s(-1),h={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"};t.exports={unitMap:h,numberToString:i,getValueOfUnit:n,fromWei:o,toWei:a}},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var a=t.charCodeAt(o)-48;n<<=4,n|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function s(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}function u(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function c(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,h=67108863&u,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;i=0|t.words[p],o=0|e.words[d],a=i*o+h,f+=a/67108864|0,h=67108863&a}r.words[c]=0|h,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}function f(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var f=o-c,h=0|t.words[f],l=0|e.words[c],d=h*l,p=67108863&d;a=a+(d/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,i+=a>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function h(t,e,r){return(new l).mulp(t,e,r)}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 n(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"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;var _;try{_=r(0).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"===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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=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 r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,u=Math.min(o,o-a)+r,c=0,f=r;f<u;f+=n)c=s(t,f,f+n,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=s(t,f,t.length,e),f=0;f<a;f++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&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?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],M=[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 r;if(16===t||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,r=0!==o||a!==this.length-1?w[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=M[t],f=k[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var l=h.modn(f).toString(t);h=h.idivn(f),r=h.isZero()?l+r:w[c-l.length]+l+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof _),this.toArrayLike(_,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.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 r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.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,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.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){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();var r,n;this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;var n,i;r>0?(n=this,i=t):(n=t,i=this);for(var o=0,a=0;a<i.length;a++)e=(0|n.words[a])-(0|i.words[a])+o,o=e>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)e=(0|n.words[a])+o,o=e>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var E=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,f=0|a[0],h=8191&f,l=f>>>13,d=0|a[1],p=8191&d,m=d>>>13,b=0|a[2],v=8191&b,y=b>>>13,g=0|a[3],_=8191&g,w=g>>>13,M=0|a[4],k=8191&M,E=M>>>13,x=0|a[5],S=8191&x,A=x>>>13,C=0|a[6],T=8191&C,I=C>>>13,P=0|a[7],R=8191&P,O=P>>>13,j=0|a[8],N=8191&j,B=j>>>13,L=0|a[9],F=8191&L,D=L>>>13,U=0|s[0],q=8191&U,z=U>>>13,H=0|s[1],V=8191&H,K=H>>>13,Y=0|s[2],G=8191&Y,W=Y>>>13,Z=0|s[3],X=8191&Z,$=Z>>>13,Q=0|s[4],J=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,ft=0|s[8],ht=8191&ft,lt=ft>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(h,q),i=Math.imul(h,z),i=i+Math.imul(l,q)|0,o=Math.imul(l,z);var bt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(p,q),i=Math.imul(p,z),i=i+Math.imul(m,q)|0,o=Math.imul(m,z),n=n+Math.imul(h,V)|0,i=i+Math.imul(h,K)|0,i=i+Math.imul(l,V)|0,o=o+Math.imul(l,K)|0;var vt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),i=Math.imul(v,z),i=i+Math.imul(y,q)|0,o=Math.imul(y,z),n=n+Math.imul(p,V)|0,i=i+Math.imul(p,K)|0,i=i+Math.imul(m,V)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(h,G)|0,i=i+Math.imul(h,W)|0,i=i+Math.imul(l,G)|0,o=o+Math.imul(l,W)|0;var yt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(_,q),i=Math.imul(_,z),i=i+Math.imul(w,q)|0,o=Math.imul(w,z),n=n+Math.imul(v,V)|0,i=i+Math.imul(v,K)|0,i=i+Math.imul(y,V)|0,o=o+Math.imul(y,K)|0,n=n+Math.imul(p,G)|0,i=i+Math.imul(p,W)|0,i=i+Math.imul(m,G)|0,o=o+Math.imul(m,W)|0,n=n+Math.imul(h,X)|0,i=i+Math.imul(h,$)|0,i=i+Math.imul(l,X)|0,o=o+Math.imul(l,$)|0;var gt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=Math.imul(k,z),i=i+Math.imul(E,q)|0,o=Math.imul(E,z),n=n+Math.imul(_,V)|0,i=i+Math.imul(_,K)|0,i=i+Math.imul(w,V)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(v,G)|0,i=i+Math.imul(v,W)|0,i=i+Math.imul(y,G)|0,o=o+Math.imul(y,W)|0,n=n+Math.imul(p,X)|0,i=i+Math.imul(p,$)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,$)|0,n=n+Math.imul(h,J)|0,i=i+Math.imul(h,tt)|0,i=i+Math.imul(l,J)|0,o=o+Math.imul(l,tt)|0;var _t=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(S,q),i=Math.imul(S,z),i=i+Math.imul(A,q)|0,o=Math.imul(A,z),n=n+Math.imul(k,V)|0,i=i+Math.imul(k,K)|0,i=i+Math.imul(E,V)|0,o=o+Math.imul(E,K)|0,n=n+Math.imul(_,G)|0,i=i+Math.imul(_,W)|0,i=i+Math.imul(w,G)|0,o=o+Math.imul(w,W)|0,n=n+Math.imul(v,X)|0,i=i+Math.imul(v,$)|0,i=i+Math.imul(y,X)|0,o=o+Math.imul(y,$)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(h,rt)|0,i=i+Math.imul(h,nt)|0,i=i+Math.imul(l,rt)|0,o=o+Math.imul(l,nt)|0;var wt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(T,q),i=Math.imul(T,z),i=i+Math.imul(I,q)|0,o=Math.imul(I,z),n=n+Math.imul(S,V)|0,i=i+Math.imul(S,K)|0,i=i+Math.imul(A,V)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(k,G)|0,i=i+Math.imul(k,W)|0,i=i+Math.imul(E,G)|0,o=o+Math.imul(E,W)|0,n=n+Math.imul(_,X)|0,i=i+Math.imul(_,$)|0,i=i+Math.imul(w,X)|0,o=o+Math.imul(w,$)|0,n=n+Math.imul(v,J)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(h,ot)|0,i=i+Math.imul(h,at)|0,i=i+Math.imul(l,ot)|0,o=o+Math.imul(l,at)|0;var Mt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(R,q),i=Math.imul(R,z),i=i+Math.imul(O,q)|0,o=Math.imul(O,z),n=n+Math.imul(T,V)|0,i=i+Math.imul(T,K)|0,i=i+Math.imul(I,V)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(S,G)|0,i=i+Math.imul(S,W)|0,i=i+Math.imul(A,G)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(k,X)|0,i=i+Math.imul(k,$)|0,i=i+Math.imul(E,X)|0,o=o+Math.imul(E,$)|0,n=n+Math.imul(_,J)|0,i=i+Math.imul(_,tt)|0,i=i+Math.imul(w,J)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,n=n+Math.imul(h,ut)|0,i=i+Math.imul(h,ct)|0,i=i+Math.imul(l,ut)|0,o=o+Math.imul(l,ct)|0;var kt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,q),i=Math.imul(N,z),i=i+Math.imul(B,q)|0,o=Math.imul(B,z),n=n+Math.imul(R,V)|0,i=i+Math.imul(R,K)|0,i=i+Math.imul(O,V)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(T,G)|0,i=i+Math.imul(T,W)|0,i=i+Math.imul(I,G)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(S,X)|0,i=i+Math.imul(S,$)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(_,rt)|0,i=i+Math.imul(_,nt)|0,i=i+Math.imul(w,rt)|0,o=o+Math.imul(w,nt)|0,n=n+Math.imul(v,ot)|0,i=i+Math.imul(v,at)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,n=n+Math.imul(h,ht)|0,i=i+Math.imul(h,lt)|0,i=i+Math.imul(l,ht)|0,o=o+Math.imul(l,lt)|0;var Et=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(F,q),i=Math.imul(F,z),i=i+Math.imul(D,q)|0,o=Math.imul(D,z),n=n+Math.imul(N,V)|0,i=i+Math.imul(N,K)|0,i=i+Math.imul(B,V)|0,o=o+Math.imul(B,K)|0,n=n+Math.imul(R,G)|0,i=i+Math.imul(R,W)|0,i=i+Math.imul(O,G)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(T,X)|0,i=i+Math.imul(T,$)|0,i=i+Math.imul(I,X)|0,o=o+Math.imul(I,$)|0,n=n+Math.imul(S,J)|0,i=i+Math.imul(S,tt)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(E,rt)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(_,ot)|0,i=i+Math.imul(_,at)|0,i=i+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,n=n+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ht)|0,i=i+Math.imul(p,lt)|0,i=i+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0,n=n+Math.imul(h,pt)|0,i=i+Math.imul(h,mt)|0,i=i+Math.imul(l,pt)|0,o=o+Math.imul(l,mt)|0;var xt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(F,V),i=Math.imul(F,K),i=i+Math.imul(D,V)|0,o=Math.imul(D,K),n=n+Math.imul(N,G)|0,i=i+Math.imul(N,W)|0,i=i+Math.imul(B,G)|0,o=o+Math.imul(B,W)|0,n=n+Math.imul(R,X)|0,i=i+Math.imul(R,$)|0,i=i+Math.imul(O,X)|0,o=o+Math.imul(O,$)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(S,rt)|0,i=i+Math.imul(S,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,at)|0,i=i+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,n=n+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,i=i+Math.imul(w,ut)|0,o=o+Math.imul(w,ct)|0,n=n+Math.imul(v,ht)|0,i=i+Math.imul(v,lt)|0,i=i+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var St=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(F,G),i=Math.imul(F,W),i=i+Math.imul(D,G)|0,o=Math.imul(D,W),n=n+Math.imul(N,X)|0,i=i+Math.imul(N,$)|0,i=i+Math.imul(B,X)|0,o=o+Math.imul(B,$)|0,n=n+Math.imul(R,J)|0,i=i+Math.imul(R,tt)|0,i=i+Math.imul(O,J)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(S,ot)|0,i=i+Math.imul(S,at)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ct)|0,i=i+Math.imul(E,ut)|0,o=o+Math.imul(E,ct)|0,n=n+Math.imul(_,ht)|0,i=i+Math.imul(_,lt)|0,i=i+Math.imul(w,ht)|0,o=o+Math.imul(w,lt)|0,n=n+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(F,X),i=Math.imul(F,$),i=i+Math.imul(D,X)|0,o=Math.imul(D,$),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(B,J)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(R,rt)|0,i=i+Math.imul(R,nt)|0,i=i+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,at)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(S,ut)|0,i=i+Math.imul(S,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(k,ht)|0,i=i+Math.imul(k,lt)|0,i=i+Math.imul(E,ht)|0,o=o+Math.imul(E,lt)|0,n=n+Math.imul(_,pt)|0,i=i+Math.imul(_,mt)|0,i=i+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var Ct=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(F,J),i=Math.imul(F,tt),i=i+Math.imul(D,J)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(R,ot)|0,i=i+Math.imul(R,at)|0,i=i+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ct)|0,n=n+Math.imul(S,ht)|0,i=i+Math.imul(S,lt)|0,i=i+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var Tt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(F,rt),i=Math.imul(F,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,at)|0,i=i+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,n=n+Math.imul(R,ut)|0,i=i+Math.imul(R,ct)|0,i=i+Math.imul(O,ut)|0,o=o+Math.imul(O,ct)|0,n=n+Math.imul(T,ht)|0,i=i+Math.imul(T,lt)|0,i=i+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0,n=n+Math.imul(S,pt)|0,i=i+Math.imul(S,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var It=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(F,ot),i=Math.imul(F,at),i=i+Math.imul(D,ot)|0,o=Math.imul(D,at),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ct)|0,i=i+Math.imul(B,ut)|0,o=o+Math.imul(B,ct)|0,n=n+Math.imul(R,ht)|0,i=i+Math.imul(R,lt)|0,i=i+Math.imul(O,ht)|0,o=o+Math.imul(O,lt)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Pt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(F,ut),i=Math.imul(F,ct),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ct),n=n+Math.imul(N,ht)|0,i=i+Math.imul(N,lt)|0,i=i+Math.imul(B,ht)|0,o=o+Math.imul(B,lt)|0,n=n+Math.imul(R,pt)|0,i=i+Math.imul(R,mt)|0,i=i+Math.imul(O,pt)|0,o=o+Math.imul(O,mt)|0;var Rt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(F,ht),i=Math.imul(F,lt),i=i+Math.imul(D,ht)|0,o=Math.imul(D,lt),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(B,pt)|0,o=o+Math.imul(B,mt)|0;var Ot=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(F,pt),i=Math.imul(F,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var jt=(c+n|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,u[0]=bt,u[1]=vt,u[2]=yt,u[3]=gt,u[4]=_t,u[5]=wt,u[6]=Mt,u[7]=kt,u[8]=Et,u[9]=xt,u[10]=St,u[11]=At,u[12]=Ct,u[13]=Tt,u[14]=It,u[15]=Pt,u[16]=Rt,u[17]=Ot,u[18]=jt,0!==c&&(u[19]=c,r.length++),r};Math.imul||(E=c),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?E(this,t,e):r<63?c(this,t,e):r<1024?f(this,t,e):h(this,t,e)},l.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},l.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},l.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},l.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var h=u,l=c,d=0;d<a;d++){var p=r[f+d],m=n[f+d],b=r[f+d+a],v=n[f+d+a],y=h*b-l*v;v=h*v+l*b,b=y,r[f+d]=p+b,n[f+d]=m+v,r[f+d+a]=p-b,n[f+d+a]=m-v,d!==s&&(y=u*h-c*l,l=u*l+c*h,h=y)}},l.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},l.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},l.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},l.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},l.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},l.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,h,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*h[d];u[d]=s[d]*h[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),h(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=u(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){n("number"===typeof t&&t>=0);var i;i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var h=0|this.words[c];this.words[c]=f<<26-o|h>>>o,f=h&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o=t.length+r;this._expand(o);var a,s=0;for(i=0;i<t.length;i++){a=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;a-=67108863&u,s=(a>>26)-(u/67108864|0),this.words[i+r]=67108863&a}for(;i<this.length-r;i++)a=(0|this.words[i+r])+s,s=a>>26,this.words[i+r]=67108863&a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)a=-(0|this.words[i])+s,s=a>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){s=new o(null),s.length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var h=u-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){if(n(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var i,a,s;return 0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);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){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var f=r.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()||a.isOdd())&&(i.iadd(f),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(e.iushrn(u);u-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var f=0,h=1;0===(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a)):(r.isub(e),a.isub(i))}var l;return l=0===e.cmpn(1)?i:a,l.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(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=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 r;if(this.length>1)r=1;else{e&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];r=i===t?0:i<t?-1:1}return 0!==this.negative?0|-r:r},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var x={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,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},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 r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[n-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,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(m,d),i(b,d),i(v,d),v.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(x[t])return x[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 x[t]=e,e},y.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},y.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(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 r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},y.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},y.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},y.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var m=d,b=0;0!==m.cmp(s);b++)m=m.redSqr();n(b<p);var v=this.pow(h,new o(1).iushln(p-b-1));l=l.redMul(v),h=v.redSqr(),d=d.redMul(h),p=b}return l},y.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},y.prototype.pow=function(t,e){if(e.isZero())return new o(1);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],f=u-1;f>=0;f--){var h=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=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 r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).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 r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}("undefined"===typeof t||t,this)}).call(e,r(18)(t))},function(t,e,r){"use strict";function n(t){var e=t.length;if(e%4>0)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 3*t.length/4-n(t)}function o(t){var e,r,i,o,a,s=t.length;o=n(t),a=new h(3*s/4-o),r=o>0?s-4:s;var u=0;for(e=0;e<r;e+=4)i=f[t.charCodeAt(e)]<<18|f[t.charCodeAt(e+1)]<<12|f[t.charCodeAt(e+2)]<<6|f[t.charCodeAt(e+3)],a[u++]=i>>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=f[t.charCodeAt(e)]<<2|f[t.charCodeAt(e+1)]>>4,a[u++]=255&i):1===o&&(i=f[t.charCodeAt(e)]<<10|f[t.charCodeAt(e+1)]<<4|f[t.charCodeAt(e+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}function a(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function s(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16)+(t[o+1]<<8)+t[o+2],i.push(a(n));return i.join("")}function u(t){for(var e,r=t.length,n=r%3,i="",o=[],a=0,u=r-n;a<u;a+=16383)o.push(s(t,a,a+16383>u?u:a+16383));return 1===n?(e=t[r-1],i+=c[e>>2],i+=c[e<<4&63],i+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=c[e>>10],i+=c[e>>4&63],i+=c[e<<2&63],i+="="),o.push(i),o.join("")}e.byteLength=i,e.toByteArray=o,e.fromByteArray=u;for(var c=[],f=[],h="undefined"!==typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,p=l.length;d<p;++d)c[d]=l[d],f[l.charCodeAt(d)]=d;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,h=r?i-1:0,l=r?-1:1,d=t[e+h];for(h+=l,o=d&(1<<-f)-1,d>>=-f,f+=s;f>0;o=256*o+t[e+h],h+=l,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+t[e+h],h+=l,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<<c)-1,h=f>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+h>=1?l/u:l*Math.pow(2,1-h),e*u>=2&&(a++,u/=2),a+h>=f?(s=0,a=f):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[r+d]=255&a,d+=p,a/=256,c-=8);t[r+d-p]|=128*m}},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var a=t.charCodeAt(o)-48;n<<=4,n|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function s(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}function u(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function c(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,h=67108863&u,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;i=0|t.words[p],o=0|e.words[d],a=i*o+h,f+=a/67108864|0,h=67108863&a}r.words[c]=0|h,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}function f(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var f=o-c,h=0|t.words[f],l=0|e.words[c],d=h*l,p=67108863&d;a=a+(d/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,i+=a>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function h(t,e,r){return(new l).mulp(t,e,r)}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 n(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"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;var _;try{_=r(0).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"===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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=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 r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,u=Math.min(o,o-a)+r,c=0,f=r;f<u;f+=n)c=s(t,f,f+n,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=s(t,f,t.length,e),f=0;f<a;f++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&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?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],M=[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 r;if(16===t||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,r=0!==o||a!==this.length-1?w[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=M[t],f=k[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var l=h.modn(f).toString(t);h=h.idivn(f),r=h.isZero()?l+r:w[c-l.length]+l+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof _),this.toArrayLike(_,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.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 r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.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,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.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){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();var r,n;this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;var n,i;r>0?(n=this,i=t):(n=t,i=this);for(var o=0,a=0;a<i.length;a++)e=(0|n.words[a])-(0|i.words[a])+o,o=e>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)e=(0|n.words[a])+o,o=e>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var E=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,f=0|a[0],h=8191&f,l=f>>>13,d=0|a[1],p=8191&d,m=d>>>13,b=0|a[2],v=8191&b,y=b>>>13,g=0|a[3],_=8191&g,w=g>>>13,M=0|a[4],k=8191&M,E=M>>>13,x=0|a[5],S=8191&x,A=x>>>13,C=0|a[6],T=8191&C,I=C>>>13,P=0|a[7],R=8191&P,O=P>>>13,j=0|a[8],N=8191&j,B=j>>>13,L=0|a[9],F=8191&L,D=L>>>13,U=0|s[0],q=8191&U,z=U>>>13,H=0|s[1],V=8191&H,K=H>>>13,Y=0|s[2],G=8191&Y,W=Y>>>13,Z=0|s[3],X=8191&Z,$=Z>>>13,Q=0|s[4],J=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,ft=0|s[8],ht=8191&ft,lt=ft>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(h,q),i=Math.imul(h,z),i=i+Math.imul(l,q)|0,o=Math.imul(l,z);var bt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(p,q),i=Math.imul(p,z),i=i+Math.imul(m,q)|0,o=Math.imul(m,z),n=n+Math.imul(h,V)|0,i=i+Math.imul(h,K)|0,i=i+Math.imul(l,V)|0,o=o+Math.imul(l,K)|0;var vt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),i=Math.imul(v,z),i=i+Math.imul(y,q)|0,o=Math.imul(y,z),n=n+Math.imul(p,V)|0,i=i+Math.imul(p,K)|0,i=i+Math.imul(m,V)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(h,G)|0,i=i+Math.imul(h,W)|0,i=i+Math.imul(l,G)|0,o=o+Math.imul(l,W)|0;var yt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(_,q),i=Math.imul(_,z),i=i+Math.imul(w,q)|0,o=Math.imul(w,z),n=n+Math.imul(v,V)|0,i=i+Math.imul(v,K)|0,i=i+Math.imul(y,V)|0,o=o+Math.imul(y,K)|0,n=n+Math.imul(p,G)|0,i=i+Math.imul(p,W)|0,i=i+Math.imul(m,G)|0,o=o+Math.imul(m,W)|0,n=n+Math.imul(h,X)|0,i=i+Math.imul(h,$)|0,i=i+Math.imul(l,X)|0,o=o+Math.imul(l,$)|0;var gt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=Math.imul(k,z),i=i+Math.imul(E,q)|0,o=Math.imul(E,z),n=n+Math.imul(_,V)|0,i=i+Math.imul(_,K)|0,i=i+Math.imul(w,V)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(v,G)|0,i=i+Math.imul(v,W)|0,i=i+Math.imul(y,G)|0,o=o+Math.imul(y,W)|0,n=n+Math.imul(p,X)|0,i=i+Math.imul(p,$)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,$)|0,n=n+Math.imul(h,J)|0,i=i+Math.imul(h,tt)|0,i=i+Math.imul(l,J)|0,o=o+Math.imul(l,tt)|0;var _t=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(S,q),i=Math.imul(S,z),i=i+Math.imul(A,q)|0,o=Math.imul(A,z),n=n+Math.imul(k,V)|0,i=i+Math.imul(k,K)|0,i=i+Math.imul(E,V)|0,o=o+Math.imul(E,K)|0,n=n+Math.imul(_,G)|0,i=i+Math.imul(_,W)|0,i=i+Math.imul(w,G)|0,o=o+Math.imul(w,W)|0,n=n+Math.imul(v,X)|0,i=i+Math.imul(v,$)|0,i=i+Math.imul(y,X)|0,o=o+Math.imul(y,$)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(h,rt)|0,i=i+Math.imul(h,nt)|0,i=i+Math.imul(l,rt)|0,o=o+Math.imul(l,nt)|0;var wt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(T,q),i=Math.imul(T,z),i=i+Math.imul(I,q)|0,o=Math.imul(I,z),n=n+Math.imul(S,V)|0,i=i+Math.imul(S,K)|0,i=i+Math.imul(A,V)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(k,G)|0,i=i+Math.imul(k,W)|0,i=i+Math.imul(E,G)|0,o=o+Math.imul(E,W)|0,n=n+Math.imul(_,X)|0,i=i+Math.imul(_,$)|0,i=i+Math.imul(w,X)|0,o=o+Math.imul(w,$)|0,n=n+Math.imul(v,J)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(h,ot)|0,i=i+Math.imul(h,at)|0,i=i+Math.imul(l,ot)|0,o=o+Math.imul(l,at)|0;var Mt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(R,q),i=Math.imul(R,z),i=i+Math.imul(O,q)|0,o=Math.imul(O,z),n=n+Math.imul(T,V)|0,i=i+Math.imul(T,K)|0,i=i+Math.imul(I,V)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(S,G)|0,i=i+Math.imul(S,W)|0,i=i+Math.imul(A,G)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(k,X)|0,i=i+Math.imul(k,$)|0,i=i+Math.imul(E,X)|0,o=o+Math.imul(E,$)|0,n=n+Math.imul(_,J)|0,i=i+Math.imul(_,tt)|0,i=i+Math.imul(w,J)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,n=n+Math.imul(h,ut)|0,i=i+Math.imul(h,ct)|0,i=i+Math.imul(l,ut)|0,o=o+Math.imul(l,ct)|0;var kt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,q),i=Math.imul(N,z),i=i+Math.imul(B,q)|0,o=Math.imul(B,z),n=n+Math.imul(R,V)|0,i=i+Math.imul(R,K)|0,i=i+Math.imul(O,V)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(T,G)|0,i=i+Math.imul(T,W)|0,i=i+Math.imul(I,G)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(S,X)|0,i=i+Math.imul(S,$)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(_,rt)|0,i=i+Math.imul(_,nt)|0,i=i+Math.imul(w,rt)|0,o=o+Math.imul(w,nt)|0,n=n+Math.imul(v,ot)|0,i=i+Math.imul(v,at)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,n=n+Math.imul(h,ht)|0,i=i+Math.imul(h,lt)|0,i=i+Math.imul(l,ht)|0,o=o+Math.imul(l,lt)|0;var Et=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(F,q),i=Math.imul(F,z),i=i+Math.imul(D,q)|0,o=Math.imul(D,z),n=n+Math.imul(N,V)|0,i=i+Math.imul(N,K)|0,i=i+Math.imul(B,V)|0,o=o+Math.imul(B,K)|0,n=n+Math.imul(R,G)|0,i=i+Math.imul(R,W)|0,i=i+Math.imul(O,G)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(T,X)|0,i=i+Math.imul(T,$)|0,i=i+Math.imul(I,X)|0,o=o+Math.imul(I,$)|0,n=n+Math.imul(S,J)|0,i=i+Math.imul(S,tt)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(E,rt)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(_,ot)|0,i=i+Math.imul(_,at)|0,i=i+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,n=n+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ht)|0,i=i+Math.imul(p,lt)|0,i=i+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0,n=n+Math.imul(h,pt)|0,i=i+Math.imul(h,mt)|0,i=i+Math.imul(l,pt)|0,o=o+Math.imul(l,mt)|0;var xt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(F,V),i=Math.imul(F,K),i=i+Math.imul(D,V)|0,o=Math.imul(D,K),n=n+Math.imul(N,G)|0,i=i+Math.imul(N,W)|0,i=i+Math.imul(B,G)|0,o=o+Math.imul(B,W)|0,n=n+Math.imul(R,X)|0,i=i+Math.imul(R,$)|0,i=i+Math.imul(O,X)|0,o=o+Math.imul(O,$)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(S,rt)|0,i=i+Math.imul(S,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,at)|0,i=i+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,n=n+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,i=i+Math.imul(w,ut)|0,o=o+Math.imul(w,ct)|0,n=n+Math.imul(v,ht)|0,i=i+Math.imul(v,lt)|0,i=i+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var St=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(F,G),i=Math.imul(F,W),i=i+Math.imul(D,G)|0,o=Math.imul(D,W),n=n+Math.imul(N,X)|0,i=i+Math.imul(N,$)|0,i=i+Math.imul(B,X)|0,o=o+Math.imul(B,$)|0,n=n+Math.imul(R,J)|0,i=i+Math.imul(R,tt)|0,i=i+Math.imul(O,J)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(S,ot)|0,i=i+Math.imul(S,at)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ct)|0,i=i+Math.imul(E,ut)|0,o=o+Math.imul(E,ct)|0,n=n+Math.imul(_,ht)|0,i=i+Math.imul(_,lt)|0,i=i+Math.imul(w,ht)|0,o=o+Math.imul(w,lt)|0,n=n+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(F,X),i=Math.imul(F,$),i=i+Math.imul(D,X)|0,o=Math.imul(D,$),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(B,J)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(R,rt)|0,i=i+Math.imul(R,nt)|0,i=i+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,at)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(S,ut)|0,i=i+Math.imul(S,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(k,ht)|0,i=i+Math.imul(k,lt)|0,i=i+Math.imul(E,ht)|0,o=o+Math.imul(E,lt)|0,n=n+Math.imul(_,pt)|0,i=i+Math.imul(_,mt)|0,i=i+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var Ct=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(F,J),i=Math.imul(F,tt),i=i+Math.imul(D,J)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(R,ot)|0,i=i+Math.imul(R,at)|0,i=i+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ct)|0,n=n+Math.imul(S,ht)|0,i=i+Math.imul(S,lt)|0,i=i+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var Tt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(F,rt),i=Math.imul(F,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,at)|0,i=i+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,n=n+Math.imul(R,ut)|0,i=i+Math.imul(R,ct)|0,i=i+Math.imul(O,ut)|0,o=o+Math.imul(O,ct)|0,n=n+Math.imul(T,ht)|0,i=i+Math.imul(T,lt)|0,i=i+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0,n=n+Math.imul(S,pt)|0,i=i+Math.imul(S,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var It=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(F,ot),i=Math.imul(F,at),i=i+Math.imul(D,ot)|0,o=Math.imul(D,at),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ct)|0,i=i+Math.imul(B,ut)|0,o=o+Math.imul(B,ct)|0,n=n+Math.imul(R,ht)|0,i=i+Math.imul(R,lt)|0,i=i+Math.imul(O,ht)|0,o=o+Math.imul(O,lt)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Pt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(F,ut),i=Math.imul(F,ct),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ct),n=n+Math.imul(N,ht)|0,i=i+Math.imul(N,lt)|0,i=i+Math.imul(B,ht)|0,o=o+Math.imul(B,lt)|0,n=n+Math.imul(R,pt)|0,i=i+Math.imul(R,mt)|0,i=i+Math.imul(O,pt)|0,o=o+Math.imul(O,mt)|0;var Rt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(F,ht),i=Math.imul(F,lt),i=i+Math.imul(D,ht)|0,o=Math.imul(D,lt),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(B,pt)|0,o=o+Math.imul(B,mt)|0;var Ot=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(F,pt),i=Math.imul(F,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var jt=(c+n|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,u[0]=bt,u[1]=vt,u[2]=yt,u[3]=gt,u[4]=_t,u[5]=wt,u[6]=Mt,u[7]=kt,u[8]=Et,u[9]=xt,u[10]=St,u[11]=At,u[12]=Ct,u[13]=Tt,u[14]=It,u[15]=Pt,u[16]=Rt,u[17]=Ot,u[18]=jt,0!==c&&(u[19]=c,r.length++),r};Math.imul||(E=c),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?E(this,t,e):r<63?c(this,t,e):r<1024?f(this,t,e):h(this,t,e)},l.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},l.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},l.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},l.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var h=u,l=c,d=0;d<a;d++){var p=r[f+d],m=n[f+d],b=r[f+d+a],v=n[f+d+a],y=h*b-l*v;v=h*v+l*b,b=y,r[f+d]=p+b,n[f+d]=m+v,r[f+d+a]=p-b,n[f+d+a]=m-v,d!==s&&(y=u*h-c*l,l=u*l+c*h,h=y)}},l.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},l.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},l.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},l.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},l.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},l.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,h,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*h[d];u[d]=s[d]*h[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),h(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=u(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){n("number"===typeof t&&t>=0);var i;i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var h=0|this.words[c];this.words[c]=f<<26-o|h>>>o,f=h&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o=t.length+r;this._expand(o);var a,s=0;for(i=0;i<t.length;i++){a=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;a-=67108863&u,s=(a>>26)-(u/67108864|0),this.words[i+r]=67108863&a}for(;i<this.length-r;i++)a=(0|this.words[i+r])+s,s=a>>26,this.words[i+r]=67108863&a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)a=-(0|this.words[i])+s,s=a>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){s=new o(null),s.length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var h=u-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){if(n(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var i,a,s;return 0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);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){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var f=r.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()||a.isOdd())&&(i.iadd(f),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(e.iushrn(u);u-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var f=0,h=1;0===(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a)):(r.isub(e),a.isub(i))}var l;return l=0===e.cmpn(1)?i:a,l.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(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=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 r;if(this.length>1)r=1;else{e&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];r=i===t?0:i<t?-1:1}return 0!==this.negative?0|-r:r},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var x={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,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},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 r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[n-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,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(m,d),i(b,d),i(v,d),v.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(x[t])return x[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 x[t]=e,e},y.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},y.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(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 r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},y.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},y.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},y.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var m=d,b=0;0!==m.cmp(s);b++)m=m.redSqr();n(b<p);var v=this.pow(h,new o(1).iushln(p-b-1));l=l.redMul(v),h=v.redSqr(),d=d.redMul(h),p=b}return l},y.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},y.prototype.pow=function(t,e){if(e.isZero())return new o(1);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],f=u-1;f>=0;f--){var h=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=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 r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).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 r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}("undefined"===typeof t||t,this)}).call(e,r(18)(t))},function(t,e,r){var n=r(165);t.exports=function(t){return"string"!==typeof t?t:n(t)?t.slice(2):t}},function(t,e){t.exports=function(t){if("string"!==typeof t)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof t+", while checking isHexPrefixed.");return"0x"===t.slice(0,2)}},function(t,e,r){(function(t,n){var i;!function(o){function a(t){for(var e,r,n=[],i=0,o=t.length;i<o;)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<o?(r=t.charCodeAt(i++),56320==(64512&r)?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--)):n.push(e);return n}function s(t){for(var e,r=t.length,n=-1,i="";++n<r;)e=t[n],e>65535&&(e-=65536,i+=_(e>>>10&1023|55296),e=56320|1023&e),i+=_(e);return i}function u(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function c(t,e){return _(t>>e&63|128)}function f(t){if(0==(4294967168&t))return _(t);var e="";return 0==(4294965248&t)?e=_(t>>6&31|192):0==(4294901760&t)?(u(t),e=_(t>>12&15|224),e+=c(t,6)):0==(4292870144&t)&&(e=_(t>>18&7|240),e+=c(t,12),e+=c(t,6)),e+=_(63&t|128)}function h(t){for(var e,r=a(t),n=r.length,i=-1,o="";++i<n;)e=r[i],o+=f(e);return o}function l(){if(g>=y)throw Error("Invalid byte index");var t=255&v[g];if(g++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function d(){var t,e,r,n,i;if(g>y)throw Error("Invalid byte index");if(g==y)return!1;if(t=255&v[g],g++,0==(128&t))return t;if(192==(224&t)){var e=l();if((i=(31&t)<<6|e)>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if(e=l(),r=l(),(i=(15&t)<<12|e<<6|r)>=2048)return u(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(e=l(),r=l(),n=l(),(i=(15&t)<<18|e<<12|r<<6|n)>=65536&&i<=1114111))return i;throw Error("Invalid UTF-8 detected")}function p(t){v=a(t),y=v.length,g=0;for(var e,r=[];!1!==(e=d());)r.push(e);return s(r)}var m="object"==typeof e&&e,b=("object"==typeof t&&t&&t.exports,"object"==typeof n&&n);var v,y,g,_=String.fromCharCode,w={version:"2.0.0",encode:h,decode:p};void 0!==(i=function(){return w}.call(e,r,e,t))&&(t.exports=i)}()}).call(e,r(18)(t),r(4))},function(t,e,r){var n=r(5),i=r(70),o=r(69),a=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},s=function(t){var e=/^\D+(\d+).*$/.exec(t);return e?parseInt(e[1],10):null},u=function(t){var e=/^\D+\d*\[(\d+)\]$/.exec(t);return e?parseInt(e[1],10):null},c=function(t){var e=typeof t;if("string"===e)return o.isHexStrict(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,r){var n,u;if("bytes"===(t=a(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(n=r?64:40,!o.isAddress(e))throw new Error(e+" is not a valid address, or the checksum is invalid.");return o.leftPad(e.toLowerCase(),n)}if(n=s(t),t.startsWith("bytes")){if(!n)throw new Error("bytes[] not yet supported in solidity");if(r&&(n=32),n<1||n>32||n<e.replace(/^0x/i,"").length/2)throw new Error("Invalid bytes"+n+" for "+e);return o.rightPad(e,2*n)}if(t.startsWith("uint")){if(n%8||n<8||n>256)throw new Error("Invalid uint"+n+" size");if(u=c(e),u.bitLength()>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+u.bitLength());if(u.lt(new i(0)))throw new Error("Supplied uint "+u.toString()+" is negative");return n?o.leftPad(u.toString("hex"),n/8*2):u}if(t.startsWith("int")){if(n%8||n<8||n>256)throw new Error("Invalid int"+n+" size");if(u=c(e),u.bitLength()>n)throw new Error("Supplied int exceeds width: "+n+" vs "+u.bitLength());return u.lt(new i(0))?u.toTwos(n).toString("hex"):n?o.leftPad(u.toString("hex"),n/8*2):u}throw new Error("Unsupported or invalid type: "+t)},h=function(t){if(n.isArray(t))throw new Error("Autodetection of array types is not supported.");var e,r,a,s="";if(n.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)),n.isArray(s)){if((a=u(e))&&s.length!==a)throw new Error(e+" is not matching the given array "+JSON.stringify(s));a=s.length}return n.isArray(s)?(r=s.map(function(t){return f(e,t,a).toString("hex").replace("0x","")}),r.join("")):(r=f(e,s,a),r.toString("hex").replace("0x",""))},l=function(){var t=Array.prototype.slice.call(arguments),e=n.map(t,h);return o.sha3("0x"+e.join(""))};t.exports=l},function(t,e,r){var n=function(t,e){var n=r(169),i="function"===typeof e;if(t>65536){if(!i)throw new Error("Requested too many random bytes.");e(new Error("Requested too many random bytes."))}if("undefined"!==typeof n&&n.randomBytes){if(!i)return"0x"+n.randomBytes(t).toString("hex");n.randomBytes(t,function(t,r){t?e(u):e(null,"0x"+r.toString("hex"))})}else{var o;if("undefined"!==typeof n?o=n:"undefined"!==typeof msCrypto&&(o=msCrypto),o&&o.getRandomValues){var a=o.getRandomValues(new Uint8Array(t)),s="0x"+Array.from(a).map(function(t){return t.toString(16)}).join("");if(!i)return s;e(null,s)}else{var u=new Error('No "crypto" object available. This Browser doesn\'t support generating secure random bytes.');if(!i)throw u;e(u)}}};t.exports=n},function(t,e,r){t.exports=r(170)},function(t,e){t.exports=window.crypto},function(t,e){},function(t,e,r){"use strict";var n=r(73),i=r(7).errors,o=function(t){this.requestManager=t,this.requests=[]};o.prototype.add=function(t){this.requests.push(t)},o.prototype.execute=function(){var t=this.requests;this.requestManager.sendBatch(t,function(e,r){r=r||[],t.map(function(t,e){return r[e]||{}}).forEach(function(e,r){if(t[r].callback){if(e&&e.error)return t[r].callback(i.ErrorResponse(e));if(!n.isValidResponse(e))return t[r].callback(i.InvalidResponse(e));t[r].callback(null,t[r].format?t[r].format(e.result):e.result)}})})},t.exports=o},function(t,e,r){"use strict";var n=null,i=Function("return this")();"undefined"!==typeof i.ethereumProvider?n=i.ethereumProvider:"undefined"!==typeof i.web3&&i.web3.currentProvider&&(i.web3.currentProvider.sendAsync&&(i.web3.currentProvider.send=i.web3.currentProvider.sendAsync,delete i.web3.currentProvider.sendAsync),!i.web3.currentProvider.on&&i.web3.currentProvider.connection&&"ipcProviderWrapper"===i.web3.currentProvider.connection.constructor.name&&(i.web3.currentProvider.on=function(t,e){if("function"!==typeof e)throw new Error("The second parameter callback must be a function.");switch(t){case"data":this.connection.on("data",function(t){var r="";t=t.toString();try{r=JSON.parse(t)}catch(r){return e(new Error("Couldn't parse response data"+t))}r.id||-1===r.method.indexOf("_subscription")||e(null,r)});break;default:this.connection.on(t,e)}}),n=i.web3.currentProvider),t.exports=n},function(t,e,r){"use strict";var n=r(5),i=r(7).errors,o=null;o="undefined"!==typeof window?window.WebSocket:r(175).w3cwebsocket;var a=function(t){var e=this;this.responseCallbacks={},this.notificationCallbacks=[],this.connection=new o(t),this.addDefaultEvents(),this.connection.onmessage=function(t){var r="string"===typeof t.data?t.data:"";e._parseResponse(r).forEach(function(t){var r=null;n.isArray(t)?t.forEach(function(t){e.responseCallbacks[t.id]&&(r=t.id)}):r=t.id,r||-1===t.method.indexOf("_subscription")?e.responseCallbacks[r]&&(e.responseCallbacks[r](null,t),delete e.responseCallbacks[r]):e.notificationCallbacks.forEach(function(e){n.isFunction(e)&&e(null,t)})})}};a.prototype.addDefaultEvents=function(){var t=this;this.connection.onerror=function(){t._timeout()},this.connection.onclose=function(e){t._timeout();var r=t.notificationCallbacks;t.reset(),r.forEach(function(t){n.isFunction(t)&&t(e)})}},a.prototype._parseResponse=function(t){var e=this,r=[];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 n=null;try{n=JSON.parse(t)}catch(r){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,n&&r.push(n)}),r},a.prototype._addResponseCallback=function(t,e){var r=t.id||t[0].id,n=t.method||t[0].method;this.responseCallbacks[r]=e,this.responseCallbacks[r].method=n},a.prototype._timeout=function(){for(var t in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(t)&&(this.responseCallbacks[t](i.InvalidConnection("on IPC")),delete this.responseCallbacks[t])},a.prototype.send=function(t,e){var r=this;return this.connection.readyState===this.connection.CONNECTING?void setTimeout(function(){r.send(t,e)},10):this.connection.readyState!==this.connection.OPEN?(console.error("connection not open on send()"),void("function"===typeof this.connection.onerror?this.connection.onerror(new Error("connection not open")):console.error("no error callback"))):(this.connection.send(JSON.stringify(t)),void this._addResponseCallback(t,e))},a.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}},a.prototype.removeListener=function(t,e){var r=this;switch(t){case"data":this.notificationCallbacks.forEach(function(t,n){t===e&&r.notificationCallbacks.splice(n,1)})}},a.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}},a.prototype.reset=function(){this._timeout(),this.notificationCallbacks=[],this.addDefaultEvents()},t.exports=a},function(t,e,r){function n(t,e){return e?new o(t,e):new o(t)}var i=function(){return this||{}}(),o=i.WebSocket||i.MozWebSocket,a=r(176);t.exports={w3cwebsocket:o?n:null,version:a}},function(t,e,r){t.exports=r(177).version},function(t,e){t.exports={_from:"git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible",_id:"[email protected]",_inBundle:!1,_integrity:"sha1-Gl32YdklP5wVz9a1TAe0ZaU5iH4=",_location:"/websocket",_phantomChildren:{},_requested:{type:"git",raw:"websocket@git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible",name:"websocket",escapedName:"websocket",rawSpec:"git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible",saveSpec:"git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible",fetchSpec:"git://github.com/frozeman/WebSocket-Node.git",gitCommittish:"browserifyCompatible"},_requiredBy:["/web3-providers-ws"],_resolved:"git://github.com/frozeman/WebSocket-Node.git#7004c39c42ac98875ab61126e5b4a925430f592c",_spec:"websocket@git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible",_where:"/Users/rstorm/repos/generate_keys_dapp/node_modules/web3-providers-ws",author:{name:"Brian McKelvey",email:"[email protected]",url:"https://www.worlize.com/"},browser:"lib/browser.js",bugs:{url:"https://github.com/theturtle32/WebSocket-Node/issues"},bundleDependencies:!1,config:{verbose:!1},contributors:[{name:"I\xf1aki Baz Castillo",email:"[email protected]",url:"http://dev.sipdoc.net"}],dependencies:{debug:"^2.2.0",nan:"^2.3.3","typedarray-to-buffer":"^3.1.2",yaeti:"^0.0.6"},deprecated:!1,description:"Websocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455.",devDependencies:{"buffer-equal":"^1.0.0",faucet:"^0.0.1",gulp:"git+https://github.com/gulpjs/gulp.git#4.0","gulp-jshint":"^2.0.4",jshint:"^2.0.0","jshint-stylish":"^2.2.1",tape:"^4.0.1"},directories:{lib:"./lib"},engines:{node:">=0.8.0"},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",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"}},function(t,e,r){var n=r(7).errors,i=r(179),o=function(t,e){this.host=t||"http://localhost:8545",this.timeout=e||0,this.connected=!1};o.prototype.send=function(t,e){var r=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=n.InvalidResponse(o.responseText)}r.connected=!0,e(i,t)}},o.ontimeout=function(){r.connected=!1,e(n.ConnectionTimeout(this.timeout))};try{o.send(JSON.stringify(t))}catch(t){this.connected=!1,e(n.InvalidConnection(this.host))}},t.exports=o},function(t,e){t.exports=XMLHttpRequest},function(t,e,r){"use strict";var n=r(5),i=r(7).errors,o=r(181),a=function(t,e){var r=this;this.responseCallbacks={},this.notificationCallbacks=[],this.path=t,this.connection=e.connect({path:this.path}),this.addDefaultEvents();var i=function(t){var e=null;n.isArray(t)?t.forEach(function(t){r.responseCallbacks[t.id]&&(e=t.id)}):e=t.id,e||-1===t.method.indexOf("_subscription")?r.responseCallbacks[e]&&(r.responseCallbacks[e](null,t),delete r.responseCallbacks[e]):r.notificationCallbacks.forEach(function(e){n.isFunction(e)&&e(null,t)})};"Socket"===e.constructor.name?o(this.connection).done(i):this.connection.on("data",function(t){r._parseResponse(t.toString()).forEach(i)})};a.prototype.addDefaultEvents=function(){var t=this;this.connection.on("connect",function(){}),this.connection.on("error",function(){t._timeout()}),this.connection.on("end",function(){t._timeout(),t.notificationCallbacks.forEach(function(t){n.isFunction(t)&&t(new Error("IPC socket connection closed"))})}),this.connection.on("timeout",function(){t._timeout()})},a.prototype._parseResponse=function(t){var e=this,r=[];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 n=null;try{n=JSON.parse(t)}catch(r){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,n&&r.push(n)}),r},a.prototype._addResponseCallback=function(t,e){var r=t.id||t[0].id,n=t.method||t[0].method;this.responseCallbacks[r]=e,this.responseCallbacks[r].method=n},a.prototype._timeout=function(){for(var t in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(t)&&(this.responseCallbacks[t](i.InvalidConnection("on IPC")),delete this.responseCallbacks[t])},a.prototype.reconnect=function(){this.connection.connect({path:this.path})},a.prototype.send=function(t,e){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(t)),this._addResponseCallback(t,e)},a.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;default:this.connection.on(t,e)}},a.prototype.once=function(t,e){if("function"!==typeof e)throw new Error("The second parameter callback must be a function.");this.connection.once(t,e)},a.prototype.removeListener=function(t,e){var r=this;switch(t){case"data":this.notificationCallbacks.forEach(function(t,n){t===e&&r.notificationCallbacks.splice(n,1)});break;default:this.connection.removeListener(t,e)}},a.prototype.removeAllListeners=function(t){switch(t){case"data":this.notificationCallbacks=[];break;default:this.connection.removeAllListeners(t)}},a.prototype.reset=function(){this._timeout(),this.notificationCallbacks=[],this.connection.removeAllListeners("error"),this.connection.removeAllListeners("end"),this.connection.removeAllListeners("timeout"),this.addDefaultEvents()},t.exports=a},function(t,e,r){var n,i;!function(r,o,a,s,u,c){function f(t,e){return function(){return t.call(this,e.apply(this,arguments))}}function h(t){return function(e){return e[t]}}function l(t,e){return e.apply(c,t)}function d(t){var e=t.length-1,r=a.prototype.slice;if(0==e)return function(){return t.call(this,r.call(arguments))};if(1==e)return function(){return t.call(this,arguments[0],r.call(arguments,1))};var n=a(t.length);return function(){for(var i=0;i<e;i++)n[i]=arguments[i];return n[e]=r.call(arguments,e),t.apply(this,n)}}function p(t){return function(e,r){return t(r,e)}}function m(t,e){return function(r){return t(r)&&e(r)}}function b(){}function v(){return!0}function y(t){return function(){return t}}function g(t,e){return e&&e.constructor===t}function _(t){return t!==c}function w(t,e){return e instanceof o&&C(function(t){return t in e},t)}function M(t,e){return[t,e]}function k(t){return I(t.reduce(p(M),J))}function E(t){return S(function(t,e){return t.unshift(e),t},[],t)}function x(t,e){return e?M(t(tt(e)),x(t,et(e))):J}function S(t,e,r){return r?t(S(t,e,et(r)),tt(r)):e}function A(t,e,r){function n(t,r){return t?e(tt(t))?(r(tt(t)),et(t)):M(tt(t),n(et(t),r)):J}return n(t,r||b)}function C(t,e){return!e||t(tt(e))&&C(t,et(e))}function T(t,e){t&&(tt(t).apply(null,e),T(et(t),e))}function I(t){function e(t,r){return t?e(et(t),M(tt(t),r)):r}return e(t,J)}function P(t,e){return e&&(t(tt(e))?tt(e):P(t,et(e)))}function R(t){"use strict";function e(){var t=0;U!==c&&U.length>m&&(r("Max buffer length exceeded: textNode"),t=Math.max(t,U.length)),q.length>m&&(r("Max buffer length exceeded: numberNode"),t=Math.max(t,q.length)),D=m-t+X}function r(t){U!==c&&(l(U),d(),U=c),a=s(t+"\nLn: "+Q+"\nCol: "+$+"\nChr: "+u),p(H(c,c,a))}function n(){if(K==y)return l({}),d(),void(V=!0);K===g&&0===Z||r("Unexpected end"),U!==c&&(l(U),d(),U=c),V=!0}function i(t){return"\r"==t||"\n"==t||" "==t||"\t"==t}function o(t){if(!a){if(V)return r("Cannot write after close");var n=0;for(u=t[0];u&&(f=u,u=t[n++]);)switch(X++,"\n"==u?(Q++,$=0):$++,K){case y:if("{"===u)K=_;else if("["===u)K=M;else if(!i(u))return r("Non-whitespace before {[.");continue;case x:case _:if(i(u))continue;if(K===x)Y.push(S);else{if("}"===u){l({}),d(),K=Y.pop()||g;continue}Y.push(w)}if('"'!==u)return r('Malformed object key should start with " ');K=E;continue;case S:case w:if(i(u))continue;if(":"===u)K===w?(Y.push(w),U!==c&&(l({}),h(U),U=c),Z++):U!==c&&(h(U),U=c),K=g;else if("}"===u)U!==c&&(l(U),d(),U=c),d(),Z--,K=Y.pop()||g;else{if(","!==u)return r("Bad object");K===w&&Y.push(w),U!==c&&(l(U),d(),U=c),K=x}continue;case M:case g:if(i(u))continue;if(K===M){if(l([]),Z++,K=g,"]"===u){d(),Z--,K=Y.pop()||g;continue}Y.push(k)}if('"'===u)K=E;else if("{"===u)K=_;else if("["===u)K=M;else if("t"===u)K=A;else if("f"===u)K=I;else if("n"===u)K=j;else if("-"===u)q+=u;else if("0"===u)q+=u,K=F;else{if(-1==="123456789".indexOf(u))return r("Bad value");q+=u,K=F}continue;case k:if(","===u)Y.push(k),U!==c&&(l(U),d(),U=c),K=g;else{if("]"!==u){if(i(u))continue;return r("Bad array")}U!==c&&(l(U),d(),U=c),d(),Z--,K=Y.pop()||g}continue;case E:U===c&&(U="");var o=n-1;t:for(;;){for(;W>0;)if(G+=u,u=t.charAt(n++),4===W?(U+=String.fromCharCode(parseInt(G,16)),W=0,o=n-1):W++,!u)break t;if('"'===u&&!z){K=Y.pop()||g,U+=t.substring(o,n-1);break}if("\\"===u&&!z&&(z=!0,U+=t.substring(o,n-1),!(u=t.charAt(n++))))break;if(z){if(z=!1,"n"===u?U+="\n":"r"===u?U+="\r":"t"===u?U+="\t":"f"===u?U+="\f":"b"===u?U+="\b":"u"===u?(W=1,G=""):U+=u,u=t.charAt(n++),o=n-1,u)continue;break}b.lastIndex=n;var s=b.exec(t);if(!s){n=t.length+1,U+=t.substring(o,n-1);break}if(n=s.index+1,!(u=t.charAt(s.index))){U+=t.substring(o,n-1);break}}continue;case A:if(!u)continue;if("r"!==u)return r("Invalid true started with t"+u);K=C;continue;case C:if(!u)continue;if("u"!==u)return r("Invalid true started with tr"+u);K=T;continue;case T:if(!u)continue;if("e"!==u)return r("Invalid true started with tru"+u);l(!0),d(),K=Y.pop()||g;continue;case I:if(!u)continue;if("a"!==u)return r("Invalid false started with f"+u);K=P;continue;case P:if(!u)continue;if("l"!==u)return r("Invalid false started with fa"+u);K=R;continue;case R:if(!u)continue;if("s"!==u)return r("Invalid false started with fal"+u);K=O;continue;case O:if(!u)continue;if("e"!==u)return r("Invalid false started with fals"+u);l(!1),d(),K=Y.pop()||g;continue;case j:if(!u)continue;if("u"!==u)return r("Invalid null started with n"+u);K=N;continue;case N:if(!u)continue;if("l"!==u)return r("Invalid null started with nu"+u);K=B;continue;case B:if(!u)continue;if("l"!==u)return r("Invalid null started with nul"+u);l(null),d(),K=Y.pop()||g;continue;case L:if("."!==u)return r("Leading zero not followed by .");q+=u,K=F;continue;case F:if(-1!=="0123456789".indexOf(u))q+=u;else if("."===u){if(-1!==q.indexOf("."))return r("Invalid number has two dots");q+=u}else if("e"===u||"E"===u){if(-1!==q.indexOf("e")||-1!==q.indexOf("E"))return r("Invalid number has two exponential");q+=u}else if("+"===u||"-"===u){if("e"!==f&&"E"!==f)return r("Invalid symbol in number");q+=u}else q&&(l(parseFloat(q)),d(),q=""),n--,K=Y.pop()||g;continue;default:return r("Unknown state: "+K)}X>=D&&e()}}var a,u,f,h=t(_t).emit,l=t(wt).emit,d=t(Mt).emit,p=t(dt).emit,m=65536,b=/[\\"\n]/g,v=0,y=v++,g=v++,_=v++,w=v++,M=v++,k=v++,E=v++,x=v++,S=v++,A=v++,C=v++,T=v++,I=v++,P=v++,R=v++,O=v++,j=v++,N=v++,B=v++,L=v++,F=v,D=m,U=c,q="",z=!1,V=!1,K=y,Y=[],G=null,W=0,Z=0,X=0,$=0,Q=1;t(vt).on(o),t(yt).on(n)}function O(t,e){"use strict";var r,n={};for(var i in e)t(i).on(function(t){return function(e){r=t(r,e)}}(e[i]),n);t(ht).on(function(t){var e,n=tt(r),i=it(n),o=et(r);o&&(e=ot(tt(o)),e[i]=t)}),t(lt).on(function(){var t,e=tt(r),n=it(e),i=et(r);i&&(t=ot(tt(i)),delete t[n])}),t(gt).on(function(){for(var r in e)t(r).un(n)})}function j(t){var e={};return t&&t.split("\r\n").forEach(function(t){var r=t.indexOf(": ");e[t.substring(0,r)]=t.substring(r+2)}),e}function N(t,e){function r(t){return{"http:":80,"https:":443}[t]}function n(e){return e.port||r(e.protocol||t.protocol)}return!!(e.protocol&&e.protocol!=t.protocol||e.host&&e.host!=t.host||e.host&&n(e)!=n(t))}function B(t){var e=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/,r=e.exec(t)||[];return{protocol:r[1]||"",host:r[2]||"",port:r[3]||""}}function L(){return new XMLHttpRequest}function F(t,e,n,i,o,a,s){"use strict";function u(){var t=e.responseText,r=t.substr(l);r&&f(r),l=$(t)}var f=t(vt).emit,h=t(dt).emit,l=0,d=!0;t(gt).on(function(){e.onreadystatechange=null,e.abort()}),"onprogress"in e&&(e.onprogress=u),e.onreadystatechange=function(){function r(){try{d&&t(bt).emit(e.status,j(e.getAllResponseHeaders())),d=!1}catch(t){}}switch(e.readyState){case 2:case 3:return r();case 4:r();2==String(e.status)[0]?(u(),t(yt).emit()):h(H(e.status,e.responseText))}};try{e.open(n,i,!0);for(var p in a)e.setRequestHeader(p,a[p]);N(r.location,B(i))||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.withCredentials=s,e.send(o)}catch(t){r.setTimeout(Z(h,H(c,c,t)),0)}}function D(t,e){return{key:t,node:e}}function U(t){function e(t,e){var r=ot(tt(t));return g(a,r)?i(t,$(r),e):t}function r(t,r){if(!t)return c(r),i(t,at,r);var o=e(t,r),a=et(o),s=it(tt(o));return n(a,s,r),M(D(s,r),a)}function n(t,e,r){ot(tt(t))[e]=r}function i(t,e,r){t&&n(t,e,r);var i=M(D(e,r),t);return s(i),i}function o(t){return u(t),et(t)||f(ot(tt(t)))}var s=t(ct).emit,u=t(ft).emit,c=t(mt).emit,f=t(pt).emit,h={};return h[wt]=r,h[Mt]=o,h[_t]=i,h}function q(t,e,r){function n(t){return function(e){return e.id==t}}var i,o;return{on:function(r,n){var a={listener:r,id:n||r};return e&&e.emit(t,r,a.id),i=M(a,i),o=M(r,o),this},emit:function(){T(o,arguments)},un:function(e){var a;i=A(i,n(e),function(t){a=t}),a&&(o=A(o,function(t){return t==a.listener}),r&&r.emit(t,a.listener,a.id))},listeners:function(){return o},hasListener:function(t){return _(P(t?n(t):v,i))}}}function z(){function t(t){return r[t]=q(t,n,i)}function e(e){return r[e]||t(e)}var r={},n=t("newListener"),i=t("removeListener");return["emit","on","un"].forEach(function(t){e[t]=d(function(r,n){l(n,e(r)[t])})}),e}function H(t,e,r){try{var n=u.parse(e)}catch(t){}return{statusCode:t,body:e,jsonBody:n,thrown:r}}function V(t,e){function r(t,e,r){var n=I(r);t(e,E(et(x(it,n))),E(x(ot,n)))}function n(e,n,i){var o=t(e).emit;n.on(function(t){var e=i(t);!1!==e&&r(o,ot(e),t)},e),t("removeListener").on(function(r){r==e&&(t(r).listeners()||n.un(e))})}var i={node:t(ft),path:t(ct)};t("newListener").on(function(t){var r=/(node|path):(.*)/.exec(t);if(r){var o=i[r[1]];o.hasListener(t)||n(t,o,e(r[2]))}})}function K(t,e){function r(e,r){return t(e).on(i(r),r),f}function n(t,e,r){r=r||e;var n=i(e);return t.on(function(){var e=!1;f.forget=function(){e=!0},l(arguments,n),delete f.forget,e&&t.un(r)},r),f}function i(t){return function(){try{return t.apply(f,arguments)}catch(t){setTimeout(function(){throw t})}}}function o(e,r){return t(e+":"+r)}function a(t){return function(){var e=t.apply(this,arguments);_(e)&&(e==W.drop?m():v(e))}}function s(t,e,r){var i;i="node"==t?a(r):r,n(o(t,e),i,r)}function u(t,e){for(var r in e)s(t,r,e[r])}function c(t,e,r){return Q(e)?s(t,e,r):u(t,e),f}var f,h=/^(node|path):./,p=t(pt),m=t(lt).emit,v=t(ht).emit,g=d(function(e,r){if(f[e])l(r,f[e]);else{var i=t(e),o=r[0];h.test(e)?n(i,o):i.on(o)}return f}),w=function(e,r,n){if("done"==e)p.un(r);else if("node"==e||"path"==e)t.un(e+":"+r,n);else{var i=r;t(e).un(i)}return f};return t(mt).on(function(t){f.root=y(t)}),t(bt).on(function(t,e){f.header=function(t){return t?e[t]:e}}),f={on:g,addListener:g,removeListener:w,emit:t.emit,node:Z(c,"node"),path:Z(c,"path"),done:Z(n,p),start:Z(r,bt),fail:t(dt).on,abort:t(gt).emit,header:b,root:b,source:e}}function Y(t,e,r,n,i){var o=z();return e&&F(o,L(),t,e,r,n,i),R(o),O(o,U(o)),V(o,st),K(o,e)}function G(t,e,r,n,i,o,a){return i=i?u.parse(u.stringify(i)):{},n?Q(n)||(n=u.stringify(n),i["Content-Type"]=i["Content-Type"]||"application/json"):n=null,t(r||"GET",function(t,e){return!1===e&&(-1==t.indexOf("?")?t+="?":t+="&",t+="_="+(new Date).getTime()),t}(e,a),n,i,o||!1)}function W(t){var e=rt("resume","pause","pipe"),r=Z(w,e);return t?r(t)||Q(t)?G(Y,t):G(Y,t.url,t.method,t.body,t.headers,t.withCredentials,t.cached):Y()}var Z=d(function(t,e){var r=e.length;return d(function(n){for(var i=0;i<n.length;i++)e[r+i]=n[i];return e.length=r+n.length,t.apply(this,e)})}),X=(d(function(t){function e(t,e){return[l(t,e)]}var r=k(t);return d(function(t){return S(e,t,r)[0]})}),d(function(t){return d(function(e){for(var r,n=0;n<$(t);n++)if(r=l(e,t[n]))return r})})),$=h("length"),Q=Z(g,String),J=null,tt=h(0),et=h(1),rt=d(k),nt=function(){var t=function(t){return t.exec.bind(t)},e=d(function(e){return e.unshift(/^/),t(RegExp(e.map(h("source")).join("")))}),r=/(\$?)/,n=/([\w-_]+|\*)/,i=/()/,o=/\["([^"]+)"\]/,a=/\[(\d+|\*)\]/,s=/{([\w ]*?)}/,u=/(?:{([\w ]*?)})?/,c=e(r,n,u),f=e(r,o,u),l=e(r,a,u),p=e(r,i,s),m=e(/\.\./),b=e(/\./),v=e(r,/!/),y=e(/$/);return function(t){return t(X(c,f,l,p),m,b,v,y)}}(),it=h("key"),ot=h("node"),at={},st=nt(function(t,e,r,n,i){function o(t,e){var r=e[E];return m(r&&"*"!=r?function(t){return A(t)==r}:v,t)}function a(t,e){var r=e[x];return r?m(f(Z(w,k(r.split(/\W+/))),C),t):t}function u(t,e){return!e[M]?t:m(t,tt)}function c(t){function e(t){return A(t)!=at}return t==v?v:m(e,f(t,et))}function h(t){if(t==v)return v;var e=l(),r=t,n=c(function(t){return i(t)}),i=X(e,r,n);return i}function l(){return function(t){return A(t)==at}}function d(t){return function(e){var r=t(e);return!0===r?tt(e):r}}function p(t,e,r){return S(function(t,e){return e(t,r)},e,t)}function b(t,e,r,n,i){var o=t(r);if(o){var a=p(e,n,o);return i(r.substr($(o[0])),a)}}function y(t,e){return Z(b,t,e)}function g(t,e){return e}function _(t,e){return T(t,e,t?_:g)}var M=1,E=2,x=3,A=f(it,tt),C=f(ot,tt),T=X(y(t,rt(u,a,o,c)),y(e,rt(h)),y(r,rt()),y(n,rt(u,l)),y(i,rt(d)),function(t){throw s('"'+t+'" could not be tokenised')});return function(t){try{return _(t,v)}catch(e){throw s('Could not compile "'+t+'" because '+e.message)}}}),ut=1,ct=ut++,ft=ut++,ht=ut++,lt=ut++,dt="fail",pt=ut++,mt=ut++,bt="start",vt="data",yt="end",gt=ut++,_t=ut++,wt=ut++,Mt=ut++;W.drop=function(){return W.drop},n=[],(i=function(){return W}.apply(e,n))!==c&&(t.exports=i)}(function(){try{return window}catch(t){return self}}(),Object,Array,Error,JSON)},function(t,e,r){"use strict";var n=r(7).formatters,i=r(22),o=r(11),a=function(t){var e=function(e){var r;return e.property?(t[e.property]||(t[e.property]={}),r=t[e.property]):r=t,e.methods&&e.methods.forEach(function(e){e instanceof i||(e=new i(e)),e.attachToObject(r),e.setRequestManager(t._requestManager)}),t};return e.formatters=n,e.utils=o,e.Method=i,e};t.exports=a},function(t,e,r){(function(e,r,n){!function(e){t.exports=e()}(function(){var t,i,o;return function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){var u="function"==typeof _dereq_&&_dereq_;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=r[a]={exports:{}};e[a][0].call(f.exports,function(t){var r=e[a][1][t];return i(r||t)},f,f.exports,t,e,r,n)}return r[a].exports}for(var o="function"==typeof _dereq_&&_dereq_,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(t,e,r){"use strict";e.exports=function(t){function e(t){var e=new r(t),n=e.promise();return e.setHowMany(1),e.setUnwrap(),e.init(),n}var r=t._SomePromiseArray;t.any=function(t){return e(t)},t.prototype.any=function(){return e(this)}}},{}],2:[function(t,r,n){"use strict";function i(){this._isTickUsed=!1,this._lateQueue=new f(16),this._normalQueue=new f(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var t=this;this.drainQueues=function(){t._drainQueues()},this._schedule=c}function o(t,e,r){this._lateQueue.push(t,e,r),this._queueTick()}function a(t,e,r){this._normalQueue.push(t,e,r),this._queueTick()}function s(t){this._normalQueue._pushOne(t),this._queueTick()}var u;try{throw new Error}catch(t){u=t}var c=t("./schedule"),f=t("./queue"),h=t("./util");i.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},i.prototype.disableTrampolineIfNecessary=function(){h.hasDevTools&&(this._trampolineEnabled=!1)},i.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},i.prototype.fatalError=function(t,r){r?(e.stderr.write("Fatal "+(t instanceof Error?t.stack:t)),e.exit(2)):this.throwLater(t)},i.prototype.throwLater=function(t,e){if(1===arguments.length&&(e=t,t=function(){throw e}),"undefined"!==typeof setTimeout)setTimeout(function(){t(e)},0);else try{this._schedule(function(){t(e)})}catch(t){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},h.hasDevTools?(i.prototype.invokeLater=function(t,e,r){this._trampolineEnabled?o.call(this,t,e,r):this._schedule(function(){setTimeout(function(){t.call(e,r)},100)})},i.prototype.invoke=function(t,e,r){this._trampolineEnabled?a.call(this,t,e,r):this._schedule(function(){t.call(e,r)})},i.prototype.settlePromises=function(t){this._trampolineEnabled?s.call(this,t):this._schedule(function(){t._settlePromises()})}):(i.prototype.invokeLater=o,i.prototype.invoke=a,i.prototype.settlePromises=s),i.prototype.invokeFirst=function(t,e,r){this._normalQueue.unshift(t,e,r),this._queueTick()},i.prototype._drainQueue=function(t){for(;t.length()>0;){var e=t.shift();if("function"===typeof e){var r=t.shift(),n=t.shift();e.call(r,n)}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},r.exports=i,r.exports.firstLineError=u},{"./queue":26,"./schedule":29,"./util":36}],3:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){var i=!1,o=function(t,e){this._reject(e)},a=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(o,o,null,this,t)},s=function(t,e){0===(50397184&this._bitField)&&this._resolveCallback(e.target)},u=function(t,e){e.promiseRejectionQueued||this._reject(t)};t.prototype.bind=function(o){i||(i=!0,t.prototype._propagateFrom=n.propagateFromFunction(),t.prototype._boundValue=n.boundValueFunction());var c=r(o),f=new t(e);f._propagateFrom(this,1);var h=this._target();if(f._setBoundTo(c),c instanceof t){var l={promiseRejectionQueued:!1,promise:f,target:h,bindingPromise:c};h._then(e,a,void 0,f,l),c._then(s,u,void 0,f,l),f._setOnCancel(c)}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,r){return t.resolve(r).bind(e)}}},{}],4:[function(t,e,r){"use strict";function n(){try{Promise===o&&(Promise=i)}catch(t){}return o}var i;"undefined"!==typeof Promise&&(i=Promise);var o=t("./promise")();o.noConflict=n,e.exports=o},{"./promise":22}],5:[function(t,e,r){"use strict";var n=Object.create;if(n){var i=n(null),o=n(null);i[" size"]=o[" size"]=0}e.exports=function(e){function r(t,r){var n;if(null!=t&&(n=t[r]),"function"!==typeof n){var i="Object "+s.classString(t)+" has no method '"+s.toString(r)+"'";throw new e.TypeError(i)}return n}function n(t){return r(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 a,s=t("./util"),u=s.canEvaluate;s.isIdentifier;e.prototype.call=function(t){var e=[].slice.call(arguments,1);return e.push(t),this._then(n,void 0,void 0,e,void 0)},e.prototype.get=function(t){var e,r="number"===typeof t;if(r)e=o;else if(u){var n=a(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,r){"use strict";e.exports=function(e,r,n,i){var o=t("./util"),a=o.tryCatch,s=o.errorObj,u=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 r=t._cancellationParent;if(null==r||!r.isCancellable()){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}t._isFollowing()&&t._followee().cancel(),e=t,t=r}},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(),u.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 r=0;r<t.length;++r)this._doInvokeOnCancel(t[r],e);else if(void 0!==t)if("function"===typeof t){if(!e){var n=a(t).call(this._boundValue());n===s&&(this._attachExtraTrace(n.e),u.throwLater(n.e))}}else t._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var t=this._onCancel();this._unsetOnCancel(),u.invoke(this._doInvokeOnCancel,this,t)},e.prototype._invokeInternalOnCancel=function(){this.isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(t,e,r){"use strict";e.exports=function(e){function r(t,r,s){return function(u){var c=s._boundValue();t:for(var f=0;f<t.length;++f){var h=t[f];if(h===Error||null!=h&&h.prototype instanceof Error){if(u instanceof h)return o(r).call(c,u)}else if("function"===typeof h){var l=o(h).call(c,u);if(l===a)return l;if(l)return o(r).call(c,u)}else if(n.isObject(u)){for(var d=i(h),p=0;p<d.length;++p){var m=d[p];if(h[m]!=u[m])continue t}return o(r).call(c,u)}}return e}}var n=t("./util"),i=t("./es5").keys,o=n.tryCatch,a=n.errorObj;return r}},{"./es5":13,"./util":36}],8:[function(t,e,r){"use strict";e.exports=function(t){function e(){this._trace=new e.CapturedTrace(n())}function r(){if(i)return new e}function n(){var t=o.length-1;if(t>=0)return o[t]}var i=!1,o=[];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,o.push(this._trace))},e.prototype._popContext=function(){if(void 0!==this._trace){var t=o.pop(),e=t._promiseCreated;return t._promiseCreated=null,e}return null},e.CapturedTrace=null,e.create=r,e.deactivateLongStackTraces=function(){},e.activateLongStackTraces=function(){var r=t.prototype._pushContext,o=t.prototype._popContext,a=t._peekContext,s=t.prototype._peekContext,u=t.prototype._promiseCreated;e.deactivateLongStackTraces=function(){t.prototype._pushContext=r,t.prototype._popContext=o,t._peekContext=a,t.prototype._peekContext=s,t.prototype._promiseCreated=u,i=!1},i=!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(t,r,n){"use strict";r.exports=function(r,n){function i(t,e){return{promise:e}}function o(){return!1}function a(t,e,r){var n=this;try{t(e,r,function(t){if("function"!==typeof t)throw new TypeError("onCancel must be a function, got: "+D.toString(t));n._attachCancellationCallback(t)})}catch(t){return t}}function s(t){if(!this.isCancellable())return this;var e=this._onCancel();void 0!==e?D.isArray(e)?e.push(t):this._setOnCancel([e,t]):this._setOnCancel(t)}function u(){return this._onCancelField}function c(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 r=t._branchesRemainingToCancel;void 0===r&&(r=0),t._branchesRemainingToCancel=r+1}0!==(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function l(t,e){0!==(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function d(){var t=this._boundTo;return void 0!==t&&t instanceof r?t.isFulfilled()?t.value():void 0:t}function p(){this._trace=new R(this._peekContext())}function m(t,e){if(U(t)){var r=this._trace;if(void 0!==r&&e&&(r=r._parent),void 0!==r)r.attachExtraTrace(t);else if(!t.__stackCleaned__){var n=E(t);D.notEnumerableProp(t,"stack",n.message+"\n"+n.stack.join("\n")),D.notEnumerableProp(t,"__stackCleaned__",!0)}}}function b(t,e,r,n,i){if(void 0===t&&null!==e&&W){if(void 0!==i&&i._returnedNonUndefined())return;r&&(r+=" ");var o="a promise was created in a "+r+"handler but was not returned from it";n._warn(o,!0,e)}}function v(t,e){var r=t+" is deprecated and will be removed in a future version.";return e&&(r+=" Use "+e+" instead."),y(r)}function y(t,e,n){if(it.warnings){var i,o=new F(t);if(e)n._attachExtraTrace(o);else if(it.longStackTraces&&(i=r._peekContext()))i.attachExtraTrace(o);else{var a=E(o);o.stack=a.message+"\n"+a.stack.join("\n")}J("warning",o)||x(o,"",!0)}}function g(t,e){for(var r=0;r<e.length-1;++r)e[r].push("From previous event:"),e[r]=e[r].join("\n");return r<e.length&&(e[r]=e[r].join("\n")),t+"\n"+e.join("\n")}function _(t){for(var e=0;e<t.length;++e)(0===t[e].length||e+1<t.length&&t[e][0]===t[e+1][0])&&(t.splice(e,1),e--)}function w(t){for(var e=t[0],r=1;r<t.length;++r){for(var n=t[r],i=e.length-1,o=e[i],a=-1,s=n.length-1;s>=0;--s)if(n[s]===o){a=s;break}for(var s=a;s>=0;--s){var u=n[s];if(e[i]!==u)break;e.pop(),i--}e=n}}function M(t){for(var e=[],r=0;r<t.length;++r){var n=t[r],i=" (No stack trace)"===n||z.test(n),o=i&&et(n);i&&!o&&(V&&" "!==n.charAt(0)&&(n=" "+n),e.push(n))}return e}function k(t){for(var e=t.stack.replace(/\s+$/g,"").split("\n"),r=0;r<e.length;++r){var n=e[r];if(" (No stack trace)"===n||z.test(n))break}return r>0&&(e=e.slice(r)),e}function E(t){var e=t.stack,r=t.toString();return e="string"===typeof e&&e.length>0?k(t):[" (No stack trace)"],{message:r,stack:M(e)}}function x(t,e,r){if("undefined"!==typeof console){var n;if(D.isObject(t)){var i=t.stack;n=e+H(i,t)}else n=e+String(t);"function"===typeof N?N(n,r):"function"!==typeof console.log&&"object"!==typeof console.log||console.log(n)}}function S(t,e,r,n){var i=!1;try{"function"===typeof e&&(i=!0,"rejectionHandled"===t?e(n):e(r,n))}catch(t){L.throwLater(t)}"unhandledRejection"===t?J(t,r,n)||i||x(r,"Unhandled rejection "):J(t,n)}function A(t){var e;if("function"===typeof t)e="[function "+(t.name||"anonymous")+"]";else{e=t&&"function"===typeof t.toString?t.toString():D.toString(t);if(/\[object [a-zA-Z0-9$_]+\]/.test(e))try{e=JSON.stringify(t)}catch(t){}0===e.length&&(e="(empty array)")}return"(<"+C(e)+">, no stack trace)"}function C(t){return t.length<41?t:t.substr(0,38)+"..."}function T(){return"function"===typeof nt}function I(t){var e=t.match(rt);if(e)return{fileName:e[1],line:parseInt(e[2],10)}}function P(t,e){if(T()){for(var r,n,i=t.stack.split("\n"),o=e.stack.split("\n"),a=-1,s=-1,u=0;u<i.length;++u){var c=I(i[u]);if(c){r=c.fileName,a=c.line;break}}for(var u=0;u<o.length;++u){var c=I(o[u]);if(c){n=c.fileName,s=c.line;break}}a<0||s<0||!r||!n||r!==n||a>=s||(et=function(t){if(q.test(t))return!0;var e=I(t);return!!(e&&e.fileName===r&&a<=e.line&&e.line<=s)})}}function R(t){this._parent=t,this._promisesCreated=0;var e=this._length=1+(void 0===t?0:t._length);nt(this,R),e>32&&this.uncycle()}var O,j,N,B=r._getDomain,L=r._async,F=t("./errors").Warning,D=t("./util"),U=D.canAttachTrace,q=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,z=null,H=null,V=!1,K=!(0==D.env("BLUEBIRD_DEBUG")),Y=!(0==D.env("BLUEBIRD_WARNINGS")||!K&&!D.env("BLUEBIRD_WARNINGS")),G=!(0==D.env("BLUEBIRD_LONG_STACK_TRACES")||!K&&!D.env("BLUEBIRD_LONG_STACK_TRACES")),W=0!=D.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(Y||!!D.env("BLUEBIRD_W_FORGOTTEN_RETURN"));r.prototype.suppressUnhandledRejections=function(){var t=this._target();t._bitField=-1048577&t._bitField|524288},r.prototype._ensurePossibleRejectionHandled=function(){0===(524288&this._bitField)&&(this._setRejectionIsUnhandled(),L.invokeLater(this._notifyUnhandledRejection,this,void 0))},r.prototype._notifyUnhandledRejectionIsHandled=function(){S("rejectionHandled",O,void 0,this)},r.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},r.prototype._returnedNonUndefined=function(){return 0!==(268435456&this._bitField)},r.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var t=this._settledValue();this._setUnhandledRejectionIsNotified(),S("unhandledRejection",j,t,this)}},r.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},r.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},r.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},r.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},r.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},r.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},r.prototype._warn=function(t,e,r){return y(t,e,r||this)},r.onPossiblyUnhandledRejection=function(t){var e=B();j="function"===typeof t?null===e?t:e.bind(t):void 0},r.onUnhandledRejectionHandled=function(t){var e=B();O="function"===typeof t?null===e?t:e.bind(t):void 0};var Z=function(){};r.longStackTraces=function(){if(L.haveItemsQueued()&&!it.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!it.longStackTraces&&T()){var t=r.prototype._captureStackTrace,e=r.prototype._attachExtraTrace;it.longStackTraces=!0,Z=function(){if(L.haveItemsQueued()&&!it.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");r.prototype._captureStackTrace=t,r.prototype._attachExtraTrace=e,n.deactivateLongStackTraces(),L.enableTrampoline(),it.longStackTraces=!1},r.prototype._captureStackTrace=p,r.prototype._attachExtraTrace=m,n.activateLongStackTraces(),L.disableTrampolineIfNecessary()}},r.hasLongStackTraces=function(){return it.longStackTraces&&T()};var X=function(){try{var t=document.createEvent("CustomEvent");return t.initCustomEvent("testingtheevent",!1,!0,{}),D.global.dispatchEvent(t),function(t,e){var r=document.createEvent("CustomEvent");return r.initCustomEvent(t.toLowerCase(),!1,!0,e),!D.global.dispatchEvent(r)}}catch(t){}return function(){return!1}}(),$=function(){return D.isNode?function(){return e.emit.apply(e,arguments)}:D.global?function(t){var e="on"+t.toLowerCase(),r=D.global[e];return!!r&&(r.apply(D.global,[].slice.call(arguments,1)),!0)}:function(){return!1}}(),Q={promiseCreated:i,promiseFulfilled:i,promiseRejected:i,promiseResolved:i,promiseCancelled:i,promiseChained:function(t,e,r){return{promise:e,child:r}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,r){return{reason:e,promise:r}},rejectionHandled:i},J=function(t){var e=!1;try{e=$.apply(null,arguments)}catch(t){L.throwLater(t),e=!0}var r=!1;try{r=X(t,Q[t].apply(null,arguments))}catch(t){L.throwLater(t),r=!0}return r||e};r.config=function(t){if(t=Object(t),"longStackTraces"in t&&(t.longStackTraces?r.longStackTraces():!t.longStackTraces&&r.hasLongStackTraces()&&Z()),"warnings"in t){var e=t.warnings;it.warnings=!!e,W=it.warnings,D.isObject(e)&&"wForgottenReturn"in e&&(W=!!e.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!it.cancellation){if(L.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");r.prototype._clearCancellationData=f,r.prototype._propagateFrom=h,r.prototype._onCancel=u,r.prototype._setOnCancel=c,r.prototype._attachCancellationCallback=s,r.prototype._execute=a,tt=h,it.cancellation=!0}"monitoring"in t&&(t.monitoring&&!it.monitoring?(it.monitoring=!0,r.prototype._fireEvent=J):!t.monitoring&&it.monitoring&&(it.monitoring=!1,r.prototype._fireEvent=o))},r.prototype._fireEvent=o,r.prototype._execute=function(t,e,r){try{t(e,r)}catch(t){return t}},r.prototype._onCancel=function(){},r.prototype._setOnCancel=function(t){},r.prototype._attachCancellationCallback=function(t){},r.prototype._captureStackTrace=function(){},r.prototype._attachExtraTrace=function(){},r.prototype._clearCancellationData=function(){},r.prototype._propagateFrom=function(t,e){};var tt=l,et=function(){return!1},rt=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;D.inherits(R,Error),n.CapturedTrace=R,R.prototype.uncycle=function(){var t=this._length;if(!(t<2)){for(var e=[],r={},n=0,i=this;void 0!==i;++n)e.push(i),i=i._parent;t=this._length=n;for(var n=t-1;n>=0;--n){var o=e[n].stack;void 0===r[o]&&(r[o]=n)}for(var n=0;n<t;++n){var a=e[n].stack,s=r[a];if(void 0!==s&&s!==n){s>0&&(e[s-1]._parent=void 0,e[s-1]._length=1),e[n]._parent=void 0,e[n]._length=1;var u=n>0?e[n-1]:this;s<t-1?(u._parent=e[s+1],u._parent.uncycle(),u._length=u._parent._length+1):(u._parent=void 0,u._length=1);for(var c=u._length+1,f=n-2;f>=0;--f)e[f]._length=c,c++;return}}}},R.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var e=E(t),r=e.message,n=[e.stack],i=this;void 0!==i;)n.push(M(i.stack.split("\n"))),i=i._parent;w(n),_(n),D.notEnumerableProp(t,"stack",g(r,n)),D.notEnumerableProp(t,"__stackCleaned__",!0)}};var nt=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():A(e)};if("number"===typeof Error.stackTraceLimit&&"function"===typeof Error.captureStackTrace){Error.stackTraceLimit+=6,z=t,H=e;var r=Error.captureStackTrace;return et=function(t){return q.test(t)},function(t,e){Error.stackTraceLimit+=6,r(t,e),Error.stackTraceLimit-=6}}var n=new Error;if("string"===typeof n.stack&&n.stack.split("\n")[0].indexOf("stackDetection@")>=0)return z=/@/,H=e,V=!0,function(t){t.stack=(new Error).stack};var i;try{throw new Error}catch(t){i="stack"in t}return"stack"in n||!i||"number"!==typeof Error.stackTraceLimit?(H=function(t,e){return"string"===typeof t?t:"object"!==typeof e&&"function"!==typeof e||void 0===e.name||void 0===e.message?A(e):e.toString()},null):(z=t,H=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6})}();"undefined"!==typeof console&&"undefined"!==typeof console.warn&&(N=function(t){console.warn(t)},D.isNode&&e.stderr.isTTY?N=function(t,e){var r=e?"\x1b[33m":"\x1b[31m";console.warn(r+t+"\x1b[0m\n")}:D.isNode||"string"!==typeof(new Error).stack||(N=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}));var it={warnings:Y,longStackTraces:!1,cancellation:!1,monitoring:!1};return G&&r.longStackTraces(),{longStackTraces:function(){return it.longStackTraces},warnings:function(){return it.warnings},cancellation:function(){return it.cancellation},monitoring:function(){return it.monitoring},propagateFromFunction:function(){return tt},boundValueFunction:function(){return d},checkForgottenReturns:b,setBounds:P,warn:y,deprecated:v,CapturedTrace:R,fireDomEvent:X,fireGlobalEvent:$}}},{"./errors":12,"./util":36}],10:[function(t,e,r){"use strict";e.exports=function(t){function e(){return this.value}function r(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(r){return r instanceof t&&r.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:r},void 0)},t.prototype.throw=t.prototype.thenThrow=function(t){return this._then(r,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this._then(void 0,r,void 0,{reason:t},void 0);var e=arguments[1],n=function(){throw e};return this.caught(t,n)},t.prototype.catchReturn=function(r){if(arguments.length<=1)return r instanceof t&&r.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:r},void 0);var n=arguments[1];n instanceof t&&n.suppressUnhandledRejections();var i=function(){return n};return this.caught(r,i)}}},{}],11:[function(t,e,r){"use strict";e.exports=function(t,e){function r(){return o(this)}function n(t,r){return i(t,r,e,e)}var i=t.reduce,o=t.all;t.prototype.each=function(t){return this.mapSeries(t)._then(r,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return i(this,t,e,e)},t.each=function(t,e){return n(t,e)._then(r,void 0,void 0,t,void 0)},t.mapSeries=n}},{}],12:[function(t,e,r){"use strict";function n(t,e){function r(n){if(!(this instanceof r))return new r(n);h(this,"message","string"===typeof n?n:e),h(this,"name",t),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return f(r,Error),r}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,a,s=t("./es5"),u=s.freeze,c=t("./util"),f=c.inherits,h=c.notEnumerableProp,l=n("Warning","warning"),d=n("CancellationError","cancellation error"),p=n("TimeoutError","timeout error"),m=n("AggregateError","aggregate error");try{o=TypeError,a=RangeError}catch(t){o=n("TypeError","type error"),a=n("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;v<b.length;++v)"function"===typeof Array.prototype[b[v]]&&(m.prototype[b[v]]=Array.prototype[b[v]]);s.defineProperty(m.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),m.prototype.isOperational=!0;var y=0;m.prototype.toString=function(){var t=Array(4*y+1).join(" "),e="\n"+t+"AggregateError of:\n";y++,t=Array(4*y+1).join(" ");for(var r=0;r<this.length;++r){for(var n=this[r]===this?"[Circular AggregateError]":this[r]+"",i=n.split("\n"),o=0;o<i.length;++o)i[o]=t+i[o];n=i.join("\n"),e+=n+"\n"}return y--,e},f(i,Error);var g=Error.__BluebirdErrorTypes__;g||(g=u({CancellationError:d,TimeoutError:p,OperationalError:i,RejectionError:i,AggregateError:m}),s.defineProperty(Error,"__BluebirdErrorTypes__",{value:g,writable:!1,enumerable:!1,configurable:!1})),e.exports={Error:Error,TypeError:o,RangeError:a,CancellationError:g.CancellationError,OperationalError:g.OperationalError,TimeoutError:g.TimeoutError,AggregateError:g.AggregateError,Warning:l}},{"./es5":13,"./util":36}],13:[function(t,e,r){var n=function(){"use strict";return void 0===this}();if(n)e.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:n,propertyIsWritable:function(t,e){var r=Object.getOwnPropertyDescriptor(t,e);return!(r&&!r.writable&&!r.set)}};else{var i={}.hasOwnProperty,o={}.toString,a={}.constructor.prototype,s=function(t){var e=[];for(var r in t)i.call(t,r)&&e.push(r);return e},u=function(t,e){return{value:t[e]}},c=function(t,e,r){return t[e]=r.value,t},f=function(t){return t},h=function(t){try{return Object(t).constructor.prototype}catch(t){return a}},l=function(t){try{return"[object Array]"===o.call(t)}catch(t){return!1}};e.exports={isArray:l,keys:s,names:s,defineProperty:c,getDescriptor:u,freeze:f,getPrototypeOf:h,isES5:n,propertyIsWritable:function(){return!0}}}},{}],14:[function(t,e,r){"use strict";e.exports=function(t,e){var r=t.map;t.prototype.filter=function(t,n){return r(this,t,n,e)},t.filter=function(t,n,i){return r(t,n,i,e)}}},{}],15:[function(t,e,r){"use strict";e.exports=function(e,r){function n(t,e,r){this.promise=t,this.type=e,this.handler=r,this.called=!1,this.cancelPromise=null}function i(t){this.finallyHandler=t}function o(t,e){return null!=t.cancelPromise&&(arguments.length>1?t.cancelPromise._reject(e):t.cancelPromise._cancel(),t.cancelPromise=null,!0)}function a(){return u.call(this,this.promise._target()._settledValue())}function s(t){if(!o(this,t))return h.e=t,h}function u(t){var n=this.promise,u=this.handler;if(!this.called){this.called=!0;var c=this.isFinallyHandler()?u.call(n._boundValue()):u.call(n._boundValue(),t);if(void 0!==c){n._setReturnedNonUndefined();var l=r(c,n);if(l instanceof e){if(null!=this.cancelPromise){if(l.isCancelled()){var d=new f("late cancellation observer");return n._attachExtraTrace(d),h.e=d,h}l.isPending()&&l._attachCancellationCallback(new i(this))}return l._then(a,s,void 0,this,void 0)}}}return n.isRejected()?(o(this),h.e=t,h):(o(this),t)}var c=t("./util"),f=e.CancellationError,h=c.errorObj;return n.prototype.isFinallyHandler=function(){return 0===this.type},i.prototype._resultCancelled=function(){o(this.finallyHandler)},e.prototype._passThrough=function(t,e,r,i){return"function"!==typeof t?this.then():this._then(r,i,void 0,new n(this,e,t),void 0)},e.prototype.lastly=e.prototype.finally=function(t){return this._passThrough(t,0,u,u)},e.prototype.tap=function(t){return this._passThrough(t,1,u)},n}},{"./util":36}],16:[function(t,e,r){"use strict";e.exports=function(e,r,n,i,o,a){function s(t,r,n){for(var o=0;o<r.length;++o){n._pushContext();var a=d(r[o])(t);if(n._popContext(),a===l){n._pushContext();var s=e.reject(l.e);return n._popContext(),s}var u=i(a,n);if(u instanceof e)return u}return null}function u(t,r,i,o){var a=this._promise=new e(n);a._captureStackTrace(),a._setOnCancel(this),this._stack=o,this._generatorFunction=t,this._receiver=r,this._generator=void 0,this._yieldHandlers="function"===typeof i?[i].concat(p):p,this._yieldedPromise=null}var c=t("./errors"),f=c.TypeError,h=t("./util"),l=h.errorObj,d=h.tryCatch,p=[];h.inherits(u,o),u.prototype._isResolved=function(){return null===this._promise},u.prototype._cleanup=function(){this._promise=this._generator=null},u.prototype._promiseCancelled=function(){if(!this._isResolved()){var t,r="undefined"!==typeof this._generator.return;if(r)this._promise._pushContext(),t=d(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var n=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=n,this._promise._attachExtraTrace(n),this._promise._pushContext(),t=d(this._generator.throw).call(this._generator,n),this._promise._popContext(),t===l&&t.e===n&&(t=null)}var i=this._promise;this._cleanup(),t===l?i._rejectCallback(t.e,!1):i.cancel()}},u.prototype._promiseFulfilled=function(t){this._yieldedPromise=null,this._promise._pushContext();var e=d(this._generator.next).call(this._generator,t);this._promise._popContext(),this._continue(e)},u.prototype._promiseRejected=function(t){this._yieldedPromise=null,this._promise._attachExtraTrace(t),this._promise._pushContext();var e=d(this._generator.throw).call(this._generator,t);this._promise._popContext(),this._continue(e)},u.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var t=this._yieldedPromise;this._yieldedPromise=null,t.cancel()}},u.prototype.promise=function(){return this._promise},u.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},u.prototype._continue=function(t){var r=this._promise;if(t===l)return this._cleanup(),r._rejectCallback(t.e,!1);var n=t.value;if(!0===t.done)return this._cleanup(),r._resolveCallback(n);var o=i(n,this._promise);if(!(o instanceof e)&&null===(o=s(o,this._yieldHandlers,this._promise)))return void this._promiseRejected(new f("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",n)+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));o=o._target();var a=o._bitField;0===(50397184&a)?(this._yieldedPromise=o,o._proxy(this,null)):0!==(33554432&a)?this._promiseFulfilled(o._value()):0!==(16777216&a)?this._promiseRejected(o._reason()):this._promiseCancelled()},e.coroutine=function(t,e){if("function"!==typeof t)throw new f("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=Object(e).yieldHandler,n=u,i=(new Error).stack;return function(){var e=t.apply(this,arguments),o=new n(void 0,void 0,r,i),a=o.promise();return o._generator=e,o._promiseFulfilled(void 0),a}},e.coroutine.addYieldHandler=function(t){if("function"!==typeof t)throw new f("expecting a function but got "+h.classString(t));p.push(t)},e.spawn=function(t){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!==typeof t)return r("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=new u(t,this),i=n.promise();return n._run(e.spawn),i}}},{"./errors":12,"./util":36}],17:[function(t,e,r){"use strict";e.exports=function(e,r,n,i){var o=t("./util");o.canEvaluate,o.tryCatch,o.errorObj;e.join=function(){var t,e=arguments.length-1;if(e>0&&"function"===typeof arguments[e]){t=arguments[e];var n}var i=[].slice.call(arguments);t&&i.pop();var n=new r(i).promise();return void 0!==t?n.spread(t):n}}},{"./util":36}],18:[function(t,e,r){"use strict";e.exports=function(e,r,n,i,o,a){function s(t,e,r,n){this.constructor$(t),this._promise._captureStackTrace();var i=c();this._callback=null===i?e:i.bind(e),this._preservedValues=n===o?new Array(this.length()):null,this._limit=r,this._inFlight=0,this._queue=r>=1?[]:d,this._init$(void 0,-2)}function u(t,e,r,i){if("function"!==typeof e)return n("expecting a function but got "+f.classString(e));var o="object"===typeof r&&null!==r?r.concurrency:0;return o="number"===typeof o&&isFinite(o)&&o>=1?o:0,new s(t,e,o,i).promise()}var c=e._getDomain,f=t("./util"),h=f.tryCatch,l=f.errorObj,d=[];f.inherits(s,r),s.prototype._init=function(){},s.prototype._promiseFulfilled=function(t,r){var n=this._values,o=this.length(),s=this._preservedValues,u=this._limit;if(r<0){if(r=-1*r-1,n[r]=t,u>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(u>=1&&this._inFlight>=u)return n[r]=t,this._queue.push(r),!1;null!==s&&(s[r]=t);var c=this._promise,f=this._callback,d=c._boundValue();c._pushContext();var p=h(f).call(d,t,r,o),m=c._popContext();if(a.checkForgottenReturns(p,m,null!==s?"Promise.filter":"Promise.map",c),p===l)return this._reject(p.e),!0;var b=i(p,this._promise);if(b instanceof e){b=b._target();var v=b._bitField;if(0===(50397184&v))return u>=1&&this._inFlight++,n[r]=b,b._proxy(this,-1*(r+1)),!1;if(0===(33554432&v))return 0!==(16777216&v)?(this._reject(b._reason()),!0):(this._cancel(),!0);p=b._value()}n[r]=p}return++this._totalResolved>=o&&(null!==s?this._filter(n,s):this._resolve(n),!0)},s.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,r=this._values;t.length>0&&this._inFlight<e;){if(this._isResolved())return;var n=t.pop();this._promiseFulfilled(r[n],n)}},s.prototype._filter=function(t,e){for(var r=e.length,n=new Array(r),i=0,o=0;o<r;++o)t[o]&&(n[i++]=e[o]);n.length=i,this._resolve(n)},s.prototype.preservedValues=function(){return this._preservedValues},e.prototype.map=function(t,e){return u(this,t,e,null)},e.map=function(t,e,r,n){return u(t,e,r,n)}}},{"./util":36}],19:[function(t,e,r){"use strict";e.exports=function(e,r,n,i,o){var a=t("./util"),s=a.tryCatch;e.method=function(t){if("function"!==typeof t)throw new e.TypeError("expecting a function but got "+a.classString(t));return function(){var n=new e(r);n._captureStackTrace(),n._pushContext();var i=s(t).apply(this,arguments),a=n._popContext();return o.checkForgottenReturns(i,a,"Promise.method",n),n._resolveFromSyncValue(i),n}},e.attempt=e.try=function(t){if("function"!==typeof t)return i("expecting a function but got "+a.classString(t));var n=new e(r);n._captureStackTrace(),n._pushContext();var u;if(arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var c=arguments[1],f=arguments[2];u=a.isArray(c)?s(t).apply(f,c):s(t).call(f,c)}else u=s(t)();var h=n._popContext();return o.checkForgottenReturns(u,h,"Promise.try",n),n._resolveFromSyncValue(u),n},e.prototype._resolveFromSyncValue=function(t){t===a.errorObj?this._rejectCallback(t.e,!1):this._resolveCallback(t,!0)}}},{"./util":36}],20:[function(t,e,r){"use strict";function n(t){return t instanceof Error&&f.getPrototypeOf(t)===Error.prototype}function i(t){var e;if(n(t)){e=new c(t),e.name=t.name,e.message=t.message,e.stack=t.stack;for(var r=f.keys(t),i=0;i<r.length;++i){var o=r[i];h.test(o)||(e[o]=t[o])}return e}return a.markAsOriginatingFromRejection(t),t}function o(t,e){return function(r,n){if(null!==t){if(r){var o=i(s(r));t._attachExtraTrace(o),t._reject(o)}else if(e){var a=[].slice.call(arguments,1);t._fulfill(a)}else t._fulfill(n);t=null}}}var a=t("./util"),s=a.maybeWrapAsError,u=t("./errors"),c=u.OperationalError,f=t("./es5"),h=/^(?:name|message|stack|cause)$/;e.exports=o},{"./errors":12,"./es5":13,"./util":36}],21:[function(t,e,r){"use strict";e.exports=function(e){function r(t,e){var r=this;if(!o.isArray(t))return n.call(r,t,e);var i=s(e).apply(r._boundValue(),[null].concat(t));i===u&&a.throwLater(i.e)}function n(t,e){var r=this,n=r._boundValue(),i=void 0===t?s(e).call(n,null):s(e).call(n,null,t);i===u&&a.throwLater(i.e)}function i(t,e){var r=this;if(!t){var n=new Error(t+"");n.cause=t,t=n}var i=s(e).call(r._boundValue(),t);i===u&&a.throwLater(i.e)}var o=t("./util"),a=e._async,s=o.tryCatch,u=o.errorObj;e.prototype.asCallback=e.prototype.nodeify=function(t,e){if("function"==typeof t){var o=n;void 0!==e&&Object(e).spread&&(o=r),this._then(o,i,void 0,this,t)}return this}}},{"./util":36}],22:[function(t,r,n){"use strict";r.exports=function(){function r(){}function n(t,e){if("function"!==typeof e)throw new y("expecting a function but got "+d.classString(e));if(t.constructor!==i)throw new y("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n")}function i(t){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,t!==_&&(n(this,t),this._resolveFromExecutor(t)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function o(t){this.promise._resolveCallback(t)}function a(t){this.promise._rejectCallback(t,!1)}function s(t){var e=new i(_);e._fulfillmentHandler0=t,e._rejectionHandler0=t,e._promise0=t,e._receiver0=t}var u,c=function(){return new y("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},f=function(){return new i.PromiseInspection(this._target())},h=function(t){return i.reject(new y(t))},l={},d=t("./util");u=d.isNode?function(){var t=e.domain;return void 0===t&&(t=null),t}:function(){return null},d.notEnumerableProp(i,"_getDomain",u);var p=t("./es5"),m=t("./async"),b=new m;p.defineProperty(i,"_async",{value:b});var v=t("./errors"),y=i.TypeError=v.TypeError;i.RangeError=v.RangeError;var g=i.CancellationError=v.CancellationError;i.TimeoutError=v.TimeoutError,i.OperationalError=v.OperationalError,i.RejectionError=v.OperationalError,i.AggregateError=v.AggregateError;var _=function(){},w={},M={},k=t("./thenables")(i,_),E=t("./promise_array")(i,_,k,h,r),x=t("./context")(i),S=x.create,A=t("./debuggability")(i,x),C=(A.CapturedTrace,t("./finally")(i,k)),T=t("./catch_filter")(M),I=t("./nodeback"),P=d.errorObj,R=d.tryCatch;return i.prototype.toString=function(){return"[object Promise]"},i.prototype.caught=i.prototype.catch=function(t){var e=arguments.length;if(e>1){var r,n=new Array(e-1),i=0;for(r=0;r<e-1;++r){var o=arguments[r];if(!d.isObject(o))return h("expecting an object but got "+d.classString(o));n[i++]=o}return n.length=i,t=arguments[r],this.then(void 0,T(n,t,this))}return this.then(void 0,t)},i.prototype.reflect=function(){return this._then(f,f,void 0,this,void 0)},i.prototype.then=function(t,e){if(A.warnings()&&arguments.length>0&&"function"!==typeof t&&"function"!==typeof e){var r=".then() only accepts functions but was passed: "+d.classString(t);arguments.length>1&&(r+=", "+d.classString(e)),this._warn(r)}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 E(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 r=arguments.length>1&&!!Object(arguments[1]).multiArgs,n=R(t)(I(e,r));return n===P&&e._rejectCallback(n.e,!0),e._isFateSealed()||e._setAsyncGuaranteed(),e},i.all=function(t){return new E(t).promise()},i.cast=function(t){var e=k(t);return e instanceof i||(e=new i(_),e._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,r,n,o){var a=void 0!==o,s=a?o:new i(_),c=this._target(),f=c._bitField;a||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===n&&0!==(2097152&this._bitField)&&(n=0!==(50397184&f)?this._boundValue():c===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,s));var h=u();if(0!==(50397184&f)){var l,d,p=c._settlePromiseCtx;0!==(33554432&f)?(d=c._rejectionHandler0,l=t):0!==(16777216&f)?(d=c._fulfillmentHandler0,l=e,c._unsetRejectionIsUnhandled()):(p=c._settlePromiseLateCancellationObserver,d=new g("late cancellation observer"),c._attachExtraTrace(d),l=e),b.invoke(p,c,{handler:null===h?l:"function"===typeof l&&h.bind(l),promise:s,receiver:n,value:d})}else c._addCallbacks(t,e,s,n,h);return s},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){var e=(t._bitField,t._fulfillmentHandler0),r=t._rejectionHandler0,n=t._promise0,i=t._receiverAt(0);void 0===i&&(i=l),this._addCallbacks(e,r,n,i,null)},i.prototype._migrateCallbackAt=function(t,e){var r=t._fulfillmentHandlerAt(e),n=t._rejectionHandlerAt(e),i=t._promiseAt(e),o=t._receiverAt(e);void 0===o&&(o=l),this._addCallbacks(r,n,i,o,null)},i.prototype._addCallbacks=function(t,e,r,n,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=r,this._receiver0=n,"function"===typeof t&&(this._fulfillmentHandler0=null===i?t:i.bind(t)),"function"===typeof e&&(this._rejectionHandler0=null===i?e:i.bind(e));else{var a=4*o-4;this[a+2]=r,this[a+3]=n,"function"===typeof t&&(this[a+0]=null===i?t:i.bind(t)),"function"===typeof e&&(this[a+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(c(),!1);var r=k(t,this);if(!(r instanceof i))return this._fulfill(t);e&&this._propagateFrom(r,2);var n=r._target(),o=n._bitField;if(0===(50397184&o)){var a=this._length();a>0&&n._migrateCallback0(this);for(var s=1;s<a;++s)n._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(n)}else if(0!==(33554432&o))this._fulfill(n._value());else if(0!==(16777216&o))this._reject(n._reason());else{var u=new g("late cancellation observer");n._attachExtraTrace(u),this._reject(u)}}},i.prototype._rejectCallback=function(t,e,r){var n=d.ensureErrorObject(t),i=n===t;if(!i&&!r&&A.warnings()){var o="a promise was rejected with a non-error: "+d.classString(t);this._warn(o,!0)}this._attachExtraTrace(n,!!e&&i),this._reject(t)},i.prototype._resolveFromExecutor=function(t){var e=this;this._captureStackTrace(),this._pushContext();var r=!0,n=this._execute(t,function(t){e._resolveCallback(t)},function(t){e._rejectCallback(t,r)});r=!1,this._popContext(),void 0!==n&&e._rejectCallback(n,!0)},i.prototype._settlePromiseFromHandler=function(t,e,r,n){var i=n._bitField;if(0===(65536&i)){n._pushContext();var o;e===w?r&&"number"===typeof r.length?o=R(t).apply(this._boundValue(),r):(o=P,o.e=new y("cannot .spread() a non-array: "+d.classString(r))):o=R(t).call(e,r);var a=n._popContext();if(0===(65536&(i=n._bitField)))if(o===M)n._reject(r);else if(o===P||o===n){var s=o===n?c():o.e;n._rejectCallback(s,!1)}else A.checkForgottenReturns(o,a,"",n,this),n._resolveCallback(o)}},i.prototype._target=function(){for(var t=this;t._isFollowing();)t=t._followee();return t},i.prototype._followee=function(){return this._rejectionHandler0},i.prototype._setFollowee=function(t){this._rejectionHandler0=t},i.prototype._settlePromise=function(t,e,n,o){var a=t instanceof i,s=this._bitField,u=0!==(134217728&s);0!==(65536&s)?(a&&t._invokeInternalOnCancel(),n instanceof C&&n.isFinallyHandler()?(n.cancelPromise=t,R(e).call(n,o)===P&&t._reject(P.e)):e===f?t._fulfill(f.call(n)):n instanceof r?n._promiseCancelled(t):a||t instanceof E?t._cancel():n.cancel()):"function"===typeof e?a?(u&&t._setAsyncGuaranteed(),this._settlePromiseFromHandler(e,n,o,t)):e.call(n,o,t):n instanceof r?n._isResolved()||(0!==(33554432&s)?n._promiseFulfilled(o,t):n._promiseRejected(o,t)):a&&(u&&t._setAsyncGuaranteed(),0!==(33554432&s)?t._fulfill(o):t._reject(o))},i.prototype._settlePromiseLateCancellationObserver=function(t){var e=t.handler,r=t.promise,n=t.receiver,o=t.value;"function"===typeof e?r instanceof i?this._settlePromiseFromHandler(e,n,o,r):e.call(n,o,r):r instanceof i&&r._reject(o)},i.prototype._settlePromiseCtx=function(t){this._settlePromise(t.promise,t.handler,t.receiver,t.value)},i.prototype._settlePromise0=function(t,e,r){var n=this._promise0,i=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(n,t,i,e)},i.prototype._clearCallbackDataAtIndex=function(t){var e=4*t-4;this[e+2]=this[e+3]=this[e+0]=this[e+1]=void 0},i.prototype._fulfill=function(t){var e=this._bitField;if(!((117506048&e)>>>16)){if(t===this){var r=c();return this._attachExtraTrace(r),this._reject(r)}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 r=1;r<t;r++){var n=this._fulfillmentHandlerAt(r),i=this._promiseAt(r),o=this._receiverAt(r);this._clearCallbackDataAtIndex(r),this._settlePromise(i,n,o,e)}},i.prototype._rejectPromises=function(t,e){for(var r=1;r<t;r++){var n=this._rejectionHandlerAt(r),i=this._promiseAt(r),o=this._receiverAt(r);this._clearCallbackDataAtIndex(r),this._settlePromise(i,n,o,e)}},i.prototype._settlePromises=function(){var t=this._bitField,e=65535&t;if(e>0){if(0!==(16842752&t)){var r=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,r,t),this._rejectPromises(e,r)}else{var n=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,n,t),this._fulfillPromises(e,n)}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 A.deprecated("Promise.defer","new Promise"),{promise:new i(_),resolve:o,reject:a}},d.notEnumerableProp(i,"_makeSelfResolutionError",c),t("./method")(i,_,k,h,A),t("./bind")(i,_,k,A),t("./cancel")(i,E,h,A),t("./direct_resolve")(i),t("./synchronous_inspection")(i),t("./join")(i,E,k,_,A),i.Promise=i,t("./map.js")(i,E,h,k,_,A),t("./using.js")(i,h,k,S,_,A),t("./timers.js")(i,_,A),t("./generators.js")(i,h,_,k,r,A),t("./nodeify.js")(i),t("./call_get.js")(i),t("./props.js")(i,E,k,h),t("./race.js")(i,_,k,h),t("./reduce.js")(i,E,h,k,_,A),t("./settle.js")(i,E,A),t("./some.js")(i,E,h),t("./promisify.js")(i,_),t("./any.js")(i),t("./each.js")(i,_),t("./filter.js")(i,_),d.toFastProperties(i),d.toFastProperties(i.prototype),s({a:1}),s({b:2}),s({c:3}),s(1),s(function(){}),s(void 0),s(!1),s(new i(_)),A.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,r){"use strict";e.exports=function(e,r,n,i,o){function a(t){switch(t){case-2:return[];case-3:return{}}}function s(t){var n=this._promise=new e(r);t instanceof e&&n._propagateFrom(t,3),n._setOnCancel(this),this._values=t,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var u=t("./util");u.isArray;return u.inherits(s,o),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function t(r,o){var s=n(this._values,this._promise);if(s instanceof e){s=s._target();var c=s._bitField;if(this._values=s,0===(50397184&c))return this._promise._setAsyncGuaranteed(),s._then(t,this._reject,void 0,this,o);if(0===(33554432&c))return 0!==(16777216&c)?this._reject(s._reason()):this._cancel();s=s._value()}if(null===(s=u.asArray(s))){var f=i("expecting an array or an iterable object but got "+u.classString(s)).reason();return void this._promise._rejectCallback(f,!1)}if(0===s.length)return void(-5===o?this._resolveEmptyArray():this._resolve(a(o)));this._iterate(s)},s.prototype._iterate=function(t){var r=this.getActualLength(t.length);this._length=r,this._values=this.shouldCopyValues()?new Array(r):this._values;for(var i=this._promise,o=!1,a=null,s=0;s<r;++s){var u=n(t[s],i);u instanceof e?(u=u._target(),a=u._bitField):a=null,o?null!==a&&u.suppressUnhandledRejections():null!==a?0===(50397184&a)?(u._proxy(this,s),this._values[s]=u):o=0!==(33554432&a)?this._promiseFulfilled(u._value(),s):0!==(16777216&a)?this._promiseRejected(u._reason(),s):this._promiseCancelled(s):o=this._promiseFulfilled(u,s)}o||i._setAsyncGuaranteed()},s.prototype._isResolved=function(){return null===this._values},s.prototype._resolve=function(t){this._values=null,this._promise._fulfill(t)},s.prototype._cancel=function(){!this._isResolved()&&this._promise.isCancellable()&&(this._values=null,this._promise._cancel())},s.prototype._reject=function(t){this._values=null,this._promise._rejectCallback(t,!1)},s.prototype._promiseFulfilled=function(t,e){return this._values[e]=t,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var r=0;r<t.length;++r)t[r]instanceof e&&t[r].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(t){return t},s}},{"./util":36}],24:[function(t,e,r){"use strict";e.exports=function(e,r){function n(t){return!w.test(t)}function i(t){try{return!0===t.__isPromisified__}catch(t){return!1}}function o(t,e,r){var n=d.getDataPropertyOrDefault(t,e+r,g);return!!n&&i(n)}function a(t,e,r){for(var n=0;n<t.length;n+=2){var i=t[n];if(r.test(i))for(var o=i.replace(r,""),a=0;a<t.length;a+=2)if(t[a]===o)throw new y("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",e))}}function s(t,e,r,n){for(var s=d.inheritedDataKeys(t),u=[],c=0;c<s.length;++c){var f=s[c],h=t[f],l=n===M||M(f,h,t);"function"!==typeof h||i(h)||o(t,f,e)||!n(f,h,t,l)||u.push(f,h)}return a(u,e,r),u}function u(t,n,i,o,a,s){function u(){var i=n;n===l&&(i=this);var o=new e(r);o._captureStackTrace();var a="string"===typeof f&&this!==c?this[f]:t,u=p(o,s);try{a.apply(i,m(arguments,u))}catch(t){o._rejectCallback(b(t),!0,!0)}return o._isFateSealed()||o._setAsyncGuaranteed(),o}var c=function(){return this}(),f=t;return"string"===typeof f&&(t=o),d.notEnumerableProp(u,"__isPromisified__",!0),u}function c(t,e,r,n,i){for(var o=new RegExp(k(e)+"$"),a=s(t,e,o,r),u=0,c=a.length;u<c;u+=2){var f=a[u],h=a[u+1],p=f+e;if(n===E)t[p]=E(f,l,f,h,e,i);else{var m=n(h,function(){return E(f,l,f,h,e,i)});d.notEnumerableProp(m,"__isPromisified__",!0),t[p]=m}}return d.toFastProperties(t),t}function f(t,e,r){return E(t,e,void 0,t,null,r)}var h,l={},d=t("./util"),p=t("./nodeback"),m=d.withAppended,b=d.maybeWrapAsError,v=d.canEvaluate,y=t("./errors").TypeError,g={__isPromisified__:!0},_=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],w=new RegExp("^(?:"+_.join("|")+")$"),M=function(t){return d.isIdentifier(t)&&"_"!==t.charAt(0)&&"constructor"!==t},k=function(t){return t.replace(/([$])/,"\\$")},E=v?h:u;e.promisify=function(t,e){if("function"!==typeof t)throw new y("expecting a function but got "+d.classString(t));if(i(t))return t;e=Object(e);var r=void 0===e.context?l:e.context,o=!!e.multiArgs,a=f(t,r,o);return d.copyDescriptors(t,a,n),a},e.promisifyAll=function(t,e){if("function"!==typeof t&&"object"!==typeof t)throw new y("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");e=Object(e);var r=!!e.multiArgs,n=e.suffix;"string"!==typeof n&&(n="Async");var i=e.filter;"function"!==typeof i&&(i=M);var o=e.promisifier;if("function"!==typeof o&&(o=E),!d.isIdentifier(n))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var a=d.inheritedDataKeys(t),s=0;s<a.length;++s){var u=t[a[s]];"constructor"!==a[s]&&d.isClass(u)&&(c(u.prototype,n,i,o,r),c(u,n,i,o,r))}return c(t,n,i,o,r)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(t,e,r){"use strict";e.exports=function(e,r,n,i){function o(t){var e,r=!1;if(void 0!==s&&t instanceof s)e=h(t),r=!0;else{var n=f.keys(t),i=n.length;e=new Array(2*i);for(var o=0;o<i;++o){var a=n[o];e[o]=t[a],e[o+i]=a}}this.constructor$(e),this._isMap=r,this._init$(void 0,-3)}function a(t){var r,a=n(t);return c(a)?(r=a instanceof e?a._then(e.props,void 0,void 0,void 0,void 0):new o(a).promise(),a instanceof e&&r._propagateFrom(a,2),r):i("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}var s,u=t("./util"),c=u.isObject,f=t("./es5");"function"===typeof Map&&(s=Map);var h=function(){function t(t,n){this[e]=t,this[e+r]=n,e++}var e=0,r=0;return function(n){r=n.size,e=0;var i=new Array(2*n.size);return n.forEach(t,i),i}}(),l=function(t){for(var e=new s,r=t.length/2|0,n=0;n<r;++n){var i=t[r+n],o=t[n];e.set(i,o)}return e};u.inherits(o,r),o.prototype._init=function(){},o.prototype._promiseFulfilled=function(t,e){if(this._values[e]=t,++this._totalResolved>=this._length){var r;if(this._isMap)r=l(this._values);else{r={};for(var n=this.length(),i=0,o=this.length();i<o;++i)r[this._values[i+n]]=this._values[i]}return this._resolve(r),!0}return!1},o.prototype.shouldCopyValues=function(){return!1},o.prototype.getActualLength=function(t){return t>>1},e.prototype.props=function(){return a(this)},e.props=function(t){return a(t)}}},{"./es5":13,"./util":36}],26:[function(t,e,r){"use strict";function n(t,e,r,n,i){for(var o=0;o<i;++o)r[o+n]=t[o+e],t[o+e]=void 0}function i(t){this._capacity=t,this._length=0,this._front=0}i.prototype._willBeOverCapacity=function(t){return this._capacity<t},i.prototype._pushOne=function(t){var e=this.length();this._checkCapacity(e+1),this[this._front+e&this._capacity-1]=t,this._length=e+1},i.prototype._unshiftOne=function(t){var e=this._capacity;this._checkCapacity(this.length()+1);var r=this._front,n=(r-1&e-1^e)-e;this[n]=t,this._front=n,this._length=this.length()+1},i.prototype.unshift=function(t,e,r){this._unshiftOne(r),this._unshiftOne(e),this._unshiftOne(t)},i.prototype.push=function(t,e,r){var n=this.length()+3;if(this._willBeOverCapacity(n))return this._pushOne(t),this._pushOne(e),void this._pushOne(r);var i=this._front+n-3;this._checkCapacity(n);var o=this._capacity-1;this[i+0&o]=t,this[i+1&o]=e,this[i+2&o]=r,this._length=n},i.prototype.shift=function(){var t=this._front,e=this[t];return this[t]=void 0,this._front=t+1&this._capacity-1,this._length--,e},i.prototype.length=function(){return this._length},i.prototype._checkCapacity=function(t){this._capacity<t&&this._resizeTo(this._capacity<<1)},i.prototype._resizeTo=function(t){var e=this._capacity;this._capacity=t,n(this,0,this,e,this._front+this._length&e-1)},e.exports=i},{}],27:[function(t,e,r){"use strict";e.exports=function(e,r,n,i){function o(t,o){var u=n(t);if(u instanceof e)return s(u);if(null===(t=a.asArray(t)))return i("expecting an array or an iterable object but got "+a.classString(t));var c=new e(r);void 0!==o&&c._propagateFrom(o,3);for(var f=c._fulfill,h=c._reject,l=0,d=t.length;l<d;++l){var p=t[l];(void 0!==p||l in t)&&e.cast(p)._then(f,h,void 0,c,null)}return c}var a=t("./util"),s=function(t){return t.then(function(e){return o(e,t)})};e.race=function(t){return o(t,void 0)},e.prototype.race=function(){return o(this,void 0)}}},{"./util":36}],28:[function(t,e,r){"use strict";e.exports=function(e,r,n,i,o,a){function s(t,r,n,i){this.constructor$(t);var a=l();this._fn=null===a?r:a.bind(r),void 0!==n&&(n=e.resolve(n),n._attachCancellationCallback(this)),this._initialValue=n,this._currentCancellable=null,this._eachValues=i===o?[]:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function u(t,e){this.isFulfilled()?e._resolve(t):e._reject(t)}function c(t,e,r,i){return"function"!==typeof e?n("expecting a function but got "+d.classString(e)):new s(t,e,r,i).promise()}function f(t){this.accum=t,this.array._gotAccum(t);var r=i(this.value,this.array._promise);return r instanceof e?(this.array._currentCancellable=r,r._then(h,void 0,void 0,this,void 0)):h.call(this,r)}function h(t){var r=this.array,n=r._promise,i=p(r._fn);n._pushContext();var o;(o=void 0!==r._eachValues?i.call(n._boundValue(),t,this.index,this.length):i.call(n._boundValue(),this.accum,t,this.index,this.length))instanceof e&&(r._currentCancellable=o);var s=n._popContext();return a.checkForgottenReturns(o,s,void 0!==r._eachValues?"Promise.each":"Promise.reduce",n),o}var l=e._getDomain,d=t("./util"),p=d.tryCatch;d.inherits(s,r),s.prototype._gotAccum=function(t){void 0!==this._eachValues&&t!==o&&this._eachValues.push(t)},s.prototype._eachComplete=function(t){return this._eachValues.push(t),this._eachValues},s.prototype._init=function(){},s.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},s.prototype.shouldCopyValues=function(){return!1},s.prototype._resolve=function(t){this._promise._resolveCallback(t),this._values=null},s.prototype._resultCancelled=function(t){if(t===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof e&&this._currentCancellable.cancel(),this._initialValue instanceof e&&this._initialValue.cancel())},s.prototype._iterate=function(t){this._values=t;var r,n,i=t.length;if(void 0!==this._initialValue?(r=this._initialValue,n=0):(r=e.resolve(t[0]),n=1),this._currentCancellable=r,!r.isRejected())for(;n<i;++n){var o={accum:null,value:t[n],index:n,length:i,array:this};r=r._then(f,void 0,void 0,o,void 0)}void 0!==this._eachValues&&(r=r._then(this._eachComplete,void 0,void 0,this,void 0)),r._then(u,u,void 0,r,this)},e.prototype.reduce=function(t,e){return c(this,t,e,null)},e.reduce=function(t,e,r,n){return c(t,e,r,n)}}},{"./util":36}],29:[function(t,i,o){"use strict";var a,s=t("./util"),u=function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")};if(s.isNode&&"undefined"===typeof MutationObserver){var c=r.setImmediate,f=e.nextTick;a=s.isRecentNode?function(t){c.call(r,t)}:function(t){f.call(e,t)}}else a="undefined"===typeof MutationObserver||"undefined"!==typeof window&&window.navigator&&window.navigator.standalone?"undefined"!==typeof n?function(t){n(t)}:"undefined"!==typeof setTimeout?function(t){setTimeout(t,0)}:u:function(){var t=document.createElement("div"),e={attributes:!0},r=!1,n=document.createElement("div");new MutationObserver(function(){t.classList.toggle("foo"),r=!1}).observe(n,e);var i=function(){r||(r=!0,n.classList.toggle("foo"))};return function(r){var n=new MutationObserver(function(){n.disconnect(),r()});n.observe(t,e),i()}}();i.exports=a},{"./util":36}],30:[function(t,e,r){"use strict";e.exports=function(e,r,n){function i(t){this.constructor$(t)}var o=e.PromiseInspection;t("./util").inherits(i,r),i.prototype._promiseResolved=function(t,e){return this._values[t]=e,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},i.prototype._promiseFulfilled=function(t,e){var r=new o;return r._bitField=33554432,r._settledValueField=t,this._promiseResolved(e,r)},i.prototype._promiseRejected=function(t,e){var r=new o;return r._bitField=16777216,r._settledValueField=t,this._promiseResolved(e,r)},e.settle=function(t){return n.deprecated(".settle()",".reflect()"),new i(t).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(t,e,r){"use strict";e.exports=function(e,r,n){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 n("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var r=new i(t),o=r.promise();return r.setHowMany(e),r.init(),o}var a=t("./util"),s=t("./errors").RangeError,u=t("./errors").AggregateError,c=a.isArray,f={};a.inherits(i,r),i.prototype._init=function(){if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var t=c(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},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 u,e=this.length();e<this._values.length;++e)this._values[e]!==f&&t.push(this._values[e]);return t.length>0?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 s(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,r){"use strict";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 r=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()},n=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)},a=e.prototype.isPending=function(){return 0===(50397184&this._bitField)},s=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 a.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 s.call(this._target())},t.prototype.value=function(){return r.call(this._target())},t.prototype.reason=function(){var t=this._target();return t._unsetRejectionIsUnhandled(),n.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,r){"use strict";e.exports=function(e,r){function n(t,n){if(f(t)){if(t instanceof e)return t;var i=o(t);if(i===c){n&&n._pushContext();var u=e.reject(i.e);return n&&n._popContext(),u}if("function"===typeof i){if(a(t)){var u=new e(r);return t._then(u._fulfill,u._reject,void 0,u,null),u}return s(t,i,n)}}return t}function i(t){return t.then}function o(t){try{return i(t)}catch(t){return c.e=t,c}}function a(t){return h.call(t,"_promise0")}function s(t,n,i){function o(t){s&&(s._resolveCallback(t),s=null)}function a(t){s&&(s._rejectCallback(t,h,!0),s=null)}var s=new e(r),f=s;i&&i._pushContext(),s._captureStackTrace(),i&&i._popContext();var h=!0,l=u.tryCatch(n).call(t,o,a);return h=!1,s&&l===c&&(s._rejectCallback(l.e,!0,!0),s=null),f}var u=t("./util"),c=u.errorObj,f=u.isObject,h={}.hasOwnProperty;return n}},{"./util":36}],34:[function(t,e,r){"use strict";e.exports=function(e,r,n){function i(t){this.handle=t}function o(t){return clearTimeout(this.handle),t}function a(t){throw clearTimeout(this.handle),t}var s=t("./util"),u=e.TimeoutError;i.prototype._resultCancelled=function(){clearTimeout(this.handle)};var c=function(t){return f(+this).thenReturn(t)},f=e.delay=function(t,o){var a,s;return void 0!==o?(a=e.resolve(o)._then(c,null,null,t,void 0),n.cancellation()&&o instanceof e&&a._setOnCancel(o)):(a=new e(r),s=setTimeout(function(){a._fulfill()},+t),n.cancellation()&&a._setOnCancel(new i(s))),a._setAsyncGuaranteed(),a};e.prototype.delay=function(t){return f(t,this)};var h=function(t,e,r){var n;n="string"!==typeof e?e instanceof Error?e:new u("operation timed out"):new u(e),s.markAsOriginatingFromRejection(n),t._attachExtraTrace(n),t._reject(n),null!=r&&r.cancel()};e.prototype.timeout=function(t,e){t=+t;var r,s,u=new i(setTimeout(function(){r.isPending()&&h(r,e,s)},t));return n.cancellation()?(s=this.then(),r=s._then(o,a,void 0,u,void 0),r._setOnCancel(u)):r=this._then(o,a,void 0,u,void 0),r}}},{"./util":36}],35:[function(t,e,r){"use strict";e.exports=function(e,r,n,i,o,a){function s(t){setTimeout(function(){throw t},0)}function u(t){var e=n(t);return e!==t&&"function"===typeof t._isDisposable&&"function"===typeof t._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}function c(t,r){function i(){if(a>=c)return f._fulfill();var o=u(t[a++]);if(o instanceof e&&o._isDisposable()){try{o=n(o._getDisposer().tryDispose(r),t.promise)}catch(t){return s(t)}if(o instanceof e)return o._then(i,s,null,null,null)}i()}var a=0,c=t.length,f=new e(o);return i(),f}function f(t,e,r){this._data=t,this._promise=e,this._context=r}function h(t,e,r){this.constructor$(t,e,r)}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(),r=this._context;void 0!==r&&r._pushContext();var n=null!==e?this.doDispose(e,t):null;return void 0!==r&&r._popContext(),this._promise._unsetDisposable(),this._data=null,n},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,r=0;r<t;++r){var n=this[r];n instanceof e&&n.cancel()}},e.using=function(){var t=arguments.length;if(t<2)return r("you must pass at least 2 arguments to Promise.using");var i=arguments[t-1];if("function"!==typeof i)return r("expecting a function but got "+p.classString(i));var o,s=!0;2===t&&Array.isArray(arguments[0])?(o=arguments[0],t=o.length,s=!1):(o=arguments,t--);for(var u=new d(t),h=0;h<t;++h){var m=o[h];if(f.isDisposer(m)){var b=m;m=m.promise(),m._setDisposable(b)}else{var g=n(m);g instanceof e&&(m=g._then(l,null,null,{resources:u,index:h},void 0))}u[h]=m}for(var _=new Array(u.length),h=0;h<_.length;++h)_[h]=e.resolve(u[h]).reflect();var w=e.all(_).then(function(t){for(var e=0;e<t.length;++e){var r=t[e];if(r.isRejected())return v.e=r.error(),v;if(!r.isFulfilled())return void w.cancel();t[e]=r.value()}M._pushContext(),i=y(i);var n=s?i.apply(void 0,t):i(t),o=M._popContext();return a.checkForgottenReturns(n,o,"Promise.using",M),n}),M=w.lastly(function(){var t=new e.PromiseInspection(w);return c(u,t)});return u.promise=M,M._setOnCancel(u),M},e.prototype._setDisposable=function(t){this._bitField=131072|this._bitField,this._disposer=t},e.prototype._isDisposable=function(){return(131072&this._bitField)>0},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(t,n,i){"use strict";function o(){try{var t=T;return T=null,t.apply(this,arguments)}catch(t){return C.e=t,C}}function a(t){return T=t,o}function s(t){return null==t||!0===t||!1===t||"string"===typeof t||"number"===typeof t}function u(t){return"function"===typeof t||"object"===typeof t&&null!==t}function c(t){return s(t)?new Error(y(t)):t}function f(t,e){var r,n=t.length,i=new Array(n+1);for(r=0;r<n;++r)i[r]=t[r];return i[r]=e,i}function h(t,e,r){if(!S.isES5)return{}.hasOwnProperty.call(t,e)?t[e]:void 0;var n=Object.getOwnPropertyDescriptor(t,e);return null!=n?null==n.get&&null==n.set?n.value:r:void 0}function l(t,e,r){if(s(t))return t;var n={value:r,configurable:!0,enumerable:!1,writable:!0};return S.defineProperty(t,e,n),t}function d(t){throw t}function p(t){try{if("function"===typeof t){var e=S.names(t.prototype),r=S.isES5&&e.length>1,n=e.length>0&&!(1===e.length&&"constructor"===e[0]),i=O.test(t+"")&&S.names(t).length>0;if(r||n||i)return!0}return!1}catch(t){return!1}}function m(t){function e(){}e.prototype=t;for(var r=8;r--;)new e;return t}function b(t){return j.test(t)}function v(t,e,r){for(var n=new Array(t),i=0;i<t;++i)n[i]=e+i+r;return n}function y(t){try{return t+""}catch(t){return"[no string representation]"}}function g(t){return null!==t&&"object"===typeof t&&"string"===typeof t.message&&"string"===typeof t.name}function _(t){try{l(t,"isOperational",!0)}catch(t){}}function w(t){return null!=t&&(t instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===t.isOperational)}function M(t){return g(t)&&S.propertyIsWritable(t,"stack")}function k(t){return{}.toString.call(t)}function E(t,e,r){for(var n=S.names(t),i=0;i<n.length;++i){var o=n[i];if(r(o))try{S.defineProperty(e,o,S.getDescriptor(t,o))}catch(t){}}}function x(t,e){return F?Object({NODE_ENV:"production",PUBLIC_URL:"/oracles-dapps-keys-generation"})[t]:e}var S=t("./es5"),A="undefined"==typeof navigator,C={e:{}},T,I="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof r?r:void 0!==this?this:null,P=function(t,e){function r(){this.constructor=t,this.constructor$=e;for(var r in e.prototype)n.call(e.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=e.prototype[r])}var n={}.hasOwnProperty;return r.prototype=e.prototype,t.prototype=new r,t.prototype},R=function(){var t=[Array.prototype,Object.prototype,Function.prototype],e=function(e){for(var r=0;r<t.length;++r)if(t[r]===e)return!0;return!1};if(S.isES5){var r=Object.getOwnPropertyNames;return function(t){for(var n=[],i=Object.create(null);null!=t&&!e(t);){var o;try{o=r(t)}catch(t){return n}for(var a=0;a<o.length;++a){var s=o[a];if(!i[s]){i[s]=!0;var u=Object.getOwnPropertyDescriptor(t,s);null!=u&&null==u.get&&null==u.set&&n.push(s)}}t=S.getPrototypeOf(t)}return n}}var n={}.hasOwnProperty;return function(r){if(e(r))return[];var i=[];t:for(var o in r)if(n.call(r,o))i.push(o);else{for(var a=0;a<t.length;++a)if(n.call(t[a],o))continue t;i.push(o)}return i}}(),O=/this\s*\.\s*\S+\s*=/,j=/^[a-z$_][a-z$_0-9]*$/i,N=function(){return"stack"in new Error?function(t){return M(t)?t:new Error(y(t))}:function(t){if(M(t))return t;try{throw new Error(y(t))}catch(t){return t}}}(),B=function(t){return S.isArray(t)?t:null};if("undefined"!==typeof Symbol&&Symbol.iterator){var L="function"===typeof Array.from?function(t){return Array.from(t)}:function(t){for(var e,r=[],n=t[Symbol.iterator]();!(e=n.next()).done;)r.push(e.value);return r};B=function(t){return S.isArray(t)?t:null!=t&&"function"===typeof t[Symbol.iterator]?L(t):null}}var F="undefined"!==typeof e&&"[object process]"===k(e).toLowerCase(),D={isClass:p,isIdentifier:b,inheritedDataKeys:R,getDataPropertyOrDefault:h,thrower:d,isArray:S.isArray,asArray:B,notEnumerableProp:l,isPrimitive:s,isObject:u,isError:g,canEvaluate:A,errorObj:C,tryCatch:a,inherits:P,withAppended:f,maybeWrapAsError:c,toFastProperties:m,filledRange:v,toString:y,canAttachTrace:M,ensureErrorObject:N,originatesFromRejection:w,markAsOriginatingFromRejection:_,classString:k,copyDescriptors:E,hasDevTools:"undefined"!==typeof chrome&&chrome&&"function"===typeof chrome.loadTimes,isNode:F,env:x,global:I};D.isRecentNode=D.isNode&&function(){var t=e.versions.node.split(".").map(Number);return 0===t[0]&&t[1]>10||t[0]>0}(),D.isNode&&D.toFastProperties(e);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(e,r(8),r(4),r(30).setImmediate)},function(t,e,r){(function(t,e){!function(t,r){"use strict";function n(t){"function"!==typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var n={callback:t,args:e};return c[u]=n,s(u),u++}function i(t){delete c[t]}function o(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(r,n)}}function a(t){if(f)setTimeout(a,0,t);else{var e=c[t];if(e){f=!0;try{o(e)}finally{i(t),f=!1}}}}if(!t.setImmediate){var s,u=1,c={},f=!1,h=t.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(t);l=l&&l.setTimeout?l:t,"[object process]"==={}.toString.call(t.process)?function(){s=function(t){e.nextTick(function(){a(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?function(){var e="setImmediate$"+Math.random()+"$",r=function(r){r.source===t&&"string"===typeof r.data&&0===r.data.indexOf(e)&&a(+r.data.slice(e.length))};t.addEventListener?t.addEventListener("message",r,!1):t.attachEvent("onmessage",r),s=function(r){t.postMessage(e+r,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){a(t.data)},s=function(e){t.port2.postMessage(e)}}():h&&"onreadystatechange"in h.createElement("script")?function(){var t=h.documentElement;s=function(e){var r=h.createElement("script");r.onreadystatechange=function(){a(e),r.onreadystatechange=null,t.removeChild(r),r=null},t.appendChild(r)}}():function(){s=function(t){setTimeout(a,0,t)}}(),l.setImmediate=n,l.clearImmediate=i}}("undefined"===typeof self?"undefined"===typeof t?this:t:self)}).call(e,r(4),r(8))},function(t,e,r){"use strict";function n(t){a.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=r(5),o=r(7).errors,a=r(75);n.prototype=Object.create(a.prototype),n.prototype.constructor=n,n.prototype._extractCallback=function(t){if(i.isFunction(t[t.length-1]))return t.pop()},n.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])},n.prototype._formatInput=function(t){var e=this.options.subscription;return e&&e.inputFormatter?e.inputFormatter.map(function(e,r){return e?e(t[r]):t[r]}):t},n.prototype._formatOutput=function(t){var e=this.options.subscription;return e&&e.outputFormatter&&t?e.outputFormatter(t):t},n.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}},n.prototype.unsubscribe=function(t){this.options.requestManager.removeSubscription(this.id,t),this.id=null,this.removeAllListeners(),clearInterval(this._reconnectIntervalId)},n.prototype.subscribe=function(){var t=this,e=Array.prototype.slice.call(arguments),r=this._toPayload(e);if(!r)return this;if(!this.options.requestManager.provider){var n=new Error("No provider set.");return this.callback(n,null,this),this.emit("error",n),this}if(!this.options.requestManager.provider.on){var o=new Error("The current provider doesn't support subscriptions: "+this.options.requestManager.provider.constructor.name);return this.callback(o,null,this),this.emit("error",o),this}return this.id&&this.unsubscribe(),this.options.params=r.params[1],"logs"===r.params[0]&&i.isObject(r.params[1])&&r.params[1].hasOwnProperty("fromBlock")&&isFinite(r.params[1].fromBlock)&&this.options.requestManager.send({method:"eth_getLogs",params:[r.params[1]]},function(e,r){e?(t.callback(e,null,t),t.emit("error",e)):r.forEach(function(e){var r=t._formatOutput(e);t.callback(null,r,t),t.emit("data",r)})}),"object"===typeof r.params[1]&&delete r.params[1].fromBlock,this.options.requestManager.send(r,function(e,n){!e&&n?(t.id=n,t.options.requestManager.addSubscription(t.id,r.params[0],t.options.type,function(e,r){i.isArray(r)&&(r=r[0]);var n=t._formatOutput(r);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,n);t.emit("data",n)}i.isFunction(t.callback)&&t.callback(e,n,t)})):i.isFunction(t.callback)&&(t.callback(e,null,t),t.emit("error",e))}),this},t.exports=n},function(t,e,r){"use strict";var n=r(5),i=r(21),o=r(7),a=r(39).subscriptions,s=r(22),u=r(11),c=r(40),f=r(76),h=r(187),l=r(72),d=r(196),p=r(77),m=r(319),b=o.formatters,v=function(t){return n.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getBlockByHash":"eth_getBlockByNumber"},y=function(t){return n.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex"},g=function(t){return n.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex"},_=function(t){return n.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber"},w=function(t){return n.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber"},M=function(){var t=this;i.packageInit(this,arguments);var e=this.setProvider;this.setProvider=function(){e.apply(t,arguments),t.net.setProvider.apply(t,arguments),t.personal.setProvider.apply(t,arguments),t.accounts.setProvider.apply(t,arguments),t.Contract.setProvider(t.currentProvider,t.accounts)};var r=null,o="latest";Object.defineProperty(this,"defaultAccount",{get:function(){return r},set:function(e){return e&&(r=u.toChecksumAddress(b.inputAddressFormatter(e))),t.Contract.defaultAccount=r,t.personal.defaultAccount=r,M.forEach(function(t){t.defaultAccount=r}),e},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return o},set:function(e){return o=e,t.Contract.defaultBlock=o,t.personal.defaultBlock=o,M.forEach(function(t){t.defaultBlock=o}),e},enumerable:!0}),this.clearSubscriptions=t._requestManager.clearSubscriptions,this.net=new c(this.currentProvider),this.net.getNetworkType=m.bind(this),this.accounts=new d(this.currentProvider),this.personal=new f(this.currentProvider),this.personal.defaultAccount=this.defaultAccount,this.Contract=h,this.Contract.defaultAccount=this.defaultAccount,this.Contract.defaultBlock=this.defaultBlock,this.Contract.setProvider(this.currentProvider,this.accounts),this.Iban=l,this.abi=p;var M=[new s({name:"getProtocolVersion",call:"eth_protocolVersion",params:0}),new s({name:"getCoinbase",call:"eth_coinbase",params:0}),new s({name:"isMining",call:"eth_mining",params:0}),new s({name:"getHashrate",call:"eth_hashrate",params:0,outputFormatter:u.hexToNumber}),new s({name:"isSyncing",call:"eth_syncing",params:0,outputFormatter:b.outputSyncingFormatter}),new s({name:"getGasPrice",call:"eth_gasPrice",params:0,outputFormatter:b.outputBigNumberFormatter}),new s({name:"getAccounts",call:"eth_accounts",params:0,outputFormatter:u.toChecksumAddress}),new s({name:"getBlockNumber",call:"eth_blockNumber",params:0,outputFormatter:u.hexToNumber}),new s({name:"getBalance",call:"eth_getBalance",params:2,inputFormatter:[b.inputAddressFormatter,b.inputDefaultBlockNumberFormatter],outputFormatter:b.outputBigNumberFormatter}),new s({name:"getStorageAt",call:"eth_getStorageAt",params:3,inputFormatter:[b.inputAddressFormatter,u.numberToHex,b.inputDefaultBlockNumberFormatter]}),new s({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[b.inputAddressFormatter,b.inputDefaultBlockNumberFormatter]}),new s({name:"getBlock",call:v,params:2,inputFormatter:[b.inputBlockNumberFormatter,function(t){return!!t}],outputFormatter:b.outputBlockFormatter}),new s({name:"getUncle",call:g,params:2,inputFormatter:[b.inputBlockNumberFormatter,u.numberToHex],outputFormatter:b.outputBlockFormatter}),new s({name:"getBlockTransactionCount",call:_,params:1,inputFormatter:[b.inputBlockNumberFormatter],outputFormatter:u.hexToNumber}),new s({name:"getBlockUncleCount",call:w,params:1,inputFormatter:[b.inputBlockNumberFormatter],outputFormatter:u.hexToNumber}),new s({name:"getTransaction",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:b.outputTransactionFormatter}),new s({name:"getTransactionFromBlock",call:y,params:2,inputFormatter:[b.inputBlockNumberFormatter,u.numberToHex],outputFormatter:b.outputTransactionFormatter}),new s({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:b.outputTransactionReceiptFormatter}),new s({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[b.inputAddressFormatter,b.inputDefaultBlockNumberFormatter],outputFormatter:u.hexToNumber}),new s({name:"sendSignedTransaction",call:"eth_sendRawTransaction",params:1,inputFormatter:[null]}),new s({name:"signTransaction",call:"eth_signTransaction",params:1,inputFormatter:[b.inputTransactionFormatter]}),new s({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[b.inputTransactionFormatter]}),new s({name:"sign",call:"eth_sign",params:2,inputFormatter:[b.inputSignFormatter,b.inputAddressFormatter],transformPayload:function(t){return t.params.reverse(),t}}),new s({name:"call",call:"eth_call",params:2,inputFormatter:[b.inputCallFormatter,b.inputDefaultBlockNumberFormatter]}),new s({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[b.inputCallFormatter],outputFormatter:u.hexToNumber}),new s({name:"getCompilers",call:"eth_getCompilers",params:0}),new s({name:"compile.solidity",call:"eth_compileSolidity",params:1}),new s({name:"compile.lll",call:"eth_compileLLL",params:1}),new s({name:"compile.serpent",call:"eth_compileSerpent",params:1}),new s({name:"submitWork",call:"eth_submitWork",params:3}),new s({name:"getWork",call:"eth_getWork",params:0}),new s({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[b.inputLogFormatter],outputFormatter:b.outputLogFormatter}),new a({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:b.outputBlockFormatter},pendingTransactions:{subscriptionName:"newPendingTransactions",params:0},logs:{params:1,inputFormatter:[b.inputLogFormatter],outputFormatter:b.outputLogFormatter,subscriptionHandler:function(t){t.removed?this.emit("changed",t):this.emit("data",t),n.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),n.isFunction(this.callback)&&this.callback(null,e._isSyncing,this),setTimeout(function(){e.emit("data",t),n.isFunction(e.callback)&&e.callback(null,t,e)},0)):(this.emit("data",t),n.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),n.isFunction(e.callback)&&e.callback(null,e._isSyncing,e))},500))}}}})];M.forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager,t.accounts),e.defaultBlock=t.defaultBlock,e.defaultAccount=t.defaultAccount})};i.addProviders(M),t.exports=M},function(t,e,r){"use strict";var n=r(5),i=r(21),o=r(22),a=r(11),s=r(39).subscription,u=r(7).formatters,c=r(7).errors,f=r(74),h=r(77),l=function t(e,r,o){var s=this,c=Array.prototype.slice.call(arguments);if(i.packageInit(this,[t.currentProvider]),this.clearSubscriptions=this._requestManager.clearSubscriptions,!(this instanceof t))throw new Error('Please use the "new" keyword to instantiate a web3.eth.contract() object!');if(!e||!Array.isArray(e))throw new Error("You must provide the json interface of the contract when instantiating a contract object.");this.options={};var f=c[c.length-1];n.isObject(f)&&!n.isArray(f)&&(o=f,this.options=n.extend(this.options,this._getOrSetDefaultOptions(o)),n.isObject(r)&&(r=null)),Object.defineProperty(this.options,"address",{set:function(t){t&&(s._address=a.toChecksumAddress(u.inputAddressFormatter(t)))},get:function(){return s._address},enumerable:!0}),Object.defineProperty(this.options,"jsonInterface",{set:function(t){return s.methods={},s.events={},s._jsonInterface=t.map(function(t){var e,r;if(t.name&&(r=a._jsonInterfaceMethodToString(t)),"function"===t.type)t.signature=h.encodeFunctionSignature(r),e=s._createTxObject.bind({method:t,parent:s}),s.methods[t.name]||(s.methods[t.name]=e),s.methods[t.signature]=e,s.methods[r]=e;else if("event"===t.type){t.signature=h.encodeEventSignature(r);var n=s._on.bind(s,t.signature);s.events[t.name]&&"bound "!==s.events[t.name].name||(s.events[t.name]=n),s.events[t.signature]=n,s.events[r]=n}return t}),s.events.allEvents=s._on.bind(s,"allevents"),s._jsonInterface},get:function(){return s._jsonInterface},enumerable:!0});var l=t.defaultAccount,d=t.defaultBlock||"latest";Object.defineProperty(this,"defaultAccount",{get:function(){return l},set:function(t){return t&&(l=a.toChecksumAddress(u.inputAddressFormatter(t))),t},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return d},set:function(t){return d=t,t},enumerable:!0}),this.methods={},this.events={},this._address=null,this._jsonInterface=[],this.options.address=r,this.options.jsonInterface=e};l.setProvider=function(t,e){i.packageInit(l,[t]),l._ethAccounts=e},l.prototype._getCallback=function(t){if(t&&n.isFunction(t[t.length-1]))return t.pop()},l.prototype._checkListener=function(t,e){if(e===t)throw new Error('The event "'+t+"\" is a reserved event name, you can't use it.")},l.prototype._getOrSetDefaultOptions=function(t){var e=t.gasPrice?String(t.gasPrice):null,r=t.from?a.toChecksumAddress(u.inputAddressFormatter(t.from)):null;return t.data=t.data||this.options.data,t.from=r||this.options.from,t.gasPrice=e||this.options.gasPrice,t.gas=t.gas||t.gasLimit||this.options.gas,delete t.gasLimit,t},l.prototype._encodeEventABI=function(t,e){e=e||{};var r=e.filter||{},i={};if(["fromBlock","toBlock"].filter(function(t){return void 0!==e[t]}).forEach(function(t){i[t]=u.inputBlockNumberFormatter(e[t])}),n.isArray(e.topics))i.topics=e.topics;else{if(i.topics=[],t&&!t.anonymous&&"ALLEVENTS"!==t.name&&i.topics.push(t.signature),"ALLEVENTS"!==t.name){var o=t.inputs.filter(function(t){return!0===t.indexed}).map(function(t){var e=r[t.name];return e?n.isArray(e)?e.map(function(e){return h.encodeParameter(t.type,e)}):h.encodeParameter(t.type,e):null});i.topics=i.topics.concat(o)}i.topics.length||delete i.topics}return this.options.address&&(i.address=this.options.address.toLowerCase()),i},l.prototype._decodeEventABI=function(t){var e=this;t.data=t.data||"",t.topics=t.topics||[];var r=u.outputLogFormatter(t);"ALLEVENTS"===e.name&&(e=e.jsonInterface.find(function(e){return e.signature===t.topics[0]})||{anonymous:!0}),e.inputs=e.inputs||[];var n=e.anonymous?t.topics:t.topics.slice(1);return r.returnValues=h.decodeLog(e.inputs,t.data,n),delete r.returnValues.__length__,r.event=e.name,r.signature=e.anonymous||!t.topics[0]?null:t.topics[0],r.raw={data:r.data,topics:r.topics},delete r.data,delete r.topics,r},l.prototype._encodeMethodABI=function(){var t=this._method.signature,e=this.arguments||[],r=!1,i=this._parent.options.jsonInterface.filter(function(e){return"constructor"===t&&e.type===t||(e.signature===t||e.signature===t.replace("0x","")||e.name===t)&&"function"===e.type}).map(function(t){var i=n.isArray(t.inputs)?t.inputs.length:0;if(i!==e.length)throw new Error("The number of arguments is not matching the methods required number. You need to pass "+i+" arguments.");return"function"===t.type&&(r=t.signature),n.isArray(t.inputs)?t.inputs.map(function(t){return t.type}):[]}).map(function(t){return h.encodeParameters(t,e).replace("0x","")})[0]||"";if("constructor"===t){if(!this._deployData)throw new Error("The contract has no contract data option set. This is necessary to append the constructor parameters.");return this._deployData+i}var o=r?r+i:i;if(o)return o;throw new Error("Couldn't find a matching contract method named \""+this._method.name+'".')},l.prototype._decodeMethodReturn=function(t,e){if(!e)return null;e=e.length>=2?e.slice(2):e;var r=h.decodeParameters(t,e);return 1===r.__length__?r[0]:(delete r.__length__,r)},l.prototype.deploy=function(t,e){if(t=t||{},t.arguments=t.arguments||[],t=this._getOrSetDefaultOptions(t),!t.data)return a._fireError(new Error('No "data" specified in neither the given options, nor the default options.'),null,null,e);var r=n.find(this.options.jsonInterface,function(t){return"constructor"===t.type})||{};return r.signature="constructor",this._createTxObject.apply({method:r,parent:this,deployData:t.data},t.arguments)},l.prototype._generateEventOptions=function(){var t=Array.prototype.slice.call(arguments),e=this._getCallback(t),r=n.isObject(t[t.length-1])?t.pop():{},i=n.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(!a.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,r),event:i,callback:e}},l.prototype.clone=function(){return new l(this.options.jsonInterface,this.options.address,this.options)},l.prototype.once=function(t,e,r){var i=Array.prototype.slice.call(arguments);if(!(r=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(),n.isFunction(r)&&r(t,e,i)})},l.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:[u.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(t.event),subscriptionHandler:function(t){t.removed?this.emit("changed",t):this.emit("data",t),n.isFunction(this.callback)&&this.callback(null,t,this)}},type:"eth",requestManager:this._requestManager});return e.subscribe("logs",t.params,t.callback||function(){}),e},l.prototype.getPastEvents=function(){var t=this._generateEventOptions.apply(this,arguments),e=new o({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[u.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(t.event)});e.setRequestManager(this._requestManager);var r=e.buildCall();return e=null,r(t.params,t.callback)},l.prototype._createTxObject=function(){var t=Array.prototype.slice.call(arguments),e={};if("function"===this.method.type&&(e.call=this.parent._executeMethod.bind(e,"call"),e.call.request=this.parent._executeMethod.bind(e,"call",!0)),e.send=this.parent._executeMethod.bind(e,"send"),e.send.request=this.parent._executeMethod.bind(e,"send",!0),e.encodeABI=this.parent._encodeMethodABI.bind(e),e.estimateGas=this.parent._executeMethod.bind(e,"estimate"),t&&this.method.inputs&&t.length!==this.method.inputs.length)throw c.InvalidNumberOfParams(t.length,this.method.inputs.length,this.method.name);return e.arguments=t||[],e._method=this.method,e._parent=this.parent,this.deployData&&(e._deployData=this.deployData),e},l.prototype._processExecuteArguments=function(t,e){var r={};if(r.type=t.shift(),r.callback=this._parent._getCallback(t),"call"===r.type&&!0!==t[t.length-1]&&(n.isString(t[t.length-1])||isFinite(t[t.length-1]))&&(r.defaultBlock=t.pop()),r.options=n.isObject(t[t.length-1])?t.pop():{},r.generateRequest=!0===t[t.length-1]&&t.pop(),r.options=this._parent._getOrSetDefaultOptions(r.options),r.options.data=this.encodeABI(),!this._deployData&&!a.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||(r.options.to=this._parent.options.address),r.options.data?r:a._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."),e.eventEmitter,e.reject,r.callback)},l.prototype._executeMethod=function(){var t=this,e=this._parent._processExecuteArguments.call(this,Array.prototype.slice.call(arguments),r),r=f("send"!==e.type);if(e.generateRequest){var i={params:[u.inputCallFormatter.call(this._parent,e.options),u.inputDefaultBlockNumberFormatter.call(this._parent,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 new o({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[u.inputCallFormatter],outputFormatter:a.hexToNumber,requestManager:t._parent._requestManager,accounts:l._ethAccounts,defaultAccount:t._parent.defaultAccount,defaultBlock:t._parent.defaultBlock}).createFunction()(e.options,e.callback);case"call":return new o({name:"call",call:"eth_call",params:2,inputFormatter:[u.inputCallFormatter,u.inputDefaultBlockNumberFormatter],outputFormatter:function(e){return t._parent._decodeMethodReturn(t._method.outputs,e)},requestManager:t._parent._requestManager,accounts:l._ethAccounts,defaultAccount:t._parent.defaultAccount,defaultBlock:t._parent.defaultBlock}).createFunction()(e.options,e.defaultBlock,e.callback);case"send":if(!a.isAddress(e.options.from))return a._fireError(new Error('No "from" address specified in neither the given options, nor the default options.'),r.eventEmitter,r.reject,e.callback);if(n.isBoolean(this._method.payable)&&!this._method.payable&&e.options.value&&e.options.value>0)return a._fireError(new Error("Can not send value to non-payable contract method or constructor"),r.eventEmitter,r.reject,e.callback);var s={receiptFormatter:function(e){if(n.isArray(e.logs)){var r=n.map(e.logs,function(e){return t._parent._decodeEventABI.call({name:"ALLEVENTS",jsonInterface:t._parent.options.jsonInterface},e)});e.events={};var i=0;r.forEach(function(t){t.event?e.events[t.event]?Array.isArray(e.events[t.event])?e.events[t.event].push(t):e.events[t.event]=[e.events[t.event],t]:e.events[t.event]=t:(e.events[i]=t,i++)}),delete e.logs}return e},contractDeployFormatter:function(e){var r=t._parent.clone();return r.options.address=e.contractAddress,r}};return new o({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[u.inputTransactionFormatter],requestManager:t._parent._requestManager,accounts:l._ethAccounts,defaultAccount:t._parent.defaultAccount,defaultBlock:t._parent.defaultBlock,extraFormatters:s}).createFunction()(e.options,e.callback)}},t.exports=l},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var a=t.charCodeAt(o)-48;n<<=4,n|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function s(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}function u(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function c(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,h=67108863&u,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;i=0|t.words[p],o=0|e.words[d],a=i*o+h,f+=a/67108864|0,h=67108863&a}r.words[c]=0|h,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}function f(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var f=o-c,h=0|t.words[f],l=0|e.words[c],d=h*l,p=67108863&d;a=a+(d/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,i+=a>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function h(t,e,r){return(new l).mulp(t,e,r)}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 n(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"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;var _;try{_=r(0).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"===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,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){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):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("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<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=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 r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=t.length-6,n=0;r>=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,u=Math.min(o,o-a)+r,c=0,f=r;f<u;f+=n)c=s(t,f,f+n,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=s(t,f,t.length,e),f=0;f<a;f++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&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?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],M=[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 r;if(16===t||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,r=0!==o||a!==this.length-1?w[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=M[t],f=k[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var l=h.modn(f).toString(t);h=h.idivn(f),r=h.isZero()?l+r:w[c-l.length]+l+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n("undefined"!==typeof _),this.toArrayLike(_,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},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;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.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 r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.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,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.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){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();var r,n;this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.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 r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;var n,i;r>0?(n=this,i=t):(n=t,i=this);for(var o=0,a=0;a<i.length;a++)e=(0|n.words[a])-(0|i.words[a])+o,o=e>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)e=(0|n.words[a])+o,o=e>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var E=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,c=0,f=0|a[0],h=8191&f,l=f>>>13,d=0|a[1],p=8191&d,m=d>>>13,b=0|a[2],v=8191&b,y=b>>>13,g=0|a[3],_=8191&g,w=g>>>13,M=0|a[4],k=8191&M,E=M>>>13,x=0|a[5],S=8191&x,A=x>>>13,C=0|a[6],T=8191&C,I=C>>>13,P=0|a[7],R=8191&P,O=P>>>13,j=0|a[8],N=8191&j,B=j>>>13,L=0|a[9],F=8191&L,D=L>>>13,U=0|s[0],q=8191&U,z=U>>>13,H=0|s[1],V=8191&H,K=H>>>13,Y=0|s[2],G=8191&Y,W=Y>>>13,Z=0|s[3],X=8191&Z,$=Z>>>13,Q=0|s[4],J=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,ft=0|s[8],ht=8191&ft,lt=ft>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(h,q),i=Math.imul(h,z),i=i+Math.imul(l,q)|0,o=Math.imul(l,z);var bt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(p,q),i=Math.imul(p,z),i=i+Math.imul(m,q)|0,o=Math.imul(m,z),n=n+Math.imul(h,V)|0,i=i+Math.imul(h,K)|0,i=i+Math.imul(l,V)|0,o=o+Math.imul(l,K)|0;var vt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),i=Math.imul(v,z),i=i+Math.imul(y,q)|0,o=Math.imul(y,z),n=n+Math.imul(p,V)|0,i=i+Math.imul(p,K)|0,i=i+Math.imul(m,V)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(h,G)|0,i=i+Math.imul(h,W)|0,i=i+Math.imul(l,G)|0,o=o+Math.imul(l,W)|0;var yt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(_,q),i=Math.imul(_,z),i=i+Math.imul(w,q)|0,o=Math.imul(w,z),n=n+Math.imul(v,V)|0,i=i+Math.imul(v,K)|0,i=i+Math.imul(y,V)|0,o=o+Math.imul(y,K)|0,n=n+Math.imul(p,G)|0,i=i+Math.imul(p,W)|0,i=i+Math.imul(m,G)|0,o=o+Math.imul(m,W)|0,n=n+Math.imul(h,X)|0,i=i+Math.imul(h,$)|0,i=i+Math.imul(l,X)|0,o=o+Math.imul(l,$)|0;var gt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=Math.imul(k,z),i=i+Math.imul(E,q)|0,o=Math.imul(E,z),n=n+Math.imul(_,V)|0,i=i+Math.imul(_,K)|0,i=i+Math.imul(w,V)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(v,G)|0,i=i+Math.imul(v,W)|0,i=i+Math.imul(y,G)|0,o=o+Math.imul(y,W)|0,n=n+Math.imul(p,X)|0,i=i+Math.imul(p,$)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,$)|0,n=n+Math.imul(h,J)|0,i=i+Math.imul(h,tt)|0,i=i+Math.imul(l,J)|0,o=o+Math.imul(l,tt)|0;var _t=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(S,q),i=Math.imul(S,z),i=i+Math.imul(A,q)|0,o=Math.imul(A,z),n=n+Math.imul(k,V)|0,i=i+Math.imul(k,K)|0,i=i+Math.imul(E,V)|0,o=o+Math.imul(E,K)|0,n=n+Math.imul(_,G)|0,i=i+Math.imul(_,W)|0,i=i+Math.imul(w,G)|0,o=o+Math.imul(w,W)|0,n=n+Math.imul(v,X)|0,i=i+Math.imul(v,$)|0,i=i+Math.imul(y,X)|0,o=o+Math.imul(y,$)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(h,rt)|0,i=i+Math.imul(h,nt)|0,i=i+Math.imul(l,rt)|0,o=o+Math.imul(l,nt)|0;var wt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(T,q),i=Math.imul(T,z),i=i+Math.imul(I,q)|0,o=Math.imul(I,z),n=n+Math.imul(S,V)|0,i=i+Math.imul(S,K)|0,i=i+Math.imul(A,V)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(k,G)|0,i=i+Math.imul(k,W)|0,i=i+Math.imul(E,G)|0,o=o+Math.imul(E,W)|0,n=n+Math.imul(_,X)|0,i=i+Math.imul(_,$)|0,i=i+Math.imul(w,X)|0,o=o+Math.imul(w,$)|0,n=n+Math.imul(v,J)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(y,J)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(h,ot)|0,i=i+Math.imul(h,at)|0,i=i+Math.imul(l,ot)|0,o=o+Math.imul(l,at)|0;var Mt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(R,q),i=Math.imul(R,z),i=i+Math.imul(O,q)|0,o=Math.imul(O,z),n=n+Math.imul(T,V)|0,i=i+Math.imul(T,K)|0,i=i+Math.imul(I,V)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(S,G)|0,i=i+Math.imul(S,W)|0,i=i+Math.imul(A,G)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(k,X)|0,i=i+Math.imul(k,$)|0,i=i+Math.imul(E,X)|0,o=o+Math.imul(E,$)|0,n=n+Math.imul(_,J)|0,i=i+Math.imul(_,tt)|0,i=i+Math.imul(w,J)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,i=i+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,n=n+Math.imul(h,ut)|0,i=i+Math.imul(h,ct)|0,i=i+Math.imul(l,ut)|0,o=o+Math.imul(l,ct)|0;var kt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,q),i=Math.imul(N,z),i=i+Math.imul(B,q)|0,o=Math.imul(B,z),n=n+Math.imul(R,V)|0,i=i+Math.imul(R,K)|0,i=i+Math.imul(O,V)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(T,G)|0,i=i+Math.imul(T,W)|0,i=i+Math.imul(I,G)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(S,X)|0,i=i+Math.imul(S,$)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(k,J)|0,i=i+Math.imul(k,tt)|0,i=i+Math.imul(E,J)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(_,rt)|0,i=i+Math.imul(_,nt)|0,i=i+Math.imul(w,rt)|0,o=o+Math.imul(w,nt)|0,n=n+Math.imul(v,ot)|0,i=i+Math.imul(v,at)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,n=n+Math.imul(h,ht)|0,i=i+Math.imul(h,lt)|0,i=i+Math.imul(l,ht)|0,o=o+Math.imul(l,lt)|0;var Et=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(F,q),i=Math.imul(F,z),i=i+Math.imul(D,q)|0,o=Math.imul(D,z),n=n+Math.imul(N,V)|0,i=i+Math.imul(N,K)|0,i=i+Math.imul(B,V)|0,o=o+Math.imul(B,K)|0,n=n+Math.imul(R,G)|0,i=i+Math.imul(R,W)|0,i=i+Math.imul(O,G)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(T,X)|0,i=i+Math.imul(T,$)|0,i=i+Math.imul(I,X)|0,o=o+Math.imul(I,$)|0,n=n+Math.imul(S,J)|0,i=i+Math.imul(S,tt)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,i=i+Math.imul(E,rt)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(_,ot)|0,i=i+Math.imul(_,at)|0,i=i+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,n=n+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0,n=n+Math.imul(p,ht)|0,i=i+Math.imul(p,lt)|0,i=i+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0,n=n+Math.imul(h,pt)|0,i=i+Math.imul(h,mt)|0,i=i+Math.imul(l,pt)|0,o=o+Math.imul(l,mt)|0;var xt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(F,V),i=Math.imul(F,K),i=i+Math.imul(D,V)|0,o=Math.imul(D,K),n=n+Math.imul(N,G)|0,i=i+Math.imul(N,W)|0,i=i+Math.imul(B,G)|0,o=o+Math.imul(B,W)|0,n=n+Math.imul(R,X)|0,i=i+Math.imul(R,$)|0,i=i+Math.imul(O,X)|0,o=o+Math.imul(O,$)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(I,J)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(S,rt)|0,i=i+Math.imul(S,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(k,ot)|0,i=i+Math.imul(k,at)|0,i=i+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,n=n+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,i=i+Math.imul(w,ut)|0,o=o+Math.imul(w,ct)|0,n=n+Math.imul(v,ht)|0,i=i+Math.imul(v,lt)|0,i=i+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var St=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(F,G),i=Math.imul(F,W),i=i+Math.imul(D,G)|0,o=Math.imul(D,W),n=n+Math.imul(N,X)|0,i=i+Math.imul(N,$)|0,i=i+Math.imul(B,X)|0,o=o+Math.imul(B,$)|0,n=n+Math.imul(R,J)|0,i=i+Math.imul(R,tt)|0,i=i+Math.imul(O,J)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(S,ot)|0,i=i+Math.imul(S,at)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,n=n+Math.imul(k,ut)|0,i=i+Math.imul(k,ct)|0,i=i+Math.imul(E,ut)|0,o=o+Math.imul(E,ct)|0,n=n+Math.imul(_,ht)|0,i=i+Math.imul(_,lt)|0,i=i+Math.imul(w,ht)|0,o=o+Math.imul(w,lt)|0,n=n+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(F,X),i=Math.imul(F,$),i=i+Math.imul(D,X)|0,o=Math.imul(D,$),n=n+Math.imul(N,J)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(B,J)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(R,rt)|0,i=i+Math.imul(R,nt)|0,i=i+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(T,ot)|0,i=i+Math.imul(T,at)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(S,ut)|0,i=i+Math.imul(S,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(k,ht)|0,i=i+Math.imul(k,lt)|0,i=i+Math.imul(E,ht)|0,o=o+Math.imul(E,lt)|0,n=n+Math.imul(_,pt)|0,i=i+Math.imul(_,mt)|0,i=i+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var Ct=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(F,J),i=Math.imul(F,tt),i=i+Math.imul(D,J)|0,o=Math.imul(D,tt),n=n+Math.imul(N,rt)|0,i=i+Math.imul(N,nt)|0,i=i+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(R,ot)|0,i=i+Math.imul(R,at)|0,i=i+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,ct)|0,n=n+Math.imul(S,ht)|0,i=i+Math.imul(S,lt)|0,i=i+Math.imul(A,ht)|0,o=o+Math.imul(A,lt)|0,n=n+Math.imul(k,pt)|0,i=i+Math.imul(k,mt)|0,i=i+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var Tt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(F,rt),i=Math.imul(F,nt),i=i+Math.imul(D,rt)|0,o=Math.imul(D,nt),n=n+Math.imul(N,ot)|0,i=i+Math.imul(N,at)|0,i=i+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,n=n+Math.imul(R,ut)|0,i=i+Math.imul(R,ct)|0,i=i+Math.imul(O,ut)|0,o=o+Math.imul(O,ct)|0,n=n+Math.imul(T,ht)|0,i=i+Math.imul(T,lt)|0,i=i+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0,n=n+Math.imul(S,pt)|0,i=i+Math.imul(S,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var It=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(F,ot),i=Math.imul(F,at),i=i+Math.imul(D,ot)|0,o=Math.imul(D,at),n=n+Math.imul(N,ut)|0,i=i+Math.imul(N,ct)|0,i=i+Math.imul(B,ut)|0,o=o+Math.imul(B,ct)|0,n=n+Math.imul(R,ht)|0,i=i+Math.imul(R,lt)|0,i=i+Math.imul(O,ht)|0,o=o+Math.imul(O,lt)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Pt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(F,ut),i=Math.imul(F,ct),i=i+Math.imul(D,ut)|0,o=Math.imul(D,ct),n=n+Math.imul(N,ht)|0,i=i+Math.imul(N,lt)|0,i=i+Math.imul(B,ht)|0,o=o+Math.imul(B,lt)|0,n=n+Math.imul(R,pt)|0,i=i+Math.imul(R,mt)|0,i=i+Math.imul(O,pt)|0,o=o+Math.imul(O,mt)|0;var Rt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(F,ht),i=Math.imul(F,lt),i=i+Math.imul(D,ht)|0,o=Math.imul(D,lt),n=n+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(B,pt)|0,o=o+Math.imul(B,mt)|0;var Ot=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(F,pt),i=Math.imul(F,mt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,mt);var jt=(c+n|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,u[0]=bt,u[1]=vt,u[2]=yt,u[3]=gt,u[4]=_t,u[5]=wt,u[6]=Mt,u[7]=kt,u[8]=Et,u[9]=xt,u[10]=St,u[11]=At,u[12]=Ct,u[13]=Tt,u[14]=It,u[15]=Pt,u[16]=Rt,u[17]=Ot,u[18]=jt,0!==c&&(u[19]=c,r.length++),r};Math.imul||(E=c),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?E(this,t,e):r<63?c(this,t,e):r<1024?f(this,t,e):h(this,t,e)},l.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},l.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},l.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},l.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var h=u,l=c,d=0;d<a;d++){var p=r[f+d],m=n[f+d],b=r[f+d+a],v=n[f+d+a],y=h*b-l*v;v=h*v+l*b,b=y,r[f+d]=p+b,n[f+d]=m+v,r[f+d+a]=p-b,n[f+d+a]=m-v,d!==s&&(y=u*h-c*l,l=u*l+c*h,h=y)}},l.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},l.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},l.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},l.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},l.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},l.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,h,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*h[d];u[d]=s[d]*h[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),h(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"===typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=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=u(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){n("number"===typeof t&&t>=0);var i;i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var h=0|this.words[c];this.words[c]=f<<26-o|h>>>o,f=h&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},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){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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(n("number"===typeof t),n(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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o=t.length+r;this._expand(o);var a,s=0;for(i=0;i<t.length;i++){a=(0|this.words[i+r])+s;var u=(0|t.words[i])*e;a-=67108863&u,s=(a>>26)-(u/67108864|0),this.words[i+r]=67108863&a}for(;i<this.length-r;i++)a=(0|this.words[i+r])+s,s=a>>26,this.words[i+r]=67108863&a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)a=-(0|this.words[i])+s,s=a>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){s=new o(null),s.length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var h=u-1;h>=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){if(n(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var i,a,s;return 0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):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 r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);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){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var f=r.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()||a.isOdd())&&(i.iadd(f),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(e.iushrn(u);u-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var f=0,h=1;0===(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a)):(r.isub(e),a.isub(i))}var l;return l=0===e.cmpn(1)?i:a,l.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(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},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){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=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 r;if(this.length>1)r=1;else{e&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];r=i===t?0:i<t?-1:1}return 0!==this.negative?0|-r:r},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(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 n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var x={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,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},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 r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[n-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,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(m,d),i(b,d),i(v,d),v.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(x[t])return x[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 x[t]=e,e},y.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},y.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(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 r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},y.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},y.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},y.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},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(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var h=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var m=d,b=0;0!==m.cmp(s);b++)m=m.redSqr();n(b<p);var v=this.pow(h,new o(1).iushln(p-b-1));l=l.redMul(v),h=v.redSqr(),d=d.redMul(h),p=b}return l},y.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},y.prototype.pow=function(t,e){if(e.isZero())return new o(1);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],f=u-1;f>=0;f--){var h=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=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 r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).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 r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}("undefined"===typeof t||t,this)}).call(e,r(18)(t))},function(t,e,r){var n=r(15),i=r(7).formatters,o=r(23),a=function(){this._inputFormatter=function(){var t=Array.prototype.slice.call(arguments);return t[0]=t[0]&&"0x0"!==t[0]?i.inputAddressFormatter(t[0]):"",n.formatInputInt.apply(this,t)},this._outputFormatter=n.formatOutputAddress};a.prototype=new o({}),a.prototype.constructor=a,a.prototype.isType=function(t){return!!t.match(/address(\[([0-9]*)\])?/)},t.exports=a},function(t,e,r){var n=r(15),i=r(23),o=function(){this._inputFormatter=n.formatInputBool,this._outputFormatter=n.formatOutputBool};o.prototype=new i({}),o.prototype.constructor=o,o.prototype.isType=function(t){return!!t.match(/^bool(\[([0-9]*)\])*$/)},t.exports=o},function(t,e,r){var n=r(15),i=r(23),o=function(){this._inputFormatter=n.formatInputInt,this._outputFormatter=n.formatOutputInt};o.prototype=new i({}),o.prototype.constructor=o,o.prototype.isType=function(t){return!!t.match(/^int([0-9]*)?(\[([0-9]*)\])*$/)},t.exports=o},function(t,e,r){var n=r(15),i=r(23),o=function(){this._inputFormatter=n.formatInputInt,this._outputFormatter=n.formatOutputUInt};o.prototype=new i({}),o.prototype.constructor=o,o.prototype.isType=function(t){return!!t.match(/^uint([0-9]*)?(\[([0-9]*)\])*$/)},t.exports=o},function(t,e,r){var n=r(15),i=r(23),o=function(){this._inputFormatter=n.formatInputDynamicBytes,this._outputFormatter=n.formatOutputDynamicBytes};o.prototype=new i({}),o.prototype.constructor=o,o.prototype.isType=function(t){return!!t.match(/^bytes(\[([0-9]*)\])*$/)},o.prototype.isDynamicType=function(){return!0},t.exports=o},function(t,e,r){var n=r(15),i=r(23),o=function(){this._inputFormatter=n.formatInputString,this._outputFormatter=n.formatOutputString};o.prototype=new i({}),o.prototype.constructor=o,o.prototype.isType=function(t){return!!t.match(/^string(\[([0-9]*)\])*$/)},o.prototype.isDynamicType=function(){return!0},t.exports=o},function(t,e,r){var n=r(15),i=r(23),o=function(){this._inputFormatter=n.formatInputBytes,this._outputFormatter=n.formatOutputBytes};o.prototype=new i({}),o.prototype.constructor=o,o.prototype.isType=function(t){return!!t.match(/^bytes([0-9]{1,})(\[([0-9]*)\])*$/)},t.exports=o},function(t,e,r){"use strict";(function(e){function n(t){this._accounts=t,this.length=0,this.defaultKeyName="web3js_wallet"}var i=r(5),o=r(21),a=r(22),s=r(197),u=r(198),c=r(117),f=r(116),h=r(111),l=r(50),d=r(26),p=r(307),m=r(317),b=r(11),v=r(7),y=function(t){return i.isUndefined(t)||i.isNull(t)},g=function(){var t=this;o.packageInit(this,arguments),delete this.BatchRequest,delete this.extend;var e=[new a({name:"getId",call:"net_version",params:0,outputFormatter:b.hexToNumber}),new a({name:"getGasPrice",call:"eth_gasPrice",params:0}),new a({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[function(t){if(b.isAddress(t))return t;throw new Error("Address "+t+' is not a valid address to get the "transactionCount".')},function(){return"latest"}]})];this._ethereumCall={},i.each(e,function(e){e.attachToObject(t._ethereumCall),e.setRequestManager(t._requestManager)}),this.wallet=new n(this)};g.prototype._addAccountFunctions=function(t){var e=this;return t.signTransaction=function(r,n){return e.signTransaction(r,t.privateKey,n)},t.sign=function(r){return e.sign(r,t.privateKey)},t.encrypt=function(r,n){return e.encrypt(t.privateKey,r,n)},t},g.prototype.create=function(t){return this._addAccountFunctions(u.create(t||b.randomHex(32)))},g.prototype.privateKeyToAccount=function(t){return this._addAccountFunctions(u.fromPrivate(t))},g.prototype.signTransaction=function(t,e,r){function n(t){if(!t.gas&&!t.gasLimit)throw new Error('"gas" is missing');var n={nonce:b.numberToHex(t.nonce),to:t.to?v.formatters.inputAddressFormatter(t.to):"0x",data:t.data||"0x",value:t.value?b.numberToHex(t.value):"0x",gas:b.numberToHex(t.gasLimit||t.gas),gasPrice:b.numberToHex(t.gasPrice),chainId:b.numberToHex(t.chainId)},o=f.encode([l.fromNat(n.nonce),l.fromNat(n.gasPrice),l.fromNat(n.gas),n.to.toLowerCase(),l.fromNat(n.value),n.data,l.fromNat(n.chainId||"0x1"),"0x","0x"]),a=c.keccak256(o),s=u.makeSigner(2*h.toNumber(n.chainId||"0x1")+35)(c.keccak256(o),e),d=f.decode(o).slice(0,6).concat(u.decodeSignature(s)),p=f.encode(d),m=f.decode(p),y={messageHash:a,v:m[6],r:m[7],s:m[8],rawTransaction:p};return i.isFunction(r)&&r(null,y),y}var o=this;return void 0!==t.nonce&&void 0!==t.chainId&&void 0!==t.gasPrice?n(t):s.all([y(t.chainId)?o._ethereumCall.getId():t.chainId,y(t.gasPrice)?o._ethereumCall.getGasPrice():t.gasPrice,y(t.nonce)?o._ethereumCall.getTransactionCount(o.privateKeyToAccount(e).address):t.nonce]).then(function(e){if(y(e[0])||y(e[1])||y(e[2]))throw new Error('One of the values "chainId", "gasPrice", or "nonce" couldn\'t be fetched: '+JSON.stringify(e));return n(i.extend(t,{chainId:e[0],gasPrice:e[1],nonce:e[2]}))})},g.prototype.recoverTransaction=function(t){var e=f.decode(t),r=u.encodeSignature(e.slice(6,9)),n=l.toNumber(e[6]),i=n<35?[]:[l.fromNumber(n-35>>1),"0x","0x"],o=e.slice(0,6).concat(i),a=f.encode(o);return u.recover(c.keccak256(a),r)},g.prototype.hashMessage=function(t){var e=b.isHexStrict(t)?b.hexToUtf8(t):t,r="\x19Ethereum Signed Message:\n"+e.length+e;return c.keccak256s(r)},g.prototype.sign=function(t,e){var r=this.hashMessage(t),n=u.sign(r,e),i=u.decodeSignature(n);return{message:t,messageHash:r,v:i[0],r:i[1],s:i[2],signature:n}},g.prototype.recover=function(t,e){return i.isObject(t)?this.recover(t.messageHash,u.encodeSignature([t.v,t.r,t.s])):(b.isHexStrict(t)||(t=this.hashMessage(t)),4===arguments.length?this.recover(t,u.encodeSignature([].slice.call(arguments,1,4))):u.recover(t,e))},g.prototype.decrypt=function(t,r,n){if(!i.isString(r))throw new Error("No password given.");var o=i.isObject(t)?t:JSON.parse(n?t.toLowerCase():t);if(3!==o.version)throw new Error("Not a valid V3 wallet");var a,s;if("scrypt"===o.crypto.kdf)s=o.crypto.kdfparams,a=p(new e(r),new e(s.salt,"hex"),s.n,s.r,s.p,s.dklen);else{if("pbkdf2"!==o.crypto.kdf)throw new Error("Unsupported key derivation scheme");if(s=o.crypto.kdfparams,"hmac-sha256"!==s.prf)throw new Error("Unsupported parameters to PBKDF2");a=d.pbkdf2Sync(new e(r),new e(s.salt,"hex"),s.c,s.dklen,"sha256")}var u=new e(o.crypto.ciphertext,"hex");if(b.sha3(e.concat([a.slice(16,32),u])).replace("0x","")!==o.crypto.mac)throw new Error("Key derivation failed - possibly wrong password");var c=d.createDecipheriv(o.crypto.cipher,a.slice(0,16),new e(o.crypto.cipherparams.iv,"hex")),f="0x"+e.concat([c.update(u),c.final()]).toString("hex");return this.privateKeyToAccount(f)},g.prototype.encrypt=function(t,r,n){var i=this.privateKeyToAccount(t);n=n||{};var o,a=n.salt||d.randomBytes(32),s=n.iv||d.randomBytes(16),u=n.kdf||"scrypt",c={dklen:n.dklen||32,salt:a.toString("hex")};if("pbkdf2"===u)c.c=n.c||262144,c.prf="hmac-sha256",o=d.pbkdf2Sync(new e(r),a,c.c,c.dklen,"sha256");else{if("scrypt"!==u)throw new Error("Unsupported kdf");c.n=n.n||8192,c.r=n.r||8,c.p=n.p||1,o=p(new e(r),a,c.n,c.r,c.p,c.dklen)}var f=d.createCipheriv(n.cipher||"aes-128-ctr",o.slice(0,16),s);if(!f)throw new Error("Unsupported cipher");var h=e.concat([f.update(new e(i.privateKey.replace("0x",""),"hex")),f.final()]),l=b.sha3(e.concat([o.slice(16,32),new e(h,"hex")])).replace("0x","");return{version:3,id:m.v4({random:n.uuid||d.randomBytes(16)}),address:i.address.toLowerCase().replace("0x",""),crypto:{ciphertext:h.toString("hex"),cipherparams:{iv:s.toString("hex")},cipher:n.cipher||"aes-128-ctr",kdf:u,kdfparams:c,mac:l.toString("hex")}}},n.prototype._findSafeIndex=function(t){return t=t||0,i.has(this,t)?this._findSafeIndex(t+1):t},n.prototype._currentIndexes=function(){return Object.keys(this).map(function(t){return parseInt(t)}).filter(function(t){return t<9e20})},n.prototype.create=function(t,e){for(var r=0;r<t;++r)this.add(this._accounts.create(e).privateKey);return this},n.prototype.add=function(t){return i.isString(t)&&(t=this._accounts.privateKeyToAccount(t)),this[t.address]?this[t.address]:(t=this._accounts.privateKeyToAccount(t.privateKey),t.index=this._findSafeIndex(),this[t.index]=t,this[t.address]=t,this[t.address.toLowerCase()]=t,this.length++,t)},n.prototype.remove=function(t){var e=this[t];return!!e&&(this[e.address].privateKey=null,delete this[e.address],this[e.address.toLowerCase()].privateKey=null,delete this[e.address.toLowerCase()],this[e.index].privateKey=null,delete this[e.index],this.length--,!0)},n.prototype.clear=function(){var t=this;return this._currentIndexes().forEach(function(e){t.remove(e)}),this},n.prototype.encrypt=function(t,e){var r=this;return this._currentIndexes().map(function(n){return r[n].encrypt(t,e)})},n.prototype.decrypt=function(t,e){var r=this;return t.forEach(function(t){var n=r._accounts.decrypt(t,e);if(!n)throw new Error("Couldn't decrypt accounts. Password wrong?");r.add(n)}),this},n.prototype.save=function(t,e){return localStorage.setItem(e||this.defaultKeyName,JSON.stringify(this.encrypt(t))),!0},n.prototype.load=function(t,e){var r=localStorage.getItem(e||this.defaultKeyName);if(r)try{r=JSON.parse(r)}catch(t){}return this.decrypt(r||[],t)},"undefined"===typeof localStorage&&(delete n.prototype.save,delete n.prototype.load),t.exports=g}).call(e,r(0).Buffer)},function(t,e,r){(function(e,r,n){!function(e){t.exports=e()}(function(){var t,i,o;return function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){var u="function"==typeof _dereq_&&_dereq_;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=r[a]={exports:{}};e[a][0].call(f.exports,function(t){var r=e[a][1][t];return i(r||t)},f,f.exports,t,e,r,n)}return r[a].exports}for(var o="function"==typeof _dereq_&&_dereq_,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(t,e,r){"use strict";e.exports=function(t){function e(t){var e=new r(t),n=e.promise();return e.setHowMany(1),e.setUnwrap(),e.init(),n}var r=t._SomePromiseArray;t.any=function(t){return e(t)},t.prototype.any=function(){return e(this)}}},{}],2:[function(t,r,n){"use strict";function i(){this._isTickUsed=!1,this._lateQueue=new f(16),this._normalQueue=new f(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var t=this;this.drainQueues=function(){t._drainQueues()},this._schedule=c}function o(t,e,r){this._lateQueue.push(t,e,r),this._queueTick()}function a(t,e,r){this._normalQueue.push(t,e,r),this._queueTick()}function s(t){this._normalQueue._pushOne(t),this._queueTick()}var u;try{throw new Error}catch(t){u=t}var c=t("./schedule"),f=t("./queue"),h=t("./util");i.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},i.prototype.disableTrampolineIfNecessary=function(){h.hasDevTools&&(this._trampolineEnabled=!1)},i.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},i.prototype.fatalError=function(t,r){r?(e.stderr.write("Fatal "+(t instanceof Error?t.stack:t)),e.exit(2)):this.throwLater(t)},i.prototype.throwLater=function(t,e){if(1===arguments.length&&(e=t,t=function(){throw e}),"undefined"!==typeof setTimeout)setTimeout(function(){t(e)},0);else try{this._schedule(function(){t(e)})}catch(t){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},h.hasDevTools?(i.prototype.invokeLater=function(t,e,r){this._trampolineEnabled?o.call(this,t,e,r):this._schedule(function(){setTimeout(function(){t.call(e,r)},100)})},i.prototype.invoke=function(t,e,r){this._trampolineEnabled?a.call(this,t,e,r):this._schedule(function(){t.call(e,r)})},i.prototype.settlePromises=function(t){this._trampolineEnabled?s.call(this,t):this._schedule(function(){t._settlePromises()})}):(i.prototype.invokeLater=o,i.prototype.invoke=a,i.prototype.settlePromises=s),i.prototype.invokeFirst=function(t,e,r){this._normalQueue.unshift(t,e,r),this._queueTick()},i.prototype._drainQueue=function(t){for(;t.length()>0;){var e=t.shift();if("function"===typeof e){var r=t.shift(),n=t.shift();e.call(r,n)}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},r.exports=i,r.exports.firstLineError=u},{"./queue":26,"./schedule":29,"./util":36}],3:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){var i=!1,o=function(t,e){this._reject(e)},a=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(o,o,null,this,t)},s=function(t,e){0===(50397184&this._bitField)&&this._resolveCallback(e.target)},u=function(t,e){e.promiseRejectionQueued||this._reject(t)};t.prototype.bind=function(o){i||(i=!0,t.prototype._propagateFrom=n.propagateFromFunction(),t.prototype._boundValue=n.boundValueFunction());var c=r(o),f=new t(e);f._propagateFrom(this,1);var h=this._target();if(f._setBoundTo(c),c instanceof t){var l={promiseRejectionQueued:!1,promise:f,target:h,bindingPromise:c};h._then(e,a,void 0,f,l),c._then(s,u,void 0,f,l),f._setOnCancel(c)}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,r){return t.resolve(r).bind(e)}}},{}],4:[function(t,e,r){"use strict";function n(){try{Promise===o&&(Promise=i)}catch(t){}return o}var i;"undefined"!==typeof Promise&&(i=Promise);var o=t("./promise")();o.noConflict=n,e.exports=o},{"./promise":22}],5:[function(t,e,r){"use strict";var n=Object.create;if(n){var i=n(null),o=n(null);i[" size"]=o[" size"]=0}e.exports=function(e){function r(t,r){var n;if(null!=t&&(n=t[r]),"function"!==typeof n){var i="Object "+s.classString(t)+" has no method '"+s.toString(r)+"'";throw new e.TypeError(i)}return n}function n(t){return r(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 a,s=t("./util"),u=s.canEvaluate;s.isIdentifier;e.prototype.call=function(t){var e=[].slice.call(arguments,1);return e.push(t),this._then(n,void 0,void 0,e,void 0)},e.prototype.get=function(t){var e,r="number"===typeof t;if(r)e=o;else if(u){var n=a(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,r){"use strict";e.exports=function(e,r,n,i){var o=t("./util"),a=o.tryCatch,s=o.errorObj,u=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 r=t._cancellationParent;if(null==r||!r.isCancellable()){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}t._isFollowing()&&t._followee().cancel(),e=t,t=r}},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(),u.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 r=0;r<t.length;++r)this._doInvokeOnCancel(t[r],e);else if(void 0!==t)if("function"===typeof t){if(!e){var n=a(t).call(this._boundValue());n===s&&(this._attachExtraTrace(n.e),u.throwLater(n.e))}}else t._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var t=this._onCancel();this._unsetOnCancel(),u.invoke(this._doInvokeOnCancel,this,t)},e.prototype._invokeInternalOnCancel=function(){this.isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(t,e,r){"use strict";e.exports=function(e){function r(t,r,s){return function(u){var c=s._boundValue();t:for(var f=0;f<t.length;++f){var h=t[f];if(h===Error||null!=h&&h.prototype instanceof Error){if(u instanceof h)return o(r).call(c,u)}else if("function"===typeof h){var l=o(h).call(c,u);if(l===a)return l;if(l)return o(r).call(c,u)}else if(n.isObject(u)){for(var d=i(h),p=0;p<d.length;++p){var m=d[p];if(h[m]!=u[m])continue t}return o(r).call(c,u)}}return e}}var n=t("./util"),i=t("./es5").keys,o=n.tryCatch,a=n.errorObj;return r}},{"./es5":13,"./util":36}],8:[function(t,e,r){"use strict";e.exports=function(t){function e(){this._trace=new e.CapturedTrace(n())}function r(){if(i)return new e}function n(){var t=o.length-1;if(t>=0)return o[t]}var i=!1,o=[];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,o.push(this._trace))},e.prototype._popContext=function(){if(void 0!==this._trace){var t=o.pop(),e=t._promiseCreated;return t._promiseCreated=null,e}return null},e.CapturedTrace=null,e.create=r,e.deactivateLongStackTraces=function(){},e.activateLongStackTraces=function(){var r=t.prototype._pushContext,o=t.prototype._popContext,a=t._peekContext,s=t.prototype._peekContext,u=t.prototype._promiseCreated;e.deactivateLongStackTraces=function(){t.prototype._pushContext=r,t.prototype._popContext=o,t._peekContext=a,t.prototype._peekContext=s,t.prototype._promiseCreated=u,i=!1},i=!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(t,r,n){"use strict";r.exports=function(r,n){function i(t,e){return{promise:e}}function o(){return!1}function a(t,e,r){var n=this;try{t(e,r,function(t){if("function"!==typeof t)throw new TypeError("onCancel must be a function, got: "+D.toString(t));n._attachCancellationCallback(t)})}catch(t){return t}}function s(t){if(!this.isCancellable())return this;var e=this._onCancel();void 0!==e?D.isArray(e)?e.push(t):this._setOnCancel([e,t]):this._setOnCancel(t)}function u(){return this._onCancelField}function c(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 r=t._branchesRemainingToCancel;void 0===r&&(r=0),t._branchesRemainingToCancel=r+1}0!==(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function l(t,e){0!==(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function d(){var t=this._boundTo;return void 0!==t&&t instanceof r?t.isFulfilled()?t.value():void 0:t}function p(){this._trace=new R(this._peekContext())}function m(t,e){if(U(t)){var r=this._trace;if(void 0!==r&&e&&(r=r._parent),void 0!==r)r.attachExtraTrace(t);else if(!t.__stackCleaned__){var n=E(t);D.notEnumerableProp(t,"stack",n.message+"\n"+n.stack.join("\n")),D.notEnumerableProp(t,"__stackCleaned__",!0)}}}function b(t,e,r,n,i){if(void 0===t&&null!==e&&W){if(void 0!==i&&i._returnedNonUndefined())return;r&&(r+=" ");var o="a promise was created in a "+r+"handler but was not returned from it";n._warn(o,!0,e)}}function v(t,e){var r=t+" is deprecated and will be removed in a future version.";return e&&(r+=" Use "+e+" instead."),y(r)}function y(t,e,n){if(it.warnings){var i,o=new F(t);if(e)n._attachExtraTrace(o);else if(it.longStackTraces&&(i=r._peekContext()))i.attachExtraTrace(o);else{var a=E(o);o.stack=a.message+"\n"+a.stack.join("\n")}J("warning",o)||x(o,"",!0)}}function g(t,e){for(var r=0;r<e.length-1;++r)e[r].push("From previous event:"),e[r]=e[r].join("\n");return r<e.length&&(e[r]=e[r].join("\n")),t+"\n"+e.join("\n")}function _(t){for(var e=0;e<t.length;++e)(0===t[e].length||e+1<t.length&&t[e][0]===t[e+1][0])&&(t.splice(e,1),e--)}function w(t){for(var e=t[0],r=1;r<t.length;++r){for(var n=t[r],i=e.length-1,o=e[i],a=-1,s=n.length-1;s>=0;--s)if(n[s]===o){a=s;break}for(var s=a;s>=0;--s){var u=n[s];if(e[i]!==u)break;e.pop(),i--}e=n}}function M(t){for(var e=[],r=0;r<t.length;++r){var n=t[r],i=" (No stack trace)"===n||z.test(n),o=i&&et(n);i&&!o&&(V&&" "!==n.charAt(0)&&(n=" "+n),e.push(n))}return e}function k(t){for(var e=t.stack.replace(/\s+$/g,"").split("\n"),r=0;r<e.length;++r){var n=e[r];if(" (No stack trace)"===n||z.test(n))break}return r>0&&(e=e.slice(r)),e}function E(t){var e=t.stack,r=t.toString();return e="string"===typeof e&&e.length>0?k(t):[" (No stack trace)"],{message:r,stack:M(e)}}function x(t,e,r){if("undefined"!==typeof console){var n;if(D.isObject(t)){var i=t.stack;n=e+H(i,t)}else n=e+String(t);"function"===typeof N?N(n,r):"function"!==typeof console.log&&"object"!==typeof console.log||console.log(n)}}function S(t,e,r,n){var i=!1;try{"function"===typeof e&&(i=!0,"rejectionHandled"===t?e(n):e(r,n))}catch(t){L.throwLater(t)}"unhandledRejection"===t?J(t,r,n)||i||x(r,"Unhandled rejection "):J(t,n)}function A(t){var e;if("function"===typeof t)e="[function "+(t.name||"anonymous")+"]";else{e=t&&"function"===typeof t.toString?t.toString():D.toString(t);if(/\[object [a-zA-Z0-9$_]+\]/.test(e))try{e=JSON.stringify(t)}catch(t){}0===e.length&&(e="(empty array)")}return"(<"+C(e)+">, no stack trace)"}function C(t){return t.length<41?t:t.substr(0,38)+"..."}function T(){return"function"===typeof nt}function I(t){var e=t.match(rt);if(e)return{fileName:e[1],line:parseInt(e[2],10)}}function P(t,e){if(T()){for(var r,n,i=t.stack.split("\n"),o=e.stack.split("\n"),a=-1,s=-1,u=0;u<i.length;++u){var c=I(i[u]);if(c){r=c.fileName,a=c.line;break}}for(var u=0;u<o.length;++u){var c=I(o[u]);if(c){n=c.fileName,s=c.line;break}}a<0||s<0||!r||!n||r!==n||a>=s||(et=function(t){if(q.test(t))return!0;var e=I(t);return!!(e&&e.fileName===r&&a<=e.line&&e.line<=s)})}}function R(t){this._parent=t,this._promisesCreated=0;var e=this._length=1+(void 0===t?0:t._length);nt(this,R),e>32&&this.uncycle()}var O,j,N,B=r._getDomain,L=r._async,F=t("./errors").Warning,D=t("./util"),U=D.canAttachTrace,q=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,z=null,H=null,V=!1,K=!(0==D.env("BLUEBIRD_DEBUG")),Y=!(0==D.env("BLUEBIRD_WARNINGS")||!K&&!D.env("BLUEBIRD_WARNINGS")),G=!(0==D.env("BLUEBIRD_LONG_STACK_TRACES")||!K&&!D.env("BLUEBIRD_LONG_STACK_TRACES")),W=0!=D.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(Y||!!D.env("BLUEBIRD_W_FORGOTTEN_RETURN"));r.prototype.suppressUnhandledRejections=function(){var t=this._target();t._bitField=-1048577&t._bitField|524288},r.prototype._ensurePossibleRejectionHandled=function(){0===(524288&this._bitField)&&(this._setRejectionIsUnhandled(),L.invokeLater(this._notifyUnhandledRejection,this,void 0))},r.prototype._notifyUnhandledRejectionIsHandled=function(){S("rejectionHandled",O,void 0,this)},r.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},r.prototype._returnedNonUndefined=function(){return 0!==(268435456&this._bitField)},r.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var t=this._settledValue();this._setUnhandledRejectionIsNotified(),S("unhandledRejection",j,t,this)}},r.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},r.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},r.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},r.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},r.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},r.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},r.prototype._warn=function(t,e,r){return y(t,e,r||this)},r.onPossiblyUnhandledRejection=function(t){var e=B();j="function"===typeof t?null===e?t:e.bind(t):void 0},r.onUnhandledRejectionHandled=function(t){var e=B();O="function"===typeof t?null===e?t:e.bind(t):void 0};var Z=function(){};r.longStackTraces=function(){if(L.haveItemsQueued()&&!it.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!it.longStackTraces&&T()){var t=r.prototype._captureStackTrace,e=r.prototype._attachExtraTrace;it.longStackTraces=!0,Z=function(){if(L.haveItemsQueued()&&!it.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");r.prototype._captureStackTrace=t,r.prototype._attachExtraTrace=e,n.deactivateLongStackTraces(),L.enableTrampoline(),it.longStackTraces=!1},r.prototype._captureStackTrace=p,r.prototype._attachExtraTrace=m,n.activateLongStackTraces(),L.disableTrampolineIfNecessary()}},r.hasLongStackTraces=function(){return it.longStackTraces&&T()};var X=function(){try{var t=document.createEvent("CustomEvent");return t.initCustomEvent("testingtheevent",!1,!0,{}),D.global.dispatchEvent(t),function(t,e){var r=document.createEvent("CustomEvent");return r.initCustomEvent(t.toLowerCase(),!1,!0,e),!D.global.dispatchEvent(r)}}catch(t){}return function(){return!1}}(),$=function(){return D.isNode?function(){return e.emit.apply(e,arguments)}:D.global?function(t){var e="on"+t.toLowerCase(),r=D.global[e];return!!r&&(r.apply(D.global,[].slice.call(arguments,1)),!0)}:function(){return!1}}(),Q={promiseCreated:i,promiseFulfilled:i,promiseRejected:i,promiseResolved:i,promiseCancelled:i,promiseChained:function(t,e,r){return{promise:e,child:r}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,r){return{reason:e,promise:r}},rejectionHandled:i},J=function(t){var e=!1;try{e=$.apply(null,arguments)}catch(t){L.throwLater(t),e=!0}var r=!1;try{r=X(t,Q[t].apply(null,arguments))}catch(t){L.throwLater(t),r=!0}return r||e};r.config=function(t){if(t=Object(t),"longStackTraces"in t&&(t.longStackTraces?r.longStackTraces():!t.longStackTraces&&r.hasLongStackTraces()&&Z()),"warnings"in t){var e=t.warnings;it.warnings=!!e,W=it.warnings,D.isObject(e)&&"wForgottenReturn"in e&&(W=!!e.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!it.cancellation){if(L.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");r.prototype._clearCancellationData=f,r.prototype._propagateFrom=h,r.prototype._onCancel=u,r.prototype._setOnCancel=c,r.prototype._attachCancellationCallback=s,r.prototype._execute=a,tt=h,it.cancellation=!0}"monitoring"in t&&(t.monitoring&&!it.monitoring?(it.monitoring=!0,r.prototype._fireEvent=J):!t.monitoring&&it.monitoring&&(it.monitoring=!1,r.prototype._fireEvent=o))},r.prototype._fireEvent=o,r.prototype._execute=function(t,e,r){try{t(e,r)}catch(t){return t}},r.prototype._onCancel=function(){},r.prototype._setOnCancel=function(t){},r.prototype._attachCancellationCallback=function(t){},r.prototype._captureStackTrace=function(){},r.prototype._attachExtraTrace=function(){},r.prototype._clearCancellationData=function(){},r.prototype._propagateFrom=function(t,e){};var tt=l,et=function(){return!1},rt=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;D.inherits(R,Error),n.CapturedTrace=R,R.prototype.uncycle=function(){var t=this._length;if(!(t<2)){for(var e=[],r={},n=0,i=this;void 0!==i;++n)e.push(i),i=i._parent;t=this._length=n;for(var n=t-1;n>=0;--n){var o=e[n].stack;void 0===r[o]&&(r[o]=n)}for(var n=0;n<t;++n){var a=e[n].stack,s=r[a];if(void 0!==s&&s!==n){s>0&&(e[s-1]._parent=void 0,e[s-1]._length=1),e[n]._parent=void 0,e[n]._length=1;var u=n>0?e[n-1]:this;s<t-1?(u._parent=e[s+1],u._parent.uncycle(),u._length=u._parent._length+1):(u._parent=void 0,u._length=1);for(var c=u._length+1,f=n-2;f>=0;--f)e[f]._length=c,c++;return}}}},R.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var e=E(t),r=e.message,n=[e.stack],i=this;void 0!==i;)n.push(M(i.stack.split("\n"))),i=i._parent;w(n),_(n),D.notEnumerableProp(t,"stack",g(r,n)),D.notEnumerableProp(t,"__stackCleaned__",!0)}};var nt=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():A(e)};if("number"===typeof Error.stackTraceLimit&&"function"===typeof Error.captureStackTrace){Error.stackTraceLimit+=6,z=t,H=e;var r=Error.captureStackTrace;return et=function(t){return q.test(t)},function(t,e){Error.stackTraceLimit+=6,r(t,e),Error.stackTraceLimit-=6}}var n=new Error;if("string"===typeof n.stack&&n.stack.split("\n")[0].indexOf("stackDetection@")>=0)return z=/@/,H=e,V=!0,function(t){t.stack=(new Error).stack};var i;try{throw new Error}catch(t){i="stack"in t}return"stack"in n||!i||"number"!==typeof Error.stackTraceLimit?(H=function(t,e){return"string"===typeof t?t:"object"!==typeof e&&"function"!==typeof e||void 0===e.name||void 0===e.message?A(e):e.toString()},null):(z=t,H=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6})}();"undefined"!==typeof console&&"undefined"!==typeof console.warn&&(N=function(t){console.warn(t)},D.isNode&&e.stderr.isTTY?N=function(t,e){var r=e?"\x1b[33m":"\x1b[31m";console.warn(r+t+"\x1b[0m\n")}:D.isNode||"string"!==typeof(new Error).stack||(N=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}));var it={warnings:Y,longStackTraces:!1,cancellation:!1,monitoring:!1};return G&&r.longStackTraces(),{longStackTraces:function(){return it.longStackTraces},warnings:function(){return it.warnings},cancellation:function(){return it.cancellation},monitoring:function(){return it.monitoring},propagateFromFunction:function(){return tt},boundValueFunction:function(){return d},checkForgottenReturns:b,setBounds:P,warn:y,deprecated:v,CapturedTrace:R,fireDomEvent:X,fireGlobalEvent:$}}},{"./errors":12,"./util":36}],10:[function(t,e,r){"use strict";e.exports=function(t){function e(){return this.value}function r(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(r){return r instanceof t&&r.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:r},void 0)},t.prototype.throw=t.prototype.thenThrow=function(t){return this._then(r,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this._then(void 0,r,void 0,{reason:t},void 0);var e=arguments[1],n=function(){throw e};return this.caught(t,n)},t.prototype.catchReturn=function(r){if(arguments.length<=1)return r instanceof t&&r.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:r},void 0);var n=arguments[1];n instanceof t&&n.suppressUnhandledRejections();var i=function(){return n};return this.caught(r,i)}}},{}],11:[function(t,e,r){"use strict";e.exports=function(t,e){function r(){return o(this)}function n(t,r){return i(t,r,e,e)}var i=t.reduce,o=t.all;t.prototype.each=function(t){return this.mapSeries(t)._then(r,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return i(this,t,e,e)},t.each=function(t,e){return n(t,e)._then(r,void 0,void 0,t,void 0)},t.mapSeries=n}},{}],12:[function(t,e,r){"use strict";function n(t,e){function r(n){if(!(this instanceof r))return new r(n);h(this,"message","string"===typeof n?n:e),h(this,"name",t),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return f(r,Error),r}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,a,s=t("./es5"),u=s.freeze,c=t("./util"),f=c.inherits,h=c.notEnumerableProp,l=n("Warning","warning"),d=n("CancellationError","cancellation error"),p=n("TimeoutError","timeout error"),m=n("AggregateError","aggregate error");try{o=TypeError,a=RangeError}catch(t){o=n("TypeError","type error"),a=n("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;v<b.length;++v)"function"===typeof Array.prototype[b[v]]&&(m.prototype[b[v]]=Array.prototype[b[v]]);s.defineProperty(m.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),m.prototype.isOperational=!0;var y=0;m.prototype.toString=function(){var t=Array(4*y+1).join(" "),e="\n"+t+"AggregateError of:\n";y++,t=Array(4*y+1).join(" ");for(var r=0;r<this.length;++r){for(var n=this[r]===this?"[Circular AggregateError]":this[r]+"",i=n.split("\n"),o=0;o<i.length;++o)i[o]=t+i[o];n=i.join("\n"),e+=n+"\n"}return y--,e},f(i,Error);var g=Error.__BluebirdErrorTypes__;g||(g=u({CancellationError:d,TimeoutError:p,OperationalError:i,RejectionError:i,AggregateError:m}),s.defineProperty(Error,"__BluebirdErrorTypes__",{value:g,writable:!1,enumerable:!1,configurable:!1})),e.exports={Error:Error,TypeError:o,RangeError:a,CancellationError:g.CancellationError,OperationalError:g.OperationalError,TimeoutError:g.TimeoutError,AggregateError:g.AggregateError,Warning:l}},{"./es5":13,"./util":36}],13:[function(t,e,r){var n=function(){"use strict";return void 0===this}();if(n)e.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:n,propertyIsWritable:function(t,e){var r=Object.getOwnPropertyDescriptor(t,e);return!(r&&!r.writable&&!r.set)}};else{var i={}.hasOwnProperty,o={}.toString,a={}.constructor.prototype,s=function(t){var e=[];for(var r in t)i.call(t,r)&&e.push(r);return e},u=function(t,e){return{value:t[e]}},c=function(t,e,r){return t[e]=r.value,t},f=function(t){return t},h=function(t){try{return Object(t).constructor.prototype}catch(t){return a}},l=function(t){try{return"[object Array]"===o.call(t)}catch(t){return!1}};e.exports={isArray:l,keys:s,names:s,defineProperty:c,getDescriptor:u,freeze:f,getPrototypeOf:h,isES5:n,propertyIsWritable:function(){return!0}}}},{}],14:[function(t,e,r){"use strict";e.exports=function(t,e){var r=t.map;t.prototype.filter=function(t,n){return r(this,t,n,e)},t.filter=function(t,n,i){return r(t,n,i,e)}}},{}],15:[function(t,e,r){"use strict";e.exports=function(e,r){function n(t,e,r){this.promise=t,this.type=e,this.handler=r,this.called=!1,this.cancelPromise=null}function i(t){this.finallyHandler=t}function o(t,e){return null!=t.cancelPromise&&(arguments.length>1?t.cancelPromise._reject(e):t.cancelPromise._cancel(),t.cancelPromise=null,!0)}function a(){return u.call(this,this.promise._target()._settledValue())}function s(t){if(!o(this,t))return h.e=t,h}function u(t){var n=this.promise,u=this.handler;if(!this.called){this.called=!0;var c=this.isFinallyHandler()?u.call(n._boundValue()):u.call(n._boundValue(),t);if(void 0!==c){n._setReturnedNonUndefined();var l=r(c,n);if(l instanceof e){if(null!=this.cancelPromise){if(l.isCancelled()){var d=new f("late cancellation observer");return n._attachExtraTrace(d),h.e=d,h}l.isPending()&&l._attachCancellationCallback(new i(this))}return l._then(a,s,void 0,this,void 0)}}}return n.isRejected()?(o(this),h.e=t,h):(o(this),t)}var c=t("./util"),f=e.CancellationError,h=c.errorObj;return n.prototype.isFinallyHandler=function(){return 0===this.type},i.prototype._resultCancelled=function(){o(this.finallyHandler)},e.prototype._passThrough=function(t,e,r,i){return"function"!==typeof t?this.then():this._then(r,i,void 0,new n(this,e,t),void 0)},e.prototype.lastly=e.prototype.finally=function(t){return this._passThrough(t,0,u,u)},e.prototype.tap=function(t){return this._passThrough(t,1,u)},n}},{"./util":36}],16:[function(t,e,r){"use strict";e.exports=function(e,r,n,i,o,a){function s(t,r,n){for(var o=0;o<r.length;++o){n._pushContext();var a=d(r[o])(t);if(n._popContext(),a===l){n._pushContext();var s=e.reject(l.e);return n._popContext(),s}var u=i(a,n);if(u instanceof e)return u}return null}function u(t,r,i,o){var a=this._promise=new e(n);a._captureStackTrace(),a._setOnCancel(this),this._stack=o,this._generatorFunction=t,this._receiver=r,this._generator=void 0,this._yieldHandlers="function"===typeof i?[i].concat(p):p,this._yieldedPromise=null}var c=t("./errors"),f=c.TypeError,h=t("./util"),l=h.errorObj,d=h.tryCatch,p=[];h.inherits(u,o),u.prototype._isResolved=function(){return null===this._promise},u.prototype._cleanup=function(){this._promise=this._generator=null},u.prototype._promiseCancelled=function(){if(!this._isResolved()){var t,r="undefined"!==typeof this._generator.return;if(r)this._promise._pushContext(),t=d(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var n=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=n,this._promise._attachExtraTrace(n),this._promise._pushContext(),t=d(this._generator.throw).call(this._generator,n),this._promise._popContext(),t===l&&t.e===n&&(t=null)}var i=this._promise;this._cleanup(),t===l?i._rejectCallback(t.e,!1):i.cancel()}},u.prototype._promiseFulfilled=function(t){this._yieldedPromise=null,this._promise._pushContext();var e=d(this._generator.next).call(this._generator,t);this._promise._popContext(),this._continue(e)},u.prototype._promiseRejected=function(t){this._yieldedPromise=null,this._promise._attachExtraTrace(t),this._promise._pushContext();var e=d(this._generator.throw).call(this._generator,t);this._promise._popContext(),this._continue(e)},u.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var t=this._yieldedPromise;this._yieldedPromise=null,t.cancel()}},u.prototype.promise=function(){return this._promise},u.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},u.prototype._continue=function(t){var r=this._promise;if(t===l)return this._cleanup(),r._rejectCallback(t.e,!1);var n=t.value;if(!0===t.done)return this._cleanup(),r._resolveCallback(n);var o=i(n,this._promise);if(!(o instanceof e)&&null===(o=s(o,this._yieldHandlers,this._promise)))return void this._promiseRejected(new f("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",n)+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));o=o._target();var a=o._bitField;0===(50397184&a)?(this._yieldedPromise=o,o._proxy(this,null)):0!==(33554432&a)?this._promiseFulfilled(o._value()):0!==(16777216&a)?this._promiseRejected(o._reason()):this._promiseCancelled()},e.coroutine=function(t,e){if("function"!==typeof t)throw new f("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=Object(e).yieldHandler,n=u,i=(new Error).stack;return function(){var e=t.apply(this,arguments),o=new n(void 0,void 0,r,i),a=o.promise();return o._generator=e,o._promiseFulfilled(void 0),a}},e.coroutine.addYieldHandler=function(t){if("function"!==typeof t)throw new f("expecting a function but got "+h.classString(t));p.push(t)},e.spawn=function(t){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!==typeof t)return r("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=new u(t,this),i=n.promise();return n._run(e.spawn),i}}},{"./errors":12,"./util":36}],17:[function(t,e,r){"use strict";e.exports=function(e,r,n,i){var o=t("./util");o.canEvaluate,o.tryCatch,o.errorObj;e.join=function(){var t,e=arguments.length-1;if(e>0&&"function"===typeof arguments[e]){t=arguments[e];var n}var i=[].slice.call(arguments);t&&i.pop();var n=new r(i).promise();return void 0!==t?n.spread(t):n}}},{"./util":36}],18:[function(t,e,r){"use strict";e.exports=function(e,r,n,i,o,a){function s(t,e,r,n){this.constructor$(t),this._promise._captureStackTrace();var i=c();this._callback=null===i?e:i.bind(e),this._preservedValues=n===o?new Array(this.length()):null,this._limit=r,this._inFlight=0,this._queue=r>=1?[]:d,this._init$(void 0,-2)}function u(t,e,r,i){if("function"!==typeof e)return n("expecting a function but got "+f.classString(e));var o="object"===typeof r&&null!==r?r.concurrency:0;return o="number"===typeof o&&isFinite(o)&&o>=1?o:0,new s(t,e,o,i).promise()}var c=e._getDomain,f=t("./util"),h=f.tryCatch,l=f.errorObj,d=[];f.inherits(s,r),s.prototype._init=function(){},s.prototype._promiseFulfilled=function(t,r){var n=this._values,o=this.length(),s=this._preservedValues,u=this._limit;if(r<0){if(r=-1*r-1,n[r]=t,u>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(u>=1&&this._inFlight>=u)return n[r]=t,this._queue.push(r),!1;null!==s&&(s[r]=t);var c=this._promise,f=this._callback,d=c._boundValue();c._pushContext();var p=h(f).call(d,t,r,o),m=c._popContext();if(a.checkForgottenReturns(p,m,null!==s?"Promise.filter":"Promise.map",c),p===l)return this._reject(p.e),!0;var b=i(p,this._promise);if(b instanceof e){b=b._target();var v=b._bitField;if(0===(50397184&v))return u>=1&&this._inFlight++,n[r]=b,b._proxy(this,-1*(r+1)),!1;if(0===(33554432&v))return 0!==(16777216&v)?(this._reject(b._reason()),!0):(this._cancel(),!0);p=b._value()}n[r]=p}return++this._totalResolved>=o&&(null!==s?this._filter(n,s):this._resolve(n),!0)},s.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,r=this._values;t.length>0&&this._inFlight<e;){if(this._isResolved())return;var n=t.pop();this._promiseFulfilled(r[n],n)}},s.prototype._filter=function(t,e){for(var r=e.length,n=new Array(r),i=0,o=0;o<r;++o)t[o]&&(n[i++]=e[o]);n.length=i,this._resolve(n)},s.prototype.preservedValues=function(){return this._preservedValues},e.prototype.map=function(t,e){return u(this,t,e,null)},e.map=function(t,e,r,n){return u(t,e,r,n)}}},{"./util":36}],19:[function(t,e,r){"use strict";e.exports=function(e,r,n,i,o){var a=t("./util"),s=a.tryCatch;e.method=function(t){if("function"!==typeof t)throw new e.TypeError("expecting a function but got "+a.classString(t));return function(){var n=new e(r);n._captureStackTrace(),n._pushContext();var i=s(t).apply(this,arguments),a=n._popContext();return o.checkForgottenReturns(i,a,"Promise.method",n),n._resolveFromSyncValue(i),n}},e.attempt=e.try=function(t){if("function"!==typeof t)return i("expecting a function but got "+a.classString(t));var n=new e(r);n._captureStackTrace(),n._pushContext();var u;if(arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var c=arguments[1],f=arguments[2];u=a.isArray(c)?s(t).apply(f,c):s(t).call(f,c)}else u=s(t)();var h=n._popContext();return o.checkForgottenReturns(u,h,"Promise.try",n),n._resolveFromSyncValue(u),n},e.prototype._resolveFromSyncValue=function(t){t===a.errorObj?this._rejectCallback(t.e,!1):this._resolveCallback(t,!0)}}},{"./util":36}],20:[function(t,e,r){"use strict";function n(t){return t instanceof Error&&f.getPrototypeOf(t)===Error.prototype}function i(t){var e;if(n(t)){e=new c(t),e.name=t.name,e.message=t.message,e.stack=t.stack;for(var r=f.keys(t),i=0;i<r.length;++i){var o=r[i];h.test(o)||(e[o]=t[o])}return e}return a.markAsOriginatingFromRejection(t),t}function o(t,e){return function(r,n){if(null!==t){if(r){var o=i(s(r));t._attachExtraTrace(o),t._reject(o)}else if(e){var a=[].slice.call(arguments,1);t._fulfill(a)}else t._fulfill(n);t=null}}}var a=t("./util"),s=a.maybeWrapAsError,u=t("./errors"),c=u.OperationalError,f=t("./es5"),h=/^(?:name|message|stack|cause)$/;e.exports=o},{"./errors":12,"./es5":13,"./util":36}],21:[function(t,e,r){"use strict";e.exports=function(e){function r(t,e){var r=this;if(!o.isArray(t))return n.call(r,t,e);var i=s(e).apply(r._boundValue(),[null].concat(t));i===u&&a.throwLater(i.e)}function n(t,e){var r=this,n=r._boundValue(),i=void 0===t?s(e).call(n,null):s(e).call(n,null,t);i===u&&a.throwLater(i.e)}function i(t,e){var r=this;if(!t){var n=new Error(t+"");n.cause=t,t=n}var i=s(e).call(r._boundValue(),t);i===u&&a.throwLater(i.e)}var o=t("./util"),a=e._async,s=o.tryCatch,u=o.errorObj;e.prototype.asCallback=e.prototype.nodeify=function(t,e){if("function"==typeof t){var o=n;void 0!==e&&Object(e).spread&&(o=r),this._then(o,i,void 0,this,t)}return this}}},{"./util":36}],22:[function(t,r,n){"use strict";r.exports=function(){function r(){}function n(t,e){if("function"!==typeof e)throw new y("expecting a function but got "+d.classString(e));if(t.constructor!==i)throw new y("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n")}function i(t){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,t!==_&&(n(this,t),this._resolveFromExecutor(t)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function o(t){this.promise._resolveCallback(t)}function a(t){this.promise._rejectCallback(t,!1)}function s(t){var e=new i(_);e._fulfillmentHandler0=t,e._rejectionHandler0=t,e._promise0=t,e._receiver0=t}var u,c=function(){return new y("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},f=function(){return new i.PromiseInspection(this._target())},h=function(t){return i.reject(new y(t))},l={},d=t("./util");u=d.isNode?function(){var t=e.domain;return void 0===t&&(t=null),t}:function(){return null},d.notEnumerableProp(i,"_getDomain",u);var p=t("./es5"),m=t("./async"),b=new m;p.defineProperty(i,"_async",{value:b});var v=t("./errors"),y=i.TypeError=v.TypeError;i.RangeError=v.RangeError;var g=i.CancellationError=v.CancellationError;i.TimeoutError=v.TimeoutError,i.OperationalError=v.OperationalError,i.RejectionError=v.OperationalError,i.AggregateError=v.AggregateError;var _=function(){},w={},M={},k=t("./thenables")(i,_),E=t("./promise_array")(i,_,k,h,r),x=t("./context")(i),S=x.create,A=t("./debuggability")(i,x),C=(A.CapturedTrace,t("./finally")(i,k)),T=t("./catch_filter")(M),I=t("./nodeback"),P=d.errorObj,R=d.tryCatch;return i.prototype.toString=function(){return"[object Promise]"},i.prototype.caught=i.prototype.catch=function(t){var e=arguments.length;if(e>1){var r,n=new Array(e-1),i=0;for(r=0;r<e-1;++r){var o=arguments[r];if(!d.isObject(o))return h("expecting an object but got "+d.classString(o));n[i++]=o}return n.length=i,t=arguments[r],this.then(void 0,T(n,t,this))}return this.then(void 0,t)},i.prototype.reflect=function(){return this._then(f,f,void 0,this,void 0)},i.prototype.then=function(t,e){if(A.warnings()&&arguments.length>0&&"function"!==typeof t&&"function"!==typeof e){var r=".then() only accepts functions but was passed: "+d.classString(t);arguments.length>1&&(r+=", "+d.classString(e)),this._warn(r)}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 E(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 r=arguments.length>1&&!!Object(arguments[1]).multiArgs,n=R(t)(I(e,r));return n===P&&e._rejectCallback(n.e,!0),e._isFateSealed()||e._setAsyncGuaranteed(),e},i.all=function(t){return new E(t).promise()},i.cast=function(t){var e=k(t);return e instanceof i||(e=new i(_),e._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,r,n,o){var a=void 0!==o,s=a?o:new i(_),c=this._target(),f=c._bitField;a||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===n&&0!==(2097152&this._bitField)&&(n=0!==(50397184&f)?this._boundValue():c===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,s));var h=u();if(0!==(50397184&f)){var l,d,p=c._settlePromiseCtx;0!==(33554432&f)?(d=c._rejectionHandler0,l=t):0!==(16777216&f)?(d=c._fulfillmentHandler0,l=e,c._unsetRejectionIsUnhandled()):(p=c._settlePromiseLateCancellationObserver,d=new g("late cancellation observer"),c._attachExtraTrace(d),l=e),b.invoke(p,c,{handler:null===h?l:"function"===typeof l&&h.bind(l),promise:s,receiver:n,value:d})}else c._addCallbacks(t,e,s,n,h);return s},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){var e=(t._bitField,t._fulfillmentHandler0),r=t._rejectionHandler0,n=t._promise0,i=t._receiverAt(0);void 0===i&&(i=l),this._addCallbacks(e,r,n,i,null)},i.prototype._migrateCallbackAt=function(t,e){var r=t._fulfillmentHandlerAt(e),n=t._rejectionHandlerAt(e),i=t._promiseAt(e),o=t._receiverAt(e);void 0===o&&(o=l),this._addCallbacks(r,n,i,o,null)},i.prototype._addCallbacks=function(t,e,r,n,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=r,this._receiver0=n,"function"===typeof t&&(this._fulfillmentHandler0=null===i?t:i.bind(t)),"function"===typeof e&&(this._rejectionHandler0=null===i?e:i.bind(e));else{var a=4*o-4;this[a+2]=r,this[a+3]=n,"function"===typeof t&&(this[a+0]=null===i?t:i.bind(t)),"function"===typeof e&&(this[a+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(c(),!1);var r=k(t,this);if(!(r instanceof i))return this._fulfill(t);e&&this._propagateFrom(r,2);var n=r._target(),o=n._bitField;if(0===(50397184&o)){var a=this._length();a>0&&n._migrateCallback0(this);for(var s=1;s<a;++s)n._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(n)}else if(0!==(33554432&o))this._fulfill(n._value());else if(0!==(16777216&o))this._reject(n._reason());else{var u=new g("late cancellation observer");n._attachExtraTrace(u),this._reject(u)}}},i.prototype._rejectCallback=function(t,e,r){var n=d.ensureErrorObject(t),i=n===t;if(!i&&!r&&A.warnings()){var o="a promise was rejected with a non-error: "+d.classString(t);this._warn(o,!0)}this._attachExtraTrace(n,!!e&&i),this._reject(t)},i.prototype._resolveFromExecutor=function(t){var e=this;this._captureStackTrace(),this._pushContext();var r=!0,n=this._execute(t,function(t){e._resolveCallback(t)},function(t){e._rejectCallback(t,r)});r=!1,this._popContext(),void 0!==n&&e._rejectCallback(n,!0)},i.prototype._settlePromiseFromHandler=function(t,e,r,n){var i=n._bitField;if(0===(65536&i)){n._pushContext();var o;e===w?r&&"number"===typeof r.length?o=R(t).apply(this._boundValue(),r):(o=P,o.e=new y("cannot .spread() a non-array: "+d.classString(r))):o=R(t).call(e,r);var a=n._popContext();if(0===(65536&(i=n._bitField)))if(o===M)n._reject(r);else if(o===P||o===n){var s=o===n?c():o.e;n._rejectCallback(s,!1)}else A.checkForgottenReturns(o,a,"",n,this),n._resolveCallback(o)}},i.prototype._target=function(){for(var t=this;t._isFollowing();)t=t._followee();return t},i.prototype._followee=function(){return this._rejectionHandler0},i.prototype._setFollowee=function(t){this._rejectionHandler0=t},i.prototype._settlePromise=function(t,e,n,o){var a=t instanceof i,s=this._bitField,u=0!==(134217728&s);0!==(65536&s)?(a&&t._invokeInternalOnCancel(),n instanceof C&&n.isFinallyHandler()?(n.cancelPromise=t,R(e).call(n,o)===P&&t._reject(P.e)):e===f?t._fulfill(f.call(n)):n instanceof r?n._promiseCancelled(t):a||t instanceof E?t._cancel():n.cancel()):"function"===typeof e?a?(u&&t._setAsyncGuaranteed(),this._settlePromiseFromHandler(e,n,o,t)):e.call(n,o,t):n instanceof r?n._isResolved()||(0!==(33554432&s)?n._promiseFulfilled(o,t):n._promiseRejected(o,t)):a&&(u&&t._setAsyncGuaranteed(),0!==(33554432&s)?t._fulfill(o):t._reject(o))},i.prototype._settlePromiseLateCancellationObserver=function(t){var e=t.handler,r=t.promise,n=t.receiver,o=t.value;"function"===typeof e?r instanceof i?this._settlePromiseFromHandler(e,n,o,r):e.call(n,o,r):r instanceof i&&r._reject(o)},i.prototype._settlePromiseCtx=function(t){this._settlePromise(t.promise,t.handler,t.receiver,t.value)},i.prototype._settlePromise0=function(t,e,r){var n=this._promise0,i=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(n,t,i,e)},i.prototype._clearCallbackDataAtIndex=function(t){var e=4*t-4;this[e+2]=this[e+3]=this[e+0]=this[e+1]=void 0},i.prototype._fulfill=function(t){var e=this._bitField;if(!((117506048&e)>>>16)){if(t===this){var r=c();return this._attachExtraTrace(r),this._reject(r)}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 r=1;r<t;r++){var n=this._fulfillmentHandlerAt(r),i=this._promiseAt(r),o=this._receiverAt(r);this._clearCallbackDataAtIndex(r),this._settlePromise(i,n,o,e)}},i.prototype._rejectPromises=function(t,e){for(var r=1;r<t;r++){var n=this._rejectionHandlerAt(r),i=this._promiseAt(r),o=this._receiverAt(r);this._clearCallbackDataAtIndex(r),this._settlePromise(i,n,o,e)}},i.prototype._settlePromises=function(){var t=this._bitField,e=65535&t;if(e>0){if(0!==(16842752&t)){var r=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,r,t),this._rejectPromises(e,r)}else{var n=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,n,t),this._fulfillPromises(e,n)}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 A.deprecated("Promise.defer","new Promise"),{promise:new i(_),resolve:o,reject:a}},d.notEnumerableProp(i,"_makeSelfResolutionError",c),t("./method")(i,_,k,h,A),t("./bind")(i,_,k,A),t("./cancel")(i,E,h,A),t("./direct_resolve")(i),t("./synchronous_inspection")(i),t("./join")(i,E,k,_,A),i.Promise=i,t("./map.js")(i,E,h,k,_,A),t("./using.js")(i,h,k,S,_,A),t("./timers.js")(i,_,A),t("./generators.js")(i,h,_,k,r,A),t("./nodeify.js")(i),t("./call_get.js")(i),t("./props.js")(i,E,k,h),t("./race.js")(i,_,k,h),t("./reduce.js")(i,E,h,k,_,A),t("./settle.js")(i,E,A),t("./some.js")(i,E,h),t("./promisify.js")(i,_),t("./any.js")(i),t("./each.js")(i,_),t("./filter.js")(i,_),d.toFastProperties(i),d.toFastProperties(i.prototype),s({a:1}),s({b:2}),s({c:3}),s(1),s(function(){}),s(void 0),s(!1),s(new i(_)),A.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,r){"use strict";e.exports=function(e,r,n,i,o){function a(t){switch(t){case-2:return[];case-3:return{}}}function s(t){var n=this._promise=new e(r);t instanceof e&&n._propagateFrom(t,3),n._setOnCancel(this),this._values=t,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var u=t("./util");u.isArray;return u.inherits(s,o),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function t(r,o){var s=n(this._values,this._promise);if(s instanceof e){s=s._target();var c=s._bitField;if(this._values=s,0===(50397184&c))return this._promise._setAsyncGuaranteed(),s._then(t,this._reject,void 0,this,o);if(0===(33554432&c))return 0!==(16777216&c)?this._reject(s._reason()):this._cancel();s=s._value()}if(null===(s=u.asArray(s))){var f=i("expecting an array or an iterable object but got "+u.classString(s)).reason();return void this._promise._rejectCallback(f,!1)}if(0===s.length)return void(-5===o?this._resolveEmptyArray():this._resolve(a(o)));this._iterate(s)},s.prototype._iterate=function(t){var r=this.getActualLength(t.length);this._length=r,this._values=this.shouldCopyValues()?new Array(r):this._values;for(var i=this._promise,o=!1,a=null,s=0;s<r;++s){var u=n(t[s],i);u instanceof e?(u=u._target(),a=u._bitField):a=null,o?null!==a&&u.suppressUnhandledRejections():null!==a?0===(50397184&a)?(u._proxy(this,s),this._values[s]=u):o=0!==(33554432&a)?this._promiseFulfilled(u._value(),s):0!==(16777216&a)?this._promiseRejected(u._reason(),s):this._promiseCancelled(s):o=this._promiseFulfilled(u,s)}o||i._setAsyncGuaranteed()},s.prototype._isResolved=function(){return null===this._values},s.prototype._resolve=function(t){this._values=null,this._promise._fulfill(t)},s.prototype._cancel=function(){!this._isResolved()&&this._promise.isCancellable()&&(this._values=null,this._promise._cancel())},s.prototype._reject=function(t){this._values=null,this._promise._rejectCallback(t,!1)},s.prototype._promiseFulfilled=function(t,e){return this._values[e]=t,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var r=0;r<t.length;++r)t[r]instanceof e&&t[r].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(t){return t},s}},{"./util":36}],24:[function(t,e,r){"use strict";e.exports=function(e,r){function n(t){return!w.test(t)}function i(t){try{return!0===t.__isPromisified__}catch(t){return!1}}function o(t,e,r){var n=d.getDataPropertyOrDefault(t,e+r,g);return!!n&&i(n)}function a(t,e,r){for(var n=0;n<t.length;n+=2){var i=t[n];if(r.test(i))for(var o=i.replace(r,""),a=0;a<t.length;a+=2)if(t[a]===o)throw new y("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",e))}}function s(t,e,r,n){for(var s=d.inheritedDataKeys(t),u=[],c=0;c<s.length;++c){var f=s[c],h=t[f],l=n===M||M(f,h,t);"function"!==typeof h||i(h)||o(t,f,e)||!n(f,h,t,l)||u.push(f,h)}return a(u,e,r),u}function u(t,n,i,o,a,s){function u(){var i=n;n===l&&(i=this);var o=new e(r);o._captureStackTrace();var a="string"===typeof f&&this!==c?this[f]:t,u=p(o,s);try{a.apply(i,m(arguments,u))}catch(t){o._rejectCallback(b(t),!0,!0)}return o._isFateSealed()||o._setAsyncGuaranteed(),o}var c=function(){return this}(),f=t;return"string"===typeof f&&(t=o),d.notEnumerableProp(u,"__isPromisified__",!0),u}function c(t,e,r,n,i){for(var o=new RegExp(k(e)+"$"),a=s(t,e,o,r),u=0,c=a.length;u<c;u+=2){var f=a[u],h=a[u+1],p=f+e;if(n===E)t[p]=E(f,l,f,h,e,i);else{var m=n(h,function(){return E(f,l,f,h,e,i)});d.notEnumerableProp(m,"__isPromisified__",!0),t[p]=m}}return d.toFastProperties(t),t}function f(t,e,r){return E(t,e,void 0,t,null,r)}var h,l={},d=t("./util"),p=t("./nodeback"),m=d.withAppended,b=d.maybeWrapAsError,v=d.canEvaluate,y=t("./errors").TypeError,g={__isPromisified__:!0},_=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],w=new RegExp("^(?:"+_.join("|")+")$"),M=function(t){return d.isIdentifier(t)&&"_"!==t.charAt(0)&&"constructor"!==t},k=function(t){return t.replace(/([$])/,"\\$")},E=v?h:u;e.promisify=function(t,e){if("function"!==typeof t)throw new y("expecting a function but got "+d.classString(t));if(i(t))return t;e=Object(e);var r=void 0===e.context?l:e.context,o=!!e.multiArgs,a=f(t,r,o);return d.copyDescriptors(t,a,n),a},e.promisifyAll=function(t,e){if("function"!==typeof t&&"object"!==typeof t)throw new y("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");e=Object(e);var r=!!e.multiArgs,n=e.suffix;"string"!==typeof n&&(n="Async");var i=e.filter;"function"!==typeof i&&(i=M);var o=e.promisifier;if("function"!==typeof o&&(o=E),!d.isIdentifier(n))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var a=d.inheritedDataKeys(t),s=0;s<a.length;++s){var u=t[a[s]];"constructor"!==a[s]&&d.isClass(u)&&(c(u.prototype,n,i,o,r),c(u,n,i,o,r))}return c(t,n,i,o,r)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(t,e,r){"use strict";e.exports=function(e,r,n,i){function o(t){var e,r=!1;if(void 0!==s&&t instanceof s)e=h(t),r=!0;else{var n=f.keys(t),i=n.length;e=new Array(2*i);for(var o=0;o<i;++o){var a=n[o];e[o]=t[a],e[o+i]=a}}this.constructor$(e),this._isMap=r,this._init$(void 0,-3)}function a(t){var r,a=n(t);return c(a)?(r=a instanceof e?a._then(e.props,void 0,void 0,void 0,void 0):new o(a).promise(),a instanceof e&&r._propagateFrom(a,2),r):i("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}var s,u=t("./util"),c=u.isObject,f=t("./es5");"function"===typeof Map&&(s=Map);var h=function(){function t(t,n){this[e]=t,this[e+r]=n,e++}var e=0,r=0;return function(n){r=n.size,e=0;var i=new Array(2*n.size);return n.forEach(t,i),i}}(),l=function(t){for(var e=new s,r=t.length/2|0,n=0;n<r;++n){var i=t[r+n],o=t[n];e.set(i,o)}return e};u.inherits(o,r),o.prototype._init=function(){},o.prototype._promiseFulfilled=function(t,e){if(this._values[e]=t,++this._totalResolved>=this._length){var r;if(this._isMap)r=l(this._values);else{r={};for(var n=this.length(),i=0,o=this.length();i<o;++i)r[this._values[i+n]]=this._values[i]}return this._resolve(r),!0}return!1},o.prototype.shouldCopyValues=function(){return!1},o.prototype.getActualLength=function(t){return t>>1},e.prototype.props=function(){return a(this)},e.props=function(t){return a(t)}}},{"./es5":13,"./util":36}],26:[function(t,e,r){"use strict";function n(t,e,r,n,i){for(var o=0;o<i;++o)r[o+n]=t[o+e],t[o+e]=void 0}function i(t){this._capacity=t,this._length=0,this._front=0}i.prototype._willBeOverCapacity=function(t){return this._capacity<t},i.prototype._pushOne=function(t){var e=this.length();this._checkCapacity(e+1),this[this._front+e&this._capacity-1]=t,this._length=e+1},i.prototype._unshiftOne=function(t){var e=this._capacity;this._checkCapacity(this.length()+1);var r=this._front,n=(r-1&e-1^e)-e;this[n]=t,this._front=n,this._length=this.length()+1},i.prototype.unshift=function(t,e,r){this._unshiftOne(r),this._unshiftOne(e),this._unshiftOne(t)},i.prototype.push=function(t,e,r){var n=this.length()+3;if(this._willBeOverCapacity(n))return this._pushOne(t),this._pushOne(e),void this._pushOne(r);var i=this._front+n-3;this._checkCapacity(n);var o=this._capacity-1;this[i+0&o]=t,this[i+1&o]=e,this[i+2&o]=r,this._length=n},i.prototype.shift=function(){var t=this._front,e=this[t];return this[t]=void 0,this._front=t+1&this._capacity-1,this._length--,e},i.prototype.length=function(){return this._length},i.prototype._checkCapacity=function(t){this._capacity<t&&this._resizeTo(this._capacity<<1)},i.prototype._resizeTo=function(t){var e=this._capacity;this._capacity=t,n(this,0,this,e,this._front+this._length&e-1)},e.exports=i},{}],27:[function(t,e,r){"use strict";e.exports=function(e,r,n,i){function o(t,o){var u=n(t);if(u instanceof e)return s(u);if(null===(t=a.asArray(t)))return i("expecting an array or an iterable object but got "+a.classString(t));var c=new e(r);void 0!==o&&c._propagateFrom(o,3);for(var f=c._fulfill,h=c._reject,l=0,d=t.length;l<d;++l){var p=t[l];(void 0!==p||l in t)&&e.cast(p)._then(f,h,void 0,c,null)}return c}var a=t("./util"),s=function(t){return t.then(function(e){return o(e,t)})};e.race=function(t){return o(t,void 0)},e.prototype.race=function(){return o(this,void 0)}}},{"./util":36}],28:[function(t,e,r){"use strict";e.exports=function(e,r,n,i,o,a){function s(t,r,n,i){this.constructor$(t);var a=l();this._fn=null===a?r:a.bind(r),void 0!==n&&(n=e.resolve(n),n._attachCancellationCallback(this)),this._initialValue=n,this._currentCancellable=null,this._eachValues=i===o?[]:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function u(t,e){this.isFulfilled()?e._resolve(t):e._reject(t)}function c(t,e,r,i){return"function"!==typeof e?n("expecting a function but got "+d.classString(e)):new s(t,e,r,i).promise()}function f(t){this.accum=t,this.array._gotAccum(t);var r=i(this.value,this.array._promise);return r instanceof e?(this.array._currentCancellable=r,r._then(h,void 0,void 0,this,void 0)):h.call(this,r)}function h(t){var r=this.array,n=r._promise,i=p(r._fn);n._pushContext();var o;(o=void 0!==r._eachValues?i.call(n._boundValue(),t,this.index,this.length):i.call(n._boundValue(),this.accum,t,this.index,this.length))instanceof e&&(r._currentCancellable=o);var s=n._popContext();return a.checkForgottenReturns(o,s,void 0!==r._eachValues?"Promise.each":"Promise.reduce",n),o}var l=e._getDomain,d=t("./util"),p=d.tryCatch;d.inherits(s,r),s.prototype._gotAccum=function(t){void 0!==this._eachValues&&t!==o&&this._eachValues.push(t)},s.prototype._eachComplete=function(t){return this._eachValues.push(t),this._eachValues},s.prototype._init=function(){},s.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},s.prototype.shouldCopyValues=function(){return!1},s.prototype._resolve=function(t){this._promise._resolveCallback(t),this._values=null},s.prototype._resultCancelled=function(t){if(t===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof e&&this._currentCancellable.cancel(),this._initialValue instanceof e&&this._initialValue.cancel())},s.prototype._iterate=function(t){this._values=t;var r,n,i=t.length;if(void 0!==this._initialValue?(r=this._initialValue,n=0):(r=e.resolve(t[0]),n=1),this._currentCancellable=r,!r.isRejected())for(;n<i;++n){var o={accum:null,value:t[n],index:n,length:i,array:this};r=r._then(f,void 0,void 0,o,void 0)}void 0!==this._eachValues&&(r=r._then(this._eachComplete,void 0,void 0,this,void 0)),r._then(u,u,void 0,r,this)},e.prototype.reduce=function(t,e){return c(this,t,e,null)},e.reduce=function(t,e,r,n){return c(t,e,r,n)}}},{"./util":36}],29:[function(t,i,o){"use strict";var a,s=t("./util"),u=function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")};if(s.isNode&&"undefined"===typeof MutationObserver){var c=r.setImmediate,f=e.nextTick;a=s.isRecentNode?function(t){c.call(r,t)}:function(t){f.call(e,t)}}else a="undefined"===typeof MutationObserver||"undefined"!==typeof window&&window.navigator&&window.navigator.standalone?"undefined"!==typeof n?function(t){n(t)}:"undefined"!==typeof setTimeout?function(t){setTimeout(t,0)}:u:function(){var t=document.createElement("div"),e={attributes:!0},r=!1,n=document.createElement("div");new MutationObserver(function(){t.classList.toggle("foo"),r=!1}).observe(n,e);var i=function(){r||(r=!0,n.classList.toggle("foo"))};return function(r){var n=new MutationObserver(function(){n.disconnect(),r()});n.observe(t,e),i()}}();i.exports=a},{"./util":36}],30:[function(t,e,r){"use strict";e.exports=function(e,r,n){function i(t){this.constructor$(t)}var o=e.PromiseInspection;t("./util").inherits(i,r),i.prototype._promiseResolved=function(t,e){return this._values[t]=e,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},i.prototype._promiseFulfilled=function(t,e){var r=new o;return r._bitField=33554432,r._settledValueField=t,this._promiseResolved(e,r)},i.prototype._promiseRejected=function(t,e){var r=new o;return r._bitField=16777216,r._settledValueField=t,this._promiseResolved(e,r)},e.settle=function(t){return n.deprecated(".settle()",".reflect()"),new i(t).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(t,e,r){"use strict";e.exports=function(e,r,n){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 n("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var r=new i(t),o=r.promise();return r.setHowMany(e),r.init(),o}var a=t("./util"),s=t("./errors").RangeError,u=t("./errors").AggregateError,c=a.isArray,f={};a.inherits(i,r),i.prototype._init=function(){if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var t=c(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},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 u,e=this.length();e<this._values.length;++e)this._values[e]!==f&&t.push(this._values[e]);return t.length>0?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 s(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,r){"use strict";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 r=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()},n=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)},a=e.prototype.isPending=function(){return 0===(50397184&this._bitField)},s=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 a.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 s.call(this._target())},t.prototype.value=function(){return r.call(this._target())},t.prototype.reason=function(){var t=this._target();return t._unsetRejectionIsUnhandled(),n.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,r){"use strict";e.exports=function(e,r){function n(t,n){if(f(t)){if(t instanceof e)return t;var i=o(t);if(i===c){n&&n._pushContext();var u=e.reject(i.e);return n&&n._popContext(),u}if("function"===typeof i){if(a(t)){var u=new e(r);return t._then(u._fulfill,u._reject,void 0,u,null),u}return s(t,i,n)}}return t}function i(t){return t.then}function o(t){try{return i(t)}catch(t){return c.e=t,c}}function a(t){return h.call(t,"_promise0")}function s(t,n,i){function o(t){s&&(s._resolveCallback(t),s=null)}function a(t){s&&(s._rejectCallback(t,h,!0),s=null)}var s=new e(r),f=s;i&&i._pushContext(),s._captureStackTrace(),i&&i._popContext();var h=!0,l=u.tryCatch(n).call(t,o,a);return h=!1,s&&l===c&&(s._rejectCallback(l.e,!0,!0),s=null),f}var u=t("./util"),c=u.errorObj,f=u.isObject,h={}.hasOwnProperty;return n}},{"./util":36}],34:[function(t,e,r){"use strict";e.exports=function(e,r,n){function i(t){this.handle=t}function o(t){return clearTimeout(this.handle),t}function a(t){throw clearTimeout(this.handle),t}var s=t("./util"),u=e.TimeoutError;i.prototype._resultCancelled=function(){clearTimeout(this.handle)};var c=function(t){return f(+this).thenReturn(t)},f=e.delay=function(t,o){var a,s;return void 0!==o?(a=e.resolve(o)._then(c,null,null,t,void 0),n.cancellation()&&o instanceof e&&a._setOnCancel(o)):(a=new e(r),s=setTimeout(function(){a._fulfill()},+t),n.cancellation()&&a._setOnCancel(new i(s))),a._setAsyncGuaranteed(),a};e.prototype.delay=function(t){return f(t,this)};var h=function(t,e,r){var n;n="string"!==typeof e?e instanceof Error?e:new u("operation timed out"):new u(e),s.markAsOriginatingFromRejection(n),t._attachExtraTrace(n),t._reject(n),null!=r&&r.cancel()};e.prototype.timeout=function(t,e){t=+t;var r,s,u=new i(setTimeout(function(){r.isPending()&&h(r,e,s)},t));return n.cancellation()?(s=this.then(),r=s._then(o,a,void 0,u,void 0),r._setOnCancel(u)):r=this._then(o,a,void 0,u,void 0),r}}},{"./util":36}],35:[function(t,e,r){"use strict";e.exports=function(e,r,n,i,o,a){function s(t){setTimeout(function(){throw t},0)}function u(t){var e=n(t);return e!==t&&"function"===typeof t._isDisposable&&"function"===typeof t._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}function c(t,r){function i(){if(a>=c)return f._fulfill();var o=u(t[a++]);if(o instanceof e&&o._isDisposable()){try{o=n(o._getDisposer().tryDispose(r),t.promise)}catch(t){return s(t)}if(o instanceof e)return o._then(i,s,null,null,null)}i()}var a=0,c=t.length,f=new e(o);return i(),f}function f(t,e,r){this._data=t,this._promise=e,this._context=r}function h(t,e,r){this.constructor$(t,e,r)}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(),r=this._context;void 0!==r&&r._pushContext();var n=null!==e?this.doDispose(e,t):null;return void 0!==r&&r._popContext(),this._promise._unsetDisposable(),this._data=null,n},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,r=0;r<t;++r){var n=this[r];n instanceof e&&n.cancel()}},e.using=function(){var t=arguments.length;if(t<2)return r("you must pass at least 2 arguments to Promise.using");var i=arguments[t-1];if("function"!==typeof i)return r("expecting a function but got "+p.classString(i));var o,s=!0;2===t&&Array.isArray(arguments[0])?(o=arguments[0],t=o.length,s=!1):(o=arguments,t--);for(var u=new d(t),h=0;h<t;++h){var m=o[h];if(f.isDisposer(m)){var b=m;m=m.promise(),m._setDisposable(b)}else{var g=n(m);g instanceof e&&(m=g._then(l,null,null,{resources:u,index:h},void 0))}u[h]=m}for(var _=new Array(u.length),h=0;h<_.length;++h)_[h]=e.resolve(u[h]).reflect();var w=e.all(_).then(function(t){for(var e=0;e<t.length;++e){var r=t[e];if(r.isRejected())return v.e=r.error(),v;if(!r.isFulfilled())return void w.cancel();t[e]=r.value()}M._pushContext(),i=y(i);var n=s?i.apply(void 0,t):i(t),o=M._popContext();return a.checkForgottenReturns(n,o,"Promise.using",M),n}),M=w.lastly(function(){var t=new e.PromiseInspection(w);return c(u,t)});return u.promise=M,M._setOnCancel(u),M},e.prototype._setDisposable=function(t){this._bitField=131072|this._bitField,this._disposer=t},e.prototype._isDisposable=function(){return(131072&this._bitField)>0},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(t,n,i){"use strict";function o(){try{var t=T;return T=null,t.apply(this,arguments)}catch(t){return C.e=t,C}}function a(t){return T=t,o}function s(t){return null==t||!0===t||!1===t||"string"===typeof t||"number"===typeof t}function u(t){return"function"===typeof t||"object"===typeof t&&null!==t}function c(t){return s(t)?new Error(y(t)):t}function f(t,e){var r,n=t.length,i=new Array(n+1);for(r=0;r<n;++r)i[r]=t[r];return i[r]=e,i}function h(t,e,r){if(!S.isES5)return{}.hasOwnProperty.call(t,e)?t[e]:void 0;var n=Object.getOwnPropertyDescriptor(t,e);return null!=n?null==n.get&&null==n.set?n.value:r:void 0}function l(t,e,r){if(s(t))return t;var n={value:r,configurable:!0,enumerable:!1,writable:!0};return S.defineProperty(t,e,n),t}function d(t){throw t}function p(t){try{if("function"===typeof t){var e=S.names(t.prototype),r=S.isES5&&e.length>1,n=e.length>0&&!(1===e.length&&"constructor"===e[0]),i=O.test(t+"")&&S.names(t).length>0;if(r||n||i)return!0}return!1}catch(t){return!1}}function m(t){function e(){}e.prototype=t;for(var r=8;r--;)new e;return t}function b(t){return j.test(t)}function v(t,e,r){for(var n=new Array(t),i=0;i<t;++i)n[i]=e+i+r;return n}function y(t){try{return t+""}catch(t){return"[no string representation]"}}function g(t){return null!==t&&"object"===typeof t&&"string"===typeof t.message&&"string"===typeof t.name}function _(t){try{l(t,"isOperational",!0)}catch(t){}}function w(t){return null!=t&&(t instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===t.isOperational)}function M(t){return g(t)&&S.propertyIsWritable(t,"stack")}function k(t){return{}.toString.call(t)}function E(t,e,r){for(var n=S.names(t),i=0;i<n.length;++i){var o=n[i];if(r(o))try{S.defineProperty(e,o,S.getDescriptor(t,o))}catch(t){}}}function x(t,e){return F?Object({NODE_ENV:"production",PUBLIC_URL:"/oracles-dapps-keys-generation"})[t]:e}var S=t("./es5"),A="undefined"==typeof navigator,C={e:{}},T,I="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof r?r:void 0!==this?this:null,P=function(t,e){function r(){this.constructor=t,this.constructor$=e;for(var r in e.prototype)n.call(e.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=e.prototype[r])}var n={}.hasOwnProperty;return r.prototype=e.prototype,t.prototype=new r,t.prototype},R=function(){var t=[Array.prototype,Object.prototype,Function.prototype],e=function(e){for(var r=0;r<t.length;++r)if(t[r]===e)return!0;return!1};if(S.isES5){var r=Object.getOwnPropertyNames;return function(t){for(var n=[],i=Object.create(null);null!=t&&!e(t);){var o;try{o=r(t)}catch(t){return n}for(var a=0;a<o.length;++a){var s=o[a];if(!i[s]){i[s]=!0;var u=Object.getOwnPropertyDescriptor(t,s);null!=u&&null==u.get&&null==u.set&&n.push(s)}}t=S.getPrototypeOf(t)}return n}}var n={}.hasOwnProperty;return function(r){if(e(r))return[];var i=[];t:for(var o in r)if(n.call(r,o))i.push(o);else{for(var a=0;a<t.length;++a)if(n.call(t[a],o))continue t;i.push(o)}return i}}(),O=/this\s*\.\s*\S+\s*=/,j=/^[a-z$_][a-z$_0-9]*$/i,N=function(){return"stack"in new Error?function(t){return M(t)?t:new Error(y(t))}:function(t){if(M(t))return t;try{throw new Error(y(t))}catch(t){return t}}}(),B=function(t){return S.isArray(t)?t:null};if("undefined"!==typeof Symbol&&Symbol.iterator){var L="function"===typeof Array.from?function(t){return Array.from(t)}:function(t){for(var e,r=[],n=t[Symbol.iterator]();!(e=n.next()).done;)r.push(e.value);return r};B=function(t){return S.isArray(t)?t:null!=t&&"function"===typeof t[Symbol.iterator]?L(t):null}}var F="undefined"!==typeof e&&"[object process]"===k(e).toLowerCase(),D={isClass:p,isIdentifier:b,inheritedDataKeys:R,getDataPropertyOrDefault:h,thrower:d,isArray:S.isArray,asArray:B,notEnumerableProp:l,isPrimitive:s,isObject:u,isError:g,canEvaluate:A,errorObj:C,tryCatch:a,inherits:P,withAppended:f,maybeWrapAsError:c,toFastProperties:m,filledRange:v,toString:y,canAttachTrace:M,ensureErrorObject:N,originatesFromRejection:w,markAsOriginatingFromRejection:_,classString:k,copyDescriptors:E,hasDevTools:"undefined"!==typeof chrome&&chrome&&"function"===typeof chrome.loadTimes,isNode:F,env:x,global:I};D.isRecentNode=D.isNode&&function(){var t=e.versions.node.split(".").map(Number);return 0===t[0]&&t[1]>10||t[0]>0}(),D.isNode&&D.toFastProperties(e);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(e,r(8),r(4),r(30).setImmediate)},function(t,e,r){(function(e){var n=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=r(50),o=r(111),a=r(10),s=(r(116),new a.ec("secp256k1")),u=r(117),c=u.keccak256,f=u.keccak256s,h=function(t){var e=c(i.concat(i.random(32),t||i.random(32))),r=i.concat(i.concat(i.random(32),e),i.random(32)),n=c(r);return d(n)},l=function(t){for(var e=f(t.slice(2)),r="0x",n=0;n<40;n++)r+=parseInt(e[n+2],16)>7?t[n+2].toUpperCase():t[n+2];return r},d=function(t){var r=new e(t.slice(2),"hex"),n=s.keyFromPrivate(r),i="0x"+n.getPublic(!1,"hex").slice(2),o=c(i);return{address:l("0x"+o.slice(-40)),privateKey:t}},p=function(t){var e=n(t,3),r=e[0],o=e[1],a=e[2];return i.flatten([o,a,r])},m=function(t){return[i.slice(64,i.length(t),t),i.slice(0,32,t),i.slice(32,64,t)]},b=function(t){return function(r,n){var a=s.keyFromPrivate(new e(n.slice(2),"hex")).sign(new e(r.slice(2),"hex"),{canonical:!0});return p([o.fromString(i.fromNumber(t+a.recoveryParam)),i.pad(32,i.fromNat("0x"+a.r.toString(16))),i.pad(32,i.fromNat("0x"+a.s.toString(16)))])}},v=b(27),y=function(t,r){var n=m(r),o={v:i.toNumber(n[0]),r:n[1].slice(2),s:n[2].slice(2)},a=s.recoverPubKey(new e(t.slice(2),"hex"),o,o.v<2?o.v:1-o.v%2),u="0x"+a.encode("hex",!1).slice(2),f=c(u);return l("0x"+f.slice(-40))};t.exports={create:h,toChecksum:l,fromPrivate:d,sign:v,makeSigner:b,recover:y,encodeSignature:p,decodeSignature:m}}).call(e,r(0).Buffer)},function(t,e){var r=function(t,e){for(var r=[],n=0;n<t;++n)r.push(e(n));return r},n=function(t,e){return r(t,function(){return e})},i=function(t,e){return t.concat(e)},o=function(t){for(var e=[],r=0,n=t.length;r<n;++r)for(var i=0,o=t[r].length;i<o;++i)e.push(t[r][i]);return e},a=function(t,e){for(var r=[],n=0,i=e.length;n<i;n+=t)r.push(e.slice(n,n+t));return r};t.exports={generate:r,replicate:n,concat:i,flatten:o,chunksOf:a}},function(t,e,r){"use strict";(function(e){function r(t){if(t.length%n!==0){var r=t.length+(n-t.length%n);t=e.concat([t,i],r)}for(var o=new Array(t.length>>>2),a=0,s=0;a<t.length;a+=n,s++)o[s]=t.readInt32LE(a);return o}var n=4,i=new e(n);i.fill(0);t.exports=function(t,n){var i=n(r(t),8*t.length);t=new e(16);for(var o=0;o<i.length;o++)t.writeInt32LE(i[o],o<<2,!0);return t}}).call(e,r(0).Buffer)},function(t,e,r){"use strict";(function(e){function n(t){i.call(this),this._block=new e(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var i=r(19).Transform;r(1)(n,i),n.prototype._transform=function(t,r,n){var i=null;try{"buffer"!==r&&(t=new e(t,r)),this.update(t)}catch(t){i=t}n(i)},n.prototype._flush=function(t){var e=null;try{this.push(this._digest())}catch(t){e=t}t(e)},n.prototype.update=function(t,r){if(!e.isBuffer(t)&&"string"!==typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");e.isBuffer(t)||(t=new e(t,r||"binary"));for(var n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)n[o++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)n[this._blockOffset++]=t[i++];for(var a=0,s=8*t.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},n.prototype._update=function(t){throw new Error("_update is not implemented")},n.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},n.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=n}).call(e,r(0).Buffer)},function(t,e){},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,r){t.copy(e,r)}var o=r(2).Buffer;t.exports=function(){function t(){n(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,r=""+e.data;e=e.next;)r+=t+e.data;return r},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),r=this.head,n=0;r;)i(r.data,e,n),n+=r.data.length,r=r.next;return e},t}()},function(t,e,r){(function(e){function r(t,e){function r(){if(!i){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),i=!0}return t.apply(this,arguments)}if(n("noDeprecation"))return t;var i=!1;return r}function n(t){try{if(!e.localStorage)return!1}catch(t){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=r}).call(e,r(4))},function(t,e,r){"use strict";function n(t){if(!(this instanceof n))return new n(t);i.call(this,t)}t.exports=n;var i=r(82),o=r(32);o.inherits=r(1),o.inherits(n,i),n.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){t.exports=r(55)},function(t,e,r){t.exports=r(24)},function(t,e,r){t.exports=r(54).Transform},function(t,e,r){t.exports=r(54).PassThrough},function(t,e,r){function n(){this.init(),this._w=h,u.call(this,64,56)}function i(t){return t<<5|t>>>27}function o(t){return t<<30|t>>>2}function a(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}var s=r(1),u=r(28),c=r(2).Buffer,f=[1518500249,1859775393,-1894007588,-899497514],h=new Array(80);s(n,u),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},n.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,s=0|this._c,u=0|this._d,c=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(r)+a(d,n,s,u)+c+e[l]+f[d]|0;c=u,u=s,s=o(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=s+this._c|0,this._d=u+this._d|0,this._e=c+this._e|0},n.prototype._hash=function(){var t=c.allocUnsafe(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},t.exports=n},function(t,e,r){function n(){this.init(),this._w=l,c.call(this,64,56)}function i(t){return t<<1|t>>>31}function o(t){return t<<5|t>>>27}function a(t){return t<<30|t>>>2}function s(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}var u=r(1),c=r(28),f=r(2).Buffer,h=[1518500249,1859775393,-1894007588,-899497514],l=new Array(80);u(n,c),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},n.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,u=0|this._c,c=0|this._d,f=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(r)+s(p,n,u,c)+f+e[d]+h[p]|0;f=c,c=u,u=a(n),n=r,r=m}this._a=r+this._a|0,this._b=n+this._b|0,this._c=u+this._c|0,this._d=c+this._d|0,this._e=f+this._e|0},n.prototype._hash=function(){var t=f.allocUnsafe(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},t.exports=n},function(t,e,r){function n(){this.init(),this._w=u,a.call(this,64,56)}var i=r(1),o=r(83),a=r(28),s=r(2).Buffer,u=new Array(64);i(n,o),n.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},n.prototype._hash=function(){var t=s.allocUnsafe(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},t.exports=n},function(t,e,r){function n(){this.init(),this._w=u,a.call(this,128,112)}var i=r(1),o=r(84),a=r(28),s=r(2).Buffer,u=new Array(160);i(n,o),n.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},n.prototype._hash=function(){function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}var e=s.allocUnsafe(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},t.exports=n},function(t,e,r){"use strict";function n(t,e){a.call(this,"digest"),"string"===typeof e&&(e=o.from(e)),this._alg=t,this._key=e,e.length>u?e=t(e):e.length<u&&(e=o.concat([e,s],u));for(var r=this._ipad=o.allocUnsafe(u),n=this._opad=o.allocUnsafe(u),i=0;i<u;i++)r[i]=54^e[i],n[i]=92^e[i];this._hash=[r]}var i=r(1),o=r(2).Buffer,a=r(20),s=o.alloc(128),u=64;i(n,a),n.prototype._update=function(t){this._hash.push(t)},n.prototype._final=function(){var t=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,t]))},t.exports=n},function(t,e,r){t.exports=r(86)},function(t,e,r){(function(e,n){function i(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==p[t])return p[t];s=s||h.alloc(8);var r=o(s,s,10,128,t).then(function(){return!0}).catch(function(){return!1});return p[t]=r,r}function o(t,e,r,n,i){return l.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(t){return l.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:i}},t,n<<3)}).then(function(t){return h.from(t)})}function a(t,e){t.then(function(t){n.nextTick(function(){e(null,t)})},function(t){n.nextTick(function(){e(t)})})}var s,u=r(88),c=r(89),f=r(90),h=r(2).Buffer,l=e.crypto&&e.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=[];t.exports=function(t,r,s,l,p,m){if(h.isBuffer(t)||(t=h.from(t,c)),h.isBuffer(r)||(r=h.from(r,c)),u(s,l),"function"===typeof p&&(m=p,p=void 0),"function"!==typeof m)throw new Error("No callback provided to pbkdf2");p=p||"sha1";var b=d[p.toLowerCase()];if(!b||"function"!==typeof e.Promise)return n.nextTick(function(){var e;try{e=f(t,r,s,l,p)}catch(t){return m(t)}m(null,e)});a(i(b).then(function(e){return e?o(t,r,s,l,b):f(t,r,s,l,p)}),m)}}).call(e,r(4),r(8))},function(t,e,r){function n(t,e){var r,n;if(t=t.toLowerCase(),l[t])r=l[t].key,n=l[t].iv;else{if(!h[t])throw new TypeError("invalid suite type");r=8*h[t].key,n=h[t].iv}var i=u(e,!1,r,n);return o(t,i.key,i.iv)}function i(t,e){var r,n;if(t=t.toLowerCase(),l[t])r=l[t].key,n=l[t].iv;else{if(!h[t])throw new TypeError("invalid suite type");r=8*h[t].key,n=h[t].iv}var i=u(e,!1,r,n);return a(t,i.key,i.iv)}function o(t,e,r){if(t=t.toLowerCase(),l[t])return c.createCipheriv(t,e,r);if(h[t])return new f({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function a(t,e,r){if(t=t.toLowerCase(),l[t])return c.createDecipheriv(t,e,r);if(h[t])return new f({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}function s(){return Object.keys(h).concat(c.getCiphers())}var u=r(43),c=r(57),f=r(229),h=r(235),l=r(58);e.createCipher=e.Cipher=n,e.createCipheriv=e.Cipheriv=o,e.createDecipher=e.Decipher=i,e.createDecipheriv=e.Decipheriv=a,e.listCiphers=e.getCiphers=s},function(t,e,r){"use strict";(function(e){function n(){f.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function i(t,e){return t<<e|t>>>32-e}function o(t,e,r,n,o,a,s){return i(t+(e&r|~e&n)+o+a|0,s)+e|0}function a(t,e,r,n,o,a,s){return i(t+(e&n|r&~n)+o+a|0,s)+e|0}function s(t,e,r,n,o,a,s){return i(t+(e^r^n)+o+a|0,s)+e|0}function u(t,e,r,n,o,a,s){return i(t+(r^(e|~n))+o+a|0,s)+e|0}var c=r(1),f=r(219),h=new Array(16);c(n,f),n.prototype._update=function(){for(var t=h,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,i=this._c,c=this._d;r=o(r,n,i,c,t[0],3614090360,7),c=o(c,r,n,i,t[1],3905402710,12),i=o(i,c,r,n,t[2],606105819,17),n=o(n,i,c,r,t[3],3250441966,22),r=o(r,n,i,c,t[4],4118548399,7),c=o(c,r,n,i,t[5],1200080426,12),i=o(i,c,r,n,t[6],2821735955,17),n=o(n,i,c,r,t[7],4249261313,22),r=o(r,n,i,c,t[8],1770035416,7),c=o(c,r,n,i,t[9],2336552879,12),i=o(i,c,r,n,t[10],4294925233,17),n=o(n,i,c,r,t[11],2304563134,22),r=o(r,n,i,c,t[12],1804603682,7),c=o(c,r,n,i,t[13],4254626195,12),i=o(i,c,r,n,t[14],2792965006,17),n=o(n,i,c,r,t[15],1236535329,22),r=a(r,n,i,c,t[1],4129170786,5),c=a(c,r,n,i,t[6],3225465664,9),i=a(i,c,r,n,t[11],643717713,14),n=a(n,i,c,r,t[0],3921069994,20),r=a(r,n,i,c,t[5],3593408605,5),c=a(c,r,n,i,t[10],38016083,9),i=a(i,c,r,n,t[15],3634488961,14),n=a(n,i,c,r,t[4],3889429448,20),r=a(r,n,i,c,t[9],568446438,5),c=a(c,r,n,i,t[14],3275163606,9),i=a(i,c,r,n,t[3],4107603335,14),n=a(n,i,c,r,t[8],1163531501,20),r=a(r,n,i,c,t[13],2850285829,5),c=a(c,r,n,i,t[2],4243563512,9),i=a(i,c,r,n,t[7],1735328473,14),n=a(n,i,c,r,t[12],2368359562,20),r=s(r,n,i,c,t[5],4294588738,4),c=s(c,r,n,i,t[8],2272392833,11),i=s(i,c,r,n,t[11],1839030562,16),n=s(n,i,c,r,t[14],4259657740,23),r=s(r,n,i,c,t[1],2763975236,4),c=s(c,r,n,i,t[4],1272893353,11),i=s(i,c,r,n,t[7],4139469664,16),n=s(n,i,c,r,t[10],3200236656,23),r=s(r,n,i,c,t[13],681279174,4),c=s(c,r,n,i,t[0],3936430074,11),i=s(i,c,r,n,t[3],3572445317,16),n=s(n,i,c,r,t[6],76029189,23),r=s(r,n,i,c,t[9],3654602809,4),c=s(c,r,n,i,t[12],3873151461,11),i=s(i,c,r,n,t[15],530742520,16),n=s(n,i,c,r,t[2],3299628645,23),r=u(r,n,i,c,t[0],4096336452,6),c=u(c,r,n,i,t[7],1126891415,10),i=u(i,c,r,n,t[14],2878612391,15),n=u(n,i,c,r,t[5],4237533241,21),r=u(r,n,i,c,t[12],1700485571,6),c=u(c,r,n,i,t[3],2399980690,10),i=u(i,c,r,n,t[10],4293915773,15),n=u(n,i,c,r,t[1],2240044497,21),r=u(r,n,i,c,t[8],1873313359,6),c=u(c,r,n,i,t[15],4264355552,10),i=u(i,c,r,n,t[6],2734768916,15),n=u(n,i,c,r,t[13],1309151649,21),r=u(r,n,i,c,t[4],4149444226,6),c=u(c,r,n,i,t[11],3174756917,10),i=u(i,c,r,n,t[2],718787259,15),n=u(n,i,c,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+c|0},n.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 e(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=n}).call(e,r(0).Buffer)},function(t,e,r){"use strict";function n(t,e){if(!o.isBuffer(t)&&"string"!==typeof t)throw new TypeError(e+" must be a string or a buffer")}function i(t){a.call(this),this._block=o.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var o=r(2).Buffer,a=r(19).Transform;r(1)(i,a),i.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},i.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},i.prototype.update=function(t,e){if(n(t,"Data"),this._finalized)throw new Error("Digest already called");o.isBuffer(t)||(t=o.from(t,e));for(var r=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)r[a++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)r[this._blockOffset++]=t[i++];for(var s=0,u=8*t.length;u>0;++s)this._length[s]+=u,(u=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*u);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e},i.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=i},function(t,e,r){function n(t,e,r){h.call(this),this._cache=new i,this._cipher=new l.AES(e),this._prev=c.from(r),this._mode=t,this._autopadding=!0}function i(){this.cache=c.allocUnsafe(0)}function o(t,e,r){var i=s[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if("string"===typeof e&&(e=c.from(e)),e.length!==i.key/8)throw new TypeError("invalid key length "+e.length);if("string"===typeof r&&(r=c.from(r)),"GCM"!==i.mode&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===i.type?new f(i.module,e,r):"auth"===i.type?new u(i.module,e,r):new n(i.module,e,r)}function a(t,e){var r=s[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=d(e,!1,r.key,r.iv);return o(t,n.key,n.iv)}var s=r(58),u=r(94),c=r(2).Buffer,f=r(95),h=r(20),l=r(44),d=r(43);r(1)(n,h),n.prototype._update=function(t){this._cache.add(t);for(var e,r,n=[];e=this._cache.get();)r=this._mode.encrypt(this,e),n.push(r);return c.concat(n)};var p=c.alloc(16,16);n.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(p))throw this._cipher.scrub(),new Error("data not multiple of block length")},n.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},i.prototype.add=function(t){this.cache=c.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,e=c.allocUnsafe(t),r=-1;++r<t;)e.writeUInt8(t,r);return c.concat([this.cache,e])},e.createCipheriv=o,e.createCipher=a},function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},function(t,e,r){var n=r(33);e.encrypt=function(t,e){var r=n(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev},e.decrypt=function(t,e){var r=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return n(i,r)}},function(t,e,r){function n(t,e,r){var n=e.length,a=o(e,t._cache);return t._cache=t._cache.slice(n),t._prev=i.concat([t._prev,r?e:a]),a}var i=r(2).Buffer,o=r(33);e.encrypt=function(t,e,r){for(var o,a=i.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=i.allocUnsafe(0)),!(t._cache.length<=e.length)){a=i.concat([a,n(t,e,r)]);break}o=t._cache.length,a=i.concat([a,n(t,e.slice(0,o),r)]),e=e.slice(o)}return a}},function(t,e,r){function n(t,e,r){var n=t._cipher.encryptBlock(t._prev),o=n[0]^e;return t._prev=i.concat([t._prev.slice(1),i.from([r?e:o])]),o}var i=r(2).Buffer;e.encrypt=function(t,e,r){for(var o=e.length,a=i.allocUnsafe(o),s=-1;++s<o;)a[s]=n(t,e[s],r);return a}},function(t,e,r){function n(t,e,r){for(var n,o,a,s=-1,u=0;++s<8;)n=t._cipher.encryptBlock(t._prev),o=e&1<<7-s?128:0,a=n[0]^o,u+=(128&a)>>s%8,t._prev=i(t._prev,r?o:a);return u}function i(t,e){var r=t.length,n=-1,i=o.allocUnsafe(t.length);for(t=o.concat([t,o.from([e])]);++n<r;)i[n]=t[n]<<1|t[n+1]>>7;return i}var o=r(2).Buffer;e.encrypt=function(t,e,r){for(var i=e.length,a=o.allocUnsafe(i),s=-1;++s<i;)a[s]=n(t,e[s],r);return a}},function(t,e,r){(function(t){function n(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}var i=r(33);e.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,n(e)]);var o=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),i(r,o)}}).call(e,r(0).Buffer)},function(t,e,r){function n(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}function i(t){var e=a.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function o(t){this.h=t,this.state=a.alloc(16,0),this.cache=a.allocUnsafe(0)}var a=r(2).Buffer,s=a.alloc(16,0);o.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},o.prototype._multiply=function(){for(var t,e,r,o=n(this.h),a=[0,0,0,0],s=-1;++s<128;){for(e=0!==(this.state[~~(s/8)]&1<<7-s%8),e&&(a[0]^=o[0],a[1]^=o[1],a[2]^=o[2],a[3]^=o[3]),r=0!==(1&o[3]),t=3;t>0;t--)o[t]=o[t]>>>1|(1&o[t-1])<<31;o[0]=o[0]>>>1,r&&(o[0]=o[0]^225<<24)}this.state=i(a)},o.prototype.update=function(t){this.cache=a.concat([this.cache,t]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},o.prototype.final=function(t,e){return this.cache.length&&this.ghash(a.concat([this.cache,s],16)),this.ghash(i([0,t,0,e])),this.state},t.exports=o},function(t,e,r){function n(t,e,r){l.call(this),this._cache=new i,this._last=void 0,this._cipher=new d.AES(e),this._prev=c.from(r),this._mode=t,this._autopadding=!0}function i(){this.cache=c.allocUnsafe(0)}function o(t){for(var e=t[15],r=-1;++r<e;)if(t[r+(16-e)]!==e)throw new Error("unable to decrypt data");if(16!==e)return t.slice(0,16-e)}function a(t,e,r){var i=f[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if("string"===typeof r&&(r=c.from(r)),"GCM"!==i.mode&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);if("string"===typeof e&&(e=c.from(e)),e.length!==i.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===i.type?new h(i.module,e,r,!0):"auth"===i.type?new u(i.module,e,r,!0):new n(i.module,e,r)}function s(t,e){var r=f[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=p(e,!1,r.key,r.iv);return a(t,n.key,n.iv)}var u=r(94),c=r(2).Buffer,f=r(58),h=r(95),l=r(20),d=r(44),p=r(43);r(1)(n,l),n.prototype._update=function(t){this._cache.add(t);for(var e,r,n=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),n.push(r);return c.concat(n)},n.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return o(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},n.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},i.prototype.add=function(t){this.cache=c.concat([this.cache,t])},i.prototype.get=function(t){var e;if(t){if(this.cache.length>16)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},e.createDecipher=s,e.createDecipheriv=a},function(t,e,r){(function(e){function n(t){i.call(this);var r,n=t.mode.toLowerCase(),o=s[n];r=t.decrypt?"decrypt":"encrypt";var a=t.key;"des-ede"!==n&&"des-ede-cbc"!==n||(a=e.concat([a,a.slice(0,8)]));var u=t.iv;this._des=o.create({key:a,iv:u,type:r})}var i=r(20),o=r(59),a=r(1),s={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=n,a(n,i),n.prototype._update=function(t){return new e(this._des.update(t))},n.prototype._final=function(){return new e(this._des.final())}}).call(e,r(0).Buffer)},function(t,e,r){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,r){t[0+r]=e>>>24,t[1+r]=e>>>16&255,t[2+r]=e>>>8&255,t[3+r]=255&e},e.ip=function(t,e,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1}for(var a=6;a>=0;a-=2){for(var s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1;for(var s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},e.rip=function(t,e,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=e>>>s+a&1,i<<=1,i|=t>>>s+a&1;for(var a=4;a<8;a++)for(var s=24;s>=0;s-=8)o<<=1,o|=e>>>s+a&1,o<<=1,o|=t>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},e.pc1=function(t,e,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1}for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(var a=1;a<=3;a++){for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1}for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var n=[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];e.pc2=function(t,e,r,i){for(var o=0,a=0,s=n.length>>>1,u=0;u<s;u++)o<<=1,o|=t>>>n[u]&1;for(var u=s;u<n.length;u++)a<<=1,a|=e>>>n[u]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},e.expand=function(t,e,r){var n=0,i=0;n=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=t>>>o&63;for(var o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[r+0]=n>>>0,e[r+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];e.substitute=function(t,e){for(var r=0,n=0;n<4;n++){var o=t>>>18-6*n&63,a=i[64*n+o];r<<=4,r|=a}for(var n=0;n<4;n++){var o=e>>>18-6*n&63,a=i[256+64*n+o];r<<=4,r|=a}return r>>>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];e.permute=function(t){for(var e=0,r=0;r<o.length;r++)e<<=1,e|=t>>>o[r]&1;return e>>>0},e.padSplit=function(t,e,r){for(var n=t.toString(2);n.length<e;)n="0"+n;for(var i=[],o=0;o<e;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},function(t,e,r){"use strict";function n(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}var i=r(13);t.exports=n,n.prototype._init=function(){},n.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},n.prototype._buffer=function(t,e){for(var r=Math.min(this.buffer.length-this.bufferOff,t.length-e),n=0;n<r;n++)this.buffer[this.bufferOff+n]=t[e+n];return this.bufferOff+=r,r},n.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},n.prototype._updateEncrypt=function(t){var e=0,r=0,n=(this.bufferOff+t.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=t.length-(t.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(t,e,i,r),r+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return i},n.prototype._updateDecrypt=function(t){for(var e=0,r=0,n=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)e+=this._buffer(t,e),r+=this._flushBuffer(i,r);return e+=this._buffer(t,e),i},n.prototype.final=function(t){var e;t&&(e=this.update(t));var r;return r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(r):r},n.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},n.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},n.prototype._unpad=function(t){return t},n.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},function(t,e,r){"use strict";function n(){this.tmp=new Array(2),this.keys=null}function i(t){c.call(this,t);var e=new n;this._desState=e,this.deriveKeys(e,t.key)}var o=r(13),a=r(1),s=r(59),u=s.utils,c=s.Cipher;a(i,c),t.exports=i,i.create=function(t){return new i(t)};var f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];i.prototype.deriveKeys=function(t,e){t.keys=new Array(32),o.equal(e.length,this.blockSize,"Invalid key length");var r=u.readUInt32BE(e,0),n=u.readUInt32BE(e,4);u.pc1(r,n,t.tmp,0),r=t.tmp[0],n=t.tmp[1];for(var i=0;i<t.keys.length;i+=2){var a=f[i>>>1];r=u.r28shl(r,a),n=u.r28shl(n,a),u.pc2(r,n,t.keys,i)}},i.prototype._update=function(t,e,r,n){var i=this._desState,o=u.readUInt32BE(t,e),a=u.readUInt32BE(t,e+4);u.ip(o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,a,i.tmp,0):this._decrypt(i,o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],u.writeUInt32BE(r,o,n),u.writeUInt32BE(r,a,n+4)},i.prototype._pad=function(t,e){for(var r=t.length-e,n=e;n<t.length;n++)t[n]=r;return!0},i.prototype._unpad=function(t){for(var e=t[t.length-1],r=t.length-e;r<t.length;r++)o.equal(t[r],e);return t.slice(0,t.length-e)},i.prototype._encrypt=function(t,e,r,n,i){for(var o=e,a=r,s=0;s<t.keys.length;s+=2){var c=t.keys[s],f=t.keys[s+1];u.expand(a,t.tmp,0),c^=t.tmp[0],f^=t.tmp[1];var h=u.substitute(c,f),l=u.permute(h),d=a;a=(o^l)>>>0,o=d}u.rip(a,o,n,i)},i.prototype._decrypt=function(t,e,r,n,i){for(var o=r,a=e,s=t.keys.length-2;s>=0;s-=2){var c=t.keys[s],f=t.keys[s+1];u.expand(o,t.tmp,0),c^=t.tmp[0],f^=t.tmp[1];var h=u.substitute(c,f),l=u.permute(h),d=o;o=(a^l)>>>0,a=d}u.rip(o,a,n,i)}},function(t,e,r){"use strict";function n(t){o.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}function i(t){function e(e){t.call(this,e),this._cbcInit()}a(e,t);for(var r=Object.keys(s),n=0;n<r.length;n++){var i=r[n];e.prototype[i]=s[i]}return e.create=function(t){return new e(t)},e}var o=r(13),a=r(1),s={};e.instantiate=i,s._cbcInit=function(){var t=new n(this.options.iv);this._cbcState=t},s._update=function(t,e,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=t[e+s];o._update.call(this,a,0,r,n);for(var s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{o._update.call(this,t,e,r,n);for(var s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(var s=0;s<this.blockSize;s++)a[s]=t[e+s]}}},function(t,e,r){"use strict";function n(t,e){o.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),n=e.slice(8,16),i=e.slice(16,24);this.ciphers="encrypt"===t?[c.create({type:"encrypt",key:r}),c.create({type:"decrypt",key:n}),c.create({type:"encrypt",key:i})]:[c.create({type:"decrypt",key:i}),c.create({type:"encrypt",key:n}),c.create({type:"decrypt",key:r})]}function i(t){u.call(this,t);var e=new n(this.type,this.options.key);this._edeState=e}var o=r(13),a=r(1),s=r(59),u=s.Cipher,c=s.DES;a(i,u),t.exports=i,i.create=function(t){return new i(t)},i.prototype._update=function(t,e,r,n){var i=this._edeState;i.ciphers[0]._update(t,e,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},i.prototype._pad=c.prototype._pad,i.prototype._unpad=c.prototype._unpad},function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},function(t,e,r){(function(t){function n(e){var r=new t(a[e].prime,"hex"),n=new t(a[e].gen,"hex");return new s(r,n)}function i(e,r,n,a){return t.isBuffer(r)||void 0===u[r]?i(e,"binary",r,n):(r=r||"binary",a=a||"binary",n=n||new t([2]),t.isBuffer(n)||(n=new t(n,a)),"number"===typeof e?new s(o(e,n),n,!0):(t.isBuffer(e)||(e=new t(e,r)),new s(e,n,!0)))}var o=r(96),a=r(239),s=r(240),u={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=n,e.createDiffieHellman=e.DiffieHellman=i}).call(e,r(0).Buffer)},function(t,e){},function(t,e){},function(t,e){t.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"}}},function(t,e,r){(function(e){function n(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._pub=new u(t),this}function i(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._priv=new u(t),this}function o(t,e){var r=e.toString("hex"),n=[r,t.toString(16)].join("_");if(n in y)return y[n];var i=0;if(t.isEven()||!b.simpleSieve||!b.fermatTest(t)||!f.test(t))return i+=1,i+="02"===r||"05"===r?8:4,y[n]=i,i;f.test(t.shrn(1))||(i+=2);var o;switch(r){case"02":t.mod(h).cmp(l)&&(i+=8);break;case"05":o=t.mod(d),o.cmp(p)&&o.cmp(m)&&(i+=8);break;default:i+=4}return y[n]=i,i}function a(t,e,r){this.setGenerator(e),this.__prime=new u(t),this._prime=u.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=n,this.setPrivateKey=i):this._primeCode=8}function s(t,r){var n=new e(t.toArray());return r?n.toString(r):n}var u=r(3),c=r(97),f=new c,h=new u(24),l=new u(11),d=new u(10),p=new u(3),m=new u(7),b=r(96),v=r(27);t.exports=a;var y={};Object.defineProperty(a.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!==typeof this._primeCode&&(this._primeCode=o(this.__prime,this.__gen)),this._primeCode}}),a.prototype.generateKeys=function(){return this._priv||(this._priv=new u(v(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},a.prototype.computeSecret=function(t){t=new u(t),t=t.toRed(this._prime);var r=t.redPow(this._priv).fromRed(),n=new e(r.toArray()),i=this.getPrime();if(n.length<i.length){var o=new e(i.length-n.length);o.fill(0),n=e.concat([o,n])}return n},a.prototype.getPublicKey=function(t){return s(this._pub,t)},a.prototype.getPrivateKey=function(t){return s(this._priv,t)},a.prototype.getPrime=function(t){return s(this.__prime,t)},a.prototype.getGenerator=function(t){return s(this._gen,t)},a.prototype.setGenerator=function(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this.__gen=t,this._gen=new u(t),this}}).call(e,r(0).Buffer)},function(t,e,r){(function(e){function n(t){u.Writable.call(this);var e=l[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=s(e.hash),this._tag=e.id,this._signType=e.sign}function i(t){u.Writable.call(this);var e=l[t];if(!e)throw new Error("Unknown message digest");this._hash=s(e.hash),this._tag=e.id,this._signType=e.sign}function o(t){return new n(t)}function a(t){return new i(t)}var s=r(31),u=r(19),c=r(1),f=r(242),h=r(278),l=r(86);Object.keys(l).forEach(function(t){l[t].id=new e(l[t].id,"hex"),l[t.toLowerCase()]=l[t]}),c(n,u.Writable),n.prototype._write=function(t,e,r){this._hash.update(t),r()},n.prototype.update=function(t,r){return"string"===typeof t&&(t=new e(t,r)),this._hash.update(t),this},n.prototype.sign=function(t,e){this.end();var r=this._hash.digest(),n=f(r,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},c(i,u.Writable),i.prototype._write=function(t,e,r){this._hash.update(t),r()},i.prototype.update=function(t,r){return"string"===typeof t&&(t=new e(t,r)),this._hash.update(t),this},i.prototype.verify=function(t,r,n){"string"===typeof r&&(r=new e(r,n)),this.end();var i=this._hash.digest();return h(r,i,t,this._signType,this._tag)},t.exports={Sign:o,Verify:a,createSign:o,createVerify:a}}).call(e,r(0).Buffer)},function(t,e,r){(function(e){function n(t,r,n,a,s){var u=b(r);if(u.curve){if("ecdsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong private key type");return i(t,u)}if("dsa"===u.type){if("dsa"!==a)throw new Error("wrong private key type");return o(t,u,n)}if("rsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong private key type");t=e.concat([s,t]);for(var c=u.modulus.byteLength(),f=[0,1];t.length+f.length+1<c;)f.push(255);f.push(0);for(var h=-1;++h<t.length;)f.push(t[h]);return d(f,u)}function i(t,r){var n=v[r.curve.join(".")];if(!n)throw new Error("unknown curve "+r.curve.join("."));var i=new p(n),o=i.keyFromPrivate(r.privateKey),a=o.sign(t);return new e(a.toDER())}function o(t,e,r){for(var n,i=e.params.priv_key,o=e.params.p,c=e.params.q,l=e.params.g,d=new m(0),p=u(t,c).mod(c),b=!1,v=s(i,c,t,r);!1===b;)n=f(c,v,r),d=h(l,n,o,c),b=n.invm(c).imul(p.add(i.mul(d))).mod(c),0===b.cmpn(0)&&(b=!1,d=new m(0));return a(d,b)}function a(t,r){t=t.toArray(),r=r.toArray(),128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r));var n=t.length+r.length+4,i=[48,n,2,t.length];return i=i.concat(t,[2,r.length],r),new e(i)}function s(t,r,n,i){if(t=new e(t.toArray()),t.length<r.byteLength()){var o=new e(r.byteLength()-t.length);o.fill(0),t=e.concat([o,t])}var a=n.length,s=c(n,r),u=new e(a);u.fill(1);var f=new e(a);return f.fill(0),f=l(i,f).update(u).update(new e([0])).update(t).update(s).digest(),u=l(i,f).update(u).digest(),f=l(i,f).update(u).update(new e([1])).update(t).update(s).digest(),u=l(i,f).update(u).digest(),{k:f,v:u}}function u(t,e){var r=new m(t),n=(t.length<<3)-e.bitLength();return n>0&&r.ishrn(n),r}function c(t,r){t=u(t,r),t=t.mod(r);var n=new e(t.toArray());if(n.length<r.byteLength()){var i=new e(r.byteLength()-n.length);i.fill(0),n=e.concat([i,n])}return n}function f(t,r,n){var i,o;do{for(i=new e(0);8*i.length<t.bitLength();)r.v=l(n,r.k).update(r.v).digest(),i=e.concat([i,r.v]);o=u(i,t),r.k=l(n,r.k).update(r.v).update(new e([0])).digest(),r.v=l(n,r.k).update(r.v).digest()}while(-1!==o.cmp(t));return o}function h(t,e,r,n){return t.toRed(m.mont(r)).redPow(e).fromRed().mod(n)}var l=r(85),d=r(60),p=r(9).ec,m=r(3),b=r(46),v=r(107);t.exports=n,t.exports.getKey=s,t.exports.makeKey=f}).call(e,r(0).Buffer)},function(t,e){t.exports={_from:"elliptic@^6.0.0",_id:"[email protected]",_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"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",_spec:"elliptic@^6.0.0",_where:"/Users/rstorm/repos/generate_keys_dapp/finalapp/node_modules/browserify-sign",author:{name:"Fedor Indutny",email:"[email protected]"},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://[email protected]/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"}},function(t,e,r){"use strict";function n(t,e){for(var r=[],n=1<<e+1,i=t.clone();i.cmpn(1)>=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?e+1:1,u=1;u<s;u++)r.push(0);i.iushrn(s)}return r}function i(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n=0,i=0;t.cmpn(-n)>0||e.cmpn(-i)>0;){var o=t.andln(3)+n&3,a=e.andln(3)+i&3;3===o&&(o=-1),3===a&&(a=-1);var s;if(0===(1&o))s=0;else{var u=t.andln(7)+n&7;s=3!==u&&5!==u||2!==a?o:-o}r[0].push(s);var c;if(0===(1&a))c=0;else{var u=e.andln(7)+i&7;c=3!==u&&5!==u||2!==o?a:-a}r[1].push(c),2*n===s+1&&(n=1-n),2*i===c+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r}function o(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}}function a(t){return"string"===typeof t?u.toArray(t,"hex"):t}function s(t){return new c(t,"hex","le")}var u=e,c=r(3),f=r(13),h=r(99);u.assert=f,u.toArray=h.toArray,u.zero2=h.zero2,u.toHex=h.toHex,u.encode=h.encode,u.getNAF=n,u.getJSF=i,u.cachedProperty=o,u.parseBytes=a,u.intFromLE=s},function(t,e,r){"use strict";function n(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 r=this.n&&this.p.div(this.n);!r||r.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=r(3),a=r(9),s=a.utils,u=s.getNAF,c=s.getJSF,f=s.assert;t.exports=n,n.prototype.point=function(){throw new Error("Not implemented")},n.prototype.validate=function(){throw new Error("Not implemented")},n.prototype._fixedNafMul=function(t,e){f(t.precomputed);var r=t._getDoubles(),n=u(e,1),i=(1<<r.step+1)-(r.step%2===0?2:1);i/=3;for(var o=[],a=0;a<n.length;a+=r.step){for(var s=0,e=a+r.step-1;e>=a;e--)s=(s<<1)+n[e];o.push(s)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),l=i;l>0;l--){for(var a=0;a<o.length;a++){var s=o[a];s===l?h=h.mixedAdd(r.points[a]):s===-l&&(h=h.mixedAdd(r.points[a].neg()))}c=c.add(h)}return c.toP()},n.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=u(e,r),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(var e=0;s>=0&&0===o[s];s--)e++;if(s>=0&&e++,a=a.dblp(e),s<0)break;var c=o[s];f(0!==c),a="affine"===t.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===t.type?a.toP():a},n.prototype._wnafMulAdd=function(t,e,r,n,i){for(var o=this._wnafT1,a=this._wnafT2,s=this._wnafT3,f=0,h=0;h<n;h++){var l=e[h],d=l._getNAFPoints(t);o[h]=d.wnd,a[h]=d.points}for(var h=n-1;h>=1;h-=2){var p=h-1,m=h;if(1===o[p]&&1===o[m]){var b=[e[p],null,null,e[m]];0===e[p].y.cmp(e[m].y)?(b[1]=e[p].add(e[m]),b[2]=e[p].toJ().mixedAdd(e[m].neg())):0===e[p].y.cmp(e[m].y.redNeg())?(b[1]=e[p].toJ().mixedAdd(e[m]),b[2]=e[p].add(e[m].neg())):(b[1]=e[p].toJ().mixedAdd(e[m]),b[2]=e[p].toJ().mixedAdd(e[m].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],y=c(r[p],r[m]);f=Math.max(y[0].length,f),s[p]=new Array(f),s[m]=new Array(f);for(var g=0;g<f;g++){var _=0|y[0][g],w=0|y[1][g];s[p][g]=v[3*(_+1)+(w+1)],s[m][g]=0,a[p]=b}}else s[p]=u(r[p],o[p]),s[m]=u(r[m],o[m]),f=Math.max(s[p].length,f),f=Math.max(s[m].length,f)}for(var M=this.jpoint(null,null,null),k=this._wnafT4,h=f;h>=0;h--){for(var E=0;h>=0;){for(var x=!0,g=0;g<n;g++)k[g]=0|s[g][h],0!==k[g]&&(x=!1);if(!x)break;E++,h--}if(h>=0&&E++,M=M.dblp(E),h<0)break;for(var g=0;g<n;g++){var l,S=k[g];0!==S&&(S>0?l=a[g][S-1>>1]:S<0&&(l=a[g][-S-1>>1].neg()),M="affine"===l.type?M.mixedAdd(l):M.add(l))}}for(var h=0;h<n;h++)a[h]=null;return i?M:M.toP()},n.BasePoint=i,i.prototype.eq=function(){throw new Error("Not implemented")},i.prototype.validate=function(){return this.curve.validate(this)},n.prototype.decodePoint=function(t,e){t=s.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1===2*r){6===t[0]?f(t[t.length-1]%2===0):7===t[0]&&f(t[t.length-1]%2===1);return this.point(t.slice(1,1+r),t.slice(1+r,1+2*r))}if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},i.prototype.encodeCompressed=function(t){return this.encode(t,!0)},i.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},i.prototype.encode=function(t,e){return s.encode(this._encode(e),t)},i.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},i.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=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 r=[this],n=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)n=n.dbl();r.push(n)}return{step:t,points:r}},i.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},i.prototype._getBeta=function(){return null},i.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e}},function(t,e,r){"use strict";function n(t){f.call(this,"short",t),this.a=new u(t.a,16).toRed(this.red),this.b=new u(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,r,n){f.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new u(e,16),this.y=new u(r,16),n&&(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,r,n){f.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new u(0)):(this.x=new u(e,16),this.y=new u(r,16),this.z=new u(n,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 a=r(45),s=r(9),u=r(3),c=r(1),f=a.base,h=s.utils.assert;c(n,f),t.exports=n,n.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new u(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=n[0].cmp(n[1])<0?n[0]:n[1],e=e.toRed(this.red)}if(t.lambda)r=new u(t.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?r=i[0]:(r=i[1],h(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}var o;return o=t.basis?t.basis.map(function(t){return{a:new u(t.a,16),b:new u(t.b,16)}}):this._getEndoBasis(r),{beta:e,lambda:r,basis:o}}},n.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:u.mont(t),r=new u(2).toRed(e).redInvm(),n=r.redNeg(),i=new u(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},n.prototype._getEndoBasis=function(t){for(var e,r,n,i,o,a,s,c,f,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=t,d=this.n.clone(),p=new u(1),m=new u(0),b=new u(0),v=new u(1),y=0;0!==l.cmpn(0);){var g=d.div(l);c=d.sub(g.mul(l)),f=b.sub(g.mul(p));var _=v.sub(g.mul(m));if(!n&&c.cmp(h)<0)e=s.neg(),r=p,n=c.neg(),i=f;else if(n&&2===++y)break;s=c,d=l,l=c,b=p,p=f,v=m,m=_}o=c.neg(),a=f;var w=n.sqr().add(i.sqr());return o.sqr().add(a.sqr()).cmp(w)>=0&&(o=e,a=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:n,b:i},{a:o,b:a}]},n.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:t.sub(a).sub(s),k2:u.add(c).neg()}},n.prototype.pointFromX=function(t,e){t=new u(t,16),t.red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},n.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},n.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(e[o]),s=t[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return c},c(i,f.BasePoint),n.prototype.point=function(t,e,r){return new i(this,t,e,r)},n.prototype.pointFromJSON=function(t,e){return i.fromJSON(this,t,e)},i.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},i.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},i.fromJSON=function(t,e,r){function n(e){return t.point(e[0],e[1],r)}"string"===typeof e&&(e=JSON.parse(e));var i=t.point(e[0],e[1],r);if(!e[2])return i;var o=e[2];return i.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[i].concat(o.doubles.points.map(n))},naf:o.naf&&{wnd:o.naf.wnd,points:[i].concat(o.naf.points.map(n))}},i},i.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},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 r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},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,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},i.prototype.getX=function(){return this.x.fromRed()},i.prototype.getY=function(){return this.y.fromRed()},i.prototype.mul=function(t){return t=new u(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,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},i.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,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 r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}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)},c(o,f.BasePoint),n.prototype.jpoint=function(t,e,r){return new o(this,t,e,r)},o.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},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(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),h=n.redMul(c),l=u.redSqr().redIAdd(f).redISub(h).redISub(h),d=u.redMul(h.redISub(l)).redISub(o.redMul(f)),p=this.z.redMul(t.z).redMul(s);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(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),f=r.redMul(u),h=s.redSqr().redIAdd(c).redISub(f).redISub(f),l=s.redMul(f.redISub(h)).redISub(i.redMul(c)),d=this.z.redMul(a);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,r=0;r<t;r++)e=e.dbl();return e}for(var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a),r=0;r<t;r++){var f=o.redSqr(),h=c.redSqr(),l=h.redSqr(),d=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(u)),p=o.redMul(h),m=d.redSqr().redISub(p.redAdd(p)),b=p.redISub(m),v=d.redMul(b);v=v.redIAdd(v).redISub(l);var y=c.redMul(s);r+1<t&&(u=u.redMul(l)),o=m,s=y,c=v}return this.curve.jpoint(o,c.redMul(i),s)},o.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},o.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=c.redIAdd(c),c=c.redIAdd(c),t=u,e=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),h=this.y.redSqr(),l=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(f).redISub(l);d=d.redIAdd(d);var p=f.redAdd(f).redIAdd(f),m=p.redSqr(),b=l.redIAdd(l);b=b.redIAdd(b),b=b.redIAdd(b),t=m.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(b),r=this.y.redMul(this.z),r=r.redIAdd(r)}return this.curve.jpoint(t,e,r)},o.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);t=u;var c=o.redIAdd(o);c=c.redIAdd(c),c=c.redIAdd(c),e=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),h=this.y.redSqr(),l=this.x.redMul(h),d=this.x.redSub(f).redMul(this.x.redAdd(f));d=d.redAdd(d).redIAdd(d);var p=l.redIAdd(l);p=p.redIAdd(p);var m=p.redAdd(p);t=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(f);var b=h.redSqr();b=b.redIAdd(b),b=b.redIAdd(b),b=b.redIAdd(b),e=d.redMul(p.redISub(t)).redISub(b)}return this.curve.jpoint(t,e,r)},o.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=e.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),u=e.redAdd(e);u=u.redIAdd(u);var c=u.redMul(a),f=s.redSqr().redISub(c.redAdd(c)),h=c.redISub(f),l=a.redSqr();l=l.redIAdd(l),l=l.redIAdd(l),l=l.redIAdd(l);var d=s.redMul(h).redISub(l),p=r.redAdd(r).redMul(n);return this.curve.jpoint(f,d,p)},o.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(n);a=a.redIAdd(a),a=a.redAdd(a).redIAdd(a),a=a.redISub(o);var s=a.redSqr(),u=n.redIAdd(n);u=u.redIAdd(u),u=u.redIAdd(u),u=u.redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),f=e.redMul(c);f=f.redIAdd(f),f=f.redIAdd(f);var h=this.x.redMul(s).redISub(f);h=h.redIAdd(h),h=h.redIAdd(h);var l=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));l=l.redIAdd(l),l=l.redIAdd(l),l=l.redIAdd(l);var d=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(h,l,d)},o.prototype.mul=function(t,e){return t=new u(t,e),this.curve._wnafMul(this,t)},o.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},o.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}return!1},o.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},o.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,r){"use strict";function n(t){u.call(this,"mont",t),this.a=new a(t.a,16).toRed(this.red),this.b=new a(t.b,16).toRed(this.red),this.i4=new a(4).toRed(this.red).redInvm(),this.two=new a(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function i(t,e,r){u.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new a(e,16),this.z=new a(r,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=r(45),a=r(3),s=r(1),u=o.base,c=r(9),f=c.utils;s(n,u),t.exports=n,n.prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),n=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},s(i,u.BasePoint),n.prototype.decodePoint=function(t,e){return this.point(f.toArray(t,e),1)},n.prototype.point=function(t,e){return new i(this,t,e)},n.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()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},i.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},i.prototype.dbl=function(){var t=this.x.redAdd(this.z),e=t.redSqr(),r=this.x.redSub(this.z),n=r.redSqr(),i=e.redSub(n),o=e.redMul(n),a=i.redMul(n.redAdd(this.curve.a24.redMul(i)));return this.curve.point(o,a)},i.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.diffAdd=function(t,e){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z),a=o.redMul(r),s=i.redMul(n),u=e.z.redMul(a.redAdd(s).redSqr()),c=e.x.redMul(a.redISub(s).redSqr());return this.curve.point(u,c)},i.prototype.mul=function(t){for(var e=t.clone(),r=this,n=this.curve.point(null,null),i=this,o=[];0!==e.cmpn(0);e.iushrn(1))o.push(e.andln(1));for(var a=o.length-1;a>=0;a--)0===o[a]?(r=r.diffAdd(n,i),n=n.dbl()):(n=r.diffAdd(n,i),r=r.dbl());return n},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()}},function(t,e,r){"use strict";function n(t){this.twisted=1!==(0|t.a),this.mOneA=this.twisted&&-1===(0|t.a),this.extended=this.mOneA,c.call(this,"edwards",t),this.a=new s(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new s(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new s(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|t.c)}function i(t,e,r,n,i){c.BasePoint.call(this,t,"projective"),null===e&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new s(e,16),this.y=new s(r,16),this.z=n?new s(n,16):this.curve.one,this.t=i&&new s(i,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}var o=r(45),a=r(9),s=r(3),u=r(1),c=o.base,f=a.utils.assert;u(n,c),t.exports=n,n.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},n.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},n.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},n.prototype.pointFromX=function(t,e){t=new s(t,16),t.red||(t=t.toRed(this.red));var r=t.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=n.redMul(i.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var u=a.fromRed().isOdd();return(e&&!u||!e&&u)&&(a=a.redNeg()),this.point(t,a)},n.prototype.pointFromY=function(t,e){t=new s(t,16),t.red||(t=t.toRed(this.red));var r=t.redSqr(),n=r.redSub(this.one),i=r.redMul(this.d).redAdd(this.one),o=n.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.isOdd()!==e&&(a=a.redNeg()),this.point(a,t)},n.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),n=e.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(i)},u(i,c.BasePoint),n.prototype.pointFromJSON=function(t){return i.fromJSON(this,t)},n.prototype.point=function(t,e,r,n){return new i(this,t,e,r,n)},i.fromJSON=function(t,e){return new i(t,e[0],e[1],e[2])},i.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},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(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=n.redAdd(e),a=o.redSub(r),s=n.redSub(e),u=i.redMul(a),c=o.redMul(s),f=i.redMul(s),h=a.redMul(o);return this.curve.point(u,c,h,f)},i.prototype._projDbl=function(){var t,e,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=this.curve._mulA(i),s=a.redAdd(o);if(this.zOne)t=n.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),e=s.redMul(a.redSub(o)),r=s.redSqr().redSub(s).redSub(s);else{var u=this.z.redSqr(),c=s.redSub(u).redISub(u);t=n.redSub(i).redISub(o).redMul(c),e=s.redMul(a.redSub(o)),r=s.redMul(c)}}else{var a=i.redAdd(o),u=this.curve._mulC(this.c.redMul(this.z)).redSqr(),c=a.redSub(u).redSub(u);t=this.curve._mulC(n.redISub(a)).redMul(c),e=this.curve._mulC(a).redMul(i.redISub(o)),r=a.redMul(c)}return this.curve.point(t,e,r)},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)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=r.redSub(e),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(e),c=o.redMul(a),f=s.redMul(u),h=o.redMul(u),l=a.redMul(s);return this.curve.point(c,f,l,h)},i.prototype._projAdd=function(t){var e,r,n=this.z.redMul(t.z),i=n.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),f=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),h=n.redMul(u).redMul(f);return this.curve.twisted?(e=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(c)):(e=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(c)),this.curve.point(h,e,r)},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,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},i.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],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 r=t.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}return!1},i.prototype.toP=i.prototype.normalize,i.prototype.mixedAdd=i.prototype.add},function(t,e,r){"use strict";function n(t){"short"===t.type?this.curve=new s.curve.short(t):"edwards"===t.type?this.curve=new s.curve.edwards(t):this.curve=new s.curve.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,u(this.g.validate(),"Invalid curve"),u(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 r=new n(e);return Object.defineProperty(o,t,{configurable:!0,enumerable:!0,value:r}),r}})}var o=e,a=r(61),s=r(9),u=s.utils.assert;o.PresetCurve=n,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:a.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:a.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:a.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:a.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:a.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:a.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:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var c;try{c=r(256)}catch(t){c=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:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",c]})},function(t,e,r){"use strict";e.sha1=r(251),e.sha224=r(252),e.sha256=r(101),e.sha384=r(253),e.sha512=r(102)},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}var i=r(16),o=r(34),a=r(100),s=i.rotl32,u=i.sum32,c=i.sum32_5,f=a.ft_1,h=o.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];i.inherits(n,h),t.exports=n,n.blockSize=512,n.outSize=160,n.hmacStrength=80,n.padLength=64,n.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=s(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],a=this.h[2],h=this.h[3],d=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=c(s(i,5),f(p,o,a,h),d,r[n],l[p]);d=h,h=a,a=s(o,30),o=i,i=m}this.h[0]=u(this.h[0],i),this.h[1]=u(this.h[1],o),this.h[2]=u(this.h[2],a),this.h[3]=u(this.h[3],h),this.h[4]=u(this.h[4],d)},n.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}var i=r(16),o=r(101);i.inherits(n,o),t.exports=n,n.blockSize=512,n.outSize=224,n.hmacStrength=192,n.padLength=64,n.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}var i=r(16),o=r(102);i.inherits(n,o),t.exports=n,n.blockSize=1024,n.outSize=384,n.hmacStrength=192,n.padLength=128,n.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function i(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function o(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function a(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}var s=r(16),u=r(34),c=s.rotl32,f=s.sum32,h=s.sum32_3,l=s.sum32_4,d=u.BlockHash;s.inherits(n,d),e.ripemd160=n,n.blockSize=512,n.outSize=160,n.hmacStrength=192,n.padLength=64,n.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],s=this.h[2],u=this.h[3],d=this.h[4],y=r,g=n,_=s,w=u,M=d,k=0;k<80;k++){var E=f(c(l(r,i(k,n,s,u),t[p[k]+e],o(k)),b[k]),d);r=d,d=u,u=c(s,10),s=n,n=E,E=f(c(l(y,i(79-k,g,_,w),t[m[k]+e],a(k)),v[k]),M),y=M,M=w,w=c(_,10),_=g,g=E}E=h(this.h[1],s,w),this.h[1]=h(this.h[2],u,M),this.h[2]=h(this.h[3],d,y),this.h[3]=h(this.h[4],r,g),this.h[4]=h(this.h[0],n,_),this.h[0]=E},n.prototype._digest=function(t){return"hex"===t?s.toHex32(this.h,"little"):s.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],b=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],v=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(t,e,r){"use strict";function n(t,e,r){if(!(this instanceof n))return new n(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(e,r))}var i=r(16),o=r(13);t.exports=n,n.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),o(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},n.prototype.update=function(t,e){return this.inner.update(t,e),this},n.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(t,e,r){"use strict";function n(t){if(!(this instanceof n))return new n(t);"string"===typeof t&&(u(a.curves.hasOwnProperty(t),"Unknown curve "+t),t=a.curves[t]),t instanceof a.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=r(3),o=r(258),a=r(9),s=a.utils,u=s.assert,c=r(259),f=r(260);t.exports=n,n.prototype.keyPair=function(t){return new c(this,t)},n.prototype.keyFromPrivate=function(t,e){return c.fromPrivate(this,t,e)},n.prototype.keyFromPublic=function(t,e){return c.fromPublic(this,t,e)},n.prototype.genKeyPair=function(t){t||(t={});for(var e=new o({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||a.rand(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new i(2));;){var s=new i(e.generate(r));if(!(s.cmp(n)>0))return s.iaddn(1),this.keyFromPrivate(s)}},n.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},n.prototype.sign=function(t,e,r,n){"object"===typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new i(t,16));for(var a=this.n.byteLength(),s=e.getPrivate().toArray("be",a),u=t.toArray("be",a),c=new o({hash:this.hash,entropy:s,nonce:u,pers:n.pers,persEnc:n.persEnc||"utf8"}),h=this.n.sub(new i(1)),l=0;!0;l++){var d=n.k?n.k(l):new i(c.generate(this.n.byteLength()));if(d=this._truncateToN(d,!0),!(d.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(v=v.umod(this.n),0!==v.cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(b)?2:0);return n.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),y^=1),new f({r:b,s:v,recoveryParam:y})}}}}}},n.prototype.verify=function(t,e,r,n){t=this._truncateToN(new i(t,16)),r=this.keyFromPublic(r,n),e=new f(e,"hex");var o=e.r,a=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s=a.invm(this.n),u=s.mul(t).umod(this.n),c=s.mul(o).umod(this.n);if(!this.curve._maxwellTrick){var h=this.g.mulAdd(u,r.getPublic(),c);return!h.isInfinity()&&0===h.getX().umod(this.n).cmp(o)}var h=this.g.jmulAdd(u,r.getPublic(),c);return!h.isInfinity()&&h.eqXToP(o)},n.prototype.recoverPubKey=function(t,e,r,n){u((3&r)===r,"The recovery param is more than two bits"),e=new f(e,n);var o=this.n,a=new i(t),s=e.r,c=e.s,h=1&r,l=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),h):this.curve.pointFromX(s,h);var d=e.r.invm(o),p=o.sub(a).mul(d).umod(o),m=c.mul(d).umod(o);return this.g.mulAdd(p,s,m)},n.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new f(e,n),null!==e.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(r))return i}throw new Error("Unable to find valid recovery factor")}},function(t,e,r){"use strict";function n(t){if(!(this instanceof n))return new n(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"),r=o.toArray(t.nonce,t.nonceEnc||"hex"),i=o.toArray(t.pers,t.persEnc||"hex");a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,i)}var i=r(61),o=r(99),a=r(13);t.exports=n,n.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},n.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},n.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},n.prototype.reseed=function(t,e,r,n){"string"!==typeof e&&(n=r,r=e,e=null),t=o.toArray(t,e),r=o.toArray(r,n),a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},n.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof e&&(n=r,r=e,e=null),r&&(r=o.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var a=i.slice(0,t);return this._update(r),this._reseed++,o.encode(a,e)}},function(t,e,r){"use strict";function n(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=r(3),o=r(9),a=o.utils,s=a.assert;t.exports=n,n.fromPublic=function(t,e,r){return e instanceof n?e:new n(t,{pub:e,pubEnc:r})},n.fromPrivate=function(t,e,r){return e instanceof n?e:new n(t,{priv:e,privEnc:r})},n.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"}},n.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},n.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},n.prototype._importPrivate=function(t,e){this.priv=new i(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},n.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?s(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||s(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)},n.prototype.derive=function(t){return t.mul(this.priv).getX()},n.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},n.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},n.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(t,e,r){"use strict";function n(t,e){if(t instanceof n)return t;this._importDER(t,e)||(h(t.r&&t.s,"Signature without r or s"),this.r=new u(t.r,16),this.s=new u(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function i(){this.place=0}function o(t,e){var r=t[e.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=e.place;o<n;o++,a++)i<<=8,i|=t[a];return e.place=a,i}function a(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function s(t,e){if(e<128)return void t.push(e);var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}var u=r(3),c=r(9),f=c.utils,h=f.assert;t.exports=n,n.prototype._importDER=function(t,e){t=f.toArray(t,e);var r=new i;if(48!==t[r.place++])return!1;if(o(t,r)+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var n=o(t,r),a=t.slice(r.place,n+r.place);if(r.place+=n,2!==t[r.place++])return!1;var s=o(t,r);if(t.length!==s+r.place)return!1;var c=t.slice(r.place,s+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new u(a),this.s=new u(c),this.recoveryParam=null,!0},n.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=a(e),r=a(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];s(n,e.length),n=n.concat(e),n.push(2),s(n,r.length);var i=n.concat(r),o=[48];return s(o,i.length),o=o.concat(i),f.encode(o,t)}},function(t,e,r){"use strict";function n(t){if(s("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof n))return new n(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=r(61),o=r(9),a=o.utils,s=a.assert,u=a.parseBytes,c=r(262),f=r(263);t.exports=n,n.prototype.sign=function(t,e){t=u(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),t).mul(r.priv()),s=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},n.prototype.verify=function(t,e,r){t=u(t),e=this.makeSignature(e);var n=this.keyFromPublic(r),i=this.hashInt(e.Rencoded(),n.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(n.pub().mul(i)).eq(o)},n.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return a.intFromLE(t.digest()).umod(this.curve.n)},n.prototype.keyFromPublic=function(t){return c.fromPublic(this,t)},n.prototype.keyFromSecret=function(t){return c.fromSecret(this,t)},n.prototype.makeSignature=function(t){return t instanceof f?t:new f(this,t)},n.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},n.prototype.decodePoint=function(t){t=a.parseBytes(t);var e=t.length-1,r=t.slice(0,e).concat(-129&t[e]),n=0!==(128&t[e]),i=a.intFromLE(r);return this.curve.pointFromY(i,n)},n.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},n.prototype.decodeInt=function(t){return a.intFromLE(t)},n.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,r){"use strict";function n(t,e){this.eddsa=t,this._secret=s(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=s(e.pub)}var i=r(9),o=i.utils,a=o.assert,s=o.parseBytes,u=o.cachedProperty;n.fromPublic=function(t,e){return e instanceof n?e:new n(t,{pub:e})},n.fromSecret=function(t,e){return e instanceof n?e:new n(t,{secret:e})},n.prototype.secret=function(){return this._secret},u(n,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),u(n,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),u(n,"privBytes",function(){var t=this.eddsa,e=this.hash(),r=t.encodingLength-1,n=e.slice(0,t.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),u(n,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),u(n,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),u(n,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),n.prototype.sign=function(t){return a(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},n.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},n.prototype.getSecret=function(t){return a(this._secret,"KeyPair is public only"),o.encode(this.secret(),t)},n.prototype.getPublic=function(t){return o.encode(this.pubBytes(),t)},t.exports=n},function(t,e,r){"use strict";function n(t,e){this.eddsa=t,"object"!==typeof e&&(e=c(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),s(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof i&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}var i=r(3),o=r(9),a=o.utils,s=a.assert,u=a.cachedProperty,c=a.parseBytes;u(n,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),u(n,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),u(n,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),u(n,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),n.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},n.prototype.toHex=function(){return a.encode(this.toBytes(),"hex").toUpperCase()},t.exports=n},function(t,e,r){"use strict";var n=r(35);e.certificate=r(275);var i=n.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())});e.RSAPrivateKey=i;var o=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=o;var a=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});e.PublicKey=a;var s=n.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())}),u=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});e.PrivateKey=u;var c=n.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())});e.EncryptedPrivateKey=c;var f=n.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())});e.DSAPrivateKey=f,e.DSAparam=n.define("DSAparam",function(){this.int()});var h=n.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())});e.ECPrivateKey=h;var l=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});e.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},function(t,e,r){function n(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}var i=r(35),o=r(1);e.define=function(t,e){return new n(t,e)},n.prototype._createNamed=function(t){var e;try{e=r(266).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return o(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},n.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(i.decoders[t])),this.decoders[t]},n.prototype.decode=function(t,e,r){return this._getDecoder(e).decode(t,r)},n.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(i.encoders[t])),this.encoders[t]},n.prototype.encode=function(t,e,r){return this._getEncoder(e).encode(t,r)}},function(module,exports,__webpack_require__){function Context(){}var indexOf=__webpack_require__(267),Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)e.push(r);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,r){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(t){return function(t,e,r){t[e]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var r=e.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(t),function(e){r[e]=t[e]}),forEach(globals,function(e){t[e]&&(r[e]=t[e])});var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),function(e){(e in t||-1===indexOf(o,e))&&(t[e]=r[e])}),forEach(globals,function(e){e in t||defineProp(t,e,r[e])}),document.body.removeChild(e),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),r=this.runInContext(e);return forEach(Object_keys(e),function(r){t[r]=e[r]}),r},forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(e){var r=Script(e);return r[t].apply(r,[].slice.call(arguments,1))}}),exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(t){var e=new Context;return"object"===typeof t&&forEach(Object_keys(t),function(r){e[r]=t[r]}),e}},function(t,e){var r=[].indexOf;t.exports=function(t,e){if(r)return t.indexOf(e);for(var n=0;n<t.length;++n)if(t[n]===e)return n;return-1}},function(t,e,r){function n(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function i(t,e){this.path=t,this.rethrow(e)}var o=r(1);e.Reporter=n,n.prototype.isError=function(t){return t instanceof i},n.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},n.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},n.prototype.enterKey=function(t){return this._reporterState.path.push(t)},n.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},n.prototype.leaveKey=function(t,e,r){var n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=r)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},n.prototype.leaveObject=function(t){var e=this._reporterState,r=e.obj;return e.obj=t,r},n.prototype.error=function(t){var e,r=this._reporterState,n=t instanceof i;if(e=n?t:new i(r.path.map(function(t){return"["+JSON.stringify(t)+"]"}).join(""),t.message||t,t.stack),!r.options.partial)throw e;return n||r.errors.push(e),e},n.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},o(i,Error),i.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,i),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,r){function n(t,e){var r={};this._baseState=r,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}var i=r(36).Reporter,o=r(36).EncoderBuffer,a=r(36).DecoderBuffer,s=r(13),u=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(u),f=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];t.exports=n;var h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];n.prototype.clone=function(){var t=this._baseState,e={};h.forEach(function(r){e[r]=t[r]});var r=new this.constructor(e.parent);return r._baseState=e,r},n.prototype._wrap=function(){var t=this._baseState;c.forEach(function(e){this[e]=function(){var r=new this.constructor(this);return t.children.push(r),r[e].apply(r,arguments)}},this)},n.prototype._init=function(t){var e=this._baseState;s(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),s.equal(e.children.length,1,"Root node can have only one child")},n.prototype._useArgs=function(t){var e=this._baseState,r=t.filter(function(t){return t instanceof this.constructor},this);t=t.filter(function(t){return!(t instanceof this.constructor)},this),0!==r.length&&(s(null===e.children),e.children=r,r.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(s(null===e.args),e.args=t,e.reverseArgs=t.map(function(t){if("object"!==typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach(function(r){r==(0|r)&&(r|=0);var n=t[r];e[n]=r}),e}))},f.forEach(function(t){n.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}}),u.forEach(function(t){n.prototype[t]=function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===e.tag),e.tag=t,this._useArgs(r),this}}),n.prototype.use=function(t){s(t);var e=this._baseState;return s(null===e.use),e.use=t,this},n.prototype.optional=function(){return this._baseState.optional=!0,this},n.prototype.def=function(t){var e=this._baseState;return s(null===e.default),e.default=t,e.optional=!0,this},n.prototype.explicit=function(t){var e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.explicit=t,this},n.prototype.implicit=function(t){var e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.implicit=t,this},n.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},n.prototype.key=function(t){var e=this._baseState;return s(null===e.key),e.key=t,this},n.prototype.any=function(){return this._baseState.any=!0,this},n.prototype.choice=function(t){var e=this._baseState;return s(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},n.prototype.contains=function(t){var e=this._baseState;return s(null===e.use),e.contains=t,this},n.prototype._decode=function(t,e){var r=this._baseState;if(null===r.parent)return t.wrapResult(r.children[0]._decode(t,e));var n=r.default,i=!0,o=null;if(null!==r.key&&(o=t.enterKey(r.key)),r.optional){var s=null;if(null!==r.explicit?s=r.explicit:null!==r.implicit?s=r.implicit:null!==r.tag&&(s=r.tag),null!==s||r.any){if(i=this._peekTag(t,s,r.any),t.isError(i))return i}else{var u=t.save();try{null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),i=!0}catch(t){i=!1}t.restore(u)}}var c;if(r.obj&&i&&(c=t.enterObject()),i){if(null!==r.explicit){var f=this._decodeTag(t,r.explicit);if(t.isError(f))return f;t=f}var h=t.offset;if(null===r.use&&null===r.choice){if(r.any)var u=t.save();var l=this._decodeTag(t,null!==r.implicit?r.implicit:r.tag,r.any);if(t.isError(l))return l;r.any?n=t.raw(u):t=l}if(e&&e.track&&null!==r.tag&&e.track(t.path(),h,t.length,"tagged"),e&&e.track&&null!==r.tag&&e.track(t.path(),t.offset,t.length,"content"),n=r.any?n:null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),t.isError(n))return n;if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(r){r._decode(t,e)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var d=new a(n);n=this._getUse(r.contains,t._reporterState.obj)._decode(d,e)}}return r.obj&&i&&(n=t.leaveObject(c)),null===r.key||null===n&&!0!==i?null!==o&&t.exitKey(o):t.leaveKey(o,r.key,n),n},n.prototype._decodeGeneric=function(t,e,r){var n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,n.args[0],r):/str$/.test(t)?this._decodeStr(e,t,r):"objid"===t&&n.args?this._decodeObjid(e,n.args[0],n.args[1],r):"objid"===t?this._decodeObjid(e,null,null,r):"gentime"===t||"utctime"===t?this._decodeTime(e,t,r):"null_"===t?this._decodeNull(e,r):"bool"===t?this._decodeBool(e,r):"objDesc"===t?this._decodeStr(e,t,r):"int"===t||"enum"===t?this._decodeInt(e,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,e._reporterState.obj)._decode(e,r):e.error("unknown tag: "+t)},n.prototype._getUse=function(t,e){var r=this._baseState;return r.useDecoder=this._use(t,e),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},n.prototype._decodeChoice=function(t,e){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some(function(o){var a=t.save(),s=r.choice[o];try{var u=s._decode(t,e);if(t.isError(u))return!1;n={type:o,value:u},i=!0}catch(e){return t.restore(a),!1}return!0},this),i?n:t.error("Choice not matched")},n.prototype._createEncoderBuffer=function(t){return new o(t,this.reporter)},n.prototype._encode=function(t,e,r){var n=this._baseState;if(null===n.default||n.default!==t){var i=this._encodeValue(t,e,r);if(void 0!==i&&!this._skipDefault(i,e,r))return i}},n.prototype._encodeValue=function(t,e,r){var n=this._baseState;if(null===n.parent)return n.children[0]._encode(t,e||new i);var o=null;if(this.reporter=e,n.optional&&void 0===t){if(null===n.default)return;t=n.default}var a=null,s=!1;if(n.any)o=this._createEncoderBuffer(t);else if(n.choice)o=this._encodeChoice(t,e);else if(n.contains)a=this._getUse(n.contains,r)._encode(t,e),s=!0;else if(n.children)a=n.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,e,t);if(null===r._baseState.key)return e.error("Child should have a key");var n=e.enterKey(r._baseState.key);if("object"!==typeof t)return e.error("Child expected, but input is not object");var i=r._encode(t[r._baseState.key],e,t);return e.leaveKey(n),i},this).filter(function(t){return t}),a=this._createEncoderBuffer(a);else if("seqof"===n.tag||"setof"===n.tag){if(!n.args||1!==n.args.length)return e.error("Too many args for : "+n.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,a=this._createEncoderBuffer(t.map(function(r){var n=this._baseState;return this._getUse(n.args[0],t)._encode(r,e)},u))}else null!==n.use?o=this._getUse(n.use,r)._encode(t,e):(a=this._encodePrimitive(n.tag,t),s=!0);var o;if(!n.any&&null===n.choice){var c=null!==n.implicit?n.implicit:n.tag,f=null===n.implicit?"universal":"context";null===c?null===n.use&&e.error("Tag could be omitted only for .use()"):null===n.use&&(o=this._encodeComposite(c,s,f,a))}return null!==n.explicit&&(o=this._encodeComposite(n.explicit,!1,"context",o)),o},n.prototype._encodeChoice=function(t,e){var r=this._baseState,n=r.choice[t.type];return n||s(!1,t.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(t.value,e)},n.prototype._encodePrimitive=function(t,e){var r=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&r.args)return this._encodeObjid(e,r.reverseArgs[0],r.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,r.args&&r.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},n.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},n.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},function(t,e,r){var n=r(104);e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=n._reverse(e.tag)},function(t,e,r){var n=e;n.der=r(105),n.pem=r(272)},function(t,e,r){function n(t){a.call(this,t),this.enc="pem"}var i=r(1),o=r(0).Buffer,a=r(105);i(n,a),t.exports=n,n.prototype.decode=function(t,e){for(var r=t.toString().split(/[\r\n]+/g),n=e.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,u=-1,c=0;c<r.length;c++){var f=r[c].match(i);if(null!==f&&f[2]===n){if(-1!==s){if("END"!==f[1])break;u=c;break}if("BEGIN"!==f[1])break;s=c}}if(-1===s||-1===u)throw new Error("PEM section not found for: "+n);var h=r.slice(s+1,u).join("");h.replace(/[^a-z0-9\+\/=]+/gi,"");var l=new o(h,"base64");return a.prototype.decode.call(this,l,e)}},function(t,e,r){var n=e;n.der=r(106),n.pem=r(274)},function(t,e,r){function n(t){o.call(this,t),this.enc="pem"}var i=r(1),o=r(106);i(n,o),t.exports=n,n.prototype.encode=function(t,e){for(var r=o.prototype.encode.call(this,t),n=r.toString("base64"),i=["-----BEGIN "+e.label+"-----"],a=0;a<n.length;a+=64)i.push(n.slice(a,a+64));return i.push("-----END "+e.label+"-----"),i.join("\n")}},function(t,e,r){"use strict";var n=r(35),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),u=n.define("RelativeDistinguishedName",function(){this.setof(o)}),c=n.define("RDNSequence",function(){this.seqof(u)}),f=n.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),h=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),l=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(f),this.key("validity").use(h),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())}),p=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())});t.exports=p},function(t,e){t.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"}},function(t,e,r){(function(e){var n=/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,a=r(43),s=r(57);t.exports=function(t,r){var u,c=t.toString(),f=c.match(n);if(f){var h="aes"+f[1],l=new e(f[2],"hex"),d=new e(f[3].replace(/\r?\n/g,""),"base64"),p=a(r,l.slice(0,8),parseInt(f[1],10)).key,m=[],b=s.createDecipheriv(h,p,l);m.push(b.update(d)),m.push(b.final()),u=e.concat(m)}else{var v=c.match(o);u=new e(v[2].replace(/\r?\n/g,""),"base64")}return{tag:c.match(i)[1],data:u}}}).call(e,r(0).Buffer)},function(t,e,r){(function(e){function n(t,r,n,a,u){var f=c(n);if("ec"===f.type){if("ecdsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong public key type");return i(t,r,f)}if("dsa"===f.type){if("dsa"!==a)throw new Error("wrong public key type");return o(t,r,f)}if("rsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong public key type");r=e.concat([u,r]);for(var h=f.modulus.byteLength(),l=[1],d=0;r.length+l.length+2<h;)l.push(255),d++;l.push(0);for(var p=-1;++p<r.length;)l.push(r[p]);l=new e(l);var m=s.mont(f.modulus);t=new s(t).toRed(m),t=t.redPow(new s(f.publicExponent)),t=new e(t.fromRed().toArray());var b=d<8?1:0;for(h=Math.min(t.length,l.length),t.length!==l.length&&(b=1),p=-1;++p<h;)b|=t[p]^l[p];return 0===b}function i(t,e,r){var n=f[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new u(n),o=r.data.subjectPrivateKey.data;return i.verify(e,t,o)}function o(t,e,r){var n=r.data.p,i=r.data.q,o=r.data.g,u=r.data.pub_key,f=c.signature.decode(t,"der"),h=f.s,l=f.r;a(h,i),a(l,i);var d=s.mont(n),p=h.invm(i);return 0===o.toRed(d).redPow(new s(e).mul(p).mod(i)).fromRed().mul(u.toRed(d).redPow(l.mul(p).mod(i)).fromRed()).mod(n).mod(i).cmp(l)}function a(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}var s=r(3),u=r(9).ec,c=r(46),f=r(107);t.exports=n}).call(e,r(0).Buffer)},function(t,e,r){(function(e){function n(t){this.curveType=s[t],this.curveType||(this.curveType={name:t}),this.curve=new o.ec(this.curveType.name),this.keys=void 0}function i(t,r,n){Array.isArray(t)||(t=t.toArray());var i=new e(t);if(n&&i.length<n){var o=new e(n-i.length);o.fill(0),i=e.concat([o,i])}return r?i.toString(r):i}var o=r(9),a=r(3);t.exports=function(t){return new n(t)};var s={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};s.p224=s.secp224r1,s.p256=s.secp256r1=s.prime256v1,s.p192=s.secp192r1=s.prime192v1,s.p384=s.secp384r1,s.p521=s.secp521r1,n.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},n.prototype.computeSecret=function(t,r,n){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),i(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},n.prototype.getPublicKey=function(t,e){var r=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(r[r.length-1]%2?r[0]=7:r[0]=6),i(r,t)},n.prototype.getPrivateKey=function(t){return i(this.keys.getPrivate(),t)},n.prototype.setPublicKey=function(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this.keys._importPublic(t),this},n.prototype.setPrivateKey=function(t,r){r=r||"utf8",e.isBuffer(t)||(t=new e(t,r));var n=new a(t);return n=n.toString(16),this.keys._importPrivate(n),this}}).call(e,r(0).Buffer)},function(t,e,r){e.publicEncrypt=r(281),e.privateDecrypt=r(282),e.privateEncrypt=function(t,r){return e.publicEncrypt(t,r,!0)},e.publicDecrypt=function(t,r){return e.privateDecrypt(t,r,!0)}},function(t,e,r){(function(e){function n(t,r){var n=t.modulus.byteLength(),i=r.length,o=u("sha1").update(new e("")).digest(),a=o.length,l=2*a;if(i>n-l-2)throw new Error("message too long");var d=new e(n-i-l-2);d.fill(0);var p=n-a-1,m=s(a),b=f(e.concat([o,d,new e([1]),r],p),c(m,p)),v=f(m,c(b,a));return new h(e.concat([new e([0]),v,b],n))}function i(t,r,n){var i=r.length,a=t.modulus.byteLength();if(i>a-11)throw new Error("message too long");var s;return n?(s=new e(a-i-3),s.fill(255)):s=o(a-i-3),new h(e.concat([new e([0,n?1:2]),s,new e([0]),r],a))}function o(t,r){for(var n,i=new e(t),o=0,a=s(2*t),u=0;o<t;)u===a.length&&(a=s(2*t),u=0),(n=a[u++])&&(i[o++]=n);return i}var a=r(46),s=r(27),u=r(31),c=r(108),f=r(109),h=r(3),l=r(110),d=r(60);t.exports=function(t,e,r){var o;o=t.padding?t.padding:r?1:4;var s,u=a(t);if(4===o)s=n(u,e);else if(1===o)s=i(u,e,r);else{if(3!==o)throw new Error("unknown padding");if(s=new h(e),s.cmp(u.modulus)>=0)throw new Error("data too long for modulus")}return r?d(s,u):l(s,u)}}).call(e,r(0).Buffer)},function(t,e,r){(function(e){function n(t,r){var n=(t.modulus,t.modulus.byteLength()),i=(r.length,h("sha1").update(new e("")).digest()),a=i.length;if(0!==r[0])throw new Error("decryption error");var c=r.slice(1,a+1),f=r.slice(a+1),l=u(c,s(f,a)),d=u(f,s(l,n-a-1));if(o(i,d.slice(0,a)))throw new Error("decryption error");for(var p=a;0===d[p];)p++;if(1!==d[p++])throw new Error("decryption error");return d.slice(p)}function i(t,e,r){for(var n=e.slice(0,2),i=2,o=0;0!==e[i++];)if(i>=e.length){o++;break}var a=e.slice(2,i-1);e.slice(i-1,i);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++,a.length<8&&o++,o)throw new Error("decryption error");return e.slice(i)}function o(t,r){t=new e(t),r=new e(r);var n=0,i=t.length;t.length!==r.length&&(n++,i=Math.min(t.length,r.length));for(var o=-1;++o<i;)n+=t[o]^r[o];return n}var a=r(46),s=r(108),u=r(109),c=r(3),f=r(60),h=r(31),l=r(110);t.exports=function(t,r,o){var s;s=t.padding?t.padding:o?1:4;var u=a(t),h=u.modulus.byteLength();if(r.length>h||new c(r).cmp(u.modulus)>=0)throw new Error("decryption error");var d;d=o?l(new c(r),u):f(r,u);var p=new e(h-d.length);if(p.fill(0),d=e.concat([p,d],h),4===s)return n(u,d);if(1===s)return i(u,d,o);if(3===s)return d;throw new Error("unknown padding")}}).call(e,r(0).Buffer)},function(t,e,r){"use strict";(function(t,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}function o(t,e){if("number"!==typeof t||t!==t)throw new TypeError("offset must be a number");if(t>m||t<0)throw new TypeError("offset must be a uint32");if(t>d||t>e)throw new RangeError("offset out of range")}function a(t,e,r){if("number"!==typeof t||t!==t)throw new TypeError("size must be a number");if(t>m||t<0)throw new TypeError("size must be a uint32");if(t+e>r||t>d)throw new RangeError("buffer too small")}function s(e,r,n,i){if(!l.isBuffer(e)&&!(e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof r)i=r,r=0,n=e.length;else if("function"===typeof n)i=n,n=e.length-r;else if("function"!==typeof i)throw new TypeError('"cb" argument must be a function');return o(r,e.length),a(n,r,e.length),u(e,r,n,i)}function u(t,e,r,i){if(n.browser){var o=t.buffer,a=new Uint8Array(o,e,r);return p.getRandomValues(a),i?void n.nextTick(function(){i(null,t)}):t}return i?void h(r,function(r,n){if(r)return i(r);n.copy(t,e),i(null,t)}):(h(r).copy(t,e),t)}function c(e,r,n){if("undefined"===typeof r&&(r=0),!l.isBuffer(e)&&!(e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return o(r,e.length),void 0===n&&(n=e.length-r),a(n,r,e.length),u(e,r,n)}var f=r(2),h=r(27),l=f.Buffer,d=f.kMaxLength,p=t.crypto||t.msCrypto,m=Math.pow(2,32)-1;p&&p.getRandomValues||!n.browser?(e.randomFill=s,e.randomFillSync=c):(e.randomFill=i,e.randomFillSync=i)}).call(e,r(4),r(8))},function(t,e){t.exports={_from:"elliptic@^6.4.0",_id:"[email protected]",_inBundle:!1,_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_location:"/elliptic",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"elliptic@^6.4.0",name:"elliptic",escapedName:"elliptic",rawSpec:"^6.4.0",saveSpec:null,fetchSpec:"^6.4.0"},_requiredBy:["/eth-lib","/web3-eth-accounts/eth-lib"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",_spec:"elliptic@^6.4.0",_where:"/Users/rstorm/repos/generate_keys_dapp/node_modules/eth-lib",author:{name:"Fedor Indutny",email:"[email protected]"},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://[email protected]/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"}},function(t,e,r){"use strict";function n(t,e){for(var r=[],n=1<<e+1,i=t.clone();i.cmpn(1)>=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?e+1:1,u=1;u<s;u++)r.push(0);i.iushrn(s)}return r}function i(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n=0,i=0;t.cmpn(-n)>0||e.cmpn(-i)>0;){var o=t.andln(3)+n&3,a=e.andln(3)+i&3;3===o&&(o=-1),3===a&&(a=-1);var s;if(0===(1&o))s=0;else{var u=t.andln(7)+n&7;s=3!==u&&5!==u||2!==a?o:-o}r[0].push(s);var c;if(0===(1&a))c=0;else{var u=e.andln(7)+i&7;c=3!==u&&5!==u||2!==o?a:-a}r[1].push(c),2*n===s+1&&(n=1-n),2*i===c+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r}function o(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}}function a(t){return"string"===typeof t?u.toArray(t,"hex"):t}function s(t){return new c(t,"hex","le")}var u=e,c=r(12),f=r(25),h=r(112);u.assert=f,u.toArray=h.toArray,u.zero2=h.zero2,u.toHex=h.toHex,u.encode=h.encode,u.getNAF=n,u.getJSF=i,u.cachedProperty=o,u.parseBytes=a,u.intFromLE=s},function(t,e,r){function n(t){this.rand=t}var i;if(t.exports=function(t){return i||(i=new n(null)),i.generate(t)},t.exports.Rand=n,n.prototype.generate=function(t){return this._rand(t)},n.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),r=0;r<e.length;r++)e[r]=this.rand.getByte();return e},"object"===typeof self)self.crypto&&self.crypto.getRandomValues?n.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?n.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"===typeof window&&(n.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=r(287);if("function"!==typeof o.randomBytes)throw new Error("Not supported");n.prototype._rand=function(t){return o.randomBytes(t)}}catch(t){}},function(t,e){},function(t,e,r){"use strict";function n(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 r=this.n&&this.p.div(this.n);!r||r.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=r(12),a=r(10),s=a.utils,u=s.getNAF,c=s.getJSF,f=s.assert;t.exports=n,n.prototype.point=function(){throw new Error("Not implemented")},n.prototype.validate=function(){throw new Error("Not implemented")},n.prototype._fixedNafMul=function(t,e){f(t.precomputed);var r=t._getDoubles(),n=u(e,1),i=(1<<r.step+1)-(r.step%2===0?2:1);i/=3;for(var o=[],a=0;a<n.length;a+=r.step){for(var s=0,e=a+r.step-1;e>=a;e--)s=(s<<1)+n[e];o.push(s)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),l=i;l>0;l--){for(var a=0;a<o.length;a++){var s=o[a];s===l?h=h.mixedAdd(r.points[a]):s===-l&&(h=h.mixedAdd(r.points[a].neg()))}c=c.add(h)}return c.toP()},n.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=u(e,r),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(var e=0;s>=0&&0===o[s];s--)e++;if(s>=0&&e++,a=a.dblp(e),s<0)break;var c=o[s];f(0!==c),a="affine"===t.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===t.type?a.toP():a},n.prototype._wnafMulAdd=function(t,e,r,n,i){for(var o=this._wnafT1,a=this._wnafT2,s=this._wnafT3,f=0,h=0;h<n;h++){var l=e[h],d=l._getNAFPoints(t);o[h]=d.wnd,a[h]=d.points}for(var h=n-1;h>=1;h-=2){var p=h-1,m=h;if(1===o[p]&&1===o[m]){var b=[e[p],null,null,e[m]];0===e[p].y.cmp(e[m].y)?(b[1]=e[p].add(e[m]),b[2]=e[p].toJ().mixedAdd(e[m].neg())):0===e[p].y.cmp(e[m].y.redNeg())?(b[1]=e[p].toJ().mixedAdd(e[m]),b[2]=e[p].add(e[m].neg())):(b[1]=e[p].toJ().mixedAdd(e[m]),b[2]=e[p].toJ().mixedAdd(e[m].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],y=c(r[p],r[m]);f=Math.max(y[0].length,f),s[p]=new Array(f),s[m]=new Array(f);for(var g=0;g<f;g++){var _=0|y[0][g],w=0|y[1][g];s[p][g]=v[3*(_+1)+(w+1)],s[m][g]=0,a[p]=b}}else s[p]=u(r[p],o[p]),s[m]=u(r[m],o[m]),f=Math.max(s[p].length,f),f=Math.max(s[m].length,f)}for(var M=this.jpoint(null,null,null),k=this._wnafT4,h=f;h>=0;h--){for(var E=0;h>=0;){for(var x=!0,g=0;g<n;g++)k[g]=0|s[g][h],0!==k[g]&&(x=!1);if(!x)break;E++,h--}if(h>=0&&E++,M=M.dblp(E),h<0)break;for(var g=0;g<n;g++){var l,S=k[g];0!==S&&(S>0?l=a[g][S-1>>1]:S<0&&(l=a[g][-S-1>>1].neg()),M="affine"===l.type?M.mixedAdd(l):M.add(l))}}for(var h=0;h<n;h++)a[h]=null;return i?M:M.toP()},n.BasePoint=i,i.prototype.eq=function(){throw new Error("Not implemented")},i.prototype.validate=function(){return this.curve.validate(this)},n.prototype.decodePoint=function(t,e){t=s.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1===2*r){6===t[0]?f(t[t.length-1]%2===0):7===t[0]&&f(t[t.length-1]%2===1);return this.point(t.slice(1,1+r),t.slice(1+r,1+2*r))}if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},i.prototype.encodeCompressed=function(t){return this.encode(t,!0)},i.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},i.prototype.encode=function(t,e){return s.encode(this._encode(e),t)},i.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},i.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=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 r=[this],n=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)n=n.dbl();r.push(n)}return{step:t,points:r}},i.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},i.prototype._getBeta=function(){return null},i.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e}},function(t,e,r){"use strict";function n(t){f.call(this,"short",t),this.a=new u(t.a,16).toRed(this.red),this.b=new u(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,r,n){f.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new u(e,16),this.y=new u(r,16),n&&(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,r,n){f.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new u(0)):(this.x=new u(e,16),this.y=new u(r,16),this.z=new u(n,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 a=r(47),s=r(10),u=r(12),c=r(6),f=a.base,h=s.utils.assert;c(n,f),t.exports=n,n.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new u(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=n[0].cmp(n[1])<0?n[0]:n[1],e=e.toRed(this.red)}if(t.lambda)r=new u(t.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?r=i[0]:(r=i[1],h(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}var o;return o=t.basis?t.basis.map(function(t){return{a:new u(t.a,16),b:new u(t.b,16)}}):this._getEndoBasis(r),{beta:e,lambda:r,basis:o}}},n.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:u.mont(t),r=new u(2).toRed(e).redInvm(),n=r.redNeg(),i=new u(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},n.prototype._getEndoBasis=function(t){for(var e,r,n,i,o,a,s,c,f,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=t,d=this.n.clone(),p=new u(1),m=new u(0),b=new u(0),v=new u(1),y=0;0!==l.cmpn(0);){var g=d.div(l);c=d.sub(g.mul(l)),f=b.sub(g.mul(p));var _=v.sub(g.mul(m));if(!n&&c.cmp(h)<0)e=s.neg(),r=p,n=c.neg(),i=f;else if(n&&2===++y)break;s=c,d=l,l=c,b=p,p=f,v=m,m=_}o=c.neg(),a=f;var w=n.sqr().add(i.sqr());return o.sqr().add(a.sqr()).cmp(w)>=0&&(o=e,a=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:n,b:i},{a:o,b:a}]},n.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:t.sub(a).sub(s),k2:u.add(c).neg()}},n.prototype.pointFromX=function(t,e){t=new u(t,16),t.red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},n.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},n.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(e[o]),s=t[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return c},c(i,f.BasePoint),n.prototype.point=function(t,e,r){return new i(this,t,e,r)},n.prototype.pointFromJSON=function(t,e){return i.fromJSON(this,t,e)},i.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},i.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},i.fromJSON=function(t,e,r){function n(e){return t.point(e[0],e[1],r)}"string"===typeof e&&(e=JSON.parse(e));var i=t.point(e[0],e[1],r);if(!e[2])return i;var o=e[2];return i.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[i].concat(o.doubles.points.map(n))},naf:o.naf&&{wnd:o.naf.wnd,points:[i].concat(o.naf.points.map(n))}},i},i.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},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 r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},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,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},i.prototype.getX=function(){return this.x.fromRed()},i.prototype.getY=function(){return this.y.fromRed()},i.prototype.mul=function(t){return t=new u(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,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},i.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,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 r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}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)},c(o,f.BasePoint),n.prototype.jpoint=function(t,e,r){return new o(this,t,e,r)},o.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},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(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),h=n.redMul(c),l=u.redSqr().redIAdd(f).redISub(h).redISub(h),d=u.redMul(h.redISub(l)).redISub(o.redMul(f)),p=this.z.redMul(t.z).redMul(s);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(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),f=r.redMul(u),h=s.redSqr().redIAdd(c).redISub(f).redISub(f),l=s.redMul(f.redISub(h)).redISub(i.redMul(c)),d=this.z.redMul(a);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,r=0;r<t;r++)e=e.dbl();return e}for(var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a),r=0;r<t;r++){var f=o.redSqr(),h=c.redSqr(),l=h.redSqr(),d=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(u)),p=o.redMul(h),m=d.redSqr().redISub(p.redAdd(p)),b=p.redISub(m),v=d.redMul(b);v=v.redIAdd(v).redISub(l);var y=c.redMul(s);r+1<t&&(u=u.redMul(l)),o=m,s=y,c=v}return this.curve.jpoint(o,c.redMul(i),s)},o.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},o.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=c.redIAdd(c),c=c.redIAdd(c),t=u,e=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),h=this.y.redSqr(),l=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(f).redISub(l);d=d.redIAdd(d);var p=f.redAdd(f).redIAdd(f),m=p.redSqr(),b=l.redIAdd(l);b=b.redIAdd(b),b=b.redIAdd(b),t=m.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(b),r=this.y.redMul(this.z),r=r.redIAdd(r)}return this.curve.jpoint(t,e,r)},o.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);t=u;var c=o.redIAdd(o);c=c.redIAdd(c),c=c.redIAdd(c),e=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),h=this.y.redSqr(),l=this.x.redMul(h),d=this.x.redSub(f).redMul(this.x.redAdd(f));d=d.redAdd(d).redIAdd(d);var p=l.redIAdd(l);p=p.redIAdd(p);var m=p.redAdd(p);t=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(f);var b=h.redSqr();b=b.redIAdd(b),b=b.redIAdd(b),b=b.redIAdd(b),e=d.redMul(p.redISub(t)).redISub(b)}return this.curve.jpoint(t,e,r)},o.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=e.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),u=e.redAdd(e);u=u.redIAdd(u);var c=u.redMul(a),f=s.redSqr().redISub(c.redAdd(c)),h=c.redISub(f),l=a.redSqr();l=l.redIAdd(l),l=l.redIAdd(l),l=l.redIAdd(l);var d=s.redMul(h).redISub(l),p=r.redAdd(r).redMul(n);return this.curve.jpoint(f,d,p)},o.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(n);a=a.redIAdd(a),a=a.redAdd(a).redIAdd(a),a=a.redISub(o);var s=a.redSqr(),u=n.redIAdd(n);u=u.redIAdd(u),u=u.redIAdd(u),u=u.redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),f=e.redMul(c);f=f.redIAdd(f),f=f.redIAdd(f);var h=this.x.redMul(s).redISub(f);h=h.redIAdd(h),h=h.redIAdd(h);var l=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));l=l.redIAdd(l),l=l.redIAdd(l),l=l.redIAdd(l);var d=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(h,l,d)},o.prototype.mul=function(t,e){return t=new u(t,e),this.curve._wnafMul(this,t)},o.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},o.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}return!1},o.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},o.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,r){"use strict";function n(t){u.call(this,"mont",t),this.a=new a(t.a,16).toRed(this.red),this.b=new a(t.b,16).toRed(this.red),this.i4=new a(4).toRed(this.red).redInvm(),this.two=new a(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function i(t,e,r){u.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new a(e,16),this.z=new a(r,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=r(47),a=r(12),s=r(6),u=o.base,c=r(10),f=c.utils;s(n,u),t.exports=n,n.prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),n=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},s(i,u.BasePoint),n.prototype.decodePoint=function(t,e){return this.point(f.toArray(t,e),1)},n.prototype.point=function(t,e){return new i(this,t,e)},n.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()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},i.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},i.prototype.dbl=function(){var t=this.x.redAdd(this.z),e=t.redSqr(),r=this.x.redSub(this.z),n=r.redSqr(),i=e.redSub(n),o=e.redMul(n),a=i.redMul(n.redAdd(this.curve.a24.redMul(i)));return this.curve.point(o,a)},i.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.diffAdd=function(t,e){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z),a=o.redMul(r),s=i.redMul(n),u=e.z.redMul(a.redAdd(s).redSqr()),c=e.x.redMul(a.redISub(s).redSqr());return this.curve.point(u,c)},i.prototype.mul=function(t){for(var e=t.clone(),r=this,n=this.curve.point(null,null),i=this,o=[];0!==e.cmpn(0);e.iushrn(1))o.push(e.andln(1));for(var a=o.length-1;a>=0;a--)0===o[a]?(r=r.diffAdd(n,i),n=n.dbl()):(n=r.diffAdd(n,i),r=r.dbl());return n},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()}},function(t,e,r){"use strict";function n(t){this.twisted=1!==(0|t.a),this.mOneA=this.twisted&&-1===(0|t.a),this.extended=this.mOneA,c.call(this,"edwards",t),this.a=new s(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new s(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new s(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|t.c)}function i(t,e,r,n,i){c.BasePoint.call(this,t,"projective"),null===e&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new s(e,16),this.y=new s(r,16),this.z=n?new s(n,16):this.curve.one,this.t=i&&new s(i,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}var o=r(47),a=r(10),s=r(12),u=r(6),c=o.base,f=a.utils.assert;u(n,c),t.exports=n,n.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},n.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},n.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},n.prototype.pointFromX=function(t,e){t=new s(t,16),t.red||(t=t.toRed(this.red));var r=t.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=n.redMul(i.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var u=a.fromRed().isOdd();return(e&&!u||!e&&u)&&(a=a.redNeg()),this.point(t,a)},n.prototype.pointFromY=function(t,e){t=new s(t,16),t.red||(t=t.toRed(this.red));var r=t.redSqr(),n=r.redSub(this.one),i=r.redMul(this.d).redAdd(this.one),o=n.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.isOdd()!==e&&(a=a.redNeg()),this.point(a,t)},n.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),n=e.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(i)},u(i,c.BasePoint),n.prototype.pointFromJSON=function(t){return i.fromJSON(this,t)},n.prototype.point=function(t,e,r,n){return new i(this,t,e,r,n)},i.fromJSON=function(t,e){return new i(t,e[0],e[1],e[2])},i.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},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(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=n.redAdd(e),a=o.redSub(r),s=n.redSub(e),u=i.redMul(a),c=o.redMul(s),f=i.redMul(s),h=a.redMul(o);return this.curve.point(u,c,h,f)},i.prototype._projDbl=function(){var t,e,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=this.curve._mulA(i),s=a.redAdd(o);if(this.zOne)t=n.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),e=s.redMul(a.redSub(o)),r=s.redSqr().redSub(s).redSub(s);else{var u=this.z.redSqr(),c=s.redSub(u).redISub(u);t=n.redSub(i).redISub(o).redMul(c),e=s.redMul(a.redSub(o)),r=s.redMul(c)}}else{var a=i.redAdd(o),u=this.curve._mulC(this.c.redMul(this.z)).redSqr(),c=a.redSub(u).redSub(u);t=this.curve._mulC(n.redISub(a)).redMul(c),e=this.curve._mulC(a).redMul(i.redISub(o)),r=a.redMul(c)}return this.curve.point(t,e,r)},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)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=r.redSub(e),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(e),c=o.redMul(a),f=s.redMul(u),h=o.redMul(u),l=a.redMul(s);return this.curve.point(c,f,l,h)},i.prototype._projAdd=function(t){var e,r,n=this.z.redMul(t.z),i=n.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),f=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),h=n.redMul(u).redMul(f);return this.curve.twisted?(e=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(c)):(e=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(c)),this.curve.point(h,e,r)},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,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},i.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],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 r=t.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}return!1},i.prototype.toP=i.prototype.normalize,i.prototype.mixedAdd=i.prototype.add},function(t,e,r){"use strict";function n(t){"short"===t.type?this.curve=new s.curve.short(t):"edwards"===t.type?this.curve=new s.curve.edwards(t):this.curve=new s.curve.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,u(this.g.validate(),"Invalid curve"),u(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 r=new n(e);return Object.defineProperty(o,t,{configurable:!0,enumerable:!0,value:r}),r}})}var o=e,a=r(62),s=r(10),u=s.utils.assert;o.PresetCurve=n,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:a.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:a.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:a.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:a.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:a.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:a.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:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var c;try{c=r(299)}catch(t){c=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:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",c]})},function(t,e,r){"use strict";e.sha1=r(294),e.sha224=r(295),e.sha256=r(114),e.sha384=r(296),e.sha512=r(115)},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}var i=r(17),o=r(37),a=r(113),s=i.rotl32,u=i.sum32,c=i.sum32_5,f=a.ft_1,h=o.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];i.inherits(n,h),t.exports=n,n.blockSize=512,n.outSize=160,n.hmacStrength=80,n.padLength=64,n.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=s(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],a=this.h[2],h=this.h[3],d=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=c(s(i,5),f(p,o,a,h),d,r[n],l[p]);d=h,h=a,a=s(o,30),o=i,i=m}this.h[0]=u(this.h[0],i),this.h[1]=u(this.h[1],o),this.h[2]=u(this.h[2],a),this.h[3]=u(this.h[3],h),this.h[4]=u(this.h[4],d)},n.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}var i=r(17),o=r(114);i.inherits(n,o),t.exports=n,n.blockSize=512,n.outSize=224,n.hmacStrength=192,n.padLength=64,n.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}var i=r(17),o=r(115);i.inherits(n,o),t.exports=n,n.blockSize=1024,n.outSize=384,n.hmacStrength=192,n.padLength=128,n.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function i(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function o(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function a(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}var s=r(17),u=r(37),c=s.rotl32,f=s.sum32,h=s.sum32_3,l=s.sum32_4,d=u.BlockHash;s.inherits(n,d),e.ripemd160=n,n.blockSize=512,n.outSize=160,n.hmacStrength=192,n.padLength=64,n.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],s=this.h[2],u=this.h[3],d=this.h[4],y=r,g=n,_=s,w=u,M=d,k=0;k<80;k++){var E=f(c(l(r,i(k,n,s,u),t[p[k]+e],o(k)),b[k]),d);r=d,d=u,u=c(s,10),s=n,n=E,E=f(c(l(y,i(79-k,g,_,w),t[m[k]+e],a(k)),v[k]),M),y=M,M=w,w=c(_,10),_=g,g=E}E=h(this.h[1],s,w),this.h[1]=h(this.h[2],u,M),this.h[2]=h(this.h[3],d,y),this.h[3]=h(this.h[4],r,g),this.h[4]=h(this.h[0],n,_),this.h[0]=E},n.prototype._digest=function(t){return"hex"===t?s.toHex32(this.h,"little"):s.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],b=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],v=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(t,e,r){"use strict";function n(t,e,r){if(!(this instanceof n))return new n(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(e,r))}var i=r(17),o=r(25);t.exports=n,n.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),o(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},n.prototype.update=function(t,e){return this.inner.update(t,e),this},n.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(t,e,r){"use strict";function n(t){if(!(this instanceof n))return new n(t);"string"===typeof t&&(u(a.curves.hasOwnProperty(t),"Unknown curve "+t),t=a.curves[t]),t instanceof a.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=r(12),o=r(301),a=r(10),s=a.utils,u=s.assert,c=r(302),f=r(303);t.exports=n,n.prototype.keyPair=function(t){return new c(this,t)},n.prototype.keyFromPrivate=function(t,e){return c.fromPrivate(this,t,e)},n.prototype.keyFromPublic=function(t,e){return c.fromPublic(this,t,e)},n.prototype.genKeyPair=function(t){t||(t={});for(var e=new o({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||a.rand(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new i(2));;){var s=new i(e.generate(r));if(!(s.cmp(n)>0))return s.iaddn(1),this.keyFromPrivate(s)}},n.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},n.prototype.sign=function(t,e,r,n){"object"===typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new i(t,16));for(var a=this.n.byteLength(),s=e.getPrivate().toArray("be",a),u=t.toArray("be",a),c=new o({hash:this.hash,entropy:s,nonce:u,pers:n.pers,persEnc:n.persEnc||"utf8"}),h=this.n.sub(new i(1)),l=0;!0;l++){var d=n.k?n.k(l):new i(c.generate(this.n.byteLength()));if(d=this._truncateToN(d,!0),!(d.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(v=v.umod(this.n),0!==v.cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(b)?2:0);return n.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),y^=1),new f({r:b,s:v,recoveryParam:y})}}}}}},n.prototype.verify=function(t,e,r,n){t=this._truncateToN(new i(t,16)),r=this.keyFromPublic(r,n),e=new f(e,"hex");var o=e.r,a=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s=a.invm(this.n),u=s.mul(t).umod(this.n),c=s.mul(o).umod(this.n);if(!this.curve._maxwellTrick){var h=this.g.mulAdd(u,r.getPublic(),c);return!h.isInfinity()&&0===h.getX().umod(this.n).cmp(o)}var h=this.g.jmulAdd(u,r.getPublic(),c);return!h.isInfinity()&&h.eqXToP(o)},n.prototype.recoverPubKey=function(t,e,r,n){u((3&r)===r,"The recovery param is more than two bits"),e=new f(e,n);var o=this.n,a=new i(t),s=e.r,c=e.s,h=1&r,l=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),h):this.curve.pointFromX(s,h);var d=e.r.invm(o),p=o.sub(a).mul(d).umod(o),m=c.mul(d).umod(o);return this.g.mulAdd(p,s,m)},n.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new f(e,n),null!==e.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(r))return i}throw new Error("Unable to find valid recovery factor")}},function(t,e,r){"use strict";function n(t){if(!(this instanceof n))return new n(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"),r=o.toArray(t.nonce,t.nonceEnc||"hex"),i=o.toArray(t.pers,t.persEnc||"hex");a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,i)}var i=r(62),o=r(112),a=r(25);t.exports=n,n.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},n.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},n.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},n.prototype.reseed=function(t,e,r,n){"string"!==typeof e&&(n=r,r=e,e=null),t=o.toArray(t,e),r=o.toArray(r,n),a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},n.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof e&&(n=r,r=e,e=null),r&&(r=o.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var a=i.slice(0,t);return this._update(r),this._reseed++,o.encode(a,e)}},function(t,e,r){"use strict";function n(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=r(12),o=r(10),a=o.utils,s=a.assert;t.exports=n,n.fromPublic=function(t,e,r){return e instanceof n?e:new n(t,{pub:e,pubEnc:r})},n.fromPrivate=function(t,e,r){return e instanceof n?e:new n(t,{priv:e,privEnc:r})},n.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"}},n.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},n.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},n.prototype._importPrivate=function(t,e){this.priv=new i(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},n.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?s(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||s(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)},n.prototype.derive=function(t){return t.mul(this.priv).getX()},n.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},n.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},n.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(t,e,r){"use strict";function n(t,e){if(t instanceof n)return t;this._importDER(t,e)||(h(t.r&&t.s,"Signature without r or s"),this.r=new u(t.r,16),this.s=new u(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function i(){this.place=0}function o(t,e){var r=t[e.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=e.place;o<n;o++,a++)i<<=8,i|=t[a];return e.place=a,i}function a(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function s(t,e){if(e<128)return void t.push(e);var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}var u=r(12),c=r(10),f=c.utils,h=f.assert;t.exports=n,n.prototype._importDER=function(t,e){t=f.toArray(t,e);var r=new i;if(48!==t[r.place++])return!1;if(o(t,r)+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var n=o(t,r),a=t.slice(r.place,n+r.place);if(r.place+=n,2!==t[r.place++])return!1;var s=o(t,r);if(t.length!==s+r.place)return!1;var c=t.slice(r.place,s+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new u(a),this.s=new u(c),this.recoveryParam=null,!0},n.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=a(e),r=a(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];s(n,e.length),n=n.concat(e),n.push(2),s(n,r.length);var i=n.concat(r),o=[48];return s(o,i.length),o=o.concat(i),f.encode(o,t)}},function(t,e,r){"use strict";function n(t){if(s("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof n))return new n(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=r(62),o=r(10),a=o.utils,s=a.assert,u=a.parseBytes,c=r(305),f=r(306);t.exports=n,n.prototype.sign=function(t,e){t=u(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),t).mul(r.priv()),s=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},n.prototype.verify=function(t,e,r){t=u(t),e=this.makeSignature(e);var n=this.keyFromPublic(r),i=this.hashInt(e.Rencoded(),n.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(n.pub().mul(i)).eq(o)},n.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return a.intFromLE(t.digest()).umod(this.curve.n)},n.prototype.keyFromPublic=function(t){return c.fromPublic(this,t)},n.prototype.keyFromSecret=function(t){return c.fromSecret(this,t)},n.prototype.makeSignature=function(t){return t instanceof f?t:new f(this,t)},n.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},n.prototype.decodePoint=function(t){t=a.parseBytes(t);var e=t.length-1,r=t.slice(0,e).concat(-129&t[e]),n=0!==(128&t[e]),i=a.intFromLE(r);return this.curve.pointFromY(i,n)},n.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},n.prototype.decodeInt=function(t){return a.intFromLE(t)},n.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,r){"use strict";function n(t,e){this.eddsa=t,this._secret=s(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=s(e.pub)}var i=r(10),o=i.utils,a=o.assert,s=o.parseBytes,u=o.cachedProperty;n.fromPublic=function(t,e){return e instanceof n?e:new n(t,{pub:e})},n.fromSecret=function(t,e){return e instanceof n?e:new n(t,{secret:e})},n.prototype.secret=function(){return this._secret},u(n,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),u(n,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),u(n,"privBytes",function(){var t=this.eddsa,e=this.hash(),r=t.encodingLength-1,n=e.slice(0,t.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),u(n,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),u(n,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),u(n,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),n.prototype.sign=function(t){return a(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},n.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},n.prototype.getSecret=function(t){return a(this._secret,"KeyPair is public only"),o.encode(this.secret(),t)},n.prototype.getPublic=function(t){return o.encode(this.pubBytes(),t)},t.exports=n},function(t,e,r){"use strict";function n(t,e){this.eddsa=t,"object"!==typeof e&&(e=c(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),s(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof i&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}var i=r(12),o=r(10),a=o.utils,s=a.assert,u=a.cachedProperty,c=a.parseBytes;u(n,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),u(n,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),u(n,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),u(n,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),n.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},n.prototype.toHex=function(){return a.encode(this.toBytes(),"hex").toUpperCase()},t.exports=n},function(t,e,r){t.exports=r(308)},function(t,e,r){(function(e){function n(t,r,n,s,u,c,f){function h(t,e,r,n){var o;for(i(t,e+64*(2*n-1),_,0,64),o=0;o<2*n;o++)p(t,64*o,_,0,64),d(_),i(_,0,t,r+64*o,64);for(o=0;o<n;o++)i(t,r+2*o*64,t,e+64*o,64);for(o=0;o<n;o++)i(t,r+64*(2*o+1),t,e+64*(o+n),64)}function l(t,e){return t<<e|t>>>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(i(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 r=4*e;t[r+0]=y[e]>>0&255,t[r+1]=y[e]>>8&255,t[r+2]=y[e]>>16&255,t[r+3]=y[e]>>24&255}}function p(t,e,r,n,i){for(var o=0;o<i;o++)r[n+o]^=t[e+o]}if(0===n||0!==(n&n-1))throw Error("N must be > 0 and a power of 2");if(n>a/128/s)throw Error("Parameter N is too large");if(s>a/128/u)throw Error("Parameter r is too large");var m,b=new e(256*s),v=new e(128*s*n),y=new Int32Array(16),g=new Int32Array(16),_=new e(64),w=o(t,r,1,128*u*s,"sha256");if(f){var M=u*n*2,k=0;m=function(){++k%1e3===0&&f({current:k,total:M,percent:k/M*100})}}for(var E=0;E<u;E++)!function(t,e,r,n,i,o){var a,s=128*r;for(t.copy(o,0,e,e+s),a=0;a<n;a++)o.copy(i,a*s,0,0+s),h(o,0,s,r),m&&m();for(a=0;a<n;a++){var u=0+64*(2*r-1);p(i,(o.readUInt32LE(u)&n-1)*s,o,0,s),h(o,0,s,r),m&&m()}o.copy(t,e,0,0+s)}(w,128*E*s,s,n,v,b);return o(t,w,1,c,"sha256")}function i(t,r,n,i,o){if(e.isBuffer(t)&&e.isBuffer(n))t.copy(n,i,r,r+o);else for(;o--;)n[i++]=t[r++]}var o=r(309).pbkdf2Sync,a=2147483647;t.exports=n}).call(e,r(0).Buffer)},function(t,e,r){e.pbkdf2=r(310),e.pbkdf2Sync=r(120)},function(t,e,r){(function(e,n){function i(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==p[t])return p[t];s=s||h.alloc(8);var r=o(s,s,10,128,t).then(function(){return!0}).catch(function(){return!1});return p[t]=r,r}function o(t,e,r,n,i){return l.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(t){return l.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:i}},t,n<<3)}).then(function(t){return h.from(t)})}function a(t,e){t.then(function(t){n.nextTick(function(){e(null,t)})},function(t){n.nextTick(function(){e(t)})})}var s,u=r(118),c=r(119),f=r(120),h=r(14).Buffer,l=e.crypto&&e.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=[];t.exports=function(t,r,s,l,p,m){if(h.isBuffer(t)||(t=h.from(t,c)),h.isBuffer(r)||(r=h.from(r,c)),u(s,l),"function"===typeof p&&(m=p,p=void 0),"function"!==typeof m)throw new Error("No callback provided to pbkdf2");p=p||"sha1";var b=d[p.toLowerCase()];if(!b||"function"!==typeof e.Promise)return n.nextTick(function(){var e;try{e=f(t,r,s,l,p)}catch(t){return m(t)}m(null,e)});a(i(b).then(function(e){return e?o(t,r,s,l,b):f(t,r,s,l,p)}),m)}}).call(e,r(4),r(8))},function(t,e,r){"use strict";(function(e){function r(t){if(t.length%n!==0){var r=t.length+(n-t.length%n);t=e.concat([t,i],r)}for(var o=new Array(t.length>>>2),a=0,s=0;a<t.length;a+=n,s++)o[s]=t.readInt32LE(a);return o}var n=4,i=new e(n);i.fill(0);t.exports=function(t,n){var i=n(r(t),8*t.length);t=new e(16);for(var o=0;o<i.length;o++)t.writeInt32LE(i[o],o<<2,!0);return t}}).call(e,r(0).Buffer)},function(t,e,r){"use strict";(function(e){function n(t){i.call(this),this._block=new e(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var i=r(19).Transform;r(6)(n,i),n.prototype._transform=function(t,r,n){var i=null;try{"buffer"!==r&&(t=new e(t,r)),this.update(t)}catch(t){i=t}n(i)},n.prototype._flush=function(t){var e=null;try{this.push(this._digest())}catch(t){e=t}t(e)},n.prototype.update=function(t,r){if(!e.isBuffer(t)&&"string"!==typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");e.isBuffer(t)||(t=new e(t,r||"binary"));for(var n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)n[o++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)n[this._blockOffset++]=t[i++];for(var a=0,s=8*t.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},n.prototype._update=function(t){throw new Error("_update is not implemented")},n.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},n.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=n}).call(e,r(0).Buffer)},function(t,e,r){function n(){this.init(),this._w=h,u.call(this,64,56)}function i(t){return t<<5|t>>>27}function o(t){return t<<30|t>>>2}function a(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}var s=r(6),u=r(29),c=r(14).Buffer,f=[1518500249,1859775393,-1894007588,-899497514],h=new Array(80);s(n,u),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},n.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,s=0|this._c,u=0|this._d,c=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(r)+a(d,n,s,u)+c+e[l]+f[d]|0;c=u,u=s,s=o(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=s+this._c|0,this._d=u+this._d|0,this._e=c+this._e|0},n.prototype._hash=function(){var t=c.allocUnsafe(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},t.exports=n},function(t,e,r){function n(){this.init(),this._w=l,c.call(this,64,56)}function i(t){return t<<1|t>>>31}function o(t){return t<<5|t>>>27}function a(t){return t<<30|t>>>2}function s(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}var u=r(6),c=r(29),f=r(14).Buffer,h=[1518500249,1859775393,-1894007588,-899497514],l=new Array(80);u(n,c),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},n.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,u=0|this._c,c=0|this._d,f=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(r)+s(p,n,u,c)+f+e[d]+h[p]|0;f=c,c=u,u=a(n),n=r,r=m}this._a=r+this._a|0,this._b=n+this._b|0,this._c=u+this._c|0,this._d=c+this._d|0,this._e=f+this._e|0},n.prototype._hash=function(){var t=f.allocUnsafe(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},t.exports=n},function(t,e,r){function n(){this.init(),this._w=u,a.call(this,64,56)}var i=r(6),o=r(124),a=r(29),s=r(14).Buffer,u=new Array(64);i(n,o),n.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},n.prototype._hash=function(){var t=s.allocUnsafe(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},t.exports=n},function(t,e,r){function n(){this.init(),this._w=u,a.call(this,128,112)}var i=r(6),o=r(125),a=r(29),s=r(14).Buffer,u=new Array(160);i(n,o),n.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},n.prototype._hash=function(){function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}var e=s.allocUnsafe(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},t.exports=n},function(t,e,r){function n(t,e,r){var n=e&&r||0,i=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){i<16&&(e[n+i++]=c[t])});i<16;)e[n+i++]=0;return e}function i(t,e){var r=e||0,n=u;return n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]}function o(t,e,r){var n=e&&r||0,o=e||[];t=t||{};var a=void 0!==t.clockseq?t.clockseq:d,s=void 0!==t.msecs?t.msecs:(new Date).getTime(),u=void 0!==t.nsecs?t.nsecs:m+1,c=s-p+(u-m)/1e4;if(c<0&&void 0===t.clockseq&&(a=a+1&16383),(c<0||s>p)&&void 0===t.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=s,m=u,d=a,s+=122192928e5;var f=(1e4*(268435455&s)+u)%4294967296;o[n++]=f>>>24&255,o[n++]=f>>>16&255,o[n++]=f>>>8&255,o[n++]=255&f;var h=s/4294967296*1e4&268435455;o[n++]=h>>>8&255,o[n++]=255&h,o[n++]=h>>>24&15|16,o[n++]=h>>>16&255,o[n++]=a>>>8|128,o[n++]=255&a;for(var b=t.node||l,v=0;v<6;v++)o[n+v]=b[v];return e||i(o)}function a(t,e,r){var n=e&&r||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null),t=t||{};var o=t.random||(t.rng||s)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var a=0;a<16;a++)e[n+a]=o[a];return e||i(o)}for(var s=r(318),u=[],c={},f=0;f<256;f++)u[f]=(f+256).toString(16).substr(1),c[u[f]]=f;var h=s(),l=[1|h[0],h[1],h[2],h[3],h[4],h[5]],d=16383&(h[6]<<8|h[7]),p=0,m=0,b=a;b.v1=o,b.v4=a,b.parse=n,b.unparse=i,t.exports=b},function(t,e,r){(function(e){var r;if(e.crypto&&crypto.getRandomValues){var n=new Uint8Array(16);r=function(){return crypto.getRandomValues(n),n}}if(!r){var i=new Array(16);r=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}}t.exports=r}).call(e,r(4))},function(t,e,r){"use strict";var n=r(5),i=function(t){var e,r=this;return this.net.getId().then(function(t){return e=t,r.getBlock(0)}).then(function(r){var i="private";return"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"===r.hash&&1===e&&(i="main"),"0cd786a2425d16f152c658316c423e6ce1181e15c3295826d7c9904cba9ce303"===r.hash&&2===e&&(i="morden"),"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d"===r.hash&&3===e&&(i="ropsten"),"0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177"===r.hash&&4===e&&(i="rinkeby"),"0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9"===r.hash&&42===e&&(i="kovan"),n.isFunction(t)&&t(null,i),i}).catch(function(e){if(!n.isFunction(t))throw e;t(e)})};t.exports=i},function(t,e,r){"use strict";var n=r(21),i=r(39).subscriptions,o=r(22),a=r(40),s=function(){var t=this;n.packageInit(this,arguments);var e=this.setProvider;this.setProvider=function(){e.apply(t,arguments),t.net.setProvider.apply(t,arguments)},this.clearSubscriptions=t._requestManager.clearSubscriptions,this.net=new a(this.currentProvider),[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]})].forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})};n.addProviders(s),t.exports=s},function(t,e,r){"use strict";var n=r(5),i=r(322),o=function t(e){this.givenProvider=t.givenProvider,e&&e._requestManager&&(e=e.currentProvider),"undefined"!==typeof document&&(this.pick=i.pick),this.setProvider(e)};o.givenProvider=null,"undefined"!==typeof ethereumProvider&&ethereumProvider.bzz&&(o.givenProvider=ethereumProvider.bzz),o.prototype.setProvider=function(t){if(n.isObject(t)&&n.isString(t.bzz)&&(t=t.bzz),!n.isString(t)){this.currentProvider=null;var e=new Error("No provider set, please set one using bzz.setProvider().");return this.download=this.upload=this.isAvailable=function(){throw e},!1}return this.currentProvider=t,this.download=i.at(t).download,this.upload=i.at(t).upload,this.isAvailable=i.at(t).isAvailable,!0},t.exports=o},function(t,e,r){var n=function(){throw"This swarm.js function isn't available on the browser."},i={readFile:n},o={download:n,safeDownloadArchived:n,directoryTree:n},a={platform:n,arch:n},s={join:n,slice:n},u={spawn:n},c={lookup:n},f={},h=r(323),l=r(127),d=r(339),p=r(340),m=r(341);t.exports=m({fsp:i,files:o,os:a,path:s,child_process:u,defaultArchives:f,mimetype:c,request:h,downloadUrl:null,bytes:l,hash:d,pick:p})},function(t,e,r){var n=r(324);t.exports=function(t,e){return new Promise(function(r,i){n(t,e,function(t,e){t?i(t):r(e)})})}},function(t,e,r){function n(t,e,r){if(!t||"string"!==typeof t)throw new TypeError("must specify a URL");if("function"===typeof e&&(r=e,e={}),r&&"function"!==typeof r)throw new TypeError("expected cb to be undefined or a function");r=r||f,e=e||{};var n=e.json?"json":"text";e=a({responseType:n},e);var h=e.headers||{},l=(e.method||"GET").toUpperCase(),d=e.query;return d&&("string"!==typeof d&&(d=i.stringify(d)),t=o(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,u(e,r)}var i=r(325),o=r(327),a=r(328),s=r(329),u=r(330),c="application/json",f=function(){};t.exports=n},function(t,e,r){"use strict";var n=r(326);e.extract=function(t){return t.split("?")[1]||""},e.parse=function(t){return"string"!==typeof t?{}:(t=t.trim().replace(/^(\?|#|&)/,""),t?t.split("&").reduce(function(t,e){var r=e.replace(/\+/g," ").split("="),n=r.shift(),i=r.length>0?r.join("="):void 0;return n=decodeURIComponent(n),i=void 0===i?null:decodeURIComponent(i),t.hasOwnProperty(n)?Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]:t[n]=i,t},{}):{})},e.stringify=function(t){return t?Object.keys(t).sort().map(function(e){var r=t[e];return Array.isArray(r)?r.sort().map(function(t){return n(e)+"="+n(t)}).join("&"):n(e)+"="+n(r)}).filter(function(t){return t.length>0}).join("&"):""}},function(t,e,r){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},function(t,e){function r(t,e){if(e){e=e.trim().replace(/^(\?|#|&)/,""),e=e?"?"+e:e;var r=t.split(/[\?\#]/),n=r[0];e&&/\:\/\/[^\/]*$/.test(n)&&(n+="/");var i=t.match(/(\#.*)$/);t=n+e,i&&(t+=i[0])}return t}t.exports=r},function(t,e,r){"use strict";function n(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;t.exports=Object.assign||function(t,e){for(var r,o,a=n(t),s=1;s<arguments.length;s++){r=arguments[s],o=i(Object(r));for(var u=0;u<o.length;u++)a[o[u]]=r[o[u]]}return a}},function(t,e){function r(t,e,r){var n=e.toLowerCase();t[e]||t[n]||(t[e]=r)}t.exports=r},function(t,e,r){function n(t,e){delete t.uri;var r=!1;return"json"===t.responseType&&(t.responseType="text",r=!0),i(t,function(n,i,a){if(r&&!n)try{var s=i.rawRequest.responseText;a=JSON.parse(s)}catch(t){n=t}i=o(t,i),n?e(n,null,i):e(n,a,i)})}var i=r(331),o=r(337);t.exports=n},function(t,e,r){"use strict";function n(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function i(t,e,r){var n=t;return f(e)?(r=e,"string"===typeof t&&(n={uri:t})):n=l(e,{uri:t}),n.callback=r,n}function o(t,e,r){return e=i(t,e,r),a(e)}function a(t){function e(){4===f.readyState&&setTimeout(a,0)}function r(){var t=void 0;if(t=f.response?f.response:f.responseText||s(f),_)try{t=JSON.parse(t)}catch(t){}return t}function i(t){return clearTimeout(p),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,c(t,w)}function a(){if(!d){var e;clearTimeout(p),e=t.useXDR&&void 0===f.status?200:1223===f.status?204:f.status;var n=w,i=null;return 0!==e?(n={body:r(),statusCode:e,method:b,headers:{},url:m,rawRequest:f},f.getAllResponseHeaders&&(n.headers=h(f.getAllResponseHeaders()))):i=new Error("Internal XMLHttpRequest Error"),c(i,n,n.body)}}if("undefined"===typeof t.callback)throw new Error("callback argument missing");var u=!1,c=function(e,r,n){u||(u=!0,t.callback(e,r,n))},f=t.xhr||null;f||(f=t.cors||t.useXDR?new o.XDomainRequest:new o.XMLHttpRequest);var l,d,p,m=f.url=t.uri||t.url,b=f.method=t.method||"GET",v=t.body||t.data,y=f.headers=t.headers||{},g=!!t.sync,_=!1,w={body:void 0,headers:{},statusCode:0,method:b,url:m,rawRequest:f};if("json"in t&&!1!==t.json&&(_=!0,y.accept||y.Accept||(y.Accept="application/json"),"GET"!==b&&"HEAD"!==b&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),v=JSON.stringify(!0===t.json?v:t.json))),f.onreadystatechange=e,f.onload=a,f.onerror=i,f.onprogress=function(){},f.onabort=function(){d=!0},f.ontimeout=i,f.open(b,m,!g,t.username,t.password),g||(f.withCredentials=!!t.withCredentials),!g&&t.timeout>0&&(p=setTimeout(function(){if(!d){d=!0,f.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}},t.timeout)),f.setRequestHeader)for(l in y)y.hasOwnProperty(l)&&f.setRequestHeader(l,y[l]);else if(t.headers&&!n(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(f.responseType=t.responseType),"beforeSend"in t&&"function"===typeof t.beforeSend&&t.beforeSend(f),f.send(v||null),f}function s(t){if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;return""!==t.responseType||e?null:t.responseXML}function u(){}var c=r(332),f=r(126),h=r(333),l=r(336);t.exports=o,o.XMLHttpRequest=c.XMLHttpRequest||u,o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:c.XDomainRequest,function(t,e){for(var r=0;r<t.length;r++)e(t[r])}(["get","put","post","patch","head","delete"],function(t){o["delete"===t?"del":t]=function(e,r,n){return r=i(e,r,n),r.method=t.toUpperCase(),a(r)}})},function(t,e,r){(function(e){var r;r="undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{},t.exports=r}).call(e,r(4))},function(t,e,r){var n=r(334),i=r(335),o=function(t){return"[object Array]"===Object.prototype.toString.call(t)};t.exports=function(t){if(!t)return{};var e={};return i(n(t).split("\n"),function(t){var r=t.indexOf(":"),i=n(t.slice(0,r)).toLowerCase(),a=n(t.slice(r+1));"undefined"===typeof e[i]?e[i]=a:o(e[i])?e[i].push(a):e[i]=[e[i],a]}),e}},function(t,e){function r(t){return t.replace(/^\s*|\s*$/g,"")}e=t.exports=r,e.left=function(t){return t.replace(/^\s*/,"")},e.right=function(t){return t.replace(/\s*$/,"")}},function(t,e,r){function n(t,e,r){if(!s(e))throw new TypeError("iterator must be a function");arguments.length<3&&(r=this),"[object Array]"===u.call(t)?i(t,e,r):"string"===typeof t?o(t,e,r):a(t,e,r)}function i(t,e,r){for(var n=0,i=t.length;n<i;n++)c.call(t,n)&&e.call(r,t[n],n,t)}function o(t,e,r){for(var n=0,i=t.length;n<i;n++)e.call(r,t.charAt(n),n,t)}function a(t,e,r){for(var n in t)c.call(t,n)&&e.call(r,t[n],n,t)}var s=r(126);t.exports=n;var u=Object.prototype.toString,c=Object.prototype.hasOwnProperty},function(t,e){function r(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var i in r)n.call(r,i)&&(t[i]=r[i])}return t}t.exports=r;var n=Object.prototype.hasOwnProperty},function(t,e){function r(t,e){return e?{statusCode:e.statusCode,headers:e.headers,method:t.method,url:t.url,rawRequest:e.rawRequest?e.rawRequest:e}:null}t.exports=r},function(t,e){var r=function(t,e){for(var r=[],n=0;n<t;++n)r.push(e(n));return r},n=function(t,e){return r(t,function(){return e})},i=function(t,e){return t.concat(e)},o=function(t){for(var e=[],r=0,n=t.length;r<n;++r)for(var i=0,o=t[r].length;i<o;++i)e.push(t[r][i]);return e},a=function(t,e){for(var r=[],n=0,i=e.length;n<i;n+=t)r.push(e.slice(n,n+t));return r};t.exports={generate:r,replicate:n,concat:i,flatten:o,chunksOf:a}},function(t,e,r){var n=r(71).keccak256,i=r(127),o=function(t,e){var r=i.reverse(i.pad(6,i.fromNumber(t))),o=i.flatten([r,"0x0000",e]);return n(o).slice(2)},a=function t(e){"string"===typeof e&&"0x"!==e.slice(0,2)?e=i.fromString(e):"string"!==typeof e&&void 0!==e.length&&(e=i.fromUint8Array(e));var r=i.length(e);if(r<=4096)return o(r,e);for(var n=4096;128*n<r;)n*=128;for(var a=[],s=0;s<r;s+=n){var u=n<r-s?n:r-s;a.push(t(i.slice(e,s,s+u)))}return o(r,i.flatten(a))};t.exports=a},function(t,e){var r=function(t){return function(){return new Promise(function(e,r){var n=function(r){var n={},i=r.target.files.length,o=0;[].map.call(r.target.files,function(r){var a=new FileReader;a.onload=function(a){var s=new Uint8Array(a.target.result);if("directory"===t){var u=r.webkitRelativePath;n[u.slice(u.indexOf("/")+1)]={type:"text/plain",data:s},++o===i&&e(n)}else if("file"===t){var c=r.webkitRelativePath;e({type:mimetype.lookup(c),data:s})}else e(s)},a.readAsArrayBuffer(r)})},i=void 0;"directory"===t?(i=document.createElement("input"),i.addEventListener("change",n),i.type="file",i.webkitdirectory=!0,i.mozdirectory=!0,i.msdirectory=!0,i.odirectory=!0,i.directory=!0):(i=document.createElement("input"),i.addEventListener("change",n),i.type="file");var o=document.createEvent("MouseEvents");o.initEvent("click",!0,!1),i.dispatchEvent(o)})}};t.exports={data:r("data"),file:r("file"),directory:r("directory")}},function(t,e){t.exports=function(t){var e=t.fsp,r=t.files,n=t.os,i=t.path,o=t.child_process,a=t.mimetype,s=t.defaultArchives,u=t.request,c=t.downloadUrl,f=t.bytes,h=t.hash,l=t.pick,d=function(t){return function(e){return function(r){return r[t]=e,r}}},p=function(t){return function(e){for(var r={},n=0,i=t.length;n<i;++n)r[t[n]]=e[n];return r}},m=function(t){return function(e){var r={};for(var n in t)r[n]=t[n];for(var i in e)r[i]=e[i];return r}},b=function(t){return function(e){if(t.length!==e.length)return!1;var r=0;for(t.length;r<t;++r)if(t[r]!==e[r])return!1;return!0}},v=function(t){return function(e){return t+"/bzzr:/"+e}},y=function(t){return function(e){return u(v(t)(e),{responseType:"arraybuffer"}).then(function(t){var e=new Uint8Array(t),r=[52,48,52,32,112,97,103,101,32,110,111,116,32,102,111,117,110,100,10];if(b(e)(r))throw"Error 404.";return e})}},g=function(t){return function(e){return function e(r){return function(n){return function(i){var o=function(t){return{type:t.contentType,hash:t.hash}},a=function(t){return void 0===t.path?Promise.resolve():"application/bzz-manifest+json"===t.contentType?e(t.hash)(n+t.path)(i):Promise.resolve(d(n+t.path)(o(t))(i))};return y(t)(r).then(function(t){return JSON.parse(U(t)).entries}).then(function(t){return Promise.all(t.map(a))}).then(function(){return i})}}}(e)("")({})}},_=function(t){return function(e){return g(t)(e).then(function(t){return p(Object.keys(t))(Object.keys(t).map(function(e){return t[e].hash}))})}},w=function(t){return function(e){return g(t)(e).then(function(e){var r=Object.keys(e),n=r.map(function(t){return e[t].hash}),i=r.map(function(t){return e[t].type}),o=n.map(y(t)),a=function(t){return t.map(function(t,e){return{type:i[e],data:t}})};return Promise.all(o).then(function(t){return p(r)(a(t))})})}},M=function(t){return function(e){return function(n){return r.download(v(t)(e))(n)}}},k=function(t){return function(e){return function(r){return _(t)(e).then(function(e){var n=[];for(var o in e)if(o.length>0){var a=i.join(r,o);n.push(M(t)(e[o])(a))}return Promise.all(n).then(function(){return r})})}}},E=function(t){return function(e){return u(t+"/bzzr:/",{body:"string"===typeof e?q(e):e,method:"POST"})}},x=function(t){return function(e){return function(r){return function(n){return function i(o){var a="/"===r[0]?r:"/"+r,s=t+"/bzz:/"+e+a,c={method:"PUT",headers:{"Content-Type":n.type},body:n.data};return u(s,c).then(function(t){if(-1!==t.indexOf("error"))throw t;return t}).catch(function(t){return o>0&&i(o-1)})}(3)}}}},S=function(t){return function(e){return C(t)({"":e})}},A=function(t){return function(r){return e.readFile(r).then(function(e){return S(t)({type:a.lookup(r),data:e})})}},C=function(t){return function(e){return E(t)("{}").then(function(r){var n=function(r){return function(n){return x(t)(n)(r)(e[r])}},i=function(t,e){return t.then(n(e))};return Object.keys(e).reduce(i,Promise.resolve(r))})}},T=function(t){return function(r){return e.readFile(r).then(E(t))}},I=function(t){return function(n){return function(i){return r.directoryTree(i).then(function(t){return Promise.all(t.map(function(t){return e.readFile(t)})).then(function(e){var r=t.map(function(t){return t.slice(i.length)}),n=t.map(function(t){return a.lookup(t)||"text/plain"});return p(r)(e.map(function(t,e){return{type:n[e],data:t}}))})}).then(function(t){return m(n?{"":t[n]}:{})(t)}).then(C(t))}}},P=function(t){return function(e){if("data"===e.pick)return l.data().then(E(t));if("file"===e.pick)return l.file().then(S(t));if("directory"===e.pick)return l.directory().then(C(t));if(e.path)switch(e.kind){case"data":return T(t)(e.path);case"file":return A(t)(e.path);case"directory":return I(t)(e.defaultFile)(e.path)}else{if(e.length||"string"===typeof e)return E(t)(e);if(e instanceof Object)return C(t)(e)}return Promise.reject(new Error("Bad arguments"))}},R=function(t){return function(e){return function(r){return F(t)(e).then(function(n){return n?r?k(t)(e)(r):w(t)(e):r?M(t)(e)(r):y(t)(e)})}}},O=function(t,e){var i=n.platform().replace("win32","windows")+"-"+("x64"===n.arch()?"amd64":"386"),o=(e||s)[i],a=c+o.archive+".tar.gz",u=o.archiveMD5,f=o.binaryMD5;return r.safeDownloadArchived(a)(u)(f)(t)},j=function(t){return new Promise(function(e,r){var n=o.spawn,i=function(t){return function(e){return-1!==(""+e).indexOf(t)}},a=t.account,s=t.password,u=t.dataDir,c=t.ensApi,f=t.privateKey,h=0,l=n(t.binPath,["--bzzaccount",a||f,"--datadir",u,"--ens-api",c]),d=function(t){0===h&&i("Passphrase")(t)?setTimeout(function(){h=1,l.stdin.write(s+"\n")},500):i("Swarm http proxy started")(t)&&(h=2,clearTimeout(m),e(l))};l.stdout.on("data",d),l.stderr.on("data",d);var p=function(){return r(new Error("Couldn't start swarm process."))},m=setTimeout(p,2e4)})},N=function(t){return new Promise(function(e,r){t.stderr.removeAllListeners("data"),t.stdout.removeAllListeners("data"),t.stdin.removeAllListeners("error"),t.removeAllListeners("error"),t.removeAllListeners("exit"),t.kill("SIGINT");var n=setTimeout(function(){return t.kill("SIGKILL")},8e3);t.once("close",function(){clearTimeout(n),e()})})},B=function(t){return function(e){return L("http://localhost:8500").then(function(r){return r?e(z("http://localhost:8500")).then(function(){}):O(t.binPath,t.archives).onData(function(e){return(t.onProgress||function(){})(e.length)}).then(function(){return j(t)}).then(function(t){return e(z("http://localhost:8500")).then(function(){return t})}).then(N)})}},L=function(t){return E(t)("test").then(function(t){return"c9a99c7d326dcc6316f32fe2625b311f6dc49a175e6877681ded93137d3569e7"===t}).catch(function(){return!1})},F=function(t){return function(e){return y(t)(e).then(function(t){try{return!!JSON.parse(U(t)).entries}catch(t){return!1}})}},D=function(t){return function(e,r,n,i,o){var a;return"undefined"!==typeof e&&(a=t(e)),"undefined"!==typeof r&&(a=t(r)),"undefined"!==typeof n&&(a=t(n)),"undefined"!==typeof i&&(a=t(i)),"undefined"!==typeof o&&(a=t(o)),a}},U=function(t){return f.toString(f.fromUint8Array(t))},q=function(t){return f.toUint8Array(f.fromString(t))},z=function(t){return{download:function(e,r){return R(t)(e)(r)},downloadData:D(y(t)),downloadDataToDisk:D(M(t)),downloadDirectory:D(w(t)),downloadDirectoryToDisk:D(k(t)),downloadEntries:D(g(t)),downloadRoutes:D(_(t)),isAvailable:function(){return L(t)},upload:function(e){return P(t)(e)},uploadData:D(E(t)),uploadFile:D(S(t)),uploadFileFromDisk:D(S(t)),uploadDataFromDisk:D(T(t)),uploadDirectory:D(C(t)),uploadDirectoryFromDisk:D(I(t)),uploadToManifest:D(x(t)),pick:l,hash:h,fromString:q,toString:U}};return{at:z,local:B,download:R,downloadBinary:O,downloadData:y,downloadDataToDisk:M,downloadDirectory:w,downloadDirectoryToDisk:k,downloadEntries:g,downloadRoutes:_,isAvailable:L,startProcess:j,stopProcess:N,upload:P,uploadData:E,uploadDataFromDisk:T,uploadFile:S,uploadFileFromDisk:A,uploadDirectory:C,uploadDirectoryFromDisk:I,uploadToManifest:x,pick:l,hash:h,fromString:q,toString:U}}},function(t,e,r){"use strict";function n(t){return new Promise(function(t,e){var r={keyBytes:32,ivBytes:16};o.a.create(r);o.a.create(r,function(e){var r={},n=s()(20,!1);o.a.dump(n,e.privateKey,e.salt,e.iv,r,function(e){t({jsonStore:e,password:n})})})})}e.a=n;var i=r(343),o=r.n(i),a=r(362),s=r.n(a)},function(t,e,r){"use strict";(function(e,n){function i(t){return"function"===typeof t}function o(t){return l("keccak256").update(t).digest()}var a=r(128),s=r(129),u=r(26),c=r(344),f=r(345),h=r(347),l=r(355),d=r(361);t.exports={version:"1.0.2",browser:"undefined"===typeof e||!e.nextTick||Boolean(e.browser),crypto:u,constants:{quiet:!1,cipher:"aes-128-ctr",ivBytes:16,keyBytes:32,pbkdf2:{c:262144,dklen:32,hash:"sha256",prf:"hmac-sha256"},scrypt:{memory:28e7,dklen:32,n:262144,r:1,p:8}},isHex:function(t){return!(t.length%2!==0||!t.match(/^[0-9a-f]+$/i))},isBase64:function(t){var e;return!(t.length%4>0||t.match(/[^0-9a-z+\/=]/i))&&!(-1!==(e=t.indexOf("="))&&!t.slice(e).match(/={1,2}/))},str2buf:function(t,e){return t&&t.constructor===String?(!e&&this.isHex(t)&&(e="hex"),!e&&this.isBase64(t)&&(e="base64"),n.from(t,e)):t},isCipherAvailable:function(t){return u.getCiphers().some(function(e){return e===t})},encrypt:function(t,e,r,i){var o,a;if(i=i||this.constants.cipher,!this.isCipherAvailable(i))throw new Error(i+" is not available");return o=u.createCipheriv(i,this.str2buf(e),this.str2buf(r)),a=o.update(this.str2buf(t)),n.concat([a,o.final()])},decrypt:function(t,e,r,i){var o,a;if(i=i||this.constants.cipher,!this.isCipherAvailable(i))throw new Error(i+" is not available");return o=u.createDecipheriv(i,this.str2buf(e),this.str2buf(r)),a=o.update(this.str2buf(t)),n.concat([a,o.final()])},privateKeyToAddress:function(t){var e,r;return e=this.str2buf(t),e.length<32&&(e=n.concat([n.alloc(32-e.length,0),e])),r=h.publicKeyCreate(e,!1).slice(1),"0x"+o(r).slice(-20).toString("hex")},getMAC:function(t,e){if(void 0!==t&&null!==t&&void 0!==e&&null!==e)return o(n.concat([this.str2buf(t).slice(16,32),this.str2buf(e)])).toString("hex")},deriveKey:function(t,e,r,o){var a,s=this;if("undefined"===typeof t||null===t||!e)throw new Error("Must provide password and salt to derive a key");if(r=r||{},r.kdfparams=r.kdfparams||{},t=this.str2buf(t,"utf8"),e=this.str2buf(e),"scrypt"===r.kdf){if(i(d)&&(d=d(r.kdfparams.memory||s.constants.scrypt.memory)),!i(o))return n.from(d.to_hex(d.crypto_scrypt(t,e,r.kdfparams.n||this.constants.scrypt.n,r.kdfparams.r||this.constants.scrypt.r,r.kdfparams.p||this.constants.scrypt.p,r.kdfparams.dklen||this.constants.scrypt.dklen)),"hex");setTimeout(function(){o(n.from(d.to_hex(d.crypto_scrypt(t,e,r.kdfparams.n||s.constants.scrypt.n,r.kdfparams.r||s.constants.scrypt.r,r.kdfparams.p||s.constants.scrypt.p,r.kdfparams.dklen||s.constants.scrypt.dklen)),"hex"))},0)}else{if(a=r.kdfparams.prf||this.constants.pbkdf2.prf,"hmac-sha256"===a&&(a="sha256"),!i(o))return this.crypto.pbkdf2Sync?u.pbkdf2Sync(t,e,r.kdfparams.c||this.constants.pbkdf2.c,r.kdfparams.dklen||this.constants.pbkdf2.dklen,a):n.from(c.codec.hex.fromBits(c.misc.pbkdf2(t.toString("utf8"),c.codec.hex.toBits(e.toString("hex")),r.kdfparams.c||s.constants.pbkdf2.c,8*(r.kdfparams.dklen||s.constants.pbkdf2.dklen))),"hex");this.crypto.pbkdf2?u.pbkdf2(t,e,r.kdfparams.c||this.constants.pbkdf2.c,r.kdfparams.dklen||this.constants.pbkdf2.dklen,a,function(t,e){if(t)return o(t);o(e)}):setTimeout(function(){o(n.from(c.codec.hex.fromBits(c.misc.pbkdf2(t.toString("utf8"),c.codec.hex.toBits(e.toString("hex")),r.kdfparams.c||s.constants.pbkdf2.c,8*(r.kdfparams.dklen||s.constants.pbkdf2.dklen))),"hex"))},0)}},create:function(t,e){function r(r){var i=r.slice(0,n);return h.privateKeyVerify(i)?{privateKey:i,iv:r.slice(n,n+o),salt:r.slice(n+o)}:a.create(t,e)}var n,o,a=this;if(t=t||{},n=t.keyBytes||this.constants.keyBytes,o=t.ivBytes||this.constants.ivBytes,!i(e))return r(u.randomBytes(n+o+n));u.randomBytes(n+o+n,function(t,n){if(t)return e(t);e(r(n))})},marshal:function(t,e,r,n,i){var o,a,s;return i=i||{},i.kdfparams=i.kdfparams||{},s=i.cipher||this.constants.cipher,o=this.encrypt(e,t.slice(0,16),n,s).toString("hex"),a={address:this.privateKeyToAddress(e).slice(2),crypto:{cipher:i.cipher||this.constants.cipher,ciphertext:o,cipherparams:{iv:n.toString("hex")},mac:this.getMAC(t,o)},id:f.v4(),version:3},"scrypt"===i.kdf?(a.crypto.kdf="scrypt",a.crypto.kdfparams={dklen:i.kdfparams.dklen||this.constants.scrypt.dklen,n:i.kdfparams.n||this.constants.scrypt.n,r:i.kdfparams.r||this.constants.scrypt.r,p:i.kdfparams.p||this.constants.scrypt.p,salt:r.toString("hex")}):(a.crypto.kdf="pbkdf2",a.crypto.kdfparams={c:i.kdfparams.c||this.constants.pbkdf2.c,dklen:i.kdfparams.dklen||this.constants.pbkdf2.dklen,prf:i.kdfparams.prf||this.constants.pbkdf2.prf,salt:r.toString("hex")}),a},dump:function(t,e,r,n,o,a){if(o=o||{},n=this.str2buf(n),e=this.str2buf(e),!i(a))return this.marshal(this.deriveKey(t,r,o),e,r,n,o);this.deriveKey(t,r,o,function(t){a(this.marshal(t,e,r,n,o))}.bind(this))},recover:function(t,e,r){function n(t,r,n,i,s){var u;if(h.getMAC(t,i)!==a.mac)throw new Error("message authentication code mismatch");return u="1"===e.version?o(t.slice(0,16)).slice(0,16):t.slice(0,16),h.decrypt(i,u,n,s)}var a,s,u,c,f,h=this;if(a=e.Crypto||e.crypto,s=this.str2buf(a.cipherparams.iv),u=this.str2buf(a.kdfparams.salt),c=this.str2buf(a.ciphertext),f=a.cipher,"pbkdf2"===a.kdf&&"hmac-sha256"!==a.kdfparams.prf)throw new Error("PBKDF2 only supported with HMAC-SHA256");if(!i(r))return n(this.deriveKey(t,u,a),u,s,c,f);this.deriveKey(t,u,a,function(t){r(n(t,u,s,c,f))})},generateKeystoreFilename:function(t){var r="UTC--"+(new Date).toISOString()+"--"+t;return"win32"===e.platform&&(r=r.split(":").join("-")),r},exportToFile:function(t,e,r){function n(t){f.constants.quiet||console.log("Saved to file:\n"+t+"\nTo use with geth, copy this file to your Ethereum keystore folder (usually ~/.ethereum/keystore).")}var o,u,c,f=this;return e=e||"keystore",o=this.generateKeystoreFilename(t.address),u=a.join(e,o),c=JSON.stringify(t),this.browser?i(r)?r(c):c:i(r)?void s.writeFile(u,c,function(t){if(t)throw t;n(u),r(u)}):(s.writeFileSync(u,c),n(u),u)},importFromFile:function(t,e,r){function n(t,e,r){var n,i,o=null;for(n=0,i=r.length;n<i;++n)if(r[n].indexOf(e)>-1){o=a.join(t,r[n]),s.lstatSync(o).isDirectory()&&(o=a.join(o,r[n]));break}return o}var o,u;if(t=t.replace("0x",""),this.browser)throw new Error("method only available in Node.js");if(e=e||a.join(Object({NODE_ENV:"production",PUBLIC_URL:"/oracles-dapps-keys-generation"}).HOME,".ethereum"),o=a.join(e,"keystore"),!i(r)){if(!(u=n(o,t,s.readdirSync(o))))throw new Error("could not find key file for address "+t);return JSON.parse(s.readFileSync(u))}s.readdir(o,function(e,i){var a;return e?r(e):(a=n(o,t,i),a?r(JSON.parse(s.readFileSync(a))):new Error("could not find key file for address "+t))})}}}).call(e,r(8),r(0).Buffer)},function(t,e,r){"use strict";function n(t,e,r){if(4!==e.length)throw new l.exception.invalid("invalid aes block size");var n=t.b[r],i=e[0]^n[0],o=e[r?3:1]^n[1],a=e[2]^n[2];e=e[r?1:3]^n[3];var s,u,c,f,h=n.length/4-2,d=4,p=[0,0,0,0];s=t.s[r],t=s[0];var m=s[1],b=s[2],v=s[3],y=s[4];for(f=0;f<h;f++)s=t[i>>>24]^m[o>>16&255]^b[a>>8&255]^v[255&e]^n[d],u=t[o>>>24]^m[a>>16&255]^b[e>>8&255]^v[255&i]^n[d+1],c=t[a>>>24]^m[e>>16&255]^b[i>>8&255]^v[255&o]^n[d+2],e=t[e>>>24]^m[i>>16&255]^b[o>>8&255]^v[255&a]^n[d+3],d+=4,i=s,o=u,a=c;for(f=0;4>f;f++)p[r?3&-f:f]=y[i>>>24]<<24^y[o>>16&255]<<16^y[a>>8&255]<<8^y[255&e]^n[d++],s=i,i=o,o=a,a=e,e=s;return p}function i(t,e){var r,n,i,o=t.F,a=t.b,s=o[0],u=o[1],c=o[2],f=o[3],h=o[4],l=o[5],d=o[6],p=o[7];for(r=0;64>r;r++)16>r?n=e[r]:(n=e[r+1&15],i=e[r+14&15],n=e[15&r]=(n>>>7^n>>>18^n>>>3^n<<25^n<<14)+(i>>>17^i>>>19^i>>>10^i<<15^i<<13)+e[15&r]+e[r+9&15]|0),n=n+p+(h>>>6^h>>>11^h>>>25^h<<26^h<<21^h<<7)+(d^h&(l^d))+a[r],p=d,d=l,l=h,h=f+n|0,f=c,c=u,u=s,s=n+(u&c^f&(u^c))+(u>>>2^u>>>13^u>>>22^u<<30^u<<19^u<<10)|0;o[0]=o[0]+s|0,o[1]=o[1]+u|0,o[2]=o[2]+c|0,o[3]=o[3]+f|0,o[4]=o[4]+h|0,o[5]=o[5]+l|0,o[6]=o[6]+d|0,o[7]=o[7]+p|0}function o(t,e){var r,n=l.random.K[t],i=[];for(r in n)n.hasOwnProperty(r)&&i.push(n[r]);for(r=0;r<i.length;r++)i[r](e)}function a(t,e){"undefined"!==typeof window&&window.performance&&"function"===typeof window.performance.now?t.addEntropy(window.performance.now(),e,"loadtime"):t.addEntropy((new Date).valueOf(),e,"loadtime")}function s(t){t.b=u(t).concat(u(t)),t.L=new l.cipher.aes(t.b)}function u(t){for(var e=0;4>e&&(t.h[e]=t.h[e]+1|0,!t.h[e]);e++);return t.L.encrypt(t.h)}function c(t,e){return function(){e.apply(t,arguments)}}var f,h,l={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(t){this.toString=function(){return"CORRUPT: "+this.message},this.message=t},invalid:function(t){this.toString=function(){return"INVALID: "+this.message},this.message=t},bug:function(t){this.toString=function(){return"BUG: "+this.message},this.message=t},notReady:function(t){this.toString=function(){return"NOT READY: "+this.message},this.message=t}}};l.cipher.aes=function(t){this.s[0][0][0]||this.O();var e,r,n,i,o=this.s[0][4],a=this.s[1];e=t.length;var s=1;if(4!==e&&6!==e&&8!==e)throw new l.exception.invalid("invalid aes key size");for(this.b=[n=t.slice(0),i=[]],t=e;t<4*e+28;t++)r=n[t-1],(0===t%e||8===e&&4===t%e)&&(r=o[r>>>24]<<24^o[r>>16&255]<<16^o[r>>8&255]<<8^o[255&r],0===t%e&&(r=r<<8^r>>>24^s<<24,s=s<<1^283*(s>>7))),n[t]=n[t-e]^r;for(e=0;t;e++,t--)r=n[3&e?t:t-4],i[e]=4>=t||4>e?r:a[0][o[r>>>24]]^a[1][o[r>>16&255]]^a[2][o[r>>8&255]]^a[3][o[255&r]]},l.cipher.aes.prototype={encrypt:function(t){return n(this,t,0)},decrypt:function(t){return n(this,t,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var t,e,r,n,i,o,a,s=this.s[0],u=this.s[1],c=s[4],f=u[4],h=[],l=[];for(t=0;256>t;t++)l[(h[t]=t<<1^283*(t>>7))^t]=t;for(e=r=0;!c[e];e^=n||1,r=l[r]||1)for(o=r^r<<1^r<<2^r<<3^r<<4,o=o>>8^255&o^99,c[e]=o,f[o]=e,i=h[t=h[n=h[e]]],a=16843009*i^65537*t^257*n^16843008*e,i=257*h[o]^16843008*o,t=0;4>t;t++)s[t][e]=i=i<<24^i>>>8,u[t][o]=a=a<<24^a>>>8;for(t=0;5>t;t++)s[t]=s[t].slice(0),u[t]=u[t].slice(0)}},l.bitArray={bitSlice:function(t,e,r){return t=l.bitArray.$(t.slice(e/32),32-(31&e)).slice(1),void 0===r?t:l.bitArray.clamp(t,r-e)},extract:function(t,e,r){var n=Math.floor(-e-r&31);return(-32&(e+r-1^e)?t[e/32|0]<<32-n^t[e/32+1|0]>>>n:t[e/32|0]>>>n)&(1<<r)-1},concat:function(t,e){if(0===t.length||0===e.length)return t.concat(e);var r=t[t.length-1],n=l.bitArray.getPartial(r);return 32===n?t.concat(e):l.bitArray.$(e,n,0|r,t.slice(0,t.length-1))},bitLength:function(t){var e=t.length;return 0===e?0:32*(e-1)+l.bitArray.getPartial(t[e-1])},clamp:function(t,e){if(32*t.length<e)return t;t=t.slice(0,Math.ceil(e/32));var r=t.length;return e&=31,0<r&&e&&(t[r-1]=l.bitArray.partial(e,t[r-1]&2147483648>>e-1,1)),t},partial:function(t,e,r){return 32===t?e:(r?0|e:e<<32-t)+1099511627776*t},getPartial:function(t){return Math.round(t/1099511627776)||32},equal:function(t,e){if(l.bitArray.bitLength(t)!==l.bitArray.bitLength(e))return!1;var r,n=0;for(r=0;r<t.length;r++)n|=t[r]^e[r];return 0===n},$:function(t,e,r,n){var i;for(i=0,void 0===n&&(n=[]);32<=e;e-=32)n.push(r),r=0;if(0===e)return n.concat(t);for(i=0;i<t.length;i++)n.push(r|t[i]>>>e),r=t[i]<<32-e;return i=t.length?t[t.length-1]:0,t=l.bitArray.getPartial(i),n.push(l.bitArray.partial(e+t&31,32<e+t?r:n.pop(),1)),n},i:function(t,e){return[t[0]^e[0],t[1]^e[1],t[2]^e[2],t[3]^e[3]]},byteswapM:function(t){var e,r;for(e=0;e<t.length;++e)r=t[e],t[e]=r>>>24|r>>>8&65280|(65280&r)<<8|r<<24;return t}},l.codec.utf8String={fromBits:function(t){var e,r,n="",i=l.bitArray.bitLength(t);for(e=0;e<i/8;e++)0===(3&e)&&(r=t[e/4]),n+=String.fromCharCode(r>>>24),r<<=8;return decodeURIComponent(escape(n))},toBits:function(t){t=unescape(encodeURIComponent(t));var e,r=[],n=0;for(e=0;e<t.length;e++)n=n<<8|t.charCodeAt(e),3===(3&e)&&(r.push(n),n=0);return 3&e&&r.push(l.bitArray.partial(8*(3&e),n)),r}},l.codec.hex={fromBits:function(t){var e,r="";for(e=0;e<t.length;e++)r+=(0xf00000000000+(0|t[e])).toString(16).substr(4);return r.substr(0,l.bitArray.bitLength(t)/4)},toBits:function(t){var e,r,n=[];for(t=t.replace(/\s|0x/g,""),r=t.length,t+="00000000",e=0;e<t.length;e+=8)n.push(0^parseInt(t.substr(e,8),16));return l.bitArray.clamp(n,4*r)}},l.codec.base32={B:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",X:"0123456789ABCDEFGHIJKLMNOPQRSTUV",BITS:32,BASE:5,REMAINING:27,fromBits:function(t,e,r){var n=l.codec.base32.BASE,i=l.codec.base32.REMAINING,o="",a=0,s=l.codec.base32.B,u=0,c=l.bitArray.bitLength(t);for(r&&(s=l.codec.base32.X),r=0;o.length*n<c;)o+=s.charAt((u^t[r]>>>a)>>>i),a<n?(u=t[r]<<n-a,a+=i,r++):(u<<=n,a-=n);for(;7&o.length&&!e;)o+="=";return o},toBits:function(t,e){t=t.replace(/\s|=/g,"").toUpperCase();var r,n,i=l.codec.base32.BITS,o=l.codec.base32.BASE,a=l.codec.base32.REMAINING,s=[],u=0,c=l.codec.base32.B,f=0,h="base32";for(e&&(c=l.codec.base32.X,h="base32hex"),r=0;r<t.length;r++){if(0>(n=c.indexOf(t.charAt(r)))){if(!e)try{return l.codec.base32hex.toBits(t)}catch(t){}throw new l.exception.invalid("this isn't "+h+"!")}u>a?(u-=a,s.push(f^n>>>u),f=n<<i-u):(u+=o,f^=n<<i-u)}return 56&u&&s.push(l.bitArray.partial(56&u,f,1)),s}},l.codec.base32hex={fromBits:function(t,e){return l.codec.base32.fromBits(t,e,1)},toBits:function(t){return l.codec.base32.toBits(t,1)}},l.codec.base64={B:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fromBits:function(t,e,r){var n="",i=0,o=l.codec.base64.B,a=0,s=l.bitArray.bitLength(t);for(r&&(o=o.substr(0,62)+"-_"),r=0;6*n.length<s;)n+=o.charAt((a^t[r]>>>i)>>>26),6>i?(a=t[r]<<6-i,i+=26,r++):(a<<=6,i-=6);for(;3&n.length&&!e;)n+="=";return n},toBits:function(t,e){t=t.replace(/\s|=/g,"");var r,n,i=[],o=0,a=l.codec.base64.B,s=0;for(e&&(a=a.substr(0,62)+"-_"),r=0;r<t.length;r++){if(0>(n=a.indexOf(t.charAt(r))))throw new l.exception.invalid("this isn't base64!");26<o?(o-=26,i.push(s^n>>>o),s=n<<32-o):(o+=6,s^=n<<32-o)}return 56&o&&i.push(l.bitArray.partial(56&o,s,1)),i}},l.codec.base64url={fromBits:function(t){return l.codec.base64.fromBits(t,1,1)},toBits:function(t){return l.codec.base64.toBits(t,1)}},l.hash.sha256=function(t){this.b[0]||this.O(),t?(this.F=t.F.slice(0),this.A=t.A.slice(0),this.l=t.l):this.reset()},l.hash.sha256.hash=function(t){return(new l.hash.sha256).update(t).finalize()},l.hash.sha256.prototype={blockSize:512,reset:function(){return this.F=this.Y.slice(0),this.A=[],this.l=0,this},update:function(t){"string"===typeof t&&(t=l.codec.utf8String.toBits(t));var e,r=this.A=l.bitArray.concat(this.A,t);if(e=this.l,9007199254740991<(t=this.l=e+l.bitArray.bitLength(t)))throw new l.exception.invalid("Cannot hash more than 2^53 - 1 bits");if("undefined"!==typeof Uint32Array){var n=new Uint32Array(r),o=0;for(e=512+e-(512+e&511);e<=t;e+=512)i(this,n.subarray(16*o,16*(o+1))),o+=1;r.splice(0,16*o)}else for(e=512+e-(512+e&511);e<=t;e+=512)i(this,r.splice(0,16));return this},finalize:function(){var t,e=this.A,r=this.F,e=l.bitArray.concat(e,[l.bitArray.partial(1,1)]);for(t=e.length+2;15&t;t++)e.push(0);for(e.push(Math.floor(this.l/4294967296)),e.push(0|this.l);e.length;)i(this,e.splice(0,16));return this.reset(),r},Y:[],b:[],O:function(){function t(t){return 4294967296*(t-Math.floor(t))|0}for(var e,r,n=0,i=2;64>n;i++){for(r=!0,e=2;e*e<=i;e++)if(0===i%e){r=!1;break}r&&(8>n&&(this.Y[n]=t(Math.pow(i,.5))),this.b[n]=t(Math.pow(i,1/3)),n++)}}},l.mode.ccm={name:"ccm",G:[],listenProgress:function(t){l.mode.ccm.G.push(t)},unListenProgress:function(t){-1<(t=l.mode.ccm.G.indexOf(t))&&l.mode.ccm.G.splice(t,1)},fa:function(t){var e,r=l.mode.ccm.G.slice();for(e=0;e<r.length;e+=1)r[e](t)},encrypt:function(t,e,r,n,i){var o,a=e.slice(0),s=l.bitArray,u=s.bitLength(r)/8,c=s.bitLength(a)/8;if(i=i||64,n=n||[],7>u)throw new l.exception.invalid("ccm: iv must be at least 7 bytes");for(o=2;4>o&&c>>>8*o;o++);return o<15-u&&(o=15-u),r=s.clamp(r,8*(15-o)),e=l.mode.ccm.V(t,e,r,n,i,o),a=l.mode.ccm.C(t,a,r,e,i,o),s.concat(a.data,a.tag)},decrypt:function(t,e,r,n,i){i=i||64,n=n||[];var o=l.bitArray,a=o.bitLength(r)/8,s=o.bitLength(e),u=o.clamp(e,s-i),c=o.bitSlice(e,s-i),s=(s-i)/8;if(7>a)throw new l.exception.invalid("ccm: iv must be at least 7 bytes");for(e=2;4>e&&s>>>8*e;e++);if(e<15-a&&(e=15-a),r=o.clamp(r,8*(15-e)),u=l.mode.ccm.C(t,u,r,c,i,e),t=l.mode.ccm.V(t,u.data,r,n,i,e),!o.equal(u.tag,t))throw new l.exception.corrupt("ccm: tag doesn't match");return u.data},na:function(t,e,r,n,i,o){var a=[],s=l.bitArray,u=s.i;if(n=[s.partial(8,(e.length?64:0)|n-2<<2|o-1)],n=s.concat(n,r),n[3]|=i,n=t.encrypt(n),e.length)for(r=s.bitLength(e)/8,65279>=r?a=[s.partial(16,r)]:4294967295>=r&&(a=s.concat([s.partial(16,65534)],[r])),a=s.concat(a,e),e=0;e<a.length;e+=4)n=t.encrypt(u(n,a.slice(e,e+4).concat([0,0,0])));return n},V:function(t,e,r,n,i,o){var a=l.bitArray,s=a.i;if((i/=8)%2||4>i||16<i)throw new l.exception.invalid("ccm: invalid tag length");if(4294967295<n.length||4294967295<e.length)throw new l.exception.bug("ccm: can't deal with 4GiB or more data");for(r=l.mode.ccm.na(t,n,r,i,a.bitLength(e)/8,o),n=0;n<e.length;n+=4)r=t.encrypt(s(r,e.slice(n,n+4).concat([0,0,0])));return a.clamp(r,8*i)},C:function(t,e,r,n,i,o){var a,s=l.bitArray;a=s.i;var u=e.length,c=s.bitLength(e),f=u/50,h=f;if(r=s.concat([s.partial(8,o-1)],r).concat([0,0,0]).slice(0,4),n=s.bitSlice(a(n,t.encrypt(r)),0,i),!u)return{tag:n,data:[]};for(a=0;a<u;a+=4)a>f&&(l.mode.ccm.fa(a/u),f+=h),r[3]++,i=t.encrypt(r),e[a]^=i[0],e[a+1]^=i[1],e[a+2]^=i[2],e[a+3]^=i[3];return{tag:n,data:s.clamp(e,c)}}},l.mode.ocb2={name:"ocb2",encrypt:function(t,e,r,n,i,o){if(128!==l.bitArray.bitLength(r))throw new l.exception.invalid("ocb iv must be 128 bits");var a,s=l.mode.ocb2.S,u=l.bitArray,c=u.i,f=[0,0,0,0];r=s(t.encrypt(r));var h,d=[];for(n=n||[],i=i||64,a=0;a+4<e.length;a+=4)h=e.slice(a,a+4),f=c(f,h),d=d.concat(c(r,t.encrypt(c(r,h)))),r=s(r);return h=e.slice(a),e=u.bitLength(h),a=t.encrypt(c(r,[0,0,0,e])),h=u.clamp(c(h.concat([0,0,0]),a),e),f=c(f,c(h.concat([0,0,0]),a)),f=t.encrypt(c(f,c(r,s(r)))),n.length&&(f=c(f,o?n:l.mode.ocb2.pmac(t,n))),d.concat(u.concat(h,u.clamp(f,i)))},decrypt:function(t,e,r,n,i,o){if(128!==l.bitArray.bitLength(r))throw new l.exception.invalid("ocb iv must be 128 bits");i=i||64;var a,s,u=l.mode.ocb2.S,c=l.bitArray,f=c.i,h=[0,0,0,0],d=u(t.encrypt(r)),p=l.bitArray.bitLength(e)-i,m=[];for(n=n||[],r=0;r+4<p/32;r+=4)a=f(d,t.decrypt(f(d,e.slice(r,r+4)))),h=f(h,a),m=m.concat(a),d=u(d);if(s=p-32*r,a=t.encrypt(f(d,[0,0,0,s])),a=f(a,c.clamp(e.slice(r),s).concat([0,0,0])),h=f(h,a),h=t.encrypt(f(h,f(d,u(d)))),n.length&&(h=f(h,o?n:l.mode.ocb2.pmac(t,n))),!c.equal(c.clamp(h,i),c.bitSlice(e,p)))throw new l.exception.corrupt("ocb: tag doesn't match");return m.concat(c.clamp(a,s))},pmac:function(t,e){var r,n=l.mode.ocb2.S,i=l.bitArray,o=i.i,a=[0,0,0,0],s=t.encrypt([0,0,0,0]),s=o(s,n(n(s)));for(r=0;r+4<e.length;r+=4)s=n(s),a=o(a,t.encrypt(o(s,e.slice(r,r+4))));return r=e.slice(r),128>i.bitLength(r)&&(s=o(s,n(s)),r=i.concat(r,[-2147483648,0,0,0])),a=o(a,r),t.encrypt(o(n(o(s,n(s))),a))},S:function(t){return[t[0]<<1^t[1]>>>31,t[1]<<1^t[2]>>>31,t[2]<<1^t[3]>>>31,t[3]<<1^135*(t[0]>>>31)]}},l.mode.gcm={name:"gcm",encrypt:function(t,e,r,n,i){var o=e.slice(0);return e=l.bitArray,n=n||[],t=l.mode.gcm.C(!0,t,o,n,r,i||128),e.concat(t.data,t.tag)},decrypt:function(t,e,r,n,i){var o=e.slice(0),a=l.bitArray,s=a.bitLength(o);if(i=i||128,n=n||[],i<=s?(e=a.bitSlice(o,s-i),o=a.bitSlice(o,0,s-i)):(e=o,o=[]),t=l.mode.gcm.C(!1,t,o,n,r,i),!a.equal(t.tag,e))throw new l.exception.corrupt("gcm: tag doesn't match");return t.data},ka:function(t,e){var r,n,i,o,a,s=l.bitArray.i;for(i=[0,0,0,0],o=e.slice(0),r=0;128>r;r++){for((n=0!==(t[Math.floor(r/32)]&1<<31-r%32))&&(i=s(i,o)),a=0!==(1&o[3]),n=3;0<n;n--)o[n]=o[n]>>>1|(1&o[n-1])<<31;o[0]>>>=1,a&&(o[0]^=-520093696)}return i},j:function(t,e,r){var n,i=r.length;for(e=e.slice(0),n=0;n<i;n+=4)e[0]^=4294967295&r[n],e[1]^=4294967295&r[n+1],e[2]^=4294967295&r[n+2],e[3]^=4294967295&r[n+3],e=l.mode.gcm.ka(e,t);return e},C:function(t,e,r,n,i,o){var a,s,u,c,f,h,d,p,m=l.bitArray;for(h=r.length,d=m.bitLength(r),p=m.bitLength(n),s=m.bitLength(i),a=e.encrypt([0,0,0,0]),96===s?(i=i.slice(0),i=m.concat(i,[1])):(i=l.mode.gcm.j(a,[0,0,0,0],i),i=l.mode.gcm.j(a,i,[0,0,Math.floor(s/4294967296),4294967295&s])),s=l.mode.gcm.j(a,[0,0,0,0],n),f=i.slice(0),n=s.slice(0),t||(n=l.mode.gcm.j(a,s,r)),c=0;c<h;c+=4)f[3]++,u=e.encrypt(f),r[c]^=u[0],r[c+1]^=u[1],r[c+2]^=u[2],r[c+3]^=u[3];return r=m.clamp(r,d),t&&(n=l.mode.gcm.j(a,s,r)),t=[Math.floor(p/4294967296),4294967295&p,Math.floor(d/4294967296),4294967295&d],n=l.mode.gcm.j(a,n,t),u=e.encrypt(i),n[0]^=u[0],n[1]^=u[1],n[2]^=u[2],n[3]^=u[3],{tag:m.bitSlice(n,0,o),data:r}}},l.misc.hmac=function(t,e){this.W=e=e||l.hash.sha256;var r,n=[[],[]],i=e.prototype.blockSize/32;for(this.w=[new e,new e],t.length>i&&(t=e.hash(t)),r=0;r<i;r++)n[0][r]=909522486^t[r],n[1][r]=1549556828^t[r];this.w[0].update(n[0]),this.w[1].update(n[1]),this.R=new e(this.w[0])},l.misc.hmac.prototype.encrypt=l.misc.hmac.prototype.mac=function(t){if(this.aa)throw new l.exception.invalid("encrypt on already updated hmac called!");return this.update(t),this.digest(t)},l.misc.hmac.prototype.reset=function(){this.R=new this.W(this.w[0]),this.aa=!1},l.misc.hmac.prototype.update=function(t){this.aa=!0,this.R.update(t)},l.misc.hmac.prototype.digest=function(){var t=this.R.finalize(),t=new this.W(this.w[1]).update(t).finalize();return this.reset(),t},l.misc.pbkdf2=function(t,e,r,n,i){if(r=r||1e4,0>n||0>r)throw new l.exception.invalid("invalid params to pbkdf2");"string"===typeof t&&(t=l.codec.utf8String.toBits(t)),"string"===typeof e&&(e=l.codec.utf8String.toBits(e)),i=i||l.misc.hmac,t=new i(t);var o,a,s,u,c=[],f=l.bitArray;for(u=1;32*c.length<(n||1);u++){for(i=o=t.encrypt(f.concat(e,[u])),a=1;a<r;a++)for(o=t.encrypt(o),s=0;s<o.length;s++)i[s]^=o[s];c=c.concat(i)}return n&&(c=f.clamp(c,n)),c},l.prng=function(t){this.c=[new l.hash.sha256],this.m=[0],this.P=0,this.H={},this.N=0,this.U={},this.Z=this.f=this.o=this.ha=0,this.b=[0,0,0,0,0,0,0,0],this.h=[0,0,0,0],this.L=void 0,this.M=t,this.D=!1,this.K={progress:{},seeded:{}},this.u=this.ga=0,this.I=1,this.J=2,this.ca=65536,this.T=[0,48,64,96,128,192,256,384,512,768,1024],this.da=3e4,this.ba=80},l.prng.prototype={randomWords:function(t,e){var r,n=[];r=this.isReady(e);var i;if(r===this.u)throw new l.exception.notReady("generator isn't seeded");if(r&this.J){r=!(r&this.I),i=[];var o,a=0;for(this.Z=i[0]=(new Date).valueOf()+this.da,o=0;16>o;o++)i.push(4294967296*Math.random()|0);for(o=0;o<this.c.length&&(i=i.concat(this.c[o].finalize()),a+=this.m[o],this.m[o]=0,r||!(this.P&1<<o));o++);for(this.P>=1<<this.c.length&&(this.c.push(new l.hash.sha256),this.m.push(0)),this.f-=a,a>this.o&&(this.o=a),this.P++,this.b=l.hash.sha256.hash(this.b.concat(i)),this.L=new l.cipher.aes(this.b),r=0;4>r&&(this.h[r]=this.h[r]+1|0,!this.h[r]);r++);}for(r=0;r<t;r+=4)0===(r+1)%this.ca&&s(this),i=u(this),n.push(i[0],i[1],i[2],i[3]);return s(this),n.slice(0,t)},setDefaultParanoia:function(t,e){if(0===t&&"Setting paranoia=0 will ruin your security; use it only for testing"!==e)throw new l.exception.invalid("Setting paranoia=0 will ruin your security; use it only for testing");this.M=t},addEntropy:function(t,e,r){r=r||"user";var n,i,a=(new Date).valueOf(),s=this.H[r],u=this.isReady(),c=0;switch(n=this.U[r],void 0===n&&(n=this.U[r]=this.ha++),void 0===s&&(s=this.H[r]=0),this.H[r]=(this.H[r]+1)%this.c.length,typeof t){case"number":void 0===e&&(e=1),this.c[s].update([n,this.N++,1,e,a,1,0|t]);break;case"object":if("[object Uint32Array]"===(r=Object.prototype.toString.call(t))){for(i=[],r=0;r<t.length;r++)i.push(t[r]);t=i}else for("[object Array]"!==r&&(c=1),r=0;r<t.length&&!c;r++)"number"!==typeof t[r]&&(c=1);if(!c){if(void 0===e)for(r=e=0;r<t.length;r++)for(i=t[r];0<i;)e++,i>>>=1;this.c[s].update([n,this.N++,2,e,a,t.length].concat(t))}break;case"string":void 0===e&&(e=t.length),this.c[s].update([n,this.N++,3,e,a,t.length]),this.c[s].update(t);break;default:c=1}if(c)throw new l.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[s]+=e,this.f+=e,u===this.u&&(this.isReady()!==this.u&&o("seeded",Math.max(this.o,this.f)),o("progress",this.getProgress()))},isReady:function(t){return t=this.T[void 0!==t?t:this.M],this.o&&this.o>=t?this.m[0]>this.ba&&(new Date).valueOf()>this.Z?this.J|this.I:this.I:this.f>=t?this.J|this.u:this.u},getProgress:function(t){return t=this.T[t||this.M],this.o>=t?1:this.f>t?1:this.f/t},startCollectors:function(){if(!this.D){if(this.a={loadTimeCollector:c(this,this.ma),mouseCollector:c(this,this.oa),keyboardCollector:c(this,this.la),accelerometerCollector:c(this,this.ea),touchCollector:c(this,this.qa)},window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else{if(!document.attachEvent)throw new l.exception.bug("can't attach event");document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector)}this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(t,e){this.K[t][this.ga++]=e},removeEventListener:function(t,e){var r,n,i=this.K[t],o=[];for(n in i)i.hasOwnProperty(n)&&i[n]===e&&o.push(n);for(r=0;r<o.length;r++)n=o[r],delete i[n]},la:function(){a(this,1)},oa:function(t){var e,r;try{e=t.x||t.clientX||t.offsetX||0,r=t.y||t.clientY||t.offsetY||0}catch(t){r=e=0}0!=e&&0!=r&&this.addEntropy([e,r],2,"mouse"),a(this,0)},qa:function(t){t=t.touches[0]||t.changedTouches[0],this.addEntropy([t.pageX||t.clientX,t.pageY||t.clientY],1,"touch"),a(this,0)},ma:function(){a(this,2)},ea:function(t){if(t=t.accelerationIncludingGravity.x||t.accelerationIncludingGravity.y||t.accelerationIncludingGravity.z,window.orientation){var e=window.orientation;"number"===typeof e&&this.addEntropy(e,1,"accelerometer")}t&&this.addEntropy(t,2,"accelerometer"),a(this,0)}},l.random=new l.prng(6);t:try{var d,p,m,b;if(b="undefined"!==typeof t&&t.exports){var v;try{v=r(26)}catch(t){v=null}b=p=v}if(b&&p.randomBytes)d=p.randomBytes(128),d=new Uint32Array(new Uint8Array(d).buffer),l.random.addEntropy(d,1024,"crypto['randomBytes']");else if("undefined"!==typeof window&&"undefined"!==typeof Uint32Array){if(m=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(m);else{if(!window.msCrypto||!window.msCrypto.getRandomValues)break t;window.msCrypto.getRandomValues(m)}l.random.addEntropy(m,1024,"crypto['getRandomValues']")}}catch(t){"undefined"!==typeof window&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(t))}l.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(t,e,r,n){r=r||{},n=n||{};var i,o=l.json,a=o.g({iv:l.random.randomWords(4,0)},o.defaults);if(o.g(a,r),r=a.adata,"string"===typeof a.salt&&(a.salt=l.codec.base64.toBits(a.salt)),"string"===typeof a.iv&&(a.iv=l.codec.base64.toBits(a.iv)),!l.mode[a.mode]||!l.cipher[a.cipher]||"string"===typeof t&&100>=a.iter||64!==a.ts&&96!==a.ts&&128!==a.ts||128!==a.ks&&192!==a.ks&&256!==a.ks||2>a.iv.length||4<a.iv.length)throw new l.exception.invalid("json encrypt: invalid parameters");return"string"===typeof t?(i=l.misc.cachedPbkdf2(t,a),t=i.key.slice(0,a.ks/32),a.salt=i.salt):l.ecc&&t instanceof l.ecc.elGamal.publicKey&&(i=t.kem(),a.kemtag=i.tag,t=i.key.slice(0,a.ks/32)),"string"===typeof e&&(e=l.codec.utf8String.toBits(e)),"string"===typeof r&&(a.adata=r=l.codec.utf8String.toBits(r)),i=new l.cipher[a.cipher](t),o.g(n,a),n.key=t,a.ct="ccm"===a.mode&&l.arrayBuffer&&l.arrayBuffer.ccm&&e instanceof ArrayBuffer?l.arrayBuffer.ccm.encrypt(i,e,a.iv,r,a.ts):l.mode[a.mode].encrypt(i,e,a.iv,r,a.ts),a},encrypt:function(t,e,r,n){var i=l.json,o=i.ja.apply(i,arguments);return i.encode(o)},ia:function(t,e,r,n){r=r||{},n=n||{};var i=l.json;e=i.g(i.g(i.g({},i.defaults),e),r,!0);var o,a;if(o=e.adata,"string"===typeof e.salt&&(e.salt=l.codec.base64.toBits(e.salt)),"string"===typeof e.iv&&(e.iv=l.codec.base64.toBits(e.iv)),!l.mode[e.mode]||!l.cipher[e.cipher]||"string"===typeof t&&100>=e.iter||64!==e.ts&&96!==e.ts&&128!==e.ts||128!==e.ks&&192!==e.ks&&256!==e.ks||!e.iv||2>e.iv.length||4<e.iv.length)throw new l.exception.invalid("json decrypt: invalid parameters");return"string"===typeof t?(a=l.misc.cachedPbkdf2(t,e),t=a.key.slice(0,e.ks/32),e.salt=a.salt):l.ecc&&t instanceof l.ecc.elGamal.secretKey&&(t=t.unkem(l.codec.base64.toBits(e.kemtag)).slice(0,e.ks/32)),"string"===typeof o&&(o=l.codec.utf8String.toBits(o)),a=new l.cipher[e.cipher](t),o="ccm"===e.mode&&l.arrayBuffer&&l.arrayBuffer.ccm&&e.ct instanceof ArrayBuffer?l.arrayBuffer.ccm.decrypt(a,e.ct,e.iv,e.tag,o,e.ts):l.mode[e.mode].decrypt(a,e.ct,e.iv,o,e.ts),i.g(n,e),n.key=t,1===r.raw?o:l.codec.utf8String.fromBits(o)},decrypt:function(t,e,r,n){var i=l.json;return i.ia(t,i.decode(e),r,n)},encode:function(t){var e,r="{",n="";for(e in t)if(t.hasOwnProperty(e)){if(!e.match(/^[a-z0-9]+$/i))throw new l.exception.invalid("json encode: invalid property name");switch(r+=n+'"'+e+'":',n=",",typeof t[e]){case"number":case"boolean":r+=t[e];break;case"string":r+='"'+escape(t[e])+'"';break;case"object":r+='"'+l.codec.base64.fromBits(t[e],0)+'"';break;default:throw new l.exception.bug("json encode: unsupported type")}}return r+"}"},decode:function(t){if(t=t.replace(/\s/g,""),!t.match(/^\{.*\}$/))throw new l.exception.invalid("json decode: this isn't json!");t=t.replace(/^\{|\}$/g,"").split(/,/);var e,r,n={};for(e=0;e<t.length;e++){if(!(r=t[e].match(/^\s*(?:(["']?)([a-z][a-z0-9]*)\1)\s*:\s*(?:(-?\d+)|"([a-z0-9+\/%*_.@=\-]*)"|(true|false))$/i)))throw new l.exception.invalid("json decode: this isn't json!");null!=r[3]?n[r[2]]=parseInt(r[3],10):null!=r[4]?n[r[2]]=r[2].match(/^(ct|adata|salt|iv)$/)?l.codec.base64.toBits(r[4]):unescape(r[4]):null!=r[5]&&(n[r[2]]="true"===r[5])}return n},g:function(t,e,r){if(void 0===t&&(t={}),void 0===e)return t;for(var n in e)if(e.hasOwnProperty(n)){if(r&&void 0!==t[n]&&t[n]!==e[n])throw new l.exception.invalid("required parameter overridden");t[n]=e[n]}return t},sa:function(t,e){var r,n={};for(r in t)t.hasOwnProperty(r)&&t[r]!==e[r]&&(n[r]=t[r]);return n},ra:function(t,e){var r,n={};for(r=0;r<e.length;r++)void 0!==t[e[r]]&&(n[e[r]]=t[e[r]]);return n}},l.encrypt=l.json.encrypt,l.decrypt=l.json.decrypt,l.misc.pa={},l.misc.cachedPbkdf2=function(t,e){var r,n=l.misc.pa;return e=e||{},r=e.iter||1e3,n=n[t]=n[t]||{},r=n[r]=n[r]||{firstSalt:e.salt&&e.salt.length?e.salt.slice(0):l.random.randomWords(2,0)},n=void 0===e.salt?r.firstSalt:e.salt,r[n]=r[n]||l.misc.pbkdf2(t,n,e.iter),{key:r[n].slice(0),salt:n.slice(0)}},"undefined"!==typeof t&&t.exports&&(t.exports=l),f=[],void 0!==(h=function(){return l}.apply(e,f))&&(t.exports=h)},function(t,e,r){function n(t,e){var r=e||0,n=s;return n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]}function i(t,e,r){var i=e&&r||0,o=e||[];t=t||{};var a=void 0!==t.clockseq?t.clockseq:l,s=void 0!==t.msecs?t.msecs:(new Date).getTime(),u=void 0!==t.nsecs?t.nsecs:p+1,c=s-d+(u-p)/1e4;if(c<0&&void 0===t.clockseq&&(a=a+1&16383),(c<0||s>d)&&void 0===t.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=s,p=u,l=a,s+=122192928e5;var f=(1e4*(268435455&s)+u)%4294967296;o[i++]=f>>>24&255,o[i++]=f>>>16&255,o[i++]=f>>>8&255,o[i++]=255&f;var m=s/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++]=a>>>8|128,o[i++]=255&a;for(var b=t.node||h,v=0;v<6;++v)o[i+v]=b[v];return e||n(o)}function o(t,e,r){var i=e&&r||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null),t=t||{};var o=t.random||(t.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var s=0;s<16;++s)e[i+s]=o[s];return e||n(o)}for(var a=r(346),s=[],u={},c=0;c<256;++c)s[c]=(c+256).toString(16).substr(1),u[s[c]]=c;var f=a(),h=[1|f[0],f[1],f[2],f[3],f[4],f[5]],l=16383&(f[6]<<8|f[7]),d=0,p=0,m=o;m.v1=i,m.v4=o,t.exports=m},function(t,e,r){(function(e){var r,n=e.crypto||e.msCrypto;if(n&&n.getRandomValues){var i=new Uint8Array(16);r=function(){return n.getRandomValues(i),i}}if(!r){var o=new Array(16);r=function(){for(var t,e=0;e<16;e++)0===(3&e)&&(t=4294967296*Math.random()),o[e]=t>>>((3&e)<<3)&255;return o}}t.exports=r}).call(e,r(4))},function(t,e,r){"use strict";t.exports=r(348)(r(352))},function(t,e,r){"use strict";function n(t,e){return void 0===t?e:(i.isBoolean(t,a.COMPRESSED_TYPE_INVALID),t)}var i=r(349),o=r(350),a=r(130);t.exports=function(t){return{privateKeyVerify:function(e){return i.isBuffer(e,a.EC_PRIVATE_KEY_TYPE_INVALID),32===e.length&&t.privateKeyVerify(e)},privateKeyExport:function(e,r){i.isBuffer(e,a.EC_PRIVATE_KEY_TYPE_INVALID),i.isBufferLength(e,32,a.EC_PRIVATE_KEY_LENGTH_INVALID),r=n(r,!0);var s=t.privateKeyExport(e,r);return o.privateKeyExport(e,s,r)},privateKeyImport:function(e){if(i.isBuffer(e,a.EC_PRIVATE_KEY_TYPE_INVALID),(e=o.privateKeyImport(e))&&32===e.length&&t.privateKeyVerify(e))return e;throw new Error(a.EC_PRIVATE_KEY_IMPORT_DER_FAIL)},privateKeyTweakAdd:function(e,r){return i.isBuffer(e,a.EC_PRIVATE_KEY_TYPE_INVALID),i.isBufferLength(e,32,a.EC_PRIVATE_KEY_LENGTH_INVALID),i.isBuffer(r,a.TWEAK_TYPE_INVALID),i.isBufferLength(r,32,a.TWEAK_LENGTH_INVALID),t.privateKeyTweakAdd(e,r)},privateKeyTweakMul:function(e,r){return i.isBuffer(e,a.EC_PRIVATE_KEY_TYPE_INVALID),i.isBufferLength(e,32,a.EC_PRIVATE_KEY_LENGTH_INVALID),i.isBuffer(r,a.TWEAK_TYPE_INVALID),i.isBufferLength(r,32,a.TWEAK_LENGTH_INVALID),t.privateKeyTweakMul(e,r)},publicKeyCreate:function(e,r){return i.isBuffer(e,a.EC_PRIVATE_KEY_TYPE_INVALID),i.isBufferLength(e,32,a.EC_PRIVATE_KEY_LENGTH_INVALID),r=n(r,!0),t.publicKeyCreate(e,r)},publicKeyConvert:function(e,r){return i.isBuffer(e,a.EC_PUBLIC_KEY_TYPE_INVALID),i.isBufferLength2(e,33,65,a.EC_PUBLIC_KEY_LENGTH_INVALID),r=n(r,!0),t.publicKeyConvert(e,r)},publicKeyVerify:function(e){return i.isBuffer(e,a.EC_PUBLIC_KEY_TYPE_INVALID),t.publicKeyVerify(e)},publicKeyTweakAdd:function(e,r,o){return i.isBuffer(e,a.EC_PUBLIC_KEY_TYPE_INVALID),i.isBufferLength2(e,33,65,a.EC_PUBLIC_KEY_LENGTH_INVALID),i.isBuffer(r,a.TWEAK_TYPE_INVALID),i.isBufferLength(r,32,a.TWEAK_LENGTH_INVALID),o=n(o,!0),t.publicKeyTweakAdd(e,r,o)},publicKeyTweakMul:function(e,r,o){return i.isBuffer(e,a.EC_PUBLIC_KEY_TYPE_INVALID),i.isBufferLength2(e,33,65,a.EC_PUBLIC_KEY_LENGTH_INVALID),i.isBuffer(r,a.TWEAK_TYPE_INVALID),i.isBufferLength(r,32,a.TWEAK_LENGTH_INVALID),o=n(o,!0),t.publicKeyTweakMul(e,r,o)},publicKeyCombine:function(e,r){i.isArray(e,a.EC_PUBLIC_KEYS_TYPE_INVALID),i.isLengthGTZero(e,a.EC_PUBLIC_KEYS_LENGTH_INVALID);for(var o=0;o<e.length;++o)i.isBuffer(e[o],a.EC_PUBLIC_KEY_TYPE_INVALID),i.isBufferLength2(e[o],33,65,a.EC_PUBLIC_KEY_LENGTH_INVALID);return r=n(r,!0),t.publicKeyCombine(e,r)},signatureNormalize:function(e){return i.isBuffer(e,a.ECDSA_SIGNATURE_TYPE_INVALID),i.isBufferLength(e,64,a.ECDSA_SIGNATURE_LENGTH_INVALID),t.signatureNormalize(e)},signatureExport:function(e){i.isBuffer(e,a.ECDSA_SIGNATURE_TYPE_INVALID),i.isBufferLength(e,64,a.ECDSA_SIGNATURE_LENGTH_INVALID);var r=t.signatureExport(e);return o.signatureExport(r)},signatureImport:function(e){i.isBuffer(e,a.ECDSA_SIGNATURE_TYPE_INVALID),i.isLengthGTZero(e,a.ECDSA_SIGNATURE_LENGTH_INVALID);var r=o.signatureImport(e);if(r)return t.signatureImport(r);throw new Error(a.ECDSA_SIGNATURE_PARSE_DER_FAIL)},signatureImportLax:function(e){i.isBuffer(e,a.ECDSA_SIGNATURE_TYPE_INVALID),i.isLengthGTZero(e,a.ECDSA_SIGNATURE_LENGTH_INVALID);var r=o.signatureImportLax(e);if(r)return t.signatureImport(r);throw new Error(a.ECDSA_SIGNATURE_PARSE_DER_FAIL)},sign:function(e,r,n){i.isBuffer(e,a.MSG32_TYPE_INVALID),i.isBufferLength(e,32,a.MSG32_LENGTH_INVALID),i.isBuffer(r,a.EC_PRIVATE_KEY_TYPE_INVALID),i.isBufferLength(r,32,a.EC_PRIVATE_KEY_LENGTH_INVALID);var o=null,s=null;return void 0!==n&&(i.isObject(n,a.OPTIONS_TYPE_INVALID),void 0!==n.data&&(i.isBuffer(n.data,a.OPTIONS_DATA_TYPE_INVALID),i.isBufferLength(n.data,32,a.OPTIONS_DATA_LENGTH_INVALID),o=n.data),void 0!==n.noncefn&&(i.isFunction(n.noncefn,a.OPTIONS_NONCEFN_TYPE_INVALID),s=n.noncefn)),t.sign(e,r,s,o)},verify:function(e,r,n){return i.isBuffer(e,a.MSG32_TYPE_INVALID),i.isBufferLength(e,32,a.MSG32_LENGTH_INVALID),i.isBuffer(r,a.ECDSA_SIGNATURE_TYPE_INVALID),i.isBufferLength(r,64,a.ECDSA_SIGNATURE_LENGTH_INVALID),i.isBuffer(n,a.EC_PUBLIC_KEY_TYPE_INVALID),i.isBufferLength2(n,33,65,a.EC_PUBLIC_KEY_LENGTH_INVALID),t.verify(e,r,n)},recover:function(e,r,o,s){return i.isBuffer(e,a.MSG32_TYPE_INVALID),i.isBufferLength(e,32,a.MSG32_LENGTH_INVALID),i.isBuffer(r,a.ECDSA_SIGNATURE_TYPE_INVALID),i.isBufferLength(r,64,a.ECDSA_SIGNATURE_LENGTH_INVALID),i.isNumber(o,a.RECOVERY_ID_TYPE_INVALID),i.isNumberInInterval(o,-1,4,a.RECOVERY_ID_VALUE_INVALID),s=n(s,!0),t.recover(e,r,o,s)},ecdh:function(e,r){return i.isBuffer(e,a.EC_PUBLIC_KEY_TYPE_INVALID),i.isBufferLength2(e,33,65,a.EC_PUBLIC_KEY_LENGTH_INVALID),i.isBuffer(r,a.EC_PRIVATE_KEY_TYPE_INVALID),i.isBufferLength(r,32,a.EC_PRIVATE_KEY_LENGTH_INVALID),t.ecdh(e,r)},ecdhUnsafe:function(e,r,o){return i.isBuffer(e,a.EC_PUBLIC_KEY_TYPE_INVALID),i.isBufferLength2(e,33,65,a.EC_PUBLIC_KEY_LENGTH_INVALID),i.isBuffer(r,a.EC_PRIVATE_KEY_TYPE_INVALID),i.isBufferLength(r,32,a.EC_PRIVATE_KEY_LENGTH_INVALID),o=n(o,!0),t.ecdhUnsafe(e,r,o)}}}},function(t,e,r){"use strict";(function(t){var r=Object.prototype.toString;e.isArray=function(t,e){if(!Array.isArray(t))throw TypeError(e)},e.isBoolean=function(t,e){if("[object Boolean]"!==r.call(t))throw TypeError(e)},e.isBuffer=function(e,r){if(!t.isBuffer(e))throw TypeError(r)},e.isFunction=function(t,e){if("[object Function]"!==r.call(t))throw TypeError(e)},e.isNumber=function(t,e){if("[object Number]"!==r.call(t))throw TypeError(e)},e.isObject=function(t,e){if("[object Object]"!==r.call(t))throw TypeError(e)},e.isBufferLength=function(t,e,r){if(t.length!==e)throw RangeError(r)},e.isBufferLength2=function(t,e,r,n){if(t.length!==e&&t.length!==r)throw RangeError(n)},e.isLengthGTZero=function(t,e){if(0===t.length)throw RangeError(e)},e.isNumberInInterval=function(t,e,r,n){if(t<=e||t>=r)throw RangeError(n)}}).call(e,r(0).Buffer)},function(t,e,r){"use strict";(function(t){var n=r(351),i=new t([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),o=new t([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),a=new t([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);e.privateKeyExport=function(e,r,n){var a=new t(n?i:o);return e.copy(a,n?8:9),r.copy(a,n?181:214),a},e.privateKeyImport=function(t){var e=t.length,r=0;if(!(e<r+1||48!==t[r])&&(r+=1,!(e<r+1)&&128&t[r])){var n=127&t[r];if(r+=1,!(n<1||n>2)&&!(e<r+n)){var i=t[r+n-1]|(n>1?t[r+n-2]<<8:0);if(r+=n,!(e<r+i)&&!(e<r+3||2!==t[r]||1!==t[r+1]||1!==t[r+2])&&(r+=3,!(e<r+2||4!==t[r]||t[r+1]>32||e<r+2+t[r+1])))return t.slice(r+2,r+2+t[r+1])}}},e.signatureExport=function(e){for(var r=t.concat([new t([0]),e.r]),i=33,o=0;i>1&&0===r[o]&&!(128&r[o+1]);--i,++o);for(var a=t.concat([new t([0]),e.s]),s=33,u=0;s>1&&0===a[u]&&!(128&a[u+1]);--s,++u);return n.encode(r.slice(o),a.slice(u))},e.signatureImport=function(e){var r=new t(a),i=new t(a);try{var o=n.decode(e);if(33===o.r.length&&0===o.r[0]&&(o.r=o.r.slice(1)),o.r.length>32)throw new Error("R length is too long");if(33===o.s.length&&0===o.s[0]&&(o.s=o.s.slice(1)),o.s.length>32)throw new Error("S length is too long")}catch(t){return}return o.r.copy(r,32-o.r.length),o.s.copy(i,32-o.s.length),{r:r,s:i}},e.signatureImportLax=function(e){var r=new t(a),n=new t(a),i=e.length,o=0;if(48===e[o++]){var s=e[o++];if(!(128&s&&(o+=s-128)>i)&&2===e[o++]){var u=e[o++];if(128&u){if(s=u-128,o+s>i)return;for(;s>0&&0===e[o];o+=1,s-=1);for(u=0;s>0;o+=1,s-=1)u=(u<<8)+e[o]}if(!(u>i-o)){var c=o;if(o+=u,2===e[o++]){var f=e[o++];if(128&f){if(s=f-128,o+s>i)return;for(;s>0&&0===e[o];o+=1,s-=1);for(f=0;s>0;o+=1,s-=1)f=(f<<8)+e[o]}if(!(f>i-o)){var h=o;for(o+=f;u>0&&0===e[c];u-=1,c+=1);if(!(u>32)){var l=e.slice(c,c+u);for(l.copy(r,32-l.length);f>0&&0===e[h];f-=1,h+=1);if(!(f>32)){var d=e.slice(h,h+f);return d.copy(n,32-d.length),{r:r,s:n}}}}}}}}}}).call(e,r(0).Buffer)},function(t,e,r){function n(t){if(t.length<8)return!1;if(t.length>72)return!1;if(48!==t[0])return!1;if(t[1]!==t.length-2)return!1;if(2!==t[2])return!1;var e=t[3];if(0===e)return!1;if(5+e>=t.length)return!1;if(2!==t[4+e])return!1;var r=t[5+e];return 0!==r&&(6+e+r===t.length&&(!(128&t[4])&&(!(e>1&&0===t[4]&&!(128&t[5]))&&(!(128&t[e+6])&&!(r>1&&0===t[e+6]&&!(128&t[e+7]))))))}function i(t){if(t.length<8)throw new Error("DER sequence length is too short");if(t.length>72)throw new Error("DER sequence length is too long");if(48!==t[0])throw new Error("Expected DER sequence");if(t[1]!==t.length-2)throw new Error("DER sequence length is invalid");if(2!==t[2])throw new Error("Expected DER integer");var e=t[3];if(0===e)throw new Error("R length is zero");if(5+e>=t.length)throw new Error("R length is too long");if(2!==t[4+e])throw new Error("Expected DER integer (2)");var r=t[5+e];if(0===r)throw new Error("S length is zero");if(6+e+r!==t.length)throw new Error("S length is invalid");if(128&t[4])throw new Error("R value is negative");if(e>1&&0===t[4]&&!(128&t[5]))throw new Error("R value excessively padded");if(128&t[e+6])throw new Error("S value is negative");if(r>1&&0===t[e+6]&&!(128&t[e+7]))throw new Error("S value excessively padded");return{r:t.slice(4,4+e),s:t.slice(6+e)}}function o(t,e){var r=t.length,n=e.length;if(0===r)throw new Error("R length is zero");if(0===n)throw new Error("S length is zero");if(r>33)throw new Error("R length is too long");if(n>33)throw new Error("S length is too long");if(128&t[0])throw new Error("R value is negative");if(128&e[0])throw new Error("S value is negative");if(r>1&&0===t[0]&&!(128&t[1]))throw new Error("R value excessively padded");if(n>1&&0===e[0]&&!(128&e[1]))throw new Error("S value excessively padded");var i=a.allocUnsafe(6+r+n);return i[0]=48,i[1]=i.length-2,i[2]=2,i[3]=t.length,t.copy(i,4),i[4+r]=2,i[5+r]=e.length,e.copy(i,6+r),i}var a=r(14).Buffer;t.exports={check:n,decode:i,encode:o}},function(t,e,r){"use strict";(function(t){function n(t,e){var r=new s(e);if(r.cmp(h.p)>=0)return null;r=r.toRed(h.red);var n=r.redSqr().redIMul(r).redIAdd(h.b).redSqrt();return 3===t!==n.isOdd()&&(n=n.redNeg()),f.keyPair({pub:{x:r,y:n}})}function i(t,e,r){var n=new s(e),i=new s(r);if(n.cmp(h.p)>=0||i.cmp(h.p)>=0)return null;if(n=n.toRed(h.red),i=i.toRed(h.red),(6===t||7===t)&&i.isOdd()!==(7===t))return null;var o=n.redSqr().redIMul(n);return i.redSqr().redISub(o.redIAdd(h.b)).isZero()?f.keyPair({pub:{x:n,y:i}}):null}function o(t){var e=t[0];switch(e){case 2:case 3:return 33!==t.length?null:n(e,t.slice(1,33));case 4:case 6:case 7:return 65!==t.length?null:i(e,t.slice(1,33),t.slice(33,65));default:return null}}var a=r(353),s=r(12),u=r(10).ec,c=r(130),f=new u("secp256k1"),h=f.curve;e.privateKeyVerify=function(t){var e=new s(t);return e.cmp(h.n)<0&&!e.isZero()},e.privateKeyExport=function(e,r){var n=new s(e);if(n.cmp(h.n)>=0||n.isZero())throw new Error(c.EC_PRIVATE_KEY_EXPORT_DER_FAIL);return new t(f.keyFromPrivate(e).getPublic(r,!0))},e.privateKeyTweakAdd=function(e,r){var n=new s(r);if(n.cmp(h.n)>=0)throw new Error(c.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);if(n.iadd(new s(e)),n.cmp(h.n)>=0&&n.isub(h.n),n.isZero())throw new Error(c.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);return n.toArrayLike(t,"be",32)},e.privateKeyTweakMul=function(e,r){var n=new s(r);if(n.cmp(h.n)>=0||n.isZero())throw new Error(c.EC_PRIVATE_KEY_TWEAK_MUL_FAIL);return n.imul(new s(e)),n.cmp(h.n)&&(n=n.umod(h.n)),n.toArrayLike(t,"be",32)},e.publicKeyCreate=function(e,r){var n=new s(e);if(n.cmp(h.n)>=0||n.isZero())throw new Error(c.EC_PUBLIC_KEY_CREATE_FAIL);return new t(f.keyFromPrivate(e).getPublic(r,!0))},e.publicKeyConvert=function(e,r){var n=o(e);if(null===n)throw new Error(c.EC_PUBLIC_KEY_PARSE_FAIL);return new t(n.getPublic(r,!0))},e.publicKeyVerify=function(t){return null!==o(t)},e.publicKeyTweakAdd=function(e,r,n){var i=o(e);if(null===i)throw new Error(c.EC_PUBLIC_KEY_PARSE_FAIL);if(r=new s(r),r.cmp(h.n)>=0)throw new Error(c.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);return new t(h.g.mul(r).add(i.pub).encode(!0,n))},e.publicKeyTweakMul=function(e,r,n){var i=o(e);if(null===i)throw new Error(c.EC_PUBLIC_KEY_PARSE_FAIL);if(r=new s(r),r.cmp(h.n)>=0||r.isZero())throw new Error(c.EC_PUBLIC_KEY_TWEAK_MUL_FAIL);return new t(i.pub.mul(r).encode(!0,n))},e.publicKeyCombine=function(e,r){for(var n=new Array(e.length),i=0;i<e.length;++i)if(n[i]=o(e[i]),null===n[i])throw new Error(c.EC_PUBLIC_KEY_PARSE_FAIL);for(var a=n[0].pub,s=1;s<n.length;++s)a=a.add(n[s].pub);if(a.isInfinity())throw new Error(c.EC_PUBLIC_KEY_COMBINE_FAIL);return new t(a.encode(!0,r))},e.signatureNormalize=function(e){var r=new s(e.slice(0,32)),n=new s(e.slice(32,64));if(r.cmp(h.n)>=0||n.cmp(h.n)>=0)throw new Error(c.ECDSA_SIGNATURE_PARSE_FAIL);var i=new t(e);return 1===n.cmp(f.nh)&&h.n.sub(n).toArrayLike(t,"be",32).copy(i,32),i},e.signatureExport=function(t){var e=t.slice(0,32),r=t.slice(32,64);if(new s(e).cmp(h.n)>=0||new s(r).cmp(h.n)>=0)throw new Error(c.ECDSA_SIGNATURE_PARSE_FAIL);return{r:e,s:r}},e.signatureImport=function(e){var r=new s(e.r);r.cmp(h.n)>=0&&(r=new s(0));var n=new s(e.s);return n.cmp(h.n)>=0&&(n=new s(0)),t.concat([r.toArrayLike(t,"be",32),n.toArrayLike(t,"be",32)])},e.sign=function(e,r,n,i){if("function"===typeof n){var o=n;n=function(n){var a=o(e,r,null,i,n);if(!t.isBuffer(a)||32!==a.length)throw new Error(c.ECDSA_SIGN_FAIL);return new s(a)}}var a=new s(r);if(a.cmp(h.n)>=0||a.isZero())throw new Error(c.ECDSA_SIGN_FAIL);var u=f.sign(e,r,{canonical:!0,k:n,pers:i});return{signature:t.concat([u.r.toArrayLike(t,"be",32),u.s.toArrayLike(t,"be",32)]),recovery:u.recoveryParam}},e.verify=function(t,e,r){var n={r:e.slice(0,32),s:e.slice(32,64)},i=new s(n.r),a=new s(n.s);if(i.cmp(h.n)>=0||a.cmp(h.n)>=0)throw new Error(c.ECDSA_SIGNATURE_PARSE_FAIL);if(1===a.cmp(f.nh)||i.isZero()||a.isZero())return!1;var u=o(r);if(null===u)throw new Error(c.EC_PUBLIC_KEY_PARSE_FAIL);return f.verify(t,n,{x:u.pub.x,y:u.pub.y})},e.recover=function(e,r,n,i){var o={r:r.slice(0,32),s:r.slice(32,64)},a=new s(o.r),u=new s(o.s);if(a.cmp(h.n)>=0||u.cmp(h.n)>=0)throw new Error(c.ECDSA_SIGNATURE_PARSE_FAIL);try{if(a.isZero()||u.isZero())throw new Error;var l=f.recoverPubKey(e,o,n);return new t(l.encode(!0,i))}catch(t){throw new Error(c.ECDSA_RECOVER_FAIL)}},e.ecdh=function(t,r){var n=e.ecdhUnsafe(t,r,!0);return a("sha256").update(n).digest()},e.ecdhUnsafe=function(e,r,n){var i=o(e);if(null===i)throw new Error(c.EC_PUBLIC_KEY_PARSE_FAIL);var a=new s(r);if(a.cmp(h.n)>=0||a.isZero())throw new Error(c.ECDH_FAIL);return new t(i.pub.mul(a).encode(!0,n))}}).call(e,r(0).Buffer)},function(t,e,r){"use strict";(function(e){function n(t){c.call(this,"digest"),this._hash=t,this.buffers=[]}function i(t){c.call(this,"digest"),this._hash=t}var o=r(6),a=r(121),s=r(122),u=r(123),c=r(354);o(n,c),n.prototype._update=function(t){this.buffers.push(t)},n.prototype._final=function(){var t=e.concat(this.buffers),r=this._hash(t);return this.buffers=null,r},o(i,c),i.prototype._update=function(t){this._hash.update(t)},i.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return t=t.toLowerCase(),"md5"===t?new n(a):new i("rmd160"===t||"ripemd160"===t?new s:u(t))}}).call(e,r(0).Buffer)},function(t,e,r){function n(t){o.call(this),this.hashMode="string"===typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}var i=r(14).Buffer,o=r(19).Transform,a=r(42).StringDecoder;r(6)(n,o),n.prototype.update=function(t,e,r){"string"===typeof t&&(t=i.from(t,e));var n=this._update(t);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},n.prototype.setAutoPadding=function(){},n.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},n.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},n.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},n.prototype._transform=function(t,e,r){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){n=t}finally{r(n)}},n.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},n.prototype._finalOrDigest=function(t){var e=this.__final()||i.alloc(0);return t&&(e=this._toString(e,t,!0)),e},n.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new a(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return r&&(n+=this._decoder.end()),n},t.exports=n},function(t,e,r){"use strict";t.exports=r(356)(r(359))},function(t,e,r){"use strict";var n=r(357),i=r(358);t.exports=function(t){var e=n(t),r=i(t);return function(t,n){switch("string"===typeof t?t.toLowerCase():t){case"keccak224":return new e(1152,448,null,224,n);case"keccak256":return new e(1088,512,null,256,n);case"keccak384":return new e(832,768,null,384,n);case"keccak512":return new e(576,1024,null,512,n);case"sha3-224":return new e(1152,448,6,224,n);case"sha3-256":return new e(1088,512,6,256,n);case"sha3-384":return new e(832,768,6,384,n);case"sha3-512":return new e(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw new Error("Invald algorithm: "+t)}}}},function(t,e,r){"use strict";(function(e){var n=r(19).Transform,i=r(6);t.exports=function(t){function r(e,r,i,o,a){n.call(this,a),this._rate=e,this._capacity=r,this._delimitedSuffix=i,this._hashBitLength=o,this._options=a,this._state=new t,this._state.initialize(e,r),this._finalized=!1}return i(r,n),r.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},r.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},r.prototype.update=function(t,r){if(!e.isBuffer(t)&&"string"!==typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return e.isBuffer(t)||(t=new e(t,r)),this._state.absorb(t),this},r.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);var e=this._state.squeeze(this._hashBitLength/8);return void 0!==t&&(e=e.toString(t)),this._resetState(),e},r.prototype._resetState=function(){return this._state.initialize(this._rate,this._capacity),this},r.prototype._clone=function(){var t=new r(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t},r}}).call(e,r(0).Buffer)},function(t,e,r){"use strict";(function(e){var n=r(19).Transform,i=r(6);t.exports=function(t){function r(e,r,i,o){n.call(this,o),this._rate=e,this._capacity=r,this._delimitedSuffix=i,this._options=o,this._state=new t,this._state.initialize(e,r),this._finalized=!1}return i(r,n),r.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},r.prototype._flush=function(){},r.prototype._read=function(t){this.push(this.squeeze(t))},r.prototype.update=function(t,r){if(!e.isBuffer(t)&&"string"!==typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return e.isBuffer(t)||(t=new e(t,r)),this._state.absorb(t),this},r.prototype.squeeze=function(t,e){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));var r=this._state.squeeze(t);return void 0!==e&&(r=r.toString(e)),r},r.prototype._resetState=function(){return this._state.initialize(this._rate,this._capacity),this},r.prototype._clone=function(){var t=new r(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t},r}}).call(e,r(0).Buffer)},function(t,e,r){"use strict";(function(e){function n(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}var i=r(360);n.prototype.initialize=function(t,e){for(var r=0;r<50;++r)this.state[r]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1},n.prototype.absorb=function(t){for(var e=0;e<t.length;++e)this.state[~~(this.count/4)]^=t[e]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0)},n.prototype.absorbLastFewBits=function(t){this.state[~~(this.count/4)]^=t<<this.count%4*8,0!==(128&t)&&this.count===this.blockSize-1&&i.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,i.p1600(this.state),this.count=0,this.squeezing=!0},n.prototype.squeeze=function(t){this.squeezing||this.absorbLastFewBits(1);for(var r=new e(t),n=0;n<t;++n)r[n]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0);return r},n.prototype.copy=function(t){for(var e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing},t.exports=n}).call(e,r(0).Buffer)},function(t,e,r){"use strict";var n=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];e.p1600=function(t){for(var e=0;e<24;++e){var r=t[0]^t[10]^t[20]^t[30]^t[40],i=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],h=t[8]^t[18]^t[28]^t[38]^t[48],l=t[9]^t[19]^t[29]^t[39]^t[49],d=h^(o<<1|a>>>31),p=l^(a<<1|o>>>31),m=t[0]^d,b=t[1]^p,v=t[10]^d,y=t[11]^p,g=t[20]^d,_=t[21]^p,w=t[30]^d,M=t[31]^p,k=t[40]^d,E=t[41]^p;d=r^(s<<1|u>>>31),p=i^(u<<1|s>>>31);var x=t[2]^d,S=t[3]^p,A=t[12]^d,C=t[13]^p,T=t[22]^d,I=t[23]^p,P=t[32]^d,R=t[33]^p,O=t[42]^d,j=t[43]^p;d=o^(c<<1|f>>>31),p=a^(f<<1|c>>>31);var N=t[4]^d,B=t[5]^p,L=t[14]^d,F=t[15]^p,D=t[24]^d,U=t[25]^p,q=t[34]^d,z=t[35]^p,H=t[44]^d,V=t[45]^p;d=s^(h<<1|l>>>31),p=u^(l<<1|h>>>31);var K=t[6]^d,Y=t[7]^p,G=t[16]^d,W=t[17]^p,Z=t[26]^d,X=t[27]^p,$=t[36]^d,Q=t[37]^p,J=t[46]^d,tt=t[47]^p;d=c^(r<<1|i>>>31),p=f^(i<<1|r>>>31);var et=t[8]^d,rt=t[9]^p,nt=t[18]^d,it=t[19]^p,ot=t[28]^d,at=t[29]^p,st=t[38]^d,ut=t[39]^p,ct=t[48]^d,ft=t[49]^p,ht=m,lt=b,dt=y<<4|v>>>28,pt=v<<4|y>>>28,mt=g<<3|_>>>29,bt=_<<3|g>>>29,vt=M<<9|w>>>23,yt=w<<9|M>>>23,gt=k<<18|E>>>14,_t=E<<18|k>>>14,wt=x<<1|S>>>31,Mt=S<<1|x>>>31,kt=C<<12|A>>>20,Et=A<<12|C>>>20,xt=T<<10|I>>>22,St=I<<10|T>>>22,At=R<<13|P>>>19,Ct=P<<13|R>>>19,Tt=O<<2|j>>>30,It=j<<2|O>>>30,Pt=B<<30|N>>>2,Rt=N<<30|B>>>2,Ot=L<<6|F>>>26,jt=F<<6|L>>>26,Nt=U<<11|D>>>21,Bt=D<<11|U>>>21,Lt=q<<15|z>>>17,Ft=z<<15|q>>>17,Dt=V<<29|H>>>3,Ut=H<<29|V>>>3,qt=K<<28|Y>>>4,zt=Y<<28|K>>>4,Ht=W<<23|G>>>9,Vt=G<<23|W>>>9,Kt=Z<<25|X>>>7,Yt=X<<25|Z>>>7,Gt=$<<21|Q>>>11,Wt=Q<<21|$>>>11,Zt=tt<<24|J>>>8,Xt=J<<24|tt>>>8,$t=et<<27|rt>>>5,Qt=rt<<27|et>>>5,Jt=nt<<20|it>>>12,te=it<<20|nt>>>12,ee=at<<7|ot>>>25,re=ot<<7|at>>>25,ne=st<<8|ut>>>24,ie=ut<<8|st>>>24,oe=ct<<14|ft>>>18,ae=ft<<14|ct>>>18;t[0]=ht^~kt&Nt,t[1]=lt^~Et&Bt,t[10]=qt^~Jt&mt,t[11]=zt^~te&bt,t[20]=wt^~Ot&Kt,t[21]=Mt^~jt&Yt,t[30]=$t^~dt&xt,t[31]=Qt^~pt&St,t[40]=Pt^~Ht&ee,t[41]=Rt^~Vt&re,t[2]=kt^~Nt&Gt,t[3]=Et^~Bt&Wt,t[12]=Jt^~mt&At,t[13]=te^~bt&Ct,t[22]=Ot^~Kt&ne,t[23]=jt^~Yt&ie,t[32]=dt^~xt&Lt,t[33]=pt^~St&Ft,t[42]=Ht^~ee&vt,t[43]=Vt^~re&yt,t[4]=Nt^~Gt&oe,t[5]=Bt^~Wt&ae,t[14]=mt^~At&Dt,t[15]=bt^~Ct&Ut,t[24]=Kt^~ne&gt,t[25]=Yt^~ie&_t,t[34]=xt^~Lt&Zt,t[35]=St^~Ft&Xt,t[44]=ee^~vt&Tt,t[45]=re^~yt&It,t[6]=Gt^~oe&ht,t[7]=Wt^~ae&lt,t[16]=At^~Dt&qt,t[17]=Ct^~Ut&zt,t[26]=ne^~gt&wt,t[27]=ie^~_t&Mt,t[36]=Lt^~Zt&$t,t[37]=Ft^~Xt&Qt,t[46]=vt^~Tt&Pt,t[47]=yt^~It&Rt,t[8]=oe^~ht&kt,t[9]=ae^~lt&Et,t[18]=Dt^~qt&Jt,t[19]=Ut^~zt&te,t[28]=gt^~wt&Ot,t[29]=_t^~Mt&jt,t[38]=Zt^~$t&dt,t[39]=Xt^~Qt&pt,t[48]=Tt^~Pt&Ht,t[49]=It^~Rt&Vt,t[0]^=n[2*e],t[1]^=n[2*e+1]}}},function(module,exports,__webpack_require__){(function(process,__dirname,module){module.exports=function(requested_total_memory){function g(t){throw t}function aa(){return function(){}}function ia(t){eval.call(m,t)}function ja(){return u}function ka(t){u=t}function la(t){if(1==ma)return 1;var e={"%i1":1,"%i8":1,"%i16":2,"%i32":4,"%i64":8,"%float":4,"%double":8}["%"+t];return e||("*"==t.charAt(t.length-1)?e=ma:"i"==t[0]&&(t=parseInt(t.substr(1)),w(0==t%8),e=t/8)),e}function na(t,e,r){r&&r.length?(r.splice||(r=Array.prototype.slice.call(r)),r.splice(0,0,e),s["dynCall_"+t].apply(m,r)):s["dynCall_"+t].call(m,e)}function pa(){var t=[],e=0;this.oa=function(r){if(r&=255,e&&(t.push(r),e--),0==t.length)return 128>r?String.fromCharCode(r):(t.push(r),e=191<r&&224>r?1:2,"");if(0<e)return"";var r=t[0],n=t[1],i=t[2],r=191<r&&224>r?String.fromCharCode((31&r)<<6|63&n):String.fromCharCode((15&r)<<12|(63&n)<<6|63&i);return t.length=0,r},this.yb=function(t){for(var t=unescape(encodeURIComponent(t)),e=[],r=0;r<t.length;r++)e.push(t.charCodeAt(r));return e}}function qa(t){var e=u;return u=u+t|0,u=u+7>>3<<3,e}function ra(t){var e=sa;return sa=sa+t|0,sa=sa+7>>3<<3,e}function ua(t){var e=z;return z=z+t|0,z=z+7>>3<<3,z>=va&&wa("Cannot enlarge memory arrays in asm.js. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value, or (2) set Module.TOTAL_MEMORY before the program runs."),e}function xa(t,e){return Math.ceil(t/(e||8))*(e||8)}function w(t,e){t||wa("Assertion failed: "+e)}function Ca(a){try{var b=s["_"+a];b||(b=eval("_"+a))}catch(t){}return w(b,"Cannot call unknown function "+a+" (perhaps LLVM optimizations or closure removed it?)"),b}function Ba(t,e,r,n){function i(t,e){if("string"==e){if(t===m||t===k||0===t)return 0;o||(o=ja());var r=qa(t.length+1);return Da(t,r),r}return"array"==e?(o||(o=ja()),r=qa(t.length),Ea(t,r),r):t}var o=0,a=0,n=n?n.map(function(t){return i(t,r[a++])}):[];return t=t.apply(m,n),"string"==e?e=Fa(t):(w("array"!=e),e=t),o&&ka(o),e}function Ga(t,e,r){switch(r=r||"i8","*"===r.charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":A[t]=e;break;case"i16":Ha[t>>1]=e;break;case"i32":B[t>>2]=e;break;case"i64":Aa=[e>>>0,(0|Math.min(+Math.floor(e/4294967296),4294967295))>>>0],B[t>>2]=Aa[0],B[t+4>>2]=Aa[1];break;case"float":Ia[t>>2]=e;break;case"double":Ja[t>>3]=e;break;default:wa("invalid type for setValue: "+r)}}function F(t,e,r,n){var i,o;"number"===typeof t?(i=l,o=t):(i=p,o=t.length);var a="string"===typeof e?e:m,r=r==Na?n:[Oa,qa,ra,ua][r===k?E:r](Math.max(o,a?1:e.length));if(i){for(n=r,w(0==(3&r)),t=r+(-4&o);n<t;n+=4)B[n>>2]=0;for(t=r+o;n<t;)A[0|n++]=0;return r}if("i8"===a)return t.subarray||t.slice?G.set(t,r):G.set(new Uint8Array(t),r),r;for(var s,u,n=0;n<o;){var c=t[n];"function"===typeof c&&(c=ya.fe(c)),i=a||e[n],0===i?n++:("i64"==i&&(i="i32"),Ga(r+n,c,i),u!==i&&(s=la(i),u=i),n+=s)}return r}function Fa(t,e){for(var r,n=p,i=0;;){if(128<=(r=G[t+i|0]))n=l;else if(0==r&&!e)break;if(i++,e&&i==e)break}e||(e=i);var o="";if(!n){for(;0<e;)r=String.fromCharCode.apply(String,G.subarray(t,t+Math.min(e,1024))),o=o?o+r:r,t+=1024,e-=1024;return o}for(n=new pa,i=0;i<e;i++)r=G[t+i|0],o+=n.oa(r);return o}function Va(t){for(;0<t.length;){var e=t.shift();if("function"==typeof e)e();else{var r=e.V;"number"===typeof r?e.ha===k?na("v",r):na("vi",r,[e.ha]):r(e.ha===k?m:e.ha)}}}function bb(t){Wa.unshift(t)}function cb(t){$a.unshift(t)}function J(t,e,r){return t=(new pa).yb(t),r&&(t.length=r),e||t.push(0),t}function Da(t,e,r){for(t=J(t,r),r=0;r<t.length;)A[e+r|0]=t[r],r+=1}function Ea(t,e){for(var r=0;r<t.length;r++)A[e+r|0]=t[r]}function db(t,e){return 0<=t?t:32>=e?2*Math.abs(1<<e-1)+t:Math.pow(2,e)+t}function eb(t,e){if(0>=t)return t;var r=32>=e?Math.abs(1<<e-1):Math.pow(2,e-1);return t>=r&&(32>=e||t>r)&&(t=-2*r+t),t}function ib(t){L++,s.monitorRunDependencies&&s.monitorRunDependencies(L),t?(w(!fb[t]),fb[t]=1):s.P("warning: run dependency added without ID")}function jb(t){L--,s.monitorRunDependencies&&s.monitorRunDependencies(L),t?(w(fb[t]),delete fb[t]):s.P("warning: run dependency removed without ID"),0==L&&(hb!==m&&(clearInterval(hb),hb=m),!gb&&kb&&lb())}function M(t){return B[rb>>2]=t}function vb(t,e,r){var n=O(t,{parent:l}).d,t="/"===t?"/":wb(t)[2],i=xb(n,t);return i&&g(new Q(i)),n.l.Ta||g(new Q(N.L)),n.l.Ta(n,t,e,r)}function yb(t,e){return e=4095&e|32768,vb(t,e,0)}function zb(t,e){return e=1023&e|16384,vb(t,e,0)}function Ab(t,e,r){return vb(t,8192|e,r)}function Bb(t,e){var r=O(e,{parent:l}).d,n="/"===e?"/":wb(e)[2],i=xb(r,n);return i&&g(new Q(i)),r.l.Wa||g(new Q(N.L)),r.l.Wa(r,n,t)}function Cb(t,e){var r;r="string"===typeof t?O(t,{N:l}).d:t,r.l.Y||g(new Q(N.L)),r.l.Y(r,{mode:4095&e|-4096&r.mode,timestamp:Date.now()})}function Db(t,e){var r,n,t=Eb(t);"string"===typeof e?"undefined"===typeof(n=Fb[e])&&g(Error("Unknown file open mode: "+e)):n=e,e=n,r=512&e?4095&r|32768:0;var i;try{var o=O(t,{N:!(65536&e)});i=o.d,t=o.path}catch(t){}512&e&&(i?2048&e&&g(new Q(N.va)):i=vb(t,r,0)),i||g(new Q(N.ca)),8192===(61440&i.mode)&&(e&=-1025),i?40960===(61440&i.mode)?r=N.ba:16384===(61440&i.mode)&&(0!==(3&e)||1024&e)?r=N.aa:(r=["r","w","rw"][3&e],1024&e&&(r+="w"),r=Gb(i,r)):r=N.ca,r&&g(new Q(r)),1024&e&&(r=i,r="string"===typeof r?O(r,{N:l}).d:r,r.l.Y||g(new Q(N.L)),16384===(61440&r.mode)&&g(new Q(N.aa)),32768!==(61440&r.mode)&&g(new Q(N.A)),(o=Gb(r,"w"))&&g(new Q(o)),r.l.Y(r,{size:0,timestamp:Date.now()}));var a,s={path:t,d:i,M:e,seekable:l,position:0,e:i.e,Gb:[],error:p};t:{for(i=k||4096,r=k||1;r<=i;r++)if(!R[r]){a=r;break t}g(new Q(N.Za))}return s.s=a,Object.defineProperty(s,"object",{get:function(){return s.d},set:function(t){s.d=t}}),Object.defineProperty(s,"isRead",{get:function(){return 1!==(3&s.M)}}),Object.defineProperty(s,"isWrite",{get:function(){return 0!==(3&s.M)}}),Object.defineProperty(s,"isAppend",{get:function(){return 8&s.M}}),R[a]=s,s.e.open&&s.e.open(s),s}function Hb(t){try{t.e.close&&t.e.close(t)}catch(t){g(t)}finally{R[t.s]=m}}function Ib(t,e,r,n,i){(0>n||0>i)&&g(new Q(N.A)),0===(3&t.M)&&g(new Q(N.$)),16384===(61440&t.d.mode)&&g(new Q(N.aa)),t.e.write||g(new Q(N.A));var o=l;return"undefined"===typeof i?(i=t.position,o=p):t.seekable||g(new Q(N.da)),8&t.M&&((!t.seekable||!t.e.na)&&g(new Q(N.da)),t.e.na(t,0,2)),e=t.e.write(t,e,r,n,i),o||(t.position+=e),e}function wb(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)}function Jb(t,e){for(var r=0,n=t.length-1;0<=n;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function Eb(t){var e="/"===t.charAt(0),r="/"===t.substr(-1),t=Jb(t.split("/").filter(function(t){return!!t}),!e).join("/");return!t&&!e&&(t="."),t&&r&&(t+="/"),(e?"/":"")+t}function S(){return Eb(Array.prototype.slice.call(arguments,0).filter(function(t){return"string"!==typeof t&&g(new TypeError("Arguments to path.join must be strings")),t}).join("/"))}function Kb(){for(var t="",e=p,r=arguments.length-1;-1<=r&&!e;r--){var n=0<=r?arguments[r]:"/";"string"!==typeof n&&g(new TypeError("Arguments to path.resolve must be strings")),n&&(t=n+"/"+t,e="/"===n.charAt(0))}return t=Jb(t.split("/").filter(function(t){return!!t}),!e).join("/"),(e?"/":"")+t||"."}function Mb(t,e){Lb[t]={input:[],H:[],O:e},Nb[t]={e:Ob}}function Q(t){this.mb=t;for(var e in N)if(N[e]===t){this.code=e;break}this.message=ub[t]}function Zb(t){t instanceof Q||g(t+" : "+Error().stack),M(t.mb)}function $b(t,e){for(var r=0,n=0;n<e.length;n++)r=(r<<5)-r+e.charCodeAt(n)|0;return(t+r)%Xb.length}function Sb(t,e){var r=Gb(t,"x");for(r&&g(new Q(r)),r=Xb[$b(t.id,e)];r;r=r.wb)if(r.parent.id===t.id&&r.name===e)return r;return t.l.tb(t,e)}function Qb(t,e,r,n){var i={id:Wb++,name:e,mode:r,l:{},e:{},X:n,parent:m,z:m};return t||(t=i),i.parent=t,i.z=t.z,Object.defineProperty(i,"read",{get:function(){return 365===(365&i.mode)},set:function(t){t?i.mode|=365:i.mode&=-366}}),Object.defineProperty(i,"write",{get:function(){return 146===(146&i.mode)},set:function(t){t?i.mode|=146:i.mode&=-147}}),t=$b(i.parent.id,i.name),i.wb=Xb[t],Xb[t]=i}function O(t,e){t=Kb("/",t),e=e||{pa:0},8<e.pa&&g(new Q(N.ba));for(var r=Jb(t.split("/").filter(function(t){return!!t}),p),n=Vb,i="/",o=0;o<r.length;o++){var a=o===r.length-1;if(a&&e.parent)break;if(n=Sb(n,r[o]),i=S(i,r[o]),n.ub&&(n=n.z.root),!a||e.N)for(a=0;40960===(61440&n.mode);){n=O(i,{N:p}).d,n.l.Va||g(new Q(N.A));var n=n.l.Va(n),s=Kb,u=wb(i),i=u[0],u=u[1];i||u?(u&&(u=u.substr(0,u.length-1)),i+=u):i=".",i=s(i,n),n=O(i,{pa:e.pa}).d,40<a++&&g(new Q(N.ba))}}return{path:i,d:n}}function ac(t){for(var e;;){if(t===t.parent)return e?S(t.z.Ua,e):t.z.Ua;e=e?S(t.name,e):t.name,t=t.parent}}function Gb(t,e){return Yb?0:(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:N.Ya}function xb(t,e){try{return Sb(t,e),N.va}catch(t){}return Gb(t,"wx")}function cc(t,e){var r=0;return t&&(r|=365),e&&(r|=146),r}function dc(t,e,r,n,i){if(t=S("string"===typeof t?t:ac(t),e),n=cc(n,i),i=yb(t,n),r){if("string"===typeof r){for(var e=Array(r.length),o=0,a=r.length;o<a;++o)e[o]=r.charCodeAt(o);r=e}Cb(t,146|n),e=Db(t,"w"),Ib(e,r,0,r.length,0),Hb(e),Cb(t,n)}return i}function ec(t,e,r,n){return t=S("string"===typeof t?t:ac(t),e),ec.Sa||(ec.Sa=64),e=ec.Sa++<<8|0,Nb[e]={e:{open:function(t){t.seekable=p},close:function(){n&&n.buffer&&n.buffer.length&&n(10)},Q:function(t,e,n,i){for(var o=0,a=0;a<i;a++){var s;try{s=r()}catch(t){g(new Q(N.I))}if(s===k&&0===o&&g(new Q(N.ua)),s===m||s===k)break;o++,e[n+a]=s}return o&&(t.d.timestamp=Date.now()),o},write:function(t,e,r,i){for(var o=0;o<i;o++)try{n(e[r+o])}catch(t){g(new Q(N.I))}return i&&(t.d.timestamp=Date.now()),o}}},Ab(t,r&&n?511:r?219:365,e)}function fc(t,e,r){return(t=R[t])?(t.sender(G.subarray(e,e+r)),r):-1}function gc(t,e,r){var n=R[t];if(!n)return M(N.$),-1;if(n&&"socket"in n)return fc(t,e,r);try{return Ib(n,A,e,r)}catch(t){return Zb(t),-1}}function hc(t,e,r,n){return 0==(r*=e)?0:(t=gc(n,t,r),-1==t?((e=R[n])&&(e.error=l),0):Math.floor(t/e))}function jc(t){return 0>t||0===t&&-1/0===1/t}function kc(t,e){function r(t){var r;return"double"===t?r=Ja[e+a>>3]:"i64"==t?(r=[B[e+a>>2],B[e+(a+8)>>2]],a+=8):(t="i32",r=B[e+a>>2]),a+=Math.max(Math.max(la(t),ma),8),r}for(var n,i,o=t,a=0,s=[];;){var u=o;if(0===(n=A[o]))break;if(i=A[o+1|0],37==n){var c=p,f=p,h=p,d=p;t:for(;;){switch(i){case 43:c=l;break;case 45:f=l;break;case 35:h=l;break;case 48:if(d)break t;d=l;break;default:break t}o++,i=A[o+1|0]}var b=0;if(42==i)b=r("i32"),o++,i=A[o+1|0];else for(;48<=i&&57>=i;)b=10*b+(i-48),o++,i=A[o+1|0];var v=p;if(46==i){var y=0,v=l;if(o++,42==(i=A[o+1|0]))y=r("i32"),o++;else for(;!(48>(i=A[o+1|0])||57<i);)y=10*y+(i-48),o++;i=A[o+1|0]}else y=6;var g;switch(String.fromCharCode(i)){case"h":i=A[o+2|0],104==i?(o++,g=1):g=2;break;case"l":i=A[o+2|0],108==i?(o++,g=8):g=4;break;case"L":case"q":case"j":g=8;break;case"z":case"t":case"I":g=4;break;default:g=m}switch(g&&o++,i=A[o+1|0],String.fromCharCode(i)){case"d":case"i":case"u":case"o":case"x":case"X":case"p":u=100==i||105==i,g=g||4;var _,w=n=r("i"+8*g);8==g&&(n=117==i?+(n[0]>>>0)+4294967296*+(n[1]>>>0):+(n[0]>>>0)+4294967296*+(0|n[1])),4>=g&&(n=(u?eb:db)(n&Math.pow(256,g)-1,8*g));var M=Math.abs(n),u="";if(100==i||105==i)_=8==g&&lc?lc.stringify(w[0],w[1],m):eb(n,8*g).toString(10);else if(117==i)_=8==g&&lc?lc.stringify(w[0],w[1],l):db(n,8*g).toString(10),n=Math.abs(n);else if(111==i)_=(h?"0":"")+M.toString(8);else if(120==i||88==i){if(u=h&&0!=n?"0x":"",8==g&&lc)if(w[1]){for(_=(w[1]>>>0).toString(16),h=(w[0]>>>0).toString(16);8>h.length;)h="0"+h;_+=h}else _=(w[0]>>>0).toString(16);else if(0>n){for(n=-n,_=(M-1).toString(16),w=[],h=0;h<_.length;h++)w.push((15-parseInt(_[h],16)).toString(16));for(_=w.join("");_.length<2*g;)_="f"+_}else _=M.toString(16);88==i&&(u=u.toUpperCase(),_=_.toUpperCase())}else 112==i&&(0===M?_="(nil)":(u="0x",_=M.toString(16)));if(v)for(;_.length<y;)_="0"+_;for(c&&(u=0>n?"-"+u:"+"+u);u.length+_.length<b;)f?_+=" ":d?_="0"+_:u=" "+u;_=u+_,_.split("").forEach(function(t){s.push(t.charCodeAt(0))});break;case"f":case"F":case"e":case"E":case"g":case"G":if(n=r("double"),isNaN(n))_="nan",d=p;else if(isFinite(n)){if(v=p,g=Math.min(y,20),103!=i&&71!=i||(v=l,y=y||1,g=parseInt(n.toExponential(g).split("e")[1],10),y>g&&-4<=g?(i=(103==i?"f":"F").charCodeAt(0),y-=g+1):(i=(103==i?"e":"E").charCodeAt(0),y--),g=Math.min(y,20)),101==i||69==i?(_=n.toExponential(g),/[eE][-+]\d$/.test(_)&&(_=_.slice(0,-1)+"0"+_.slice(-1))):102!=i&&70!=i||(_=n.toFixed(g),0===n&&jc(n)&&(_="-"+_)),u=_.split("e"),v&&!h)for(;1<u[0].length&&-1!=u[0].indexOf(".")&&("0"==u[0].slice(-1)||"."==u[0].slice(-1));)u[0]=u[0].slice(0,-1);else for(h&&-1==_.indexOf(".")&&(u[0]+=".");y>g++;)u[0]+="0";_=u[0]+(1<u.length?"e"+u[1]:""),69==i&&(_=_.toUpperCase()),c&&0<=n&&(_="+"+_)}else _=(0>n?"-":"")+"inf",d=p;for(;_.length<b;)_=f?_+" ":!d||"-"!=_[0]&&"+"!=_[0]?(d?"0":" ")+_:_[0]+"0"+_.slice(1);97>i&&(_=_.toUpperCase()),_.split("").forEach(function(t){s.push(t.charCodeAt(0))});break;case"s":if(d=(c=r("i8*"))?ic(c):6,v&&(d=Math.min(d,y)),!f)for(;d<b--;)s.push(32);if(c)for(h=0;h<d;h++)s.push(G[0|c++]);else s=s.concat(J("(null)".substr(0,d),l));if(f)for(;d<b--;)s.push(32);break;case"c":for(f&&s.push(r("i8"));0<--b;)s.push(32);f||s.push(r("i8"));break;case"n":f=r("i32*"),B[f>>2]=s.length;break;case"%":s.push(n);break;default:for(h=u;h<o+2;h++)s.push(A[h])}o+=2}else s.push(n),o+=1}return s}function mc(t,e,r){return r=kc(e,r),e=ja(),t=hc(F(r,"i8",La),1,r.length,t),ka(e),t}function nc(t){nc.ia||(z=z+4095>>12<<12,nc.ia=l,w(ua),nc.hb=ua,ua=function(){wa("cannot dynamically allocate, sbrk now has control")});var e=z;return 0!=t&&nc.hb(t),e}function U(){return B[U.m>>2]}function oc(){return!!oc.ta}function pc(t){var e=p;try{t==__ZTIi&&(e=l)}catch(t){}try{t==__ZTIj&&(e=l)}catch(t){}try{t==__ZTIl&&(e=l)}catch(t){}try{t==__ZTIm&&(e=l)}catch(t){}try{t==__ZTIx&&(e=l)}catch(t){}try{t==__ZTIy&&(e=l)}catch(t){}try{t==__ZTIf&&(e=l)}catch(t){}try{t==__ZTId&&(e=l)}catch(t){}try{t==__ZTIe&&(e=l)}catch(t){}try{t==__ZTIc&&(e=l)}catch(t){}try{t==__ZTIa&&(e=l)}catch(t){}try{t==__ZTIh&&(e=l)}catch(t){}try{t==__ZTIs&&(e=l)}catch(t){}try{t==__ZTIt&&(e=l)}catch(t){}return e}function qc(t,e,r){if(0==r)return p;if(0==e||e==t)return l;switch(pc(e)?e:B[B[e>>2]-8>>2]){case 0:return 0==B[B[t>>2]-8>>2]?qc(B[t+8>>2],B[e+8>>2],r):p;case 1:return p;case 2:return qc(t,B[e+8>>2],r);default:return p}}function rc(t,e,r){if(!rc.sb){try{B[__ZTVN10__cxxabiv119__pointer_type_infoE>>2]=0}catch(t){}try{B[pb>>2]=1}catch(t){}try{B[ob>>2]=2}catch(t){}rc.sb=l}B[U.m>>2]=t,B[U.m+4>>2]=e,B[U.m+8>>2]=r,"uncaught_exception"in oc?oc.ta++:oc.ta=1,g(t+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.")}function sc(t){try{return tc(t)}catch(t){}}function uc(){if(uc.Bb)uc.Bb=p;else{V.setThrew(0),B[U.m+4>>2]=0;var t=B[U.m>>2],e=B[U.m+8>>2];e&&(na("vi",e,[t]),B[U.m+8>>2]=0),t&&(sc(t),B[U.m>>2]=0)}}function wc(t){var e,r;wc.ia?(r=B[vc>>2],e=B[r>>2]):(wc.ia=l,W.USER="root",W.PATH="/",W.PWD="/",W.HOME="/home/emscripten",W.LANG="en_US.UTF-8",W._="./this.program",e=F(1024,"i8",E),r=F(256,"i8*",E),B[r>>2]=e,B[vc>>2]=r);var n,i=[],o=0;for(n in t)if("string"===typeof t[n]){var a=n+"="+t[n];i.push(a),o+=a.length}for(1024<o&&g(Error("Environment size exceeded TOTAL_ENV_SIZE!")),t=0;t<i.length;t++){for(a=i[t],o=0;o<a.length;o++)A[e+o|0]=a.charCodeAt(o);A[e+o|0]=0,B[r+4*t>>2]=e,e+=a.length+1}B[r+4*i.length>>2]=0}function xc(t){return 0===t?0:(t=Fa(t),W.hasOwnProperty(t)?(xc.J&&tc(xc.J),xc.J=F(J(W[t]),"i8",Ka),xc.J):0)}function yc(t,e,r){if(t in ub){if(ub[t].length>r-1)return M(N.ab);for(t=ub[t],r=0;r<t.length;r++)A[e+r|0]=t.charCodeAt(r);return A[e+r|0]=0}return M(N.A)}function zc(t){return zc.buffer||(zc.buffer=Oa(256)),yc(t,zc.buffer,256),zc.buffer}function Ac(t){s.exit(t)}function Bc(t,e){var r=db(255&t);return A[0|Bc.J]=r,-1==gc(e,Bc.J,1)?((r=R[e])&&(r.error=l),-1):r}function Ic(t){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[t.substr(t.lastIndexOf(".")+1)]}function Kc(){var t=s.canvas;Jc.forEach(function(e){e(t.width,t.height)})}function Lc(){var t=s.canvas;this.Ib=t.width,this.Hb=t.height,t.width=screen.width,t.height=screen.height,"undefined"!=typeof SDL&&(t=Qa[SDL.screen+0*ma>>2],B[SDL.screen+0*ma>>2]=8388608|t),Kc()}function Mc(){var t=s.canvas;t.width=this.Ib,t.height=this.Hb,"undefined"!=typeof SDL&&(t=Qa[SDL.screen+0*ma>>2],B[SDL.screen+0*ma>>2]=-8388609&t),Kc()}function X(t,e){t!=m&&("number"==typeof t?this.p(t):e==m&&"string"!=typeof t?this.k(t,256):this.k(t,e))}function Yc(){return new X(m)}function Zc(t,e){var r=$c[t.charCodeAt(e)];return r==m?-1:r}function ad(t){var e=Yc();return e.D(t),e}function Y(t,e){this.h=0|t,this.j=0|e}function lb(t){function e(){if(ab||(ab=l,Va(Xa)),Va(Ya),gb=l,s._main&&kb&&s.callMain(t),s.postRun)for("function"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;)cb(s.postRun.shift());Va($a)}if(t=t||s.arguments,0<L)s.P("run() called, but dependencies remain, so not running");else{if(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)bb(s.preRun.shift());Va(Wa),0<L||(s.setStatus?(s.setStatus("Running..."),setTimeout(function(){setTimeout(function(){s.setStatus("")},1),za||e()},1)):e())}}function ed(t){za=l,u=cd,Va(Za),dd&&g({type:"ExitStatus",value:t})}function wa(t){t&&s.print(t),za=l,g("abort() at "+Error().stack)}var Module={TOTAL_MEMORY:requested_total_memory||33554432},scrypt_raw=Module,k=void 0,l=!0,m=null,p=!1,q,s;s||(s=eval("(function() { try { return Module || {} } catch(e) { return {} } })()"));var ba={},t;for(t in s)s.hasOwnProperty(t)&&(ba[t]=s[t]);var ca="object"===typeof process&&!0,da="object"===typeof window,ea="function"===typeof importScripts,fa=!da&&!ca&&!ea;if(ca){s.print=function(t){process.stdout.write(t+"\n")},s.printErr=function(t){process.stderr.write(t+"\n")};var ga=__webpack_require__(129),ha=__webpack_require__(128);s.read=function(t,e){var t=ha.normalize(t),r=ga.readFileSync(t);return!r&&t!=ha.resolve(t)&&(t=path.join(__dirname,"..","src",t),r=ga.readFileSync(t)),r&&!e&&(r=r.toString()),r},s.readBinary=function(t){return s.read(t,l)},s.load=function(t){ia(read(t))},s.arguments=process.argv.slice(2),module.ee=s}else fa?(s.print=print,"undefined"!=typeof printErr&&(s.printErr=printErr),s.read=read,s.readBinary=function(t){return read(t,"binary")},"undefined"!=typeof scriptArgs?s.arguments=scriptArgs:"undefined"!=typeof arguments&&(s.arguments=arguments),this.Module=s):da||ea?(s.read=function(t){var e=new XMLHttpRequest;return e.open("GET",t,p),e.send(m),e.responseText},"undefined"!=typeof arguments&&(s.arguments=arguments),da?(s.print=function(t){console.log(t)},s.printErr=function(t){console.log(t)},this.Module=s):ea&&(s.print=aa(),s.load=importScripts)):g("Unknown runtime environment. Where are we?");"undefined"==!s.load&&s.read&&(s.load=function(t){ia(s.read(t))}),s.print||(s.print=aa()),s.printErr||(s.printErr=s.print),s.arguments||(s.arguments=[]),s.print=s.print,s.P=s.printErr,s.preRun=[],s.postRun=[];for(t in ba)ba.hasOwnProperty(t)&&(s[t]=ba[t]);var oa,ma=4,ya={},za=p,Aa;s.ccall=function(t,e,r,n){return Ba(Ca(t),e,r,n)},s.cwrap=function(t,e,r){var n=Ca(t);return function(){return Ba(n,e,r,Array.prototype.slice.call(arguments))}},s.setValue=Ga,s.getValue=function(t,e){switch(e=e||"i8","*"===e.charAt(e.length-1)&&(e="i32"),e){case"i1":case"i8":return A[t];case"i16":return Ha[t>>1];case"i32":case"i64":return B[t>>2];case"float":return Ia[t>>2];case"double":return Ja[t>>3];default:wa("invalid type for setValue: "+e)}return m};var Ka=0,La=1,E=2,Na=4;s.ALLOC_NORMAL=Ka,s.ALLOC_STACK=La,s.ALLOC_STATIC=E,s.ALLOC_DYNAMIC=3,s.ALLOC_NONE=Na,s.allocate=F,s.Pointer_stringify=Fa;var A,G,Ha,Pa,B,Qa,Ia,Ja,Ra=0,sa=0,Sa=0,u=0,Ta=0,Ua=0,z=0,va=s.TOTAL_MEMORY||33554432;w(!!Int32Array&&!!Float64Array&&!!new Int32Array(1).subarray&&!!new Int32Array(1).set,"Cannot fallback to non-typed array case: Code is too specialized");var I=new ArrayBuffer(va);A=new Int8Array(I),Ha=new Int16Array(I),B=new Int32Array(I),G=new Uint8Array(I),Pa=new Uint16Array(I),Qa=new Uint32Array(I),Ia=new Float32Array(I),Ja=new Float64Array(I),B[0]=255,w(255===G[0]&&0===G[3],"Typed arrays 2 must be run on a little-endian system"),s.HEAP=k,s.HEAP8=A,s.HEAP16=Ha,s.HEAP32=B,s.HEAPU8=G,s.HEAPU16=Pa,s.HEAPU32=Qa,s.HEAPF32=Ia,s.HEAPF64=Ja;var Wa=[],Xa=[],Ya=[],Za=[],$a=[],ab=p;s.addOnPreRun=s.Vd=bb,s.addOnInit=s.Sd=function(t){Xa.unshift(t)},s.addOnPreMain=s.Ud=function(t){Ya.unshift(t)},s.addOnExit=s.Rd=function(t){Za.unshift(t)},s.addOnPostRun=s.Td=cb,s.intArrayFromString=J,s.intArrayToString=function(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];255<n&&(n&=255),e.push(String.fromCharCode(n))}return e.join("")},s.writeStringToMemory=Da,s.writeArrayToMemory=Ea,Math.imul||(Math.imul=function(t,e){var r=65535&t,n=65535&e;return r*n+((t>>>16)*n+r*(e>>>16)<<16)|0}),Math.ie=Math.imul;var L=0,fb={},gb=p,hb=m;s.addRunDependency=ib,s.removeRunDependency=jb,s.preloadedImages={},s.preloadedAudios={},Ra=8,sa=Ra+1312,Xa.push({V:function(){mb()}});var nb,ob,pb;nb=nb=F([0,0,0,0,0,0,0,0],"i8",E),ob=ob=F([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"i8",E),pb=pb=F([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"i8",E),F([111,112,116,105,111,110,32,114,101,113,117,105,114,101,115,32,97,110,32,97,114,103,117,109,101,110,116,32,45,45,32,37,115,0,0,0,0,0,0,0,111,112,116,105,111,110,32,114,101,113,117,105,114,101,115,32,97,110,32,97,114,103,117,109,101,110,116,32,45,45,32,37,99,0,0,0,0,0,0,0,0,0,0,0,0,0,36,64,0,0,0,0,0,0,89,64,0,0,0,0,0,136,195,64,0,0,0,0,132,215,151,65,0,128,224,55,121,195,65,67,23,110,5,181,181,184,147,70,245,249,63,233,3,79,56,77,50,29,48,249,72,119,130,90,60,191,115,127,221,79,21,117,56,3,0,0,0,0,0,0,63,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,255,255,255,255,0,0,0,0,111,112,116,105,111,110,32,100,111,101,115,110,39,116,32,116,97,107,101,32,97,110,32,97,114,103,117,109,101,110,116,32,45,45,32,37,46,42,115,0,117,110,107,110,111,119,110,32,111,112,116,105,111,110,32,45,45,32,37,115,0,0,0,0,117,110,107,110,111,119,110,32,111,112,116,105,111,110,32,45,45,32,37,99,0,0,0,0,255,255,255,255,0,0,0,0,97,109,98,105,103,117,111,117,115,32,111,112,116,105,111,110,32,45,45,32,37,46,42,115,0,0,0,0,0,0,0,0,37,115,58,32,0,0,0,0,80,79,83,73,88,76,89,95,67,79,82,82,69,67,84,0,115,116,100,58,58,98,97,100,95,97,108,108,111,99,0,0,37,115,58,32,0,0,0,0,37,115,10,0,0,0,0,0,37,115,10,0,0,0,0,0,105,110,32,117,115,101,32,98,121,116,101,115,32,32,32,32,32,61,32,37,49,48,108,117,10,0,0,0,0,0,0,0,37,115,58,32,0,0,0,0,37,115,58,32,0,0,0,0,98,97,100,95,97,114,114,97,121,95,110,101,119,95,108,101,110,103,116,104,0,0,0,0,58,32,0,0,0,0,0,0,58,32,0,0,0,0,0,0,115,121,115,116,101,109,32,98,121,116,101,115,32,32,32,32,32,61,32,37,49,48,108,117,10,0,0,0,0,0,0,0,109,97,120,32,115,121,115,116,101,109,32,98,121,116,101,115,32,61,32,37,49,48,108,117,10,0,0,0,0,0,0,0,0,0,0,0,176,2,0,0,6,0,0,0,10,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,2,0,0,6,0,0,0,4,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,83,116,57,101,120,99,101,112,116,105,111,110,0,0,0,0,83,116,57,98,97,100,95,97,108,108,111,99,0,0,0,0,83,116,50,48,98,97,100,95,97,114,114,97,121,95,110,101,119,95,108,101,110,103,116,104,0,0,0,0,0,0,0,0,0,0,0,0,104,2,0,0,0,0,0,0,120,2,0,0,168,2,0,0,0,0,0,0,0,0,0,0,136,2,0,0,176,2,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"i8",Na,8);var qb=xa(F(12,"i8",E),8);w(0==qb%8);var rb=0;s._memcpy=sb,s._memset=tb;var N={L:1,ca:2,Bd:3,sc:4,I:5,za:6,Jb:7,Sc:8,$:9,Zb:10,ua:11,Ld:11,$a:12,Ya:13,kc:14,ed:15,Wb:16,va:17,Md:18,wa:19,gd:20,aa:21,A:22,Mc:23,Za:24,ld:25,Id:26,lc:27,ad:28,da:29,yd:30,Fc:31,rd:32,hc:33,ab:34,Wc:35,pc:36,$b:37,vc:38,wc:39,xc:40,Ec:41,Jd:42,Qc:43,uc:44,ec:45,Tc:46,Pb:50,Sb:51,Nd:52,Oc:53,Tb:54,Ub:55,fc:56,Vb:57,cd:60,Rc:61,Fd:62,bd:63,Xc:64,Yc:65,xd:66,Uc:67,Mb:68,Cd:69,ac:70,td:71,Hc:74,yc:75,ic:76,Rb:77,mc:79,md:80,Qb:81,wd:82,zc:83,Ac:84,Dc:85,Cc:86,Bc:87,dd:88,Nc:89,ya:90,Ic:91,ba:92,nd:95,qd:96,dc:104,Pc:105,Nb:106,vd:107,jd:108,Zc:109,zd:110,cc:111,Kb:112,bc:113,Lc:114,Jc:115,Gd:116,nc:117,oc:118,rc:119,Ob:120,gc:121,Gc:122,ud:123,Ad:124,Lb:125,Kc:126,tc:127,fd:128,Hd:129,sd:130,Kd:131,jc:132,Dd:133,kd:134,Vc:135,$c:136,Yb:137,qc:138,od:139,Xb:140,hd:141,pd:142,Ed:143},ub={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"No message of desired type",36:"Identifier removed",37:"Channel number out of range",38:"Level 2 not synchronized",39:"Level 3 halted",40:"Level 3 reset",41:"Link number out of range",42:"Protocol driver not attached",43:"No CSI structure available",44:"Level 2 halted",45:"Deadlock condition",46:"No record locks available",50:"Invalid exchange",51:"Invalid request descriptor",52:"Exchange full",53:"No anode",54:"Invalid request code",55:"Invalid slot",56:"File locking deadlock error",57:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",74:"Multihop attempted",75:"Inode is remote (not really error)",76:"Cross mount point (not really error)",77:"Trying to read unreadable message",79:"Inappropriate file type or format",80:"Given log. name not unique",81:"f.d. invalid for this operation",82:"Remote address changed",83:"Can\t access a needed shared lib",84:"Accessing a corrupted shared lib",85:".lib section in a.out corrupted",86:"Attempting to link in too many libs",87:"Attempting to exec a shared library",88:"Function not implemented",89:"No more files",90:"Directory not empty",91:"File or path name too long",92:"Too many symbolic links",95:"Operation not supported on transport endpoint",96:"Protocol family not supported",104:"Connection reset by peer",105:"No buffer space available",106:"Address family not supported by protocol family",107:"Protocol wrong type for socket",108:"Socket operation on non-socket",109:"Protocol not available",110:"Can't send after socket shutdown",111:"Connection refused",112:"Address already in use",113:"Connection aborted",114:"Network is unreachable",115:"Network interface is not configured",116:"Connection timed out",117:"Host is down",118:"Host is unreachable",119:"Connection already in progress",120:"Socket already connected",121:"Destination address required",122:"Message too long",123:"Unknown protocol",124:"Socket type not supported",125:"Address not available",126:"ENETRESET",127:"Socket is already connected",128:"Socket is not connected",129:"TOOMANYREFS",130:"EPROCLIM",131:"EUSERS",132:"EDQUOT",133:"ESTALE",134:"Not supported",135:"No medium (in tape drive)",136:"No such host or network path",137:"Filename exists with different case",138:"EILSEQ",139:"Value too large for defined data type",140:"Operation canceled",141:"State not recoverable",142:"Previous owner died",143:"Streams pipe error"},Lb=[],Ob={open:function(t){Pb||(Pb=new pa);var e=Lb[t.d.X];e||g(new Q(N.wa)),t.q=e,t.seekable=p},close:function(t){t.q.H.length&&t.q.O.W(t.q,10)},Q:function(t,e,r,n){(!t.q||!t.q.O.Na)&&g(new Q(N.za));for(var i=0,o=0;o<n;o++){var a;try{a=t.q.O.Na(t.q)}catch(t){g(new Q(N.I))}if(a===k&&0===i&&g(new Q(N.ua)),a===m||a===k)break;i++,e[r+o]=a}return i&&(t.d.timestamp=Date.now()),i},write:function(t,e,r,n){(!t.q||!t.q.O.W)&&g(new Q(N.za));for(var i=0;i<n;i++)try{t.q.O.W(t.q,e[r+i])}catch(t){g(new Q(N.I))}return n&&(t.d.timestamp=Date.now()),i}},Pb,T={z:function(){return T.ka(m,"/",16895,0)},ka:function(t,e,r,n){return(24576===(61440&r)||4096===(61440&r))&&g(new Q(N.L)),r=Qb(t,e,r,n),r.l=T.l,16384===(61440&r.mode)?(r.e=T.e,r.g={}):32768===(61440&r.mode)?(r.e=T.e,r.g=[]):40960===(61440&r.mode)?r.e=T.e:8192===(61440&r.mode)&&(r.e=Rb),r.timestamp=Date.now(),t&&(t.g[e]=r),r},l:{ge:function(t){var e={};return e.ce=8192===(61440&t.mode)?t.id:1,e.je=t.id,e.mode=t.mode,e.pe=1,e.uid=0,e.he=0,e.X=t.X,e.size=16384===(61440&t.mode)?4096:32768===(61440&t.mode)?t.g.length:40960===(61440&t.mode)?t.link.length:0,e.Yd=new Date(t.timestamp),e.oe=new Date(t.timestamp),e.ae=new Date(t.timestamp),e.ib=4096,e.Zd=Math.ceil(e.size/e.ib),e},Y:function(t,e){if(e.mode!==k&&(t.mode=e.mode),e.timestamp!==k&&(t.timestamp=e.timestamp),e.size!==k){var r=t.g;if(e.size<r.length)r.length=e.size;else for(;e.size>r.length;)r.push(0)}},tb:function(){g(new Q(N.ca))},Ta:function(t,e,r,n){return T.ka(t,e,r,n)},rename:function(t,e,r){if(16384===(61440&t.mode)){var n;try{n=Sb(e,r)}catch(t){}if(n)for(var i in n.g)g(new Q(N.ya))}delete t.parent.g[t.name],t.name=r,e.g[r]=t},ze:function(t,e){delete t.g[e]},ve:function(t,e){var r,n=Sb(t,e);for(r in n.g)g(new Q(N.ya));delete t.g[e]},Wa:function(t,e,r){return t=T.ka(t,e,41471,0),t.link=r,t},Va:function(t){return 40960!==(61440&t.mode)&&g(new Q(N.A)),t.link}},e:{open:function(t){if(16384===(61440&t.d.mode)){var e,r=[".",".."];for(e in t.d.g)t.d.g.hasOwnProperty(e)&&r.push(e);t.lb=r}},Q:function(t,e,r,n,i){if(t=t.d.g,n=Math.min(t.length-i,n),t.subarray)e.set(t.subarray(i,i+n),r);else for(var o=0;o<n;o++)e[r+o]=t[i+o];return n},write:function(t,e,r,n,i){for(var o=t.d.g;o.length<i;)o.push(0);for(var a=0;a<n;a++)o[i+a]=e[r+a];return t.d.timestamp=Date.now(),n},na:function(t,e,r){return 1===r?e+=t.position:2===r&&32768===(61440&t.d.mode)&&(e+=t.d.g.length),0>e&&g(new Q(N.A)),t.Gb=[],t.position=e},ue:function(t){return t.lb},Wd:function(t,e,r){for(t=t.d.g,e+=r;e>t.length;)t.push(0)},ne:function(t,e,r,n,i,o,a){return 32768!==(61440&t.d.mode)&&g(new Q(N.wa)),t=t.d.g,2&a?((0<i||i+n<t.length)&&(t=t.subarray?t.subarray(i,i+n):Array.prototype.slice.call(t,i,i+n)),i=l,(n=Oa(n))||g(new Q(N.$a)),e.set(t,n)):(w(t.buffer===e||t.buffer===e.buffer),i=p,n=t.byteOffset),{te:n,Xd:i}}}},Tb=F(1,"i32*",E),Ub=F(1,"i32*",E);nb=F(1,"i32*",E);var Vb=m,Nb=[m],R=[m],Wb=1,Xb=[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,],Yb=l,Fb={r:0,rs:8192,"r+":2,w:1537,wx:3585,xw:3585,"w+":1538,"wx+":3586,"xw+":3586,a:521,ax:2569,xa:2569,"a+":522,"ax+":2570,"xa+":2570},Rb={open:function(t){t.e=Nb[t.d.X].e,t.e.open&&t.e.open(t)},na:function(){g(new Q(N.da))}},bc;s._strlen=ic;var vc=F(1,"i32*",E),W={},Cc=p,Dc=p,Ec=p,Fc=p,Gc=k,Hc=k,Jc=[],Nc,Oc,Pc,Qc,rb=ra(4);B[rb>>2]=0;var Vb=Qb(m,"/",16895,0),Rc=T,Sc={type:Rc,se:{},Ua:"/",root:m},Tc;Tc=O("/",{N:p});var Uc=Rc.z(Sc);Uc.z=Sc,Sc.root=Uc,Tc&&(Tc.d.z=Sc,Tc.d.ub=l,Vb=Sc.root),zb("/tmp",511),zb("/dev",511),Nb[259]={e:{Q:function(){return 0},write:function(){return 0}}},Ab("/dev/null",438,259),Mb(1280,{Na:function(t){if(!t.input.length){var e=m;if(ca){if(process.Eb.be)return;e=process.Eb.Q()}else"undefined"!=typeof window&&"function"==typeof window.prompt?(e=window.prompt("Input: "))!==m&&(e+="\n"):"function"==typeof readline&&(e=readline())!==m&&(e+="\n");if(!e)return m;t.input=J(e,l)}return t.input.shift()},W:function(t,e){e===m||10===e?(s.print(t.H.join("")),t.H=[]):t.H.push(Pb.oa(e))}}),Mb(1536,{W:function(t,e){e===m||10===e?(s.printErr(t.H.join("")),t.H=[]):t.H.push(Pb.oa(e))}}),Ab("/dev/tty",438,1280),Ab("/dev/tty1",438,1536),zb("/dev/shm",511),zb("/dev/shm/tmp",511),Xa.unshift({V:function(){if(!s.noFSInit&&!bc){w(!bc,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),bc=l,s.stdin=s.stdin,s.stdout=s.stdout,s.stderr=s.stderr,s.stdin?ec("/dev","stdin",s.stdin):Bb("/dev/tty","/dev/stdin"),s.stdout?ec("/dev","stdout",m,s.stdout):Bb("/dev/tty","/dev/stdout"),s.stderr?ec("/dev","stderr",m,s.stderr):Bb("/dev/tty1","/dev/stderr");var t=Db("/dev/stdin","r");B[Tb>>2]=t.s,w(1===t.s,"invalid handle for stdin ("+t.s+")"),t=Db("/dev/stdout","w"),B[Ub>>2]=t.s,w(2===t.s,"invalid handle for stdout ("+t.s+")"),t=Db("/dev/stderr","w"),B[nb>>2]=t.s,w(3===t.s,"invalid handle for stderr ("+t.s+")")}}}),Ya.push({V:function(){Yb=p}}),Za.push({V:function(){bc=p;for(var t=0;t<R.length;t++){var e=R[t];e&&Hb(e)}}}),s.FS_createFolder=function(t,e,r,n){return t=S("string"===typeof t?t:ac(t),e),zb(t,cc(r,n))},s.FS_createPath=function(t,e){for(var t="string"===typeof t?t:ac(t),r=e.split("/").reverse();r.length;){var n=r.pop();if(n){var i=S(t,n);try{zb(i,511)}catch(t){}t=i}}return i},s.FS_createDataFile=dc,s.FS_createPreloadedFile=function(t,e,r,n,i,o,a,u){function c(){Ec=document.pointerLockElement===h||document.mozPointerLockElement===h||document.webkitPointerLockElement===h}function f(r){function c(r){u||dc(t,e,r,n,i),o&&o(),jb("cp "+d)}var f=p;s.preloadPlugins.forEach(function(t){!f&&t.canHandle(d)&&(t.handle(r,d,c,function(){a&&a(),jb("cp "+d)}),f=l)}),f||c(r)}if(s.preloadPlugins||(s.preloadPlugins=[]),!Nc&&!ea){Nc=l;try{new Blob,Oc=l}catch(t){Oc=p,console.log("warning: no blob constructor, cannot create blobs with mimetypes")}Pc="undefined"!=typeof MozBlobBuilder?MozBlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:Oc?m:console.log("warning: no BlobBuilder"),Qc="undefined"!=typeof window?window.URL?window.URL:window.webkitURL:console.log("warning: cannot create object URLs"),s.preloadPlugins.push({canHandle:function(t){return!s.re&&/\.(jpg|jpeg|png|bmp)$/i.test(t)},handle:function(t,e,r,n){var i=m;if(Oc)try{i=new Blob([t],{type:Ic(e)}),i.size!==t.length&&(i=new Blob([new Uint8Array(t).buffer],{type:Ic(e)}))}catch(t){var o="Blob constructor present but fails: "+t+"; falling back to blob builder";oa||(oa={}),oa[o]||(oa[o]=1,s.P(o))}i||(i=new Pc,i.append(new Uint8Array(t).buffer),i=i.getBlob());var a=Qc.createObjectURL(i),u=new Image;u.onload=function(){w(u.complete,"Image "+e+" could not be decoded");var n=document.createElement("canvas");n.width=u.width,n.height=u.height,n.getContext("2d").drawImage(u,0,0),s.preloadedImages[e]=n,Qc.revokeObjectURL(a),r&&r(t)},u.onerror=function(){console.log("Image "+a+" could not be decoded"),n&&n()},u.src=a}}),s.preloadPlugins.push({canHandle:function(t){return!s.qe&&t.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(t,e,r,n){function i(n){a||(a=l,s.preloadedAudios[e]=n,r&&r(t))}function o(){a||(a=l,s.preloadedAudios[e]=new Audio,n&&n())}var a=p;if(!Oc)return o();try{var u=new Blob([t],{type:Ic(e)})}catch(t){return o()}var u=Qc.createObjectURL(u),c=new Audio;c.addEventListener("canplaythrough",function(){i(c)},p),c.onerror=function(){if(!a){console.log("warning: browser could not fully decode audio "+e+", trying slower base64 approach");for(var r="",n=0,o=0,s=0;s<t.length;s++)for(n=n<<8|t[s],o+=8;6<=o;)var u=n>>o-6&63,o=o-6,r=r+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[u];2==o?(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&n)<<4],r+="=="):4==o&&(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&n)<<2],r+="="),c.src="data:audio/x-"+e.substr(-3)+";base64,"+r,i(c)}},c.src=u,setTimeout(function(){za||i(c)},1e4)}});var h=s.canvas;h.qa=h.requestPointerLock||h.mozRequestPointerLock||h.webkitRequestPointerLock,h.La=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||aa(),h.La=h.La.bind(document),document.addEventListener("pointerlockchange",c,p),document.addEventListener("mozpointerlockchange",c,p),document.addEventListener("webkitpointerlockchange",c,p),s.elementPointerLock&&h.addEventListener("click",function(t){!Ec&&h.qa&&(h.qa(),t.preventDefault())},p)}var d,b=S.apply(m,[t,e]);if("/"==b[0]&&(b=b.substr(1)),d=b,ib("cp "+d),"string"==typeof r){var v=a,y=function(){v?v():g('Loading data file "'+r+'" failed.')},_=new XMLHttpRequest;_.open("GET",r,l),_.responseType="arraybuffer",_.onload=function(){if(200==_.status||0==_.status&&_.response){var t=_.response;w(t,'Loading data file "'+r+'" failed (no arrayBuffer).'),t=new Uint8Array(t),f(t),jb("al "+r)}else y()},_.onerror=y,_.send(m),ib("al "+r)}else f(r)},s.FS_createLazyFile=function(t,e,r,n,i){var o,a;"undefined"!==typeof XMLHttpRequest?(ea||g("Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc"),o=function(){this.ma=p,this.T=[]},o.prototype.get=function(t){if(!(t>this.length-1||0>t)){var e=t%this.S;return this.pb(Math.floor(t/this.S))[e]}},o.prototype.Cb=function(t){this.pb=t},o.prototype.Fa=function(){var t=new XMLHttpRequest;t.open("HEAD",r,p),t.send(m),200<=t.status&&300>t.status||304===t.status||g(Error("Couldn't load "+r+". Status: "+t.status));var e,n=Number(t.getResponseHeader("Content-length")),i=1048576;(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e||(i=n);var o=this;o.Cb(function(t){var e=t*i,a=(t+1)*i-1,a=Math.min(a,n-1);if("undefined"===typeof o.T[t]){var s=o.T;e>a&&g(Error("invalid range ("+e+", "+a+") or no bytes requested!")),a>n-1&&g(Error("only "+n+" bytes available! programmer error!"));var u=new XMLHttpRequest;u.open("GET",r,p),n!==i&&u.setRequestHeader("Range","bytes="+e+"-"+a),"undefined"!=typeof Uint8Array&&(u.responseType="arraybuffer"),u.overrideMimeType&&u.overrideMimeType("text/plain; charset=x-user-defined"),u.send(m),200<=u.status&&300>u.status||304===u.status||g(Error("Couldn't load "+r+". Status: "+u.status)),e=u.response!==k?new Uint8Array(u.response||[]):J(u.responseText||"",l),s[t]=e}return"undefined"===typeof o.T[t]&&g(Error("doXHR failed!")),o.T[t]}),this.gb=n,this.fb=i,this.ma=l},o=new o,Object.defineProperty(o,"length",{get:function(){return this.ma||this.Fa(),this.gb}}),Object.defineProperty(o,"chunkSize",{get:function(){return this.ma||this.Fa(),this.fb}}),a=k):(a=r,o=k);var u,t=S("string"===typeof t?t:ac(t),e);u=yb(t,cc(n,i)),o?u.g=o:a&&(u.g=m,u.url=a);var c={};return Object.keys(u.e).forEach(function(t){var e=u.e[t];c[t]=function(){var t;if(u.ke||u.le||u.link||u.g)t=l;else{if(t=l,"undefined"!==typeof XMLHttpRequest&&g(Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.")),s.read)try{u.g=J(s.read(u.url),l)}catch(e){t=p}else g(Error("Cannot load without read() or XMLHttpRequest."));t||M(N.I)}return t||g(new Q(N.I)),e.apply(m,arguments)}}),c.Q=function(t,e,r,n,i){if(t=t.d.g,n=Math.min(t.length-i,n),t.slice)for(var o=0;o<n;o++)e[r+o]=t[i+o];else for(o=0;o<n;o++)e[r+o]=t.get(i+o);return n},u.e=c,u},s.FS_createLink=function(t,e,r){return t=S("string"===typeof t?t:ac(t),e),Bb(r,t)},s.FS_createDevice=ec,U.m=F(12,"void*",E),wc(W),Bc.J=F([0],"i8",E),s.requestFullScreen=function(t,e){function r(){Dc=p,(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement)===n?(n.Ga=document.cancelFullScreen||document.mozCancelFullScreen||document.webkitCancelFullScreen,n.Ga=n.Ga.bind(document),Gc&&n.qa(),Dc=l,Hc&&Lc()):Hc&&Mc(),s.onFullScreen&&s.onFullScreen(Dc)}Gc=t,Hc=e,"undefined"===typeof Gc&&(Gc=l),"undefined"===typeof Hc&&(Hc=p);var n=s.canvas;Fc||(Fc=l,document.addEventListener("fullscreenchange",r,p),document.addEventListener("mozfullscreenchange",r,p),document.addEventListener("webkitfullscreenchange",r,p)),n.Ab=n.requestFullScreen||n.mozRequestFullScreen||(n.webkitRequestFullScreen?function(){n.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:m),n.Ab()},s.requestAnimationFrame=function(t){window.requestAnimationFrame||(window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||window.setTimeout),window.requestAnimationFrame(t)},s.pauseMainLoop=aa(),s.resumeMainLoop=function(){Cc&&(Cc=p,m())},s.getUserMedia=function(){window.Ma||(window.Ma=navigator.getUserMedia||navigator.mozGetUserMedia),window.Ma(k)},Sa=u=xa(sa),Ta=Sa+5242880,Ua=z=xa(Ta),w(Ua<va);var Vc=F([8,7,6,6,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"i8",3),Wc=F([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0],"i8",3),Xc=Math.min,V=function(t,e,r){"use asm";var n=new t.Int8Array(r);var i=new t.Int16Array(r);var o=new t.Int32Array(r);var a=new t.Uint8Array(r);var s=new t.Uint16Array(r);var u=new t.Uint32Array(r);var c=new t.Float32Array(r);var f=new t.Float64Array(r);var h=e.STACKTOP|0;var l=e.STACK_MAX|0;var d=e.tempDoublePtr|0;var p=e.ABORT|0;var m=e.cttz_i8|0;var b=e.ctlz_i8|0;var v=e._stderr|0;var y=e.__ZTVN10__cxxabiv120__si_class_type_infoE|0;var g=e.__ZTVN10__cxxabiv117__class_type_infoE|0;var _=e.___progname|0;var w=+e.NaN;var M=+e.Infinity;var k=0;var E=0;var x=0;var S=0;var A=0,C=0,T=0,I=0,P=0,R=0,O=0,j=0,N=0;var B=0;var L=0;var F=0;var D=0;var U=0;var q=0;var z=0;var H=0;var V=0;var K=0;var Y=t.Math.floor;var G=t.Math.abs;var W=t.Math.sqrt;var Z=t.Math.pow;var X=t.Math.cos;var $=t.Math.sin;var Q=t.Math.tan;var J=t.Math.acos;var tt=t.Math.asin;var et=t.Math.atan;var rt=t.Math.atan2;var nt=t.Math.exp;var it=t.Math.log;var ot=t.Math.ceil;var at=t.Math.imul;var st=e.abort;var ut=e.assert;var ct=e.asmPrintInt;var ft=e.asmPrintFloat;var ht=e.min;var lt=e.invoke_vi;var dt=e.invoke_vii;var pt=e.invoke_ii;var mt=e.invoke_viii;var bt=e.invoke_v;var vt=e.invoke_iii;var yt=e._strncmp;var gt=e._llvm_va_end;var _t=e._sysconf;var wt=e.___cxa_throw;var Mt=e._strerror;var kt=e._abort;var Et=e._fprintf;var xt=e._llvm_eh_exception;var St=e.___cxa_free_exception;var At=e._fflush;var Ct=e.___buildEnvironment;var Tt=e.__reallyNegative;var It=e._strchr;var Pt=e._fputc;var Rt=e.___setErrNo;var Ot=e._fwrite;var jt=e._send;var Nt=e._write;var Bt=e._exit;var Lt=e.___cxa_find_matching_catch;var Ft=e.___cxa_allocate_exception;var Dt=e._isspace;var Ut=e.__formatString;var qt=e.___resumeException;var zt=e._llvm_uadd_with_overflow_i32;var Ht=e.___cxa_does_inherit;var Vt=e._getenv;var Kt=e._vfprintf;var Yt=e.___cxa_begin_catch;var Gt=e.__ZSt18uncaught_exceptionv;var Wt=e._pwrite;var Zt=e.___cxa_call_unexpected;var Xt=e._sbrk;var $t=e._strerror_r;var Qt=e.___errno_location;var Jt=e.___gxx_personality_v0;var te=e.___cxa_is_number_type;var ee=e._time;var re=e.__exit;var ne=e.___cxa_end_catch;function ie(t){t=t|0;var e=0;e=h;h=h+t|0;h=h+7>>3<<3;return e|0}function oe(){return h|0}function ae(t){t=t|0;h=t}function se(t,e){t=t|0;e=e|0;if((k|0)==0){k=t;E=e}}function ue(t){t=t|0;n[d]=n[t];n[d+1|0]=n[t+1|0];n[d+2|0]=n[t+2|0];n[d+3|0]=n[t+3|0]}function ce(t){t=t|0;n[d]=n[t];n[d+1|0]=n[t+1|0];n[d+2|0]=n[t+2|0];n[d+3|0]=n[t+3|0];n[d+4|0]=n[t+4|0];n[d+5|0]=n[t+5|0];n[d+6|0]=n[t+6|0];n[d+7|0]=n[t+7|0]}function fe(t){t=t|0;B=t}function he(t){t=t|0;L=t}function le(t){t=t|0;F=t}function de(t){t=t|0;D=t}function pe(t){t=t|0;U=t}function me(t){t=t|0;q=t}function be(t){t=t|0;z=t}function ve(t){t=t|0;H=t}function ye(t){t=t|0;V=t}function ge(t){t=t|0;K=t}function _e(){o[170]=g+8;o[172]=y+8;o[176]=y+8}function we(t,e,r){t=t|0;e=e|0;r=r|0;var i=0;if((r|0)==0){return}else{i=0}do{n[t+i|0]=n[e+i|0]|0;i=i+1|0}while(i>>>0<r>>>0);return}function Me(t,e,r){t=t|0;e=e|0;r=r|0;var i=0,o=0;if((r|0)==0){return}else{i=0}do{o=t+i|0;n[o]=n[o]^n[e+i|0];i=i+1|0}while(i>>>0<r>>>0);return}function ke(t){t=t|0;var e=0,r=0,n=0,i=0;e=a[t+1|0]|0;r=a[t+2|0]|0;n=a[t+3|0]|0;i=rn(e<<8|0>>>24|(a[t]|0)|(r<<16|0>>>16)|(n<<24|0>>>8)|(0<<8|0>>>24),0<<8|e>>>24|(0<<16|r>>>16)|(0<<24|n>>>8)|(a[t+4|0]|0)|((a[t+5|0]|0)<<8|0>>>24),0<<16|0>>>16,(a[t+6|0]|0)<<16|0>>>16)|0;n=rn(i,B,0<<24|0>>>8,(a[t+7|0]|0)<<24|0>>>8)|0;return(B=B,n)|0}function Ee(t){t=t|0;return(a[t+1|0]|0)<<8|(a[t]|0)|(a[t+2|0]|0)<<16|(a[t+3|0]|0)<<24|0}function xe(t,e){t=t|0;e=e|0;n[t]=e&255;n[t+1|0]=e>>>8&255;n[t+2|0]=e>>>16&255;n[t+3|0]=e>>>24&255;return}function Se(t){t=t|0;o[t+36>>2]=0;o[t+32>>2]=0;o[t>>2]=1779033703;o[t+4>>2]=-1150833019;o[t+8>>2]=1013904242;o[t+12>>2]=-1521486534;o[t+16>>2]=1359893119;o[t+20>>2]=-1694144372;o[t+24>>2]=528734635;o[t+28>>2]=1541459225;return}function Ae(t,e,r,n,i,a,s,u,c,f){t=t|0;e=e|0;r=r|0;n=n|0;i=i|0;a=a|0;s=s|0;u=u|0;c=c|0;f=f|0;var h=0,l=0,d=0,p=0,m=0,b=0,v=0,y=0;h=dn(u,0,s,0)|0;l=B;d=0;if(l>>>0>d>>>0|l>>>0==d>>>0&h>>>0>1073741823>>>0){o[(Qt()|0)>>2]=27;p=-1;return p|0}h=rn(i,a,-1,-1)|0;if((h&i|0)!=0|(B&a|0)!=0|(i|0)==0&(a|0)==0){o[(Qt()|0)>>2]=22;p=-1;return p|0}do{if(!((33554431/(u>>>0)|0)>>>0<s>>>0|s>>>0>16777215)){h=0;if(h>>>0<a>>>0|h>>>0==a>>>0&(33554431/(s>>>0)|0)>>>0<i>>>0){break}h=s<<7;d=Ve(at(h,u)|0)|0;if((d|0)==0){p=-1;return p|0}l=Ve(s<<8)|0;do{if((l|0)!=0){m=dn(h,0,i,a)|0;b=Ve(m)|0;if((b|0)==0){Ke(l);break}m=at(u<<7,s)|0;ze(t,e,r,n,1,0,d,m);if((u|0)!=0){v=s<<7;y=0;do{Ce(d+(at(v,y)|0)|0,s,i,a,b,l);y=y+1|0}while(y>>>0<u>>>0)}ze(t,e,d,m,1,0,c,f);Ke(b);Ke(l);Ke(d);p=0;return p|0}}while(0);Ke(d);p=-1;return p|0}}while(0);o[(Qt()|0)>>2]=12;p=-1;return p|0}function Ce(t,e,r,n,i,o){t=t|0;e=e|0;r=r|0;n=n|0;i=i|0;o=o|0;var a=0,s=0,u=0,c=0,f=0,h=0,l=0,d=0,p=0,m=0;a=e<<7;s=o+a|0;we(o,t,a);if((r|0)==0&(n|0)==0){we(t,o,a);return}u=a;c=0;f=0;h=0;do{l=dn(h,f,u,c)|0;we(i+l|0,o,a);Te(o,s,e);h=rn(h,f,1,0)|0;f=B}while(f>>>0<n>>>0|f>>>0==n>>>0&h>>>0<r>>>0);if((r|0)==0&(n|0)==0){we(t,o,a);return}h=rn(r,n,-1,-1)|0;f=B;c=a;u=0;l=0;d=0;do{p=Ie(o,e)|0;m=dn(p&h,B&f,c,u)|0;Me(o,i+m|0,a);Te(o,s,e);d=rn(d,l,1,0)|0;l=B}while(l>>>0<n>>>0|l>>>0==n>>>0&d>>>0<r>>>0);we(t,o,a);return}function Te(t,e,r){t=t|0;e=e|0;r=r|0;var n=0,i=0,o=0,a=0,s=0,u=0,c=0;n=h;h=h+64|0;i=n|0;o=r<<1;we(i,t+((r<<7)-64)|0,64);if((o|0)!=0){a=0;do{s=a<<6;Me(i,t+s|0,64);Pe(i);we(e+s|0,i,64);a=a+1|0}while(a>>>0<o>>>0)}if((r|0)==0){h=n;return}else{u=0}do{we(t+(u<<6)|0,e+(u<<7)|0,64);u=u+1|0}while(u>>>0<r>>>0);if((r|0)==0){h=n;return}else{c=0}do{we(t+(c+r<<6)|0,e+(c<<7|64)|0,64);c=c+1|0}while(c>>>0<r>>>0);h=n;return}function Ie(t,e){t=t|0;e=e|0;var r=0;r=ke(t+((e<<7)-64)|0)|0;return(B=B,r)|0}function Pe(t){t=t|0;var e=0,r=0,n=0,i=0,a=0,s=0,u=0,c=0,f=0,l=0,d=0,p=0,m=0,b=0,v=0,y=0,g=0,_=0,w=0,M=0,k=0,E=0,x=0,S=0,A=0,C=0,T=0,I=0,P=0,R=0,O=0,j=0,N=0,B=0,L=0,F=0,D=0,U=0,q=0,z=0,H=0,V=0,K=0,Y=0,G=0,W=0,Z=0,X=0,$=0,Q=0,J=0,tt=0,et=0;e=h;h=h+128|0;r=e|0;n=e+64|0;i=0;do{o[r+(i<<2)>>2]=Ee(t+(i<<2)|0)|0;i=i+1|0}while(i>>>0<16);i=r;a=n;Jr(a|0,i|0,64)|0;i=n|0;a=n+48|0;s=n+16|0;u=n+32|0;c=n+20|0;f=n+4|0;l=n+36|0;d=n+52|0;p=n+40|0;m=n+24|0;b=n+56|0;v=n+8|0;y=n+60|0;g=n+44|0;_=n+12|0;w=n+28|0;M=0;k=o[i>>2]|0;E=o[a>>2]|0;x=o[s>>2]|0;S=o[u>>2]|0;A=o[c>>2]|0;C=o[f>>2]|0;T=o[l>>2]|0;I=o[d>>2]|0;P=o[p>>2]|0;R=o[m>>2]|0;O=o[b>>2]|0;j=o[v>>2]|0;N=o[y>>2]|0;B=o[g>>2]|0;L=o[_>>2]|0;F=o[w>>2]|0;do{D=E+k|0;U=(D<<7|D>>>25)^x;D=U+k|0;q=(D<<9|D>>>23)^S;D=q+U|0;z=(D<<13|D>>>19)^E;D=z+q|0;H=(D<<18|D>>>14)^k;D=C+A|0;V=(D<<7|D>>>25)^T;D=V+A|0;K=(D<<9|D>>>23)^I;D=K+V|0;Y=(D<<13|D>>>19)^C;D=Y+K|0;G=(D<<18|D>>>14)^A;D=R+P|0;W=(D<<7|D>>>25)^O;D=W+P|0;Z=(D<<9|D>>>23)^j;D=Z+W|0;X=(D<<13|D>>>19)^R;D=X+Z|0;$=(D<<18|D>>>14)^P;D=B+N|0;Q=(D<<7|D>>>25)^L;D=Q+N|0;J=(D<<9|D>>>23)^F;D=J+Q|0;tt=(D<<13|D>>>19)^B;D=tt+J|0;et=(D<<18|D>>>14)^N;D=Q+H|0;C=(D<<7|D>>>25)^Y;Y=C+H|0;j=(Y<<9|Y>>>23)^Z;Z=j+C|0;L=(Z<<13|Z>>>19)^Q;Q=L+j|0;k=(Q<<18|Q>>>14)^H;H=U+G|0;R=(H<<7|H>>>25)^X;X=R+G|0;F=(X<<9|X>>>23)^J;J=F+R|0;x=(J<<13|J>>>19)^U;U=x+F|0;A=(U<<18|U>>>14)^G;G=V+$|0;B=(G<<7|G>>>25)^tt;tt=B+$|0;S=(tt<<9|tt>>>23)^q;q=S+B|0;T=(q<<13|q>>>19)^V;V=T+S|0;P=(V<<18|V>>>14)^$;$=W+et|0;E=($<<7|$>>>25)^z;z=E+et|0;I=(z<<9|z>>>23)^K;K=I+E|0;O=(K<<13|K>>>19)^W;W=O+I|0;N=(W<<18|W>>>14)^et;M=M+2|0}while(M>>>0<8);o[i>>2]=k;o[a>>2]=E;o[s>>2]=x;o[u>>2]=S;o[c>>2]=A;o[f>>2]=C;o[l>>2]=T;o[d>>2]=I;o[p>>2]=P;o[m>>2]=R;o[b>>2]=O;o[v>>2]=j;o[y>>2]=N;o[g>>2]=B;o[_>>2]=L;o[w>>2]=F;F=r|0;o[F>>2]=(o[F>>2]|0)+(o[n>>2]|0);F=r+4|0;o[F>>2]=(o[F>>2]|0)+(o[n+4>>2]|0);F=r+8|0;o[F>>2]=(o[F>>2]|0)+(o[n+8>>2]|0);F=r+12|0;o[F>>2]=(o[F>>2]|0)+(o[n+12>>2]|0);F=r+16|0;o[F>>2]=(o[F>>2]|0)+(o[n+16>>2]|0);F=r+20|0;o[F>>2]=(o[F>>2]|0)+(o[n+20>>2]|0);F=r+24|0;o[F>>2]=(o[F>>2]|0)+(o[n+24>>2]|0);F=r+28|0;o[F>>2]=(o[F>>2]|0)+(o[n+28>>2]|0);F=r+32|0;o[F>>2]=(o[F>>2]|0)+(o[n+32>>2]|0);F=r+36|0;o[F>>2]=(o[F>>2]|0)+(o[n+36>>2]|0);F=r+40|0;o[F>>2]=(o[F>>2]|0)+(o[n+40>>2]|0);F=r+44|0;o[F>>2]=(o[F>>2]|0)+(o[n+44>>2]|0);F=r+48|0;o[F>>2]=(o[F>>2]|0)+(o[n+48>>2]|0);F=r+52|0;o[F>>2]=(o[F>>2]|0)+(o[n+52>>2]|0);F=r+56|0;o[F>>2]=(o[F>>2]|0)+(o[n+56>>2]|0);F=r+60|0;o[F>>2]=(o[F>>2]|0)+(o[n+60>>2]|0);n=0;do{xe(t+(n<<2)|0,o[r+(n<<2)>>2]|0);n=n+1|0}while(n>>>0<16);h=e;return}function Re(t,e,r){t=t|0;e=e|0;r=r|0;var n=0,i=0,a=0,s=0,u=0,c=0,f=0;n=t+32|0;i=t+36|0;a=o[i>>2]|0;s=a>>>3&63;u=zt(a|0,r<<3|0)|0;o[i>>2]=u;if(B){u=n|0;o[u>>2]=(o[u>>2]|0)+1}u=n|0;o[u>>2]=(o[u>>2]|0)+(r>>>29);u=64-s|0;n=t+40+s|0;if(u>>>0>r>>>0){Jr(n|0,e|0,r)|0;return}Jr(n|0,e|0,u)|0;n=t|0;s=t+40|0;Oe(n,s);t=e+u|0;e=r-u|0;if(e>>>0>63){u=e;r=t;while(1){Oe(n,r);i=r+64|0;a=u-64|0;if(a>>>0>63){u=a;r=i}else{c=a;f=i;break}}}else{c=e;f=t}Jr(s|0,f|0,c)|0;return}function Oe(t,e){t=t|0;e=e|0;var r=0,n=0,i=0,a=0,s=0,u=0,c=0,f=0,l=0,d=0,p=0,m=0,b=0,v=0,y=0;r=h;h=h+288|0;n=r|0;i=r+256|0;a=n|0;He(a,e);e=16;do{s=o[n+(e-2<<2)>>2]|0;u=o[n+(e-15<<2)>>2]|0;o[n+(e<<2)>>2]=(o[n+(e-16<<2)>>2]|0)+(o[n+(e-7<<2)>>2]|0)+((s>>>19|s<<13)^s>>>10^(s>>>17|s<<15))+((u>>>18|u<<14)^u>>>3^(u>>>7|u<<25));e=e+1|0}while((e|0)<64);e=i;u=t;Jr(e|0,u|0,32)|0;u=i+28|0;e=i+16|0;s=o[e>>2]|0;c=i+20|0;f=i+24|0;l=o[f>>2]|0;d=(o[u>>2]|0)+1116352408+(o[a>>2]|0)+((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+((l^o[c>>2])&s^l)|0;l=i|0;s=o[l>>2]|0;a=i+4|0;p=o[a>>2]|0;m=i+8|0;b=o[m>>2]|0;v=i+12|0;o[v>>2]=(o[v>>2]|0)+d;y=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+d+((b|p)&s|b&p)|0;o[u>>2]=y;p=o[v>>2]|0;b=o[c>>2]|0;s=(o[f>>2]|0)+1899447441+(o[n+4>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[e>>2])&p^b)|0;b=o[l>>2]|0;p=o[a>>2]|0;o[m>>2]=(o[m>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((p|b)&y|p&b)|0;o[f>>2]=d;b=o[m>>2]|0;p=o[e>>2]|0;y=(o[c>>2]|0)-1245643825+(o[n+8>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[v>>2])&b^p)|0;p=o[u>>2]|0;b=o[l>>2]|0;o[a>>2]=(o[a>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((b|p)&d|b&p)|0;o[c>>2]=s;p=o[a>>2]|0;b=o[v>>2]|0;d=(o[e>>2]|0)-373957723+(o[n+12>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[m>>2])&p^b)|0;b=o[f>>2]|0;p=o[u>>2]|0;o[l>>2]=(o[l>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|b)&s|p&b)|0;o[e>>2]=y;b=o[l>>2]|0;p=o[m>>2]|0;s=(o[v>>2]|0)+961987163+(o[n+16>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[a>>2])&b^p)|0;p=o[c>>2]|0;b=o[f>>2]|0;o[u>>2]=(o[u>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((b|p)&y|b&p)|0;o[v>>2]=d;p=o[u>>2]|0;b=o[a>>2]|0;y=(o[m>>2]|0)+1508970993+(o[n+20>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[l>>2])&p^b)|0;b=o[e>>2]|0;p=o[c>>2]|0;o[f>>2]=(o[f>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((p|b)&d|p&b)|0;o[m>>2]=s;b=o[f>>2]|0;p=o[l>>2]|0;d=(o[a>>2]|0)-1841331548+(o[n+24>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[u>>2])&b^p)|0;p=o[v>>2]|0;b=o[e>>2]|0;o[c>>2]=(o[c>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((b|p)&s|b&p)|0;o[a>>2]=y;p=o[c>>2]|0;b=o[u>>2]|0;s=(o[l>>2]|0)-1424204075+(o[n+28>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[f>>2])&p^b)|0;b=o[m>>2]|0;p=o[v>>2]|0;o[e>>2]=(o[e>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((p|b)&y|p&b)|0;o[l>>2]=d;b=o[e>>2]|0;p=o[f>>2]|0;y=(o[u>>2]|0)-670586216+(o[n+32>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[c>>2])&b^p)|0;p=o[a>>2]|0;b=o[m>>2]|0;o[v>>2]=(o[v>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((b|p)&d|b&p)|0;o[u>>2]=s;p=o[v>>2]|0;b=o[c>>2]|0;d=(o[f>>2]|0)+310598401+(o[n+36>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[e>>2])&p^b)|0;b=o[l>>2]|0;p=o[a>>2]|0;o[m>>2]=(o[m>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|b)&s|p&b)|0;o[f>>2]=y;b=o[m>>2]|0;p=o[e>>2]|0;s=(o[c>>2]|0)+607225278+(o[n+40>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[v>>2])&b^p)|0;p=o[u>>2]|0;b=o[l>>2]|0;o[a>>2]=(o[a>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((b|p)&y|b&p)|0;o[c>>2]=d;p=o[a>>2]|0;b=o[v>>2]|0;y=(o[e>>2]|0)+1426881987+(o[n+44>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[m>>2])&p^b)|0;b=o[f>>2]|0;p=o[u>>2]|0;o[l>>2]=(o[l>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((p|b)&d|p&b)|0;o[e>>2]=s;b=o[l>>2]|0;p=o[m>>2]|0;d=(o[v>>2]|0)+1925078388+(o[n+48>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[a>>2])&b^p)|0;p=o[c>>2]|0;b=o[f>>2]|0;o[u>>2]=(o[u>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((b|p)&s|b&p)|0;o[v>>2]=y;p=o[u>>2]|0;b=o[a>>2]|0;s=(o[m>>2]|0)-2132889090+(o[n+52>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[l>>2])&p^b)|0;b=o[e>>2]|0;p=o[c>>2]|0;o[f>>2]=(o[f>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((p|b)&y|p&b)|0;o[m>>2]=d;b=o[f>>2]|0;p=o[l>>2]|0;y=(o[a>>2]|0)-1680079193+(o[n+56>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[u>>2])&b^p)|0;p=o[v>>2]|0;b=o[e>>2]|0;o[c>>2]=(o[c>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((b|p)&d|b&p)|0;o[a>>2]=s;p=o[c>>2]|0;b=o[u>>2]|0;d=(o[l>>2]|0)-1046744716+(o[n+60>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[f>>2])&p^b)|0;b=o[m>>2]|0;p=o[v>>2]|0;o[e>>2]=(o[e>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|b)&s|p&b)|0;o[l>>2]=y;b=o[e>>2]|0;p=o[f>>2]|0;s=(o[u>>2]|0)-459576895+(o[n+64>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[c>>2])&b^p)|0;p=o[a>>2]|0;b=o[m>>2]|0;o[v>>2]=(o[v>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((b|p)&y|b&p)|0;o[u>>2]=d;p=o[v>>2]|0;b=o[c>>2]|0;y=(o[f>>2]|0)-272742522+(o[n+68>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[e>>2])&p^b)|0;b=o[l>>2]|0;p=o[a>>2]|0;o[m>>2]=(o[m>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((p|b)&d|p&b)|0;o[f>>2]=s;b=o[m>>2]|0;p=o[e>>2]|0;d=(o[c>>2]|0)+264347078+(o[n+72>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[v>>2])&b^p)|0;p=o[u>>2]|0;b=o[l>>2]|0;o[a>>2]=(o[a>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((b|p)&s|b&p)|0;o[c>>2]=y;p=o[a>>2]|0;b=o[v>>2]|0;s=(o[e>>2]|0)+604807628+(o[n+76>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[m>>2])&p^b)|0;b=o[f>>2]|0;p=o[u>>2]|0;o[l>>2]=(o[l>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((p|b)&y|p&b)|0;o[e>>2]=d;b=o[l>>2]|0;p=o[m>>2]|0;y=(o[v>>2]|0)+770255983+(o[n+80>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[a>>2])&b^p)|0;p=o[c>>2]|0;b=o[f>>2]|0;o[u>>2]=(o[u>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((b|p)&d|b&p)|0;o[v>>2]=s;p=o[u>>2]|0;b=o[a>>2]|0;d=(o[m>>2]|0)+1249150122+(o[n+84>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[l>>2])&p^b)|0;b=o[e>>2]|0;p=o[c>>2]|0;o[f>>2]=(o[f>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|b)&s|p&b)|0;o[m>>2]=y;b=o[f>>2]|0;p=o[l>>2]|0;s=(o[a>>2]|0)+1555081692+(o[n+88>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[u>>2])&b^p)|0;p=o[v>>2]|0;b=o[e>>2]|0;o[c>>2]=(o[c>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((b|p)&y|b&p)|0;o[a>>2]=d;p=o[c>>2]|0;b=o[u>>2]|0;y=(o[l>>2]|0)+1996064986+(o[n+92>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[f>>2])&p^b)|0;b=o[m>>2]|0;p=o[v>>2]|0;o[e>>2]=(o[e>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((p|b)&d|p&b)|0;o[l>>2]=s;b=o[e>>2]|0;p=o[f>>2]|0;d=(o[u>>2]|0)-1740746414+(o[n+96>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[c>>2])&b^p)|0;p=o[a>>2]|0;b=o[m>>2]|0;o[v>>2]=(o[v>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((b|p)&s|b&p)|0;o[u>>2]=y;p=o[v>>2]|0;b=o[c>>2]|0;s=(o[f>>2]|0)-1473132947+(o[n+100>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[e>>2])&p^b)|0;b=o[l>>2]|0;p=o[a>>2]|0;o[m>>2]=(o[m>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((p|b)&y|p&b)|0;o[f>>2]=d;b=o[m>>2]|0;p=o[e>>2]|0;y=(o[c>>2]|0)-1341970488+(o[n+104>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[v>>2])&b^p)|0;p=o[u>>2]|0;b=o[l>>2]|0;o[a>>2]=(o[a>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((b|p)&d|b&p)|0;o[c>>2]=s;p=o[a>>2]|0;b=o[v>>2]|0;d=(o[e>>2]|0)-1084653625+(o[n+108>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[m>>2])&p^b)|0;b=o[f>>2]|0;p=o[u>>2]|0;o[l>>2]=(o[l>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|b)&s|p&b)|0;o[e>>2]=y;b=o[l>>2]|0;p=o[m>>2]|0;s=(o[v>>2]|0)-958395405+(o[n+112>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[a>>2])&b^p)|0;p=o[c>>2]|0;b=o[f>>2]|0;o[u>>2]=(o[u>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((b|p)&y|b&p)|0;o[v>>2]=d;p=o[u>>2]|0;b=o[a>>2]|0;y=(o[m>>2]|0)-710438585+(o[n+116>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[l>>2])&p^b)|0;b=o[e>>2]|0;p=o[c>>2]|0;o[f>>2]=(o[f>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((p|b)&d|p&b)|0;o[m>>2]=s;b=o[f>>2]|0;p=o[l>>2]|0;d=(o[a>>2]|0)+113926993+(o[n+120>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[u>>2])&b^p)|0;p=o[v>>2]|0;b=o[e>>2]|0;o[c>>2]=(o[c>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((b|p)&s|b&p)|0;o[a>>2]=y;p=o[c>>2]|0;b=o[u>>2]|0;s=(o[l>>2]|0)+338241895+(o[n+124>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[f>>2])&p^b)|0;b=o[m>>2]|0;p=o[v>>2]|0;o[e>>2]=(o[e>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((p|b)&y|p&b)|0;o[l>>2]=d;b=o[e>>2]|0;p=o[f>>2]|0;y=(o[u>>2]|0)+666307205+(o[n+128>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[c>>2])&b^p)|0;p=o[a>>2]|0;b=o[m>>2]|0;o[v>>2]=(o[v>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((b|p)&d|b&p)|0;o[u>>2]=s;p=o[v>>2]|0;b=o[c>>2]|0;d=(o[f>>2]|0)+773529912+(o[n+132>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[e>>2])&p^b)|0;b=o[l>>2]|0;p=o[a>>2]|0;o[m>>2]=(o[m>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|b)&s|p&b)|0;o[f>>2]=y;b=o[m>>2]|0;p=o[e>>2]|0;s=(o[c>>2]|0)+1294757372+(o[n+136>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[v>>2])&b^p)|0;p=o[u>>2]|0;b=o[l>>2]|0;o[a>>2]=(o[a>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((b|p)&y|b&p)|0;o[c>>2]=d;p=o[a>>2]|0;b=o[v>>2]|0;y=(o[e>>2]|0)+1396182291+(o[n+140>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[m>>2])&p^b)|0;b=o[f>>2]|0;p=o[u>>2]|0;o[l>>2]=(o[l>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((p|b)&d|p&b)|0;o[e>>2]=s;b=o[l>>2]|0;p=o[m>>2]|0;d=(o[v>>2]|0)+1695183700+(o[n+144>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[a>>2])&b^p)|0;p=o[c>>2]|0;b=o[f>>2]|0;o[u>>2]=(o[u>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((b|p)&s|b&p)|0;o[v>>2]=y;p=o[u>>2]|0;b=o[a>>2]|0;s=(o[m>>2]|0)+1986661051+(o[n+148>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[l>>2])&p^b)|0;b=o[e>>2]|0;p=o[c>>2]|0;o[f>>2]=(o[f>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((p|b)&y|p&b)|0;o[m>>2]=d;b=o[f>>2]|0;p=o[l>>2]|0;y=(o[a>>2]|0)-2117940946+(o[n+152>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[u>>2])&b^p)|0;p=o[v>>2]|0;b=o[e>>2]|0;o[c>>2]=(o[c>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((b|p)&d|b&p)|0;o[a>>2]=s;p=o[c>>2]|0;b=o[u>>2]|0;d=(o[l>>2]|0)-1838011259+(o[n+156>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[f>>2])&p^b)|0;b=o[m>>2]|0;p=o[v>>2]|0;o[e>>2]=(o[e>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|b)&s|p&b)|0;o[l>>2]=y;b=o[e>>2]|0;p=o[f>>2]|0;s=(o[u>>2]|0)-1564481375+(o[n+160>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[c>>2])&b^p)|0;p=o[a>>2]|0;b=o[m>>2]|0;o[v>>2]=(o[v>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((b|p)&y|b&p)|0;o[u>>2]=d;p=o[v>>2]|0;b=o[c>>2]|0;y=(o[f>>2]|0)-1474664885+(o[n+164>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[e>>2])&p^b)|0;b=o[l>>2]|0;p=o[a>>2]|0;o[m>>2]=(o[m>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((p|b)&d|p&b)|0;o[f>>2]=s;b=o[m>>2]|0;p=o[e>>2]|0;d=(o[c>>2]|0)-1035236496+(o[n+168>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[v>>2])&b^p)|0;p=o[u>>2]|0;b=o[l>>2]|0;o[a>>2]=(o[a>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((b|p)&s|b&p)|0;o[c>>2]=y;p=o[a>>2]|0;b=o[v>>2]|0;s=(o[e>>2]|0)-949202525+(o[n+172>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[m>>2])&p^b)|0;b=o[f>>2]|0;p=o[u>>2]|0;o[l>>2]=(o[l>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((p|b)&y|p&b)|0;o[e>>2]=d;b=o[l>>2]|0;p=o[m>>2]|0;y=(o[v>>2]|0)-778901479+(o[n+176>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[a>>2])&b^p)|0;p=o[c>>2]|0;b=o[f>>2]|0;o[u>>2]=(o[u>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((b|p)&d|b&p)|0;o[v>>2]=s;p=o[u>>2]|0;b=o[a>>2]|0;d=(o[m>>2]|0)-694614492+(o[n+180>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[l>>2])&p^b)|0;b=o[e>>2]|0;p=o[c>>2]|0;o[f>>2]=(o[f>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|b)&s|p&b)|0;o[m>>2]=y;b=o[f>>2]|0;p=o[l>>2]|0;s=(o[a>>2]|0)-200395387+(o[n+184>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[u>>2])&b^p)|0;p=o[v>>2]|0;b=o[e>>2]|0;o[c>>2]=(o[c>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((b|p)&y|b&p)|0;o[a>>2]=d;p=o[c>>2]|0;b=o[u>>2]|0;y=(o[l>>2]|0)+275423344+(o[n+188>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[f>>2])&p^b)|0;b=o[m>>2]|0;p=o[v>>2]|0;o[e>>2]=(o[e>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((p|b)&d|p&b)|0;o[l>>2]=s;b=o[e>>2]|0;p=o[f>>2]|0;d=(o[u>>2]|0)+430227734+(o[n+192>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[c>>2])&b^p)|0;p=o[a>>2]|0;b=o[m>>2]|0;o[v>>2]=(o[v>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((b|p)&s|b&p)|0;o[u>>2]=y;p=o[v>>2]|0;b=o[c>>2]|0;s=(o[f>>2]|0)+506948616+(o[n+196>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[e>>2])&p^b)|0;b=o[l>>2]|0;p=o[a>>2]|0;o[m>>2]=(o[m>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((p|b)&y|p&b)|0;o[f>>2]=d;b=o[m>>2]|0;p=o[e>>2]|0;y=(o[c>>2]|0)+659060556+(o[n+200>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[v>>2])&b^p)|0;p=o[u>>2]|0;b=o[l>>2]|0;o[a>>2]=(o[a>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((b|p)&d|b&p)|0;o[c>>2]=s;p=o[a>>2]|0;b=o[v>>2]|0;d=(o[e>>2]|0)+883997877+(o[n+204>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[m>>2])&p^b)|0;b=o[f>>2]|0;p=o[u>>2]|0;o[l>>2]=(o[l>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|b)&s|p&b)|0;o[e>>2]=y;b=o[l>>2]|0;p=o[m>>2]|0;s=(o[v>>2]|0)+958139571+(o[n+208>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[a>>2])&b^p)|0;p=o[c>>2]|0;b=o[f>>2]|0;o[u>>2]=(o[u>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((b|p)&y|b&p)|0;o[v>>2]=d;p=o[u>>2]|0;b=o[a>>2]|0;y=(o[m>>2]|0)+1322822218+(o[n+212>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[l>>2])&p^b)|0;b=o[e>>2]|0;p=o[c>>2]|0;o[f>>2]=(o[f>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((p|b)&d|p&b)|0;o[m>>2]=s;b=o[f>>2]|0;p=o[l>>2]|0;d=(o[a>>2]|0)+1537002063+(o[n+216>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[u>>2])&b^p)|0;p=o[v>>2]|0;b=o[e>>2]|0;o[c>>2]=(o[c>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((b|p)&s|b&p)|0;o[a>>2]=y;p=o[c>>2]|0;b=o[u>>2]|0;s=(o[l>>2]|0)+1747873779+(o[n+220>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[f>>2])&p^b)|0;b=o[m>>2]|0;p=o[v>>2]|0;o[e>>2]=(o[e>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((p|b)&y|p&b)|0;o[l>>2]=d;b=o[e>>2]|0;p=o[f>>2]|0;y=(o[u>>2]|0)+1955562222+(o[n+224>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[c>>2])&b^p)|0;p=o[a>>2]|0;b=o[m>>2]|0;o[v>>2]=(o[v>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((b|p)&d|b&p)|0;o[u>>2]=s;p=o[v>>2]|0;b=o[c>>2]|0;d=(o[f>>2]|0)+2024104815+(o[n+228>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[e>>2])&p^b)|0;b=o[l>>2]|0;p=o[a>>2]|0;o[m>>2]=(o[m>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((p|b)&s|p&b)|0;o[f>>2]=y;b=o[m>>2]|0;p=o[e>>2]|0;s=(o[c>>2]|0)-2067236844+(o[n+232>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[v>>2])&b^p)|0;p=o[u>>2]|0;b=o[l>>2]|0;o[a>>2]=(o[a>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((b|p)&y|b&p)|0;o[c>>2]=d;p=o[a>>2]|0;b=o[v>>2]|0;y=(o[e>>2]|0)-1933114872+(o[n+236>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[m>>2])&p^b)|0;b=o[f>>2]|0;p=o[u>>2]|0;o[l>>2]=(o[l>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((p|b)&d|p&b)|0;o[e>>2]=s;b=o[l>>2]|0;p=o[m>>2]|0;d=(o[v>>2]|0)-1866530822+(o[n+240>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[a>>2])&b^p)|0;p=o[c>>2]|0;b=o[f>>2]|0;o[u>>2]=(o[u>>2]|0)+d;y=d+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((b|p)&s|b&p)|0;o[v>>2]=y;p=o[u>>2]|0;b=o[a>>2]|0;s=(o[m>>2]|0)-1538233109+(o[n+244>>2]|0)+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+((b^o[l>>2])&p^b)|0;b=o[e>>2]|0;p=o[c>>2]|0;o[f>>2]=(o[f>>2]|0)+s;d=s+((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((p|b)&y|p&b)|0;o[m>>2]=d;b=o[f>>2]|0;p=o[l>>2]|0;y=(o[a>>2]|0)-1090935817+(o[n+248>>2]|0)+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+((p^o[u>>2])&b^p)|0;p=o[v>>2]|0;b=o[e>>2]|0;o[c>>2]=(o[c>>2]|0)+y;s=y+((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+((b|p)&d|b&p)|0;o[a>>2]=s;a=o[c>>2]|0;c=o[u>>2]|0;u=(o[l>>2]|0)-965641998+(o[n+252>>2]|0)+((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+((c^o[f>>2])&a^c)|0;c=o[m>>2]|0;m=o[v>>2]|0;o[e>>2]=(o[e>>2]|0)+u;e=u+((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((m|c)&s|m&c)|0;o[l>>2]=e;o[t>>2]=(o[t>>2]|0)+e;e=t+4|0;o[e>>2]=(o[e>>2]|0)+(o[i+4>>2]|0);e=t+8|0;o[e>>2]=(o[e>>2]|0)+(o[i+8>>2]|0);e=t+12|0;o[e>>2]=(o[e>>2]|0)+(o[i+12>>2]|0);e=t+16|0;o[e>>2]=(o[e>>2]|0)+(o[i+16>>2]|0);e=t+20|0;o[e>>2]=(o[e>>2]|0)+(o[i+20>>2]|0);e=t+24|0;o[e>>2]=(o[e>>2]|0)+(o[i+24>>2]|0);e=t+28|0;o[e>>2]=(o[e>>2]|0)+(o[i+28>>2]|0);h=r;return}function je(t,e){t=t|0;e=e|0;n[t+3|0]=e&255;n[t+2|0]=e>>>8&255;n[t+1|0]=e>>>16&255;n[t]=e>>>24&255;return}function Ne(t){t=t|0;return(a[t+2|0]|0)<<8|(a[t+3|0]|0)|(a[t+1|0]|0)<<16|(a[t]|0)<<24|0}function Be(t,e){t=t|0;e=e|0;Le(e);Fe(t,e|0,32);tn(e|0,0,104);return}function Le(t){t=t|0;var e=0,r=0,n=0;e=h;h=h+8|0;r=e|0;Fe(r,t+32|0,8);n=(o[t+36>>2]|0)>>>3&63;Re(t,720,(n>>>0<56?56:120)-n|0);Re(t,r,8);h=e;return}function Fe(t,e,r){t=t|0;e=e|0;r=r|0;var n=0,i=0;n=r>>>2;if((n|0)==0){return}else{i=0}do{je(t+(i<<2)|0,o[e+(i<<2)>>2]|0);i=i+1|0}while(i>>>0<n>>>0);return}function De(t,e,r){t=t|0;e=e|0;r=r|0;var i=0,o=0,a=0,s=0,u=0,c=0,f=0;i=h;h=h+96|0;o=i|0;if(r>>>0>64){a=t|0;Se(a);Re(a,e,r);s=i+64|0;Be(s,a);u=s;c=32}else{u=e;c=r}r=t|0;Se(r);e=o|0;tn(e|0,54,64);if((c|0)!=0){s=0;do{a=o+s|0;n[a]=n[a]^n[u+s|0];s=s+1|0}while(s>>>0<c>>>0)}Re(r,e,64);r=t+104|0;Se(r);tn(e|0,92,64);if((c|0)==0){Re(r,e,64);h=i;return}else{f=0}do{t=o+f|0;n[t]=n[t]^n[u+f|0];f=f+1|0}while(f>>>0<c>>>0);Re(r,e,64);h=i;return}function Ue(t,e,r){t=t|0;e=e|0;r=r|0;Re(t|0,e,r);return}function qe(t,e){t=t|0;e=e|0;var r=0,n=0,i=0;r=h;h=h+32|0;n=r|0;Be(n,e|0);i=e+104|0;Re(i,n,32);Be(t,i);h=r;return}function ze(t,e,r,i,o,a,s,u){t=t|0;e=e|0;r=r|0;i=i|0;o=o|0;a=a|0;s=s|0;u=u|0;var c=0,f=0,l=0,d=0,p=0,m=0,b=0,v=0,y=0,g=0,_=0,w=0,M=0,k=0;c=h;h=h+488|0;f=c|0;l=c+208|0;d=c+424|0;p=c+456|0;De(f,t,e);Ue(f,r,i);if((u|0)==0){h=c;return}i=c+416|0;r=l;m=f;f=d|0;b=p|0;v=0;y=a>>>0<v>>>0|a>>>0==v>>>0&o>>>0<2>>>0;v=0;g=0;do{v=v+1|0;je(i,v);Jr(r|0,m|0,208)|0;Ue(l,i,4);qe(f,l);Jr(b|0,f|0,32)|0;if(!y){_=0;w=2;do{De(l,t,e);Ue(l,f,32);qe(f,l);M=0;do{k=p+M|0;n[k]=n[k]^n[d+M|0];M=M+1|0}while((M|0)<32);w=rn(w,_,1,0)|0;_=B}while(!(_>>>0>a>>>0|_>>>0==a>>>0&w>>>0>o>>>0))}w=u-g|0;_=w>>>0>32?32:w;w=s+g|0;Jr(w|0,b|0,_)|0;g=v<<5}while(g>>>0<u>>>0);h=c;return}function He(t,e){t=t|0;e=e|0;var r=0;r=0;do{o[t+(r<<2)>>2]=Ne(e+(r<<2)|0)|0;r=r+1|0}while(r>>>0<16);return}function Ve(t){t=t|0;var e=0,r=0,n=0,i=0,a=0,s=0,u=0,c=0,f=0,h=0,l=0,d=0,p=0,m=0,b=0,v=0,y=0,g=0,_=0,w=0,M=0,k=0,E=0,x=0,S=0,A=0,C=0,T=0,I=0,P=0,R=0,O=0,j=0,N=0,B=0,L=0,F=0,D=0,U=0,q=0,z=0,H=0,V=0,K=0,Y=0,G=0,W=0,Z=0,X=0,$=0,Q=0,J=0,tt=0,et=0,rt=0,nt=0,it=0,ot=0,at=0,st=0,ut=0,ct=0,ft=0,ht=0,lt=0,dt=0,pt=0,mt=0,bt=0,vt=0,yt=0,gt=0,wt=0,Mt=0,Et=0,xt=0,St=0,At=0,Ct=0,Tt=0,It=0,Pt=0,Rt=0,Ot=0,jt=0;do{if(t>>>0<245){if(t>>>0<11){e=16}else{e=t+11&-8}r=e>>>3;n=o[208]|0;i=n>>>(r>>>0);if((i&3|0)!=0){a=(i&1^1)+r|0;s=a<<1;u=872+(s<<2)|0;c=872+(s+2<<2)|0;s=o[c>>2]|0;f=s+8|0;h=o[f>>2]|0;do{if((u|0)==(h|0)){o[208]=n&~(1<<a)}else{if(h>>>0<(o[212]|0)>>>0){kt();return 0}l=h+12|0;if((o[l>>2]|0)==(s|0)){o[l>>2]=u;o[c>>2]=h;break}else{kt();return 0}}}while(0);h=a<<3;o[s+4>>2]=h|3;c=s+(h|4)|0;o[c>>2]=o[c>>2]|1;d=f;return d|0}if(e>>>0<=(o[210]|0)>>>0){p=e;break}if((i|0)!=0){c=2<<r;h=i<<r&(c|-c);c=(h&-h)-1|0;h=c>>>12&16;u=c>>>(h>>>0);c=u>>>5&8;l=u>>>(c>>>0);u=l>>>2&4;m=l>>>(u>>>0);l=m>>>1&2;b=m>>>(l>>>0);m=b>>>1&1;v=(c|h|u|l|m)+(b>>>(m>>>0))|0;m=v<<1;b=872+(m<<2)|0;l=872+(m+2<<2)|0;m=o[l>>2]|0;u=m+8|0;h=o[u>>2]|0;do{if((b|0)==(h|0)){o[208]=n&~(1<<v)}else{if(h>>>0<(o[212]|0)>>>0){kt();return 0}c=h+12|0;if((o[c>>2]|0)==(m|0)){o[c>>2]=b;o[l>>2]=h;break}else{kt();return 0}}}while(0);h=v<<3;l=h-e|0;o[m+4>>2]=e|3;b=m;n=b+e|0;o[b+(e|4)>>2]=l|1;o[b+h>>2]=l;h=o[210]|0;if((h|0)!=0){b=o[213]|0;r=h>>>3;h=r<<1;i=872+(h<<2)|0;f=o[208]|0;s=1<<r;do{if((f&s|0)==0){o[208]=f|s;y=i;g=872+(h+2<<2)|0}else{r=872+(h+2<<2)|0;a=o[r>>2]|0;if(a>>>0>=(o[212]|0)>>>0){y=a;g=r;break}kt();return 0}}while(0);o[g>>2]=b;o[y+12>>2]=b;o[b+8>>2]=y;o[b+12>>2]=i}o[210]=l;o[213]=n;d=u;return d|0}h=o[209]|0;if((h|0)==0){p=e;break}s=(h&-h)-1|0;h=s>>>12&16;f=s>>>(h>>>0);s=f>>>5&8;m=f>>>(s>>>0);f=m>>>2&4;v=m>>>(f>>>0);m=v>>>1&2;r=v>>>(m>>>0);v=r>>>1&1;a=o[1136+((s|h|f|m|v)+(r>>>(v>>>0))<<2)>>2]|0;v=a;r=a;m=(o[a+4>>2]&-8)-e|0;while(1){a=o[v+16>>2]|0;if((a|0)==0){f=o[v+20>>2]|0;if((f|0)==0){break}else{_=f}}else{_=a}a=(o[_+4>>2]&-8)-e|0;f=a>>>0<m>>>0;v=_;r=f?_:r;m=f?a:m}v=r;u=o[212]|0;if(v>>>0<u>>>0){kt();return 0}n=v+e|0;l=n;if(v>>>0>=n>>>0){kt();return 0}n=o[r+24>>2]|0;i=o[r+12>>2]|0;do{if((i|0)==(r|0)){b=r+20|0;a=o[b>>2]|0;if((a|0)==0){f=r+16|0;h=o[f>>2]|0;if((h|0)==0){w=0;break}else{M=h;k=f}}else{M=a;k=b}while(1){b=M+20|0;a=o[b>>2]|0;if((a|0)!=0){M=a;k=b;continue}b=M+16|0;a=o[b>>2]|0;if((a|0)==0){break}else{M=a;k=b}}if(k>>>0<u>>>0){kt();return 0}else{o[k>>2]=0;w=M;break}}else{b=o[r+8>>2]|0;if(b>>>0<u>>>0){kt();return 0}a=b+12|0;if((o[a>>2]|0)!=(r|0)){kt();return 0}f=i+8|0;if((o[f>>2]|0)==(r|0)){o[a>>2]=i;o[f>>2]=b;w=i;break}else{kt();return 0}}}while(0);t:do{if((n|0)!=0){i=r+28|0;u=1136+(o[i>>2]<<2)|0;do{if((r|0)==(o[u>>2]|0)){o[u>>2]=w;if((w|0)!=0){break}o[209]=o[209]&~(1<<o[i>>2]);break t}else{if(n>>>0<(o[212]|0)>>>0){kt();return 0}b=n+16|0;if((o[b>>2]|0)==(r|0)){o[b>>2]=w}else{o[n+20>>2]=w}if((w|0)==0){break t}}}while(0);if(w>>>0<(o[212]|0)>>>0){kt();return 0}o[w+24>>2]=n;i=o[r+16>>2]|0;do{if((i|0)!=0){if(i>>>0<(o[212]|0)>>>0){kt();return 0}else{o[w+16>>2]=i;o[i+24>>2]=w;break}}}while(0);i=o[r+20>>2]|0;if((i|0)==0){break}if(i>>>0<(o[212]|0)>>>0){kt();return 0}else{o[w+20>>2]=i;o[i+24>>2]=w;break}}}while(0);if(m>>>0<16){n=m+e|0;o[r+4>>2]=n|3;i=v+(n+4)|0;o[i>>2]=o[i>>2]|1}else{o[r+4>>2]=e|3;o[v+(e|4)>>2]=m|1;o[v+(m+e)>>2]=m;i=o[210]|0;if((i|0)!=0){n=o[213]|0;u=i>>>3;i=u<<1;b=872+(i<<2)|0;f=o[208]|0;a=1<<u;do{if((f&a|0)==0){o[208]=f|a;E=b;x=872+(i+2<<2)|0}else{u=872+(i+2<<2)|0;h=o[u>>2]|0;if(h>>>0>=(o[212]|0)>>>0){E=h;x=u;break}kt();return 0}}while(0);o[x>>2]=n;o[E+12>>2]=n;o[n+8>>2]=E;o[n+12>>2]=b}o[210]=m;o[213]=l}i=r+8|0;if((i|0)==0){p=e;break}else{d=i}return d|0}else{if(t>>>0>4294967231){p=-1;break}i=t+11|0;a=i&-8;f=o[209]|0;if((f|0)==0){p=a;break}v=-a|0;u=i>>>8;do{if((u|0)==0){S=0}else{if(a>>>0>16777215){S=31;break}i=(u+1048320|0)>>>16&8;h=u<<i;s=(h+520192|0)>>>16&4;c=h<<s;h=(c+245760|0)>>>16&2;A=14-(s|i|h)+(c<<h>>>15)|0;S=a>>>((A+7|0)>>>0)&1|A<<1}}while(0);u=o[1136+(S<<2)>>2]|0;t:do{if((u|0)==0){C=0;T=v;I=0}else{if((S|0)==31){P=0}else{P=25-(S>>>1)|0}r=0;l=v;m=u;b=a<<P;n=0;while(1){A=o[m+4>>2]&-8;h=A-a|0;if(h>>>0<l>>>0){if((A|0)==(a|0)){C=m;T=h;I=m;break t}else{R=m;O=h}}else{R=r;O=l}h=o[m+20>>2]|0;A=o[m+16+(b>>>31<<2)>>2]|0;c=(h|0)==0|(h|0)==(A|0)?n:h;if((A|0)==0){C=R;T=O;I=c;break}else{r=R;l=O;m=A;b=b<<1;n=c}}}}while(0);if((I|0)==0&(C|0)==0){u=2<<S;v=f&(u|-u);if((v|0)==0){p=a;break}u=(v&-v)-1|0;v=u>>>12&16;n=u>>>(v>>>0);u=n>>>5&8;b=n>>>(u>>>0);n=b>>>2&4;m=b>>>(n>>>0);b=m>>>1&2;l=m>>>(b>>>0);m=l>>>1&1;j=o[1136+((u|v|n|b|m)+(l>>>(m>>>0))<<2)>>2]|0}else{j=I}if((j|0)==0){N=T;B=C}else{m=j;l=T;b=C;while(1){n=(o[m+4>>2]&-8)-a|0;v=n>>>0<l>>>0;u=v?n:l;n=v?m:b;v=o[m+16>>2]|0;if((v|0)!=0){m=v;l=u;b=n;continue}v=o[m+20>>2]|0;if((v|0)==0){N=u;B=n;break}else{m=v;l=u;b=n}}}if((B|0)==0){p=a;break}if(N>>>0>=((o[210]|0)-a|0)>>>0){p=a;break}b=B;l=o[212]|0;if(b>>>0<l>>>0){kt();return 0}m=b+a|0;f=m;if(b>>>0>=m>>>0){kt();return 0}n=o[B+24>>2]|0;u=o[B+12>>2]|0;do{if((u|0)==(B|0)){v=B+20|0;r=o[v>>2]|0;if((r|0)==0){c=B+16|0;A=o[c>>2]|0;if((A|0)==0){L=0;break}else{F=A;D=c}}else{F=r;D=v}while(1){v=F+20|0;r=o[v>>2]|0;if((r|0)!=0){F=r;D=v;continue}v=F+16|0;r=o[v>>2]|0;if((r|0)==0){break}else{F=r;D=v}}if(D>>>0<l>>>0){kt();return 0}else{o[D>>2]=0;L=F;break}}else{v=o[B+8>>2]|0;if(v>>>0<l>>>0){kt();return 0}r=v+12|0;if((o[r>>2]|0)!=(B|0)){kt();return 0}c=u+8|0;if((o[c>>2]|0)==(B|0)){o[r>>2]=u;o[c>>2]=v;L=u;break}else{kt();return 0}}}while(0);t:do{if((n|0)!=0){u=B+28|0;l=1136+(o[u>>2]<<2)|0;do{if((B|0)==(o[l>>2]|0)){o[l>>2]=L;if((L|0)!=0){break}o[209]=o[209]&~(1<<o[u>>2]);break t}else{if(n>>>0<(o[212]|0)>>>0){kt();return 0}v=n+16|0;if((o[v>>2]|0)==(B|0)){o[v>>2]=L}else{o[n+20>>2]=L}if((L|0)==0){break t}}}while(0);if(L>>>0<(o[212]|0)>>>0){kt();return 0}o[L+24>>2]=n;u=o[B+16>>2]|0;do{if((u|0)!=0){if(u>>>0<(o[212]|0)>>>0){kt();return 0}else{o[L+16>>2]=u;o[u+24>>2]=L;break}}}while(0);u=o[B+20>>2]|0;if((u|0)==0){break}if(u>>>0<(o[212]|0)>>>0){kt();return 0}else{o[L+20>>2]=u;o[u+24>>2]=L;break}}}while(0);do{if(N>>>0<16){n=N+a|0;o[B+4>>2]=n|3;u=b+(n+4)|0;o[u>>2]=o[u>>2]|1}else{o[B+4>>2]=a|3;o[b+(a|4)>>2]=N|1;o[b+(N+a)>>2]=N;u=N>>>3;if(N>>>0<256){n=u<<1;l=872+(n<<2)|0;v=o[208]|0;c=1<<u;do{if((v&c|0)==0){o[208]=v|c;U=l;q=872+(n+2<<2)|0}else{u=872+(n+2<<2)|0;r=o[u>>2]|0;if(r>>>0>=(o[212]|0)>>>0){U=r;q=u;break}kt();return 0}}while(0);o[q>>2]=f;o[U+12>>2]=f;o[b+(a+8)>>2]=U;o[b+(a+12)>>2]=l;break}n=m;c=N>>>8;do{if((c|0)==0){z=0}else{if(N>>>0>16777215){z=31;break}v=(c+1048320|0)>>>16&8;u=c<<v;r=(u+520192|0)>>>16&4;A=u<<r;u=(A+245760|0)>>>16&2;h=14-(r|v|u)+(A<<u>>>15)|0;z=N>>>((h+7|0)>>>0)&1|h<<1}}while(0);c=1136+(z<<2)|0;o[b+(a+28)>>2]=z;o[b+(a+20)>>2]=0;o[b+(a+16)>>2]=0;l=o[209]|0;h=1<<z;if((l&h|0)==0){o[209]=l|h;o[c>>2]=n;o[b+(a+24)>>2]=c;o[b+(a+12)>>2]=n;o[b+(a+8)>>2]=n;break}if((z|0)==31){H=0}else{H=25-(z>>>1)|0}h=N<<H;l=o[c>>2]|0;while(1){if((o[l+4>>2]&-8|0)==(N|0)){break}V=l+16+(h>>>31<<2)|0;c=o[V>>2]|0;if((c|0)==0){K=262;break}else{h=h<<1;l=c}}if((K|0)==262){if(V>>>0<(o[212]|0)>>>0){kt();return 0}else{o[V>>2]=n;o[b+(a+24)>>2]=l;o[b+(a+12)>>2]=n;o[b+(a+8)>>2]=n;break}}h=l+8|0;c=o[h>>2]|0;u=o[212]|0;if(l>>>0<u>>>0){kt();return 0}if(c>>>0<u>>>0){kt();return 0}else{o[c+12>>2]=n;o[h>>2]=n;o[b+(a+8)>>2]=c;o[b+(a+12)>>2]=l;o[b+(a+24)>>2]=0;break}}}while(0);b=B+8|0;if((b|0)==0){p=a;break}else{d=b}return d|0}}while(0);B=o[210]|0;if(p>>>0<=B>>>0){V=B-p|0;N=o[213]|0;if(V>>>0>15){H=N;o[213]=H+p;o[210]=V;o[H+(p+4)>>2]=V|1;o[H+B>>2]=V;o[N+4>>2]=p|3}else{o[210]=0;o[213]=0;o[N+4>>2]=B|3;V=N+(B+4)|0;o[V>>2]=o[V>>2]|1}d=N+8|0;return d|0}N=o[211]|0;if(p>>>0<N>>>0){V=N-p|0;o[211]=V;N=o[214]|0;B=N;o[214]=B+p;o[B+(p+4)>>2]=V|1;o[N+4>>2]=p|3;d=N+8|0;return d|0}do{if((o[200]|0)==0){N=_t(8)|0;if((N-1&N|0)==0){o[202]=N;o[201]=N;o[203]=-1;o[204]=2097152;o[205]=0;o[319]=0;o[200]=(ee(0)|0)&-16^1431655768;break}else{kt();return 0}}}while(0);N=p+48|0;V=o[202]|0;B=p+47|0;H=V+B|0;z=-V|0;V=H&z;if(V>>>0<=p>>>0){d=0;return d|0}U=o[318]|0;do{if((U|0)!=0){q=o[316]|0;L=q+V|0;if(L>>>0<=q>>>0|L>>>0>U>>>0){d=0}else{break}return d|0}}while(0);t:do{if((o[319]&4|0)==0){U=o[214]|0;e:do{if((U|0)==0){K=292}else{L=U;q=1280;while(1){Y=q|0;F=o[Y>>2]|0;if(F>>>0<=L>>>0){G=q+4|0;if((F+(o[G>>2]|0)|0)>>>0>L>>>0){break}}F=o[q+8>>2]|0;if((F|0)==0){K=292;break e}else{q=F}}if((q|0)==0){K=292;break}L=H-(o[211]|0)&z;if(L>>>0>=2147483647){W=0;break}l=Xt(L|0)|0;n=(l|0)==((o[Y>>2]|0)+(o[G>>2]|0)|0);Z=n?l:-1;X=n?L:0;$=l;Q=L;K=301}}while(0);do{if((K|0)==292){U=Xt(0)|0;if((U|0)==-1){W=0;break}a=U;L=o[201]|0;l=L-1|0;if((l&a|0)==0){J=V}else{J=V-a+(l+a&-L)|0}L=o[316]|0;a=L+J|0;if(!(J>>>0>p>>>0&J>>>0<2147483647)){W=0;break}l=o[318]|0;if((l|0)!=0){if(a>>>0<=L>>>0|a>>>0>l>>>0){W=0;break}}l=Xt(J|0)|0;a=(l|0)==(U|0);Z=a?U:-1;X=a?J:0;$=l;Q=J;K=301}}while(0);e:do{if((K|0)==301){l=-Q|0;if((Z|0)!=-1){tt=X;et=Z;K=312;break t}do{if(($|0)!=-1&Q>>>0<2147483647&Q>>>0<N>>>0){a=o[202]|0;U=B-Q+a&-a;if(U>>>0>=2147483647){rt=Q;break}if((Xt(U|0)|0)==-1){Xt(l|0)|0;W=X;break e}else{rt=U+Q|0;break}}else{rt=Q}}while(0);if(($|0)==-1){W=X}else{tt=rt;et=$;K=312;break t}}}while(0);o[319]=o[319]|4;nt=W;K=309}else{nt=0;K=309}}while(0);do{if((K|0)==309){if(V>>>0>=2147483647){break}W=Xt(V|0)|0;$=Xt(0)|0;if(!(($|0)!=-1&(W|0)!=-1&W>>>0<$>>>0)){break}rt=$-W|0;$=rt>>>0>(p+40|0)>>>0;X=$?W:-1;if((X|0)!=-1){tt=$?rt:nt;et=X;K=312}}}while(0);do{if((K|0)==312){nt=(o[316]|0)+tt|0;o[316]=nt;if(nt>>>0>(o[317]|0)>>>0){o[317]=nt}nt=o[214]|0;t:do{if((nt|0)==0){V=o[212]|0;if((V|0)==0|et>>>0<V>>>0){o[212]=et}o[320]=et;o[321]=tt;o[323]=0;o[217]=o[200];o[216]=-1;V=0;do{X=V<<1;rt=872+(X<<2)|0;o[872+(X+3<<2)>>2]=rt;o[872+(X+2<<2)>>2]=rt;V=V+1|0}while(V>>>0<32);V=et+8|0;if((V&7|0)==0){it=0}else{it=-V&7}V=tt-40-it|0;o[214]=et+it;o[211]=V;o[et+(it+4)>>2]=V|1;o[et+(tt-36)>>2]=40;o[215]=o[204]}else{V=1280;while(1){ot=o[V>>2]|0;at=V+4|0;st=o[at>>2]|0;if((et|0)==(ot+st|0)){K=324;break}rt=o[V+8>>2]|0;if((rt|0)==0){break}else{V=rt}}do{if((K|0)==324){if((o[V+12>>2]&8|0)!=0){break}rt=nt;if(!(rt>>>0>=ot>>>0&rt>>>0<et>>>0)){break}o[at>>2]=st+tt;rt=o[214]|0;X=(o[211]|0)+tt|0;$=rt;W=rt+8|0;if((W&7|0)==0){ut=0}else{ut=-W&7}W=X-ut|0;o[214]=$+ut;o[211]=W;o[$+(ut+4)>>2]=W|1;o[$+(X+4)>>2]=40;o[215]=o[204];break t}}while(0);if(et>>>0<(o[212]|0)>>>0){o[212]=et}V=et+tt|0;X=1280;while(1){ct=X|0;if((o[ct>>2]|0)==(V|0)){K=334;break}$=o[X+8>>2]|0;if(($|0)==0){break}else{X=$}}do{if((K|0)==334){if((o[X+12>>2]&8|0)!=0){break}o[ct>>2]=et;V=X+4|0;o[V>>2]=(o[V>>2]|0)+tt;V=et+8|0;if((V&7|0)==0){ft=0}else{ft=-V&7}V=et+(tt+8)|0;if((V&7|0)==0){ht=0}else{ht=-V&7}V=et+(ht+tt)|0;$=V;W=ft+p|0;rt=et+W|0;Q=rt;B=V-(et+ft)-p|0;o[et+(ft+4)>>2]=p|3;do{if(($|0)==(o[214]|0)){N=(o[211]|0)+B|0;o[211]=N;o[214]=Q;o[et+(W+4)>>2]=N|1}else{if(($|0)==(o[213]|0)){N=(o[210]|0)+B|0;o[210]=N;o[213]=Q;o[et+(W+4)>>2]=N|1;o[et+(N+W)>>2]=N;break}N=tt+4|0;Z=o[et+(N+ht)>>2]|0;if((Z&3|0)==1){J=Z&-8;G=Z>>>3;e:do{if(Z>>>0<256){Y=o[et+((ht|8)+tt)>>2]|0;z=o[et+(tt+12+ht)>>2]|0;H=872+(G<<1<<2)|0;do{if((Y|0)!=(H|0)){if(Y>>>0<(o[212]|0)>>>0){kt();return 0}if((o[Y+12>>2]|0)==($|0)){break}kt();return 0}}while(0);if((z|0)==(Y|0)){o[208]=o[208]&~(1<<G);break}do{if((z|0)==(H|0)){lt=z+8|0}else{if(z>>>0<(o[212]|0)>>>0){kt();return 0}l=z+8|0;if((o[l>>2]|0)==($|0)){lt=l;break}kt();return 0}}while(0);o[Y+12>>2]=z;o[lt>>2]=Y}else{H=V;l=o[et+((ht|24)+tt)>>2]|0;q=o[et+(tt+12+ht)>>2]|0;do{if((q|0)==(H|0)){U=ht|16;a=et+(N+U)|0;L=o[a>>2]|0;if((L|0)==0){n=et+(U+tt)|0;U=o[n>>2]|0;if((U|0)==0){dt=0;break}else{pt=U;mt=n}}else{pt=L;mt=a}while(1){a=pt+20|0;L=o[a>>2]|0;if((L|0)!=0){pt=L;mt=a;continue}a=pt+16|0;L=o[a>>2]|0;if((L|0)==0){break}else{pt=L;mt=a}}if(mt>>>0<(o[212]|0)>>>0){kt();return 0}else{o[mt>>2]=0;dt=pt;break}}else{a=o[et+((ht|8)+tt)>>2]|0;if(a>>>0<(o[212]|0)>>>0){kt();return 0}L=a+12|0;if((o[L>>2]|0)!=(H|0)){kt();return 0}n=q+8|0;if((o[n>>2]|0)==(H|0)){o[L>>2]=q;o[n>>2]=a;dt=q;break}else{kt();return 0}}}while(0);if((l|0)==0){break}q=et+(tt+28+ht)|0;Y=1136+(o[q>>2]<<2)|0;do{if((H|0)==(o[Y>>2]|0)){o[Y>>2]=dt;if((dt|0)!=0){break}o[209]=o[209]&~(1<<o[q>>2]);break e}else{if(l>>>0<(o[212]|0)>>>0){kt();return 0}z=l+16|0;if((o[z>>2]|0)==(H|0)){o[z>>2]=dt}else{o[l+20>>2]=dt}if((dt|0)==0){break e}}}while(0);if(dt>>>0<(o[212]|0)>>>0){kt();return 0}o[dt+24>>2]=l;H=ht|16;q=o[et+(H+tt)>>2]|0;do{if((q|0)!=0){if(q>>>0<(o[212]|0)>>>0){kt();return 0}else{o[dt+16>>2]=q;o[q+24>>2]=dt;break}}}while(0);q=o[et+(N+H)>>2]|0;if((q|0)==0){break}if(q>>>0<(o[212]|0)>>>0){kt();return 0}else{o[dt+20>>2]=q;o[q+24>>2]=dt;break}}}while(0);bt=et+((J|ht)+tt)|0;vt=J+B|0}else{bt=$;vt=B}N=bt+4|0;o[N>>2]=o[N>>2]&-2;o[et+(W+4)>>2]=vt|1;o[et+(vt+W)>>2]=vt;N=vt>>>3;if(vt>>>0<256){G=N<<1;Z=872+(G<<2)|0;q=o[208]|0;l=1<<N;do{if((q&l|0)==0){o[208]=q|l;yt=Z;gt=872+(G+2<<2)|0}else{N=872+(G+2<<2)|0;Y=o[N>>2]|0;if(Y>>>0>=(o[212]|0)>>>0){yt=Y;gt=N;break}kt();return 0}}while(0);o[gt>>2]=Q;o[yt+12>>2]=Q;o[et+(W+8)>>2]=yt;o[et+(W+12)>>2]=Z;break}G=rt;l=vt>>>8;do{if((l|0)==0){wt=0}else{if(vt>>>0>16777215){wt=31;break}q=(l+1048320|0)>>>16&8;J=l<<q;N=(J+520192|0)>>>16&4;Y=J<<N;J=(Y+245760|0)>>>16&2;z=14-(N|q|J)+(Y<<J>>>15)|0;wt=vt>>>((z+7|0)>>>0)&1|z<<1}}while(0);l=1136+(wt<<2)|0;o[et+(W+28)>>2]=wt;o[et+(W+20)>>2]=0;o[et+(W+16)>>2]=0;Z=o[209]|0;z=1<<wt;if((Z&z|0)==0){o[209]=Z|z;o[l>>2]=G;o[et+(W+24)>>2]=l;o[et+(W+12)>>2]=G;o[et+(W+8)>>2]=G;break}if((wt|0)==31){Mt=0}else{Mt=25-(wt>>>1)|0}z=vt<<Mt;Z=o[l>>2]|0;while(1){if((o[Z+4>>2]&-8|0)==(vt|0)){break}Et=Z+16+(z>>>31<<2)|0;l=o[Et>>2]|0;if((l|0)==0){K=407;break}else{z=z<<1;Z=l}}if((K|0)==407){if(Et>>>0<(o[212]|0)>>>0){kt();return 0}else{o[Et>>2]=G;o[et+(W+24)>>2]=Z;o[et+(W+12)>>2]=G;o[et+(W+8)>>2]=G;break}}z=Z+8|0;l=o[z>>2]|0;J=o[212]|0;if(Z>>>0<J>>>0){kt();return 0}if(l>>>0<J>>>0){kt();return 0}else{o[l+12>>2]=G;o[z>>2]=G;o[et+(W+8)>>2]=l;o[et+(W+12)>>2]=Z;o[et+(W+24)>>2]=0;break}}}while(0);d=et+(ft|8)|0;return d|0}}while(0);X=nt;W=1280;while(1){xt=o[W>>2]|0;if(xt>>>0<=X>>>0){St=o[W+4>>2]|0;At=xt+St|0;if(At>>>0>X>>>0){break}}W=o[W+8>>2]|0}W=xt+(St-39)|0;if((W&7|0)==0){Ct=0}else{Ct=-W&7}W=xt+(St-47+Ct)|0;rt=W>>>0<(nt+16|0)>>>0?X:W;W=rt+8|0;Q=et+8|0;if((Q&7|0)==0){Tt=0}else{Tt=-Q&7}Q=tt-40-Tt|0;o[214]=et+Tt;o[211]=Q;o[et+(Tt+4)>>2]=Q|1;o[et+(tt-36)>>2]=40;o[215]=o[204];o[rt+4>>2]=27;o[W>>2]=o[320];o[W+4>>2]=o[1284>>2];o[W+8>>2]=o[1288>>2];o[W+12>>2]=o[1292>>2];o[320]=et;o[321]=tt;o[323]=0;o[322]=W;W=rt+28|0;o[W>>2]=7;if((rt+32|0)>>>0<At>>>0){Q=W;while(1){W=Q+4|0;o[W>>2]=7;if((Q+8|0)>>>0<At>>>0){Q=W}else{break}}}if((rt|0)==(X|0)){break}Q=rt-nt|0;W=X+(Q+4)|0;o[W>>2]=o[W>>2]&-2;o[nt+4>>2]=Q|1;o[X+Q>>2]=Q;W=Q>>>3;if(Q>>>0<256){B=W<<1;$=872+(B<<2)|0;V=o[208]|0;l=1<<W;do{if((V&l|0)==0){o[208]=V|l;It=$;Pt=872+(B+2<<2)|0}else{W=872+(B+2<<2)|0;z=o[W>>2]|0;if(z>>>0>=(o[212]|0)>>>0){It=z;Pt=W;break}kt();return 0}}while(0);o[Pt>>2]=nt;o[It+12>>2]=nt;o[nt+8>>2]=It;o[nt+12>>2]=$;break}B=nt;l=Q>>>8;do{if((l|0)==0){Rt=0}else{if(Q>>>0>16777215){Rt=31;break}V=(l+1048320|0)>>>16&8;X=l<<V;rt=(X+520192|0)>>>16&4;W=X<<rt;X=(W+245760|0)>>>16&2;z=14-(rt|V|X)+(W<<X>>>15)|0;Rt=Q>>>((z+7|0)>>>0)&1|z<<1}}while(0);l=1136+(Rt<<2)|0;o[nt+28>>2]=Rt;o[nt+20>>2]=0;o[nt+16>>2]=0;$=o[209]|0;z=1<<Rt;if(($&z|0)==0){o[209]=$|z;o[l>>2]=B;o[nt+24>>2]=l;o[nt+12>>2]=nt;o[nt+8>>2]=nt;break}if((Rt|0)==31){Ot=0}else{Ot=25-(Rt>>>1)|0}z=Q<<Ot;$=o[l>>2]|0;while(1){if((o[$+4>>2]&-8|0)==(Q|0)){break}jt=$+16+(z>>>31<<2)|0;l=o[jt>>2]|0;if((l|0)==0){K=442;break}else{z=z<<1;$=l}}if((K|0)==442){if(jt>>>0<(o[212]|0)>>>0){kt();return 0}else{o[jt>>2]=B;o[nt+24>>2]=$;o[nt+12>>2]=nt;o[nt+8>>2]=nt;break}}z=$+8|0;Q=o[z>>2]|0;l=o[212]|0;if($>>>0<l>>>0){kt();return 0}if(Q>>>0<l>>>0){kt();return 0}else{o[Q+12>>2]=B;o[z>>2]=B;o[nt+8>>2]=Q;o[nt+12>>2]=$;o[nt+24>>2]=0;break}}}while(0);nt=o[211]|0;if(nt>>>0<=p>>>0){break}Q=nt-p|0;o[211]=Q;nt=o[214]|0;z=nt;o[214]=z+p;o[z+(p+4)>>2]=Q|1;o[nt+4>>2]=p|3;d=nt+8|0;return d|0}}while(0);o[(Qt()|0)>>2]=12;d=0;return d|0}function Ke(t){t=t|0;var e=0,r=0,n=0,i=0,a=0,s=0,u=0,c=0,f=0,h=0,l=0,d=0,p=0,m=0,b=0,v=0,y=0,g=0,_=0,w=0,M=0,k=0,E=0,x=0,S=0,A=0,C=0,T=0,I=0,P=0,R=0,O=0,j=0,N=0,B=0,L=0,F=0,D=0,U=0;if((t|0)==0){return}e=t-8|0;r=e;n=o[212]|0;if(e>>>0<n>>>0){kt()}i=o[t-4>>2]|0;a=i&3;if((a|0)==1){kt()}s=i&-8;u=t+(s-8)|0;c=u;t:do{if((i&1|0)==0){f=o[e>>2]|0;if((a|0)==0){return}h=-8-f|0;l=t+h|0;d=l;p=f+s|0;if(l>>>0<n>>>0){kt()}if((d|0)==(o[213]|0)){m=t+(s-4)|0;if((o[m>>2]&3|0)!=3){b=d;v=p;break}o[210]=p;o[m>>2]=o[m>>2]&-2;o[t+(h+4)>>2]=p|1;o[u>>2]=p;return}m=f>>>3;if(f>>>0<256){f=o[t+(h+8)>>2]|0;y=o[t+(h+12)>>2]|0;g=872+(m<<1<<2)|0;do{if((f|0)!=(g|0)){if(f>>>0<n>>>0){kt()}if((o[f+12>>2]|0)==(d|0)){break}kt()}}while(0);if((y|0)==(f|0)){o[208]=o[208]&~(1<<m);b=d;v=p;break}do{if((y|0)==(g|0)){_=y+8|0}else{if(y>>>0<n>>>0){kt()}w=y+8|0;if((o[w>>2]|0)==(d|0)){_=w;break}kt()}}while(0);o[f+12>>2]=y;o[_>>2]=f;b=d;v=p;break}g=l;m=o[t+(h+24)>>2]|0;w=o[t+(h+12)>>2]|0;do{if((w|0)==(g|0)){M=t+(h+20)|0;k=o[M>>2]|0;if((k|0)==0){E=t+(h+16)|0;x=o[E>>2]|0;if((x|0)==0){S=0;break}else{A=x;C=E}}else{A=k;C=M}while(1){M=A+20|0;k=o[M>>2]|0;if((k|0)!=0){A=k;C=M;continue}M=A+16|0;k=o[M>>2]|0;if((k|0)==0){break}else{A=k;C=M}}if(C>>>0<n>>>0){kt()}else{o[C>>2]=0;S=A;break}}else{M=o[t+(h+8)>>2]|0;if(M>>>0<n>>>0){kt()}k=M+12|0;if((o[k>>2]|0)!=(g|0)){kt()}E=w+8|0;if((o[E>>2]|0)==(g|0)){o[k>>2]=w;o[E>>2]=M;S=w;break}else{kt()}}}while(0);if((m|0)==0){b=d;v=p;break}w=t+(h+28)|0;l=1136+(o[w>>2]<<2)|0;do{if((g|0)==(o[l>>2]|0)){o[l>>2]=S;if((S|0)!=0){break}o[209]=o[209]&~(1<<o[w>>2]);b=d;v=p;break t}else{if(m>>>0<(o[212]|0)>>>0){kt()}f=m+16|0;if((o[f>>2]|0)==(g|0)){o[f>>2]=S}else{o[m+20>>2]=S}if((S|0)==0){b=d;v=p;break t}}}while(0);if(S>>>0<(o[212]|0)>>>0){kt()}o[S+24>>2]=m;g=o[t+(h+16)>>2]|0;do{if((g|0)!=0){if(g>>>0<(o[212]|0)>>>0){kt()}else{o[S+16>>2]=g;o[g+24>>2]=S;break}}}while(0);g=o[t+(h+20)>>2]|0;if((g|0)==0){b=d;v=p;break}if(g>>>0<(o[212]|0)>>>0){kt()}else{o[S+20>>2]=g;o[g+24>>2]=S;b=d;v=p;break}}else{b=r;v=s}}while(0);r=b;if(r>>>0>=u>>>0){kt()}S=t+(s-4)|0;n=o[S>>2]|0;if((n&1|0)==0){kt()}do{if((n&2|0)==0){if((c|0)==(o[214]|0)){A=(o[211]|0)+v|0;o[211]=A;o[214]=b;o[b+4>>2]=A|1;if((b|0)==(o[213]|0)){o[213]=0;o[210]=0}if(A>>>0<=(o[215]|0)>>>0){return}$e(0)|0;return}if((c|0)==(o[213]|0)){A=(o[210]|0)+v|0;o[210]=A;o[213]=b;o[b+4>>2]=A|1;o[r+A>>2]=A;return}A=(n&-8)+v|0;C=n>>>3;t:do{if(n>>>0<256){_=o[t+s>>2]|0;a=o[t+(s|4)>>2]|0;e=872+(C<<1<<2)|0;do{if((_|0)!=(e|0)){if(_>>>0<(o[212]|0)>>>0){kt()}if((o[_+12>>2]|0)==(c|0)){break}kt()}}while(0);if((a|0)==(_|0)){o[208]=o[208]&~(1<<C);break}do{if((a|0)==(e|0)){T=a+8|0}else{if(a>>>0<(o[212]|0)>>>0){kt()}i=a+8|0;if((o[i>>2]|0)==(c|0)){T=i;break}kt()}}while(0);o[_+12>>2]=a;o[T>>2]=_}else{e=u;i=o[t+(s+16)>>2]|0;g=o[t+(s|4)>>2]|0;do{if((g|0)==(e|0)){m=t+(s+12)|0;w=o[m>>2]|0;if((w|0)==0){l=t+(s+8)|0;f=o[l>>2]|0;if((f|0)==0){I=0;break}else{P=f;R=l}}else{P=w;R=m}while(1){m=P+20|0;w=o[m>>2]|0;if((w|0)!=0){P=w;R=m;continue}m=P+16|0;w=o[m>>2]|0;if((w|0)==0){break}else{P=w;R=m}}if(R>>>0<(o[212]|0)>>>0){kt()}else{o[R>>2]=0;I=P;break}}else{m=o[t+s>>2]|0;if(m>>>0<(o[212]|0)>>>0){kt()}w=m+12|0;if((o[w>>2]|0)!=(e|0)){kt()}l=g+8|0;if((o[l>>2]|0)==(e|0)){o[w>>2]=g;o[l>>2]=m;I=g;break}else{kt()}}}while(0);if((i|0)==0){break}g=t+(s+20)|0;_=1136+(o[g>>2]<<2)|0;do{if((e|0)==(o[_>>2]|0)){o[_>>2]=I;if((I|0)!=0){break}o[209]=o[209]&~(1<<o[g>>2]);break t}else{if(i>>>0<(o[212]|0)>>>0){kt()}a=i+16|0;if((o[a>>2]|0)==(e|0)){o[a>>2]=I}else{o[i+20>>2]=I}if((I|0)==0){break t}}}while(0);if(I>>>0<(o[212]|0)>>>0){kt()}o[I+24>>2]=i;e=o[t+(s+8)>>2]|0;do{if((e|0)!=0){if(e>>>0<(o[212]|0)>>>0){kt()}else{o[I+16>>2]=e;o[e+24>>2]=I;break}}}while(0);e=o[t+(s+12)>>2]|0;if((e|0)==0){break}if(e>>>0<(o[212]|0)>>>0){kt()}else{o[I+20>>2]=e;o[e+24>>2]=I;break}}}while(0);o[b+4>>2]=A|1;o[r+A>>2]=A;if((b|0)!=(o[213]|0)){O=A;break}o[210]=A;return}else{o[S>>2]=n&-2;o[b+4>>2]=v|1;o[r+v>>2]=v;O=v}}while(0);v=O>>>3;if(O>>>0<256){r=v<<1;n=872+(r<<2)|0;S=o[208]|0;I=1<<v;do{if((S&I|0)==0){o[208]=S|I;j=n;N=872+(r+2<<2)|0}else{v=872+(r+2<<2)|0;s=o[v>>2]|0;if(s>>>0>=(o[212]|0)>>>0){j=s;N=v;break}kt()}}while(0);o[N>>2]=b;o[j+12>>2]=b;o[b+8>>2]=j;o[b+12>>2]=n;return}n=b;j=O>>>8;do{if((j|0)==0){B=0}else{if(O>>>0>16777215){B=31;break}N=(j+1048320|0)>>>16&8;r=j<<N;I=(r+520192|0)>>>16&4;S=r<<I;r=(S+245760|0)>>>16&2;v=14-(I|N|r)+(S<<r>>>15)|0;B=O>>>((v+7|0)>>>0)&1|v<<1}}while(0);j=1136+(B<<2)|0;o[b+28>>2]=B;o[b+20>>2]=0;o[b+16>>2]=0;v=o[209]|0;r=1<<B;do{if((v&r|0)==0){o[209]=v|r;o[j>>2]=n;o[b+24>>2]=j;o[b+12>>2]=b;o[b+8>>2]=b}else{if((B|0)==31){L=0}else{L=25-(B>>>1)|0}S=O<<L;N=o[j>>2]|0;while(1){if((o[N+4>>2]&-8|0)==(O|0)){break}F=N+16+(S>>>31<<2)|0;I=o[F>>2]|0;if((I|0)==0){D=621;break}else{S=S<<1;N=I}}if((D|0)==621){if(F>>>0<(o[212]|0)>>>0){kt()}else{o[F>>2]=n;o[b+24>>2]=N;o[b+12>>2]=b;o[b+8>>2]=b;break}}S=N+8|0;A=o[S>>2]|0;I=o[212]|0;if(N>>>0<I>>>0){kt()}if(A>>>0<I>>>0){kt()}else{o[A+12>>2]=n;o[S>>2]=n;o[b+8>>2]=A;o[b+12>>2]=N;o[b+24>>2]=0;break}}}while(0);b=(o[216]|0)-1|0;o[216]=b;if((b|0)==0){U=1288}else{return}while(1){b=o[U>>2]|0;if((b|0)==0){break}else{U=b+8|0}}o[216]=-1;return}function Ye(t,e){t=t|0;e=e|0;var r=0,n=0;do{if((t|0)==0){r=0}else{n=at(e,t)|0;if((e|t)>>>0<=65535){r=n;break}r=((n>>>0)/(t>>>0)|0|0)==(e|0)?n:-1}}while(0);e=Ve(r)|0;if((e|0)==0){return e|0}if((o[e-4>>2]&3|0)==0){return e|0}tn(e|0,0,r|0);return e|0}function Ge(t,e){t=t|0;e=e|0;var r=0,n=0,i=0,a=0;if((t|0)==0){r=Ve(e)|0;return r|0}if(e>>>0>4294967231){o[(Qt()|0)>>2]=12;r=0;return r|0}if(e>>>0<11){n=16}else{n=e+11&-8}i=Qe(t-8|0,n)|0;if((i|0)!=0){r=i+8|0;return r|0}i=Ve(e)|0;if((i|0)==0){r=0;return r|0}n=o[t-4>>2]|0;a=(n&-8)-((n&3|0)==0?8:4)|0;n=a>>>0<e>>>0?a:e;Jr(i|0,t|0,n)|0;Ke(t);r=i;return r|0}function We(t,e){t=t|0;e=e|0;var r=0;if((t|0)==0){return 0}if(e>>>0>4294967231){o[(Qt()|0)>>2]=12;return 0}if(e>>>0<11){r=16}else{r=e+11&-8}e=t-8|0;return((Qe(e,r)|0)==(e|0)?t:0)|0}function Ze(t,e){t=t|0;e=e|0;var r=0;if(t>>>0<9){r=Ve(e)|0;return r|0}else{r=Xe(t,e)|0;return r|0}return 0}function Xe(t,e){t=t|0;e=e|0;var r=0,n=0,i=0,a=0,s=0,u=0,c=0,f=0,h=0,l=0,d=0,p=0;r=t>>>0<16?16:t;if((r-1&r|0)==0){n=r}else{t=16;while(1){if(t>>>0<r>>>0){t=t<<1}else{n=t;break}}}if((-64-n|0)>>>0<=e>>>0){o[(Qt()|0)>>2]=12;i=0;return i|0}if(e>>>0<11){a=16}else{a=e+11&-8}e=Ve(n+12+a|0)|0;if((e|0)==0){i=0;return i|0}t=e-8|0;r=t;s=n-1|0;do{if((e&s|0)==0){u=r}else{c=e+s&-n;f=c-8|0;h=t;if((f-h|0)>>>0>15){l=f}else{l=c+(n-8)|0}c=l;f=l-h|0;h=e-4|0;d=o[h>>2]|0;p=(d&-8)-f|0;if((d&3|0)==0){o[l>>2]=(o[t>>2]|0)+f;o[l+4>>2]=p;u=c;break}else{d=l+4|0;o[d>>2]=p|o[d>>2]&1|2;d=l+(p+4)|0;o[d>>2]=o[d>>2]|1;o[h>>2]=f|o[h>>2]&1|2;h=e+(f-4)|0;o[h>>2]=o[h>>2]|1;br(r,f);u=c;break}}}while(0);r=u+4|0;e=o[r>>2]|0;do{if((e&3|0)!=0){l=e&-8;if(l>>>0<=(a+16|0)>>>0){break}t=l-a|0;n=u;o[r>>2]=a|e&1|2;o[n+(a|4)>>2]=t|3;s=n+(l|4)|0;o[s>>2]=o[s>>2]|1;br(n+a|0,t)}}while(0);i=u+8|0;return i|0}function $e(t){t=t|0;var e=0,r=0,n=0,i=0,a=0,s=0,u=0,c=0,f=0,h=0,l=0,d=0,p=0;do{if((o[200]|0)==0){e=_t(8)|0;if((e-1&e|0)==0){o[202]=e;o[201]=e;o[203]=-1;o[204]=2097152;o[205]=0;o[319]=0;o[200]=(ee(0)|0)&-16^1431655768;break}else{kt();return 0}}}while(0);if(t>>>0>=4294967232){r=0;return r|0}e=o[214]|0;if((e|0)==0){r=0;return r|0}n=o[211]|0;do{if(n>>>0>(t+40|0)>>>0){i=o[202]|0;a=at((((-40-t-1+n+i|0)>>>0)/(i>>>0)|0)-1|0,i)|0;s=e;u=1280;while(1){c=o[u>>2]|0;if(c>>>0<=s>>>0){if((c+(o[u+4>>2]|0)|0)>>>0>s>>>0){f=u;break}}c=o[u+8>>2]|0;if((c|0)==0){f=0;break}else{u=c}}if((o[f+12>>2]&8|0)!=0){break}u=Xt(0)|0;s=f+4|0;if((u|0)!=((o[f>>2]|0)+(o[s>>2]|0)|0)){break}c=Xt(-(a>>>0>2147483646?-2147483648-i|0:a)|0)|0;h=Xt(0)|0;if(!((c|0)!=-1&h>>>0<u>>>0)){break}c=u-h|0;if((u|0)==(h|0)){break}o[s>>2]=(o[s>>2]|0)-c;o[316]=(o[316]|0)-c;s=o[214]|0;l=(o[211]|0)-c|0;c=s;d=s+8|0;if((d&7|0)==0){p=0}else{p=-d&7}d=l-p|0;o[214]=c+p;o[211]=d;o[c+(p+4)>>2]=d|1;o[c+(l+4)>>2]=40;o[215]=o[204];r=(u|0)!=(h|0)|0;return r|0}}while(0);if((o[211]|0)>>>0<=(o[215]|0)>>>0){r=0;return r|0}o[215]=-1;r=0;return r|0}function Qe(t,e){t=t|0;e=e|0;var r=0,n=0,i=0,a=0,s=0,u=0,c=0,f=0,h=0,l=0,d=0,p=0,m=0,b=0,v=0,y=0,g=0,_=0,w=0,M=0,k=0,E=0,x=0,S=0;r=t+4|0;n=o[r>>2]|0;i=n&-8;a=t;s=a+i|0;u=s;c=o[212]|0;if(a>>>0<c>>>0){kt();return 0}f=n&3;if(!((f|0)!=1&a>>>0<s>>>0)){kt();return 0}h=a+(i|4)|0;l=o[h>>2]|0;if((l&1|0)==0){kt();return 0}if((f|0)==0){if(e>>>0<256){d=0;return d|0}do{if(i>>>0>=(e+4|0)>>>0){if((i-e|0)>>>0>o[202]<<1>>>0){break}else{d=t}return d|0}}while(0);d=0;return d|0}if(i>>>0>=e>>>0){f=i-e|0;if(f>>>0<=15){d=t;return d|0}o[r>>2]=n&1|e|2;o[a+(e+4)>>2]=f|3;o[h>>2]=o[h>>2]|1;br(a+e|0,f);d=t;return d|0}if((u|0)==(o[214]|0)){f=(o[211]|0)+i|0;if(f>>>0<=e>>>0){d=0;return d|0}h=f-e|0;o[r>>2]=n&1|e|2;o[a+(e+4)>>2]=h|1;o[214]=a+e;o[211]=h;d=t;return d|0}if((u|0)==(o[213]|0)){h=(o[210]|0)+i|0;if(h>>>0<e>>>0){d=0;return d|0}f=h-e|0;if(f>>>0>15){o[r>>2]=n&1|e|2;o[a+(e+4)>>2]=f|1;o[a+h>>2]=f;p=a+(h+4)|0;o[p>>2]=o[p>>2]&-2;m=a+e|0;b=f}else{o[r>>2]=n&1|h|2;n=a+(h+4)|0;o[n>>2]=o[n>>2]|1;m=0;b=0}o[210]=b;o[213]=m;d=t;return d|0}if((l&2|0)!=0){d=0;return d|0}m=(l&-8)+i|0;if(m>>>0<e>>>0){d=0;return d|0}b=m-e|0;n=l>>>3;t:do{if(l>>>0<256){h=o[a+(i+8)>>2]|0;f=o[a+(i+12)>>2]|0;p=872+(n<<1<<2)|0;do{if((h|0)!=(p|0)){if(h>>>0<c>>>0){kt();return 0}if((o[h+12>>2]|0)==(u|0)){break}kt();return 0}}while(0);if((f|0)==(h|0)){o[208]=o[208]&~(1<<n);break}do{if((f|0)==(p|0)){v=f+8|0}else{if(f>>>0<c>>>0){kt();return 0}y=f+8|0;if((o[y>>2]|0)==(u|0)){v=y;break}kt();return 0}}while(0);o[h+12>>2]=f;o[v>>2]=h}else{p=s;y=o[a+(i+24)>>2]|0;g=o[a+(i+12)>>2]|0;do{if((g|0)==(p|0)){_=a+(i+20)|0;w=o[_>>2]|0;if((w|0)==0){M=a+(i+16)|0;k=o[M>>2]|0;if((k|0)==0){E=0;break}else{x=k;S=M}}else{x=w;S=_}while(1){_=x+20|0;w=o[_>>2]|0;if((w|0)!=0){x=w;S=_;continue}_=x+16|0;w=o[_>>2]|0;if((w|0)==0){break}else{x=w;S=_}}if(S>>>0<c>>>0){kt();return 0}else{o[S>>2]=0;E=x;break}}else{_=o[a+(i+8)>>2]|0;if(_>>>0<c>>>0){kt();return 0}w=_+12|0;if((o[w>>2]|0)!=(p|0)){kt();return 0}M=g+8|0;if((o[M>>2]|0)==(p|0)){o[w>>2]=g;o[M>>2]=_;E=g;break}else{kt();return 0}}}while(0);if((y|0)==0){break}g=a+(i+28)|0;h=1136+(o[g>>2]<<2)|0;do{if((p|0)==(o[h>>2]|0)){o[h>>2]=E;if((E|0)!=0){break}o[209]=o[209]&~(1<<o[g>>2]);break t}else{if(y>>>0<(o[212]|0)>>>0){kt();return 0}f=y+16|0;if((o[f>>2]|0)==(p|0)){o[f>>2]=E}else{o[y+20>>2]=E}if((E|0)==0){break t}}}while(0);if(E>>>0<(o[212]|0)>>>0){kt();return 0}o[E+24>>2]=y;p=o[a+(i+16)>>2]|0;do{if((p|0)!=0){if(p>>>0<(o[212]|0)>>>0){kt();return 0}else{o[E+16>>2]=p;o[p+24>>2]=E;break}}}while(0);p=o[a+(i+20)>>2]|0;if((p|0)==0){break}if(p>>>0<(o[212]|0)>>>0){kt();return 0}else{o[E+20>>2]=p;o[p+24>>2]=E;break}}}while(0);if(b>>>0<16){o[r>>2]=m|o[r>>2]&1|2;E=a+(m|4)|0;o[E>>2]=o[E>>2]|1;d=t;return d|0}else{o[r>>2]=o[r>>2]&1|e|2;o[a+(e+4)>>2]=b|3;r=a+(m|4)|0;o[r>>2]=o[r>>2]|1;br(a+e|0,b);d=t;return d|0}return 0}function Je(){return o[316]|0}function tr(){return o[317]|0}function er(){var t=0;t=o[318]|0;return((t|0)==0?-1:t)|0}function rr(t){t=t|0;var e=0,r=0;if((t|0)==-1){e=0}else{r=o[202]|0;e=t-1+r&-r}o[318]=e;return e|0}function nr(t){t=t|0;var e=0,r=0,n=0;do{if((t|0)==0){e=0}else{r=o[t-4>>2]|0;n=r&3;if((n|0)==1){e=0;break}e=(r&-8)-((n|0)==0?8:4)|0}}while(0);return e|0}function ir(t,e,r){t=t|0;e=e|0;r=r|0;var n=0,i=0,a=0;do{if((e|0)==8){n=Ve(r)|0}else{i=e>>>2;if((e&3|0)!=0|(i|0)==0){a=22;return a|0}if((i+1073741823&i|0)!=0){a=22;return a|0}if((-64-e|0)>>>0<r>>>0){a=12;return a|0}else{n=Xe(e>>>0<16?16:e,r)|0;break}}}while(0);if((n|0)==0){a=12;return a|0}o[t>>2]=n;a=0;return a|0}function or(t,e,r){t=t|0;e=e|0;r=r|0;var n=0,i=0;n=h;h=h+8|0;i=n|0;o[i>>2]=e;e=cr(t,i,3,r)|0;h=n;return e|0}function ar(t,e,r){t=t|0;e=e|0;r=r|0;return cr(t,e,0,r)|0}function sr(t){t=t|0;var e=0,r=0,n=0;if((o[200]|0)!=0){e=o[201]|0;r=Ze(e,t)|0;return r|0}n=_t(8)|0;if((n-1&n|0)!=0){kt();return 0}o[202]=n;o[201]=n;o[203]=-1;o[204]=2097152;o[205]=0;o[319]=0;o[200]=(ee(0)|0)&-16^1431655768;e=o[201]|0;r=Ze(e,t)|0;return r|0}function ur(t){t=t|0;var e=0;do{if((o[200]|0)==0){e=_t(8)|0;if((e-1&e|0)==0){o[202]=e;o[201]=e;o[203]=-1;o[204]=2097152;o[205]=0;o[319]=0;o[200]=(ee(0)|0)&-16^1431655768;break}else{kt();return 0}}}while(0);e=o[201]|0;return Ze(e,t-1+e&-e)|0}function cr(t,e,r,n){t=t|0;e=e|0;r=r|0;n=n|0;var i=0,a=0,s=0,u=0,c=0,f=0,h=0,l=0,d=0,p=0,m=0,b=0,v=0,y=0,g=0,_=0,w=0,M=0,k=0;do{if((o[200]|0)==0){i=_t(8)|0;if((i-1&i|0)==0){o[202]=i;o[201]=i;o[203]=-1;o[204]=2097152;o[205]=0;o[319]=0;o[200]=(ee(0)|0)&-16^1431655768;break}else{kt();return 0}}}while(0);i=(t|0)==0;do{if((n|0)==0){if(i){a=Ve(0)|0;return a|0}else{s=t<<2;if(s>>>0<11){u=0;c=16;break}u=0;c=s+11&-8;break}}else{if(i){a=n}else{u=n;c=0;break}return a|0}}while(0);do{if((r&1|0)==0){if(i){f=0;h=0;break}else{l=0;d=0}while(1){n=o[e+(d<<2)>>2]|0;if(n>>>0<11){p=16}else{p=n+11&-8}n=p+l|0;s=d+1|0;if((s|0)==(t|0)){f=0;h=n;break}else{l=n;d=s}}}else{s=o[e>>2]|0;if(s>>>0<11){m=16}else{m=s+11&-8}f=m;h=at(m,t)|0}}while(0);m=Ve(c-4+h|0)|0;if((m|0)==0){a=0;return a|0}d=m-8|0;l=o[m-4>>2]&-8;if((r&2|0)!=0){tn(m|0,0,-4-c+l|0)}if((u|0)==0){o[m+(h-4)>>2]=l-h|3;b=m+h|0;v=h}else{b=u;v=l}o[b>>2]=m;m=t-1|0;t:do{if((m|0)==0){y=d;g=v}else{if((f|0)==0){_=d;w=v;M=0}else{t=d;l=v;u=0;while(1){h=l-f|0;o[t+4>>2]=f|3;c=t+f|0;r=u+1|0;o[b+(r<<2)>>2]=t+(f+8);if((r|0)==(m|0)){y=c;g=h;break t}else{t=c;l=h;u=r}}}while(1){u=o[e+(M<<2)>>2]|0;if(u>>>0<11){k=16}else{k=u+11&-8}u=w-k|0;o[_+4>>2]=k|3;l=_+k|0;t=M+1|0;o[b+(t<<2)>>2]=_+(k+8);if((t|0)==(m|0)){y=l;g=u;break}else{_=l;w=u;M=t}}}}while(0);o[y+4>>2]=g|3;a=b;return a|0}function fr(t,e){t=t|0;e=e|0;var r=0,n=0,i=0,a=0,s=0,u=0,c=0,f=0,h=0,l=0,d=0,p=0,m=0;r=t+(e<<2)|0;t:do{if((e|0)!=0){n=t;e:while(1){i=o[n>>2]|0;r:do{if((i|0)==0){a=n+4|0}else{s=i-8|0;u=s;c=i-4|0;f=o[c>>2]&-8;o[n>>2]=0;if(s>>>0<(o[212]|0)>>>0){h=935;break e}s=o[c>>2]|0;if((s&3|0)==1){h=936;break e}l=n+4|0;d=s-8&-8;do{if((l|0)!=(r|0)){if((o[l>>2]|0)!=(i+(d+8)|0)){break}p=(o[i+(d|4)>>2]&-8)+f|0;o[c>>2]=s&1|p|2;m=i+(p-4)|0;o[m>>2]=o[m>>2]|1;o[l>>2]=i;a=l;break r}}while(0);br(u,f);a=l}}while(0);if((a|0)==(r|0)){break t}else{n=a}}if((h|0)==935){kt();return 0}else if((h|0)==936){kt();return 0}}}while(0);if((o[211]|0)>>>0<=(o[215]|0)>>>0){return 0}$e(0)|0;return 0}function hr(t){t=t|0;var e=0,r=0;if((o[200]|0)!=0){e=$e(t)|0;return e|0}r=_t(8)|0;if((r-1&r|0)!=0){kt();return 0}o[202]=r;o[201]=r;o[203]=-1;o[204]=2097152;o[205]=0;o[319]=0;o[200]=(ee(0)|0)&-16^1431655768;e=$e(t)|0;return e|0}function lr(t){t=t|0;var e=0,r=0,n=0,i=0,a=0,s=0,u=0,c=0,f=0,h=0,l=0,d=0,p=0,m=0,b=0,v=0,y=0,g=0,_=0,w=0,M=0,k=0,E=0,x=0,S=0,A=0,C=0,T=0;do{if((o[200]|0)==0){e=_t(8)|0;if((e-1&e|0)==0){o[202]=e;o[201]=e;o[203]=-1;o[204]=2097152;o[205]=0;o[319]=0;o[200]=(ee(0)|0)&-16^1431655768;break}else{kt()}}}while(0);e=o[214]|0;if((e|0)==0){r=0;n=0;i=0;a=0;s=0;u=0;c=0}else{f=o[211]|0;h=f+40|0;l=1;d=h;p=h;h=1280;while(1){m=o[h>>2]|0;b=m+8|0;if((b&7|0)==0){v=0}else{v=-b&7}b=m+(o[h+4>>2]|0)|0;y=l;g=d;_=p;w=m+v|0;while(1){if(w>>>0>=b>>>0|(w|0)==(e|0)){M=y;k=g;E=_;break}x=o[w+4>>2]|0;if((x|0)==7){M=y;k=g;E=_;break}S=x&-8;A=S+_|0;if((x&3|0)==1){C=S+g|0;T=y+1|0}else{C=g;T=y}x=w+S|0;if(x>>>0<m>>>0){M=T;k=C;E=A;break}else{y=T;g=C;_=A;w=x}}w=o[h+8>>2]|0;if((w|0)==0){break}else{l=M;d=k;p=E;h=w}}h=o[316]|0;r=f;n=E;i=M;a=h-E|0;s=o[317]|0;u=h-k|0;c=k}o[t>>2]=n;o[t+4>>2]=i;i=t+8|0;o[i>>2]=0;o[i+4>>2]=0;o[t+16>>2]=a;o[t+20>>2]=s;o[t+24>>2]=0;o[t+28>>2]=u;o[t+32>>2]=c;o[t+36>>2]=r;return}function dr(){var t=0,e=0,r=0,n=0,i=0,a=0,s=0,u=0,c=0,f=0,l=0,d=0,p=0,m=0,b=0,y=0,g=0,_=0;t=h;do{if((o[200]|0)==0){e=_t(8)|0;if((e-1&e|0)==0){o[202]=e;o[201]=e;o[203]=-1;o[204]=2097152;o[205]=0;o[319]=0;o[200]=(ee(0)|0)&-16^1431655768;break}else{kt()}}}while(0);e=o[214]|0;if((e|0)==0){r=0;n=0;i=0}else{a=o[317]|0;s=o[316]|0;u=s-40-(o[211]|0)|0;c=1280;while(1){f=o[c>>2]|0;l=f+8|0;if((l&7|0)==0){d=0}else{d=-l&7}l=f+(o[c+4>>2]|0)|0;p=u;m=f+d|0;while(1){if(m>>>0>=l>>>0|(m|0)==(e|0)){b=p;break}y=o[m+4>>2]|0;if((y|0)==7){b=p;break}g=y&-8;_=p-((y&3|0)==1?g:0)|0;y=m+g|0;if(y>>>0<f>>>0){b=_;break}else{p=_;m=y}}m=o[c+8>>2]|0;if((m|0)==0){r=b;n=s;i=a;break}else{u=b;c=m}}}Et(o[v>>2]|0,520,(A=h,h=h+8|0,o[A>>2]=i,A)|0)|0;Et(o[v>>2]|0,488,(A=h,h=h+8|0,o[A>>2]=n,A)|0)|0;Et(o[v>>2]|0,400,(A=h,h=h+8|0,o[A>>2]=r,A)|0)|0;h=t;return}function pr(t,e){t=t|0;e=e|0;var r=0,n=0;do{if((o[200]|0)==0){r=_t(8)|0;if((r-1&r|0)==0){o[202]=r;o[201]=r;o[203]=-1;o[204]=2097152;o[205]=0;o[319]=0;o[200]=(ee(0)|0)&-16^1431655768;break}else{kt();return 0}}}while(0);if((t|0)==(-1|0)){o[204]=e;n=1;return n|0}else if((t|0)==(-2|0)){if((o[201]|0)>>>0>e>>>0){n=0;return n|0}if((e-1&e|0)!=0){n=0;return n|0}o[202]=e;n=1;return n|0}else if((t|0)==(-3|0)){o[203]=e;n=1;return n|0}else{n=0;return n|0}return 0}function mr(){return(j=o[328]|0,o[328]=j+0,j)|0}function br(t,e){t=t|0;e=e|0;var r=0,n=0,i=0,a=0,s=0,u=0,c=0,f=0,h=0,l=0,d=0,p=0,m=0,b=0,v=0,y=0,g=0,_=0,w=0,M=0,k=0,E=0,x=0,S=0,A=0,C=0,T=0,I=0,P=0,R=0,O=0,j=0,N=0,B=0,L=0;r=t;n=r+e|0;i=n;a=o[t+4>>2]|0;t:do{if((a&1|0)==0){s=o[t>>2]|0;if((a&3|0)==0){return}u=r+(-s|0)|0;c=u;f=s+e|0;h=o[212]|0;if(u>>>0<h>>>0){kt()}if((c|0)==(o[213]|0)){l=r+(e+4)|0;if((o[l>>2]&3|0)!=3){d=c;p=f;break}o[210]=f;o[l>>2]=o[l>>2]&-2;o[r+(4-s)>>2]=f|1;o[n>>2]=f;return}l=s>>>3;if(s>>>0<256){m=o[r+(8-s)>>2]|0;b=o[r+(12-s)>>2]|0;v=872+(l<<1<<2)|0;do{if((m|0)!=(v|0)){if(m>>>0<h>>>0){kt()}if((o[m+12>>2]|0)==(c|0)){break}kt()}}while(0);if((b|0)==(m|0)){o[208]=o[208]&~(1<<l);d=c;p=f;break}do{if((b|0)==(v|0)){y=b+8|0}else{if(b>>>0<h>>>0){kt()}g=b+8|0;if((o[g>>2]|0)==(c|0)){y=g;break}kt()}}while(0);o[m+12>>2]=b;o[y>>2]=m;d=c;p=f;break}v=u;l=o[r+(24-s)>>2]|0;g=o[r+(12-s)>>2]|0;do{if((g|0)==(v|0)){_=16-s|0;w=r+(_+4)|0;M=o[w>>2]|0;if((M|0)==0){k=r+_|0;_=o[k>>2]|0;if((_|0)==0){E=0;break}else{x=_;S=k}}else{x=M;S=w}while(1){w=x+20|0;M=o[w>>2]|0;if((M|0)!=0){x=M;S=w;continue}w=x+16|0;M=o[w>>2]|0;if((M|0)==0){break}else{x=M;S=w}}if(S>>>0<h>>>0){kt()}else{o[S>>2]=0;E=x;break}}else{w=o[r+(8-s)>>2]|0;if(w>>>0<h>>>0){kt()}M=w+12|0;if((o[M>>2]|0)!=(v|0)){kt()}k=g+8|0;if((o[k>>2]|0)==(v|0)){o[M>>2]=g;o[k>>2]=w;E=g;break}else{kt()}}}while(0);if((l|0)==0){d=c;p=f;break}g=r+(28-s)|0;h=1136+(o[g>>2]<<2)|0;do{if((v|0)==(o[h>>2]|0)){o[h>>2]=E;if((E|0)!=0){break}o[209]=o[209]&~(1<<o[g>>2]);d=c;p=f;break t}else{if(l>>>0<(o[212]|0)>>>0){kt()}u=l+16|0;if((o[u>>2]|0)==(v|0)){o[u>>2]=E}else{o[l+20>>2]=E}if((E|0)==0){d=c;p=f;break t}}}while(0);if(E>>>0<(o[212]|0)>>>0){kt()}o[E+24>>2]=l;v=16-s|0;g=o[r+v>>2]|0;do{if((g|0)!=0){if(g>>>0<(o[212]|0)>>>0){kt()}else{o[E+16>>2]=g;o[g+24>>2]=E;break}}}while(0);g=o[r+(v+4)>>2]|0;if((g|0)==0){d=c;p=f;break}if(g>>>0<(o[212]|0)>>>0){kt()}else{o[E+20>>2]=g;o[g+24>>2]=E;d=c;p=f;break}}else{d=t;p=e}}while(0);t=o[212]|0;if(n>>>0<t>>>0){kt()}E=r+(e+4)|0;x=o[E>>2]|0;do{if((x&2|0)==0){if((i|0)==(o[214]|0)){S=(o[211]|0)+p|0;o[211]=S;o[214]=d;o[d+4>>2]=S|1;if((d|0)!=(o[213]|0)){return}o[213]=0;o[210]=0;return}if((i|0)==(o[213]|0)){S=(o[210]|0)+p|0;o[210]=S;o[213]=d;o[d+4>>2]=S|1;o[d+S>>2]=S;return}S=(x&-8)+p|0;y=x>>>3;t:do{if(x>>>0<256){a=o[r+(e+8)>>2]|0;g=o[r+(e+12)>>2]|0;s=872+(y<<1<<2)|0;do{if((a|0)!=(s|0)){if(a>>>0<t>>>0){kt()}if((o[a+12>>2]|0)==(i|0)){break}kt()}}while(0);if((g|0)==(a|0)){o[208]=o[208]&~(1<<y);break}do{if((g|0)==(s|0)){A=g+8|0}else{if(g>>>0<t>>>0){kt()}l=g+8|0;if((o[l>>2]|0)==(i|0)){A=l;break}kt()}}while(0);o[a+12>>2]=g;o[A>>2]=a}else{s=n;l=o[r+(e+24)>>2]|0;h=o[r+(e+12)>>2]|0;do{if((h|0)==(s|0)){u=r+(e+20)|0;m=o[u>>2]|0;if((m|0)==0){b=r+(e+16)|0;w=o[b>>2]|0;if((w|0)==0){C=0;break}else{T=w;I=b}}else{T=m;I=u}while(1){u=T+20|0;m=o[u>>2]|0;if((m|0)!=0){T=m;I=u;continue}u=T+16|0;m=o[u>>2]|0;if((m|0)==0){break}else{T=m;I=u}}if(I>>>0<t>>>0){kt()}else{o[I>>2]=0;C=T;break}}else{u=o[r+(e+8)>>2]|0;if(u>>>0<t>>>0){kt()}m=u+12|0;if((o[m>>2]|0)!=(s|0)){kt()}b=h+8|0;if((o[b>>2]|0)==(s|0)){o[m>>2]=h;o[b>>2]=u;C=h;break}else{kt()}}}while(0);if((l|0)==0){break}h=r+(e+28)|0;a=1136+(o[h>>2]<<2)|0;do{if((s|0)==(o[a>>2]|0)){o[a>>2]=C;if((C|0)!=0){break}o[209]=o[209]&~(1<<o[h>>2]);break t}else{if(l>>>0<(o[212]|0)>>>0){kt()}g=l+16|0;if((o[g>>2]|0)==(s|0)){o[g>>2]=C}else{o[l+20>>2]=C}if((C|0)==0){break t}}}while(0);if(C>>>0<(o[212]|0)>>>0){kt()}o[C+24>>2]=l;s=o[r+(e+16)>>2]|0;do{if((s|0)!=0){if(s>>>0<(o[212]|0)>>>0){kt()}else{o[C+16>>2]=s;o[s+24>>2]=C;break}}}while(0);s=o[r+(e+20)>>2]|0;if((s|0)==0){break}if(s>>>0<(o[212]|0)>>>0){kt()}else{o[C+20>>2]=s;o[s+24>>2]=C;break}}}while(0);o[d+4>>2]=S|1;o[d+S>>2]=S;if((d|0)!=(o[213]|0)){P=S;break}o[210]=S;return}else{o[E>>2]=x&-2;o[d+4>>2]=p|1;o[d+p>>2]=p;P=p}}while(0);p=P>>>3;if(P>>>0<256){x=p<<1;E=872+(x<<2)|0;C=o[208]|0;e=1<<p;do{if((C&e|0)==0){o[208]=C|e;R=E;O=872+(x+2<<2)|0}else{p=872+(x+2<<2)|0;r=o[p>>2]|0;if(r>>>0>=(o[212]|0)>>>0){R=r;O=p;break}kt()}}while(0);o[O>>2]=d;o[R+12>>2]=d;o[d+8>>2]=R;o[d+12>>2]=E;return}E=d;R=P>>>8;do{if((R|0)==0){j=0}else{if(P>>>0>16777215){j=31;break}O=(R+1048320|0)>>>16&8;x=R<<O;e=(x+520192|0)>>>16&4;C=x<<e;x=(C+245760|0)>>>16&2;p=14-(e|O|x)+(C<<x>>>15)|0;j=P>>>((p+7|0)>>>0)&1|p<<1}}while(0);R=1136+(j<<2)|0;o[d+28>>2]=j;o[d+20>>2]=0;o[d+16>>2]=0;p=o[209]|0;x=1<<j;if((p&x|0)==0){o[209]=p|x;o[R>>2]=E;o[d+24>>2]=R;o[d+12>>2]=d;o[d+8>>2]=d;return}if((j|0)==31){N=0}else{N=25-(j>>>1)|0}j=P<<N;N=o[R>>2]|0;while(1){if((o[N+4>>2]&-8|0)==(P|0)){break}B=N+16+(j>>>31<<2)|0;R=o[B>>2]|0;if((R|0)==0){L=1120;break}else{j=j<<1;N=R}}if((L|0)==1120){if(B>>>0<(o[212]|0)>>>0){kt()}o[B>>2]=E;o[d+24>>2]=N;o[d+12>>2]=d;o[d+8>>2]=d;return}B=N+8|0;L=o[B>>2]|0;j=o[212]|0;if(N>>>0<j>>>0){kt()}if(L>>>0<j>>>0){kt()}o[L+12>>2]=E;o[B>>2]=E;o[d+8>>2]=L;o[d+12>>2]=N;o[d+24>>2]=0;return}function vr(t){t=t|0;var e=0,r=0,n=0;e=(t|0)==0?1:t;while(1){r=Ve(e)|0;if((r|0)!=0){n=1164;break}t=(j=o[328]|0,o[328]=j+0,j);if((t|0)==0){break}On[t&1]()}if((n|0)==1164){return r|0}r=Ft(4)|0;o[r>>2]=560;wt(r|0,688,6);return 0}function yr(t,e){t=t|0;e=e|0;return vr(t)|0}function gr(t){t=t|0;return}function _r(t){t=t|0;return 360|0}function wr(t){t=t|0;return 448|0}function Mr(t){t=t|0;return(j=o[328]|0,o[328]=t,j)|0}function kr(t){t=t|0;o[t>>2]=560;return}function Er(t){t=t|0;o[t>>2]=592;return}function xr(t){t=t|0;if((t|0)!=0){Ke(t)}return}function Sr(t,e){t=t|0;e=e|0;xr(t);return}function Ar(t){t=t|0;xr(t);return}function Cr(t,e){t=t|0;e=e|0;Ar(t);return}function Tr(t){t=t|0;xr(t);return}function Ir(t){t=t|0;xr(t);return}function Pr(t,e,r){t=t|0;e=e|0;r=r|0;return Rr(t,e,r,0,0,0)|0}function Rr(t,e,r,i,a,s){t=t|0;e=e|0;r=r|0;i=i|0;a=a|0;s=s|0;var u=0,c=0,f=0,l=0,d=0,p=0,m=0,b=0,v=0,y=0,g=0,_=0,w=0,M=0,k=0,E=0,x=0,S=0,C=0,T=0,I=0,P=0,R=0,O=0,j=0,N=0,B=0,L=0,F=0,D=0,U=0,q=0,z=0,H=0,V=0,K=0,Y=0,G=0,W=0,Z=0,X=0,$=0,Q=0,J=0,tt=0,et=0,rt=0,nt=0;u=h;if((r|0)==0){c=-1;h=u;return c|0}f=o[44]|0;if((f|0)==0){o[196]=1;o[44]=1;l=1;d=1;p=1190}else{m=o[196]|0;b=o[74]|0;if((b|0)==-1|(m|0)!=0){l=m;d=f;p=1190}else{v=b;y=m;g=f}}if((p|0)==1190){f=(Vt(344)|0)!=0|0;o[74]=f;v=f;y=l;g=d}d=n[r]|0;if(d<<24>>24==45){_=s|2;p=1194}else{l=(v|0)!=0|d<<24>>24==43?s&-2:s;if(d<<24>>24==43){_=l;p=1194}else{w=r;M=l}}if((p|0)==1194){w=r+1|0;M=_}o[198]=0;if((y|0)==0){k=g;p=1198}else{o[50]=-1;o[48]=-1;E=g;x=y;p=1197}while(1){if((p|0)==1197){p=0;if((x|0)==0){k=E;p=1198;continue}else{S=E}}else if((p|0)==1198){p=0;y=o[40]|0;if((n[y]|0)==0){S=k}else{C=y;T=k;break}}o[196]=0;if((S|0)>=(t|0)){p=1200;break}I=e+(S<<2)|0;P=o[I>>2]|0;o[40]=P;if((n[P]|0)==45){R=P+1|0;O=n[R]|0;if(O<<24>>24!=0){p=1232;break}if((It(w|0,45)|0)!=0){p=1232;break}}o[40]=824;if((M&2|0)!=0){p=1217;break}if((M&1|0)==0){c=-1;p=1298;break}y=o[48]|0;do{if((y|0)==-1){o[48]=S;j=S;N=0}else{g=o[50]|0;if((g|0)==-1){j=S;N=0;break}_=g-y|0;r=S-g|0;l=(_|0)%(r|0)|0;if((l|0)==0){B=r}else{d=r;s=l;while(1){l=(d|0)%(s|0)|0;if((l|0)==0){B=s;break}else{d=s;s=l}}}s=(S-y|0)/(B|0)|0;do{if((B|0)>0){d=-_|0;if((s|0)>0){L=0}else{F=S;D=g;U=y;q=0;break}do{l=L+g|0;v=e+(l<<2)|0;f=0;m=l;l=o[v>>2]|0;while(1){b=((m|0)<(g|0)?r:d)+m|0;z=e+(b<<2)|0;H=o[z>>2]|0;o[z>>2]=l;o[v>>2]=H;z=f+1|0;if((z|0)<(s|0)){f=z;m=b;l=H}else{break}}L=L+1|0}while((L|0)<(B|0));F=o[44]|0;D=o[50]|0;U=o[48]|0;q=o[196]|0}else{F=S;D=g;U=y;q=0}}while(0);o[48]=F-D+U;o[50]=-1;j=F;N=q}}while(0);y=j+1|0;o[44]=y;E=y;x=N;p=1197}do{if((p|0)==1298){h=u;return c|0}else if((p|0)==1232){N=o[48]|0;x=o[50]|0;if((N|0)!=-1&(x|0)==-1){o[50]=S;V=n[R]|0;K=S}else{V=O;K=x}if(V<<24>>24==0){C=P;T=S;break}o[40]=R;if((n[R]|0)!=45){C=R;T=S;break}if((n[P+2|0]|0)!=0){C=R;T=S;break}x=S+1|0;o[44]=x;o[40]=824;if((K|0)!=-1){E=K-N|0;j=x-K|0;q=(E|0)%(j|0)|0;if((q|0)==0){Y=j}else{F=j;U=q;while(1){q=(F|0)%(U|0)|0;if((q|0)==0){Y=U;break}else{F=U;U=q}}}U=(x-N|0)/(Y|0)|0;do{if((Y|0)>0){F=-E|0;if((U|0)>0){G=0}else{W=K;Z=N;X=x;break}do{q=G+K|0;D=e+(q<<2)|0;B=0;L=q;q=o[D>>2]|0;while(1){k=((L|0)<(K|0)?j:F)+L|0;y=e+(k<<2)|0;g=o[y>>2]|0;o[y>>2]=q;o[D>>2]=g;y=B+1|0;if((y|0)<(U|0)){B=y;L=k;q=g}else{break}}G=G+1|0}while((G|0)<(Y|0));W=o[50]|0;Z=o[48]|0;X=o[44]|0}else{W=K;Z=N;X=x}}while(0);o[44]=Z-W+X}o[50]=-1;o[48]=-1;c=-1;h=u;return c|0}else if((p|0)==1200){o[40]=824;x=o[50]|0;N=o[48]|0;do{if((x|0)==-1){if((N|0)==-1){break}o[44]=N}else{U=x-N|0;j=S-x|0;E=(U|0)%(j|0)|0;if((E|0)==0){$=j}else{F=j;q=E;while(1){E=(F|0)%(q|0)|0;if((E|0)==0){$=q;break}else{F=q;q=E}}}q=(S-N|0)/($|0)|0;do{if(($|0)>0){F=-U|0;if((q|0)>0){Q=0}else{J=x;tt=N;et=S;break}do{E=Q+x|0;L=e+(E<<2)|0;B=0;D=E;E=o[L>>2]|0;while(1){g=((D|0)<(x|0)?j:F)+D|0;k=e+(g<<2)|0;y=o[k>>2]|0;o[k>>2]=E;o[L>>2]=y;k=B+1|0;if((k|0)<(q|0)){B=k;D=g;E=y}else{break}}Q=Q+1|0}while((Q|0)<($|0));J=o[50]|0;tt=o[48]|0;et=o[44]|0}else{J=x;tt=N;et=S}}while(0);o[44]=tt-J+et}}while(0);o[50]=-1;o[48]=-1;c=-1;h=u;return c|0}else if((p|0)==1217){o[44]=S+1;o[198]=o[I>>2];c=1;h=u;return c|0}}while(0);I=(i|0)!=0;t:do{if(I){if((C|0)==(o[e+(T<<2)>>2]|0)){rt=C;break}S=n[C]|0;do{if(S<<24>>24==45){o[40]=C+1;nt=0}else{if((M&4|0)==0){rt=C;break t}if(S<<24>>24==58){nt=0;break}nt=(It(w|0,S<<24>>24|0)|0)!=0|0}}while(0);S=Fr(e,w,i,a,nt)|0;if((S|0)==-1){rt=o[40]|0;break}o[40]=824;c=S;h=u;return c|0}else{rt=C}}while(0);C=rt+1|0;o[40]=C;nt=n[rt]|0;rt=nt<<24>>24;if((nt<<24>>24|0)==45){if((n[C]|0)==0){p=1260}}else if((nt<<24>>24|0)==58){p=1263}else{p=1260}do{if((p|0)==1260){M=It(w|0,rt|0)|0;if((M|0)==0){if(nt<<24>>24!=45){p=1263;break}if((n[C]|0)==0){c=-1}else{break}h=u;return c|0}T=n[M+1|0]|0;if(I&nt<<24>>24==87&T<<24>>24==59){do{if((n[C]|0)==0){S=(o[44]|0)+1|0;o[44]=S;if((S|0)<(t|0)){o[40]=o[e+(S<<2)>>2];break}o[40]=824;do{if((o[46]|0)!=0){if((n[w]|0)==58){break}Ur(48,(A=h,h=h+8|0,o[A>>2]=rt,A)|0)}}while(0);o[42]=rt;c=(n[w]|0)==58?58:63;h=u;return c|0}}while(0);S=Fr(e,w,i,a,0)|0;o[40]=824;c=S;h=u;return c|0}if(T<<24>>24!=58){if((n[C]|0)!=0){c=rt;h=u;return c|0}o[44]=(o[44]|0)+1;c=rt;h=u;return c|0}o[198]=0;do{if((n[C]|0)==0){if((n[M+2|0]|0)==58){break}S=(o[44]|0)+1|0;o[44]=S;if((S|0)<(t|0)){o[198]=o[e+(S<<2)>>2];break}o[40]=824;do{if((o[46]|0)!=0){if((n[w]|0)==58){break}Ur(48,(A=h,h=h+8|0,o[A>>2]=rt,A)|0)}}while(0);o[42]=rt;c=(n[w]|0)==58?58:63;h=u;return c|0}else{o[198]=C}}while(0);o[40]=824;o[44]=(o[44]|0)+1;c=rt;h=u;return c|0}}while(0);do{if((p|0)==1263){if((n[C]|0)!=0){break}o[44]=(o[44]|0)+1}}while(0);do{if((o[46]|0)!=0){if((n[w]|0)==58){break}Ur(272,(A=h,h=h+8|0,o[A>>2]=rt,A)|0)}}while(0);o[42]=rt;c=63;h=u;return c|0}function Or(t,e,r,n,i){t=t|0;e=e|0;r=r|0;n=n|0;i=i|0;return Rr(t,e,r,n,i,1)|0}function jr(t,e,r,n,i){t=t|0;e=e|0;r=r|0;n=n|0;i=i|0;return Rr(t,e,r,n,i,5)|0}function Nr(t){t=t|0;return vr(t)|0}function Br(t,e){t=t|0;e=e|0;return Nr(t)|0}function Lr(){var t=0;t=Ft(4)|0;o[t>>2]=560;wt(t|0,688,6)}function Fr(t,e,r,i,a){t=t|0;e=e|0;r=r|0;i=i|0;a=a|0;var s=0,u=0,c=0,f=0,l=0,d=0,p=0,m=0,b=0,v=0,y=0,g=0,_=0,w=0,M=0,k=0,E=0;s=h;u=o[40]|0;c=o[44]|0;f=c+1|0;o[44]=f;l=It(u|0,61)|0;if((l|0)==0){d=en(u|0)|0;p=0}else{d=l-u|0;p=l+1|0}l=o[r>>2]|0;t:do{if((l|0)!=0){e:do{if((a|0)!=0&(d|0)==1){m=0;b=l;while(1){if((n[u]|0)==(n[b]|0)){if((en(b|0)|0)==1){v=m;break e}}m=m+1|0;b=o[r+(m<<4)>>2]|0;if((b|0)==0){break t}}}else{b=0;m=-1;y=l;while(1){if((yt(u|0,y|0,d|0)|0)==0){if((en(y|0)|0)==(d|0)){v=b;break e}if((m|0)==-1){g=b}else{break}}else{g=m}_=b+1|0;w=o[r+(_<<4)>>2]|0;if((w|0)==0){v=g;break e}else{b=_;m=g;y=w}}do{if((o[46]|0)!=0){if((n[e]|0)==58){break}Ur(304,(A=h,h=h+16|0,o[A>>2]=d,o[A+8>>2]=u,A)|0)}}while(0);o[42]=0;M=63;h=s;return M|0}}while(0);if((v|0)==-1){break}y=r+(v<<4)+4|0;m=o[y>>2]|0;b=(p|0)==0;if(!((m|0)!=0|b)){do{if((o[46]|0)!=0){if((n[e]|0)==58){break}Ur(208,(A=h,h=h+16|0,o[A>>2]=d,o[A+8>>2]=u,A)|0)}}while(0);if((o[r+(v<<4)+8>>2]|0)==0){k=o[r+(v<<4)+12>>2]|0}else{k=0}o[42]=k;M=(n[e]|0)==58?58:63;h=s;return M|0}do{if((m-1|0)>>>0<2){if(!b){o[198]=p;break}if((m|0)!=1){break}o[44]=c+2;o[198]=o[t+(f<<2)>>2]}}while(0);if(!((o[y>>2]|0)==1&(o[198]|0)==0)){if((i|0)!=0){o[i>>2]=v}m=o[r+(v<<4)+8>>2]|0;b=o[r+(v<<4)+12>>2]|0;if((m|0)==0){M=b;h=s;return M|0}o[m>>2]=b;M=0;h=s;return M|0}do{if((o[46]|0)!=0){if((n[e]|0)==58){break}Ur(8,(A=h,h=h+8|0,o[A>>2]=u,A)|0)}}while(0);if((o[r+(v<<4)+8>>2]|0)==0){E=o[r+(v<<4)+12>>2]|0}else{E=0}o[42]=E;o[44]=(o[44]|0)-1;M=(n[e]|0)==58?58:63;h=s;return M|0}}while(0);if((a|0)!=0){o[44]=c;M=-1;h=s;return M|0}do{if((o[46]|0)!=0){if((n[e]|0)==58){break}Ur(248,(A=h,h=h+8|0,o[A>>2]=u,A)|0)}}while(0);o[42]=0;M=63;h=s;return M|0}function Dr(t,e){t=t|0;e=e|0;var r=0,n=0,i=0;r=h;h=h+16|0;n=r|0;i=n;o[i>>2]=e;o[i+4>>2]=0;qr(t,n|0);h=r;return}function Ur(t,e){t=t|0;e=e|0;var r=0,n=0,i=0;r=h;h=h+16|0;n=r|0;i=n;o[i>>2]=e;o[i+4>>2]=0;zr(t,n|0);h=r;return}function qr(t,e){t=t|0;e=e|0;var r=0,n=0,i=0;r=h;n=o[(Qt()|0)>>2]|0;i=o[_>>2]|0;Et(o[v>>2]|0,432,(A=h,h=h+8|0,o[A>>2]=i,A)|0)|0;if((t|0)!=0){i=o[v>>2]|0;Kt(i|0,t|0,e|0)|0;e=o[v>>2]|0;Ot(472,2,1,e|0)|0}e=o[v>>2]|0;t=Mt(n|0)|0;Et(e|0,384,(A=h,h=h+8|0,o[A>>2]=t,A)|0)|0;h=r;return}function zr(t,e){t=t|0;e=e|0;var r=0,n=0;r=h;n=o[_>>2]|0;Et(o[v>>2]|0,376,(A=h,h=h+8|0,o[A>>2]=n,A)|0)|0;if((t|0)!=0){n=o[v>>2]|0;Kt(n|0,t|0,e|0)|0}Pt(10,o[v>>2]|0)|0;h=r;return}function Hr(t,e){t=t|0;e=e|0;var r=0,i=0,a=0,s=0,u=0,c=0,h=0,l=0,d=0,p=0,m=0,b=0,v=0,y=0,g=0,_=0,w=0,M=0,k=0,E=0,x=0,S=0,A=0,C=0,T=0,I=0,P=0,R=0,O=0,j=0,N=0,B=0,L=0,F=0,D=0,U=0,q=0,z=0,H=0,V=0;r=t;while(1){i=r+1|0;if((Dt(n[r]|0)|0)==0){break}else{r=i}}a=n[r]|0;if((a<<24>>24|0)==45){s=i;u=1}else if((a<<24>>24|0)==43){s=i;u=0}else{s=r;u=0}r=-1;i=0;a=s;while(1){c=n[a]|0;if(((c<<24>>24)-48|0)>>>0<10){h=r}else{if(c<<24>>24!=46|(r|0)>-1){break}else{h=i}}r=h;i=i+1|0;a=a+1|0}h=a+(-i|0)|0;s=(r|0)<0;l=((s^1)<<31>>31)+i|0;d=(l|0)>18;p=(d?-18:-l|0)+(s?i:r)|0;r=d?18:l;do{if((r|0)==0){m=t;b=0}else{if((r|0)>9){l=h;d=r;i=0;while(1){s=n[l]|0;v=l+1|0;if(s<<24>>24==46){y=n[v]|0;g=l+2|0}else{y=s;g=v}_=(i*10|0)-48+(y<<24>>24)|0;v=d-1|0;if((v|0)>9){l=g;d=v;i=_}else{break}}w=+(_|0)*1e9;M=9;k=g;E=1393}else{if((r|0)>0){w=0;M=r;k=h;E=1393}else{x=0;S=0}}if((E|0)==1393){i=k;d=M;l=0;while(1){v=n[i]|0;s=i+1|0;if(v<<24>>24==46){A=n[s]|0;C=i+2|0}else{A=v;C=s}T=(l*10|0)-48+(A<<24>>24)|0;s=d-1|0;if((s|0)>0){i=C;d=s;l=T}else{break}}x=+(T|0);S=w}I=S+x;do{if((c<<24>>24|0)==69|(c<<24>>24|0)==101){l=a+1|0;d=n[l]|0;if((d<<24>>24|0)==43){P=a+2|0;R=0}else if((d<<24>>24|0)==45){P=a+2|0;R=1}else{P=l;R=0}l=n[P]|0;if(((l<<24>>24)-48|0)>>>0<10){O=P;j=0;N=l}else{B=0;L=P;F=R;break}while(1){l=(j*10|0)-48+(N<<24>>24)|0;d=O+1|0;i=n[d]|0;if(((i<<24>>24)-48|0)>>>0<10){O=d;j=l;N=i}else{B=l;L=d;F=R;break}}}else{B=0;L=a;F=0}}while(0);d=p+((F|0)==0?B:-B|0)|0;l=(d|0)<0?-d|0:d;if((l|0)>511){o[(Qt()|0)>>2]=34;D=1;U=88;q=511;E=1410}else{if((l|0)==0){z=1}else{D=1;U=88;q=l;E=1410}}if((E|0)==1410){while(1){E=0;if((q&1|0)==0){H=D}else{H=D*+f[U>>3]}l=q>>1;if((l|0)==0){z=H;break}else{D=H;U=U+8|0;q=l;E=1410}}}if((d|0)>-1){m=L;b=I*z;break}else{m=L;b=I/z;break}}}while(0);if((e|0)!=0){o[e>>2]=m}if((u|0)==0){V=b;return+V}V=-0-b;return+V}function Vr(t,e){t=t|0;e=e|0;return+ +Hr(t,e)}function Kr(t,e){t=t|0;e=e|0;return+ +Hr(t,e)}function Yr(t,e,r){t=t|0;e=e|0;r=r|0;return+ +Hr(t,e)}function Gr(t,e,r){t=t|0;e=e|0;r=r|0;return+ +Hr(t,e)}function Wr(t){t=t|0;return+ +Hr(t,0)}function Zr(t,e,r){t=t|0;e=e|0;r=r|0;var n=0,i=0;n=h;h=h+16|0;i=n|0;n=i;o[n>>2]=r;o[n+4>>2]=0;$r(t,e,i|0)}function Xr(t,e,r){t=t|0;e=e|0;r=r|0;var n=0,i=0;n=h;h=h+16|0;i=n|0;n=i;o[n>>2]=r;o[n+4>>2]=0;Qr(t,e,i|0)}function $r(t,e,r){t=t|0;e=e|0;r=r|0;var n=0,i=0;n=o[(Qt()|0)>>2]|0;i=o[_>>2]|0;Et(o[v>>2]|0,336,(A=h,h=h+8|0,o[A>>2]=i,A)|0)|0;if((e|0)!=0){i=o[v>>2]|0;Kt(i|0,e|0,r|0)|0;r=o[v>>2]|0;Ot(480,2,1,r|0)|0}r=o[v>>2]|0;e=Mt(n|0)|0;Et(r|0,392,(A=h,h=h+8|0,o[A>>2]=e,A)|0)|0;Bt(t|0)}function Qr(t,e,r){t=t|0;e=e|0;r=r|0;var n=0;n=o[_>>2]|0;Et(o[v>>2]|0,440,(A=h,h=h+8|0,o[A>>2]=n,A)|0)|0;if((e|0)!=0){n=o[v>>2]|0;Kt(n|0,e|0,r|0)|0}Pt(10,o[v>>2]|0)|0;Bt(t|0)}function Jr(t,e,r){t=t|0;e=e|0;r=r|0;var i=0;i=t|0;if((t&3)==(e&3)){while(t&3){if((r|0)==0)return i|0;n[t]=n[e]|0;t=t+1|0;e=e+1|0;r=r-1|0}while((r|0)>=4){o[t>>2]=o[e>>2];t=t+4|0;e=e+4|0;r=r-4|0}}while((r|0)>0){n[t]=n[e]|0;t=t+1|0;e=e+1|0;r=r-1|0}return i|0}function tn(t,e,r){t=t|0;e=e|0;r=r|0;var i=0,a=0,s=0;i=t+r|0;if((r|0)>=20){e=e&255;r=t&3;a=e|e<<8|e<<16|e<<24;s=i&~3;if(r){r=t+4-r|0;while((t|0)<(r|0)){n[t]=e;t=t+1|0}}while((t|0)<(s|0)){o[t>>2]=a;t=t+4|0}}while((t|0)<(i|0)){n[t]=e;t=t+1|0}}function en(t){t=t|0;var e=0;e=t;while(n[e]|0){e=e+1|0}return e-t|0}function rn(t,e,r,n){t=t|0;e=e|0;r=r|0;n=n|0;var i=0;i=t+r>>>0;return(B=e+n+(i>>>0<t>>>0|0)>>>0,i|0)|0}function nn(t,e,r,n){t=t|0;e=e|0;r=r|0;n=n|0;var i=0;i=e-n>>>0;i=e-n-(r>>>0>t>>>0|0)>>>0;return(B=i,t-r>>>0|0)|0}function on(t,e,r){t=t|0;e=e|0;r=r|0;if((r|0)<32){B=e<<r|(t&(1<<r)-1<<32-r)>>>32-r;return t<<r}B=t<<r-32;return 0}function an(t,e,r){t=t|0;e=e|0;r=r|0;if((r|0)<32){B=e>>>r;return t>>>r|(e&(1<<r)-1)<<32-r}B=0;return e>>>r-32|0}function sn(t,e,r){t=t|0;e=e|0;r=r|0;if((r|0)<32){B=e>>r;return t>>>r|(e&(1<<r)-1)<<32-r}B=(e|0)<0?-1:0;return e>>r-32|0}function un(t){t=t|0;var e=0;e=n[b+(t>>>24)|0]|0;if((e|0)<8)return e|0;e=n[b+(t>>16&255)|0]|0;if((e|0)<8)return e+8|0;e=n[b+(t>>8&255)|0]|0;if((e|0)<8)return e+16|0;return(n[b+(t&255)|0]|0)+24|0}function cn(t){t=t|0;var e=0;e=n[m+(t&255)|0]|0;if((e|0)<8)return e|0;e=n[m+(t>>8&255)|0]|0;if((e|0)<8)return e+8|0;e=n[m+(t>>16&255)|0]|0;if((e|0)<8)return e+16|0;return(n[m+(t>>>24)|0]|0)+24|0}function fn(t,e){t=t|0;e=e|0;var r=0,n=0,i=0,o=0;r=t&65535;n=e&65535;i=at(n,r)|0;o=t>>>16;t=(i>>>16)+(at(n,o)|0)|0;n=e>>>16;e=at(n,r)|0;return(B=(t>>>16)+(at(n,o)|0)+(((t&65535)+e|0)>>>16)|0,t+e<<16|i&65535|0)|0}function hn(t,e,r,n){t=t|0;e=e|0;r=r|0;n=n|0;var i=0,o=0,a=0,s=0,u=0;i=e>>31|((e|0)<0?-1:0)<<1;o=((e|0)<0?-1:0)>>31|((e|0)<0?-1:0)<<1;a=n>>31|((n|0)<0?-1:0)<<1;s=((n|0)<0?-1:0)>>31|((n|0)<0?-1:0)<<1;u=nn(i^t,o^e,i,o)|0;e=B;t=a^i;i=s^o;o=nn((bn(u,e,nn(a^r,s^n,a,s)|0,B,0)|0)^t,B^i,t,i)|0;return(B=B,o)|0}function ln(t,e,r,n){t=t|0;e=e|0;r=r|0;n=n|0;var i=0,a=0,s=0,u=0,c=0,f=0,l=0;i=h;h=h+8|0;a=i|0;s=e>>31|((e|0)<0?-1:0)<<1;u=((e|0)<0?-1:0)>>31|((e|0)<0?-1:0)<<1;c=n>>31|((n|0)<0?-1:0)<<1;f=((n|0)<0?-1:0)>>31|((n|0)<0?-1:0)<<1;l=nn(s^t,u^e,s,u)|0;e=B;t=nn(c^r,f^n,c,f)|0;bn(l,e,t,B,a)|0;t=nn(o[a>>2]^s,o[a+4>>2]^u,s,u)|0;u=B;h=i;return(B=u,t)|0}function dn(t,e,r,n){t=t|0;e=e|0;r=r|0;n=n|0;var i=0,o=0;i=t;t=r;r=fn(i,t)|0;o=B;return(B=(at(e,t)|0)+(at(n,i)|0)+o|o&0,r|0|0)|0}function pn(t,e,r,n){t=t|0;e=e|0;r=r|0;n=n|0;var i=0;i=bn(t,e,r,n,0)|0;return(B=B,i)|0}function mn(t,e,r,n){t=t|0;e=e|0;r=r|0;n=n|0;var i=0,a=0;i=h;h=h+8|0;a=i|0;bn(t,e,r,n,a)|0;h=i;return(B=o[a+4>>2]|0,o[a>>2]|0)|0}function bn(t,e,r,n,i){t=t|0;e=e|0;r=r|0;n=n|0;i=i|0;var a=0,s=0,u=0,c=0,f=0,h=0,l=0,d=0,p=0,m=0,b=0,v=0,y=0,g=0,_=0,w=0,M=0,k=0,E=0,x=0,S=0,A=0,C=0,T=0,I=0,P=0,R=0,O=0,j=0,N=0,L=0,F=0;a=t;s=e;u=s;c=r;f=n;h=f;if((u|0)==0){l=(i|0)!=0;if((h|0)==0){if(l){o[i>>2]=(a>>>0)%(c>>>0);o[i+4>>2]=0}d=0;p=(a>>>0)/(c>>>0)>>>0;return(B=d,p)|0}else{if(!l){d=0;p=0;return(B=d,p)|0}o[i>>2]=t|0;o[i+4>>2]=e&0;d=0;p=0;return(B=d,p)|0}}l=(h|0)==0;do{if((c|0)==0){if(l){if((i|0)!=0){o[i>>2]=(u>>>0)%(c>>>0);o[i+4>>2]=0}d=0;p=(u>>>0)/(c>>>0)>>>0;return(B=d,p)|0}if((a|0)==0){if((i|0)!=0){o[i>>2]=0;o[i+4>>2]=(u>>>0)%(h>>>0)}d=0;p=(u>>>0)/(h>>>0)>>>0;return(B=d,p)|0}m=h-1|0;if((m&h|0)==0){if((i|0)!=0){o[i>>2]=t|0;o[i+4>>2]=m&u|e&0}d=0;p=u>>>((cn(h|0)|0)>>>0);return(B=d,p)|0}m=(un(h|0)|0)-(un(u|0)|0)|0;if(m>>>0<=30){b=m+1|0;v=31-m|0;y=b;g=u<<v|a>>>(b>>>0);_=u>>>(b>>>0);w=0;M=a<<v;break}if((i|0)==0){d=0;p=0;return(B=d,p)|0}o[i>>2]=t|0;o[i+4>>2]=s|e&0;d=0;p=0;return(B=d,p)|0}else{if(!l){v=(un(h|0)|0)-(un(u|0)|0)|0;if(v>>>0<=31){b=v+1|0;m=31-v|0;k=v-31>>31;y=b;g=a>>>(b>>>0)&k|u<<m;_=u>>>(b>>>0)&k;w=0;M=a<<m;break}if((i|0)==0){d=0;p=0;return(B=d,p)|0}o[i>>2]=t|0;o[i+4>>2]=s|e&0;d=0;p=0;return(B=d,p)|0}m=c-1|0;if((m&c|0)!=0){k=(un(c|0)|0)+33-(un(u|0)|0)|0;b=64-k|0;v=32-k|0;E=v>>31;x=k-32|0;S=x>>31;y=k;g=v-1>>31&u>>>(x>>>0)|(u<<v|a>>>(k>>>0))&S;_=S&u>>>(k>>>0);w=a<<b&E;M=(u<<b|a>>>(x>>>0))&E|a<<v&k-33>>31;break}if((i|0)!=0){o[i>>2]=m&a;o[i+4>>2]=0}if((c|0)==1){d=s|e&0;p=t|0|0;return(B=d,p)|0}else{m=cn(c|0)|0;d=u>>>(m>>>0)|0;p=u<<32-m|a>>>(m>>>0)|0;return(B=d,p)|0}}}while(0);if((y|0)==0){A=M;C=w;T=_;I=g;P=0;R=0}else{a=r|0|0;r=f|n&0;n=rn(a,r,-1,-1)|0;f=B;u=M;M=w;w=_;_=g;g=y;y=0;while(1){O=M>>>31|u<<1;j=y|M<<1;c=_<<1|u>>>31|0;t=_>>>31|w<<1|0;nn(n,f,c,t)|0;e=B;s=e>>31|((e|0)<0?-1:0)<<1;N=s&1;L=nn(c,t,s&a,(((e|0)<0?-1:0)>>31|((e|0)<0?-1:0)<<1)&r)|0;F=B;e=g-1|0;if((e|0)==0){break}else{u=O;M=j;w=F;_=L;g=e;y=N}}A=O;C=j;T=F;I=L;P=0;R=N}N=C;C=0;if((i|0)!=0){o[i>>2]=I;o[i+4>>2]=T}d=(N|0)>>>31|(A|C)<<1|(C<<1|N>>>31)&0|P;p=(N<<1|0>>>31)&-2|R;return(B=d,p)|0}function vn(t,e){t=t|0;e=e|0;Tn[t&15](e|0)}function yn(t,e,r){t=t|0;e=e|0;r=r|0;In[t&15](e|0,r|0)}function gn(t,e){t=t|0;e=e|0;return Pn[t&7](e|0)|0}function _n(t,e,r,n){t=t|0;e=e|0;r=r|0;n=n|0;Rn[t&15](e|0,r|0,n|0)}function wn(t){t=t|0;On[t&1]()}function Mn(t,e,r){t=t|0;e=e|0;r=r|0;return jn[t&1](e|0,r|0)|0}function kn(t){t=t|0;st(0)}function En(t,e){t=t|0;e=e|0;st(1)}function xn(t){t=t|0;st(2);return 0}function Sn(t,e,r){t=t|0;e=e|0;r=r|0;st(3)}function An(){st(4)}function Cn(t,e){t=t|0;e=e|0;st(5);return 0}var Tn=[kn,kn,Er,kn,Ir,kn,gr,kn,kr,kn,Tr,kn,kn,kn,kn,kn];var In=[En,En,Dr,En,qr,En,Ur,En,zr,En,En,En,En,En,En,En];var Pn=[xn,xn,_r,xn,wr,xn,xn,xn];var Rn=[Sn,Sn,Qr,Sn,$r,Sn,Zr,Sn,Xr,Sn,Sn,Sn,Sn,Sn,Sn,Sn];var On=[An,An];var jn=[Cn,Cn];return{_crypto_scrypt:Ae,_strlen:en,_free:Ke,_realloc:Ge,_memset:tn,_malloc:Ve,_memcpy:Jr,_calloc:Ye,runPostSets:_e,stackAlloc:ie,stackSave:oe,stackRestore:ae,setThrew:se,setTempRet0:fe,setTempRet1:he,setTempRet2:le,setTempRet3:de,setTempRet4:pe,setTempRet5:me,setTempRet6:be,setTempRet7:ve,setTempRet8:ye,setTempRet9:ge,dynCall_vi:vn,dynCall_vii:yn,dynCall_ii:gn,dynCall_viii:_n,dynCall_v:wn,dynCall_iii:Mn}}({Math:Math,Int8Array:Int8Array,Int16Array:Int16Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array},{abort:wa,assert:w,asmPrintInt:function(t,e){s.print("int "+t+","+e)},asmPrintFloat:function(t,e){s.print("float "+t+","+e)},min:Xc,invoke_vi:function(t,e){try{s.dynCall_vi(t,e)}catch(t){"number"!==typeof t&&"longjmp"!==t&&g(t),V.setThrew(1,0)}},invoke_vii:function(t,e,r){try{s.dynCall_vii(t,e,r)}catch(t){"number"!==typeof t&&"longjmp"!==t&&g(t),V.setThrew(1,0)}},invoke_ii:function(t,e){try{return s.dynCall_ii(t,e)}catch(t){"number"!==typeof t&&"longjmp"!==t&&g(t),V.setThrew(1,0)}},invoke_viii:function(t,e,r,n){try{s.dynCall_viii(t,e,r,n)}catch(t){"number"!==typeof t&&"longjmp"!==t&&g(t),V.setThrew(1,0)}},invoke_v:function(t){try{s.dynCall_v(t)}catch(t){"number"!==typeof t&&"longjmp"!==t&&g(t),V.setThrew(1,0)}},invoke_iii:function(t,e,r){try{return s.dynCall_iii(t,e,r)}catch(t){"number"!==typeof t&&"longjmp"!==t&&g(t),V.setThrew(1,0)}},_strncmp:function(t,e,r){for(var n=0;n<r;){var i=G[t+n|0],o=G[e+n|0];if(i==o&&0==i)break;if(0==i)return-1;if(0==o)return 1;if(i!=o)return i>o?1:-1;n++}return 0},_llvm_va_end:aa(),_sysconf:function(t){switch(t){case 8:return 4096;case 54:case 56:case 21:case 61:case 63:case 22:case 67:case 23:case 24:case 25:case 26:case 27:case 69:case 28:case 101:case 70:case 71:case 29:case 30:case 199:case 75:case 76:case 32:case 43:case 44:case 80:case 46:case 47:case 45:case 48:case 49:case 42:case 82:case 33:case 7:case 108:case 109:case 107:case 112:case 119:case 121:return 200809;case 13:case 104:case 94:case 95:case 34:case 35:case 77:case 81:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 94:case 95:case 110:case 111:case 113:case 114:case 115:case 116:case 117:case 118:case 120:case 40:case 16:case 79:case 19:return-1;case 92:case 93:case 5:case 72:case 6:case 74:case 92:case 93:case 96:case 97:case 98:case 99:case 102:case 103:case 105:return 1;case 38:case 66:case 50:case 51:case 4:return 1024;case 15:case 64:case 41:return 32;case 55:case 37:case 17:return 2147483647;case 18:case 1:return 47839;case 59:case 57:return 99;case 68:case 58:return 2048;case 0:return 2097152;case 3:return 65536;case 14:return 32768;case 73:return 32767;case 39:return 16384;case 60:return 1e3;case 106:return 700;case 52:return 256;case 62:return 255;case 2:return 100;case 65:return 64;case 36:return 20;case 100:return 16;case 20:return 6;case 53:return 4;case 10:return 1}return M(N.A),-1},___cxa_throw:rc,_strerror:zc,_abort:function(){s.abort()},_fprintf:mc,_llvm_eh_exception:U,___cxa_free_exception:sc,_fflush:aa(),___buildEnvironment:wc,__reallyNegative:jc,_strchr:function(t,e){t--;do{t++;var r=A[t];if(r==e)return t}while(r);return 0},_fputc:Bc,___setErrNo:M,_fwrite:hc,_send:fc,_write:gc,_exit:function(t){Ac(t)},___cxa_find_matching_catch:function(t,e){-1==t&&(t=B[U.m>>2]),-1==e&&(e=B[U.m+4>>2]);var r=Array.prototype.slice.call(arguments,2);0!=e&&!pc(e)&&0==B[B[e>>2]-8>>2]&&(t=B[t>>2]);for(var n=0;n<r.length;n++)if(qc(r[n],e,t))return 0|(V.setTempRet0(r[n]),t);return 0|(V.setTempRet0(e),t)},___cxa_allocate_exception:function(t){return Oa(t)},_isspace:function(t){return 32==t||9<=t&&13>=t},__formatString:kc,___resumeException:function(t){0==B[U.m>>2]&&(B[U.m>>2]=t),g(t+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.")},_llvm_uadd_with_overflow_i32:function(t,e){return t>>>=0,e>>>=0,0|(V.setTempRet0(4294967295<t+e),t+e>>>0)},___cxa_does_inherit:qc,_getenv:xc,_vfprintf:function(t,e,r){return mc(t,e,B[r>>2])},___cxa_begin_catch:function(t){return oc.ta--,t},__ZSt18uncaught_exceptionv:oc,_pwrite:function(t,e,r,n){if(!(t=R[t]))return M(N.$),-1;try{return Ib(t,A,e,r,n)}catch(t){return Zb(t),-1}},___cxa_call_unexpected:function(t){s.P("Unexpected exception thrown, this is not properly supported - aborting"),za=l,g(t)},_sbrk:nc,_strerror_r:yc,___errno_location:function(){return rb},___gxx_personality_v0:aa(),___cxa_is_number_type:pc,_time:function(t){var e=Math.floor(Date.now()/1e3);return t&&(B[t>>2]=e),e},__exit:Ac,___cxa_end_catch:uc,STACKTOP:u,STACK_MAX:Ta,tempDoublePtr:qb,ABORT:za,cttz_i8:Wc,ctlz_i8:Vc,NaN:NaN,Infinity:1/0,_stderr:nb,__ZTVN10__cxxabiv120__si_class_type_infoE:ob,__ZTVN10__cxxabiv117__class_type_infoE:pb,___progname:k},I);s._crypto_scrypt=V._crypto_scrypt;var ic=s._strlen=V._strlen,tc=s._free=V._free;s._realloc=V._realloc;var tb=s._memset=V._memset,Oa=s._malloc=V._malloc,sb=s._memcpy=V._memcpy;s._calloc=V._calloc;var mb=s.runPostSets=V.runPostSets;s.dynCall_vi=V.dynCall_vi,s.dynCall_vii=V.dynCall_vii,s.dynCall_ii=V.dynCall_ii,s.dynCall_viii=V.dynCall_viii,s.dynCall_v=V.dynCall_v,s.dynCall_iii=V.dynCall_iii;var qa=function(t){return V.stackAlloc(t)},ja=function(){return V.stackSave()},ka=function(t){V.stackRestore(t)},lc;Y.Ca={},Y.D=function(t){if(-128<=t&&128>t){var e=Y.Ca[t];if(e)return e}return e=new Y(0|t,0>t?-1:0),-128<=t&&128>t&&(Y.Ca[t]=e),e},Y.p=function(t){return isNaN(t)||!isFinite(t)?Y.ZERO:t<=-Y.Ea?Y.MIN_VALUE:t+1>=Y.Ea?Y.MAX_VALUE:0>t?Y.p(-t).i():new Y(t%Y.B|0,t/Y.B|0)},Y.v=function(t,e){return new Y(t,e)},Y.k=function(t,e){0==t.length&&g(Error("number format error: empty string"));var r=e||10;if((2>r||36<r)&&g(Error("radix out of range: "+r)),"-"==t.charAt(0))return Y.k(t.substring(1),r).i();0<=t.indexOf("-")&&g(Error('number format error: interior "-" character: '+t));for(var n=Y.p(Math.pow(r,8)),i=Y.ZERO,o=0;o<t.length;o+=8){var a=Math.min(8,t.length-o),s=parseInt(t.substring(o,o+a),r);8>a?(a=Y.p(Math.pow(r,a)),i=i.multiply(a).add(Y.p(s))):(i=i.multiply(n),i=i.add(Y.p(s)))}return i},Y.ea=65536,Y.Od=16777216,Y.B=Y.ea*Y.ea,Y.Pd=Y.B/2,Y.Qd=Y.B*Y.ea,Y.eb=Y.B*Y.B,Y.Ea=Y.eb/2,Y.ZERO=Y.D(0),Y.ONE=Y.D(1),Y.Da=Y.D(-1),Y.MAX_VALUE=Y.v(-1,2147483647),Y.MIN_VALUE=Y.v(0,-2147483648),Y.cb=Y.D(16777216),q=Y.prototype,q.Z=function(){return this.j*Y.B+this.ob()},q.toString=function(t){if(t=t||10,(2>t||36<t)&&g(Error("radix out of range: "+t)),this.G())return"0";if(this.n()){if(this.o(Y.MIN_VALUE)){var e=Y.p(t),r=this.F(e),e=r.multiply(e).R(this);return r.toString(t)+e.h.toString(t)}return"-"+this.i().toString(t)}for(var r=Y.p(Math.pow(t,6)),e=this,n="";;){var i=e.F(r),o=e.R(i.multiply(r)).h.toString(t),e=i;if(e.G())return o+n;for(;6>o.length;)o="0"+o;n=""+o+n}},q.ob=function(){return 0<=this.h?this.h:Y.B+this.h},q.G=function(){return 0==this.j&&0==this.h},q.n=function(){return 0>this.j},q.Pa=function(){return 1==(1&this.h)},q.o=function(t){return this.j==t.j&&this.h==t.h},q.Ra=function(){return 0>this.ja(Y.cb)},q.qb=function(t){return 0<this.ja(t)},q.rb=function(t){return 0<=this.ja(t)},q.ja=function(t){if(this.o(t))return 0;var e=this.n(),r=t.n();return e&&!r?-1:!e&&r?1:this.R(t).n()?-1:1},q.i=function(){return this.o(Y.MIN_VALUE)?Y.MIN_VALUE:this.xb().add(Y.ONE)},q.add=function(t){var e,r=this.j>>>16,n=65535&this.j,i=this.h>>>16,o=t.j>>>16,a=65535&t.j,s=t.h>>>16;return e=(65535&this.h)+(65535&t.h)+0,t=0+(e>>>16),t+=i+s,i=0+(t>>>16),i+=n+a,n=0+(i>>>16),n=n+(r+o)&65535,Y.v((65535&t)<<16|65535&e,n<<16|65535&i)},q.R=function(t){return this.add(t.i())},q.multiply=function(t){if(this.G()||t.G())return Y.ZERO;if(this.o(Y.MIN_VALUE))return t.Pa()?Y.MIN_VALUE:Y.ZERO;if(t.o(Y.MIN_VALUE))return this.Pa()?Y.MIN_VALUE:Y.ZERO;if(this.n())return t.n()?this.i().multiply(t.i()):this.i().multiply(t).i();if(t.n())return this.multiply(t.i()).i();if(this.Ra()&&t.Ra())return Y.p(this.Z()*t.Z());var e,r,n,i,o=this.j>>>16,a=65535&this.j,s=this.h>>>16,u=65535&this.h,c=t.j>>>16,f=65535&t.j,h=t.h>>>16,t=65535&t.h;return i=0+u*t,n=0+(i>>>16),n+=s*t,r=0+(n>>>16),n=(65535&n)+u*h,r+=n>>>16,n&=65535,r+=a*t,e=0+(r>>>16),r=(65535&r)+s*h,e+=r>>>16,r&=65535,r+=u*f,e+=r>>>16,r&=65535,e=e+(o*t+a*h+s*f+u*c)&65535,Y.v(n<<16|65535&i,e<<16|r)},q.F=function(t){if(t.G()&&g(Error("division by zero")),this.G())return Y.ZERO;if(this.o(Y.MIN_VALUE)){if(t.o(Y.ONE)||t.o(Y.Da))return Y.MIN_VALUE;if(t.o(Y.MIN_VALUE))return Y.ONE;var e=this.Db().F(t).shiftLeft(1);if(e.o(Y.ZERO))return t.n()?Y.ONE:Y.Da;var r=this.R(t.multiply(e));return e.add(r.F(t))}if(t.o(Y.MIN_VALUE))return Y.ZERO;if(this.n())return t.n()?this.i().F(t.i()):this.i().F(t).i();if(t.n())return this.F(t.i()).i();for(var n=Y.ZERO,r=this;r.rb(t);){for(var e=Math.max(1,Math.floor(r.Z()/t.Z())),i=Math.ceil(Math.log(e)/Math.LN2),i=48>=i?1:Math.pow(2,i-48),o=Y.p(e),a=o.multiply(t);a.n()||a.qb(r);)e-=i,o=Y.p(e),a=o.multiply(t);o.G()&&(o=Y.ONE),n=n.add(o),r=r.R(a)}return n},q.xb=function(){return Y.v(~this.h,~this.j)},q.shiftLeft=function(t){if(0==(t&=63))return this;var e=this.h;return 32>t?Y.v(e<<t,this.j<<t|e>>>32-t):Y.v(0,e<<t-32)},q.Db=function(){var t;if(0==(t=1))return this;var e=this.j;return 32>t?Y.v(this.h>>>t|e<<32-t,e>>t):Y.v(e>>t-32,0<=e?0:-1)},q=X.prototype,q.ga=function(t,e,r,n){for(var i=0,o=0;0<=--n;){var a=t*this[i++]+e[r]+o,o=Math.floor(a/67108864);e[r++]=67108863&a}return o},q.f=26,q.u=67108863,q.K=67108864,q.bb=Math.pow(2,52),q.Aa=26,q.Ba=0;var $c=[],bd,Z;for(bd=48,Z=0;9>=Z;++Z)$c[bd++]=Z;for(bd=97,Z=10;36>Z;++Z)$c[bd++]=Z;for(bd=65,Z=10;36>Z;++Z)$c[bd++]=Z;q=X.prototype,q.copyTo=function(t){for(var e=this.b-1;0<=e;--e)t[e]=this[e];t.b=this.b,t.c=this.c},q.D=function(t){this.b=1,this.c=0>t?-1:0,0<t?this[0]=t:-1>t?this[0]=t+DV:this.b=0},q.k=function(t,e){var r;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void this.nb(t,e);r=2}this.c=this.b=0;for(var n=t.length,i=p,o=0;0<=--n;){var a=8==r?255&t[n]:Zc(t,n);0>a?"-"==t.charAt(n)&&(i=l):(i=p,0==o?this[this.b++]=a:o+r>this.f?(this[this.b-1]|=(a&(1<<this.f-o)-1)<<o,this[this.b++]=a>>this.f-o):this[this.b-1]|=a<<o,(o+=r)>=this.f&&(o-=this.f))}8==r&&0!=(128&t[0])&&(this.c=-1,0<o&&(this[this.b-1]|=(1<<this.f-o)-1<<o)),this.C(),i&&X.ZERO.t(this,this)},q.C=function(){for(var t=this.c&this.u;0<this.b&&this[this.b-1]==t;)--this.b},q.la=function(t,e){var r;for(r=this.b-1;0<=r;--r)e[r+t]=this[r];for(r=t-1;0<=r;--r)e[r]=0;e.b=this.b+t,e.c=this.c},q.jb=function(t,e){for(var r=t;r<this.b;++r)e[r-t]=this[r];e.b=Math.max(this.b-t,0),e.c=this.c},q.Qa=function(t,e){var r,n=t%this.f,i=this.f-n,o=(1<<i)-1,a=Math.floor(t/this.f),s=this.c<<n&this.u;for(r=this.b-1;0<=r;--r)e[r+a+1]=this[r]>>i|s,s=(this[r]&o)<<n;for(r=a-1;0<=r;--r)e[r]=0;e[a]=s,e.b=this.b+a+1,e.c=this.c,e.C()},q.zb=function(t,e){e.c=this.c;var r=Math.floor(t/this.f);if(r>=this.b)e.b=0;else{var n=t%this.f,i=this.f-n,o=(1<<n)-1;e[0]=this[r]>>n;for(var a=r+1;a<this.b;++a)e[a-r-1]|=(this[a]&o)<<i,e[a-r]=this[a]>>n;0<n&&(e[this.b-r-1]|=(this.c&o)<<i),e.b=this.b-r,e.C()}},q.t=function(t,e){for(var r=0,n=0,i=Math.min(t.b,this.b);r<i;)n+=this[r]-t[r],e[r++]=n&this.u,n>>=this.f;if(t.b<this.b){for(n-=t.c;r<this.b;)n+=this[r],e[r++]=n&this.u,n>>=this.f;n+=this.c}else{for(n+=this.c;r<t.b;)n-=t[r],e[r++]=n&this.u,n>>=this.f;n-=t.c}e.c=0>n?-1:0,-1>n?e[r++]=this.K+n:0<n&&(e[r++]=n),e.b=r,e.C()},q.vb=function(t){var e=$.Xa,r=this.abs(),n=e.abs(),i=r.b;for(t.b=i+n.b;0<=--i;)t[i]=0;for(i=0;i<n.b;++i)t[i+r.b]=r.ga(n[i],t,i,r.b);t.c=0,t.C(),this.c!=e.c&&X.ZERO.t(t,t)},q.Ja=function(t,e,r){var n=t.abs();if(!(0>=n.b)){var i=this.abs();if(i.b<n.b)e!=m&&e.D(0),r!=m&&this.copyTo(r);else{r==m&&(r=Yc());var o,a=Yc(),s=this.c,t=t.c,u=n[n.b-1],c=1;if(0!=(o=u>>>16)&&(u=o,c+=16),0!=(o=u>>8)&&(u=o,c+=8),0!=(o=u>>4)&&(u=o,c+=4),0!=(o=u>>2)&&(u=o,c+=2),0!=u>>1&&(c+=1),u=this.f-c,0<u?(n.Qa(u,a),i.Qa(u,r)):(n.copyTo(a),i.copyTo(r)),n=a.b,0!=(i=a[n-1])){o=i*(1<<this.Aa)+(1<n?a[n-2]>>this.Ba:0),c=this.bb/o,o=(1<<this.Aa)/o;var f=1<<this.Ba,h=r.b,l=h-n,d=e==m?Yc():e;for(a.la(l,d),0<=r.U(d)&&(r[r.b++]=1,r.t(d,r)),X.ONE.la(n,d),d.t(a,a);a.b<n;)a[a.b++]=0;for(;0<=--l;){var p=r[--h]==i?this.u:Math.floor(r[h]*c+(r[h-1]+f)*o);if((r[h]+=a.ga(p,r,l,n))<p)for(a.la(l,d),r.t(d,r);r[h]<--p;)r.t(d,r)}e!=m&&(r.jb(n,e),s!=t&&X.ZERO.t(e,e)),r.b=n,r.C(),0<u&&r.zb(u,r),0>s&&X.ZERO.t(r,r)}}}},q.toString=function(t){if(0>this.c)return"-"+this.i().toString(t);if(16==t)t=4;else if(8==t)t=3;else if(2==t)t=1;else if(32==t)t=5;else{if(4!=t)return this.Fb(t);t=2}var e,r=(1<<t)-1,n=p,i="",o=this.b,a=this.f-o*this.f%t;if(0<o--)for(a<this.f&&0<(e=this[o]>>a)&&(n=l,i="0123456789abcdefghijklmnopqrstuvwxyz".charAt(e));0<=o;)a<t?(e=(this[o]&(1<<a)-1)<<t-a,e|=this[--o]>>(a+=this.f-t)):(e=this[o]>>(a-=t)&r,0>=a&&(a+=this.f,--o)),0<e&&(n=l),n&&(i+="0123456789abcdefghijklmnopqrstuvwxyz".charAt(e));return n?i:"0"},q.i=function(){var t=Yc();return X.ZERO.t(this,t),t},q.abs=function(){return 0>this.c?this.i():this},q.U=function(t){var e=this.c-t.c;if(0!=e)return e;var r=this.b,e=r-t.b;if(0!=e)return 0>this.c?-e:e;for(;0<=--r;)if(0!=(e=this[r]-t[r]))return e;return 0},X.ZERO=ad(0),X.ONE=ad(1),q=X.prototype,q.nb=function(t,e){this.D(0),e==m&&(e=10);for(var r=this.S(e),n=Math.pow(e,r),i=p,o=0,a=0,s=0;s<t.length;++s){var u=Zc(t,s);0>u?"-"==t.charAt(s)&&0==this.ra()&&(i=l):(a=e*a+u,++o>=r&&(this.Ia(n),this.Ha(a),a=o=0))}0<o&&(this.Ia(Math.pow(e,o)),this.Ha(a)),i&&X.ZERO.t(this,this)},q.S=function(t){return Math.floor(Math.LN2*this.f/Math.log(t))},q.ra=function(){return 0>this.c?-1:0>=this.b||1==this.b&&0>=this[0]?0:1},q.Ia=function(t){this[this.b]=this.ga(t-1,this,0,this.b),++this.b,this.C()},q.Ha=function(t){var e=0;if(0!=t){for(;this.b<=e;)this[this.b++]=0;for(this[e]+=t;this[e]>=this.K;)this[e]-=this.K,++e>=this.b&&(this[this.b++]=0),++this[e]}},q.Fb=function(t){if(t==m&&(t=10),0==this.ra()||2>t||36<t)return"0";var e=this.S(t),e=Math.pow(t,e),r=ad(e),n=Yc(),i=Yc(),o="";for(this.Ja(r,n,i);0<n.ra();)o=(e+i.Oa()).toString(t).substr(1)+o,n.Ja(r,n,i);return i.Oa().toString(t)+o},q.Oa=function(){if(0>this.c){if(1==this.b)return this[0]-this.K;if(0==this.b)return-1}else{if(1==this.b)return this[0];if(0==this.b)return 0}return(this[1]&(1<<32-this.f)-1)<<this.f|this[0]},q.fa=function(t,e){for(var r=0,n=0,i=Math.min(t.b,this.b);r<i;)n+=this[r]+t[r],e[r++]=n&this.u,n>>=this.f;if(t.b<this.b){for(n+=t.c;r<this.b;)n+=this[r],e[r++]=n&this.u,n>>=this.f;n+=this.c}else{for(n+=this.c;r<t.b;)n+=t[r],e[r++]=n&this.u,n>>=this.f;n+=t.c}e.c=0>n?-1:0,0<n?e[r++]=n:-1>n&&(e[r++]=this.K+n),e.b=r,e.C()};var $={abs:function(t,e){var r=new Y(t,e),r=r.n()?r.i():r;B[qb>>2]=r.h,B[qb+4>>2]=r.j},Ka:function(){$.kb||($.kb=l,$.Xa=new X,$.Xa.k("4294967296",10),$.sa=new X,$.sa.k("18446744073709551616",10),$.xe=new X,$.ye=new X)},me:function(t,e){var r=new X;r.k(e.toString(),10);var n=new X;r.vb(n),r=new X,r.k(t.toString(),10);var i=new X;return r.fa(n,i),i},stringify:function(t,e,r){return t=new Y(t,e).toString(),r&&"-"==t[0]&&($.Ka(),r=new X,r.k(t,10),t=new X,$.sa.fa(r,t),t=t.toString(10)),t},k:function(t,e,r,n,i){$.Ka();var o=new X;o.k(t,e),t=new X,t.k(r,10),r=new X,r.k(n,10),i&&0>o.U(X.ZERO)&&(n=new X,o.fa($.sa,n),o=n),n=p,0>o.U(t)?(o=t,n=l):0<o.U(r)&&(o=r,n=l),o=Y.k(o.toString()),B[qb>>2]=o.h,B[qb+4>>2]=o.j,n&&g("range error")}};lc=$;var cd,dd;if(s.callMain=s.$d=function(t){function e(){for(var t=0;3>t;t++)n.push(0)}w(0==L,"cannot call main when async dependencies remain! (listen on __ATMAIN__)"),w(0==Wa.length,"cannot call main when preRun functions remain to be called"),t=t||[],ab||(ab=l,Va(Xa));var r=t.length+1,n=[F(J("/bin/this.program"),"i8",Ka)];e();for(var i=0;i<r-1;i+=1)n.push(F(J(t[i]),"i8",Ka)),e();n.push(0),n=F(n,"i32",Ka),cd=u,dd=l;var o;try{o=s._main(r,n,0)}catch(t){if(t&&"object"==typeof t&&"ExitStatus"==t.type)return s.print("Exit Status: "+t.value),t.value;"SimulateInfiniteLoop"==t?s.noExitRuntime=l:g(t)}finally{dd=p}s.noExitRuntime||ed(o)},s.run=s.we=lb,s.exit=s.de=ed,s.abort=s.abort=wa,s.preInit)for("function"==typeof s.preInit&&(s.preInit=[s.preInit]);0<s.preInit.length;)s.preInit.pop()();var kb=l;s.noInitialRun&&(kb=p),lb();var scrypt=function(){function t(t){return e(unescape(encodeURIComponent(t)))}function e(t){for(var e=new Uint8Array(t.length),r=0;r<t.length;r++){var n=t.charCodeAt(r);if((255&n)!==n)throw{message:"Cannot encode string in Latin1",str:t};e[r]=255&n}return e}function r(t){return decodeURIComponent(escape(n(t)))}function n(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}function i(t){for(var e=[],r=0;r<t.length;r++)e.push("0123456789abcdef"[t[r]>>4&15]),e.push("0123456789abcdef"[15&t[r]]);return e.join("")}function o(t,e){var r=e||0,n=scrypt_raw._malloc(t.length+r);scrypt_raw.HEAPU8.set(t,n+r);for(var i=n;i<n+r;i++)scrypt_raw.HEAPU8[i]=0;return n}function a(t,e){var r=new Uint8Array(e);return r.set(scrypt_raw.HEAPU8.subarray(t,t+e)),r}function s(t,e){if(0!==e)throw{message:"scrypt_raw."+t+" signalled an error"}}function u(t){this.length=t,this.address=scrypt_raw._malloc(t)}function c(t){for(var e=0;e<t.length;e++)scrypt_raw._free(t[e])}function f(t){var e=new Uint8Array(t);if("undefined"!==typeof window.crypto&&"undefined"!==typeof window.crypto.getRandomValues)return window.crypto.getRandomValues(e),e;if("undefined"!==typeof window.msCrypto&&"undefined"!==typeof window.msCrypto.getRandomValues)return window.msCrypto.getRandomValues(e),e;throw{message:"No suitable random number generator found!"}}function h(t,e,r,n,i,a){var f=new u(a),h=o(t),l=o(e);return s("_crypto_scrypt",scrypt_raw._crypto_scrypt(h,t.length,l,e.length,r,0,n,i,f.address,f.length)),c([h,l]),f.extractBytes()}var l={};return u.prototype.extractBytes=function(t){var e=a(this.address+(t||0),this.length-(t||0));return scrypt_raw._free(this.address),this.address=null,e},l.encode_utf8=t,l.encode_latin1=e,l.decode_utf8=r,l.decode_latin1=n,l.to_hex=i,l.random_bytes=f,l.crypto_scrypt=h,l}();return scrypt}}).call(exports,__webpack_require__(8),"/",__webpack_require__(18)(module))},function(t,e,r){t.exports=r(363)},function(t,e,r){!function(n){function i(t,e){var r,n,a=new Uint8Array(e);o(a);for(r in a)if(a.hasOwnProperty(r)&&(n=a[r])>t&&n<e)return n;return i(t,e)}function o(e){if(n.crypto&&n.crypto.getRandomValues)n.crypto.getRandomValues(e);else if("object"===typeof n.msCrypto&&"function"===typeof n.msCrypto.getRandomValues)n.msCrypto.getRandomValues(e);else{if(t.exports!==u)throw new Error("No secure random number generator available.");var i=r(26).randomBytes(e.length);e.set(i)}}var a,s,u,c;c=/[aeiou]$/i,s=/[bcdfghjklmnpqrstvwxyz]$/i,a=n.localPasswordGeneratorLibraryName||"generatePassword",u=function(t,e,r,n){var o,a,u="",f=[];if(null!==t&&"undefined"!==typeof t||(t=10),null!==e&&"undefined"!==typeof e||(e=!0),null!==r&&"undefined"!==typeof r||(r=/\w/),null!==n&&"undefined"!==typeof n||(n=""),!e){for(a=33;126>a;a+=1)u=String.fromCharCode(a),u.match(r)&&f.push(u);if(!f.length)throw new Error("Could not find characters that match the password pattern "+r+". Patterns must match individual characters, not the password as a whole.")}for(;n.length<t;)e?(r=n.match(s)?c:s,o=i(33,126),u=String.fromCharCode(o)):u=f[i(0,f.length)],e&&(u=u.toLowerCase()),u.match(r)&&(n=""+n+u);return n},e[a]=u,"undefined"!==typeof t&&t.exports&&(t.exports=u)}(this)},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=r(38),s=r.n(a),u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=function(t){return"data:application/json;charset=utf-8,"+window.encodeURIComponent(JSON.stringify(t))},f=function(t){function e(){return n(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),u(e,[{key:"componentWillUpdate",value:function(t,e){if(this.refs.miningKeyAddress){var n=r(365);new n(this.refs.miningKeyAddress),new n(this.refs.miningKeyPass),new n(this.refs.payoutKeyAddress),new n(this.refs.payoutKeyPass),new n(this.refs.votingKeyAddress),new n(this.refs.votingKeyPass)}}},{key:"render",value:function(){return s.a.createElement("div",{className:"container"},s.a.createElement("div",{className:"keys"},s.a.createElement("div",{className:"keys-i"},s.a.createElement("p",{className:"keys-title"},"Mining key"),s.a.createElement("div",{className:"keys-hash-container"},s.a.createElement("p",{className:"keys-hash",id:"miningKey"},"0x",this.props.mining.jsonStore.address),s.a.createElement("span",{id:"copyMiningKey",className:"copy",ref:"miningKeyAddress","data-clipboard-text":"0x"+this.props.mining.jsonStore.address})),s.a.createElement("p",{className:"keys-hash"},s.a.createElement("span",{className:"password-label"},"Password:"),s.a.createElement("span",{id:"miningKeyPass",className:"pass"},this.props.mining.password),s.a.createElement("span",{id:"copyMiningPass",className:"copy",ref:"miningKeyPass","data-clipboard-text":this.props.mining.password})),s.a.createElement("p",{className:"keys-description"},"Download this key and use it in your mining node to validate blocks in the network. Mined coins will be deposited to your payout account."),s.a.createElement("div",{className:"keys-footer"},s.a.createElement("a",{className:"keys-download",id:"miningKeyDownload",href:c(this.props.mining.jsonStore),download:"Mining_Key.json"},"Download Mining Key"))),s.a.createElement("div",{className:"keys-i"},s.a.createElement("p",{className:"keys-title"},"Payout key"),s.a.createElement("div",{className:"keys-hash-container"},s.a.createElement("p",{className:"keys-hash",id:"payoutKey"},"0x",this.props.payout.jsonStore.address),s.a.createElement("span",{id:"copyPayoutKey",className:"copy",ref:"payoutKeyAddress","data-clipboard-text":"0x"+this.props.payout.jsonStore.address})),s.a.createElement("p",{className:"keys-hash"},s.a.createElement("span",{className:"password-label"},"Password:"),s.a.createElement("span",{id:"payoutKeyPass",className:"pass"},this.props.payout.password),s.a.createElement("span",{id:"copyPayoutPass",className:"copy",ref:"payoutKeyPass","data-clipboard-text":this.props.payout.password})),s.a.createElement("p",{className:"keys-description"},"Download this key and use it on your client node/wallet to spend earned coins."),s.a.createElement("div",{className:"keys-footer"},s.a.createElement("a",{className:"keys-download",id:"payoutKeyDownload",href:c(this.props.payout.jsonStore),download:"Payout_Key.json"},"Download Payout Key"))),s.a.createElement("div",{className:"keys-i"},s.a.createElement("p",{className:"keys-title"},"Voting key"),s.a.createElement("div",{className:"keys-hash-container"},s.a.createElement("p",{className:"keys-hash",id:"votingKey"},"0x",this.props.voting.jsonStore.address),s.a.createElement("span",{id:"copyVotingKey",className:"copy",ref:"votingKeyAddress","data-clipboard-text":"0x"+this.props.voting.jsonStore.address})),s.a.createElement("p",{className:"keys-hash"},s.a.createElement("span",{className:"password-label"},"Password:"),s.a.createElement("span",{id:"votingKeyPass",className:"pass"},this.props.voting.password),s.a.createElement("span",{id:"copyVotingPass",className:"copy",ref:"votingKeyPass","data-clipboard-text":this.props.voting.password})),s.a.createElement("p",{className:"keys-description"},"Download this key and use it on your client node to vote for necessary ballots, such as adding or removing miners from the network."),s.a.createElement("div",{className:"keys-footer"},s.a.createElement("a",{className:"keys-download",id:"votingKeyDownload",href:c(this.props.voting.jsonStore),download:"Voting_Key.json"},"Download Voting Key")))),s.a.createElement("div",{className:"keys-note"},s.a.createElement("p",{className:"keys-note-title"},"Important"),s.a.createElement("p",{className:"keys-note-description"},"Do not close this tab until you download all keys and save passwords. Keep keys secure and protected. If you lose your keys, you will need to get a new initial key using Voting DAPP.")))}}]),e}(a.Component);e.a=f},function(t,e,r){var n,i,o;!function(a,s){i=[t,r(366),r(368),r(369)],n=s,void 0!==(o="function"===typeof n?n.apply(e,i):n)&&(t.exports=o)}(0,function(t,e,r,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e){var r="data-clipboard-"+t;if(e.hasAttribute(r))return e.getAttribute(r)}var c=i(e),f=i(r),h=i(n),l="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},d=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),p=function(t){function e(t,r){o(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.resolveOptions(r),n.listenClick(t),n}return s(e,t),d(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===l(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,h.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return u("action",t)}},{key:"defaultTarget",value:function(t){var e=u("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return u("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,r=!!document.queryCommandSupported;return e.forEach(function(t){r=r&&!!document.queryCommandSupported(t)}),r}}]),e}(f.default);t.exports=p})},function(t,e,r){var n,i,o;!function(a,s){i=[t,r(367)],n=s,void 0!==(o="function"===typeof n?n.apply(e,i):n)&&(t.exports=o)}(0,function(t,e){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n=function(t){return t&&t.__esModule?t:{default:t}}(e),i="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},o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=function(){function t(e){r(this,t),this.resolveOptions(e),this.initSelection()}return o(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=r+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,n.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,n.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==("undefined"===typeof t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=a})},function(t,e){function r(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var r=t.hasAttribute("readonly");r||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),r||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var n=window.getSelection(),i=document.createRange();i.selectNodeContents(t),n.removeAllRanges(),n.addRange(i),e=n.toString()}return e}t.exports=r},function(t,e){function r(){}r.prototype={on:function(t,e,r){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:r}),this},once:function(t,e,r){function n(){i.off(t,n),e.apply(r,arguments)}var i=this;return n._=e,this.on(t,n,r)},emit:function(t){var e=[].slice.call(arguments,1),r=((this.e||(this.e={}))[t]||[]).slice(),n=0,i=r.length;for(n;n<i;n++)r[n].fn.apply(r[n].ctx,e);return this},off:function(t,e){var r=this.e||(this.e={}),n=r[t],i=[];if(n&&e)for(var o=0,a=n.length;o<a;o++)n[o].fn!==e&&n[o].fn._!==e&&i.push(n[o]);return i.length?r[t]=i:delete r[t],this}},t.exports=r},function(t,e,r){function n(t,e,r){if(!t&&!e&&!r)throw new Error("Missing required arguments");if(!s.string(e))throw new TypeError("Second argument must be a String");if(!s.fn(r))throw new TypeError("Third argument must be a Function");if(s.node(t))return i(t,e,r);if(s.nodeList(t))return o(t,e,r);if(s.string(t))return a(t,e,r);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(t,e,r){return t.addEventListener(e,r),{destroy:function(){t.removeEventListener(e,r)}}}function o(t,e,r){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,r)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,r)})}}}function a(t,e,r){return u(document.body,t,e,r)}var s=r(370),u=r(371);t.exports=n},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var r=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===r||"[object HTMLCollection]"===r)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"===typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,r){function n(t,e,r,n,i){var a=o.apply(this,arguments);return t.addEventListener(r,a,i),{destroy:function(){t.removeEventListener(r,a,i)}}}function i(t,e,r,i,o){return"function"===typeof t.addEventListener?n.apply(null,arguments):"function"===typeof r?n.bind(null,document).apply(null,arguments):("string"===typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return n(t,e,r,i,o)}))}function o(t,e,r,n){return function(r){r.delegateTarget=a(r.target,e),r.delegateTarget&&n.call(t,r)}}var a=r(372);t.exports=i},function(t,e){function r(t,e){for(;t&&t.nodeType!==n;){if("function"===typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var n=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}t.exports=r},function(t,e,r){(function(e,r){!function(e,r){t.exports=r()}(0,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=8)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="swal-button";e.CLASS_NAMES={MODAL:"swal-modal",OVERLAY:"swal-overlay",SHOW_MODAL:"swal-overlay--show-modal",MODAL_TITLE:"swal-title",MODAL_TEXT:"swal-text",ICON:"swal-icon",ICON_CUSTOM:"swal-icon--custom",CONTENT:"swal-content",FOOTER:"swal-footer",BUTTON_CONTAINER:"swal-button-container",BUTTON:n,CONFIRM_BUTTON:n+"--confirm",CANCEL_BUTTON:n+"--cancel",DANGER_BUTTON:n+"--danger",BUTTON_LOADING:n+"--loading",BUTTON_LOADER:n+"__loader"},e.default=e.CLASS_NAMES},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNode=function(t){var e="."+t;return document.querySelector(e)},e.stringToNode=function(t){var e=document.createElement("div");return e.innerHTML=t.trim(),e.firstChild},e.insertAfter=function(t,e){var r=e.nextSibling;e.parentNode.insertBefore(t,r)},e.removeNode=function(t){t.parentElement.removeChild(t)},e.throwErr=function(t){throw t=t.replace(/ +(?= )/g,""),"SweetAlert: "+(t=t.trim())},e.isPlainObject=function(t){if("[object Object]"!==Object.prototype.toString.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype},e.ordinalSuffixOf=function(t){var e=t%10,r=t%100;return 1===e&&11!==r?t+"st":2===e&&12!==r?t+"nd":3===e&&13!==r?t+"rd":t+"th"}},function(t,e,r){"use strict";function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(r(25));var i=r(26);e.overlayMarkup=i.default,n(r(27)),n(r(28)),n(r(29));var o=r(0),a=o.default.MODAL_TITLE,s=o.default.MODAL_TEXT,u=o.default.ICON,c=o.default.FOOTER;e.iconMarkup='\n <div class="'+u+'"></div>',e.titleMarkup='\n <div class="'+a+'"></div>\n',e.textMarkup='\n <div class="'+s+'"></div>',e.footerMarkup='\n <div class="'+c+'"></div>\n'},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1);e.CONFIRM_KEY="confirm",e.CANCEL_KEY="cancel";var i={visible:!0,text:null,value:null,className:"",closeModal:!0},o=Object.assign({},i,{visible:!1,text:"Cancel",value:null}),a=Object.assign({},i,{text:"OK",value:!0});e.defaultButtonList={cancel:o,confirm:a};var s=function(t){switch(t){case e.CONFIRM_KEY:return a;case e.CANCEL_KEY:return o;default:var r=t.charAt(0).toUpperCase()+t.slice(1);return Object.assign({},i,{text:r,value:t})}},u=function(t,e){var r=s(t);return!0===e?Object.assign({},r,{visible:!0}):"string"==typeof e?Object.assign({},r,{visible:!0,text:e}):n.isPlainObject(e)?Object.assign({visible:!0},r,e):Object.assign({},r,{visible:!1})},c=function(t){for(var e={},r=0,n=Object.keys(t);r<n.length;r++){var i=n[r],a=t[i],s=u(i,a);e[i]=s}return e.cancel||(e.cancel=o),e},f=function(t){var r={};switch(t.length){case 1:r[e.CANCEL_KEY]=Object.assign({},o,{visible:!1});break;case 2:r[e.CANCEL_KEY]=u(e.CANCEL_KEY,t[0]),r[e.CONFIRM_KEY]=u(e.CONFIRM_KEY,t[1]);break;default:n.throwErr("Invalid number of 'buttons' in array ("+t.length+").\n If you want more than 2 buttons, you need to use an object!")}return r};e.getButtonListOpts=function(t){var r=e.defaultButtonList;return"string"==typeof t?r[e.CONFIRM_KEY]=u(e.CONFIRM_KEY,t):Array.isArray(t)?r=f(t):n.isPlainObject(t)?r=c(t):!0===t?r=f([!0,!0]):!1===t?r=f([!1,!1]):void 0===t&&(r=e.defaultButtonList),r}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(2),o=r(0),a=o.default.MODAL,s=o.default.OVERLAY,u=r(30),c=r(31),f=r(32),h=r(33);e.injectElIntoModal=function(t){var e=n.getNode(a),r=n.stringToNode(t);return e.appendChild(r),r};var l=function(t){t.className=a,t.textContent=""},d=function(t,e){l(t);var r=e.className;r&&t.classList.add(r)};e.initModalContent=function(t){var e=n.getNode(a);d(e,t),u.default(t.icon),c.initTitle(t.title),c.initText(t.text),h.default(t.content),f.default(t.buttons,t.dangerMode)};var p=function(){var t=n.getNode(s),e=n.stringToNode(i.modalMarkup);t.appendChild(e)};e.default=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(3),i={isOpen:!1,promise:null,actions:{},timer:null},o=Object.assign({},i);e.resetState=function(){o=Object.assign({},i)},e.setActionValue=function(t){if("string"==typeof t)return a(n.CONFIRM_KEY,t);for(var e in t)a(e,t[e])};var a=function(t,e){o.actions[t]||(o.actions[t]={}),Object.assign(o.actions[t],{value:e})};e.setActionOptionsFor=function(t,e){var r=(void 0===e?{}:e).closeModal,n=void 0===r||r;Object.assign(o.actions[t],{closeModal:n})},e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(3),o=r(0),a=o.default.OVERLAY,s=o.default.SHOW_MODAL,u=o.default.BUTTON,c=o.default.BUTTON_LOADING,f=r(5);e.openModal=function(){n.getNode(a).classList.add(s),f.default.isOpen=!0};var h=function(){n.getNode(a).classList.remove(s),f.default.isOpen=!1};e.onAction=function(t){void 0===t&&(t=i.CANCEL_KEY);var e=f.default.actions[t],r=e.value;if(!1===e.closeModal){var o=u+"--"+t;n.getNode(o).classList.add(c)}else h();f.default.promise.resolve(r)},e.getState=function(){var t=Object.assign({},f.default);return delete t.promise,delete t.timer,t},e.stopLoading=function(){for(var t=document.querySelectorAll("."+u),e=0;e<t.length;e++)t[e].classList.remove(c)}},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){(function(e){t.exports=e.sweetAlert=r(9)}).call(e,r(7))},function(t,e,r){(function(e){t.exports=e.swal=r(10)}).call(e,r(7))},function(t,e,r){"undefined"!=typeof window&&r(11),r(16);var n=r(23).default;t.exports=n},function(t,e,r){var n=r(12);"string"==typeof n&&(n=[[t.i,n,""]]);var i={insertAt:"top"};i.transform=void 0,r(14)(n,i),n.locals&&(t.exports=n.locals)},function(t,e,r){e=t.exports=r(13)(void 0),e.push([t.i,'.swal-icon--error{border-color:#f27474;-webkit-animation:animateErrorIcon .5s;animation:animateErrorIcon .5s}.swal-icon--error__x-mark{position:relative;display:block;-webkit-animation:animateXMark .5s;animation:animateXMark .5s}.swal-icon--error__line{position:absolute;height:5px;width:47px;background-color:#f27474;display:block;top:37px;border-radius:2px}.swal-icon--error__line--left{-webkit-transform:rotate(45deg);transform:rotate(45deg);left:17px}.swal-icon--error__line--right{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);right:16px}@-webkit-keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@-webkit-keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}@keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}.swal-icon--warning{border-color:#f8bb86;-webkit-animation:pulseWarning .75s infinite alternate;animation:pulseWarning .75s infinite alternate}.swal-icon--warning__body{width:5px;height:47px;top:10px;border-radius:2px;margin-left:-2px}.swal-icon--warning__body,.swal-icon--warning__dot{position:absolute;left:50%;background-color:#f8bb86}.swal-icon--warning__dot{width:7px;height:7px;border-radius:50%;margin-left:-4px;bottom:-11px}@-webkit-keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}@keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}.swal-icon--success{border-color:#a5dc86}.swal-icon--success:after,.swal-icon--success:before{content:"";border-radius:50%;position:absolute;width:60px;height:120px;background:#fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal-icon--success:before{border-radius:120px 0 0 120px;top:-7px;left:-33px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:60px 60px;transform-origin:60px 60px}.swal-icon--success:after{border-radius:0 120px 120px 0;top:-11px;left:30px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 60px;transform-origin:0 60px;-webkit-animation:rotatePlaceholder 4.25s ease-in;animation:rotatePlaceholder 4.25s ease-in}.swal-icon--success__ring{width:80px;height:80px;border:4px solid hsla(98,55%,69%,.2);border-radius:50%;box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2}.swal-icon--success__hide-corners{width:5px;height:90px;background-color:#fff;position:absolute;left:28px;top:8px;z-index:1;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal-icon--success__line{height:5px;background-color:#a5dc86;display:block;border-radius:2px;position:absolute;z-index:2}.swal-icon--success__line--tip{width:25px;left:14px;top:46px;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-animation:animateSuccessTip .75s;animation:animateSuccessTip .75s}.swal-icon--success__line--long{width:47px;right:8px;top:38px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-animation:animateSuccessLong .75s;animation:animateSuccessLong .75s}@-webkit-keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@-webkit-keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}.swal-icon--info{border-color:#c9dae1}.swal-icon--info:before{width:5px;height:29px;bottom:17px;border-radius:2px;margin-left:-2px}.swal-icon--info:after,.swal-icon--info:before{content:"";position:absolute;left:50%;background-color:#c9dae1}.swal-icon--info:after{width:7px;height:7px;border-radius:50%;margin-left:-3px;top:19px}.swal-icon{width:80px;height:80px;border-width:4px;border-style:solid;border-radius:50%;padding:0;position:relative;box-sizing:content-box;margin:20px auto}.swal-icon:first-child{margin-top:32px}.swal-icon--custom{width:auto;height:auto;max-width:100%;border:none;border-radius:0}.swal-icon img{max-width:100%;max-height:100%}.swal-title{color:rgba(0,0,0,.65);font-weight:600;text-transform:none;position:relative;display:block;padding:13px 16px;font-size:27px;line-height:normal;text-align:center;margin-bottom:0}.swal-title:first-child{margin-top:26px}.swal-title:not(:first-child){padding-bottom:0}.swal-title:not(:last-child){margin-bottom:13px}.swal-text{font-size:16px;position:relative;float:none;line-height:normal;vertical-align:top;text-align:left;display:inline-block;margin:0;padding:0 10px;font-weight:400;color:rgba(0,0,0,.64);max-width:calc(100% - 20px);overflow-wrap:break-word;box-sizing:border-box}.swal-text:first-child{margin-top:45px}.swal-text:last-child{margin-bottom:45px}.swal-footer{text-align:right;padding-top:13px;margin-top:13px;padding:13px 16px;border-radius:inherit;border-top-left-radius:0;border-top-right-radius:0}.swal-button-container{margin:5px;display:inline-block;position:relative}.swal-button{background-color:#7cd1f9;color:#fff;border:none;box-shadow:none;border-radius:5px;font-weight:600;font-size:14px;padding:10px 24px;margin:0;cursor:pointer}.swal-button[not:disabled]:hover{background-color:#78cbf2}.swal-button:active{background-color:#70bce0}.swal-button:focus{outline:none;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(43,114,165,.29)}.swal-button[disabled]{opacity:.5;cursor:default}.swal-button::-moz-focus-inner{border:0}.swal-button--cancel{color:#555;background-color:#efefef}.swal-button--cancel[not:disabled]:hover{background-color:#e8e8e8}.swal-button--cancel:active{background-color:#d7d7d7}.swal-button--cancel:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(116,136,150,.29)}.swal-button--danger{background-color:#e64942}.swal-button--danger[not:disabled]:hover{background-color:#df4740}.swal-button--danger:active{background-color:#cf423b}.swal-button--danger:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(165,43,43,.29)}.swal-content{padding:0 20px;margin-top:20px;font-size:medium}.swal-content:last-child{margin-bottom:20px}.swal-content__input,.swal-content__textarea{-webkit-appearance:none;background-color:#fff;border:none;font-size:14px;display:block;box-sizing:border-box;width:100%;border:1px solid rgba(0,0,0,.14);padding:10px 13px;border-radius:2px;transition:border-color .2s}.swal-content__input:focus,.swal-content__textarea:focus{outline:none;border-color:#6db8ff}.swal-content__textarea{resize:vertical}.swal-button--loading{color:transparent}.swal-button--loading~.swal-button__loader{opacity:1}.swal-button__loader{position:absolute;height:auto;width:43px;z-index:2;left:50%;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);text-align:center;pointer-events:none;opacity:0}.swal-button__loader div{display:inline-block;float:none;vertical-align:baseline;width:9px;height:9px;padding:0;border:none;margin:2px;opacity:.4;border-radius:7px;background-color:hsla(0,0%,100%,.9);transition:background .2s;-webkit-animation:swal-loading-anim 1s infinite;animation:swal-loading-anim 1s infinite}.swal-button__loader div:nth-child(3n+2){-webkit-animation-delay:.15s;animation-delay:.15s}.swal-button__loader div:nth-child(3n+3){-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}.swal-overlay{position:fixed;top:0;bottom:0;left:0;right:0;text-align:center;font-size:0;overflow-y:scroll;background-color:rgba(0,0,0,.4);z-index:10000;pointer-events:none;opacity:0;transition:opacity .3s}.swal-overlay:before{content:" ";display:inline-block;vertical-align:middle;height:100%}.swal-overlay--show-modal{opacity:1;pointer-events:auto}.swal-overlay--show-modal .swal-modal{opacity:1;pointer-events:auto;box-sizing:border-box;-webkit-animation:showSweetAlert .3s;animation:showSweetAlert .3s;will-change:transform}.swal-modal{width:478px;opacity:0;pointer-events:none;background-color:#fff;text-align:center;border-radius:5px;position:static;margin:20px auto;display:inline-block;vertical-align:middle;-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;z-index:10001;transition:opacity .2s,-webkit-transform .3s;transition:transform .3s,opacity .2s;transition:transform .3s,opacity .2s,-webkit-transform .3s}@media (max-width:500px){.swal-modal{width:calc(100% - 20px)}}@-webkit-keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}',""])},function(t,e){function r(t,e){var r=t[1]||"",i=t[3];if(!i)return r;if(e&&"function"==typeof btoa){var o=n(i);return[r].concat(i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"})).concat([o]).join("\n")}return[r].join("\n")}function n(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=r(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(n[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&n[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]="("+a[2]+") and ("+r+")"),e.push(a))}},e}},function(t,e,r){function n(t,e){for(var r=0;r<t.length;r++){var n=t[r],i=p[n.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](n.parts[o]);for(;o<n.parts.length;o++)i.parts.push(f(n.parts[o],e))}else{for(var a=[],o=0;o<n.parts.length;o++)a.push(f(n.parts[o],e));p[n.id]={id:n.id,refs:1,parts:a}}}}function i(t,e){for(var r=[],n={},i=0;i<t.length;i++){var o=t[i],a=e.base?o[0]+e.base:o[0],s=o[1],u=o[2],c=o[3],f={css:s,media:u,sourceMap:c};n[a]?n[a].parts.push(f):r.push(n[a]={id:a,parts:[f]})}return r}function o(t,e){var r=b(t.insertInto);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=g[g.length-1];if("top"===t.insertAt)n?n.nextSibling?r.insertBefore(e,n.nextSibling):r.appendChild(e):r.insertBefore(e,r.firstChild),g.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(e)}}function a(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=g.indexOf(t);e>=0&&g.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",c(e,t.attrs),o(t,e),e}function u(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",c(e,t.attrs),o(t,e),e}function c(t,e){Object.keys(e).forEach(function(r){t.setAttribute(r,e[r])})}function f(t,e){var r,n,i,o;if(e.transform&&t.css){if(!(o=e.transform(t.css)))return function(){};t.css=o}if(e.singleton){var c=y++;r=v||(v=s(e)),n=h.bind(null,r,c,!1),i=h.bind(null,r,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=u(e),n=d.bind(null,r,e),i=function(){a(r),r.href&&URL.revokeObjectURL(r.href)}):(r=s(e),n=l.bind(null,r),i=function(){a(r)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else i()}}function h(t,e,r,n){var i=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=w(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function l(t,e){var r=e.css,n=e.media;if(n&&t.setAttribute("media",n),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}function d(t,e,r){var n=r.css,i=r.sourceMap,o=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||o)&&(n=_(n)),i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([n],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var p={},m=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),b=function(t){var e={};return function(r){return void 0===e[r]&&(e[r]=t.call(this,r)),e[r]}}(function(t){return document.querySelector(t)}),v=null,y=0,g=[],_=r(15);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=m()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var r=i(t,e);return n(r,e),function(t){for(var o=[],a=0;a<r.length;a++){var s=r[a],u=p[s.id];u.refs--,o.push(u)}t&&n(i(t,e),e);for(var a=0;a<o.length;a++){var u=o[a];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete p[u.id]}}}};var w=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var r=e.protocol+"//"+e.host,n=r+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i))return t;var o;return o=0===i.indexOf("//")?i:0===i.indexOf("/")?r+i:n+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")"})}},function(t,e,r){var n=r(17);"undefined"==typeof window||window.Promise||(window.Promise=n),r(21),String.prototype.includes||(String.prototype.includes=function(t,e){"use strict";return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var r=Object(this),n=r.length>>>0;if(0===n)return!1;for(var i=0|e,o=Math.max(i>=0?i:n-Math.abs(i),0);o<n;){if(function(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}(r[o],t))return!0;o++}return!1}}),"undefined"!=typeof window&&function(t){t.forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})})}([Element.prototype,CharacterData.prototype,DocumentType.prototype])},function(t,e,r){(function(e){!function(r){function n(){}function i(t,e){return function(){t.apply(e,arguments)}}function o(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],h(t,this)}function a(t,e){for(;3===t._state;)t=t._value;if(0===t._state)return void t._deferreds.push(e);t._handled=!0,o._immediateFn(function(){var r=1===t._state?e.onFulfilled:e.onRejected;if(null===r)return void(1===t._state?s:u)(e.promise,t._value);var n;try{n=r(t._value)}catch(t){return void u(e.promise,t)}s(e.promise,n)})}function s(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if(e instanceof o)return t._state=3,t._value=e,void c(t);if("function"==typeof r)return void h(i(r,e),t)}t._state=1,t._value=e,c(t)}catch(e){u(t,e)}}function u(t,e){t._state=2,t._value=e,c(t)}function c(t){2===t._state&&0===t._deferreds.length&&o._immediateFn(function(){t._handled||o._unhandledRejectionFn(t._value)});for(var e=0,r=t._deferreds.length;e<r;e++)a(t,t._deferreds[e]);t._deferreds=null}function f(t,e,r){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=r}function h(t,e){var r=!1;try{t(function(t){r||(r=!0,s(e,t))},function(t){r||(r=!0,u(e,t))})}catch(t){if(r)return;r=!0,u(e,t)}}var l=setTimeout;o.prototype.catch=function(t){return this.then(null,t)},o.prototype.then=function(t,e){var r=new this.constructor(n);return a(this,new f(t,e,r)),r},o.all=function(t){var e=Array.prototype.slice.call(t);return new o(function(t,r){function n(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(t){n(o,t)},r)}e[o]=a,0==--i&&t(e)}catch(t){r(t)}}if(0===e.length)return t([]);for(var i=e.length,o=0;o<e.length;o++)n(o,e[o])})},o.resolve=function(t){return t&&"object"==typeof t&&t.constructor===o?t:new o(function(e){e(t)})},o.reject=function(t){return new o(function(e,r){r(t)})},o.race=function(t){return new o(function(e,r){for(var n=0,i=t.length;n<i;n++)t[n].then(e,r)})},o._immediateFn="function"==typeof e&&function(t){e(t)}||function(t){l(t,0)},o._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},o._setImmediateFn=function(t){o._immediateFn=t},o._setUnhandledRejectionFn=function(t){o._unhandledRejectionFn=t},void 0!==t&&t.exports?t.exports=o:r.Promise||(r.Promise=o)}(this)}).call(e,r(18).setImmediate)},function(t,n,i){function o(t,e){this._id=t,this._clearFn=e}var a=Function.prototype.apply;n.setTimeout=function(){return new o(a.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new o(a.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},i(19),n.setImmediate=e,n.clearImmediate=r},function(t,e,r){(function(t,e){!function(t,r){"use strict";function n(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var n={callback:t,args:e};return c[u]=n,s(u),u++}function i(t){delete c[t]}function o(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(r,n)}}function a(t){if(f)setTimeout(a,0,t);else{var e=c[t];if(e){f=!0;try{o(e)}finally{i(t),f=!1}}}}if(!t.setImmediate){var s,u=1,c={},f=!1,h=t.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(t);l=l&&l.setTimeout?l:t,"[object process]"==={}.toString.call(t.process)?function(){s=function(t){e.nextTick(function(){a(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?function(){var e="setImmediate$"+Math.random()+"$",r=function(r){r.source===t&&"string"==typeof r.data&&0===r.data.indexOf(e)&&a(+r.data.slice(e.length))};t.addEventListener?t.addEventListener("message",r,!1):t.attachEvent("onmessage",r),s=function(r){t.postMessage(e+r,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){a(t.data)},s=function(e){t.port2.postMessage(e)}}():h&&"onreadystatechange"in h.createElement("script")?function(){var t=h.documentElement;s=function(e){var r=h.createElement("script");r.onreadystatechange=function(){a(e),r.onreadystatechange=null,t.removeChild(r),r=null},t.appendChild(r)}}():function(){s=function(t){setTimeout(a,0,t)}}(),l.setImmediate=n,l.clearImmediate=i}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,r(7),r(20))},function(t,e){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(t){if(f===setTimeout)return setTimeout(t,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function o(t){if(h===clearTimeout)return clearTimeout(t);if((h===n||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function a(){m&&d&&(m=!1,d.length?p=d.concat(p):b=-1,p.length&&s())}function s(){if(!m){var t=i(a);m=!0;for(var e=p.length;e;){for(d=p,p=[];++b<e;)d&&d[b].run();b=-1,e=p.length}d=null,m=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var f,h,l=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(t){f=r}try{h="function"==typeof clearTimeout?clearTimeout:n}catch(t){h=n}}();var d,p=[],m=!1,b=-1;l.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];p.push(new u(t,e)),1!==p.length||m||i(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=c,l.addListener=c,l.once=c,l.off=c,l.removeListener=c,l.removeAllListeners=c,l.emit=c,l.prependListener=c,l.prependOnceListener=c,l.listeners=function(t){return[]},l.binding=function(t){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(t){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(t,e,r){"use strict";r(22).polyfill()},function(t,e,r){"use strict";function n(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var r=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(void 0!==i&&null!==i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var u=o[a],c=Object.getOwnPropertyDescriptor(i,u);void 0!==c&&c.enumerable&&(r[u]=i[u])}}return r}function i(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:n})}t.exports={assign:n,polyfill:i}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(24),i=r(6),o=r(5),a=r(36),s=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if("undefined"!=typeof window){var r=a.getOpts.apply(void 0,t);return new Promise(function(t,e){o.default.promise={resolve:t,reject:e},n.default(r),setTimeout(function(){i.openModal()})})}};s.close=i.onAction,s.getState=i.getState,s.setActionValue=o.setActionValue,s.stopLoading=i.stopLoading,s.setDefaults=a.setDefaults,e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(0),o=i.default.MODAL,a=r(4),s=r(34),u=r(35),c=r(1);e.init=function(t){n.getNode(o)||(document.body||c.throwErr("You can only use SweetAlert AFTER the DOM has loaded!"),s.default(),a.default()),a.initModalContent(t),u.default(t)},e.default=e.init},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.default.MODAL;e.modalMarkup='\n <div class="'+i+'"></div>',e.default=e.modalMarkup},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.default.OVERLAY,o='<div \n class="'+i+'"\n tabIndex="-1">\n </div>';e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.default.ICON;e.errorIconMarkup=function(){var t=i+"--error",e=t+"__line";return'\n <div class="'+t+'__x-mark">\n <span class="'+e+" "+e+'--left"></span>\n <span class="'+e+" "+e+'--right"></span>\n </div>\n '},e.warningIconMarkup=function(){var t=i+"--warning";return'\n <span class="'+t+'__body">\n <span class="'+t+'__dot"></span>\n </span>\n '},e.successIconMarkup=function(){var t=i+"--success";return'\n <span class="'+t+"__line "+t+'__line--long"></span>\n <span class="'+t+"__line "+t+'__line--tip"></span>\n\n <div class="'+t+'__ring"></div>\n <div class="'+t+'__hide-corners"></div>\n '}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.default.CONTENT;e.contentMarkup='\n <div class="'+i+'">\n\n </div>\n'},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.default.BUTTON_CONTAINER,o=n.default.BUTTON,a=n.default.BUTTON_LOADER;e.buttonMarkup='\n <div class="'+i+'">\n\n <button\n class="'+o+'"\n ></button>\n\n <div class="'+a+'">\n <div></div>\n <div></div>\n <div></div>\n </div>\n\n </div>\n'},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4),i=r(2),o=r(0),a=o.default.ICON,s=o.default.ICON_CUSTOM,u=["error","warning","success","info"],c={error:i.errorIconMarkup(),warning:i.warningIconMarkup(),success:i.successIconMarkup()},f=function(t,e){var r=a+"--"+t;e.classList.add(r);var n=c[t];n&&(e.innerHTML=n)},h=function(t,e){e.classList.add(s);var r=document.createElement("img");r.src=t,e.appendChild(r)},l=function(t){if(t){var e=n.injectElIntoModal(i.iconMarkup);u.includes(t)?f(t,e):h(t,e)}};e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),i=r(4),o=function(t){navigator.userAgent.includes("AppleWebKit")&&(t.style.display="none",t.offsetHeight,t.style.display="")};e.initTitle=function(t){if(t){var e=i.injectElIntoModal(n.titleMarkup);e.textContent=t,o(e)}},e.initText=function(t){if(t){var e=i.injectElIntoModal(n.textMarkup);e.textContent=t,o(e)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(4),o=r(0),a=o.default.BUTTON,s=o.default.DANGER_BUTTON,u=r(3),c=r(2),f=r(6),h=r(5),l=function(t,e,r){var i=e.text,o=e.value,l=e.className,d=e.closeModal,p=n.stringToNode(c.buttonMarkup),m=p.querySelector("."+a),b=a+"--"+t;m.classList.add(b),l&&m.classList.add(l),r&&t===u.CONFIRM_KEY&&m.classList.add(s),m.textContent=i;var v={};return v[t]=o,h.setActionValue(v),h.setActionOptionsFor(t,{closeModal:d}),m.addEventListener("click",function(){return f.onAction(t)}),p},d=function(t,e){var r=i.injectElIntoModal(c.footerMarkup);for(var n in t){var o=t[n],a=l(n,o,e);o.visible&&r.appendChild(a)}0===r.children.length&&r.remove()};e.default=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(3),i=r(4),o=r(2),a=r(5),s=r(6),u=r(0),c=u.default.CONTENT,f=function(t){t.addEventListener("input",function(t){var e=t.target,r=e.value;a.setActionValue(r)}),t.addEventListener("keyup",function(t){if("Enter"===t.key)return s.onAction(n.CONFIRM_KEY)}),setTimeout(function(){t.focus(),a.setActionValue("")},0)},h=function(t,e,r){var n=document.createElement(e),i=c+"__"+e;n.classList.add(i);for(var o in r){var a=r[o];n[o]=a}"input"===e&&f(n),t.appendChild(n)},l=function(t){if(t){var e=i.injectElIntoModal(o.contentMarkup),r=t.element,n=t.attributes;"string"==typeof r?h(e,r,n):e.appendChild(r)}};e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(2),o=function(){var t=n.stringToNode(i.overlayMarkup);document.body.appendChild(t)};e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(5),i=r(6),o=r(1),a=r(3),s=r(0),u=s.default.MODAL,c=s.default.BUTTON,f=s.default.OVERLAY,h=function(t){t.preventDefault(),b()},l=function(t){t.preventDefault(),v()},d=function(t){if(n.default.isOpen)switch(t.key){case"Escape":return i.onAction(a.CANCEL_KEY)}},p=function(t){if(n.default.isOpen)switch(t.key){case"Tab":return h(t)}},m=function(t){if(n.default.isOpen)return"Tab"===t.key&&t.shiftKey?l(t):void 0},b=function(){var t=o.getNode(c);t&&(t.tabIndex=0,t.focus())},v=function(){var t=o.getNode(u),e=t.querySelectorAll("."+c),r=e.length-1,n=e[r];n&&n.focus()},y=function(t){t[t.length-1].addEventListener("keydown",p)},g=function(t){t[0].addEventListener("keydown",m)},_=function(){var t=o.getNode(u),e=t.querySelectorAll("."+c);e.length&&(y(e),g(e))},w=function(t){if(o.getNode(f)===t.target)return i.onAction(a.CANCEL_KEY)},M=function(t){var e=o.getNode(f);e.removeEventListener("click",w),t&&e.addEventListener("click",w)},k=function(t){n.default.timer&&clearTimeout(n.default.timer),t&&(n.default.timer=window.setTimeout(function(){return i.onAction(a.CANCEL_KEY)},t))},E=function(t){t.closeOnEsc?document.addEventListener("keyup",d):document.removeEventListener("keyup",d),t.dangerMode?b():v(),_(),M(t.closeOnClickOutside),k(t.timer)};e.default=E},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(3),o=r(37),a=r(38),s={title:null,text:null,icon:null,buttons:i.defaultButtonList,content:null,className:null,closeOnClickOutside:!0,closeOnEsc:!0,dangerMode:!1,timer:null},u=Object.assign({},s);e.setDefaults=function(t){u=Object.assign({},s,t)};var c=function(t){var e=t&&t.button,r=t&&t.buttons;return void 0!==e&&void 0!==r&&n.throwErr("Cannot set both 'button' and 'buttons' options!"),void 0!==e?{confirm:e}:r},f=function(t){return n.ordinalSuffixOf(t+1)},h=function(t,e){n.throwErr(f(e)+" argument ('"+t+"') is invalid")},l=function(t,e){var r=t+1,i=e[r];n.isPlainObject(i)||void 0===i||n.throwErr("Expected "+f(r)+" argument ('"+i+"') to be a plain object")},d=function(t,e){var r=t+1,i=e[r];void 0!==i&&n.throwErr("Unexpected "+f(r)+" argument ("+i+")")},p=function(t,e,r,i){var o=typeof e,a="string"===o,s=e instanceof Element;if(a){if(0===r)return{text:e};if(1===r)return{text:e,title:i[0]};if(2===r)return l(r,i),{icon:e};h(e,r)}else{if(s&&0===r)return l(r,i),{content:e};if(n.isPlainObject(e))return d(r,i),e;h(e,r)}};e.getOpts=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r={};t.forEach(function(e,n){var i=p(0,e,n,t);Object.assign(r,i)});var n=c(r);r.buttons=i.getButtonListOpts(n),delete r.button,r.content=o.getContentOpts(r.content);var f=Object.assign({},s,u,r);return Object.keys(f).forEach(function(t){a.DEPRECATED_OPTS[t]&&a.logDeprecation(t)}),f}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i={element:"input",attributes:{placeholder:""}};e.getContentOpts=function(t){var e={};return n.isPlainObject(t)?Object.assign(e,t):t instanceof Element?{element:t}:"input"===t?i:null}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.logDeprecation=function(t){var r=e.DEPRECATED_OPTS[t],n=r.onlyRename,i=r.replacement,o=r.subOption,a=r.link,s=n?"renamed":"deprecated",u='SweetAlert warning: "'+t+'" option has been '+s+".";i&&(u+=" Please use"+(o?' "'+o+'" in ':" ")+'"'+i+'" instead.');var c="https://sweetalert.js.org";u+=a?" More details: "+c+a:" More details: "+c+"/guides/#upgrading-from-1x",console.warn(u)},e.DEPRECATED_OPTS={type:{replacement:"icon",link:"/docs/#icon"},imageUrl:{replacement:"icon",link:"/docs/#icon"},customClass:{replacement:"className",onlyRename:!0,link:"/docs/#classname"},imageSize:{},showCancelButton:{replacement:"buttons",link:"/docs/#buttons"},showConfirmButton:{replacement:"button",link:"/docs/#button"},confirmButtonText:{replacement:"button",link:"/docs/#button"},confirmButtonColor:{},cancelButtonText:{replacement:"buttons",link:"/docs/#buttons"},closeOnConfirm:{replacement:"button",subOption:"closeModal",link:"/docs/#button"},closeOnCancel:{replacement:"buttons",subOption:"closeModal",link:"/docs/#buttons"},showLoaderOnConfirm:{replacement:"buttons"},animation:{},inputType:{replacement:"content",link:"/docs/#content"},inputValue:{replacement:"content",link:"/docs/#content"},inputPlaceholder:{replacement:"content",link:"/docs/#content"},html:{replacement:"content",link:"/docs/#content"},allowEscapeKey:{replacement:"closeOnEsc",onlyRename:!0,link:"/docs/#closeonesc"},allowClickOutside:{replacement:"closeOnClickOutside",onlyRename:!0,link:"/docs/#closeonclickoutside"}}}])})}).call(e,r(30).setImmediate,r(30).clearImmediate)},function(t,e){},function(t,e,r){"use strict";function n(){if("serviceWorker"in navigator){if(new URL("/oracles-dapps-keys-generation",window.location).origin!==window.location.origin)return;window.addEventListener("load",function(){var t="/oracles-dapps-keys-generation/service-worker.js";a?o(t):i(t)})}}function i(t){navigator.serviceWorker.register(t).then(function(t){t.onupdatefound=function(){var e=t.installing;e.onstatechange=function(){"installed"===e.state&&(navigator.serviceWorker.controller?console.log("New content is available; please refresh."):console.log("Content is cached for offline use."))}}}).catch(function(t){console.error("Error during service worker registration:",t)})}function o(t){fetch(t).then(function(e){404===e.status||-1===e.headers.get("content-type").indexOf("javascript")?navigator.serviceWorker.ready.then(function(t){t.unregister().then(function(){window.location.reload()})}):i(t)}).catch(function(){console.log("No internet connection found. App is running in offline mode.")})}e.a=n;var a=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/))}]);
//# sourceMappingURL=main.d5fb83ac.js.map