>>26):y+=8;this.strip()},s.prototype._parseBase=function(c,O,u){this.words=[0];for(var m=0,g=this.length=1;g<=67108863;g*=O)m++;g=g/O|0;for(var y=c.length-u,S=y%--m,p=Math.min(y,y-S)+u,_=0,I=u;I"};var i=["","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"],n=[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],f=[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 h(c,O,u){u.negative=O.negative^c.negative;var m=(u.length=m=c.length+O.length|0)-1|0,g=(S=(0|c.words[0])*(0|O.words[0]))/67108864|0;u.words[0]=67108863&S;for(var y=1;y>>26,_=67108863&g,I=Math.min(y,O.length-1),R=Math.max(0,y-c.length+1);R<=I;R++)p+=(S=(0|c.words[y-R|0])*(0|O.words[R])+_)/67108864|0,_=67108863&S;u.words[y]=0|_,g=0|p}return 0!==g?u.words[y]=0|g:u.length--,u.strip()}s.prototype.toString=function(c,O){if(O=0|O||1,16===(c=c||10)||"hex"===c){p="";for(var u=0,m=0,g=0;g>>24-u&16777215)||g!==this.length-1?i[6-S.length]+S+p:S+p;26<=(u+=2)&&(u-=26,g--)}for(0!==m&&(p=m.toString(16)+p);p.length%O!=0;)p="0"+p;return 0!==this.negative?"-"+p:p}if(c===(0|c)&&2<=c&&c<=36){var _=n[c],I=f[c];for(p="",(R=this.clone()).negative=0;!R.isZero();){var R,U=R.modn(I).toString(c);p=(R=R.idivn(I)).isZero()?U+p:i[_-U.length]+U+p}for(this.isZero()&&(p="0"+p);p.length%O!=0;)p="0"+p;return 0!==this.negative?"-"+p:p}l(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var c=this.words[0];return 2===this.length?c+=67108864*this.words[1]:3===this.length&&1===this.words[2]?c+=4503599627370496+67108864*this.words[1]:2>>=13),64<=c&&(O+=7,c>>>=7),8<=c&&(O+=4,c>>>=4),2<=c&&(O+=2,c>>>=2),O+c},s.prototype._zeroBits=function(c){if(0===c)return 26;var O=0;return!(8191&c)&&(O+=13,c>>>=13),!(127&c)&&(O+=7,c>>>=7),!(15&c)&&(O+=4,c>>>=4),!(3&c)&&(O+=2,c>>>=2),!(1&c)&&O++,O},s.prototype.bitLength=function(){var c=this._countBits(c=this.words[this.length-1]);return 26*(this.length-1)+c},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var c=0,O=0;Oc.length?this.clone().ior(c):c.clone().ior(this)},s.prototype.uor=function(c){return this.length>c.length?this.clone().iuor(c):c.clone().iuor(this)},s.prototype.iuand=function(c){for(var O=this.length>c.length?c:this,u=0;uc.length?this.clone().iand(c):c.clone().iand(this)},s.prototype.uand=function(c){return this.length>c.length?this.clone().iuand(c):c.clone().iuand(this)},s.prototype.iuxor=function(c){for(var O,u=this.length>c.length?(O=this,c):(O=c,this),m=0;mc.length?this.clone().ixor(c):c.clone().ixor(this)},s.prototype.uxor=function(c){return this.length>c.length?this.clone().iuxor(c):c.clone().iuxor(this)},s.prototype.inotn=function(u){l("number"==typeof u&&0<=u);var O=0|Math.ceil(u/26);u%=26,this._expand(O),0>26-u),this.strip()},s.prototype.notn=function(c){return this.clone().inotn(c)},s.prototype.setn=function(m,O){l("number"==typeof m&&0<=m);var u=m/26|0;return m%=26,this._expand(1+u),this.words[u]=O?this.words[u]|1<c.length?(u=this,c):(u=c,this),g=0,y=0;y>>26;for(;0!==g&&y>>26;if(this.length=u.length,0!==g)this.words[this.length]=g,this.length++;else if(u!==this)for(;yc.length?this.clone().iadd(c):c.clone().iadd(this)},s.prototype.isub=function(c){var O;if(0!==c.negative)return c.negative=0,O=this.iadd(c),c.negative=1,O._normSign();if(0!==this.negative)return this.negative=0,this.iadd(c),this.negative=1,this._normSign();var u,m=this.cmp(c);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;for(var g=0>26,this.words[S]=67108863&O;for(;0!==y&&S>26,this.words[S]=67108863&O;if(0===y&&S>>13,_t=8191&(mt=0|et[1]),mt=mt>>>13,y=8191&(S=0|et[2]),S=S>>>13,p=8191&(_=0|et[3]),_=_>>>13,I=8191&(R=0|et[4]),R=R>>>13,U=8191&(V=0|et[5]),V=V>>>13,D=8191&(P=0|et[6]),P=P>>>13,F=8191&(H=0|et[7]),H=H>>>13,K=8191&(G=0|et[8]),G=G>>>13,ot=8191&(et=0|et[9]),et=et>>>13,kt=8191&(At=0|(ft=gt.words)[0]),At=At>>>13,vt=8191&(bt=0|ft[1]),bt=bt>>>13,wt=8191&(yt=0|ft[2]),yt=yt>>>13,N=8191&(Y=0|ft[3]),Y=Y>>>13,X=8191&(C=0|ft[4]),C=C>>>13,J=8191&(tt=0|ft[5]),tt=tt>>>13,st=8191&(Q=0|ft[6]),Q=Q>>>13,at=8191&(it=0|ft[7]),it=it>>>13,ct=8191&(ut=0|ft[8]),ut=ut>>>13,lt=8191&(ft=0|ft[9]),ft=ft>>>13,ht=(u.negative=c.negative^gt.negative,u.length=19,gt=(0+Math.imul(dt,kt)|0)+((8191&(c=Math.imul(dt,At)+Math.imul(pt,kt)|0))<<13)|0,(Math.imul(pt,At)+(c>>>13)|0)+(gt>>>26)|0);gt&=67108863,m=Math.imul(_t,kt),c=Math.imul(_t,At)+Math.imul(mt,kt)|0,nt=Math.imul(mt,At);var nt,Et=(ht+(m+Math.imul(dt,vt)|0)|0)+((8191&(c=(c+Math.imul(dt,bt)|0)+Math.imul(pt,vt)|0))<<13)|0,rt=(ht=((nt+Math.imul(pt,bt)|0)+(c>>>13)|0)+(Et>>>26)|0,Et&=67108863,m=Math.imul(y,kt),c=Math.imul(y,At)+Math.imul(S,kt)|0,nt=Math.imul(S,At),m=m+Math.imul(_t,vt)|0,c=(c+Math.imul(_t,bt)|0)+Math.imul(mt,vt)|0,nt=nt+Math.imul(mt,bt)|0,(ht+(m+Math.imul(dt,wt)|0)|0)+((8191&(c=(c+Math.imul(dt,yt)|0)+Math.imul(pt,wt)|0))<<13)|0),Mt=(ht=((nt+Math.imul(pt,yt)|0)+(c>>>13)|0)+(rt>>>26)|0,rt&=67108863,m=Math.imul(p,kt),c=Math.imul(p,At)+Math.imul(_,kt)|0,nt=Math.imul(_,At),m=m+Math.imul(y,vt)|0,c=(c+Math.imul(y,bt)|0)+Math.imul(S,vt)|0,nt=nt+Math.imul(S,bt)|0,m=m+Math.imul(_t,wt)|0,c=(c+Math.imul(_t,yt)|0)+Math.imul(mt,wt)|0,nt=nt+Math.imul(mt,yt)|0,(ht+(m+Math.imul(dt,N)|0)|0)+((8191&(c=(c+Math.imul(dt,Y)|0)+Math.imul(pt,N)|0))<<13)|0),Tt=(ht=((nt+Math.imul(pt,Y)|0)+(c>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,m=Math.imul(I,kt),c=Math.imul(I,At)+Math.imul(R,kt)|0,nt=Math.imul(R,At),m=m+Math.imul(p,vt)|0,c=(c+Math.imul(p,bt)|0)+Math.imul(_,vt)|0,nt=nt+Math.imul(_,bt)|0,m=m+Math.imul(y,wt)|0,c=(c+Math.imul(y,yt)|0)+Math.imul(S,wt)|0,nt=nt+Math.imul(S,yt)|0,m=m+Math.imul(_t,N)|0,c=(c+Math.imul(_t,Y)|0)+Math.imul(mt,N)|0,nt=nt+Math.imul(mt,Y)|0,(ht+(m+Math.imul(dt,X)|0)|0)+((8191&(c=(c+Math.imul(dt,C)|0)+Math.imul(pt,X)|0))<<13)|0),It=(ht=((nt+Math.imul(pt,C)|0)+(c>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,m=Math.imul(U,kt),c=Math.imul(U,At)+Math.imul(V,kt)|0,nt=Math.imul(V,At),m=m+Math.imul(I,vt)|0,c=(c+Math.imul(I,bt)|0)+Math.imul(R,vt)|0,nt=nt+Math.imul(R,bt)|0,m=m+Math.imul(p,wt)|0,c=(c+Math.imul(p,yt)|0)+Math.imul(_,wt)|0,nt=nt+Math.imul(_,yt)|0,m=m+Math.imul(y,N)|0,c=(c+Math.imul(y,Y)|0)+Math.imul(S,N)|0,nt=nt+Math.imul(S,Y)|0,m=m+Math.imul(_t,X)|0,c=(c+Math.imul(_t,C)|0)+Math.imul(mt,X)|0,nt=nt+Math.imul(mt,C)|0,(ht+(m+Math.imul(dt,J)|0)|0)+((8191&(c=(c+Math.imul(dt,tt)|0)+Math.imul(pt,J)|0))<<13)|0),Rt=(ht=((nt+Math.imul(pt,tt)|0)+(c>>>13)|0)+(It>>>26)|0,It&=67108863,m=Math.imul(D,kt),c=Math.imul(D,At)+Math.imul(P,kt)|0,nt=Math.imul(P,At),m=m+Math.imul(U,vt)|0,c=(c+Math.imul(U,bt)|0)+Math.imul(V,vt)|0,nt=nt+Math.imul(V,bt)|0,m=m+Math.imul(I,wt)|0,c=(c+Math.imul(I,yt)|0)+Math.imul(R,wt)|0,nt=nt+Math.imul(R,yt)|0,m=m+Math.imul(p,N)|0,c=(c+Math.imul(p,Y)|0)+Math.imul(_,N)|0,nt=nt+Math.imul(_,Y)|0,m=m+Math.imul(y,X)|0,c=(c+Math.imul(y,C)|0)+Math.imul(S,X)|0,nt=nt+Math.imul(S,C)|0,m=m+Math.imul(_t,J)|0,c=(c+Math.imul(_t,tt)|0)+Math.imul(mt,J)|0,nt=nt+Math.imul(mt,tt)|0,(ht+(m+Math.imul(dt,st)|0)|0)+((8191&(c=(c+Math.imul(dt,Q)|0)+Math.imul(pt,st)|0))<<13)|0),xt=(ht=((nt+Math.imul(pt,Q)|0)+(c>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,m=Math.imul(F,kt),c=Math.imul(F,At)+Math.imul(H,kt)|0,nt=Math.imul(H,At),m=m+Math.imul(D,vt)|0,c=(c+Math.imul(D,bt)|0)+Math.imul(P,vt)|0,nt=nt+Math.imul(P,bt)|0,m=m+Math.imul(U,wt)|0,c=(c+Math.imul(U,yt)|0)+Math.imul(V,wt)|0,nt=nt+Math.imul(V,yt)|0,m=m+Math.imul(I,N)|0,c=(c+Math.imul(I,Y)|0)+Math.imul(R,N)|0,nt=nt+Math.imul(R,Y)|0,m=m+Math.imul(p,X)|0,c=(c+Math.imul(p,C)|0)+Math.imul(_,X)|0,nt=nt+Math.imul(_,C)|0,m=m+Math.imul(y,J)|0,c=(c+Math.imul(y,tt)|0)+Math.imul(S,J)|0,nt=nt+Math.imul(S,tt)|0,m=m+Math.imul(_t,st)|0,c=(c+Math.imul(_t,Q)|0)+Math.imul(mt,st)|0,nt=nt+Math.imul(mt,Q)|0,(ht+(m+Math.imul(dt,at)|0)|0)+((8191&(c=(c+Math.imul(dt,it)|0)+Math.imul(pt,at)|0))<<13)|0),St=(ht=((nt+Math.imul(pt,it)|0)+(c>>>13)|0)+(xt>>>26)|0,xt&=67108863,m=Math.imul(K,kt),c=Math.imul(K,At)+Math.imul(G,kt)|0,nt=Math.imul(G,At),m=m+Math.imul(F,vt)|0,c=(c+Math.imul(F,bt)|0)+Math.imul(H,vt)|0,nt=nt+Math.imul(H,bt)|0,m=m+Math.imul(D,wt)|0,c=(c+Math.imul(D,yt)|0)+Math.imul(P,wt)|0,nt=nt+Math.imul(P,yt)|0,m=m+Math.imul(U,N)|0,c=(c+Math.imul(U,Y)|0)+Math.imul(V,N)|0,nt=nt+Math.imul(V,Y)|0,m=m+Math.imul(I,X)|0,c=(c+Math.imul(I,C)|0)+Math.imul(R,X)|0,nt=nt+Math.imul(R,C)|0,m=m+Math.imul(p,J)|0,c=(c+Math.imul(p,tt)|0)+Math.imul(_,J)|0,nt=nt+Math.imul(_,tt)|0,m=m+Math.imul(y,st)|0,c=(c+Math.imul(y,Q)|0)+Math.imul(S,st)|0,nt=nt+Math.imul(S,Q)|0,m=m+Math.imul(_t,at)|0,c=(c+Math.imul(_t,it)|0)+Math.imul(mt,at)|0,nt=nt+Math.imul(mt,it)|0,(ht+(m+Math.imul(dt,ct)|0)|0)+((8191&(c=(c+Math.imul(dt,ut)|0)+Math.imul(pt,ct)|0))<<13)|0);return ht=((nt+Math.imul(pt,ut)|0)+(c>>>13)|0)+(St>>>26)|0,St&=67108863,m=Math.imul(ot,kt),c=Math.imul(ot,At)+Math.imul(et,kt)|0,nt=Math.imul(et,At),m=m+Math.imul(K,vt)|0,c=(c+Math.imul(K,bt)|0)+Math.imul(G,vt)|0,nt=nt+Math.imul(G,bt)|0,m=m+Math.imul(F,wt)|0,c=(c+Math.imul(F,yt)|0)+Math.imul(H,wt)|0,nt=nt+Math.imul(H,yt)|0,m=m+Math.imul(D,N)|0,c=(c+Math.imul(D,Y)|0)+Math.imul(P,N)|0,nt=nt+Math.imul(P,Y)|0,m=m+Math.imul(U,X)|0,c=(c+Math.imul(U,C)|0)+Math.imul(V,X)|0,nt=nt+Math.imul(V,C)|0,m=m+Math.imul(I,J)|0,c=(c+Math.imul(I,tt)|0)+Math.imul(R,J)|0,nt=nt+Math.imul(R,tt)|0,m=m+Math.imul(p,st)|0,c=(c+Math.imul(p,Q)|0)+Math.imul(_,st)|0,nt=nt+Math.imul(_,Q)|0,m=m+Math.imul(y,at)|0,c=(c+Math.imul(y,it)|0)+Math.imul(S,at)|0,nt=nt+Math.imul(S,it)|0,m=m+Math.imul(_t,ct)|0,c=(c+Math.imul(_t,ut)|0)+Math.imul(mt,ct)|0,nt=nt+Math.imul(mt,ut)|0,kt=(ht+(m+Math.imul(dt,lt)|0)|0)+((8191&(c=(c+Math.imul(dt,ft)|0)+Math.imul(pt,lt)|0))<<13)|0,ht=((nt+Math.imul(pt,ft)|0)+(c>>>13)|0)+(kt>>>26)|0,kt&=67108863,m=Math.imul(ot,vt),c=Math.imul(ot,bt)+Math.imul(et,vt)|0,nt=Math.imul(et,bt),m=m+Math.imul(K,wt)|0,c=(c+Math.imul(K,yt)|0)+Math.imul(G,wt)|0,nt=nt+Math.imul(G,yt)|0,m=m+Math.imul(F,N)|0,c=(c+Math.imul(F,Y)|0)+Math.imul(H,N)|0,nt=nt+Math.imul(H,Y)|0,m=m+Math.imul(D,X)|0,c=(c+Math.imul(D,C)|0)+Math.imul(P,X)|0,nt=nt+Math.imul(P,C)|0,m=m+Math.imul(U,J)|0,c=(c+Math.imul(U,tt)|0)+Math.imul(V,J)|0,nt=nt+Math.imul(V,tt)|0,m=m+Math.imul(I,st)|0,c=(c+Math.imul(I,Q)|0)+Math.imul(R,st)|0,nt=nt+Math.imul(R,Q)|0,m=m+Math.imul(p,at)|0,c=(c+Math.imul(p,it)|0)+Math.imul(_,at)|0,nt=nt+Math.imul(_,it)|0,m=m+Math.imul(y,ct)|0,c=(c+Math.imul(y,ut)|0)+Math.imul(S,ct)|0,nt=nt+Math.imul(S,ut)|0,At=(ht+(m+Math.imul(_t,lt)|0)|0)+((8191&(c=(c+Math.imul(_t,ft)|0)+Math.imul(mt,lt)|0))<<13)|0,ht=((nt+Math.imul(mt,ft)|0)+(c>>>13)|0)+(At>>>26)|0,At&=67108863,m=Math.imul(ot,wt),c=Math.imul(ot,yt)+Math.imul(et,wt)|0,nt=Math.imul(et,yt),m=m+Math.imul(K,N)|0,c=(c+Math.imul(K,Y)|0)+Math.imul(G,N)|0,nt=nt+Math.imul(G,Y)|0,m=m+Math.imul(F,X)|0,c=(c+Math.imul(F,C)|0)+Math.imul(H,X)|0,nt=nt+Math.imul(H,C)|0,m=m+Math.imul(D,J)|0,c=(c+Math.imul(D,tt)|0)+Math.imul(P,J)|0,nt=nt+Math.imul(P,tt)|0,m=m+Math.imul(U,st)|0,c=(c+Math.imul(U,Q)|0)+Math.imul(V,st)|0,nt=nt+Math.imul(V,Q)|0,m=m+Math.imul(I,at)|0,c=(c+Math.imul(I,it)|0)+Math.imul(R,at)|0,nt=nt+Math.imul(R,it)|0,m=m+Math.imul(p,ct)|0,c=(c+Math.imul(p,ut)|0)+Math.imul(_,ct)|0,nt=nt+Math.imul(_,ut)|0,dt=(ht+(m+Math.imul(y,lt)|0)|0)+((8191&(c=(c+Math.imul(y,ft)|0)+Math.imul(S,lt)|0))<<13)|0,ht=((nt+Math.imul(S,ft)|0)+(c>>>13)|0)+(dt>>>26)|0,dt&=67108863,m=Math.imul(ot,N),c=Math.imul(ot,Y)+Math.imul(et,N)|0,nt=Math.imul(et,Y),m=m+Math.imul(K,X)|0,c=(c+Math.imul(K,C)|0)+Math.imul(G,X)|0,nt=nt+Math.imul(G,C)|0,m=m+Math.imul(F,J)|0,c=(c+Math.imul(F,tt)|0)+Math.imul(H,J)|0,nt=nt+Math.imul(H,tt)|0,m=m+Math.imul(D,st)|0,c=(c+Math.imul(D,Q)|0)+Math.imul(P,st)|0,nt=nt+Math.imul(P,Q)|0,m=m+Math.imul(U,at)|0,c=(c+Math.imul(U,it)|0)+Math.imul(V,at)|0,nt=nt+Math.imul(V,it)|0,m=m+Math.imul(I,ct)|0,c=(c+Math.imul(I,ut)|0)+Math.imul(R,ct)|0,nt=nt+Math.imul(R,ut)|0,pt=(ht+(m+Math.imul(p,lt)|0)|0)+((8191&(c=(c+Math.imul(p,ft)|0)+Math.imul(_,lt)|0))<<13)|0,ht=((nt+Math.imul(_,ft)|0)+(c>>>13)|0)+(pt>>>26)|0,pt&=67108863,m=Math.imul(ot,X),c=Math.imul(ot,C)+Math.imul(et,X)|0,nt=Math.imul(et,C),m=m+Math.imul(K,J)|0,c=(c+Math.imul(K,tt)|0)+Math.imul(G,J)|0,nt=nt+Math.imul(G,tt)|0,m=m+Math.imul(F,st)|0,c=(c+Math.imul(F,Q)|0)+Math.imul(H,st)|0,nt=nt+Math.imul(H,Q)|0,m=m+Math.imul(D,at)|0,c=(c+Math.imul(D,it)|0)+Math.imul(P,at)|0,nt=nt+Math.imul(P,it)|0,m=m+Math.imul(U,ct)|0,c=(c+Math.imul(U,ut)|0)+Math.imul(V,ct)|0,nt=nt+Math.imul(V,ut)|0,vt=(ht+(m+Math.imul(I,lt)|0)|0)+((8191&(c=(c+Math.imul(I,ft)|0)+Math.imul(R,lt)|0))<<13)|0,ht=((nt+Math.imul(R,ft)|0)+(c>>>13)|0)+(vt>>>26)|0,vt&=67108863,m=Math.imul(ot,J),c=Math.imul(ot,tt)+Math.imul(et,J)|0,nt=Math.imul(et,tt),m=m+Math.imul(K,st)|0,c=(c+Math.imul(K,Q)|0)+Math.imul(G,st)|0,nt=nt+Math.imul(G,Q)|0,m=m+Math.imul(F,at)|0,c=(c+Math.imul(F,it)|0)+Math.imul(H,at)|0,nt=nt+Math.imul(H,it)|0,m=m+Math.imul(D,ct)|0,c=(c+Math.imul(D,ut)|0)+Math.imul(P,ct)|0,nt=nt+Math.imul(P,ut)|0,bt=(ht+(m+Math.imul(U,lt)|0)|0)+((8191&(c=(c+Math.imul(U,ft)|0)+Math.imul(V,lt)|0))<<13)|0,ht=((nt+Math.imul(V,ft)|0)+(c>>>13)|0)+(bt>>>26)|0,bt&=67108863,m=Math.imul(ot,st),c=Math.imul(ot,Q)+Math.imul(et,st)|0,nt=Math.imul(et,Q),m=m+Math.imul(K,at)|0,c=(c+Math.imul(K,it)|0)+Math.imul(G,at)|0,nt=nt+Math.imul(G,it)|0,m=m+Math.imul(F,ct)|0,c=(c+Math.imul(F,ut)|0)+Math.imul(H,ct)|0,nt=nt+Math.imul(H,ut)|0,_t=(ht+(m+Math.imul(D,lt)|0)|0)+((8191&(c=(c+Math.imul(D,ft)|0)+Math.imul(P,lt)|0))<<13)|0,ht=((nt+Math.imul(P,ft)|0)+(c>>>13)|0)+(_t>>>26)|0,_t&=67108863,m=Math.imul(ot,at),c=Math.imul(ot,it)+Math.imul(et,at)|0,nt=Math.imul(et,it),m=m+Math.imul(K,ct)|0,c=(c+Math.imul(K,ut)|0)+Math.imul(G,ct)|0,nt=nt+Math.imul(G,ut)|0,mt=(ht+(m+Math.imul(F,lt)|0)|0)+((8191&(c=(c+Math.imul(F,ft)|0)+Math.imul(H,lt)|0))<<13)|0,ht=((nt+Math.imul(H,ft)|0)+(c>>>13)|0)+(mt>>>26)|0,mt&=67108863,m=Math.imul(ot,ct),c=Math.imul(ot,ut)+Math.imul(et,ct)|0,nt=Math.imul(et,ut),wt=(ht+(m+Math.imul(K,lt)|0)|0)+((8191&(c=(c+Math.imul(K,ft)|0)+Math.imul(G,lt)|0))<<13)|0,ht=((nt+Math.imul(G,ft)|0)+(c>>>13)|0)+(wt>>>26)|0,wt&=67108863,yt=(ht+Math.imul(ot,lt)|0)+((8191&(c=Math.imul(ot,ft)+Math.imul(et,lt)|0))<<13)|0,ht=(Math.imul(et,ft)+(c>>>13)|0)+(yt>>>26)|0,yt&=67108863,g[0]=gt,g[1]=Et,g[2]=rt,g[3]=Mt,g[4]=Tt,g[5]=It,g[6]=Rt,g[7]=xt,g[8]=St,g[9]=kt,g[10]=At,g[11]=dt,g[12]=pt,g[13]=vt,g[14]=bt,g[15]=_t,g[16]=mt,g[17]=wt,g[18]=yt,0!=ht&&(g[19]=ht,u.length++),u};function E(c,O,u){return(new A).mulp(c,O,u)}function A(c,O){this.x=c,this.y=O}Math.imul||(b=h),s.prototype.mulTo=function(c,O){var u=this.length+c.length;return(10===this.length&&10===c.length?b:u<63?h:u<1024?function(m,g,y){y.negative=g.negative^m.negative,y.length=m.length+g.length;for(var S=0,p=0,_=0;_>>26)|0)>>>26,I&=67108863}y.words[_]=R,S=I,I=p}return 0!==S?y.words[_]=S:y.length--,y.strip()}:E)(this,c,O)},A.prototype.makeRBT=function(c){for(var O=new Array(c),u=s.prototype._countBits(c)-1,m=0;m>=1;return m},A.prototype.permute=function(c,O,u,m,g,y){for(var S=0;S>>=1)u++;return 1<>>=13),g>>>=13;for(y=2*O;y>=26)+(m/67108864|0)+(g>>>26),this.words[u]=67108863&g}return 0!==O&&(this.words[u]=O,this.length++),this},s.prototype.muln=function(c){return this.clone().imuln(c)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(c){var O=function(y){for(var S=new Array(y.bitLength()),p=0;p>>_}return S}(c);if(0===O.length)return new s(1);for(var u=this,m=0;m>>26-O<<26-O;if(0!=O){for(var g=0,y=0;y>>26-O}g&&(this.words[y]=g,this.length++)}if(0!=u){for(y=this.length-1;0<=y;y--)this.words[y+u]=this.words[y];for(y=0;y>>g<y)for(this.length-=y,_=0;_>>g,I=R&S}return p&&0!==I&&(p.words[p.length++]=I),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(c,O,u){return l(0===this.negative),this.iushrn(c,O,u)},s.prototype.shln=function(c){return this.clone().ishln(c)},s.prototype.ushln=function(c){return this.clone().iushln(c)},s.prototype.shrn=function(c){return this.clone().ishrn(c)},s.prototype.ushrn=function(c){return this.clone().iushrn(c)},s.prototype.testn=function(u){l("number"==typeof u&&0<=u);var O=u%26;return!(this.length<=(u=(u-O)/26)||!(this.words[u]&1<>>O<>26)-(p/67108864|0),this.words[y+u]=67108863&S}for(;y>26,this.words[y+u]=67108863&S;if(0===g)return this.strip();for(l(-1===g),y=g=0;y>26,this.words[y]=67108863&S;return this.negative=1,this.strip()},s.prototype._wordDiv=function(c,O){var u,m=this.clone(),g=c,y=0|g.words[g.length-1],S=(0!=(c=26-this._countBits(y))&&(g=g.ushln(c),m.iushln(c),y=0|g.words[g.length-1]),m.length-g.length);if("mod"!==O){(u=new s(null)).length=1+S,u.words=new Array(u.length);for(var p=0;pthis.length||this.cmp(c)<0?{div:new s(0),mod:this}:1===c.length?"div"===O?{div:this.divn(c.words[0]),mod:null}:"mod"===O?{div:null,mod:new s(this.modn(c.words[0]))}:{div:this.divn(c.words[0]),mod:new s(this.modn(c.words[0]))}:this._wordDiv(c,O);var m,g,y},s.prototype.div=function(c){return this.divmod(c,"div",!1).div},s.prototype.mod=function(c){return this.divmod(c,"mod",!1).mod},s.prototype.umod=function(c){return this.divmod(c,"mod",!0).mod},s.prototype.divRound=function(m){var O=this.divmod(m);if(O.mod.isZero())return O.div;var g=0!==O.div.negative?O.mod.isub(m):O.mod,u=m.ushrn(1);return m=m.andln(1),(g=g.cmp(u))<0||1===m&&0===g?O.div:0!==O.div.negative?O.div.isubn(1):O.div.iaddn(1)},s.prototype.modn=function(c){l(c<=67108863);for(var O=(1<<26)%c,u=0,m=this.length-1;0<=m;m--)u=(O*u+(0|this.words[m]))%c;return u},s.prototype.idivn=function(c){l(c<=67108863);for(var O=0,u=this.length-1;0<=u;u--){var m=(0|this.words[u])+67108864*O;this.words[u]=m/c|0,O=m%c}return this.strip()},s.prototype.divn=function(c){return this.clone().idivn(c)},s.prototype.egcd=function(c){l(0===c.negative),l(!c.isZero());for(var u=this,O=c.clone(),m=(u=0!==u.negative?u.umod(c):u.clone(),new s(1)),g=new s(0),y=new s(0),S=new s(1),p=0;u.isEven()&&O.isEven();)u.iushrn(1),O.iushrn(1),++p;for(var _=O.clone(),I=u.clone();!u.isZero();){for(var R=0,U=1;0==(u.words[0]&U)&&R<26;++R,U<<=1);if(0>>26,this.words[g]=y&=67108863}return 0!==m&&(this.words[g]=m,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(c){var O=c<0;return 0===this.negative||O?0===this.negative&&O?1:(this.strip(),O=1c.length)return 1;if(this.lengththis.n;);return 0===(c=O>>22,g=y}0==(c.words[m-10]=g>>>=22)&&10>>=26,c.words[u]=g,O=m}return 0!==O&&(c.words[c.length++]=O),c},s._prime=function(c){if(j[c])return j[c];var O;if("k256"===c)O=new B;else if("p224"===c)O=new L;else if("p192"===c)O=new q;else{if("p25519"!==c)throw new Error("Unknown prime "+c);O=new W}return j[c]=O},x.prototype._verify1=function(c){l(0===c.negative,"red works only with positives"),l(c.red,"red works only with red numbers")},x.prototype._verify2=function(c,O){l(0==(c.negative|O.negative),"red works only with positives"),l(c.red&&c.red===O.red,"red works only with red numbers")},x.prototype.imod=function(c){return(this.prime?this.prime.ireduce(c):c.umod(this.m))._forceRed(this)},x.prototype.neg=function(c){return c.isZero()?c.clone():this.m.sub(c)._forceRed(this)},x.prototype.add=function(c,O){return this._verify2(c,O),0<=(c=c.add(O)).cmp(this.m)&&c.isub(this.m),c._forceRed(this)},x.prototype.iadd=function(c,O){return this._verify2(c,O),0<=(c=c.iadd(O)).cmp(this.m)&&c.isub(this.m),c},x.prototype.sub=function(c,O){return this._verify2(c,O),(c=c.sub(O)).cmpn(0)<0&&c.iadd(this.m),c._forceRed(this)},x.prototype.isub=function(c,O){return this._verify2(c,O),(c=c.isub(O)).cmpn(0)<0&&c.iadd(this.m),c},x.prototype.shl=function(c,O){return this._verify1(c),this.imod(c.ushln(O))},x.prototype.imul=function(c,O){return this._verify2(c,O),this.imod(c.imul(O))},x.prototype.mul=function(c,O){return this._verify2(c,O),this.imod(c.mul(O))},x.prototype.isqr=function(c){return this.imul(c,c.clone())},x.prototype.sqr=function(c){return this.mul(c,c)},x.prototype.sqrt=function(c){if(c.isZero())return c.clone();var O=this.m.andln(3);if(l(O%2==1),3===O)return O=this.m.add(new s(1)).iushrn(2),this.pow(c,O);for(var u=this.m.subn(1),m=0;!u.isZero()&&0===u.andln(1);)m++,u.iushrn(1);l(!u.isZero());for(var g=new s(1).toRed(this),y=g.redNeg(),S=this.m.subn(1).iushrn(1),p=new s(2*(p=this.m.bitLength())*p).toRed(this);0!==this.pow(p,S).cmp(y);)p.redIAdd(y);for(var _=this.pow(p,u),I=this.pow(c,u.addn(1).iushrn(1)),R=this.pow(c,u),U=m;0!==R.cmp(g);){for(var V=R,D=0;0!==V.cmp(g);D++)V=V.redSqr();l(D>I&1;g!==u[0]&&(g=this.sqr(g)),0==R&&0===y?S=0:(y=y<<1|R,(4===++S||0===m&&0===I)&&(g=this.mul(g,u[y]),y=S=0))}p=26}return g},x.prototype.convertTo=function(c){var O=c.umod(this.m);return O===c?O.clone():O},x.prototype.convertFrom=function(c){return(c=c.clone()).red=null,c},s.mont=function(c){return new Z(c)},d(Z,x),Z.prototype.convertTo=function(c){return this.imod(c.ushln(this.shift))},Z.prototype.convertFrom=function(c){return(c=this.imod(c.mul(this.rinv))).red=null,c},Z.prototype.imul=function(c,O){return c.isZero()||O.isZero()?(c.words[0]=0,c.length=1,c):(O=(c=c.imul(O)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),O=c=c.isub(O).iushrn(this.shift),0<=c.cmp(this.m)?O=c.isub(this.m):c.cmpn(0)<0&&(O=c.iadd(this.m)),O._forceRed(this))},Z.prototype.mul=function(c,O){return c.isZero()||O.isZero()?new s(0)._forceRed(this):(O=(c=c.mul(O)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),O=c=c.isub(O).iushrn(this.shift),0<=c.cmp(this.m)?O=c.isub(this.m):c.cmpn(0)<0&&(O=c.iadd(this.m)),O._forceRed(this))},Z.prototype.invm=function(c){return this.imod(c._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===z||z,this)},{buffer:38}],30:[function(M,z,k){(function(v){(function(){"use strict";var w=M("object-assign");function l(x,Z){if(x===Z)return 0;for(var c=x.length,O=Z.length,u=0,m=Math.min(c,O);u"u"?v:globalThis;z.exports=function(){for(var d=[],s=0;s>16&255,h[b++]=r>>8&255,h[b++]=255&r;return 2===f&&(r=w[t.charCodeAt(i)]<<2|w[t.charCodeAt(i+1)]>>4,h[b++]=255&r),1===f&&(r=w[t.charCodeAt(i)]<<10|w[t.charCodeAt(i+1)]<<4|w[t.charCodeAt(i+2)]>>2,h[b++]=r>>8&255,h[b++]=255&r),h},k.fromByteArray=function(t){for(var r,i=t.length,n=i%3,f=[],h=0,b=i-n;h>18&63]+v[q>>12&63]+v[q>>6&63]+v[63&q]}((E[L]<<16&16711680)+(E[L+1]<<8&65280)+(255&E[L+2])));return B.join("")}(t,h,b>2]+v[r<<4&63]+"=="):2==n&&f.push(v[(r=(t[i-2]<<8)+t[i-1])>>10]+v[r>>4&63]+v[r<<2&63]+"="),f.join("")};for(var v=[],w=[],l=typeof Uint8Array<"u"?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)v[s]=d[s],w[d.charCodeAt(s)]=s;function e(t){var r=t.length;if(0>>26-_&67108863,26<=(_+=24)&&(_-=26,y++);else if("le"===g)for(y=p=0;p>>26-_&67108863,26<=(_+=24)&&(_-=26,y++);return this._strip()},s.prototype._parseHex=function(u,m,g){this.length=Math.ceil((u.length-m)/6),this.words=new Array(this.length);for(var y=0;y>>26):p+=8;else for(y=(u.length-m)%2==0?m+1:m;y>>26):p+=8;this._strip()},s.prototype._parseBase=function(u,m,g){this.words=[0];for(var y=0,S=this.length=1;S<=67108863;S*=m)y++;S=S/m|0;for(var p=u.length-g,_=p%--y,I=Math.min(p,p-_)+g,R=0,U=g;U"}var f=["","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"],h=[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],b=[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 E(u,m,g){g.negative=m.negative^u.negative;var y=(g.length=y=u.length+m.length|0)-1|0,S=(_=(0|u.words[0])*(0|m.words[0]))/67108864|0;g.words[0]=67108863&_;for(var p=1;p>>26,R=67108863&S,U=Math.min(p,m.length-1),V=Math.max(0,p-u.length+1);V<=U;V++)I+=(_=(0|u.words[p-V|0])*(0|m.words[V])+R)/67108864|0,R=67108863&_;g.words[p]=0|R,S=0|I}return 0!==S?g.words[p]=0|S:g.length--,g._strip()}s.prototype.toString=function(u,m){if(m=0|m||1,16===(u=u||10)||"hex"===u){for(var g="",y=0,S=0,p=0;p>>24-y&16777215,26<=(y+=2)&&(y-=26,p--),g=0!==S||p!==this.length-1?f[6-I.length]+I+g:I+g}for(0!==S&&(g=S.toString(16)+g);g.length%m!=0;)g="0"+g;return 0!==this.negative?"-"+g:g}if(u===(0|u)&&2<=u&&u<=36){var R=h[u],U=b[u];for(g="",(V=this.clone()).negative=0;!V.isZero();){var V,D=V.modrn(U).toString(u);g=(V=V.idivn(U)).isZero()?D+g:f[R-D.length]+D+g}for(this.isZero()&&(g="0"+g);g.length%m!=0;)g="0"+g;return 0!==this.negative?"-"+g:g}l(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var u=this.words[0];return 2===this.length?u+=67108864*this.words[1]:3===this.length&&1===this.words[2]?u+=4503599627370496+67108864*this.words[1]:2>8&255),g>16&255),6===p?(g>24&255),p=y=0):(y=_>>>24,p+=2)}if(g>8&255),0<=g&&(u[g--]=_>>16&255),6===p?(0<=g&&(u[g--]=_>>24&255),p=y=0):(y=_>>>24,p+=2)}if(0<=g)for(u[g--]=y;0<=g;)u[g--]=0},s.prototype._countBits=Math.clz32?function(u){return 32-Math.clz32(u)}:function(u){var m=0;return 4096<=u&&(m+=13,u>>>=13),64<=u&&(m+=7,u>>>=7),8<=u&&(m+=4,u>>>=4),2<=u&&(m+=2,u>>>=2),m+u},s.prototype._zeroBits=function(u){if(0===u)return 26;var m=0;return!(8191&u)&&(m+=13,u>>>=13),!(127&u)&&(m+=7,u>>>=7),!(15&u)&&(m+=4,u>>>=4),!(3&u)&&(m+=2,u>>>=2),!(1&u)&&m++,m},s.prototype.bitLength=function(){var u=this._countBits(u=this.words[this.length-1]);return 26*(this.length-1)+u},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,m=0;mu.length?this.clone().ior(u):u.clone().ior(this)},s.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},s.prototype.iuand=function(u){for(var m=this.length>u.length?u:this,g=0;gu.length?this.clone().iand(u):u.clone().iand(this)},s.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},s.prototype.iuxor=function(u){for(var m,g=this.length>u.length?(m=this,u):(m=u,this),y=0;yu.length?this.clone().ixor(u):u.clone().ixor(this)},s.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},s.prototype.inotn=function(g){l("number"==typeof g&&0<=g);var m=0|Math.ceil(g/26);g%=26,this._expand(m),0>26-g),this._strip()},s.prototype.notn=function(u){return this.clone().inotn(u)},s.prototype.setn=function(y,m){l("number"==typeof y&&0<=y);var g=y/26|0;return y%=26,this._expand(1+g),this.words[g]=m?this.words[g]|1<u.length?(g=this,u):(g=u,this),S=0,p=0;p>>26;for(;0!==S&&p>>26;if(this.length=g.length,0!==S)this.words[this.length]=S,this.length++;else if(g!==this)for(;pu.length?this.clone().iadd(u):u.clone().iadd(this)},s.prototype.isub=function(u){var m;if(0!==u.negative)return u.negative=0,m=this.iadd(u),u.negative=1,m._normSign();if(0!==this.negative)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var g,y=this.cmp(u);if(0===y)return this.negative=0,this.length=1,this.words[0]=0,this;for(var S=0>26,this.words[_]=67108863&m;for(;0!==p&&_>26,this.words[_]=67108863&m;if(0===p&&_>>13,wt=8191&(yt=0|Y[1]),yt=yt>>>13,p=8191&(_=0|Y[2]),_=_>>>13,I=8191&(R=0|Y[3]),R=R>>>13,U=8191&(V=0|Y[4]),V=V>>>13,D=8191&(P=0|Y[5]),P=P>>>13,F=8191&(H=0|Y[6]),H=H>>>13,K=8191&(G=0|Y[7]),G=G>>>13,ot=8191&(et=0|Y[8]),et=et>>>13,N=8191&(Y=0|Y[9]),Y=Y>>>13,dt=8191&(pt=0|(ht=nt.words)[0]),pt=pt>>>13,_t=8191&(mt=0|ht[1]),mt=mt>>>13,Ot=8191&(jt=0|ht[2]),jt=jt>>>13,X=8191&(C=0|ht[3]),C=C>>>13,J=8191&(tt=0|ht[4]),tt=tt>>>13,st=8191&(Q=0|ht[5]),Q=Q>>>13,at=8191&(it=0|ht[6]),it=it>>>13,ct=8191&(ut=0|ht[7]),ut=ut>>>13,lt=8191&(ft=0|ht[8]),ft=ft>>>13,gt=8191&(ht=0|ht[9]),ht=ht>>>13,Et=(g.negative=u.negative^nt.negative,g.length=19,nt=(0+Math.imul(vt,dt)|0)+((8191&(u=Math.imul(vt,pt)+Math.imul(bt,dt)|0))<<13)|0,(Math.imul(bt,pt)+(u>>>13)|0)+(nt>>>26)|0);nt&=67108863,y=Math.imul(wt,dt),u=Math.imul(wt,pt)+Math.imul(yt,dt)|0,rt=Math.imul(yt,pt);var rt,Mt=(Et+(y+Math.imul(vt,_t)|0)|0)+((8191&(u=(u+Math.imul(vt,mt)|0)+Math.imul(bt,_t)|0))<<13)|0,Tt=(Et=((rt+Math.imul(bt,mt)|0)+(u>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,y=Math.imul(p,dt),u=Math.imul(p,pt)+Math.imul(_,dt)|0,rt=Math.imul(_,pt),y=y+Math.imul(wt,_t)|0,u=(u+Math.imul(wt,mt)|0)+Math.imul(yt,_t)|0,rt=rt+Math.imul(yt,mt)|0,(Et+(y+Math.imul(vt,Ot)|0)|0)+((8191&(u=(u+Math.imul(vt,jt)|0)+Math.imul(bt,Ot)|0))<<13)|0),It=(Et=((rt+Math.imul(bt,jt)|0)+(u>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(I,dt),u=Math.imul(I,pt)+Math.imul(R,dt)|0,rt=Math.imul(R,pt),y=y+Math.imul(p,_t)|0,u=(u+Math.imul(p,mt)|0)+Math.imul(_,_t)|0,rt=rt+Math.imul(_,mt)|0,y=y+Math.imul(wt,Ot)|0,u=(u+Math.imul(wt,jt)|0)+Math.imul(yt,Ot)|0,rt=rt+Math.imul(yt,jt)|0,(Et+(y+Math.imul(vt,X)|0)|0)+((8191&(u=(u+Math.imul(vt,C)|0)+Math.imul(bt,X)|0))<<13)|0),Rt=(Et=((rt+Math.imul(bt,C)|0)+(u>>>13)|0)+(It>>>26)|0,It&=67108863,y=Math.imul(U,dt),u=Math.imul(U,pt)+Math.imul(V,dt)|0,rt=Math.imul(V,pt),y=y+Math.imul(I,_t)|0,u=(u+Math.imul(I,mt)|0)+Math.imul(R,_t)|0,rt=rt+Math.imul(R,mt)|0,y=y+Math.imul(p,Ot)|0,u=(u+Math.imul(p,jt)|0)+Math.imul(_,Ot)|0,rt=rt+Math.imul(_,jt)|0,y=y+Math.imul(wt,X)|0,u=(u+Math.imul(wt,C)|0)+Math.imul(yt,X)|0,rt=rt+Math.imul(yt,C)|0,(Et+(y+Math.imul(vt,J)|0)|0)+((8191&(u=(u+Math.imul(vt,tt)|0)+Math.imul(bt,J)|0))<<13)|0),xt=(Et=((rt+Math.imul(bt,tt)|0)+(u>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,y=Math.imul(D,dt),u=Math.imul(D,pt)+Math.imul(P,dt)|0,rt=Math.imul(P,pt),y=y+Math.imul(U,_t)|0,u=(u+Math.imul(U,mt)|0)+Math.imul(V,_t)|0,rt=rt+Math.imul(V,mt)|0,y=y+Math.imul(I,Ot)|0,u=(u+Math.imul(I,jt)|0)+Math.imul(R,Ot)|0,rt=rt+Math.imul(R,jt)|0,y=y+Math.imul(p,X)|0,u=(u+Math.imul(p,C)|0)+Math.imul(_,X)|0,rt=rt+Math.imul(_,C)|0,y=y+Math.imul(wt,J)|0,u=(u+Math.imul(wt,tt)|0)+Math.imul(yt,J)|0,rt=rt+Math.imul(yt,tt)|0,(Et+(y+Math.imul(vt,st)|0)|0)+((8191&(u=(u+Math.imul(vt,Q)|0)+Math.imul(bt,st)|0))<<13)|0),St=(Et=((rt+Math.imul(bt,Q)|0)+(u>>>13)|0)+(xt>>>26)|0,xt&=67108863,y=Math.imul(F,dt),u=Math.imul(F,pt)+Math.imul(H,dt)|0,rt=Math.imul(H,pt),y=y+Math.imul(D,_t)|0,u=(u+Math.imul(D,mt)|0)+Math.imul(P,_t)|0,rt=rt+Math.imul(P,mt)|0,y=y+Math.imul(U,Ot)|0,u=(u+Math.imul(U,jt)|0)+Math.imul(V,Ot)|0,rt=rt+Math.imul(V,jt)|0,y=y+Math.imul(I,X)|0,u=(u+Math.imul(I,C)|0)+Math.imul(R,X)|0,rt=rt+Math.imul(R,C)|0,y=y+Math.imul(p,J)|0,u=(u+Math.imul(p,tt)|0)+Math.imul(_,J)|0,rt=rt+Math.imul(_,tt)|0,y=y+Math.imul(wt,st)|0,u=(u+Math.imul(wt,Q)|0)+Math.imul(yt,st)|0,rt=rt+Math.imul(yt,Q)|0,(Et+(y+Math.imul(vt,at)|0)|0)+((8191&(u=(u+Math.imul(vt,it)|0)+Math.imul(bt,at)|0))<<13)|0),kt=(Et=((rt+Math.imul(bt,it)|0)+(u>>>13)|0)+(St>>>26)|0,St&=67108863,y=Math.imul(K,dt),u=Math.imul(K,pt)+Math.imul(G,dt)|0,rt=Math.imul(G,pt),y=y+Math.imul(F,_t)|0,u=(u+Math.imul(F,mt)|0)+Math.imul(H,_t)|0,rt=rt+Math.imul(H,mt)|0,y=y+Math.imul(D,Ot)|0,u=(u+Math.imul(D,jt)|0)+Math.imul(P,Ot)|0,rt=rt+Math.imul(P,jt)|0,y=y+Math.imul(U,X)|0,u=(u+Math.imul(U,C)|0)+Math.imul(V,X)|0,rt=rt+Math.imul(V,C)|0,y=y+Math.imul(I,J)|0,u=(u+Math.imul(I,tt)|0)+Math.imul(R,J)|0,rt=rt+Math.imul(R,tt)|0,y=y+Math.imul(p,st)|0,u=(u+Math.imul(p,Q)|0)+Math.imul(_,st)|0,rt=rt+Math.imul(_,Q)|0,y=y+Math.imul(wt,at)|0,u=(u+Math.imul(wt,it)|0)+Math.imul(yt,at)|0,rt=rt+Math.imul(yt,it)|0,(Et+(y+Math.imul(vt,ct)|0)|0)+((8191&(u=(u+Math.imul(vt,ut)|0)+Math.imul(bt,ct)|0))<<13)|0),At=(Et=((rt+Math.imul(bt,ut)|0)+(u>>>13)|0)+(kt>>>26)|0,kt&=67108863,y=Math.imul(ot,dt),u=Math.imul(ot,pt)+Math.imul(et,dt)|0,rt=Math.imul(et,pt),y=y+Math.imul(K,_t)|0,u=(u+Math.imul(K,mt)|0)+Math.imul(G,_t)|0,rt=rt+Math.imul(G,mt)|0,y=y+Math.imul(F,Ot)|0,u=(u+Math.imul(F,jt)|0)+Math.imul(H,Ot)|0,rt=rt+Math.imul(H,jt)|0,y=y+Math.imul(D,X)|0,u=(u+Math.imul(D,C)|0)+Math.imul(P,X)|0,rt=rt+Math.imul(P,C)|0,y=y+Math.imul(U,J)|0,u=(u+Math.imul(U,tt)|0)+Math.imul(V,J)|0,rt=rt+Math.imul(V,tt)|0,y=y+Math.imul(I,st)|0,u=(u+Math.imul(I,Q)|0)+Math.imul(R,st)|0,rt=rt+Math.imul(R,Q)|0,y=y+Math.imul(p,at)|0,u=(u+Math.imul(p,it)|0)+Math.imul(_,at)|0,rt=rt+Math.imul(_,it)|0,y=y+Math.imul(wt,ct)|0,u=(u+Math.imul(wt,ut)|0)+Math.imul(yt,ct)|0,rt=rt+Math.imul(yt,ut)|0,(Et+(y+Math.imul(vt,lt)|0)|0)+((8191&(u=(u+Math.imul(vt,ft)|0)+Math.imul(bt,lt)|0))<<13)|0);return Et=((rt+Math.imul(bt,ft)|0)+(u>>>13)|0)+(At>>>26)|0,At&=67108863,y=Math.imul(N,dt),u=Math.imul(N,pt)+Math.imul(Y,dt)|0,rt=Math.imul(Y,pt),y=y+Math.imul(ot,_t)|0,u=(u+Math.imul(ot,mt)|0)+Math.imul(et,_t)|0,rt=rt+Math.imul(et,mt)|0,y=y+Math.imul(K,Ot)|0,u=(u+Math.imul(K,jt)|0)+Math.imul(G,Ot)|0,rt=rt+Math.imul(G,jt)|0,y=y+Math.imul(F,X)|0,u=(u+Math.imul(F,C)|0)+Math.imul(H,X)|0,rt=rt+Math.imul(H,C)|0,y=y+Math.imul(D,J)|0,u=(u+Math.imul(D,tt)|0)+Math.imul(P,J)|0,rt=rt+Math.imul(P,tt)|0,y=y+Math.imul(U,st)|0,u=(u+Math.imul(U,Q)|0)+Math.imul(V,st)|0,rt=rt+Math.imul(V,Q)|0,y=y+Math.imul(I,at)|0,u=(u+Math.imul(I,it)|0)+Math.imul(R,at)|0,rt=rt+Math.imul(R,it)|0,y=y+Math.imul(p,ct)|0,u=(u+Math.imul(p,ut)|0)+Math.imul(_,ct)|0,rt=rt+Math.imul(_,ut)|0,y=y+Math.imul(wt,lt)|0,u=(u+Math.imul(wt,ft)|0)+Math.imul(yt,lt)|0,rt=rt+Math.imul(yt,ft)|0,dt=(Et+(y+Math.imul(vt,gt)|0)|0)+((8191&(u=(u+Math.imul(vt,ht)|0)+Math.imul(bt,gt)|0))<<13)|0,Et=((rt+Math.imul(bt,ht)|0)+(u>>>13)|0)+(dt>>>26)|0,dt&=67108863,y=Math.imul(N,_t),u=Math.imul(N,mt)+Math.imul(Y,_t)|0,rt=Math.imul(Y,mt),y=y+Math.imul(ot,Ot)|0,u=(u+Math.imul(ot,jt)|0)+Math.imul(et,Ot)|0,rt=rt+Math.imul(et,jt)|0,y=y+Math.imul(K,X)|0,u=(u+Math.imul(K,C)|0)+Math.imul(G,X)|0,rt=rt+Math.imul(G,C)|0,y=y+Math.imul(F,J)|0,u=(u+Math.imul(F,tt)|0)+Math.imul(H,J)|0,rt=rt+Math.imul(H,tt)|0,y=y+Math.imul(D,st)|0,u=(u+Math.imul(D,Q)|0)+Math.imul(P,st)|0,rt=rt+Math.imul(P,Q)|0,y=y+Math.imul(U,at)|0,u=(u+Math.imul(U,it)|0)+Math.imul(V,at)|0,rt=rt+Math.imul(V,it)|0,y=y+Math.imul(I,ct)|0,u=(u+Math.imul(I,ut)|0)+Math.imul(R,ct)|0,rt=rt+Math.imul(R,ut)|0,y=y+Math.imul(p,lt)|0,u=(u+Math.imul(p,ft)|0)+Math.imul(_,lt)|0,rt=rt+Math.imul(_,ft)|0,pt=(Et+(y+Math.imul(wt,gt)|0)|0)+((8191&(u=(u+Math.imul(wt,ht)|0)+Math.imul(yt,gt)|0))<<13)|0,Et=((rt+Math.imul(yt,ht)|0)+(u>>>13)|0)+(pt>>>26)|0,pt&=67108863,y=Math.imul(N,Ot),u=Math.imul(N,jt)+Math.imul(Y,Ot)|0,rt=Math.imul(Y,jt),y=y+Math.imul(ot,X)|0,u=(u+Math.imul(ot,C)|0)+Math.imul(et,X)|0,rt=rt+Math.imul(et,C)|0,y=y+Math.imul(K,J)|0,u=(u+Math.imul(K,tt)|0)+Math.imul(G,J)|0,rt=rt+Math.imul(G,tt)|0,y=y+Math.imul(F,st)|0,u=(u+Math.imul(F,Q)|0)+Math.imul(H,st)|0,rt=rt+Math.imul(H,Q)|0,y=y+Math.imul(D,at)|0,u=(u+Math.imul(D,it)|0)+Math.imul(P,at)|0,rt=rt+Math.imul(P,it)|0,y=y+Math.imul(U,ct)|0,u=(u+Math.imul(U,ut)|0)+Math.imul(V,ct)|0,rt=rt+Math.imul(V,ut)|0,y=y+Math.imul(I,lt)|0,u=(u+Math.imul(I,ft)|0)+Math.imul(R,lt)|0,rt=rt+Math.imul(R,ft)|0,vt=(Et+(y+Math.imul(p,gt)|0)|0)+((8191&(u=(u+Math.imul(p,ht)|0)+Math.imul(_,gt)|0))<<13)|0,Et=((rt+Math.imul(_,ht)|0)+(u>>>13)|0)+(vt>>>26)|0,vt&=67108863,y=Math.imul(N,X),u=Math.imul(N,C)+Math.imul(Y,X)|0,rt=Math.imul(Y,C),y=y+Math.imul(ot,J)|0,u=(u+Math.imul(ot,tt)|0)+Math.imul(et,J)|0,rt=rt+Math.imul(et,tt)|0,y=y+Math.imul(K,st)|0,u=(u+Math.imul(K,Q)|0)+Math.imul(G,st)|0,rt=rt+Math.imul(G,Q)|0,y=y+Math.imul(F,at)|0,u=(u+Math.imul(F,it)|0)+Math.imul(H,at)|0,rt=rt+Math.imul(H,it)|0,y=y+Math.imul(D,ct)|0,u=(u+Math.imul(D,ut)|0)+Math.imul(P,ct)|0,rt=rt+Math.imul(P,ut)|0,y=y+Math.imul(U,lt)|0,u=(u+Math.imul(U,ft)|0)+Math.imul(V,lt)|0,rt=rt+Math.imul(V,ft)|0,bt=(Et+(y+Math.imul(I,gt)|0)|0)+((8191&(u=(u+Math.imul(I,ht)|0)+Math.imul(R,gt)|0))<<13)|0,Et=((rt+Math.imul(R,ht)|0)+(u>>>13)|0)+(bt>>>26)|0,bt&=67108863,y=Math.imul(N,J),u=Math.imul(N,tt)+Math.imul(Y,J)|0,rt=Math.imul(Y,tt),y=y+Math.imul(ot,st)|0,u=(u+Math.imul(ot,Q)|0)+Math.imul(et,st)|0,rt=rt+Math.imul(et,Q)|0,y=y+Math.imul(K,at)|0,u=(u+Math.imul(K,it)|0)+Math.imul(G,at)|0,rt=rt+Math.imul(G,it)|0,y=y+Math.imul(F,ct)|0,u=(u+Math.imul(F,ut)|0)+Math.imul(H,ct)|0,rt=rt+Math.imul(H,ut)|0,y=y+Math.imul(D,lt)|0,u=(u+Math.imul(D,ft)|0)+Math.imul(P,lt)|0,rt=rt+Math.imul(P,ft)|0,_t=(Et+(y+Math.imul(U,gt)|0)|0)+((8191&(u=(u+Math.imul(U,ht)|0)+Math.imul(V,gt)|0))<<13)|0,Et=((rt+Math.imul(V,ht)|0)+(u>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(N,st),u=Math.imul(N,Q)+Math.imul(Y,st)|0,rt=Math.imul(Y,Q),y=y+Math.imul(ot,at)|0,u=(u+Math.imul(ot,it)|0)+Math.imul(et,at)|0,rt=rt+Math.imul(et,it)|0,y=y+Math.imul(K,ct)|0,u=(u+Math.imul(K,ut)|0)+Math.imul(G,ct)|0,rt=rt+Math.imul(G,ut)|0,y=y+Math.imul(F,lt)|0,u=(u+Math.imul(F,ft)|0)+Math.imul(H,lt)|0,rt=rt+Math.imul(H,ft)|0,mt=(Et+(y+Math.imul(D,gt)|0)|0)+((8191&(u=(u+Math.imul(D,ht)|0)+Math.imul(P,gt)|0))<<13)|0,Et=((rt+Math.imul(P,ht)|0)+(u>>>13)|0)+(mt>>>26)|0,mt&=67108863,y=Math.imul(N,at),u=Math.imul(N,it)+Math.imul(Y,at)|0,rt=Math.imul(Y,it),y=y+Math.imul(ot,ct)|0,u=(u+Math.imul(ot,ut)|0)+Math.imul(et,ct)|0,rt=rt+Math.imul(et,ut)|0,y=y+Math.imul(K,lt)|0,u=(u+Math.imul(K,ft)|0)+Math.imul(G,lt)|0,rt=rt+Math.imul(G,ft)|0,wt=(Et+(y+Math.imul(F,gt)|0)|0)+((8191&(u=(u+Math.imul(F,ht)|0)+Math.imul(H,gt)|0))<<13)|0,Et=((rt+Math.imul(H,ht)|0)+(u>>>13)|0)+(wt>>>26)|0,wt&=67108863,y=Math.imul(N,ct),u=Math.imul(N,ut)+Math.imul(Y,ct)|0,rt=Math.imul(Y,ut),y=y+Math.imul(ot,lt)|0,u=(u+Math.imul(ot,ft)|0)+Math.imul(et,lt)|0,rt=rt+Math.imul(et,ft)|0,yt=(Et+(y+Math.imul(K,gt)|0)|0)+((8191&(u=(u+Math.imul(K,ht)|0)+Math.imul(G,gt)|0))<<13)|0,Et=((rt+Math.imul(G,ht)|0)+(u>>>13)|0)+(yt>>>26)|0,yt&=67108863,y=Math.imul(N,lt),u=Math.imul(N,ft)+Math.imul(Y,lt)|0,rt=Math.imul(Y,ft),Ot=(Et+(y+Math.imul(ot,gt)|0)|0)+((8191&(u=(u+Math.imul(ot,ht)|0)+Math.imul(et,gt)|0))<<13)|0,Et=((rt+Math.imul(et,ht)|0)+(u>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,jt=(Et+Math.imul(N,gt)|0)+((8191&(u=Math.imul(N,ht)+Math.imul(Y,gt)|0))<<13)|0,Et=(Math.imul(Y,ht)+(u>>>13)|0)+(jt>>>26)|0,jt&=67108863,S[0]=nt,S[1]=Mt,S[2]=Tt,S[3]=It,S[4]=Rt,S[5]=xt,S[6]=St,S[7]=kt,S[8]=At,S[9]=dt,S[10]=pt,S[11]=vt,S[12]=bt,S[13]=_t,S[14]=mt,S[15]=wt,S[16]=yt,S[17]=Ot,S[18]=jt,0!=Et&&(S[19]=Et,g.length++),g};function j(u,m,g){g.negative=m.negative^u.negative,g.length=u.length+m.length;for(var y=0,S=0,p=0;p>>26)|0)>>>26,_&=67108863}g.words[p]=I,y=_,_=S}return 0!==y?g.words[p]=y:g.length--,g._strip()}function T(u,m,g){return j(u,m,g)}Math.imul||(A=E),s.prototype.mulTo=function(u,m){var g=this.length+u.length;return(10===this.length&&10===u.length?A:g<63?E:g<1024?j:T)(this,u,m)},s.prototype.mul=function(u){var m=new s(null);return m.words=new Array(this.length+u.length),this.mulTo(u,m)},s.prototype.mulf=function(u){var m=new s(null);return m.words=new Array(this.length+u.length),T(this,u,m)},s.prototype.imul=function(u){return this.clone().mulTo(u,this)},s.prototype.imuln=function(u){for(var m=u<0,g=(l("number"==typeof(u=m?-u:u)),l(u<67108864),0),y=0;y>=26)+(S/67108864|0)+(p>>>26),this.words[y]=67108863&p}return 0!==g&&(this.words[y]=g,this.length++),m?this.ineg():this},s.prototype.muln=function(u){return this.clone().imuln(u)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(u){var m=function(p){for(var _=new Array(p.bitLength()),I=0;I<_.length;I++)_[I]=p.words[I/26|0]>>>I%26&1;return _}(u);if(0===m.length)return new s(1);for(var g=this,y=0;y>>26-m<<26-m;if(0!=m){for(var S=0,p=0;p>>26-m}S&&(this.words[p]=S,this.length++)}if(0!=g){for(p=this.length-1;0<=p;p--)this.words[p+g]=this.words[p];for(p=0;p>>S<p)for(this.length-=p,R=0;R>>S,U=V&_}return I&&0!==U&&(I.words[I.length++]=U),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(u,m,g){return l(0===this.negative),this.iushrn(u,m,g)},s.prototype.shln=function(u){return this.clone().ishln(u)},s.prototype.ushln=function(u){return this.clone().iushln(u)},s.prototype.shrn=function(u){return this.clone().ishrn(u)},s.prototype.ushrn=function(u){return this.clone().iushrn(u)},s.prototype.testn=function(g){l("number"==typeof g&&0<=g);var m=g%26;return!(this.length<=(g=(g-m)/26)||!(this.words[g]&1<>>m<>26)-(I/67108864|0),this.words[p+g]=67108863&_}for(;p>26,this.words[p+g]=67108863&_;if(0===S)return this._strip();for(l(-1===S),p=S=0;p>26,this.words[p]=67108863&_;return this.negative=1,this._strip()},s.prototype._wordDiv=function(u,m){var g,y=this.clone(),S=u,p=0|S.words[S.length-1],_=(0!=(u=26-this._countBits(p))&&(S=S.ushln(u),y.iushln(u),p=0|S.words[S.length-1]),y.length-S.length);if("mod"!==m){(g=new s(null)).length=1+_,g.words=new Array(g.length);for(var I=0;Ithis.length||this.cmp(u)<0?{div:new s(0),mod:this}:1===u.length?"div"===m?{div:this.divn(u.words[0]),mod:null}:"mod"===m?{div:null,mod:new s(this.modrn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new s(this.modrn(u.words[0]))}:this._wordDiv(u,m);var y,S,p},s.prototype.div=function(u){return this.divmod(u,"div",!1).div},s.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},s.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},s.prototype.divRound=function(y){var m=this.divmod(y);if(m.mod.isZero())return m.div;var S=0!==m.div.negative?m.mod.isub(y):m.mod,g=y.ushrn(1);return y=y.andln(1),(S=S.cmp(g))<0||1===y&&0===S?m.div:0!==m.div.negative?m.div.isubn(1):m.div.iaddn(1)},s.prototype.modrn=function(u){for(var m=u<0,g=(l((u=m?-u:u)<=67108863),(1<<26)%u),y=0,S=this.length-1;0<=S;S--)y=(g*y+(0|this.words[S]))%u;return m?-y:y},s.prototype.modn=function(u){return this.modrn(u)},s.prototype.idivn=function(u){for(var m=u<0,g=(l((u=m?-u:u)<=67108863),0),y=this.length-1;0<=y;y--){var S=(0|this.words[y])+67108864*g;this.words[y]=S/u|0,g=S%u}return this._strip(),m?this.ineg():this},s.prototype.divn=function(u){return this.clone().idivn(u)},s.prototype.egcd=function(u){l(0===u.negative),l(!u.isZero());for(var g=this,m=u.clone(),y=(g=0!==g.negative?g.umod(u):g.clone(),new s(1)),S=new s(0),p=new s(0),_=new s(1),I=0;g.isEven()&&m.isEven();)g.iushrn(1),m.iushrn(1),++I;for(var R=m.clone(),U=g.clone();!g.isZero();){for(var V=0,D=1;0==(g.words[0]&D)&&V<26;++V,D<<=1);if(0>>26,this.words[S]=p&=67108863}return 0!==y&&(this.words[S]=y,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(u){var m=u<0;return 0===this.negative||m?0===this.negative&&m?1:(this._strip(),m=1u.length)return 1;if(this.lengththis.n;);return 0===(u=m>>22,S=p}0==(u.words[y-10]=S>>>=22)&&10>>=26,u.words[g]=S,m=y}return 0!==m&&(u.words[u.length++]=m),u},s._prime=function(u){if(B[u])return B[u];var m;if("k256"===u)m=new q;else if("p224"===u)m=new W;else if("p192"===u)m=new x;else{if("p25519"!==u)throw new Error("Unknown prime "+u);m=new Z}return B[u]=m},c.prototype._verify1=function(u){l(0===u.negative,"red works only with positives"),l(u.red,"red works only with red numbers")},c.prototype._verify2=function(u,m){l(0==(u.negative|m.negative),"red works only with positives"),l(u.red&&u.red===m.red,"red works only with red numbers")},c.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):(i(u,u.umod(this.m)._forceRed(this)),u)},c.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},c.prototype.add=function(u,m){return this._verify2(u,m),0<=(u=u.add(m)).cmp(this.m)&&u.isub(this.m),u._forceRed(this)},c.prototype.iadd=function(u,m){return this._verify2(u,m),0<=(u=u.iadd(m)).cmp(this.m)&&u.isub(this.m),u},c.prototype.sub=function(u,m){return this._verify2(u,m),(u=u.sub(m)).cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},c.prototype.isub=function(u,m){return this._verify2(u,m),(u=u.isub(m)).cmpn(0)<0&&u.iadd(this.m),u},c.prototype.shl=function(u,m){return this._verify1(u),this.imod(u.ushln(m))},c.prototype.imul=function(u,m){return this._verify2(u,m),this.imod(u.imul(m))},c.prototype.mul=function(u,m){return this._verify2(u,m),this.imod(u.mul(m))},c.prototype.isqr=function(u){return this.imul(u,u.clone())},c.prototype.sqr=function(u){return this.mul(u,u)},c.prototype.sqrt=function(u){if(u.isZero())return u.clone();var m=this.m.andln(3);if(l(m%2==1),3===m)return m=this.m.add(new s(1)).iushrn(2),this.pow(u,m);for(var g=this.m.subn(1),y=0;!g.isZero()&&0===g.andln(1);)y++,g.iushrn(1);l(!g.isZero());for(var S=new s(1).toRed(this),p=S.redNeg(),_=this.m.subn(1).iushrn(1),I=new s(2*(I=this.m.bitLength())*I).toRed(this);0!==this.pow(I,_).cmp(p);)I.redIAdd(p);for(var R=this.pow(I,g),U=this.pow(u,g.addn(1).iushrn(1)),V=this.pow(u,g),D=y;0!==V.cmp(S);){for(var P=V,F=0;0!==P.cmp(S);F++)P=P.redSqr();l(F>U&1;S!==g[0]&&(S=this.sqr(S)),0==V&&0===p?_=0:(p=p<<1|V,(4===++_||0===y&&0===U)&&(S=this.mul(S,g[p]),p=_=0))}I=26}return S},c.prototype.convertTo=function(u){var m=u.umod(this.m);return m===u?m.clone():m},c.prototype.convertFrom=function(u){return(u=u.clone()).red=null,u},s.mont=function(u){return new O(u)},d(O,c),O.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},O.prototype.convertFrom=function(u){return(u=this.imod(u.mul(this.rinv))).red=null,u},O.prototype.imul=function(u,m){return u.isZero()||m.isZero()?(u.words[0]=0,u.length=1,u):(m=(u=u.imul(m)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=u=u.isub(m).iushrn(this.shift),0<=u.cmp(this.m)?m=u.isub(this.m):u.cmpn(0)<0&&(m=u.iadd(this.m)),m._forceRed(this))},O.prototype.mul=function(u,m){return u.isZero()||m.isZero()?new s(0)._forceRed(this):(m=(u=u.mul(m)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=u=u.isub(m).iushrn(this.shift),0<=u.cmp(this.m)?m=u.isub(this.m):u.cmpn(0)<0&&(m=u.iadd(this.m)),m._forceRed(this))},O.prototype.invm=function(u){return this.imod(u._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===z||z,this)},{buffer:38}],37:[function(M,z,k){var v;function w(d){this.rand=d}if(z.exports=function(d){return(v=v||new w(null)).generate(d)},(z.exports.Rand=w).prototype.generate=function(d){return this._rand(d)},w.prototype._rand=function(d){if(this.rand.getBytes)return this.rand.getBytes(d);for(var s=new Uint8Array(d),o=0;o>>24]^T[W>>>16&255]^B[x>>>8&255]^L[255&Z]^r[c++],b=j[W>>>24]^T[x>>>16&255]^B[Z>>>8&255]^L[255&q]^r[c++],E=j[x>>>24]^T[Z>>>16&255]^B[q>>>8&255]^L[255&W]^r[c++],A=j[Z>>>24]^T[q>>>16&255]^B[W>>>8&255]^L[255&x]^r[c++],q=h,W=b,x=E,Z=A;return h=(n[q>>>24]<<24|n[W>>>16&255]<<16|n[x>>>8&255]<<8|n[255&Z])^r[c++],b=(n[W>>>24]<<24|n[x>>>16&255]<<16|n[Z>>>8&255]<<8|n[255&q])^r[c++],E=(n[x>>>24]<<24|n[Z>>>16&255]<<16|n[q>>>8&255]<<8|n[255&W])^r[c++],A=(n[Z>>>24]<<24|n[q>>>16&255]<<16|n[W>>>8&255]<<8|n[255&x])^r[c++],[h>>>=0,b>>>=0,E>>>=0,A>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],o=function(){for(var t=new Array(256),r=0;r<256;r++)t[r]=r<128?r<<1:r<<1^283;for(var i=[],n=[],f=[[],[],[],[]],h=[[],[],[],[]],b=0,E=0,A=0;A<256;++A){var j=E^E<<1^E<<2^E<<3^E<<4,T=(i[b]=j=j>>>8^255&j^99,t[n[j]=b]),B=t[T],L=t[B],q=257*t[j]^16843008*j;f[0][b]=q<<24|q>>>8,f[1][b]=q<<16|q>>>16,f[2][b]=q<<8|q>>>24,f[3][b]=q,h[0][j]=(q=16843009*L^65537*B^257*T^16843008*b)<<24|q>>>8,h[1][j]=q<<16|q>>>16,h[2][j]=q<<8|q>>>24,h[3][j]=q,0===b?b=E=1:(b=T^t[t[t[L^T]]],E^=t[t[E]])}return{SBOX:i,INV_SBOX:n,SUB_MIX:f,INV_SUB_MIX:h}}();function e(t){this._key=w(t),this._reset()}e.blockSize=16,e.keySize=32,e.prototype.blockSize=e.blockSize,e.prototype.keySize=e.keySize,e.prototype._reset=function(){for(var t=this._key,r=t.length,i=r+6,n=4*(i+1),f=[],h=0;h>>24)>>>24]<<24|o.SBOX[b>>>16&255]<<16|o.SBOX[b>>>8&255]<<8|o.SBOX[255&b],b^=s[h/r|0]<<24):6>>24]<<24|o.SBOX[b>>>16&255]<<16|o.SBOX[b>>>8&255]<<8|o.SBOX[255&b]),f[h]=f[h-r]^b}for(var E=[],A=0;A>>24]]^o.INV_SUB_MIX[1][o.SBOX[T>>>16&255]]^o.INV_SUB_MIX[2][o.SBOX[T>>>8&255]]^o.INV_SUB_MIX[3][o.SBOX[255&T]]}this._nRounds=i,this._keySchedule=f,this._invKeySchedule=E},e.prototype.encryptBlockRaw=function(t){return d(t=w(t),this._keySchedule,o.SUB_MIX,o.SBOX,this._nRounds)},e.prototype.encryptBlock=function(r){r=this.encryptBlockRaw(r);var i=v.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[1],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[3],12),i},e.prototype.decryptBlock=function(i){var r=(i=w(i))[1];return i[1]=i[3],i[3]=r,r=d(i,this._invKeySchedule,o.INV_SUB_MIX,o.INV_SBOX,this._nRounds),(i=v.allocUnsafe(16)).writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i},e.prototype.scrub=function(){l(this._keySchedule),l(this._invKeySchedule),l(this._key)},z.exports.AES=e},{"safe-buffer":235}],40:[function(M,z,k){var v=M("./aes"),w=M("safe-buffer").Buffer,l=M("cipher-base"),d=M("inherits"),s=M("./ghash"),o=M("buffer-xor"),e=M("./incr32");function t(r,b,n,f){l.call(this);var h=w.alloc(4,0);this._cipher=new v.AES(b),b=this._cipher.encryptBlock(h),this._ghash=new s(b),n=function(E,L,T){if(12===L.length)return E._finID=w.concat([L,w.from([0,0,0,1])]),w.concat([L,w.from([0,0,0,2])]);T=new s(T);var B=(q=L.length)%16,q=(T.update(L),B&&T.update(w.alloc(16-B,0)),T.update(w.alloc(8,0)),L=8*q,(B=w.alloc(8)).writeUIntBE(L,0,8),T.update(B),E._finID=T.state,w.from(E._finID));return e(q),q}(this,n,b),this._prev=w.from(n),this._cache=w.allocUnsafe(0),this._secCache=w.allocUnsafe(0),this._decrypt=f,this._alen=0,this._len=0,this._mode=r,this._authTag=null,this._called=!1}d(t,l),t.prototype._update=function(r){!this._called&&this._alen&&(i=16-this._alen%16)<16&&(i=w.alloc(i,0),this._ghash.update(i)),this._called=!0;var i=this._mode.encrypt(this,r);return this._ghash.update(this._decrypt?r:i),this._len+=r.length,i},t.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var r=o(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(i,n){for(var f=0,h=(i.length!==n.length&&f++,Math.min(i.length,n.length)),b=0;b>>0,0),o.writeUInt32BE(s[1]>>>0,4),o.writeUInt32BE(s[2]>>>0,8),o.writeUInt32BE(s[3]>>>0,12),o}function d(s){this.h=s,this.state=v.alloc(16,0),this.cache=v.allocUnsafe(0)}d.prototype.ghash=function(s){for(var o=-1;++o>>1|(1&t[o-1])<<31;t[0]=t[0]>>>1,e&&(t[0]=t[0]^225<<24)}this.state=l(r)},d.prototype.update=function(s){var o;for(this.cache=v.concat([this.cache,s]);16<=this.cache.length;)o=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(o)},d.prototype.final=function(s,o){return this.cache.length&&this.ghash(v.concat([this.cache,w],16)),this.ghash(l([0,s,0,o])),this.state},z.exports=d},{"safe-buffer":235}],45:[function(M,z,k){z.exports=function(v){for(var w,l=v.length;l--;){if(255!==(w=v.readUInt8(l))){w++,v.writeUInt8(w,l);break}v.writeUInt8(0,l)}}},{}],46:[function(M,z,k){var v=M("buffer-xor");k.encrypt=function(w,l){return l=v(l,w._prev),w._prev=w._cipher.encryptBlock(l),w._prev},k.decrypt=function(s,l){var d=s._prev;return s._prev=l,s=s._cipher.decryptBlock(l),v(s,d)}},{"buffer-xor":69}],47:[function(M,z,k){var v=M("safe-buffer").Buffer,w=M("buffer-xor");function l(d,s,o){var e=s.length,t=w(s,d._cache);return d._cache=d._cache.slice(e),d._prev=v.concat([d._prev,o?s:t]),t}k.encrypt=function(d,s,o){for(var e,t=v.allocUnsafe(0);s.length;){if(0===d._cache.length&&(d._cache=d._cipher.encryptBlock(d._prev),d._prev=v.allocUnsafe(0)),!(d._cache.length<=s.length)){t=v.concat([t,l(d,s,o)]);break}t=v.concat([t,l(d,s.slice(0,e=d._cache.length),o)]),s=s.slice(e)}return t}},{"buffer-xor":69,"safe-buffer":235}],48:[function(M,z,k){var v=M("safe-buffer").Buffer;function w(l,d,s){for(var o,e,t=-1,r=0;++t<8;)r+=(128&(e=l._cipher.encryptBlock(l._prev)[0]^(o=d&1<<7-t?128:0)))>>t%8,l._prev=function(i,n){var f=i.length,h=-1,b=v.allocUnsafe(i.length);for(i=v.concat([i,v.from([n])]);++h>7;return b}(l._prev,s?o:e);return r}k.encrypt=function(l,d,s){for(var o=d.length,e=v.allocUnsafe(o),t=-1;++t=t)throw new Error("invalid sig")}z.exports=function(e,t,r,i,n){var f,h,b;if("ec"===(r=d(r)).type){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong public key type");var E=e,A=t,j=r,T=s[j.data.algorithm.curve.join(".")];if(T)return(T=new l(T)).verify(A,E,j=j.data.subjectPrivateKey.data);throw new Error("unknown curve "+j.data.algorithm.curve.join("."))}if("dsa"===r.type){if("dsa"!==i)throw new Error("wrong public key type");return A=t,j=(E=r).data.p,f=r.data.q,W=r.data.g,E=r.data.pub_key,h=(T=d.signature.decode(T=e,"der")).s,T=T.r,o(h,f),o(T,f),b=w.mont(j),h=h.invm(f),0===W.toRed(b).redPow(new w(A).mul(h).mod(f)).fromRed().mul(E.toRed(b).redPow(T.mul(h).mod(f)).fromRed()).mod(j).mod(f).cmp(T)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong public key type");t=v.concat([n,t]);for(var Z=r.modulus.byteLength(),q=[1],B=0;t.length+q.length+2k.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=i,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}k.NONE=0,k.DEFLATE=1,k.INFLATE=2,k.GZIP=3,k.GUNZIP=4,k.DEFLATERAW=5,k.INFLATERAW=6,k.UNZIP=7,r.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,d(this.init_done,"close before init"),d(this.mode<=k.UNZIP),this.mode===k.DEFLATE||this.mode===k.GZIP||this.mode===k.DEFLATERAW?o.deflateEnd(this.strm):this.mode!==k.INFLATE&&this.mode!==k.GUNZIP&&this.mode!==k.INFLATERAW&&this.mode!==k.UNZIP||e.inflateEnd(this.strm),this.mode=k.NONE,this.dictionary=null)},r.prototype.write=function(i,n,f,h,b,E,A){return this._write(!0,i,n,f,h,b,E,A)},r.prototype.writeSync=function(i,n,f,h,b,E,A){return this._write(!1,i,n,f,h,b,E,A)},r.prototype._write=function(i,n,f,h,b,E,A,j){if(d.equal(arguments.length,8),d(this.init_done,"write before init"),d(this.mode!==k.NONE,"already finalized"),d.equal(!1,this.write_in_progress,"write already in progress"),d.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,d.equal(!1,void 0===n,"must provide flush value"),this.write_in_progress=!0,n!==k.Z_NO_FLUSH&&n!==k.Z_PARTIAL_FLUSH&&n!==k.Z_SYNC_FLUSH&&n!==k.Z_FULL_FLUSH&&n!==k.Z_FINISH&&n!==k.Z_BLOCK)throw new Error("Invalid flush value");if(null==f&&(f=w.alloc(0),h=b=0),this.strm.avail_in=b,this.strm.input=f,this.strm.next_in=h,this.strm.avail_out=j,this.strm.output=E,this.strm.next_out=A,this.flush=n,!i)return this._process(),this._checkError()?this._afterSync():void 0;var T=this;return v.nextTick(function(){T._process(),T._after()}),this},r.prototype._afterSync=function(){var i=this.strm.avail_out,n=this.strm.avail_in;return this.write_in_progress=!1,[n,i]},r.prototype._process=function(){var i=null;switch(this.mode){case k.DEFLATE:case k.GZIP:case k.DEFLATERAW:this.err=o.deflate(this.strm,this.flush);break;case k.UNZIP:switch(0k.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+g.chunkSize);if(g.windowBits&&(g.windowBitsk.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+g.windowBits);if(g.level&&(g.levelk.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+g.level);if(g.memLevel&&(g.memLevelk.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+g.memLevel);if(g.strategy&&g.strategy!=k.Z_FILTERED&&g.strategy!=k.Z_HUFFMAN_ONLY&&g.strategy!=k.Z_RLE&&g.strategy!=k.Z_FIXED&&g.strategy!=k.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+g.strategy);if(g.dictionary&&!w.isBuffer(g.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new d.Zlib(_);var p=this,I=(this._hadError=!1,this._handle.onerror=function(R,U){u(p),p._hadError=!0,(R=new Error(R)).errno=U,R.code=k.codes[U],p.emit("error",R)},_=k.Z_DEFAULT_COMPRESSION,"number"==typeof g.level&&(_=g.level),k.Z_DEFAULT_STRATEGY);"number"==typeof g.strategy&&(I=g.strategy),this._handle.init(g.windowBits||k.Z_DEFAULT_WINDOWBITS,_,g.memLevel||k.Z_DEFAULT_MEMLEVEL,I,g.dictionary),this._buffer=w.allocUnsafe(this._chunkSize),this._offset=0,this._level=_,this._strategy=I,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!S._handle},configurable:!0,enumerable:!0})}function u(g,y){y&&v.nextTick(y),g._handle&&(g._handle.close(),g._handle=null)}function m(g){g.emit("close")}Object.defineProperty(k,"codes",{enumerable:!0,value:Object.freeze(f),writable:!1}),k.Deflate=T,k.Inflate=B,k.Gzip=L,k.Gunzip=q,k.DeflateRaw=W,k.InflateRaw=x,k.Unzip=Z,k.createDeflate=function(g){return new T(g)},k.createInflate=function(g){return new B(g)},k.createDeflateRaw=function(g){return new W(g)},k.createInflateRaw=function(g){return new x(g)},k.createGzip=function(g){return new L(g)},k.createGunzip=function(g){return new q(g)},k.createUnzip=function(g){return new Z(g)},k.deflate=function(g,y,S){return"function"==typeof y&&(S=y,y={}),A(new T(y),g,S)},k.deflateSync=function(g,y){return j(new T(y),g)},k.gzip=function(g,y,S){return"function"==typeof y&&(S=y,y={}),A(new L(y),g,S)},k.gzipSync=function(g,y){return j(new L(y),g)},k.deflateRaw=function(g,y,S){return"function"==typeof y&&(S=y,y={}),A(new W(y),g,S)},k.deflateRawSync=function(g,y){return j(new W(y),g)},k.unzip=function(g,y,S){return"function"==typeof y&&(S=y,y={}),A(new Z(y),g,S)},k.unzipSync=function(g,y){return j(new Z(y),g)},k.inflate=function(g,y,S){return"function"==typeof y&&(S=y,y={}),A(new B(y),g,S)},k.inflateSync=function(g,y){return j(new B(y),g)},k.gunzip=function(g,y,S){return"function"==typeof y&&(S=y,y={}),A(new q(y),g,S)},k.gunzipSync=function(g,y){return j(new q(y),g)},k.inflateRaw=function(g,y,S){return"function"==typeof y&&(S=y,y={}),A(new x(y),g,S)},k.inflateRawSync=function(g,y){return j(new x(y),g)},s.inherits(O,l),O.prototype.params=function(g,y,S){if(gk.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+g);if(y!=k.Z_FILTERED&&y!=k.Z_HUFFMAN_ONLY&&y!=k.Z_RLE&&y!=k.Z_FIXED&&y!=k.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+y);var p;this._level!==g||this._strategy!==y?(p=this).flush(d.Z_SYNC_FLUSH,function(){o(p._handle,"zlib binding closed"),p._handle.params(g,y),p._hadError||(p._level=g,p._strategy=y,S&&S())}):v.nextTick(S)},O.prototype.reset=function(){return o(this._handle,"zlib binding closed"),this._handle.reset()},O.prototype._flush=function(g){this._transform(w.alloc(0),"",g)},O.prototype.flush=function(g,y){var S=this,p=this._writableState;"function"!=typeof g&&(void 0!==g||y)||(y=g,g=d.Z_FULL_FLUSH),p.ended?y&&v.nextTick(y):p.ending?y&&this.once("end",y):p.needDrain?y&&this.once("drain",function(){return S.flush(g,y)}):(this._flushFlag=g,this.write(w.alloc(0),"",y))},O.prototype.close=function(g){u(this,g),v.nextTick(m,this)},O.prototype._transform=function(g,y,S){var p,_=this._writableState,I=(_.ending||_.ended)&&(!g||_.length===g.length);return null===g||w.isBuffer(g)?this._handle?(I?p=this._finishFlushFlag:(p=this._flushFlag,g.length>=_.length&&(this._flushFlag=this._opts.flush||d.Z_NO_FLUSH)),void this._processChunk(g,p,S)):S(new Error("zlib binding closed")):S(new Error("invalid input"))},O.prototype._processChunk=function(g,y,S){var p=g&&g.length,_=this._chunkSize-this._offset,I=0,R=this,U="function"==typeof S;if(!U){var V,D=[],P=0;this.on("error",function(G){V=G}),o(this._handle,"zlib binding closed");do{var F=this._handle.writeSync(y,g,I,p,this._buffer,this._offset,_)}while(!this._hadError&&K(F[0],F[1]));if(this._hadError)throw V;if(e<=P)throw u(this),new RangeError(t);var H=w.concat(D,P);return u(this),H}function K(G,ot){if(this&&(this.buffer=null,this.callback=null),!R._hadError){var et,N=_-ot;if(o(0<=N,"have should not go down"),0=R._chunkSize)&&(_=R._chunkSize,R._offset=0,R._buffer=w.allocUnsafe(R._chunkSize)),0===ot)return I+=p-G,p=G,!U||((N=R._handle.write(y,g,I,p,R._buffer,R._offset,R._chunkSize)).callback=K,void(N.buffer=g));if(!U)return!1;S()}}o(this._handle,"zlib binding closed"),(H=this._handle.write(y,g,I,p,this._buffer,this._offset,_)).buffer=g,H.callback=K},s.inherits(T,O),s.inherits(B,O),s.inherits(L,O),s.inherits(q,O),s.inherits(W,O),s.inherits(x,O),s.inherits(Z,O)}).call(this)}).call(this,M("_process"))},{"./binding":66,_process:205,assert:30,buffer:70,stream:245,util:256}],68:[function(M,z,k){arguments[4][38][0].apply(k,arguments)},{dup:38}],69:[function(M,z,k){(function(v){(function(){z.exports=function(w,l){for(var d=Math.min(w.length,l.length),s=new v(d),o=0;o>>1;case"base64":return m(p).length;default:if(U)return R?-1:u(p).length;_=(""+_).toLowerCase(),U=!0}}function h(p,_,I){var R,U=!1;if((_=void 0===_||_<0?0:_)>this.length||(I=void 0===I||I>this.length?this.length:I)<=0||(I>>>=0)<=(_>>>=0))return"";for(p=p||"utf8";;)switch(p){case"hex":var D=I,K=this.length;(!D||D<0||K=p.length){if(U)return-1;I=p.length-1}else if(I<0){if(!U)return-1;I=0}if("string"==typeof _&&(_=o.from(_,R)),o.isBuffer(_))return 0===_.length?-1:A(p,_,I,R,U);if("number"==typeof _)return _&=255,"function"==typeof Uint8Array.prototype.indexOf?(U?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(p,_,I):A(p,[_],I,R,U);throw new TypeError("val must be string, number or Buffer")}function A(p,_,I,R,U){var V=1,D=p.length,P=_.length;if(void 0!==R&&("ucs2"===(R=String(R).toLowerCase())||"ucs-2"===R||"utf16le"===R||"utf-16le"===R)){if(p.length<2||_.length<2)return-1;D/=V=2,P/=2,I/=2}function F(et,N){return 1===V?et[N]:et.readUInt16BE(N*V)}if(U)for(var H=-1,K=I;K>8,F.push(P%=256),F.push(D);return F}(_,p.length-I),p,I,R)}function B(p,_,I){I=Math.min(p.length,I);for(var R=[],U=_;U>>10&1023|55296),K=56320|1023&K),R.push(K),U+=G}var ot=R,et=ot.length;if(et<=L)return String.fromCharCode.apply(String,ot);for(var N="",Y=0;Y"u"||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&null!=Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),o.poolSize=8192,o.from=e,o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,o.alloc=function(p,_,I){return t(p),p<=0||void 0===_?s(p):"string"==typeof I?s(p).fill(_,I):s(p).fill(_)},o.allocUnsafe=r,o.allocUnsafeSlow=r,o.isBuffer=function(p){return null!=p&&!0===p._isBuffer&&p!==o.prototype},o.compare=function(p,_){if(y(p,Uint8Array)&&(p=o.from(p,p.offset,p.byteLength)),y(_,Uint8Array)&&(_=o.from(_,_.offset,_.byteLength)),!o.isBuffer(p)||!o.isBuffer(_))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===_)return 0;for(var I=p.length,R=_.length,U=0,V=Math.min(I,R);Up&&(_+=" ... "),""},o.prototype.compare=function(p,_,I,R,U){if(y(p,Uint8Array)&&(p=o.from(p,p.offset,p.byteLength)),!o.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(void 0===I&&(I=p?p.length:0),void 0===R&&(R=0),void 0===U&&(U=this.length),(_=void 0===_?0:_)<0||I>p.length||R<0||U>this.length)throw new RangeError("out of range index");if(U<=R&&I<=_)return 0;if(U<=R)return-1;if(I<=_)return 1;if(this===p)return 0;for(var V=(U>>>=0)-(R>>>=0),D=(I>>>=0)-(_>>>=0),P=Math.min(V,D),F=this.slice(R,U),H=p.slice(_,I),K=0;K>>=0,isFinite(I)?(I>>>=0,void 0===R&&(R="utf8")):(R=I,I=void 0)}var U=this.length-_;if((void 0===I||Uthis.length)throw new RangeError("Attempt to write outside buffer bounds");R=R||"utf8";for(var V,D,P,F=!1;;)switch(R){case"hex":var K=p,G=_,ot=I,et=(G=Number(G)||0,this.length-G);(!ot||et<(ot=Number(ot)))&&(ot=et),(et=K.length)/2p.length)throw new RangeError("Index out of range")}function x(p,_,I,R){if(I+R>p.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("Index out of range")}function Z(p,_,I,R,U){return _=+_,I>>>=0,U||x(p,0,I,4),l.write(p,_,I,R,23,4),I+4}function c(p,_,I,R,U){return _=+_,I>>>=0,U||x(p,0,I,8),l.write(p,_,I,R,52,8),I+8}o.prototype.slice=function(p,_){var I=this.length;return((p=~~p)<0?(p+=I)<0&&(p=0):I>>=0,_>>>=0,I||q(p,_,this.length);for(var R=this[p],U=1,V=0;++V<_&&(U*=256);)R+=this[p+V]*U;return R},o.prototype.readUIntBE=function(p,_,I){p>>>=0,_>>>=0,I||q(p,_,this.length);for(var R=this[p+--_],U=1;0<_&&(U*=256);)R+=this[p+--_]*U;return R},o.prototype.readUInt8=function(p,_){return p>>>=0,_||q(p,1,this.length),this[p]},o.prototype.readUInt16LE=function(p,_){return p>>>=0,_||q(p,2,this.length),this[p]|this[p+1]<<8},o.prototype.readUInt16BE=function(p,_){return p>>>=0,_||q(p,2,this.length),this[p]<<8|this[p+1]},o.prototype.readUInt32LE=function(p,_){return p>>>=0,_||q(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+16777216*this[p+3]},o.prototype.readUInt32BE=function(p,_){return p>>>=0,_||q(p,4,this.length),16777216*this[p]+(this[p+1]<<16|this[p+2]<<8|this[p+3])},o.prototype.readIntLE=function(p,_,I){p>>>=0,_>>>=0,I||q(p,_,this.length);for(var R=this[p],U=1,V=0;++V<_&&(U*=256);)R+=this[p+V]*U;return(U*=128)<=R&&(R-=Math.pow(2,8*_)),R},o.prototype.readIntBE=function(p,_,I){p>>>=0,_>>>=0,I||q(p,_,this.length);for(var R=_,U=1,V=this[p+--R];0>>=0,_||q(p,1,this.length),128&this[p]?-1*(255-this[p]+1):this[p]},o.prototype.readInt16LE=function(p,_){return p>>>=0,_||q(p,2,this.length),32768&(_=this[p]|this[p+1]<<8)?4294901760|_:_},o.prototype.readInt16BE=function(p,_){return p>>>=0,_||q(p,2,this.length),32768&(_=this[p+1]|this[p]<<8)?4294901760|_:_},o.prototype.readInt32LE=function(p,_){return p>>>=0,_||q(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},o.prototype.readInt32BE=function(p,_){return p>>>=0,_||q(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},o.prototype.readFloatLE=function(p,_){return p>>>=0,_||q(p,4,this.length),l.read(this,p,!0,23,4)},o.prototype.readFloatBE=function(p,_){return p>>>=0,_||q(p,4,this.length),l.read(this,p,!1,23,4)},o.prototype.readDoubleLE=function(p,_){return p>>>=0,_||q(p,8,this.length),l.read(this,p,!0,52,8)},o.prototype.readDoubleBE=function(p,_){return p>>>=0,_||q(p,8,this.length),l.read(this,p,!1,52,8)},o.prototype.writeUIntLE=function(p,_,I,R){p=+p,_>>>=0,I>>>=0,R||W(this,p,_,I,Math.pow(2,8*I)-1,0);var U=1,V=0;for(this[_]=255&p;++V>>=0,I>>>=0,R||W(this,p,_,I,Math.pow(2,8*I)-1,0);var U=I-1,V=1;for(this[_+U]=255&p;0<=--U&&(V*=256);)this[_+U]=p/V&255;return _+I},o.prototype.writeUInt8=function(p,_,I){return p=+p,_>>>=0,I||W(this,p,_,1,255,0),this[_]=255&p,_+1},o.prototype.writeUInt16LE=function(p,_,I){return p=+p,_>>>=0,I||W(this,p,_,2,65535,0),this[_]=255&p,this[_+1]=p>>>8,_+2},o.prototype.writeUInt16BE=function(p,_,I){return p=+p,_>>>=0,I||W(this,p,_,2,65535,0),this[_]=p>>>8,this[_+1]=255&p,_+2},o.prototype.writeUInt32LE=function(p,_,I){return p=+p,_>>>=0,I||W(this,p,_,4,4294967295,0),this[_+3]=p>>>24,this[_+2]=p>>>16,this[_+1]=p>>>8,this[_]=255&p,_+4},o.prototype.writeUInt32BE=function(p,_,I){return p=+p,_>>>=0,I||W(this,p,_,4,4294967295,0),this[_]=p>>>24,this[_+1]=p>>>16,this[_+2]=p>>>8,this[_+3]=255&p,_+4},o.prototype.writeIntLE=function(p,_,I,R){p=+p,_>>>=0,R||W(this,p,_,I,(R=Math.pow(2,8*I-1))-1,-R);var U=0,V=1,D=0;for(this[_]=255&p;++U>>=0,R||W(this,p,_,I,(R=Math.pow(2,8*I-1))-1,-R);var U=I-1,V=1,D=0;for(this[_+U]=255&p;0<=--U&&(V*=256);)p<0&&0===D&&0!==this[_+U+1]&&(D=1),this[_+U]=(p/V|0)-D&255;return _+I},o.prototype.writeInt8=function(p,_,I){return p=+p,_>>>=0,I||W(this,p,_,1,127,-128),this[_]=255&(p=p<0?255+p+1:p),_+1},o.prototype.writeInt16LE=function(p,_,I){return p=+p,_>>>=0,I||W(this,p,_,2,32767,-32768),this[_]=255&p,this[_+1]=p>>>8,_+2},o.prototype.writeInt16BE=function(p,_,I){return p=+p,_>>>=0,I||W(this,p,_,2,32767,-32768),this[_]=p>>>8,this[_+1]=255&p,_+2},o.prototype.writeInt32LE=function(p,_,I){return p=+p,_>>>=0,I||W(this,p,_,4,2147483647,-2147483648),this[_]=255&p,this[_+1]=p>>>8,this[_+2]=p>>>16,this[_+3]=p>>>24,_+4},o.prototype.writeInt32BE=function(p,_,I){return p=+p,_>>>=0,I||W(this,p,_,4,2147483647,-2147483648),this[_]=(p=p<0?4294967295+p+1:p)>>>24,this[_+1]=p>>>16,this[_+2]=p>>>8,this[_+3]=255&p,_+4},o.prototype.writeFloatLE=function(p,_,I){return Z(this,p,_,!0,I)},o.prototype.writeFloatBE=function(p,_,I){return Z(this,p,_,!1,I)},o.prototype.writeDoubleLE=function(p,_,I){return c(this,p,_,!0,I)},o.prototype.writeDoubleBE=function(p,_,I){return c(this,p,_,!1,I)},o.prototype.copy=function(p,_,I,R){if(!o.isBuffer(p))throw new TypeError("argument should be a Buffer");if(I=I||0,R||0===R||(R=this.length),_>=p.length&&(_=p.length),(R=0=this.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("sourceEnd out of bounds");R>this.length&&(R=this.length);var U=(R=p.length-_>>=0,I=void 0===I?this.length:I>>>0,"number"==typeof(p=p||0))for(V=_;V>6|192,63&I|128)}else if(I<65536){if((_-=3)<0)break;V.push(I>>12|224,I>>6&63|128,63&I|128)}else{if(!(I<1114112))throw new Error("Invalid code point");if((_-=4)<0)break;V.push(I>>18|240,I>>12&63|128,I>>6&63|128,63&I|128)}}return V}function m(p){return w.toByteArray(function(_){if((_=(_=_.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;_.length%4!=0;)_+="=";return _}(p))}function g(p,_,I,R){for(var U=0;U=_.length||U>=p.length);++U)_[U+I]=p[U];return U}function y(p,_){return p instanceof _||null!=p&&null!=p.constructor&&null!=p.constructor.name&&p.constructor.name===_.name}function S(p){return p!=p}}).call(this)}).call(this,M("buffer").Buffer)},{"base64-js":35,buffer:70,ieee754:157}],71:[function(M,z,k){z.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],72:[function(M,z,k){"use strict";var v=M("get-intrinsic"),w=M("./"),l=w(v("String.prototype.indexOf"));z.exports=function(d,s){return"function"==typeof(s=v(d,!!s))&&-1f?n=("rmd160"===i?new o:e(i)).update(n).digest():n.length>>1];i=l.r28shl(i,h),n=l.r28shl(n,h),l.pc2(i,n,t.keys,f)}},o.prototype._update=function(b,r,i,n){var f=this._desState,h=l.readUInt32BE(b,r);b=l.readUInt32BE(b,r+4),l.ip(h,b,f.tmp,0),h=f.tmp[0],b=f.tmp[1],"encrypt"===this.type?this._encrypt(f,h,b,f.tmp,0):this._decrypt(f,h,b,f.tmp,0),b=f.tmp[1],l.writeUInt32BE(i,h=f.tmp[0],n),l.writeUInt32BE(i,b,n+4)},o.prototype._pad=function(t,r){for(var i=t.length-r,n=r;n>>0,j=E}l.rip(A,j,n,f)},o.prototype._decrypt=function(t,r,i,n,f){for(var A=i,j=r,h=t.keys.length-2;0<=h;h-=2){var b=t.keys[h],E=t.keys[h+1];l.expand(A,t.tmp,0),b=l.substitute(b^=t.tmp[0],E^=t.tmp[1]),E=A,A=(j^l.permute(b))>>>0,j=E}l.rip(A,j,n,f)}},{"./cipher":85,"./utils":88,inherits:158,"minimalistic-assert":166}],87:[function(M,z,k){"use strict";var v=M("minimalistic-assert"),w=M("inherits"),l=M("./cipher"),d=M("./des");function s(e,n){v.equal(n.length,24,"Invalid key length");var r=n.slice(0,8),i=n.slice(8,16);n=n.slice(16,24),this.ciphers="encrypt"===e?[d.create({type:"encrypt",key:r}),d.create({type:"decrypt",key:i}),d.create({type:"encrypt",key:n})]:[d.create({type:"decrypt",key:n}),d.create({type:"encrypt",key:i}),d.create({type:"decrypt",key:r})]}function o(e){l.call(this,e),e=new s(this.type,this.options.key),this._edeState=e}w(o,l),(z.exports=o).create=function(e){return new o(e)},o.prototype._update=function(e,t,r,i){var n=this._edeState;n.ciphers[0]._update(e,t,r,i),n.ciphers[1]._update(r,i,r,i),n.ciphers[2]._update(r,i,r,i)},o.prototype._pad=d.prototype._pad,o.prototype._unpad=d.prototype._unpad},{"./cipher":85,"./des":86,inherits:158,"minimalistic-assert":166}],88:[function(M,z,k){"use strict";k.readUInt32BE=function(d,s){return(d[0+s]<<24|d[1+s]<<16|d[2+s]<<8|d[3+s])>>>0},k.writeUInt32BE=function(d,s,o){d[0+o]=s>>>24,d[1+o]=s>>>16&255,d[2+o]=s>>>8&255,d[3+o]=255&s},k.ip=function(d,s,o,e){for(var t=0,r=0,i=6;0<=i;i-=2){for(var n=0;n<=24;n+=8)t=t<<1|s>>>n+i&1;for(n=0;n<=24;n+=8)t=t<<1|d>>>n+i&1}for(i=6;0<=i;i-=2){for(n=1;n<=25;n+=8)r=r<<1|s>>>n+i&1;for(n=1;n<=25;n+=8)r=r<<1|d>>>n+i&1}o[e+0]=t>>>0,o[e+1]=r>>>0},k.rip=function(d,s,o,e){for(var t=0,r=0,i=0;i<4;i++)for(var n=24;0<=n;n-=8)t=(t=t<<1|s>>>n+i&1)<<1|d>>>n+i&1;for(i=4;i<8;i++)for(n=24;0<=n;n-=8)r=(r=r<<1|s>>>n+i&1)<<1|d>>>n+i&1;o[e+0]=t>>>0,o[e+1]=r>>>0},k.pc1=function(d,s,o,e){for(var t=0,r=0,i=7;5<=i;i--){for(var n=0;n<=24;n+=8)t=t<<1|s>>n+i&1;for(n=0;n<=24;n+=8)t=t<<1|d>>n+i&1}for(n=0;n<=24;n+=8)t=t<<1|s>>n+i&1;for(i=1;i<=3;i++){for(n=0;n<=24;n+=8)r=r<<1|s>>n+i&1;for(n=0;n<=24;n+=8)r=r<<1|d>>n+i&1}for(n=0;n<=24;n+=8)r=r<<1|d>>n+i&1;o[e+0]=t>>>0,o[e+1]=r>>>0},k.r28shl=function(d,s){return d<>>28-s};var v=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24],w=(k.pc2=function(d,s,o,e){for(var t=0,r=0,i=v.length>>>1,n=0;n>>v[n]&1;for(n=i;n>>v[n]&1;o[e+0]=t>>>0,o[e+1]=r>>>0},k.expand=function(d,s,o){for(var t=0,e=0,r=(t=(1&d)<<5|d>>>27,23);15<=r;r-=4)t=t<<6|d>>>r&63;for(r=11;3<=r;r-=4)e=(e|d>>>r&63)<<6;e|=(31&d)<<1|d>>>31,s[o+0]=t>>>0,s[o+1]=e>>>0},[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11]),l=(k.substitute=function(d,s){for(var o=0,e=0;e<4;e++)o=o<<4|w[64*e+(d>>>18-6*e&63)];for(e=0;e<4;e++)o=o<<4|w[256+64*e+(s>>>18-6*e&63)];return o>>>0},[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7]);k.permute=function(d){for(var s=0,o=0;o>>l[o]&1;return s>>>0},k.padSplit=function(d,s,o){for(var e=d.toString(2);e.lengthA;)T.ishrn(1);if(T.isEven()&&T.iadd(s),T.testn(1)||T.iadd(o),j.cmp(o)){if(!j.cmp(e))for(;T.mod(t).cmp(r);)T.iadd(n)}else for(;T.mod(l).cmp(i);)T.iadd(n);if(h(B=T.shrn(1))&&h(T)&&b(B)&&b(T)&&d.test(B)&&d.test(T))return T}}},{"bn.js":93,"miller-rabin":164,randombytes:217}],92:[function(M,z,k){z.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],93:[function(M,z,k){arguments[4][29][0].apply(k,arguments)},{buffer:38,dup:29}],94:[function(M,z,k){(function(v){(function(){const w=M("fs"),l=M("path"),d=M("os"),s=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function o(t){console.log("[dotenv][DEBUG] "+t)}const e={config:function(t){let r=l.resolve(v.cwd(),".env"),i="utf8";const n=!(!t||!t.debug),f=!(!t||!t.override);var h;t&&(null!=t.path&&(r="~"===(h=t.path)[0]?l.join(d.homedir(),h.slice(1)):h),null!=t.encoding&&(i=t.encoding));try{const b=e.parse(w.readFileSync(r,{encoding:i}));return Object.keys(b).forEach(function(E){Object.prototype.hasOwnProperty.call(v.env,E)?(!0===f&&(v.env[E]=b[E]),n&&o(!0===f?`"${E}" is already defined in \`process.env\` and WAS overwritten`:`"${E}" is already defined in \`process.env\` and was NOT overwritten`)):v.env[E]=b[E]}),{parsed:b}}catch(b){return n&&o(`Failed to load ${r} `+b.message),{error:b}}},parse:function(t){const r={};let i=t.toString();for(i=i.replace(/\r\n?/gm,"\n");null!=(f=s.exec(i));){var n=f[1];let h=f[2]||"";var f=(h=h.trim())[0];h=h.replace(/^(['"`])([\s\S]*)\1$/gm,"$2"),'"'===f&&(h=(h=h.replace(/\\n/g,"\n")).replace(/\\r/g,"\r")),r[n]=h}return r}};z.exports.config=e.config,z.exports.parse=e.parse,z.exports=e}).call(this)}).call(this,M("_process"))},{_process:205,fs:68,os:181,path:198}],95:[function(M,z,k){"use strict";k.version=M("../package.json").version,k.utils=M("./elliptic/utils"),k.rand=M("brorand"),k.curve=M("./elliptic/curve"),k.curves=M("./elliptic/curves"),k.ec=M("./elliptic/ec"),k.eddsa=M("./elliptic/eddsa")},{"../package.json":111,"./elliptic/curve":98,"./elliptic/curves":101,"./elliptic/ec":102,"./elliptic/eddsa":105,"./elliptic/utils":109,brorand:37}],96:[function(M,z,k){"use strict";var v=M("bn.js"),w=M("../utils"),l=w.getNAF,d=w.getJSF,s=w.assert;function o(t,r){this.type=t,this.p=new v(r.p,16),this.red=r.prime?v.red(r.prime):v.mont(this.p),this.zero=new v(0).toRed(this.red),this.one=new v(1).toRed(this.red),this.two=new v(2).toRed(this.red),this.n=r.n&&new v(r.n,16),this.g=r.g&&this.pointFromJSON(r.g,r.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0,!(t=this.n&&this.p.div(this.n))||0>1]:f[-j-1>>1].neg()):b.add(0>1]:f[-j-1>>1].neg())}return"affine"===t.type?b.toP():b},o.prototype._wnafMulAdd=function(t,r,i,n,f){for(var h=this._wnafT1,b=this._wnafT2,E=this._wnafT3,A=0,j=0;j>1]:p<0&&(T=b[S][-p-1>>1].neg()),u="affine"===T.type?u.mixedAdd(T):u.add(T))}}for(j=0;j=Math.ceil((t.bitLength()+1)/r.step)},e.prototype._getDoubles=function(t,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],n=this,f=0;f":""},e.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},e.prototype._extDbl=function(){var f=this.x.redSqr(),i=this.y.redSqr(),r=(r=this.z.redSqr()).redIAdd(r),h=this.curve._mulA(f),t=(f=this.x.redAdd(this.y).redSqr().redISub(f).redISub(i),h.redAdd(i)),n=(r=t.redSub(r),h=h.redSub(i),i=f.redMul(r),t.redMul(h));return f=f.redMul(h),h=r.redMul(t),this.curve.point(i,n,h,f)},e.prototype._projDbl=function(){var t,r,i,n,f,h,b=this.x.redAdd(this.y).redSqr(),E=this.x.redSqr(),A=this.y.redSqr();return h=this.curve.twisted?(h=(f=this.curve._mulA(E)).redAdd(A),this.zOne?(t=b.redSub(E).redSub(A).redMul(h.redSub(this.curve.two)),r=h.redMul(f.redSub(A)),h.redSqr().redSub(h).redSub(h)):(i=this.z.redSqr(),n=h.redSub(i).redISub(i),t=b.redSub(E).redISub(A).redMul(n),r=h.redMul(f.redSub(A)),h.redMul(n))):(f=E.redAdd(A),i=this.curve._mulC(this.z).redSqr(),n=f.redSub(i).redSub(i),t=this.curve._mulC(b.redISub(f)).redMul(n),r=this.curve._mulC(f).redMul(E.redISub(A)),f.redMul(n)),this.curve.point(t,r,h)},e.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},e.prototype._extAdd=function(i){var f=this.y.redSub(this.x).redMul(i.y.redSub(i.x)),n=this.y.redAdd(this.x).redMul(i.y.redAdd(i.x)),b=this.t.redMul(this.curve.dd).redMul(i.t),h=(i=this.z.redMul(i.z.redAdd(i.z)),n.redSub(f)),r=i.redSub(b);return i=i.redAdd(b),b=n.redAdd(f),n=h.redMul(r),f=i.redMul(b),h=h.redMul(b),b=r.redMul(i),this.curve.point(n,f,b,h)},e.prototype._projAdd=function(E){var r,i=this.z.redMul(E.z),b=i.redSqr(),n=this.x.redMul(E.x),f=this.y.redMul(E.y),A=this.curve.d.redMul(n).redMul(f),h=b.redSub(A);return b=b.redAdd(A),A=this.x.redAdd(this.y).redMul(E.x.redAdd(E.y)).redISub(n).redISub(f),E=i.redMul(h).redMul(A),A=this.curve.twisted?(r=i.redMul(b).redMul(f.redSub(this.curve._mulA(n))),h.redMul(b)):(r=i.redMul(b).redMul(f.redSub(n)),this.curve._mulC(h).redMul(b)),this.curve.point(E,r,A)},e.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},e.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},e.prototype.mulAdd=function(t,r,i){return this.curve._wnafMulAdd(1,[this,r],[t,i],2,!1)},e.prototype.jmulAdd=function(t,r,i){return this.curve._wnafMulAdd(1,[this,r],[t,i],2,!0)},e.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},e.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},e.prototype.getX=function(){return this.normalize(),this.x.fromRed()},e.prototype.getY=function(){return this.normalize(),this.y.fromRed()},e.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},e.prototype.eqXToP=function(t){var r=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(r))return!0;for(var i=t.clone(),n=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),0<=i.cmp(this.curve.p))return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},e.prototype.toP=e.prototype.normalize,e.prototype.mixedAdd=e.prototype.add},{"../utils":109,"./base":96,"bn.js":110,inherits:158}],98:[function(M,z,k){"use strict";k.base=M("./base"),k.short=M("./short"),k.mont=M("./mont"),k.edwards=M("./edwards")},{"./base":96,"./edwards":97,"./mont":99,"./short":100}],99:[function(M,z,k){"use strict";var v=M("bn.js"),w=M("inherits"),l=M("./base"),d=M("../utils");function s(e){l.call(this,"mont",e),this.a=new v(e.a,16).toRed(this.red),this.b=new v(e.b,16).toRed(this.red),this.i4=new v(4).toRed(this.red).redInvm(),this.two=new v(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function o(e,t,r){l.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new v(t,16),this.z=new v(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}w(s,l),(z.exports=s).prototype.validate=function(t){var r;return 0===(r=(r=(t=t.normalize().x).redSqr()).redMul(t).redAdd(r.redMul(this.a)).redAdd(t)).redSqrt().redSqr().cmp(r)},w(o,l.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(d.toArray(e,t),1)},s.prototype.point=function(e,t){return new o(this,e,t)},s.prototype.pointFromJSON=function(e){return o.fromJSON(this,e)},o.prototype.precompute=function(){},o.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},o.fromJSON=function(e,t){return new o(e,t[0],t[1]||e.one)},o.prototype.inspect=function(){return this.isInfinity()?"":""},o.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},o.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),r=this.x.redSub(this.z).redSqr(),e=t.redSub(r);return t=t.redMul(r),r=e.redMul(r.redAdd(this.curve.a24.redMul(e))),this.curve.point(t,r)},o.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},o.prototype.diffAdd=function(r,t){var i=this.x.redAdd(this.z),f=this.x.redSub(this.z),n=r.x.redAdd(r.z);return r=r.x.redSub(r.z).redMul(i),i=n.redMul(f),n=t.z.redMul(r.redAdd(i).redSqr()),f=t.x.redMul(r.redISub(i).redSqr()),this.curve.point(n,f)},o.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var f=n.length-1;0<=f;f--)0===n[f]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},o.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},o.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},o.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},o.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},o.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":109,"./base":96,"bn.js":110,inherits:158}],100:[function(M,z,k){"use strict";var v=M("../utils"),w=M("bn.js"),l=M("inherits"),d=M("./base"),s=v.assert;function o(r){d.call(this,"short",r),this.a=new w(r.a,16).toRed(this.red),this.b=new w(r.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(r),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function e(r,i,n,f){d.BasePoint.call(this,r,"affine"),null===i&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new w(i,16),this.y=new w(n,16),f&&(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 t(r,i,n,f){d.BasePoint.call(this,r,"jacobian"),null===i&&null===n&&null===f?(this.x=this.curve.one,this.y=this.curve.one,this.z=new w(0)):(this.x=new w(i,16),this.y=new w(n,16),this.z=new w(f,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}l(o,d),(z.exports=o).prototype._getEndomorphism=function(r){var i,n,f;if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3))return n=(r.beta?new w(r.beta,16):n=(n=this._getEndoRoots(this.p))[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red),r.lambda?i=new w(r.lambda,16):(f=this._getEndoRoots(this.n),0===this.g.mul(f[0]).x.cmp(this.g.x.redMul(n))?i=f[0]:s(0===this.g.mul(i=f[1]).x.cmp(this.g.x.redMul(n)))),{beta:n,lambda:i,basis:r.basis?r.basis.map(function(h){return{a:new w(h.a,16),b:new w(h.b,16)}}):this._getEndoBasis(i)}},o.prototype._getEndoRoots=function(f){f=f===this.p?this.red:w.mont(f);var i=new w(2).toRed(f).redInvm(),n=i.redNeg();return f=new w(3).toRed(f).redNeg().redSqrt().redMul(i),[n.redAdd(f).fromRed(),n.redSub(f).fromRed()]},o.prototype._getEndoBasis=function(O){for(var i,n,f,h,b,E=this.n.ushrn(Math.floor(this.n.bitLength()/2)),A=O,j=this.n.clone(),T=new w(1),B=new w(0),L=new w(0),q=new w(1),W=0;0!==A.cmpn(0);){var c=j.div(A),x=j.sub(c.mul(A)),Z=L.sub(c.mul(T));if(c=q.sub(c.mul(B)),!f&&x.cmp(E)<0)i=b.neg(),n=T,f=x.neg(),h=Z;else if(f&&2==++W)break;j=A,A=b=x,L=T,T=Z,q=B,B=c}O=x.neg();var u=Z,m=f.sqr().add(h.sqr());return 0<=O.sqr().add(u.sqr()).cmp(m)&&(O=i,u=n),f.negative&&(f=f.neg(),h=h.neg()),O.negative&&(O=O.neg(),u=u.neg()),[{a:f,b:h},{a:O,b:u}]},o.prototype._endoSplit=function(r){var i,E=(i=this.endo.basis)[0],b=(i=i[1]).b.mul(r).divRound(this.n),n=E.b.neg().mul(r).divRound(this.n),f=b.mul(E.a),h=n.mul(i.a);return b=b.mul(E.b),E=n.mul(i.b),{k1:r.sub(f).sub(h),k2:b.add(E).neg()}},o.prototype.pointFromX=function(r,i){var n=(r=(r=new w(r,16)).red?r:r.toRed(this.red)).redSqr().redMul(r).redIAdd(r.redMul(this.a)).redIAdd(this.b),f=n.redSqrt();if(0!==f.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");return n=f.fromRed().isOdd(),(i&&!n||!i&&n)&&(f=f.redNeg()),this.point(r,f)},o.prototype.validate=function(i){if(i.inf)return!0;var f=i.x,n=(i=i.y,this.a.redMul(f));return f=f.redSqr().redMul(f).redIAdd(n).redIAdd(this.b),0===i.redSqr().redISub(f).cmpn(0)},o.prototype._endoWnafMulAdd=function(r,i,n){for(var f=this._endoWnafT1,h=this._endoWnafT2,b=0;b":""},e.prototype.isInfinity=function(){return this.inf},e.prototype.add=function(i){if(this.inf)return i;if(i.inf)return this;if(this.eq(i))return this.dbl();if(this.neg().eq(i))return this.curve.point(null,null);if(0===this.x.cmp(i.x))return this.curve.point(null,null);i=(n=0!==(n=this.y.redSub(i.y)).cmpn(0)?n.redMul(this.x.redSub(i.x).redInvm()):n).redSqr().redISub(this.x).redISub(i.x);var n=n.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,n)},e.prototype.dbl=function(){if(this.inf)return this;if(0===(n=this.y.redAdd(this.y)).cmpn(0))return this.curve.point(null,null);var i=this.curve.a,r=this.x.redSqr(),n=n.redInvm();return i=(r=r.redAdd(r).redIAdd(r).redIAdd(i).redMul(n)).redSqr().redISub(this.x.redAdd(this.x)),n=r.redMul(this.x.redSub(i)).redISub(this.y),this.curve.point(i,n)},e.prototype.getX=function(){return this.x.fromRed()},e.prototype.getY=function(){return this.y.fromRed()},e.prototype.mul=function(r){return r=new w(r,16),this.isInfinity()?this:this._hasDoubles(r)?this.curve._fixedNafMul(this,r):this.curve.endo?this.curve._endoWnafMulAdd([this],[r]):this.curve._wnafMul(this,r)},e.prototype.mulAdd=function(r,i,n){return i=[this,i],r=[r,n],this.curve.endo?this.curve._endoWnafMulAdd(i,r):this.curve._wnafMulAdd(1,i,r,2)},e.prototype.jmulAdd=function(r,i,n){return i=[this,i],r=[r,n],this.curve.endo?this.curve._endoWnafMulAdd(i,r,!0):this.curve._wnafMulAdd(1,i,r,2,!0)},e.prototype.eq=function(r){return this===r||this.inf===r.inf&&(this.inf||0===this.x.cmp(r.x)&&0===this.y.cmp(r.y))},e.prototype.neg=function(r){if(this.inf)return this;var i,n=this.curve.point(this.x,this.y.redNeg());return r&&this.precomputed&&(i=function(f){return f.neg()},n.precomputed={naf:(r=this.precomputed).naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}),n},e.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},l(t,d.BasePoint),o.prototype.jpoint=function(r,i,n){return new t(this,r,i,n)},t.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var r=this.z.redInvm(),n=r.redSqr(),i=this.x.redMul(n);return n=this.y.redMul(n).redMul(r),this.curve.point(i,n)},t.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},t.prototype.add=function(r){if(this.isInfinity())return r;if(r.isInfinity())return this;var i=r.z.redSqr(),b=this.z.redSqr(),E=this.x.redMul(i),n=r.x.redMul(b);if(i=this.y.redMul(i.redMul(r.z)),b=r.y.redMul(b.redMul(this.z)),n=E.redSub(n),b=i.redSub(b),0===n.cmpn(0))return 0!==b.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=(h=n.redSqr()).redMul(n),h=(E=E.redMul(h),b.redSqr().redIAdd(f).redISub(E).redISub(E));return b=b.redMul(E.redISub(h)).redISub(i.redMul(f)),E=this.z.redMul(r.z).redMul(n),this.curve.jpoint(h,b,E)},t.prototype.mixedAdd=function(h){if(this.isInfinity())return h.toJ();if(h.isInfinity())return this;var n=this.z.redSqr(),E=this.x,b=h.x.redMul(n),i=this.y;if(h=h.y.redMul(n).redMul(this.z),n=E.redSub(b),b=i.redSub(h),0===n.cmpn(0))return 0!==b.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=(h=n.redSqr()).redMul(n);return E=E.redMul(h),h=b.redSqr().redIAdd(f).redISub(E).redISub(E),b=b.redMul(E.redISub(h)).redISub(i.redMul(f)),E=this.z.redMul(n),this.curve.jpoint(h,b,E)},t.prototype.dblp=function(r){if(0===r)return this;if(this.isInfinity())return this;if(!r)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var i=this,n=0;n":""},t.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":109,"./base":96,"bn.js":110,inherits:158}],101:[function(M,z,l){"use strict";var v,w=l,d=(l=M("hash.js"),M("./curve")),s=M("./utils").assert;function o(t){this.curve="short"===t.type?new d.short(t):"edwards"===t.type?new d.edwards(t):new d.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 e(t,r){Object.defineProperty(w,t,{configurable:!0,enumerable:!0,get:function(){var i=new o(r);return Object.defineProperty(w,t,{configurable:!0,enumerable:!0,value:i}),i}})}w.PresetCurve=o,e("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:l.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),e("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:l.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),e("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:l.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),e("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:l.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"]}),e("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:l.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"]}),e("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:l.sha256,gRed:!1,g:["9"]}),e("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:l.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{v=M("./precomputed/secp256k1")}catch{v=void 0}e("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:l.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",v]})},{"./curve":98,"./precomputed/secp256k1":108,"./utils":109,"hash.js":124}],102:[function(M,z,k){"use strict";var v=M("bn.js"),w=M("hmac-drbg"),l=M("../utils"),d=M("../curves"),s=M("brorand"),o=l.assert,e=M("./key"),t=M("./signature");function r(i){if(!(this instanceof r))return new r(i);"string"==typeof i&&(o(Object.prototype.hasOwnProperty.call(d,i),"Unknown curve "+i),i=d[i]),i instanceof d.PresetCurve&&(i={curve:i}),this.curve=i.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=i.curve.g,this.g.precompute(i.curve.n.bitLength()+1),this.hash=i.hash||i.curve.hash}(z.exports=r).prototype.keyPair=function(i){return new e(this,i)},r.prototype.keyFromPrivate=function(i,n){return e.fromPrivate(this,i,n)},r.prototype.keyFromPublic=function(i,n){return e.fromPublic(this,i,n)},r.prototype.genKeyPair=function(i){for(var n=new w({hash:this.hash,pers:(i=i||{}).pers,persEnc:i.persEnc||"utf8",entropy:i.entropy||s(this.hash.hmacStrength),entropyEnc:i.entropy&&i.entropyEnc||"utf8",nonce:this.n.toArray()}),f=this.n.byteLength(),h=this.n.sub(new v(2));;){var b=new v(n.generate(f));if(!(0>=1,0<=A.cmp(this.curve.p.umod(this.curve.n))&&B)throw new Error("Unable to find sencond key candinate");return A=this.curve.pointFromX(B?A.add(this.curve.n):A,T),B=n.r.invm(b),T=b.sub(E).mul(B).umod(b),n=j.mul(B).umod(b),this.g.mulAdd(T,A,n)},r.prototype.getKeyRecoveryParam=function(i,n,f,h){if(null!==(n=new t(n,h)).recoveryParam)return n.recoveryParam;for(var b,E=0;E<4;E++){try{b=this.recoverPubKey(i,n,E)}catch{continue}if(b.eq(f))return E}throw new Error("Unable to find valid recovery factor")}},{"../curves":101,"../utils":109,"./key":103,"./signature":104,"bn.js":110,brorand:37,"hmac-drbg":136}],103:[function(M,z,k){"use strict";var v=M("bn.js"),w=M("../utils").assert;function l(d,s){this.ec=d,this.priv=null,this.pub=null,s.priv&&this._importPrivate(s.priv,s.privEnc),s.pub&&this._importPublic(s.pub,s.pubEnc)}(z.exports=l).fromPublic=function(d,s,o){return s instanceof l?s:new l(d,{pub:s,pubEnc:o})},l.fromPrivate=function(d,s,o){return s instanceof l?s:new l(d,{priv:s,privEnc:o})},l.prototype.validate=function(){var d=this.getPublic();return d.isInfinity()?{result:!1,reason:"Invalid public key"}:d.validate()?d.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"}},l.prototype.getPublic=function(d,s){return"string"==typeof d&&(s=d,d=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),s?this.pub.encode(s,d):this.pub},l.prototype.getPrivate=function(d){return"hex"===d?this.priv.toString(16,2):this.priv},l.prototype._importPrivate=function(d,s){this.priv=new v(d,s||16),this.priv=this.priv.umod(this.ec.curve.n)},l.prototype._importPublic=function(d,s){if(d.x||d.y)return"mont"===this.ec.curve.type?w(d.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||w(d.x&&d.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(d.x,d.y));this.pub=this.ec.curve.decodePoint(d,s)},l.prototype.derive=function(d){return d.validate()||w(d.validate(),"public point not validated"),d.mul(this.priv).getX()},l.prototype.sign=function(d,s,o){return this.ec.sign(d,this,s,o)},l.prototype.verify=function(d,s){return this.ec.verify(d,s,this)},l.prototype.inspect=function(){return""}},{"../utils":109,"bn.js":110}],104:[function(M,z,k){"use strict";var v=M("bn.js"),w=M("../utils"),l=w.assert;function d(r,i){if(r instanceof d)return r;this._importDER(r,i)||(l(r.r&&r.s,"Signature without r or s"),this.r=new v(r.r,16),this.s=new v(r.s,16),this.recoveryParam=void 0===r.recoveryParam?null:r.recoveryParam)}function s(){this.place=0}function o(r,i){var n=r[i.place++];if(!(128&n))return n;var f=15&n;if(0==f||4>>0;return!(h<=127)&&(i.place=E,h)}function e(r){for(var i=0,n=r.length-1;!r[i]&&!(128&r[i+1])&&i>>3);for(r.push(128|n);--n;)r.push(i>>>(n<<3)&255);r.push(i)}}(z.exports=d).prototype._importDER=function(r,i){if(48!==(r=w.toArray(r,i))[(i=new s).place++])return!1;var n=o(r,i);if(!1===n||n+i.place!==r.length||2!==r[i.place++]||!1===(n=o(r,i)))return!1;var f=r.slice(i.place,n+i.place);if(i.place+=n,2!==r[i.place++]||!1===(n=o(r,i))||r.length!==n+i.place)return!1;if(r=r.slice(i.place,n+i.place),0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}if(0===r[0]){if(!(128&r[1]))return!1;r=r.slice(1)}return this.r=new v(f),this.s=new v(r),!(this.recoveryParam=null)},d.prototype.toDER=function(r){var f,n=this.r.toArray(),i=this.s.toArray();for(128&n[0]&&(n=[0].concat(n)),128&i[0]&&(i=[0].concat(i)),n=e(n),i=e(i);!(i[0]||128&i[1]);)i=i.slice(1);return t(f=[2],n.length),(f=f.concat(n)).push(2),t(f,i.length),n=f.concat(i),t(f=[48],n.length),f=f.concat(n),w.encode(f,r)}},{"../utils":109,"bn.js":110}],105:[function(M,z,k){"use strict";var v=M("hash.js"),w=M("../curves"),l=M("../utils"),d=l.assert,s=l.parseBytes,o=M("./key"),e=M("./signature");function t(r){if(d("ed25519"===r,"only tested with ed25519 so far"),!(this instanceof t))return new t(r);this.curve=r=w[r].curve,this.g=r.g,this.g.precompute(r.n.bitLength()+1),this.pointClass=r.point().constructor,this.encodingLength=Math.ceil(r.n.bitLength()/8),this.hash=v.sha512}(z.exports=t).prototype.sign=function(b,E){b=s(b),E=this.keyFromSecret(E);var n=this.hashInt(E.messagePrefix(),b),f=this.g.mul(n),h=this.encodePoint(f);return b=this.hashInt(h,E.pubBytes(),b).mul(E.priv()),E=n.add(b).umod(this.curve.n),this.makeSignature({R:f,S:E,Rencoded:h})},t.prototype.verify=function(h,i,f){h=s(h),i=this.makeSignature(i),f=this.keyFromPublic(f),h=this.hashInt(i.Rencoded(),f.pubBytes(),h);var b=this.g.mul(i.S());return i.R().add(f.pub().mul(h)).eq(b)},t.prototype.hashInt=function(){for(var r=this.hash(),i=0;i>1)-1>1)-h:h):f=0,t[n]=f,i.iushrn(1)}return t},v.getJSF=function(s,o){for(var e,t=[[],[]],r=(s=s.clone(),o=o.clone(),0),i=0;0B&&!L.warned&&(L.warned=!0,(T=new Error("Possible EventEmitter memory leak detected. "+L.length+" "+String(A)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",T.emitter=E,T.type=A,T.count=L.length,j=T,console&&console.warn&&console.warn(j))),E}function i(E,A,j){return A=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(E={fired:!1,wrapFn:void 0,target:E,type:A,listener:j}),A.listener=j,E.wrapFn=A}function n(E,A,j){if(void 0===(E=E._events))return[];if(void 0===(E=E[A]))return[];if("function"==typeof E)return j?[E.listener||E]:[E];if(j){for(var T=E,B=new Array(T.length),L=0;L"u"?v:i(Uint8Array),h={"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":E?i([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":n,"%AsyncGenerator%":n,"%AsyncGeneratorFunction%":n,"%AsyncIteratorPrototype%":n,"%Atomics%":typeof Atomics>"u"?v:Atomics,"%BigInt%":typeof BigInt>"u"?v:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?v:Float32Array,"%Float64Array%":typeof Float64Array>"u"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?v:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":n,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E?i(i([][Symbol.iterator]())):v,"%JSON%":"object"==typeof JSON?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map<"u"&&E?i((new Map)[Symbol.iterator]()):v,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set<"u"&&E?i((new Set)[Symbol.iterator]()):v,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E?i(""[Symbol.iterator]()):v,"%Symbol%":E?Symbol:v,"%SyntaxError%":w,"%ThrowTypeError%":r,"%TypedArray%":f,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?v:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=(E=M("function-bind"),M("has")),j=E.call(Function.call,Array.prototype.concat),T=E.call(Function.apply,Array.prototype.splice),B=E.call(Function.call,String.prototype.replace),L=E.call(Function.call,String.prototype.slice),q=E.call(Function.call,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g;z.exports=function(Z,c){if("string"!=typeof Z||0===Z.length)throw new d("intrinsic name must be a non-empty string");if(1=O.length?(p=!!(R=o(m,_)))&&"get"in R&&!("originalValue"in R.get)?R.get:m[_]:(p=A(m,_),m[_]),p&&!g&&(h[I]=m)}}return m}},{"function-bind":117,has:122,"has-symbols":119}],119:[function(M,z,k){"use strict";var v=typeof Symbol<"u"&&Symbol,w=M("./shams");z.exports=function(){return"function"==typeof v&&"function"==typeof Symbol&&"symbol"==typeof v("foo")&&"symbol"==typeof Symbol("bar")&&w()}},{"./shams":120}],120:[function(M,z,k){"use strict";z.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var v={},w=Symbol("test"),l=Object(w);if("string"==typeof w||"[object Symbol]"!==Object.prototype.toString.call(w)||"[object Symbol]"!==Object.prototype.toString.call(l))return!1;for(w in v[w]=42,v)return!1;return!("function"==typeof Object.keys&&0!==Object.keys(v).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(v).length||(l=Object.getOwnPropertySymbols(v),1!==l.length||l[0]!==w)||!Object.prototype.propertyIsEnumerable.call(v,w)||"function"==typeof Object.getOwnPropertyDescriptor&&(l=Object.getOwnPropertyDescriptor(v,w),42!==l.value||!0!==l.enumerable))}},{}],121:[function(M,z,k){"use strict";var v=M("has-symbols/shams");z.exports=function(){return v()&&!!Symbol.toStringTag}},{"has-symbols/shams":120}],122:[function(M,z,k){"use strict";M=M("function-bind"),z.exports=M.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":117}],123:[function(M,z,k){"use strict";var v=M("safe-buffer").Buffer,w=M("readable-stream").Transform;function l(d){w.call(this),this._block=v.allocUnsafe(d),this._blockSize=d,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}M("inherits")(l,w),l.prototype._transform=function(d,s,o){var e=null;try{this.update(d,s)}catch(t){e=t}o(e)},l.prototype._flush=function(d){var s=null;try{this.push(this.digest())}catch(o){s=o}d(s)},l.prototype.update=function(d,s){var o=d;if(!v.isBuffer(o)&&"string"!=typeof o)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");v.isBuffer(d)||(d=v.from(d,s));for(var t=this._block,r=0;this._blockOffset+d.length-r>=this._blockSize;){for(var i=this._blockOffset;i=this._delta8){s=(d=this.pending).length%this._delta8,this.pending=d.slice(d.length-s,d.length),0===this.pending.length&&(this.pending=null),d=v.join32(d,0,d.length-s,this.endian);for(var o=0;o>>24&255,e[t++]=d>>>16&255,e[t++]=d>>>8&255,e[t++]=255&d}else for(e[t++]=255&d,e[t++]=d>>>8&255,e[t++]=d>>>16&255,e[t++]=d>>>24&255,e[t++]=0,e[t++]=0,e[t++]=0,e[t++]=0,r=8;rthis.blockSize&&(d=(new this.Hash).update(d).digest()),w(d.length<=this.blockSize);for(var s=d.length;s>>3},k.g1_256=function(s){return v(s,17)^v(s,19)^s>>>10}},{"../utils":135}],135:[function(w,z,k){"use strict";var v=w("minimalistic-assert");function l(o){return(o>>>24|o>>>8&65280|o<<8&16711680|(255&o)<<24)>>>0}function d(o){return 1===o.length?"0"+o:o}function s(o){return 7===o.length?"0"+o:6===o.length?"00"+o:5===o.length?"000"+o:4===o.length?"0000"+o:3===o.length?"00000"+o:2===o.length?"000000"+o:1===o.length?"0000000"+o:o}w=w("inherits"),k.inherits=w,k.toArray=function(o,e){if(Array.isArray(o))return o.slice();if(!o)return[];var t,r,i=[];if("string"==typeof o)if(e){if("hex"===e)for((o=o.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(o="0"+o),f=0;f>6|192,i[n++]=63&h|128):(55296!=(64512&(t=o).charCodeAt(r=f))||r<0||r+1>=t.length||56320!=(64512&t.charCodeAt(r+1))?i[n++]=h>>12|224:(h=65536+((1023&h)<<10)+(1023&o.charCodeAt(++f)),i[n++]=h>>18|240,i[n++]=h>>12&63|128),i[n++]=h>>6&63|128,i[n++]=63&h|128)}else for(f=0;f>>0;return i},k.split32=function(o,e){for(var t=new Array(4*o.length),r=0,i=0;r>>24,t[i+1]=n>>>16&255,t[i+2]=n>>>8&255,t[i+3]=255&n):(t[i+3]=n>>>24,t[i+2]=n>>>16&255,t[i+1]=n>>>8&255,t[i]=255&n)}return t},k.rotr32=function(o,e){return o>>>e|o<<32-e},k.rotl32=function(o,e){return o<>>32-e},k.sum32=function(o,e){return o+e>>>0},k.sum32_3=function(o,e,t){return o+e+t>>>0},k.sum32_4=function(o,e,t,r){return o+e+t+r>>>0},k.sum32_5=function(o,e,t,r,i){return o+e+t+r+i>>>0},k.sum64=function(o,e,t,r){var n=r+o[e+1]>>>0;o[e]=(n>>0,o[e+1]=n},k.sum64_hi=function(o,e,t,r){return(e+r>>>0>>0},k.sum64_lo=function(o,e,t,r){return e+r>>>0},k.sum64_4_hi=function(o,e,t,r,i,n,f,h){var b=0;return o+t+i+f+((b+=(o=e+r>>>0)>>0)>>0>>0},k.sum64_4_lo=function(o,e,t,r,i,n,f,h){return e+r+n+h>>>0},k.sum64_5_hi=function(o,e,t,r,i,n,f,h,b,E){return o+t+i+f+b+(0+((o=e+r>>>0)>>0)>>0)>>0>>0},k.sum64_5_lo=function(o,e,t,r,i,n,f,h,b,E){return e+r+n+h+E>>>0},k.rotr64_hi=function(o,e,t){return(e<<32-t|o>>>t)>>>0},k.rotr64_lo=function(o,e,t){return(o<<32-t|e>>>t)>>>0},k.shr64_hi=function(o,e,t){return o>>>t},k.shr64_lo=function(o,e,t){return(o<<32-t|e>>>t)>>>0}},{inherits:158,"minimalistic-assert":166}],136:[function(M,z,k){"use strict";var v=M("hash.js"),w=M("minimalistic-crypto-utils"),l=M("minimalistic-assert");function d(t){if(!(this instanceof d))return new d(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 o=w.toArray(t.entropy,t.entropyEnc||"hex"),e=w.toArray(t.nonce,t.nonceEnc||"hex");t=w.toArray(t.pers,t.persEnc||"hex"),l(o.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(o,e,t)}(z.exports=d).prototype._init=function(s,o,e){s=s.concat(o).concat(e),this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var t=0;t=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(s.concat(e||[])),this._reseed=1},d.prototype.generate=function(s,o,e,t){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof o&&(t=e,e=o,o=null),e&&(e=w.toArray(e,t||"hex"),this._update(e));for(var r=[];r.lengthf)return-1;for(var h=0,b=n.length;h>=8)f.push(255&n);0==f.length&&f.push(0);for(var h=this.decodeTables[0],b=f.length-1;0