(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00bb":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var a=0;a=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var i=0;"-"===e[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<>>26-o&4194303,o+=24,o>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,c=n;c1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var l=["","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"],c=[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],h=[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 f(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}function d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l>>26,h=67108863&u,f=Math.min(l,t.length-1),d=Math.max(0,l-e.length+1);d<=f;d++){var p=l-d|0;i=0|e.words[p],o=0|t.words[d],a=i*o+h,c+=a/67108864|0,h=67108863&a}n.words[l]=0|h,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(e=e||10,t=0|t||1,16===e||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215,n=0!==o||a!==this.length-1?l[6-u.length]+u+n:u+n,i+=2,i>=26&&(i-=26,a--)}0!==o&&(n=o.toString(16)+n);while(n.length%t!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var f=c[e],d=h[e];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(e);p=p.idivn(d),n=p.isZero()?m+n:l[f-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%t!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r("undefined"!==typeof a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,l=new e(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],w=8191&b,_=b>>>13,x=0|a[4],E=8191&x,C=x>>>13,D=0|a[5],S=8191&D,k=D>>>13,T=0|a[6],A=8191&T,M=T>>>13,O=0|a[7],N=8191&O,I=O>>>13,F=0|a[8],P=8191&F,L=F>>>13,R=0|a[9],B=8191&R,j=R>>>13,H=0|s[0],$=8191&H,q=H>>>13,U=0|s[1],z=8191&U,V=U>>>13,W=0|s[2],G=8191&W,K=W>>>13,X=0|s[3],Y=8191&X,J=X>>>13,Z=0|s[4],Q=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],he=8191&ce,fe=ce>>>13,de=0|s[9],pe=8191&de,me=de>>>13;n.negative=e.negative^t.negative,n.length=19,r=Math.imul(h,$),i=Math.imul(h,q),i=i+Math.imul(f,$)|0,o=Math.imul(f,q);var ge=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,$),i=Math.imul(p,q),i=i+Math.imul(m,$)|0,o=Math.imul(m,q),r=r+Math.imul(h,z)|0,i=i+Math.imul(h,V)|0,i=i+Math.imul(f,z)|0,o=o+Math.imul(f,V)|0;var ve=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,$),i=Math.imul(v,q),i=i+Math.imul(y,$)|0,o=Math.imul(y,q),r=r+Math.imul(p,z)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,z)|0,o=o+Math.imul(m,V)|0,r=r+Math.imul(h,G)|0,i=i+Math.imul(h,K)|0,i=i+Math.imul(f,G)|0,o=o+Math.imul(f,K)|0;var ye=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(w,$),i=Math.imul(w,q),i=i+Math.imul(_,$)|0,o=Math.imul(_,q),r=r+Math.imul(v,z)|0,i=i+Math.imul(v,V)|0,i=i+Math.imul(y,z)|0,o=o+Math.imul(y,V)|0,r=r+Math.imul(p,G)|0,i=i+Math.imul(p,K)|0,i=i+Math.imul(m,G)|0,o=o+Math.imul(m,K)|0,r=r+Math.imul(h,Y)|0,i=i+Math.imul(h,J)|0,i=i+Math.imul(f,Y)|0,o=o+Math.imul(f,J)|0;var be=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,$),i=Math.imul(E,q),i=i+Math.imul(C,$)|0,o=Math.imul(C,q),r=r+Math.imul(w,z)|0,i=i+Math.imul(w,V)|0,i=i+Math.imul(_,z)|0,o=o+Math.imul(_,V)|0,r=r+Math.imul(v,G)|0,i=i+Math.imul(v,K)|0,i=i+Math.imul(y,G)|0,o=o+Math.imul(y,K)|0,r=r+Math.imul(p,Y)|0,i=i+Math.imul(p,J)|0,i=i+Math.imul(m,Y)|0,o=o+Math.imul(m,J)|0,r=r+Math.imul(h,Q)|0,i=i+Math.imul(h,ee)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,ee)|0;var we=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(S,$),i=Math.imul(S,q),i=i+Math.imul(k,$)|0,o=Math.imul(k,q),r=r+Math.imul(E,z)|0,i=i+Math.imul(E,V)|0,i=i+Math.imul(C,z)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(w,G)|0,i=i+Math.imul(w,K)|0,i=i+Math.imul(_,G)|0,o=o+Math.imul(_,K)|0,r=r+Math.imul(v,Y)|0,i=i+Math.imul(v,J)|0,i=i+Math.imul(y,Y)|0,o=o+Math.imul(y,J)|0,r=r+Math.imul(p,Q)|0,i=i+Math.imul(p,ee)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0,r=r+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0,i=i+Math.imul(f,ne)|0,o=o+Math.imul(f,re)|0;var _e=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(A,$),i=Math.imul(A,q),i=i+Math.imul(M,$)|0,o=Math.imul(M,q),r=r+Math.imul(S,z)|0,i=i+Math.imul(S,V)|0,i=i+Math.imul(k,z)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(E,G)|0,i=i+Math.imul(E,K)|0,i=i+Math.imul(C,G)|0,o=o+Math.imul(C,K)|0,r=r+Math.imul(w,Y)|0,i=i+Math.imul(w,J)|0,i=i+Math.imul(_,Y)|0,o=o+Math.imul(_,J)|0,r=r+Math.imul(v,Q)|0,i=i+Math.imul(v,ee)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=i+Math.imul(p,re)|0,i=i+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0,r=r+Math.imul(h,oe)|0,i=i+Math.imul(h,ae)|0,i=i+Math.imul(f,oe)|0,o=o+Math.imul(f,ae)|0;var xe=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(N,$),i=Math.imul(N,q),i=i+Math.imul(I,$)|0,o=Math.imul(I,q),r=r+Math.imul(A,z)|0,i=i+Math.imul(A,V)|0,i=i+Math.imul(M,z)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(S,G)|0,i=i+Math.imul(S,K)|0,i=i+Math.imul(k,G)|0,o=o+Math.imul(k,K)|0,r=r+Math.imul(E,Y)|0,i=i+Math.imul(E,J)|0,i=i+Math.imul(C,Y)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,i=i+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,i=i+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(p,oe)|0,i=i+Math.imul(p,ae)|0,i=i+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,r=r+Math.imul(h,ue)|0,i=i+Math.imul(h,le)|0,i=i+Math.imul(f,ue)|0,o=o+Math.imul(f,le)|0;var Ee=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(P,$),i=Math.imul(P,q),i=i+Math.imul(L,$)|0,o=Math.imul(L,q),r=r+Math.imul(N,z)|0,i=i+Math.imul(N,V)|0,i=i+Math.imul(I,z)|0,o=o+Math.imul(I,V)|0,r=r+Math.imul(A,G)|0,i=i+Math.imul(A,K)|0,i=i+Math.imul(M,G)|0,o=o+Math.imul(M,K)|0,r=r+Math.imul(S,Y)|0,i=i+Math.imul(S,J)|0,i=i+Math.imul(k,Y)|0,o=o+Math.imul(k,J)|0,r=r+Math.imul(E,Q)|0,i=i+Math.imul(E,ee)|0,i=i+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,r=r+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,i=i+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(v,oe)|0,i=i+Math.imul(v,ae)|0,i=i+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,r=r+Math.imul(p,ue)|0,i=i+Math.imul(p,le)|0,i=i+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0,r=r+Math.imul(h,he)|0,i=i+Math.imul(h,fe)|0,i=i+Math.imul(f,he)|0,o=o+Math.imul(f,fe)|0;var Ce=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(B,$),i=Math.imul(B,q),i=i+Math.imul(j,$)|0,o=Math.imul(j,q),r=r+Math.imul(P,z)|0,i=i+Math.imul(P,V)|0,i=i+Math.imul(L,z)|0,o=o+Math.imul(L,V)|0,r=r+Math.imul(N,G)|0,i=i+Math.imul(N,K)|0,i=i+Math.imul(I,G)|0,o=o+Math.imul(I,K)|0,r=r+Math.imul(A,Y)|0,i=i+Math.imul(A,J)|0,i=i+Math.imul(M,Y)|0,o=o+Math.imul(M,J)|0,r=r+Math.imul(S,Q)|0,i=i+Math.imul(S,ee)|0,i=i+Math.imul(k,Q)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,i=i+Math.imul(C,ne)|0,o=o+Math.imul(C,re)|0,r=r+Math.imul(w,oe)|0,i=i+Math.imul(w,ae)|0,i=i+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(v,ue)|0,i=i+Math.imul(v,le)|0,i=i+Math.imul(y,ue)|0,o=o+Math.imul(y,le)|0,r=r+Math.imul(p,he)|0,i=i+Math.imul(p,fe)|0,i=i+Math.imul(m,he)|0,o=o+Math.imul(m,fe)|0,r=r+Math.imul(h,pe)|0,i=i+Math.imul(h,me)|0,i=i+Math.imul(f,pe)|0,o=o+Math.imul(f,me)|0;var De=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(B,z),i=Math.imul(B,V),i=i+Math.imul(j,z)|0,o=Math.imul(j,V),r=r+Math.imul(P,G)|0,i=i+Math.imul(P,K)|0,i=i+Math.imul(L,G)|0,o=o+Math.imul(L,K)|0,r=r+Math.imul(N,Y)|0,i=i+Math.imul(N,J)|0,i=i+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,r=r+Math.imul(A,Q)|0,i=i+Math.imul(A,ee)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(S,ne)|0,i=i+Math.imul(S,re)|0,i=i+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(E,oe)|0,i=i+Math.imul(E,ae)|0,i=i+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,r=r+Math.imul(w,ue)|0,i=i+Math.imul(w,le)|0,i=i+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,r=r+Math.imul(v,he)|0,i=i+Math.imul(v,fe)|0,i=i+Math.imul(y,he)|0,o=o+Math.imul(y,fe)|0,r=r+Math.imul(p,pe)|0,i=i+Math.imul(p,me)|0,i=i+Math.imul(m,pe)|0,o=o+Math.imul(m,me)|0;var Se=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,G),i=Math.imul(B,K),i=i+Math.imul(j,G)|0,o=Math.imul(j,K),r=r+Math.imul(P,Y)|0,i=i+Math.imul(P,J)|0,i=i+Math.imul(L,Y)|0,o=o+Math.imul(L,J)|0,r=r+Math.imul(N,Q)|0,i=i+Math.imul(N,ee)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(A,ne)|0,i=i+Math.imul(A,re)|0,i=i+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(S,oe)|0,i=i+Math.imul(S,ae)|0,i=i+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(E,ue)|0,i=i+Math.imul(E,le)|0,i=i+Math.imul(C,ue)|0,o=o+Math.imul(C,le)|0,r=r+Math.imul(w,he)|0,i=i+Math.imul(w,fe)|0,i=i+Math.imul(_,he)|0,o=o+Math.imul(_,fe)|0,r=r+Math.imul(v,pe)|0,i=i+Math.imul(v,me)|0,i=i+Math.imul(y,pe)|0,o=o+Math.imul(y,me)|0;var ke=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(B,Y),i=Math.imul(B,J),i=i+Math.imul(j,Y)|0,o=Math.imul(j,J),r=r+Math.imul(P,Q)|0,i=i+Math.imul(P,ee)|0,i=i+Math.imul(L,Q)|0,o=o+Math.imul(L,ee)|0,r=r+Math.imul(N,ne)|0,i=i+Math.imul(N,re)|0,i=i+Math.imul(I,ne)|0,o=o+Math.imul(I,re)|0,r=r+Math.imul(A,oe)|0,i=i+Math.imul(A,ae)|0,i=i+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(S,ue)|0,i=i+Math.imul(S,le)|0,i=i+Math.imul(k,ue)|0,o=o+Math.imul(k,le)|0,r=r+Math.imul(E,he)|0,i=i+Math.imul(E,fe)|0,i=i+Math.imul(C,he)|0,o=o+Math.imul(C,fe)|0,r=r+Math.imul(w,pe)|0,i=i+Math.imul(w,me)|0,i=i+Math.imul(_,pe)|0,o=o+Math.imul(_,me)|0;var Te=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,Q),i=Math.imul(B,ee),i=i+Math.imul(j,Q)|0,o=Math.imul(j,ee),r=r+Math.imul(P,ne)|0,i=i+Math.imul(P,re)|0,i=i+Math.imul(L,ne)|0,o=o+Math.imul(L,re)|0,r=r+Math.imul(N,oe)|0,i=i+Math.imul(N,ae)|0,i=i+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,r=r+Math.imul(A,ue)|0,i=i+Math.imul(A,le)|0,i=i+Math.imul(M,ue)|0,o=o+Math.imul(M,le)|0,r=r+Math.imul(S,he)|0,i=i+Math.imul(S,fe)|0,i=i+Math.imul(k,he)|0,o=o+Math.imul(k,fe)|0,r=r+Math.imul(E,pe)|0,i=i+Math.imul(E,me)|0,i=i+Math.imul(C,pe)|0,o=o+Math.imul(C,me)|0;var Ae=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(B,ne),i=Math.imul(B,re),i=i+Math.imul(j,ne)|0,o=Math.imul(j,re),r=r+Math.imul(P,oe)|0,i=i+Math.imul(P,ae)|0,i=i+Math.imul(L,oe)|0,o=o+Math.imul(L,ae)|0,r=r+Math.imul(N,ue)|0,i=i+Math.imul(N,le)|0,i=i+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,r=r+Math.imul(A,he)|0,i=i+Math.imul(A,fe)|0,i=i+Math.imul(M,he)|0,o=o+Math.imul(M,fe)|0,r=r+Math.imul(S,pe)|0,i=i+Math.imul(S,me)|0,i=i+Math.imul(k,pe)|0,o=o+Math.imul(k,me)|0;var Me=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(B,oe),i=Math.imul(B,ae),i=i+Math.imul(j,oe)|0,o=Math.imul(j,ae),r=r+Math.imul(P,ue)|0,i=i+Math.imul(P,le)|0,i=i+Math.imul(L,ue)|0,o=o+Math.imul(L,le)|0,r=r+Math.imul(N,he)|0,i=i+Math.imul(N,fe)|0,i=i+Math.imul(I,he)|0,o=o+Math.imul(I,fe)|0,r=r+Math.imul(A,pe)|0,i=i+Math.imul(A,me)|0,i=i+Math.imul(M,pe)|0,o=o+Math.imul(M,me)|0;var Oe=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(B,ue),i=Math.imul(B,le),i=i+Math.imul(j,ue)|0,o=Math.imul(j,le),r=r+Math.imul(P,he)|0,i=i+Math.imul(P,fe)|0,i=i+Math.imul(L,he)|0,o=o+Math.imul(L,fe)|0,r=r+Math.imul(N,pe)|0,i=i+Math.imul(N,me)|0,i=i+Math.imul(I,pe)|0,o=o+Math.imul(I,me)|0;var Ne=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(B,he),i=Math.imul(B,fe),i=i+Math.imul(j,he)|0,o=Math.imul(j,fe),r=r+Math.imul(P,pe)|0,i=i+Math.imul(P,me)|0,i=i+Math.imul(L,pe)|0,o=o+Math.imul(L,me)|0;var Ie=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(B,pe),i=Math.imul(B,me),i=i+Math.imul(j,pe)|0,o=Math.imul(j,me);var Fe=(l+r|0)+((8191&i)<<13)|0;return l=(o+(i>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,u[0]=ge,u[1]=ve,u[2]=ye,u[3]=be,u[4]=we,u[5]=_e,u[6]=xe,u[7]=Ee,u[8]=Ce,u[9]=De,u[10]=Se,u[11]=ke,u[12]=Te,u[13]=Ae,u[14]=Me,u[15]=Oe,u[16]=Ne,u[17]=Ie,u[18]=Fe,0!==l&&(u[19]=l,n.length++),n};function m(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0,i+=a>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function g(e,t,n){var r=new v;return r.mulp(e,t,n)}function v(e,t){this.x=e,this.y=t}Math.imul||(p=d),o.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?p(this,e,t):r<63?d(this,e,t):r<1024?m(this,e,t):g(this,e,t),n},v.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r>=1;return r},v.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=f(e);if(0===t.length)return new o(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=i);l--){var h=0|this.words[l];this.words[l]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=this.length-e.length,r=this.clone(),i=e,a=0|i.words[i.length-1],s=this._countBits(a);n=26-s,0!==n&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var u,l=r.length-i.length;if("mod"!==t){u=new o(null),u.length=l+1,u.words=new Array(u.length);for(var c=0;c=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);while(0!==r.negative)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;while(t.isEven()&&n.isEven())t.iushrn(1),n.iushrn(1),++l;var c=n.clone(),h=t.clone();while(!t.isZero()){for(var f=0,d=1;0===(t.words[0]&d)&&f<26;++f,d<<=1);if(f>0){t.iushrn(f);while(f-- >0)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1)}t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(u)):(n.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();var i,a=new o(1),s=new o(0),u=n.clone();while(t.cmpn(1)>0&&n.cmpn(1)>0){for(var l=0,c=1;0===(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0){t.iushrn(l);while(l-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}for(var h=0,f=1;0===(n.words[0]&f)&&h<26;++h,f<<=1);if(h>0){n.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return i=0===t.cmpn(1)?a:s,i.cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);do{while(t.isEven())t.iushrn(1);while(n.isEven())n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}while(1);return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new C(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function D(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),t=n.bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(w,b),w.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new _;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return y[e]=t,t},C.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},C.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}var i=this.m.subn(1),a=0;while(!i.isZero()&&0===i.andln(1))a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,l).cmp(u))c.redIAdd(u);var h=this.pow(c,i),f=this.pow(e,i.addn(1).iushrn(1)),d=this.pow(e,i),p=a;while(0!==d.cmp(s)){for(var m=d,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g