forked from iost-official/iost.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iost.min.js
15 lines (15 loc) · 227 KB
/
iost.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
!function(t){var e={};function r(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(i,n,function(e){return t[e]}.bind(null,n));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=33)}([function(t,e,r){"use strict";var i=e;i.version=r(75).version,i.utils=r(76),i.rand=r(77),i.curve=r(7),i.curves=r(83),i.ec=r(91),i.eddsa=r(95)},function(t,e,r){"use strict";var i=r(16),n=r(40),f=Object.prototype.toString;function o(t){return"[object Array]"===f.call(t)}function s(t){return null!==t&&"object"==typeof t}function a(t){return"[object Function]"===f.call(t)}function h(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(null,t[n],n,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===f.call(t)},isBuffer:n,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===f.call(t)},isFile:function(t){return"[object File]"===f.call(t)},isBlob:function(t){return"[object Blob]"===f.call(t)},isFunction:a,isStream:function(t){return s(t)&&a(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:h,merge:function t(){var e={};function r(r,i){"object"==typeof e[i]&&"object"==typeof r?e[i]=t(e[i],r):e[i]=r}for(var i=0,n=arguments.length;i<n;i++)h(arguments[i],r);return e},extend:function(t,e,r){return h(e,function(e,n){t[n]=r&&"function"==typeof e?i(e,r):e}),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e,r){(function(t){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function f(t,e,r){if(f.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"))}var o;"object"==typeof t?t.exports=f:e.BN=f,f.BN=f,f.wordSize=26;try{o=r(74).Buffer}catch(t){}function s(t,e,r){for(var i=0,n=Math.min(t.length,r),f=e;f<n;f++){var o=t.charCodeAt(f)-48;i<<=4,i|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return i}function a(t,e,r,i){for(var n=0,f=Math.min(t.length,r),o=e;o<f;o++){var s=t.charCodeAt(o)-48;n*=i,n+=s>=49?s-49+10:s>=17?s-17+10:s}return n}f.isBN=function(t){return t instanceof f||null!==t&&"object"==typeof t&&t.constructor.wordSize===f.wordSize&&Array.isArray(t.words)},f.max=function(t,e){return t.cmp(e)>0?t:e},f.min=function(t,e){return t.cmp(e)<0?t:e},f.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),i(e===(0|e)&&e>=2&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},f.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):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},f.prototype._initArray=function(t,e,r){if(i("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 n=0;n<this.length;n++)this.words[n]=0;var f,o,s=0;if("be"===r)for(n=t.length-1,f=0;n>=0;n-=3)o=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[f]|=o<<s&67108863,this.words[f+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,f++);else if("le"===r)for(n=0,f=0;n<t.length;n+=3)o=t[n]|t[n+1]<<8|t[n+2]<<16,this.words[f]|=o<<s&67108863,this.words[f+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,f++);return this.strip()},f.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 i,n,f=0;for(r=t.length-6,i=0;r>=e;r-=6)n=s(t,r,r+6),this.words[i]|=n<<f&67108863,this.words[i+1]|=n>>>26-f&4194303,(f+=24)>=26&&(f-=26,i++);r+6!==e&&(n=s(t,e,r+6),this.words[i]|=n<<f&67108863,this.words[i+1]|=n>>>26-f&4194303),this.strip()},f.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=e)i++;i--,n=n/e|0;for(var f=t.length-r,o=f%i,s=Math.min(f,f-o)+r,h=0,u=r;u<s;u+=i)h=a(t,u,u+i,e),this.imuln(n),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==o){var d=1;for(h=a(t,u,t.length,e),u=0;u<o;u++)d*=e;this.imuln(d),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}},f.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},f.prototype.clone=function(){var t=new f(null);return this.copy(t),t},f.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},f.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","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"],u=[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],d=[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];function c(t,e,r){r.negative=e.negative^t.negative;var i=t.length+e.length|0;r.length=i,i=i-1|0;var n=0|t.words[0],f=0|e.words[0],o=n*f,s=67108863&o,a=o/67108864|0;r.words[0]=s;for(var h=1;h<i;h++){for(var u=a>>>26,d=67108863&a,c=Math.min(h,e.length-1),l=Math.max(0,h-t.length+1);l<=c;l++){var b=h-l|0;u+=(o=(n=0|t.words[b])*(f=0|e.words[l])+d)/67108864|0,d=67108863&o}r.words[h]=0|d,a=0|u}return 0!==a?r.words[h]=0|a:r.length--,r.strip()}f.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var n=0,f=0,o=0;o<this.length;o++){var s=this.words[o],a=(16777215&(s<<n|f)).toString(16);r=0!==(f=s>>>24-n&16777215)||o!==this.length-1?h[6-a.length]+a+r:a+r,(n+=2)>=26&&(n-=26,o--)}for(0!==f&&(r=f.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=u[t],l=d[t];r="";var b=this.clone();for(b.negative=0;!b.isZero();){var p=b.modn(l).toString(t);r=(b=b.idivn(l)).isZero()?p+r:h[c-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},f.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&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(t,e){return i(void 0!==o),this.toArrayLike(o,t,e)},f.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},f.prototype.toArrayLike=function(t,e,r){var n=this.byteLength(),f=r||Math.max(1,n);i(n<=f,"byte array longer than desired length"),i(f>0,"Requested array length <= 0"),this.strip();var o,s,a="le"===e,h=new t(f),u=this.clone();if(a){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),h[s]=o;for(;s<f;s++)h[s]=0}else{for(s=0;s<f-n;s++)h[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),h[f-s-1]=o}return h},Math.clz32?f.prototype._countBits=function(t){return 32-Math.clz32(t)}:f.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},f.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},f.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},f.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},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},f.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return 0!==this.negative},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.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()},f.prototype.ior=function(t){return i(0==(this.negative|t.negative)),this.iuor(t)},f.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},f.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},f.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()},f.prototype.iand=function(t){return i(0==(this.negative|t.negative)),this.iuand(t)},f.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},f.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},f.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var i=0;i<r.length;i++)this.words[i]=e.words[i]^r.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},f.prototype.ixor=function(t){return i(0==(this.negative|t.negative)),this.iuxor(t)},f.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},f.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},f.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var n=0;n<e;n++)this.words[n]=67108863&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},f.prototype.notn=function(t){return this.clone().inotn(t)},f.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var r=t/26|0,n=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<n:this.words[r]&~(1<<n),this.strip()},f.prototype.iadd=function(t){var e,r,i;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();this.length>t.length?(r=this,i=t):(r=t,i=this);for(var n=0,f=0;f<i.length;f++)e=(0|r.words[f])+(0|i.words[f])+n,this.words[f]=67108863&e,n=e>>>26;for(;0!==n&&f<r.length;f++)e=(0|r.words[f])+n,this.words[f]=67108863&e,n=e>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;f<r.length;f++)this.words[f]=r.words[f];return this},f.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)},f.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,i,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=t):(r=t,i=this);for(var f=0,o=0;o<i.length;o++)f=(e=(0|r.words[o])-(0|i.words[o])+f)>>26,this.words[o]=67108863&e;for(;0!==f&&o<r.length;o++)f=(e=(0|r.words[o])+f)>>26,this.words[o]=67108863&e;if(0===f&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this.strip()},f.prototype.sub=function(t){return this.clone().isub(t)};var l=function(t,e,r){var i,n,f,o=t.words,s=e.words,a=r.words,h=0,u=0|o[0],d=8191&u,c=u>>>13,l=0|o[1],b=8191&l,p=l>>>13,g=0|o[2],m=8191&g,v=g>>>13,y=0|o[3],w=8191&y,M=y>>>13,_=0|o[4],A=8191&_,S=_>>>13,x=0|o[5],E=8191&x,I=x>>>13,R=0|o[6],P=8191&R,B=R>>>13,k=0|o[7],T=8191&k,q=k>>>13,U=0|o[8],z=8191&U,N=U>>>13,O=0|o[9],L=8191&O,C=O>>>13,j=0|s[0],F=8191&j,D=j>>>13,Y=0|s[1],H=8191&Y,K=Y>>>13,J=0|s[2],Z=8191&J,X=J>>>13,V=0|s[3],W=8191&V,G=V>>>13,Q=0|s[4],$=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,it=et>>>13,nt=0|s[6],ft=8191&nt,ot=nt>>>13,st=0|s[7],at=8191&st,ht=st>>>13,ut=0|s[8],dt=8191&ut,ct=ut>>>13,lt=0|s[9],bt=8191<,pt=lt>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(h+(i=Math.imul(d,F))|0)+((8191&(n=(n=Math.imul(d,D))+Math.imul(c,F)|0))<<13)|0;h=((f=Math.imul(c,D))+(n>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(b,F),n=(n=Math.imul(b,D))+Math.imul(p,F)|0,f=Math.imul(p,D);var mt=(h+(i=i+Math.imul(d,H)|0)|0)+((8191&(n=(n=n+Math.imul(d,K)|0)+Math.imul(c,H)|0))<<13)|0;h=((f=f+Math.imul(c,K)|0)+(n>>>13)|0)+(mt>>>26)|0,mt&=67108863,i=Math.imul(m,F),n=(n=Math.imul(m,D))+Math.imul(v,F)|0,f=Math.imul(v,D),i=i+Math.imul(b,H)|0,n=(n=n+Math.imul(b,K)|0)+Math.imul(p,H)|0,f=f+Math.imul(p,K)|0;var vt=(h+(i=i+Math.imul(d,Z)|0)|0)+((8191&(n=(n=n+Math.imul(d,X)|0)+Math.imul(c,Z)|0))<<13)|0;h=((f=f+Math.imul(c,X)|0)+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(w,F),n=(n=Math.imul(w,D))+Math.imul(M,F)|0,f=Math.imul(M,D),i=i+Math.imul(m,H)|0,n=(n=n+Math.imul(m,K)|0)+Math.imul(v,H)|0,f=f+Math.imul(v,K)|0,i=i+Math.imul(b,Z)|0,n=(n=n+Math.imul(b,X)|0)+Math.imul(p,Z)|0,f=f+Math.imul(p,X)|0;var yt=(h+(i=i+Math.imul(d,W)|0)|0)+((8191&(n=(n=n+Math.imul(d,G)|0)+Math.imul(c,W)|0))<<13)|0;h=((f=f+Math.imul(c,G)|0)+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(A,F),n=(n=Math.imul(A,D))+Math.imul(S,F)|0,f=Math.imul(S,D),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,K)|0)+Math.imul(M,H)|0,f=f+Math.imul(M,K)|0,i=i+Math.imul(m,Z)|0,n=(n=n+Math.imul(m,X)|0)+Math.imul(v,Z)|0,f=f+Math.imul(v,X)|0,i=i+Math.imul(b,W)|0,n=(n=n+Math.imul(b,G)|0)+Math.imul(p,W)|0,f=f+Math.imul(p,G)|0;var wt=(h+(i=i+Math.imul(d,$)|0)|0)+((8191&(n=(n=n+Math.imul(d,tt)|0)+Math.imul(c,$)|0))<<13)|0;h=((f=f+Math.imul(c,tt)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(E,F),n=(n=Math.imul(E,D))+Math.imul(I,F)|0,f=Math.imul(I,D),i=i+Math.imul(A,H)|0,n=(n=n+Math.imul(A,K)|0)+Math.imul(S,H)|0,f=f+Math.imul(S,K)|0,i=i+Math.imul(w,Z)|0,n=(n=n+Math.imul(w,X)|0)+Math.imul(M,Z)|0,f=f+Math.imul(M,X)|0,i=i+Math.imul(m,W)|0,n=(n=n+Math.imul(m,G)|0)+Math.imul(v,W)|0,f=f+Math.imul(v,G)|0,i=i+Math.imul(b,$)|0,n=(n=n+Math.imul(b,tt)|0)+Math.imul(p,$)|0,f=f+Math.imul(p,tt)|0;var Mt=(h+(i=i+Math.imul(d,rt)|0)|0)+((8191&(n=(n=n+Math.imul(d,it)|0)+Math.imul(c,rt)|0))<<13)|0;h=((f=f+Math.imul(c,it)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(P,F),n=(n=Math.imul(P,D))+Math.imul(B,F)|0,f=Math.imul(B,D),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,K)|0)+Math.imul(I,H)|0,f=f+Math.imul(I,K)|0,i=i+Math.imul(A,Z)|0,n=(n=n+Math.imul(A,X)|0)+Math.imul(S,Z)|0,f=f+Math.imul(S,X)|0,i=i+Math.imul(w,W)|0,n=(n=n+Math.imul(w,G)|0)+Math.imul(M,W)|0,f=f+Math.imul(M,G)|0,i=i+Math.imul(m,$)|0,n=(n=n+Math.imul(m,tt)|0)+Math.imul(v,$)|0,f=f+Math.imul(v,tt)|0,i=i+Math.imul(b,rt)|0,n=(n=n+Math.imul(b,it)|0)+Math.imul(p,rt)|0,f=f+Math.imul(p,it)|0;var _t=(h+(i=i+Math.imul(d,ft)|0)|0)+((8191&(n=(n=n+Math.imul(d,ot)|0)+Math.imul(c,ft)|0))<<13)|0;h=((f=f+Math.imul(c,ot)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(T,F),n=(n=Math.imul(T,D))+Math.imul(q,F)|0,f=Math.imul(q,D),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,K)|0)+Math.imul(B,H)|0,f=f+Math.imul(B,K)|0,i=i+Math.imul(E,Z)|0,n=(n=n+Math.imul(E,X)|0)+Math.imul(I,Z)|0,f=f+Math.imul(I,X)|0,i=i+Math.imul(A,W)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(S,W)|0,f=f+Math.imul(S,G)|0,i=i+Math.imul(w,$)|0,n=(n=n+Math.imul(w,tt)|0)+Math.imul(M,$)|0,f=f+Math.imul(M,tt)|0,i=i+Math.imul(m,rt)|0,n=(n=n+Math.imul(m,it)|0)+Math.imul(v,rt)|0,f=f+Math.imul(v,it)|0,i=i+Math.imul(b,ft)|0,n=(n=n+Math.imul(b,ot)|0)+Math.imul(p,ft)|0,f=f+Math.imul(p,ot)|0;var At=(h+(i=i+Math.imul(d,at)|0)|0)+((8191&(n=(n=n+Math.imul(d,ht)|0)+Math.imul(c,at)|0))<<13)|0;h=((f=f+Math.imul(c,ht)|0)+(n>>>13)|0)+(At>>>26)|0,At&=67108863,i=Math.imul(z,F),n=(n=Math.imul(z,D))+Math.imul(N,F)|0,f=Math.imul(N,D),i=i+Math.imul(T,H)|0,n=(n=n+Math.imul(T,K)|0)+Math.imul(q,H)|0,f=f+Math.imul(q,K)|0,i=i+Math.imul(P,Z)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(B,Z)|0,f=f+Math.imul(B,X)|0,i=i+Math.imul(E,W)|0,n=(n=n+Math.imul(E,G)|0)+Math.imul(I,W)|0,f=f+Math.imul(I,G)|0,i=i+Math.imul(A,$)|0,n=(n=n+Math.imul(A,tt)|0)+Math.imul(S,$)|0,f=f+Math.imul(S,tt)|0,i=i+Math.imul(w,rt)|0,n=(n=n+Math.imul(w,it)|0)+Math.imul(M,rt)|0,f=f+Math.imul(M,it)|0,i=i+Math.imul(m,ft)|0,n=(n=n+Math.imul(m,ot)|0)+Math.imul(v,ft)|0,f=f+Math.imul(v,ot)|0,i=i+Math.imul(b,at)|0,n=(n=n+Math.imul(b,ht)|0)+Math.imul(p,at)|0,f=f+Math.imul(p,ht)|0;var St=(h+(i=i+Math.imul(d,dt)|0)|0)+((8191&(n=(n=n+Math.imul(d,ct)|0)+Math.imul(c,dt)|0))<<13)|0;h=((f=f+Math.imul(c,ct)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(L,F),n=(n=Math.imul(L,D))+Math.imul(C,F)|0,f=Math.imul(C,D),i=i+Math.imul(z,H)|0,n=(n=n+Math.imul(z,K)|0)+Math.imul(N,H)|0,f=f+Math.imul(N,K)|0,i=i+Math.imul(T,Z)|0,n=(n=n+Math.imul(T,X)|0)+Math.imul(q,Z)|0,f=f+Math.imul(q,X)|0,i=i+Math.imul(P,W)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(B,W)|0,f=f+Math.imul(B,G)|0,i=i+Math.imul(E,$)|0,n=(n=n+Math.imul(E,tt)|0)+Math.imul(I,$)|0,f=f+Math.imul(I,tt)|0,i=i+Math.imul(A,rt)|0,n=(n=n+Math.imul(A,it)|0)+Math.imul(S,rt)|0,f=f+Math.imul(S,it)|0,i=i+Math.imul(w,ft)|0,n=(n=n+Math.imul(w,ot)|0)+Math.imul(M,ft)|0,f=f+Math.imul(M,ot)|0,i=i+Math.imul(m,at)|0,n=(n=n+Math.imul(m,ht)|0)+Math.imul(v,at)|0,f=f+Math.imul(v,ht)|0,i=i+Math.imul(b,dt)|0,n=(n=n+Math.imul(b,ct)|0)+Math.imul(p,dt)|0,f=f+Math.imul(p,ct)|0;var xt=(h+(i=i+Math.imul(d,bt)|0)|0)+((8191&(n=(n=n+Math.imul(d,pt)|0)+Math.imul(c,bt)|0))<<13)|0;h=((f=f+Math.imul(c,pt)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(L,H),n=(n=Math.imul(L,K))+Math.imul(C,H)|0,f=Math.imul(C,K),i=i+Math.imul(z,Z)|0,n=(n=n+Math.imul(z,X)|0)+Math.imul(N,Z)|0,f=f+Math.imul(N,X)|0,i=i+Math.imul(T,W)|0,n=(n=n+Math.imul(T,G)|0)+Math.imul(q,W)|0,f=f+Math.imul(q,G)|0,i=i+Math.imul(P,$)|0,n=(n=n+Math.imul(P,tt)|0)+Math.imul(B,$)|0,f=f+Math.imul(B,tt)|0,i=i+Math.imul(E,rt)|0,n=(n=n+Math.imul(E,it)|0)+Math.imul(I,rt)|0,f=f+Math.imul(I,it)|0,i=i+Math.imul(A,ft)|0,n=(n=n+Math.imul(A,ot)|0)+Math.imul(S,ft)|0,f=f+Math.imul(S,ot)|0,i=i+Math.imul(w,at)|0,n=(n=n+Math.imul(w,ht)|0)+Math.imul(M,at)|0,f=f+Math.imul(M,ht)|0,i=i+Math.imul(m,dt)|0,n=(n=n+Math.imul(m,ct)|0)+Math.imul(v,dt)|0,f=f+Math.imul(v,ct)|0;var Et=(h+(i=i+Math.imul(b,bt)|0)|0)+((8191&(n=(n=n+Math.imul(b,pt)|0)+Math.imul(p,bt)|0))<<13)|0;h=((f=f+Math.imul(p,pt)|0)+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(L,Z),n=(n=Math.imul(L,X))+Math.imul(C,Z)|0,f=Math.imul(C,X),i=i+Math.imul(z,W)|0,n=(n=n+Math.imul(z,G)|0)+Math.imul(N,W)|0,f=f+Math.imul(N,G)|0,i=i+Math.imul(T,$)|0,n=(n=n+Math.imul(T,tt)|0)+Math.imul(q,$)|0,f=f+Math.imul(q,tt)|0,i=i+Math.imul(P,rt)|0,n=(n=n+Math.imul(P,it)|0)+Math.imul(B,rt)|0,f=f+Math.imul(B,it)|0,i=i+Math.imul(E,ft)|0,n=(n=n+Math.imul(E,ot)|0)+Math.imul(I,ft)|0,f=f+Math.imul(I,ot)|0,i=i+Math.imul(A,at)|0,n=(n=n+Math.imul(A,ht)|0)+Math.imul(S,at)|0,f=f+Math.imul(S,ht)|0,i=i+Math.imul(w,dt)|0,n=(n=n+Math.imul(w,ct)|0)+Math.imul(M,dt)|0,f=f+Math.imul(M,ct)|0;var It=(h+(i=i+Math.imul(m,bt)|0)|0)+((8191&(n=(n=n+Math.imul(m,pt)|0)+Math.imul(v,bt)|0))<<13)|0;h=((f=f+Math.imul(v,pt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(L,W),n=(n=Math.imul(L,G))+Math.imul(C,W)|0,f=Math.imul(C,G),i=i+Math.imul(z,$)|0,n=(n=n+Math.imul(z,tt)|0)+Math.imul(N,$)|0,f=f+Math.imul(N,tt)|0,i=i+Math.imul(T,rt)|0,n=(n=n+Math.imul(T,it)|0)+Math.imul(q,rt)|0,f=f+Math.imul(q,it)|0,i=i+Math.imul(P,ft)|0,n=(n=n+Math.imul(P,ot)|0)+Math.imul(B,ft)|0,f=f+Math.imul(B,ot)|0,i=i+Math.imul(E,at)|0,n=(n=n+Math.imul(E,ht)|0)+Math.imul(I,at)|0,f=f+Math.imul(I,ht)|0,i=i+Math.imul(A,dt)|0,n=(n=n+Math.imul(A,ct)|0)+Math.imul(S,dt)|0,f=f+Math.imul(S,ct)|0;var Rt=(h+(i=i+Math.imul(w,bt)|0)|0)+((8191&(n=(n=n+Math.imul(w,pt)|0)+Math.imul(M,bt)|0))<<13)|0;h=((f=f+Math.imul(M,pt)|0)+(n>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,i=Math.imul(L,$),n=(n=Math.imul(L,tt))+Math.imul(C,$)|0,f=Math.imul(C,tt),i=i+Math.imul(z,rt)|0,n=(n=n+Math.imul(z,it)|0)+Math.imul(N,rt)|0,f=f+Math.imul(N,it)|0,i=i+Math.imul(T,ft)|0,n=(n=n+Math.imul(T,ot)|0)+Math.imul(q,ft)|0,f=f+Math.imul(q,ot)|0,i=i+Math.imul(P,at)|0,n=(n=n+Math.imul(P,ht)|0)+Math.imul(B,at)|0,f=f+Math.imul(B,ht)|0,i=i+Math.imul(E,dt)|0,n=(n=n+Math.imul(E,ct)|0)+Math.imul(I,dt)|0,f=f+Math.imul(I,ct)|0;var Pt=(h+(i=i+Math.imul(A,bt)|0)|0)+((8191&(n=(n=n+Math.imul(A,pt)|0)+Math.imul(S,bt)|0))<<13)|0;h=((f=f+Math.imul(S,pt)|0)+(n>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,i=Math.imul(L,rt),n=(n=Math.imul(L,it))+Math.imul(C,rt)|0,f=Math.imul(C,it),i=i+Math.imul(z,ft)|0,n=(n=n+Math.imul(z,ot)|0)+Math.imul(N,ft)|0,f=f+Math.imul(N,ot)|0,i=i+Math.imul(T,at)|0,n=(n=n+Math.imul(T,ht)|0)+Math.imul(q,at)|0,f=f+Math.imul(q,ht)|0,i=i+Math.imul(P,dt)|0,n=(n=n+Math.imul(P,ct)|0)+Math.imul(B,dt)|0,f=f+Math.imul(B,ct)|0;var Bt=(h+(i=i+Math.imul(E,bt)|0)|0)+((8191&(n=(n=n+Math.imul(E,pt)|0)+Math.imul(I,bt)|0))<<13)|0;h=((f=f+Math.imul(I,pt)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,i=Math.imul(L,ft),n=(n=Math.imul(L,ot))+Math.imul(C,ft)|0,f=Math.imul(C,ot),i=i+Math.imul(z,at)|0,n=(n=n+Math.imul(z,ht)|0)+Math.imul(N,at)|0,f=f+Math.imul(N,ht)|0,i=i+Math.imul(T,dt)|0,n=(n=n+Math.imul(T,ct)|0)+Math.imul(q,dt)|0,f=f+Math.imul(q,ct)|0;var kt=(h+(i=i+Math.imul(P,bt)|0)|0)+((8191&(n=(n=n+Math.imul(P,pt)|0)+Math.imul(B,bt)|0))<<13)|0;h=((f=f+Math.imul(B,pt)|0)+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(L,at),n=(n=Math.imul(L,ht))+Math.imul(C,at)|0,f=Math.imul(C,ht),i=i+Math.imul(z,dt)|0,n=(n=n+Math.imul(z,ct)|0)+Math.imul(N,dt)|0,f=f+Math.imul(N,ct)|0;var Tt=(h+(i=i+Math.imul(T,bt)|0)|0)+((8191&(n=(n=n+Math.imul(T,pt)|0)+Math.imul(q,bt)|0))<<13)|0;h=((f=f+Math.imul(q,pt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(L,dt),n=(n=Math.imul(L,ct))+Math.imul(C,dt)|0,f=Math.imul(C,ct);var qt=(h+(i=i+Math.imul(z,bt)|0)|0)+((8191&(n=(n=n+Math.imul(z,pt)|0)+Math.imul(N,bt)|0))<<13)|0;h=((f=f+Math.imul(N,pt)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Ut=(h+(i=Math.imul(L,bt))|0)+((8191&(n=(n=Math.imul(L,pt))+Math.imul(C,bt)|0))<<13)|0;return h=((f=Math.imul(C,pt))+(n>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,a[0]=gt,a[1]=mt,a[2]=vt,a[3]=yt,a[4]=wt,a[5]=Mt,a[6]=_t,a[7]=At,a[8]=St,a[9]=xt,a[10]=Et,a[11]=It,a[12]=Rt,a[13]=Pt,a[14]=Bt,a[15]=kt,a[16]=Tt,a[17]=qt,a[18]=Ut,0!==h&&(a[19]=h,r.length++),r};function b(t,e,r){return(new p).mulp(t,e,r)}function p(t,e){this.x=t,this.y=e}Math.imul||(l=c),f.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?l(this,t,e):r<63?c(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var i=0,n=0,f=0;f<r.length-1;f++){var o=n;n=0;for(var s=67108863&i,a=Math.min(f,e.length-1),h=Math.max(0,f-t.length+1);h<=a;h++){var u=f-h,d=(0|t.words[u])*(0|e.words[h]),c=67108863&d;s=67108863&(c=c+s|0),n+=(o=(o=o+(d/67108864|0)|0)+(c>>>26)|0)>>>26,o&=67108863}r.words[f]=s,i=o,o=n}return 0!==i?r.words[f]=i:r.length--,r.strip()}(this,t,e):b(this,t,e)},p.prototype.makeRBT=function(t){for(var e=new Array(t),r=f.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},p.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var i=0,n=0;n<e;n++)i|=(1&t)<<e-n-1,t>>=1;return i},p.prototype.permute=function(t,e,r,i,n,f){for(var o=0;o<f;o++)i[o]=e[t[o]],n[o]=r[t[o]]},p.prototype.transform=function(t,e,r,i,n,f){this.permute(f,t,e,r,i,n);for(var o=1;o<n;o<<=1)for(var s=o<<1,a=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),u=0;u<n;u+=s)for(var d=a,c=h,l=0;l<o;l++){var b=r[u+l],p=i[u+l],g=r[u+l+o],m=i[u+l+o],v=d*g-c*m;m=d*m+c*g,g=v,r[u+l]=b+g,i[u+l]=p+m,r[u+l+o]=b-g,i[u+l+o]=p-m,l!==s&&(v=a*d-h*c,c=a*c+h*d,d=v)}},p.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),i=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return 1<<n+1+i},p.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},p.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},p.prototype.convert13b=function(t,e,r,n){for(var f=0,o=0;o<e;o++)f+=0|t[o],r[2*o]=8191&f,f>>>=13,r[2*o+1]=8191&f,f>>>=13;for(o=2*e;o<n;++o)r[o]=0;i(0===f),i(0==(-8192&f))},p.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},p.prototype.mulp=function(t,e,r){var i=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(i),f=this.stub(i),o=new Array(i),s=new Array(i),a=new Array(i),h=new Array(i),u=new Array(i),d=new Array(i),c=r.words;c.length=i,this.convert13b(t.words,t.length,o,i),this.convert13b(e.words,e.length,h,i),this.transform(o,f,s,a,i,n),this.transform(h,f,u,d,i,n);for(var l=0;l<i;l++){var b=s[l]*u[l]-a[l]*d[l];a[l]=s[l]*d[l]+a[l]*u[l],s[l]=b}return this.conjugate(s,a,i),this.transform(s,a,c,f,i,n),this.conjugate(c,f,i),this.normalize13b(c,i),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},f.prototype.mul=function(t){var e=new f(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},f.prototype.mulf=function(t){var e=new f(null);return e.words=new Array(this.length+t.length),b(this,t,e)},f.prototype.imul=function(t){return this.clone().mulTo(t,this)},f.prototype.imuln=function(t){i("number"==typeof t),i(t<67108864);for(var e=0,r=0;r<this.length;r++){var n=(0|this.words[r])*t,f=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=f>>>26,this.words[r]=67108863&f}return 0!==e&&(this.words[r]=e,this.length++),this},f.prototype.muln=function(t){return this.clone().imuln(t)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var i=r/26|0,n=r%26;e[r]=(t.words[i]&1<<n)>>>n}return e}(t);if(0===e.length)return new f(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var n=r.sqr();i<e.length;i++,n=n.sqr())0!==e[i]&&(r=r.mul(n));return r},f.prototype.iushln=function(t){i("number"==typeof t&&t>=0);var e,r=t%26,n=(t-r)/26,f=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var s=this.words[e]&f,a=(0|this.words[e])-s<<r;this.words[e]=a|o,o=s>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e<n;e++)this.words[e]=0;this.length+=n}return this.strip()},f.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},f.prototype.iushrn=function(t,e,r){var n;i("number"==typeof t&&t>=0),n=e?(e-e%26)/26:0;var f=t%26,o=Math.min((t-f)/26,this.length),s=67108863^67108863>>>f<<f,a=r;if(n-=o,n=Math.max(0,n),a){for(var h=0;h<o;h++)a.words[h]=this.words[h];a.length=o}if(0===o);else if(this.length>o)for(this.length-=o,h=0;h<this.length;h++)this.words[h]=this.words[h+o];else this.words[0]=0,this.length=1;var u=0;for(h=this.length-1;h>=0&&(0!==u||h>=n);h--){var d=0|this.words[h];this.words[h]=u<<26-f|d>>>f,u=d&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(t,e,r){return i(0===this.negative),this.iushrn(t,e,r)},f.prototype.shln=function(t){return this.clone().ishln(t)},f.prototype.ushln=function(t){return this.clone().iushln(t)},f.prototype.shrn=function(t){return this.clone().ishrn(t)},f.prototype.ushrn=function(t){return this.clone().iushrn(t)},f.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,n=1<<e;return!(this.length<=r)&&!!(this.words[r]&n)},f.prototype.imaskn=function(t){i("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(i(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 n=67108863^67108863>>>e<<e;this.words[this.length-1]&=n}return this.strip()},f.prototype.maskn=function(t){return this.clone().imaskn(t)},f.prototype.iaddn=function(t){return i("number"==typeof t),i(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)},f.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},f.prototype.isubn=function(t){if(i("number"==typeof t),i(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()},f.prototype.addn=function(t){return this.clone().iaddn(t)},f.prototype.subn=function(t){return this.clone().isubn(t)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(t,e,r){var n,f,o=t.length+r;this._expand(o);var s=0;for(n=0;n<t.length;n++){f=(0|this.words[n+r])+s;var a=(0|t.words[n])*e;s=((f-=67108863&a)>>26)-(a/67108864|0),this.words[n+r]=67108863&f}for(;n<this.length-r;n++)s=(f=(0|this.words[n+r])+s)>>26,this.words[n+r]=67108863&f;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n<this.length;n++)s=(f=-(0|this.words[n])+s)>>26,this.words[n]=67108863&f;return this.negative=1,this.strip()},f.prototype._wordDiv=function(t,e){var r=(this.length,t.length),i=this.clone(),n=t,o=0|n.words[n.length-1];0!==(r=26-this._countBits(o))&&(n=n.ushln(r),i.iushln(r),o=0|n.words[n.length-1]);var s,a=i.length-n.length;if("mod"!==e){(s=new f(null)).length=a+1,s.words=new Array(s.length);for(var h=0;h<s.length;h++)s.words[h]=0}var u=i.clone()._ishlnsubmul(n,1,a);0===u.negative&&(i=u,s&&(s.words[a]=1));for(var d=a-1;d>=0;d--){var c=67108864*(0|i.words[n.length+d])+(0|i.words[n.length+d-1]);for(c=Math.min(c/o|0,67108863),i._ishlnsubmul(n,c,d);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(n,1,d),i.isZero()||(i.negative^=1);s&&(s.words[d]=c)}return s&&s.strip(),i.strip(),"div"!==e&&0!==r&&i.iushrn(r),{div:s||null,mod:i}},f.prototype.divmod=function(t,e,r){return i(!t.isZero()),this.isZero()?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(n=s.div.neg()),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:n,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new f(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new f(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new f(this.modn(t.words[0]))}:this._wordDiv(t,e);var n,o,s},f.prototype.div=function(t){return this.divmod(t,"div",!1).div},f.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},f.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},f.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,i=t.ushrn(1),n=t.andln(1),f=r.cmp(i);return f<0||1===n&&0===f?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},f.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,r=0,n=this.length-1;n>=0;n--)r=(e*r+(0|this.words[n]))%t;return r},f.prototype.idivn=function(t){i(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*e;this.words[r]=n/t|0,e=n%t}return this.strip()},f.prototype.divn=function(t){return this.clone().idivn(t)},f.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new f(1),o=new f(0),s=new f(0),a=new f(1),h=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++h;for(var u=r.clone(),d=e.clone();!e.isZero();){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(u),o.isub(d)),n.iushrn(1),o.iushrn(1);for(var b=0,p=1;0==(r.words[0]&p)&&b<26;++b,p<<=1);if(b>0)for(r.iushrn(b);b-- >0;)(s.isOdd()||a.isOdd())&&(s.iadd(u),a.isub(d)),s.iushrn(1),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),n.isub(s),o.isub(a)):(r.isub(e),s.isub(n),a.isub(o))}return{a:s,b:a,gcd:r.iushln(h)}},f.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,o=new f(1),s=new f(0),a=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,u=1;0==(e.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(e.iushrn(h);h-- >0;)o.isOdd()&&o.iadd(a),o.iushrn(1);for(var d=0,c=1;0==(r.words[0]&c)&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(a),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(n=0===e.cmpn(1)?o:s).cmpn(0)<0&&n.iadd(t),n},f.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 i=0;e.isEven()&&r.isEven();i++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=e.cmp(r);if(n<0){var f=e;e=r,r=f}else if(0===n||0===r.cmpn(1))break;e.isub(r)}return r.iushln(i)},f.prototype.invm=function(t){return this.egcd(t).a.umod(t)},f.prototype.isEven=function(){return 0==(1&this.words[0])},f.prototype.isOdd=function(){return 1==(1&this.words[0])},f.prototype.andln=function(t){return this.words[0]&t},f.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,r=(t-e)/26,n=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var f=n,o=r;0!==f&&o<this.length;o++){var s=0|this.words[o];f=(s+=f)>>>26,s&=67108863,this.words[o]=s}return 0!==f&&(this.words[o]=f,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),i(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:n<t?-1:1}return 0!==this.negative?0|-e:e},f.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},f.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 i=0|this.words[r],n=0|t.words[r];if(i!==n){i<n?e=-1:i>n&&(e=1);break}}return e},f.prototype.gtn=function(t){return 1===this.cmpn(t)},f.prototype.gt=function(t){return 1===this.cmp(t)},f.prototype.gten=function(t){return this.cmpn(t)>=0},f.prototype.gte=function(t){return this.cmp(t)>=0},f.prototype.ltn=function(t){return-1===this.cmpn(t)},f.prototype.lt=function(t){return-1===this.cmp(t)},f.prototype.lten=function(t){return this.cmpn(t)<=0},f.prototype.lte=function(t){return this.cmp(t)<=0},f.prototype.eqn=function(t){return 0===this.cmpn(t)},f.prototype.eq=function(t){return 0===this.cmp(t)},f.red=function(t){return new _(t)},f.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},f.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(t){return this.red=t,this},f.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},f.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},f.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},f.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},f.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},f.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},f.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},f.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},f.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function m(t,e){this.name=t,this.p=new f(e,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=f._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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)}m.prototype._tmp=function(){var t=new f(null);return t.words=new Array(Math.ceil(this.n/13)),t},m.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e<this.n?-1:r.ucmp(this.p);return 0===i?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):r.strip(),r},m.prototype.split=function(t,e){t.iushrn(this.n,0,e)},m.prototype.imulK=function(t){return t.imul(this.k)},n(v,m),v.prototype.split=function(t,e){for(var r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var n=t.words[9];for(e.words[e.length++]=4194303&n,i=10;i<t.length;i++){var f=0|t.words[i];t.words[i-10]=(4194303&f)<<4|n>>>22,n=f}n>>>=22,t.words[i-10]=n,0===n&&t.length>10?t.length-=10:t.length-=9},v.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 i=0|t.words[r];e+=977*i,t.words[r]=67108863&e,e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(y,m),n(w,m),n(M,m),M.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var i=19*(0|t.words[r])+e,n=67108863&i;i>>>=26,t.words[r]=n,e=i}return 0!==e&&(t.words[t.length++]=e),t},f._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new y;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return g[t]=e,e},_.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.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)},_.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},_.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)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var r=this.m.add(new f(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);i(!n.isZero());var s=new f(1).toRed(this),a=s.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new f(2*u*u).toRed(this);0!==this.pow(u,h).cmp(a);)u.redIAdd(a);for(var d=this.pow(u,n),c=this.pow(t,n.addn(1).iushrn(1)),l=this.pow(t,n),b=o;0!==l.cmp(s);){for(var p=l,g=0;0!==p.cmp(s);g++)p=p.redSqr();i(g<b);var m=this.pow(d,new f(1).iushln(b-g-1));c=c.redMul(m),d=m.redSqr(),l=l.redMul(d),b=g}return c},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new f(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new f(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var n=r[0],o=0,s=0,a=e.bitLength()%26;for(0===a&&(a=26),i=e.length-1;i>=0;i--){for(var h=e.words[i],u=a-1;u>=0;u--){var d=h>>u&1;n!==r[0]&&(n=this.sqr(n)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===i&&0===u)&&(n=this.mul(n,r[o]),s=0,o=0)):s=0}a=26}return n},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},f.mont=function(t){return new A(t)},n(A,_),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),f=n;return n.cmp(this.m)>=0?f=n.isub(this.m):n.cmpn(0)<0&&(f=n.iadd(this.m)),f._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new f(0)._forceRed(this);var r=t.mul(e),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(73)(t))},function(t,e,r){"use strict";var i=r(4),n=r(8);function f(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function o(t){return 1===t.length?"0"+t:t}function s(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}e.inherits=n,e.toArray=function(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,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var i=0;i<t.length;i++){var n=t.charCodeAt(i),f=n>>8,o=255&n;f?r.push(f,o):r.push(o)}else for(i=0;i<t.length;i++)r[i]=0|t[i];return r},e.toHex=function(t){for(var e="",r=0;r<t.length;r++)e+=o(t[r].toString(16));return e},e.htonl=f,e.toHex32=function(t,e){for(var r="",i=0;i<t.length;i++){var n=t[i];"little"===e&&(n=f(n)),r+=s(n.toString(16))}return r},e.zero2=o,e.zero8=s,e.join32=function(t,e,r,n){var f=r-e;i(f%4==0);for(var o=new Array(f/4),s=0,a=e;s<o.length;s++,a+=4){var h;h="big"===n?t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]:t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a],o[s]=h>>>0}return o},e.split32=function(t,e){for(var r=new Array(4*t.length),i=0,n=0;i<t.length;i++,n+=4){var f=t[i];"big"===e?(r[n]=f>>>24,r[n+1]=f>>>16&255,r[n+2]=f>>>8&255,r[n+3]=255&f):(r[n+3]=f>>>24,r[n+2]=f>>>16&255,r[n+1]=f>>>8&255,r[n]=255&f)}return r},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,r){return t+e+r>>>0},e.sum32_4=function(t,e,r,i){return t+e+r+i>>>0},e.sum32_5=function(t,e,r,i,n){return t+e+r+i+n>>>0},e.sum64=function(t,e,r,i){var n=t[e],f=i+t[e+1]>>>0,o=(f<i?1:0)+r+n;t[e]=o>>>0,t[e+1]=f},e.sum64_hi=function(t,e,r,i){return(e+i>>>0<e?1:0)+t+r>>>0},e.sum64_lo=function(t,e,r,i){return e+i>>>0},e.sum64_4_hi=function(t,e,r,i,n,f,o,s){var a=0,h=e;return a+=(h=h+i>>>0)<e?1:0,a+=(h=h+f>>>0)<f?1:0,t+r+n+o+(a+=(h=h+s>>>0)<s?1:0)>>>0},e.sum64_4_lo=function(t,e,r,i,n,f,o,s){return e+i+f+s>>>0},e.sum64_5_hi=function(t,e,r,i,n,f,o,s,a,h){var u=0,d=e;return u+=(d=d+i>>>0)<e?1:0,u+=(d=d+f>>>0)<f?1:0,u+=(d=d+s>>>0)<s?1:0,t+r+n+o+a+(u+=(d=d+h>>>0)<h?1:0)>>>0},e.sum64_5_lo=function(t,e,r,i,n,f,o,s,a,h){return e+i+f+s+h>>>0},e.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},e.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},e.shr64_hi=function(t,e,r){return t>>>r},e.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0}},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";(function(t){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <[email protected]> <http://feross.org>
* @license MIT
*/
var i=r(60),n=r(61),f=r(62);function o(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(o()<e)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=a.prototype:(null===t&&(t=new a(e)),t.length=e),t}function a(t,e,r){if(!(a.TYPED_ARRAY_SUPPORT||this instanceof a))return new a(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 d(this,t)}return h(this,t,e,r)}function h(t,e,r,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,i){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,r):new Uint8Array(e,r,i);a.TYPED_ARRAY_SUPPORT?(t=e).__proto__=a.prototype:t=c(t,e);return t}(t,e,r,i):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!a.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var i=0|b(e,r),n=(t=s(t,i)).write(e,r);n!==i&&(t=t.slice(0,n));return t}(t,e,r):function(t,e){if(a.isBuffer(e)){var r=0|l(e.length);return 0===(t=s(t,r)).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||(i=e.length)!=i?s(t,0):c(t,e);if("Buffer"===e.type&&f(e.data))return c(t,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(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 d(t,e){if(u(e),t=s(t,e<0?0:0|l(e)),!a.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function c(t,e){var r=e.length<0?0:0|l(e.length);t=s(t,r);for(var i=0;i<r;i+=1)t[i]=255&e[i];return t}function l(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function b(t,e){if(a.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 i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(t).length;default:if(i)return j(t).length;e=(""+e).toLowerCase(),i=!0}}function p(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}function g(t,e,r,i,n){if(0===t.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof e&&(e=a.from(e,i)),a.isBuffer(e))return 0===e.length?-1:m(t,e,r,i,n);if("number"==typeof e)return e&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,i,n);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,i,n){var f,o=1,s=t.length,a=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,s/=2,a/=2,r/=2}function h(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(n){var u=-1;for(f=r;f<s;f++)if(h(t,f)===h(e,-1===u?0:f-u)){if(-1===u&&(u=f),f-u+1===a)return u*o}else-1!==u&&(f-=f-u),u=-1}else for(r+a>s&&(r=s-a),f=r;f>=0;f--){for(var d=!0,c=0;c<a;c++)if(h(t,f+c)!==h(e,c)){d=!1;break}if(d)return f}return-1}function v(t,e,r,i){r=Number(r)||0;var n=t.length-r;i?(i=Number(i))>n&&(i=n):i=n;var f=e.length;if(f%2!=0)throw new TypeError("Invalid hex string");i>f/2&&(i=f/2);for(var o=0;o<i;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[r+o]=s}return o}function y(t,e,r,i){return D(j(e,t.length-r),t,r,i)}function w(t,e,r,i){return D(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,i)}function M(t,e,r,i){return w(t,e,r,i)}function _(t,e,r,i){return D(F(e),t,r,i)}function A(t,e,r,i){return D(function(t,e){for(var r,i,n,f=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),i=r>>8,n=r%256,f.push(n),f.push(i);return f}(e,t.length-r),t,r,i)}function S(t,e,r){return 0===e&&r===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);for(var i=[],n=e;n<r;){var f,o,s,a,h=t[n],u=null,d=h>239?4:h>223?3:h>191?2:1;if(n+d<=r)switch(d){case 1:h<128&&(u=h);break;case 2:128==(192&(f=t[n+1]))&&(a=(31&h)<<6|63&f)>127&&(u=a);break;case 3:f=t[n+1],o=t[n+2],128==(192&f)&&128==(192&o)&&(a=(15&h)<<12|(63&f)<<6|63&o)>2047&&(a<55296||a>57343)&&(u=a);break;case 4:f=t[n+1],o=t[n+2],s=t[n+3],128==(192&f)&&128==(192&o)&&128==(192&s)&&(a=(15&h)<<18|(63&f)<<12|(63&o)<<6|63&s)>65535&&a<1114112&&(u=a)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),n+=d}return function(t){var e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);var r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=E));return r}(i)}e.Buffer=a,e.SlowBuffer=function(t){+t!=t&&(t=0);return a.alloc(+t)},e.INSPECT_MAX_BYTES=50,a.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=o(),a.poolSize=8192,a._augment=function(t){return t.__proto__=a.prototype,t},a.from=function(t,e,r){return h(null,t,e,r)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(t,e,r){return function(t,e,r,i){return u(e),e<=0?s(t,e):void 0!==r?"string"==typeof i?s(t,e).fill(r,i):s(t,e).fill(r):s(t,e)}(null,t,e,r)},a.allocUnsafe=function(t){return d(null,t)},a.allocUnsafeSlow=function(t){return d(null,t)},a.isBuffer=function(t){return!(null==t||!t._isBuffer)},a.compare=function(t,e){if(!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,i=e.length,n=0,f=Math.min(r,i);n<f;++n)if(t[n]!==e[n]){r=t[n],i=e[n];break}return r<i?-1:i<r?1:0},a.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}},a.concat=function(t,e){if(!f(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var i=a.allocUnsafe(e),n=0;for(r=0;r<t.length;++r){var o=t[r];if(!a.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},a.byteLength=b,a.prototype._isBuffer=!0,a.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)p(this,e,e+1);return this},a.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)p(this,e,e+3),p(this,e+1,e+2);return this},a.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)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},a.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?x(this,0,t):function(t,e,r){var i=!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))return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return R(this,e,r);case"base64":return S(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}.apply(this,arguments)},a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.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+">"},a.prototype.compare=function(t,e,r,i,n){if(!a.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===i&&(i=0),void 0===n&&(n=this.length),e<0||r>t.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&e>=r)return 0;if(i>=n)return-1;if(e>=r)return 1;if(this===t)return 0;for(var f=(n>>>=0)-(i>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(f,o),h=this.slice(i,n),u=t.slice(e,r),d=0;d<s;++d)if(h[d]!==u[d]){f=h[d],o=u[d];break}return f<o?-1:o<f?1:0},a.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return g(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return g(this,t,e,r,!1)},a.prototype.write=function(t,e,r,i){if(void 0===e)i="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)i=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===i&&(i="utf8")):(i=r,r=void 0)}var n=this.length-e;if((void 0===r||r>n)&&(r=n),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var f=!1;;)switch(i){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return y(this,t,e,r);case"ascii":return w(this,t,e,r);case"latin1":case"binary":return M(this,t,e,r);case"base64":return _(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,r);default:if(f)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function I(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n)i+=String.fromCharCode(127&t[n]);return i}function R(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n)i+=String.fromCharCode(t[n]);return i}function P(t,e,r){var i=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);for(var n="",f=e;f<r;++f)n+=C(t[f]);return n}function B(t,e,r){for(var i=t.slice(e,r),n="",f=0;f<i.length;f+=2)n+=String.fromCharCode(i[f]+256*i[f+1]);return n}function k(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 T(t,e,r,i,n,f){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<f)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}function q(t,e,r,i){e<0&&(e=65535+e+1);for(var n=0,f=Math.min(t.length-r,2);n<f;++n)t[r+n]=(e&255<<8*(i?n:1-n))>>>8*(i?n:1-n)}function U(t,e,r,i){e<0&&(e=4294967295+e+1);for(var n=0,f=Math.min(t.length-r,4);n<f;++n)t[r+n]=e>>>8*(i?n:3-n)&255}function z(t,e,r,i,n,f){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(t,e,r,i,f){return f||z(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function O(t,e,r,i,f){return f||z(t,0,r,8),n.write(t,e,r,i,52,8),r+8}a.prototype.slice=function(t,e){var r,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),a.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=a.prototype;else{var n=e-t;r=new a(n,void 0);for(var f=0;f<n;++f)r[f]=this[f+t]}return r},a.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||k(t,e,this.length);for(var i=this[t],n=1,f=0;++f<e&&(n*=256);)i+=this[t+f]*n;return i},a.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||k(t,e,this.length);for(var i=this[t+--e],n=1;e>0&&(n*=256);)i+=this[t+--e]*n;return i},a.prototype.readUInt8=function(t,e){return e||k(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return e||k(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return e||k(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return e||k(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return e||k(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||k(t,e,this.length);for(var i=this[t],n=1,f=0;++f<e&&(n*=256);)i+=this[t+f]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*e)),i},a.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||k(t,e,this.length);for(var i=e,n=1,f=this[t+--i];i>0&&(n*=256);)f+=this[t+--i]*n;return f>=(n*=128)&&(f-=Math.pow(2,8*e)),f},a.prototype.readInt8=function(t,e){return e||k(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){e||k(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){e||k(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return e||k(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return e||k(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return e||k(t,4,this.length),n.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return e||k(t,4,this.length),n.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return e||k(t,8,this.length),n.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return e||k(t,8,this.length),n.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,i){(t=+t,e|=0,r|=0,i)||T(this,t,e,r,Math.pow(2,8*r)-1,0);var n=1,f=0;for(this[e]=255&t;++f<r&&(n*=256);)this[e+f]=t/n&255;return e+r},a.prototype.writeUIntBE=function(t,e,r,i){(t=+t,e|=0,r|=0,i)||T(this,t,e,r,Math.pow(2,8*r)-1,0);var n=r-1,f=1;for(this[e+n]=255&t;--n>=0&&(f*=256);)this[e+n]=t/f&255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,1,255,0),a.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):q(this,t,e,!0),e+2},a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):q(this,t,e,!1),e+2},a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):U(this,t,e,!0),e+4},a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},a.prototype.writeIntLE=function(t,e,r,i){if(t=+t,e|=0,!i){var n=Math.pow(2,8*r-1);T(this,t,e,r,n-1,-n)}var f=0,o=1,s=0;for(this[e]=255&t;++f<r&&(o*=256);)t<0&&0===s&&0!==this[e+f-1]&&(s=1),this[e+f]=(t/o>>0)-s&255;return e+r},a.prototype.writeIntBE=function(t,e,r,i){if(t=+t,e|=0,!i){var n=Math.pow(2,8*r-1);T(this,t,e,r,n-1,-n)}var f=r-1,o=1,s=0;for(this[e+f]=255&t;--f>=0&&(o*=256);)t<0&&0===s&&0!==this[e+f+1]&&(s=1),this[e+f]=(t/o>>0)-s&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,1,127,-128),a.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):q(this,t,e,!0),e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):q(this,t,e,!1),e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):U(this,t,e,!0),e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),a.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},a.prototype.writeFloatLE=function(t,e,r){return N(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return N(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return O(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return O(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,i){if(r||(r=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<r&&(i=r),i===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(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-r&&(i=t.length-e+r);var n,f=i-r;if(this===t&&r<e&&e<i)for(n=f-1;n>=0;--n)t[n+e]=this[n+r];else if(f<1e3||!a.TYPED_ARRAY_SUPPORT)for(n=0;n<f;++n)t[n+e]=this[n+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+f),e);return f},a.prototype.fill=function(t,e,r,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),1===t.length){var n=t.charCodeAt(0);n<256&&(t=n)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}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;var f;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(f=e;f<r;++f)this[f]=t;else{var o=a.isBuffer(t)?t:j(new a(t,i).toString()),s=o.length;for(f=0;f<r-e;++f)this[f+e]=o[f%s]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function C(t){return t<16?"0"+t.toString(16):t.toString(16)}function j(t,e){var r;e=e||1/0;for(var i=t.length,n=null,f=[],o=0;o<i;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&f.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&f.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&f.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(e-=3)>-1&&f.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;f.push(r)}else if(r<2048){if((e-=2)<0)break;f.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;f.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;f.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return f}function F(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(L,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function D(t,e,r,i){for(var n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}}).call(this,r(59))},function(t,e,r){"use strict";var i=r(3),n=r(4);function f(){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}e.BlockHash=f,f.prototype.update=function(t,e){if(t=i.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).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},f.prototype.digest=function(t){return this.update(this._pad()),n(null===this.pending),this._digest(t)},f.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,i=new Array(r+this.padLength);i[0]=128;for(var n=1;n<r;n++)i[n]=0;if(t<<=3,"big"===this.endian){for(var f=8;f<this.padLength;f++)i[n++]=0;i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=t>>>24&255,i[n++]=t>>>16&255,i[n++]=t>>>8&255,i[n++]=255&t}else for(i[n++]=255&t,i[n++]=t>>>8&255,i[n++]=t>>>16&255,i[n++]=t>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,f=8;f<this.padLength;f++)i[n++]=0;return i}},function(t,e,r){"use strict";var i=e;i.base=r(79),i.short=r(80),i.mont=r(81),i.edwards=r(82)},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";(function(e){var i=r(1),n=r(43),f={"Content-Type":"application/x-www-form-urlencoded"};function o(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,a={adapter:("undefined"!=typeof XMLHttpRequest?s=r(17):void 0!==e&&(s=r(17)),s),transformRequest:[function(t,e){return n(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(o(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(o(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(t){a.headers[t]={}}),i.forEach(["post","put","patch"],function(t){a.headers[t]=i.merge(f)}),t.exports=a}).call(this,r(42))},function(t,e,r){const i=r(21),n=r(25),f=r(22);r(31);t.exports={Tx:class{constructor(t,e){this.gasRatio=t,this.gasLimit=parseInt(e),this.actions=[],this.signers=[],this.signatures=[],this.publisher="",this.publisher_sigs=[],this.amount_limit=[],this.chain_id=1024,this.reserved=null}setChainID(t){this.chain_id=t}addSigner(t,e){this.signers.push(t+"@"+e)}addApprove(t,e){if("*"===t)throw"approve should not contain * token";if("number"!=typeof e)throw"approve amount should be number";const r=e.toExponential().match(/\d(?:\.(\d*))?e([+-]\d+)/),i=e.toFixed(Math.max(0,(r[1]||"").length-r[2]));this.amount_limit.push({token:t,value:i})}getApproveList(){const t={};return this.amount_limit.forEach(e=>{t[e.token]=e.value}),t}addAction(t,e,r){this.actions.push({contract:t,actionName:e,data:r})}setTime(t,e,r){let i=new Date;this.time=1e6*i.getTime()+r,this.expiration=this.time+1e9*t,this.delay=e}setGas(t,e){if("number"!=typeof e||e>4e6||e<6e3)throw"gas limit should be in [6000, 4000000]";if("number"!=typeof t||t<1||t>100)throw"gas limit should be in [1, 100]";this.gasLimit=e,this.gasRatio=t}_base_hash(){const t=f.SHA3(256);return t.update(this._bytes(0)),t.digest("binary")}addSign(t){const e=new n(this._base_hash(),t);this.signatures.push(e)}_publish_hash(){const t=f.SHA3(256);return t.update(this._bytes(1)),t.digest("binary")}addPublishSign(t,e){if(this.getApproveList().hasOwnProperty("*"))throw"approve should not contain * token";this.publisher=t;const r=this._publish_hash(),i=new n(r,e);this.publisher_sigs.push(i)}_bytes(t){let e=new i;e.pushInt64(this.time),e.pushInt64(this.expiration),e.pushInt64(parseInt(100*this.gasRatio)),e.pushInt64(100*this.gasLimit),e.pushInt64(this.delay),e.pushInt(this.chain_id),this.reserved||e.pushInt(0),e.pushInt(this.signers.length);for(let t=0;t<this.signers.length;t++)e.pushString(this.signers[t]);e.pushInt(this.actions.length);for(let t=0;t<this.actions.length;t++){let r=new i;r.pushString(this.actions[t].contract),r.pushString(this.actions[t].actionName),r.pushString(this.actions[t].data),e.pushBytes(r._buf)}e.pushInt(this.amount_limit.length);for(let t=0;t<this.amount_limit.length;t++){let r=new i;r.pushString(this.amount_limit[t].token),r.pushString(this.amount_limit[t].value+""),e.pushBytes(r._buf)}if(t>0){e.pushInt(this.signatures.length);for(let t=0;t<this.signatures.length;t++)e.pushBytes(this.signatures[t]._bytes())}return e._buf}}}},function(t,e,r){"use strict";t.exports=function(t,e){return function(r,i){var n=2*i,f=2*e;r[n]=t[f],r[n+1]=t[f+1]}}},function(t,e){t.exports={Ed25519:2,Secp256k1:1}},function(t,e,r){var i=e;i.utils=r(3),i.common=r(6),i.sha=r(84),i.ripemd=r(88),i.hmac=r(89),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},function(t,e,r){var i=r(99);t.exports=i("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(t,e,r){const i=r(34),n=r(35),f=r(36);t.exports=class{constructor(t){this._provider=t,this.net=new i(this),this.blockchain=new n(this),this.transaction=new f(this)}setProvider(t){this._provider=t}getProvider(){return this._provider}}},function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),i=0;i<r.length;i++)r[i]=arguments[i];return t.apply(e,r)}}},function(t,e,r){"use strict";var i=r(1),n=r(44),f=r(46),o=r(47),s=r(48),a=r(18),h="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||r(49);t.exports=function(t){return new Promise(function(e,u){var d=t.data,c=t.headers;i.isFormData(d)&&delete c["Content-Type"];var l=new XMLHttpRequest,b="onreadystatechange",p=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in l||s(t.url)||(l=new window.XDomainRequest,b="onload",p=!0,l.onprogress=function(){},l.ontimeout=function(){}),t.auth){var g=t.auth.username||"",m=t.auth.password||"";c.Authorization="Basic "+h(g+":"+m)}if(l.open(t.method.toUpperCase(),f(t.url,t.params,t.paramsSerializer),!0),l.timeout=t.timeout,l[b]=function(){if(l&&(4===l.readyState||p)&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in l?o(l.getAllResponseHeaders()):null,i={data:t.responseType&&"text"!==t.responseType?l.response:l.responseText,status:1223===l.status?204:l.status,statusText:1223===l.status?"No Content":l.statusText,headers:r,config:t,request:l};n(e,u,i),l=null}},l.onerror=function(){u(a("Network Error",t,null,l)),l=null},l.ontimeout=function(){u(a("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",l)),l=null},i.isStandardBrowserEnv()){var v=r(50),y=(t.withCredentials||s(t.url))&&t.xsrfCookieName?v.read(t.xsrfCookieName):void 0;y&&(c[t.xsrfHeaderName]=y)}if("setRequestHeader"in l&&i.forEach(c,function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete c[e]:l.setRequestHeader(e,t)}),t.withCredentials&&(l.withCredentials=!0),t.responseType)try{l.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&l.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){l&&(l.abort(),u(t),l=null)}),void 0===d&&(d=null),l.send(d)})}},function(t,e,r){"use strict";var i=r(45);t.exports=function(t,e,r,n,f){var o=new Error(t);return i(o,e,r,n,f)}},function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,r){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},function(t,e,r){(function(e){const i=r(63),{SHA3:n}=r(22);t.exports=class{constructor(){this._buf=e.alloc(0)}pushInt(t){let r=e.alloc(4);return r.writeInt32BE(t,0),this._buf=e.concat([this._buf,r]),this}pushByte(t){let r=e.alloc(1);return r.writeUInt8(t,0),this._buf=e.concat([this._buf,r]),this}pushInt64(t){let r=i.fromString(t+""),n=e.alloc(8);return n.writeInt32BE(r.high,0),n.writeInt32BE(r.low,4),this._buf=e.concat([this._buf,n]),this}pushString(t){t.length;let r=e.from(t);return this.pushInt(r.length),this._buf=e.concat([this._buf,r]),this}pushBytes(t){return this.pushInt(t.length),this._buf=e.concat([this._buf,t]),this}}}).call(this,r(5).Buffer)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SHA3Hash=e.SHA3=e.Keccak=void 0;var i,n=r(5),f=(i=r(64))&&i.__esModule?i:{default:i};var o=function(t){var e=t.padding;return function t(){var r=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:512;if(!this||this.constructor!==t)return new t(i);var o=new f.default({capacity:i,padding:e});return this.update=function(t){if(n.Buffer.isBuffer(t))return o.absorb(t),r;if("string"==typeof t)return r.update(n.Buffer.from(t,"utf8"));throw new TypeError("Not a string or buffer")},this.digest=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"binary",e=o.squeeze();return t&&"binary"!==t?e.toString(t):e},this.reset=function(){return o.reset(),r},this}},s=o({padding:1});e.Keccak=s;var a=o({padding:6});e.SHA3=a;var h=s;e.SHA3Hash=h,a.SHA3Hash=h;var u=a;e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t,e){return function(){for(var r=2*e,i=arguments.length,n=new Array(i),f=0;f<i;f++)n[f]=arguments[f];if(n.length>=2){var o=2*n[1];t[r]=n[0][o],t[r+1]=n[0][o+1]}for(var s=2;s<n.length;s+=2){var a=2*n[s+1];t[r]^=n[s][a],t[r+1]^=n[s][a+1]}}};e.default=i},function(t,e,r){"use strict";function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,n=!1,f=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(t){n=!0,f=t}finally{try{i||null==s.return||s.return()}finally{if(n)throw f}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t,e){var r=i(t,2),n=r[0],f=r[1],o=e<32?0:1,s=(o+1)%2;return t[o]=n<<e|f>>>32-e,t[s]=f<<e|n>>>32-e,t};e.default=n},function(t,e,r){(function(e){const i=r(2),n=r(12),f=r(0).ec,o=r(30),s=r(21),a=new f("secp256k1");class h{constructor(t,r){if(!t)return this.algorithm=void 0,this.pubkey=void 0,void(this.sig=void 0);if(this.algorithm=r.t,this.algorithm===n.Ed25519)this.sig=e.from(o.sign(t,r.seckey)).slice(0,64),this.pubkey=r.pubkey;else{if(this.algorithm!==n.Secp256k1)throw"type error!";{const n=a.keyFromPrivate(r.seckey);this.pubkey=r.pubkey;const f=n.sign(t),o=f.r;let s=new i("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",16).sub(f.s);s.gt(f.s)&&(s=f.s),this.sig=e.concat([e.from(o.toArray()),e.from(s.toArray())])}}}_bytes(){let t=new s;return t.pushByte(this.algorithm),t.pushBytes(this.sig),t.pushBytes(this.pubkey),t._buf}toJSON(){return{algorithm:1===this.algorithm?"SECP256K1":"ED25519",public_key:this.pubkey.toString("base64"),signature:this.sig.toString("base64")}}static fromJSON(t){const r=JSON.parse(t),i={algorithm:"ED25519"===r.algorithm?2:1,pubkey:e.from(r.public_key,"base64"),sig:e.from(r.signature,"base64")};return Object.assign(new h,i)}verify(t){if(this.algorithm===n.Ed25519)return o.sign.detached.verify(t,this.sig,this.pubkey);if(this.algorithm===n.Secp256k1){const e={r:new i(this.sig.slice(0,32).toString("hex"),16),s:new i(this.sig.slice(32,64).toString("hex"),16)};return a.verify(t,e,this.pubkey)}}}t.exports=h}).call(this,r(5).Buffer)},function(t,e,r){"use strict";var i=e;function n(t){return 1===t.length?"0"+t:t}function f(t){for(var e="",r=0;r<t.length;r++)e+=n(t[r].toString(16));return e}i.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var i=0;i<t.length;i++)r[i]=0|t[i];return r}if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16));else for(i=0;i<t.length;i++){var n=t.charCodeAt(i),f=n>>8,o=255&n;f?r.push(f,o):r.push(o)}return r},i.zero2=n,i.toHex=f,i.encode=function(t,e){return"hex"===e?f(t):t}},function(t,e,r){"use strict";var i=r(3).rotr32;function n(t,e,r){return t&e^~t&r}function f(t,e,r){return t&e^t&r^e&r}function o(t,e,r){return t^e^r}e.ft_1=function(t,e,r,i){return 0===t?n(e,r,i):1===t||3===t?o(e,r,i):2===t?f(e,r,i):void 0},e.ch32=n,e.maj32=f,e.p32=o,e.s0_256=function(t){return i(t,2)^i(t,13)^i(t,22)},e.s1_256=function(t){return i(t,6)^i(t,11)^i(t,25)},e.g0_256=function(t){return i(t,7)^i(t,18)^t>>>3},e.g1_256=function(t){return i(t,17)^i(t,19)^t>>>10}},function(t,e,r){"use strict";var i=r(3),n=r(6),f=r(27),o=r(4),s=i.sum32,a=i.sum32_4,h=i.sum32_5,u=f.ch32,d=f.maj32,c=f.s0_256,l=f.s1_256,b=f.g0_256,p=f.g1_256,g=n.BlockHash,m=[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];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}i.inherits(v,g),t.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(t,e){for(var r=this.W,i=0;i<16;i++)r[i]=t[e+i];for(;i<r.length;i++)r[i]=a(p(r[i-2]),r[i-7],b(r[i-15]),r[i-16]);var n=this.h[0],f=this.h[1],g=this.h[2],m=this.h[3],v=this.h[4],y=this.h[5],w=this.h[6],M=this.h[7];for(o(this.k.length===r.length),i=0;i<r.length;i++){var _=h(M,l(v),u(v,y,w),this.k[i],r[i]),A=s(c(n),d(n,f,g));M=w,w=y,y=v,v=s(m,_),m=g,g=f,f=n,n=s(_,A)}this.h[0]=s(this.h[0],n),this.h[1]=s(this.h[1],f),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],m),this.h[4]=s(this.h[4],v),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],M)},v.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(t,e,r){"use strict";var i=r(3),n=r(6),f=r(4),o=i.rotr64_hi,s=i.rotr64_lo,a=i.shr64_hi,h=i.shr64_lo,u=i.sum64,d=i.sum64_hi,c=i.sum64_lo,l=i.sum64_4_hi,b=i.sum64_4_lo,p=i.sum64_5_hi,g=i.sum64_5_lo,m=n.BlockHash,v=[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];function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=new Array(160)}function w(t,e,r,i,n){var f=t&r^~t&n;return f<0&&(f+=4294967296),f}function M(t,e,r,i,n,f){var o=e&i^~e&f;return o<0&&(o+=4294967296),o}function _(t,e,r,i,n){var f=t&r^t&n^r&n;return f<0&&(f+=4294967296),f}function A(t,e,r,i,n,f){var o=e&i^e&f^i&f;return o<0&&(o+=4294967296),o}function S(t,e){var r=o(t,e,28)^o(e,t,2)^o(e,t,7);return r<0&&(r+=4294967296),r}function x(t,e){var r=s(t,e,28)^s(e,t,2)^s(e,t,7);return r<0&&(r+=4294967296),r}function E(t,e){var r=o(t,e,14)^o(t,e,18)^o(e,t,9);return r<0&&(r+=4294967296),r}function I(t,e){var r=s(t,e,14)^s(t,e,18)^s(e,t,9);return r<0&&(r+=4294967296),r}function R(t,e){var r=o(t,e,1)^o(t,e,8)^a(t,e,7);return r<0&&(r+=4294967296),r}function P(t,e){var r=s(t,e,1)^s(t,e,8)^h(t,e,7);return r<0&&(r+=4294967296),r}function B(t,e){var r=o(t,e,19)^o(e,t,29)^a(t,e,6);return r<0&&(r+=4294967296),r}function k(t,e){var r=s(t,e,19)^s(e,t,29)^h(t,e,6);return r<0&&(r+=4294967296),r}i.inherits(y,m),t.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(t,e){for(var r=this.W,i=0;i<32;i++)r[i]=t[e+i];for(;i<r.length;i+=2){var n=B(r[i-4],r[i-3]),f=k(r[i-4],r[i-3]),o=r[i-14],s=r[i-13],a=R(r[i-30],r[i-29]),h=P(r[i-30],r[i-29]),u=r[i-32],d=r[i-31];r[i]=l(n,f,o,s,a,h,u,d),r[i+1]=b(n,f,o,s,a,h,u,d)}},y.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,i=this.h[0],n=this.h[1],o=this.h[2],s=this.h[3],a=this.h[4],h=this.h[5],l=this.h[6],b=this.h[7],m=this.h[8],v=this.h[9],y=this.h[10],R=this.h[11],P=this.h[12],B=this.h[13],k=this.h[14],T=this.h[15];f(this.k.length===r.length);for(var q=0;q<r.length;q+=2){var U=k,z=T,N=E(m,v),O=I(m,v),L=w(m,v,y,R,P),C=M(m,v,y,R,P,B),j=this.k[q],F=this.k[q+1],D=r[q],Y=r[q+1],H=p(U,z,N,O,L,C,j,F,D,Y),K=g(U,z,N,O,L,C,j,F,D,Y);U=S(i,n),z=x(i,n),N=_(i,n,o,s,a),O=A(i,n,o,s,a,h);var J=d(U,z,N,O),Z=c(U,z,N,O);k=P,T=B,P=y,B=R,y=m,R=v,m=d(l,b,H,K),v=c(b,b,H,K),l=a,b=h,a=o,h=s,o=i,s=n,i=d(H,K,J,Z),n=c(H,K,J,Z)}u(this.h,0,i,n),u(this.h,2,o,s),u(this.h,4,a,h),u(this.h,6,l,b),u(this.h,8,m,v),u(this.h,10,y,R),u(this.h,12,P,B),u(this.h,14,k,T)},y.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(t,e,r){!function(t){"use strict";var e=function(t){var e,r=new Float64Array(16);if(t)for(e=0;e<t.length;e++)r[e]=t[e];return r},i=function(){throw new Error("no PRNG")},n=new Uint8Array(16),f=new Uint8Array(32);f[0]=9;var o=e(),s=e([1]),a=e([56129,1]),h=e([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=e([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),d=e([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),c=e([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),l=e([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function b(t,e,r,i){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r,t[e+4]=i>>24&255,t[e+5]=i>>16&255,t[e+6]=i>>8&255,t[e+7]=255&i}function p(t,e,r,i,n){var f,o=0;for(f=0;f<n;f++)o|=t[e+f]^r[i+f];return(1&o-1>>>8)-1}function g(t,e,r,i){return p(t,e,r,i,16)}function m(t,e,r,i){return p(t,e,r,i,32)}function v(t,e,r,i){!function(t,e,r,i){for(var n,f=255&i[0]|(255&i[1])<<8|(255&i[2])<<16|(255&i[3])<<24,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,a=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,h=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,u=255&i[4]|(255&i[5])<<8|(255&i[6])<<16|(255&i[7])<<24,d=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,c=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,l=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,b=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,p=255&i[8]|(255&i[9])<<8|(255&i[10])<<16|(255&i[11])<<24,g=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,v=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,y=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&i[12]|(255&i[13])<<8|(255&i[14])<<16|(255&i[15])<<24,M=f,_=o,A=s,S=a,x=h,E=u,I=d,R=c,P=l,B=b,k=p,T=g,q=m,U=v,z=y,N=w,O=0;O<20;O+=2)M^=(n=(q^=(n=(P^=(n=(x^=(n=M+q|0)<<7|n>>>25)+M|0)<<9|n>>>23)+x|0)<<13|n>>>19)+P|0)<<18|n>>>14,E^=(n=(_^=(n=(U^=(n=(B^=(n=E+_|0)<<7|n>>>25)+E|0)<<9|n>>>23)+B|0)<<13|n>>>19)+U|0)<<18|n>>>14,k^=(n=(I^=(n=(A^=(n=(z^=(n=k+I|0)<<7|n>>>25)+k|0)<<9|n>>>23)+z|0)<<13|n>>>19)+A|0)<<18|n>>>14,N^=(n=(T^=(n=(R^=(n=(S^=(n=N+T|0)<<7|n>>>25)+N|0)<<9|n>>>23)+S|0)<<13|n>>>19)+R|0)<<18|n>>>14,M^=(n=(S^=(n=(A^=(n=(_^=(n=M+S|0)<<7|n>>>25)+M|0)<<9|n>>>23)+_|0)<<13|n>>>19)+A|0)<<18|n>>>14,E^=(n=(x^=(n=(R^=(n=(I^=(n=E+x|0)<<7|n>>>25)+E|0)<<9|n>>>23)+I|0)<<13|n>>>19)+R|0)<<18|n>>>14,k^=(n=(B^=(n=(P^=(n=(T^=(n=k+B|0)<<7|n>>>25)+k|0)<<9|n>>>23)+T|0)<<13|n>>>19)+P|0)<<18|n>>>14,N^=(n=(z^=(n=(U^=(n=(q^=(n=N+z|0)<<7|n>>>25)+N|0)<<9|n>>>23)+q|0)<<13|n>>>19)+U|0)<<18|n>>>14;M=M+f|0,_=_+o|0,A=A+s|0,S=S+a|0,x=x+h|0,E=E+u|0,I=I+d|0,R=R+c|0,P=P+l|0,B=B+b|0,k=k+p|0,T=T+g|0,q=q+m|0,U=U+v|0,z=z+y|0,N=N+w|0,t[0]=M>>>0&255,t[1]=M>>>8&255,t[2]=M>>>16&255,t[3]=M>>>24&255,t[4]=_>>>0&255,t[5]=_>>>8&255,t[6]=_>>>16&255,t[7]=_>>>24&255,t[8]=A>>>0&255,t[9]=A>>>8&255,t[10]=A>>>16&255,t[11]=A>>>24&255,t[12]=S>>>0&255,t[13]=S>>>8&255,t[14]=S>>>16&255,t[15]=S>>>24&255,t[16]=x>>>0&255,t[17]=x>>>8&255,t[18]=x>>>16&255,t[19]=x>>>24&255,t[20]=E>>>0&255,t[21]=E>>>8&255,t[22]=E>>>16&255,t[23]=E>>>24&255,t[24]=I>>>0&255,t[25]=I>>>8&255,t[26]=I>>>16&255,t[27]=I>>>24&255,t[28]=R>>>0&255,t[29]=R>>>8&255,t[30]=R>>>16&255,t[31]=R>>>24&255,t[32]=P>>>0&255,t[33]=P>>>8&255,t[34]=P>>>16&255,t[35]=P>>>24&255,t[36]=B>>>0&255,t[37]=B>>>8&255,t[38]=B>>>16&255,t[39]=B>>>24&255,t[40]=k>>>0&255,t[41]=k>>>8&255,t[42]=k>>>16&255,t[43]=k>>>24&255,t[44]=T>>>0&255,t[45]=T>>>8&255,t[46]=T>>>16&255,t[47]=T>>>24&255,t[48]=q>>>0&255,t[49]=q>>>8&255,t[50]=q>>>16&255,t[51]=q>>>24&255,t[52]=U>>>0&255,t[53]=U>>>8&255,t[54]=U>>>16&255,t[55]=U>>>24&255,t[56]=z>>>0&255,t[57]=z>>>8&255,t[58]=z>>>16&255,t[59]=z>>>24&255,t[60]=N>>>0&255,t[61]=N>>>8&255,t[62]=N>>>16&255,t[63]=N>>>24&255}(t,e,r,i)}function y(t,e,r,i){!function(t,e,r,i){for(var n,f=255&i[0]|(255&i[1])<<8|(255&i[2])<<16|(255&i[3])<<24,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,a=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,h=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,u=255&i[4]|(255&i[5])<<8|(255&i[6])<<16|(255&i[7])<<24,d=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,c=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,l=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,b=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,p=255&i[8]|(255&i[9])<<8|(255&i[10])<<16|(255&i[11])<<24,g=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,v=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,y=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&i[12]|(255&i[13])<<8|(255&i[14])<<16|(255&i[15])<<24,M=0;M<20;M+=2)f^=(n=(m^=(n=(l^=(n=(h^=(n=f+m|0)<<7|n>>>25)+f|0)<<9|n>>>23)+h|0)<<13|n>>>19)+l|0)<<18|n>>>14,u^=(n=(o^=(n=(v^=(n=(b^=(n=u+o|0)<<7|n>>>25)+u|0)<<9|n>>>23)+b|0)<<13|n>>>19)+v|0)<<18|n>>>14,p^=(n=(d^=(n=(s^=(n=(y^=(n=p+d|0)<<7|n>>>25)+p|0)<<9|n>>>23)+y|0)<<13|n>>>19)+s|0)<<18|n>>>14,w^=(n=(g^=(n=(c^=(n=(a^=(n=w+g|0)<<7|n>>>25)+w|0)<<9|n>>>23)+a|0)<<13|n>>>19)+c|0)<<18|n>>>14,f^=(n=(a^=(n=(s^=(n=(o^=(n=f+a|0)<<7|n>>>25)+f|0)<<9|n>>>23)+o|0)<<13|n>>>19)+s|0)<<18|n>>>14,u^=(n=(h^=(n=(c^=(n=(d^=(n=u+h|0)<<7|n>>>25)+u|0)<<9|n>>>23)+d|0)<<13|n>>>19)+c|0)<<18|n>>>14,p^=(n=(b^=(n=(l^=(n=(g^=(n=p+b|0)<<7|n>>>25)+p|0)<<9|n>>>23)+g|0)<<13|n>>>19)+l|0)<<18|n>>>14,w^=(n=(y^=(n=(v^=(n=(m^=(n=w+y|0)<<7|n>>>25)+w|0)<<9|n>>>23)+m|0)<<13|n>>>19)+v|0)<<18|n>>>14;t[0]=f>>>0&255,t[1]=f>>>8&255,t[2]=f>>>16&255,t[3]=f>>>24&255,t[4]=u>>>0&255,t[5]=u>>>8&255,t[6]=u>>>16&255,t[7]=u>>>24&255,t[8]=p>>>0&255,t[9]=p>>>8&255,t[10]=p>>>16&255,t[11]=p>>>24&255,t[12]=w>>>0&255,t[13]=w>>>8&255,t[14]=w>>>16&255,t[15]=w>>>24&255,t[16]=d>>>0&255,t[17]=d>>>8&255,t[18]=d>>>16&255,t[19]=d>>>24&255,t[20]=c>>>0&255,t[21]=c>>>8&255,t[22]=c>>>16&255,t[23]=c>>>24&255,t[24]=l>>>0&255,t[25]=l>>>8&255,t[26]=l>>>16&255,t[27]=l>>>24&255,t[28]=b>>>0&255,t[29]=b>>>8&255,t[30]=b>>>16&255,t[31]=b>>>24&255}(t,e,r,i)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function M(t,e,r,i,n,f,o){var s,a,h=new Uint8Array(16),u=new Uint8Array(64);for(a=0;a<16;a++)h[a]=0;for(a=0;a<8;a++)h[a]=f[a];for(;n>=64;){for(v(u,h,o,w),a=0;a<64;a++)t[e+a]=r[i+a]^u[a];for(s=1,a=8;a<16;a++)s=s+(255&h[a])|0,h[a]=255&s,s>>>=8;n-=64,e+=64,i+=64}if(n>0)for(v(u,h,o,w),a=0;a<n;a++)t[e+a]=r[i+a]^u[a];return 0}function _(t,e,r,i,n){var f,o,s=new Uint8Array(16),a=new Uint8Array(64);for(o=0;o<16;o++)s[o]=0;for(o=0;o<8;o++)s[o]=i[o];for(;r>=64;){for(v(a,s,n,w),o=0;o<64;o++)t[e+o]=a[o];for(f=1,o=8;o<16;o++)f=f+(255&s[o])|0,s[o]=255&f,f>>>=8;r-=64,e+=64}if(r>0)for(v(a,s,n,w),o=0;o<r;o++)t[e+o]=a[o];return 0}function A(t,e,r,i,n){var f=new Uint8Array(32);y(f,i,n,w);for(var o=new Uint8Array(8),s=0;s<8;s++)o[s]=i[s+16];return _(t,e,r,o,f)}function S(t,e,r,i,n,f,o){var s=new Uint8Array(32);y(s,f,o,w);for(var a=new Uint8Array(8),h=0;h<8;h++)a[h]=f[h+16];return M(t,e,r,i,n,a,s)}var x=function(t){var e,r,i,n,f,o,s,a;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,e=255&t[0]|(255&t[1])<<8,this.r[0]=8191&e,r=255&t[2]|(255&t[3])<<8,this.r[1]=8191&(e>>>13|r<<3),i=255&t[4]|(255&t[5])<<8,this.r[2]=7939&(r>>>10|i<<6),n=255&t[6]|(255&t[7])<<8,this.r[3]=8191&(i>>>7|n<<9),f=255&t[8]|(255&t[9])<<8,this.r[4]=255&(n>>>4|f<<12),this.r[5]=f>>>1&8190,o=255&t[10]|(255&t[11])<<8,this.r[6]=8191&(f>>>14|o<<2),s=255&t[12]|(255&t[13])<<8,this.r[7]=8065&(o>>>11|s<<5),a=255&t[14]|(255&t[15])<<8,this.r[8]=8191&(s>>>8|a<<8),this.r[9]=a>>>5&127,this.pad[0]=255&t[16]|(255&t[17])<<8,this.pad[1]=255&t[18]|(255&t[19])<<8,this.pad[2]=255&t[20]|(255&t[21])<<8,this.pad[3]=255&t[22]|(255&t[23])<<8,this.pad[4]=255&t[24]|(255&t[25])<<8,this.pad[5]=255&t[26]|(255&t[27])<<8,this.pad[6]=255&t[28]|(255&t[29])<<8,this.pad[7]=255&t[30]|(255&t[31])<<8};function E(t,e,r,i,n,f){var o=new x(f);return o.update(r,i,n),o.finish(t,e),0}function I(t,e,r,i,n,f){var o=new Uint8Array(16);return E(o,0,r,i,n,f),g(t,e,o,0)}function R(t,e,r,i,n){var f;if(r<32)return-1;for(S(t,0,e,0,r,i,n),E(t,16,t,32,r-32,t),f=0;f<16;f++)t[f]=0;return 0}function P(t,e,r,i,n){var f,o=new Uint8Array(32);if(r<32)return-1;if(A(o,0,32,i,n),0!==I(e,16,e,32,r-32,o))return-1;for(S(t,0,e,0,r,i,n),f=0;f<32;f++)t[f]=0;return 0}function B(t,e){var r;for(r=0;r<16;r++)t[r]=0|e[r]}function k(t){var e,r,i=1;for(e=0;e<16;e++)r=t[e]+i+65535,i=Math.floor(r/65536),t[e]=r-65536*i;t[0]+=i-1+37*(i-1)}function T(t,e,r){for(var i,n=~(r-1),f=0;f<16;f++)i=n&(t[f]^e[f]),t[f]^=i,e[f]^=i}function q(t,r){var i,n,f,o=e(),s=e();for(i=0;i<16;i++)s[i]=r[i];for(k(s),k(s),k(s),n=0;n<2;n++){for(o[0]=s[0]-65517,i=1;i<15;i++)o[i]=s[i]-65535-(o[i-1]>>16&1),o[i-1]&=65535;o[15]=s[15]-32767-(o[14]>>16&1),f=o[15]>>16&1,o[14]&=65535,T(s,o,1-f)}for(i=0;i<16;i++)t[2*i]=255&s[i],t[2*i+1]=s[i]>>8}function U(t,e){var r=new Uint8Array(32),i=new Uint8Array(32);return q(r,t),q(i,e),m(r,0,i,0)}function z(t){var e=new Uint8Array(32);return q(e,t),1&e[0]}function N(t,e){var r;for(r=0;r<16;r++)t[r]=e[2*r]+(e[2*r+1]<<8);t[15]&=32767}function O(t,e,r){for(var i=0;i<16;i++)t[i]=e[i]+r[i]}function L(t,e,r){for(var i=0;i<16;i++)t[i]=e[i]-r[i]}function C(t,e,r){var i,n,f=0,o=0,s=0,a=0,h=0,u=0,d=0,c=0,l=0,b=0,p=0,g=0,m=0,v=0,y=0,w=0,M=0,_=0,A=0,S=0,x=0,E=0,I=0,R=0,P=0,B=0,k=0,T=0,q=0,U=0,z=0,N=r[0],O=r[1],L=r[2],C=r[3],j=r[4],F=r[5],D=r[6],Y=r[7],H=r[8],K=r[9],J=r[10],Z=r[11],X=r[12],V=r[13],W=r[14],G=r[15];f+=(i=e[0])*N,o+=i*O,s+=i*L,a+=i*C,h+=i*j,u+=i*F,d+=i*D,c+=i*Y,l+=i*H,b+=i*K,p+=i*J,g+=i*Z,m+=i*X,v+=i*V,y+=i*W,w+=i*G,o+=(i=e[1])*N,s+=i*O,a+=i*L,h+=i*C,u+=i*j,d+=i*F,c+=i*D,l+=i*Y,b+=i*H,p+=i*K,g+=i*J,m+=i*Z,v+=i*X,y+=i*V,w+=i*W,M+=i*G,s+=(i=e[2])*N,a+=i*O,h+=i*L,u+=i*C,d+=i*j,c+=i*F,l+=i*D,b+=i*Y,p+=i*H,g+=i*K,m+=i*J,v+=i*Z,y+=i*X,w+=i*V,M+=i*W,_+=i*G,a+=(i=e[3])*N,h+=i*O,u+=i*L,d+=i*C,c+=i*j,l+=i*F,b+=i*D,p+=i*Y,g+=i*H,m+=i*K,v+=i*J,y+=i*Z,w+=i*X,M+=i*V,_+=i*W,A+=i*G,h+=(i=e[4])*N,u+=i*O,d+=i*L,c+=i*C,l+=i*j,b+=i*F,p+=i*D,g+=i*Y,m+=i*H,v+=i*K,y+=i*J,w+=i*Z,M+=i*X,_+=i*V,A+=i*W,S+=i*G,u+=(i=e[5])*N,d+=i*O,c+=i*L,l+=i*C,b+=i*j,p+=i*F,g+=i*D,m+=i*Y,v+=i*H,y+=i*K,w+=i*J,M+=i*Z,_+=i*X,A+=i*V,S+=i*W,x+=i*G,d+=(i=e[6])*N,c+=i*O,l+=i*L,b+=i*C,p+=i*j,g+=i*F,m+=i*D,v+=i*Y,y+=i*H,w+=i*K,M+=i*J,_+=i*Z,A+=i*X,S+=i*V,x+=i*W,E+=i*G,c+=(i=e[7])*N,l+=i*O,b+=i*L,p+=i*C,g+=i*j,m+=i*F,v+=i*D,y+=i*Y,w+=i*H,M+=i*K,_+=i*J,A+=i*Z,S+=i*X,x+=i*V,E+=i*W,I+=i*G,l+=(i=e[8])*N,b+=i*O,p+=i*L,g+=i*C,m+=i*j,v+=i*F,y+=i*D,w+=i*Y,M+=i*H,_+=i*K,A+=i*J,S+=i*Z,x+=i*X,E+=i*V,I+=i*W,R+=i*G,b+=(i=e[9])*N,p+=i*O,g+=i*L,m+=i*C,v+=i*j,y+=i*F,w+=i*D,M+=i*Y,_+=i*H,A+=i*K,S+=i*J,x+=i*Z,E+=i*X,I+=i*V,R+=i*W,P+=i*G,p+=(i=e[10])*N,g+=i*O,m+=i*L,v+=i*C,y+=i*j,w+=i*F,M+=i*D,_+=i*Y,A+=i*H,S+=i*K,x+=i*J,E+=i*Z,I+=i*X,R+=i*V,P+=i*W,B+=i*G,g+=(i=e[11])*N,m+=i*O,v+=i*L,y+=i*C,w+=i*j,M+=i*F,_+=i*D,A+=i*Y,S+=i*H,x+=i*K,E+=i*J,I+=i*Z,R+=i*X,P+=i*V,B+=i*W,k+=i*G,m+=(i=e[12])*N,v+=i*O,y+=i*L,w+=i*C,M+=i*j,_+=i*F,A+=i*D,S+=i*Y,x+=i*H,E+=i*K,I+=i*J,R+=i*Z,P+=i*X,B+=i*V,k+=i*W,T+=i*G,v+=(i=e[13])*N,y+=i*O,w+=i*L,M+=i*C,_+=i*j,A+=i*F,S+=i*D,x+=i*Y,E+=i*H,I+=i*K,R+=i*J,P+=i*Z,B+=i*X,k+=i*V,T+=i*W,q+=i*G,y+=(i=e[14])*N,w+=i*O,M+=i*L,_+=i*C,A+=i*j,S+=i*F,x+=i*D,E+=i*Y,I+=i*H,R+=i*K,P+=i*J,B+=i*Z,k+=i*X,T+=i*V,q+=i*W,U+=i*G,w+=(i=e[15])*N,o+=38*(_+=i*L),s+=38*(A+=i*C),a+=38*(S+=i*j),h+=38*(x+=i*F),u+=38*(E+=i*D),d+=38*(I+=i*Y),c+=38*(R+=i*H),l+=38*(P+=i*K),b+=38*(B+=i*J),p+=38*(k+=i*Z),g+=38*(T+=i*X),m+=38*(q+=i*V),v+=38*(U+=i*W),y+=38*(z+=i*G),f=(i=(f+=38*(M+=i*O))+(n=1)+65535)-65536*(n=Math.floor(i/65536)),o=(i=o+n+65535)-65536*(n=Math.floor(i/65536)),s=(i=s+n+65535)-65536*(n=Math.floor(i/65536)),a=(i=a+n+65535)-65536*(n=Math.floor(i/65536)),h=(i=h+n+65535)-65536*(n=Math.floor(i/65536)),u=(i=u+n+65535)-65536*(n=Math.floor(i/65536)),d=(i=d+n+65535)-65536*(n=Math.floor(i/65536)),c=(i=c+n+65535)-65536*(n=Math.floor(i/65536)),l=(i=l+n+65535)-65536*(n=Math.floor(i/65536)),b=(i=b+n+65535)-65536*(n=Math.floor(i/65536)),p=(i=p+n+65535)-65536*(n=Math.floor(i/65536)),g=(i=g+n+65535)-65536*(n=Math.floor(i/65536)),m=(i=m+n+65535)-65536*(n=Math.floor(i/65536)),v=(i=v+n+65535)-65536*(n=Math.floor(i/65536)),y=(i=y+n+65535)-65536*(n=Math.floor(i/65536)),w=(i=w+n+65535)-65536*(n=Math.floor(i/65536)),f=(i=(f+=n-1+37*(n-1))+(n=1)+65535)-65536*(n=Math.floor(i/65536)),o=(i=o+n+65535)-65536*(n=Math.floor(i/65536)),s=(i=s+n+65535)-65536*(n=Math.floor(i/65536)),a=(i=a+n+65535)-65536*(n=Math.floor(i/65536)),h=(i=h+n+65535)-65536*(n=Math.floor(i/65536)),u=(i=u+n+65535)-65536*(n=Math.floor(i/65536)),d=(i=d+n+65535)-65536*(n=Math.floor(i/65536)),c=(i=c+n+65535)-65536*(n=Math.floor(i/65536)),l=(i=l+n+65535)-65536*(n=Math.floor(i/65536)),b=(i=b+n+65535)-65536*(n=Math.floor(i/65536)),p=(i=p+n+65535)-65536*(n=Math.floor(i/65536)),g=(i=g+n+65535)-65536*(n=Math.floor(i/65536)),m=(i=m+n+65535)-65536*(n=Math.floor(i/65536)),v=(i=v+n+65535)-65536*(n=Math.floor(i/65536)),y=(i=y+n+65535)-65536*(n=Math.floor(i/65536)),w=(i=w+n+65535)-65536*(n=Math.floor(i/65536)),f+=n-1+37*(n-1),t[0]=f,t[1]=o,t[2]=s,t[3]=a,t[4]=h,t[5]=u,t[6]=d,t[7]=c,t[8]=l,t[9]=b,t[10]=p,t[11]=g,t[12]=m,t[13]=v,t[14]=y,t[15]=w}function j(t,e){C(t,e,e)}function F(t,r){var i,n=e();for(i=0;i<16;i++)n[i]=r[i];for(i=253;i>=0;i--)j(n,n),2!==i&&4!==i&&C(n,n,r);for(i=0;i<16;i++)t[i]=n[i]}function D(t,r,i){var n,f,o=new Uint8Array(32),s=new Float64Array(80),h=e(),u=e(),d=e(),c=e(),l=e(),b=e();for(f=0;f<31;f++)o[f]=r[f];for(o[31]=127&r[31]|64,o[0]&=248,N(s,i),f=0;f<16;f++)u[f]=s[f],c[f]=h[f]=d[f]=0;for(h[0]=c[0]=1,f=254;f>=0;--f)T(h,u,n=o[f>>>3]>>>(7&f)&1),T(d,c,n),O(l,h,d),L(h,h,d),O(d,u,c),L(u,u,c),j(c,l),j(b,h),C(h,d,h),C(d,u,l),O(l,h,d),L(h,h,d),j(u,h),L(d,c,b),C(h,d,a),O(h,h,c),C(d,d,h),C(h,c,b),C(c,u,s),j(u,l),T(h,u,n),T(d,c,n);for(f=0;f<16;f++)s[f+16]=h[f],s[f+32]=d[f],s[f+48]=u[f],s[f+64]=c[f];var p=s.subarray(32),g=s.subarray(16);return F(p,p),C(g,g,p),q(t,g),0}function Y(t,e){return D(t,e,f)}function H(t,e){return i(e,32),Y(t,e)}function K(t,e,r){var i=new Uint8Array(32);return D(i,r,e),y(t,n,i,w)}x.prototype.blocks=function(t,e,r){for(var i,n,f,o,s,a,h,u,d,c,l,b,p,g,m,v,y,w,M,_=this.fin?0:2048,A=this.h[0],S=this.h[1],x=this.h[2],E=this.h[3],I=this.h[4],R=this.h[5],P=this.h[6],B=this.h[7],k=this.h[8],T=this.h[9],q=this.r[0],U=this.r[1],z=this.r[2],N=this.r[3],O=this.r[4],L=this.r[5],C=this.r[6],j=this.r[7],F=this.r[8],D=this.r[9];r>=16;)c=d=0,c+=(A+=8191&(i=255&t[e+0]|(255&t[e+1])<<8))*q,c+=(S+=8191&(i>>>13|(n=255&t[e+2]|(255&t[e+3])<<8)<<3))*(5*D),c+=(x+=8191&(n>>>10|(f=255&t[e+4]|(255&t[e+5])<<8)<<6))*(5*F),c+=(E+=8191&(f>>>7|(o=255&t[e+6]|(255&t[e+7])<<8)<<9))*(5*j),d=(c+=(I+=8191&(o>>>4|(s=255&t[e+8]|(255&t[e+9])<<8)<<12))*(5*C))>>>13,c&=8191,c+=(R+=s>>>1&8191)*(5*L),c+=(P+=8191&(s>>>14|(a=255&t[e+10]|(255&t[e+11])<<8)<<2))*(5*O),c+=(B+=8191&(a>>>11|(h=255&t[e+12]|(255&t[e+13])<<8)<<5))*(5*N),c+=(k+=8191&(h>>>8|(u=255&t[e+14]|(255&t[e+15])<<8)<<8))*(5*z),l=d+=(c+=(T+=u>>>5|_)*(5*U))>>>13,l+=A*U,l+=S*q,l+=x*(5*D),l+=E*(5*F),d=(l+=I*(5*j))>>>13,l&=8191,l+=R*(5*C),l+=P*(5*L),l+=B*(5*O),l+=k*(5*N),d+=(l+=T*(5*z))>>>13,l&=8191,b=d,b+=A*z,b+=S*U,b+=x*q,b+=E*(5*D),d=(b+=I*(5*F))>>>13,b&=8191,b+=R*(5*j),b+=P*(5*C),b+=B*(5*L),b+=k*(5*O),p=d+=(b+=T*(5*N))>>>13,p+=A*N,p+=S*z,p+=x*U,p+=E*q,d=(p+=I*(5*D))>>>13,p&=8191,p+=R*(5*F),p+=P*(5*j),p+=B*(5*C),p+=k*(5*L),g=d+=(p+=T*(5*O))>>>13,g+=A*O,g+=S*N,g+=x*z,g+=E*U,d=(g+=I*q)>>>13,g&=8191,g+=R*(5*D),g+=P*(5*F),g+=B*(5*j),g+=k*(5*C),m=d+=(g+=T*(5*L))>>>13,m+=A*L,m+=S*O,m+=x*N,m+=E*z,d=(m+=I*U)>>>13,m&=8191,m+=R*q,m+=P*(5*D),m+=B*(5*F),m+=k*(5*j),v=d+=(m+=T*(5*C))>>>13,v+=A*C,v+=S*L,v+=x*O,v+=E*N,d=(v+=I*z)>>>13,v&=8191,v+=R*U,v+=P*q,v+=B*(5*D),v+=k*(5*F),y=d+=(v+=T*(5*j))>>>13,y+=A*j,y+=S*C,y+=x*L,y+=E*O,d=(y+=I*N)>>>13,y&=8191,y+=R*z,y+=P*U,y+=B*q,y+=k*(5*D),w=d+=(y+=T*(5*F))>>>13,w+=A*F,w+=S*j,w+=x*C,w+=E*L,d=(w+=I*O)>>>13,w&=8191,w+=R*N,w+=P*z,w+=B*U,w+=k*q,M=d+=(w+=T*(5*D))>>>13,M+=A*D,M+=S*F,M+=x*j,M+=E*C,d=(M+=I*L)>>>13,M&=8191,M+=R*O,M+=P*N,M+=B*z,M+=k*U,A=c=8191&(d=(d=((d+=(M+=T*q)>>>13)<<2)+d|0)+(c&=8191)|0),S=l+=d>>>=13,x=b&=8191,E=p&=8191,I=g&=8191,R=m&=8191,P=v&=8191,B=y&=8191,k=w&=8191,T=M&=8191,e+=16,r-=16;this.h[0]=A,this.h[1]=S,this.h[2]=x,this.h[3]=E,this.h[4]=I,this.h[5]=R,this.h[6]=P,this.h[7]=B,this.h[8]=k,this.h[9]=T},x.prototype.finish=function(t,e){var r,i,n,f,o=new Uint16Array(10);if(this.leftover){for(f=this.leftover,this.buffer[f++]=1;f<16;f++)this.buffer[f]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,f=2;f<10;f++)this.h[f]+=r,r=this.h[f]>>>13,this.h[f]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,o[0]=this.h[0]+5,r=o[0]>>>13,o[0]&=8191,f=1;f<10;f++)o[f]=this.h[f]+r,r=o[f]>>>13,o[f]&=8191;for(o[9]-=8192,i=(1^r)-1,f=0;f<10;f++)o[f]&=i;for(i=~i,f=0;f<10;f++)this.h[f]=this.h[f]&i|o[f];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),n=this.h[0]+this.pad[0],this.h[0]=65535&n,f=1;f<8;f++)n=(this.h[f]+this.pad[f]|0)+(n>>>16)|0,this.h[f]=65535&n;t[e+0]=this.h[0]>>>0&255,t[e+1]=this.h[0]>>>8&255,t[e+2]=this.h[1]>>>0&255,t[e+3]=this.h[1]>>>8&255,t[e+4]=this.h[2]>>>0&255,t[e+5]=this.h[2]>>>8&255,t[e+6]=this.h[3]>>>0&255,t[e+7]=this.h[3]>>>8&255,t[e+8]=this.h[4]>>>0&255,t[e+9]=this.h[4]>>>8&255,t[e+10]=this.h[5]>>>0&255,t[e+11]=this.h[5]>>>8&255,t[e+12]=this.h[6]>>>0&255,t[e+13]=this.h[6]>>>8&255,t[e+14]=this.h[7]>>>0&255,t[e+15]=this.h[7]>>>8&255},x.prototype.update=function(t,e,r){var i,n;if(this.leftover){for((n=16-this.leftover)>r&&(n=r),i=0;i<n;i++)this.buffer[this.leftover+i]=t[e+i];if(r-=n,e+=n,this.leftover+=n,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(n=r-r%16,this.blocks(t,e,n),e+=n,r-=n),r){for(i=0;i<r;i++)this.buffer[this.leftover+i]=t[e+i];this.leftover+=r}};var J=R,Z=P;var X=[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];function V(t,e,r,i){for(var n,f,o,s,a,h,u,d,c,l,b,p,g,m,v,y,w,M,_,A,S,x,E,I,R,P,B=new Int32Array(16),k=new Int32Array(16),T=t[0],q=t[1],U=t[2],z=t[3],N=t[4],O=t[5],L=t[6],C=t[7],j=e[0],F=e[1],D=e[2],Y=e[3],H=e[4],K=e[5],J=e[6],Z=e[7],V=0;i>=128;){for(_=0;_<16;_++)A=8*_+V,B[_]=r[A+0]<<24|r[A+1]<<16|r[A+2]<<8|r[A+3],k[_]=r[A+4]<<24|r[A+5]<<16|r[A+6]<<8|r[A+7];for(_=0;_<80;_++)if(n=T,f=q,o=U,s=z,a=N,h=O,u=L,C,c=j,l=F,b=D,p=Y,g=H,m=K,v=J,Z,E=65535&(x=Z),I=x>>>16,R=65535&(S=C),P=S>>>16,E+=65535&(x=(H>>>14|N<<18)^(H>>>18|N<<14)^(N>>>9|H<<23)),I+=x>>>16,R+=65535&(S=(N>>>14|H<<18)^(N>>>18|H<<14)^(H>>>9|N<<23)),P+=S>>>16,E+=65535&(x=H&K^~H&J),I+=x>>>16,R+=65535&(S=N&O^~N&L),P+=S>>>16,S=X[2*_],E+=65535&(x=X[2*_+1]),I+=x>>>16,R+=65535&S,P+=S>>>16,S=B[_%16],I+=(x=k[_%16])>>>16,R+=65535&S,P+=S>>>16,R+=(I+=(E+=65535&x)>>>16)>>>16,E=65535&(x=M=65535&E|I<<16),I=x>>>16,R=65535&(S=w=65535&R|(P+=R>>>16)<<16),P=S>>>16,E+=65535&(x=(j>>>28|T<<4)^(T>>>2|j<<30)^(T>>>7|j<<25)),I+=x>>>16,R+=65535&(S=(T>>>28|j<<4)^(j>>>2|T<<30)^(j>>>7|T<<25)),P+=S>>>16,I+=(x=j&F^j&D^F&D)>>>16,R+=65535&(S=T&q^T&U^q&U),P+=S>>>16,d=65535&(R+=(I+=(E+=65535&x)>>>16)>>>16)|(P+=R>>>16)<<16,y=65535&E|I<<16,E=65535&(x=p),I=x>>>16,R=65535&(S=s),P=S>>>16,I+=(x=M)>>>16,R+=65535&(S=w),P+=S>>>16,q=n,U=f,z=o,N=s=65535&(R+=(I+=(E+=65535&x)>>>16)>>>16)|(P+=R>>>16)<<16,O=a,L=h,C=u,T=d,F=c,D=l,Y=b,H=p=65535&E|I<<16,K=g,J=m,Z=v,j=y,_%16==15)for(A=0;A<16;A++)S=B[A],E=65535&(x=k[A]),I=x>>>16,R=65535&S,P=S>>>16,S=B[(A+9)%16],E+=65535&(x=k[(A+9)%16]),I+=x>>>16,R+=65535&S,P+=S>>>16,w=B[(A+1)%16],E+=65535&(x=((M=k[(A+1)%16])>>>1|w<<31)^(M>>>8|w<<24)^(M>>>7|w<<25)),I+=x>>>16,R+=65535&(S=(w>>>1|M<<31)^(w>>>8|M<<24)^w>>>7),P+=S>>>16,w=B[(A+14)%16],I+=(x=((M=k[(A+14)%16])>>>19|w<<13)^(w>>>29|M<<3)^(M>>>6|w<<26))>>>16,R+=65535&(S=(w>>>19|M<<13)^(M>>>29|w<<3)^w>>>6),P+=S>>>16,P+=(R+=(I+=(E+=65535&x)>>>16)>>>16)>>>16,B[A]=65535&R|P<<16,k[A]=65535&E|I<<16;E=65535&(x=j),I=x>>>16,R=65535&(S=T),P=S>>>16,S=t[0],I+=(x=e[0])>>>16,R+=65535&S,P+=S>>>16,P+=(R+=(I+=(E+=65535&x)>>>16)>>>16)>>>16,t[0]=T=65535&R|P<<16,e[0]=j=65535&E|I<<16,E=65535&(x=F),I=x>>>16,R=65535&(S=q),P=S>>>16,S=t[1],I+=(x=e[1])>>>16,R+=65535&S,P+=S>>>16,P+=(R+=(I+=(E+=65535&x)>>>16)>>>16)>>>16,t[1]=q=65535&R|P<<16,e[1]=F=65535&E|I<<16,E=65535&(x=D),I=x>>>16,R=65535&(S=U),P=S>>>16,S=t[2],I+=(x=e[2])>>>16,R+=65535&S,P+=S>>>16,P+=(R+=(I+=(E+=65535&x)>>>16)>>>16)>>>16,t[2]=U=65535&R|P<<16,e[2]=D=65535&E|I<<16,E=65535&(x=Y),I=x>>>16,R=65535&(S=z),P=S>>>16,S=t[3],I+=(x=e[3])>>>16,R+=65535&S,P+=S>>>16,P+=(R+=(I+=(E+=65535&x)>>>16)>>>16)>>>16,t[3]=z=65535&R|P<<16,e[3]=Y=65535&E|I<<16,E=65535&(x=H),I=x>>>16,R=65535&(S=N),P=S>>>16,S=t[4],I+=(x=e[4])>>>16,R+=65535&S,P+=S>>>16,P+=(R+=(I+=(E+=65535&x)>>>16)>>>16)>>>16,t[4]=N=65535&R|P<<16,e[4]=H=65535&E|I<<16,E=65535&(x=K),I=x>>>16,R=65535&(S=O),P=S>>>16,S=t[5],I+=(x=e[5])>>>16,R+=65535&S,P+=S>>>16,P+=(R+=(I+=(E+=65535&x)>>>16)>>>16)>>>16,t[5]=O=65535&R|P<<16,e[5]=K=65535&E|I<<16,E=65535&(x=J),I=x>>>16,R=65535&(S=L),P=S>>>16,S=t[6],I+=(x=e[6])>>>16,R+=65535&S,P+=S>>>16,P+=(R+=(I+=(E+=65535&x)>>>16)>>>16)>>>16,t[6]=L=65535&R|P<<16,e[6]=J=65535&E|I<<16,E=65535&(x=Z),I=x>>>16,R=65535&(S=C),P=S>>>16,S=t[7],I+=(x=e[7])>>>16,R+=65535&S,P+=S>>>16,P+=(R+=(I+=(E+=65535&x)>>>16)>>>16)>>>16,t[7]=C=65535&R|P<<16,e[7]=Z=65535&E|I<<16,V+=128,i-=128}return i}function W(t,e,r){var i,n=new Int32Array(8),f=new Int32Array(8),o=new Uint8Array(256),s=r;for(n[0]=1779033703,n[1]=3144134277,n[2]=1013904242,n[3]=2773480762,n[4]=1359893119,n[5]=2600822924,n[6]=528734635,n[7]=1541459225,f[0]=4089235720,f[1]=2227873595,f[2]=4271175723,f[3]=1595750129,f[4]=2917565137,f[5]=725511199,f[6]=4215389547,f[7]=327033209,V(n,f,e,r),r%=128,i=0;i<r;i++)o[i]=e[s-r+i];for(o[r]=128,o[(r=256-128*(r<112?1:0))-9]=0,b(o,r-8,s/536870912|0,s<<3),V(n,f,o,r),i=0;i<8;i++)b(t,8*i,n[i],f[i]);return 0}function G(t,r){var i=e(),n=e(),f=e(),o=e(),s=e(),a=e(),h=e(),d=e(),c=e();L(i,t[1],t[0]),L(c,r[1],r[0]),C(i,i,c),O(n,t[0],t[1]),O(c,r[0],r[1]),C(n,n,c),C(f,t[3],r[3]),C(f,f,u),C(o,t[2],r[2]),O(o,o,o),L(s,n,i),L(a,o,f),O(h,o,f),O(d,n,i),C(t[0],s,a),C(t[1],d,h),C(t[2],h,a),C(t[3],s,d)}function Q(t,e,r){var i;for(i=0;i<4;i++)T(t[i],e[i],r)}function $(t,r){var i=e(),n=e(),f=e();F(f,r[2]),C(i,r[0],f),C(n,r[1],f),q(t,n),t[31]^=z(i)<<7}function tt(t,e,r){var i,n;for(B(t[0],o),B(t[1],s),B(t[2],s),B(t[3],o),n=255;n>=0;--n)Q(t,e,i=r[n/8|0]>>(7&n)&1),G(e,t),G(t,t),Q(t,e,i)}function et(t,r){var i=[e(),e(),e(),e()];B(i[0],d),B(i[1],c),B(i[2],s),C(i[3],d,c),tt(t,i,r)}function rt(t,r,n){var f,o=new Uint8Array(64),s=[e(),e(),e(),e()];for(n||i(r,32),W(o,r,32),o[0]&=248,o[31]&=127,o[31]|=64,et(s,o),$(t,s),f=0;f<32;f++)r[f+32]=t[f];return 0}var it=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function nt(t,e){var r,i,n,f;for(i=63;i>=32;--i){for(r=0,n=i-32,f=i-12;n<f;++n)e[n]+=r-16*e[i]*it[n-(i-32)],r=e[n]+128>>8,e[n]-=256*r;e[n]+=r,e[i]=0}for(r=0,n=0;n<32;n++)e[n]+=r-(e[31]>>4)*it[n],r=e[n]>>8,e[n]&=255;for(n=0;n<32;n++)e[n]-=r*it[n];for(i=0;i<32;i++)e[i+1]+=e[i]>>8,t[i]=255&e[i]}function ft(t){var e,r=new Float64Array(64);for(e=0;e<64;e++)r[e]=t[e];for(e=0;e<64;e++)t[e]=0;nt(t,r)}function ot(t,r,i,n){var f,o,s=new Uint8Array(64),a=new Uint8Array(64),h=new Uint8Array(64),u=new Float64Array(64),d=[e(),e(),e(),e()];W(s,n,32),s[0]&=248,s[31]&=127,s[31]|=64;var c=i+64;for(f=0;f<i;f++)t[64+f]=r[f];for(f=0;f<32;f++)t[32+f]=s[32+f];for(W(h,t.subarray(32),i+32),ft(h),et(d,h),$(t,d),f=32;f<64;f++)t[f]=n[f];for(W(a,t,i+64),ft(a),f=0;f<64;f++)u[f]=0;for(f=0;f<32;f++)u[f]=h[f];for(f=0;f<32;f++)for(o=0;o<32;o++)u[f+o]+=a[f]*s[o];return nt(t.subarray(32),u),c}function st(t,r){var i=e(),n=e(),f=e(),a=e(),u=e(),d=e(),c=e();return B(t[2],s),N(t[1],r),j(f,t[1]),C(a,f,h),L(f,f,t[2]),O(a,t[2],a),j(u,a),j(d,u),C(c,d,u),C(i,c,f),C(i,i,a),function(t,r){var i,n=e();for(i=0;i<16;i++)n[i]=r[i];for(i=250;i>=0;i--)j(n,n),1!==i&&C(n,n,r);for(i=0;i<16;i++)t[i]=n[i]}(i,i),C(i,i,f),C(i,i,a),C(i,i,a),C(t[0],i,a),j(n,t[0]),C(n,n,a),U(n,f)&&C(t[0],t[0],l),j(n,t[0]),C(n,n,a),U(n,f)?-1:(z(t[0])===r[31]>>7&&L(t[0],o,t[0]),C(t[3],t[0],t[1]),0)}function at(t,r,i,n){var f,o=new Uint8Array(32),s=new Uint8Array(64),a=[e(),e(),e(),e()],h=[e(),e(),e(),e()];if(-1,i<64)return-1;if(st(h,n))return-1;for(f=0;f<i;f++)t[f]=r[f];for(f=0;f<32;f++)t[f+32]=n[f];if(W(s,t,i),ft(s),tt(a,h,s),et(h,r.subarray(32)),G(a,h),$(o,a),i-=64,m(r,0,o,0)){for(f=0;f<i;f++)t[f]=0;return-1}for(f=0;f<i;f++)t[f]=r[f+64];return i}var ht=32,ut=24,dt=32,ct=32,lt=ut;function bt(t,e){if(t.length!==ht)throw new Error("bad key size");if(e.length!==ut)throw new Error("bad nonce size")}function pt(){for(var t=0;t<arguments.length;t++)if(!(arguments[t]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function gt(t){for(var e=0;e<t.length;e++)t[e]=0}t.lowlevel={crypto_core_hsalsa20:y,crypto_stream_xor:S,crypto_stream:A,crypto_stream_salsa20_xor:M,crypto_stream_salsa20:_,crypto_onetimeauth:E,crypto_onetimeauth_verify:I,crypto_verify_16:g,crypto_verify_32:m,crypto_secretbox:R,crypto_secretbox_open:P,crypto_scalarmult:D,crypto_scalarmult_base:Y,crypto_box_beforenm:K,crypto_box_afternm:J,crypto_box:function(t,e,r,i,n,f){var o=new Uint8Array(32);return K(o,n,f),J(t,e,r,i,o)},crypto_box_open:function(t,e,r,i,n,f){var o=new Uint8Array(32);return K(o,n,f),Z(t,e,r,i,o)},crypto_box_keypair:H,crypto_hash:W,crypto_sign:ot,crypto_sign_keypair:rt,crypto_sign_open:at,crypto_secretbox_KEYBYTES:ht,crypto_secretbox_NONCEBYTES:ut,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:16,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:dt,crypto_box_SECRETKEYBYTES:ct,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:lt,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:64,crypto_sign_PUBLICKEYBYTES:32,crypto_sign_SECRETKEYBYTES:64,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64},t.randomBytes=function(t){var e=new Uint8Array(t);return i(e,t),e},t.secretbox=function(t,e,r){pt(t,e,r),bt(r,e);for(var i=new Uint8Array(32+t.length),n=new Uint8Array(i.length),f=0;f<t.length;f++)i[f+32]=t[f];return R(n,i,i.length,e,r),n.subarray(16)},t.secretbox.open=function(t,e,r){pt(t,e,r),bt(r,e);for(var i=new Uint8Array(16+t.length),n=new Uint8Array(i.length),f=0;f<t.length;f++)i[f+16]=t[f];return i.length<32?null:0!==P(n,i,i.length,e,r)?null:n.subarray(32)},t.secretbox.keyLength=ht,t.secretbox.nonceLength=ut,t.secretbox.overheadLength=16,t.scalarMult=function(t,e){if(pt(t,e),32!==t.length)throw new Error("bad n size");if(32!==e.length)throw new Error("bad p size");var r=new Uint8Array(32);return D(r,t,e),r},t.scalarMult.base=function(t){if(pt(t),32!==t.length)throw new Error("bad n size");var e=new Uint8Array(32);return Y(e,t),e},t.scalarMult.scalarLength=32,t.scalarMult.groupElementLength=32,t.box=function(e,r,i,n){var f=t.box.before(i,n);return t.secretbox(e,r,f)},t.box.before=function(t,e){pt(t,e),function(t,e){if(t.length!==dt)throw new Error("bad public key size");if(e.length!==ct)throw new Error("bad secret key size")}(t,e);var r=new Uint8Array(32);return K(r,t,e),r},t.box.after=t.secretbox,t.box.open=function(e,r,i,n){var f=t.box.before(i,n);return t.secretbox.open(e,r,f)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var t=new Uint8Array(dt),e=new Uint8Array(ct);return H(t,e),{publicKey:t,secretKey:e}},t.box.keyPair.fromSecretKey=function(t){if(pt(t),t.length!==ct)throw new Error("bad secret key size");var e=new Uint8Array(dt);return Y(e,t),{publicKey:e,secretKey:new Uint8Array(t)}},t.box.publicKeyLength=dt,t.box.secretKeyLength=ct,t.box.sharedKeyLength=32,t.box.nonceLength=lt,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(t,e){if(pt(t,e),64!==e.length)throw new Error("bad secret key size");var r=new Uint8Array(64+t.length);return ot(r,t,t.length,e),r},t.sign.open=function(t,e){if(pt(t,e),32!==e.length)throw new Error("bad public key size");var r=new Uint8Array(t.length),i=at(r,t,t.length,e);if(i<0)return null;for(var n=new Uint8Array(i),f=0;f<n.length;f++)n[f]=r[f];return n},t.sign.detached=function(e,r){for(var i=t.sign(e,r),n=new Uint8Array(64),f=0;f<n.length;f++)n[f]=i[f];return n},t.sign.detached.verify=function(t,e,r){if(pt(t,e,r),64!==e.length)throw new Error("bad signature size");if(32!==r.length)throw new Error("bad public key size");var i,n=new Uint8Array(64+t.length),f=new Uint8Array(64+t.length);for(i=0;i<64;i++)n[i]=e[i];for(i=0;i<t.length;i++)n[i+64]=t[i];return at(f,n,n.length,r)>=0},t.sign.keyPair=function(){var t=new Uint8Array(32),e=new Uint8Array(64);return rt(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(pt(t),64!==t.length)throw new Error("bad secret key size");for(var e=new Uint8Array(32),r=0;r<e.length;r++)e[r]=t[32+r];return{publicKey:e,secretKey:new Uint8Array(t)}},t.sign.keyPair.fromSeed=function(t){if(pt(t),32!==t.length)throw new Error("bad seed size");for(var e=new Uint8Array(32),r=new Uint8Array(64),i=0;i<32;i++)r[i]=t[i];return rt(e,r,!0),{publicKey:e,secretKey:r}},t.sign.publicKeyLength=32,t.sign.secretKeyLength=64,t.sign.seedLength=32,t.sign.signatureLength=64,t.hash=function(t){pt(t);var e=new Uint8Array(64);return W(e,t,t.length),e},t.hash.hashLength=64,t.verify=function(t,e){return pt(t,e),0!==t.length&&0!==e.length&&(t.length===e.length&&0===p(t,0,e,0,t.length))},t.setPRNG=function(t){i=t},function(){var e="undefined"!=typeof self?self.crypto||self.msCrypto:null;if(e&&e.getRandomValues){t.setPRNG(function(t,r){var i,n=new Uint8Array(r);for(i=0;i<r;i+=65536)e.getRandomValues(n.subarray(i,i+Math.min(r-i,65536)));for(i=0;i<r;i++)t[i]=n[i];gt(n)})}else(e=r(98))&&e.randomBytes&&t.setPRNG(function(t,r){var i,n=e.randomBytes(r);for(i=0;i<r;i++)t[i]=n[i];gt(n)})}()}(t.exports?t.exports:self.nacl=self.nacl||{})},function(t,e,r){(function(e){const i=r(12),n=r(0).ec,f=r(30),o=r(14),s=(r(101),new n("secp256k1"));class a{constructor(t,r=i.Ed25519){if(this.t=r,this.seckey=t,this.t===i.Ed25519){const r=f.sign.keyPair.fromSeed(t.slice(0,32));this.seckey=e.from(r.secretKey.buffer),this.pubkey=this.seckey.slice(this.seckey.length/2)}else if(this.t===i.Secp256k1){const r=s.keyFromPrivate(t);this.pubkey=e.from(r.getPublic(!0,"hex"),"hex"),this.seckey=t}var n;this.id=(n=this.pubkey,o.encode(n))}static newKeyPair(t=i.Ed25519){if(t===i.Ed25519){const r=f.sign.keyPair();return new a(e.from(r.secretKey.buffer),t)}if(t===i.Secp256k1){const r=s.genKeyPair(),i=e.from(r.getPrivate("hex"),"hex");return new a(i,t)}throw"invalid account type"}B58SecKey(){return o.encode(this.seckey)}B58PubKey(){return o.encode(this.pubkey)}}t.exports=a}).call(this,r(5).Buffer)},function(t,e,r){const{Tx:i}=r(10);t.exports=class{constructor(t,e){this.tx=t;let r=this;this.Pending=function(t){console.log("Pending... tx: "+t.hash+", "+JSON.stringify(r.tx.actions)),r.status="pending"},this.Success=function(t){console.log("Success... tx, receipt: "+JSON.stringify(t)),r.status="success"},this.Failed=function(t){console.log("Error... tx failed, res: "+JSON.stringify(t)+", tx: "+JSON.stringify(r.tx)),r.status="failed"},this._rpc=e,this._hash="",this.status="idle"}onPending(t){let e=this;return this.Pending=function(r){e.status="pending";try{let e=t(r);"object"==typeof e&&"function"==typeof e.catch&&e.catch(t=>console.error("on pending failed. ",t))}catch(t){console.error("on pending failed. ",t)}},this}onSuccess(t){let e=this;return this.Success=function(r){e.status="success";try{let e=t(r);"object"==typeof e&&"function"==typeof e.catch&&e.catch(t=>console.error("on success failed. ",t))}catch(t){console.error("on success failed. ",t)}},this}onFailed(t){let e=this;return this.Failed=function(r){e.status="failed";try{let e=t(r);"object"==typeof e&&"function"==typeof e.catch&&e.catch(t=>console.log("on failed failed. ",t))}catch(t){console.log("on failed failed. ",t)}},this}send(){let t=this;return t._rpc.transaction.sendTx(t.tx).then(function(e){t._hash=e.hash,t.Pending(e)}).catch(e=>{t.Failed("send tx failed. "+e)}),t}listen(t,e){t&&e||(t=1e3,e=90);let r=this,i=1,n=setInterval(function(){if("idle"!==r.status){if("success"===r.status||"failed"===r.status||i>parseInt(e))return clearInterval(n),void("success"!==r.status&&"failed"!==r.status&&i>parseInt(e)&&r.Failed("Error: tx "+r._hash+" on chain timeout."));i++,r._rpc.transaction.getTxReceiptByTxHash(r._hash).then(function(t){"SUCCESS"===t.status_code&&"pending"===r.status?r.Success(t):void 0!==t.status_code&&"pending"===r.status&&r.Failed(t)}).catch(function(t){})}},parseInt(t))}static SimpleTx(t,e,r,n){const f=new i(n.gasRatio,n.gasLimit,n.delay);return f.addAction(t,e,JSON.stringify(r)),f}}},function(t,e,r){const i=r(15),n=r(37),f=r(58),o=r(31),s=r(25),{Tx:a}=r(10),h=r(12),u=r(103),d=r(32),c=r(14);t.exports={IOST:f,RPC:i,HTTPProvider:n,KeyPair:o,Tx:a,Algorithm:h,Account:u,TxHandler:d,Bs58:c,Signature:s},"undefined"!=typeof window&&(window.IOST=t.exports)},function(t,e){t.exports=class{constructor(t){this._provider=t.getProvider()}getProvider(){return this._provider}getNodeInfo(){return this._provider.send("get","getNodeInfo")}}},function(t,e){t.exports=class{constructor(t){this._provider=t.getProvider()}getChainInfo(){return this._provider.send("get","getChainInfo")}getBlockByHash(t,e){const r="getBlockByHash/"+t+"/"+e;return this._provider.send("get",r)}getBlockByNum(t,e){const r="getBlockByNumber/"+t+"/"+e;return this._provider.send("get",r)}getBalance(t,e="iost",r=0){const i="getTokenBalance/"+t+"/"+e+"/"+r;return this._provider.send("get",i)}getToken721Balance(t,e,r=0){const i="getToken721Balance/"+t+"/"+e+"/"+r;return this._provider.send("get",i)}getToken721Metadata(t,e,r=0){const i="getToken721Metadata/"+t+"/"+e+"/"+r;return this._provider.send("get",i)}getToken721Owner(t,e,r=0){const i="getToken721Owner/"+t+"/"+e+"/"+r;return this._provider.send("get",i)}getContract(t,e=0){const r="getContract/"+t+"/"+e;return this._provider.send("get",r)}getContractStorage(t,e,r="",i=!1){"boolean"==typeof r&&(i=r,r="");const n={id:t,key:e,field:r,by_longest_chain:i};return this._provider.send("post","getContractStorage",n)}getContractStorageFields(t,e,r=!1){const i={id:t,key:e,by_longest_chain:r};return this._provider.send("post","getContractStorageFields",i)}getAccountInfo(t,e){const r="getAccount/"+t+"/"+(e?1:0);return this._provider.send("get",r)}getGasRatio(){return this._provider.send("get","getGasRatio")}getGasUsage(t){switch(t){case"transfer":return 7800;case"newAccount":return 115e3}}getExchangeContractInfo(){return{contractID:"ContractZGVqhY3c65xRs8aoC4dUdACVCKSwhMMsg2negSFxpr3",minAmount:100,initialRAM:1e3,initialGasPledged:10}}}},function(t,e){t.exports=class{constructor(t){this._provider=t.getProvider()}sendTx(t){return this._provider.send("post","sendTx",JSON.parse(JSON.stringify(t)))}getTxByHash(t){const e="getTxByHash/"+t;return this._provider.send("get",e)}getTxReceiptByHash(t){const e="getTxReceiptByHash/"+t;return this._provider.send("get",e)}getTxReceiptByTxHash(t){const e="getTxReceiptByTxHash/"+t;return this._provider.send("get",e)}}},function(t,e,r){const i=r(38);t.exports=class{constructor(t,e){this._host=t||"http://localhost:30000",this._timeout=e}send(t,e,r){const n={method:t,url:this._host+"/"+e,data:r,timeout:this._timeout,headers:{"Content-Type":"text/plain"}};return i(n).then(function(t){return t.data}).catch(t=>{throw void 0!==t.response?new Error("error: "+JSON.stringify(t.response.data)):new Error("error: "+t)})}}},function(t,e,r){t.exports=r(39)},function(t,e,r){"use strict";var i=r(1),n=r(16),f=r(41),o=r(9);function s(t){var e=new f(t),r=n(f.prototype.request,e);return i.extend(r,f.prototype,e),i.extend(r,e),r}var a=s(o);a.Axios=f,a.create=function(t){return s(i.merge(o,t))},a.Cancel=r(20),a.CancelToken=r(56),a.isCancel=r(19),a.all=function(t){return Promise.all(t)},a.spread=r(57),t.exports=a,t.exports.default=a},function(t,e){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
t.exports=function(t){return null!=t&&(r(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,e,r){"use strict";var i=r(9),n=r(1),f=r(51),o=r(52);function s(t){this.defaults=t,this.interceptors={request:new f,response:new f}}s.prototype.request=function(t){"string"==typeof t&&(t=n.merge({url:arguments[0]},arguments[1])),(t=n.merge(i,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[o,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)r=r.then(e.shift(),e.shift());return r},n.forEach(["delete","get","head","options"],function(t){s.prototype[t]=function(e,r){return this.request(n.merge(r||{},{method:t,url:e}))}}),n.forEach(["post","put","patch"],function(t){s.prototype[t]=function(e,r,i){return this.request(n.merge(i||{},{method:t,url:e,data:r}))}}),t.exports=s},function(t,e){var r,i,n=t.exports={};function f(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===f||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:f}catch(t){r=f}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(t){i=o}}();var a,h=[],u=!1,d=-1;function c(){u&&a&&(u=!1,a.length?h=a.concat(h):d=-1,h.length&&l())}function l(){if(!u){var t=s(c);u=!0;for(var e=h.length;e;){for(a=h,h=[];++d<e;)a&&a[d].run();d=-1,e=h.length}a=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function b(t,e){this.fun=t,this.array=e}function p(){}n.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];h.push(new b(t,e)),1!==h.length||u||s(l)},b.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},function(t,e,r){"use strict";var i=r(1);t.exports=function(t,e){i.forEach(t,function(r,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[i])})}},function(t,e,r){"use strict";var i=r(18);t.exports=function(t,e,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(i("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},function(t,e,r){"use strict";t.exports=function(t,e,r,i,n){return t.config=e,r&&(t.code=r),t.request=i,t.response=n,t}},function(t,e,r){"use strict";var i=r(1);function n(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var f;if(r)f=r(e);else if(i.isURLSearchParams(e))f=e.toString();else{var o=[];i.forEach(e,function(t,e){null!=t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),o.push(n(e)+"="+n(t))}))}),f=o.join("&")}return f&&(t+=(-1===t.indexOf("?")?"?":"&")+f),t}},function(t,e,r){"use strict";var i=r(1),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,f,o={};return t?(i.forEach(t.split("\n"),function(t){if(f=t.indexOf(":"),e=i.trim(t.substr(0,f)).toLowerCase(),r=i.trim(t.substr(f+1)),e){if(o[e]&&n.indexOf(e)>=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([r]):o[e]?o[e]+", "+r:r}}),o):o}},function(t,e,r){"use strict";var i=r(1);t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){var i=t;return e&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=n(window.location.href),function(e){var r=i.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},function(t,e,r){"use strict";var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function n(){this.message="String contains an invalid character"}n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",t.exports=function(t){for(var e,r,f=String(t),o="",s=0,a=i;f.charAt(0|s)||(a="=",s%1);o+=a.charAt(63&e>>8-s%1*8)){if((r=f.charCodeAt(s+=.75))>255)throw new n;e=e<<8|r}return o}},function(t,e,r){"use strict";var i=r(1);t.exports=i.isStandardBrowserEnv()?{write:function(t,e,r,n,f,o){var s=[];s.push(t+"="+encodeURIComponent(e)),i.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),i.isString(n)&&s.push("path="+n),i.isString(f)&&s.push("domain="+f),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,r){"use strict";var i=r(1);function n(){this.handlers=[]}n.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){i.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=n},function(t,e,r){"use strict";var i=r(1),n=r(53),f=r(19),o=r(9),s=r(54),a=r(55);function h(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return h(t),t.baseURL&&!s(t.url)&&(t.url=a(t.baseURL,t.url)),t.headers=t.headers||{},t.data=n(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||o.adapter)(t).then(function(e){return h(t),e.data=n(e.data,e.headers,t.transformResponse),e},function(e){return f(e)||(h(t),e&&e.response&&(e.response.data=n(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,r){"use strict";var i=r(1);t.exports=function(t,e,r){return i.forEach(r,function(r){t=r(t,e)}),t}},function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,r){"use strict";var i=r(20);function n(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var r=this;t(function(t){r.reason||(r.reason=new i(t),e(r.reason))})}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var t;return{token:new n(function(e){t=e}),cancel:t}},t.exports=n},function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,r){r(15);const{Tx:i}=r(10),n=(r(32),r(102)),f=r(14),o={gasRatio:1,gasLimit:2e6,delay:0,expiration:90,defaultLimit:"unlimited"};t.exports=class{constructor(t){this.config=o,t&&(Object.assign(this.config,t),this.rpc=void 0,this.account=void 0,this.serverTimeDiff=0)}callABI(t,e,r){const n=new i(this.config.gasRatio,this.config.gasLimit);return n.addAction(t,e,JSON.stringify(r)),n.setTime(this.config.expiration,this.config.delay,this.serverTimeDiff),n}transfer(t,e,r,i,n=""){let f=this.callABI("token.iost","transfer",[t,e,r,i,n]);return f.addApprove("iost",i),f}newAccount(t,e,r,n,f,o){if(!this._checkPublicKey(r)||!this._checkPublicKey(n))throw"error public key";const s=new i(this.config.gasRatio,this.config.gasLimit);return s.addAction("auth.iost","signUp",JSON.stringify([t,r,n])),f>10&&s.addAction("ram.iost","buy",JSON.stringify([e,t,f])),o>0&&s.addAction("gas.iost","pledge",JSON.stringify([e,t,o+""])),s.setTime(this.config.expiration,this.config.delay,this.serverTimeDiff),s}_checkPublicKey(t){return 32===f.decode(t).length}signAndSend(t){let e=new n(this.currentRPC.transaction),r="",i=this;return i.currentAccount.signTx(t),setTimeout(function(){i.currentRPC.transaction.sendTx(t).then(function(t){r=t.hash,e.pushMsg("pending",r),e.hash=r}).catch(function(t){e.pushMsg("failed",t)})},50),e}currentAccount(){return this.currentAccount}currentRPC(){return this.currentRPC}async setRPC(t){this.currentRPC=t;const e=1e6*(new Date).getTime(),r=await this.currentRPC.net.getNodeInfo();1e6*(new Date).getTime()-e<3e10&&(this.serverTimeDiff=r.server_time-e)}setAccount(t){this.currentAccount=t}}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.byteLength=function(t){var e=h(t),r=e[0],i=e[1];return 3*(r+i)/4-i},e.toByteArray=function(t){for(var e,r=h(t),i=r[0],o=r[1],s=new f(function(t,e,r){return 3*(e+r)/4-r}(0,i,o)),a=0,u=o>0?i-4:i,d=0;d<u;d+=4)e=n[t.charCodeAt(d)]<<18|n[t.charCodeAt(d+1)]<<12|n[t.charCodeAt(d+2)]<<6|n[t.charCodeAt(d+3)],s[a++]=e>>16&255,s[a++]=e>>8&255,s[a++]=255&e;2===o&&(e=n[t.charCodeAt(d)]<<2|n[t.charCodeAt(d+1)]>>4,s[a++]=255&e);1===o&&(e=n[t.charCodeAt(d)]<<10|n[t.charCodeAt(d+1)]<<4|n[t.charCodeAt(d+2)]>>2,s[a++]=e>>8&255,s[a++]=255&e);return s},e.fromByteArray=function(t){for(var e,r=t.length,n=r%3,f=[],o=0,s=r-n;o<s;o+=16383)f.push(u(t,o,o+16383>s?s:o+16383));1===n?(e=t[r-1],f.push(i[e>>2]+i[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],f.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return f.join("")};for(var i=[],n=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)i[s]=o[s],n[o.charCodeAt(s)]=s;function h(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var n,f,o=[],s=e;s<r;s+=3)n=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(i[(f=n)>>18&63]+i[f>>12&63]+i[f>>6&63]+i[63&f]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,i,n){var f,o,s=8*n-i-1,a=(1<<s)-1,h=a>>1,u=-7,d=r?n-1:0,c=r?-1:1,l=t[e+d];for(d+=c,f=l&(1<<-u)-1,l>>=-u,u+=s;u>0;f=256*f+t[e+d],d+=c,u-=8);for(o=f&(1<<-u)-1,f>>=-u,u+=i;u>0;o=256*o+t[e+d],d+=c,u-=8);if(0===f)f=1-h;else{if(f===a)return o?NaN:1/0*(l?-1:1);o+=Math.pow(2,i),f-=h}return(l?-1:1)*o*Math.pow(2,f-i)},e.write=function(t,e,r,i,n,f){var o,s,a,h=8*f-n-1,u=(1<<h)-1,d=u>>1,c=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,l=i?0:f-1,b=i?1:-1,p=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-o))<1&&(o--,a*=2),(e+=o+d>=1?c/a:c*Math.pow(2,1-d))*a>=2&&(o++,a/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(e*a-1)*Math.pow(2,n),o+=d):(s=e*Math.pow(2,d-1)*Math.pow(2,n),o=0));n>=8;t[r+l]=255&s,l+=b,s/=256,n-=8);for(o=o<<n|s,h+=n;h>0;t[r+l]=255&o,l+=b,o/=256,h-=8);t[r+l-b]|=128*p}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e){t.exports=i;var r=null;try{r=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(t){}function i(t,e,r){this.low=0|t,this.high=0|e,this.unsigned=!!r}function n(t){return!0===(t&&t.__isLong__)}i.prototype.__isLong__,Object.defineProperty(i.prototype,"__isLong__",{value:!0}),i.isLong=n;var f={},o={};function s(t,e){var r,i,n;return e?(n=0<=(t>>>=0)&&t<256)&&(i=o[t])?i:(r=h(t,(0|t)<0?-1:0,!0),n&&(o[t]=r),r):(n=-128<=(t|=0)&&t<128)&&(i=f[t])?i:(r=h(t,t<0?-1:0,!1),n&&(f[t]=r),r)}function a(t,e){if(isNaN(t))return e?v:m;if(e){if(t<0)return v;if(t>=b)return A}else{if(t<=-p)return S;if(t+1>=p)return _}return t<0?a(-t,e).neg():h(t%l|0,t/l|0,e)}function h(t,e,r){return new i(t,e,r)}i.fromInt=s,i.fromNumber=a,i.fromBits=h;var u=Math.pow;function d(t,e,r){if(0===t.length)throw Error("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return m;if("number"==typeof e?(r=e,e=!1):e=!!e,(r=r||10)<2||36<r)throw RangeError("radix");var i;if((i=t.indexOf("-"))>0)throw Error("interior hyphen");if(0===i)return d(t.substring(1),e,r).neg();for(var n=a(u(r,8)),f=m,o=0;o<t.length;o+=8){var s=Math.min(8,t.length-o),h=parseInt(t.substring(o,o+s),r);if(s<8){var c=a(u(r,s));f=f.mul(c).add(a(h))}else f=(f=f.mul(n)).add(a(h))}return f.unsigned=e,f}function c(t,e){return"number"==typeof t?a(t,e):"string"==typeof t?d(t,e):h(t.low,t.high,"boolean"==typeof e?e:t.unsigned)}i.fromString=d,i.fromValue=c;var l=4294967296,b=l*l,p=b/2,g=s(1<<24),m=s(0);i.ZERO=m;var v=s(0,!0);i.UZERO=v;var y=s(1);i.ONE=y;var w=s(1,!0);i.UONE=w;var M=s(-1);i.NEG_ONE=M;var _=h(-1,2147483647,!1);i.MAX_VALUE=_;var A=h(-1,-1,!0);i.MAX_UNSIGNED_VALUE=A;var S=h(0,-2147483648,!1);i.MIN_VALUE=S;var x=i.prototype;x.toInt=function(){return this.unsigned?this.low>>>0:this.low},x.toNumber=function(){return this.unsigned?(this.high>>>0)*l+(this.low>>>0):this.high*l+(this.low>>>0)},x.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(S)){var e=a(t),r=this.div(e),i=r.mul(e).sub(this);return r.toString(t)+i.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var n=a(u(t,6),this.unsigned),f=this,o="";;){var s=f.div(n),h=(f.sub(s.mul(n)).toInt()>>>0).toString(t);if((f=s).isZero())return h+o;for(;h.length<6;)h="0"+h;o=""+h+o}},x.getHighBits=function(){return this.high},x.getHighBitsUnsigned=function(){return this.high>>>0},x.getLowBits=function(){return this.low},x.getLowBitsUnsigned=function(){return this.low>>>0},x.getNumBitsAbs=function(){if(this.isNegative())return this.eq(S)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,e=31;e>0&&0==(t&1<<e);e--);return 0!=this.high?e+33:e+1},x.isZero=function(){return 0===this.high&&0===this.low},x.eqz=x.isZero,x.isNegative=function(){return!this.unsigned&&this.high<0},x.isPositive=function(){return this.unsigned||this.high>=0},x.isOdd=function(){return 1==(1&this.low)},x.isEven=function(){return 0==(1&this.low)},x.equals=function(t){return n(t)||(t=c(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},x.eq=x.equals,x.notEquals=function(t){return!this.eq(t)},x.neq=x.notEquals,x.ne=x.notEquals,x.lessThan=function(t){return this.comp(t)<0},x.lt=x.lessThan,x.lessThanOrEqual=function(t){return this.comp(t)<=0},x.lte=x.lessThanOrEqual,x.le=x.lessThanOrEqual,x.greaterThan=function(t){return this.comp(t)>0},x.gt=x.greaterThan,x.greaterThanOrEqual=function(t){return this.comp(t)>=0},x.gte=x.greaterThanOrEqual,x.ge=x.greaterThanOrEqual,x.compare=function(t){if(n(t)||(t=c(t)),this.eq(t))return 0;var e=this.isNegative(),r=t.isNegative();return e&&!r?-1:!e&&r?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},x.comp=x.compare,x.negate=function(){return!this.unsigned&&this.eq(S)?S:this.not().add(y)},x.neg=x.negate,x.add=function(t){n(t)||(t=c(t));var e=this.high>>>16,r=65535&this.high,i=this.low>>>16,f=65535&this.low,o=t.high>>>16,s=65535&t.high,a=t.low>>>16,u=0,d=0,l=0,b=0;return l+=(b+=f+(65535&t.low))>>>16,d+=(l+=i+a)>>>16,u+=(d+=r+s)>>>16,u+=e+o,h((l&=65535)<<16|(b&=65535),(u&=65535)<<16|(d&=65535),this.unsigned)},x.subtract=function(t){return n(t)||(t=c(t)),this.add(t.neg())},x.sub=x.subtract,x.multiply=function(t){if(this.isZero())return m;if(n(t)||(t=c(t)),r)return h(r.mul(this.low,this.high,t.low,t.high),r.get_high(),this.unsigned);if(t.isZero())return m;if(this.eq(S))return t.isOdd()?S:m;if(t.eq(S))return this.isOdd()?S:m;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(g)&&t.lt(g))return a(this.toNumber()*t.toNumber(),this.unsigned);var e=this.high>>>16,i=65535&this.high,f=this.low>>>16,o=65535&this.low,s=t.high>>>16,u=65535&t.high,d=t.low>>>16,l=65535&t.low,b=0,p=0,v=0,y=0;return v+=(y+=o*l)>>>16,p+=(v+=f*l)>>>16,v&=65535,p+=(v+=o*d)>>>16,b+=(p+=i*l)>>>16,p&=65535,b+=(p+=f*d)>>>16,p&=65535,b+=(p+=o*u)>>>16,b+=e*l+i*d+f*u+o*s,h((v&=65535)<<16|(y&=65535),(b&=65535)<<16|(p&=65535),this.unsigned)},x.mul=x.multiply,x.divide=function(t){if(n(t)||(t=c(t)),t.isZero())throw Error("division by zero");var e,i,f;if(r)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?h((this.unsigned?r.div_u:r.div_s)(this.low,this.high,t.low,t.high),r.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?v:m;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return v;if(t.gt(this.shru(1)))return w;f=v}else{if(this.eq(S))return t.eq(y)||t.eq(M)?S:t.eq(S)?y:(e=this.shr(1).div(t).shl(1)).eq(m)?t.isNegative()?y:M:(i=this.sub(t.mul(e)),f=e.add(i.div(t)));if(t.eq(S))return this.unsigned?v:m;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();f=m}for(i=this;i.gte(t);){e=Math.max(1,Math.floor(i.toNumber()/t.toNumber()));for(var o=Math.ceil(Math.log(e)/Math.LN2),s=o<=48?1:u(2,o-48),d=a(e),l=d.mul(t);l.isNegative()||l.gt(i);)l=(d=a(e-=s,this.unsigned)).mul(t);d.isZero()&&(d=y),f=f.add(d),i=i.sub(l)}return f},x.div=x.divide,x.modulo=function(t){return n(t)||(t=c(t)),r?h((this.unsigned?r.rem_u:r.rem_s)(this.low,this.high,t.low,t.high),r.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},x.mod=x.modulo,x.rem=x.modulo,x.not=function(){return h(~this.low,~this.high,this.unsigned)},x.and=function(t){return n(t)||(t=c(t)),h(this.low&t.low,this.high&t.high,this.unsigned)},x.or=function(t){return n(t)||(t=c(t)),h(this.low|t.low,this.high|t.high,this.unsigned)},x.xor=function(t){return n(t)||(t=c(t)),h(this.low^t.low,this.high^t.high,this.unsigned)},x.shiftLeft=function(t){return n(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?h(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):h(0,this.low<<t-32,this.unsigned)},x.shl=x.shiftLeft,x.shiftRight=function(t){return n(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?h(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):h(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},x.shr=x.shiftRight,x.shiftRightUnsigned=function(t){if(n(t)&&(t=t.toInt()),0===(t&=63))return this;var e=this.high;return t<32?h(this.low>>>t|e<<32-t,e>>>t,this.unsigned):h(32===t?e:e>>>t-32,0,this.unsigned)},x.shru=x.shiftRightUnsigned,x.shr_u=x.shiftRightUnsigned,x.toSigned=function(){return this.unsigned?h(this.low,this.high,!1):this},x.toUnsigned=function(){return this.unsigned?this:h(this.low,this.high,!0)},x.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},x.toBytesLE=function(){var t=this.high,e=this.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]},x.toBytesBE=function(){var t=this.high,e=this.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,e>>>24,e>>>16&255,e>>>8&255,255&e]},i.fromBytes=function(t,e,r){return r?i.fromBytesLE(t,e):i.fromBytesBE(t,e)},i.fromBytesLE=function(t,e){return new i(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,e)},i.fromBytesBE=function(t,e){return new i(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,n=r(5),f=(i=r(65))&&i.__esModule?i:{default:i};var o=[224,256,384,512],s=function(t,e){for(var r=0;r<t.length;r+=8){var i=r/4;e[i]^=t[r+7]<<24|t[r+6]<<16|t[r+5]<<8|t[r+4],e[i+1]^=t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]}},a=function(t){var e=this,r=t.capacity,i=t.padding;if(!o.includes(r))throw new Error("Unsupported hash length");var a=(0,f.default)(),h=r/8,u=200-2*h,d=0,c=new Uint32Array(50),l=n.Buffer.allocUnsafe(u);return this.absorb=function(t){for(var r=0;r<t.length;r++)l[d]=t[r],(d+=1)>=u&&(s(l,c),a(c),d=0);return e},this.squeeze=function(){var t={queue:n.Buffer.allocUnsafe(u),state:new Uint32Array(50)};l.copy(t.queue);for(var e=0;e<c.length;e++)t.state[e]=c[e];return t.queue.fill(0,d),t.queue[d]|=i,t.queue[u-1]|=128,s(t.queue,t.state),a(t.state),function(t,e){for(var r=n.Buffer.allocUnsafe(e),i=0;i<e;i+=8){var f=i/4;r[i]=t[f+1],r[i+1]=t[f+1]>>>8,r[i+2]=t[f+1]>>>16,r[i+3]=t[f+1]>>>24,r[i+4]=t[f],r[i+5]=t[f]>>>8,r[i+6]=t[f]>>>16,r[i+7]=t[f]>>>24}return r}(t.state,h)},this.reset=function(){return l.fill(0),c.fill(0),d=0,e},this};e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=s(r(66)),n=s(r(67)),f=s(r(69)),o=s(r(72));function s(t){return t&&t.__esModule?t:{default:t}}var a=function(){var t=new Uint32Array(10),e=new Uint32Array(10),r=new Uint32Array(2);return function(s){for(var a=0;a<24;a++)(0,o.default)({A:s,C:t,D:e,W:r}),(0,f.default)({A:s,C:t,W:r}),(0,i.default)({A:s,C:t}),(0,n.default)({A:s,roundIndex:a});!function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i=0;i<e.length;i++)e[i].fill(0)}(t,e,r)}};e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,n=(i=r(11))&&i.__esModule?i:{default:i};var f=function(t){for(var e=t.A,r=t.C,i=0;i<25;i+=5){for(var f=0;f<5;f++)(0,n.default)(e,i+f)(r,f);for(var o=0;o<5;o++){var s=2*(i+o),a=(o+1)%5*2,h=(o+2)%5*2;e[s]^=~r[a]&r[h],e[s+1]^=~r[a+1]&r[h+1]}}};e.default=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=f(r(68)),n=f(r(23));function f(t){return t&&t.__esModule?t:{default:t}}var o=function(t){var e=t.A,r=t.roundIndex;(0,n.default)(e,0)(e,0,i.default,r)};e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=new Uint32Array([0,1,0,32898,2147483648,32906,2147483648,2147516416,0,32907,0,2147483649,2147483648,2147516545,2147483648,32777,0,138,0,136,0,2147516425,0,2147483658,0,2147516555,2147483648,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,0,32778,2147483648,2147483658,2147483648,2147516545,2147483648,32896,0,2147483649,2147483648,2147516424]);e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=s(r(70)),n=s(r(71)),f=s(r(11)),o=s(r(24));function s(t){return t&&t.__esModule?t:{default:t}}var a=function(t){var e=t.A,r=t.C,s=t.W;(0,f.default)(e,1)(s,0);for(var a=0;a<24;a++){var h=i.default[a],u=n.default[a];(0,f.default)(e,h)(r,0),(0,f.default)((0,o.default)(s,u),0)(e,h),(0,f.default)(r,0)(s,0)}};e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=[10,7,11,17,18,3,5,16,8,21,24,4,15,23,19,13,12,2,20,14,22,9,6,1];e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=[1,3,6,10,15,21,28,36,45,55,2,14,27,41,56,8,25,43,62,18,39,61,20,44];e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(r(11)),n=o(r(24)),f=o(r(23));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(t){var e=t.A,r=t.C,o=t.D,s=t.W;!function(t){for(var e=t.A,r=t.C,i=0;i<5;i++)(0,f.default)(r,i)(e,i,e,i+5,e,i+10,e,i+15,e,i+20)}({A:e,C:r}),function(t){for(var e=t.A,r=t.C,o=t.D,s=t.W,a=0;a<5;a++){(0,i.default)(r,(a+1)%5)(s,0),(0,f.default)(o,a)(r,(a+4)%5,(0,n.default)(s,1),0);for(var h=0;h<25;h+=5)(0,f.default)(e,h+a)(e,h+a,o,a)}}({A:e,C:r,D:o,W:s})};e.default=s},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){},function(t){t.exports={_args:[["[email protected]","/Users/lihaifeng/js/iost.js"]],_from:"[email protected]",_id:"[email protected]",_inBundle:!1,_integrity:"sha512-BsXLz5sqX8OHcsh7CqBMztyXARmGQ3LWPtGjJi6DiJHq5C/qvi9P3OqgswKSDftbu8+IoI/QDTAm2fFnQ9SZSQ==",_location:"/elliptic",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"[email protected]",name:"elliptic",escapedName:"elliptic",rawSpec:"6.4.1",saveSpec:null,fetchSpec:"6.4.1"},_requiredBy:["/","/browserify-sign","/create-ecdh","/secp256k1"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.1.tgz",_spec:"6.4.1",_where:"/Users/lihaifeng/js/iost.js",author:{name:"Fedor Indutny",email:"[email protected]"},bugs:{url:"https://github.com/indutny/elliptic/issues"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},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.1"}},function(t,e,r){"use strict";var i=e,n=r(2),f=r(4),o=r(26);i.assert=f,i.toArray=o.toArray,i.zero2=o.zero2,i.toHex=o.toHex,i.encode=o.encode,i.getNAF=function(t,e){for(var r=[],i=1<<e+1,n=t.clone();n.cmpn(1)>=0;){var f;if(n.isOdd()){var o=n.andln(i-1);f=o>(i>>1)-1?(i>>1)-o:o,n.isubn(f)}else f=0;r.push(f);for(var s=0!==n.cmpn(0)&&0===n.andln(i-1)?e+1:1,a=1;a<s;a++)r.push(0);n.iushrn(s)}return r},i.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var i=0,n=0;t.cmpn(-i)>0||e.cmpn(-n)>0;){var f,o,s,a=t.andln(3)+i&3,h=e.andln(3)+n&3;3===a&&(a=-1),3===h&&(h=-1),f=0==(1&a)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==h?a:-a,r[0].push(f),o=0==(1&h)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==a?h:-h,r[1].push(o),2*i===f+1&&(i=1-i),2*n===o+1&&(n=1-n),t.iushrn(1),e.iushrn(1)}return r},i.cachedProperty=function(t,e,r){var i="_"+e;t.prototype[e]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=function(t){return"string"==typeof t?i.toArray(t,"hex"):t},i.intFromLE=function(t){return new n(t,"hex","le")}},function(t,e,r){var i;function n(t){this.rand=t}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 f=r(78);if("function"!=typeof f.randomBytes)throw new Error("Not supported");n.prototype._rand=function(t){return f.randomBytes(t)}}catch(t){}},function(t,e){},function(t,e,r){"use strict";var i=r(2),n=r(0).utils,f=n.getNAF,o=n.getJSF,s=n.assert;function a(t,e){this.type=t,this.p=new i(e.p,16),this.red=e.prime?i.red(e.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=e.n&&new i(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 h(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=a,a.prototype.point=function(){throw new Error("Not implemented")},a.prototype.validate=function(){throw new Error("Not implemented")},a.prototype._fixedNafMul=function(t,e){s(t.precomputed);var r=t._getDoubles(),i=f(e,1),n=(1<<r.step+1)-(r.step%2==0?2:1);n/=3;for(var o=[],a=0;a<i.length;a+=r.step){var h=0;for(e=a+r.step-1;e>=a;e--)h=(h<<1)+i[e];o.push(h)}for(var u=this.jpoint(null,null,null),d=this.jpoint(null,null,null),c=n;c>0;c--){for(a=0;a<o.length;a++){(h=o[a])===c?d=d.mixedAdd(r.points[a]):h===-c&&(d=d.mixedAdd(r.points[a].neg()))}u=u.add(d)}return u.toP()},a.prototype._wnafMul=function(t,e){var r=4,i=t._getNAFPoints(r);r=i.wnd;for(var n=i.points,o=f(e,r),a=this.jpoint(null,null,null),h=o.length-1;h>=0;h--){for(e=0;h>=0&&0===o[h];h--)e++;if(h>=0&&e++,a=a.dblp(e),h<0)break;var u=o[h];s(0!==u),a="affine"===t.type?u>0?a.mixedAdd(n[u-1>>1]):a.mixedAdd(n[-u-1>>1].neg()):u>0?a.add(n[u-1>>1]):a.add(n[-u-1>>1].neg())}return"affine"===t.type?a.toP():a},a.prototype._wnafMulAdd=function(t,e,r,i,n){for(var s=this._wnafT1,a=this._wnafT2,h=this._wnafT3,u=0,d=0;d<i;d++){var c=(x=e[d])._getNAFPoints(t);s[d]=c.wnd,a[d]=c.points}for(d=i-1;d>=1;d-=2){var l=d-1,b=d;if(1===s[l]&&1===s[b]){var p=[e[l],null,null,e[b]];0===e[l].y.cmp(e[b].y)?(p[1]=e[l].add(e[b]),p[2]=e[l].toJ().mixedAdd(e[b].neg())):0===e[l].y.cmp(e[b].y.redNeg())?(p[1]=e[l].toJ().mixedAdd(e[b]),p[2]=e[l].add(e[b].neg())):(p[1]=e[l].toJ().mixedAdd(e[b]),p[2]=e[l].toJ().mixedAdd(e[b].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],m=o(r[l],r[b]);u=Math.max(m[0].length,u),h[l]=new Array(u),h[b]=new Array(u);for(var v=0;v<u;v++){var y=0|m[0][v],w=0|m[1][v];h[l][v]=g[3*(y+1)+(w+1)],h[b][v]=0,a[l]=p}}else h[l]=f(r[l],s[l]),h[b]=f(r[b],s[b]),u=Math.max(h[l].length,u),u=Math.max(h[b].length,u)}var M=this.jpoint(null,null,null),_=this._wnafT4;for(d=u;d>=0;d--){for(var A=0;d>=0;){var S=!0;for(v=0;v<i;v++)_[v]=0|h[v][d],0!==_[v]&&(S=!1);if(!S)break;A++,d--}if(d>=0&&A++,M=M.dblp(A),d<0)break;for(v=0;v<i;v++){var x,E=_[v];0!==E&&(E>0?x=a[v][E-1>>1]:E<0&&(x=a[v][-E-1>>1].neg()),M="affine"===x.type?M.mixedAdd(x):M.add(x))}}for(d=0;d<i;d++)a[d]=null;return n?M:M.toP()},a.BasePoint=h,h.prototype.eq=function(){throw new Error("Not implemented")},h.prototype.validate=function(){return this.curve.validate(this)},a.prototype.decodePoint=function(t,e){t=n.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?s(t[t.length-1]%2==0):7===t[0]&&s(t[t.length-1]%2==1),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")},h.prototype.encodeCompressed=function(t){return this.encode(t,!0)},h.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))},h.prototype.encode=function(t,e){return n.encode(this._encode(e),t)},h.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},h.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)},h.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;n<e;n+=t){for(var f=0;f<t;f++)i=i.dbl();r.push(i)}return{step:t,points:r}},h.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,i=1===r?null:this.dbl(),n=1;n<r;n++)e[n]=e[n-1].add(i);return{wnd:t,points:e}},h.prototype._getBeta=function(){return null},h.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e}},function(t,e,r){"use strict";var i=r(7),n=r(0),f=r(2),o=r(8),s=i.base,a=n.utils.assert;function h(t){s.call(this,"short",t),this.a=new f(t.a,16).toRed(this.red),this.b=new f(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 u(t,e,r,i){s.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new f(e,16),this.y=new f(r,16),i&&(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 d(t,e,r,i){s.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new f(0)):(this.x=new f(e,16),this.y=new f(r,16),this.z=new f(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.zOne=this.z===this.curve.one}o(h,s),t.exports=h,h.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new f(t.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);e=(e=i[0].cmp(i[1])<0?i[0]:i[1]).toRed(this.red)}if(t.lambda)r=new f(t.lambda,16);else{var n=this._getEndoRoots(this.n);0===this.g.mul(n[0]).x.cmp(this.g.x.redMul(e))?r=n[0]:(r=n[1],a(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map(function(t){return{a:new f(t.a,16),b:new f(t.b,16)}}):this._getEndoBasis(r)}}},h.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:f.mont(t),r=new f(2).toRed(e).redInvm(),i=r.redNeg(),n=new f(3).toRed(e).redNeg().redSqrt().redMul(r);return[i.redAdd(n).fromRed(),i.redSub(n).fromRed()]},h.prototype._getEndoBasis=function(t){for(var e,r,i,n,o,s,a,h,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),c=t,l=this.n.clone(),b=new f(1),p=new f(0),g=new f(0),m=new f(1),v=0;0!==c.cmpn(0);){var y=l.div(c);h=l.sub(y.mul(c)),u=g.sub(y.mul(b));var w=m.sub(y.mul(p));if(!i&&h.cmp(d)<0)e=a.neg(),r=b,i=h.neg(),n=u;else if(i&&2==++v)break;a=h,l=c,c=h,g=b,b=u,m=p,p=w}o=h.neg(),s=u;var M=i.sqr().add(n.sqr());return o.sqr().add(s.sqr()).cmp(M)>=0&&(o=e,s=r),i.negative&&(i=i.neg(),n=n.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:i,b:n},{a:o,b:s}]},h.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],i=e[1],n=i.b.mul(t).divRound(this.n),f=r.b.neg().mul(t).divRound(this.n),o=n.mul(r.a),s=f.mul(i.a),a=n.mul(r.b),h=f.mul(i.b);return{k1:t.sub(o).sub(s),k2:a.add(h).neg()}},h.prototype.pointFromX=function(t,e){(t=new f(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var n=i.fromRed().isOdd();return(e&&!n||!e&&n)&&(i=i.redNeg()),this.point(t,i)},h.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,i=this.a.redMul(e),n=e.redSqr().redMul(e).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},h.prototype._endoWnafMulAdd=function(t,e,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,f=0;f<t.length;f++){var o=this._endoSplit(e[f]),s=t[f],a=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),a=a.neg(!0)),i[2*f]=s,i[2*f+1]=a,n[2*f]=o.k1,n[2*f+1]=o.k2}for(var h=this._wnafMulAdd(1,i,n,2*f,r),u=0;u<2*f;u++)i[u]=null,n[u]=null;return h},o(u,s.BasePoint),h.prototype.point=function(t,e,r){return new u(this,t,e,r)},h.prototype.pointFromJSON=function(t,e){return u.fromJSON(this,t,e)},u.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,i=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(i)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(i)}}}return e}},u.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]},u.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var i=t.point(e[0],e[1],r);if(!e[2])return i;function n(e){return t.point(e[0],e[1],r)}var f=e[2];return i.precomputed={beta:null,doubles:f.doubles&&{step:f.doubles.step,points:[i].concat(f.doubles.points.map(n))},naf:f.naf&&{wnd:f.naf.wnd,points:[i].concat(f.naf.points.map(n))}},i},u.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)+">"},u.prototype.isInfinity=function(){return this.inf},u.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),i=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},u.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(),i=t.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(i),f=n.redSqr().redISub(this.x.redAdd(this.x)),o=n.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,o)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(t){return t=new f(t,16),this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,r){var i=[this,e],n=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},u.prototype.jmulAdd=function(t,e,r){var i=[this,e],n=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},u.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))},u.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,i=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return e},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(d,s.BasePoint),h.prototype.jpoint=function(t,e,r){return new d(this,t,e,r)},d.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),i=this.y.redMul(e).redMul(t);return this.curve.point(r,i)},d.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},d.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(e),n=t.x.redMul(r),f=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(r.redMul(this.z)),s=i.redSub(n),a=f.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h=s.redSqr(),u=h.redMul(s),d=i.redMul(h),c=a.redSqr().redIAdd(u).redISub(d).redISub(d),l=a.redMul(d.redISub(c)).redISub(f.redMul(u)),b=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(c,l,b)},d.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,i=t.x.redMul(e),n=this.y,f=t.y.redMul(e).redMul(this.z),o=r.redSub(i),s=n.redSub(f);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var a=o.redSqr(),h=a.redMul(o),u=r.redMul(a),d=s.redSqr().redIAdd(h).redISub(u).redISub(u),c=s.redMul(u.redISub(d)).redISub(n.redMul(h)),l=this.z.redMul(o);return this.curve.jpoint(d,c,l)},d.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}var i=this.curve.a,n=this.curve.tinv,f=this.x,o=this.y,s=this.z,a=s.redSqr().redSqr(),h=o.redAdd(o);for(r=0;r<t;r++){var u=f.redSqr(),d=h.redSqr(),c=d.redSqr(),l=u.redAdd(u).redIAdd(u).redIAdd(i.redMul(a)),b=f.redMul(d),p=l.redSqr().redISub(b.redAdd(b)),g=b.redISub(p),m=l.redMul(g);m=m.redIAdd(m).redISub(c);var v=h.redMul(s);r+1<t&&(a=a.redMul(c)),f=p,s=v,h=m}return this.curve.jpoint(f,h.redMul(n),s)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},d.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var i=this.x.redSqr(),n=this.y.redSqr(),f=n.redSqr(),o=this.x.redAdd(n).redSqr().redISub(i).redISub(f);o=o.redIAdd(o);var s=i.redAdd(i).redIAdd(i),a=s.redSqr().redISub(o).redISub(o),h=f.redIAdd(f);h=(h=h.redIAdd(h)).redIAdd(h),t=a,e=s.redMul(o.redISub(a)).redISub(h),r=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),c=d.redSqr(),l=this.x.redAdd(d).redSqr().redISub(u).redISub(c);l=l.redIAdd(l);var b=u.redAdd(u).redIAdd(u),p=b.redSqr(),g=c.redIAdd(c);g=(g=g.redIAdd(g)).redIAdd(g),t=p.redISub(l).redISub(l),e=b.redMul(l.redISub(t)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},d.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var i=this.x.redSqr(),n=this.y.redSqr(),f=n.redSqr(),o=this.x.redAdd(n).redSqr().redISub(i).redISub(f);o=o.redIAdd(o);var s=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),a=s.redSqr().redISub(o).redISub(o);t=a;var h=f.redIAdd(f);h=(h=h.redIAdd(h)).redIAdd(h),e=s.redMul(o.redISub(a)).redISub(h),r=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),c=this.x.redMul(d),l=this.x.redSub(u).redMul(this.x.redAdd(u));l=l.redAdd(l).redIAdd(l);var b=c.redIAdd(c),p=(b=b.redIAdd(b)).redAdd(b);t=l.redSqr().redISub(p),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var g=d.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),e=l.redMul(b.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,r)},d.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,i=this.z,n=i.redSqr().redSqr(),f=e.redSqr(),o=r.redSqr(),s=f.redAdd(f).redIAdd(f).redIAdd(t.redMul(n)),a=e.redAdd(e),h=(a=a.redIAdd(a)).redMul(o),u=s.redSqr().redISub(h.redAdd(h)),d=h.redISub(u),c=o.redSqr();c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var l=s.redMul(d).redISub(c),b=r.redAdd(r).redMul(i);return this.curve.jpoint(u,l,b)},d.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(),i=e.redSqr(),n=t.redAdd(t).redIAdd(t),f=n.redSqr(),o=this.x.redAdd(e).redSqr().redISub(t).redISub(i),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(f)).redSqr(),a=i.redIAdd(i);a=(a=(a=a.redIAdd(a)).redIAdd(a)).redIAdd(a);var h=n.redIAdd(o).redSqr().redISub(f).redISub(s).redISub(a),u=e.redMul(h);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(s).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var c=this.y.redMul(h.redMul(a.redISub(h)).redISub(o.redMul(s)));c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var l=this.z.redAdd(o).redSqr().redISub(r).redISub(s);return this.curve.jpoint(d,c,l)},d.prototype.mul=function(t,e){return t=new f(t,e),this.curve._wnafMul(this,t)},d.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 i=e.redMul(this.z),n=r.redMul(t.z);return 0===this.y.redMul(n).redISub(t.y.redMul(i)).cmpn(0)},d.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 i=t.clone(),n=this.curve.redN.redMul(e);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},d.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)+">"},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,r){"use strict";var i=r(7),n=r(2),f=r(8),o=i.base,s=r(0).utils;function a(t){o.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function h(t,e,r){o.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}f(a,o),t.exports=a,a.prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),i=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===i.redSqrt().redSqr().cmp(i)},f(h,o.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(s.toArray(t,e),1)},a.prototype.point=function(t,e){return new h(this,t,e)},a.prototype.pointFromJSON=function(t){return h.fromJSON(this,t)},h.prototype.precompute=function(){},h.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},h.fromJSON=function(t,e){return new h(t,e[0],e[1]||t.one)},h.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)+">"},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},h.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),r=t.redSub(e),i=t.redMul(e),n=r.redMul(e.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},h.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.diffAdd=function(t,e){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=t.x.redAdd(t.z),f=t.x.redSub(t.z).redMul(r),o=n.redMul(i),s=e.z.redMul(f.redAdd(o).redSqr()),a=e.x.redMul(f.redISub(o).redSqr());return this.curve.point(s,a)},h.prototype.mul=function(t){for(var e=t.clone(),r=this,i=this.curve.point(null,null),n=[];0!==e.cmpn(0);e.iushrn(1))n.push(e.andln(1));for(var f=n.length-1;f>=0;f--)0===n[f]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},h.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},h.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,r){"use strict";var i=r(7),n=r(0),f=r(2),o=r(8),s=i.base,a=n.utils.assert;function h(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,s.call(this,"edwards",t),this.a=new f(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new f(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new f(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function u(t,e,r,i,n){s.BasePoint.call(this,t,"projective"),null===e&&null===r&&null===i?(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 f(e,16),this.y=new f(r,16),this.z=i?new f(i,16):this.curve.one,this.t=n&&new f(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.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()))))}o(h,s),t.exports=h,h.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},h.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},h.prototype.jpoint=function(t,e,r,i){return this.point(t,e,r,i)},h.prototype.pointFromX=function(t,e){(t=new f(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),i=this.c2.redSub(this.a.redMul(r)),n=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=i.redMul(n.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var a=s.fromRed().isOdd();return(e&&!a||!e&&a)&&(s=s.redNeg()),this.point(t,s)},h.prototype.pointFromY=function(t,e){(t=new f(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),i=r.redSub(this.c2),n=r.redMul(this.d).redMul(this.c2).redSub(this.a),o=i.redMul(n.redInvm());if(0===o.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==e&&(s=s.redNeg()),this.point(s,t)},h.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),i=e.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===i.cmp(n)},o(u,s.BasePoint),h.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},h.prototype.point=function(t,e,r,i){return new u(this,t,e,r,i)},u.fromJSON=function(t,e){return new u(t,e[0],e[1],e[2])},u.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)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(t),n=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),f=i.redAdd(e),o=f.redSub(r),s=i.redSub(e),a=n.redMul(o),h=f.redMul(s),u=n.redMul(s),d=o.redMul(f);return this.curve.point(a,h,d,u)},u.prototype._projDbl=function(){var t,e,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),f=this.y.redSqr();if(this.curve.twisted){var o=(h=this.curve._mulA(n)).redAdd(f);if(this.zOne)t=i.redSub(n).redSub(f).redMul(o.redSub(this.curve.two)),e=o.redMul(h.redSub(f)),r=o.redSqr().redSub(o).redSub(o);else{var s=this.z.redSqr(),a=o.redSub(s).redISub(s);t=i.redSub(n).redISub(f).redMul(a),e=o.redMul(h.redSub(f)),r=o.redMul(a)}}else{var h=n.redAdd(f);s=this.curve._mulC(this.z).redSqr(),a=h.redSub(s).redSub(s);t=this.curve._mulC(i.redISub(h)).redMul(a),e=this.curve._mulC(h).redMul(n.redISub(f)),r=h.redMul(a)}return this.curve.point(t,e,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.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)),i=this.t.redMul(this.curve.dd).redMul(t.t),n=this.z.redMul(t.z.redAdd(t.z)),f=r.redSub(e),o=n.redSub(i),s=n.redAdd(i),a=r.redAdd(e),h=f.redMul(o),u=s.redMul(a),d=f.redMul(a),c=o.redMul(s);return this.curve.point(h,u,c,d)},u.prototype._projAdd=function(t){var e,r,i=this.z.redMul(t.z),n=i.redSqr(),f=this.x.redMul(t.x),o=this.y.redMul(t.y),s=this.curve.d.redMul(f).redMul(o),a=n.redSub(s),h=n.redAdd(s),u=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(f).redISub(o),d=i.redMul(a).redMul(u);return this.curve.twisted?(e=i.redMul(h).redMul(o.redSub(this.curve._mulA(f))),r=a.redMul(h)):(e=i.redMul(h).redMul(o.redSub(f)),r=this.curve._mulC(a).redMul(h)),this.curve.point(d,e,r)},u.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},u.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},u.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!0)},u.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},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},u.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(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(i),0===this.x.cmp(e))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},function(t,e,r){"use strict";var i,n=e,f=r(13),o=r(0),s=o.utils.assert;function a(t){"short"===t.type?this.curve=new o.curve.short(t):"edwards"===t.type?this.curve=new o.curve.edwards(t):this.curve=new o.curve.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var r=new a(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=a,h("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:f.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("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:f.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("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:f.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("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:f.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"]}),h("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:f.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"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:f.sha256,gRed:!1,g:["9"]}),h("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:f.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=r(90)}catch(t){i=void 0}h("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:f.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},function(t,e,r){"use strict";e.sha1=r(85),e.sha224=r(86),e.sha256=r(28),e.sha384=r(87),e.sha512=r(29)},function(t,e,r){"use strict";var i=r(3),n=r(6),f=r(27),o=i.rotl32,s=i.sum32,a=i.sum32_5,h=f.ft_1,u=n.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function c(){if(!(this instanceof c))return new c;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(c,u),t.exports=c,c.blockSize=512,c.outSize=160,c.hmacStrength=80,c.padLength=64,c.prototype._update=function(t,e){for(var r=this.W,i=0;i<16;i++)r[i]=t[e+i];for(;i<r.length;i++)r[i]=o(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);var n=this.h[0],f=this.h[1],u=this.h[2],c=this.h[3],l=this.h[4];for(i=0;i<r.length;i++){var b=~~(i/20),p=a(o(n,5),h(b,f,u,c),l,r[i],d[b]);l=c,c=u,u=o(f,30),f=n,n=p}this.h[0]=s(this.h[0],n),this.h[1]=s(this.h[1],f),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],c),this.h[4]=s(this.h[4],l)},c.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(t,e,r){"use strict";var i=r(3),n=r(28);function f(){if(!(this instanceof f))return new f;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}i.inherits(f,n),t.exports=f,f.blockSize=512,f.outSize=224,f.hmacStrength=192,f.padLength=64,f.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";var i=r(3),n=r(29);function f(){if(!(this instanceof f))return new f;n.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}i.inherits(f,n),t.exports=f,f.blockSize=1024,f.outSize=384,f.hmacStrength=192,f.padLength=128,f.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";var i=r(3),n=r(6),f=i.rotl32,o=i.sum32,s=i.sum32_3,a=i.sum32_4,h=n.BlockHash;function u(){if(!(this instanceof u))return new u;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(t,e,r,i){return t<=15?e^r^i:t<=31?e&r|~e&i:t<=47?(e|~r)^i:t<=63?e&i|r&~i:e^(r|~i)}function c(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function l(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}i.inherits(u,h),e.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(t,e){for(var r=this.h[0],i=this.h[1],n=this.h[2],h=this.h[3],u=this.h[4],v=r,y=i,w=n,M=h,_=u,A=0;A<80;A++){var S=o(f(a(r,d(A,i,n,h),t[b[A]+e],c(A)),g[A]),u);r=u,u=h,h=f(n,10),n=i,i=S,S=o(f(a(v,d(79-A,y,w,M),t[p[A]+e],l(A)),m[A]),_),v=_,_=M,M=f(w,10),w=y,y=S}S=s(this.h[1],n,M),this.h[1]=s(this.h[2],h,_),this.h[2]=s(this.h[3],u,v),this.h[3]=s(this.h[4],r,y),this.h[4]=s(this.h[0],i,w),this.h[0]=S},u.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"little"):i.split32(this.h,"little")};var b=[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],p=[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],g=[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],m=[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";var i=r(3),n=r(4);function f(t,e,r){if(!(this instanceof f))return new f(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))}t.exports=f,f.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),n(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)},f.prototype.update=function(t,e){return this.inner.update(t,e),this},f.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";var i=r(2),n=r(92),f=r(0),o=f.utils.assert,s=r(93),a=r(94);function h(t){if(!(this instanceof h))return new h(t);"string"==typeof t&&(o(f.curves.hasOwnProperty(t),"Unknown curve "+t),t=f.curves[t]),t instanceof f.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}t.exports=h,h.prototype.keyPair=function(t){return new s(this,t)},h.prototype.keyFromPrivate=function(t,e){return s.fromPrivate(this,t,e)},h.prototype.keyFromPublic=function(t,e){return s.fromPublic(this,t,e)},h.prototype.genKeyPair=function(t){t||(t={});for(var e=new n({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||f.rand(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new i(2));;){var s=new i(e.generate(r));if(!(s.cmp(o)>0))return s.iaddn(1),this.keyFromPrivate(s)}},h.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},h.prototype.sign=function(t,e,r,f){"object"==typeof r&&(f=r,r=null),f||(f={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new i(t,16));for(var o=this.n.byteLength(),s=e.getPrivate().toArray("be",o),h=t.toArray("be",o),u=new n({hash:this.hash,entropy:s,nonce:h,pers:f.pers,persEnc:f.persEnc||"utf8"}),d=this.n.sub(new i(1)),c=0;;c++){var l=f.k?f.k(c):new i(u.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(d)>=0)){var b=this.g.mul(l);if(!b.isInfinity()){var p=b.getX(),g=p.umod(this.n);if(0!==g.cmpn(0)){var m=l.invm(this.n).mul(g.mul(e.getPrivate()).iadd(t));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(b.getY().isOdd()?1:0)|(0!==p.cmp(g)?2:0);return f.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new a({r:g,s:m,recoveryParam:v})}}}}}},h.prototype.verify=function(t,e,r,n){t=this._truncateToN(new i(t,16)),r=this.keyFromPublic(r,n);var f=(e=new a(e,"hex")).r,o=e.s;if(f.cmpn(1)<0||f.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,h=o.invm(this.n),u=h.mul(t).umod(this.n),d=h.mul(f).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,r.getPublic(),d)).isInfinity()&&s.eqXToP(f):!(s=this.g.mulAdd(u,r.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(f)},h.prototype.recoverPubKey=function(t,e,r,n){o((3&r)===r,"The recovery param is more than two bits"),e=new a(e,n);var f=this.n,s=new i(t),h=e.r,u=e.s,d=1&r,c=r>>1;if(h.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");h=c?this.curve.pointFromX(h.add(this.curve.n),d):this.curve.pointFromX(h,d);var l=e.r.invm(f),b=f.sub(s).mul(l).umod(f),p=u.mul(l).umod(f);return this.g.mulAdd(b,h,p)},h.prototype.getKeyRecoveryParam=function(t,e,r,i){if(null!==(e=new a(e,i)).recoveryParam)return e.recoveryParam;for(var n=0;n<4;n++){var f;try{f=this.recoverPubKey(t,e,n)}catch(t){continue}if(f.eq(r))return n}throw new Error("Unable to find valid recovery factor")}},function(t,e,r){"use strict";var i=r(13),n=r(26),f=r(4);function o(t){if(!(this instanceof o))return new o(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=n.toArray(t.entropy,t.entropyEnc||"hex"),r=n.toArray(t.nonce,t.nonceEnc||"hex"),i=n.toArray(t.pers,t.persEnc||"hex");f(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,i)}t.exports=o,o.prototype._init=function(t,e,r){var i=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},o.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())},o.prototype.reseed=function(t,e,r,i){"string"!=typeof e&&(i=r,r=e,e=null),t=n.toArray(t,e),r=n.toArray(r,i),f(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},o.prototype.generate=function(t,e,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(i=r,r=e,e=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var f=[];f.length<t;)this.V=this._hmac().update(this.V).digest(),f=f.concat(this.V);var o=f.slice(0,t);return this._update(r),this._reseed++,n.encode(o,e)}},function(t,e,r){"use strict";var i=r(2),n=r(0).utils.assert;function f(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)}t.exports=f,f.fromPublic=function(t,e,r){return e instanceof f?e:new f(t,{pub:e,pubEnc:r})},f.fromPrivate=function(t,e,r){return e instanceof f?e:new f(t,{priv:e,privEnc:r})},f.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"}},f.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},f.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},f.prototype._importPrivate=function(t,e){this.priv=new i(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},f.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?n(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||n(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)},f.prototype.derive=function(t){return t.mul(this.priv).getX()},f.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},f.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},f.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";var i=r(2),n=r(0).utils,f=n.assert;function o(t,e){if(t instanceof o)return t;this._importDER(t,e)||(f(t.r&&t.s,"Signature without r or s"),this.r=new i(t.r,16),this.s=new i(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function s(){this.place=0}function a(t,e){var r=t[e.place++];if(!(128&r))return r;for(var i=15&r,n=0,f=0,o=e.place;f<i;f++,o++)n<<=8,n|=t[o];return e.place=o,n}function h(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 u(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}t.exports=o,o.prototype._importDER=function(t,e){t=n.toArray(t,e);var r=new s;if(48!==t[r.place++])return!1;if(a(t,r)+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var f=a(t,r),o=t.slice(r.place,f+r.place);if(r.place+=f,2!==t[r.place++])return!1;var h=a(t,r);if(t.length!==h+r.place)return!1;var u=t.slice(r.place,h+r.place);return 0===o[0]&&128&o[1]&&(o=o.slice(1)),0===u[0]&&128&u[1]&&(u=u.slice(1)),this.r=new i(o),this.s=new i(u),this.recoveryParam=null,!0},o.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=h(e),r=h(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];u(i,e.length),(i=i.concat(e)).push(2),u(i,r.length);var f=i.concat(r),o=[48];return u(o,f.length),o=o.concat(f),n.encode(o,t)}},function(t,e,r){"use strict";var i=r(13),n=r(0),f=n.utils,o=f.assert,s=f.parseBytes,a=r(96),h=r(97);function u(t){if(o("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof u))return new u(t);t=n.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}t.exports=u,u.prototype.sign=function(t,e){t=s(t);var r=this.keyFromSecret(e),i=this.hashInt(r.messagePrefix(),t),n=this.g.mul(i),f=this.encodePoint(n),o=this.hashInt(f,r.pubBytes(),t).mul(r.priv()),a=i.add(o).umod(this.curve.n);return this.makeSignature({R:n,S:a,Rencoded:f})},u.prototype.verify=function(t,e,r){t=s(t),e=this.makeSignature(e);var i=this.keyFromPublic(r),n=this.hashInt(e.Rencoded(),i.pubBytes(),t),f=this.g.mul(e.S());return e.R().add(i.pub().mul(n)).eq(f)},u.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return f.intFromLE(t.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(t){return a.fromPublic(this,t)},u.prototype.keyFromSecret=function(t){return a.fromSecret(this,t)},u.prototype.makeSignature=function(t){return t instanceof h?t:new h(this,t)},u.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},u.prototype.decodePoint=function(t){var e=(t=f.parseBytes(t)).length-1,r=t.slice(0,e).concat(-129&t[e]),i=0!=(128&t[e]),n=f.intFromLE(r);return this.curve.pointFromY(n,i)},u.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(t){return f.intFromLE(t)},u.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,r){"use strict";var i=r(0).utils,n=i.assert,f=i.parseBytes,o=i.cachedProperty;function s(t,e){this.eddsa=t,this._secret=f(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=f(e.pub)}s.fromPublic=function(t,e){return e instanceof s?e:new s(t,{pub:e})},s.fromSecret=function(t,e){return e instanceof s?e:new s(t,{secret:e})},s.prototype.secret=function(){return this._secret},o(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),o(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),o(s,"privBytes",function(){var t=this.eddsa,e=this.hash(),r=t.encodingLength-1,i=e.slice(0,t.encodingLength);return i[0]&=248,i[r]&=127,i[r]|=64,i}),o(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),o(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),o(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(t){return n(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},s.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},s.prototype.getSecret=function(t){return n(this._secret,"KeyPair is public only"),i.encode(this.secret(),t)},s.prototype.getPublic=function(t){return i.encode(this.pubBytes(),t)},t.exports=s},function(t,e,r){"use strict";var i=r(2),n=r(0).utils,f=n.assert,o=n.cachedProperty,s=n.parseBytes;function a(t,e){this.eddsa=t,"object"!=typeof e&&(e=s(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),f(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}o(a,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),o(a,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),o(a,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),o(a,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),a.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},a.prototype.toHex=function(){return n.encode(this.toBytes(),"hex").toUpperCase()},t.exports=a},function(t,e){},function(t,e,r){var i=r(100).Buffer;t.exports=function(t){for(var e={},r=t.length,n=t.charAt(0),f=0;f<t.length;f++){var o=t.charAt(f);if(void 0!==e[o])throw new TypeError(o+" is ambiguous");e[o]=f}function s(t){if("string"!=typeof t)throw new TypeError("Expected String");if(0===t.length)return i.allocUnsafe(0);for(var f=[0],o=0;o<t.length;o++){var s=e[t[o]];if(void 0===s)return;for(var a=0,h=s;a<f.length;++a)h+=f[a]*r,f[a]=255&h,h>>=8;for(;h>0;)f.push(255&h),h>>=8}for(var u=0;t[u]===n&&u<t.length-1;++u)f.push(0);return i.from(f.reverse())}return{encode:function(e){if(0===e.length)return"";for(var i=[0],f=0;f<e.length;++f){for(var o=0,s=e[f];o<i.length;++o)s+=i[o]<<8,i[o]=s%r,s=s/r|0;for(;s>0;)i.push(s%r),s=s/r|0}for(var a="",h=0;0===e[h]&&h<e.length-1;++h)a+=n;for(var u=i.length-1;u>=0;--u)a+=t[i[u]];return a},decodeUnsafe:s,decode:function(t){var e=s(t);if(e)return e;throw new Error("Non-base"+r+" character")}}}},function(t,e,r){var i=r(5),n=i.Buffer;function f(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return n(t,e,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=i:(f(i,e),e.Buffer=o),f(n,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,r)},o.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=n(t);return void 0!==e?"string"==typeof r?i.fill(e,r):i.fill(e):i.fill(0),i},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},function(t,e){!function(){var e=[],r=3945912366;function i(t){var e,i,n,f,o=-1;for(e=0,n=t.length;e<n;e+=1){for(f=255&(o^t[e]),i=0;i<8;i+=1)1==(1&f)?f=f>>>1^r:f>>>=1;o=o>>>8^f}return-1^o}function n(t,r){var i,f,o;if(void 0!==n.crc&&r&&t||(n.crc=-1,t)){for(i=n.crc,f=0,o=t.length;f<o;f+=1)i=i>>>8^e[255&(i^t[f])];return n.crc=i,-1^i}}!function(){var t,i,n;for(i=0;i<256;i+=1){for(t=i,n=0;n<8;n+=1)1&t?t=r^t>>>1:t>>>=1;e[i]=t>>>0}}(),t.exports=function(t,e){var r;t="string"==typeof t?(r=t,Array.prototype.map.call(r,function(t){return t.charCodeAt(0)})):t;return((e?i(t):n(t))>>>0).toString(16)},t.exports.direct=i,t.exports.table=n}()},function(t,e){t.exports=class{constructor(t){this.transaction=t,this.map={},this.status="",this.hash=""}on(t,e){return this.map[t]=e,"success"===t&&this._start(),this}pushMsg(t,e){const r=this.map[t];void 0!==r&&r(e)}_start(){this.status="pending";let t=1,e=this,r=setInterval(function(){if("success"===e.status||"failed"===e.status||t>90)return clearInterval(r),void("success"!==e.status&&"failed"!==e.status&&t>90&&e.pushMsg("failed","Error: tx "+e.hash+" on chain timeout."));t++,e.transaction.getTxReceiptByTxHash(e.hash).then(function(t){"SUCCESS"===t.status_code&&"pending"===e.status?(e.pushMsg("success",t),e.status="success"):void 0!==t.status_code&&"pending"===e.status&&(e.pushMsg("failed",t),e.status="failed")}).catch(function(t){})},1e3)}}},function(t,e){t.exports=class{constructor(t){this._id=t,this._key_id={},this._key_pair={}}addKeyPair(t,e=""){if(""===e&&!(e=this._key_id[t.id]))throw"key pair not exist";this._key_pair[e]=t}getID(){return this._id}getKeyPair(t){return this._kp[t]}static import(t){JSON.parse(t)}sign(t,e){t.addSign(this._key_pair[e])}signTx(t){t.addPublishSign(this._id,this._key_pair.active)}}}]);