bsv2 2.0.22 → 2.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bsv2.bundle.js +4 -4
- package/dist/bsv2.cjs.js +1 -1
- package/dist/bsv2.mjs +4 -4
- package/dist/bsv2.module.js +2 -2
- package/lib/interp.js +180 -20
- package/lib/tx.js +4 -3
- package/package.json +5 -4
- package/webpack.config.js +1 -1
package/dist/bsv2.module.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var yt=Object.defineProperty;var f=(Ze,Qe)=>yt(Ze,"name",{value:Qe,configurable:!0});(()=>{var Ze={297:X=>{X.exports=Y;function Y(T){this._tables[0][0][0]||this._precompute();var B,F,N,k=this._tables[0][4],u=this._tables[1],_=T.length,H=1;if(_!==4&&_!==6&&_!==8)throw new Error("invalid aes key size");this._key=[F=T.slice(0),N=[]];for(var M=_;M<4*_+28;M++)B=F[M-1],(M%_===0||_===8&&M%_===4)&&(B=k[B>>>24]<<24^k[B>>16&255]<<16^k[B>>8&255]<<8^k[B&255],M%_===0&&(B=B<<8^B>>>24^H<<24,H=H<<1^(H>>7)*283)),F[M]=F[M-_]^B;for(var w=0;M;w++,M--)B=F[w&3?M:M-4],M<=4||w<4?N[w]=B:N[w]=u[0][k[B>>>24]]^u[1][k[B>>16&255]]^u[2][k[B>>8&255]]^u[3][k[B&255]]}f(Y,"AES"),Y.prototype={encrypt:function(T){return this._crypt(T,0)},decrypt:function(T){return this._crypt(T,1)},_tables:[[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)]],_precompute:function(){var T=this._tables[0],B=this._tables[1],F=T[4],N=B[4],k,u,_,H=new Uint8Array(256),M=new Uint8Array(256),w,l,c,x,E,A;for(k=0;k<256;k++)M[(H[k]=k<<1^(k>>7)*283)^k]=k;for(u=_=0;!F[u];u^=w||1,_=M[_]||1)for(x=_^_<<1^_<<2^_<<3^_<<4,x=x>>8^x&255^99,F[u]=x,N[x]=u,c=H[l=H[w=H[u]]],A=c*16843009^l*65537^w*257^u*16843008,E=H[x]*257^x*16843008,k=0;k<4;k++)T[k][u]=E=E<<24^E>>>8,B[k][x]=A=A<<24^A>>>8},_crypt:function(T,B){if(T.length!==4)throw new Error("invalid aes block size");var F=this._key[B],N=T[0]^F[0],k=T[B?3:1]^F[1],u=T[2]^F[2],_=T[B?1:3]^F[3],H,M,w,l=F.length/4-2,c,x=4,E=new Uint32Array(4),A=this._tables[B],I=A[0],R=A[1],K=A[2],L=A[3],D=A[4];for(c=0;c<l;c++)H=I[N>>>24]^R[k>>16&255]^K[u>>8&255]^L[_&255]^F[x],M=I[k>>>24]^R[u>>16&255]^K[_>>8&255]^L[N&255]^F[x+1],w=I[u>>>24]^R[_>>16&255]^K[N>>8&255]^L[k&255]^F[x+2],_=I[_>>>24]^R[N>>16&255]^K[k>>8&255]^L[u&255]^F[x+3],x+=4,N=H,k=M,u=w;for(c=0;c<4;c++)E[B?3&-c:c]=D[N>>>24]<<24^D[k>>16&255]<<16^D[u>>8&255]<<8^D[_&255]^F[x++],H=N,N=k,k=u,u=_,_=H;return E}}},162:X=>{"use strict";function Y(T){if(T.length>=255)throw new TypeError("Alphabet too long");for(var B=new Uint8Array(256),F=0;F<B.length;F++)B[F]=255;for(var N=0;N<T.length;N++){var k=T.charAt(N),u=k.charCodeAt(0);if(B[u]!==255)throw new TypeError(k+" is ambiguous");B[u]=N}var _=T.length,H=T.charAt(0),M=Math.log(_)/Math.log(256),w=Math.log(256)/Math.log(_);function l(E){if(E instanceof Uint8Array||(ArrayBuffer.isView(E)?E=new Uint8Array(E.buffer,E.byteOffset,E.byteLength):Array.isArray(E)&&(E=Uint8Array.from(E))),!(E instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(E.length===0)return"";for(var A=0,I=0,R=0,K=E.length;R!==K&&E[R]===0;)R++,A++;for(var L=(K-R)*w+1>>>0,D=new Uint8Array(L);R!==K;){for(var G=E[R],q=0,j=L-1;(G!==0||q<I)&&j!==-1;j--,q++)G+=256*D[j]>>>0,D[j]=G%_>>>0,G=G/_>>>0;if(G!==0)throw new Error("Non-zero carry");I=q,R++}for(var V=L-I;V!==L&&D[V]===0;)V++;for(var U=H.repeat(A);V<L;++V)U+=T.charAt(D[V]);return U}f(l,"encode");function c(E){if(typeof E!="string")throw new TypeError("Expected String");if(E.length===0)return new Uint8Array;for(var A=0,I=0,R=0;E[A]===H;)I++,A++;for(var K=(E.length-A)*M+1>>>0,L=new Uint8Array(K);E[A];){var D=B[E.charCodeAt(A)];if(D===255)return;for(var G=0,q=K-1;(D!==0||G<R)&&q!==-1;q--,G++)D+=_*L[q]>>>0,L[q]=D%256>>>0,D=D/256>>>0;if(D!==0)throw new Error("Non-zero carry");R=G,A++}for(var j=K-R;j!==K&&L[j]===0;)j++;for(var V=new Uint8Array(I+(K-j)),U=I;j!==K;)V[U++]=L[j++];return V}f(c,"decodeUnsafe");function x(E){var A=c(E);if(A)return A;throw new Error("Non-base"+_+" character")}return f(x,"decode"),{encode:l,decodeUnsafe:c,decode:x}}f(Y,"base"),X.exports=Y},666:(X,Y,T)=>{"use strict";var B=Y;B.version=T(726).i8,B.utils=T(359),B.rand=T(931),B.curve=T(104),B.curves=T(626),B.ec=T(630)},15:(X,Y,T)=>{"use strict";var B=T(550),F=T(359),N=F.getNAF,k=F.getJSF,u=F.assert;function _(M,w){this.type=M,this.p=new B(w.p,16),this.red=w.prime?B.red(w.prime):B.mont(this.p),this.zero=new B(0).toRed(this.red),this.one=new B(1).toRed(this.red),this.two=new B(2).toRed(this.red),this.n=w.n&&new B(w.n,16),this.g=w.g&&this.pointFromJSON(w.g,w.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;var l=this.n&&this.p.div(this.n);!l||l.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}f(_,"BaseCurve"),X.exports=_,_.prototype.point=f(function(){throw new Error("Not implemented")},"point"),_.prototype.validate=f(function(){throw new Error("Not implemented")},"validate"),_.prototype._fixedNafMul=f(function(w,l){u(w.precomputed);var c=w._getDoubles(),x=N(l,1,this._bitLength),E=(1<<c.step+1)-(c.step%2===0?2:1);E/=3;for(var A=[],I=0;I<x.length;I+=c.step){for(var R=0,l=I+c.step-1;l>=I;l--)R=(R<<1)+x[l];A.push(R)}for(var K=this.jpoint(null,null,null),L=this.jpoint(null,null,null),D=E;D>0;D--){for(var I=0;I<A.length;I++){var R=A[I];R===D?L=L.mixedAdd(c.points[I]):R===-D&&(L=L.mixedAdd(c.points[I].neg()))}K=K.add(L)}return K.toP()},"_fixedNafMul"),_.prototype._wnafMul=f(function(w,l){var c=4,x=w._getNAFPoints(c);c=x.wnd;for(var E=x.points,A=N(l,c,this._bitLength),I=this.jpoint(null,null,null),R=A.length-1;R>=0;R--){for(var l=0;R>=0&&A[R]===0;R--)l++;if(R>=0&&l++,I=I.dblp(l),R<0)break;var K=A[R];u(K!==0),w.type==="affine"?K>0?I=I.mixedAdd(E[K-1>>1]):I=I.mixedAdd(E[-K-1>>1].neg()):K>0?I=I.add(E[K-1>>1]):I=I.add(E[-K-1>>1].neg())}return w.type==="affine"?I.toP():I},"_wnafMul"),_.prototype._wnafMulAdd=f(function(w,l,c,x,E){for(var A=this._wnafT1,I=this._wnafT2,R=this._wnafT3,K=0,L=0;L<x;L++){var D=l[L],G=D._getNAFPoints(w);A[L]=G.wnd,I[L]=G.points}for(var L=x-1;L>=1;L-=2){var q=L-1,j=L;if(A[q]!==1||A[j]!==1){R[q]=N(c[q],A[q],this._bitLength),R[j]=N(c[j],A[j],this._bitLength),K=Math.max(R[q].length,K),K=Math.max(R[j].length,K);continue}var V=[l[q],null,null,l[j]];l[q].y.cmp(l[j].y)===0?(V[1]=l[q].add(l[j]),V[2]=l[q].toJ().mixedAdd(l[j].neg())):l[q].y.cmp(l[j].y.redNeg())===0?(V[1]=l[q].toJ().mixedAdd(l[j]),V[2]=l[q].add(l[j].neg())):(V[1]=l[q].toJ().mixedAdd(l[j]),V[2]=l[q].toJ().mixedAdd(l[j].neg()));var U=[-3,-1,-5,-7,0,7,5,1,3],de=k(c[q],c[j]);K=Math.max(de[0].length,K),R[q]=new Array(K),R[j]=new Array(K);for(var ae=0;ae<K;ae++){var Se=de[0][ae]|0,fe=de[1][ae]|0;R[q][ae]=U[(Se+1)*3+(fe+1)],R[j][ae]=0,I[q]=V}}for(var C=this.jpoint(null,null,null),b=this._wnafT4,L=K;L>=0;L--){for(var r=0;L>=0;){for(var a=!0,ae=0;ae<x;ae++)b[ae]=R[ae][L]|0,b[ae]!==0&&(a=!1);if(!a)break;r++,L--}if(L>=0&&r++,C=C.dblp(r),L<0)break;for(var ae=0;ae<x;ae++){var s=b[ae],D;s!==0&&(s>0?D=I[ae][s-1>>1]:s<0&&(D=I[ae][-s-1>>1].neg()),D.type==="affine"?C=C.mixedAdd(D):C=C.add(D))}}for(var L=0;L<x;L++)I[L]=null;return E?C:C.toP()},"_wnafMulAdd");function H(M,w){this.curve=M,this.type=w,this.precomputed=null}f(H,"BasePoint"),_.BasePoint=H,H.prototype.eq=f(function(){throw new Error("Not implemented")},"eq"),H.prototype.validate=f(function(){return this.curve.validate(this)},"validate"),_.prototype.decodePoint=f(function(w,l){w=F.toArray(w,l);var c=this.p.byteLength();if((w[0]===4||w[0]===6||w[0]===7)&&w.length-1===2*c){w[0]===6?u(w[w.length-1]%2===0):w[0]===7&&u(w[w.length-1]%2===1);var x=this.point(w.slice(1,1+c),w.slice(1+c,1+2*c));return x}else if((w[0]===2||w[0]===3)&&w.length-1===c)return this.pointFromX(w.slice(1,1+c),w[0]===3);throw new Error("Unknown point format")},"decodePoint"),H.prototype.encodeCompressed=f(function(w){return this.encode(w,!0)},"encodeCompressed"),H.prototype._encode=f(function(w){var l=this.curve.p.byteLength(),c=this.getX().toArray("be",l);return w?[this.getY().isEven()?2:3].concat(c):[4].concat(c,this.getY().toArray("be",l))},"_encode"),H.prototype.encode=f(function(w,l){return F.encode(this._encode(l),w)},"encode"),H.prototype.precompute=f(function(w){if(this.precomputed)return this;var l={doubles:null,naf:null,beta:null};return l.naf=this._getNAFPoints(8),l.doubles=this._getDoubles(4,w),l.beta=this._getBeta(),this.precomputed=l,this},"precompute"),H.prototype._hasDoubles=f(function(w){if(!this.precomputed)return!1;var l=this.precomputed.doubles;return l?l.points.length>=Math.ceil((w.bitLength()+1)/l.step):!1},"_hasDoubles"),H.prototype._getDoubles=f(function(w,l){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var c=[this],x=this,E=0;E<l;E+=w){for(var A=0;A<w;A++)x=x.dbl();c.push(x)}return{step:w,points:c}},"_getDoubles"),H.prototype._getNAFPoints=f(function(w){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var l=[this],c=(1<<w)-1,x=c===1?null:this.dbl(),E=1;E<c;E++)l[E]=l[E-1].add(x);return{wnd:w,points:l}},"_getNAFPoints"),H.prototype._getBeta=f(function(){return null},"_getBeta"),H.prototype.dblp=f(function(w){for(var l=this,c=0;c<w;c++)l=l.dbl();return l},"dblp")},104:(X,Y,T)=>{"use strict";var B=Y;B.base=T(15),B.short=T(505)},505:(X,Y,T)=>{"use strict";var B=T(359),F=T(550),N=T(378),k=T(15),u=B.assert;function _(w){k.call(this,"short",w),this.a=new F(w.a,16).toRed(this.red),this.b=new F(w.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(w),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}f(_,"ShortCurve"),N(_,k),X.exports=_,_.prototype._getEndomorphism=f(function(l){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var c,x;if(l.beta)c=new F(l.beta,16).toRed(this.red);else{var E=this._getEndoRoots(this.p);c=E[0].cmp(E[1])<0?E[0]:E[1],c=c.toRed(this.red)}if(l.lambda)x=new F(l.lambda,16);else{var A=this._getEndoRoots(this.n);this.g.mul(A[0]).x.cmp(this.g.x.redMul(c))===0?x=A[0]:(x=A[1],u(this.g.mul(x).x.cmp(this.g.x.redMul(c))===0))}var I;return l.basis?I=l.basis.map(function(R){return{a:new F(R.a,16),b:new F(R.b,16)}}):I=this._getEndoBasis(x),{beta:c,lambda:x,basis:I}}},"_getEndomorphism"),_.prototype._getEndoRoots=f(function(l){var c=l===this.p?this.red:F.mont(l),x=new F(2).toRed(c).redInvm(),E=x.redNeg(),A=new F(3).toRed(c).redNeg().redSqrt().redMul(x),I=E.redAdd(A).fromRed(),R=E.redSub(A).fromRed();return[I,R]},"_getEndoRoots"),_.prototype._getEndoBasis=f(function(l){for(var c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),x=l,E=this.n.clone(),A=new F(1),I=new F(0),R=new F(0),K=new F(1),L,D,G,q,j,V,U,de=0,ae,Se;x.cmpn(0)!==0;){var fe=E.div(x);ae=E.sub(fe.mul(x)),Se=R.sub(fe.mul(A));var C=K.sub(fe.mul(I));if(!G&&ae.cmp(c)<0)L=U.neg(),D=A,G=ae.neg(),q=Se;else if(G&&++de===2)break;U=ae,E=x,x=ae,R=A,A=Se,K=I,I=C}j=ae.neg(),V=Se;var b=G.sqr().add(q.sqr()),r=j.sqr().add(V.sqr());return r.cmp(b)>=0&&(j=L,V=D),G.negative&&(G=G.neg(),q=q.neg()),j.negative&&(j=j.neg(),V=V.neg()),[{a:G,b:q},{a:j,b:V}]},"_getEndoBasis"),_.prototype._endoSplit=f(function(l){var c=this.endo.basis,x=c[0],E=c[1],A=E.b.mul(l).divRound(this.n),I=x.b.neg().mul(l).divRound(this.n),R=A.mul(x.a),K=I.mul(E.a),L=A.mul(x.b),D=I.mul(E.b),G=l.sub(R).sub(K),q=L.add(D).neg();return{k1:G,k2:q}},"_endoSplit"),_.prototype.pointFromX=f(function(l,c){l=new F(l,16),l.red||(l=l.toRed(this.red));var x=l.redSqr().redMul(l).redIAdd(l.redMul(this.a)).redIAdd(this.b),E=x.redSqrt();if(E.redSqr().redSub(x).cmp(this.zero)!==0)throw new Error("invalid point");var A=E.fromRed().isOdd();return(c&&!A||!c&&A)&&(E=E.redNeg()),this.point(l,E)},"pointFromX"),_.prototype.validate=f(function(l){if(l.inf)return!0;var c=l.x,x=l.y,E=this.a.redMul(c),A=c.redSqr().redMul(c).redIAdd(E).redIAdd(this.b);return x.redSqr().redISub(A).cmpn(0)===0},"validate"),_.prototype._endoWnafMulAdd=f(function(l,c,x){for(var E=this._endoWnafT1,A=this._endoWnafT2,I=0;I<l.length;I++){var R=this._endoSplit(c[I]),K=l[I],L=K._getBeta();R.k1.negative&&(R.k1.ineg(),K=K.neg(!0)),R.k2.negative&&(R.k2.ineg(),L=L.neg(!0)),E[I*2]=K,E[I*2+1]=L,A[I*2]=R.k1,A[I*2+1]=R.k2}for(var D=this._wnafMulAdd(1,E,A,I*2,x),G=0;G<I*2;G++)E[G]=null,A[G]=null;return D},"_endoWnafMulAdd");function H(w,l,c,x){k.BasePoint.call(this,w,"affine"),l===null&&c===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new F(l,16),this.y=new F(c,16),x&&(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)}f(H,"Point"),N(H,k.BasePoint),_.prototype.point=f(function(l,c,x){return new H(this,l,c,x)},"point"),_.prototype.pointFromJSON=f(function(l,c){return H.fromJSON(this,l,c)},"pointFromJSON"),H.prototype._getBeta=f(function(){if(this.curve.endo){var l=this.precomputed;if(l&&l.beta)return l.beta;var c=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(l){var x=this.curve,E=f(function(A){return x.point(A.x.redMul(x.endo.beta),A.y)},"endoMul");l.beta=c,c.precomputed={beta:null,naf:l.naf&&{wnd:l.naf.wnd,points:l.naf.points.map(E)},doubles:l.doubles&&{step:l.doubles.step,points:l.doubles.points.map(E)}}}return c}},"_getBeta"),H.prototype.toJSON=f(function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},"toJSON"),H.fromJSON=f(function(l,c,x){typeof c=="string"&&(c=JSON.parse(c));var E=l.point(c[0],c[1],x);if(!c[2])return E;function A(R){return l.point(R[0],R[1],x)}f(A,"obj2point");var I=c[2];return E.precomputed={beta:null,doubles:I.doubles&&{step:I.doubles.step,points:[E].concat(I.doubles.points.map(A))},naf:I.naf&&{wnd:I.naf.wnd,points:[E].concat(I.naf.points.map(A))}},E},"fromJSON"),H.prototype.inspect=f(function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},"inspect"),H.prototype.isInfinity=f(function(){return this.inf},"isInfinity"),H.prototype.add=f(function(l){if(this.inf)return l;if(l.inf)return this;if(this.eq(l))return this.dbl();if(this.neg().eq(l))return this.curve.point(null,null);if(this.x.cmp(l.x)===0)return this.curve.point(null,null);var c=this.y.redSub(l.y);c.cmpn(0)!==0&&(c=c.redMul(this.x.redSub(l.x).redInvm()));var x=c.redSqr().redISub(this.x).redISub(l.x),E=c.redMul(this.x.redSub(x)).redISub(this.y);return this.curve.point(x,E)},"add"),H.prototype.dbl=f(function(){if(this.inf)return this;var l=this.y.redAdd(this.y);if(l.cmpn(0)===0)return this.curve.point(null,null);var c=this.curve.a,x=this.x.redSqr(),E=l.redInvm(),A=x.redAdd(x).redIAdd(x).redIAdd(c).redMul(E),I=A.redSqr().redISub(this.x.redAdd(this.x)),R=A.redMul(this.x.redSub(I)).redISub(this.y);return this.curve.point(I,R)},"dbl"),H.prototype.getX=f(function(){return this.x.fromRed()},"getX"),H.prototype.getY=f(function(){return this.y.fromRed()},"getY"),H.prototype.mul=f(function(l){return l=new F(l,16),this.isInfinity()?this:this._hasDoubles(l)?this.curve._fixedNafMul(this,l):this.curve.endo?this.curve._endoWnafMulAdd([this],[l]):this.curve._wnafMul(this,l)},"mul"),H.prototype.mulAdd=f(function(l,c,x){var E=[this,c],A=[l,x];return this.curve.endo?this.curve._endoWnafMulAdd(E,A):this.curve._wnafMulAdd(1,E,A,2)},"mulAdd"),H.prototype.jmulAdd=f(function(l,c,x){var E=[this,c],A=[l,x];return this.curve.endo?this.curve._endoWnafMulAdd(E,A,!0):this.curve._wnafMulAdd(1,E,A,2,!0)},"jmulAdd"),H.prototype.eq=f(function(l){return this===l||this.inf===l.inf&&(this.inf||this.x.cmp(l.x)===0&&this.y.cmp(l.y)===0)},"eq"),H.prototype.neg=f(function(l){if(this.inf)return this;var c=this.curve.point(this.x,this.y.redNeg());if(l&&this.precomputed){var x=this.precomputed,E=f(function(A){return A.neg()},"negate");c.precomputed={naf:x.naf&&{wnd:x.naf.wnd,points:x.naf.points.map(E)},doubles:x.doubles&&{step:x.doubles.step,points:x.doubles.points.map(E)}}}return c},"neg"),H.prototype.toJ=f(function(){if(this.inf)return this.curve.jpoint(null,null,null);var l=this.curve.jpoint(this.x,this.y,this.curve.one);return l},"toJ");function M(w,l,c,x){k.BasePoint.call(this,w,"jacobian"),l===null&&c===null&&x===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new F(0)):(this.x=new F(l,16),this.y=new F(c,16),this.z=new F(x,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}f(M,"JPoint"),N(M,k.BasePoint),_.prototype.jpoint=f(function(l,c,x){return new M(this,l,c,x)},"jpoint"),M.prototype.toP=f(function(){if(this.isInfinity())return this.curve.point(null,null);var l=this.z.redInvm(),c=l.redSqr(),x=this.x.redMul(c),E=this.y.redMul(c).redMul(l);return this.curve.point(x,E)},"toP"),M.prototype.neg=f(function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},"neg"),M.prototype.add=f(function(l){if(this.isInfinity())return l;if(l.isInfinity())return this;var c=l.z.redSqr(),x=this.z.redSqr(),E=this.x.redMul(c),A=l.x.redMul(x),I=this.y.redMul(c.redMul(l.z)),R=l.y.redMul(x.redMul(this.z)),K=E.redSub(A),L=I.redSub(R);if(K.cmpn(0)===0)return L.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var D=K.redSqr(),G=D.redMul(K),q=E.redMul(D),j=L.redSqr().redIAdd(G).redISub(q).redISub(q),V=L.redMul(q.redISub(j)).redISub(I.redMul(G)),U=this.z.redMul(l.z).redMul(K);return this.curve.jpoint(j,V,U)},"add"),M.prototype.mixedAdd=f(function(l){if(this.isInfinity())return l.toJ();if(l.isInfinity())return this;var c=this.z.redSqr(),x=this.x,E=l.x.redMul(c),A=this.y,I=l.y.redMul(c).redMul(this.z),R=x.redSub(E),K=A.redSub(I);if(R.cmpn(0)===0)return K.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var L=R.redSqr(),D=L.redMul(R),G=x.redMul(L),q=K.redSqr().redIAdd(D).redISub(G).redISub(G),j=K.redMul(G.redISub(q)).redISub(A.redMul(D)),V=this.z.redMul(R);return this.curve.jpoint(q,j,V)},"mixedAdd"),M.prototype.dblp=f(function(l){if(l===0)return this;if(this.isInfinity())return this;if(!l)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var c=this,x=0;x<l;x++)c=c.dbl();return c}for(var E=this.curve.a,A=this.curve.tinv,I=this.x,R=this.y,K=this.z,L=K.redSqr().redSqr(),D=R.redAdd(R),x=0;x<l;x++){var G=I.redSqr(),q=D.redSqr(),j=q.redSqr(),V=G.redAdd(G).redIAdd(G).redIAdd(E.redMul(L)),U=I.redMul(q),de=V.redSqr().redISub(U.redAdd(U)),ae=U.redISub(de),Se=V.redMul(ae);Se=Se.redIAdd(Se).redISub(j);var fe=D.redMul(K);x+1<l&&(L=L.redMul(j)),I=de,K=fe,D=Se}return this.curve.jpoint(I,D.redMul(A),K)},"dblp"),M.prototype.dbl=f(function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},"dbl"),M.prototype._zeroDbl=f(function(){var l,c,x;if(this.zOne){var E=this.x.redSqr(),A=this.y.redSqr(),I=A.redSqr(),R=this.x.redAdd(A).redSqr().redISub(E).redISub(I);R=R.redIAdd(R);var K=E.redAdd(E).redIAdd(E),L=K.redSqr().redISub(R).redISub(R),D=I.redIAdd(I);D=D.redIAdd(D),D=D.redIAdd(D),l=L,c=K.redMul(R.redISub(L)).redISub(D),x=this.y.redAdd(this.y)}else{var G=this.x.redSqr(),q=this.y.redSqr(),j=q.redSqr(),V=this.x.redAdd(q).redSqr().redISub(G).redISub(j);V=V.redIAdd(V);var U=G.redAdd(G).redIAdd(G),de=U.redSqr(),ae=j.redIAdd(j);ae=ae.redIAdd(ae),ae=ae.redIAdd(ae),l=de.redISub(V).redISub(V),c=U.redMul(V.redISub(l)).redISub(ae),x=this.y.redMul(this.z),x=x.redIAdd(x)}return this.curve.jpoint(l,c,x)},"_zeroDbl"),M.prototype._threeDbl=f(function(){var l,c,x;if(this.zOne){var E=this.x.redSqr(),A=this.y.redSqr(),I=A.redSqr(),R=this.x.redAdd(A).redSqr().redISub(E).redISub(I);R=R.redIAdd(R);var K=E.redAdd(E).redIAdd(E).redIAdd(this.curve.a),L=K.redSqr().redISub(R).redISub(R);l=L;var D=I.redIAdd(I);D=D.redIAdd(D),D=D.redIAdd(D),c=K.redMul(R.redISub(L)).redISub(D),x=this.y.redAdd(this.y)}else{var G=this.z.redSqr(),q=this.y.redSqr(),j=this.x.redMul(q),V=this.x.redSub(G).redMul(this.x.redAdd(G));V=V.redAdd(V).redIAdd(V);var U=j.redIAdd(j);U=U.redIAdd(U);var de=U.redAdd(U);l=V.redSqr().redISub(de),x=this.y.redAdd(this.z).redSqr().redISub(q).redISub(G);var ae=q.redSqr();ae=ae.redIAdd(ae),ae=ae.redIAdd(ae),ae=ae.redIAdd(ae),c=V.redMul(U.redISub(l)).redISub(ae)}return this.curve.jpoint(l,c,x)},"_threeDbl"),M.prototype._dbl=f(function(){var l=this.curve.a,c=this.x,x=this.y,E=this.z,A=E.redSqr().redSqr(),I=c.redSqr(),R=x.redSqr(),K=I.redAdd(I).redIAdd(I).redIAdd(l.redMul(A)),L=c.redAdd(c);L=L.redIAdd(L);var D=L.redMul(R),G=K.redSqr().redISub(D.redAdd(D)),q=D.redISub(G),j=R.redSqr();j=j.redIAdd(j),j=j.redIAdd(j),j=j.redIAdd(j);var V=K.redMul(q).redISub(j),U=x.redAdd(x).redMul(E);return this.curve.jpoint(G,V,U)},"_dbl"),M.prototype.trpl=f(function(){if(!this.curve.zeroA)return this.dbl().add(this);var l=this.x.redSqr(),c=this.y.redSqr(),x=this.z.redSqr(),E=c.redSqr(),A=l.redAdd(l).redIAdd(l),I=A.redSqr(),R=this.x.redAdd(c).redSqr().redISub(l).redISub(E);R=R.redIAdd(R),R=R.redAdd(R).redIAdd(R),R=R.redISub(I);var K=R.redSqr(),L=E.redIAdd(E);L=L.redIAdd(L),L=L.redIAdd(L),L=L.redIAdd(L);var D=A.redIAdd(R).redSqr().redISub(I).redISub(K).redISub(L),G=c.redMul(D);G=G.redIAdd(G),G=G.redIAdd(G);var q=this.x.redMul(K).redISub(G);q=q.redIAdd(q),q=q.redIAdd(q);var j=this.y.redMul(D.redMul(L.redISub(D)).redISub(R.redMul(K)));j=j.redIAdd(j),j=j.redIAdd(j),j=j.redIAdd(j);var V=this.z.redAdd(R).redSqr().redISub(x).redISub(K);return this.curve.jpoint(q,j,V)},"trpl"),M.prototype.mul=f(function(l,c){return l=new F(l,c),this.curve._wnafMul(this,l)},"mul"),M.prototype.eq=f(function(l){if(l.type==="affine")return this.eq(l.toJ());if(this===l)return!0;var c=this.z.redSqr(),x=l.z.redSqr();if(this.x.redMul(x).redISub(l.x.redMul(c)).cmpn(0)!==0)return!1;var E=c.redMul(this.z),A=x.redMul(l.z);return this.y.redMul(A).redISub(l.y.redMul(E)).cmpn(0)===0},"eq"),M.prototype.eqXToP=f(function(l){var c=this.z.redSqr(),x=l.toRed(this.curve.red).redMul(c);if(this.x.cmp(x)===0)return!0;for(var E=l.clone(),A=this.curve.redN.redMul(c);;){if(E.iadd(this.curve.n),E.cmp(this.curve.p)>=0)return!1;if(x.redIAdd(A),this.x.cmp(x)===0)return!0}},"eqXToP"),M.prototype.inspect=f(function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},"inspect"),M.prototype.isInfinity=f(function(){return this.z.cmpn(0)===0},"isInfinity")},626:(X,Y,T)=>{"use strict";var B=Y,F=T(715),N=T(104),k=T(359),u=k.assert;function _(w){if(w.type!=="short")throw new Error("invalid curve type");this.curve=new N.short(w),this.g=this.curve.g,this.n=this.curve.n,this.hash=w.hash,u(this.g.validate(),"Invalid curve"),u(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}f(_,"PresetCurve"),B.PresetCurve=_;function H(w,l){Object.defineProperty(B,w,{configurable:!0,enumerable:!0,get:function(){var c=new _(l);return Object.defineProperty(B,w,{configurable:!0,enumerable:!0,value:c}),c}})}f(H,"defineCurve");var M;try{M=T(59)}catch{M=void 0}H("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:F.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",M]})},630:(X,Y,T)=>{"use strict";var B=T(550),F=T(156),N=T(359),k=T(626),u=T(931),_=N.assert,H=T(119),M=T(911);function w(l){if(!(this instanceof w))return new w(l);typeof l=="string"&&(_(k.hasOwnProperty(l),"Unknown curve "+l),l=k[l]),l instanceof k.PresetCurve&&(l={curve:l}),this.curve=l.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=l.curve.g,this.g.precompute(l.curve.n.bitLength()+1),this.hash=l.hash||l.curve.hash}f(w,"EC"),X.exports=w,w.prototype.keyPair=f(function(c){return new H(this,c)},"keyPair"),w.prototype.keyFromPrivate=f(function(c,x){return H.fromPrivate(this,c,x)},"keyFromPrivate"),w.prototype.keyFromPublic=f(function(c,x){return H.fromPublic(this,c,x)},"keyFromPublic"),w.prototype.genKeyPair=f(function(c){c||(c={});var x=new F({hash:this.hash,pers:c.pers,persEnc:c.persEnc||"utf8",entropy:c.entropy||u(this.hash.hmacStrength),entropyEnc:c.entropy&&c.entropyEnc||"utf8",nonce:this.n.toArray()}),E=this.n.byteLength(),A=this.n.sub(new B(2));do{var I=new B(x.generate(E));if(!(I.cmp(A)>0))return I.iaddn(1),this.keyFromPrivate(I)}while(!0)},"genKeyPair"),w.prototype._truncateToN=f(function(c,x){var E=c.byteLength()*8-this.n.bitLength();return E>0&&(c=c.ushrn(E)),!x&&c.cmp(this.n)>=0?c.sub(this.n):c},"truncateToN"),w.prototype.sign=f(function(c,x,E,A){typeof E=="object"&&(A=E,E=null),A||(A={}),x=this.keyFromPrivate(x,E),c=this._truncateToN(new B(c,16));for(var I=this.n.byteLength(),R=x.getPrivate().toArray("be",I),K=c.toArray("be",I),L=new F({hash:this.hash,entropy:R,nonce:K,pers:A.pers,persEnc:A.persEnc||"utf8"}),D=this.n.sub(new B(1)),G=0;;G++){var q=A.k?A.k(G):new B(L.generate(this.n.byteLength()));if(q=this._truncateToN(q,!0),!(q.cmpn(1)<=0||q.cmp(D)>=0)){var j=this.g.mul(q);if(!j.isInfinity()){var V=j.getX(),U=V.umod(this.n);if(U.cmpn(0)!==0){var de=q.invm(this.n).mul(U.mul(x.getPrivate()).iadd(c));if(de=de.umod(this.n),de.cmpn(0)!==0){var ae=(j.getY().isOdd()?1:0)|(V.cmp(U)!==0?2:0);return A.canonical&&de.cmp(this.nh)>0&&(de=this.n.sub(de),ae^=1),new M({r:U,s:de,recoveryParam:ae})}}}}}},"sign"),w.prototype.verify=f(function(c,x,E,A){c=this._truncateToN(new B(c,16)),E=this.keyFromPublic(E,A),x=new M(x,"hex");var I=x.r,R=x.s;if(I.cmpn(1)<0||I.cmp(this.n)>=0||R.cmpn(1)<0||R.cmp(this.n)>=0)return!1;var K=R.invm(this.n),L=K.mul(c).umod(this.n),D=K.mul(I).umod(this.n);if(!this.curve._maxwellTrick){var G=this.g.mulAdd(L,E.getPublic(),D);return G.isInfinity()?!1:G.getX().umod(this.n).cmp(I)===0}var G=this.g.jmulAdd(L,E.getPublic(),D);return G.isInfinity()?!1:G.eqXToP(I)},"verify"),w.prototype.recoverPubKey=function(l,c,x,E){_((3&x)===x,"The recovery param is more than two bits"),c=new M(c,E);var A=this.n,I=new B(l),R=c.r,K=c.s,L=x&1,D=x>>1;if(R.cmp(this.curve.p.umod(this.curve.n))>=0&&D)throw new Error("Unable to find sencond key candinate");D?R=this.curve.pointFromX(R.add(this.curve.n),L):R=this.curve.pointFromX(R,L);var G=c.r.invm(A),q=A.sub(I).mul(G).umod(A),j=K.mul(G).umod(A);return this.g.mulAdd(q,R,j)},w.prototype.getKeyRecoveryParam=function(l,c,x,E){if(c=new M(c,E),c.recoveryParam!==null)return c.recoveryParam;for(var A=0;A<4;A++){var I;try{I=this.recoverPubKey(l,c,A)}catch{continue}if(I.eq(x))return A}throw new Error("Unable to find valid recovery factor")}},119:(X,Y,T)=>{"use strict";var B=T(550),F=T(359),N=F.assert;function k(u,_){this.ec=u,this.priv=null,this.pub=null,_.priv&&this._importPrivate(_.priv,_.privEnc),_.pub&&this._importPublic(_.pub,_.pubEnc)}f(k,"KeyPair"),X.exports=k,k.fromPublic=f(function(_,H,M){return H instanceof k?H:new k(_,{pub:H,pubEnc:M})},"fromPublic"),k.fromPrivate=f(function(_,H,M){return H instanceof k?H:new k(_,{priv:H,privEnc:M})},"fromPrivate"),k.prototype.validate=f(function(){var _=this.getPublic();return _.isInfinity()?{result:!1,reason:"Invalid public key"}:_.validate()?_.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"}},"validate"),k.prototype.getPublic=f(function(_,H){return typeof _=="string"&&(H=_,_=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),H?this.pub.encode(H,_):this.pub},"getPublic"),k.prototype.getPrivate=f(function(_){return _==="hex"?this.priv.toString(16,2):this.priv},"getPrivate"),k.prototype._importPrivate=f(function(_,H){this.priv=new B(_,H||16),this.priv=this.priv.umod(this.ec.curve.n)},"_importPrivate"),k.prototype._importPublic=f(function(_,H){if(_.x||_.y){this.ec.curve.type==="mont"?N(_.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&N(_.x&&_.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(_.x,_.y);return}this.pub=this.ec.curve.decodePoint(_,H)},"_importPublic"),k.prototype.derive=f(function(_){return _.mul(this.priv).getX()},"derive"),k.prototype.sign=f(function(_,H,M){return this.ec.sign(_,this,H,M)},"sign"),k.prototype.verify=f(function(_,H){return this.ec.verify(_,H,this)},"verify"),k.prototype.inspect=f(function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},"inspect")},911:(X,Y,T)=>{"use strict";var B=T(550),F=T(359),N=F.assert;function k(w,l){if(w instanceof k)return w;this._importDER(w,l)||(N(w.r&&w.s,"Signature without r or s"),this.r=new B(w.r,16),this.s=new B(w.s,16),w.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=w.recoveryParam)}f(k,"Signature"),X.exports=k;function u(){this.place=0}f(u,"Position");function _(w,l){var c=w[l.place++];if(!(c&128))return c;for(var x=c&15,E=0,A=0,I=l.place;A<x;A++,I++)E<<=8,E|=w[I];return l.place=I,E}f(_,"getLength");function H(w){for(var l=0,c=w.length-1;!w[l]&&!(w[l+1]&128)&&l<c;)l++;return l===0?w:w.slice(l)}f(H,"rmPadding"),k.prototype._importDER=f(function(l,c){l=F.toArray(l,c);var x=new u;if(l[x.place++]!==48)return!1;var E=_(l,x);if(E+x.place!==l.length||l[x.place++]!==2)return!1;var A=_(l,x),I=l.slice(x.place,A+x.place);if(x.place+=A,l[x.place++]!==2)return!1;var R=_(l,x);if(l.length!==R+x.place)return!1;var K=l.slice(x.place,R+x.place);return I[0]===0&&I[1]&128&&(I=I.slice(1)),K[0]===0&&K[1]&128&&(K=K.slice(1)),this.r=new B(I),this.s=new B(K),this.recoveryParam=null,!0},"_importDER");function M(w,l){if(l<128){w.push(l);return}var c=1+(Math.log(l)/Math.LN2>>>3);for(w.push(c|128);--c;)w.push(l>>>(c<<3)&255);w.push(l)}f(M,"constructLength"),k.prototype.toDER=f(function(l){var c=this.r.toArray(),x=this.s.toArray();for(c[0]&128&&(c=[0].concat(c)),x[0]&128&&(x=[0].concat(x)),c=H(c),x=H(x);!x[0]&&!(x[1]&128);)x=x.slice(1);var E=[2];M(E,c.length),E=E.concat(c),E.push(2),M(E,x.length);var A=E.concat(x),I=[48];return M(I,A.length),I=I.concat(A),F.encode(I,l)},"toDER")},59:X=>{X.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},359:(X,Y,T)=>{"use strict";var B=Y,F=T(550),N=T(746),k=T(504);B.assert=N,B.toArray=k.toArray,B.zero2=k.zero2,B.toHex=k.toHex,B.encode=k.encode;function u(l,c,x){var E=new Array(Math.max(l.bitLength(),x)+1);E.fill(0);for(var A=1<<c+1,I=l.clone(),R=0;R<E.length;R++){var K,L=I.andln(A-1);I.isOdd()?(L>(A>>1)-1?K=(A>>1)-L:K=L,I.isubn(K)):K=0,E[R]=K,I.iushrn(1)}return E}f(u,"getNAF"),B.getNAF=u;function _(l,c){var x=[[],[]];l=l.clone(),c=c.clone();for(var E=0,A=0;l.cmpn(-E)>0||c.cmpn(-A)>0;){var I=l.andln(3)+E&3,R=c.andln(3)+A&3;I===3&&(I=-1),R===3&&(R=-1);var K;if(!(I&1))K=0;else{var L=l.andln(7)+E&7;(L===3||L===5)&&R===2?K=-I:K=I}x[0].push(K);var D;if(!(R&1))D=0;else{var L=c.andln(7)+A&7;(L===3||L===5)&&I===2?D=-R:D=R}x[1].push(D),2*E===K+1&&(E=1-E),2*A===D+1&&(A=1-A),l.iushrn(1),c.iushrn(1)}return x}f(_,"getJSF"),B.getJSF=_;function H(l,c,x){var E="_"+c;l.prototype[c]=f(function(){return this[E]!==void 0?this[E]:this[E]=x.call(this)},"cachedProperty")}f(H,"cachedProperty"),B.cachedProperty=H;function M(l){return typeof l=="string"?B.toArray(l,"hex"):l}f(M,"parseBytes"),B.parseBytes=M;function w(l){return new F(l,"hex","le")}f(w,"intFromLE"),B.intFromLE=w},550:function(X,Y,T){X=T.nmd(X),function(B,F){"use strict";function N(b,r){if(!b)throw new Error(r||"Assertion failed")}f(N,"assert");function k(b,r){b.super_=r;var a=f(function(){},"TempCtor");a.prototype=r.prototype,b.prototype=new a,b.prototype.constructor=b}f(k,"inherits");function u(b,r,a){if(u.isBN(b))return b;this.negative=0,this.words=null,this.length=0,this.red=null,b!==null&&((r==="le"||r==="be")&&(a=r,r=10),this._init(b||0,r||10,a||"be"))}f(u,"BN"),typeof B=="object"?B.exports=u:F.BN=u,u.BN=u,u.wordSize=26;var _;try{typeof window<"u"&&typeof window.Buffer<"u"?_=window.Buffer:_=T(300).Buffer}catch{}u.isBN=f(function(r){return r instanceof u?!0:r!==null&&typeof r=="object"&&r.constructor.wordSize===u.wordSize&&Array.isArray(r.words)},"isBN"),u.max=f(function(r,a){return r.cmp(a)>0?r:a},"max"),u.min=f(function(r,a){return r.cmp(a)<0?r:a},"min"),u.prototype._init=f(function(r,a,s){if(typeof r=="number")return this._initNumber(r,a,s);if(typeof r=="object")return this._initArray(r,a,s);a==="hex"&&(a=16),N(a===(a|0)&&a>=2&&a<=36),r=r.toString().replace(/\s+/g,"");var h=0;r[0]==="-"&&(h++,this.negative=1),h<r.length&&(a===16?this._parseHex(r,h,s):(this._parseBase(r,a,h),s==="le"&&this._initArray(this.toArray(),a,s)))},"init"),u.prototype._initNumber=f(function(r,a,s){r<0&&(this.negative=1,r=-r),r<67108864?(this.words=[r&67108863],this.length=1):r<4503599627370496?(this.words=[r&67108863,r/67108864&67108863],this.length=2):(N(r<9007199254740992),this.words=[r&67108863,r/67108864&67108863,1],this.length=3),s==="le"&&this._initArray(this.toArray(),a,s)},"_initNumber"),u.prototype._initArray=f(function(r,a,s){if(N(typeof r.length=="number"),r.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(r.length/3),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p,y,S=0;if(s==="be")for(h=r.length-1,p=0;h>=0;h-=3)y=r[h]|r[h-1]<<8|r[h-2]<<16,this.words[p]|=y<<S&67108863,this.words[p+1]=y>>>26-S&67108863,S+=24,S>=26&&(S-=26,p++);else if(s==="le")for(h=0,p=0;h<r.length;h+=3)y=r[h]|r[h+1]<<8|r[h+2]<<16,this.words[p]|=y<<S&67108863,this.words[p+1]=y>>>26-S&67108863,S+=24,S>=26&&(S-=26,p++);return this._strip()},"_initArray");function H(b,r){var a=b.charCodeAt(r);if(a>=48&&a<=57)return a-48;if(a>=65&&a<=70)return a-55;if(a>=97&&a<=102)return a-87;N(!1,"Invalid character in "+b)}f(H,"parseHex4Bits");function M(b,r,a){var s=H(b,a);return a-1>=r&&(s|=H(b,a-1)<<4),s}f(M,"parseHexByte"),u.prototype._parseHex=f(function(r,a,s){this.length=Math.ceil((r.length-a)/6),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p=0,y=0,S;if(s==="be")for(h=r.length-1;h>=a;h-=2)S=M(r,a,h)<<p,this.words[y]|=S&67108863,p>=18?(p-=18,y+=1,this.words[y]|=S>>>26):p+=8;else{var v=r.length-a;for(h=v%2===0?a+1:a;h<r.length;h+=2)S=M(r,a,h)<<p,this.words[y]|=S&67108863,p>=18?(p-=18,y+=1,this.words[y]|=S>>>26):p+=8}this._strip()},"_parseHex");function w(b,r,a,s){for(var h=0,p=0,y=Math.min(b.length,a),S=r;S<y;S++){var v=b.charCodeAt(S)-48;h*=s,v>=49?p=v-49+10:v>=17?p=v-17+10:p=v,N(v>=0&&p<s,"Invalid character"),h+=p}return h}f(w,"parseBase"),u.prototype._parseBase=f(function(r,a,s){this.words=[0],this.length=1;for(var h=0,p=1;p<=67108863;p*=a)h++;h--,p=p/a|0;for(var y=r.length-s,S=y%h,v=Math.min(y,y-S)+s,n=0,g=s;g<v;g+=h)n=w(r,g,g+h,a),this.imuln(p),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(S!==0){var te=1;for(n=w(r,g,r.length,a),g=0;g<S;g++)te*=a;this.imuln(te),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this._strip()},"_parseBase"),u.prototype.copy=f(function(r){r.words=new Array(this.length);for(var a=0;a<this.length;a++)r.words[a]=this.words[a];r.length=this.length,r.negative=this.negative,r.red=this.red},"copy");function l(b,r){b.words=r.words,b.length=r.length,b.negative=r.negative,b.red=r.red}if(f(l,"move"),u.prototype._move=f(function(r){l(r,this)},"_move"),u.prototype.clone=f(function(){var r=new u(null);return this.copy(r),r},"clone"),u.prototype._expand=f(function(r){for(;this.length<r;)this.words[this.length++]=0;return this},"_expand"),u.prototype._strip=f(function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},"strip"),u.prototype._normSign=f(function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},"_normSign"),typeof Symbol<"u"&&typeof Symbol.for=="function")try{u.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch{u.prototype.inspect=c}else u.prototype.inspect=c;function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}f(c,"inspect");var x=["","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"],E=[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],A=[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];u.prototype.toString=f(function(r,a){r=r||10,a=a|0||1;var s;if(r===16||r==="hex"){s="";for(var h=0,p=0,y=0;y<this.length;y++){var S=this.words[y],v=((S<<h|p)&16777215).toString(16);p=S>>>24-h&16777215,h+=2,h>=26&&(h-=26,y--),p!==0||y!==this.length-1?s=x[6-v.length]+v+s:s=v+s}for(p!==0&&(s=p.toString(16)+s);s.length%a!==0;)s="0"+s;return this.negative!==0&&(s="-"+s),s}if(r===(r|0)&&r>=2&&r<=36){var n=E[r],g=A[r];s="";var te=this.clone();for(te.negative=0;!te.isZero();){var re=te.modrn(g).toString(r);te=te.idivn(g),te.isZero()?s=re+s:s=x[n-re.length]+re+s}for(this.isZero()&&(s="0"+s);s.length%a!==0;)s="0"+s;return this.negative!==0&&(s="-"+s),s}N(!1,"Base should be between 2 and 36")},"toString"),u.prototype.toNumber=f(function(){var r=this.words[0];return this.length===2?r+=this.words[1]*67108864:this.length===3&&this.words[2]===1?r+=4503599627370496+this.words[1]*67108864:this.length>2&&N(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-r:r},"toNumber"),u.prototype.toJSON=f(function(){return this.toString(16,2)},"toJSON"),_&&(u.prototype.toBuffer=f(function(r,a){return this.toArrayLike(_,r,a)},"toBuffer")),u.prototype.toArray=f(function(r,a){return this.toArrayLike(Array,r,a)},"toArray");var I=f(function(r,a){return r.allocUnsafe?r.allocUnsafe(a):new r(a)},"allocate");u.prototype.toArrayLike=f(function(r,a,s){this._strip();var h=this.byteLength(),p=s||Math.max(1,h);N(h<=p,"byte array longer than desired length"),N(p>0,"Requested array length <= 0");var y=I(r,p),S=a==="le"?"LE":"BE";return this["_toArrayLike"+S](y,h),y},"toArrayLike"),u.prototype._toArrayLikeLE=f(function(r,a){for(var s=0,h=0,p=0,y=0;p<this.length;p++){var S=this.words[p]<<y|h;r[s++]=S&255,s<r.length&&(r[s++]=S>>8&255),s<r.length&&(r[s++]=S>>16&255),y===6?(s<r.length&&(r[s++]=S>>24&255),h=0,y=0):(h=S>>>24,y+=2)}if(s<r.length)for(r[s++]=h;s<r.length;)r[s++]=0},"_toArrayLikeLE"),u.prototype._toArrayLikeBE=f(function(r,a){for(var s=r.length-1,h=0,p=0,y=0;p<this.length;p++){var S=this.words[p]<<y|h;r[s--]=S&255,s>=0&&(r[s--]=S>>8&255),s>=0&&(r[s--]=S>>16&255),y===6?(s>=0&&(r[s--]=S>>24&255),h=0,y=0):(h=S>>>24,y+=2)}if(s>=0)for(r[s--]=h;s>=0;)r[s--]=0},"_toArrayLikeBE"),Math.clz32?u.prototype._countBits=f(function(r){return 32-Math.clz32(r)},"_countBits"):u.prototype._countBits=f(function(r){var a=r,s=0;return a>=4096&&(s+=13,a>>>=13),a>=64&&(s+=7,a>>>=7),a>=8&&(s+=4,a>>>=4),a>=2&&(s+=2,a>>>=2),s+a},"_countBits"),u.prototype._zeroBits=f(function(r){if(r===0)return 26;var a=r,s=0;return a&8191||(s+=13,a>>>=13),a&127||(s+=7,a>>>=7),a&15||(s+=4,a>>>=4),a&3||(s+=2,a>>>=2),a&1||s++,s},"_zeroBits"),u.prototype.bitLength=f(function(){var r=this.words[this.length-1],a=this._countBits(r);return(this.length-1)*26+a},"bitLength");function R(b){for(var r=new Array(b.bitLength()),a=0;a<r.length;a++){var s=a/26|0,h=a%26;r[a]=b.words[s]>>>h&1}return r}f(R,"toBitArray"),u.prototype.zeroBits=f(function(){if(this.isZero())return 0;for(var r=0,a=0;a<this.length;a++){var s=this._zeroBits(this.words[a]);if(r+=s,s!==26)break}return r},"zeroBits"),u.prototype.byteLength=f(function(){return Math.ceil(this.bitLength()/8)},"byteLength"),u.prototype.toTwos=f(function(r){return this.negative!==0?this.abs().inotn(r).iaddn(1):this.clone()},"toTwos"),u.prototype.fromTwos=f(function(r){return this.testn(r-1)?this.notn(r).iaddn(1).ineg():this.clone()},"fromTwos"),u.prototype.isNeg=f(function(){return this.negative!==0},"isNeg"),u.prototype.neg=f(function(){return this.clone().ineg()},"neg"),u.prototype.ineg=f(function(){return this.isZero()||(this.negative^=1),this},"ineg"),u.prototype.iuor=f(function(r){for(;this.length<r.length;)this.words[this.length++]=0;for(var a=0;a<r.length;a++)this.words[a]=this.words[a]|r.words[a];return this._strip()},"iuor"),u.prototype.ior=f(function(r){return N((this.negative|r.negative)===0),this.iuor(r)},"ior"),u.prototype.or=f(function(r){return this.length>r.length?this.clone().ior(r):r.clone().ior(this)},"or"),u.prototype.uor=f(function(r){return this.length>r.length?this.clone().iuor(r):r.clone().iuor(this)},"uor"),u.prototype.iuand=f(function(r){var a;this.length>r.length?a=r:a=this;for(var s=0;s<a.length;s++)this.words[s]=this.words[s]&r.words[s];return this.length=a.length,this._strip()},"iuand"),u.prototype.iand=f(function(r){return N((this.negative|r.negative)===0),this.iuand(r)},"iand"),u.prototype.and=f(function(r){return this.length>r.length?this.clone().iand(r):r.clone().iand(this)},"and"),u.prototype.uand=f(function(r){return this.length>r.length?this.clone().iuand(r):r.clone().iuand(this)},"uand"),u.prototype.iuxor=f(function(r){var a,s;this.length>r.length?(a=this,s=r):(a=r,s=this);for(var h=0;h<s.length;h++)this.words[h]=a.words[h]^s.words[h];if(this!==a)for(;h<a.length;h++)this.words[h]=a.words[h];return this.length=a.length,this._strip()},"iuxor"),u.prototype.ixor=f(function(r){return N((this.negative|r.negative)===0),this.iuxor(r)},"ixor"),u.prototype.xor=f(function(r){return this.length>r.length?this.clone().ixor(r):r.clone().ixor(this)},"xor"),u.prototype.uxor=f(function(r){return this.length>r.length?this.clone().iuxor(r):r.clone().iuxor(this)},"uxor"),u.prototype.inotn=f(function(r){N(typeof r=="number"&&r>=0);var a=Math.ceil(r/26)|0,s=r%26;this._expand(a),s>0&&a--;for(var h=0;h<a;h++)this.words[h]=~this.words[h]&67108863;return s>0&&(this.words[h]=~this.words[h]&67108863>>26-s),this._strip()},"inotn"),u.prototype.notn=f(function(r){return this.clone().inotn(r)},"notn"),u.prototype.setn=f(function(r,a){N(typeof r=="number"&&r>=0);var s=r/26|0,h=r%26;return this._expand(s+1),a?this.words[s]=this.words[s]|1<<h:this.words[s]=this.words[s]&~(1<<h),this._strip()},"setn"),u.prototype.iadd=f(function(r){var a;if(this.negative!==0&&r.negative===0)return this.negative=0,a=this.isub(r),this.negative^=1,this._normSign();if(this.negative===0&&r.negative!==0)return r.negative=0,a=this.isub(r),r.negative=1,a._normSign();var s,h;this.length>r.length?(s=this,h=r):(s=r,h=this);for(var p=0,y=0;y<h.length;y++)a=(s.words[y]|0)+(h.words[y]|0)+p,this.words[y]=a&67108863,p=a>>>26;for(;p!==0&&y<s.length;y++)a=(s.words[y]|0)+p,this.words[y]=a&67108863,p=a>>>26;if(this.length=s.length,p!==0)this.words[this.length]=p,this.length++;else if(s!==this)for(;y<s.length;y++)this.words[y]=s.words[y];return this},"iadd"),u.prototype.add=f(function(r){var a;return r.negative!==0&&this.negative===0?(r.negative=0,a=this.sub(r),r.negative^=1,a):r.negative===0&&this.negative!==0?(this.negative=0,a=r.sub(this),this.negative=1,a):this.length>r.length?this.clone().iadd(r):r.clone().iadd(this)},"add"),u.prototype.isub=f(function(r){if(r.negative!==0){r.negative=0;var a=this.iadd(r);return r.negative=1,a._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(r),this.negative=1,this._normSign();var s=this.cmp(r);if(s===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,p;s>0?(h=this,p=r):(h=r,p=this);for(var y=0,S=0;S<p.length;S++)a=(h.words[S]|0)-(p.words[S]|0)+y,y=a>>26,this.words[S]=a&67108863;for(;y!==0&&S<h.length;S++)a=(h.words[S]|0)+y,y=a>>26,this.words[S]=a&67108863;if(y===0&&S<h.length&&h!==this)for(;S<h.length;S++)this.words[S]=h.words[S];return this.length=Math.max(this.length,S),h!==this&&(this.negative=1),this._strip()},"isub"),u.prototype.sub=f(function(r){return this.clone().isub(r)},"sub");function K(b,r,a){a.negative=r.negative^b.negative;var s=b.length+r.length|0;a.length=s,s=s-1|0;var h=b.words[0]|0,p=r.words[0]|0,y=h*p,S=y&67108863,v=y/67108864|0;a.words[0]=S;for(var n=1;n<s;n++){for(var g=v>>>26,te=v&67108863,re=Math.min(n,r.length-1),J=Math.max(0,n-b.length+1);J<=re;J++){var ee=n-J|0;h=b.words[ee]|0,p=r.words[J]|0,y=h*p+te,g+=y/67108864|0,te=y&67108863}a.words[n]=te|0,v=g|0}return v!==0?a.words[n]=v|0:a.length--,a._strip()}f(K,"smallMulTo");var L=f(function(r,a,s){var h=r.words,p=a.words,y=s.words,S=0,v,n,g,te=h[0]|0,re=te&8191,J=te>>>13,ee=h[1]|0,ue=ee&8191,ge=ee>>>13,De=h[2]|0,ye=De&8191,xe=De>>>13,Ge=h[3]|0,pe=Ge&8191,me=Ge>>>13,Ke=h[4]|0,Oe=Ke&8191,Be=Ke>>>13,qe=h[5]|0,le=qe&8191,ce=qe>>>13,Ve=h[6]|0,he=Ve&8191,Ee=Ve>>>13,$=h[7]|0,Ae=$&8191,Re=$>>>13,We=h[8]|0,He=We&8191,Te=We>>>13,ze=h[9]|0,be=ze&8191,Ie=ze>>>13,je=p[0]|0,we=je&8191,Le=je>>>13,Xe=p[1]|0,d=Xe&8191,e=Xe>>>13,t=p[2]|0,i=t&8191,o=t>>>13,m=p[3]|0,O=m&8191,P=m>>>13,Z=p[4]|0,W=Z&8191,ie=Z>>>13,oe=p[5]|0,ne=oe&8191,ve=oe>>>13,z=p[6]|0,Q=z&8191,se=z>>>13,Ue=p[7]|0,_e=Ue&8191,ke=Ue>>>13,Ye=p[8]|0,Ne=Ye&8191,Pe=Ye>>>13,Je=p[9]|0,Ce=Je&8191,Fe=Je>>>13;s.negative=r.negative^a.negative,s.length=19,v=Math.imul(re,we),n=Math.imul(re,Le),n=n+Math.imul(J,we)|0,g=Math.imul(J,Le);var et=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(et>>>26)|0,et&=67108863,v=Math.imul(ue,we),n=Math.imul(ue,Le),n=n+Math.imul(ge,we)|0,g=Math.imul(ge,Le),v=v+Math.imul(re,d)|0,n=n+Math.imul(re,e)|0,n=n+Math.imul(J,d)|0,g=g+Math.imul(J,e)|0;var tt=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(tt>>>26)|0,tt&=67108863,v=Math.imul(ye,we),n=Math.imul(ye,Le),n=n+Math.imul(xe,we)|0,g=Math.imul(xe,Le),v=v+Math.imul(ue,d)|0,n=n+Math.imul(ue,e)|0,n=n+Math.imul(ge,d)|0,g=g+Math.imul(ge,e)|0,v=v+Math.imul(re,i)|0,n=n+Math.imul(re,o)|0,n=n+Math.imul(J,i)|0,g=g+Math.imul(J,o)|0;var rt=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(rt>>>26)|0,rt&=67108863,v=Math.imul(pe,we),n=Math.imul(pe,Le),n=n+Math.imul(me,we)|0,g=Math.imul(me,Le),v=v+Math.imul(ye,d)|0,n=n+Math.imul(ye,e)|0,n=n+Math.imul(xe,d)|0,g=g+Math.imul(xe,e)|0,v=v+Math.imul(ue,i)|0,n=n+Math.imul(ue,o)|0,n=n+Math.imul(ge,i)|0,g=g+Math.imul(ge,o)|0,v=v+Math.imul(re,O)|0,n=n+Math.imul(re,P)|0,n=n+Math.imul(J,O)|0,g=g+Math.imul(J,P)|0;var it=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(it>>>26)|0,it&=67108863,v=Math.imul(Oe,we),n=Math.imul(Oe,Le),n=n+Math.imul(Be,we)|0,g=Math.imul(Be,Le),v=v+Math.imul(pe,d)|0,n=n+Math.imul(pe,e)|0,n=n+Math.imul(me,d)|0,g=g+Math.imul(me,e)|0,v=v+Math.imul(ye,i)|0,n=n+Math.imul(ye,o)|0,n=n+Math.imul(xe,i)|0,g=g+Math.imul(xe,o)|0,v=v+Math.imul(ue,O)|0,n=n+Math.imul(ue,P)|0,n=n+Math.imul(ge,O)|0,g=g+Math.imul(ge,P)|0,v=v+Math.imul(re,W)|0,n=n+Math.imul(re,ie)|0,n=n+Math.imul(J,W)|0,g=g+Math.imul(J,ie)|0;var st=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(st>>>26)|0,st&=67108863,v=Math.imul(le,we),n=Math.imul(le,Le),n=n+Math.imul(ce,we)|0,g=Math.imul(ce,Le),v=v+Math.imul(Oe,d)|0,n=n+Math.imul(Oe,e)|0,n=n+Math.imul(Be,d)|0,g=g+Math.imul(Be,e)|0,v=v+Math.imul(pe,i)|0,n=n+Math.imul(pe,o)|0,n=n+Math.imul(me,i)|0,g=g+Math.imul(me,o)|0,v=v+Math.imul(ye,O)|0,n=n+Math.imul(ye,P)|0,n=n+Math.imul(xe,O)|0,g=g+Math.imul(xe,P)|0,v=v+Math.imul(ue,W)|0,n=n+Math.imul(ue,ie)|0,n=n+Math.imul(ge,W)|0,g=g+Math.imul(ge,ie)|0,v=v+Math.imul(re,ne)|0,n=n+Math.imul(re,ve)|0,n=n+Math.imul(J,ne)|0,g=g+Math.imul(J,ve)|0;var at=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(at>>>26)|0,at&=67108863,v=Math.imul(he,we),n=Math.imul(he,Le),n=n+Math.imul(Ee,we)|0,g=Math.imul(Ee,Le),v=v+Math.imul(le,d)|0,n=n+Math.imul(le,e)|0,n=n+Math.imul(ce,d)|0,g=g+Math.imul(ce,e)|0,v=v+Math.imul(Oe,i)|0,n=n+Math.imul(Oe,o)|0,n=n+Math.imul(Be,i)|0,g=g+Math.imul(Be,o)|0,v=v+Math.imul(pe,O)|0,n=n+Math.imul(pe,P)|0,n=n+Math.imul(me,O)|0,g=g+Math.imul(me,P)|0,v=v+Math.imul(ye,W)|0,n=n+Math.imul(ye,ie)|0,n=n+Math.imul(xe,W)|0,g=g+Math.imul(xe,ie)|0,v=v+Math.imul(ue,ne)|0,n=n+Math.imul(ue,ve)|0,n=n+Math.imul(ge,ne)|0,g=g+Math.imul(ge,ve)|0,v=v+Math.imul(re,Q)|0,n=n+Math.imul(re,se)|0,n=n+Math.imul(J,Q)|0,g=g+Math.imul(J,se)|0;var nt=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(nt>>>26)|0,nt&=67108863,v=Math.imul(Ae,we),n=Math.imul(Ae,Le),n=n+Math.imul(Re,we)|0,g=Math.imul(Re,Le),v=v+Math.imul(he,d)|0,n=n+Math.imul(he,e)|0,n=n+Math.imul(Ee,d)|0,g=g+Math.imul(Ee,e)|0,v=v+Math.imul(le,i)|0,n=n+Math.imul(le,o)|0,n=n+Math.imul(ce,i)|0,g=g+Math.imul(ce,o)|0,v=v+Math.imul(Oe,O)|0,n=n+Math.imul(Oe,P)|0,n=n+Math.imul(Be,O)|0,g=g+Math.imul(Be,P)|0,v=v+Math.imul(pe,W)|0,n=n+Math.imul(pe,ie)|0,n=n+Math.imul(me,W)|0,g=g+Math.imul(me,ie)|0,v=v+Math.imul(ye,ne)|0,n=n+Math.imul(ye,ve)|0,n=n+Math.imul(xe,ne)|0,g=g+Math.imul(xe,ve)|0,v=v+Math.imul(ue,Q)|0,n=n+Math.imul(ue,se)|0,n=n+Math.imul(ge,Q)|0,g=g+Math.imul(ge,se)|0,v=v+Math.imul(re,_e)|0,n=n+Math.imul(re,ke)|0,n=n+Math.imul(J,_e)|0,g=g+Math.imul(J,ke)|0;var ot=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(ot>>>26)|0,ot&=67108863,v=Math.imul(He,we),n=Math.imul(He,Le),n=n+Math.imul(Te,we)|0,g=Math.imul(Te,Le),v=v+Math.imul(Ae,d)|0,n=n+Math.imul(Ae,e)|0,n=n+Math.imul(Re,d)|0,g=g+Math.imul(Re,e)|0,v=v+Math.imul(he,i)|0,n=n+Math.imul(he,o)|0,n=n+Math.imul(Ee,i)|0,g=g+Math.imul(Ee,o)|0,v=v+Math.imul(le,O)|0,n=n+Math.imul(le,P)|0,n=n+Math.imul(ce,O)|0,g=g+Math.imul(ce,P)|0,v=v+Math.imul(Oe,W)|0,n=n+Math.imul(Oe,ie)|0,n=n+Math.imul(Be,W)|0,g=g+Math.imul(Be,ie)|0,v=v+Math.imul(pe,ne)|0,n=n+Math.imul(pe,ve)|0,n=n+Math.imul(me,ne)|0,g=g+Math.imul(me,ve)|0,v=v+Math.imul(ye,Q)|0,n=n+Math.imul(ye,se)|0,n=n+Math.imul(xe,Q)|0,g=g+Math.imul(xe,se)|0,v=v+Math.imul(ue,_e)|0,n=n+Math.imul(ue,ke)|0,n=n+Math.imul(ge,_e)|0,g=g+Math.imul(ge,ke)|0,v=v+Math.imul(re,Ne)|0,n=n+Math.imul(re,Pe)|0,n=n+Math.imul(J,Ne)|0,g=g+Math.imul(J,Pe)|0;var ft=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(ft>>>26)|0,ft&=67108863,v=Math.imul(be,we),n=Math.imul(be,Le),n=n+Math.imul(Ie,we)|0,g=Math.imul(Ie,Le),v=v+Math.imul(He,d)|0,n=n+Math.imul(He,e)|0,n=n+Math.imul(Te,d)|0,g=g+Math.imul(Te,e)|0,v=v+Math.imul(Ae,i)|0,n=n+Math.imul(Ae,o)|0,n=n+Math.imul(Re,i)|0,g=g+Math.imul(Re,o)|0,v=v+Math.imul(he,O)|0,n=n+Math.imul(he,P)|0,n=n+Math.imul(Ee,O)|0,g=g+Math.imul(Ee,P)|0,v=v+Math.imul(le,W)|0,n=n+Math.imul(le,ie)|0,n=n+Math.imul(ce,W)|0,g=g+Math.imul(ce,ie)|0,v=v+Math.imul(Oe,ne)|0,n=n+Math.imul(Oe,ve)|0,n=n+Math.imul(Be,ne)|0,g=g+Math.imul(Be,ve)|0,v=v+Math.imul(pe,Q)|0,n=n+Math.imul(pe,se)|0,n=n+Math.imul(me,Q)|0,g=g+Math.imul(me,se)|0,v=v+Math.imul(ye,_e)|0,n=n+Math.imul(ye,ke)|0,n=n+Math.imul(xe,_e)|0,g=g+Math.imul(xe,ke)|0,v=v+Math.imul(ue,Ne)|0,n=n+Math.imul(ue,Pe)|0,n=n+Math.imul(ge,Ne)|0,g=g+Math.imul(ge,Pe)|0,v=v+Math.imul(re,Ce)|0,n=n+Math.imul(re,Fe)|0,n=n+Math.imul(J,Ce)|0,g=g+Math.imul(J,Fe)|0;var ct=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,v=Math.imul(be,d),n=Math.imul(be,e),n=n+Math.imul(Ie,d)|0,g=Math.imul(Ie,e),v=v+Math.imul(He,i)|0,n=n+Math.imul(He,o)|0,n=n+Math.imul(Te,i)|0,g=g+Math.imul(Te,o)|0,v=v+Math.imul(Ae,O)|0,n=n+Math.imul(Ae,P)|0,n=n+Math.imul(Re,O)|0,g=g+Math.imul(Re,P)|0,v=v+Math.imul(he,W)|0,n=n+Math.imul(he,ie)|0,n=n+Math.imul(Ee,W)|0,g=g+Math.imul(Ee,ie)|0,v=v+Math.imul(le,ne)|0,n=n+Math.imul(le,ve)|0,n=n+Math.imul(ce,ne)|0,g=g+Math.imul(ce,ve)|0,v=v+Math.imul(Oe,Q)|0,n=n+Math.imul(Oe,se)|0,n=n+Math.imul(Be,Q)|0,g=g+Math.imul(Be,se)|0,v=v+Math.imul(pe,_e)|0,n=n+Math.imul(pe,ke)|0,n=n+Math.imul(me,_e)|0,g=g+Math.imul(me,ke)|0,v=v+Math.imul(ye,Ne)|0,n=n+Math.imul(ye,Pe)|0,n=n+Math.imul(xe,Ne)|0,g=g+Math.imul(xe,Pe)|0,v=v+Math.imul(ue,Ce)|0,n=n+Math.imul(ue,Fe)|0,n=n+Math.imul(ge,Ce)|0,g=g+Math.imul(ge,Fe)|0;var ht=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(ht>>>26)|0,ht&=67108863,v=Math.imul(be,i),n=Math.imul(be,o),n=n+Math.imul(Ie,i)|0,g=Math.imul(Ie,o),v=v+Math.imul(He,O)|0,n=n+Math.imul(He,P)|0,n=n+Math.imul(Te,O)|0,g=g+Math.imul(Te,P)|0,v=v+Math.imul(Ae,W)|0,n=n+Math.imul(Ae,ie)|0,n=n+Math.imul(Re,W)|0,g=g+Math.imul(Re,ie)|0,v=v+Math.imul(he,ne)|0,n=n+Math.imul(he,ve)|0,n=n+Math.imul(Ee,ne)|0,g=g+Math.imul(Ee,ve)|0,v=v+Math.imul(le,Q)|0,n=n+Math.imul(le,se)|0,n=n+Math.imul(ce,Q)|0,g=g+Math.imul(ce,se)|0,v=v+Math.imul(Oe,_e)|0,n=n+Math.imul(Oe,ke)|0,n=n+Math.imul(Be,_e)|0,g=g+Math.imul(Be,ke)|0,v=v+Math.imul(pe,Ne)|0,n=n+Math.imul(pe,Pe)|0,n=n+Math.imul(me,Ne)|0,g=g+Math.imul(me,Pe)|0,v=v+Math.imul(ye,Ce)|0,n=n+Math.imul(ye,Fe)|0,n=n+Math.imul(xe,Ce)|0,g=g+Math.imul(xe,Fe)|0;var ut=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(ut>>>26)|0,ut&=67108863,v=Math.imul(be,O),n=Math.imul(be,P),n=n+Math.imul(Ie,O)|0,g=Math.imul(Ie,P),v=v+Math.imul(He,W)|0,n=n+Math.imul(He,ie)|0,n=n+Math.imul(Te,W)|0,g=g+Math.imul(Te,ie)|0,v=v+Math.imul(Ae,ne)|0,n=n+Math.imul(Ae,ve)|0,n=n+Math.imul(Re,ne)|0,g=g+Math.imul(Re,ve)|0,v=v+Math.imul(he,Q)|0,n=n+Math.imul(he,se)|0,n=n+Math.imul(Ee,Q)|0,g=g+Math.imul(Ee,se)|0,v=v+Math.imul(le,_e)|0,n=n+Math.imul(le,ke)|0,n=n+Math.imul(ce,_e)|0,g=g+Math.imul(ce,ke)|0,v=v+Math.imul(Oe,Ne)|0,n=n+Math.imul(Oe,Pe)|0,n=n+Math.imul(Be,Ne)|0,g=g+Math.imul(Be,Pe)|0,v=v+Math.imul(pe,Ce)|0,n=n+Math.imul(pe,Fe)|0,n=n+Math.imul(me,Ce)|0,g=g+Math.imul(me,Fe)|0;var dt=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,v=Math.imul(be,W),n=Math.imul(be,ie),n=n+Math.imul(Ie,W)|0,g=Math.imul(Ie,ie),v=v+Math.imul(He,ne)|0,n=n+Math.imul(He,ve)|0,n=n+Math.imul(Te,ne)|0,g=g+Math.imul(Te,ve)|0,v=v+Math.imul(Ae,Q)|0,n=n+Math.imul(Ae,se)|0,n=n+Math.imul(Re,Q)|0,g=g+Math.imul(Re,se)|0,v=v+Math.imul(he,_e)|0,n=n+Math.imul(he,ke)|0,n=n+Math.imul(Ee,_e)|0,g=g+Math.imul(Ee,ke)|0,v=v+Math.imul(le,Ne)|0,n=n+Math.imul(le,Pe)|0,n=n+Math.imul(ce,Ne)|0,g=g+Math.imul(ce,Pe)|0,v=v+Math.imul(Oe,Ce)|0,n=n+Math.imul(Oe,Fe)|0,n=n+Math.imul(Be,Ce)|0,g=g+Math.imul(Be,Fe)|0;var lt=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(lt>>>26)|0,lt&=67108863,v=Math.imul(be,ne),n=Math.imul(be,ve),n=n+Math.imul(Ie,ne)|0,g=Math.imul(Ie,ve),v=v+Math.imul(He,Q)|0,n=n+Math.imul(He,se)|0,n=n+Math.imul(Te,Q)|0,g=g+Math.imul(Te,se)|0,v=v+Math.imul(Ae,_e)|0,n=n+Math.imul(Ae,ke)|0,n=n+Math.imul(Re,_e)|0,g=g+Math.imul(Re,ke)|0,v=v+Math.imul(he,Ne)|0,n=n+Math.imul(he,Pe)|0,n=n+Math.imul(Ee,Ne)|0,g=g+Math.imul(Ee,Pe)|0,v=v+Math.imul(le,Ce)|0,n=n+Math.imul(le,Fe)|0,n=n+Math.imul(ce,Ce)|0,g=g+Math.imul(ce,Fe)|0;var bt=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,v=Math.imul(be,Q),n=Math.imul(be,se),n=n+Math.imul(Ie,Q)|0,g=Math.imul(Ie,se),v=v+Math.imul(He,_e)|0,n=n+Math.imul(He,ke)|0,n=n+Math.imul(Te,_e)|0,g=g+Math.imul(Te,ke)|0,v=v+Math.imul(Ae,Ne)|0,n=n+Math.imul(Ae,Pe)|0,n=n+Math.imul(Re,Ne)|0,g=g+Math.imul(Re,Pe)|0,v=v+Math.imul(he,Ce)|0,n=n+Math.imul(he,Fe)|0,n=n+Math.imul(Ee,Ce)|0,g=g+Math.imul(Ee,Fe)|0;var pt=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,v=Math.imul(be,_e),n=Math.imul(be,ke),n=n+Math.imul(Ie,_e)|0,g=Math.imul(Ie,ke),v=v+Math.imul(He,Ne)|0,n=n+Math.imul(He,Pe)|0,n=n+Math.imul(Te,Ne)|0,g=g+Math.imul(Te,Pe)|0,v=v+Math.imul(Ae,Ce)|0,n=n+Math.imul(Ae,Fe)|0,n=n+Math.imul(Re,Ce)|0,g=g+Math.imul(Re,Fe)|0;var mt=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(mt>>>26)|0,mt&=67108863,v=Math.imul(be,Ne),n=Math.imul(be,Pe),n=n+Math.imul(Ie,Ne)|0,g=Math.imul(Ie,Pe),v=v+Math.imul(He,Ce)|0,n=n+Math.imul(He,Fe)|0,n=n+Math.imul(Te,Ce)|0,g=g+Math.imul(Te,Fe)|0;var vt=(S+v|0)+((n&8191)<<13)|0;S=(g+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,v=Math.imul(be,Ce),n=Math.imul(be,Fe),n=n+Math.imul(Ie,Ce)|0,g=Math.imul(Ie,Fe);var gt=(S+v|0)+((n&8191)<<13)|0;return S=(g+(n>>>13)|0)+(gt>>>26)|0,gt&=67108863,y[0]=et,y[1]=tt,y[2]=rt,y[3]=it,y[4]=st,y[5]=at,y[6]=nt,y[7]=ot,y[8]=ft,y[9]=ct,y[10]=ht,y[11]=ut,y[12]=dt,y[13]=lt,y[14]=bt,y[15]=pt,y[16]=mt,y[17]=vt,y[18]=gt,S!==0&&(y[19]=S,s.length++),s},"comb10MulTo");Math.imul||(L=K);function D(b,r,a){a.negative=r.negative^b.negative,a.length=b.length+r.length;for(var s=0,h=0,p=0;p<a.length-1;p++){var y=h;h=0;for(var S=s&67108863,v=Math.min(p,r.length-1),n=Math.max(0,p-b.length+1);n<=v;n++){var g=p-n,te=b.words[g]|0,re=r.words[n]|0,J=te*re,ee=J&67108863;y=y+(J/67108864|0)|0,ee=ee+S|0,S=ee&67108863,y=y+(ee>>>26)|0,h+=y>>>26,y&=67108863}a.words[p]=S,s=y,y=h}return s!==0?a.words[p]=s:a.length--,a._strip()}f(D,"bigMulTo");function G(b,r,a){return D(b,r,a)}f(G,"jumboMulTo"),u.prototype.mulTo=f(function(r,a){var s,h=this.length+r.length;return this.length===10&&r.length===10?s=L(this,r,a):h<63?s=K(this,r,a):h<1024?s=D(this,r,a):s=G(this,r,a),s},"mulTo");function q(b,r){this.x=b,this.y=r}f(q,"FFTM"),q.prototype.makeRBT=f(function(r){for(var a=new Array(r),s=u.prototype._countBits(r)-1,h=0;h<r;h++)a[h]=this.revBin(h,s,r);return a},"makeRBT"),q.prototype.revBin=f(function(r,a,s){if(r===0||r===s-1)return r;for(var h=0,p=0;p<a;p++)h|=(r&1)<<a-p-1,r>>=1;return h},"revBin"),q.prototype.permute=f(function(r,a,s,h,p,y){for(var S=0;S<y;S++)h[S]=a[r[S]],p[S]=s[r[S]]},"permute"),q.prototype.transform=f(function(r,a,s,h,p,y){this.permute(y,r,a,s,h,p);for(var S=1;S<p;S<<=1)for(var v=S<<1,n=Math.cos(2*Math.PI/v),g=Math.sin(2*Math.PI/v),te=0;te<p;te+=v)for(var re=n,J=g,ee=0;ee<S;ee++){var ue=s[te+ee],ge=h[te+ee],De=s[te+ee+S],ye=h[te+ee+S],xe=re*De-J*ye;ye=re*ye+J*De,De=xe,s[te+ee]=ue+De,h[te+ee]=ge+ye,s[te+ee+S]=ue-De,h[te+ee+S]=ge-ye,ee!==v&&(xe=n*re-g*J,J=n*J+g*re,re=xe)}},"transform"),q.prototype.guessLen13b=f(function(r,a){var s=Math.max(a,r)|1,h=s&1,p=0;for(s=s/2|0;s;s=s>>>1)p++;return 1<<p+1+h},"guessLen13b"),q.prototype.conjugate=f(function(r,a,s){if(!(s<=1))for(var h=0;h<s/2;h++){var p=r[h];r[h]=r[s-h-1],r[s-h-1]=p,p=a[h],a[h]=-a[s-h-1],a[s-h-1]=-p}},"conjugate"),q.prototype.normalize13b=f(function(r,a){for(var s=0,h=0;h<a/2;h++){var p=Math.round(r[2*h+1]/a)*8192+Math.round(r[2*h]/a)+s;r[h]=p&67108863,p<67108864?s=0:s=p/67108864|0}return r},"normalize13b"),q.prototype.convert13b=f(function(r,a,s,h){for(var p=0,y=0;y<a;y++)p=p+(r[y]|0),s[2*y]=p&8191,p=p>>>13,s[2*y+1]=p&8191,p=p>>>13;for(y=2*a;y<h;++y)s[y]=0;N(p===0),N((p&-8192)===0)},"convert13b"),q.prototype.stub=f(function(r){for(var a=new Array(r),s=0;s<r;s++)a[s]=0;return a},"stub"),q.prototype.mulp=f(function(r,a,s){var h=2*this.guessLen13b(r.length,a.length),p=this.makeRBT(h),y=this.stub(h),S=new Array(h),v=new Array(h),n=new Array(h),g=new Array(h),te=new Array(h),re=new Array(h),J=s.words;J.length=h,this.convert13b(r.words,r.length,S,h),this.convert13b(a.words,a.length,g,h),this.transform(S,y,v,n,h,p),this.transform(g,y,te,re,h,p);for(var ee=0;ee<h;ee++){var ue=v[ee]*te[ee]-n[ee]*re[ee];n[ee]=v[ee]*re[ee]+n[ee]*te[ee],v[ee]=ue}return this.conjugate(v,n,h),this.transform(v,n,J,y,h,p),this.conjugate(J,y,h),this.normalize13b(J,h),s.negative=r.negative^a.negative,s.length=r.length+a.length,s._strip()},"mulp"),u.prototype.mul=f(function(r){var a=new u(null);return a.words=new Array(this.length+r.length),this.mulTo(r,a)},"mul"),u.prototype.mulf=f(function(r){var a=new u(null);return a.words=new Array(this.length+r.length),G(this,r,a)},"mulf"),u.prototype.imul=f(function(r){return this.clone().mulTo(r,this)},"imul"),u.prototype.imuln=f(function(r){var a=r<0;a&&(r=-r),N(typeof r=="number"),N(r<67108864);for(var s=0,h=0;h<this.length;h++){var p=(this.words[h]|0)*r,y=(p&67108863)+(s&67108863);s>>=26,s+=p/67108864|0,s+=y>>>26,this.words[h]=y&67108863}return s!==0&&(this.words[h]=s,this.length++),a?this.ineg():this},"imuln"),u.prototype.muln=f(function(r){return this.clone().imuln(r)},"muln"),u.prototype.sqr=f(function(){return this.mul(this)},"sqr"),u.prototype.isqr=f(function(){return this.imul(this.clone())},"isqr"),u.prototype.pow=f(function(r){var a=R(r);if(a.length===0)return new u(1);for(var s=this,h=0;h<a.length&&a[h]===0;h++,s=s.sqr());if(++h<a.length)for(var p=s.sqr();h<a.length;h++,p=p.sqr())a[h]!==0&&(s=s.mul(p));return s},"pow"),u.prototype.iushln=f(function(r){N(typeof r=="number"&&r>=0);var a=r%26,s=(r-a)/26,h=67108863>>>26-a<<26-a,p;if(a!==0){var y=0;for(p=0;p<this.length;p++){var S=this.words[p]&h,v=(this.words[p]|0)-S<<a;this.words[p]=v|y,y=S>>>26-a}y&&(this.words[p]=y,this.length++)}if(s!==0){for(p=this.length-1;p>=0;p--)this.words[p+s]=this.words[p];for(p=0;p<s;p++)this.words[p]=0;this.length+=s}return this._strip()},"iushln"),u.prototype.ishln=f(function(r){return N(this.negative===0),this.iushln(r)},"ishln"),u.prototype.iushrn=f(function(r,a,s){N(typeof r=="number"&&r>=0);var h;a?h=(a-a%26)/26:h=0;var p=r%26,y=Math.min((r-p)/26,this.length),S=67108863^67108863>>>p<<p,v=s;if(h-=y,h=Math.max(0,h),v){for(var n=0;n<y;n++)v.words[n]=this.words[n];v.length=y}if(y!==0)if(this.length>y)for(this.length-=y,n=0;n<this.length;n++)this.words[n]=this.words[n+y];else this.words[0]=0,this.length=1;var g=0;for(n=this.length-1;n>=0&&(g!==0||n>=h);n--){var te=this.words[n]|0;this.words[n]=g<<26-p|te>>>p,g=te&S}return v&&g!==0&&(v.words[v.length++]=g),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},"iushrn"),u.prototype.ishrn=f(function(r,a,s){return N(this.negative===0),this.iushrn(r,a,s)},"ishrn"),u.prototype.shln=f(function(r){return this.clone().ishln(r)},"shln"),u.prototype.ushln=f(function(r){return this.clone().iushln(r)},"ushln"),u.prototype.shrn=f(function(r){return this.clone().ishrn(r)},"shrn"),u.prototype.ushrn=f(function(r){return this.clone().iushrn(r)},"ushrn"),u.prototype.testn=f(function(r){N(typeof r=="number"&&r>=0);var a=r%26,s=(r-a)/26,h=1<<a;if(this.length<=s)return!1;var p=this.words[s];return!!(p&h)},"testn"),u.prototype.imaskn=f(function(r){N(typeof r=="number"&&r>=0);var a=r%26,s=(r-a)/26;if(N(this.negative===0,"imaskn works only with positive numbers"),this.length<=s)return this;if(a!==0&&s++,this.length=Math.min(s,this.length),a!==0){var h=67108863^67108863>>>a<<a;this.words[this.length-1]&=h}return this._strip()},"imaskn"),u.prototype.maskn=f(function(r){return this.clone().imaskn(r)},"maskn"),u.prototype.iaddn=f(function(r){return N(typeof r=="number"),N(r<67108864),r<0?this.isubn(-r):this.negative!==0?this.length===1&&(this.words[0]|0)<=r?(this.words[0]=r-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(r),this.negative=1,this):this._iaddn(r)},"iaddn"),u.prototype._iaddn=f(function(r){this.words[0]+=r;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},"_iaddn"),u.prototype.isubn=f(function(r){if(N(typeof r=="number"),N(r<67108864),r<0)return this.iaddn(-r);if(this.negative!==0)return this.negative=0,this.iaddn(r),this.negative=1,this;if(this.words[0]-=r,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this._strip()},"isubn"),u.prototype.addn=f(function(r){return this.clone().iaddn(r)},"addn"),u.prototype.subn=f(function(r){return this.clone().isubn(r)},"subn"),u.prototype.iabs=f(function(){return this.negative=0,this},"iabs"),u.prototype.abs=f(function(){return this.clone().iabs()},"abs"),u.prototype._ishlnsubmul=f(function(r,a,s){var h=r.length+s,p;this._expand(h);var y,S=0;for(p=0;p<r.length;p++){y=(this.words[p+s]|0)+S;var v=(r.words[p]|0)*a;y-=v&67108863,S=(y>>26)-(v/67108864|0),this.words[p+s]=y&67108863}for(;p<this.length-s;p++)y=(this.words[p+s]|0)+S,S=y>>26,this.words[p+s]=y&67108863;if(S===0)return this._strip();for(N(S===-1),S=0,p=0;p<this.length;p++)y=-(this.words[p]|0)+S,S=y>>26,this.words[p]=y&67108863;return this.negative=1,this._strip()},"_ishlnsubmul"),u.prototype._wordDiv=f(function(r,a){var s=this.length-r.length,h=this.clone(),p=r,y=p.words[p.length-1]|0,S=this._countBits(y);s=26-S,s!==0&&(p=p.ushln(s),h.iushln(s),y=p.words[p.length-1]|0);var v=h.length-p.length,n;if(a!=="mod"){n=new u(null),n.length=v+1,n.words=new Array(n.length);for(var g=0;g<n.length;g++)n.words[g]=0}var te=h.clone()._ishlnsubmul(p,1,v);te.negative===0&&(h=te,n&&(n.words[v]=1));for(var re=v-1;re>=0;re--){var J=(h.words[p.length+re]|0)*67108864+(h.words[p.length+re-1]|0);for(J=Math.min(J/y|0,67108863),h._ishlnsubmul(p,J,re);h.negative!==0;)J--,h.negative=0,h._ishlnsubmul(p,1,re),h.isZero()||(h.negative^=1);n&&(n.words[re]=J)}return n&&n._strip(),h._strip(),a!=="div"&&s!==0&&h.iushrn(s),{div:n||null,mod:h}},"_wordDiv"),u.prototype.divmod=f(function(r,a,s){if(N(!r.isZero()),this.isZero())return{div:new u(0),mod:new u(0)};var h,p,y;return this.negative!==0&&r.negative===0?(y=this.neg().divmod(r,a),a!=="mod"&&(h=y.div.neg()),a!=="div"&&(p=y.mod.neg(),s&&p.negative!==0&&p.iadd(r)),{div:h,mod:p}):this.negative===0&&r.negative!==0?(y=this.divmod(r.neg(),a),a!=="mod"&&(h=y.div.neg()),{div:h,mod:y.mod}):this.negative&r.negative?(y=this.neg().divmod(r.neg(),a),a!=="div"&&(p=y.mod.neg(),s&&p.negative!==0&&p.isub(r)),{div:y.div,mod:p}):r.length>this.length||this.cmp(r)<0?{div:new u(0),mod:this}:r.length===1?a==="div"?{div:this.divn(r.words[0]),mod:null}:a==="mod"?{div:null,mod:new u(this.modrn(r.words[0]))}:{div:this.divn(r.words[0]),mod:new u(this.modrn(r.words[0]))}:this._wordDiv(r,a)},"divmod"),u.prototype.div=f(function(r){return this.divmod(r,"div",!1).div},"div"),u.prototype.mod=f(function(r){return this.divmod(r,"mod",!1).mod},"mod"),u.prototype.umod=f(function(r){return this.divmod(r,"mod",!0).mod},"umod"),u.prototype.divRound=f(function(r){var a=this.divmod(r);if(a.mod.isZero())return a.div;var s=a.div.negative!==0?a.mod.isub(r):a.mod,h=r.ushrn(1),p=r.andln(1),y=s.cmp(h);return y<0||p===1&&y===0?a.div:a.div.negative!==0?a.div.isubn(1):a.div.iaddn(1)},"divRound"),u.prototype.modrn=f(function(r){var a=r<0;a&&(r=-r),N(r<=67108863);for(var s=(1<<26)%r,h=0,p=this.length-1;p>=0;p--)h=(s*h+(this.words[p]|0))%r;return a?-h:h},"modrn"),u.prototype.modn=f(function(r){return this.modrn(r)},"modn"),u.prototype.idivn=f(function(r){var a=r<0;a&&(r=-r),N(r<=67108863);for(var s=0,h=this.length-1;h>=0;h--){var p=(this.words[h]|0)+s*67108864;this.words[h]=p/r|0,s=p%r}return this._strip(),a?this.ineg():this},"idivn"),u.prototype.divn=f(function(r){return this.clone().idivn(r)},"divn"),u.prototype.egcd=f(function(r){N(r.negative===0),N(!r.isZero());var a=this,s=r.clone();a.negative!==0?a=a.umod(r):a=a.clone();for(var h=new u(1),p=new u(0),y=new u(0),S=new u(1),v=0;a.isEven()&&s.isEven();)a.iushrn(1),s.iushrn(1),++v;for(var n=s.clone(),g=a.clone();!a.isZero();){for(var te=0,re=1;!(a.words[0]&re)&&te<26;++te,re<<=1);if(te>0)for(a.iushrn(te);te-- >0;)(h.isOdd()||p.isOdd())&&(h.iadd(n),p.isub(g)),h.iushrn(1),p.iushrn(1);for(var J=0,ee=1;!(s.words[0]&ee)&&J<26;++J,ee<<=1);if(J>0)for(s.iushrn(J);J-- >0;)(y.isOdd()||S.isOdd())&&(y.iadd(n),S.isub(g)),y.iushrn(1),S.iushrn(1);a.cmp(s)>=0?(a.isub(s),h.isub(y),p.isub(S)):(s.isub(a),y.isub(h),S.isub(p))}return{a:y,b:S,gcd:s.iushln(v)}},"egcd"),u.prototype._invmp=f(function(r){N(r.negative===0),N(!r.isZero());var a=this,s=r.clone();a.negative!==0?a=a.umod(r):a=a.clone();for(var h=new u(1),p=new u(0),y=s.clone();a.cmpn(1)>0&&s.cmpn(1)>0;){for(var S=0,v=1;!(a.words[0]&v)&&S<26;++S,v<<=1);if(S>0)for(a.iushrn(S);S-- >0;)h.isOdd()&&h.iadd(y),h.iushrn(1);for(var n=0,g=1;!(s.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(s.iushrn(n);n-- >0;)p.isOdd()&&p.iadd(y),p.iushrn(1);a.cmp(s)>=0?(a.isub(s),h.isub(p)):(s.isub(a),p.isub(h))}var te;return a.cmpn(1)===0?te=h:te=p,te.cmpn(0)<0&&te.iadd(r),te},"_invmp"),u.prototype.gcd=f(function(r){if(this.isZero())return r.abs();if(r.isZero())return this.abs();var a=this.clone(),s=r.clone();a.negative=0,s.negative=0;for(var h=0;a.isEven()&&s.isEven();h++)a.iushrn(1),s.iushrn(1);do{for(;a.isEven();)a.iushrn(1);for(;s.isEven();)s.iushrn(1);var p=a.cmp(s);if(p<0){var y=a;a=s,s=y}else if(p===0||s.cmpn(1)===0)break;a.isub(s)}while(!0);return s.iushln(h)},"gcd"),u.prototype.invm=f(function(r){return this.egcd(r).a.umod(r)},"invm"),u.prototype.isEven=f(function(){return(this.words[0]&1)===0},"isEven"),u.prototype.isOdd=f(function(){return(this.words[0]&1)===1},"isOdd"),u.prototype.andln=f(function(r){return this.words[0]&r},"andln"),u.prototype.bincn=f(function(r){N(typeof r=="number");var a=r%26,s=(r-a)/26,h=1<<a;if(this.length<=s)return this._expand(s+1),this.words[s]|=h,this;for(var p=h,y=s;p!==0&&y<this.length;y++){var S=this.words[y]|0;S+=p,p=S>>>26,S&=67108863,this.words[y]=S}return p!==0&&(this.words[y]=p,this.length++),this},"bincn"),u.prototype.isZero=f(function(){return this.length===1&&this.words[0]===0},"isZero"),u.prototype.cmpn=f(function(r){var a=r<0;if(this.negative!==0&&!a)return-1;if(this.negative===0&&a)return 1;this._strip();var s;if(this.length>1)s=1;else{a&&(r=-r),N(r<=67108863,"Number is too big");var h=this.words[0]|0;s=h===r?0:h<r?-1:1}return this.negative!==0?-s|0:s},"cmpn"),u.prototype.cmp=f(function(r){if(this.negative!==0&&r.negative===0)return-1;if(this.negative===0&&r.negative!==0)return 1;var a=this.ucmp(r);return this.negative!==0?-a|0:a},"cmp"),u.prototype.ucmp=f(function(r){if(this.length>r.length)return 1;if(this.length<r.length)return-1;for(var a=0,s=this.length-1;s>=0;s--){var h=this.words[s]|0,p=r.words[s]|0;if(h!==p){h<p?a=-1:h>p&&(a=1);break}}return a},"ucmp"),u.prototype.gtn=f(function(r){return this.cmpn(r)===1},"gtn"),u.prototype.gt=f(function(r){return this.cmp(r)===1},"gt"),u.prototype.gten=f(function(r){return this.cmpn(r)>=0},"gten"),u.prototype.gte=f(function(r){return this.cmp(r)>=0},"gte"),u.prototype.ltn=f(function(r){return this.cmpn(r)===-1},"ltn"),u.prototype.lt=f(function(r){return this.cmp(r)===-1},"lt"),u.prototype.lten=f(function(r){return this.cmpn(r)<=0},"lten"),u.prototype.lte=f(function(r){return this.cmp(r)<=0},"lte"),u.prototype.eqn=f(function(r){return this.cmpn(r)===0},"eqn"),u.prototype.eq=f(function(r){return this.cmp(r)===0},"eq"),u.red=f(function(r){return new fe(r)},"red"),u.prototype.toRed=f(function(r){return N(!this.red,"Already a number in reduction context"),N(this.negative===0,"red works only with positives"),r.convertTo(this)._forceRed(r)},"toRed"),u.prototype.fromRed=f(function(){return N(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},"fromRed"),u.prototype._forceRed=f(function(r){return this.red=r,this},"_forceRed"),u.prototype.forceRed=f(function(r){return N(!this.red,"Already a number in reduction context"),this._forceRed(r)},"forceRed"),u.prototype.redAdd=f(function(r){return N(this.red,"redAdd works only with red numbers"),this.red.add(this,r)},"redAdd"),u.prototype.redIAdd=f(function(r){return N(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,r)},"redIAdd"),u.prototype.redSub=f(function(r){return N(this.red,"redSub works only with red numbers"),this.red.sub(this,r)},"redSub"),u.prototype.redISub=f(function(r){return N(this.red,"redISub works only with red numbers"),this.red.isub(this,r)},"redISub"),u.prototype.redShl=f(function(r){return N(this.red,"redShl works only with red numbers"),this.red.shl(this,r)},"redShl"),u.prototype.redMul=f(function(r){return N(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.mul(this,r)},"redMul"),u.prototype.redIMul=f(function(r){return N(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.imul(this,r)},"redIMul"),u.prototype.redSqr=f(function(){return N(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},"redSqr"),u.prototype.redISqr=f(function(){return N(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},"redISqr"),u.prototype.redSqrt=f(function(){return N(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},"redSqrt"),u.prototype.redInvm=f(function(){return N(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},"redInvm"),u.prototype.redNeg=f(function(){return N(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},"redNeg"),u.prototype.redPow=f(function(r){return N(this.red&&!r.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,r)},"redPow");var j={k256:null,p224:null,p192:null,p25519:null};function V(b,r){this.name=b,this.p=new u(r,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}f(V,"MPrime"),V.prototype._tmp=f(function(){var r=new u(null);return r.words=new Array(Math.ceil(this.n/13)),r},"_tmp"),V.prototype.ireduce=f(function(r){var a=r,s;do this.split(a,this.tmp),a=this.imulK(a),a=a.iadd(this.tmp),s=a.bitLength();while(s>this.n);var h=s<this.n?-1:a.ucmp(this.p);return h===0?(a.words[0]=0,a.length=1):h>0?a.isub(this.p):a.strip!==void 0?a.strip():a._strip(),a},"ireduce"),V.prototype.split=f(function(r,a){r.iushrn(this.n,0,a)},"split"),V.prototype.imulK=f(function(r){return r.imul(this.k)},"imulK");function U(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(U,"K256"),k(U,V),U.prototype.split=f(function(r,a){for(var s=4194303,h=Math.min(r.length,9),p=0;p<h;p++)a.words[p]=r.words[p];if(a.length=h,r.length<=9){r.words[0]=0,r.length=1;return}var y=r.words[9];for(a.words[a.length++]=y&s,p=10;p<r.length;p++){var S=r.words[p]|0;r.words[p-10]=(S&s)<<4|y>>>22,y=S}y>>>=22,r.words[p-10]=y,y===0&&r.length>10?r.length-=10:r.length-=9},"split"),U.prototype.imulK=f(function(r){r.words[r.length]=0,r.words[r.length+1]=0,r.length+=2;for(var a=0,s=0;s<r.length;s++){var h=r.words[s]|0;a+=h*977,r.words[s]=a&67108863,a=h*64+(a/67108864|0)}return r.words[r.length-1]===0&&(r.length--,r.words[r.length-1]===0&&r.length--),r},"imulK");function de(){V.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}f(de,"P224"),k(de,V);function ae(){V.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}f(ae,"P192"),k(ae,V);function Se(){V.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}f(Se,"P25519"),k(Se,V),Se.prototype.imulK=f(function(r){for(var a=0,s=0;s<r.length;s++){var h=(r.words[s]|0)*19+a,p=h&67108863;h>>>=26,r.words[s]=p,a=h}return a!==0&&(r.words[r.length++]=a),r},"imulK"),u._prime=f(function(r){if(j[r])return j[r];var a;if(r==="k256")a=new U;else if(r==="p224")a=new de;else if(r==="p192")a=new ae;else if(r==="p25519")a=new Se;else throw new Error("Unknown prime "+r);return j[r]=a,a},"prime");function fe(b){if(typeof b=="string"){var r=u._prime(b);this.m=r.p,this.prime=r}else N(b.gtn(1),"modulus must be greater than 1"),this.m=b,this.prime=null}f(fe,"Red"),fe.prototype._verify1=f(function(r){N(r.negative===0,"red works only with positives"),N(r.red,"red works only with red numbers")},"_verify1"),fe.prototype._verify2=f(function(r,a){N((r.negative|a.negative)===0,"red works only with positives"),N(r.red&&r.red===a.red,"red works only with red numbers")},"_verify2"),fe.prototype.imod=f(function(r){return this.prime?this.prime.ireduce(r)._forceRed(this):(l(r,r.umod(this.m)._forceRed(this)),r)},"imod"),fe.prototype.neg=f(function(r){return r.isZero()?r.clone():this.m.sub(r)._forceRed(this)},"neg"),fe.prototype.add=f(function(r,a){this._verify2(r,a);var s=r.add(a);return s.cmp(this.m)>=0&&s.isub(this.m),s._forceRed(this)},"add"),fe.prototype.iadd=f(function(r,a){this._verify2(r,a);var s=r.iadd(a);return s.cmp(this.m)>=0&&s.isub(this.m),s},"iadd"),fe.prototype.sub=f(function(r,a){this._verify2(r,a);var s=r.sub(a);return s.cmpn(0)<0&&s.iadd(this.m),s._forceRed(this)},"sub"),fe.prototype.isub=f(function(r,a){this._verify2(r,a);var s=r.isub(a);return s.cmpn(0)<0&&s.iadd(this.m),s},"isub"),fe.prototype.shl=f(function(r,a){return this._verify1(r),this.imod(r.ushln(a))},"shl"),fe.prototype.imul=f(function(r,a){return this._verify2(r,a),this.imod(r.imul(a))},"imul"),fe.prototype.mul=f(function(r,a){return this._verify2(r,a),this.imod(r.mul(a))},"mul"),fe.prototype.isqr=f(function(r){return this.imul(r,r.clone())},"isqr"),fe.prototype.sqr=f(function(r){return this.mul(r,r)},"sqr"),fe.prototype.sqrt=f(function(r){if(r.isZero())return r.clone();var a=this.m.andln(3);if(N(a%2===1),a===3){var s=this.m.add(new u(1)).iushrn(2);return this.pow(r,s)}for(var h=this.m.subn(1),p=0;!h.isZero()&&h.andln(1)===0;)p++,h.iushrn(1);N(!h.isZero());var y=new u(1).toRed(this),S=y.redNeg(),v=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new u(2*n*n).toRed(this);this.pow(n,v).cmp(S)!==0;)n.redIAdd(S);for(var g=this.pow(n,h),te=this.pow(r,h.addn(1).iushrn(1)),re=this.pow(r,h),J=p;re.cmp(y)!==0;){for(var ee=re,ue=0;ee.cmp(y)!==0;ue++)ee=ee.redSqr();N(ue<J);var ge=this.pow(g,new u(1).iushln(J-ue-1));te=te.redMul(ge),g=ge.redSqr(),re=re.redMul(g),J=ue}return te},"sqrt"),fe.prototype.invm=f(function(r){var a=r._invmp(this.m);return a.negative!==0?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},"invm"),fe.prototype.pow=f(function(r,a){if(a.isZero())return new u(1).toRed(this);if(a.cmpn(1)===0)return r.clone();var s=4,h=new Array(1<<s);h[0]=new u(1).toRed(this),h[1]=r;for(var p=2;p<h.length;p++)h[p]=this.mul(h[p-1],r);var y=h[0],S=0,v=0,n=a.bitLength()%26;for(n===0&&(n=26),p=a.length-1;p>=0;p--){for(var g=a.words[p],te=n-1;te>=0;te--){var re=g>>te&1;if(y!==h[0]&&(y=this.sqr(y)),re===0&&S===0){v=0;continue}S<<=1,S|=re,v++,!(v!==s&&(p!==0||te!==0))&&(y=this.mul(y,h[S]),v=0,S=0)}n=26}return y},"pow"),fe.prototype.convertTo=f(function(r){var a=r.umod(this.m);return a===r?a.clone():a},"convertTo"),fe.prototype.convertFrom=f(function(r){var a=r.clone();return a.red=null,a},"convertFrom"),u.mont=f(function(r){return new C(r)},"mont");function C(b){fe.call(this,b),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new u(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(C,"Mont"),k(C,fe),C.prototype.convertTo=f(function(r){return this.imod(r.ushln(this.shift))},"convertTo"),C.prototype.convertFrom=f(function(r){var a=this.imod(r.mul(this.rinv));return a.red=null,a},"convertFrom"),C.prototype.imul=f(function(r,a){if(r.isZero()||a.isZero())return r.words[0]=0,r.length=1,r;var s=r.imul(a),h=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=s.isub(h).iushrn(this.shift),y=p;return p.cmp(this.m)>=0?y=p.isub(this.m):p.cmpn(0)<0&&(y=p.iadd(this.m)),y._forceRed(this)},"imul"),C.prototype.mul=f(function(r,a){if(r.isZero()||a.isZero())return new u(0)._forceRed(this);var s=r.mul(a),h=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=s.isub(h).iushrn(this.shift),y=p;return p.cmp(this.m)>=0?y=p.isub(this.m):p.cmpn(0)<0&&(y=p.iadd(this.m)),y._forceRed(this)},"mul"),C.prototype.invm=f(function(r){var a=this.imod(r._invmp(this.m).mul(this.r2));return a._forceRed(this)},"invm")}(X,this)},931:(X,Y,T)=>{var B;X.exports=f(function(u){return B||(B=new F(null)),B.generate(u)},"rand");function F(k){this.rand=k}if(f(F,"Rand"),X.exports.Rand=F,F.prototype.generate=f(function(u){return this._rand(u)},"generate"),F.prototype._rand=f(function(u){if(this.rand.getBytes)return this.rand.getBytes(u);for(var _=new Uint8Array(u),H=0;H<_.length;H++)_[H]=this.rand.getByte();return _},"_rand"),typeof self=="object")self.crypto&&self.crypto.getRandomValues?F.prototype._rand=f(function(u){var _=new Uint8Array(u);return self.crypto.getRandomValues(_),_},"_rand"):self.msCrypto&&self.msCrypto.getRandomValues?F.prototype._rand=f(function(u){var _=new Uint8Array(u);return self.msCrypto.getRandomValues(_),_},"_rand"):typeof window=="object"&&(F.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var N=T(113);if(typeof N.randomBytes!="function")throw new Error("Not supported");F.prototype._rand=f(function(u){return N.randomBytes(u)},"_rand")}catch{}},191:(X,Y,T)=>{const B=T(162),F="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";X.exports=B(F)},555:(X,Y,T)=>{X.exports=T(113).createHmac},715:(X,Y,T)=>{var B=Y;B.utils=T(436),B.common=T(772),B.sha=T(41),B.ripemd=T(949),B.hmac=T(326),B.sha1=B.sha.sha1,B.sha256=B.sha.sha256,B.sha224=B.sha.sha224,B.sha384=B.sha.sha384,B.sha512=B.sha.sha512,B.ripemd160=B.ripemd.ripemd160},772:(X,Y,T)=>{"use strict";var B=T(436),F=T(746);function N(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}f(N,"BlockHash"),Y.BlockHash=N,N.prototype.update=f(function(u,_){if(u=B.toArray(u,_),this.pending?this.pending=this.pending.concat(u):this.pending=u,this.pendingTotal+=u.length,this.pending.length>=this._delta8){u=this.pending;var H=u.length%this._delta8;this.pending=u.slice(u.length-H,u.length),this.pending.length===0&&(this.pending=null),u=B.join32(u,0,u.length-H,this.endian);for(var M=0;M<u.length;M+=this._delta32)this._update(u,M,M+this._delta32)}return this},"update"),N.prototype.digest=f(function(u){return this.update(this._pad()),F(this.pending===null),this._digest(u)},"digest"),N.prototype._pad=f(function(){var u=this.pendingTotal,_=this._delta8,H=_-(u+this.padLength)%_,M=new Array(H+this.padLength);M[0]=128;for(var w=1;w<H;w++)M[w]=0;if(u<<=3,this.endian==="big"){for(var l=8;l<this.padLength;l++)M[w++]=0;M[w++]=0,M[w++]=0,M[w++]=0,M[w++]=0,M[w++]=u>>>24&255,M[w++]=u>>>16&255,M[w++]=u>>>8&255,M[w++]=u&255}else for(M[w++]=u&255,M[w++]=u>>>8&255,M[w++]=u>>>16&255,M[w++]=u>>>24&255,M[w++]=0,M[w++]=0,M[w++]=0,M[w++]=0,l=8;l<this.padLength;l++)M[w++]=0;return M},"pad")},326:(X,Y,T)=>{"use strict";var B=T(436),F=T(746);function N(k,u,_){if(!(this instanceof N))return new N(k,u,_);this.Hash=k,this.blockSize=k.blockSize/8,this.outSize=k.outSize/8,this.inner=null,this.outer=null,this._init(B.toArray(u,_))}f(N,"Hmac"),X.exports=N,N.prototype._init=f(function(u){u.length>this.blockSize&&(u=new this.Hash().update(u).digest()),F(u.length<=this.blockSize);for(var _=u.length;_<this.blockSize;_++)u.push(0);for(_=0;_<u.length;_++)u[_]^=54;for(this.inner=new this.Hash().update(u),_=0;_<u.length;_++)u[_]^=106;this.outer=new this.Hash().update(u)},"init"),N.prototype.update=f(function(u,_){return this.inner.update(u,_),this},"update"),N.prototype.digest=f(function(u){return this.outer.update(this.inner.digest()),this.outer.digest(u)},"digest")},949:(X,Y,T)=>{"use strict";var B=T(436),F=T(772),N=B.rotl32,k=B.sum32,u=B.sum32_3,_=B.sum32_4,H=F.BlockHash;function M(){if(!(this instanceof M))return new M;H.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}f(M,"RIPEMD160"),B.inherits(M,H),Y.ripemd160=M,M.blockSize=512,M.outSize=160,M.hmacStrength=192,M.padLength=64,M.prototype._update=f(function(K,L){for(var D=this.h[0],G=this.h[1],q=this.h[2],j=this.h[3],V=this.h[4],U=D,de=G,ae=q,Se=j,fe=V,C=0;C<80;C++){var b=k(N(_(D,w(C,G,q,j),K[x[C]+L],l(C)),A[C]),V);D=V,V=j,j=N(q,10),q=G,G=b,b=k(N(_(U,w(79-C,de,ae,Se),K[E[C]+L],c(C)),I[C]),fe),U=fe,fe=Se,Se=N(ae,10),ae=de,de=b}b=u(this.h[1],q,Se),this.h[1]=u(this.h[2],j,fe),this.h[2]=u(this.h[3],V,U),this.h[3]=u(this.h[4],D,de),this.h[4]=u(this.h[0],G,ae),this.h[0]=b},"update"),M.prototype._digest=f(function(K){return K==="hex"?B.toHex32(this.h,"little"):B.split32(this.h,"little")},"digest");function w(R,K,L,D){return R<=15?K^L^D:R<=31?K&L|~K&D:R<=47?(K|~L)^D:R<=63?K&D|L&~D:K^(L|~D)}f(w,"f");function l(R){return R<=15?0:R<=31?1518500249:R<=47?1859775393:R<=63?2400959708:2840853838}f(l,"K");function c(R){return R<=15?1352829926:R<=31?1548603684:R<=47?1836072691:R<=63?2053994217:0}f(c,"Kh");var x=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],E=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],A=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],I=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},41:(X,Y,T)=>{"use strict";Y.sha1=T(761),Y.sha224=T(799),Y.sha256=T(344),Y.sha384=T(978),Y.sha512=T(900)},761:(X,Y,T)=>{"use strict";var B=T(436),F=T(772),N=T(38),k=B.rotl32,u=B.sum32,_=B.sum32_5,H=N.ft_1,M=F.BlockHash,w=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;M.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}f(l,"SHA1"),B.inherits(l,M),X.exports=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=f(function(x,E){for(var A=this.W,I=0;I<16;I++)A[I]=x[E+I];for(;I<A.length;I++)A[I]=k(A[I-3]^A[I-8]^A[I-14]^A[I-16],1);var R=this.h[0],K=this.h[1],L=this.h[2],D=this.h[3],G=this.h[4];for(I=0;I<A.length;I++){var q=~~(I/20),j=_(k(R,5),H(q,K,L,D),G,A[I],w[q]);G=D,D=L,L=k(K,30),K=R,R=j}this.h[0]=u(this.h[0],R),this.h[1]=u(this.h[1],K),this.h[2]=u(this.h[2],L),this.h[3]=u(this.h[3],D),this.h[4]=u(this.h[4],G)},"_update"),l.prototype._digest=f(function(x){return x==="hex"?B.toHex32(this.h,"big"):B.split32(this.h,"big")},"digest")},799:(X,Y,T)=>{"use strict";var B=T(436),F=T(344);function N(){if(!(this instanceof N))return new N;F.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}f(N,"SHA224"),B.inherits(N,F),X.exports=N,N.blockSize=512,N.outSize=224,N.hmacStrength=192,N.padLength=64,N.prototype._digest=f(function(u){return u==="hex"?B.toHex32(this.h.slice(0,7),"big"):B.split32(this.h.slice(0,7),"big")},"digest")},344:(X,Y,T)=>{"use strict";var B=T(436),F=T(772),N=T(38),k=T(746),u=B.sum32,_=B.sum32_4,H=B.sum32_5,M=N.ch32,w=N.maj32,l=N.s0_256,c=N.s1_256,x=N.g0_256,E=N.g1_256,A=F.BlockHash,I=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function R(){if(!(this instanceof R))return new R;A.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=I,this.W=new Array(64)}f(R,"SHA256"),B.inherits(R,A),X.exports=R,R.blockSize=512,R.outSize=256,R.hmacStrength=192,R.padLength=64,R.prototype._update=f(function(L,D){for(var G=this.W,q=0;q<16;q++)G[q]=L[D+q];for(;q<G.length;q++)G[q]=_(E(G[q-2]),G[q-7],x(G[q-15]),G[q-16]);var j=this.h[0],V=this.h[1],U=this.h[2],de=this.h[3],ae=this.h[4],Se=this.h[5],fe=this.h[6],C=this.h[7];for(k(this.k.length===G.length),q=0;q<G.length;q++){var b=H(C,c(ae),M(ae,Se,fe),this.k[q],G[q]),r=u(l(j),w(j,V,U));C=fe,fe=Se,Se=ae,ae=u(de,b),de=U,U=V,V=j,j=u(b,r)}this.h[0]=u(this.h[0],j),this.h[1]=u(this.h[1],V),this.h[2]=u(this.h[2],U),this.h[3]=u(this.h[3],de),this.h[4]=u(this.h[4],ae),this.h[5]=u(this.h[5],Se),this.h[6]=u(this.h[6],fe),this.h[7]=u(this.h[7],C)},"_update"),R.prototype._digest=f(function(L){return L==="hex"?B.toHex32(this.h,"big"):B.split32(this.h,"big")},"digest")},978:(X,Y,T)=>{"use strict";var B=T(436),F=T(900);function N(){if(!(this instanceof N))return new N;F.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}f(N,"SHA384"),B.inherits(N,F),X.exports=N,N.blockSize=1024,N.outSize=384,N.hmacStrength=192,N.padLength=128,N.prototype._digest=f(function(u){return u==="hex"?B.toHex32(this.h.slice(0,12),"big"):B.split32(this.h.slice(0,12),"big")},"digest")},900:(X,Y,T)=>{"use strict";var B=T(436),F=T(772),N=T(746),k=B.rotr64_hi,u=B.rotr64_lo,_=B.shr64_hi,H=B.shr64_lo,M=B.sum64,w=B.sum64_hi,l=B.sum64_lo,c=B.sum64_4_hi,x=B.sum64_4_lo,E=B.sum64_5_hi,A=B.sum64_5_lo,I=F.BlockHash,R=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function K(){if(!(this instanceof K))return new K;I.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=R,this.W=new Array(160)}f(K,"SHA512"),B.inherits(K,I),X.exports=K,K.blockSize=1024,K.outSize=512,K.hmacStrength=192,K.padLength=128,K.prototype._prepareBlock=f(function(r,a){for(var s=this.W,h=0;h<32;h++)s[h]=r[a+h];for(;h<s.length;h+=2){var p=fe(s[h-4],s[h-3]),y=C(s[h-4],s[h-3]),S=s[h-14],v=s[h-13],n=ae(s[h-30],s[h-29]),g=Se(s[h-30],s[h-29]),te=s[h-32],re=s[h-31];s[h]=c(p,y,S,v,n,g,te,re),s[h+1]=x(p,y,S,v,n,g,te,re)}},"_prepareBlock"),K.prototype._update=f(function(r,a){this._prepareBlock(r,a);var s=this.W,h=this.h[0],p=this.h[1],y=this.h[2],S=this.h[3],v=this.h[4],n=this.h[5],g=this.h[6],te=this.h[7],re=this.h[8],J=this.h[9],ee=this.h[10],ue=this.h[11],ge=this.h[12],De=this.h[13],ye=this.h[14],xe=this.h[15];N(this.k.length===s.length);for(var Ge=0;Ge<s.length;Ge+=2){var pe=ye,me=xe,Ke=U(re,J),Oe=de(re,J),Be=L(re,J,ee,ue,ge,De),qe=D(re,J,ee,ue,ge,De),le=this.k[Ge],ce=this.k[Ge+1],Ve=s[Ge],he=s[Ge+1],Ee=E(pe,me,Ke,Oe,Be,qe,le,ce,Ve,he),$=A(pe,me,Ke,Oe,Be,qe,le,ce,Ve,he);pe=j(h,p),me=V(h,p),Ke=G(h,p,y,S,v,n),Oe=q(h,p,y,S,v,n);var Ae=w(pe,me,Ke,Oe),Re=l(pe,me,Ke,Oe);ye=ge,xe=De,ge=ee,De=ue,ee=re,ue=J,re=w(g,te,Ee,$),J=l(te,te,Ee,$),g=v,te=n,v=y,n=S,y=h,S=p,h=w(Ee,$,Ae,Re),p=l(Ee,$,Ae,Re)}M(this.h,0,h,p),M(this.h,2,y,S),M(this.h,4,v,n),M(this.h,6,g,te),M(this.h,8,re,J),M(this.h,10,ee,ue),M(this.h,12,ge,De),M(this.h,14,ye,xe)},"_update"),K.prototype._digest=f(function(r){return r==="hex"?B.toHex32(this.h,"big"):B.split32(this.h,"big")},"digest");function L(b,r,a,s,h){var p=b&a^~b&h;return p<0&&(p+=4294967296),p}f(L,"ch64_hi");function D(b,r,a,s,h,p){var y=r&s^~r&p;return y<0&&(y+=4294967296),y}f(D,"ch64_lo");function G(b,r,a,s,h){var p=b&a^b&h^a&h;return p<0&&(p+=4294967296),p}f(G,"maj64_hi");function q(b,r,a,s,h,p){var y=r&s^r&p^s&p;return y<0&&(y+=4294967296),y}f(q,"maj64_lo");function j(b,r){var a=k(b,r,28),s=k(r,b,2),h=k(r,b,7),p=a^s^h;return p<0&&(p+=4294967296),p}f(j,"s0_512_hi");function V(b,r){var a=u(b,r,28),s=u(r,b,2),h=u(r,b,7),p=a^s^h;return p<0&&(p+=4294967296),p}f(V,"s0_512_lo");function U(b,r){var a=k(b,r,14),s=k(b,r,18),h=k(r,b,9),p=a^s^h;return p<0&&(p+=4294967296),p}f(U,"s1_512_hi");function de(b,r){var a=u(b,r,14),s=u(b,r,18),h=u(r,b,9),p=a^s^h;return p<0&&(p+=4294967296),p}f(de,"s1_512_lo");function ae(b,r){var a=k(b,r,1),s=k(b,r,8),h=_(b,r,7),p=a^s^h;return p<0&&(p+=4294967296),p}f(ae,"g0_512_hi");function Se(b,r){var a=u(b,r,1),s=u(b,r,8),h=H(b,r,7),p=a^s^h;return p<0&&(p+=4294967296),p}f(Se,"g0_512_lo");function fe(b,r){var a=k(b,r,19),s=k(r,b,29),h=_(b,r,6),p=a^s^h;return p<0&&(p+=4294967296),p}f(fe,"g1_512_hi");function C(b,r){var a=u(b,r,19),s=u(r,b,29),h=H(b,r,6),p=a^s^h;return p<0&&(p+=4294967296),p}f(C,"g1_512_lo")},38:(X,Y,T)=>{"use strict";var B=T(436),F=B.rotr32;function N(c,x,E,A){if(c===0)return k(x,E,A);if(c===1||c===3)return _(x,E,A);if(c===2)return u(x,E,A)}f(N,"ft_1"),Y.ft_1=N;function k(c,x,E){return c&x^~c&E}f(k,"ch32"),Y.ch32=k;function u(c,x,E){return c&x^c&E^x&E}f(u,"maj32"),Y.maj32=u;function _(c,x,E){return c^x^E}f(_,"p32"),Y.p32=_;function H(c){return F(c,2)^F(c,13)^F(c,22)}f(H,"s0_256"),Y.s0_256=H;function M(c){return F(c,6)^F(c,11)^F(c,25)}f(M,"s1_256"),Y.s1_256=M;function w(c){return F(c,7)^F(c,18)^c>>>3}f(w,"g0_256"),Y.g0_256=w;function l(c){return F(c,17)^F(c,19)^c>>>10}f(l,"g1_256"),Y.g1_256=l},436:(X,Y,T)=>{"use strict";var B=T(746),F=T(378);Y.inherits=F;function N(C,b){return(C.charCodeAt(b)&64512)!==55296||b<0||b+1>=C.length?!1:(C.charCodeAt(b+1)&64512)===56320}f(N,"isSurrogatePair");function k(C,b){if(Array.isArray(C))return C.slice();if(!C)return[];var r=[];if(typeof C=="string")if(b){if(b==="hex")for(C=C.replace(/[^a-z0-9]+/ig,""),C.length%2!==0&&(C="0"+C),s=0;s<C.length;s+=2)r.push(parseInt(C[s]+C[s+1],16))}else for(var a=0,s=0;s<C.length;s++){var h=C.charCodeAt(s);h<128?r[a++]=h:h<2048?(r[a++]=h>>6|192,r[a++]=h&63|128):N(C,s)?(h=65536+((h&1023)<<10)+(C.charCodeAt(++s)&1023),r[a++]=h>>18|240,r[a++]=h>>12&63|128,r[a++]=h>>6&63|128,r[a++]=h&63|128):(r[a++]=h>>12|224,r[a++]=h>>6&63|128,r[a++]=h&63|128)}else for(s=0;s<C.length;s++)r[s]=C[s]|0;return r}f(k,"toArray"),Y.toArray=k;function u(C){for(var b="",r=0;r<C.length;r++)b+=M(C[r].toString(16));return b}f(u,"toHex"),Y.toHex=u;function _(C){var b=C>>>24|C>>>8&65280|C<<8&16711680|(C&255)<<24;return b>>>0}f(_,"htonl"),Y.htonl=_;function H(C,b){for(var r="",a=0;a<C.length;a++){var s=C[a];b==="little"&&(s=_(s)),r+=w(s.toString(16))}return r}f(H,"toHex32"),Y.toHex32=H;function M(C){return C.length===1?"0"+C:C}f(M,"zero2"),Y.zero2=M;function w(C){return C.length===7?"0"+C:C.length===6?"00"+C:C.length===5?"000"+C:C.length===4?"0000"+C:C.length===3?"00000"+C:C.length===2?"000000"+C:C.length===1?"0000000"+C:C}f(w,"zero8"),Y.zero8=w;function l(C,b,r,a){var s=r-b;B(s%4===0);for(var h=new Array(s/4),p=0,y=b;p<h.length;p++,y+=4){var S;a==="big"?S=C[y]<<24|C[y+1]<<16|C[y+2]<<8|C[y+3]:S=C[y+3]<<24|C[y+2]<<16|C[y+1]<<8|C[y],h[p]=S>>>0}return h}f(l,"join32"),Y.join32=l;function c(C,b){for(var r=new Array(C.length*4),a=0,s=0;a<C.length;a++,s+=4){var h=C[a];b==="big"?(r[s]=h>>>24,r[s+1]=h>>>16&255,r[s+2]=h>>>8&255,r[s+3]=h&255):(r[s+3]=h>>>24,r[s+2]=h>>>16&255,r[s+1]=h>>>8&255,r[s]=h&255)}return r}f(c,"split32"),Y.split32=c;function x(C,b){return C>>>b|C<<32-b}f(x,"rotr32"),Y.rotr32=x;function E(C,b){return C<<b|C>>>32-b}f(E,"rotl32"),Y.rotl32=E;function A(C,b){return C+b>>>0}f(A,"sum32"),Y.sum32=A;function I(C,b,r){return C+b+r>>>0}f(I,"sum32_3"),Y.sum32_3=I;function R(C,b,r,a){return C+b+r+a>>>0}f(R,"sum32_4"),Y.sum32_4=R;function K(C,b,r,a,s){return C+b+r+a+s>>>0}f(K,"sum32_5"),Y.sum32_5=K;function L(C,b,r,a){var s=C[b],h=C[b+1],p=a+h>>>0,y=(p<a?1:0)+r+s;C[b]=y>>>0,C[b+1]=p}f(L,"sum64"),Y.sum64=L;function D(C,b,r,a){var s=b+a>>>0,h=(s<b?1:0)+C+r;return h>>>0}f(D,"sum64_hi"),Y.sum64_hi=D;function G(C,b,r,a){var s=b+a;return s>>>0}f(G,"sum64_lo"),Y.sum64_lo=G;function q(C,b,r,a,s,h,p,y){var S=0,v=b;v=v+a>>>0,S+=v<b?1:0,v=v+h>>>0,S+=v<h?1:0,v=v+y>>>0,S+=v<y?1:0;var n=C+r+s+p+S;return n>>>0}f(q,"sum64_4_hi"),Y.sum64_4_hi=q;function j(C,b,r,a,s,h,p,y){var S=b+a+h+y;return S>>>0}f(j,"sum64_4_lo"),Y.sum64_4_lo=j;function V(C,b,r,a,s,h,p,y,S,v){var n=0,g=b;g=g+a>>>0,n+=g<b?1:0,g=g+h>>>0,n+=g<h?1:0,g=g+y>>>0,n+=g<y?1:0,g=g+v>>>0,n+=g<v?1:0;var te=C+r+s+p+S+n;return te>>>0}f(V,"sum64_5_hi"),Y.sum64_5_hi=V;function U(C,b,r,a,s,h,p,y,S,v){var n=b+a+h+y+v;return n>>>0}f(U,"sum64_5_lo"),Y.sum64_5_lo=U;function de(C,b,r){var a=b<<32-r|C>>>r;return a>>>0}f(de,"rotr64_hi"),Y.rotr64_hi=de;function ae(C,b,r){var a=C<<32-r|b>>>r;return a>>>0}f(ae,"rotr64_lo"),Y.rotr64_lo=ae;function Se(C,b,r){return C>>>r}f(Se,"shr64_hi"),Y.shr64_hi=Se;function fe(C,b,r){var a=C<<32-r|b>>>r;return a>>>0}f(fe,"shr64_lo"),Y.shr64_lo=fe},156:(X,Y,T)=>{"use strict";var B=T(715),F=T(504),N=T(746);function k(u){if(!(this instanceof k))return new k(u);this.hash=u.hash,this.predResist=!!u.predResist,this.outLen=this.hash.outSize,this.minEntropy=u.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var _=F.toArray(u.entropy,u.entropyEnc||"hex"),H=F.toArray(u.nonce,u.nonceEnc||"hex"),M=F.toArray(u.pers,u.persEnc||"hex");N(_.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(_,H,M)}f(k,"HmacDRBG"),X.exports=k,k.prototype._init=f(function(_,H,M){var w=_.concat(H).concat(M);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var l=0;l<this.V.length;l++)this.K[l]=0,this.V[l]=1;this._update(w),this._reseed=1,this.reseedInterval=281474976710656},"init"),k.prototype._hmac=f(function(){return new B.hmac(this.hash,this.K)},"hmac"),k.prototype._update=f(function(_){var H=this._hmac().update(this.V).update([0]);_&&(H=H.update(_)),this.K=H.digest(),this.V=this._hmac().update(this.V).digest(),_&&(this.K=this._hmac().update(this.V).update([1]).update(_).digest(),this.V=this._hmac().update(this.V).digest())},"update"),k.prototype.reseed=f(function(_,H,M,w){typeof H!="string"&&(w=M,M=H,H=null),_=F.toArray(_,H),M=F.toArray(M,w),N(_.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(_.concat(M||[])),this._reseed=1},"reseed"),k.prototype.generate=f(function(_,H,M,w){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof H!="string"&&(w=M,M=H,H=null),M&&(M=F.toArray(M,w||"hex"),this._update(M));for(var l=[];l.length<_;)this.V=this._hmac().update(this.V).digest(),l=l.concat(this.V);var c=l.slice(0,_);return this._update(M),this._reseed++,F.encode(c,H)},"generate")},378:(X,Y,T)=>{try{var B=T(837);if(typeof B.inherits!="function")throw"";X.exports=B.inherits}catch{X.exports=T(717)}},717:X=>{typeof Object.create=="function"?X.exports=f(function(T,B){B&&(T.super_=B,T.prototype=Object.create(B.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):X.exports=f(function(T,B){if(B){T.super_=B;var F=f(function(){},"TempCtor");F.prototype=B.prototype,T.prototype=new F,T.prototype.constructor=T}},"inherits")},746:X=>{X.exports=Y;function Y(T,B){if(!T)throw new Error(B||"Assertion failed")}f(Y,"assert"),Y.equal=f(function(B,F,N){if(B!=F)throw new Error(N||"Assertion failed: "+B+" != "+F)},"assertEqual")},504:(X,Y)=>{"use strict";var T=Y;function B(k,u){if(Array.isArray(k))return k.slice();if(!k)return[];var _=[];if(typeof k!="string"){for(var H=0;H<k.length;H++)_[H]=k[H]|0;return _}if(u==="hex"){k=k.replace(/[^a-z0-9]+/ig,""),k.length%2!==0&&(k="0"+k);for(var H=0;H<k.length;H+=2)_.push(parseInt(k[H]+k[H+1],16))}else for(var H=0;H<k.length;H++){var M=k.charCodeAt(H),w=M>>8,l=M&255;w?_.push(w,l):_.push(l)}return _}f(B,"toArray"),T.toArray=B;function F(k){return k.length===1?"0"+k:k}f(F,"zero2"),T.zero2=F;function N(k){for(var u="",_=0;_<k.length;_++)u+=F(k[_].toString(16));return u}f(N,"toHex"),T.toHex=N,T.encode=f(function(u,_){return _==="hex"?N(u):u},"encode")},601:(X,Y,T)=>{var B=T(113),F=T(357),N=T(368),k=T(777);function u(H,M,w,l,c,x){if(F(w,l),H=k(H,N,"Password"),M=k(M,N,"Salt"),typeof c=="function"&&(x=c,c="sha1"),typeof x!="function")throw new Error("No callback provided to pbkdf2");return B.pbkdf2(H,M,w,l,c,x)}f(u,"nativePBKDF2");function _(H,M,w,l,c){return F(w,l),H=k(H,N,"Password"),M=k(M,N,"Salt"),c=c||"sha1",B.pbkdf2Sync(H,M,w,l,c)}f(_,"nativePBKDF2Sync"),!B.pbkdf2Sync||B.pbkdf2Sync.toString().indexOf("keylen, digest")===-1?(Y.pbkdf2Sync=T(493),Y.pbkdf2=T(638)):(Y.pbkdf2Sync=_,Y.pbkdf2=u)},638:(X,Y,T)=>{var B=T(509).Buffer,F=T(357),N=T(368),k=T(493),u=T(777),_,H=global.crypto&&global.crypto.subtle,M={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},w=[];function l(I){if(global.process&&!global.process.browser||!H||!H.importKey||!H.deriveBits)return Promise.resolve(!1);if(w[I]!==void 0)return w[I];_=_||B.alloc(8);var R=E(_,_,10,128,I).then(function(){return!0}).catch(function(){return!1});return w[I]=R,R}f(l,"checkNative");var c;function x(){return c||(global.process&&global.process.nextTick?c=global.process.nextTick:global.queueMicrotask?c=global.queueMicrotask:global.setImmediate?c=global.setImmediate:c=global.setTimeout,c)}f(x,"getNextTick");function E(I,R,K,L,D){return H.importKey("raw",I,{name:"PBKDF2"},!1,["deriveBits"]).then(function(G){return H.deriveBits({name:"PBKDF2",salt:R,iterations:K,hash:{name:D}},G,L<<3)}).then(function(G){return B.from(G)})}f(E,"browserPbkdf2");function A(I,R){I.then(function(K){x()(function(){R(null,K)})},function(K){x()(function(){R(K)})})}f(A,"resolvePromise"),X.exports=function(I,R,K,L,D,G){typeof D=="function"&&(G=D,D=void 0),D=D||"sha1";var q=M[D.toLowerCase()];if(!q||typeof global.Promise!="function"){x()(function(){var j;try{j=k(I,R,K,L,D)}catch(V){return G(V)}G(null,j)});return}if(F(K,L),I=u(I,N,"Password"),R=u(R,N,"Salt"),typeof G!="function")throw new Error("No callback provided to pbkdf2");A(l(q).then(function(j){return j?E(I,R,K,L,q):k(I,R,K,L,D)}),G)}},368:X=>{var Y;if(global.process&&global.process.browser)Y="utf-8";else if(global.process&&global.process.version){var T=parseInt(process.version.split(".")[0].slice(1),10);Y=T>=6?"utf-8":"binary"}else Y="utf-8";X.exports=Y},357:X=>{var Y=Math.pow(2,30)-1;X.exports=function(T,B){if(typeof T!="number")throw new TypeError("Iterations not a number");if(T<0)throw new TypeError("Bad iterations");if(typeof B!="number")throw new TypeError("Key length not a number");if(B<0||B>Y||B!==B)throw new TypeError("Bad key length")}},493:(X,Y,T)=>{var B={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},F=T(555),N=T(509).Buffer,k=T(357),u=T(368),_=T(777);function H(M,w,l,c,x){k(l,c),M=_(M,u,"Password"),w=_(w,u,"Salt"),x=x||"sha1";var E=N.allocUnsafe(c),A=N.allocUnsafe(w.length+4);w.copy(A,0,0,w.length);for(var I=0,R=B[x],K=Math.ceil(c/R),L=1;L<=K;L++){A.writeUInt32BE(L,w.length);for(var D=F(x,M).update(A).digest(),G=D,q=1;q<l;q++){G=F(x,M).update(G).digest();for(var j=0;j<R;j++)D[j]^=G[j]}D.copy(E,I),I+=R}return E}f(H,"pbkdf2"),X.exports=H},777:(X,Y,T)=>{var B=T(509).Buffer;X.exports=function(F,N,k){if(B.isBuffer(F))return F;if(typeof F=="string")return B.from(F,N);if(ArrayBuffer.isView(F))return B.from(F.buffer);throw new TypeError(k+" must be a string, a Buffer, a typed array or a DataView")}},353:(X,Y,T)=>{X.exports=T(113).randomBytes},509:(X,Y,T)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var B=T(300),F=B.Buffer;function N(u,_){for(var H in u)_[H]=u[H]}f(N,"copyProps"),F.from&&F.alloc&&F.allocUnsafe&&F.allocUnsafeSlow?X.exports=B:(N(B,Y),Y.Buffer=k);function k(u,_,H){return F(u,_,H)}f(k,"SafeBuffer"),k.prototype=Object.create(F.prototype),N(F,k),k.from=function(u,_,H){if(typeof u=="number")throw new TypeError("Argument must not be a number");return F(u,_,H)},k.alloc=function(u,_,H){if(typeof u!="number")throw new TypeError("Argument must be a number");var M=F(u);return _!==void 0?typeof H=="string"?M.fill(_,H):M.fill(_):M.fill(0),M},k.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return F(u)},k.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return B.SlowBuffer(u)}},300:X=>{"use strict";X.exports=require("buffer")},113:X=>{"use strict";X.exports=require("crypto")},837:X=>{"use strict";X.exports=require("util")},726:X=>{"use strict";X.exports={i8:"7.0.1"}}},Qe={};function Me(X){var Y=Qe[X];if(Y!==void 0)return Y.exports;var T=Qe[X]={id:X,loaded:!1,exports:{}};return Ze[X].call(T.exports,T,T.exports,Me),T.loaded=!0,T.exports}f(Me,"__webpack_require__"),Me.n=X=>{var Y=X&&X.__esModule?()=>X.default:()=>X;return Me.d(Y,{a:Y}),Y},Me.d=(X,Y)=>{for(var T in Y)Me.o(Y,T)&&!Me.o(X,T)&&Object.defineProperty(X,T,{enumerable:!0,get:Y[T]})},Me.o=(X,Y)=>Object.prototype.hasOwnProperty.call(X,Y),Me.r=X=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(X,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(X,"__esModule",{value:!0})},Me.nmd=X=>(X.paths=[],X.children||(X.children=[]),X);var $e={};(()=>{"use strict";Me.r($e),Me.d($e,{Ach:()=>je,Address:()=>ue,Aes:()=>ze,Aescbc:()=>Ie,Base58:()=>D,Base58Check:()=>de,Bip32:()=>ge,Bip39:()=>Ge,Block:()=>Ee,BlockHeader:()=>Oe,Bn:()=>c,Br:()=>A,Bsm:()=>Ke,Bw:()=>I,Cbc:()=>be,Constants:()=>C,Ecdsa:()=>me,Ecies:()=>we,Hash:()=>U,Interp:()=>$,KeyPair:()=>pe,OpCode:()=>s,Point:()=>S,PrivKey:()=>re,PubKey:()=>v,Random:()=>te,Script:()=>ee,Sig:()=>J,SigOperations:()=>Ae,Struct:()=>L,Tx:()=>he,TxBuilder:()=>He,TxIn:()=>ce,TxOut:()=>Ve,TxOutMap:()=>Re,TxVerifier:()=>Te,VarInt:()=>le,Workers:()=>V,WorkersResult:()=>q,cmp:()=>G,deps:()=>Le,en:()=>De,es:()=>xe,getConstants:()=>b,jp:()=>ye,version:()=>Xe});var X=Me(297),Y=Me.n(X),T=Me(550),B=Me.n(T),F=Me(191),N=Me.n(F),k=Me(666),u=Me.n(k),_=Me(715),H=Me.n(_),M=Me(601),w=Me(300);const l={i8:"2.0.22"};function c(d,e,...t){if(!(this instanceof c))return new c(d,e,...t);B().call(this,d,e,...t)}f(c,"Bn"),Object.keys(B()).forEach(function(d){c[d]=B()[d]}),c.prototype=Object.create(B().prototype),c.prototype.constructor=c;function x(d){const e=Buffer.alloc(d.length);for(let t=0;t<d.length;t++)e[t]=d[d.length-1-t];return e}f(x,"reverseBuf"),c.prototype.fromHex=function(d,e){return this.fromBuffer(Buffer.from(d,"hex"),e)},c.prototype.toHex=function(d){return this.toBuffer(d).toString("hex")},c.prototype.toJSON=function(){return this.toString()},c.prototype.fromJSON=function(d){return c(d).copy(this),this},c.prototype.fromNumber=function(d){return c(d).copy(this),this},c.prototype.toNumber=function(){return parseInt(this.toString(10),10)},c.prototype.fromString=function(d,e){return c(d,e).copy(this),this},c.fromBuffer=function(d,e={endian:"big"}){e.endian==="little"&&(d=x(d));const t=d.toString("hex");return new c(t,16)},c.prototype.fromBuffer=function(d,e){return c.fromBuffer(d,e).copy(this),this},c.prototype.toBuffer=function(d={size:void 0,endian:"big"}){let e;if(d.size){const i=this.toString(16,2),o=i.length/2;if(e=Buffer.from(i,"hex"),o!==d.size){if(o>d.size)e=e.slice(o-e.length,e.length);else if(o<d.size){const m=Buffer.alloc(d.size);for(let O=0;O<e.length;O++)m[m.length-1-O]=e[e.length-1-O];for(let O=0;O<d.size-o;O++)m[O]=0;e=m}}}else{const i=this.toString(16,2);e=Buffer.from(i,"hex")}d.endian==="little"&&(e=x(e));const t=Buffer.from([0]);return Buffer.compare(e,t)===0?Buffer.from([]):e},c.prototype.toFastBuffer=c.prototype.toBuffer,c.fromFastBuffer=c.fromBuffer,c.prototype.fromFastBuffer=c.prototype.fromBuffer,c.prototype.fromSm=function(d,e={endian:"big"}){return d.length===0&&this.fromBuffer(Buffer.from([0])),e.endian==="little"&&(d=x(d)),d[0]&128?(d[0]=d[0]&127,this.fromBuffer(d),this.neg().copy(this)):this.fromBuffer(d),this},c.prototype.toSm=function(d={endian:"big"}){const e=d.endian;let t;return this.cmp(0)===-1?(t=this.neg().toBuffer(),t[0]&128?t=Buffer.concat([Buffer.from([128]),t]):t[0]=t[0]|128):(t=this.toBuffer(),t[0]&128&&(t=Buffer.concat([Buffer.from([0]),t]))),t.length===1&t[0]===0&&(t=Buffer.from([])),e==="little"&&(t=x(t)),t},c.prototype.fromBits=function(d,e={strict:!1}){let t=Buffer.alloc(4);if(t.writeUInt32BE(d,0),d=t.readInt32BE(0),e.strict&&d&8388608)throw new Error("negative bit set");const i=d>>24,o=d&8388607;if(t=Buffer.alloc(4),t.writeInt32BE(o),i<=3)t=t.slice(1,i+1);else{const m=Buffer.alloc(i-3);m.fill(0),t=Buffer.concat([t,m])}return this.fromBuffer(t),d&8388608&&c(0).sub(this).copy(this),this},c.prototype.toBits=function(){let d;this.lt(0)?d=this.neg().toBuffer():d=this.toBuffer();let e=d.length,t;if(e>3)t=Buffer.concat([Buffer.from([0]),d.slice(0,3)]).readUInt32BE(0);else if(e<=3){const o=Buffer.alloc(3-e+1);o.fill(0),t=Buffer.concat([o,d.slice(0,e)]).readUInt32BE(0)}t&8388608&&(t>>=8,e++),this.lt(0)&&(t|=8388608);const i=e<<24|t;return d=Buffer.alloc(4),d.writeInt32BE(i,0),d.readUInt32BE(0)},c.prototype.fromScriptNumBuffer=function(d,e,t,i=!1){if(t===void 0&&(t=4),d.length>t)throw new Error(`script number overflow nMaxNumSize: ${t}`);if(e&&d.length>0&&!(d[d.length-1]&127)&&(d.length<=1||!(d[d.length-2]&128)))throw new Error("non-minimally encoded script number");return d.byteLength===0||d.byteLength<=t,this.fromSm(d,{endian:"little"})},c.prototype.toScriptNumBuffer=function(d){return this.toSm({endian:"little"})},c.prototype.neg=function(){const d=B().prototype.neg.call(this),e=Object.create(c.prototype);return d.copy(e),e},c.prototype.add=function(d){const e=B().prototype.add.call(this,d);return d=Object.create(c.prototype),e.copy(d),d},c.prototype.sub=function(d){const e=B().prototype.sub.call(this,d);return d=Object.create(c.prototype),e.copy(d),d},c.prototype.mul=function(d){const e=B().prototype.mul.call(this,d);return d=Object.create(c.prototype),e.copy(d),d},c.prototype.mod=function(d){const e=B().prototype.mod.call(this,d);return d=Object.create(c.prototype),e.copy(d),d},c.prototype.umod=function(d){const e=B().prototype.umod.call(this,d);return d=Object.create(c.prototype),e.copy(d),d},c.prototype.invm=function(d){const e=B().prototype.invm.call(this,d);return d=Object.create(c.prototype),e.copy(d),d},c.prototype.div=function(d){const e=B().prototype.div.call(this,d);return d=Object.create(c.prototype),e.copy(d),d},c.prototype.ushln=function(d){const e=B().prototype.ushln.call(this,d),t=Object.create(c.prototype);return e.copy(t),t},c.prototype.ushrn=function(d){const e=B().prototype.ushrn.call(this,d),t=Object.create(c.prototype);return e.copy(t),t},c.prototype.cmp=function(d){return B().prototype.cmp.call(this,d)};function E(d){c.prototype["_"+d]=c.prototype[d];const e=f(function(t){return typeof t=="string"?t=new c(t):typeof t=="number"&&(t=new c(t.toString())),this["_"+d](t)},"f");c.prototype[d]=e}f(E,"decorate"),c.prototype.eq=function(d){return this.cmp(d)===0},c.prototype.neq=function(d){return this.cmp(d)!==0},c.prototype.gt=function(d){return this.cmp(d)>0},c.prototype.geq=function(d){return this.cmp(d)>=0},c.prototype.lt=function(d){return this.cmp(d)<0},c.prototype.leq=function(d){return this.cmp(d)<=0},E("add"),E("sub"),E("mul"),E("mod"),E("invm"),E("div"),E("cmp"),E("gt"),E("geq"),E("lt"),E("leq");class A{static{f(this,"Br")}constructor(e){this.fromObject({buf:e})}fromObject(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this}eof(){return this.pos>=this.buf.length}read(e=this.buf.length){const t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t}readReverse(e=this.buf.length){const t=this.buf.slice(this.pos,this.pos+e);this.pos=this.pos+e;const i=Buffer.alloc(t.length);for(let o=0;o<i.length;o++)i[o]=t[t.length-1-o];return i}readUInt8(){const e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e}readInt8(){const e=this.buf.readInt8(this.pos);return this.pos=this.pos+1,e}readUInt16BE(){const e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e}readInt16BE(){const e=this.buf.readInt16BE(this.pos);return this.pos=this.pos+2,e}readUInt16LE(){const e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e}readInt16LE(){const e=this.buf.readInt16LE(this.pos);return this.pos=this.pos+2,e}readUInt32BE(){const e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e}readInt32BE(){const e=this.buf.readInt32BE(this.pos);return this.pos=this.pos+4,e}readUInt32LE(){const e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e}readInt32LE(){const e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e}readUInt64BEBn(){const e=this.buf.slice(this.pos,this.pos+8),t=new c().fromBuffer(e);return this.pos=this.pos+8,t}readUInt64LEBn(){const e=this.readReverse(8);return new c().fromBuffer(e)}readVarIntNum(){const e=this.readUInt8();let t,i;switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:if(t=this.readUInt64LEBn(),i=t.toNumber(),i<=Math.pow(2,53))return i;throw new Error("number too large to retain precision - use readVarIntBn");default:return e}}readVarIntBuf(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}}readVarIntBn(){const e=this.readUInt8();switch(e){case 253:return new c(this.readUInt16LE());case 254:return new c(this.readUInt32LE());case 255:return this.readUInt64LEBn();default:return new c(e)}}}class I{static{f(this,"Bw")}constructor(e){this.fromObject({bufs:e})}fromObject(e){return this.bufs=e.bufs||this.bufs||[],this}getLength(){let e=0;for(const t in this.bufs){const i=this.bufs[t];e=e+i.length}return e}toBuffer(){return Buffer.concat(this.bufs)}write(e){return this.bufs.push(e),this}writeReverse(e){const t=Buffer.alloc(e.length);for(let i=0;i<t.length;i++)t[i]=e[e.length-1-i];return this.bufs.push(t),this}writeUInt8(e){const t=Buffer.alloc(1);return t.writeUInt8(e,0),this.write(t),this}writeInt8(e){const t=Buffer.alloc(1);return t.writeInt8(e,0),this.write(t),this}writeUInt16BE(e){const t=Buffer.alloc(2);return t.writeUInt16BE(e,0),this.write(t),this}writeInt16BE(e){const t=Buffer.alloc(2);return t.writeInt16BE(e,0),this.write(t),this}writeUInt16LE(e){const t=Buffer.alloc(2);return t.writeUInt16LE(e,0),this.write(t),this}writeInt16LE(e){const t=Buffer.alloc(2);return t.writeInt16LE(e,0),this.write(t),this}writeUInt32BE(e){const t=Buffer.alloc(4);return t.writeUInt32BE(e,0),this.write(t),this}writeInt32BE(e){const t=Buffer.alloc(4);return t.writeInt32BE(e,0),this.write(t),this}writeUInt32LE(e){const t=Buffer.alloc(4);return t.writeUInt32LE(e,0),this.write(t),this}writeInt32LE(e){const t=Buffer.alloc(4);return t.writeInt32LE(e,0),this.write(t),this}writeUInt64BEBn(e){const t=e.toBuffer({size:8});return this.write(t),this}writeUInt64LEBn(e){const t=e.toBuffer({size:8});return this.writeReverse(t),this}writeVarIntNum(e){const t=I.varIntBufNum(e);return this.write(t),this}writeVarIntBn(e){const t=I.varIntBufBn(e);return this.write(t),this}static varIntBufNum(e){let t;return e<253?(t=Buffer.alloc(1),t.writeUInt8(e,0)):e<65536?(t=Buffer.alloc(3),t.writeUInt8(253,0),t.writeUInt16LE(e,1)):e<4294967296?(t=Buffer.alloc(5),t.writeUInt8(254,0),t.writeUInt32LE(e,1)):(t=Buffer.alloc(9),t.writeUInt8(255,0),t.writeInt32LE(e&-1,1),t.writeUInt32LE(Math.floor(e/4294967296),5)),t}static varIntBufBn(e){let t;const i=e.toNumber();if(i<253)t=Buffer.alloc(1),t.writeUInt8(i,0);else if(i<65536)t=Buffer.alloc(3),t.writeUInt8(253,0),t.writeUInt16LE(i,1);else if(i<4294967296)t=Buffer.alloc(5),t.writeUInt8(254,0),t.writeUInt32LE(i,1);else{const o=new I;o.writeUInt8(255),o.writeUInt64LEBn(e),t=o.toBuffer()}return t}}function R(d){const e=typeof d=="string"?d.charCodeAt(0):d;return e>=97&&e<=102||e>=65&&e<=70||e>=48&&e<=57}f(R,"isHexadecimal");const K=R;class L{static{f(this,"Struct")}constructor(e){this.fromObject(e)}fromObject(e){if(!e)return this;for(const t of Object.keys(e))e[t]!==void 0&&(this[t]=e[t]);return this}static fromObject(e){return new this().fromObject(e)}fromBr(e){throw e instanceof A?new Error("not implemented"):new Error("br must be a buffer reader")}static fromBr(e){return new this().fromBr(e)}asyncFromBr(e){throw e instanceof A?new Error("not implemented"):new Error("br must be a buffer reader")}static asyncFromBr(e){return new this().asyncFromBr(e)}toBw(e){throw new Error("not implemented")}asyncToBw(e){throw new Error("not implemented")}*genFromBuffers(){throw new Error("not implemented")}*expect(e,t){let i=t;const o=new I;let m=0;for(t&&(o.write(t),m+=t.length);m<e;)i=yield e-m,i&&(o.write(i),m+=i.length);i=o.toBuffer();const O=m-e,P=i.slice(i.length-O,i.length);return i=i.slice(0,i.length-O),{buf:i,remainderbuf:P}}fromBuffer(e,...t){if(!Buffer.isBuffer(e))throw new Error("buf must be a buffer");const i=new A(e);return this.fromBr(i,...t)}static fromBuffer(...e){return new this().fromBuffer(...e)}asyncFromBuffer(e,...t){if(!Buffer.isBuffer(e))throw new Error("buf must be a buffer");const i=new A(e);return this.asyncFromBr(i,...t)}static asyncFromBuffer(e,...t){return new this().asyncFromBuffer(e,...t)}fromFastBuffer(e,...t){return e.length===0?this:this.fromBuffer(e,...t)}static fromFastBuffer(...e){return new this().fromFastBuffer(...e)}toBuffer(...e){return this.toBw(...e).toBuffer()}asyncToBuffer(...e){return this.asyncToBw(...e).then(t=>t.toBuffer())}toFastBuffer(...e){return Object.keys(this).length===0?Buffer.alloc(0):this.toBuffer(...e)}fromHex(e,...t){if(!K(e))throw new Error("invalid hex string");const i=Buffer.from(e,"hex");return this.fromBuffer(i,...t)}static fromHex(e,...t){return new this().fromHex(e,...t)}asyncFromHex(e,...t){if(!K(e))throw new Error("invalid hex string");const i=Buffer.from(e,"hex");return this.asyncFromBuffer(i,...t)}static asyncFromHex(e,...t){return new this().asyncFromHex(e,...t)}fromFastHex(e,...t){if(!K(e))throw new Error("invalid hex string");const i=Buffer.from(e,"hex");return this.fromFastBuffer(i,...t)}static fromFastHex(e,...t){return new this().fromFastHex(e,...t)}toHex(...e){return this.toBuffer(...e).toString("hex")}asyncToHex(...e){return this.asyncToBuffer(...e).then(t=>t.toString("hex"))}toFastHex(...e){return this.toFastBuffer(...e).toString("hex")}fromString(e,...t){if(typeof e!="string")throw new Error("str must be a string");return this.fromHex(e,...t)}static fromString(e,...t){return new this().fromString(e,...t)}asyncFromString(e,...t){if(typeof e!="string")throw new Error("str must be a string");return this.asyncFromHex(e,...t)}static asyncFromString(e,...t){return new this().asyncFromString(e,...t)}toString(...e){return this.toHex(...e)}asyncToString(...e){return this.asyncToHex(...e)}fromJSON(e){throw new Error("not implemented")}static fromJSON(e,...t){return new this().fromJSON(e,...t)}asyncFromJSON(e,...t){throw new Error("not implemented")}static asyncFromJSON(e,...t){return new this().asyncFromJSON(e,...t)}toJSON(){var e={};for(var t in this)if(Array.isArray(this[t])){const o=[];for(var i in this[t])typeof this[t][i].toJSON=="function"?o.push(this[t][i].toJSON()):o.push(JSON.stringify(this[t][i]));e[t]=o}else if(this[t]===null)e[t]=this[t];else if(typeof this[t]=="object"&&typeof this[t].toJSON=="function")e[t]=this[t].toJSON();else if(typeof this[t]=="boolean"||typeof this[t]=="number"||typeof this[t]=="string")e[t]=this[t];else if(Buffer.isBuffer(this[t]))e[t]=this[t].toString("hex");else if(this[t]instanceof Map)e[t]=JSON.stringify(this[t]);else if(typeof this[t]=="object")throw new Error("not implemented");return e}asyncToJSON(){throw new Error("not implemented")}clone(){return this.cloneByJSON()}cloneByBuffer(){return new this.constructor().fromBuffer(this.toBuffer())}cloneByFastBuffer(){return new this.constructor().fromFastBuffer(this.toFastBuffer())}cloneByHex(){return new this.constructor().fromHex(this.toHex())}cloneByString(){return new this.constructor().fromString(this.toString())}cloneByJSON(){return new this.constructor().fromJSON(this.toJSON())}}class D extends L{static{f(this,"Base58")}constructor(e){super({buf:e})}fromHex(e){return this.fromBuffer(Buffer.from(e,"hex"))}toHex(){return this.toBuffer().toString("hex")}static encode(e){if(!Buffer.isBuffer(e))throw new Error("Input should be a buffer");return N().encode(e)}static decode(e){if(typeof e!="string")throw new Error("Input should be a string");return Buffer.from(N().decode(e))}fromBuffer(e){return this.buf=e,this}fromString(e){const t=D.decode(e);return this.buf=t,this}toBuffer(){return this.buf}toString(){return D.encode(this.buf)}}const G=f((d,e)=>{if(!Buffer.isBuffer(d)||!Buffer.isBuffer(e))throw new Error("buf1 and buf2 must be buffers");if(d.length!==e.length)return!1;let t=0;for(let i=0;i<d.length;i++){const o=d[i],m=e[i];t|=o^m}return t===0},"cmp");class q extends L{static{f(this,"WorkersResult")}constructor(e,t,i){super({resbuf:e,isError:t,id:i})}fromResult(e,t){return e.toFastBuffer?this.resbuf=e.toFastBuffer():Buffer.isBuffer(e)?this.resbuf=e:this.resbuf=Buffer.from(JSON.stringify(e)),this.isError=!1,this.id=t,this}static fromResult(e,t){return new this().fromResult(e,t)}fromError(e,t){return this.resbuf=Buffer.from(JSON.stringify(e.message)),this.isError=!0,this.id=t,this}toBw(e){return e||(e=new I),e.writeVarIntNum(this.resbuf.length),e.write(this.resbuf),e.writeUInt8(Number(this.isError)),e.writeVarIntNum(this.id),e}fromBr(e){const t=e.readVarIntNum();return this.resbuf=e.read(t),this.isError=!!e.readUInt8(),this.id=e.readVarIntNum(),this}}let j;class V{static{f(this,"Workers")}constructor(e=[],t=0,i=[],o=new Map){this.nativeWorkers=e,this.lastid=t,this.incompconsteRes=i,this.promisemap=o}asyncObjectMethod(e,t,i,o=this.lastid+1){if(!i)throw new Error("must specify args");const m=e[t](...i);return new q().fromResult(m,o)}static asyncObjectMethod(e,t,i,o){return j||(j=new V),j.asyncObjectMethod(e,t,i,o)}asyncClassMethod(e,t,i,o=this.lastid+1){if(!i)throw new Error("must specify args");const m=e[t](...i);return new q().fromResult(m,o)}static asyncClassMethod(e,t,i,o){return j||(j=new V),j.asyncClassMethod(e,t,i,o)}static endGlobalWorkers(){j&&!process.browser&&(j=void 0)}}class U{static{f(this,"Hash")}}U.sha1=function(d){if(!Buffer.isBuffer(d))throw new Error("sha1 hash must be of a buffer");const e=H().sha1,t=new e().update(d).digest();return Buffer.from(t)},U.sha1.blockSize=512,U.asyncSha1=async function(d){const e=[d];return(await V.asyncClassMethod(U,"sha1",e)).resbuf},U.sha256=function(d){if(!Buffer.isBuffer(d))throw new Error("sha256 hash must be of a buffer");const e=H().sha256,t=new e().update(d).digest();return Buffer.from(t)},U.sha256.blockSize=512,U.asyncSha256=async function(d){const e=[d];return(await V.asyncClassMethod(U,"sha256",e)).resbuf},U.sha256Sha256=function(d){try{return U.sha256(U.sha256(d))}catch(e){throw new Error("sha256Sha256 hash must be of a buffer: "+e)}},U.asyncSha256Sha256=async function(d){const e=[d];return(await V.asyncClassMethod(U,"sha256Sha256",e)).resbuf},U.ripemd160=function(d){if(!Buffer.isBuffer(d))throw new Error("ripemd160 hash must be of a buffer");const e=H().ripemd160,t=new e().update(d).digest();return Buffer.from(t)},U.asyncRipemd160=async function(d){const e=[d];return(await V.asyncClassMethod(U,"ripemd160",e)).resbuf},U.sha256Ripemd160=function(d){try{return U.ripemd160(U.sha256(d))}catch(e){throw new Error("sha256Ripemd160 hash must be of a buffer: "+e)}},U.asyncSha256Ripemd160=async function(d){const e=[d];return(await V.asyncClassMethod(U,"sha256Ripemd160",e)).resbuf},U.sha512=function(d){if(!Buffer.isBuffer(d))throw new Error("sha512 hash must be of a buffer");const e=H().sha512,t=new e().update(d).digest();return Buffer.from(t)},U.asyncSha512=async function(d){const e=[d];return(await V.asyncClassMethod(U,"sha512",e)).resbuf},U.sha512.blockSize=1024,U.hmac=function(d,e,t){if(d!=="sha1"&&d!=="sha256"&&d!=="sha512")throw new Error("invalid choice of hash function");const i=U[d];if(!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw new Error("data and key must be buffers");const o=i.blockSize/8;if(t.length>o&&(t=i(t)),t.length<o){const P=Buffer.alloc(o);P.fill(0,t.length),t.copy(P),t=P}const m=Buffer.alloc(o),O=Buffer.alloc(o);for(let P=0;P<o;P++)m[P]=92^t[P],O[P]=54^t[P];return i(Buffer.concat([m,i(Buffer.concat([O,e]))]))},U.sha1Hmac=function(d,e){return U.hmac("sha1",d,e)},U.asyncSha1Hmac=async function(d,e){const t=[d,e];return(await V.asyncClassMethod(U,"sha1Hmac",t)).resbuf},U.sha1Hmac.bitsize=160,U.sha256Hmac=function(d,e){return U.hmac("sha256",d,e)},U.asyncSha256Hmac=async function(d,e){const t=[d,e];return(await V.asyncClassMethod(U,"sha256Hmac",t)).resbuf},U.sha256Hmac.bitsize=256,U.sha512Hmac=function(d,e){return U.hmac("sha512",d,e)},U.asyncSha512Hmac=async function(d,e){const t=[d,e];return(await V.asyncClassMethod(U,"sha512Hmac",t)).resbuf},U.sha512Hmac.bitsize=512;class de extends L{static{f(this,"Base58Check")}constructor(e){super({buf:e})}fromHex(e){return this.fromBuffer(Buffer.from(e,"hex"))}toHex(){return this.toBuffer().toString("hex")}static decode(e){if(typeof e!="string")throw new Error("Input must be a string");const t=D.decode(e);if(t.length<4)throw new Error("Input string too short");const i=t.slice(0,-4),o=t.slice(-4),O=U.sha256Sha256(i).slice(0,4);if(!G(o,O))throw new Error("Checksum mismatch");return i}static encode(e){if(!Buffer.isBuffer(e))throw new Error("Input must be a buffer");const t=Buffer.alloc(e.length+4),i=U.sha256Sha256(e);return e.copy(t),i.copy(t,e.length),D.encode(t)}fromBuffer(e){return this.buf=e,this}fromString(e){const t=de.decode(e);return this.buf=t,this}toBuffer(){return this.buf}toString(){return de.encode(this.buf)}}class ae{static{f(this,"Config")}constructor(e){this.keyDefined=t=>t in e,this.getValue=t=>e[t]}get(e){if(this.keyDefined(e))return this.getValue(e);throw new Error(`Unknown configuration: ${e}`)}}class Se{static{f(this,"ConfigBuilder")}constructor(){this.variables={}}build(){return new ae(this.variables)}addValue(e,t){if(t===void 0)throw new Error(`Failed to add "${e}" property. The value cannot be undefined`);if(e in this.variables)throw new Error(`"${e}" already has a value defined.`);return this.variables[e]=t,this}addValueWithDefault(e,t,i){if(i===void 0)throw new Error(`Failed to add "${e}" property. Default value cannot be undefined`);return this.addValue(e,t===void 0?i:t)}}const fe=new Se().addValue("NETWORK",process.env.NETWORK||"mainnet").build(),C={};if(C.Mainnet={MaxSize:33554432,Port:8333,Address:{pubKeyHash:0,payToScriptHash:5},Bip32:{pubKey:76067358,privKey:76066276},Block:{maxNBits:486604799,magicNum:3823236072},Msg:{magicNum:3823236072,versionBytesNum:70015},PrivKey:{versionByteNum:128},TxBuilder:{dust:0,feePerKbNum:50},Workers:{timeout:6e4}},C.Testnet=Object.assign({},C.Mainnet,{Port:18333,Address:{pubKeyHash:111,payToScriptHash:196},Bip32:{pubKey:70617039,privKey:70615956},Block:{maxNBits:486604799,magicNum:4108710900},Msg:{magicNum:4108710900,versionBytesNum:70015},PrivKey:{versionByteNum:239}}),C.Regtest=Object.assign({},C.Mainnet,{Port:18444,Address:{pubKeyHash:111,payToScriptHash:196},Bip32:{pubKey:70617039,privKey:70615956},Block:{maxNBits:545259519,magicNum:3669344250},Msg:{magicNum:3669344250,versionBytesNum:70015},PrivKey:{versionByteNum:239}}),C.STN=Object.assign({},C.Mainnet,{Port:9333,Address:{pubKeyHash:111,payToScriptHash:196},Bip32:{pubKey:70617039,privKey:70615956},Block:{maxNBits:486604799,magicNum:4224632057},Msg:{magicNum:4224632057,versionBytesNum:70015},PrivKey:{versionByteNum:239}}),fe.get("NETWORK")==="testnet")C.Default=Object.assign({},C.Testnet);else if(fe.get("NETWORK")==="mainnet")C.Default=Object.assign({},C.Mainnet);else if(fe.get("NETWORK")==="regtest")C.Default=Object.assign({},C.Regtest);else if(fe.get("NETWORK")==="stn")C.Default=Object.assign({},C.STN);else throw new Error(`must set network in environment variable - mainnet, testnet, regtest or stn?, received ${fe.get("NETWORK")}`);const b=f(d=>C.Mainnet.Msg.magicNum===d?C.Mainnet:C.Testnet.Msg.magicNum===d?C.Testnet:C.Regtest.Msg.magicNum===d?C.Regtest:C.STN.Msg.magicNum===d?C.STN:C.Default,"getConstants"),r={FALSE:0,0:0,PUSHDATA1:76,PUSHDATA2:77,PUSHDATA4:78,"1NEGATE":79,RESERVED:80,TRUE:81,1:81,2:82,3:83,4:84,5:85,6:86,7:87,8:88,9:89,10:90,11:91,12:92,13:93,14:94,15:95,16:96,NOP:97,VER:98,IF:99,NOTIF:100,VERIF:101,VERNOTIF:102,ELSE:103,ENDIF:104,VERIFY:105,RETURN:106,TOALTSTACK:107,FROMALTSTACK:108,"2DROP":109,"2DUP":110,"3DUP":111,"2OVER":112,"2ROT":113,"2SWAP":114,IFDUP:115,DEPTH:116,DROP:117,DUP:118,NIP:119,OVER:120,PICK:121,ROLL:122,ROT:123,SWAP:124,TUCK:125,CAT:126,SUBSTR:127,SPLIT:127,LEFT:128,NUM2BIN:128,RIGHT:129,BIN2NUM:129,SIZE:130,INVERT:131,AND:132,OR:133,XOR:134,EQUAL:135,EQUALVERIFY:136,RESERVED1:137,RESERVED2:138,"1ADD":139,"1SUB":140,"2MUL":141,"2DIV":142,NEGATE:143,ABS:144,NOT:145,"0NOTEQUAL":146,ADD:147,SUB:148,MUL:149,DIV:150,MOD:151,LSHIFT:152,RSHIFT:153,BOOLAND:154,BOOLOR:155,NUMEQUAL:156,NUMEQUALVERIFY:157,NUMNOTEQUAL:158,LESSTHAN:159,GREATERTHAN:160,LESSTHANOREQUAL:161,GREATERTHANOREQUAL:162,MIN:163,MAX:164,WITHIN:165,RIPEMD160:166,SHA1:167,SHA256:168,HASH160:169,HASH256:170,CODESEPARATOR:171,CHECKSIG:172,CHECKSIGVERIFY:173,CHECKMULTISIG:174,CHECKMULTISIGVERIFY:175,NOP1:176,NOP2:177,CHECKLOCKTIMEVERIFY:177,NOP3:178,CHECKSEQUENCEVERIFY:178,NOP4:179,NOP5:180,NOP6:181,NOP7:182,NOP8:183,NOP9:184,NOP10:185,SMALLDATA:249,SMALLINTEGER:250,PUBKEYS:251,PUBKEYHASH:253,PUBKEY:254,INVALIDOPCODE:255},a={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_SPLIT:127,OP_LEFT:128,OP_NUM2BIN:128,OP_RIGHT:129,OP_BIN2NUM:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_CHECKSEQUENCEVERIFY:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_SMALLDATA:249,OP_SMALLINTEGER:250,OP_PUBKEYS:251,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255};class s extends L{static{f(this,"OpCode")}constructor(e){super({num:e})}fromNumber(e){return this.num=e,this}static fromNumber(e){return new this().fromNumber(e)}toNumber(){return this.num}fromString(e){const t=a[e];if(t===void 0)throw new Error("Invalid opCodeStr");return this.num=t,this}fromNoOpString(e){const t=r[e];if(t===void 0)throw new Error("Invalid opCodeStr");return this.num=t,this}static fromString(e){return new this().fromString(e)}static fromNoOpString(e){return new this().fromNoOpString(e)}toString(){const e=s.str[this.num];return e===void 0?this.num>0&&this.num<s.OP_PUSHDATA1?this.num.toString():"OP_"+this.num.toNumber():e}toNoOpString(){const e=s.noopstr[this.num];return e===void 0?this.num>0&&this.num<s.OP_PUSHDATA1?this.num.toString():this.num.toNumber():e}}s.str={},s.noopstr={};for(const d in a)s[d]=a[d],Object.prototype.hasOwnProperty.call(a,d)&&(s.str[a[d]]=d);for(const d in r)s[d]=r[d],Object.prototype.hasOwnProperty.call(r,d)&&(s.noopstr[r[d]]=d);const h=u().curves.secp256k1,y=h.curve.point().constructor;class S extends y{static{f(this,"Point")}constructor(e,t,i){super(h.curve,e,t,i)}static fromX(e,t){const i=h.curve.pointFromX(t,e);return Object.create(S.prototype).copyFrom(i)}copyFrom(e){if(!(e instanceof y))throw new Error("point should be an external point");return Object.keys(e).forEach(function(t){this[t]=e[t]}.bind(this)),this}add(e){return e=y.prototype.add.call(this,e),Object.create(S.prototype).copyFrom(e)}mul(e){if(!e.lt(S.getN()))throw new Error("point mul out of range");const t=y.prototype.mul.call(this,e);return Object.create(S.prototype).copyFrom(t)}mulAdd(e,t,i){const o=y.prototype.mulAdd.call(this,e,t,i);return t=Object.create(S.prototype),t.copyFrom(o)}getX(){const e=y.prototype.getX.call(this),t=Object.create(c.prototype);return e.copy(t),t}getY(){const e=y.prototype.getY.call(this),t=Object.create(c.prototype);return e.copy(t),t}fromX(e,t){const i=S.fromX(e,t);return this.copyFrom(i)}toJSON(){return{x:this.getX().toString(),y:this.getY().toString()}}fromJSON(e){const t=new c().fromString(e.x),i=new c().fromString(e.y),o=new S(t,i);return this.copyFrom(o)}toString(){return JSON.stringify(this.toJSON())}fromString(e){const t=JSON.parse(e),i=new S().fromJSON(t);return this.copyFrom(i)}static getG(){const e=h.curve.g;return Object.create(S.prototype).copyFrom(e)}static getN(){return new c(h.curve.n.toArray())}validate(){if(S.fromX(this.getY().isOdd(),this.getX()).getY().cmp(this.getY())!==0)throw new Error("Invalid y value of public key");if(!(this.getX().gt(-1)&&this.getX().lt(S.getN()))||!(this.getY().gt(-1)&&this.getY().lt(S.getN())))throw new Error("Point does not lie on the curve");return this}}class v extends L{static{f(this,"PubKey")}constructor(e,t){super({point:e,compressed:t})}fromJSON(e){return this.fromFastHex(e),this}toJSON(){return this.toFastHex()}fromPrivKey(e){return this.fromObject({point:S.getG().mul(e.bn),compressed:e.compressed}),this}static fromPrivKey(e){return new this().fromPrivKey(e)}async asyncFromPrivKey(e){const t=await V.asyncObjectMethod(this,"fromPrivKey",[e]);return this.fromFastBuffer(t.resbuf)}static asyncFromPrivKey(e){return new this().asyncFromPrivKey(e)}fromBuffer(e,t){return this.fromDer(e,t)}async asyncFromBuffer(e,t){const i=[e,t],o=await V.asyncObjectMethod(this,"fromBuffer",i);return this.fromFastBuffer(o.resbuf)}fromFastBuffer(e){if(e.length===0)return this;const t=!!e[0];return e=e.slice(1),this.fromDer(e),this.compressed=t,this}fromDer(e,t){if(t===void 0?t=!0:t=!1,e[0]===4||!t&&(e[0]===6||e[0]===7)){const i=e.slice(1,33),o=e.slice(33,65);if(i.length!==32||o.length!==32||e.length!==65)throw new Error("LEngth of x and y must be 32 bytes");const m=new c(i),O=new c(o);this.point=new S(m,O),this.compressed=!1}else if(e[0]===3){const i=e.slice(1),o=new c(i);this.fromX(!0,o),this.compressed=!0}else if(e[0]===2){const i=e.slice(1),o=new c(i);this.fromX(!1,o),this.compressed=!0}else throw new Error("Invalid DER format pubKey");return this}static fromDer(e,t){return new this().fromDer(e,t)}fromString(e){return this.fromDer(Buffer.from(e,"hex")),this}fromX(e,t){if(typeof e!="boolean")throw new Error("Must specify whether y is odd or not (true or false)");return this.point=S.fromX(e,t),this}static fromX(e,t){return new this().fromX(e,t)}toBuffer(){const e=this.compressed===void 0?!0:this.compressed;return this.toDer(e)}toFastBuffer(){if(!this.point)return Buffer.alloc(0);const e=new I,t=this.compressed===void 0?!0:!!this.compressed;return e.writeUInt8(Number(t)),e.write(this.toDer(!1)),e.toBuffer()}toDer(e){if(e=e===void 0?this.compressed:e,typeof e!="boolean")throw new Error("Must specify whether the public key is compressed or not (true or false)");const t=this.point.getX(),i=this.point.getY(),o=t.toBuffer({size:32}),m=i.toBuffer({size:32});let O;return e?(m[m.length-1]%2?O=Buffer.from([3]):O=Buffer.from([2]),Buffer.concat([O,o])):(O=Buffer.from([4]),Buffer.concat([O,o,m]))}toString(){const e=this.compressed===void 0?!0:this.compressed;return this.toDer(e).toString("hex")}static isCompressedOrUncompressed(e){if(e.length<33)return!1;if(e[0]===4){if(e.length!==65)return!1}else if(e[0]===2||e[0]===3){if(e.length!==33)return!1}else return!1;return!0}validate(){if(this.point.isInfinity())throw new Error("point: Point cannot be equal to Infinity");if(this.point.eq(new S(new c(0),new c(0))))throw new Error("point: Point cannot be equal to 0, 0");return this.point.validate(),this}}var n=Me(353),g=Me.n(n);class te{static{f(this,"Random")}}te.getRandomBuffer=function(d){return g()(d)};class re extends L{static{f(this,"priv_key_PrivKey")}constructor(e,t,i=null){super({bn:e,compressed:t}),i=i||C.Default.PrivKey,this.Constants=i}fromJSON(e){return this.fromHex(e),this}toJSON(){return this.toHex()}fromRandom(){let e,t,i;do e=te.getRandomBuffer(32),t=new c().fromBuffer(e),i=t.lt(S.getN());while(!i);return this.fromObject({bn:t,compressed:!0}),this}static fromRandom(){return new this().fromRandom()}toBuffer(){let e=this.compressed;e===void 0&&(e=!0);const t=this.bn.toBuffer({size:32});let i;return e?i=Buffer.concat([Buffer.from([this.Constants.versionByteNum]),t,Buffer.from([1])]):i=Buffer.concat([Buffer.from([this.Constants.versionByteNum]),t]),i}fromBuffer(e){if(e.length===34&&e[33]===1)this.compressed=!0;else if(e.length===33)this.compressed=!1;else throw new Error("Length of privKey buffer must be 33 (uncompressed pubKey) or 34 (compressed pubKey)");if(e[0]!==this.Constants.versionByteNum)throw new Error("Invalid versionByteNum byte");return this.fromBn(new c().fromBuffer(e.slice(1,33)))}toBn(){return this.bn}fromBn(e){return this.bn=e,this}static fromBn(e){return new this().fromBn(e)}validate(){if(!this.bn.lt(S.getN()))throw new Error("Number must be less than N");if(typeof this.compressed!="boolean")throw new Error("Must specify whether the corresponding public key is compressed or not (true or false)");return this}toWif(){return de.encode(this.toBuffer())}fromWif(e){return this.fromBuffer(de.decode(e))}static fromWif(e){return new this().fromWif(e)}toString(){return this.toWif()}fromString(e){return this.fromWif(e)}}re.Mainnet=class extends re{constructor(d,e){super(d,e,C.Mainnet.PrivKey)}},re.Testnet=class extends re{constructor(d,e){super(d,e,C.Testnet.PrivKey)}};class J extends L{static{f(this,"Sig")}constructor(e,t,i,o,m){super({r:e,s:t,nHashType:i,recovery:o,compressed:m})}fromBuffer(e){try{return this.fromDer(e,!0)}catch{}try{return this.fromCompact(e)}catch{}return this.fromTxFormat(e)}toBuffer(){return this.nHashType!==void 0?this.toTxFormat():this.recovery!==void 0?this.toCompact():this.toDer()}fromCompact(e){let t=!0,i=e.slice(0,1)[0]-27-4;if(i<0&&(t=!1,i=i+4),!(i===0||i===1||i===2||i===3))throw new Error("i must be 0, 1, 2, or 3");this.compressed=t,this.recovery=i;const o=e.slice(1);return this.fromRS(o),this}static fromCompact(e){return new this().fromCompact(e)}fromRS(e){const t=e.slice(0,32),i=e.slice(32,64);if(t.length!==32)throw new Error("r must be 32 bytes");if(i.length!==32||e.length>64)throw new Error("s must be 32 bytes");return this.r=new c().fromBuffer(t),this.s=new c().fromBuffer(i),this}static fromRS(e){return new this().fromRS(e)}fromDer(e,t){const i=J.parseDer(e,t);return this.r=i.r,this.s=i.s,this}static fromDer(e,t){return new this().fromDer(e,t)}fromTxFormat(e){if(e.length===0)return this.r=new c(1),this.s=new c(1),this.nHashType=1,this;const t=e.readUInt8(e.length-1),i=e.slice(0,e.length-1);return this.fromDer(i,!1),this.nHashType=t,this}static fromTxFormat(e){return new this().fromTxFormat(e)}fromString(e){return this.fromHex(e)}static parseDer(e,t){if(t===void 0&&(t=!0),!Buffer.isBuffer(e))throw new Error("DER formatted signature should be a buffer");const i=e[0];if(i!==48)throw new Error("Header byte should be 0x30");let o=e[1];const m=e.slice(2).length;if(t&&o!==m)throw new Error("LEngth byte should length of what follows");o=o<m?o:m;const O=e[2];if(O!==2)throw new Error("Integer byte for r should be 0x02");const P=e[3],Z=e.slice(4,4+P),W=new c().fromBuffer(Z),ie=e[4]===0;if(P!==Z.length)throw new Error("LEngth of r incorrect");const oe=e[4+P+0];if(oe!==2)throw new Error("Integer byte for s should be 0x02");const ne=e[4+P+1],ve=e.slice(4+P+2,4+P+2+ne),z=new c().fromBuffer(ve),Q=e[4+P+2+2]===0;if(ne!==ve.length)throw new Error("LEngth of s incorrect");const se=4+P+2+ne;if(o!==se-2)throw new Error("LEngth of signature incorrect");return{header:i,length:o,rheader:O,rlength:P,rneg:ie,rbuf:Z,r:W,sheader:oe,slength:ne,sneg:Q,sbuf:ve,s:z}}static IsTxDer(e){if(e.length<9||e.length>73||e[0]!==48||e[1]!==e.length-3)return!1;const t=e[3];if(5+t>=e.length)return!1;const i=e[5+t];if(t+i+7!==e.length)return!1;const o=e.slice(4);if(e[2]!==2||t===0||o[0]&128||t>1&&o[0]===0&&!(o[1]&128))return!1;const m=e.slice(6+t);return!(e[6+t-2]!==2||i===0||m[0]&128||i>1&&m[0]===0&&!(m[1]&128))}hasLowS(){return!(this.s.lt(1)||this.s.gt(c.fromBuffer(Buffer.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))))}hasDefinedHashType(){return!(this.nHashType<J.SIGHASH_ALL||this.nHashType>J.SIGHASH_SINGLE)}toCompact(e,t){if(e=typeof e=="number"?e:this.recovery,t=typeof t=="boolean"?t:this.compressed,!(e===0||e===1||e===2||e===3))throw new Error("recovery must be equal to 0, 1, 2, or 3");let i=e+27+4;t===!1&&(i=i-4);const o=Buffer.from([i]),m=this.r.toBuffer({size:32}),O=this.s.toBuffer({size:32});return Buffer.concat([o,m,O])}toRS(){return Buffer.concat([this.r.toBuffer({size:32}),this.s.toBuffer({size:32})])}toDer(){const e=this.r.toBuffer(),t=this.s.toBuffer(),i=e[0]&128,o=t[0]&128,m=i?Buffer.concat([Buffer.from([0]),e]):e,O=o?Buffer.concat([Buffer.from([0]),t]):t,P=2+m.length+2+O.length,Z=m.length,W=O.length;return Buffer.concat([Buffer.from([48,P,2,Z]),m,Buffer.from([2,W]),O])}toTxFormat(){const e=this.toDer(),t=Buffer.alloc(1);return t.writeUInt8(this.nHashType,0),Buffer.concat([e,t])}toString(){return this.toHex()}}J.SIGHASH_ALL=1,J.SIGHASH_NONE=2,J.SIGHASH_SINGLE=3,J.SIGHASH_FORKID=64,J.SIGHASH_ANYONECANPAY=128;class ee extends L{static{f(this,"Script")}constructor(e=[]){super({chunks:e})}fromJSON(e){return this.fromString(e)}toJSON(){return this.toString()}fromBuffer(e){this.chunks=[];const t=new A(e);for(;!t.eof();){const i=t.readUInt8();let o=0,m=Buffer.from([]);if(i>0&&i<s.OP_PUSHDATA1)o=i,this.chunks.push({buf:t.read(o),len:o,opCodeNum:i});else if(i===s.OP_PUSHDATA1){try{o=t.readUInt8(),m=t.read(o)}catch{t.read()}this.chunks.push({buf:m,len:o,opCodeNum:i})}else if(i===s.OP_PUSHDATA2){try{o=t.readUInt16LE(),m=t.read(o)}catch{t.read()}this.chunks.push({buf:m,len:o,opCodeNum:i})}else if(i===s.OP_PUSHDATA4){try{o=t.readUInt32LE(),m=t.read(o)}catch{t.read()}this.chunks.push({buf:m,len:o,opCodeNum:i})}else this.chunks.push({opCodeNum:i})}return this}toBuffer(){const e=new I;for(let t=0;t<this.chunks.length;t++){const i=this.chunks[t],o=i.opCodeNum;e.writeUInt8(o),i.buf&&(o<s.OP_PUSHDATA1?e.write(i.buf):o===s.OP_PUSHDATA1?(e.writeUInt8(i.len),e.write(i.buf)):o===s.OP_PUSHDATA2?(e.writeUInt16LE(i.len),e.write(i.buf)):o===s.OP_PUSHDATA4&&(e.writeUInt32LE(i.len),e.write(i.buf)))}return e.toBuffer()}fromString(e){if(this.chunks=[],e===""||e===void 0)return this;const t=e.split(" ");let i=0;for(;i<t.length;){const o=t[i];let m;try{m=new s().fromString(o).toNumber()}catch{}if(m===void 0)if(m=parseInt(o,10),m>0&&m<s.OP_PUSHDATA1)this.chunks.push({buf:Buffer.from(t[i+1].slice(2),"hex"),len:m,opCodeNum:m}),i=i+2;else if(m===0)this.chunks.push({opCodeNum:0}),i=i+1;else throw new Error("Invalid script");else if(m===s.OP_PUSHDATA1||m===s.OP_PUSHDATA2||m===s.OP_PUSHDATA4){if(t[i+2].slice(0,2)!=="0x")throw new Error("Pushdata data must start with 0x");this.chunks.push({buf:Buffer.from(t[i+2].slice(2),"hex"),len:parseInt(t[i+1],10),opCodeNum:m}),i=i+3}else this.chunks.push({opCodeNum:m}),i=i+1}return this}toString(e={noOp:!1}){let t="";for(let i=0;i<this.chunks.length;i++){const o=this.chunks[i],m=o.opCodeNum.hasOwnProperty("num")?o.opCodeNum.num:o.opCodeNum;o.buf?((m===s.OP_PUSHDATA1||m===s.OP_PUSHDATA2||m===s.OP_PUSHDATA4)&&(t=e.noOp?t+" "+new s(m).toNoOpString():t+" "+new s(m).toString()),t=t+" "+o.len,t=t+" 0x"+o.buf.toString("hex")):s.str[m]!==void 0||s.noopstr[m]!==void 0?t=e.noOp?t+" "+new s(m).toNoOpString():t+" "+new s(m).toString():t=t+" 0x"+m.toString(16)}return t.substr(1)}fromBitcoindString(e){const t=new I,i=e.split(" ");let o;for(o=0;o<i.length;o++){const O=i[o];if(O!=="")if(O[0]==="0"&&O[1]==="x"){const P=O.slice(2);t.write(Buffer.from(P,"hex"))}else if(O[0]==="'"){const P=O.slice(1,O.length-1),Z=Buffer.from(P),W=new ee().writeBuffer(Z).toBuffer();t.write(W)}else if(s["OP_"+O]!==void 0){const P="OP_"+O,Z=s[P];t.writeUInt8(Z)}else if(typeof s[O]=="number"){const Z=s[O];t.writeUInt8(Z)}else{if(isNaN(parseInt(O,10)))throw new Error("Could not determine type of script value");{const P=new c(O),W=new ee().writeBn(P).toBuffer();t.write(W)}}}const m=t.toBuffer();return this.fromBuffer(m)}static fromBitcoindString(e){return new this().fromBitcoindString(e)}toBitcoindString(){let e="";for(let t=0;t<this.chunks.length;t++){const i=this.chunks[t];if(i.buf){const m=new ee([i]).toBuffer().toString("hex");e=e+" 0x"+m}else if(s.str[i.opCodeNum]!==void 0){const o=new s(i.opCodeNum).toString();e=e+" "+o.slice(3)}else e=e+" 0x"+i.opCodeNum.toString(16)}return e.substr(1)}fromAsmString(e){this.chunks=[];const t=e.split(" ");let i=0;for(;i<t.length;){const o=t[i];let m,O;try{m=s.fromString(o),O=m.toNumber()}catch{m=void 0,O=void 0}if(o==="0")O=0,this.chunks.push({opCodeNum:O}),i=i+1;else if(o==="-1")O=s.OP_1NEGATE,this.chunks.push({opCodeNum:O}),i=i+1;else if(m===void 0){const P=t[i],Z=Buffer.from(P,"hex");if(Z.toString("hex")!==P)throw new Error("invalid hex string in script");const W=Z.length;W>=0&&W<s.OP_PUSHDATA1?O=W:W<Math.pow(2,8)?O=s.OP_PUSHDATA1:W<Math.pow(2,16)?O=s.OP_PUSHDATA2:W<Math.pow(2,32)&&(O=s.OP_PUSHDATA4),this.chunks.push({buf:Z,len:Z.length,opCodeNum:O}),i=i+1}else this.chunks.push({opCodeNum:O}),i=i+1}return this}static fromAsmString(e){return new this().fromAsmString(e)}toAsmString(e={noOp:!1}){for(var t="",i=0;i<this.chunks.length;i++){var o=this.chunks[i];t+=this._chunkToString(o,e)}return t.substr(1)}_chunkToString(e,t={noOp:!1}){var i=e.opCodeNum,o="";if(e.buf)e.len>0&&(o=o+" "+e.buf.toString("hex"));else if(typeof s.str[i]<"u")i===0?o=o+" 0":i===79?o=o+" -1":o=t.noOp?o+" "+new s(i).toNoOpString():o+" "+new s(i).toString();else{var m=i.toString(16);m.length%2!==0&&(m="0"+m),o=o+" "+m}return o}fromOpReturnData(e){return this.writeOpCode(s.OP_RETURN),this.writeBuffer(e),this}static fromOpReturnData(e){return new this().fromOpReturnData(e)}fromSafeData(e){return this.writeOpCode(s.OP_FALSE),this.writeOpCode(s.OP_RETURN),this.writeBuffer(e),this}static fromSafeData(e){return new this().fromSafeData(e)}fromSafeDataArray(e){this.writeOpCode(s.OP_FALSE),this.writeOpCode(s.OP_RETURN);for(const t in e){const i=e[t];this.writeBuffer(i)}return this}static fromSafeDataArray(e){return new this().fromSafeDataArray(e)}getData(){if(this.isSafeDataOut())return this.chunks.slice(2).map(i=>i.buf);if(this.isOpReturn())return this.chunks.slice(1).map(i=>i.buf);throw new Error("Unrecognized script type to get data from")}fromPubKeyHash(e){if(e.length!==20)throw new Error("hashBuf must be a 20 byte buffer");return this.writeOpCode(s.OP_DUP),this.writeOpCode(s.OP_HASH160),this.writeBuffer(e),this.writeOpCode(s.OP_EQUALVERIFY),this.writeOpCode(s.OP_CHECKSIG),this}static fromPubKeyHash(e){return new this().fromPubKeyHash(e)}static sortPubKeys(e){return e.slice().sort((t,i)=>{const o=t.toBuffer(),m=i.toBuffer(),O=Math.max(o.length,m.length);for(let P=0;P<=O;P++){if(o[P]===void 0)return-1;if(m[P]===void 0)return 1;if(o[P]<m[P])return-1;if(o[P]>m[P])return 1}})}fromPubKeys(e,t,i=!0){if(typeof e!="number")throw new Error("m must be a number");i===!0&&(t=ee.sortPubKeys(t)),this.writeOpCode(e+s.OP_1-1);for(const o in t)this.writeBuffer(t[o].toBuffer());return this.writeOpCode(t.length+s.OP_1-1),this.writeOpCode(s.OP_CHECKMULTISIG),this}static fromPubKeys(e,t,i){return new this().fromPubKeys(e,t,i)}removeCodeseparators(){const e=[];for(let t=0;t<this.chunks.length;t++)this.chunks[t].opCodeNum!==s.OP_CODESEPARATOR&&e.push(this.chunks[t]);return this.chunks=e,this}isPushOnly(){for(let e=0;e<this.chunks.length;e++)if(this.chunks[e].opCodeNum>s.OP_16)return!1;return!0}isNonSpendable(){const e=this.chunks[0].opCodeNum===s.OP_FALSE,t=this.chunks[1]&&this.chunks[1].opCodeNum===s.OP_RETURN;return!!e&&!!t}isOpReturn(){return this.chunks[0].opCodeNum===s.OP_RETURN&&this.chunks.filter(e=>Buffer.isBuffer(e.buf)).length===this.chunks.slice(1).length}isSafeDataOut(){if(this.chunks.length<2||this.chunks[0].opCodeNum!==s.OP_FALSE)return!1;var e=this.chunks.slice(1),t=new ee(e);return t.isOpReturn()}isPubKeyHashOut(){return!!(this.chunks[0]&&this.chunks[0].opCodeNum===s.OP_DUP&&this.chunks[1]&&this.chunks[1].opCodeNum===s.OP_HASH160&&this.chunks[2].buf&&this.chunks[3]&&this.chunks[3].opCodeNum===s.OP_EQUALVERIFY&&this.chunks[4]&&this.chunks[4].opCodeNum===s.OP_CHECKSIG)}isPubKeyHashIn(){return!!(this.chunks.length===2&&(this.chunks[0].buf||this.chunks[0].opCodeNum===s.OP_0)&&(this.chunks[1].buf||this.chunks[0].opCodeNum===s.OP_0))}isScriptHashOut(){const e=this.toBuffer();return e.length===23&&e[0]===s.OP_HASH160&&e[1]===20&&e[22]===s.OP_EQUAL}isScriptHashIn(){if(!this.isPushOnly())return!1;try{new ee().fromBuffer(this.chunks[this.chunks.length-1].buf)}catch{return!1}return!0}isMultiSigOut(){const e=this.chunks[0].opCodeNum-s.OP_1+1;if(!(e>=1&&e<=16)||!this.chunks.slice(1,this.chunks.length-2).every(o=>{try{const m=o.buf;return new v().fromDer(m).validate(),!0}catch{return!1}}))return!1;const i=this.chunks[this.chunks.length-2].opCodeNum-s.OP_1+1;return!(!(i>=e&&i<=16)||this.chunks[1+i+1].opCodeNum!==s.OP_CHECKMULTISIG)}isMultiSigIn(){if(this.chunks[0].opCodeNum!==s.OP_0)return!1;const e=this.chunks.slice(1);return e.length<1?!1:e.every(t=>Buffer.isBuffer(t.buf)&&J.IsTxDer(t.buf))}findAndDelete(e){const t=e.toBuffer();for(let i=0;i<this.chunks.length;i++){const m=new ee([this.chunks[i]]).toBuffer();G(t,m)&&this.chunks.splice(i,1)}return this}writeScript(e){return this.chunks=this.chunks.concat(e.chunks),this}static writeScript(e){return new this().writeScript(e)}writeString(e){const t=new ee().fromString(e);return this.chunks=this.chunks.concat(t.chunks),this}static writeString(e){return new this().writeString(e)}writeOpCode(e){return this.chunks.push({opCodeNum:e}),this}static writeOpCode(e){return new this().writeOpCode(e)}setChunkOpCode(e,t){return this.chunks[e]={opCodeNum:t},this}writeBn(e){if(e.cmp(0)===s.OP_0)this.chunks.push({opCodeNum:s.OP_0});else if(e.cmp(-1)===0)this.chunks.push({opCodeNum:s.OP_1NEGATE});else if(e.cmp(1)>=0&&e.cmp(16)<=0)this.chunks.push({opCodeNum:e.toNumber()+s.OP_1-1});else{const t=e.toSm({endian:"little"});this.writeBuffer(t)}return this}static writeBn(e){return new this().writeBn(e)}writeNumber(e){return this.writeBn(new c().fromNumber(e)),this}static writeNumber(e){return new this().writeNumber(e)}setChunkBn(e,t){return this.chunks[e]=new ee().writeBn(t).chunks[0],this}writeBuffer(e){let t;const i=e.length;if(e.length>0&&e.length<s.OP_PUSHDATA1)t=e.length;else if(e.length===0)t=s.OP_0;else if(e.length<Math.pow(2,8))t=s.OP_PUSHDATA1;else if(e.length<Math.pow(2,16))t=s.OP_PUSHDATA2;else if(e.length<Math.pow(2,32))t=s.OP_PUSHDATA4;else throw new Error("You can't push that much data");return this.chunks.push({buf:e,len:i,opCodeNum:t}),this}static writeBuffer(e){return new this().writeBuffer(e)}setChunkBuffer(e,t){return this.chunks[e]=new ee().writeBuffer(t).chunks[0],this}checkMinimalPush(e){const t=this.chunks[e],i=t.buf,o=t.opCodeNum;return i?i.length===0?o===s.OP_0:i.length===1&&i[0]>=1&&i[0]<=16?o===s.OP_1+(i[0]-1):i.length===1&&i[0]===129?o===s.OP_1NEGATE:i.length<=75?o===i.length:i.length<=255?o===s.OP_PUSHDATA1:i.length<=65535?o===s.OP_PUSHDATA2:!0:!0}}class ue extends L{static{f(this,"Address")}constructor(e,t,i=null){super({versionByteNum:e,hashBuf:t}),i=i||C.Default.Address,this.Constants=i}fromBuffer(e){if(e.length!==21)throw new Error("address buffers must be exactly 21 bytes");if(e[0]!==this.Constants.pubKeyHash)throw new Error("address: invalid versionByteNum byte");return this.versionByteNum=e[0],this.hashBuf=e.slice(1),this}fromPubKeyHashBuf(e){return this.hashBuf=e,this.versionByteNum=this.Constants.pubKeyHash,this}static fromPubKeyHashBuf(e){return new this().fromPubKeyHashBuf(e)}fromPubKey(e){const t=U.sha256Ripemd160(e.toBuffer());return this.fromPubKeyHashBuf(t)}static fromPubKey(e){return new this().fromPubKey(e)}async asyncFromPubKey(e){const t=[e],i=await V.asyncObjectMethod(this,"fromPubKey",t);return this.fromFastBuffer(i.resbuf)}static asyncFromPubKey(e){return new this().asyncFromPubKey(e)}fromPrivKey(e){const t=new v().fromPrivKey(e),i=U.sha256Ripemd160(t.toBuffer());return this.fromPubKeyHashBuf(i)}static fromPrivKey(e){return new this().fromPrivKey(e)}async asyncFromPrivKey(e){const t=[e],i=await V.asyncObjectMethod(this,"fromPrivKey",t);return this.fromFastBuffer(i.resbuf)}static asyncFromPrivKey(e){return new this().fromPrivKey(e)}fromRandom(){const e=new re().fromRandom();return this.fromPrivKey(e)}static fromRandom(){return new this().fromRandom()}async asyncFromRandom(){const e=[],t=await V.asyncObjectMethod(this,"fromRandom",e);return this.fromFastBuffer(t.resbuf)}static asyncFromRandom(){return new this().fromRandom()}fromString(e){const t=de.decode(e);return this.fromBuffer(t)}async asyncFromString(e){const t=[e],i=await V.asyncObjectMethod(this,"fromString",t);return this.fromFastBuffer(i.resbuf)}static asyncFromString(e){return new this().asyncFromString(e)}static isValid(e){let t;try{t=new ue().fromString(e)}catch{return!1}return t.isValid()}isValid(){try{return this.validate(),!0}catch{return!1}}toTxOutScript(){const e=new ee;return e.writeOpCode(s.OP_DUP),e.writeOpCode(s.OP_HASH160),e.writeBuffer(this.hashBuf),e.writeOpCode(s.OP_EQUALVERIFY),e.writeOpCode(s.OP_CHECKSIG),e}fromTxInScript(e){const t=U.sha256Ripemd160(e.chunks[1].buf||Buffer.from("00".repeat(32),"hex"));return this.fromPubKeyHashBuf(t)}static fromTxInScript(e){return new this().fromTxInScript(e)}fromTxOutScript(e){return this.fromPubKeyHashBuf(e.chunks[2].buf)}static fromTxOutScript(e){return new this().fromTxOutScript(e)}toBuffer(){const e=Buffer.from([this.versionByteNum]);return Buffer.concat([e,this.hashBuf])}toJSON(){const e={};return this.hashBuf&&(e.hashBuf=this.hashBuf.toString("hex")),typeof this.versionByteNum<"u"&&(e.versionByteNum=this.versionByteNum),e}fromJSON(e){return e.hashBuf&&(this.hashBuf=Buffer.from(e.hashBuf,"hex")),typeof e.versionByteNum<"u"&&(this.versionByteNum=e.versionByteNum),this}toString(){return de.encode(this.toBuffer())}async asyncToString(){const e=[],t=await V.asyncObjectMethod(this,"toString",e);return JSON.parse(t.resbuf.toString())}validate(){if(!Buffer.isBuffer(this.hashBuf)||this.hashBuf.length!==20)throw new Error("hashBuf must be a buffer of 20 bytes");if(this.versionByteNum!==this.Constants.pubKeyHash)throw new Error("invalid versionByteNum");return this}}ue.Mainnet=class extends ue{constructor(d,e){super(d,e,C.Mainnet.Address)}},ue.Testnet=class extends ue{constructor(d,e){super(d,e,C.Testnet.Address)}};class ge extends L{static{f(this,"Bip32")}constructor(e,t,i,o,m,O,P,Z=null,W=re){super({versionBytesNum:e,depth:t,parentFingerPrint:i,childIndex:o,chainCode:m,privKey:O,pubKey:P}),Z=Z||C.Default.Bip32,this.Constants=Z,this.PrivKey=W}fromRandom(){return this.versionBytesNum=this.Constants.privKey,this.depth=0,this.parentFingerPrint=Buffer.from([0,0,0,0]),this.childIndex=0,this.chainCode=te.getRandomBuffer(32),this.privKey=new this.PrivKey().fromRandom(),this.pubKey=new v().fromPrivKey(this.privKey),this}static fromRandom(){return new this().fromRandom()}fromString(e){return this.fromBuffer(de.decode(e))}async asyncFromString(e){const t=[e],i=await V.asyncObjectMethod(this,"fromString",t);return this.fromFastBuffer(i.resbuf)}fromSeed(e){if(!Buffer.isBuffer(e))throw new Error("bytes must be a buffer");if(e.length<128/8)throw new Error("Need more than 128 bits of entropy");if(e.length>512/8)throw new Error("More than 512 bits of entropy is nonstandard");const t=U.sha512Hmac(e,Buffer.from("Bitcoin seed"));return this.depth=0,this.parentFingerPrint=Buffer.from([0,0,0,0]),this.childIndex=0,this.chainCode=t.slice(32,64),this.versionBytesNum=this.Constants.privKey,this.privKey=new this.PrivKey().fromBn(c().fromBuffer(t.slice(0,32))),this.pubKey=new v().fromPrivKey(this.privKey),this}static fromSeed(e){return new this().fromSeed(e)}async asyncFromSeed(e){const t=await V.asyncObjectMethod(this,"fromSeed",[e]);return this.fromFastBuffer(t.resbuf)}static asyncFromSeed(e){return new this().asyncFromSeed(e)}fromBuffer(e){if(e.length!==78)throw new Error("incorrect bip32 data length");this.versionBytesNum=e.slice(0,4).readUInt32BE(0),this.depth=e.slice(4,5).readUInt8(0),this.parentFingerPrint=e.slice(5,9),this.childIndex=e.slice(9,13).readUInt32BE(0),this.chainCode=e.slice(13,45);const t=e.slice(45,78),i=this.versionBytesNum===this.Constants.privKey,o=this.versionBytesNum===this.Constants.pubKey;if(i&&t[0]===0)this.privKey=new this.PrivKey().fromBn(c().fromBuffer(t.slice(1,33))),this.pubKey=new v().fromPrivKey(this.privKey);else if(o&&(t[0]===2||t[0]===3))this.pubKey=new v().fromDer(t);else throw new Error("Invalid key");return this}fromFastBuffer(e){if(e.length===0)return this;if(e.length!==78&&e.length!==111)throw new Error("incorrect bip32 fastBuffer data length: "+e.length);this.versionBytesNum=e.slice(0,4).readUInt32BE(0),this.depth=e.slice(4,5).readUInt8(0),this.parentFingerPrint=e.slice(5,9),this.childIndex=e.slice(9,13).readUInt32BE(0),this.chainCode=e.slice(13,45);const t=e.slice(45,e.length),i=this.versionBytesNum===this.Constants.privKey,o=this.versionBytesNum===this.Constants.pubKey;if(i&&t[0]===0&&e.length===78)this.privKey=new this.PrivKey().fromBn(c().fromBuffer(t.slice(1,33))),this.pubKey=new v().fromPrivKey(this.privKey);else if(o&&e.length===111)this.pubKey=new v().fromFastBuffer(t),this.pubKey.compressed=!0;else throw new Error("Invalid key");return this}derive(e){const t=e.split("/");if(e==="m")return this;let i=this;for(const o in t){const m=t[o];if(o==="0"){if(m!=="m")throw new Error("invalid path");continue}if(parseInt(m.replace("'",""),10).toString()!==m.replace("'",""))throw new Error("invalid path");const O=m.length>1&&m[m.length-1]==="'";let P=parseInt(O?m.slice(0,m.length-1):m,10)&2147483647;O&&(P+=2147483648),i=i.deriveChild(P)}return i}async asyncDerive(e){const t=await V.asyncObjectMethod(this,"derive",[e]);return new this.constructor().fromFastBuffer(t.resbuf)}deriveChild(e){if(typeof e!="number")throw new Error("i must be a number");let t=[];t.push(e>>24&255),t.push(e>>16&255),t.push(e>>8&255),t.push(e&255),t=Buffer.from(t);const i=(e&2147483648)!==0,o=this.versionBytesNum===this.Constants.privKey;if(i&&(!this.privKey||!o))throw new Error("Cannot do private key derivation without private key");let m=null;if(this.privKey){let P=null;i?P=Buffer.concat([Buffer.from([0]),this.privKey.bn.toBuffer({size:32}),t]):P=Buffer.concat([this.pubKey.toBuffer({size:32}),t]);const Z=U.sha512Hmac(P,this.chainCode),W=c().fromBuffer(Z.slice(0,32),{size:32}),ie=Z.slice(32,64),oe=W.add(this.privKey.bn).mod(S.getN());m=new this.constructor,m.chainCode=ie,m.privKey=new this.PrivKey().fromBn(oe),m.pubKey=new v().fromPrivKey(m.privKey)}else{const P=Buffer.concat([this.pubKey.toBuffer(),t]),Z=U.sha512Hmac(P,this.chainCode),W=c().fromBuffer(Z.slice(0,32)),ie=Z.slice(32,64),oe=S.getG().mul(W),ne=this.pubKey.point,ve=oe.add(ne),z=new v;z.point=ve,m=new this.constructor,m.chainCode=ie,m.pubKey=z}m.childIndex=e;const O=U.sha256Ripemd160(this.pubKey.toBuffer());return m.parentFingerPrint=O.slice(0,4),m.versionBytesNum=this.versionBytesNum,m.depth=this.depth+1,m}toPublic(){const e=new this.constructor().fromObject(this);return e.versionBytesNum=this.Constants.pubKey,e.privKey=void 0,e}toBuffer(){const e=this.versionBytesNum===this.Constants.privKey,t=this.versionBytesNum===this.Constants.pubKey;if(e)return new I().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).writeUInt8(0).write(this.privKey.bn.toBuffer({size:32})).toBuffer();if(t){if(this.pubKey.compressed===!1)throw new Error("cannot convert bip32 to buffer if pubKey is not compressed");return new I().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).write(this.pubKey.toBuffer()).toBuffer()}else throw new Error("bip32: invalid versionBytesNum byte")}toFastBuffer(){if(!this.versionBytesNum)return Buffer.alloc(0);const e=this.versionBytesNum===this.Constants.privKey,t=this.versionBytesNum===this.Constants.pubKey;if(e)return new I().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).writeUInt8(0).write(this.privKey.bn.toBuffer({size:32})).toBuffer();if(t)return new I().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).write(this.pubKey.toFastBuffer()).toBuffer();throw new Error("bip32: invalid versionBytesNum byte")}toString(){return de.encode(this.toBuffer())}async asyncToString(){const e=await V.asyncObjectMethod(this,"toString",[]);return JSON.parse(e.resbuf.toString())}toJSON(){return this.toFastHex()}fromJSON(e){return this.fromFastHex(e)}isPrivate(){return this.versionBytesNum===this.Constants.privKey}}ge.Mainnet=class extends ge{constructor(d,e,t,i,o,m,O){super(d,e,t,i,o,m,O,C.Mainnet.Bip32,re.Mainnet)}},ge.Testnet=class extends ge{constructor(d,e,t,i,o,m,O){super(d,e,t,i,o,m,O,C.Testnet.Bip32,re.Testnet)}};const De=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];De.space=" ";const ye=["\u3042\u3044\u3053\u304F\u3057\u3093","\u3042\u3044\u3055\u3064","\u3042\u3044\u3060","\u3042\u304A\u305E\u3089","\u3042\u304B\u3061\u3083\u3093","\u3042\u304D\u308B","\u3042\u3051\u304C\u305F","\u3042\u3051\u308B","\u3042\u3053\u304C\u308C\u308B","\u3042\u3055\u3044","\u3042\u3055\u3072","\u3042\u3057\u3042\u3068","\u3042\u3058\u308F\u3046","\u3042\u305A\u304B\u308B","\u3042\u305A\u304D","\u3042\u305D\u3076","\u3042\u305F\u3048\u308B","\u3042\u305F\u305F\u3081\u308B","\u3042\u305F\u308A\u307E\u3048","\u3042\u305F\u308B","\u3042\u3064\u3044","\u3042\u3064\u304B\u3046","\u3042\u3063\u3057\u3085\u304F","\u3042\u3064\u307E\u308A","\u3042\u3064\u3081\u308B","\u3042\u3066\u306A","\u3042\u3066\u306F\u307E\u308B","\u3042\u3072\u308B","\u3042\u3076\u3089","\u3042\u3076\u308B","\u3042\u3075\u308C\u308B","\u3042\u307E\u3044","\u3042\u307E\u3069","\u3042\u307E\u3084\u304B\u3059","\u3042\u307E\u308A","\u3042\u307F\u3082\u306E","\u3042\u3081\u308A\u304B","\u3042\u3084\u307E\u308B","\u3042\u3086\u3080","\u3042\u3089\u3044\u3050\u307E","\u3042\u3089\u3057","\u3042\u3089\u3059\u3058","\u3042\u3089\u305F\u3081\u308B","\u3042\u3089\u3086\u308B","\u3042\u3089\u308F\u3059","\u3042\u308A\u304C\u3068\u3046","\u3042\u308F\u305B\u308B","\u3042\u308F\u3066\u308B","\u3042\u3093\u3044","\u3042\u3093\u304C\u3044","\u3042\u3093\u3053","\u3042\u3093\u305C\u3093","\u3042\u3093\u3066\u3044","\u3042\u3093\u306A\u3044","\u3042\u3093\u307E\u308A","\u3044\u3044\u3060\u3059","\u3044\u304A\u3093","\u3044\u304C\u3044","\u3044\u304C\u304F","\u3044\u304D\u304A\u3044","\u3044\u304D\u306A\u308A","\u3044\u304D\u3082\u306E","\u3044\u304D\u308B","\u3044\u304F\u3058","\u3044\u304F\u3076\u3093","\u3044\u3051\u3070\u306A","\u3044\u3051\u3093","\u3044\u3053\u3046","\u3044\u3053\u304F","\u3044\u3053\u3064","\u3044\u3055\u307E\u3057\u3044","\u3044\u3055\u3093","\u3044\u3057\u304D","\u3044\u3058\u3085\u3046","\u3044\u3058\u3087\u3046","\u3044\u3058\u308F\u308B","\u3044\u305A\u307F","\u3044\u305A\u308C","\u3044\u305B\u3044","\u3044\u305B\u3048\u3073","\u3044\u305B\u304B\u3044","\u3044\u305B\u304D","\u3044\u305C\u3093","\u3044\u305D\u3046\u308D\u3046","\u3044\u305D\u304C\u3057\u3044","\u3044\u3060\u3044","\u3044\u3060\u304F","\u3044\u305F\u305A\u3089","\u3044\u305F\u307F","\u3044\u305F\u308A\u3042","\u3044\u3061\u304A\u3046","\u3044\u3061\u3058","\u3044\u3061\u3069","\u3044\u3061\u3070","\u3044\u3061\u3076","\u3044\u3061\u308A\u3085\u3046","\u3044\u3064\u304B","\u3044\u3063\u3057\u3085\u3093","\u3044\u3063\u305B\u3044","\u3044\u3063\u305D\u3046","\u3044\u3063\u305F\u3093","\u3044\u3063\u3061","\u3044\u3063\u3066\u3044","\u3044\u3063\u307D\u3046","\u3044\u3066\u3056","\u3044\u3066\u3093","\u3044\u3069\u3046","\u3044\u3068\u3053","\u3044\u306A\u3044","\u3044\u306A\u304B","\u3044\u306D\u3080\u308A","\u3044\u306E\u3061","\u3044\u306E\u308B","\u3044\u306F\u3064","\u3044\u3070\u308B","\u3044\u306F\u3093","\u3044\u3073\u304D","\u3044\u3072\u3093","\u3044\u3075\u304F","\u3044\u3078\u3093","\u3044\u307B\u3046","\u3044\u307F\u3093","\u3044\u3082\u3046\u3068","\u3044\u3082\u305F\u308C","\u3044\u3082\u308A","\u3044\u3084\u304C\u308B","\u3044\u3084\u3059","\u3044\u3088\u304B\u3093","\u3044\u3088\u304F","\u3044\u3089\u3044","\u3044\u3089\u3059\u3068","\u3044\u308A\u3050\u3061","\u3044\u308A\u3087\u3046","\u3044\u308C\u3044","\u3044\u308C\u3082\u306E","\u3044\u308C\u308B","\u3044\u308D\u3048\u3093\u3074\u3064","\u3044\u308F\u3044","\u3044\u308F\u3046","\u3044\u308F\u304B\u3093","\u3044\u308F\u3070","\u3044\u308F\u3086\u308B","\u3044\u3093\u3052\u3093\u307E\u3081","\u3044\u3093\u3055\u3064","\u3044\u3093\u3057\u3087\u3046","\u3044\u3093\u3088\u3046","\u3046\u3048\u304D","\u3046\u3048\u308B","\u3046\u304A\u3056","\u3046\u304C\u3044","\u3046\u304B\u3076","\u3046\u304B\u3079\u308B","\u3046\u304D\u308F","\u3046\u304F\u3089\u3044\u306A","\u3046\u304F\u308C\u308C","\u3046\u3051\u305F\u307E\u308F\u308B","\u3046\u3051\u3064\u3051","\u3046\u3051\u3068\u308B","\u3046\u3051\u3082\u3064","\u3046\u3051\u308B","\u3046\u3054\u304B\u3059","\u3046\u3054\u304F","\u3046\u3053\u3093","\u3046\u3055\u304E","\u3046\u3057\u306A\u3046","\u3046\u3057\u308D\u304C\u307F","\u3046\u3059\u3044","\u3046\u3059\u304E","\u3046\u3059\u3050\u3089\u3044","\u3046\u3059\u3081\u308B","\u3046\u305B\u3064","\u3046\u3061\u3042\u308F\u305B","\u3046\u3061\u304C\u308F","\u3046\u3061\u304D","\u3046\u3061\u3085\u3046","\u3046\u3063\u304B\u308A","\u3046\u3064\u304F\u3057\u3044","\u3046\u3063\u305F\u3048\u308B","\u3046\u3064\u308B","\u3046\u3069\u3093","\u3046\u306A\u304E","\u3046\u306A\u3058","\u3046\u306A\u305A\u304F","\u3046\u306A\u308B","\u3046\u306D\u308B","\u3046\u306E\u3046","\u3046\u3076\u3052","\u3046\u3076\u3054\u3048","\u3046\u307E\u308C\u308B","\u3046\u3081\u308B","\u3046\u3082\u3046","\u3046\u3084\u307E\u3046","\u3046\u3088\u304F","\u3046\u3089\u304C\u3048\u3059","\u3046\u3089\u3050\u3061","\u3046\u3089\u306A\u3044","\u3046\u308A\u3042\u3052","\u3046\u308A\u304D\u308C","\u3046\u308B\u3055\u3044","\u3046\u308C\u3057\u3044","\u3046\u308C\u3086\u304D","\u3046\u308C\u308B","\u3046\u308D\u3053","\u3046\u308F\u304D","\u3046\u308F\u3055","\u3046\u3093\u3053\u3046","\u3046\u3093\u3061\u3093","\u3046\u3093\u3066\u3093","\u3046\u3093\u3069\u3046","\u3048\u3044\u3048\u3093","\u3048\u3044\u304C","\u3048\u3044\u304D\u3087\u3046","\u3048\u3044\u3054","\u3048\u3044\u305B\u3044","\u3048\u3044\u3076\u3093","\u3048\u3044\u3088\u3046","\u3048\u3044\u308F","\u3048\u304A\u308A","\u3048\u304C\u304A","\u3048\u304C\u304F","\u3048\u304D\u305F\u3044","\u3048\u304F\u305B\u308B","\u3048\u3057\u3083\u304F","\u3048\u3059\u3066","\u3048\u3064\u3089\u3093","\u3048\u306E\u3050","\u3048\u307B\u3046\u307E\u304D","\u3048\u307B\u3093","\u3048\u307E\u304D","\u3048\u3082\u3058","\u3048\u3082\u306E","\u3048\u3089\u3044","\u3048\u3089\u3076","\u3048\u308A\u3042","\u3048\u3093\u3048\u3093","\u3048\u3093\u304B\u3044","\u3048\u3093\u304E","\u3048\u3093\u3052\u304D","\u3048\u3093\u3057\u3085\u3046","\u3048\u3093\u305C\u3064","\u3048\u3093\u305D\u304F","\u3048\u3093\u3061\u3087\u3046","\u3048\u3093\u3068\u3064","\u304A\u3044\u304B\u3051\u308B","\u304A\u3044\u3053\u3059","\u304A\u3044\u3057\u3044","\u304A\u3044\u3064\u304F","\u304A\u3046\u3048\u3093","\u304A\u3046\u3055\u307E","\u304A\u3046\u3058","\u304A\u3046\u305B\u3064","\u304A\u3046\u305F\u3044","\u304A\u3046\u3075\u304F","\u304A\u3046\u3079\u3044","\u304A\u3046\u3088\u3046","\u304A\u3048\u308B","\u304A\u304A\u3044","\u304A\u304A\u3046","\u304A\u304A\u3069\u304A\u308A","\u304A\u304A\u3084","\u304A\u304A\u3088\u305D","\u304A\u304B\u3048\u308A","\u304A\u304B\u305A","\u304A\u304C\u3080","\u304A\u304B\u308F\u308A","\u304A\u304E\u306A\u3046","\u304A\u304D\u308B","\u304A\u304F\u3055\u307E","\u304A\u304F\u3058\u3087\u3046","\u304A\u304F\u308A\u304C\u306A","\u304A\u304F\u308B","\u304A\u304F\u308C\u308B","\u304A\u3053\u3059","\u304A\u3053\u306A\u3046","\u304A\u3053\u308B","\u304A\u3055\u3048\u308B","\u304A\u3055\u306A\u3044","\u304A\u3055\u3081\u308B","\u304A\u3057\u3044\u308C","\u304A\u3057\u3048\u308B","\u304A\u3058\u304E","\u304A\u3058\u3055\u3093","\u304A\u3057\u3083\u308C","\u304A\u305D\u3089\u304F","\u304A\u305D\u308F\u308B","\u304A\u305F\u304C\u3044","\u304A\u305F\u304F","\u304A\u3060\u3084\u304B","\u304A\u3061\u3064\u304F","\u304A\u3063\u3068","\u304A\u3064\u308A","\u304A\u3067\u304B\u3051","\u304A\u3068\u3057\u3082\u306E","\u304A\u3068\u306A\u3057\u3044","\u304A\u3069\u308A","\u304A\u3069\u308D\u304B\u3059","\u304A\u3070\u3055\u3093","\u304A\u307E\u3044\u308A","\u304A\u3081\u3067\u3068\u3046","\u304A\u3082\u3044\u3067","\u304A\u3082\u3046","\u304A\u3082\u305F\u3044","\u304A\u3082\u3061\u3083","\u304A\u3084\u3064","\u304A\u3084\u3086\u3073","\u304A\u3088\u307C\u3059","\u304A\u3089\u3093\u3060","\u304A\u308D\u3059","\u304A\u3093\u304C\u304F","\u304A\u3093\u3051\u3044","\u304A\u3093\u3057\u3083","\u304A\u3093\u305B\u3093","\u304A\u3093\u3060\u3093","\u304A\u3093\u3061\u3085\u3046","\u304A\u3093\u3069\u3051\u3044","\u304B\u3042\u3064","\u304B\u3044\u304C","\u304C\u3044\u304D","\u304C\u3044\u3051\u3093","\u304C\u3044\u3053\u3046","\u304B\u3044\u3055\u3064","\u304B\u3044\u3057\u3083","\u304B\u3044\u3059\u3044\u3088\u304F","\u304B\u3044\u305C\u3093","\u304B\u3044\u305E\u3046\u3069","\u304B\u3044\u3064\u3046","\u304B\u3044\u3066\u3093","\u304B\u3044\u3068\u3046","\u304B\u3044\u3075\u304F","\u304C\u3044\u3078\u304D","\u304B\u3044\u307B\u3046","\u304B\u3044\u3088\u3046","\u304C\u3044\u3089\u3044","\u304B\u3044\u308F","\u304B\u3048\u308B","\u304B\u304A\u308A","\u304B\u304B\u3048\u308B","\u304B\u304C\u304F","\u304B\u304C\u3057","\u304B\u304C\u307F","\u304B\u304F\u3054","\u304B\u304F\u3068\u304F","\u304B\u3056\u308B","\u304C\u305E\u3046","\u304B\u305F\u3044","\u304B\u305F\u3061","\u304C\u3061\u3087\u3046","\u304C\u3063\u304D\u3085\u3046","\u304C\u3063\u3053\u3046","\u304C\u3063\u3055\u3093","\u304C\u3063\u3057\u3087\u3046","\u304B\u306A\u3056\u308F\u3057","\u304B\u306E\u3046","\u304C\u306F\u304F","\u304B\u3076\u304B","\u304B\u307B\u3046","\u304B\u307B\u3054","\u304B\u307E\u3046","\u304B\u307E\u307C\u3053","\u304B\u3081\u308C\u304A\u3093","\u304B\u3086\u3044","\u304B\u3088\u3046\u3073","\u304B\u3089\u3044","\u304B\u308B\u3044","\u304B\u308D\u3046","\u304B\u308F\u304F","\u304B\u308F\u3089","\u304C\u3093\u304B","\u304B\u3093\u3051\u3044","\u304B\u3093\u3053\u3046","\u304B\u3093\u3057\u3083","\u304B\u3093\u305D\u3046","\u304B\u3093\u305F\u3093","\u304B\u3093\u3061","\u304C\u3093\u3070\u308B","\u304D\u3042\u3044","\u304D\u3042\u3064","\u304D\u3044\u308D","\u304E\u3044\u3093","\u304D\u3046\u3044","\u304D\u3046\u3093","\u304D\u3048\u308B","\u304D\u304A\u3046","\u304D\u304A\u304F","\u304D\u304A\u3061","\u304D\u304A\u3093","\u304D\u304B\u3044","\u304D\u304B\u304F","\u304D\u304B\u3093\u3057\u3083","\u304D\u304D\u3066","\u304D\u304F\u3070\u308A","\u304D\u304F\u3089\u3052","\u304D\u3051\u3093\u305B\u3044","\u304D\u3053\u3046","\u304D\u3053\u3048\u308B","\u304D\u3053\u304F","\u304D\u3055\u3044","\u304D\u3055\u304F","\u304D\u3055\u307E","\u304D\u3055\u3089\u304E","\u304E\u3058\u304B\u304C\u304F","\u304E\u3057\u304D","\u304E\u3058\u305F\u3044\u3051\u3093","\u304E\u3058\u306B\u3063\u3066\u3044","\u304E\u3058\u3085\u3064\u3057\u3083","\u304D\u3059\u3046","\u304D\u305B\u3044","\u304D\u305B\u304D","\u304D\u305B\u3064","\u304D\u305D\u3046","\u304D\u305E\u304F","\u304D\u305E\u3093","\u304D\u305F\u3048\u308B","\u304D\u3061\u3087\u3046","\u304D\u3064\u3048\u3093","\u304E\u3063\u3061\u308A","\u304D\u3064\u3064\u304D","\u304D\u3064\u306D","\u304D\u3066\u3044","\u304D\u3069\u3046","\u304D\u3069\u304F","\u304D\u306A\u3044","\u304D\u306A\u304C","\u304D\u306A\u3053","\u304D\u306C\u3054\u3057","\u304D\u306D\u3093","\u304D\u306E\u3046","\u304D\u306E\u3057\u305F","\u304D\u306F\u304F","\u304D\u3073\u3057\u3044","\u304D\u3072\u3093","\u304D\u3075\u304F","\u304D\u3076\u3093","\u304D\u307C\u3046","\u304D\u307B\u3093","\u304D\u307E\u308B","\u304D\u307F\u3064","\u304D\u3080\u305A\u304B\u3057\u3044","\u304D\u3081\u308B","\u304D\u3082\u3060\u3081\u3057","\u304D\u3082\u3061","\u304D\u3082\u306E","\u304D\u3083\u304F","\u304D\u3084\u304F","\u304E\u3085\u3046\u306B\u304F","\u304D\u3088\u3046","\u304D\u3087\u3046\u308A\u3085\u3046","\u304D\u3089\u3044","\u304D\u3089\u304F","\u304D\u308A\u3093","\u304D\u308C\u3044","\u304D\u308C\u3064","\u304D\u308D\u304F","\u304E\u308D\u3093","\u304D\u308F\u3081\u308B","\u304E\u3093\u3044\u308D","\u304D\u3093\u304B\u304F\u3058","\u304D\u3093\u3058\u3087","\u304D\u3093\u3088\u3046\u3073","\u3050\u3042\u3044","\u304F\u3044\u305A","\u304F\u3046\u304B\u3093","\u304F\u3046\u304D","\u304F\u3046\u3050\u3093","\u304F\u3046\u3053\u3046","\u3050\u3046\u305B\u3044","\u304F\u3046\u305D\u3046","\u3050\u3046\u305F\u3089","\u304F\u3046\u3075\u304F","\u304F\u3046\u307C","\u304F\u304B\u3093","\u304F\u304D\u3087\u3046","\u304F\u3052\u3093","\u3050\u3053\u3046","\u304F\u3055\u3044","\u304F\u3055\u304D","\u304F\u3055\u3070\u306A","\u304F\u3055\u308B","\u304F\u3057\u3083\u307F","\u304F\u3057\u3087\u3046","\u304F\u3059\u306E\u304D","\u304F\u3059\u308A\u3086\u3073","\u304F\u305B\u3052","\u304F\u305B\u3093","\u3050\u305F\u3044\u3066\u304D","\u304F\u3060\u3055\u308B","\u304F\u305F\u3073\u308C\u308B","\u304F\u3061\u3053\u307F","\u304F\u3061\u3055\u304D","\u304F\u3064\u3057\u305F","\u3050\u3063\u3059\u308A","\u304F\u3064\u308D\u3050","\u304F\u3068\u3046\u3066\u3093","\u304F\u3069\u304F","\u304F\u306A\u3093","\u304F\u306D\u304F\u306D","\u304F\u306E\u3046","\u304F\u3075\u3046","\u304F\u307F\u3042\u308F\u305B","\u304F\u307F\u305F\u3066\u308B","\u304F\u3081\u308B","\u304F\u3084\u304F\u3057\u3087","\u304F\u3089\u3059","\u304F\u3089\u3079\u308B","\u304F\u308B\u307E","\u304F\u308C\u308B","\u304F\u308D\u3046","\u304F\u308F\u3057\u3044","\u3050\u3093\u304B\u3093","\u3050\u3093\u3057\u3087\u304F","\u3050\u3093\u305F\u3044","\u3050\u3093\u3066","\u3051\u3042\u306A","\u3051\u3044\u304B\u304F","\u3051\u3044\u3051\u3093","\u3051\u3044\u3053","\u3051\u3044\u3055\u3064","\u3052\u3044\u3058\u3085\u3064","\u3051\u3044\u305F\u3044","\u3052\u3044\u306E\u3046\u3058\u3093","\u3051\u3044\u308C\u304D","\u3051\u3044\u308D","\u3051\u304A\u3068\u3059","\u3051\u304A\u308A\u3082\u306E","\u3052\u304D\u304B","\u3052\u304D\u3052\u3093","\u3052\u304D\u3060\u3093","\u3052\u304D\u3061\u3093","\u3052\u304D\u3068\u3064","\u3052\u304D\u306F","\u3052\u304D\u3084\u304F","\u3052\u3053\u3046","\u3052\u3053\u304F\u3058\u3087\u3046","\u3052\u3056\u3044","\u3051\u3055\u304D","\u3052\u3056\u3093","\u3051\u3057\u304D","\u3051\u3057\u3054\u3080","\u3051\u3057\u3087\u3046","\u3052\u3059\u3068","\u3051\u305F\u3070","\u3051\u3061\u3083\u3063\u3077","\u3051\u3061\u3089\u3059","\u3051\u3064\u3042\u3064","\u3051\u3064\u3044","\u3051\u3064\u3048\u304D","\u3051\u3063\u3053\u3093","\u3051\u3064\u3058\u3087","\u3051\u3063\u305B\u304D","\u3051\u3063\u3066\u3044","\u3051\u3064\u307E\u3064","\u3052\u3064\u3088\u3046\u3073","\u3052\u3064\u308C\u3044","\u3051\u3064\u308D\u3093","\u3052\u3069\u304F","\u3051\u3068\u3070\u3059","\u3051\u3068\u308B","\u3051\u306A\u3052","\u3051\u306A\u3059","\u3051\u306A\u307F","\u3051\u306C\u304D","\u3052\u306D\u3064","\u3051\u306D\u3093","\u3051\u306F\u3044","\u3052\u3072\u3093","\u3051\u3076\u304B\u3044","\u3052\u307C\u304F","\u3051\u307E\u308A","\u3051\u307F\u304B\u308B","\u3051\u3080\u3057","\u3051\u3080\u308A","\u3051\u3082\u306E","\u3051\u3089\u3044","\u3051\u308D\u3051\u308D","\u3051\u308F\u3057\u3044","\u3051\u3093\u3044","\u3051\u3093\u3048\u3064","\u3051\u3093\u304A","\u3051\u3093\u304B","\u3052\u3093\u304D","\u3051\u3093\u3052\u3093","\u3051\u3093\u3053\u3046","\u3051\u3093\u3055\u304F","\u3051\u3093\u3057\u3085\u3046","\u3051\u3093\u3059\u3046","\u3052\u3093\u305D\u3046","\u3051\u3093\u3061\u304F","\u3051\u3093\u3066\u3044","\u3051\u3093\u3068\u3046","\u3051\u3093\u306A\u3044","\u3051\u3093\u306B\u3093","\u3052\u3093\u3076\u3064","\u3051\u3093\u307E","\u3051\u3093\u307F\u3093","\u3051\u3093\u3081\u3044","\u3051\u3093\u3089\u3093","\u3051\u3093\u308A","\u3053\u3042\u304F\u307E","\u3053\u3044\u306C","\u3053\u3044\u3073\u3068","\u3054\u3046\u3044","\u3053\u3046\u3048\u3093","\u3053\u3046\u304A\u3093","\u3053\u3046\u304B\u3093","\u3054\u3046\u304D\u3085\u3046","\u3054\u3046\u3051\u3044","\u3053\u3046\u3053\u3046","\u3053\u3046\u3055\u3044","\u3053\u3046\u3058","\u3053\u3046\u3059\u3044","\u3054\u3046\u305B\u3044","\u3053\u3046\u305D\u304F","\u3053\u3046\u305F\u3044","\u3053\u3046\u3061\u3083","\u3053\u3046\u3064\u3046","\u3053\u3046\u3066\u3044","\u3053\u3046\u3069\u3046","\u3053\u3046\u306A\u3044","\u3053\u3046\u306F\u3044","\u3054\u3046\u307B\u3046","\u3054\u3046\u307E\u3093","\u3053\u3046\u3082\u304F","\u3053\u3046\u308A\u3064","\u3053\u3048\u308B","\u3053\u304A\u308A","\u3054\u304B\u3044","\u3054\u304C\u3064","\u3054\u304B\u3093","\u3053\u304F\u3054","\u3053\u304F\u3055\u3044","\u3053\u304F\u3068\u3046","\u3053\u304F\u306A\u3044","\u3053\u304F\u306F\u304F","\u3053\u3050\u307E","\u3053\u3051\u3044","\u3053\u3051\u308B","\u3053\u3053\u306E\u304B","\u3053\u3053\u308D","\u3053\u3055\u3081","\u3053\u3057\u3064","\u3053\u3059\u3046","\u3053\u305B\u3044","\u3053\u305B\u304D","\u3053\u305C\u3093","\u3053\u305D\u3060\u3066","\u3053\u305F\u3044","\u3053\u305F\u3048\u308B","\u3053\u305F\u3064","\u3053\u3061\u3087\u3046","\u3053\u3063\u304B","\u3053\u3064\u3053\u3064","\u3053\u3064\u3070\u3093","\u3053\u3064\u3076","\u3053\u3066\u3044","\u3053\u3066\u3093","\u3053\u3068\u304C\u3089","\u3053\u3068\u3057","\u3053\u3068\u3070","\u3053\u3068\u308A","\u3053\u306A\u3054\u306A","\u3053\u306D\u3053\u306D","\u3053\u306E\u307E\u307E","\u3053\u306E\u307F","\u3053\u306E\u3088","\u3054\u306F\u3093","\u3053\u3072\u3064\u3058","\u3053\u3075\u3046","\u3053\u3075\u3093","\u3053\u307C\u308C\u308B","\u3054\u307E\u3042\u3076\u3089","\u3053\u307E\u304B\u3044","\u3054\u307E\u3059\u308A","\u3053\u307E\u3064\u306A","\u3053\u307E\u308B","\u3053\u3080\u304E\u3053","\u3053\u3082\u3058","\u3053\u3082\u3061","\u3053\u3082\u306E","\u3053\u3082\u3093","\u3053\u3084\u304F","\u3053\u3084\u307E","\u3053\u3086\u3046","\u3053\u3086\u3073","\u3053\u3088\u3044","\u3053\u3088\u3046","\u3053\u308A\u308B","\u3053\u308C\u304F\u3057\u3087\u3093","\u3053\u308D\u3063\u3051","\u3053\u308F\u3082\u3066","\u3053\u308F\u308C\u308B","\u3053\u3093\u3044\u3093","\u3053\u3093\u304B\u3044","\u3053\u3093\u304D","\u3053\u3093\u3057\u3085\u3046","\u3053\u3093\u3059\u3044","\u3053\u3093\u3060\u3066","\u3053\u3093\u3068\u3093","\u3053\u3093\u306A\u3093","\u3053\u3093\u3073\u306B","\u3053\u3093\u307D\u3093","\u3053\u3093\u307E\u3051","\u3053\u3093\u3084","\u3053\u3093\u308C\u3044","\u3053\u3093\u308F\u304F","\u3056\u3044\u3048\u304D","\u3055\u3044\u304B\u3044","\u3055\u3044\u304D\u3093","\u3056\u3044\u3052\u3093","\u3056\u3044\u3053","\u3055\u3044\u3057\u3087","\u3055\u3044\u305B\u3044","\u3056\u3044\u305F\u304F","\u3056\u3044\u3061\u3085\u3046","\u3055\u3044\u3066\u304D","\u3056\u3044\u308A\u3087\u3046","\u3055\u3046\u306A","\u3055\u304B\u3044\u3057","\u3055\u304C\u3059","\u3055\u304B\u306A","\u3055\u304B\u307F\u3061","\u3055\u304C\u308B","\u3055\u304E\u3087\u3046","\u3055\u304F\u3057","\u3055\u304F\u3072\u3093","\u3055\u304F\u3089","\u3055\u3053\u304F","\u3055\u3053\u3064","\u3055\u305A\u304B\u308B","\u3056\u305B\u304D","\u3055\u305F\u3093","\u3055\u3064\u3048\u3044","\u3056\u3064\u304A\u3093","\u3056\u3063\u304B","\u3056\u3064\u304C\u304F","\u3055\u3063\u304D\u3087\u304F","\u3056\u3063\u3057","\u3055\u3064\u3058\u3093","\u3056\u3063\u305D\u3046","\u3055\u3064\u305F\u3070","\u3055\u3064\u307E\u3044\u3082","\u3055\u3066\u3044","\u3055\u3068\u3044\u3082","\u3055\u3068\u3046","\u3055\u3068\u304A\u3084","\u3055\u3068\u3057","\u3055\u3068\u308B","\u3055\u306E\u3046","\u3055\u3070\u304F","\u3055\u3073\u3057\u3044","\u3055\u3079\u3064","\u3055\u307B\u3046","\u3055\u307B\u3069","\u3055\u307E\u3059","\u3055\u307F\u3057\u3044","\u3055\u307F\u3060\u308C","\u3055\u3080\u3051","\u3055\u3081\u308B","\u3055\u3084\u3048\u3093\u3069\u3046","\u3055\u3086\u3046","\u3055\u3088\u3046","\u3055\u3088\u304F","\u3055\u3089\u3060","\u3056\u308B\u305D\u3070","\u3055\u308F\u3084\u304B","\u3055\u308F\u308B","\u3055\u3093\u3044\u3093","\u3055\u3093\u304B","\u3055\u3093\u304D\u3083\u304F","\u3055\u3093\u3053\u3046","\u3055\u3093\u3055\u3044","\u3056\u3093\u3057\u3087","\u3055\u3093\u3059\u3046","\u3055\u3093\u305B\u3044","\u3055\u3093\u305D","\u3055\u3093\u3061","\u3055\u3093\u307E","\u3055\u3093\u307F","\u3055\u3093\u3089\u3093","\u3057\u3042\u3044","\u3057\u3042\u3052","\u3057\u3042\u3055\u3063\u3066","\u3057\u3042\u308F\u305B","\u3057\u3044\u304F","\u3057\u3044\u3093","\u3057\u3046\u3061","\u3057\u3048\u3044","\u3057\u304A\u3051","\u3057\u304B\u3044","\u3057\u304B\u304F","\u3058\u304B\u3093","\u3057\u3054\u3068","\u3057\u3059\u3046","\u3058\u3060\u3044","\u3057\u305F\u3046\u3051","\u3057\u305F\u304E","\u3057\u305F\u3066","\u3057\u305F\u307F","\u3057\u3061\u3087\u3046","\u3057\u3061\u308A\u3093","\u3057\u3063\u304B\u308A","\u3057\u3064\u3058","\u3057\u3064\u3082\u3093","\u3057\u3066\u3044","\u3057\u3066\u304D","\u3057\u3066\u3064","\u3058\u3066\u3093","\u3058\u3069\u3046","\u3057\u306A\u304E\u308C","\u3057\u306A\u3082\u306E","\u3057\u306A\u3093","\u3057\u306D\u307E","\u3057\u306D\u3093","\u3057\u306E\u3050","\u3057\u306E\u3076","\u3057\u306F\u3044","\u3057\u3070\u304B\u308A","\u3057\u306F\u3064","\u3057\u306F\u3089\u3044","\u3057\u306F\u3093","\u3057\u3072\u3087\u3046","\u3057\u3075\u304F","\u3058\u3076\u3093","\u3057\u3078\u3044","\u3057\u307B\u3046","\u3057\u307B\u3093","\u3057\u307E\u3046","\u3057\u307E\u308B","\u3057\u307F\u3093","\u3057\u3080\u3051\u308B","\u3058\u3080\u3057\u3087","\u3057\u3081\u3044","\u3057\u3081\u308B","\u3057\u3082\u3093","\u3057\u3083\u3044\u3093","\u3057\u3083\u3046\u3093","\u3057\u3083\u304A\u3093","\u3058\u3083\u304C\u3044\u3082","\u3057\u3084\u304F\u3057\u3087","\u3057\u3083\u304F\u307B\u3046","\u3057\u3083\u3051\u3093","\u3057\u3083\u3053","\u3057\u3083\u3056\u3044","\u3057\u3083\u3057\u3093","\u3057\u3083\u305B\u3093","\u3057\u3083\u305D\u3046","\u3057\u3083\u305F\u3044","\u3057\u3083\u3061\u3087\u3046","\u3057\u3083\u3063\u304D\u3093","\u3058\u3083\u307E","\u3057\u3083\u308A\u3093","\u3057\u3083\u308C\u3044","\u3058\u3086\u3046","\u3058\u3085\u3046\u3057\u3087","\u3057\u3085\u304F\u306F\u304F","\u3058\u3085\u3057\u3093","\u3057\u3085\u3063\u305B\u304D","\u3057\u3085\u307F","\u3057\u3085\u3089\u3070","\u3058\u3085\u3093\u3070\u3093","\u3057\u3087\u3046\u304B\u3044","\u3057\u3087\u304F\u305F\u304F","\u3057\u3087\u3063\u3051\u3093","\u3057\u3087\u3069\u3046","\u3057\u3087\u3082\u3064","\u3057\u3089\u305B\u308B","\u3057\u3089\u3079\u308B","\u3057\u3093\u304B","\u3057\u3093\u3053\u3046","\u3058\u3093\u3058\u3083","\u3057\u3093\u305B\u3044\u3058","\u3057\u3093\u3061\u304F","\u3057\u3093\u308A\u3093","\u3059\u3042\u3052","\u3059\u3042\u3057","\u3059\u3042\u306A","\u305A\u3042\u3093","\u3059\u3044\u3048\u3044","\u3059\u3044\u304B","\u3059\u3044\u3068\u3046","\u305A\u3044\u3076\u3093","\u3059\u3044\u3088\u3046\u3073","\u3059\u3046\u304C\u304F","\u3059\u3046\u3058\u3064","\u3059\u3046\u305B\u3093","\u3059\u304A\u3069\u308A","\u3059\u304D\u307E","\u3059\u304F\u3046","\u3059\u304F\u306A\u3044","\u3059\u3051\u308B","\u3059\u3054\u3044","\u3059\u3053\u3057","\u305A\u3055\u3093","\u3059\u305A\u3057\u3044","\u3059\u3059\u3080","\u3059\u3059\u3081\u308B","\u3059\u3063\u304B\u308A","\u305A\u3063\u3057\u308A","\u305A\u3063\u3068","\u3059\u3066\u304D","\u3059\u3066\u308B","\u3059\u306D\u308B","\u3059\u306E\u3053","\u3059\u306F\u3060","\u3059\u3070\u3089\u3057\u3044","\u305A\u3072\u3087\u3046","\u305A\u3076\u306C\u308C","\u3059\u3076\u308A","\u3059\u3075\u308C","\u3059\u3079\u3066","\u3059\u3079\u308B","\u305A\u307B\u3046","\u3059\u307C\u3093","\u3059\u307E\u3044","\u3059\u3081\u3057","\u3059\u3082\u3046","\u3059\u3084\u304D","\u3059\u3089\u3059\u3089","\u3059\u308B\u3081","\u3059\u308C\u3061\u304C\u3046","\u3059\u308D\u3063\u3068","\u3059\u308F\u308B","\u3059\u3093\u305C\u3093","\u3059\u3093\u307D\u3046","\u305B\u3042\u3076\u3089","\u305B\u3044\u304B\u3064","\u305B\u3044\u3052\u3093","\u305B\u3044\u3058","\u305B\u3044\u3088\u3046","\u305B\u304A\u3046","\u305B\u304B\u3044\u304B\u3093","\u305B\u304D\u306B\u3093","\u305B\u304D\u3080","\u305B\u304D\u3086","\u305B\u304D\u3089\u3093\u3046\u3093","\u305B\u3051\u3093","\u305B\u3053\u3046","\u305B\u3059\u3058","\u305B\u305F\u3044","\u305B\u305F\u3051","\u305B\u3063\u304B\u304F","\u305B\u3063\u304D\u3083\u304F","\u305C\u3063\u304F","\u305B\u3063\u3051\u3093","\u305B\u3063\u3053\u3064","\u305B\u3063\u3055\u305F\u304F\u307E","\u305B\u3064\u305E\u304F","\u305B\u3064\u3060\u3093","\u305B\u3064\u3067\u3093","\u305B\u3063\u3071\u3093","\u305B\u3064\u3073","\u305B\u3064\u3076\u3093","\u305B\u3064\u3081\u3044","\u305B\u3064\u308A\u3064","\u305B\u306A\u304B","\u305B\u306E\u3073","\u305B\u306F\u3070","\u305B\u3073\u308D","\u305B\u307C\u306D","\u305B\u307E\u3044","\u305B\u307E\u308B","\u305B\u3081\u308B","\u305B\u3082\u305F\u308C","\u305B\u308A\u3075","\u305C\u3093\u3042\u304F","\u305B\u3093\u3044","\u305B\u3093\u3048\u3044","\u305B\u3093\u304B","\u305B\u3093\u304D\u3087","\u305B\u3093\u304F","\u305B\u3093\u3052\u3093","\u305C\u3093\u3054","\u305B\u3093\u3055\u3044","\u305B\u3093\u3057\u3085","\u305B\u3093\u3059\u3044","\u305B\u3093\u305B\u3044","\u305B\u3093\u305E","\u305B\u3093\u305F\u304F","\u305B\u3093\u3061\u3087\u3046","\u305B\u3093\u3066\u3044","\u305B\u3093\u3068\u3046","\u305B\u3093\u306C\u304D","\u305B\u3093\u306D\u3093","\u305B\u3093\u3071\u3044","\u305C\u3093\u3076","\u305C\u3093\u307D\u3046","\u305B\u3093\u3080","\u305B\u3093\u3081\u3093\u3058\u3087","\u305B\u3093\u3082\u3093","\u305B\u3093\u3084\u304F","\u305B\u3093\u3086\u3046","\u305B\u3093\u3088\u3046","\u305C\u3093\u3089","\u305C\u3093\u308A\u3083\u304F","\u305B\u3093\u308C\u3044","\u305B\u3093\u308D","\u305D\u3042\u304F","\u305D\u3044\u3068\u3052\u308B","\u305D\u3044\u306D","\u305D\u3046\u304C\u3093\u304D\u3087\u3046","\u305D\u3046\u304D","\u305D\u3046\u3054","\u305D\u3046\u3057\u3093","\u305D\u3046\u3060\u3093","\u305D\u3046\u306A\u3093","\u305D\u3046\u3073","\u305D\u3046\u3081\u3093","\u305D\u3046\u308A","\u305D\u3048\u3082\u306E","\u305D\u3048\u3093","\u305D\u304C\u3044","\u305D\u3052\u304D","\u305D\u3053\u3046","\u305D\u3053\u305D\u3053","\u305D\u3056\u3044","\u305D\u3057\u306A","\u305D\u305B\u3044","\u305D\u305B\u3093","\u305D\u305D\u3050","\u305D\u3060\u3066\u308B","\u305D\u3064\u3046","\u305D\u3064\u3048\u3093","\u305D\u3063\u304B\u3093","\u305D\u3064\u304E\u3087\u3046","\u305D\u3063\u3051\u3064","\u305D\u3063\u3053\u3046","\u305D\u3063\u305B\u3093","\u305D\u3063\u3068","\u305D\u3068\u304C\u308F","\u305D\u3068\u3065\u3089","\u305D\u306A\u3048\u308B","\u305D\u306A\u305F","\u305D\u3075\u307C","\u305D\u307C\u304F","\u305D\u307C\u308D","\u305D\u307E\u3064","\u305D\u307E\u308B","\u305D\u3080\u304F","\u305D\u3080\u308A\u3048","\u305D\u3081\u308B","\u305D\u3082\u305D\u3082","\u305D\u3088\u304B\u305C","\u305D\u3089\u307E\u3081","\u305D\u308D\u3046","\u305D\u3093\u304B\u3044","\u305D\u3093\u3051\u3044","\u305D\u3093\u3056\u3044","\u305D\u3093\u3057\u3064","\u305D\u3093\u305E\u304F","\u305D\u3093\u3061\u3087\u3046","\u305E\u3093\u3073","\u305E\u3093\u3076\u3093","\u305D\u3093\u307F\u3093","\u305F\u3042\u3044","\u305F\u3044\u3044\u3093","\u305F\u3044\u3046\u3093","\u305F\u3044\u3048\u304D","\u305F\u3044\u304A\u3046","\u3060\u3044\u304C\u304F","\u305F\u3044\u304D","\u305F\u3044\u3050\u3046","\u305F\u3044\u3051\u3093","\u305F\u3044\u3053","\u305F\u3044\u3056\u3044","\u3060\u3044\u3058\u3087\u3046\u3076","\u3060\u3044\u3059\u304D","\u305F\u3044\u305B\u3064","\u305F\u3044\u305D\u3046","\u3060\u3044\u305F\u3044","\u305F\u3044\u3061\u3087\u3046","\u305F\u3044\u3066\u3044","\u3060\u3044\u3069\u3053\u308D","\u305F\u3044\u306A\u3044","\u305F\u3044\u306D\u3064","\u305F\u3044\u306E\u3046","\u305F\u3044\u306F\u3093","\u3060\u3044\u3072\u3087\u3046","\u305F\u3044\u3075\u3046","\u305F\u3044\u3078\u3093","\u305F\u3044\u307B","\u305F\u3044\u307E\u3064\u3070\u306A","\u305F\u3044\u307F\u3093\u3050","\u305F\u3044\u3080","\u305F\u3044\u3081\u3093","\u305F\u3044\u3084\u304D","\u305F\u3044\u3088\u3046","\u305F\u3044\u3089","\u305F\u3044\u308A\u3087\u304F","\u305F\u3044\u308B","\u305F\u3044\u308F\u3093","\u305F\u3046\u3048","\u305F\u3048\u308B","\u305F\u304A\u3059","\u305F\u304A\u308B","\u305F\u304A\u308C\u308B","\u305F\u304B\u3044","\u305F\u304B\u306D","\u305F\u304D\u3073","\u305F\u304F\u3055\u3093","\u305F\u3053\u304F","\u305F\u3053\u3084\u304D","\u305F\u3055\u3044","\u305F\u3057\u3056\u3093","\u3060\u3058\u3083\u308C","\u305F\u3059\u3051\u308B","\u305F\u305A\u3055\u308F\u308B","\u305F\u305D\u304C\u308C","\u305F\u305F\u304B\u3046","\u305F\u305F\u304F","\u305F\u3060\u3057\u3044","\u305F\u305F\u307F","\u305F\u3061\u3070\u306A","\u3060\u3063\u304B\u3044","\u3060\u3063\u304D\u3083\u304F","\u3060\u3063\u3053","\u3060\u3063\u3057\u3085\u3064","\u3060\u3063\u305F\u3044","\u305F\u3066\u308B","\u305F\u3068\u3048\u308B","\u305F\u306A\u3070\u305F","\u305F\u306B\u3093","\u305F\u306C\u304D","\u305F\u306E\u3057\u307F","\u305F\u306F\u3064","\u305F\u3076\u3093","\u305F\u3079\u308B","\u305F\u307C\u3046","\u305F\u307E\u3054","\u305F\u307E\u308B","\u3060\u3080\u308B","\u305F\u3081\u3044\u304D","\u305F\u3081\u3059","\u305F\u3081\u308B","\u305F\u3082\u3064","\u305F\u3084\u3059\u3044","\u305F\u3088\u308B","\u305F\u3089\u3059","\u305F\u308A\u304D\u307B\u3093\u304C\u3093","\u305F\u308A\u3087\u3046","\u305F\u308A\u308B","\u305F\u308B\u3068","\u305F\u308C\u308B","\u305F\u308C\u3093\u3068","\u305F\u308D\u3063\u3068","\u305F\u308F\u3080\u308C\u308B","\u3060\u3093\u3042\u3064","\u305F\u3093\u3044","\u305F\u3093\u304A\u3093","\u305F\u3093\u304B","\u305F\u3093\u304D","\u305F\u3093\u3051\u3093","\u305F\u3093\u3054","\u305F\u3093\u3055\u3093","\u305F\u3093\u3058\u3087\u3046\u3073","\u3060\u3093\u305B\u3044","\u305F\u3093\u305D\u304F","\u305F\u3093\u305F\u3044","\u3060\u3093\u3061","\u305F\u3093\u3066\u3044","\u305F\u3093\u3068\u3046","\u3060\u3093\u306A","\u305F\u3093\u306B\u3093","\u3060\u3093\u306D\u3064","\u305F\u3093\u306E\u3046","\u305F\u3093\u3074\u3093","\u3060\u3093\u307C\u3046","\u305F\u3093\u307E\u3064","\u305F\u3093\u3081\u3044","\u3060\u3093\u308C\u3064","\u3060\u3093\u308D","\u3060\u3093\u308F","\u3061\u3042\u3044","\u3061\u3042\u3093","\u3061\u3044\u304D","\u3061\u3044\u3055\u3044","\u3061\u3048\u3093","\u3061\u304B\u3044","\u3061\u304B\u3089","\u3061\u304D\u3085\u3046","\u3061\u304D\u3093","\u3061\u3051\u3044\u305A","\u3061\u3051\u3093","\u3061\u3053\u304F","\u3061\u3055\u3044","\u3061\u3057\u304D","\u3061\u3057\u308A\u3087\u3046","\u3061\u305B\u3044","\u3061\u305D\u3046","\u3061\u305F\u3044","\u3061\u305F\u3093","\u3061\u3061\u304A\u3084","\u3061\u3064\u3058\u3087","\u3061\u3066\u304D","\u3061\u3066\u3093","\u3061\u306C\u304D","\u3061\u306C\u308A","\u3061\u306E\u3046","\u3061\u3072\u3087\u3046","\u3061\u3078\u3044\u305B\u3093","\u3061\u307B\u3046","\u3061\u307E\u305F","\u3061\u307F\u3064","\u3061\u307F\u3069\u308D","\u3061\u3081\u3044\u3069","\u3061\u3083\u3093\u3053\u306A\u3079","\u3061\u3085\u3046\u3044","\u3061\u3086\u308A\u3087\u304F","\u3061\u3087\u3046\u3057","\u3061\u3087\u3055\u304F\u3051\u3093","\u3061\u3089\u3057","\u3061\u3089\u307F","\u3061\u308A\u304C\u307F","\u3061\u308A\u3087\u3046","\u3061\u308B\u3069","\u3061\u308F\u308F","\u3061\u3093\u305F\u3044","\u3061\u3093\u3082\u304F","\u3064\u3044\u304B","\u3064\u3044\u305F\u3061","\u3064\u3046\u304B","\u3064\u3046\u3058\u3087\u3046","\u3064\u3046\u306F\u3093","\u3064\u3046\u308F","\u3064\u304B\u3046","\u3064\u304B\u308C\u308B","\u3064\u304F\u306D","\u3064\u304F\u308B","\u3064\u3051\u306D","\u3064\u3051\u308B","\u3064\u3054\u3046","\u3064\u305F\u3048\u308B","\u3064\u3065\u304F","\u3064\u3064\u3058","\u3064\u3064\u3080","\u3064\u3068\u3081\u308B","\u3064\u306A\u304C\u308B","\u3064\u306A\u307F","\u3064\u306D\u3065\u306D","\u3064\u306E\u308B","\u3064\u3076\u3059","\u3064\u307E\u3089\u306A\u3044","\u3064\u307E\u308B","\u3064\u307F\u304D","\u3064\u3081\u305F\u3044","\u3064\u3082\u308A","\u3064\u3082\u308B","\u3064\u3088\u3044","\u3064\u308B\u307C","\u3064\u308B\u307F\u304F","\u3064\u308F\u3082\u306E","\u3064\u308F\u308A","\u3066\u3042\u3057","\u3066\u3042\u3066","\u3066\u3042\u307F","\u3066\u3044\u304A\u3093","\u3066\u3044\u304B","\u3066\u3044\u304D","\u3066\u3044\u3051\u3044","\u3066\u3044\u3053\u304F","\u3066\u3044\u3055\u3064","\u3066\u3044\u3057","\u3066\u3044\u305B\u3044","\u3066\u3044\u305F\u3044","\u3066\u3044\u3069","\u3066\u3044\u306D\u3044","\u3066\u3044\u3072\u3087\u3046","\u3066\u3044\u3078\u3093","\u3066\u3044\u307C\u3046","\u3066\u3046\u3061","\u3066\u304A\u304F\u308C","\u3066\u304D\u3068\u3046","\u3066\u304F\u3073","\u3067\u3053\u307C\u3053","\u3066\u3055\u304E\u3087\u3046","\u3066\u3055\u3052","\u3066\u3059\u308A","\u3066\u305D\u3046","\u3066\u3061\u304C\u3044","\u3066\u3061\u3087\u3046","\u3066\u3064\u304C\u304F","\u3066\u3064\u3065\u304D","\u3067\u3063\u3071","\u3066\u3064\u307C\u3046","\u3066\u3064\u3084","\u3067\u306C\u304B\u3048","\u3066\u306C\u304D","\u3066\u306C\u3050\u3044","\u3066\u306E\u3072\u3089","\u3066\u306F\u3044","\u3066\u3076\u304F\u308D","\u3066\u3075\u3060","\u3066\u307B\u3069\u304D","\u3066\u307B\u3093","\u3066\u307E\u3048","\u3066\u307E\u304D\u305A\u3057","\u3066\u307F\u3058\u304B","\u3066\u307F\u3084\u3052","\u3066\u3089\u3059","\u3066\u308C\u3073","\u3066\u308F\u3051","\u3066\u308F\u305F\u3057","\u3067\u3093\u3042\u3064","\u3066\u3093\u3044\u3093","\u3066\u3093\u304B\u3044","\u3066\u3093\u304D","\u3066\u3093\u3050","\u3066\u3093\u3051\u3093","\u3066\u3093\u3054\u304F","\u3066\u3093\u3055\u3044","\u3066\u3093\u3057","\u3066\u3093\u3059\u3046","\u3067\u3093\u3061","\u3066\u3093\u3066\u304D","\u3066\u3093\u3068\u3046","\u3066\u3093\u306A\u3044","\u3066\u3093\u3077\u3089","\u3066\u3093\u307C\u3046\u3060\u3044","\u3066\u3093\u3081\u3064","\u3066\u3093\u3089\u3093\u304B\u3044","\u3067\u3093\u308A\u3087\u304F","\u3067\u3093\u308F","\u3069\u3042\u3044","\u3068\u3044\u308C","\u3069\u3046\u304B\u3093","\u3068\u3046\u304D\u3085\u3046","\u3069\u3046\u3050","\u3068\u3046\u3057","\u3068\u3046\u3080\u304E","\u3068\u304A\u3044","\u3068\u304A\u304B","\u3068\u304A\u304F","\u3068\u304A\u3059","\u3068\u304A\u308B","\u3068\u304B\u3044","\u3068\u304B\u3059","\u3068\u304D\u304A\u308A","\u3068\u304D\u3069\u304D","\u3068\u304F\u3044","\u3068\u304F\u3057\u3085\u3046","\u3068\u304F\u3066\u3093","\u3068\u304F\u306B","\u3068\u304F\u3079\u3064","\u3068\u3051\u3044","\u3068\u3051\u308B","\u3068\u3053\u3084","\u3068\u3055\u304B","\u3068\u3057\u3087\u304B\u3093","\u3068\u305D\u3046","\u3068\u305F\u3093","\u3068\u3061\u3085\u3046","\u3068\u3063\u304D\u3085\u3046","\u3068\u3063\u304F\u3093","\u3068\u3064\u305C\u3093","\u3068\u3064\u306B\u3085\u3046","\u3068\u3069\u3051\u308B","\u3068\u3068\u306E\u3048\u308B","\u3068\u306A\u3044","\u3068\u306A\u3048\u308B","\u3068\u306A\u308A","\u3068\u306E\u3055\u307E","\u3068\u3070\u3059","\u3069\u3076\u304C\u308F","\u3068\u307B\u3046","\u3068\u307E\u308B","\u3068\u3081\u308B","\u3068\u3082\u3060\u3061","\u3068\u3082\u308B","\u3069\u3088\u3046\u3073","\u3068\u3089\u3048\u308B","\u3068\u3093\u304B\u3064","\u3069\u3093\u3076\u308A","\u306A\u3044\u304B\u304F","\u306A\u3044\u3053\u3046","\u306A\u3044\u3057\u3087","\u306A\u3044\u3059","\u306A\u3044\u305B\u3093","\u306A\u3044\u305D\u3046","\u306A\u304A\u3059","\u306A\u304C\u3044","\u306A\u304F\u3059","\u306A\u3052\u308B","\u306A\u3053\u3046\u3069","\u306A\u3055\u3051","\u306A\u305F\u3067\u3053\u3053","\u306A\u3063\u3068\u3046","\u306A\u3064\u3084\u3059\u307F","\u306A\u306A\u304A\u3057","\u306A\u306B\u3054\u3068","\u306A\u306B\u3082\u306E","\u306A\u306B\u308F","\u306A\u306E\u304B","\u306A\u3075\u3060","\u306A\u307E\u3044\u304D","\u306A\u307E\u3048","\u306A\u307E\u307F","\u306A\u307F\u3060","\u306A\u3081\u3089\u304B","\u306A\u3081\u308B","\u306A\u3084\u3080","\u306A\u3089\u3046","\u306A\u3089\u3073","\u306A\u3089\u3076","\u306A\u308C\u308B","\u306A\u308F\u3068\u3073","\u306A\u308F\u3070\u308A","\u306B\u3042\u3046","\u306B\u3044\u304C\u305F","\u306B\u3046\u3051","\u306B\u304A\u3044","\u306B\u304B\u3044","\u306B\u304C\u3066","\u306B\u304D\u3073","\u306B\u304F\u3057\u307F","\u306B\u304F\u307E\u3093","\u306B\u3052\u308B","\u306B\u3055\u3093\u304B\u305F\u3093\u305D","\u306B\u3057\u304D","\u306B\u305B\u3082\u306E","\u306B\u3061\u3058\u3087\u3046","\u306B\u3061\u3088\u3046\u3073","\u306B\u3063\u304B","\u306B\u3063\u304D","\u306B\u3063\u3051\u3044","\u306B\u3063\u3053\u3046","\u306B\u3063\u3055\u3093","\u306B\u3063\u3057\u3087\u304F","\u306B\u3063\u3059\u3046","\u306B\u3063\u305B\u304D","\u306B\u3063\u3066\u3044","\u306B\u306A\u3046","\u306B\u307B\u3093","\u306B\u307E\u3081","\u306B\u3082\u3064","\u306B\u3084\u308A","\u306B\u3085\u3046\u3044\u3093","\u306B\u308A\u3093\u3057\u3083","\u306B\u308F\u3068\u308A","\u306B\u3093\u3044","\u306B\u3093\u304B","\u306B\u3093\u304D","\u306B\u3093\u3052\u3093","\u306B\u3093\u3057\u304D","\u306B\u3093\u305A\u3046","\u306B\u3093\u305D\u3046","\u306B\u3093\u305F\u3044","\u306B\u3093\u3061","\u306B\u3093\u3066\u3044","\u306B\u3093\u306B\u304F","\u306B\u3093\u3077","\u306B\u3093\u307E\u308A","\u306B\u3093\u3080","\u306B\u3093\u3081\u3044","\u306B\u3093\u3088\u3046","\u306C\u3044\u304F\u304E","\u306C\u304B\u3059","\u306C\u3050\u3044\u3068\u308B","\u306C\u3050\u3046","\u306C\u304F\u3082\u308A","\u306C\u3059\u3080","\u306C\u307E\u3048\u3073","\u306C\u3081\u308A","\u306C\u3089\u3059","\u306C\u3093\u3061\u3083\u304F","\u306D\u3042\u3052","\u306D\u3044\u304D","\u306D\u3044\u308B","\u306D\u3044\u308D","\u306D\u3050\u305B","\u306D\u304F\u305F\u3044","\u306D\u304F\u3089","\u306D\u3053\u305C","\u306D\u3053\u3080","\u306D\u3055\u3052","\u306D\u3059\u3054\u3059","\u306D\u305D\u3079\u308B","\u306D\u3060\u3093","\u306D\u3064\u3044","\u306D\u3063\u3057\u3093","\u306D\u3064\u305E\u3046","\u306D\u3063\u305F\u3044\u304E\u3087","\u306D\u3076\u305D\u304F","\u306D\u3075\u3060","\u306D\u307C\u3046","\u306D\u307B\u308A\u306F\u307B\u308A","\u306D\u307E\u304D","\u306D\u307E\u308F\u3057","\u306D\u307F\u307F","\u306D\u3080\u3044","\u306D\u3080\u305F\u3044","\u306D\u3082\u3068","\u306D\u3089\u3046","\u306D\u308F\u3056","\u306D\u3093\u3044\u308A","\u306D\u3093\u304A\u3057","\u306D\u3093\u304B\u3093","\u306D\u3093\u304D\u3093","\u306D\u3093\u3050","\u306D\u3093\u3056","\u306D\u3093\u3057","\u306D\u3093\u3061\u3083\u304F","\u306D\u3093\u3069","\u306D\u3093\u3074","\u306D\u3093\u3076\u3064","\u306D\u3093\u307E\u3064","\u306D\u3093\u308A\u3087\u3046","\u306D\u3093\u308C\u3044","\u306E\u3044\u305A","\u306E\u304A\u3065\u307E","\u306E\u304C\u3059","\u306E\u304D\u306A\u307F","\u306E\u3053\u304E\u308A","\u306E\u3053\u3059","\u306E\u3053\u308B","\u306E\u305B\u308B","\u306E\u305E\u304F","\u306E\u305E\u3080","\u306E\u305F\u307E\u3046","\u306E\u3061\u307B\u3069","\u306E\u3063\u304F","\u306E\u3070\u3059","\u306E\u306F\u3089","\u306E\u3079\u308B","\u306E\u307C\u308B","\u306E\u307F\u3082\u306E","\u306E\u3084\u307E","\u306E\u3089\u3044\u306C","\u306E\u3089\u306D\u3053","\u306E\u308A\u3082\u306E","\u306E\u308A\u3086\u304D","\u306E\u308C\u3093","\u306E\u3093\u304D","\u3070\u3042\u3044","\u306F\u3042\u304F","\u3070\u3042\u3055\u3093","\u3070\u3044\u304B","\u3070\u3044\u304F","\u306F\u3044\u3051\u3093","\u306F\u3044\u3054","\u306F\u3044\u3057\u3093","\u306F\u3044\u3059\u3044","\u306F\u3044\u305B\u3093","\u306F\u3044\u305D\u3046","\u306F\u3044\u3061","\u3070\u3044\u3070\u3044","\u306F\u3044\u308C\u3064","\u306F\u3048\u308B","\u306F\u304A\u308B","\u306F\u304B\u3044","\u3070\u304B\u308A","\u306F\u304B\u308B","\u306F\u304F\u3057\u3085","\u306F\u3051\u3093","\u306F\u3053\u3076","\u306F\u3055\u307F","\u306F\u3055\u3093","\u306F\u3057\u3054","\u3070\u3057\u3087","\u306F\u3057\u308B","\u306F\u305B\u308B","\u3071\u305D\u3053\u3093","\u306F\u305D\u3093","\u306F\u305F\u3093","\u306F\u3061\u307F\u3064","\u306F\u3064\u304A\u3093","\u306F\u3063\u304B\u304F","\u306F\u3065\u304D","\u306F\u3063\u304D\u308A","\u306F\u3063\u304F\u3064","\u306F\u3063\u3051\u3093","\u306F\u3063\u3053\u3046","\u306F\u3063\u3055\u3093","\u306F\u3063\u3057\u3093","\u306F\u3063\u305F\u3064","\u306F\u3063\u3061\u3085\u3046","\u306F\u3063\u3066\u3093","\u306F\u3063\u3074\u3087\u3046","\u306F\u3063\u307D\u3046","\u306F\u306A\u3059","\u306F\u306A\u3073","\u306F\u306B\u304B\u3080","\u306F\u3076\u3089\u3057","\u306F\u307F\u304C\u304D","\u306F\u3080\u304B\u3046","\u306F\u3081\u3064","\u306F\u3084\u3044","\u306F\u3084\u3057","\u306F\u3089\u3046","\u306F\u308D\u3046\u3043\u3093","\u306F\u308F\u3044","\u306F\u3093\u3044","\u306F\u3093\u3048\u3044","\u306F\u3093\u304A\u3093","\u306F\u3093\u304B\u304F","\u306F\u3093\u304D\u3087\u3046","\u3070\u3093\u3050\u307F","\u306F\u3093\u3053","\u306F\u3093\u3057\u3083","\u306F\u3093\u3059\u3046","\u306F\u3093\u3060\u3093","\u3071\u3093\u3061","\u3071\u3093\u3064","\u306F\u3093\u3066\u3044","\u306F\u3093\u3068\u3057","\u306F\u3093\u306E\u3046","\u306F\u3093\u3071","\u306F\u3093\u3076\u3093","\u306F\u3093\u307A\u3093","\u306F\u3093\u307C\u3046\u304D","\u306F\u3093\u3081\u3044","\u306F\u3093\u3089\u3093","\u306F\u3093\u308D\u3093","\u3072\u3044\u304D","\u3072\u3046\u3093","\u3072\u3048\u308B","\u3072\u304B\u304F","\u3072\u304B\u308A","\u3072\u304B\u308B","\u3072\u304B\u3093","\u3072\u304F\u3044","\u3072\u3051\u3064","\u3072\u3053\u3046\u304D","\u3072\u3053\u304F","\u3072\u3055\u3044","\u3072\u3055\u3057\u3076\u308A","\u3072\u3055\u3093","\u3073\u3058\u3085\u3064\u304B\u3093","\u3072\u3057\u3087","\u3072\u305D\u304B","\u3072\u305D\u3080","\u3072\u305F\u3080\u304D","\u3072\u3060\u308A","\u3072\u305F\u308B","\u3072\u3064\u304E","\u3072\u3063\u3053\u3057","\u3072\u3063\u3057","\u3072\u3064\u3058\u3085\u3072\u3093","\u3072\u3063\u3059","\u3072\u3064\u305C\u3093","\u3074\u3063\u305F\u308A","\u3074\u3063\u3061\u308A","\u3072\u3064\u3088\u3046","\u3072\u3066\u3044","\u3072\u3068\u3054\u307F","\u3072\u306A\u307E\u3064\u308A","\u3072\u306A\u3093","\u3072\u306D\u308B","\u3072\u306F\u3093","\u3072\u3073\u304F","\u3072\u3072\u3087\u3046","\u3072\u307B\u3046","\u3072\u307E\u308F\u308A","\u3072\u307E\u3093","\u3072\u307F\u3064","\u3072\u3081\u3044","\u3072\u3081\u3058\u3057","\u3072\u3084\u3051","\u3072\u3084\u3059","\u3072\u3088\u3046","\u3073\u3087\u3046\u304D","\u3072\u3089\u304C\u306A","\u3072\u3089\u304F","\u3072\u308A\u3064","\u3072\u308A\u3087\u3046","\u3072\u308B\u307E","\u3072\u308B\u3084\u3059\u307F","\u3072\u308C\u3044","\u3072\u308D\u3044","\u3072\u308D\u3046","\u3072\u308D\u304D","\u3072\u308D\u3086\u304D","\u3072\u3093\u304B\u304F","\u3072\u3093\u3051\u3064","\u3072\u3093\u3053\u3093","\u3072\u3093\u3057\u3085","\u3072\u3093\u305D\u3046","\u3074\u3093\u3061","\u3072\u3093\u3071\u3093","\u3073\u3093\u307C\u3046","\u3075\u3042\u3093","\u3075\u3044\u3046\u3061","\u3075\u3046\u3051\u3044","\u3075\u3046\u305B\u3093","\u3077\u3046\u305F\u308D\u3046","\u3075\u3046\u3068\u3046","\u3075\u3046\u3075","\u3075\u3048\u308B","\u3075\u304A\u3093","\u3075\u304B\u3044","\u3075\u304D\u3093","\u3075\u304F\u3056\u3064","\u3075\u304F\u3076\u304F\u308D","\u3075\u3053\u3046","\u3075\u3055\u3044","\u3075\u3057\u304E","\u3075\u3058\u307F","\u3075\u3059\u307E","\u3075\u305B\u3044","\u3075\u305B\u3050","\u3075\u305D\u304F","\u3076\u305F\u306B\u304F","\u3075\u305F\u3093","\u3075\u3061\u3087\u3046","\u3075\u3064\u3046","\u3075\u3064\u304B","\u3075\u3063\u304B\u3064","\u3075\u3063\u304D","\u3075\u3063\u3053\u304F","\u3076\u3069\u3046","\u3075\u3068\u308B","\u3075\u3068\u3093","\u3075\u306E\u3046","\u3075\u306F\u3044","\u3075\u3072\u3087\u3046","\u3075\u3078\u3093","\u3075\u307E\u3093","\u3075\u307F\u3093","\u3075\u3081\u3064","\u3075\u3081\u3093","\u3075\u3088\u3046","\u3075\u308A\u3053","\u3075\u308A\u308B","\u3075\u308B\u3044","\u3075\u3093\u3044\u304D","\u3076\u3093\u304C\u304F","\u3076\u3093\u3050","\u3075\u3093\u3057\u3064","\u3076\u3093\u305B\u304D","\u3075\u3093\u305D\u3046","\u3076\u3093\u307D\u3046","\u3078\u3044\u3042\u3093","\u3078\u3044\u304A\u3093","\u3078\u3044\u304C\u3044","\u3078\u3044\u304D","\u3078\u3044\u3052\u3093","\u3078\u3044\u3053\u3046","\u3078\u3044\u3055","\u3078\u3044\u3057\u3083","\u3078\u3044\u305B\u3064","\u3078\u3044\u305D","\u3078\u3044\u305F\u304F","\u3078\u3044\u3066\u3093","\u3078\u3044\u306D\u3064","\u3078\u3044\u308F","\u3078\u304D\u304C","\u3078\u3053\u3080","\u3079\u306B\u3044\u308D","\u3079\u306B\u3057\u3087\u3046\u304C","\u3078\u3089\u3059","\u3078\u3093\u304B\u3093","\u3079\u3093\u304D\u3087\u3046","\u3079\u3093\u3054\u3057","\u3078\u3093\u3055\u3044","\u3078\u3093\u305F\u3044","\u3079\u3093\u308A","\u307B\u3042\u3093","\u307B\u3044\u304F","\u307C\u3046\u304E\u3087","\u307B\u3046\u3053\u304F","\u307B\u3046\u305D\u3046","\u307B\u3046\u307B\u3046","\u307B\u3046\u3082\u3093","\u307B\u3046\u308A\u3064","\u307B\u3048\u308B","\u307B\u304A\u3093","\u307B\u304B\u3093","\u307B\u304D\u3087\u3046","\u307C\u304D\u3093","\u307B\u304F\u308D","\u307B\u3051\u3064","\u307B\u3051\u3093","\u307B\u3053\u3046","\u307B\u3053\u308B","\u307B\u3057\u3044","\u307B\u3057\u3064","\u307B\u3057\u3085","\u307B\u3057\u3087\u3046","\u307B\u305B\u3044","\u307B\u305D\u3044","\u307B\u305D\u304F","\u307B\u305F\u3066","\u307B\u305F\u308B","\u307D\u3061\u3076\u304F\u308D","\u307B\u3063\u304D\u3087\u304F","\u307B\u3063\u3055","\u307B\u3063\u305F\u3093","\u307B\u3068\u3093\u3069","\u307B\u3081\u308B","\u307B\u3093\u3044","\u307B\u3093\u304D","\u307B\u3093\u3051","\u307B\u3093\u3057\u3064","\u307B\u3093\u3084\u304F","\u307E\u3044\u306B\u3061","\u307E\u304B\u3044","\u307E\u304B\u305B\u308B","\u307E\u304C\u308B","\u307E\u3051\u308B","\u307E\u3053\u3068","\u307E\u3055\u3064","\u307E\u3058\u3081","\u307E\u3059\u304F","\u307E\u305C\u308B","\u307E\u3064\u308A","\u307E\u3068\u3081","\u307E\u306A\u3076","\u307E\u306C\u3051","\u307E\u306D\u304F","\u307E\u307B\u3046","\u307E\u3082\u308B","\u307E\u3086\u3052","\u307E\u3088\u3046","\u307E\u308D\u3084\u304B","\u307E\u308F\u3059","\u307E\u308F\u308A","\u307E\u308F\u308B","\u307E\u3093\u304C","\u307E\u3093\u304D\u3064","\u307E\u3093\u305E\u304F","\u307E\u3093\u306A\u304B","\u307F\u3044\u3089","\u307F\u3046\u3061","\u307F\u3048\u308B","\u307F\u304C\u304F","\u307F\u304B\u305F","\u307F\u304B\u3093","\u307F\u3051\u3093","\u307F\u3053\u3093","\u307F\u3058\u304B\u3044","\u307F\u3059\u3044","\u307F\u3059\u3048\u308B","\u307F\u305B\u308B","\u307F\u3063\u304B","\u307F\u3064\u304B\u308B","\u307F\u3064\u3051\u308B","\u307F\u3066\u3044","\u307F\u3068\u3081\u308B","\u307F\u306A\u3068","\u307F\u306A\u307F\u304B\u3055\u3044","\u307F\u306D\u3089\u308B","\u307F\u306E\u3046","\u307F\u306E\u304C\u3059","\u307F\u307B\u3093","\u307F\u3082\u3068","\u307F\u3084\u3052","\u307F\u3089\u3044","\u307F\u308A\u3087\u304F","\u307F\u308F\u304F","\u307F\u3093\u304B","\u307F\u3093\u305E\u304F","\u3080\u3044\u304B","\u3080\u3048\u304D","\u3080\u3048\u3093","\u3080\u304B\u3044","\u3080\u304B\u3046","\u3080\u304B\u3048","\u3080\u304B\u3057","\u3080\u304E\u3061\u3083","\u3080\u3051\u308B","\u3080\u3052\u3093","\u3080\u3055\u307C\u308B","\u3080\u3057\u3042\u3064\u3044","\u3080\u3057\u3070","\u3080\u3058\u3085\u3093","\u3080\u3057\u308D","\u3080\u3059\u3046","\u3080\u3059\u3053","\u3080\u3059\u3076","\u3080\u3059\u3081","\u3080\u305B\u308B","\u3080\u305B\u3093","\u3080\u3061\u3085\u3046","\u3080\u306A\u3057\u3044","\u3080\u306E\u3046","\u3080\u3084\u307F","\u3080\u3088\u3046","\u3080\u3089\u3055\u304D","\u3080\u308A\u3087\u3046","\u3080\u308D\u3093","\u3081\u3044\u3042\u3093","\u3081\u3044\u3046\u3093","\u3081\u3044\u3048\u3093","\u3081\u3044\u304B\u304F","\u3081\u3044\u304D\u3087\u304F","\u3081\u3044\u3055\u3044","\u3081\u3044\u3057","\u3081\u3044\u305D\u3046","\u3081\u3044\u3076\u3064","\u3081\u3044\u308C\u3044","\u3081\u3044\u308F\u304F","\u3081\u3050\u307E\u308C\u308B","\u3081\u3056\u3059","\u3081\u3057\u305F","\u3081\u305A\u3089\u3057\u3044","\u3081\u3060\u3064","\u3081\u307E\u3044","\u3081\u3084\u3059","\u3081\u3093\u304D\u3087","\u3081\u3093\u305B\u304D","\u3081\u3093\u3069\u3046","\u3082\u3046\u3057\u3042\u3052\u308B","\u3082\u3046\u3069\u3046\u3051\u3093","\u3082\u3048\u308B","\u3082\u304F\u3057","\u3082\u304F\u3066\u304D","\u3082\u304F\u3088\u3046\u3073","\u3082\u3061\u308D\u3093","\u3082\u3069\u308B","\u3082\u3089\u3046","\u3082\u3093\u304F","\u3082\u3093\u3060\u3044","\u3084\u304A\u3084","\u3084\u3051\u308B","\u3084\u3055\u3044","\u3084\u3055\u3057\u3044","\u3084\u3059\u3044","\u3084\u3059\u305F\u308D\u3046","\u3084\u3059\u307F","\u3084\u305B\u308B","\u3084\u305D\u3046","\u3084\u305F\u3044","\u3084\u3061\u3093","\u3084\u3063\u3068","\u3084\u3063\u3071\u308A","\u3084\u3076\u308B","\u3084\u3081\u308B","\u3084\u3084\u3053\u3057\u3044","\u3084\u3088\u3044","\u3084\u308F\u3089\u304B\u3044","\u3086\u3046\u304D","\u3086\u3046\u3073\u3093\u304D\u3087\u304F","\u3086\u3046\u3079","\u3086\u3046\u3081\u3044","\u3086\u3051\u3064","\u3086\u3057\u3085\u3064","\u3086\u305B\u3093","\u3086\u305D\u3046","\u3086\u305F\u304B","\u3086\u3061\u3083\u304F","\u3086\u3067\u308B","\u3086\u306B\u3085\u3046","\u3086\u3073\u308F","\u3086\u3089\u3044","\u3086\u308C\u308B","\u3088\u3046\u3044","\u3088\u3046\u304B","\u3088\u3046\u304D\u3085\u3046","\u3088\u3046\u3058","\u3088\u3046\u3059","\u3088\u3046\u3061\u3048\u3093","\u3088\u304B\u305C","\u3088\u304B\u3093","\u3088\u304D\u3093","\u3088\u304F\u305B\u3044","\u3088\u304F\u307C\u3046","\u3088\u3051\u3044","\u3088\u3054\u308C\u308B","\u3088\u3055\u3093","\u3088\u3057\u3085\u3046","\u3088\u305D\u3046","\u3088\u305D\u304F","\u3088\u3063\u304B","\u3088\u3066\u3044","\u3088\u3069\u304C\u308F\u304F","\u3088\u306D\u3064","\u3088\u3084\u304F","\u3088\u3086\u3046","\u3088\u308D\u3053\u3076","\u3088\u308D\u3057\u3044","\u3089\u3044\u3046","\u3089\u304F\u304C\u304D","\u3089\u304F\u3054","\u3089\u304F\u3055\u3064","\u3089\u304F\u3060","\u3089\u3057\u3093\u3070\u3093","\u3089\u305B\u3093","\u3089\u305E\u304F","\u3089\u305F\u3044","\u3089\u3063\u304B","\u3089\u308C\u3064","\u308A\u3048\u304D","\u308A\u304B\u3044","\u308A\u304D\u3055\u304F","\u308A\u304D\u305B\u3064","\u308A\u304F\u3050\u3093","\u308A\u304F\u3064","\u308A\u3051\u3093","\u308A\u3053\u3046","\u308A\u305B\u3044","\u308A\u305D\u3046","\u308A\u305D\u304F","\u308A\u3066\u3093","\u308A\u306D\u3093","\u308A\u3086\u3046","\u308A\u3085\u3046\u304C\u304F","\u308A\u3088\u3046","\u308A\u3087\u3046\u308A","\u308A\u3087\u304B\u3093","\u308A\u3087\u304F\u3061\u3083","\u308A\u3087\u3053\u3046","\u308A\u308A\u304F","\u308A\u308C\u304D","\u308A\u308D\u3093","\u308A\u3093\u3054","\u308B\u3044\u3051\u3044","\u308B\u3044\u3055\u3044","\u308B\u3044\u3058","\u308B\u3044\u305B\u304D","\u308B\u3059\u3070\u3093","\u308B\u308A\u304C\u308F\u3089","\u308C\u3044\u304B\u3093","\u308C\u3044\u304E","\u308C\u3044\u305B\u3044","\u308C\u3044\u305E\u3046\u3053","\u308C\u3044\u3068\u3046","\u308C\u3044\u307C\u3046","\u308C\u304D\u3057","\u308C\u304D\u3060\u3044","\u308C\u3093\u3042\u3044","\u308C\u3093\u3051\u3044","\u308C\u3093\u3053\u3093","\u308C\u3093\u3055\u3044","\u308C\u3093\u3057\u3085\u3046","\u308C\u3093\u305E\u304F","\u308C\u3093\u3089\u304F","\u308D\u3046\u304B","\u308D\u3046\u3054","\u308D\u3046\u3058\u3093","\u308D\u3046\u305D\u304F","\u308D\u304F\u304C","\u308D\u3053\u3064","\u308D\u3058\u3046\u3089","\u308D\u3057\u3085\u3064","\u308D\u305B\u3093","\u308D\u3066\u3093","\u308D\u3081\u3093","\u308D\u308C\u3064","\u308D\u3093\u304E","\u308D\u3093\u3071","\u308D\u3093\u3076\u3093","\u308D\u3093\u308A","\u308F\u304B\u3059","\u308F\u304B\u3081","\u308F\u304B\u3084\u307E","\u308F\u304B\u308C\u308B","\u308F\u3057\u3064","\u308F\u3058\u307E\u3057","\u308F\u3059\u308C\u3082\u306E","\u308F\u3089\u3046","\u308F\u308C\u308B"];ye.space="\u3000";const xe=["a\u0301baco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","accio\u0301n","aceite","acelga","acento","aceptar","a\u0301cido","aclarar","acne\u0301","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","ae\u0301reo","afectar","aficio\u0301n","afinar","afirmar","a\u0301gil","agitar","agoni\u0301a","agosto","agotar","agregar","agrio","agua","agudo","a\u0301guila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacra\u0301n","alambre","alarma","alba","a\u0301lbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodo\u0301n","aliado","aliento","alivio","alma","almeja","almi\u0301bar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","a\u0301mbar","a\u0301mbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","ande\u0301n","anemia","a\u0301ngulo","anillo","a\u0301nimo","ani\u0301s","anotar","antena","antiguo","antojo","anual","anular","anuncio","an\u0303adir","an\u0303ejo","an\u0303o","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","aran\u0303a","arar","a\u0301rbitro","a\u0301rbol","arbusto","archivo","arco","arder","ardilla","arduo","a\u0301rea","a\u0301rido","aries","armoni\u0301a","arne\u0301s","aroma","arpa","arpo\u0301n","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","a\u0301spero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","a\u0301tico","atleta","a\u0301tomo","atraer","atroz","atu\u0301n","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avio\u0301n","aviso","ayer","ayuda","ayuno","azafra\u0301n","azar","azote","azu\u0301car","azufre","azul","baba","babor","bache","bahi\u0301a","baile","bajar","balanza","balco\u0301n","balde","bambu\u0301","banco","banda","ban\u0303o","barba","barco","barniz","barro","ba\u0301scula","basto\u0301n","basura","batalla","bateri\u0301a","batir","batuta","bau\u0301l","bazar","bebe\u0301","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsa\u0301i","borde","borrar","bosque","bote","boti\u0301n","bo\u0301veda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufo\u0301n","bu\u0301ho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzo\u0301n","caballo","cabeza","cabina","cabra","cacao","cada\u0301ver","cadena","caer","cafe\u0301","cai\u0301da","caima\u0301n","caja","cajo\u0301n","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","ca\u0301ncer","candil","canela","canguro","canica","canto","can\u0303a","can\u0303o\u0301n","caoba","caos","capaz","capita\u0301n","capote","captar","capucha","cara","carbo\u0301n","ca\u0301rcel","careta","carga","carin\u0303o","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","ce\u0301lebre","celoso","ce\u0301lula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","ce\u0301sped","cetro","chacal","chaleco","champu\u0301","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclo\u0301n","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","cipre\u0301s","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","cli\u0301nica","cobre","coccio\u0301n","cochino","cocina","coco","co\u0301digo","codo","cofre","coger","cohete","coji\u0301n","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","co\u0301modo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazo\u0301n","corbata","corcho","cordo\u0301n","corona","correr","coser","cosmos","costa","cra\u0301neo","cra\u0301ter","crear","crecer","crei\u0301do","crema","cri\u0301a","crimen","cripta","crisis","cromo","cro\u0301nica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupo\u0301n","cu\u0301pula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","da\u0301til","deber","de\u0301bil","de\u0301cada","decir","dedo","defensa","definir","dejar","delfi\u0301n","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvi\u0301o","detalle","detener","deuda","di\u0301a","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difi\u0301cil","digno","dilema","diluir","dinero","directo","dirigir","disco","disen\u0303o","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","drago\u0301n","droga","ducha","duda","duelo","duen\u0303o","dulce","du\u0301o","duque","durar","dureza","duro","e\u0301bano","ebrio","echar","eco","ecuador","edad","edicio\u0301n","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","e\u0301lite","elixir","elogio","eludir","embudo","emitir","emocio\u0301n","empate","empen\u0303o","empleo","empresa","enano","encargo","enchufe","enci\u0301a","enemigo","enero","enfado","enfermo","engan\u0303o","enigma","enlace","enorme","enredo","ensayo","ensen\u0303ar","entero","entrar","envase","envi\u0301o","e\u0301poca","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espi\u0301a","esposa","espuma","esqui\u0301","estar","este","estilo","estufa","etapa","eterno","e\u0301tica","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","e\u0301xito","experto","explicar","exponer","extremo","fa\u0301brica","fa\u0301bula","fachada","fa\u0301cil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","farao\u0301n","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fe\u0301rtil","fervor","festi\u0301n","fiable","fianza","fiar","fibra","ficcio\u0301n","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flu\u0301or","fobia","foca","fogata","fogo\u0301n","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","fra\u0301gil","franja","frase","fraude","frei\u0301r","freno","fresa","fri\u0301o","frito","fruta","fuego","fuente","fuerza","fuga","fumar","funcio\u0301n","funda","furgo\u0301n","furia","fusil","fu\u0301tbol","futuro","gacela","gafas","gaita","gajo","gala","galeri\u0301a","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavila\u0301n","gemelo","gemir","gen","ge\u0301nero","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gra\u0301fico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","gru\u0301a","grueso","grumo","grupo","guante","guapo","guardia","guerra","gui\u0301a","guin\u0303o","guion","guiso","guitarra","gusano","gustar","haber","ha\u0301bil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazan\u0303a","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","he\u0301roe","hervir","hielo","hierro","hi\u0301gado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","hu\u0301medo","humilde","humo","hundir","huraca\u0301n","hurto","icono","ideal","idioma","i\u0301dolo","iglesia","iglu\u0301","igual","ilegal","ilusio\u0301n","imagen","ima\u0301n","imitar","impar","imperio","imponer","impulso","incapaz","i\u0301ndice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","intere\u0301s","i\u0301ntimo","intuir","inu\u0301til","invierno","ira","iris","ironi\u0301a","isla","islote","jabali\u0301","jabo\u0301n","jamo\u0301n","jarabe","jardi\u0301n","jarra","jaula","jazmi\u0301n","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","ju\u0301piter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladro\u0301n","lagarto","la\u0301grima","laguna","laico","lamer","la\u0301mina","la\u0301mpara","lana","lancha","langosta","lanza","la\u0301piz","largo","larva","la\u0301stima","lata","la\u0301tex","latir","laurel","lavar","lazo","leal","leccio\u0301n","leche","lector","leer","legio\u0301n","legumbre","lejano","lengua","lento","len\u0303a","leo\u0301n","leopardo","lesio\u0301n","letal","letra","leve","leyenda","libertad","libro","licor","li\u0301der","lidiar","lienzo","liga","ligero","lima","li\u0301mite","limo\u0301n","limpio","lince","lindo","li\u0301nea","lingote","lino","linterna","li\u0301quido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","locio\u0301n","loco","locura","lo\u0301gica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","mai\u0301z","maldad","maleta","malla","malo","mama\u0301","mambo","mamut","manco","mando","manejar","manga","maniqui\u0301","manjar","mano","manso","manta","man\u0303ana","mapa","ma\u0301quina","mar","marco","marea","marfil","margen","marido","ma\u0301rmol","marro\u0301n","martes","marzo","masa","ma\u0301scara","masivo","matar","materia","matiz","matriz","ma\u0301ximo","mayor","mazorca","mecha","medalla","medio","me\u0301dula","mejilla","mejor","melena","melo\u0301n","memoria","menor","mensaje","mente","menu\u0301","mercado","merengue","me\u0301rito","mes","meso\u0301n","meta","meter","me\u0301todo","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millo\u0301n","mimo","mina","minero","mi\u0301nimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","mocio\u0301n","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","mon\u0303o","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","mo\u0301vil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","mun\u0303eca","mural","muro","mu\u0301sculo","museo","musgo","mu\u0301sica","muslo","na\u0301car","nacio\u0301n","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","na\u0301usea","naval","nave","navidad","necio","ne\u0301ctar","negar","negocio","negro","neo\u0301n","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","nin\u0303ez","nin\u0303o","ni\u0301tido","nivel","nobleza","noche","no\u0301mina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","nu\u0301cleo","nudillo","nudo","nuera","nueve","nuez","nulo","nu\u0301mero","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","oce\u0301ano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oi\u0301do","oi\u0301r","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opcio\u0301n","o\u0301pera","opinar","oponer","optar","o\u0301ptica","opuesto","oracio\u0301n","orador","oral","o\u0301rbita","orca","orden","oreja","o\u0301rgano","orgi\u0301a","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadi\u0301a","oscuro","osezno","oso","ostra","oton\u0303o","otro","oveja","o\u0301vulo","o\u0301xido","oxi\u0301geno","oyente","ozono","pacto","padre","paella","pa\u0301gina","pago","pai\u0301s","pa\u0301jaro","palabra","palco","paleta","pa\u0301lido","palma","paloma","palpar","pan","panal","pa\u0301nico","pantera","pan\u0303uelo","papa\u0301","papel","papilla","paquete","parar","parcela","pared","parir","paro","pa\u0301rpado","parque","pa\u0301rrafo","parte","pasar","paseo","pasio\u0301n","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peato\u0301n","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldan\u0303o","pelea","peligro","pellejo","pelo","peluca","pena","pensar","pen\u0303o\u0301n","peo\u0301n","peor","pepino","pequen\u0303o","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pe\u0301simo","pestan\u0303a","pe\u0301talo","petro\u0301leo","pez","pezun\u0303a","picar","picho\u0301n","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","pin\u0303a","piojo","pipa","pirata","pisar","piscina","piso","pista","pito\u0301n","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesi\u0301a","poeta","polen","polici\u0301a","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porcio\u0301n","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","pri\u0301ncipe","prisio\u0301n","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","pro\u0301ximo","prueba","pu\u0301blico","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmo\u0301n","pulpo","pulso","puma","punto","pun\u0303al","pun\u0303o","pupa","pupila","pure\u0301","quedar","queja","quemar","querer","queso","quieto","qui\u0301mica","quince","quitar","ra\u0301bano","rabia","rabo","racio\u0301n","radical","rai\u0301z","rama","rampa","rancho","rango","rapaz","ra\u0301pido","rapto","rasgo","raspa","rato","rayo","raza","razo\u0301n","reaccio\u0301n","realidad","reban\u0303o","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refra\u0301n","refugio","regalo","regir","regla","regreso","rehe\u0301n","reino","rei\u0301r","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","reve\u0301s","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","ri\u0301gido","rigor","rinco\u0301n","rin\u0303o\u0301n","ri\u0301o","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubi\u0301","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sa\u0301bado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmo\u0301n","salo\u0301n","salsa","salto","salud","salvar","samba","sancio\u0301n","sandi\u0301a","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sarte\u0301n","sastre","sata\u0301n","sauna","saxofo\u0301n","seccio\u0301n","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","sen\u0303al","sen\u0303or","separar","sepia","sequi\u0301a","ser","serie","sermo\u0301n","servir","sesenta","sesio\u0301n","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","si\u0301laba","silbar","silencio","silla","si\u0301mbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","so\u0301lido","soltar","solucio\u0301n","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","soste\u0301n","so\u0301tano","suave","subir","suceso","sudor","suegra","suelo","suen\u0303o","suerte","sufrir","sujeto","sulta\u0301n","sumar","superar","suplir","suponer","supremo","sur","surco","suren\u0303o","surgir","susto","sutil","tabaco","tabique","tabla","tabu\u0301","taco","tacto","tajo","talar","talco","talento","talla","talo\u0301n","taman\u0303o","tambor","tango","tanque","tapa","tapete","tapia","tapo\u0301n","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazo\u0301n","teatro","techo","tecla","te\u0301cnica","tejado","tejer","tejido","tela","tele\u0301fono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teori\u0301a","terapia","terco","te\u0301rmino","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburo\u0301n","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","ti\u0301mido","timo","tinta","ti\u0301o","ti\u0301pico","tipo","tira","tiro\u0301n","tita\u0301n","ti\u0301tere","ti\u0301tulo","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","to\u0301rax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","to\u0301xico","trabajo","tractor","traer","tra\u0301fico","trago","traje","tramo","trance","trato","trauma","trazar","tre\u0301bol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tuberi\u0301a","tubo","tuerto","tumba","tumor","tu\u0301nel","tu\u0301nica","turbina","turismo","turno","tutor","ubicar","u\u0301lcera","umbral","unidad","unir","universo","uno","untar","un\u0303a","urbano","urbe","urgente","urna","usar","usuario","u\u0301til","utopi\u0301a","uva","vaca","vaci\u0301o","vacuna","vagar","vago","vaina","vajilla","vale","va\u0301lido","valle","valor","va\u0301lvula","vampiro","vara","variar","varo\u0301n","vaso","vecino","vector","vehi\u0301culo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vi\u0301a","viaje","vibrar","vicio","vi\u0301ctima","vida","vi\u0301deo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","vin\u0303edo","violi\u0301n","viral","virgo","virtud","visor","vi\u0301spera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volca\u0301n","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"];xe.space=" ";class Ge extends L{static{f(this,"Bip39")}constructor(e,t,i){super({mnemonic:e,seed:t,wordlist:i}),this.Wordlist=De,this.es=xe,this.jp=ye}setLang(e){switch(e){default:case"en":this.Wordlist=De;break;case"es":this.Wordlist=xe;break;case"jp":this.Wordlist=ye;break}}toBw(e){if(e||(e=new I),this.mnemonic){const t=Buffer.from(this.mnemonic);e.writeVarIntNum(t.length),e.write(t)}else e.writeVarIntNum(0);return this.seed?(e.writeVarIntNum(this.seed.length),e.write(this.seed)):e.writeVarIntNum(0),e}fromBr(e){const t=e.readVarIntNum();t>0&&(this.mnemonic=e.read(t).toString());const i=e.readVarIntNum();return i>0&&(this.seed=e.read(i)),this}fromRandom(e){if(e||(e=128),e%32!==0)throw new Error("bits must be multiple of 32");if(e<128)throw new Error("bits must be at least 128");const t=te.getRandomBuffer(e/8);return this.entropy2Mnemonic(t),this.mnemonic2Seed(),this}static fromRandom(e){return new this().fromRandom(e)}async asyncFromRandom(e){e||(e=128);const t=te.getRandomBuffer(e/8);let i=await V.asyncObjectMethod(this,"entropy2Mnemonic",[t]);const o=new Ge().fromFastBuffer(i.resbuf);return i=await V.asyncObjectMethod(o,"mnemonic2Seed",[]),this.fromFastBuffer(i.resbuf)}static asyncFromRandom(e){return new this().asyncFromRandom(e)}fromEntropy(e){return this.entropy2Mnemonic(e),this}static fromEntropy(e){return new this().fromEntropy(e)}async asyncFromEntropy(e){const t=await V.asyncObjectMethod(this,"fromEntropy",[e]);return this.fromFastBuffer(t.resbuf)}static asyncFromEntropy(e){return new this().asyncFromEntropy(e)}fromString(e){return this.mnemonic=e.trim(),this}toString(){return this.mnemonic}toSeed(e){return this.mnemonic2Seed(e),this.seed}async asyncToSeed(e){e===void 0&&(e="");const t=[e];return(await V.asyncObjectMethod(this,"toSeed",t)).resbuf}entropy2Mnemonic(e){if(!Buffer.isBuffer(e)||e.length<128/8)throw new Error("Entropy is less than 128 bits. It must be 128 bits or more.");const t=U.sha256(e);let i="";const o=e.length*8;for(let P=0;P<e.length;P++)i=i+("00000000"+e[P].toString(2)).slice(-8);let m=t[0].toString(2);if(m=("00000000"+m).slice(-8).slice(0,o/32),i=i+m,i.length%11!==0)throw new Error("internal error - entropy not an even multiple of 11 bits - "+i.length);let O="";for(let P=0;P<i.length/11;P++){O!==""&&(O=O+this.Wordlist.space);const Z=parseInt(i.slice(P*11,(P+1)*11),2);O=O+this.Wordlist[Z]}return this.mnemonic=O,this}check(){const t=this.mnemonic.split(this.Wordlist.space);let i="";for(let ie=0;ie<t.length;ie++){const oe=this.Wordlist.indexOf(t[ie]);if(oe<0)return!1;i=i+("00000000000"+oe.toString(2)).slice(-11)}if(i.length%11!==0)throw new Error("internal error - entropy not an even multiple of 11 bits - "+i.length);const o=i.length/33,m=i.slice(-o),O=i.slice(0,i.length-o),P=Buffer.alloc(O.length/8);for(let ie=0;ie<O.length/8;ie++)P.writeUInt8(parseInt(i.slice(ie*8,(ie+1)*8),2),ie);let W=U.sha256(P)[0].toString(2);return W=("00000000"+W).slice(-8).slice(0,o),W===m}mnemonic2Seed(e=""){let t=this.mnemonic;if(!this.check())throw new Error("Mnemonic does not pass the check - was the mnemonic typed incorrectly? Are there extra spaces?");if(typeof e!="string")throw new Error("passphrase must be a string or undefined");t=t.normalize("NFKD"),e=e.normalize("NFKD");const i=Buffer.from(t),o=Buffer.concat([Buffer.from("mnemonic"),Buffer.from(e)]);return this.seed=M.pbkdf2Sync(i,o,2048,64,"sha512"),this}isValid(e=""){let t;try{t=!!this.mnemonic2Seed(e)}catch{t=!1}return t}static isValid(e,t=""){return new Ge(e).isValid(t)}}class pe extends L{static{f(this,"KeyPair")}constructor(e,t,i=re){super({privKey:e,pubKey:t}),this.PrivKey=i}fromJSON(e){return e.privKey&&(this.privKey=this.PrivKey.fromJSON(e.privKey)),e.pubKey&&(this.pubKey=v.fromJSON(e.pubKey)),this}fromBr(e){const t=e.readUInt8();t>0&&(this.privKey=new this.PrivKey().fromFastBuffer(e.read(t)));const i=e.readUInt8();return i>0&&(this.pubKey=new v().fromFastBuffer(e.read(i))),this}toBw(e){if(e||(e=new I),this.privKey){const t=this.privKey.toFastBuffer();e.writeUInt8(t.length),e.write(t)}else e.writeUInt8(0);if(this.pubKey){const t=this.pubKey.toFastBuffer();e.writeUInt8(t.length),e.write(t)}else e.writeUInt8(0);return e}fromString(e){return this.fromJSON(JSON.parse(e))}toString(){return JSON.stringify(this.toJSON())}toPublic(){const e=new pe().fromObject(this);return e.privKey=void 0,e}fromPrivKey(e){return this.privKey=e,this.pubKey=new v().fromPrivKey(e),this}static fromPrivKey(e){return new this().fromPrivKey(e)}async asyncFromPrivKey(e){return this.privKey=e,this.pubKey=await new v().asyncFromPrivKey(e),this}static asyncFromPrivKey(e){return new this().asyncFromPrivKey(e)}fromRandom(){return this.privKey=new this.PrivKey().fromRandom(),this.pubKey=new v().fromPrivKey(this.privKey),this}static fromRandom(){return new this().fromRandom()}async asyncFromRandom(){return this.privKey=new this.PrivKey().fromRandom(),this.asyncFromPrivKey(this.privKey)}static asyncFromRandom(){return new this().asyncFromRandom()}}pe.Mainnet=class extends pe{constructor(d,e){super(d,e,re.Mainnet)}},pe.Testnet=class extends pe{constructor(d,e){super(d,e,re.Testnet)}};class me extends L{static{f(this,"Ecdsa")}constructor(e,t,i,o,m,O){super({sig:e,keyPair:t,hashBuf:i,k:o,endian:m,verified:O})}toJSON(){return{sig:this.sig?this.sig.toString():void 0,keyPair:this.keyPair?this.keyPair.toBuffer().toString("hex"):void 0,hashBuf:this.hashBuf?this.hashBuf.toString("hex"):void 0,k:this.k?this.k.toString():void 0,endian:this.endian,verified:this.verified}}fromJSON(e){return this.sig=e.sig?new J().fromString(e.sig):void 0,this.keyPair=e.keyPair?new pe().fromBuffer(Buffer.from(e.keyPair,"hex")):void 0,this.hashBuf=e.hashBuf?Buffer.from(e.hashBuf,"hex"):void 0,this.k=e.k?new c().fromString(e.k):void 0,this.endian=e.endian,this.verified=e.verified,this}toBuffer(){const e=JSON.stringify(this.toJSON());return Buffer.from(e)}fromBuffer(e){const t=JSON.parse(e.toString());return this.fromJSON(t)}calcrecovery(){for(let e=0;e<4;e++){let t;this.sig.recovery=e;try{t=this.sig2PubKey()}catch{continue}if(t.point.eq(this.keyPair.pubKey.point)){const i=this.keyPair.pubKey.compressed;return this.sig.compressed=this.keyPair.pubKey.compressed===void 0?!0:i,this}}throw this.sig.recovery=void 0,new Error("Unable to find valid recovery factor")}async asyncCalcrecovery(){const e=await V.asyncObjectMethod(this,"calcrecovery",[]);return this.fromFastBuffer(e.resbuf)}static calcrecovery(e,t,i){return new me().fromObject({sig:e,keyPair:new pe().fromObject({pubKey:t}),hashBuf:i}).calcrecovery().sig}static async asyncCalcrecovery(e,t,i){const o=await V.asyncClassMethod(me,"calcrecovery",[e,t,i]);return new J().fromFastBuffer(o.resbuf)}fromString(e){const t=JSON.parse(e);return t.hashBuf&&(this.hashBuf=Buffer.from(t.hashBuf,"hex")),t.keyPair&&(this.keyPair=new pe().fromString(t.keyPair)),t.sig&&(this.sig=new J().fromString(t.sig)),t.k&&(this.k=new c(t.k,10)),this}randomK(){const e=S.getN();let t;do t=new c().fromBuffer(te.getRandomBuffer(32));while(!(t.lt(e)&&t.gt(0)));return this.k=t,this}deterministicK(e){let t=Buffer.alloc(32);t.fill(1);let i=Buffer.alloc(32);i.fill(0);const o=this.keyPair.privKey.bn.toBuffer({size:32});i=U.sha256Hmac(Buffer.concat([t,Buffer.from([0]),o,this.hashBuf]),i),t=U.sha256Hmac(t,i),i=U.sha256Hmac(Buffer.concat([t,Buffer.from([1]),o,this.hashBuf]),i),t=U.sha256Hmac(t,i),t=U.sha256Hmac(t,i);let m=new c().fromBuffer(t);const O=S.getN();e===void 0&&(e=0);for(let P=0;P<e||!(m.lt(O)&&m.gt(0));P++)i=U.sha256Hmac(Buffer.concat([t,Buffer.from([0])]),i),t=U.sha256Hmac(t,i),t=U.sha256Hmac(t,i),m=new c().fromBuffer(t);return this.k=m,this}sig2PubKey(){const e=this.sig.recovery;if(!(e===0||e===1||e===2||e===3))throw new Error("i must be equal to 0, 1, 2, or 3");const t=new c().fromBuffer(this.hashBuf),i=this.sig.r,o=this.sig.s,m=e&1,O=e>>1,P=S.getN(),Z=S.getG(),W=O?i.add(P):i,ie=S.fromX(m,W);let oe="";try{ie.mul(P)}catch(se){oe=se.message}if(oe!=="point mul out of range")throw new Error("nR is not a valid curve point");const ne=t.neg().umod(P),ve=i.invm(P),z=ie.mul(o).add(Z.mul(ne)).mul(ve),Q=new v(z);return Q.compressed=this.sig.compressed,Q.validate(),Q}async asyncSig2PubKey(){const e=await V.asyncObjectMethod(this,"sig2PubKey",[]);return v.fromFastBuffer(e.resbuf)}static sig2PubKey(e,t){return new me().fromObject({sig:e,hashBuf:t}).sig2PubKey()}static async asyncSig2PubKey(e,t){return await new me().fromObject({sig:e,hashBuf:t}).asyncSig2PubKey()}verifyStr(e=!0){if(!Buffer.isBuffer(this.hashBuf)||this.hashBuf.length!==32)return"hashBuf must be a 32 byte buffer";try{this.keyPair.pubKey.validate()}catch(ie){return"Invalid pubKey: "+ie}const t=this.sig.r,i=this.sig.s;if(!(t.gt(0)&&t.lt(S.getN()))||!(i.gt(0)&&i.lt(S.getN())))return"r and s not in range";if(e&&!this.sig.hasLowS())return"s is too high and does not satisfy low s contraint - see bip 62";const o=new c().fromBuffer(this.hashBuf,this.endian?{endian:this.endian}:void 0),m=S.getN(),O=i.invm(m),P=O.mul(o).mod(m),Z=O.mul(t).mod(m),W=S.getG().mulAdd(P,this.keyPair.pubKey.point,Z);return W.isInfinity()?"p is infinity":W.getX().mod(m).cmp(t)!==0?"Invalid signature":!1}sign(){const e=this.endian==="little"?new A(this.hashBuf).readReverse():this.hashBuf,t=this.keyPair.privKey,i=t.bn;if(!e||!t||!i)throw new Error("invalid parameters");if(!Buffer.isBuffer(e)||e.length!==32)throw new Error("hashBuf must be a 32 byte buffer");const o=S.getN(),m=S.getG(),O=new c().fromBuffer(e);let P=0,Z,W,ie,oe;do(!this.k||P>0)&&this.deterministicK(P),P++,Z=this.k,W=m.mul(Z),ie=W.getX().mod(o),oe=Z.invm(o).mul(O.add(i.mul(ie))).mod(o);while(ie.cmp(0)<=0||oe.cmp(0)<=0);return oe.gt(new c().fromBuffer(Buffer.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(oe=S.getN().sub(oe)),this.sig=J.fromObject({r:ie,s:oe,compressed:this.keyPair.pubKey.compressed}),this}async asyncSign(){const e=await V.asyncObjectMethod(this,"sign",[]);return this.fromFastBuffer(e.resbuf)}signRandomK(){return this.randomK(),this.sign()}toString(){const e={};return this.hashBuf&&(e.hashBuf=this.hashBuf.toString("hex")),this.keyPair&&(e.keyPair=this.keyPair.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)}verify(e=!0){return this.verifyStr(e)?this.verified=!1:this.verified=!0,this}async asyncVerify(e=!0){const t=await V.asyncObjectMethod(this,"verify",[e]);return this.fromFastBuffer(t.resbuf)}static sign(e,t,i){return new me().fromObject({hashBuf:e,endian:i,keyPair:t}).sign().sig}static async asyncSign(e,t,i){const o=new me().fromObject({hashBuf:e,endian:i,keyPair:t});return await o.asyncSign(),o.sig}static verify(e,t,i,o,m=!0){return new me().fromObject({hashBuf:e,endian:o,sig:t,keyPair:new pe().fromObject({pubKey:i})}).verify(m).verified}static async asyncVerify(e,t,i,o,m=!0){const O=new me().fromObject({hashBuf:e,endian:o,sig:t,keyPair:new pe().fromObject({pubKey:i})});return await O.asyncVerify(m),O.verified}}class Ke extends L{static{f(this,"Bsm")}constructor(e,t,i,o,m){super({messageBuf:e,keyPair:t,sig:i,address:o,verified:m})}static magicHash(e){if(!Buffer.isBuffer(e))throw new Error("messageBuf must be a buffer");const t=new I;t.writeVarIntNum(Ke.magicBytes.length),t.write(Ke.magicBytes),t.writeVarIntNum(e.length),t.write(e);const i=t.toBuffer();return U.sha256Sha256(i)}static async asyncMagicHash(e){const t=[e];return(await V.asyncClassMethod(Ke,"magicHash",t)).resbuf}static sign(e,t){const i=new Ke(e,t);return i.sign(),i.sig.toCompact().toString("base64")}static async asyncSign(e,t){const i=[e,t],o=await V.asyncClassMethod(Ke,"sign",i);return JSON.parse(o.resbuf.toString())}static verify(e,t,i){const o=Buffer.from(t,"base64"),m=new Ke;return m.messageBuf=e,m.sig=new J().fromCompact(o),m.address=i,m.verify().verified}static async asyncVerify(e,t,i){const o=[e,t,i],m=await V.asyncClassMethod(Ke,"verify",o);return JSON.parse(m.resbuf.toString())}sign(){const e=Ke.magicHash(this.messageBuf),t=new me().fromObject({hashBuf:e,keyPair:this.keyPair});return t.sign(),t.calcrecovery(),this.sig=t.sig,this}verify(){const e=Ke.magicHash(this.messageBuf),t=new me;if(t.hashBuf=e,t.sig=this.sig,t.keyPair=new pe,t.keyPair.pubKey=t.sig2PubKey(),!t.verify())return this.verified=!1,this;const i=new ue().fromPubKey(t.keyPair.pubKey,void 0,this.sig.compressed);return G(i.hashBuf,this.address.hashBuf)?this.verified=!0:this.verified=!1,this}}Ke.magicBytes=Buffer.from(`Bitcoin Signed Message:
|
|
2
|
-
`);class Oe extends L{static{f(this,"BlockHeader")}constructor(e,t,i,o,m,O){super({versionBytesNum:e,prevBlockHashBuf:t,merkleRootBuf:i,time:o,bits:m,nonce:O})}fromJSON(e){return this.fromObject({versionBytesNum:e.versionBytesNum,prevBlockHashBuf:Buffer.from(e.prevBlockHashBuf,"hex"),merkleRootBuf:Buffer.from(e.merkleRootBuf,"hex"),time:e.time,bits:e.bits,nonce:e.nonce}),this}toJSON(){return{versionBytesNum:this.versionBytesNum,prevBlockHashBuf:this.prevBlockHashBuf.toString("hex"),merkleRootBuf:this.merkleRootBuf.toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}}fromBr(e){return this.versionBytesNum=e.readUInt32LE(),this.prevBlockHashBuf=e.read(32),this.merkleRootBuf=e.read(32),this.time=e.readUInt32LE(),this.bits=e.readUInt32LE(),this.nonce=e.readUInt32LE(),this}toBw(e){return e||(e=new I),e.writeUInt32LE(this.versionBytesNum),e.write(this.prevBlockHashBuf),e.write(this.merkleRootBuf),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e}}class Be extends L{static{f(this,"Merkle")}constructor(e,t,i,o){super({hashBuf:e,buf:t,merkle1:i,merkle2:o})}hash(){if(this.hashBuf)return this.hashBuf;if(this.buf)return U.sha256Sha256(this.buf);const e=this.merkle1.hash(),t=this.merkle2.hash();return this.buf=Buffer.concat([e,t]),U.sha256Sha256(this.buf)}fromBuffers(e){if(e.length<1)throw new Error("buffers must have a length");e=e.slice();const t=Math.log2(e.length);if(!Number.isInteger(t)){const O=e[e.length-1];var i=Math.pow(2,Math.ceil(t));for(let P=e.length;P<i;P++)e.push(O)}const o=e.slice(0,e.length/2),m=e.slice(e.length/2);return this.fromBufferArrays(o,m),this}static fromBuffers(e){return new this().fromBuffers(e)}fromBufferArrays(e,t){if(e.length===1)return this.merkle1=new Be(void 0,e[0]),this.merkle2=new Be(void 0,t[0]),this;const i=e.slice(0,e.length/2),o=e.slice(e.length/2);this.merkle1=new Be().fromBufferArrays(i,o);const m=t.slice(0,t.length/2),O=t.slice(t.length/2);return this.merkle2=new Be().fromBufferArrays(m,O),this}static fromBufferArrays(e,t){return new this().fromBufferArrays(e,t)}leavesNum(){if(this.merkle1)return this.merkle1.leavesNum()+this.merkle2.leavesNum();if(this.buf)return 1;throw new Error("invalid number of leaves")}}class qe extends L{static{f(this,"HashCache")}constructor(e,t,i){super(),this.fromObject({prevoutsHashBuf:e,sequenceHashBuf:t,outputsHashBuf:i})}fromBuffer(e){return this.fromJSON(JSON.parse(e.toString()))}toBuffer(){return Buffer.from(JSON.stringify(this.toJSON()))}fromJSON(e){return this.prevoutsHashBuf=e.prevoutsHashBuf?Buffer.from(e.prevoutsHashBuf,"hex"):void 0,this.sequenceHashBuf=e.sequenceHashBuf?Buffer.from(e.sequenceHashBuf,"hex"):void 0,this.outputsHashBuf=e.outputsHashBuf?Buffer.from(e.outputsHashBuf,"hex"):void 0,this}toJSON(){return{prevoutsHashBuf:this.prevoutsHashBuf?this.prevoutsHashBuf.toString("hex"):void 0,sequenceHashBuf:this.sequenceHashBuf?this.sequenceHashBuf.toString("hex"):void 0,outputsHashBuf:this.outputsHashBuf?this.outputsHashBuf.toString("hex"):void 0}}}class le extends L{static{f(this,"VarInt")}constructor(e){super({buf:e})}fromJSON(e){return this.fromObject({buf:Buffer.from(e,"hex")}),this}toJSON(){return this.buf.toString("hex")}fromBuffer(e){return this.buf=e,this}fromBr(e){return this.buf=e.readVarIntBuf(),this}fromBn(e){return this.buf=new I().writeVarIntBn(e).toBuffer(),this}static fromBn(e){return new this().fromBn(e)}fromNumber(e){return this.buf=new I().writeVarIntNum(e).toBuffer(),this}static fromNumber(e){return new this().fromNumber(e)}toBuffer(){return this.buf}toBn(){return new A(this.buf).readVarIntBn()}toNumber(){return new A(this.buf).readVarIntNum()}}class ce extends L{static{f(this,"TxIn")}constructor(e,t,i,o,m=4294967295){super({txHashBuf:e,txOutNum:t,scriptVi:i,script:o,nSequence:m})}setScript(e){return this.scriptVi=le.fromNumber(e.toBuffer().length),this.script=e,this}fromProperties(e,t,i,o){return this.fromObject({txHashBuf:e,txOutNum:t,nSequence:o}),this.setScript(i),this}static fromProperties(e,t,i,o){return new this().fromProperties(e,t,i,o)}fromJSON(e){return this.fromObject({txHashBuf:typeof e.txHashBuf<"u"?Buffer.from(e.txHashBuf,"hex"):void 0,txOutNum:e.txOutNum,scriptVi:typeof e.scriptVi<"u"?le.fromJSON(e.scriptVi):void 0,script:typeof e.script<"u"?ee.fromJSON(e.script):void 0,nSequence:e.nSequence}),this}toJSON(){return{txHashBuf:typeof this.txHashBuf<"u"?this.txHashBuf.toString("hex"):void 0,txOutNum:this.txOutNum,scriptVi:typeof this.scriptVi<"u"?this.scriptVi.toJSON():void 0,script:typeof this.script<"u"?this.script.toJSON():void 0,nSequence:this.nSequence}}fromBr(e){return this.txHashBuf=e.read(32),this.txOutNum=e.readUInt32LE(),this.scriptVi=le.fromBuffer(e.readVarIntBuf()),this.script=ee.fromBuffer(e.read(this.scriptVi.toNumber())),this.nSequence=e.readUInt32LE(),this}toBw(e){return e||(e=new I),e.write(this.txHashBuf),e.writeUInt32LE(this.txOutNum),e.write(this.scriptVi.buf),e.write(this.script.toBuffer()),e.writeUInt32LE(this.nSequence),e}fromPubKeyHashTxOut(e,t,i,o){const m=new ee;if(i.script.isPubKeyHashOut())m.writeOpCode(s.OP_0),o?m.writeBuffer(o.toBuffer()):m.writeOpCode(s.OP_0);else throw new Error("txOut must be of type pubKeyHash");return this.txHashBuf=e,this.txOutNum=t,this.setScript(m),this}hasNullInput(){return this.txHashBuf.toString("hex")==="0000000000000000000000000000000000000000000000000000000000000000"&&this.txOutNum===4294967295}setNullInput(){this.txHashBuf=Buffer.alloc(32),this.txHashBuf.fill(0),this.txOutNum=4294967295}}ce.LOCKTIME_VERIFY_SEQUENCE=1,ce.SEQUENCE_FINAL=4294967295,ce.SEQUENCE_LOCKTIME_DISABLE_FLAG=1<<31,ce.SEQUENCE_LOCKTIME_TYPE_FLAG=1<<22,ce.SEQUENCE_LOCKTIME_MASK=65535,ce.SEQUENCE_LOCKTIME_GRANULARITY=9;class Ve extends L{static{f(this,"TxOut")}constructor(e,t,i){super({valueBn:e,scriptVi:t,script:i})}setScript(e){return this.scriptVi=le.fromNumber(e.toBuffer().length),this.script=e,this}fromProperties(e,t){return this.fromObject({valueBn:e}),this.setScript(t),this}static fromProperties(e,t){return new this().fromProperties(e,t)}fromJSON(e){return this.fromObject({valueBn:new c().fromJSON(e.valueBn),scriptVi:new le().fromJSON(e.scriptVi),script:new ee().fromJSON(e.script)}),this}toJSON(){return{valueBn:this.valueBn.toJSON(),scriptVi:this.scriptVi.toJSON(),script:this.script.toJSON()}}fromBr(e){return this.valueBn=e.readUInt64LEBn(),this.scriptVi=le.fromNumber(e.readVarIntNum()),this.script=new ee().fromBuffer(e.read(this.scriptVi.toNumber())),this}toBw(e){return e||(e=new I),e.writeUInt64LEBn(this.valueBn),e.write(this.scriptVi.buf),e.write(this.script.toBuffer()),e}}class he extends L{static{f(this,"Tx")}constructor(e=1,t=le.fromNumber(0),i=[],o=le.fromNumber(0),m=[],O=0){super({versionBytesNum:e,txInsVi:t,txIns:i,txOutsVi:o,txOuts:m,nLockTime:O})}fromJSON(e){const t=[];e.txIns.forEach(function(o){t.push(new ce().fromJSON(o))});const i=[];return e.txOuts.forEach(function(o){i.push(new Ve().fromJSON(o))}),this.fromObject({versionBytesNum:e.versionBytesNum,txInsVi:new le().fromJSON(e.txInsVi),txIns:t,txOutsVi:new le().fromJSON(e.txOutsVi),txOuts:i,nLockTime:e.nLockTime}),this}toJSON(){const e=[];this.txIns.forEach(function(i){e.push(i.toJSON())});const t=[];return this.txOuts.forEach(function(i){t.push(i.toJSON())}),{versionBytesNum:this.versionBytesNum,txInsVi:this.txInsVi.toJSON(),txIns:e,txOutsVi:this.txOutsVi.toJSON(),txOuts:t,nLockTime:this.nLockTime}}fromBr(e){this.versionBytesNum=e.readUInt32LE(),this.txInsVi=new le(e.readVarIntBuf());const t=this.txInsVi.toNumber();this.txIns=[];for(let o=0;o<t;o++)this.txIns.push(new ce().fromBr(e));this.txOutsVi=new le(e.readVarIntBuf());const i=this.txOutsVi.toNumber();this.txOuts=[];for(let o=0;o<i;o++)this.txOuts.push(new Ve().fromBr(e));return this.nLockTime=e.readUInt32LE(),this}toBw(e){e||(e=new I),e.writeUInt32LE(this.versionBytesNum),e.write(this.txInsVi.buf);for(let t=0;t<this.txIns.length;t++)this.txIns[t].toBw(e);e.write(this.txOutsVi.buf);for(let t=0;t<this.txOuts.length;t++)this.txOuts[t].toBw(e);return e.writeUInt32LE(this.nLockTime),e}hashPrevouts(){const e=new I;for(const t in this.txIns){const i=this.txIns[t];e.write(i.txHashBuf),e.writeUInt32LE(i.txOutNum)}return U.sha256Sha256(e.toBuffer())}hashSequence(){const e=new I;for(const t in this.txIns){const i=this.txIns[t];e.writeUInt32LE(i.nSequence)}return U.sha256Sha256(e.toBuffer())}hashOutputs(){const e=new I;for(const t in this.txOuts){const i=this.txOuts[t];e.write(i.toBuffer())}return U.sha256Sha256(e.toBuffer())}sighash(e,t,i,o,m=0,O=new qe){const P=this.sighashPreimage(e,t,i,o,m,O);return P.compare(Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex"))===0?P:new A(U.sha256Sha256(P)).readReverse()}async asyncSighash(e,t,i,o,m=0,O={}){return(await V.asyncObjectMethod(this,"sighash",[e,t,i,o,m,O])).resbuf}sighashPreimage(e,t,i,o,m=0,O=new qe){if(e&J.SIGHASH_FORKID&&m&he.SCRIPT_ENABLE_SIGHASH_FORKID){let W=Buffer.alloc(32,0),ie=Buffer.alloc(32,0),oe=Buffer.alloc(32,0);e&J.SIGHASH_ANYONECANPAY||(W=O.prevoutsHashBuf?O.prevoutsHashBuf:O.prevoutsHashBuf=this.hashPrevouts()),!(e&J.SIGHASH_ANYONECANPAY)&&(e&31)!==J.SIGHASH_SINGLE&&(e&31)!==J.SIGHASH_NONE&&(ie=O.sequenceHashBuf?O.sequenceHashBuf:O.sequenceHashBuf=this.hashSequence()),(e&31)!==J.SIGHASH_SINGLE&&(e&31)!==J.SIGHASH_NONE?oe=O.outputsHashBuf?O.outputsHashBuf:O.outputsHashBuf=this.hashOutputs():(e&31)===J.SIGHASH_SINGLE&&t<this.txOuts.length&&(oe=U.sha256Sha256(this.txOuts[t].toBuffer()));const ne=new I;return ne.writeUInt32LE(this.versionBytesNum),ne.write(W),ne.write(ie),ne.write(this.txIns[t].txHashBuf),ne.writeUInt32LE(this.txIns[t].txOutNum),ne.writeVarIntNum(i.toBuffer().length),ne.write(i.toBuffer()),ne.writeUInt64LEBn(o),ne.writeUInt32LE(this.txIns[t].nSequence),ne.write(oe),ne.writeUInt32LE(this.nLockTime),ne.writeUInt32LE(e>>>0),ne.toBuffer()}const P=this.cloneByBuffer();i=new ee().fromBuffer(i.toBuffer()),i.removeCodeseparators();for(let W=0;W<P.txIns.length;W++)P.txIns[W]=ce.fromBuffer(P.txIns[W].toBuffer()).setScript(new ee);if(P.txIns[t]=ce.fromBuffer(P.txIns[t].toBuffer()).setScript(i),(e&31)===J.SIGHASH_NONE){P.txOuts.length=0,P.txOutsVi=le.fromNumber(0);for(let W=0;W<P.txIns.length;W++)W!==t&&(P.txIns[W].nSequence=0)}else if((e&31)===J.SIGHASH_SINGLE){if(t>P.txOuts.length-1)return Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex");P.txOuts.length=t+1,P.txOutsVi=le.fromNumber(t+1);for(let W=0;W<P.txOuts.length;W++)W<t&&(P.txOuts[W]=Ve.fromProperties(new c().fromBuffer(Buffer.from("ffffffffffffffff","hex")),new ee));for(let W=0;W<P.txIns.length;W++)W!==t&&(P.txIns[W].nSequence=0)}return e&J.SIGHASH_ANYONECANPAY&&(P.txIns[0]=P.txIns[t],P.txIns.length=1,P.txInsVi=le.fromNumber(1)),new I().write(P.toBuffer()).writeInt32LE(e).toBuffer()}async asyncSighashPreimage(e,t,i,o,m=0,O={}){return(await V.asyncObjectMethod(this,"sighashPreimage",[e,t,i,o,m,O])).resbuf}sign(e,t=J.SIGHASH_ALL|J.SIGHASH_FORKID,i,o,m,O=he.SCRIPT_ENABLE_SIGHASH_FORKID,P={}){const Z=this.sighash(t,i,o,m,O,P);return me.sign(Z,e,"little").fromObject({nHashType:t})}async asyncSign(e,t=J.SIGHASH_ALL|J.SIGHASH_FORKID,i,o,m,O=he.SCRIPT_ENABLE_SIGHASH_FORKID,P={}){const Z=await V.asyncObjectMethod(this,"sign",[e,t,i,o,m,O,P]);return new J().fromFastBuffer(Z.resbuf)}verify(e,t,i,o,m=!1,O,P=he.SCRIPT_ENABLE_SIGHASH_FORKID,Z={}){const W=this.sighash(e.nHashType,i,o,O,P,Z);return me.verify(W,e,t,"little",m)}async asyncVerify(e,t,i,o,m=!1,O,P=he.SCRIPT_ENABLE_SIGHASH_FORKID,Z={}){const W=await V.asyncObjectMethod(this,"verify",[e,t,i,o,m,O,P,Z]);return JSON.parse(W.resbuf.toString())}hash(){return U.sha256Sha256(this.toBuffer())}async asyncHash(){return(await V.asyncObjectMethod(this,"hash",[])).resbuf}id(){return new A(this.hash()).readReverse().toString("hex")}async asyncId(){const e=await V.asyncObjectMethod(this,"id",[]);return JSON.parse(e.resbuf.toString())}addTxIn(e,t,i,o){let m;return e instanceof ce?m=e:m=new ce().fromObject({txHashBuf:e,txOutNum:t,nSequence:o}).setScript(i),this.txIns.push(m),this.txInsVi=le.fromNumber(this.txInsVi.toNumber()+1),this}addTxOut(e,t){let i;return e instanceof Ve?i=e:i=new Ve().fromObject({valueBn:e}).setScript(t),this.txOuts.push(i),this.txOutsVi=le.fromNumber(this.txOutsVi.toNumber()+1),this}isCoinbase(){return this.txIns.length===1&&this.txIns[0].hasNullInput()}sort(){return this.txIns.sort((e,t)=>new A(e.txHashBuf).readReverse().compare(new A(t.txHashBuf).readReverse())||e.txOutNum-t.txOutNum),this.txOuts.sort((e,t)=>e.valueBn.sub(t.valueBn).toNumber()||e.script.toBuffer().compare(t.script.toBuffer())),this}}he.MAX_MONEY=21e6*1e8,he.SCRIPT_ENABLE_SIGHASH_FORKID=65536;class Ee extends L{static{f(this,"Block")}constructor(e,t,i){super({blockHeader:e,txsVi:t,txs:i})}fromJSON(e){const t=[];return e.txs.forEach(function(i){t.push(new he().fromJSON(i))}),this.fromObject({blockHeader:new Oe().fromJSON(e.blockHeader),txsVi:new le().fromJSON(e.txsVi),txs:t}),this}toJSON(){const e=[];return this.txs.forEach(function(t){e.push(t.toJSON())}),{blockHeader:this.blockHeader.toJSON(),txsVi:this.txsVi.toJSON(),txs:e}}fromBr(e){this.blockHeader=new Oe().fromBr(e),this.txsVi=new le(e.readVarIntBuf());const t=this.txsVi.toNumber();this.txs=[];for(let i=0;i<t;i++)this.txs.push(new he().fromBr(e));return this}toBw(e){e||(e=new I),e.write(this.blockHeader.toBuffer()),e.write(this.txsVi.buf);const t=this.txsVi.toNumber();for(let i=0;i<t;i++)this.txs[i].toBw(e);return e}hash(){return U.sha256Sha256(this.blockHeader.toBuffer())}async asyncHash(){return(await V.asyncObjectMethod(this,"hash",[])).resbuf}id(){return new A(this.hash()).readReverse().toString("hex")}async asyncId(){const e=await V.asyncObjectMethod(this,"id",[]);return JSON.parse(e.resbuf.toString())}verifyMerkleRoot(){const e=this.txs.map(i=>i.toBuffer()),t=Be.fromBuffers(e).hash();return Buffer.compare(t,this.blockHeader.merkleRootBuf)}static iterateTxs(e){const t=new A(e),i=new Oe().fromBr(t),o=new le(t.readVarIntBuf()),m=o.toNumber();return{blockHeader:i,txsVi:o,txsNum:m,*[Symbol.iterator](){for(let O=0;O<m;O++)yield new he().fromBr(t)}}}}Ee.MAX_BLOCK_SIZE=1e6;class $ extends L{static{f(this,"Interp")}constructor(e,t,i,o=[],m=[],O=0,P=0,Z=0,W=[],ie="",oe=$.defaultFlags,ne=new c(0)){super({script:e,tx:t,nIn:i,stack:o,altStack:m,pc:O,pBeginCodeHash:P,nOpCount:Z,ifStack:W,errStr:ie,flags:oe,valueBn:ne})}initialize(){return this.script=new ee,this.stack=[],this.altStack=[],this.pc=0,this.pBeginCodeHash=0,this.nOpCount=0,this.ifStack=[],this.errStr="",this.flags=$.defaultFlags,this.scriptLimit=1e7,this.stackLimit=1e7,this}fromJSON(e){return this.fromJSONNoTx(e),this.tx=e.tx?new he().fromJSON(e.tx):void 0,this}fromJSONNoTx(e){return this.fromObject({script:e.script!==void 0?new ee().fromJSON(e.script):void 0,nIn:e.nIn}),this.stack=[],e.stack.forEach(function(t){this.stack.push(Buffer.from(t,"hex"))}.bind(this)),this.altStack=[],e.altStack.forEach(function(t){this.altStack.push(Buffer.from(t,"hex"))}.bind(this)),this.fromObject({pc:e.pc,pBeginCodeHash:e.pBeginCodeHash,nOpCount:e.nOpCount,ifStack:e.ifStack,errStr:e.errStr,flags:e.flags}),this}fromBr(e){let t=e.readVarIntNum(),i=e.read(t);this.fromJSONNoTx(JSON.parse(i.toString()));let o=e.readVarIntNum();if(o>0){let m=e.read(o);this.tx=new he().fromFastBuffer(m)}return this}toJSON(){let e=this.toJSONNoTx();return e.tx=this.tx?this.tx.toJSON():void 0,e}toJSONNoTx(){let e=[];this.stack.forEach(function(i){e.push(i.toString("hex"))});let t=[];return this.altStack.forEach(function(i){t.push(i.toString("hex"))}),{script:this.script?this.script.toJSON():void 0,nIn:this.nIn,stack:e,altStack:t,pc:this.pc,pBeginCodeHash:this.pBeginCodeHash,nOpCount:this.nOpCount,ifStack:this.ifStack,errStr:this.errStr,flags:this.flags}}toBw(e){e||(e=new I);let t=Buffer.from(JSON.stringify(this.toJSONNoTx()));if(e.writeVarIntNum(t.length),e.write(t),this.tx){let i=this.tx.toFastBuffer();e.writeVarIntNum(i.length),e.write(i)}else e.writeVarIntNum(0);return e}static getFlags(e){let t=0;return e.indexOf("NONE")!==-1&&(t=t|$.SCRIPT_VERIFY_NONE),e.indexOf("P2SH")!==-1&&(t=t|$.SCRIPT_VERIFY_P2SH),e.indexOf("STRICTENC")!==-1&&(t=t|$.SCRIPT_VERIFY_STRICTENC),e.indexOf("DERSIG")!==-1&&(t=t|$.SCRIPT_VERIFY_DERSIG),e.indexOf("LOW_S")!==-1&&(t=t|$.SCRIPT_VERIFY_LOW_S),e.indexOf("NULLDUMMY")!==-1&&(t=t|$.SCRIPT_VERIFY_NULLDUMMY),e.indexOf("SIGPUSHONLY")!==-1&&(t=t|$.SCRIPT_VERIFY_SIGPUSHONLY),e.indexOf("MINIMALDATA")!==-1&&(t=t|$.SCRIPT_VERIFY_MINIMALDATA),e.indexOf("DISCOURAGE_UPGRADABLE_NOPS")!==-1&&(t=t|$.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS),e.indexOf("CLEANSTACK")!==-1&&(t=t|$.SCRIPT_VERIFY_CLEANSTACK),e.indexOf("CHECKLOCKTIMEVERIFY")!==-1&&(t=t|$.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY),e.indexOf("CHECKSEQUENCEVERIFY")!==-1&&(t=t|$.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY),e.indexOf("SIGHASH_FORKID")!==-1&&(t=t|$.SCRIPT_ENABLE_SIGHASH_FORKID),t}static castToBool(e){for(let t=0;t<e.length;t++)if(e[t]!==0)return!(t===e.length-1&&e[t]===128);return!1}checkSigEncoding(e){if(e.length===0)return!0;if(this.flags&($.SCRIPT_VERIFY_DERSIG|$.SCRIPT_VERIFY_LOW_S|$.SCRIPT_VERIFY_STRICTENC)&&!J.IsTxDer(e))return this.errStr="SCRIPT_ERR_SIG_DER",!1;if(this.flags&$.SCRIPT_VERIFY_LOW_S){if(!new J().fromTxFormat(e).hasLowS())return this.errStr="SCRIPT_ERR_SIG_DER",!1}else if(this.flags&$.SCRIPT_VERIFY_STRICTENC&&!new J().fromTxFormat(e).hasDefinedHashType())return this.errStr="SCRIPT_ERR_SIG_HASHTYPE",!1;return!0}checkPubKeyEncoding(e){return this.flags&$.SCRIPT_VERIFY_STRICTENC&&!v.isCompressedOrUncompressed(e)?(this.errStr="SCRIPT_ERR_PUBKEYTYPE",!1):!0}checkLockTime(e){return!(!(this.tx.nLockTime<$.LOCKTIME_THRESHOLD&&e<$.LOCKTIME_THRESHOLD||this.tx.nLockTime>=$.LOCKTIME_THRESHOLD&&e>=$.LOCKTIME_THRESHOLD)||e>this.tx.nLockTime||ce.SEQUENCE_FINAL===this.tx.txIns[this.nIn].nSequence)}checkSequence(e){let t=this.tx.txIns[this.nIn].nSequence;if(this.tx.versionBytesNum<2||t&ce.SEQUENCE_LOCKTIME_DISABLE_FLAG)return!1;let i=ce.SEQUENCE_LOCKTIME_TYPE_FLAG|ce.SEQUENCE_LOCKTIME_MASK,o=t&i,m=e&i;return!(!(o<ce.SEQUENCE_LOCKTIME_TYPE_FLAG&&m<ce.SEQUENCE_LOCKTIME_TYPE_FLAG||o>=ce.SEQUENCE_LOCKTIME_TYPE_FLAG&&m>=ce.SEQUENCE_LOCKTIME_TYPE_FLAG)||m>o)}*eval(){this.script.toBuffer().length>this.scriptLimit&&(this.errStr="SCRIPT_ERR_SCRIPT_SIZE",yield!1);try{for(;this.pc<this.script.chunks.length;){let e=this.step();e?yield e:yield!1}this.stack.length+this.altStack.length>this.stackLimit&&(this.errStr="SCRIPT_ERR_STACK_SIZE",yield!1)}catch(e){this.errStr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,yield!1}this.ifStack.length>0&&(this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",yield!1),yield!0}step(){let e=(this.flags&$.SCRIPT_VERIFY_MINIMALDATA)!==0,t=!(this.ifStack.indexOf(!1)+1),i=this.script.chunks[this.pc];this.pc++;let o=i.opCodeNum;if(o===void 0)return this.errStr="SCRIPT_ERR_BAD_OPCODE",!1;if(o>s.OP_16&&++this.nOpCount>201)return this.errStr="SCRIPT_ERR_OP_COUNT",!1;if(o===s.OP_LEFT||o===s.OP_RIGHT||o===s.OP_2MUL||o===s.OP_2DIV)return this.errStr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(t&&o>=0&&o<=s.OP_PUSHDATA4){if(e&&!this.script.checkMinimalPush(this.pc-1))return this.errStr="SCRIPT_ERR_MINIMALDATA",!1;if(!i.buf)this.stack.push($.false);else{if(i.len!==i.buf.length)throw new Error("LEngth of push value not equal to length of data");this.stack.push(i.buf)}}else if(t||s.OP_IF<=o&&o<=s.OP_ENDIF)switch(o){case s.OP_1NEGATE:case s.OP_1:case s.OP_2:case s.OP_3:case s.OP_4:case s.OP_5:case s.OP_6:case s.OP_7:case s.OP_8:case s.OP_9:case s.OP_10:case s.OP_11:case s.OP_12:case s.OP_13:case s.OP_14:case s.OP_15:case s.OP_16:{let z=o-(s.OP_1-1),Q=new c(z).toScriptNumBuffer();this.stack.push(Q)}break;case s.OP_NOP:break;case s.OP_CHECKLOCKTIMEVERIFY:{if(!(this.flags&$.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&$.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errStr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=this.stack[this.stack.length-1],se=new c().fromScriptNumBuffer(z,e,5).toNumber();if(se<0)return this.errStr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(se))return this.errStr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1}break;case s.OP_CHECKSEQUENCEVERIFY:{if(!(this.flags&$.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY)){if(this.flags&$.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errStr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=this.stack[this.stack.length-1],se=new c().fromScriptNumBuffer(z,e,5).toNumber();if(se<0)return this.errStr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(se&ce.SEQUENCE_LOCKTIME_DISABLE_FLAG)break;if(!this.checkSequence(se))return this.errStr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1}break;case s.OP_NOP1:case s.OP_NOP3:case s.OP_NOP4:case s.OP_NOP5:case s.OP_NOP6:case s.OP_NOP7:case s.OP_NOP8:case s.OP_NOP9:case s.OP_NOP10:if(this.flags&$.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errStr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case s.OP_IF:case s.OP_NOTIF:{let z=!1;if(t){if(this.stack.length<1)return this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;let Q=this.stack.pop();z=$.castToBool(Q),o===s.OP_NOTIF&&(z=!z)}this.ifStack.push(z)}break;case s.OP_ELSE:if(this.ifStack.length===0)return this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.ifStack[this.ifStack.length-1]=!this.ifStack[this.ifStack.length-1];break;case s.OP_ENDIF:if(this.ifStack.length===0)return this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.ifStack.pop();break;case s.OP_VERIFY:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=this.stack[this.stack.length-1];if($.castToBool(z))this.stack.pop();else return this.errStr="SCRIPT_ERR_VERIFY",!1}break;case s.OP_RETURN:return this.errStr="SCRIPT_ERR_OP_RETURN",!1;case s.OP_TOALTSTACK:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altStack.push(this.stack.pop());break;case s.OP_FROMALTSTACK:if(this.altStack.length<1)return this.errStr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altStack.pop());break;case s.OP_2DROP:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case s.OP_2DUP:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=this.stack[this.stack.length-2],Q=this.stack[this.stack.length-1];this.stack.push(z),this.stack.push(Q)}break;case s.OP_3DUP:{if(this.stack.length<3)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=this.stack[this.stack.length-3],Q=this.stack[this.stack.length-2],se=this.stack[this.stack.length-1];this.stack.push(z),this.stack.push(Q),this.stack.push(se)}break;case s.OP_2OVER:{if(this.stack.length<4)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=this.stack[this.stack.length-4],Q=this.stack[this.stack.length-3];this.stack.push(z),this.stack.push(Q)}break;case s.OP_2ROT:{if(this.stack.length<6)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=this.stack.splice(this.stack.length-6,2);this.stack.push(z[0]),this.stack.push(z[1])}break;case s.OP_2SWAP:{if(this.stack.length<4)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=this.stack.splice(this.stack.length-4,2);this.stack.push(z[0]),this.stack.push(z[1])}break;case s.OP_IFDUP:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=this.stack[this.stack.length-1];$.castToBool(z)&&this.stack.push(z)}break;case s.OP_DEPTH:{let z=new c(this.stack.length).toScriptNumBuffer();this.stack.push(z)}break;case s.OP_DROP:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case s.OP_DUP:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-1]);break;case s.OP_NIP:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case s.OP_OVER:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-2]);break;case s.OP_PICK:case s.OP_ROLL:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=this.stack[this.stack.length-1],se=new c().fromScriptNumBuffer(z,e,$.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS).toNumber();if(this.stack.pop(),se<0||se>=this.stack.length)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;z=this.stack[this.stack.length-se-1],o===s.OP_ROLL&&this.stack.splice(this.stack.length-se-1,1),this.stack.push(z)}break;case s.OP_ROT:{if(this.stack.length<3)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=this.stack[this.stack.length-3],Q=this.stack[this.stack.length-2],se=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=Q,this.stack[this.stack.length-2]=se,this.stack[this.stack.length-1]=z}break;case s.OP_SWAP:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=this.stack[this.stack.length-2],Q=this.stack[this.stack.length-1];this.stack[this.stack.length-2]=Q,this.stack[this.stack.length-1]=z}break;case s.OP_TUCK:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case s.OP_SIZE:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=new c(this.stack[this.stack.length-1].length);this.stack.push(z.toScriptNumBuffer())}break;case s.OP_OR:case s.OP_AND:case s.OP_XOR:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let m=this.stack[this.stack.length-2],O=this.stack[this.stack.length-1];if(m.length!=O.length)return this.errStr="SCRIPT_ERR_INVALID_OPERAND_SIZE",!1;switch(o){case s.OP_AND:for(let z=0;z<m.length;z++)m[z]&=O[z];break;case s.OP_OR:for(let z=0;z<m.length;z++)m[z]|=O[z];break;case s.OP_XOR:for(let z=0;z<m.length;z++)m[z]^=O[z];break}this.stack.pop();break;case s.OP_INVERT:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let P=this.stack[this.stack.length-1];for(let z=0;z<P.length;z++)P[z]=~P[z];break;case s.OP_LSHIFT:case s.OP_RSHIFT:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=this.stack[this.stack.length-2],Q=new c(z),se=new c().fromScriptNumBuffer(this.stack[this.stack.length-1],e,$.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS).toNumber();if(se<0)return this.errStr="SCRIPT_ERR_INVALID_NUMBER_RANGE",!1;switch(this.stack.pop(),this.stack.pop(),o){case s.OP_LSHIFT:Q=Q.ushln(se);break;case s.OP_RSHIFT:Q=Q.ushrn(se);break}let Ue=Q.toBuffer().slice(-z.length);Ue.length<z.length&&(Ue=Buffer.concat([Buffer.alloc(z.length-Ue.length),Ue])),this.stack.push(Ue);break}case s.OP_EQUAL:case s.OP_EQUALVERIFY:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=this.stack[this.stack.length-2],Q=this.stack[this.stack.length-1],se=G(z,Q);if(this.stack.pop(),this.stack.pop(),this.stack.push(se?$.true:$.false),o===s.OP_EQUALVERIFY)if(se)this.stack.pop();else return this.errStr="SCRIPT_ERR_EQUALVERIFY",!1}break;case s.OP_1ADD:case s.OP_1SUB:case s.OP_NEGATE:case s.OP_ABS:case s.OP_NOT:case s.OP_0NOTEQUAL:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=this.stack[this.stack.length-1],Q=new c().fromScriptNumBuffer(z,e,$.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS);switch(o){case s.OP_1ADD:Q=Q.add(1);break;case s.OP_1SUB:Q=Q.sub(1);break;case s.OP_NEGATE:Q=Q.neg();break;case s.OP_ABS:Q.lt(0)&&(Q=Q.neg());break;case s.OP_NOT:Q=new c(Q.eq(0)+0);break;case s.OP_0NOTEQUAL:Q=new c(Q.neq(0)+0);break}this.stack.pop(),this.stack.push(Q.toScriptNumBuffer())}break;case s.OP_ADD:case s.OP_SUB:case s.OP_MUL:case s.OP_DIV:case s.OP_MOD:case s.OP_BOOLAND:case s.OP_BOOLOR:case s.OP_NUMEQUAL:case s.OP_NUMEQUALVERIFY:case s.OP_NUMNOTEQUAL:case s.OP_LESSTHAN:case s.OP_GREATERTHAN:case s.OP_LESSTHANOREQUAL:case s.OP_GREATERTHANOREQUAL:case s.OP_MIN:case s.OP_MAX:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=new c().fromScriptNumBuffer(this.stack[this.stack.length-2],e,$.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),Q=new c().fromScriptNumBuffer(this.stack[this.stack.length-1],e,$.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),se=new c(0);switch(o){case s.OP_ADD:se=z.add(Q);break;case s.OP_SUB:se=z.sub(Q);break;case s.OP_MUL:se=z.mul(Q);break;case s.OP_DIV:if(Q==0)return this.errStr="SCRIPT_ERR_DIV_BY_ZERO",!1;se=z.div(Q);break;case s.OP_MOD:if(Q==0)return this.errStr="SCRIPT_ERR_DIV_BY_ZERO",!1;se=z.mod(Q);break;case s.OP_BOOLAND:se=new c((z.neq(0)&&Q.neq(0))+0);break;case s.OP_BOOLOR:se=new c((z.neq(0)||Q.neq(0))+0);break;case s.OP_NUMEQUAL:se=new c(z.eq(Q)+0);break;case s.OP_NUMEQUALVERIFY:se=new c(z.eq(Q)+0);break;case s.OP_NUMNOTEQUAL:se=new c(z.neq(Q)+0);break;case s.OP_LESSTHAN:se=new c(z.lt(Q)+0);break;case s.OP_GREATERTHAN:se=new c(z.gt(Q)+0);break;case s.OP_LESSTHANOREQUAL:se=new c(z.leq(Q)+0);break;case s.OP_GREATERTHANOREQUAL:se=new c(z.geq(Q)+0);break;case s.OP_MIN:se=z.lt(Q)?z:Q;break;case s.OP_MAX:se=z.gt(Q)?z:Q;break}if(this.stack.pop(),this.stack.pop(),this.stack.push(se.toScriptNumBuffer()),o===s.OP_NUMEQUALVERIFY)if($.castToBool(this.stack[this.stack.length-1]))this.stack.pop();else return this.errStr="SCRIPT_ERR_NUMEQUALVERIFY",!1}break;case s.OP_WITHIN:{if(this.stack.length<3)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=new c().fromScriptNumBuffer(this.stack[this.stack.length-3],e,$.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),Q=new c().fromScriptNumBuffer(this.stack[this.stack.length-2],e,$.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),se=new c().fromScriptNumBuffer(this.stack[this.stack.length-1],e,$.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),Ue=Q.leq(z)&&z.lt(se);this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(Ue?$.true:$.false)}break;case s.OP_RIPEMD160:case s.OP_SHA1:case s.OP_SHA256:case s.OP_HASH160:case s.OP_HASH256:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=this.stack[this.stack.length-1],Q;o===s.OP_RIPEMD160?Q=U.ripemd160(z):o===s.OP_SHA1?Q=U.sha1(z):o===s.OP_SHA256?Q=U.sha256(z):o===s.OP_HASH160?Q=U.sha256Ripemd160(z):o===s.OP_HASH256&&(Q=U.sha256Sha256(z)),this.stack.pop(),this.stack.push(Q)}break;case s.OP_CODESEPARATOR:this.pBeginCodeHash=this.pc;break;case s.OP_CHECKSIG:case s.OP_CHECKSIGVERIFY:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let z=this.stack[this.stack.length-2],Q=this.stack[this.stack.length-1],se=new ee().fromObject({chunks:this.script.chunks.slice(this.pBeginCodeHash)});if((z.length>0?z.readUInt8(z.length-1):0)&J.SIGHASH_FORKID){if(!(this.flags&$.SCRIPT_ENABLE_SIGHASH_FORKID))return this.errStr="SCRIPT_ERR_ILLEGAL_FORKID",!1}else se.findAndDelete(new ee().writeBuffer(z));if(!this.checkSigEncoding(z)||!this.checkPubKeyEncoding(Q))return!1;let _e;try{let ke=new J().fromTxFormat(z),Ye=new v().fromBuffer(Q,!1);_e=this.tx.verify(ke,Ye,this.nIn,se,!!(this.flags&$.SCRIPT_VERIFY_LOW_S),this.valueBn,this.flags)}catch{_e=!1}if(this.stack.pop(),this.stack.pop(),this.stack.push(_e?$.true:$.false),o===s.OP_CHECKSIGVERIFY)if(_e)this.stack.pop();else return this.errStr="SCRIPT_ERR_CHECKSIGVERIFY",!1}break;case s.OP_CHECKMULTISIG:case s.OP_CHECKMULTISIGVERIFY:{let z=1;if(this.stack.length<z)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let Q=new c().fromScriptNumBuffer(this.stack[this.stack.length-z],e).toNumber();if(Q<0||Q>20)return this.errStr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=Q,this.nOpCount>201)return this.errStr="SCRIPT_ERR_OP_COUNT",!1;let se=++z;if(z+=Q,this.stack.length<z)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let Ue=new c().fromScriptNumBuffer(this.stack[this.stack.length-z],e).toNumber();if(Ue<0||Ue>Q)return this.errStr="SCRIPT_ERR_SIG_COUNT",!1;let _e=++z;if(z+=Ue,this.stack.length<z)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ke=new ee().fromObject({chunks:this.script.chunks.slice(this.pBeginCodeHash)});for(let Ne=0;Ne<Ue;Ne++){let Pe=this.stack[this.stack.length-_e-Ne];if((Pe.length>0?Pe.readUInt8(Pe.length-1):0)&J.SIGHASH_FORKID){if(!(this.flags&$.SCRIPT_ENABLE_SIGHASH_FORKID))return this.errStr="SCRIPT_ERR_ILLEGAL_FORKID",!1}else ke.findAndDelete(new ee().writeBuffer(Pe))}let Ye=!0;for(;Ye&&Ue>0;){let Ne=this.stack[this.stack.length-_e],Pe=this.stack[this.stack.length-se];if(!this.checkSigEncoding(Ne)||!this.checkPubKeyEncoding(Pe))return!1;let Je;try{let Ce=new J().fromTxFormat(Ne),Fe=new v().fromBuffer(Pe,!1);Je=this.tx.verify(Ce,Fe,this.nIn,ke,!!(this.flags&$.SCRIPT_VERIFY_LOW_S),this.valueBn,this.flags)}catch{Je=!1}Je&&(_e++,Ue--),se++,Q--,Ue>Q&&(Ye=!1)}for(;z-- >1;)this.stack.pop();if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&$.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return this.errStr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(Ye?$.true:$.false),o===s.OP_CHECKMULTISIGVERIFY)if(Ye)this.stack.pop();else return this.errStr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1}break;case s.OP_CAT:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let Z=this.stack[this.stack.length-2],W=this.stack[this.stack.length-1];this.stack[this.stack.length-2]=Buffer.concat([Z,W]),this.stack.pop();break;case s.OP_SPLIT:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ie=this.stack[this.stack.length-2],oe=new c().fromScriptNumBuffer(this.stack[this.stack.length-1],e);if(oe.lt(0)||oe.gt(ie.length))return this.errStr="SCRIPT_ERR_INVALID_SPLIT_RANGE",!1;let ne=ie.slice(0,oe),ve=ie.slice(oe);this.stack.pop(),this.stack.pop(),this.stack.push(ne),this.stack.push(ve);break;default:return this.errStr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}verify(e,t,i,o,m,O){let P=this.results(e,t,i,o,m,O);for(let Z of P)if(!Z)return!1;return!0}*results(e,t,i,o,m,O){let P;this.fromObject({script:e,tx:i,nIn:o,flags:m,valueBn:O}),m&$.SCRIPT_VERIFY_SIGPUSHONLY&&!e.isPushOnly()&&(this.errStr=this.errStr||"SCRIPT_ERR_SIG_PUSHONLY",yield!1),yield*this.eval(),m&$.SCRIPT_VERIFY_P2SH&&(P=this.stack.slice());let Z=this.stack;this.initialize(),this.fromObject({script:t,stack:Z,tx:i,nIn:o,flags:m,valueBn:O}),yield*this.eval(),this.stack.length===0&&(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1);let W=this.stack[this.stack.length-1];if($.castToBool(W)||(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1),m&$.SCRIPT_VERIFY_P2SH&&t.isScriptHashOut()){e.isPushOnly()||(this.errStr=this.errStr||"SCRIPT_ERR_SIG_PUSHONLY",yield!1);let ie=Z;if(Z=P,P=ie,Z.length===0)throw new Error("internal error - stack copy empty");let oe=Z[Z.length-1],ne=new ee().fromBuffer(oe);Z.pop(),this.initialize(),this.fromObject({script:ne,stack:Z,tx:i,nIn:o,flags:m,valueBn:O}),yield*this.eval(),Z.length===0&&(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1),$.castToBool(Z[Z.length-1])?yield!0:(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1)}if(m&$.SCRIPT_VERIFY_CLEANSTACK){if(!(m&$.SCRIPT_VERIFY_P2SH))throw new Error("cannot use CLEANSTACK without P2SH");Z.length!==1&&(this.errStr=this.errStr||"SCRIPT_ERR_CLEANSTACK",yield!1)}yield!0}getDebugObject(){let e=this.pc-1;return{errStr:this.errStr,scriptStr:this.script?this.script.toString():"no script found",pc:e,stack:this.stack.map(t=>t.toString("hex")),altStack:this.altStack.map(t=>t.toString("hex")),opCodeStr:this.script?s.fromNumber(this.script.chunks[e].opCodeNum).toString():"no script found"}}getDebugString(){return JSON.stringify(this.getDebugObject(),null,2)}}$.true=Buffer.from([1]),$.false=Buffer.from([]),$.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS=1e4,$.LOCKTIME_THRESHOLD=5e8,$.SCRIPT_VERIFY_NONE=0,$.SCRIPT_VERIFY_P2SH=1,$.SCRIPT_VERIFY_STRICTENC=2,$.SCRIPT_VERIFY_DERSIG=4,$.SCRIPT_VERIFY_LOW_S=8,$.SCRIPT_VERIFY_NULLDUMMY=16,$.SCRIPT_VERIFY_SIGPUSHONLY=32,$.SCRIPT_VERIFY_MINIMALDATA=64,$.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,$.SCRIPT_VERIFY_CLEANSTACK=256,$.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,$.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY=1024,$.SCRIPT_ENABLE_SIGHASH_FORKID=65536,$.defaultFlags=$.SCRIPT_VERIFY_P2SH|$.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY;class Ae extends L{static{f(this,"SigOperations")}constructor(e=new Map){super({map:e})}toJSON(){const e={};return this.map.forEach((t,i)=>{e[i]=t.map(o=>({nScriptChunk:o.nScriptChunk,type:o.type,addressStr:o.addressStr,nHashType:o.nHashType,log:o.log}))}),e}fromJSON(e){return Object.keys(e).forEach(t=>{this.map.set(t,e[t].map(i=>({nScriptChunk:i.nScriptChunk,type:i.type,addressStr:i.addressStr,nHashType:i.nHashType,log:i.log})))}),this}setOne(e,t,i,o="sig",m,O=J.SIGHASH_ALL|J.SIGHASH_FORKID){const P=e.toString("hex")+":"+t,Z={nScriptChunk:i,type:o,addressStr:m,nHashType:O};return this.map.set(P,[Z]),this}setMany(e,t,i){const o=e.toString("hex")+":"+t;return i=i.map(m=>({type:m.type||"sig",nHashType:m.nHashType||J.SIGHASH_ALL|J.SIGHASH_FORKID,...m})),this.map.set(o,i),this}addOne(e,t,i,o="sig",m,O=J.SIGHASH_ALL|J.SIGHASH_FORKID){const P=this.get(e,t)||[];return P.push({nScriptChunk:i,type:o,addressStr:m,nHashType:O}),this.setMany(e,t,P),this}get(e,t){const i=e.toString("hex")+":"+t;return this.map.get(i)||[]}}class Re extends L{static{f(this,"TxOutMap")}constructor(e=new Map){super({map:e})}toJSON(){const e={};return this.map.forEach((t,i)=>{e[i]=t.toHex()}),e}fromJSON(e){return Object.keys(e).forEach(t=>{this.map.set(t,Ve.fromHex(e[t]))}),this}set(e,t,i){const o=e.toString("hex")+":"+t;return this.map.set(o,i),this}get(e,t){const i=e.toString("hex")+":"+t;return this.map.get(i)}setTx(e){const t=e.hash().toString("hex");return e.txOuts.forEach((i,o)=>{const m=t+":"+o;this.map.set(m,i)}),this}}const We=C.Default.TxBuilder;class He extends L{static{f(this,"TxBuilder")}constructor(e=new he,t=[],i=[],o=new Re,m=new Ae,O,P,Z,W=We.feePerKbNum,ie=0,oe=1,ne=1,ve=We.dust,z=!1,Q=new qe){super({tx:e,txIns:t,txOuts:i,uTxOutMap:o,sigOperations:m,changeScript:O,changeAmountBn:P,feeAmountBn:Z,feePerKbNum:W,nLockTime:ie,versionBytesNum:oe,sigsPerInput:ne,dust:ve,dustChangeToFees:z,hashCache:Q})}toJSON(){const e={};return e.tx=this.tx.toHex(),e.txIns=this.txIns.map(t=>t.toHex()),e.txOuts=this.txOuts.map(t=>t.toHex()),e.uTxOutMap=this.uTxOutMap.toJSON(),e.sigOperations=this.sigOperations.toJSON(),e.changeScript=this.changeScript?this.changeScript.toHex():void 0,e.changeAmountBn=this.changeAmountBn?this.changeAmountBn.toNumber():void 0,e.feeAmountBn=this.feeAmountBn?this.feeAmountBn.toNumber():void 0,e.feePerKbNum=this.feePerKbNum,e.sigsPerInput=this.sigsPerInput,e.dust=this.dust,e.dustChangeToFees=this.dustChangeToFees,e.hashCache=this.hashCache.toJSON(),e}fromJSON(e){return this.tx=new he().fromHex(e.tx),this.txIns=e.txIns.map(t=>ce.fromHex(t)),this.txOuts=e.txOuts.map(t=>Ve.fromHex(t)),this.uTxOutMap=new Re().fromJSON(e.uTxOutMap),this.sigOperations=new Ae().fromJSON(e.sigOperations),this.changeScript=e.changeScript?new ee().fromHex(e.changeScript):void 0,this.changeAmountBn=e.changeAmountBn?new c(e.changeAmountBn):void 0,this.feeAmountBn=e.feeAmountBn?new c(e.feeAmountBn):void 0,this.feePerKbNum=e.feePerKbNum||this.feePerKbNum,this.sigsPerInput=e.sigsPerInput||this.sigsPerInput,this.dust=e.dust||this.dust,this.dustChangeToFees=e.dustChangeToFees||this.dustChangeToFees,this.hashCache=qe.fromJSON(e.hashCache),this}setFeePerKbNum(e){if(typeof e!="number"||e<0)throw new Error("cannot set a fee of zero or less");return this.feePerKbNum=e,this}setChangeAddress(e){return this.changeScript=e.toTxOutScript(),this}setChangeScript(e){return this.changeScript=e,this}setNLocktime(e){return this.nLockTime=e,this}setVersion(e){return this.versionBytesNum=e,this}setDust(e=We.dust){return this.dust=e,this}sendDustChangeToFees(e=!1){return this.dustChangeToFees=e,this}importPartiallySignedTx(e,t=this.uTxOutMap,i=this.sigOperations){return this.tx=e,this.uTxOutMap=t,this.sigOperations=i,this}inputFromScript(e,t,i,o,m){if(!Buffer.isBuffer(e)||typeof t!="number"||!(i instanceof Ve)||!(o instanceof ee))throw new Error("invalid one of: txHashBuf, txOutNum, txOut, script");return this.txIns.push(ce.fromProperties(e,t,o,m)),this.uTxOutMap.set(e,t,i),this}addSigOperation(e,t,i,o,m,O){return this.sigOperations.addOne(e,t,i,o,m,O),this}inputFromPubKeyHash(e,t,i,o,m,O){if(!Buffer.isBuffer(e)||typeof t!="number"||!(i instanceof Ve))throw new Error("invalid one of: txHashBuf, txOutNum, txOut");this.txIns.push(new ce().fromObject({nSequence:m}).fromPubKeyHashTxOut(e,t,i,o)),this.uTxOutMap.set(e,t,i);const P=ue.fromTxOutScript(i.script).toString();return this.addSigOperation(e,t,0,"sig",P,O),this.addSigOperation(e,t,1,"pubKey",P),this}outputToAddress(e,t){if(!(t instanceof ue)||!(e instanceof c))throw new Error("addr must be an Address, and valueBn must be a Bn");const i=new ee().fromPubKeyHash(t.hashBuf);return this.outputToScript(e,i),this}outputToScript(e,t){if(!(t instanceof ee)||!(e instanceof c))throw new Error("script must be a Script, and valueBn must be a Bn");const i=Ve.fromProperties(e,t);return this.txOuts.push(i),this}buildOutputs(){let e=new c(0);return this.txOuts.forEach(t=>{if(t.valueBn.lt(this.dust)&&!t.script.isNonSpendable())throw new Error("cannot create output lesser than dust");e=e.add(t.valueBn),this.tx.addTxOut(t)}),e}buildInputs(e,t=0){let i=new c(0);for(const o of this.txIns){const m=this.uTxOutMap.get(o.txHashBuf,o.txOutNum);if(i=i.add(m.valueBn),this.tx.addTxIn(o),i.geq(e)){if(t<=0)break;t--}}if(i.lt(e))throw new Error("not enough funds for outputs: inAmountBn "+i.toNumber()+" outAmountBn "+e.toNumber());return i}estimateSize(){let i=this.tx.toBuffer().length;return this.tx.txIns.forEach(o=>{const{txHashBuf:m,txOutNum:O}=o;this.sigOperations.get(m,O).forEach(Z=>{const{nScriptChunk:W,type:ie}=Z,ne=new ee([o.script.chunks[W]]).toBuffer().length;if(i-=ne,ie==="sig")i+=72;else if(Z.type==="pubKey")i+=35;else throw new Error("unsupported sig operations type")})}),i=i+1,Math.round(i)}estimateFee(e=new c(0)){const t=Math.ceil(this.estimateSize()/1e3*this.feePerKbNum);return new c(t).add(e)}build(e={useAllInputs:!1}){let t;if(this.txIns.length<=0)throw Error("tx-builder number of inputs must be greater than 0");if(!this.changeScript)throw new Error("must specify change script to use build method");for(let i=e.useAllInputs?this.txIns.length-1:0;i<this.txIns.length;i++){this.tx=new he;const o=this.buildOutputs(),m=Ve.fromProperties(new c(0),this.changeScript);this.tx.addTxOut(m);let O;try{O=this.buildInputs(o,i)}catch(P){throw P.message.includes("not enough funds for outputs")?new Error("unable to gather enough inputs for outputs and fee"):P}if(this.changeAmountBn=O.sub(o),m.valueBn=this.changeAmountBn,t=this.estimateFee(),this.changeAmountBn.geq(t)&&this.changeAmountBn.sub(t).gt(this.dust))break}if(this.changeAmountBn.geq(t)){if(this.feeAmountBn=t,this.changeAmountBn=this.changeAmountBn.sub(this.feeAmountBn),this.tx.txOuts[this.tx.txOuts.length-1].valueBn=this.changeAmountBn,this.changeAmountBn.lt(this.dust))if(this.dustChangeToFees)this.tx.txOuts.pop(),this.tx.txOutsVi=le.fromNumber(this.tx.txOutsVi.toNumber()-1),this.feeAmountBn=this.feeAmountBn.add(this.changeAmountBn),this.changeAmountBn=new c(0);else throw new Error("unable to create change amount greater than dust");if(this.tx.nLockTime=this.nLockTime,this.tx.versionBytesNum=this.versionBytesNum,this.tx.txOuts.length===0)throw new Error("outputs length is zero - unable to create any outputs greater than dust");return this}else throw new Error("unable to gather enough inputs for outputs and fee")}sort(){return this.tx.sort(),this}static allSigsPresent(e,t){let i=0;for(let o=1;o<t.chunks.length-1;o++)t.chunks[o].buf&&i++;return i===e}static removeBlankSigs(e){e=new ee(e.chunks.slice());for(let t=1;t<e.chunks.length-1;t++)e.chunks[t].buf||e.chunks.splice(t,1);return e}fillSig(e,t,i){const o=this.tx.txIns[e];return o.script.chunks[t]=new ee().writeBuffer(i.toTxFormat()).chunks[0],o.scriptVi=le.fromNumber(o.script.toBuffer().length),this}getSig(e,t=J.SIGHASH_ALL|J.SIGHASH_FORKID,i,o,m=he.SCRIPT_ENABLE_SIGHASH_FORKID){let O;if(t&J.SIGHASH_FORKID&&m&he.SCRIPT_ENABLE_SIGHASH_FORKID){const P=this.tx.txIns[i].txHashBuf,Z=this.tx.txIns[i].txOutNum,W=this.uTxOutMap.get(P,Z);if(!W)throw new Error("for SIGHASH_FORKID must provide UTXOs");O=W.valueBn}return this.tx.sign(e,t,i,o,O,m,this.hashCache)}asyncGetSig(e,t=J.SIGHASH_ALL|J.SIGHASH_FORKID,i,o,m=he.SCRIPT_ENABLE_SIGHASH_FORKID){let O;if(t&J.SIGHASH_FORKID&&m&he.SCRIPT_ENABLE_SIGHASH_FORKID){const P=this.tx.txIns[i].txHashBuf,Z=this.tx.txIns[i].txOutNum,W=this.uTxOutMap.get(P,Z);if(!W)throw new Error("for SIGHASH_FORKID must provide UTXOs");O=W.valueBn}return this.tx.asyncSign(e,t,i,o,O,m,this.hashCache)}signTxIn(e,t,i,o,m=J.SIGHASH_ALL|J.SIGHASH_FORKID,O=he.SCRIPT_ENABLE_SIGHASH_FORKID){const P=this.tx.txIns[e],Z=P.script;if(o===void 0&&Z.isPubKeyHashIn()&&(o=0),o===void 0)throw new Error("cannot sign unknown script type for input "+e);const W=P.txHashBuf,ie=P.txOutNum;i||(i=this.uTxOutMap.get(W,ie));const ne=i.script,ve=this.getSig(t,m,e,ne,O,this.hashCache);return this.fillSig(e,o,ve),this}async asyncSignTxIn(e,t,i,o,m=J.SIGHASH_ALL|J.SIGHASH_FORKID,O=he.SCRIPT_ENABLE_SIGHASH_FORKID){const P=this.tx.txIns[e],Z=P.script;if(o===void 0&&Z.isPubKeyHashIn()&&(o=0),o===void 0)throw new Error("cannot sign unknown script type for input "+e);const W=P.txHashBuf,ie=P.txOutNum;i||(i=this.uTxOutMap.get(W,ie));const ne=i.script,ve=await this.asyncGetSig(t,m,e,ne,O,this.hashCache);return this.fillSig(e,o,ve),this}signWithKeyPairs(e){const t={};for(const i of e){const o=ue.fromPubKey(i.pubKey).toString();t[o]=i}for(const i in this.tx.txIns){const o=this.tx.txIns[i],m=this.sigOperations.get(o.txHashBuf,o.txOutNum);for(const O of m){const{nScriptChunk:P,type:Z,addressStr:W,nHashType:ie}=O,oe=t[W];if(!oe){O.log=`cannot find keyPair for addressStr ${W}`;continue}const ne=this.uTxOutMap.get(o.txHashBuf,o.txOutNum);if(Z==="sig")this.signTxIn(i,oe,ne,P,ie),O.log="successfully inserted signature";else if(Z==="pubKey")o.script.chunks[P]=new ee().writeBuffer(oe.pubKey.toBuffer()).chunks[0],o.setScript(o.script),O.log="successfully inserted public key";else{O.log=`cannot perform operation of type ${Z}`;continue}}}return this}}class Te extends L{static{f(this,"TxVerifier")}constructor(e,t,i,o){super({tx:e,txOutMap:t,errStr:i,interp:o})}verify(e=$.SCRIPT_ENABLE_SIGHASH_FORKID){return!this.checkStr()&&!this.verifyStr(e)}async asyncVerify(e){const t=await this.asyncVerifyStr(e);return!this.checkStr()&&!t}static verify(e,t,i){return new Te(e,t).verify(i)}static asyncVerify(e,t,i){return new Te(e,t).asyncVerify(i)}checkStr(){if(this.tx.txIns.length===0||this.tx.txInsVi.toNumber()===0)return this.errStr="transaction txIns empty",this.errStr;if(this.tx.txOuts.length===0||this.tx.txOutsVi.toNumber()===0)return this.errStr="transaction txOuts empty",this.errStr;if(this.tx.toBuffer().length>Ee.MAX_BLOCK_SIZE)return this.errStr="transaction over the maximum block size",this.errStr;let e=new c(0);for(let i=0;i<this.tx.txOuts.length;i++){const o=this.tx.txOuts[i];if(o.valueBn.lt(0))return this.errStr="transaction txOut "+i+" negative",this.errStr;if(o.valueBn.gt(he.MAX_MONEY))return this.errStr="transaction txOut "+i+" greater than MAX_MONEY",this.errStr;if(e=e.add(o.valueBn),e.gt(he.MAX_MONEY))return this.errStr="transaction txOut "+i+" total output greater than MAX_MONEY",this.errStr}const t={};for(let i=0;i<this.tx.txIns.length;i++){const o=this.tx.txIns[i],m=o.txHashBuf.toString("hex")+":"+o.txOutNum;if(t[m]!==void 0)return this.errStr="transaction input "+i+" duplicate input",this.errStr;t[m]=!0}if(this.tx.isCoinbase()){const i=this.tx.txIns[0].script.toBuffer();if(i.length<2||i.length>100)return this.errStr="coinbase trasaction script size invalid",this.errStr}else for(let i=0;i<this.tx.txIns.length;i++)if(this.tx.txIns[i].hasNullInput())return this.errStr="transaction input "+i+" has null input",this.errStr;return!1}verifyStr(e){for(let t=0;t<this.tx.txIns.length;t++)if(!this.verifyNIn(t,e))return this.errStr="input "+t+" failed script verify",this.errStr;return!1}async asyncVerifyStr(e){for(let t=0;t<this.tx.txIns.length;t++)if(!await this.asyncVerifyNIn(t,e))return this.errStr="input "+t+" failed script verify",this.errStr;return!1}verifyNIn(e,t){const i=this.tx.txIns[e],o=i.script,m=this.txOutMap.get(i.txHashBuf,i.txOutNum);if(!m)return console.log("output "+i.txOutNum+" not found"),!1;const O=m.script,P=m.valueBn;return this.interp=new $,this.interp.verify(o,O,this.tx,e,t,P)}async asyncVerifyNIn(e,t){const i=this.tx.txIns[e],o=i.script,m=this.txOutMap.get(i.txHashBuf,i.txOutNum);if(!m)return console.log("output "+i.txOutNum+" not found"),!1;const O=m.script,P=m.valueBn;this.interp=new $;const Z=await V.asyncObjectMethod(this.interp,"verify",[o,O,this.tx,e,t,P]);return JSON.parse(Z.resbuf.toString())}getDebugObject(){return{errStr:this.errStr,interpFailure:this.interp?this.interp.getDebugObject():void 0}}getDebugString(){return JSON.stringify(this.getDebugObject(),null,2)}}class ze{static{f(this,"Aes")}}ze.encrypt=function(d,e){const t=ze.buf2Words(e),i=ze.buf2Words(d),m=new(Y())(t).encrypt(i);return ze.words2Buf(m)},ze.decrypt=function(d,e){const t=ze.buf2Words(d),i=ze.buf2Words(e),m=new(Y())(i).decrypt(t);return ze.words2Buf(m)},ze.buf2Words=function(d){if(d.length%4)throw new Error("buf length must be a multiple of 4");const e=[];for(let t=0;t<d.length/4;t++)e.push(d.readUInt32BE(t*4));return e},ze.words2Buf=function(d){const e=Buffer.alloc(d.length*4);for(let t=0;t<d.length;t++)e.writeUInt32BE(d[t],t*4);return e};class be{static{f(this,"Cbc")}}be.buf2BlocksBuf=function(d,e){const t=e/8,i=[];for(let o=0;o<=d.length/t;o++){let m=d.slice(o*t,o*t+t);m.length<e&&(m=be.pkcs7Pad(m,e)),i.push(m)}return i},be.blockBufs2Buf=function(d){let e=d[d.length-1];return e=be.pkcs7Unpad(e),d[d.length-1]=e,Buffer.concat(d)},be.encrypt=function(d,e,t,i){const o=e.length*8,m=be.buf2BlocksBuf(d,o),O=be.encryptBlocks(m,e,t,i);return Buffer.concat(O)},be.decrypt=function(d,e,t,i){const o=e.length,m=[];for(let Z=0;Z<d.length/o;Z++)m.push(d.slice(Z*o,Z*o+o));const O=be.decryptBlocks(m,e,t,i);return be.blockBufs2Buf(O)},be.encryptBlock=function(d,e,t,i){const o=be.xorBufs(d,e);return t.encrypt(o,i)},be.decryptBlock=function(d,e,t,i){const o=t.decrypt(d,i);return be.xorBufs(o,e)},be.encryptBlocks=function(d,e,t,i){const o=[];for(let m=0;m<d.length;m++){const O=d[m],P=be.encryptBlock(O,e,t,i);o.push(P),e=P}return o},be.decryptBlocks=function(d,e,t,i){const o=[];for(let m=0;m<d.length;m++){const O=d[m],P=be.decryptBlock(O,e,t,i);o.push(P),e=O}return o},be.pkcs7Pad=function(d,e){const i=e/8-d.length,o=Buffer.alloc(i);return o.fill(i),Buffer.concat([d,o])},be.pkcs7Unpad=function(d){const e=d[d.length-1],t=d.slice(d.length-e,d.length),i=Buffer.alloc(e);if(i.fill(e),!G(t,i))throw new Error("invalid padding");return d.slice(0,d.length-e)},be.xorBufs=function(d,e){if(d.length!==e.length)throw new Error("bufs must have the same length");const t=Buffer.alloc(d.length);for(let i=0;i<d.length;i++)t[i]=d[i]^e[i];return t};class Ie{static{f(this,"Aescbc")}}Ie.encrypt=function(d,e,t,i=!0){t=t||te.getRandomBuffer(128/8);const o=be.encrypt(d,t,ze,e);return i?Buffer.concat([t,o]):o},Ie.decrypt=function(d,e,t=!1){if(t){const i=d;return be.decrypt(i,t,ze,e)}else{const i=d.slice(0,16),o=d.slice(128/8);return be.decrypt(o,i,ze,e)}};class je{static{f(this,"Ach")}}je.encrypt=function(d,e,t){const i=Ie.encrypt(d,e,t),o=U.sha256Hmac(i,e);return Buffer.concat([o,i])},je.asyncEncrypt=async function(d,e,t){t||(t=te.getRandomBuffer(128/8));const i=[d,e,t];return(await V.asyncClassMethod(je,"encrypt",i)).resbuf},je.decrypt=function(d,e){if(d.length<512/8)throw new Error("The encrypted data must be at least 256+128+128 bits, which is the length of the Hmac plus the iv plus the smallest encrypted data size");const t=d.slice(0,256/8);d=d.slice(256/8,d.length);const i=U.sha256Hmac(d,e);if(!G(t,i))throw new Error("Message authentication failed - Hmacs are not equivalent");return Ie.decrypt(d,e)},je.asyncDecrypt=async function(d,e){const t=[d,e];return(await V.asyncClassMethod(je,"decrypt",t)).resbuf};class we{static{f(this,"Ecies")}}we.ivkEkM=function(d,e){const t=d.bn,o=e.point.mul(t),O=new v(o).toBuffer(),P=U.sha512(O);return{iv:P.slice(0,16),kE:P.slice(16,32),kM:P.slice(32,64)}},we.electrumEncrypt=function(d,e,t,i=!1){if(!Buffer.isBuffer(d))throw new Error("messageBuf must be a buffer");let o;t===null&&(t=pe.fromRandom()),i||(o=t.pubKey.toDer(!0));const{iv:m,kE:O,kM:P}=we.ivkEkM(t.privKey,e),Z=Ie.encrypt(d,O,m,!1),W=Buffer.from("BIE1");let ie;o?ie=Buffer.concat([W,o,Z]):ie=Buffer.concat([W,Z]);const oe=U.sha256Hmac(ie,P);return Buffer.concat([ie,oe])},we.electrumDecrypt=function(d,e,t=null){if(!Buffer.isBuffer(d))throw new Error("encBuf must be a buffer");const i=32;if(!d.slice(0,4).equals(Buffer.from("BIE1")))throw new Error("Invalid Magic");let m=4;if(t===null){const ne=d.slice(4,37);t=v.fromDer(ne),m=37}const{iv:O,kE:P,kM:Z}=we.ivkEkM(e,t),W=d.slice(m,d.length-i),ie=d.slice(d.length-i,d.length),oe=U.sha256Hmac(d.slice(0,d.length-i),Z);if(!ie.equals(oe))throw new Error("Invalid checksum");return Ie.decrypt(W,P,O)},we.bitcoreEncrypt=function(d,e,t,i){t||(t=pe.fromRandom());const o=t.privKey.bn,O=t.pubKey.toDer(!0),ie=e.point.mul(o).getX().toBuffer({size:32}),oe=U.sha512(ie),ne=oe.slice(0,32),ve=oe.slice(32,64),z=Ie.encrypt(d,ne,i),Q=U.sha256Hmac(z,ve);return Buffer.concat([O,z,Q])},we.asyncBitcoreEncrypt=async function(d,e,t,i){t||(t=await pe.asyncFromRandom()),i||(i=te.getRandomBuffer(128/8));const o=[d,e,t,i];return(await V.asyncClassMethod(we,"bitcoreEncrypt",o)).resbuf},we.bitcoreDecrypt=function(d,e){const t=e.bn,m=v.fromDer(d.slice(0,33)).point.mul(t);if(m.eq(new S))throw new Error("P equals 0");const P=m.getX().toBuffer({size:32}),Z=U.sha512(P),W=Z.slice(0,32),ie=Z.slice(32,64),oe=d.slice(33,d.length-32),ne=d.slice(d.length-32,d.length),ve=U.sha256Hmac(oe,ie);if(!G(ne,ve))throw new Error("Invalid checksum");return Ie.decrypt(oe,W)},we.asyncBitcoreDecrypt=async function(d,e){const t=[d,e];return(await V.asyncClassMethod(we,"bitcoreDecrypt",t)).resbuf};const Le={aes:Y(),bnjs:B(),bs58:N(),elliptic:u(),hashjs:H(),pbkdf2:M,Buffer:w.Buffer},Xe=l.i8})(),module.exports=$e})();
|
|
1
|
+
var yt=Object.defineProperty;var o=(nt,it)=>yt(nt,"name",{value:it,configurable:!0});(()=>{var nt={297:Z=>{Z.exports=W;function W(T){this._tables[0][0][0]||this._precompute();var B,F,A,k=this._tables[0][4],u=this._tables[1],_=T.length,H=1;if(_!==4&&_!==6&&_!==8)throw new Error("invalid aes key size");this._key=[F=T.slice(0),A=[]];for(var M=_;M<4*_+28;M++)B=F[M-1],(M%_===0||_===8&&M%_===4)&&(B=k[B>>>24]<<24^k[B>>16&255]<<16^k[B>>8&255]<<8^k[B&255],M%_===0&&(B=B<<8^B>>>24^H<<24,H=H<<1^(H>>7)*283)),F[M]=F[M-_]^B;for(var w=0;M;w++,M--)B=F[w&3?M:M-4],M<=4||w<4?A[w]=B:A[w]=u[0][k[B>>>24]]^u[1][k[B>>16&255]]^u[2][k[B>>8&255]]^u[3][k[B&255]]}o(W,"AES"),W.prototype={encrypt:function(T){return this._crypt(T,0)},decrypt:function(T){return this._crypt(T,1)},_tables:[[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)]],_precompute:function(){var T=this._tables[0],B=this._tables[1],F=T[4],A=B[4],k,u,_,H=new Uint8Array(256),M=new Uint8Array(256),w,l,f,x,E,P;for(k=0;k<256;k++)M[(H[k]=k<<1^(k>>7)*283)^k]=k;for(u=_=0;!F[u];u^=w||1,_=M[_]||1)for(x=_^_<<1^_<<2^_<<3^_<<4,x=x>>8^x&255^99,F[u]=x,A[x]=u,f=H[l=H[w=H[u]]],P=f*16843009^l*65537^w*257^u*16843008,E=H[x]*257^x*16843008,k=0;k<4;k++)T[k][u]=E=E<<24^E>>>8,B[k][x]=P=P<<24^P>>>8},_crypt:function(T,B){if(T.length!==4)throw new Error("invalid aes block size");var F=this._key[B],A=T[0]^F[0],k=T[B?3:1]^F[1],u=T[2]^F[2],_=T[B?1:3]^F[3],H,M,w,l=F.length/4-2,f,x=4,E=new Uint32Array(4),P=this._tables[B],I=P[0],R=P[1],K=P[2],L=P[3],V=P[4];for(f=0;f<l;f++)H=I[A>>>24]^R[k>>16&255]^K[u>>8&255]^L[_&255]^F[x],M=I[k>>>24]^R[u>>16&255]^K[_>>8&255]^L[A&255]^F[x+1],w=I[u>>>24]^R[_>>16&255]^K[A>>8&255]^L[k&255]^F[x+2],_=I[_>>>24]^R[A>>16&255]^K[k>>8&255]^L[u&255]^F[x+3],x+=4,A=H,k=M,u=w;for(f=0;f<4;f++)E[B?3&-f:f]=V[A>>>24]<<24^V[k>>16&255]<<16^V[u>>8&255]<<8^V[_&255]^F[x++],H=A,A=k,k=u,u=_,_=H;return E}}},162:Z=>{"use strict";function W(T){if(T.length>=255)throw new TypeError("Alphabet too long");for(var B=new Uint8Array(256),F=0;F<B.length;F++)B[F]=255;for(var A=0;A<T.length;A++){var k=T.charAt(A),u=k.charCodeAt(0);if(B[u]!==255)throw new TypeError(k+" is ambiguous");B[u]=A}var _=T.length,H=T.charAt(0),M=Math.log(_)/Math.log(256),w=Math.log(256)/Math.log(_);function l(E){if(E instanceof Uint8Array||(ArrayBuffer.isView(E)?E=new Uint8Array(E.buffer,E.byteOffset,E.byteLength):Array.isArray(E)&&(E=Uint8Array.from(E))),!(E instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(E.length===0)return"";for(var P=0,I=0,R=0,K=E.length;R!==K&&E[R]===0;)R++,P++;for(var L=(K-R)*w+1>>>0,V=new Uint8Array(L);R!==K;){for(var j=E[R],Y=0,J=L-1;(j!==0||Y<I)&&J!==-1;J--,Y++)j+=256*V[J]>>>0,V[J]=j%_>>>0,j=j/_>>>0;if(j!==0)throw new Error("Non-zero carry");I=Y,R++}for(var z=L-I;z!==L&&V[z]===0;)z++;for(var U=H.repeat(P);z<L;++z)U+=T.charAt(V[z]);return U}o(l,"encode");function f(E){if(typeof E!="string")throw new TypeError("Expected String");if(E.length===0)return new Uint8Array;for(var P=0,I=0,R=0;E[P]===H;)I++,P++;for(var K=(E.length-P)*M+1>>>0,L=new Uint8Array(K);E[P];){var V=B[E.charCodeAt(P)];if(V===255)return;for(var j=0,Y=K-1;(V!==0||j<R)&&Y!==-1;Y--,j++)V+=_*L[Y]>>>0,L[Y]=V%256>>>0,V=V/256>>>0;if(V!==0)throw new Error("Non-zero carry");R=j,P++}for(var J=K-R;J!==K&&L[J]===0;)J++;for(var z=new Uint8Array(I+(K-J)),U=I;J!==K;)z[U++]=L[J++];return z}o(f,"decodeUnsafe");function x(E){var P=f(E);if(P)return P;throw new Error("Non-base"+_+" character")}return o(x,"decode"),{encode:l,decodeUnsafe:f,decode:x}}o(W,"base"),Z.exports=W},666:(Z,W,T)=>{"use strict";var B=W;B.version=T(726).i8,B.utils=T(359),B.rand=T(931),B.curve=T(104),B.curves=T(626),B.ec=T(630)},15:(Z,W,T)=>{"use strict";var B=T(550),F=T(359),A=F.getNAF,k=F.getJSF,u=F.assert;function _(M,w){this.type=M,this.p=new B(w.p,16),this.red=w.prime?B.red(w.prime):B.mont(this.p),this.zero=new B(0).toRed(this.red),this.one=new B(1).toRed(this.red),this.two=new B(2).toRed(this.red),this.n=w.n&&new B(w.n,16),this.g=w.g&&this.pointFromJSON(w.g,w.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;var l=this.n&&this.p.div(this.n);!l||l.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}o(_,"BaseCurve"),Z.exports=_,_.prototype.point=o(function(){throw new Error("Not implemented")},"point"),_.prototype.validate=o(function(){throw new Error("Not implemented")},"validate"),_.prototype._fixedNafMul=o(function(w,l){u(w.precomputed);var f=w._getDoubles(),x=A(l,1,this._bitLength),E=(1<<f.step+1)-(f.step%2===0?2:1);E/=3;for(var P=[],I=0;I<x.length;I+=f.step){for(var R=0,l=I+f.step-1;l>=I;l--)R=(R<<1)+x[l];P.push(R)}for(var K=this.jpoint(null,null,null),L=this.jpoint(null,null,null),V=E;V>0;V--){for(var I=0;I<P.length;I++){var R=P[I];R===V?L=L.mixedAdd(f.points[I]):R===-V&&(L=L.mixedAdd(f.points[I].neg()))}K=K.add(L)}return K.toP()},"_fixedNafMul"),_.prototype._wnafMul=o(function(w,l){var f=4,x=w._getNAFPoints(f);f=x.wnd;for(var E=x.points,P=A(l,f,this._bitLength),I=this.jpoint(null,null,null),R=P.length-1;R>=0;R--){for(var l=0;R>=0&&P[R]===0;R--)l++;if(R>=0&&l++,I=I.dblp(l),R<0)break;var K=P[R];u(K!==0),w.type==="affine"?K>0?I=I.mixedAdd(E[K-1>>1]):I=I.mixedAdd(E[-K-1>>1].neg()):K>0?I=I.add(E[K-1>>1]):I=I.add(E[-K-1>>1].neg())}return w.type==="affine"?I.toP():I},"_wnafMul"),_.prototype._wnafMulAdd=o(function(w,l,f,x,E){for(var P=this._wnafT1,I=this._wnafT2,R=this._wnafT3,K=0,L=0;L<x;L++){var V=l[L],j=V._getNAFPoints(w);P[L]=j.wnd,I[L]=j.points}for(var L=x-1;L>=1;L-=2){var Y=L-1,J=L;if(P[Y]!==1||P[J]!==1){R[Y]=A(f[Y],P[Y],this._bitLength),R[J]=A(f[J],P[J],this._bitLength),K=Math.max(R[Y].length,K),K=Math.max(R[J].length,K);continue}var z=[l[Y],null,null,l[J]];l[Y].y.cmp(l[J].y)===0?(z[1]=l[Y].add(l[J]),z[2]=l[Y].toJ().mixedAdd(l[J].neg())):l[Y].y.cmp(l[J].y.redNeg())===0?(z[1]=l[Y].toJ().mixedAdd(l[J]),z[2]=l[Y].add(l[J].neg())):(z[1]=l[Y].toJ().mixedAdd(l[J]),z[2]=l[Y].toJ().mixedAdd(l[J].neg()));var U=[-3,-1,-5,-7,0,7,5,1,3],de=k(f[Y],f[J]);K=Math.max(de[0].length,K),R[Y]=new Array(K),R[J]=new Array(K);for(var ae=0;ae<K;ae++){var Ie=de[0][ae]|0,ce=de[1][ae]|0;R[Y][ae]=U[(Ie+1)*3+(ce+1)],R[J][ae]=0,I[Y]=z}}for(var C=this.jpoint(null,null,null),b=this._wnafT4,L=K;L>=0;L--){for(var r=0;L>=0;){for(var a=!0,ae=0;ae<x;ae++)b[ae]=R[ae][L]|0,b[ae]!==0&&(a=!1);if(!a)break;r++,L--}if(L>=0&&r++,C=C.dblp(r),L<0)break;for(var ae=0;ae<x;ae++){var s=b[ae],V;s!==0&&(s>0?V=I[ae][s-1>>1]:s<0&&(V=I[ae][-s-1>>1].neg()),V.type==="affine"?C=C.mixedAdd(V):C=C.add(V))}}for(var L=0;L<x;L++)I[L]=null;return E?C:C.toP()},"_wnafMulAdd");function H(M,w){this.curve=M,this.type=w,this.precomputed=null}o(H,"BasePoint"),_.BasePoint=H,H.prototype.eq=o(function(){throw new Error("Not implemented")},"eq"),H.prototype.validate=o(function(){return this.curve.validate(this)},"validate"),_.prototype.decodePoint=o(function(w,l){w=F.toArray(w,l);var f=this.p.byteLength();if((w[0]===4||w[0]===6||w[0]===7)&&w.length-1===2*f){w[0]===6?u(w[w.length-1]%2===0):w[0]===7&&u(w[w.length-1]%2===1);var x=this.point(w.slice(1,1+f),w.slice(1+f,1+2*f));return x}else if((w[0]===2||w[0]===3)&&w.length-1===f)return this.pointFromX(w.slice(1,1+f),w[0]===3);throw new Error("Unknown point format")},"decodePoint"),H.prototype.encodeCompressed=o(function(w){return this.encode(w,!0)},"encodeCompressed"),H.prototype._encode=o(function(w){var l=this.curve.p.byteLength(),f=this.getX().toArray("be",l);return w?[this.getY().isEven()?2:3].concat(f):[4].concat(f,this.getY().toArray("be",l))},"_encode"),H.prototype.encode=o(function(w,l){return F.encode(this._encode(l),w)},"encode"),H.prototype.precompute=o(function(w){if(this.precomputed)return this;var l={doubles:null,naf:null,beta:null};return l.naf=this._getNAFPoints(8),l.doubles=this._getDoubles(4,w),l.beta=this._getBeta(),this.precomputed=l,this},"precompute"),H.prototype._hasDoubles=o(function(w){if(!this.precomputed)return!1;var l=this.precomputed.doubles;return l?l.points.length>=Math.ceil((w.bitLength()+1)/l.step):!1},"_hasDoubles"),H.prototype._getDoubles=o(function(w,l){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var f=[this],x=this,E=0;E<l;E+=w){for(var P=0;P<w;P++)x=x.dbl();f.push(x)}return{step:w,points:f}},"_getDoubles"),H.prototype._getNAFPoints=o(function(w){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var l=[this],f=(1<<w)-1,x=f===1?null:this.dbl(),E=1;E<f;E++)l[E]=l[E-1].add(x);return{wnd:w,points:l}},"_getNAFPoints"),H.prototype._getBeta=o(function(){return null},"_getBeta"),H.prototype.dblp=o(function(w){for(var l=this,f=0;f<w;f++)l=l.dbl();return l},"dblp")},104:(Z,W,T)=>{"use strict";var B=W;B.base=T(15),B.short=T(505)},505:(Z,W,T)=>{"use strict";var B=T(359),F=T(550),A=T(378),k=T(15),u=B.assert;function _(w){k.call(this,"short",w),this.a=new F(w.a,16).toRed(this.red),this.b=new F(w.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(w),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}o(_,"ShortCurve"),A(_,k),Z.exports=_,_.prototype._getEndomorphism=o(function(l){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var f,x;if(l.beta)f=new F(l.beta,16).toRed(this.red);else{var E=this._getEndoRoots(this.p);f=E[0].cmp(E[1])<0?E[0]:E[1],f=f.toRed(this.red)}if(l.lambda)x=new F(l.lambda,16);else{var P=this._getEndoRoots(this.n);this.g.mul(P[0]).x.cmp(this.g.x.redMul(f))===0?x=P[0]:(x=P[1],u(this.g.mul(x).x.cmp(this.g.x.redMul(f))===0))}var I;return l.basis?I=l.basis.map(function(R){return{a:new F(R.a,16),b:new F(R.b,16)}}):I=this._getEndoBasis(x),{beta:f,lambda:x,basis:I}}},"_getEndomorphism"),_.prototype._getEndoRoots=o(function(l){var f=l===this.p?this.red:F.mont(l),x=new F(2).toRed(f).redInvm(),E=x.redNeg(),P=new F(3).toRed(f).redNeg().redSqrt().redMul(x),I=E.redAdd(P).fromRed(),R=E.redSub(P).fromRed();return[I,R]},"_getEndoRoots"),_.prototype._getEndoBasis=o(function(l){for(var f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),x=l,E=this.n.clone(),P=new F(1),I=new F(0),R=new F(0),K=new F(1),L,V,j,Y,J,z,U,de=0,ae,Ie;x.cmpn(0)!==0;){var ce=E.div(x);ae=E.sub(ce.mul(x)),Ie=R.sub(ce.mul(P));var C=K.sub(ce.mul(I));if(!j&&ae.cmp(f)<0)L=U.neg(),V=P,j=ae.neg(),Y=Ie;else if(j&&++de===2)break;U=ae,E=x,x=ae,R=P,P=Ie,K=I,I=C}J=ae.neg(),z=Ie;var b=j.sqr().add(Y.sqr()),r=J.sqr().add(z.sqr());return r.cmp(b)>=0&&(J=L,z=V),j.negative&&(j=j.neg(),Y=Y.neg()),J.negative&&(J=J.neg(),z=z.neg()),[{a:j,b:Y},{a:J,b:z}]},"_getEndoBasis"),_.prototype._endoSplit=o(function(l){var f=this.endo.basis,x=f[0],E=f[1],P=E.b.mul(l).divRound(this.n),I=x.b.neg().mul(l).divRound(this.n),R=P.mul(x.a),K=I.mul(E.a),L=P.mul(x.b),V=I.mul(E.b),j=l.sub(R).sub(K),Y=L.add(V).neg();return{k1:j,k2:Y}},"_endoSplit"),_.prototype.pointFromX=o(function(l,f){l=new F(l,16),l.red||(l=l.toRed(this.red));var x=l.redSqr().redMul(l).redIAdd(l.redMul(this.a)).redIAdd(this.b),E=x.redSqrt();if(E.redSqr().redSub(x).cmp(this.zero)!==0)throw new Error("invalid point");var P=E.fromRed().isOdd();return(f&&!P||!f&&P)&&(E=E.redNeg()),this.point(l,E)},"pointFromX"),_.prototype.validate=o(function(l){if(l.inf)return!0;var f=l.x,x=l.y,E=this.a.redMul(f),P=f.redSqr().redMul(f).redIAdd(E).redIAdd(this.b);return x.redSqr().redISub(P).cmpn(0)===0},"validate"),_.prototype._endoWnafMulAdd=o(function(l,f,x){for(var E=this._endoWnafT1,P=this._endoWnafT2,I=0;I<l.length;I++){var R=this._endoSplit(f[I]),K=l[I],L=K._getBeta();R.k1.negative&&(R.k1.ineg(),K=K.neg(!0)),R.k2.negative&&(R.k2.ineg(),L=L.neg(!0)),E[I*2]=K,E[I*2+1]=L,P[I*2]=R.k1,P[I*2+1]=R.k2}for(var V=this._wnafMulAdd(1,E,P,I*2,x),j=0;j<I*2;j++)E[j]=null,P[j]=null;return V},"_endoWnafMulAdd");function H(w,l,f,x){k.BasePoint.call(this,w,"affine"),l===null&&f===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new F(l,16),this.y=new F(f,16),x&&(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)}o(H,"Point"),A(H,k.BasePoint),_.prototype.point=o(function(l,f,x){return new H(this,l,f,x)},"point"),_.prototype.pointFromJSON=o(function(l,f){return H.fromJSON(this,l,f)},"pointFromJSON"),H.prototype._getBeta=o(function(){if(this.curve.endo){var l=this.precomputed;if(l&&l.beta)return l.beta;var f=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(l){var x=this.curve,E=o(function(P){return x.point(P.x.redMul(x.endo.beta),P.y)},"endoMul");l.beta=f,f.precomputed={beta:null,naf:l.naf&&{wnd:l.naf.wnd,points:l.naf.points.map(E)},doubles:l.doubles&&{step:l.doubles.step,points:l.doubles.points.map(E)}}}return f}},"_getBeta"),H.prototype.toJSON=o(function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},"toJSON"),H.fromJSON=o(function(l,f,x){typeof f=="string"&&(f=JSON.parse(f));var E=l.point(f[0],f[1],x);if(!f[2])return E;function P(R){return l.point(R[0],R[1],x)}o(P,"obj2point");var I=f[2];return E.precomputed={beta:null,doubles:I.doubles&&{step:I.doubles.step,points:[E].concat(I.doubles.points.map(P))},naf:I.naf&&{wnd:I.naf.wnd,points:[E].concat(I.naf.points.map(P))}},E},"fromJSON"),H.prototype.inspect=o(function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},"inspect"),H.prototype.isInfinity=o(function(){return this.inf},"isInfinity"),H.prototype.add=o(function(l){if(this.inf)return l;if(l.inf)return this;if(this.eq(l))return this.dbl();if(this.neg().eq(l))return this.curve.point(null,null);if(this.x.cmp(l.x)===0)return this.curve.point(null,null);var f=this.y.redSub(l.y);f.cmpn(0)!==0&&(f=f.redMul(this.x.redSub(l.x).redInvm()));var x=f.redSqr().redISub(this.x).redISub(l.x),E=f.redMul(this.x.redSub(x)).redISub(this.y);return this.curve.point(x,E)},"add"),H.prototype.dbl=o(function(){if(this.inf)return this;var l=this.y.redAdd(this.y);if(l.cmpn(0)===0)return this.curve.point(null,null);var f=this.curve.a,x=this.x.redSqr(),E=l.redInvm(),P=x.redAdd(x).redIAdd(x).redIAdd(f).redMul(E),I=P.redSqr().redISub(this.x.redAdd(this.x)),R=P.redMul(this.x.redSub(I)).redISub(this.y);return this.curve.point(I,R)},"dbl"),H.prototype.getX=o(function(){return this.x.fromRed()},"getX"),H.prototype.getY=o(function(){return this.y.fromRed()},"getY"),H.prototype.mul=o(function(l){return l=new F(l,16),this.isInfinity()?this:this._hasDoubles(l)?this.curve._fixedNafMul(this,l):this.curve.endo?this.curve._endoWnafMulAdd([this],[l]):this.curve._wnafMul(this,l)},"mul"),H.prototype.mulAdd=o(function(l,f,x){var E=[this,f],P=[l,x];return this.curve.endo?this.curve._endoWnafMulAdd(E,P):this.curve._wnafMulAdd(1,E,P,2)},"mulAdd"),H.prototype.jmulAdd=o(function(l,f,x){var E=[this,f],P=[l,x];return this.curve.endo?this.curve._endoWnafMulAdd(E,P,!0):this.curve._wnafMulAdd(1,E,P,2,!0)},"jmulAdd"),H.prototype.eq=o(function(l){return this===l||this.inf===l.inf&&(this.inf||this.x.cmp(l.x)===0&&this.y.cmp(l.y)===0)},"eq"),H.prototype.neg=o(function(l){if(this.inf)return this;var f=this.curve.point(this.x,this.y.redNeg());if(l&&this.precomputed){var x=this.precomputed,E=o(function(P){return P.neg()},"negate");f.precomputed={naf:x.naf&&{wnd:x.naf.wnd,points:x.naf.points.map(E)},doubles:x.doubles&&{step:x.doubles.step,points:x.doubles.points.map(E)}}}return f},"neg"),H.prototype.toJ=o(function(){if(this.inf)return this.curve.jpoint(null,null,null);var l=this.curve.jpoint(this.x,this.y,this.curve.one);return l},"toJ");function M(w,l,f,x){k.BasePoint.call(this,w,"jacobian"),l===null&&f===null&&x===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new F(0)):(this.x=new F(l,16),this.y=new F(f,16),this.z=new F(x,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(M,"JPoint"),A(M,k.BasePoint),_.prototype.jpoint=o(function(l,f,x){return new M(this,l,f,x)},"jpoint"),M.prototype.toP=o(function(){if(this.isInfinity())return this.curve.point(null,null);var l=this.z.redInvm(),f=l.redSqr(),x=this.x.redMul(f),E=this.y.redMul(f).redMul(l);return this.curve.point(x,E)},"toP"),M.prototype.neg=o(function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},"neg"),M.prototype.add=o(function(l){if(this.isInfinity())return l;if(l.isInfinity())return this;var f=l.z.redSqr(),x=this.z.redSqr(),E=this.x.redMul(f),P=l.x.redMul(x),I=this.y.redMul(f.redMul(l.z)),R=l.y.redMul(x.redMul(this.z)),K=E.redSub(P),L=I.redSub(R);if(K.cmpn(0)===0)return L.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var V=K.redSqr(),j=V.redMul(K),Y=E.redMul(V),J=L.redSqr().redIAdd(j).redISub(Y).redISub(Y),z=L.redMul(Y.redISub(J)).redISub(I.redMul(j)),U=this.z.redMul(l.z).redMul(K);return this.curve.jpoint(J,z,U)},"add"),M.prototype.mixedAdd=o(function(l){if(this.isInfinity())return l.toJ();if(l.isInfinity())return this;var f=this.z.redSqr(),x=this.x,E=l.x.redMul(f),P=this.y,I=l.y.redMul(f).redMul(this.z),R=x.redSub(E),K=P.redSub(I);if(R.cmpn(0)===0)return K.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var L=R.redSqr(),V=L.redMul(R),j=x.redMul(L),Y=K.redSqr().redIAdd(V).redISub(j).redISub(j),J=K.redMul(j.redISub(Y)).redISub(P.redMul(V)),z=this.z.redMul(R);return this.curve.jpoint(Y,J,z)},"mixedAdd"),M.prototype.dblp=o(function(l){if(l===0)return this;if(this.isInfinity())return this;if(!l)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var f=this,x=0;x<l;x++)f=f.dbl();return f}for(var E=this.curve.a,P=this.curve.tinv,I=this.x,R=this.y,K=this.z,L=K.redSqr().redSqr(),V=R.redAdd(R),x=0;x<l;x++){var j=I.redSqr(),Y=V.redSqr(),J=Y.redSqr(),z=j.redAdd(j).redIAdd(j).redIAdd(E.redMul(L)),U=I.redMul(Y),de=z.redSqr().redISub(U.redAdd(U)),ae=U.redISub(de),Ie=z.redMul(ae);Ie=Ie.redIAdd(Ie).redISub(J);var ce=V.redMul(K);x+1<l&&(L=L.redMul(J)),I=de,K=ce,V=Ie}return this.curve.jpoint(I,V.redMul(P),K)},"dblp"),M.prototype.dbl=o(function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},"dbl"),M.prototype._zeroDbl=o(function(){var l,f,x;if(this.zOne){var E=this.x.redSqr(),P=this.y.redSqr(),I=P.redSqr(),R=this.x.redAdd(P).redSqr().redISub(E).redISub(I);R=R.redIAdd(R);var K=E.redAdd(E).redIAdd(E),L=K.redSqr().redISub(R).redISub(R),V=I.redIAdd(I);V=V.redIAdd(V),V=V.redIAdd(V),l=L,f=K.redMul(R.redISub(L)).redISub(V),x=this.y.redAdd(this.y)}else{var j=this.x.redSqr(),Y=this.y.redSqr(),J=Y.redSqr(),z=this.x.redAdd(Y).redSqr().redISub(j).redISub(J);z=z.redIAdd(z);var U=j.redAdd(j).redIAdd(j),de=U.redSqr(),ae=J.redIAdd(J);ae=ae.redIAdd(ae),ae=ae.redIAdd(ae),l=de.redISub(z).redISub(z),f=U.redMul(z.redISub(l)).redISub(ae),x=this.y.redMul(this.z),x=x.redIAdd(x)}return this.curve.jpoint(l,f,x)},"_zeroDbl"),M.prototype._threeDbl=o(function(){var l,f,x;if(this.zOne){var E=this.x.redSqr(),P=this.y.redSqr(),I=P.redSqr(),R=this.x.redAdd(P).redSqr().redISub(E).redISub(I);R=R.redIAdd(R);var K=E.redAdd(E).redIAdd(E).redIAdd(this.curve.a),L=K.redSqr().redISub(R).redISub(R);l=L;var V=I.redIAdd(I);V=V.redIAdd(V),V=V.redIAdd(V),f=K.redMul(R.redISub(L)).redISub(V),x=this.y.redAdd(this.y)}else{var j=this.z.redSqr(),Y=this.y.redSqr(),J=this.x.redMul(Y),z=this.x.redSub(j).redMul(this.x.redAdd(j));z=z.redAdd(z).redIAdd(z);var U=J.redIAdd(J);U=U.redIAdd(U);var de=U.redAdd(U);l=z.redSqr().redISub(de),x=this.y.redAdd(this.z).redSqr().redISub(Y).redISub(j);var ae=Y.redSqr();ae=ae.redIAdd(ae),ae=ae.redIAdd(ae),ae=ae.redIAdd(ae),f=z.redMul(U.redISub(l)).redISub(ae)}return this.curve.jpoint(l,f,x)},"_threeDbl"),M.prototype._dbl=o(function(){var l=this.curve.a,f=this.x,x=this.y,E=this.z,P=E.redSqr().redSqr(),I=f.redSqr(),R=x.redSqr(),K=I.redAdd(I).redIAdd(I).redIAdd(l.redMul(P)),L=f.redAdd(f);L=L.redIAdd(L);var V=L.redMul(R),j=K.redSqr().redISub(V.redAdd(V)),Y=V.redISub(j),J=R.redSqr();J=J.redIAdd(J),J=J.redIAdd(J),J=J.redIAdd(J);var z=K.redMul(Y).redISub(J),U=x.redAdd(x).redMul(E);return this.curve.jpoint(j,z,U)},"_dbl"),M.prototype.trpl=o(function(){if(!this.curve.zeroA)return this.dbl().add(this);var l=this.x.redSqr(),f=this.y.redSqr(),x=this.z.redSqr(),E=f.redSqr(),P=l.redAdd(l).redIAdd(l),I=P.redSqr(),R=this.x.redAdd(f).redSqr().redISub(l).redISub(E);R=R.redIAdd(R),R=R.redAdd(R).redIAdd(R),R=R.redISub(I);var K=R.redSqr(),L=E.redIAdd(E);L=L.redIAdd(L),L=L.redIAdd(L),L=L.redIAdd(L);var V=P.redIAdd(R).redSqr().redISub(I).redISub(K).redISub(L),j=f.redMul(V);j=j.redIAdd(j),j=j.redIAdd(j);var Y=this.x.redMul(K).redISub(j);Y=Y.redIAdd(Y),Y=Y.redIAdd(Y);var J=this.y.redMul(V.redMul(L.redISub(V)).redISub(R.redMul(K)));J=J.redIAdd(J),J=J.redIAdd(J),J=J.redIAdd(J);var z=this.z.redAdd(R).redSqr().redISub(x).redISub(K);return this.curve.jpoint(Y,J,z)},"trpl"),M.prototype.mul=o(function(l,f){return l=new F(l,f),this.curve._wnafMul(this,l)},"mul"),M.prototype.eq=o(function(l){if(l.type==="affine")return this.eq(l.toJ());if(this===l)return!0;var f=this.z.redSqr(),x=l.z.redSqr();if(this.x.redMul(x).redISub(l.x.redMul(f)).cmpn(0)!==0)return!1;var E=f.redMul(this.z),P=x.redMul(l.z);return this.y.redMul(P).redISub(l.y.redMul(E)).cmpn(0)===0},"eq"),M.prototype.eqXToP=o(function(l){var f=this.z.redSqr(),x=l.toRed(this.curve.red).redMul(f);if(this.x.cmp(x)===0)return!0;for(var E=l.clone(),P=this.curve.redN.redMul(f);;){if(E.iadd(this.curve.n),E.cmp(this.curve.p)>=0)return!1;if(x.redIAdd(P),this.x.cmp(x)===0)return!0}},"eqXToP"),M.prototype.inspect=o(function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},"inspect"),M.prototype.isInfinity=o(function(){return this.z.cmpn(0)===0},"isInfinity")},626:(Z,W,T)=>{"use strict";var B=W,F=T(715),A=T(104),k=T(359),u=k.assert;function _(w){if(w.type!=="short")throw new Error("invalid curve type");this.curve=new A.short(w),this.g=this.curve.g,this.n=this.curve.n,this.hash=w.hash,u(this.g.validate(),"Invalid curve"),u(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}o(_,"PresetCurve"),B.PresetCurve=_;function H(w,l){Object.defineProperty(B,w,{configurable:!0,enumerable:!0,get:function(){var f=new _(l);return Object.defineProperty(B,w,{configurable:!0,enumerable:!0,value:f}),f}})}o(H,"defineCurve");var M;try{M=T(59)}catch{M=void 0}H("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:F.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",M]})},630:(Z,W,T)=>{"use strict";var B=T(550),F=T(156),A=T(359),k=T(626),u=T(931),_=A.assert,H=T(119),M=T(911);function w(l){if(!(this instanceof w))return new w(l);typeof l=="string"&&(_(k.hasOwnProperty(l),"Unknown curve "+l),l=k[l]),l instanceof k.PresetCurve&&(l={curve:l}),this.curve=l.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=l.curve.g,this.g.precompute(l.curve.n.bitLength()+1),this.hash=l.hash||l.curve.hash}o(w,"EC"),Z.exports=w,w.prototype.keyPair=o(function(f){return new H(this,f)},"keyPair"),w.prototype.keyFromPrivate=o(function(f,x){return H.fromPrivate(this,f,x)},"keyFromPrivate"),w.prototype.keyFromPublic=o(function(f,x){return H.fromPublic(this,f,x)},"keyFromPublic"),w.prototype.genKeyPair=o(function(f){f||(f={});var x=new F({hash:this.hash,pers:f.pers,persEnc:f.persEnc||"utf8",entropy:f.entropy||u(this.hash.hmacStrength),entropyEnc:f.entropy&&f.entropyEnc||"utf8",nonce:this.n.toArray()}),E=this.n.byteLength(),P=this.n.sub(new B(2));do{var I=new B(x.generate(E));if(!(I.cmp(P)>0))return I.iaddn(1),this.keyFromPrivate(I)}while(!0)},"genKeyPair"),w.prototype._truncateToN=o(function(f,x){var E=f.byteLength()*8-this.n.bitLength();return E>0&&(f=f.ushrn(E)),!x&&f.cmp(this.n)>=0?f.sub(this.n):f},"truncateToN"),w.prototype.sign=o(function(f,x,E,P){typeof E=="object"&&(P=E,E=null),P||(P={}),x=this.keyFromPrivate(x,E),f=this._truncateToN(new B(f,16));for(var I=this.n.byteLength(),R=x.getPrivate().toArray("be",I),K=f.toArray("be",I),L=new F({hash:this.hash,entropy:R,nonce:K,pers:P.pers,persEnc:P.persEnc||"utf8"}),V=this.n.sub(new B(1)),j=0;;j++){var Y=P.k?P.k(j):new B(L.generate(this.n.byteLength()));if(Y=this._truncateToN(Y,!0),!(Y.cmpn(1)<=0||Y.cmp(V)>=0)){var J=this.g.mul(Y);if(!J.isInfinity()){var z=J.getX(),U=z.umod(this.n);if(U.cmpn(0)!==0){var de=Y.invm(this.n).mul(U.mul(x.getPrivate()).iadd(f));if(de=de.umod(this.n),de.cmpn(0)!==0){var ae=(J.getY().isOdd()?1:0)|(z.cmp(U)!==0?2:0);return P.canonical&&de.cmp(this.nh)>0&&(de=this.n.sub(de),ae^=1),new M({r:U,s:de,recoveryParam:ae})}}}}}},"sign"),w.prototype.verify=o(function(f,x,E,P){f=this._truncateToN(new B(f,16)),E=this.keyFromPublic(E,P),x=new M(x,"hex");var I=x.r,R=x.s;if(I.cmpn(1)<0||I.cmp(this.n)>=0||R.cmpn(1)<0||R.cmp(this.n)>=0)return!1;var K=R.invm(this.n),L=K.mul(f).umod(this.n),V=K.mul(I).umod(this.n);if(!this.curve._maxwellTrick){var j=this.g.mulAdd(L,E.getPublic(),V);return j.isInfinity()?!1:j.getX().umod(this.n).cmp(I)===0}var j=this.g.jmulAdd(L,E.getPublic(),V);return j.isInfinity()?!1:j.eqXToP(I)},"verify"),w.prototype.recoverPubKey=function(l,f,x,E){_((3&x)===x,"The recovery param is more than two bits"),f=new M(f,E);var P=this.n,I=new B(l),R=f.r,K=f.s,L=x&1,V=x>>1;if(R.cmp(this.curve.p.umod(this.curve.n))>=0&&V)throw new Error("Unable to find sencond key candinate");V?R=this.curve.pointFromX(R.add(this.curve.n),L):R=this.curve.pointFromX(R,L);var j=f.r.invm(P),Y=P.sub(I).mul(j).umod(P),J=K.mul(j).umod(P);return this.g.mulAdd(Y,R,J)},w.prototype.getKeyRecoveryParam=function(l,f,x,E){if(f=new M(f,E),f.recoveryParam!==null)return f.recoveryParam;for(var P=0;P<4;P++){var I;try{I=this.recoverPubKey(l,f,P)}catch{continue}if(I.eq(x))return P}throw new Error("Unable to find valid recovery factor")}},119:(Z,W,T)=>{"use strict";var B=T(550),F=T(359),A=F.assert;function k(u,_){this.ec=u,this.priv=null,this.pub=null,_.priv&&this._importPrivate(_.priv,_.privEnc),_.pub&&this._importPublic(_.pub,_.pubEnc)}o(k,"KeyPair"),Z.exports=k,k.fromPublic=o(function(_,H,M){return H instanceof k?H:new k(_,{pub:H,pubEnc:M})},"fromPublic"),k.fromPrivate=o(function(_,H,M){return H instanceof k?H:new k(_,{priv:H,privEnc:M})},"fromPrivate"),k.prototype.validate=o(function(){var _=this.getPublic();return _.isInfinity()?{result:!1,reason:"Invalid public key"}:_.validate()?_.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"}},"validate"),k.prototype.getPublic=o(function(_,H){return typeof _=="string"&&(H=_,_=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),H?this.pub.encode(H,_):this.pub},"getPublic"),k.prototype.getPrivate=o(function(_){return _==="hex"?this.priv.toString(16,2):this.priv},"getPrivate"),k.prototype._importPrivate=o(function(_,H){this.priv=new B(_,H||16),this.priv=this.priv.umod(this.ec.curve.n)},"_importPrivate"),k.prototype._importPublic=o(function(_,H){if(_.x||_.y){this.ec.curve.type==="mont"?A(_.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&A(_.x&&_.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(_.x,_.y);return}this.pub=this.ec.curve.decodePoint(_,H)},"_importPublic"),k.prototype.derive=o(function(_){return _.mul(this.priv).getX()},"derive"),k.prototype.sign=o(function(_,H,M){return this.ec.sign(_,this,H,M)},"sign"),k.prototype.verify=o(function(_,H){return this.ec.verify(_,H,this)},"verify"),k.prototype.inspect=o(function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},"inspect")},911:(Z,W,T)=>{"use strict";var B=T(550),F=T(359),A=F.assert;function k(w,l){if(w instanceof k)return w;this._importDER(w,l)||(A(w.r&&w.s,"Signature without r or s"),this.r=new B(w.r,16),this.s=new B(w.s,16),w.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=w.recoveryParam)}o(k,"Signature"),Z.exports=k;function u(){this.place=0}o(u,"Position");function _(w,l){var f=w[l.place++];if(!(f&128))return f;for(var x=f&15,E=0,P=0,I=l.place;P<x;P++,I++)E<<=8,E|=w[I];return l.place=I,E}o(_,"getLength");function H(w){for(var l=0,f=w.length-1;!w[l]&&!(w[l+1]&128)&&l<f;)l++;return l===0?w:w.slice(l)}o(H,"rmPadding"),k.prototype._importDER=o(function(l,f){l=F.toArray(l,f);var x=new u;if(l[x.place++]!==48)return!1;var E=_(l,x);if(E+x.place!==l.length||l[x.place++]!==2)return!1;var P=_(l,x),I=l.slice(x.place,P+x.place);if(x.place+=P,l[x.place++]!==2)return!1;var R=_(l,x);if(l.length!==R+x.place)return!1;var K=l.slice(x.place,R+x.place);return I[0]===0&&I[1]&128&&(I=I.slice(1)),K[0]===0&&K[1]&128&&(K=K.slice(1)),this.r=new B(I),this.s=new B(K),this.recoveryParam=null,!0},"_importDER");function M(w,l){if(l<128){w.push(l);return}var f=1+(Math.log(l)/Math.LN2>>>3);for(w.push(f|128);--f;)w.push(l>>>(f<<3)&255);w.push(l)}o(M,"constructLength"),k.prototype.toDER=o(function(l){var f=this.r.toArray(),x=this.s.toArray();for(f[0]&128&&(f=[0].concat(f)),x[0]&128&&(x=[0].concat(x)),f=H(f),x=H(x);!x[0]&&!(x[1]&128);)x=x.slice(1);var E=[2];M(E,f.length),E=E.concat(f),E.push(2),M(E,x.length);var P=E.concat(x),I=[48];return M(I,P.length),I=I.concat(P),F.encode(I,l)},"toDER")},59:Z=>{Z.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},359:(Z,W,T)=>{"use strict";var B=W,F=T(550),A=T(746),k=T(504);B.assert=A,B.toArray=k.toArray,B.zero2=k.zero2,B.toHex=k.toHex,B.encode=k.encode;function u(l,f,x){var E=new Array(Math.max(l.bitLength(),x)+1);E.fill(0);for(var P=1<<f+1,I=l.clone(),R=0;R<E.length;R++){var K,L=I.andln(P-1);I.isOdd()?(L>(P>>1)-1?K=(P>>1)-L:K=L,I.isubn(K)):K=0,E[R]=K,I.iushrn(1)}return E}o(u,"getNAF"),B.getNAF=u;function _(l,f){var x=[[],[]];l=l.clone(),f=f.clone();for(var E=0,P=0;l.cmpn(-E)>0||f.cmpn(-P)>0;){var I=l.andln(3)+E&3,R=f.andln(3)+P&3;I===3&&(I=-1),R===3&&(R=-1);var K;if(!(I&1))K=0;else{var L=l.andln(7)+E&7;(L===3||L===5)&&R===2?K=-I:K=I}x[0].push(K);var V;if(!(R&1))V=0;else{var L=f.andln(7)+P&7;(L===3||L===5)&&I===2?V=-R:V=R}x[1].push(V),2*E===K+1&&(E=1-E),2*P===V+1&&(P=1-P),l.iushrn(1),f.iushrn(1)}return x}o(_,"getJSF"),B.getJSF=_;function H(l,f,x){var E="_"+f;l.prototype[f]=o(function(){return this[E]!==void 0?this[E]:this[E]=x.call(this)},"cachedProperty")}o(H,"cachedProperty"),B.cachedProperty=H;function M(l){return typeof l=="string"?B.toArray(l,"hex"):l}o(M,"parseBytes"),B.parseBytes=M;function w(l){return new F(l,"hex","le")}o(w,"intFromLE"),B.intFromLE=w},550:function(Z,W,T){Z=T.nmd(Z),function(B,F){"use strict";function A(b,r){if(!b)throw new Error(r||"Assertion failed")}o(A,"assert");function k(b,r){b.super_=r;var a=o(function(){},"TempCtor");a.prototype=r.prototype,b.prototype=new a,b.prototype.constructor=b}o(k,"inherits");function u(b,r,a){if(u.isBN(b))return b;this.negative=0,this.words=null,this.length=0,this.red=null,b!==null&&((r==="le"||r==="be")&&(a=r,r=10),this._init(b||0,r||10,a||"be"))}o(u,"BN"),typeof B=="object"?B.exports=u:F.BN=u,u.BN=u,u.wordSize=26;var _;try{typeof window<"u"&&typeof window.Buffer<"u"?_=window.Buffer:_=T(300).Buffer}catch{}u.isBN=o(function(r){return r instanceof u?!0:r!==null&&typeof r=="object"&&r.constructor.wordSize===u.wordSize&&Array.isArray(r.words)},"isBN"),u.max=o(function(r,a){return r.cmp(a)>0?r:a},"max"),u.min=o(function(r,a){return r.cmp(a)<0?r:a},"min"),u.prototype._init=o(function(r,a,s){if(typeof r=="number")return this._initNumber(r,a,s);if(typeof r=="object")return this._initArray(r,a,s);a==="hex"&&(a=16),A(a===(a|0)&&a>=2&&a<=36),r=r.toString().replace(/\s+/g,"");var h=0;r[0]==="-"&&(h++,this.negative=1),h<r.length&&(a===16?this._parseHex(r,h,s):(this._parseBase(r,a,h),s==="le"&&this._initArray(this.toArray(),a,s)))},"init"),u.prototype._initNumber=o(function(r,a,s){r<0&&(this.negative=1,r=-r),r<67108864?(this.words=[r&67108863],this.length=1):r<4503599627370496?(this.words=[r&67108863,r/67108864&67108863],this.length=2):(A(r<9007199254740992),this.words=[r&67108863,r/67108864&67108863,1],this.length=3),s==="le"&&this._initArray(this.toArray(),a,s)},"_initNumber"),u.prototype._initArray=o(function(r,a,s){if(A(typeof r.length=="number"),r.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(r.length/3),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var m,y,S=0;if(s==="be")for(h=r.length-1,m=0;h>=0;h-=3)y=r[h]|r[h-1]<<8|r[h-2]<<16,this.words[m]|=y<<S&67108863,this.words[m+1]=y>>>26-S&67108863,S+=24,S>=26&&(S-=26,m++);else if(s==="le")for(h=0,m=0;h<r.length;h+=3)y=r[h]|r[h+1]<<8|r[h+2]<<16,this.words[m]|=y<<S&67108863,this.words[m+1]=y>>>26-S&67108863,S+=24,S>=26&&(S-=26,m++);return this._strip()},"_initArray");function H(b,r){var a=b.charCodeAt(r);if(a>=48&&a<=57)return a-48;if(a>=65&&a<=70)return a-55;if(a>=97&&a<=102)return a-87;A(!1,"Invalid character in "+b)}o(H,"parseHex4Bits");function M(b,r,a){var s=H(b,a);return a-1>=r&&(s|=H(b,a-1)<<4),s}o(M,"parseHexByte"),u.prototype._parseHex=o(function(r,a,s){this.length=Math.ceil((r.length-a)/6),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var m=0,y=0,S;if(s==="be")for(h=r.length-1;h>=a;h-=2)S=M(r,a,h)<<m,this.words[y]|=S&67108863,m>=18?(m-=18,y+=1,this.words[y]|=S>>>26):m+=8;else{var g=r.length-a;for(h=g%2===0?a+1:a;h<r.length;h+=2)S=M(r,a,h)<<m,this.words[y]|=S&67108863,m>=18?(m-=18,y+=1,this.words[y]|=S>>>26):m+=8}this._strip()},"_parseHex");function w(b,r,a,s){for(var h=0,m=0,y=Math.min(b.length,a),S=r;S<y;S++){var g=b.charCodeAt(S)-48;h*=s,g>=49?m=g-49+10:g>=17?m=g-17+10:m=g,A(g>=0&&m<s,"Invalid character"),h+=m}return h}o(w,"parseBase"),u.prototype._parseBase=o(function(r,a,s){this.words=[0],this.length=1;for(var h=0,m=1;m<=67108863;m*=a)h++;h--,m=m/a|0;for(var y=r.length-s,S=y%h,g=Math.min(y,y-S)+s,n=0,v=s;v<g;v+=h)n=w(r,v,v+h,a),this.imuln(m),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(S!==0){var te=1;for(n=w(r,v,r.length,a),v=0;v<S;v++)te*=a;this.imuln(te),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n)}this._strip()},"_parseBase"),u.prototype.copy=o(function(r){r.words=new Array(this.length);for(var a=0;a<this.length;a++)r.words[a]=this.words[a];r.length=this.length,r.negative=this.negative,r.red=this.red},"copy");function l(b,r){b.words=r.words,b.length=r.length,b.negative=r.negative,b.red=r.red}if(o(l,"move"),u.prototype._move=o(function(r){l(r,this)},"_move"),u.prototype.clone=o(function(){var r=new u(null);return this.copy(r),r},"clone"),u.prototype._expand=o(function(r){for(;this.length<r;)this.words[this.length++]=0;return this},"_expand"),u.prototype._strip=o(function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},"strip"),u.prototype._normSign=o(function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},"_normSign"),typeof Symbol<"u"&&typeof Symbol.for=="function")try{u.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch{u.prototype.inspect=f}else u.prototype.inspect=f;function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}o(f,"inspect");var x=["","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"],E=[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],P=[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];u.prototype.toString=o(function(r,a){r=r||10,a=a|0||1;var s;if(r===16||r==="hex"){s="";for(var h=0,m=0,y=0;y<this.length;y++){var S=this.words[y],g=((S<<h|m)&16777215).toString(16);m=S>>>24-h&16777215,h+=2,h>=26&&(h-=26,y--),m!==0||y!==this.length-1?s=x[6-g.length]+g+s:s=g+s}for(m!==0&&(s=m.toString(16)+s);s.length%a!==0;)s="0"+s;return this.negative!==0&&(s="-"+s),s}if(r===(r|0)&&r>=2&&r<=36){var n=E[r],v=P[r];s="";var te=this.clone();for(te.negative=0;!te.isZero();){var re=te.modrn(v).toString(r);te=te.idivn(v),te.isZero()?s=re+s:s=x[n-re.length]+re+s}for(this.isZero()&&(s="0"+s);s.length%a!==0;)s="0"+s;return this.negative!==0&&(s="-"+s),s}A(!1,"Base should be between 2 and 36")},"toString"),u.prototype.toNumber=o(function(){var r=this.words[0];return this.length===2?r+=this.words[1]*67108864:this.length===3&&this.words[2]===1?r+=4503599627370496+this.words[1]*67108864:this.length>2&&A(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-r:r},"toNumber"),u.prototype.toJSON=o(function(){return this.toString(16,2)},"toJSON"),_&&(u.prototype.toBuffer=o(function(r,a){return this.toArrayLike(_,r,a)},"toBuffer")),u.prototype.toArray=o(function(r,a){return this.toArrayLike(Array,r,a)},"toArray");var I=o(function(r,a){return r.allocUnsafe?r.allocUnsafe(a):new r(a)},"allocate");u.prototype.toArrayLike=o(function(r,a,s){this._strip();var h=this.byteLength(),m=s||Math.max(1,h);A(h<=m,"byte array longer than desired length"),A(m>0,"Requested array length <= 0");var y=I(r,m),S=a==="le"?"LE":"BE";return this["_toArrayLike"+S](y,h),y},"toArrayLike"),u.prototype._toArrayLikeLE=o(function(r,a){for(var s=0,h=0,m=0,y=0;m<this.length;m++){var S=this.words[m]<<y|h;r[s++]=S&255,s<r.length&&(r[s++]=S>>8&255),s<r.length&&(r[s++]=S>>16&255),y===6?(s<r.length&&(r[s++]=S>>24&255),h=0,y=0):(h=S>>>24,y+=2)}if(s<r.length)for(r[s++]=h;s<r.length;)r[s++]=0},"_toArrayLikeLE"),u.prototype._toArrayLikeBE=o(function(r,a){for(var s=r.length-1,h=0,m=0,y=0;m<this.length;m++){var S=this.words[m]<<y|h;r[s--]=S&255,s>=0&&(r[s--]=S>>8&255),s>=0&&(r[s--]=S>>16&255),y===6?(s>=0&&(r[s--]=S>>24&255),h=0,y=0):(h=S>>>24,y+=2)}if(s>=0)for(r[s--]=h;s>=0;)r[s--]=0},"_toArrayLikeBE"),Math.clz32?u.prototype._countBits=o(function(r){return 32-Math.clz32(r)},"_countBits"):u.prototype._countBits=o(function(r){var a=r,s=0;return a>=4096&&(s+=13,a>>>=13),a>=64&&(s+=7,a>>>=7),a>=8&&(s+=4,a>>>=4),a>=2&&(s+=2,a>>>=2),s+a},"_countBits"),u.prototype._zeroBits=o(function(r){if(r===0)return 26;var a=r,s=0;return a&8191||(s+=13,a>>>=13),a&127||(s+=7,a>>>=7),a&15||(s+=4,a>>>=4),a&3||(s+=2,a>>>=2),a&1||s++,s},"_zeroBits"),u.prototype.bitLength=o(function(){var r=this.words[this.length-1],a=this._countBits(r);return(this.length-1)*26+a},"bitLength");function R(b){for(var r=new Array(b.bitLength()),a=0;a<r.length;a++){var s=a/26|0,h=a%26;r[a]=b.words[s]>>>h&1}return r}o(R,"toBitArray"),u.prototype.zeroBits=o(function(){if(this.isZero())return 0;for(var r=0,a=0;a<this.length;a++){var s=this._zeroBits(this.words[a]);if(r+=s,s!==26)break}return r},"zeroBits"),u.prototype.byteLength=o(function(){return Math.ceil(this.bitLength()/8)},"byteLength"),u.prototype.toTwos=o(function(r){return this.negative!==0?this.abs().inotn(r).iaddn(1):this.clone()},"toTwos"),u.prototype.fromTwos=o(function(r){return this.testn(r-1)?this.notn(r).iaddn(1).ineg():this.clone()},"fromTwos"),u.prototype.isNeg=o(function(){return this.negative!==0},"isNeg"),u.prototype.neg=o(function(){return this.clone().ineg()},"neg"),u.prototype.ineg=o(function(){return this.isZero()||(this.negative^=1),this},"ineg"),u.prototype.iuor=o(function(r){for(;this.length<r.length;)this.words[this.length++]=0;for(var a=0;a<r.length;a++)this.words[a]=this.words[a]|r.words[a];return this._strip()},"iuor"),u.prototype.ior=o(function(r){return A((this.negative|r.negative)===0),this.iuor(r)},"ior"),u.prototype.or=o(function(r){return this.length>r.length?this.clone().ior(r):r.clone().ior(this)},"or"),u.prototype.uor=o(function(r){return this.length>r.length?this.clone().iuor(r):r.clone().iuor(this)},"uor"),u.prototype.iuand=o(function(r){var a;this.length>r.length?a=r:a=this;for(var s=0;s<a.length;s++)this.words[s]=this.words[s]&r.words[s];return this.length=a.length,this._strip()},"iuand"),u.prototype.iand=o(function(r){return A((this.negative|r.negative)===0),this.iuand(r)},"iand"),u.prototype.and=o(function(r){return this.length>r.length?this.clone().iand(r):r.clone().iand(this)},"and"),u.prototype.uand=o(function(r){return this.length>r.length?this.clone().iuand(r):r.clone().iuand(this)},"uand"),u.prototype.iuxor=o(function(r){var a,s;this.length>r.length?(a=this,s=r):(a=r,s=this);for(var h=0;h<s.length;h++)this.words[h]=a.words[h]^s.words[h];if(this!==a)for(;h<a.length;h++)this.words[h]=a.words[h];return this.length=a.length,this._strip()},"iuxor"),u.prototype.ixor=o(function(r){return A((this.negative|r.negative)===0),this.iuxor(r)},"ixor"),u.prototype.xor=o(function(r){return this.length>r.length?this.clone().ixor(r):r.clone().ixor(this)},"xor"),u.prototype.uxor=o(function(r){return this.length>r.length?this.clone().iuxor(r):r.clone().iuxor(this)},"uxor"),u.prototype.inotn=o(function(r){A(typeof r=="number"&&r>=0);var a=Math.ceil(r/26)|0,s=r%26;this._expand(a),s>0&&a--;for(var h=0;h<a;h++)this.words[h]=~this.words[h]&67108863;return s>0&&(this.words[h]=~this.words[h]&67108863>>26-s),this._strip()},"inotn"),u.prototype.notn=o(function(r){return this.clone().inotn(r)},"notn"),u.prototype.setn=o(function(r,a){A(typeof r=="number"&&r>=0);var s=r/26|0,h=r%26;return this._expand(s+1),a?this.words[s]=this.words[s]|1<<h:this.words[s]=this.words[s]&~(1<<h),this._strip()},"setn"),u.prototype.iadd=o(function(r){var a;if(this.negative!==0&&r.negative===0)return this.negative=0,a=this.isub(r),this.negative^=1,this._normSign();if(this.negative===0&&r.negative!==0)return r.negative=0,a=this.isub(r),r.negative=1,a._normSign();var s,h;this.length>r.length?(s=this,h=r):(s=r,h=this);for(var m=0,y=0;y<h.length;y++)a=(s.words[y]|0)+(h.words[y]|0)+m,this.words[y]=a&67108863,m=a>>>26;for(;m!==0&&y<s.length;y++)a=(s.words[y]|0)+m,this.words[y]=a&67108863,m=a>>>26;if(this.length=s.length,m!==0)this.words[this.length]=m,this.length++;else if(s!==this)for(;y<s.length;y++)this.words[y]=s.words[y];return this},"iadd"),u.prototype.add=o(function(r){var a;return r.negative!==0&&this.negative===0?(r.negative=0,a=this.sub(r),r.negative^=1,a):r.negative===0&&this.negative!==0?(this.negative=0,a=r.sub(this),this.negative=1,a):this.length>r.length?this.clone().iadd(r):r.clone().iadd(this)},"add"),u.prototype.isub=o(function(r){if(r.negative!==0){r.negative=0;var a=this.iadd(r);return r.negative=1,a._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(r),this.negative=1,this._normSign();var s=this.cmp(r);if(s===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,m;s>0?(h=this,m=r):(h=r,m=this);for(var y=0,S=0;S<m.length;S++)a=(h.words[S]|0)-(m.words[S]|0)+y,y=a>>26,this.words[S]=a&67108863;for(;y!==0&&S<h.length;S++)a=(h.words[S]|0)+y,y=a>>26,this.words[S]=a&67108863;if(y===0&&S<h.length&&h!==this)for(;S<h.length;S++)this.words[S]=h.words[S];return this.length=Math.max(this.length,S),h!==this&&(this.negative=1),this._strip()},"isub"),u.prototype.sub=o(function(r){return this.clone().isub(r)},"sub");function K(b,r,a){a.negative=r.negative^b.negative;var s=b.length+r.length|0;a.length=s,s=s-1|0;var h=b.words[0]|0,m=r.words[0]|0,y=h*m,S=y&67108863,g=y/67108864|0;a.words[0]=S;for(var n=1;n<s;n++){for(var v=g>>>26,te=g&67108863,re=Math.min(n,r.length-1),Q=Math.max(0,n-b.length+1);Q<=re;Q++){var ee=n-Q|0;h=b.words[ee]|0,m=r.words[Q]|0,y=h*m+te,v+=y/67108864|0,te=y&67108863}a.words[n]=te|0,g=v|0}return g!==0?a.words[n]=g|0:a.length--,a._strip()}o(K,"smallMulTo");var L=o(function(r,a,s){var h=r.words,m=a.words,y=s.words,S=0,g,n,v,te=h[0]|0,re=te&8191,Q=te>>>13,ee=h[1]|0,ue=ee&8191,ye=ee>>>13,Ue=h[2]|0,we=Ue&8191,Oe=Ue>>>13,Ve=h[3]|0,pe=Ve&8191,ge=Ve>>>13,Ke=h[4]|0,Ee=Ke&8191,_e=Ke>>>13,We=h[5]|0,le=We&8191,he=We>>>13,De=h[6]|0,fe=De&8191,Re=De>>>13,Qe=h[7]|0,G=Qe&8191,Ae=Qe>>>13,et=h[8]|0,Te=et&8191,He=et>>>13,$e=h[9]|0,Se=$e&8191,be=$e>>>13,ze=m[0]|0,Ne=ze&8191,Be=ze>>>13,st=m[1]|0,Le=st&8191,d=st>>>13,e=m[2]|0,t=e&8191,i=e>>>13,c=m[3]|0,p=c&8191,O=c>>>13,N=m[4]|0,q=N&8191,X=N>>>13,oe=m[5]|0,ie=oe&8191,ne=oe>>>13,Ce=m[6]|0,ve=Ce&8191,me=Ce>>>13,Xe=m[7]|0,ke=Xe&8191,Pe=Xe>>>13,at=m[8]|0,Fe=at&8191,D=at>>>13,$=m[9]|0,se=$&8191,xe=$>>>13;s.negative=r.negative^a.negative,s.length=19,g=Math.imul(re,Ne),n=Math.imul(re,Be),n=n+Math.imul(Q,Ne)|0,v=Math.imul(Q,Be);var Ge=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,g=Math.imul(ue,Ne),n=Math.imul(ue,Be),n=n+Math.imul(ye,Ne)|0,v=Math.imul(ye,Be),g=g+Math.imul(re,Le)|0,n=n+Math.imul(re,d)|0,n=n+Math.imul(Q,Le)|0,v=v+Math.imul(Q,d)|0;var qe=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(qe>>>26)|0,qe&=67108863,g=Math.imul(we,Ne),n=Math.imul(we,Be),n=n+Math.imul(Oe,Ne)|0,v=Math.imul(Oe,Be),g=g+Math.imul(ue,Le)|0,n=n+Math.imul(ue,d)|0,n=n+Math.imul(ye,Le)|0,v=v+Math.imul(ye,d)|0,g=g+Math.imul(re,t)|0,n=n+Math.imul(re,i)|0,n=n+Math.imul(Q,t)|0,v=v+Math.imul(Q,i)|0;var Ye=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,g=Math.imul(pe,Ne),n=Math.imul(pe,Be),n=n+Math.imul(ge,Ne)|0,v=Math.imul(ge,Be),g=g+Math.imul(we,Le)|0,n=n+Math.imul(we,d)|0,n=n+Math.imul(Oe,Le)|0,v=v+Math.imul(Oe,d)|0,g=g+Math.imul(ue,t)|0,n=n+Math.imul(ue,i)|0,n=n+Math.imul(ye,t)|0,v=v+Math.imul(ye,i)|0,g=g+Math.imul(re,p)|0,n=n+Math.imul(re,O)|0,n=n+Math.imul(Q,p)|0,v=v+Math.imul(Q,O)|0;var je=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(je>>>26)|0,je&=67108863,g=Math.imul(Ee,Ne),n=Math.imul(Ee,Be),n=n+Math.imul(_e,Ne)|0,v=Math.imul(_e,Be),g=g+Math.imul(pe,Le)|0,n=n+Math.imul(pe,d)|0,n=n+Math.imul(ge,Le)|0,v=v+Math.imul(ge,d)|0,g=g+Math.imul(we,t)|0,n=n+Math.imul(we,i)|0,n=n+Math.imul(Oe,t)|0,v=v+Math.imul(Oe,i)|0,g=g+Math.imul(ue,p)|0,n=n+Math.imul(ue,O)|0,n=n+Math.imul(ye,p)|0,v=v+Math.imul(ye,O)|0,g=g+Math.imul(re,q)|0,n=n+Math.imul(re,X)|0,n=n+Math.imul(Q,q)|0,v=v+Math.imul(Q,X)|0;var Je=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(Je>>>26)|0,Je&=67108863,g=Math.imul(le,Ne),n=Math.imul(le,Be),n=n+Math.imul(he,Ne)|0,v=Math.imul(he,Be),g=g+Math.imul(Ee,Le)|0,n=n+Math.imul(Ee,d)|0,n=n+Math.imul(_e,Le)|0,v=v+Math.imul(_e,d)|0,g=g+Math.imul(pe,t)|0,n=n+Math.imul(pe,i)|0,n=n+Math.imul(ge,t)|0,v=v+Math.imul(ge,i)|0,g=g+Math.imul(we,p)|0,n=n+Math.imul(we,O)|0,n=n+Math.imul(Oe,p)|0,v=v+Math.imul(Oe,O)|0,g=g+Math.imul(ue,q)|0,n=n+Math.imul(ue,X)|0,n=n+Math.imul(ye,q)|0,v=v+Math.imul(ye,X)|0,g=g+Math.imul(re,ie)|0,n=n+Math.imul(re,ne)|0,n=n+Math.imul(Q,ie)|0,v=v+Math.imul(Q,ne)|0;var Ze=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,g=Math.imul(fe,Ne),n=Math.imul(fe,Be),n=n+Math.imul(Re,Ne)|0,v=Math.imul(Re,Be),g=g+Math.imul(le,Le)|0,n=n+Math.imul(le,d)|0,n=n+Math.imul(he,Le)|0,v=v+Math.imul(he,d)|0,g=g+Math.imul(Ee,t)|0,n=n+Math.imul(Ee,i)|0,n=n+Math.imul(_e,t)|0,v=v+Math.imul(_e,i)|0,g=g+Math.imul(pe,p)|0,n=n+Math.imul(pe,O)|0,n=n+Math.imul(ge,p)|0,v=v+Math.imul(ge,O)|0,g=g+Math.imul(we,q)|0,n=n+Math.imul(we,X)|0,n=n+Math.imul(Oe,q)|0,v=v+Math.imul(Oe,X)|0,g=g+Math.imul(ue,ie)|0,n=n+Math.imul(ue,ne)|0,n=n+Math.imul(ye,ie)|0,v=v+Math.imul(ye,ne)|0,g=g+Math.imul(re,ve)|0,n=n+Math.imul(re,me)|0,n=n+Math.imul(Q,ve)|0,v=v+Math.imul(Q,me)|0;var tt=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(tt>>>26)|0,tt&=67108863,g=Math.imul(G,Ne),n=Math.imul(G,Be),n=n+Math.imul(Ae,Ne)|0,v=Math.imul(Ae,Be),g=g+Math.imul(fe,Le)|0,n=n+Math.imul(fe,d)|0,n=n+Math.imul(Re,Le)|0,v=v+Math.imul(Re,d)|0,g=g+Math.imul(le,t)|0,n=n+Math.imul(le,i)|0,n=n+Math.imul(he,t)|0,v=v+Math.imul(he,i)|0,g=g+Math.imul(Ee,p)|0,n=n+Math.imul(Ee,O)|0,n=n+Math.imul(_e,p)|0,v=v+Math.imul(_e,O)|0,g=g+Math.imul(pe,q)|0,n=n+Math.imul(pe,X)|0,n=n+Math.imul(ge,q)|0,v=v+Math.imul(ge,X)|0,g=g+Math.imul(we,ie)|0,n=n+Math.imul(we,ne)|0,n=n+Math.imul(Oe,ie)|0,v=v+Math.imul(Oe,ne)|0,g=g+Math.imul(ue,ve)|0,n=n+Math.imul(ue,me)|0,n=n+Math.imul(ye,ve)|0,v=v+Math.imul(ye,me)|0,g=g+Math.imul(re,ke)|0,n=n+Math.imul(re,Pe)|0,n=n+Math.imul(Q,ke)|0,v=v+Math.imul(Q,Pe)|0;var rt=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(rt>>>26)|0,rt&=67108863,g=Math.imul(Te,Ne),n=Math.imul(Te,Be),n=n+Math.imul(He,Ne)|0,v=Math.imul(He,Be),g=g+Math.imul(G,Le)|0,n=n+Math.imul(G,d)|0,n=n+Math.imul(Ae,Le)|0,v=v+Math.imul(Ae,d)|0,g=g+Math.imul(fe,t)|0,n=n+Math.imul(fe,i)|0,n=n+Math.imul(Re,t)|0,v=v+Math.imul(Re,i)|0,g=g+Math.imul(le,p)|0,n=n+Math.imul(le,O)|0,n=n+Math.imul(he,p)|0,v=v+Math.imul(he,O)|0,g=g+Math.imul(Ee,q)|0,n=n+Math.imul(Ee,X)|0,n=n+Math.imul(_e,q)|0,v=v+Math.imul(_e,X)|0,g=g+Math.imul(pe,ie)|0,n=n+Math.imul(pe,ne)|0,n=n+Math.imul(ge,ie)|0,v=v+Math.imul(ge,ne)|0,g=g+Math.imul(we,ve)|0,n=n+Math.imul(we,me)|0,n=n+Math.imul(Oe,ve)|0,v=v+Math.imul(Oe,me)|0,g=g+Math.imul(ue,ke)|0,n=n+Math.imul(ue,Pe)|0,n=n+Math.imul(ye,ke)|0,v=v+Math.imul(ye,Pe)|0,g=g+Math.imul(re,Fe)|0,n=n+Math.imul(re,D)|0,n=n+Math.imul(Q,Fe)|0,v=v+Math.imul(Q,D)|0;var ft=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(ft>>>26)|0,ft&=67108863,g=Math.imul(Se,Ne),n=Math.imul(Se,Be),n=n+Math.imul(be,Ne)|0,v=Math.imul(be,Be),g=g+Math.imul(Te,Le)|0,n=n+Math.imul(Te,d)|0,n=n+Math.imul(He,Le)|0,v=v+Math.imul(He,d)|0,g=g+Math.imul(G,t)|0,n=n+Math.imul(G,i)|0,n=n+Math.imul(Ae,t)|0,v=v+Math.imul(Ae,i)|0,g=g+Math.imul(fe,p)|0,n=n+Math.imul(fe,O)|0,n=n+Math.imul(Re,p)|0,v=v+Math.imul(Re,O)|0,g=g+Math.imul(le,q)|0,n=n+Math.imul(le,X)|0,n=n+Math.imul(he,q)|0,v=v+Math.imul(he,X)|0,g=g+Math.imul(Ee,ie)|0,n=n+Math.imul(Ee,ne)|0,n=n+Math.imul(_e,ie)|0,v=v+Math.imul(_e,ne)|0,g=g+Math.imul(pe,ve)|0,n=n+Math.imul(pe,me)|0,n=n+Math.imul(ge,ve)|0,v=v+Math.imul(ge,me)|0,g=g+Math.imul(we,ke)|0,n=n+Math.imul(we,Pe)|0,n=n+Math.imul(Oe,ke)|0,v=v+Math.imul(Oe,Pe)|0,g=g+Math.imul(ue,Fe)|0,n=n+Math.imul(ue,D)|0,n=n+Math.imul(ye,Fe)|0,v=v+Math.imul(ye,D)|0,g=g+Math.imul(re,se)|0,n=n+Math.imul(re,xe)|0,n=n+Math.imul(Q,se)|0,v=v+Math.imul(Q,xe)|0;var ct=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,g=Math.imul(Se,Le),n=Math.imul(Se,d),n=n+Math.imul(be,Le)|0,v=Math.imul(be,d),g=g+Math.imul(Te,t)|0,n=n+Math.imul(Te,i)|0,n=n+Math.imul(He,t)|0,v=v+Math.imul(He,i)|0,g=g+Math.imul(G,p)|0,n=n+Math.imul(G,O)|0,n=n+Math.imul(Ae,p)|0,v=v+Math.imul(Ae,O)|0,g=g+Math.imul(fe,q)|0,n=n+Math.imul(fe,X)|0,n=n+Math.imul(Re,q)|0,v=v+Math.imul(Re,X)|0,g=g+Math.imul(le,ie)|0,n=n+Math.imul(le,ne)|0,n=n+Math.imul(he,ie)|0,v=v+Math.imul(he,ne)|0,g=g+Math.imul(Ee,ve)|0,n=n+Math.imul(Ee,me)|0,n=n+Math.imul(_e,ve)|0,v=v+Math.imul(_e,me)|0,g=g+Math.imul(pe,ke)|0,n=n+Math.imul(pe,Pe)|0,n=n+Math.imul(ge,ke)|0,v=v+Math.imul(ge,Pe)|0,g=g+Math.imul(we,Fe)|0,n=n+Math.imul(we,D)|0,n=n+Math.imul(Oe,Fe)|0,v=v+Math.imul(Oe,D)|0,g=g+Math.imul(ue,se)|0,n=n+Math.imul(ue,xe)|0,n=n+Math.imul(ye,se)|0,v=v+Math.imul(ye,xe)|0;var ht=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(ht>>>26)|0,ht&=67108863,g=Math.imul(Se,t),n=Math.imul(Se,i),n=n+Math.imul(be,t)|0,v=Math.imul(be,i),g=g+Math.imul(Te,p)|0,n=n+Math.imul(Te,O)|0,n=n+Math.imul(He,p)|0,v=v+Math.imul(He,O)|0,g=g+Math.imul(G,q)|0,n=n+Math.imul(G,X)|0,n=n+Math.imul(Ae,q)|0,v=v+Math.imul(Ae,X)|0,g=g+Math.imul(fe,ie)|0,n=n+Math.imul(fe,ne)|0,n=n+Math.imul(Re,ie)|0,v=v+Math.imul(Re,ne)|0,g=g+Math.imul(le,ve)|0,n=n+Math.imul(le,me)|0,n=n+Math.imul(he,ve)|0,v=v+Math.imul(he,me)|0,g=g+Math.imul(Ee,ke)|0,n=n+Math.imul(Ee,Pe)|0,n=n+Math.imul(_e,ke)|0,v=v+Math.imul(_e,Pe)|0,g=g+Math.imul(pe,Fe)|0,n=n+Math.imul(pe,D)|0,n=n+Math.imul(ge,Fe)|0,v=v+Math.imul(ge,D)|0,g=g+Math.imul(we,se)|0,n=n+Math.imul(we,xe)|0,n=n+Math.imul(Oe,se)|0,v=v+Math.imul(Oe,xe)|0;var ut=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(ut>>>26)|0,ut&=67108863,g=Math.imul(Se,p),n=Math.imul(Se,O),n=n+Math.imul(be,p)|0,v=Math.imul(be,O),g=g+Math.imul(Te,q)|0,n=n+Math.imul(Te,X)|0,n=n+Math.imul(He,q)|0,v=v+Math.imul(He,X)|0,g=g+Math.imul(G,ie)|0,n=n+Math.imul(G,ne)|0,n=n+Math.imul(Ae,ie)|0,v=v+Math.imul(Ae,ne)|0,g=g+Math.imul(fe,ve)|0,n=n+Math.imul(fe,me)|0,n=n+Math.imul(Re,ve)|0,v=v+Math.imul(Re,me)|0,g=g+Math.imul(le,ke)|0,n=n+Math.imul(le,Pe)|0,n=n+Math.imul(he,ke)|0,v=v+Math.imul(he,Pe)|0,g=g+Math.imul(Ee,Fe)|0,n=n+Math.imul(Ee,D)|0,n=n+Math.imul(_e,Fe)|0,v=v+Math.imul(_e,D)|0,g=g+Math.imul(pe,se)|0,n=n+Math.imul(pe,xe)|0,n=n+Math.imul(ge,se)|0,v=v+Math.imul(ge,xe)|0;var dt=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(dt>>>26)|0,dt&=67108863,g=Math.imul(Se,q),n=Math.imul(Se,X),n=n+Math.imul(be,q)|0,v=Math.imul(be,X),g=g+Math.imul(Te,ie)|0,n=n+Math.imul(Te,ne)|0,n=n+Math.imul(He,ie)|0,v=v+Math.imul(He,ne)|0,g=g+Math.imul(G,ve)|0,n=n+Math.imul(G,me)|0,n=n+Math.imul(Ae,ve)|0,v=v+Math.imul(Ae,me)|0,g=g+Math.imul(fe,ke)|0,n=n+Math.imul(fe,Pe)|0,n=n+Math.imul(Re,ke)|0,v=v+Math.imul(Re,Pe)|0,g=g+Math.imul(le,Fe)|0,n=n+Math.imul(le,D)|0,n=n+Math.imul(he,Fe)|0,v=v+Math.imul(he,D)|0,g=g+Math.imul(Ee,se)|0,n=n+Math.imul(Ee,xe)|0,n=n+Math.imul(_e,se)|0,v=v+Math.imul(_e,xe)|0;var lt=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(lt>>>26)|0,lt&=67108863,g=Math.imul(Se,ie),n=Math.imul(Se,ne),n=n+Math.imul(be,ie)|0,v=Math.imul(be,ne),g=g+Math.imul(Te,ve)|0,n=n+Math.imul(Te,me)|0,n=n+Math.imul(He,ve)|0,v=v+Math.imul(He,me)|0,g=g+Math.imul(G,ke)|0,n=n+Math.imul(G,Pe)|0,n=n+Math.imul(Ae,ke)|0,v=v+Math.imul(Ae,Pe)|0,g=g+Math.imul(fe,Fe)|0,n=n+Math.imul(fe,D)|0,n=n+Math.imul(Re,Fe)|0,v=v+Math.imul(Re,D)|0,g=g+Math.imul(le,se)|0,n=n+Math.imul(le,xe)|0,n=n+Math.imul(he,se)|0,v=v+Math.imul(he,xe)|0;var bt=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,g=Math.imul(Se,ve),n=Math.imul(Se,me),n=n+Math.imul(be,ve)|0,v=Math.imul(be,me),g=g+Math.imul(Te,ke)|0,n=n+Math.imul(Te,Pe)|0,n=n+Math.imul(He,ke)|0,v=v+Math.imul(He,Pe)|0,g=g+Math.imul(G,Fe)|0,n=n+Math.imul(G,D)|0,n=n+Math.imul(Ae,Fe)|0,v=v+Math.imul(Ae,D)|0,g=g+Math.imul(fe,se)|0,n=n+Math.imul(fe,xe)|0,n=n+Math.imul(Re,se)|0,v=v+Math.imul(Re,xe)|0;var pt=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,g=Math.imul(Se,ke),n=Math.imul(Se,Pe),n=n+Math.imul(be,ke)|0,v=Math.imul(be,Pe),g=g+Math.imul(Te,Fe)|0,n=n+Math.imul(Te,D)|0,n=n+Math.imul(He,Fe)|0,v=v+Math.imul(He,D)|0,g=g+Math.imul(G,se)|0,n=n+Math.imul(G,xe)|0,n=n+Math.imul(Ae,se)|0,v=v+Math.imul(Ae,xe)|0;var mt=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(mt>>>26)|0,mt&=67108863,g=Math.imul(Se,Fe),n=Math.imul(Se,D),n=n+Math.imul(be,Fe)|0,v=Math.imul(be,D),g=g+Math.imul(Te,se)|0,n=n+Math.imul(Te,xe)|0,n=n+Math.imul(He,se)|0,v=v+Math.imul(He,xe)|0;var gt=(S+g|0)+((n&8191)<<13)|0;S=(v+(n>>>13)|0)+(gt>>>26)|0,gt&=67108863,g=Math.imul(Se,se),n=Math.imul(Se,xe),n=n+Math.imul(be,se)|0,v=Math.imul(be,xe);var vt=(S+g|0)+((n&8191)<<13)|0;return S=(v+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,y[0]=Ge,y[1]=qe,y[2]=Ye,y[3]=je,y[4]=Je,y[5]=Ze,y[6]=tt,y[7]=rt,y[8]=ft,y[9]=ct,y[10]=ht,y[11]=ut,y[12]=dt,y[13]=lt,y[14]=bt,y[15]=pt,y[16]=mt,y[17]=gt,y[18]=vt,S!==0&&(y[19]=S,s.length++),s},"comb10MulTo");Math.imul||(L=K);function V(b,r,a){a.negative=r.negative^b.negative,a.length=b.length+r.length;for(var s=0,h=0,m=0;m<a.length-1;m++){var y=h;h=0;for(var S=s&67108863,g=Math.min(m,r.length-1),n=Math.max(0,m-b.length+1);n<=g;n++){var v=m-n,te=b.words[v]|0,re=r.words[n]|0,Q=te*re,ee=Q&67108863;y=y+(Q/67108864|0)|0,ee=ee+S|0,S=ee&67108863,y=y+(ee>>>26)|0,h+=y>>>26,y&=67108863}a.words[m]=S,s=y,y=h}return s!==0?a.words[m]=s:a.length--,a._strip()}o(V,"bigMulTo");function j(b,r,a){return V(b,r,a)}o(j,"jumboMulTo"),u.prototype.mulTo=o(function(r,a){var s,h=this.length+r.length;return this.length===10&&r.length===10?s=L(this,r,a):h<63?s=K(this,r,a):h<1024?s=V(this,r,a):s=j(this,r,a),s},"mulTo");function Y(b,r){this.x=b,this.y=r}o(Y,"FFTM"),Y.prototype.makeRBT=o(function(r){for(var a=new Array(r),s=u.prototype._countBits(r)-1,h=0;h<r;h++)a[h]=this.revBin(h,s,r);return a},"makeRBT"),Y.prototype.revBin=o(function(r,a,s){if(r===0||r===s-1)return r;for(var h=0,m=0;m<a;m++)h|=(r&1)<<a-m-1,r>>=1;return h},"revBin"),Y.prototype.permute=o(function(r,a,s,h,m,y){for(var S=0;S<y;S++)h[S]=a[r[S]],m[S]=s[r[S]]},"permute"),Y.prototype.transform=o(function(r,a,s,h,m,y){this.permute(y,r,a,s,h,m);for(var S=1;S<m;S<<=1)for(var g=S<<1,n=Math.cos(2*Math.PI/g),v=Math.sin(2*Math.PI/g),te=0;te<m;te+=g)for(var re=n,Q=v,ee=0;ee<S;ee++){var ue=s[te+ee],ye=h[te+ee],Ue=s[te+ee+S],we=h[te+ee+S],Oe=re*Ue-Q*we;we=re*we+Q*Ue,Ue=Oe,s[te+ee]=ue+Ue,h[te+ee]=ye+we,s[te+ee+S]=ue-Ue,h[te+ee+S]=ye-we,ee!==g&&(Oe=n*re-v*Q,Q=n*Q+v*re,re=Oe)}},"transform"),Y.prototype.guessLen13b=o(function(r,a){var s=Math.max(a,r)|1,h=s&1,m=0;for(s=s/2|0;s;s=s>>>1)m++;return 1<<m+1+h},"guessLen13b"),Y.prototype.conjugate=o(function(r,a,s){if(!(s<=1))for(var h=0;h<s/2;h++){var m=r[h];r[h]=r[s-h-1],r[s-h-1]=m,m=a[h],a[h]=-a[s-h-1],a[s-h-1]=-m}},"conjugate"),Y.prototype.normalize13b=o(function(r,a){for(var s=0,h=0;h<a/2;h++){var m=Math.round(r[2*h+1]/a)*8192+Math.round(r[2*h]/a)+s;r[h]=m&67108863,m<67108864?s=0:s=m/67108864|0}return r},"normalize13b"),Y.prototype.convert13b=o(function(r,a,s,h){for(var m=0,y=0;y<a;y++)m=m+(r[y]|0),s[2*y]=m&8191,m=m>>>13,s[2*y+1]=m&8191,m=m>>>13;for(y=2*a;y<h;++y)s[y]=0;A(m===0),A((m&-8192)===0)},"convert13b"),Y.prototype.stub=o(function(r){for(var a=new Array(r),s=0;s<r;s++)a[s]=0;return a},"stub"),Y.prototype.mulp=o(function(r,a,s){var h=2*this.guessLen13b(r.length,a.length),m=this.makeRBT(h),y=this.stub(h),S=new Array(h),g=new Array(h),n=new Array(h),v=new Array(h),te=new Array(h),re=new Array(h),Q=s.words;Q.length=h,this.convert13b(r.words,r.length,S,h),this.convert13b(a.words,a.length,v,h),this.transform(S,y,g,n,h,m),this.transform(v,y,te,re,h,m);for(var ee=0;ee<h;ee++){var ue=g[ee]*te[ee]-n[ee]*re[ee];n[ee]=g[ee]*re[ee]+n[ee]*te[ee],g[ee]=ue}return this.conjugate(g,n,h),this.transform(g,n,Q,y,h,m),this.conjugate(Q,y,h),this.normalize13b(Q,h),s.negative=r.negative^a.negative,s.length=r.length+a.length,s._strip()},"mulp"),u.prototype.mul=o(function(r){var a=new u(null);return a.words=new Array(this.length+r.length),this.mulTo(r,a)},"mul"),u.prototype.mulf=o(function(r){var a=new u(null);return a.words=new Array(this.length+r.length),j(this,r,a)},"mulf"),u.prototype.imul=o(function(r){return this.clone().mulTo(r,this)},"imul"),u.prototype.imuln=o(function(r){var a=r<0;a&&(r=-r),A(typeof r=="number"),A(r<67108864);for(var s=0,h=0;h<this.length;h++){var m=(this.words[h]|0)*r,y=(m&67108863)+(s&67108863);s>>=26,s+=m/67108864|0,s+=y>>>26,this.words[h]=y&67108863}return s!==0&&(this.words[h]=s,this.length++),a?this.ineg():this},"imuln"),u.prototype.muln=o(function(r){return this.clone().imuln(r)},"muln"),u.prototype.sqr=o(function(){return this.mul(this)},"sqr"),u.prototype.isqr=o(function(){return this.imul(this.clone())},"isqr"),u.prototype.pow=o(function(r){var a=R(r);if(a.length===0)return new u(1);for(var s=this,h=0;h<a.length&&a[h]===0;h++,s=s.sqr());if(++h<a.length)for(var m=s.sqr();h<a.length;h++,m=m.sqr())a[h]!==0&&(s=s.mul(m));return s},"pow"),u.prototype.iushln=o(function(r){A(typeof r=="number"&&r>=0);var a=r%26,s=(r-a)/26,h=67108863>>>26-a<<26-a,m;if(a!==0){var y=0;for(m=0;m<this.length;m++){var S=this.words[m]&h,g=(this.words[m]|0)-S<<a;this.words[m]=g|y,y=S>>>26-a}y&&(this.words[m]=y,this.length++)}if(s!==0){for(m=this.length-1;m>=0;m--)this.words[m+s]=this.words[m];for(m=0;m<s;m++)this.words[m]=0;this.length+=s}return this._strip()},"iushln"),u.prototype.ishln=o(function(r){return A(this.negative===0),this.iushln(r)},"ishln"),u.prototype.iushrn=o(function(r,a,s){A(typeof r=="number"&&r>=0);var h;a?h=(a-a%26)/26:h=0;var m=r%26,y=Math.min((r-m)/26,this.length),S=67108863^67108863>>>m<<m,g=s;if(h-=y,h=Math.max(0,h),g){for(var n=0;n<y;n++)g.words[n]=this.words[n];g.length=y}if(y!==0)if(this.length>y)for(this.length-=y,n=0;n<this.length;n++)this.words[n]=this.words[n+y];else this.words[0]=0,this.length=1;var v=0;for(n=this.length-1;n>=0&&(v!==0||n>=h);n--){var te=this.words[n]|0;this.words[n]=v<<26-m|te>>>m,v=te&S}return g&&v!==0&&(g.words[g.length++]=v),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},"iushrn"),u.prototype.ishrn=o(function(r,a,s){return A(this.negative===0),this.iushrn(r,a,s)},"ishrn"),u.prototype.shln=o(function(r){return this.clone().ishln(r)},"shln"),u.prototype.ushln=o(function(r){return this.clone().iushln(r)},"ushln"),u.prototype.shrn=o(function(r){return this.clone().ishrn(r)},"shrn"),u.prototype.ushrn=o(function(r){return this.clone().iushrn(r)},"ushrn"),u.prototype.testn=o(function(r){A(typeof r=="number"&&r>=0);var a=r%26,s=(r-a)/26,h=1<<a;if(this.length<=s)return!1;var m=this.words[s];return!!(m&h)},"testn"),u.prototype.imaskn=o(function(r){A(typeof r=="number"&&r>=0);var a=r%26,s=(r-a)/26;if(A(this.negative===0,"imaskn works only with positive numbers"),this.length<=s)return this;if(a!==0&&s++,this.length=Math.min(s,this.length),a!==0){var h=67108863^67108863>>>a<<a;this.words[this.length-1]&=h}return this._strip()},"imaskn"),u.prototype.maskn=o(function(r){return this.clone().imaskn(r)},"maskn"),u.prototype.iaddn=o(function(r){return A(typeof r=="number"),A(r<67108864),r<0?this.isubn(-r):this.negative!==0?this.length===1&&(this.words[0]|0)<=r?(this.words[0]=r-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(r),this.negative=1,this):this._iaddn(r)},"iaddn"),u.prototype._iaddn=o(function(r){this.words[0]+=r;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},"_iaddn"),u.prototype.isubn=o(function(r){if(A(typeof r=="number"),A(r<67108864),r<0)return this.iaddn(-r);if(this.negative!==0)return this.negative=0,this.iaddn(r),this.negative=1,this;if(this.words[0]-=r,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this._strip()},"isubn"),u.prototype.addn=o(function(r){return this.clone().iaddn(r)},"addn"),u.prototype.subn=o(function(r){return this.clone().isubn(r)},"subn"),u.prototype.iabs=o(function(){return this.negative=0,this},"iabs"),u.prototype.abs=o(function(){return this.clone().iabs()},"abs"),u.prototype._ishlnsubmul=o(function(r,a,s){var h=r.length+s,m;this._expand(h);var y,S=0;for(m=0;m<r.length;m++){y=(this.words[m+s]|0)+S;var g=(r.words[m]|0)*a;y-=g&67108863,S=(y>>26)-(g/67108864|0),this.words[m+s]=y&67108863}for(;m<this.length-s;m++)y=(this.words[m+s]|0)+S,S=y>>26,this.words[m+s]=y&67108863;if(S===0)return this._strip();for(A(S===-1),S=0,m=0;m<this.length;m++)y=-(this.words[m]|0)+S,S=y>>26,this.words[m]=y&67108863;return this.negative=1,this._strip()},"_ishlnsubmul"),u.prototype._wordDiv=o(function(r,a){var s=this.length-r.length,h=this.clone(),m=r,y=m.words[m.length-1]|0,S=this._countBits(y);s=26-S,s!==0&&(m=m.ushln(s),h.iushln(s),y=m.words[m.length-1]|0);var g=h.length-m.length,n;if(a!=="mod"){n=new u(null),n.length=g+1,n.words=new Array(n.length);for(var v=0;v<n.length;v++)n.words[v]=0}var te=h.clone()._ishlnsubmul(m,1,g);te.negative===0&&(h=te,n&&(n.words[g]=1));for(var re=g-1;re>=0;re--){var Q=(h.words[m.length+re]|0)*67108864+(h.words[m.length+re-1]|0);for(Q=Math.min(Q/y|0,67108863),h._ishlnsubmul(m,Q,re);h.negative!==0;)Q--,h.negative=0,h._ishlnsubmul(m,1,re),h.isZero()||(h.negative^=1);n&&(n.words[re]=Q)}return n&&n._strip(),h._strip(),a!=="div"&&s!==0&&h.iushrn(s),{div:n||null,mod:h}},"_wordDiv"),u.prototype.divmod=o(function(r,a,s){if(A(!r.isZero()),this.isZero())return{div:new u(0),mod:new u(0)};var h,m,y;return this.negative!==0&&r.negative===0?(y=this.neg().divmod(r,a),a!=="mod"&&(h=y.div.neg()),a!=="div"&&(m=y.mod.neg(),s&&m.negative!==0&&m.iadd(r)),{div:h,mod:m}):this.negative===0&&r.negative!==0?(y=this.divmod(r.neg(),a),a!=="mod"&&(h=y.div.neg()),{div:h,mod:y.mod}):this.negative&r.negative?(y=this.neg().divmod(r.neg(),a),a!=="div"&&(m=y.mod.neg(),s&&m.negative!==0&&m.isub(r)),{div:y.div,mod:m}):r.length>this.length||this.cmp(r)<0?{div:new u(0),mod:this}:r.length===1?a==="div"?{div:this.divn(r.words[0]),mod:null}:a==="mod"?{div:null,mod:new u(this.modrn(r.words[0]))}:{div:this.divn(r.words[0]),mod:new u(this.modrn(r.words[0]))}:this._wordDiv(r,a)},"divmod"),u.prototype.div=o(function(r){return this.divmod(r,"div",!1).div},"div"),u.prototype.mod=o(function(r){return this.divmod(r,"mod",!1).mod},"mod"),u.prototype.umod=o(function(r){return this.divmod(r,"mod",!0).mod},"umod"),u.prototype.divRound=o(function(r){var a=this.divmod(r);if(a.mod.isZero())return a.div;var s=a.div.negative!==0?a.mod.isub(r):a.mod,h=r.ushrn(1),m=r.andln(1),y=s.cmp(h);return y<0||m===1&&y===0?a.div:a.div.negative!==0?a.div.isubn(1):a.div.iaddn(1)},"divRound"),u.prototype.modrn=o(function(r){var a=r<0;a&&(r=-r),A(r<=67108863);for(var s=(1<<26)%r,h=0,m=this.length-1;m>=0;m--)h=(s*h+(this.words[m]|0))%r;return a?-h:h},"modrn"),u.prototype.modn=o(function(r){return this.modrn(r)},"modn"),u.prototype.idivn=o(function(r){var a=r<0;a&&(r=-r),A(r<=67108863);for(var s=0,h=this.length-1;h>=0;h--){var m=(this.words[h]|0)+s*67108864;this.words[h]=m/r|0,s=m%r}return this._strip(),a?this.ineg():this},"idivn"),u.prototype.divn=o(function(r){return this.clone().idivn(r)},"divn"),u.prototype.egcd=o(function(r){A(r.negative===0),A(!r.isZero());var a=this,s=r.clone();a.negative!==0?a=a.umod(r):a=a.clone();for(var h=new u(1),m=new u(0),y=new u(0),S=new u(1),g=0;a.isEven()&&s.isEven();)a.iushrn(1),s.iushrn(1),++g;for(var n=s.clone(),v=a.clone();!a.isZero();){for(var te=0,re=1;!(a.words[0]&re)&&te<26;++te,re<<=1);if(te>0)for(a.iushrn(te);te-- >0;)(h.isOdd()||m.isOdd())&&(h.iadd(n),m.isub(v)),h.iushrn(1),m.iushrn(1);for(var Q=0,ee=1;!(s.words[0]&ee)&&Q<26;++Q,ee<<=1);if(Q>0)for(s.iushrn(Q);Q-- >0;)(y.isOdd()||S.isOdd())&&(y.iadd(n),S.isub(v)),y.iushrn(1),S.iushrn(1);a.cmp(s)>=0?(a.isub(s),h.isub(y),m.isub(S)):(s.isub(a),y.isub(h),S.isub(m))}return{a:y,b:S,gcd:s.iushln(g)}},"egcd"),u.prototype._invmp=o(function(r){A(r.negative===0),A(!r.isZero());var a=this,s=r.clone();a.negative!==0?a=a.umod(r):a=a.clone();for(var h=new u(1),m=new u(0),y=s.clone();a.cmpn(1)>0&&s.cmpn(1)>0;){for(var S=0,g=1;!(a.words[0]&g)&&S<26;++S,g<<=1);if(S>0)for(a.iushrn(S);S-- >0;)h.isOdd()&&h.iadd(y),h.iushrn(1);for(var n=0,v=1;!(s.words[0]&v)&&n<26;++n,v<<=1);if(n>0)for(s.iushrn(n);n-- >0;)m.isOdd()&&m.iadd(y),m.iushrn(1);a.cmp(s)>=0?(a.isub(s),h.isub(m)):(s.isub(a),m.isub(h))}var te;return a.cmpn(1)===0?te=h:te=m,te.cmpn(0)<0&&te.iadd(r),te},"_invmp"),u.prototype.gcd=o(function(r){if(this.isZero())return r.abs();if(r.isZero())return this.abs();var a=this.clone(),s=r.clone();a.negative=0,s.negative=0;for(var h=0;a.isEven()&&s.isEven();h++)a.iushrn(1),s.iushrn(1);do{for(;a.isEven();)a.iushrn(1);for(;s.isEven();)s.iushrn(1);var m=a.cmp(s);if(m<0){var y=a;a=s,s=y}else if(m===0||s.cmpn(1)===0)break;a.isub(s)}while(!0);return s.iushln(h)},"gcd"),u.prototype.invm=o(function(r){return this.egcd(r).a.umod(r)},"invm"),u.prototype.isEven=o(function(){return(this.words[0]&1)===0},"isEven"),u.prototype.isOdd=o(function(){return(this.words[0]&1)===1},"isOdd"),u.prototype.andln=o(function(r){return this.words[0]&r},"andln"),u.prototype.bincn=o(function(r){A(typeof r=="number");var a=r%26,s=(r-a)/26,h=1<<a;if(this.length<=s)return this._expand(s+1),this.words[s]|=h,this;for(var m=h,y=s;m!==0&&y<this.length;y++){var S=this.words[y]|0;S+=m,m=S>>>26,S&=67108863,this.words[y]=S}return m!==0&&(this.words[y]=m,this.length++),this},"bincn"),u.prototype.isZero=o(function(){return this.length===1&&this.words[0]===0},"isZero"),u.prototype.cmpn=o(function(r){var a=r<0;if(this.negative!==0&&!a)return-1;if(this.negative===0&&a)return 1;this._strip();var s;if(this.length>1)s=1;else{a&&(r=-r),A(r<=67108863,"Number is too big");var h=this.words[0]|0;s=h===r?0:h<r?-1:1}return this.negative!==0?-s|0:s},"cmpn"),u.prototype.cmp=o(function(r){if(this.negative!==0&&r.negative===0)return-1;if(this.negative===0&&r.negative!==0)return 1;var a=this.ucmp(r);return this.negative!==0?-a|0:a},"cmp"),u.prototype.ucmp=o(function(r){if(this.length>r.length)return 1;if(this.length<r.length)return-1;for(var a=0,s=this.length-1;s>=0;s--){var h=this.words[s]|0,m=r.words[s]|0;if(h!==m){h<m?a=-1:h>m&&(a=1);break}}return a},"ucmp"),u.prototype.gtn=o(function(r){return this.cmpn(r)===1},"gtn"),u.prototype.gt=o(function(r){return this.cmp(r)===1},"gt"),u.prototype.gten=o(function(r){return this.cmpn(r)>=0},"gten"),u.prototype.gte=o(function(r){return this.cmp(r)>=0},"gte"),u.prototype.ltn=o(function(r){return this.cmpn(r)===-1},"ltn"),u.prototype.lt=o(function(r){return this.cmp(r)===-1},"lt"),u.prototype.lten=o(function(r){return this.cmpn(r)<=0},"lten"),u.prototype.lte=o(function(r){return this.cmp(r)<=0},"lte"),u.prototype.eqn=o(function(r){return this.cmpn(r)===0},"eqn"),u.prototype.eq=o(function(r){return this.cmp(r)===0},"eq"),u.red=o(function(r){return new ce(r)},"red"),u.prototype.toRed=o(function(r){return A(!this.red,"Already a number in reduction context"),A(this.negative===0,"red works only with positives"),r.convertTo(this)._forceRed(r)},"toRed"),u.prototype.fromRed=o(function(){return A(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},"fromRed"),u.prototype._forceRed=o(function(r){return this.red=r,this},"_forceRed"),u.prototype.forceRed=o(function(r){return A(!this.red,"Already a number in reduction context"),this._forceRed(r)},"forceRed"),u.prototype.redAdd=o(function(r){return A(this.red,"redAdd works only with red numbers"),this.red.add(this,r)},"redAdd"),u.prototype.redIAdd=o(function(r){return A(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,r)},"redIAdd"),u.prototype.redSub=o(function(r){return A(this.red,"redSub works only with red numbers"),this.red.sub(this,r)},"redSub"),u.prototype.redISub=o(function(r){return A(this.red,"redISub works only with red numbers"),this.red.isub(this,r)},"redISub"),u.prototype.redShl=o(function(r){return A(this.red,"redShl works only with red numbers"),this.red.shl(this,r)},"redShl"),u.prototype.redMul=o(function(r){return A(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.mul(this,r)},"redMul"),u.prototype.redIMul=o(function(r){return A(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.imul(this,r)},"redIMul"),u.prototype.redSqr=o(function(){return A(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},"redSqr"),u.prototype.redISqr=o(function(){return A(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},"redISqr"),u.prototype.redSqrt=o(function(){return A(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},"redSqrt"),u.prototype.redInvm=o(function(){return A(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},"redInvm"),u.prototype.redNeg=o(function(){return A(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},"redNeg"),u.prototype.redPow=o(function(r){return A(this.red&&!r.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,r)},"redPow");var J={k256:null,p224:null,p192:null,p25519:null};function z(b,r){this.name=b,this.p=new u(r,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}o(z,"MPrime"),z.prototype._tmp=o(function(){var r=new u(null);return r.words=new Array(Math.ceil(this.n/13)),r},"_tmp"),z.prototype.ireduce=o(function(r){var a=r,s;do this.split(a,this.tmp),a=this.imulK(a),a=a.iadd(this.tmp),s=a.bitLength();while(s>this.n);var h=s<this.n?-1:a.ucmp(this.p);return h===0?(a.words[0]=0,a.length=1):h>0?a.isub(this.p):a.strip!==void 0?a.strip():a._strip(),a},"ireduce"),z.prototype.split=o(function(r,a){r.iushrn(this.n,0,a)},"split"),z.prototype.imulK=o(function(r){return r.imul(this.k)},"imulK");function U(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}o(U,"K256"),k(U,z),U.prototype.split=o(function(r,a){for(var s=4194303,h=Math.min(r.length,9),m=0;m<h;m++)a.words[m]=r.words[m];if(a.length=h,r.length<=9){r.words[0]=0,r.length=1;return}var y=r.words[9];for(a.words[a.length++]=y&s,m=10;m<r.length;m++){var S=r.words[m]|0;r.words[m-10]=(S&s)<<4|y>>>22,y=S}y>>>=22,r.words[m-10]=y,y===0&&r.length>10?r.length-=10:r.length-=9},"split"),U.prototype.imulK=o(function(r){r.words[r.length]=0,r.words[r.length+1]=0,r.length+=2;for(var a=0,s=0;s<r.length;s++){var h=r.words[s]|0;a+=h*977,r.words[s]=a&67108863,a=h*64+(a/67108864|0)}return r.words[r.length-1]===0&&(r.length--,r.words[r.length-1]===0&&r.length--),r},"imulK");function de(){z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}o(de,"P224"),k(de,z);function ae(){z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}o(ae,"P192"),k(ae,z);function Ie(){z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}o(Ie,"P25519"),k(Ie,z),Ie.prototype.imulK=o(function(r){for(var a=0,s=0;s<r.length;s++){var h=(r.words[s]|0)*19+a,m=h&67108863;h>>>=26,r.words[s]=m,a=h}return a!==0&&(r.words[r.length++]=a),r},"imulK"),u._prime=o(function(r){if(J[r])return J[r];var a;if(r==="k256")a=new U;else if(r==="p224")a=new de;else if(r==="p192")a=new ae;else if(r==="p25519")a=new Ie;else throw new Error("Unknown prime "+r);return J[r]=a,a},"prime");function ce(b){if(typeof b=="string"){var r=u._prime(b);this.m=r.p,this.prime=r}else A(b.gtn(1),"modulus must be greater than 1"),this.m=b,this.prime=null}o(ce,"Red"),ce.prototype._verify1=o(function(r){A(r.negative===0,"red works only with positives"),A(r.red,"red works only with red numbers")},"_verify1"),ce.prototype._verify2=o(function(r,a){A((r.negative|a.negative)===0,"red works only with positives"),A(r.red&&r.red===a.red,"red works only with red numbers")},"_verify2"),ce.prototype.imod=o(function(r){return this.prime?this.prime.ireduce(r)._forceRed(this):(l(r,r.umod(this.m)._forceRed(this)),r)},"imod"),ce.prototype.neg=o(function(r){return r.isZero()?r.clone():this.m.sub(r)._forceRed(this)},"neg"),ce.prototype.add=o(function(r,a){this._verify2(r,a);var s=r.add(a);return s.cmp(this.m)>=0&&s.isub(this.m),s._forceRed(this)},"add"),ce.prototype.iadd=o(function(r,a){this._verify2(r,a);var s=r.iadd(a);return s.cmp(this.m)>=0&&s.isub(this.m),s},"iadd"),ce.prototype.sub=o(function(r,a){this._verify2(r,a);var s=r.sub(a);return s.cmpn(0)<0&&s.iadd(this.m),s._forceRed(this)},"sub"),ce.prototype.isub=o(function(r,a){this._verify2(r,a);var s=r.isub(a);return s.cmpn(0)<0&&s.iadd(this.m),s},"isub"),ce.prototype.shl=o(function(r,a){return this._verify1(r),this.imod(r.ushln(a))},"shl"),ce.prototype.imul=o(function(r,a){return this._verify2(r,a),this.imod(r.imul(a))},"imul"),ce.prototype.mul=o(function(r,a){return this._verify2(r,a),this.imod(r.mul(a))},"mul"),ce.prototype.isqr=o(function(r){return this.imul(r,r.clone())},"isqr"),ce.prototype.sqr=o(function(r){return this.mul(r,r)},"sqr"),ce.prototype.sqrt=o(function(r){if(r.isZero())return r.clone();var a=this.m.andln(3);if(A(a%2===1),a===3){var s=this.m.add(new u(1)).iushrn(2);return this.pow(r,s)}for(var h=this.m.subn(1),m=0;!h.isZero()&&h.andln(1)===0;)m++,h.iushrn(1);A(!h.isZero());var y=new u(1).toRed(this),S=y.redNeg(),g=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new u(2*n*n).toRed(this);this.pow(n,g).cmp(S)!==0;)n.redIAdd(S);for(var v=this.pow(n,h),te=this.pow(r,h.addn(1).iushrn(1)),re=this.pow(r,h),Q=m;re.cmp(y)!==0;){for(var ee=re,ue=0;ee.cmp(y)!==0;ue++)ee=ee.redSqr();A(ue<Q);var ye=this.pow(v,new u(1).iushln(Q-ue-1));te=te.redMul(ye),v=ye.redSqr(),re=re.redMul(v),Q=ue}return te},"sqrt"),ce.prototype.invm=o(function(r){var a=r._invmp(this.m);return a.negative!==0?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},"invm"),ce.prototype.pow=o(function(r,a){if(a.isZero())return new u(1).toRed(this);if(a.cmpn(1)===0)return r.clone();var s=4,h=new Array(1<<s);h[0]=new u(1).toRed(this),h[1]=r;for(var m=2;m<h.length;m++)h[m]=this.mul(h[m-1],r);var y=h[0],S=0,g=0,n=a.bitLength()%26;for(n===0&&(n=26),m=a.length-1;m>=0;m--){for(var v=a.words[m],te=n-1;te>=0;te--){var re=v>>te&1;if(y!==h[0]&&(y=this.sqr(y)),re===0&&S===0){g=0;continue}S<<=1,S|=re,g++,!(g!==s&&(m!==0||te!==0))&&(y=this.mul(y,h[S]),g=0,S=0)}n=26}return y},"pow"),ce.prototype.convertTo=o(function(r){var a=r.umod(this.m);return a===r?a.clone():a},"convertTo"),ce.prototype.convertFrom=o(function(r){var a=r.clone();return a.red=null,a},"convertFrom"),u.mont=o(function(r){return new C(r)},"mont");function C(b){ce.call(this,b),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new u(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}o(C,"Mont"),k(C,ce),C.prototype.convertTo=o(function(r){return this.imod(r.ushln(this.shift))},"convertTo"),C.prototype.convertFrom=o(function(r){var a=this.imod(r.mul(this.rinv));return a.red=null,a},"convertFrom"),C.prototype.imul=o(function(r,a){if(r.isZero()||a.isZero())return r.words[0]=0,r.length=1,r;var s=r.imul(a),h=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=s.isub(h).iushrn(this.shift),y=m;return m.cmp(this.m)>=0?y=m.isub(this.m):m.cmpn(0)<0&&(y=m.iadd(this.m)),y._forceRed(this)},"imul"),C.prototype.mul=o(function(r,a){if(r.isZero()||a.isZero())return new u(0)._forceRed(this);var s=r.mul(a),h=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=s.isub(h).iushrn(this.shift),y=m;return m.cmp(this.m)>=0?y=m.isub(this.m):m.cmpn(0)<0&&(y=m.iadd(this.m)),y._forceRed(this)},"mul"),C.prototype.invm=o(function(r){var a=this.imod(r._invmp(this.m).mul(this.r2));return a._forceRed(this)},"invm")}(Z,this)},931:(Z,W,T)=>{var B;Z.exports=o(function(u){return B||(B=new F(null)),B.generate(u)},"rand");function F(k){this.rand=k}if(o(F,"Rand"),Z.exports.Rand=F,F.prototype.generate=o(function(u){return this._rand(u)},"generate"),F.prototype._rand=o(function(u){if(this.rand.getBytes)return this.rand.getBytes(u);for(var _=new Uint8Array(u),H=0;H<_.length;H++)_[H]=this.rand.getByte();return _},"_rand"),typeof self=="object")self.crypto&&self.crypto.getRandomValues?F.prototype._rand=o(function(u){var _=new Uint8Array(u);return self.crypto.getRandomValues(_),_},"_rand"):self.msCrypto&&self.msCrypto.getRandomValues?F.prototype._rand=o(function(u){var _=new Uint8Array(u);return self.msCrypto.getRandomValues(_),_},"_rand"):typeof window=="object"&&(F.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var A=T(113);if(typeof A.randomBytes!="function")throw new Error("Not supported");F.prototype._rand=o(function(u){return A.randomBytes(u)},"_rand")}catch{}},191:(Z,W,T)=>{const B=T(162),F="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";Z.exports=B(F)},555:(Z,W,T)=>{Z.exports=T(113).createHmac},715:(Z,W,T)=>{var B=W;B.utils=T(436),B.common=T(772),B.sha=T(41),B.ripemd=T(949),B.hmac=T(326),B.sha1=B.sha.sha1,B.sha256=B.sha.sha256,B.sha224=B.sha.sha224,B.sha384=B.sha.sha384,B.sha512=B.sha.sha512,B.ripemd160=B.ripemd.ripemd160},772:(Z,W,T)=>{"use strict";var B=T(436),F=T(746);function A(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}o(A,"BlockHash"),W.BlockHash=A,A.prototype.update=o(function(u,_){if(u=B.toArray(u,_),this.pending?this.pending=this.pending.concat(u):this.pending=u,this.pendingTotal+=u.length,this.pending.length>=this._delta8){u=this.pending;var H=u.length%this._delta8;this.pending=u.slice(u.length-H,u.length),this.pending.length===0&&(this.pending=null),u=B.join32(u,0,u.length-H,this.endian);for(var M=0;M<u.length;M+=this._delta32)this._update(u,M,M+this._delta32)}return this},"update"),A.prototype.digest=o(function(u){return this.update(this._pad()),F(this.pending===null),this._digest(u)},"digest"),A.prototype._pad=o(function(){var u=this.pendingTotal,_=this._delta8,H=_-(u+this.padLength)%_,M=new Array(H+this.padLength);M[0]=128;for(var w=1;w<H;w++)M[w]=0;if(u<<=3,this.endian==="big"){for(var l=8;l<this.padLength;l++)M[w++]=0;M[w++]=0,M[w++]=0,M[w++]=0,M[w++]=0,M[w++]=u>>>24&255,M[w++]=u>>>16&255,M[w++]=u>>>8&255,M[w++]=u&255}else for(M[w++]=u&255,M[w++]=u>>>8&255,M[w++]=u>>>16&255,M[w++]=u>>>24&255,M[w++]=0,M[w++]=0,M[w++]=0,M[w++]=0,l=8;l<this.padLength;l++)M[w++]=0;return M},"pad")},326:(Z,W,T)=>{"use strict";var B=T(436),F=T(746);function A(k,u,_){if(!(this instanceof A))return new A(k,u,_);this.Hash=k,this.blockSize=k.blockSize/8,this.outSize=k.outSize/8,this.inner=null,this.outer=null,this._init(B.toArray(u,_))}o(A,"Hmac"),Z.exports=A,A.prototype._init=o(function(u){u.length>this.blockSize&&(u=new this.Hash().update(u).digest()),F(u.length<=this.blockSize);for(var _=u.length;_<this.blockSize;_++)u.push(0);for(_=0;_<u.length;_++)u[_]^=54;for(this.inner=new this.Hash().update(u),_=0;_<u.length;_++)u[_]^=106;this.outer=new this.Hash().update(u)},"init"),A.prototype.update=o(function(u,_){return this.inner.update(u,_),this},"update"),A.prototype.digest=o(function(u){return this.outer.update(this.inner.digest()),this.outer.digest(u)},"digest")},949:(Z,W,T)=>{"use strict";var B=T(436),F=T(772),A=B.rotl32,k=B.sum32,u=B.sum32_3,_=B.sum32_4,H=F.BlockHash;function M(){if(!(this instanceof M))return new M;H.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}o(M,"RIPEMD160"),B.inherits(M,H),W.ripemd160=M,M.blockSize=512,M.outSize=160,M.hmacStrength=192,M.padLength=64,M.prototype._update=o(function(K,L){for(var V=this.h[0],j=this.h[1],Y=this.h[2],J=this.h[3],z=this.h[4],U=V,de=j,ae=Y,Ie=J,ce=z,C=0;C<80;C++){var b=k(A(_(V,w(C,j,Y,J),K[x[C]+L],l(C)),P[C]),z);V=z,z=J,J=A(Y,10),Y=j,j=b,b=k(A(_(U,w(79-C,de,ae,Ie),K[E[C]+L],f(C)),I[C]),ce),U=ce,ce=Ie,Ie=A(ae,10),ae=de,de=b}b=u(this.h[1],Y,Ie),this.h[1]=u(this.h[2],J,ce),this.h[2]=u(this.h[3],z,U),this.h[3]=u(this.h[4],V,de),this.h[4]=u(this.h[0],j,ae),this.h[0]=b},"update"),M.prototype._digest=o(function(K){return K==="hex"?B.toHex32(this.h,"little"):B.split32(this.h,"little")},"digest");function w(R,K,L,V){return R<=15?K^L^V:R<=31?K&L|~K&V:R<=47?(K|~L)^V:R<=63?K&V|L&~V:K^(L|~V)}o(w,"f");function l(R){return R<=15?0:R<=31?1518500249:R<=47?1859775393:R<=63?2400959708:2840853838}o(l,"K");function f(R){return R<=15?1352829926:R<=31?1548603684:R<=47?1836072691:R<=63?2053994217:0}o(f,"Kh");var x=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],E=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],P=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],I=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},41:(Z,W,T)=>{"use strict";W.sha1=T(761),W.sha224=T(799),W.sha256=T(344),W.sha384=T(978),W.sha512=T(900)},761:(Z,W,T)=>{"use strict";var B=T(436),F=T(772),A=T(38),k=B.rotl32,u=B.sum32,_=B.sum32_5,H=A.ft_1,M=F.BlockHash,w=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;M.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}o(l,"SHA1"),B.inherits(l,M),Z.exports=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=o(function(x,E){for(var P=this.W,I=0;I<16;I++)P[I]=x[E+I];for(;I<P.length;I++)P[I]=k(P[I-3]^P[I-8]^P[I-14]^P[I-16],1);var R=this.h[0],K=this.h[1],L=this.h[2],V=this.h[3],j=this.h[4];for(I=0;I<P.length;I++){var Y=~~(I/20),J=_(k(R,5),H(Y,K,L,V),j,P[I],w[Y]);j=V,V=L,L=k(K,30),K=R,R=J}this.h[0]=u(this.h[0],R),this.h[1]=u(this.h[1],K),this.h[2]=u(this.h[2],L),this.h[3]=u(this.h[3],V),this.h[4]=u(this.h[4],j)},"_update"),l.prototype._digest=o(function(x){return x==="hex"?B.toHex32(this.h,"big"):B.split32(this.h,"big")},"digest")},799:(Z,W,T)=>{"use strict";var B=T(436),F=T(344);function A(){if(!(this instanceof A))return new A;F.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}o(A,"SHA224"),B.inherits(A,F),Z.exports=A,A.blockSize=512,A.outSize=224,A.hmacStrength=192,A.padLength=64,A.prototype._digest=o(function(u){return u==="hex"?B.toHex32(this.h.slice(0,7),"big"):B.split32(this.h.slice(0,7),"big")},"digest")},344:(Z,W,T)=>{"use strict";var B=T(436),F=T(772),A=T(38),k=T(746),u=B.sum32,_=B.sum32_4,H=B.sum32_5,M=A.ch32,w=A.maj32,l=A.s0_256,f=A.s1_256,x=A.g0_256,E=A.g1_256,P=F.BlockHash,I=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function R(){if(!(this instanceof R))return new R;P.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=I,this.W=new Array(64)}o(R,"SHA256"),B.inherits(R,P),Z.exports=R,R.blockSize=512,R.outSize=256,R.hmacStrength=192,R.padLength=64,R.prototype._update=o(function(L,V){for(var j=this.W,Y=0;Y<16;Y++)j[Y]=L[V+Y];for(;Y<j.length;Y++)j[Y]=_(E(j[Y-2]),j[Y-7],x(j[Y-15]),j[Y-16]);var J=this.h[0],z=this.h[1],U=this.h[2],de=this.h[3],ae=this.h[4],Ie=this.h[5],ce=this.h[6],C=this.h[7];for(k(this.k.length===j.length),Y=0;Y<j.length;Y++){var b=H(C,f(ae),M(ae,Ie,ce),this.k[Y],j[Y]),r=u(l(J),w(J,z,U));C=ce,ce=Ie,Ie=ae,ae=u(de,b),de=U,U=z,z=J,J=u(b,r)}this.h[0]=u(this.h[0],J),this.h[1]=u(this.h[1],z),this.h[2]=u(this.h[2],U),this.h[3]=u(this.h[3],de),this.h[4]=u(this.h[4],ae),this.h[5]=u(this.h[5],Ie),this.h[6]=u(this.h[6],ce),this.h[7]=u(this.h[7],C)},"_update"),R.prototype._digest=o(function(L){return L==="hex"?B.toHex32(this.h,"big"):B.split32(this.h,"big")},"digest")},978:(Z,W,T)=>{"use strict";var B=T(436),F=T(900);function A(){if(!(this instanceof A))return new A;F.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}o(A,"SHA384"),B.inherits(A,F),Z.exports=A,A.blockSize=1024,A.outSize=384,A.hmacStrength=192,A.padLength=128,A.prototype._digest=o(function(u){return u==="hex"?B.toHex32(this.h.slice(0,12),"big"):B.split32(this.h.slice(0,12),"big")},"digest")},900:(Z,W,T)=>{"use strict";var B=T(436),F=T(772),A=T(746),k=B.rotr64_hi,u=B.rotr64_lo,_=B.shr64_hi,H=B.shr64_lo,M=B.sum64,w=B.sum64_hi,l=B.sum64_lo,f=B.sum64_4_hi,x=B.sum64_4_lo,E=B.sum64_5_hi,P=B.sum64_5_lo,I=F.BlockHash,R=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function K(){if(!(this instanceof K))return new K;I.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=R,this.W=new Array(160)}o(K,"SHA512"),B.inherits(K,I),Z.exports=K,K.blockSize=1024,K.outSize=512,K.hmacStrength=192,K.padLength=128,K.prototype._prepareBlock=o(function(r,a){for(var s=this.W,h=0;h<32;h++)s[h]=r[a+h];for(;h<s.length;h+=2){var m=ce(s[h-4],s[h-3]),y=C(s[h-4],s[h-3]),S=s[h-14],g=s[h-13],n=ae(s[h-30],s[h-29]),v=Ie(s[h-30],s[h-29]),te=s[h-32],re=s[h-31];s[h]=f(m,y,S,g,n,v,te,re),s[h+1]=x(m,y,S,g,n,v,te,re)}},"_prepareBlock"),K.prototype._update=o(function(r,a){this._prepareBlock(r,a);var s=this.W,h=this.h[0],m=this.h[1],y=this.h[2],S=this.h[3],g=this.h[4],n=this.h[5],v=this.h[6],te=this.h[7],re=this.h[8],Q=this.h[9],ee=this.h[10],ue=this.h[11],ye=this.h[12],Ue=this.h[13],we=this.h[14],Oe=this.h[15];A(this.k.length===s.length);for(var Ve=0;Ve<s.length;Ve+=2){var pe=we,ge=Oe,Ke=U(re,Q),Ee=de(re,Q),_e=L(re,Q,ee,ue,ye,Ue),We=V(re,Q,ee,ue,ye,Ue),le=this.k[Ve],he=this.k[Ve+1],De=s[Ve],fe=s[Ve+1],Re=E(pe,ge,Ke,Ee,_e,We,le,he,De,fe),Qe=P(pe,ge,Ke,Ee,_e,We,le,he,De,fe);pe=J(h,m),ge=z(h,m),Ke=j(h,m,y,S,g,n),Ee=Y(h,m,y,S,g,n);var G=w(pe,ge,Ke,Ee),Ae=l(pe,ge,Ke,Ee);we=ye,Oe=Ue,ye=ee,Ue=ue,ee=re,ue=Q,re=w(v,te,Re,Qe),Q=l(te,te,Re,Qe),v=g,te=n,g=y,n=S,y=h,S=m,h=w(Re,Qe,G,Ae),m=l(Re,Qe,G,Ae)}M(this.h,0,h,m),M(this.h,2,y,S),M(this.h,4,g,n),M(this.h,6,v,te),M(this.h,8,re,Q),M(this.h,10,ee,ue),M(this.h,12,ye,Ue),M(this.h,14,we,Oe)},"_update"),K.prototype._digest=o(function(r){return r==="hex"?B.toHex32(this.h,"big"):B.split32(this.h,"big")},"digest");function L(b,r,a,s,h){var m=b&a^~b&h;return m<0&&(m+=4294967296),m}o(L,"ch64_hi");function V(b,r,a,s,h,m){var y=r&s^~r&m;return y<0&&(y+=4294967296),y}o(V,"ch64_lo");function j(b,r,a,s,h){var m=b&a^b&h^a&h;return m<0&&(m+=4294967296),m}o(j,"maj64_hi");function Y(b,r,a,s,h,m){var y=r&s^r&m^s&m;return y<0&&(y+=4294967296),y}o(Y,"maj64_lo");function J(b,r){var a=k(b,r,28),s=k(r,b,2),h=k(r,b,7),m=a^s^h;return m<0&&(m+=4294967296),m}o(J,"s0_512_hi");function z(b,r){var a=u(b,r,28),s=u(r,b,2),h=u(r,b,7),m=a^s^h;return m<0&&(m+=4294967296),m}o(z,"s0_512_lo");function U(b,r){var a=k(b,r,14),s=k(b,r,18),h=k(r,b,9),m=a^s^h;return m<0&&(m+=4294967296),m}o(U,"s1_512_hi");function de(b,r){var a=u(b,r,14),s=u(b,r,18),h=u(r,b,9),m=a^s^h;return m<0&&(m+=4294967296),m}o(de,"s1_512_lo");function ae(b,r){var a=k(b,r,1),s=k(b,r,8),h=_(b,r,7),m=a^s^h;return m<0&&(m+=4294967296),m}o(ae,"g0_512_hi");function Ie(b,r){var a=u(b,r,1),s=u(b,r,8),h=H(b,r,7),m=a^s^h;return m<0&&(m+=4294967296),m}o(Ie,"g0_512_lo");function ce(b,r){var a=k(b,r,19),s=k(r,b,29),h=_(b,r,6),m=a^s^h;return m<0&&(m+=4294967296),m}o(ce,"g1_512_hi");function C(b,r){var a=u(b,r,19),s=u(r,b,29),h=H(b,r,6),m=a^s^h;return m<0&&(m+=4294967296),m}o(C,"g1_512_lo")},38:(Z,W,T)=>{"use strict";var B=T(436),F=B.rotr32;function A(f,x,E,P){if(f===0)return k(x,E,P);if(f===1||f===3)return _(x,E,P);if(f===2)return u(x,E,P)}o(A,"ft_1"),W.ft_1=A;function k(f,x,E){return f&x^~f&E}o(k,"ch32"),W.ch32=k;function u(f,x,E){return f&x^f&E^x&E}o(u,"maj32"),W.maj32=u;function _(f,x,E){return f^x^E}o(_,"p32"),W.p32=_;function H(f){return F(f,2)^F(f,13)^F(f,22)}o(H,"s0_256"),W.s0_256=H;function M(f){return F(f,6)^F(f,11)^F(f,25)}o(M,"s1_256"),W.s1_256=M;function w(f){return F(f,7)^F(f,18)^f>>>3}o(w,"g0_256"),W.g0_256=w;function l(f){return F(f,17)^F(f,19)^f>>>10}o(l,"g1_256"),W.g1_256=l},436:(Z,W,T)=>{"use strict";var B=T(746),F=T(378);W.inherits=F;function A(C,b){return(C.charCodeAt(b)&64512)!==55296||b<0||b+1>=C.length?!1:(C.charCodeAt(b+1)&64512)===56320}o(A,"isSurrogatePair");function k(C,b){if(Array.isArray(C))return C.slice();if(!C)return[];var r=[];if(typeof C=="string")if(b){if(b==="hex")for(C=C.replace(/[^a-z0-9]+/ig,""),C.length%2!==0&&(C="0"+C),s=0;s<C.length;s+=2)r.push(parseInt(C[s]+C[s+1],16))}else for(var a=0,s=0;s<C.length;s++){var h=C.charCodeAt(s);h<128?r[a++]=h:h<2048?(r[a++]=h>>6|192,r[a++]=h&63|128):A(C,s)?(h=65536+((h&1023)<<10)+(C.charCodeAt(++s)&1023),r[a++]=h>>18|240,r[a++]=h>>12&63|128,r[a++]=h>>6&63|128,r[a++]=h&63|128):(r[a++]=h>>12|224,r[a++]=h>>6&63|128,r[a++]=h&63|128)}else for(s=0;s<C.length;s++)r[s]=C[s]|0;return r}o(k,"toArray"),W.toArray=k;function u(C){for(var b="",r=0;r<C.length;r++)b+=M(C[r].toString(16));return b}o(u,"toHex"),W.toHex=u;function _(C){var b=C>>>24|C>>>8&65280|C<<8&16711680|(C&255)<<24;return b>>>0}o(_,"htonl"),W.htonl=_;function H(C,b){for(var r="",a=0;a<C.length;a++){var s=C[a];b==="little"&&(s=_(s)),r+=w(s.toString(16))}return r}o(H,"toHex32"),W.toHex32=H;function M(C){return C.length===1?"0"+C:C}o(M,"zero2"),W.zero2=M;function w(C){return C.length===7?"0"+C:C.length===6?"00"+C:C.length===5?"000"+C:C.length===4?"0000"+C:C.length===3?"00000"+C:C.length===2?"000000"+C:C.length===1?"0000000"+C:C}o(w,"zero8"),W.zero8=w;function l(C,b,r,a){var s=r-b;B(s%4===0);for(var h=new Array(s/4),m=0,y=b;m<h.length;m++,y+=4){var S;a==="big"?S=C[y]<<24|C[y+1]<<16|C[y+2]<<8|C[y+3]:S=C[y+3]<<24|C[y+2]<<16|C[y+1]<<8|C[y],h[m]=S>>>0}return h}o(l,"join32"),W.join32=l;function f(C,b){for(var r=new Array(C.length*4),a=0,s=0;a<C.length;a++,s+=4){var h=C[a];b==="big"?(r[s]=h>>>24,r[s+1]=h>>>16&255,r[s+2]=h>>>8&255,r[s+3]=h&255):(r[s+3]=h>>>24,r[s+2]=h>>>16&255,r[s+1]=h>>>8&255,r[s]=h&255)}return r}o(f,"split32"),W.split32=f;function x(C,b){return C>>>b|C<<32-b}o(x,"rotr32"),W.rotr32=x;function E(C,b){return C<<b|C>>>32-b}o(E,"rotl32"),W.rotl32=E;function P(C,b){return C+b>>>0}o(P,"sum32"),W.sum32=P;function I(C,b,r){return C+b+r>>>0}o(I,"sum32_3"),W.sum32_3=I;function R(C,b,r,a){return C+b+r+a>>>0}o(R,"sum32_4"),W.sum32_4=R;function K(C,b,r,a,s){return C+b+r+a+s>>>0}o(K,"sum32_5"),W.sum32_5=K;function L(C,b,r,a){var s=C[b],h=C[b+1],m=a+h>>>0,y=(m<a?1:0)+r+s;C[b]=y>>>0,C[b+1]=m}o(L,"sum64"),W.sum64=L;function V(C,b,r,a){var s=b+a>>>0,h=(s<b?1:0)+C+r;return h>>>0}o(V,"sum64_hi"),W.sum64_hi=V;function j(C,b,r,a){var s=b+a;return s>>>0}o(j,"sum64_lo"),W.sum64_lo=j;function Y(C,b,r,a,s,h,m,y){var S=0,g=b;g=g+a>>>0,S+=g<b?1:0,g=g+h>>>0,S+=g<h?1:0,g=g+y>>>0,S+=g<y?1:0;var n=C+r+s+m+S;return n>>>0}o(Y,"sum64_4_hi"),W.sum64_4_hi=Y;function J(C,b,r,a,s,h,m,y){var S=b+a+h+y;return S>>>0}o(J,"sum64_4_lo"),W.sum64_4_lo=J;function z(C,b,r,a,s,h,m,y,S,g){var n=0,v=b;v=v+a>>>0,n+=v<b?1:0,v=v+h>>>0,n+=v<h?1:0,v=v+y>>>0,n+=v<y?1:0,v=v+g>>>0,n+=v<g?1:0;var te=C+r+s+m+S+n;return te>>>0}o(z,"sum64_5_hi"),W.sum64_5_hi=z;function U(C,b,r,a,s,h,m,y,S,g){var n=b+a+h+y+g;return n>>>0}o(U,"sum64_5_lo"),W.sum64_5_lo=U;function de(C,b,r){var a=b<<32-r|C>>>r;return a>>>0}o(de,"rotr64_hi"),W.rotr64_hi=de;function ae(C,b,r){var a=C<<32-r|b>>>r;return a>>>0}o(ae,"rotr64_lo"),W.rotr64_lo=ae;function Ie(C,b,r){return C>>>r}o(Ie,"shr64_hi"),W.shr64_hi=Ie;function ce(C,b,r){var a=C<<32-r|b>>>r;return a>>>0}o(ce,"shr64_lo"),W.shr64_lo=ce},156:(Z,W,T)=>{"use strict";var B=T(715),F=T(504),A=T(746);function k(u){if(!(this instanceof k))return new k(u);this.hash=u.hash,this.predResist=!!u.predResist,this.outLen=this.hash.outSize,this.minEntropy=u.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var _=F.toArray(u.entropy,u.entropyEnc||"hex"),H=F.toArray(u.nonce,u.nonceEnc||"hex"),M=F.toArray(u.pers,u.persEnc||"hex");A(_.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(_,H,M)}o(k,"HmacDRBG"),Z.exports=k,k.prototype._init=o(function(_,H,M){var w=_.concat(H).concat(M);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var l=0;l<this.V.length;l++)this.K[l]=0,this.V[l]=1;this._update(w),this._reseed=1,this.reseedInterval=281474976710656},"init"),k.prototype._hmac=o(function(){return new B.hmac(this.hash,this.K)},"hmac"),k.prototype._update=o(function(_){var H=this._hmac().update(this.V).update([0]);_&&(H=H.update(_)),this.K=H.digest(),this.V=this._hmac().update(this.V).digest(),_&&(this.K=this._hmac().update(this.V).update([1]).update(_).digest(),this.V=this._hmac().update(this.V).digest())},"update"),k.prototype.reseed=o(function(_,H,M,w){typeof H!="string"&&(w=M,M=H,H=null),_=F.toArray(_,H),M=F.toArray(M,w),A(_.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(_.concat(M||[])),this._reseed=1},"reseed"),k.prototype.generate=o(function(_,H,M,w){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof H!="string"&&(w=M,M=H,H=null),M&&(M=F.toArray(M,w||"hex"),this._update(M));for(var l=[];l.length<_;)this.V=this._hmac().update(this.V).digest(),l=l.concat(this.V);var f=l.slice(0,_);return this._update(M),this._reseed++,F.encode(f,H)},"generate")},378:(Z,W,T)=>{try{var B=T(837);if(typeof B.inherits!="function")throw"";Z.exports=B.inherits}catch{Z.exports=T(717)}},717:Z=>{typeof Object.create=="function"?Z.exports=o(function(T,B){B&&(T.super_=B,T.prototype=Object.create(B.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):Z.exports=o(function(T,B){if(B){T.super_=B;var F=o(function(){},"TempCtor");F.prototype=B.prototype,T.prototype=new F,T.prototype.constructor=T}},"inherits")},746:Z=>{Z.exports=W;function W(T,B){if(!T)throw new Error(B||"Assertion failed")}o(W,"assert"),W.equal=o(function(B,F,A){if(B!=F)throw new Error(A||"Assertion failed: "+B+" != "+F)},"assertEqual")},504:(Z,W)=>{"use strict";var T=W;function B(k,u){if(Array.isArray(k))return k.slice();if(!k)return[];var _=[];if(typeof k!="string"){for(var H=0;H<k.length;H++)_[H]=k[H]|0;return _}if(u==="hex"){k=k.replace(/[^a-z0-9]+/ig,""),k.length%2!==0&&(k="0"+k);for(var H=0;H<k.length;H+=2)_.push(parseInt(k[H]+k[H+1],16))}else for(var H=0;H<k.length;H++){var M=k.charCodeAt(H),w=M>>8,l=M&255;w?_.push(w,l):_.push(l)}return _}o(B,"toArray"),T.toArray=B;function F(k){return k.length===1?"0"+k:k}o(F,"zero2"),T.zero2=F;function A(k){for(var u="",_=0;_<k.length;_++)u+=F(k[_].toString(16));return u}o(A,"toHex"),T.toHex=A,T.encode=o(function(u,_){return _==="hex"?A(u):u},"encode")},601:(Z,W,T)=>{var B=T(113),F=T(357),A=T(368),k=T(777);function u(H,M,w,l,f,x){if(F(w,l),H=k(H,A,"Password"),M=k(M,A,"Salt"),typeof f=="function"&&(x=f,f="sha1"),typeof x!="function")throw new Error("No callback provided to pbkdf2");return B.pbkdf2(H,M,w,l,f,x)}o(u,"nativePBKDF2");function _(H,M,w,l,f){return F(w,l),H=k(H,A,"Password"),M=k(M,A,"Salt"),f=f||"sha1",B.pbkdf2Sync(H,M,w,l,f)}o(_,"nativePBKDF2Sync"),!B.pbkdf2Sync||B.pbkdf2Sync.toString().indexOf("keylen, digest")===-1?(W.pbkdf2Sync=T(493),W.pbkdf2=T(638)):(W.pbkdf2Sync=_,W.pbkdf2=u)},638:(Z,W,T)=>{var B=T(509).Buffer,F=T(357),A=T(368),k=T(493),u=T(777),_,H=global.crypto&&global.crypto.subtle,M={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},w=[];function l(I){if(global.process&&!global.process.browser||!H||!H.importKey||!H.deriveBits)return Promise.resolve(!1);if(w[I]!==void 0)return w[I];_=_||B.alloc(8);var R=E(_,_,10,128,I).then(function(){return!0}).catch(function(){return!1});return w[I]=R,R}o(l,"checkNative");var f;function x(){return f||(global.process&&global.process.nextTick?f=global.process.nextTick:global.queueMicrotask?f=global.queueMicrotask:global.setImmediate?f=global.setImmediate:f=global.setTimeout,f)}o(x,"getNextTick");function E(I,R,K,L,V){return H.importKey("raw",I,{name:"PBKDF2"},!1,["deriveBits"]).then(function(j){return H.deriveBits({name:"PBKDF2",salt:R,iterations:K,hash:{name:V}},j,L<<3)}).then(function(j){return B.from(j)})}o(E,"browserPbkdf2");function P(I,R){I.then(function(K){x()(function(){R(null,K)})},function(K){x()(function(){R(K)})})}o(P,"resolvePromise"),Z.exports=function(I,R,K,L,V,j){typeof V=="function"&&(j=V,V=void 0),V=V||"sha1";var Y=M[V.toLowerCase()];if(!Y||typeof global.Promise!="function"){x()(function(){var J;try{J=k(I,R,K,L,V)}catch(z){return j(z)}j(null,J)});return}if(F(K,L),I=u(I,A,"Password"),R=u(R,A,"Salt"),typeof j!="function")throw new Error("No callback provided to pbkdf2");P(l(Y).then(function(J){return J?E(I,R,K,L,Y):k(I,R,K,L,V)}),j)}},368:Z=>{var W;if(global.process&&global.process.browser)W="utf-8";else if(global.process&&global.process.version){var T=parseInt(process.version.split(".")[0].slice(1),10);W=T>=6?"utf-8":"binary"}else W="utf-8";Z.exports=W},357:Z=>{var W=Math.pow(2,30)-1;Z.exports=function(T,B){if(typeof T!="number")throw new TypeError("Iterations not a number");if(T<0)throw new TypeError("Bad iterations");if(typeof B!="number")throw new TypeError("Key length not a number");if(B<0||B>W||B!==B)throw new TypeError("Bad key length")}},493:(Z,W,T)=>{var B={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},F=T(555),A=T(509).Buffer,k=T(357),u=T(368),_=T(777);function H(M,w,l,f,x){k(l,f),M=_(M,u,"Password"),w=_(w,u,"Salt"),x=x||"sha1";var E=A.allocUnsafe(f),P=A.allocUnsafe(w.length+4);w.copy(P,0,0,w.length);for(var I=0,R=B[x],K=Math.ceil(f/R),L=1;L<=K;L++){P.writeUInt32BE(L,w.length);for(var V=F(x,M).update(P).digest(),j=V,Y=1;Y<l;Y++){j=F(x,M).update(j).digest();for(var J=0;J<R;J++)V[J]^=j[J]}V.copy(E,I),I+=R}return E}o(H,"pbkdf2"),Z.exports=H},777:(Z,W,T)=>{var B=T(509).Buffer;Z.exports=function(F,A,k){if(B.isBuffer(F))return F;if(typeof F=="string")return B.from(F,A);if(ArrayBuffer.isView(F))return B.from(F.buffer);throw new TypeError(k+" must be a string, a Buffer, a typed array or a DataView")}},353:(Z,W,T)=>{Z.exports=T(113).randomBytes},509:(Z,W,T)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var B=T(300),F=B.Buffer;function A(u,_){for(var H in u)_[H]=u[H]}o(A,"copyProps"),F.from&&F.alloc&&F.allocUnsafe&&F.allocUnsafeSlow?Z.exports=B:(A(B,W),W.Buffer=k);function k(u,_,H){return F(u,_,H)}o(k,"SafeBuffer"),k.prototype=Object.create(F.prototype),A(F,k),k.from=function(u,_,H){if(typeof u=="number")throw new TypeError("Argument must not be a number");return F(u,_,H)},k.alloc=function(u,_,H){if(typeof u!="number")throw new TypeError("Argument must be a number");var M=F(u);return _!==void 0?typeof H=="string"?M.fill(_,H):M.fill(_):M.fill(0),M},k.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return F(u)},k.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return B.SlowBuffer(u)}},300:Z=>{"use strict";Z.exports=require("buffer")},113:Z=>{"use strict";Z.exports=require("crypto")},837:Z=>{"use strict";Z.exports=require("util")},726:Z=>{"use strict";Z.exports={i8:"7.0.1"}}},it={};function Me(Z){var W=it[Z];if(W!==void 0)return W.exports;var T=it[Z]={id:Z,loaded:!1,exports:{}};return nt[Z].call(T.exports,T,T.exports,Me),T.loaded=!0,T.exports}o(Me,"__webpack_require__"),Me.n=Z=>{var W=Z&&Z.__esModule?()=>Z.default:()=>Z;return Me.d(W,{a:W}),W},Me.d=(Z,W)=>{for(var T in W)Me.o(W,T)&&!Me.o(Z,T)&&Object.defineProperty(Z,T,{enumerable:!0,get:W[T]})},Me.o=(Z,W)=>Object.prototype.hasOwnProperty.call(Z,W),Me.r=Z=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Z,"__esModule",{value:!0})},Me.nmd=Z=>(Z.paths=[],Z.children||(Z.children=[]),Z);var ot={};(()=>{"use strict";Me.r(ot),Me.d(ot,{Ach:()=>Ne,Address:()=>ue,Aes:()=>Se,Aescbc:()=>ze,Base58:()=>V,Base58Check:()=>de,Bip32:()=>ye,Bip39:()=>Ve,Block:()=>Re,BlockHeader:()=>Ee,Bn:()=>f,Br:()=>P,Bsm:()=>Ke,Bw:()=>I,Cbc:()=>be,Constants:()=>C,Ecdsa:()=>ge,Ecies:()=>Be,Hash:()=>U,Interp:()=>G,KeyPair:()=>pe,OpCode:()=>s,Point:()=>S,PrivKey:()=>re,PubKey:()=>g,Random:()=>te,Script:()=>ee,Sig:()=>Q,SigOperations:()=>Ae,Struct:()=>L,Tx:()=>fe,TxBuilder:()=>He,TxIn:()=>he,TxOut:()=>De,TxOutMap:()=>et,TxVerifier:()=>$e,VarInt:()=>le,Workers:()=>z,WorkersResult:()=>Y,cmp:()=>j,deps:()=>st,en:()=>Ue,es:()=>Oe,getConstants:()=>b,jp:()=>we,version:()=>Le});var Z=Me(297),W=Me.n(Z),T=Me(550),B=Me.n(T),F=Me(191),A=Me.n(F),k=Me(666),u=Me.n(k),_=Me(715),H=Me.n(_),M=Me(601),w=Me(300);const l={i8:"2.0.24"};function f(d,e,...t){if(!(this instanceof f))return new f(d,e,...t);B().call(this,d,e,...t)}o(f,"Bn"),Object.keys(B()).forEach(function(d){f[d]=B()[d]}),f.prototype=Object.create(B().prototype),f.prototype.constructor=f;function x(d){const e=Buffer.alloc(d.length);for(let t=0;t<d.length;t++)e[t]=d[d.length-1-t];return e}o(x,"reverseBuf"),f.prototype.fromHex=function(d,e){return this.fromBuffer(Buffer.from(d,"hex"),e)},f.prototype.toHex=function(d){return this.toBuffer(d).toString("hex")},f.prototype.toJSON=function(){return this.toString()},f.prototype.fromJSON=function(d){return f(d).copy(this),this},f.prototype.fromNumber=function(d){return f(d).copy(this),this},f.prototype.toNumber=function(){return parseInt(this.toString(10),10)},f.prototype.fromString=function(d,e){return f(d,e).copy(this),this},f.fromBuffer=function(d,e={endian:"big"}){e.endian==="little"&&(d=x(d));const t=d.toString("hex");return new f(t,16)},f.prototype.fromBuffer=function(d,e){return f.fromBuffer(d,e).copy(this),this},f.prototype.toBuffer=function(d={size:void 0,endian:"big"}){let e;if(d.size){const i=this.toString(16,2),c=i.length/2;if(e=Buffer.from(i,"hex"),c!==d.size){if(c>d.size)e=e.slice(c-e.length,e.length);else if(c<d.size){const p=Buffer.alloc(d.size);for(let O=0;O<e.length;O++)p[p.length-1-O]=e[e.length-1-O];for(let O=0;O<d.size-c;O++)p[O]=0;e=p}}}else{const i=this.toString(16,2);e=Buffer.from(i,"hex")}d.endian==="little"&&(e=x(e));const t=Buffer.from([0]);return Buffer.compare(e,t)===0?Buffer.from([]):e},f.prototype.toFastBuffer=f.prototype.toBuffer,f.fromFastBuffer=f.fromBuffer,f.prototype.fromFastBuffer=f.prototype.fromBuffer,f.prototype.fromSm=function(d,e={endian:"big"}){return d.length===0&&this.fromBuffer(Buffer.from([0])),e.endian==="little"&&(d=x(d)),d[0]&128?(d[0]=d[0]&127,this.fromBuffer(d),this.neg().copy(this)):this.fromBuffer(d),this},f.prototype.toSm=function(d={endian:"big"}){const e=d.endian;let t;return this.cmp(0)===-1?(t=this.neg().toBuffer(),t[0]&128?t=Buffer.concat([Buffer.from([128]),t]):t[0]=t[0]|128):(t=this.toBuffer(),t[0]&128&&(t=Buffer.concat([Buffer.from([0]),t]))),t.length===1&t[0]===0&&(t=Buffer.from([])),e==="little"&&(t=x(t)),t},f.prototype.fromBits=function(d,e={strict:!1}){let t=Buffer.alloc(4);if(t.writeUInt32BE(d,0),d=t.readInt32BE(0),e.strict&&d&8388608)throw new Error("negative bit set");const i=d>>24,c=d&8388607;if(t=Buffer.alloc(4),t.writeInt32BE(c),i<=3)t=t.slice(1,i+1);else{const p=Buffer.alloc(i-3);p.fill(0),t=Buffer.concat([t,p])}return this.fromBuffer(t),d&8388608&&f(0).sub(this).copy(this),this},f.prototype.toBits=function(){let d;this.lt(0)?d=this.neg().toBuffer():d=this.toBuffer();let e=d.length,t;if(e>3)t=Buffer.concat([Buffer.from([0]),d.slice(0,3)]).readUInt32BE(0);else if(e<=3){const c=Buffer.alloc(3-e+1);c.fill(0),t=Buffer.concat([c,d.slice(0,e)]).readUInt32BE(0)}t&8388608&&(t>>=8,e++),this.lt(0)&&(t|=8388608);const i=e<<24|t;return d=Buffer.alloc(4),d.writeInt32BE(i,0),d.readUInt32BE(0)},f.prototype.fromScriptNumBuffer=function(d,e,t,i=!1){if(t===void 0&&(t=4),d.length>t)throw new Error(`script number overflow nMaxNumSize: ${t}`);if(e&&d.length>0&&!(d[d.length-1]&127)&&(d.length<=1||!(d[d.length-2]&128)))throw new Error("non-minimally encoded script number");return d.byteLength===0||d.byteLength<=t,this.fromSm(d,{endian:"little"})},f.prototype.toScriptNumBuffer=function(d){return this.toSm({endian:"little"})},f.prototype.neg=function(){const d=B().prototype.neg.call(this),e=Object.create(f.prototype);return d.copy(e),e},f.prototype.add=function(d){const e=B().prototype.add.call(this,d);return d=Object.create(f.prototype),e.copy(d),d},f.prototype.sub=function(d){const e=B().prototype.sub.call(this,d);return d=Object.create(f.prototype),e.copy(d),d},f.prototype.mul=function(d){const e=B().prototype.mul.call(this,d);return d=Object.create(f.prototype),e.copy(d),d},f.prototype.mod=function(d){const e=B().prototype.mod.call(this,d);return d=Object.create(f.prototype),e.copy(d),d},f.prototype.umod=function(d){const e=B().prototype.umod.call(this,d);return d=Object.create(f.prototype),e.copy(d),d},f.prototype.invm=function(d){const e=B().prototype.invm.call(this,d);return d=Object.create(f.prototype),e.copy(d),d},f.prototype.div=function(d){const e=B().prototype.div.call(this,d);return d=Object.create(f.prototype),e.copy(d),d},f.prototype.ushln=function(d){const e=B().prototype.ushln.call(this,d),t=Object.create(f.prototype);return e.copy(t),t},f.prototype.ushrn=function(d){const e=B().prototype.ushrn.call(this,d),t=Object.create(f.prototype);return e.copy(t),t},f.prototype.cmp=function(d){return B().prototype.cmp.call(this,d)};function E(d){f.prototype["_"+d]=f.prototype[d];const e=o(function(t){return typeof t=="string"?t=new f(t):typeof t=="number"&&(t=new f(t.toString())),this["_"+d](t)},"f");f.prototype[d]=e}o(E,"decorate"),f.prototype.eq=function(d){return this.cmp(d)===0},f.prototype.neq=function(d){return this.cmp(d)!==0},f.prototype.gt=function(d){return this.cmp(d)>0},f.prototype.geq=function(d){return this.cmp(d)>=0},f.prototype.lt=function(d){return this.cmp(d)<0},f.prototype.leq=function(d){return this.cmp(d)<=0},E("add"),E("sub"),E("mul"),E("mod"),E("invm"),E("div"),E("cmp"),E("gt"),E("geq"),E("lt"),E("leq");class P{static{o(this,"Br")}constructor(e){this.fromObject({buf:e})}fromObject(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this}eof(){return this.pos>=this.buf.length}read(e=this.buf.length){const t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t}readReverse(e=this.buf.length){const t=this.buf.slice(this.pos,this.pos+e);this.pos=this.pos+e;const i=Buffer.alloc(t.length);for(let c=0;c<i.length;c++)i[c]=t[t.length-1-c];return i}readUInt8(){const e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e}readInt8(){const e=this.buf.readInt8(this.pos);return this.pos=this.pos+1,e}readUInt16BE(){const e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e}readInt16BE(){const e=this.buf.readInt16BE(this.pos);return this.pos=this.pos+2,e}readUInt16LE(){const e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e}readInt16LE(){const e=this.buf.readInt16LE(this.pos);return this.pos=this.pos+2,e}readUInt32BE(){const e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e}readInt32BE(){const e=this.buf.readInt32BE(this.pos);return this.pos=this.pos+4,e}readUInt32LE(){const e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e}readInt32LE(){const e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e}readUInt64BEBn(){const e=this.buf.slice(this.pos,this.pos+8),t=new f().fromBuffer(e);return this.pos=this.pos+8,t}readUInt64LEBn(){const e=this.readReverse(8);return new f().fromBuffer(e)}readVarIntNum(){const e=this.readUInt8();let t,i;switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:if(t=this.readUInt64LEBn(),i=t.toNumber(),i<=Math.pow(2,53))return i;throw new Error("number too large to retain precision - use readVarIntBn");default:return e}}readVarIntBuf(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}}readVarIntBn(){const e=this.readUInt8();switch(e){case 253:return new f(this.readUInt16LE());case 254:return new f(this.readUInt32LE());case 255:return this.readUInt64LEBn();default:return new f(e)}}}class I{static{o(this,"Bw")}constructor(e){this.fromObject({bufs:e})}fromObject(e){return this.bufs=e.bufs||this.bufs||[],this}getLength(){let e=0;for(const t in this.bufs){const i=this.bufs[t];e=e+i.length}return e}toBuffer(){return Buffer.concat(this.bufs)}write(e){return this.bufs.push(e),this}writeReverse(e){const t=Buffer.alloc(e.length);for(let i=0;i<t.length;i++)t[i]=e[e.length-1-i];return this.bufs.push(t),this}writeUInt8(e){const t=Buffer.alloc(1);return t.writeUInt8(e,0),this.write(t),this}writeInt8(e){const t=Buffer.alloc(1);return t.writeInt8(e,0),this.write(t),this}writeUInt16BE(e){const t=Buffer.alloc(2);return t.writeUInt16BE(e,0),this.write(t),this}writeInt16BE(e){const t=Buffer.alloc(2);return t.writeInt16BE(e,0),this.write(t),this}writeUInt16LE(e){const t=Buffer.alloc(2);return t.writeUInt16LE(e,0),this.write(t),this}writeInt16LE(e){const t=Buffer.alloc(2);return t.writeInt16LE(e,0),this.write(t),this}writeUInt32BE(e){const t=Buffer.alloc(4);return t.writeUInt32BE(e,0),this.write(t),this}writeInt32BE(e){const t=Buffer.alloc(4);return t.writeInt32BE(e,0),this.write(t),this}writeUInt32LE(e){const t=Buffer.alloc(4);return t.writeUInt32LE(e,0),this.write(t),this}writeInt32LE(e){const t=Buffer.alloc(4);return t.writeInt32LE(e,0),this.write(t),this}writeUInt64BEBn(e){const t=e.toBuffer({size:8});return this.write(t),this}writeUInt64LEBn(e){const t=e.toBuffer({size:8});return this.writeReverse(t),this}writeVarIntNum(e){const t=I.varIntBufNum(e);return this.write(t),this}writeVarIntBn(e){const t=I.varIntBufBn(e);return this.write(t),this}static varIntBufNum(e){let t;return e<253?(t=Buffer.alloc(1),t.writeUInt8(e,0)):e<65536?(t=Buffer.alloc(3),t.writeUInt8(253,0),t.writeUInt16LE(e,1)):e<4294967296?(t=Buffer.alloc(5),t.writeUInt8(254,0),t.writeUInt32LE(e,1)):(t=Buffer.alloc(9),t.writeUInt8(255,0),t.writeInt32LE(e&-1,1),t.writeUInt32LE(Math.floor(e/4294967296),5)),t}static varIntBufBn(e){let t;const i=e.toNumber();if(i<253)t=Buffer.alloc(1),t.writeUInt8(i,0);else if(i<65536)t=Buffer.alloc(3),t.writeUInt8(253,0),t.writeUInt16LE(i,1);else if(i<4294967296)t=Buffer.alloc(5),t.writeUInt8(254,0),t.writeUInt32LE(i,1);else{const c=new I;c.writeUInt8(255),c.writeUInt64LEBn(e),t=c.toBuffer()}return t}}function R(d){const e=typeof d=="string"?d.charCodeAt(0):d;return e>=97&&e<=102||e>=65&&e<=70||e>=48&&e<=57}o(R,"isHexadecimal");const K=R;class L{static{o(this,"Struct")}constructor(e){this.fromObject(e)}fromObject(e){if(!e)return this;for(const t of Object.keys(e))e[t]!==void 0&&(this[t]=e[t]);return this}static fromObject(e){return new this().fromObject(e)}fromBr(e){throw e instanceof P?new Error("not implemented"):new Error("br must be a buffer reader")}static fromBr(e){return new this().fromBr(e)}asyncFromBr(e){throw e instanceof P?new Error("not implemented"):new Error("br must be a buffer reader")}static asyncFromBr(e){return new this().asyncFromBr(e)}toBw(e){throw new Error("not implemented")}asyncToBw(e){throw new Error("not implemented")}*genFromBuffers(){throw new Error("not implemented")}*expect(e,t){let i=t;const c=new I;let p=0;for(t&&(c.write(t),p+=t.length);p<e;)i=yield e-p,i&&(c.write(i),p+=i.length);i=c.toBuffer();const O=p-e,N=i.slice(i.length-O,i.length);return i=i.slice(0,i.length-O),{buf:i,remainderbuf:N}}fromBuffer(e,...t){if(!Buffer.isBuffer(e))throw new Error("buf must be a buffer");const i=new P(e);return this.fromBr(i,...t)}static fromBuffer(...e){return new this().fromBuffer(...e)}asyncFromBuffer(e,...t){if(!Buffer.isBuffer(e))throw new Error("buf must be a buffer");const i=new P(e);return this.asyncFromBr(i,...t)}static asyncFromBuffer(e,...t){return new this().asyncFromBuffer(e,...t)}fromFastBuffer(e,...t){return e.length===0?this:this.fromBuffer(e,...t)}static fromFastBuffer(...e){return new this().fromFastBuffer(...e)}toBuffer(...e){return this.toBw(...e).toBuffer()}asyncToBuffer(...e){return this.asyncToBw(...e).then(t=>t.toBuffer())}toFastBuffer(...e){return Object.keys(this).length===0?Buffer.alloc(0):this.toBuffer(...e)}fromHex(e,...t){if(!K(e))throw new Error("invalid hex string");const i=Buffer.from(e,"hex");return this.fromBuffer(i,...t)}static fromHex(e,...t){return new this().fromHex(e,...t)}asyncFromHex(e,...t){if(!K(e))throw new Error("invalid hex string");const i=Buffer.from(e,"hex");return this.asyncFromBuffer(i,...t)}static asyncFromHex(e,...t){return new this().asyncFromHex(e,...t)}fromFastHex(e,...t){if(!K(e))throw new Error("invalid hex string");const i=Buffer.from(e,"hex");return this.fromFastBuffer(i,...t)}static fromFastHex(e,...t){return new this().fromFastHex(e,...t)}toHex(...e){return this.toBuffer(...e).toString("hex")}asyncToHex(...e){return this.asyncToBuffer(...e).then(t=>t.toString("hex"))}toFastHex(...e){return this.toFastBuffer(...e).toString("hex")}fromString(e,...t){if(typeof e!="string")throw new Error("str must be a string");return this.fromHex(e,...t)}static fromString(e,...t){return new this().fromString(e,...t)}asyncFromString(e,...t){if(typeof e!="string")throw new Error("str must be a string");return this.asyncFromHex(e,...t)}static asyncFromString(e,...t){return new this().asyncFromString(e,...t)}toString(...e){return this.toHex(...e)}asyncToString(...e){return this.asyncToHex(...e)}fromJSON(e){throw new Error("not implemented")}static fromJSON(e,...t){return new this().fromJSON(e,...t)}asyncFromJSON(e,...t){throw new Error("not implemented")}static asyncFromJSON(e,...t){return new this().asyncFromJSON(e,...t)}toJSON(){var e={};for(var t in this)if(Array.isArray(this[t])){const c=[];for(var i in this[t])typeof this[t][i].toJSON=="function"?c.push(this[t][i].toJSON()):c.push(JSON.stringify(this[t][i]));e[t]=c}else if(this[t]===null)e[t]=this[t];else if(typeof this[t]=="object"&&typeof this[t].toJSON=="function")e[t]=this[t].toJSON();else if(typeof this[t]=="boolean"||typeof this[t]=="number"||typeof this[t]=="string")e[t]=this[t];else if(Buffer.isBuffer(this[t]))e[t]=this[t].toString("hex");else if(this[t]instanceof Map)e[t]=JSON.stringify(this[t]);else if(typeof this[t]=="object")throw new Error("not implemented");return e}asyncToJSON(){throw new Error("not implemented")}clone(){return this.cloneByJSON()}cloneByBuffer(){return new this.constructor().fromBuffer(this.toBuffer())}cloneByFastBuffer(){return new this.constructor().fromFastBuffer(this.toFastBuffer())}cloneByHex(){return new this.constructor().fromHex(this.toHex())}cloneByString(){return new this.constructor().fromString(this.toString())}cloneByJSON(){return new this.constructor().fromJSON(this.toJSON())}}class V extends L{static{o(this,"Base58")}constructor(e){super({buf:e})}fromHex(e){return this.fromBuffer(Buffer.from(e,"hex"))}toHex(){return this.toBuffer().toString("hex")}static encode(e){if(!Buffer.isBuffer(e))throw new Error("Input should be a buffer");return A().encode(e)}static decode(e){if(typeof e!="string")throw new Error("Input should be a string");return Buffer.from(A().decode(e))}fromBuffer(e){return this.buf=e,this}fromString(e){const t=V.decode(e);return this.buf=t,this}toBuffer(){return this.buf}toString(){return V.encode(this.buf)}}const j=o((d,e)=>{if(!Buffer.isBuffer(d)||!Buffer.isBuffer(e))throw new Error("buf1 and buf2 must be buffers");if(d.length!==e.length)return!1;let t=0;for(let i=0;i<d.length;i++){const c=d[i],p=e[i];t|=c^p}return t===0},"cmp");class Y extends L{static{o(this,"WorkersResult")}constructor(e,t,i){super({resbuf:e,isError:t,id:i})}fromResult(e,t){return e.toFastBuffer?this.resbuf=e.toFastBuffer():Buffer.isBuffer(e)?this.resbuf=e:this.resbuf=Buffer.from(JSON.stringify(e)),this.isError=!1,this.id=t,this}static fromResult(e,t){return new this().fromResult(e,t)}fromError(e,t){return this.resbuf=Buffer.from(JSON.stringify(e.message)),this.isError=!0,this.id=t,this}toBw(e){return e||(e=new I),e.writeVarIntNum(this.resbuf.length),e.write(this.resbuf),e.writeUInt8(Number(this.isError)),e.writeVarIntNum(this.id),e}fromBr(e){const t=e.readVarIntNum();return this.resbuf=e.read(t),this.isError=!!e.readUInt8(),this.id=e.readVarIntNum(),this}}let J;class z{static{o(this,"Workers")}constructor(e=[],t=0,i=[],c=new Map){this.nativeWorkers=e,this.lastid=t,this.incompconsteRes=i,this.promisemap=c}asyncObjectMethod(e,t,i,c=this.lastid+1){if(!i)throw new Error("must specify args");const p=e[t](...i);return new Y().fromResult(p,c)}static asyncObjectMethod(e,t,i,c){return J||(J=new z),J.asyncObjectMethod(e,t,i,c)}asyncClassMethod(e,t,i,c=this.lastid+1){if(!i)throw new Error("must specify args");const p=e[t](...i);return new Y().fromResult(p,c)}static asyncClassMethod(e,t,i,c){return J||(J=new z),J.asyncClassMethod(e,t,i,c)}static endGlobalWorkers(){J&&!process.browser&&(J=void 0)}}class U{static{o(this,"Hash")}}U.sha1=function(d){if(!Buffer.isBuffer(d))throw new Error("sha1 hash must be of a buffer");const e=H().sha1,t=new e().update(d).digest();return Buffer.from(t)},U.sha1.blockSize=512,U.asyncSha1=async function(d){const e=[d];return(await z.asyncClassMethod(U,"sha1",e)).resbuf},U.sha256=function(d){if(!Buffer.isBuffer(d))throw new Error("sha256 hash must be of a buffer");const e=H().sha256,t=new e().update(d).digest();return Buffer.from(t)},U.sha256.blockSize=512,U.asyncSha256=async function(d){const e=[d];return(await z.asyncClassMethod(U,"sha256",e)).resbuf},U.sha256Sha256=function(d){try{return U.sha256(U.sha256(d))}catch(e){throw new Error("sha256Sha256 hash must be of a buffer: "+e)}},U.asyncSha256Sha256=async function(d){const e=[d];return(await z.asyncClassMethod(U,"sha256Sha256",e)).resbuf},U.ripemd160=function(d){if(!Buffer.isBuffer(d))throw new Error("ripemd160 hash must be of a buffer");const e=H().ripemd160,t=new e().update(d).digest();return Buffer.from(t)},U.asyncRipemd160=async function(d){const e=[d];return(await z.asyncClassMethod(U,"ripemd160",e)).resbuf},U.sha256Ripemd160=function(d){try{return U.ripemd160(U.sha256(d))}catch(e){throw new Error("sha256Ripemd160 hash must be of a buffer: "+e)}},U.asyncSha256Ripemd160=async function(d){const e=[d];return(await z.asyncClassMethod(U,"sha256Ripemd160",e)).resbuf},U.sha512=function(d){if(!Buffer.isBuffer(d))throw new Error("sha512 hash must be of a buffer");const e=H().sha512,t=new e().update(d).digest();return Buffer.from(t)},U.asyncSha512=async function(d){const e=[d];return(await z.asyncClassMethod(U,"sha512",e)).resbuf},U.sha512.blockSize=1024,U.hmac=function(d,e,t){if(d!=="sha1"&&d!=="sha256"&&d!=="sha512")throw new Error("invalid choice of hash function");const i=U[d];if(!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw new Error("data and key must be buffers");const c=i.blockSize/8;if(t.length>c&&(t=i(t)),t.length<c){const N=Buffer.alloc(c);N.fill(0,t.length),t.copy(N),t=N}const p=Buffer.alloc(c),O=Buffer.alloc(c);for(let N=0;N<c;N++)p[N]=92^t[N],O[N]=54^t[N];return i(Buffer.concat([p,i(Buffer.concat([O,e]))]))},U.sha1Hmac=function(d,e){return U.hmac("sha1",d,e)},U.asyncSha1Hmac=async function(d,e){const t=[d,e];return(await z.asyncClassMethod(U,"sha1Hmac",t)).resbuf},U.sha1Hmac.bitsize=160,U.sha256Hmac=function(d,e){return U.hmac("sha256",d,e)},U.asyncSha256Hmac=async function(d,e){const t=[d,e];return(await z.asyncClassMethod(U,"sha256Hmac",t)).resbuf},U.sha256Hmac.bitsize=256,U.sha512Hmac=function(d,e){return U.hmac("sha512",d,e)},U.asyncSha512Hmac=async function(d,e){const t=[d,e];return(await z.asyncClassMethod(U,"sha512Hmac",t)).resbuf},U.sha512Hmac.bitsize=512;class de extends L{static{o(this,"Base58Check")}constructor(e){super({buf:e})}fromHex(e){return this.fromBuffer(Buffer.from(e,"hex"))}toHex(){return this.toBuffer().toString("hex")}static decode(e){if(typeof e!="string")throw new Error("Input must be a string");const t=V.decode(e);if(t.length<4)throw new Error("Input string too short");const i=t.slice(0,-4),c=t.slice(-4),O=U.sha256Sha256(i).slice(0,4);if(!j(c,O))throw new Error("Checksum mismatch");return i}static encode(e){if(!Buffer.isBuffer(e))throw new Error("Input must be a buffer");const t=Buffer.alloc(e.length+4),i=U.sha256Sha256(e);return e.copy(t),i.copy(t,e.length),V.encode(t)}fromBuffer(e){return this.buf=e,this}fromString(e){const t=de.decode(e);return this.buf=t,this}toBuffer(){return this.buf}toString(){return de.encode(this.buf)}}class ae{static{o(this,"Config")}constructor(e){this.keyDefined=t=>t in e,this.getValue=t=>e[t]}get(e){if(this.keyDefined(e))return this.getValue(e);throw new Error(`Unknown configuration: ${e}`)}}class Ie{static{o(this,"ConfigBuilder")}constructor(){this.variables={}}build(){return new ae(this.variables)}addValue(e,t){if(t===void 0)throw new Error(`Failed to add "${e}" property. The value cannot be undefined`);if(e in this.variables)throw new Error(`"${e}" already has a value defined.`);return this.variables[e]=t,this}addValueWithDefault(e,t,i){if(i===void 0)throw new Error(`Failed to add "${e}" property. Default value cannot be undefined`);return this.addValue(e,t===void 0?i:t)}}const ce=new Ie().addValue("NETWORK",process.env.NETWORK||"mainnet").build(),C={};if(C.Mainnet={MaxSize:33554432,Port:8333,Address:{pubKeyHash:0,payToScriptHash:5},Bip32:{pubKey:76067358,privKey:76066276},Block:{maxNBits:486604799,magicNum:3823236072},Msg:{magicNum:3823236072,versionBytesNum:70015},PrivKey:{versionByteNum:128},TxBuilder:{dust:0,feePerKbNum:50},Workers:{timeout:6e4}},C.Testnet=Object.assign({},C.Mainnet,{Port:18333,Address:{pubKeyHash:111,payToScriptHash:196},Bip32:{pubKey:70617039,privKey:70615956},Block:{maxNBits:486604799,magicNum:4108710900},Msg:{magicNum:4108710900,versionBytesNum:70015},PrivKey:{versionByteNum:239}}),C.Regtest=Object.assign({},C.Mainnet,{Port:18444,Address:{pubKeyHash:111,payToScriptHash:196},Bip32:{pubKey:70617039,privKey:70615956},Block:{maxNBits:545259519,magicNum:3669344250},Msg:{magicNum:3669344250,versionBytesNum:70015},PrivKey:{versionByteNum:239}}),C.STN=Object.assign({},C.Mainnet,{Port:9333,Address:{pubKeyHash:111,payToScriptHash:196},Bip32:{pubKey:70617039,privKey:70615956},Block:{maxNBits:486604799,magicNum:4224632057},Msg:{magicNum:4224632057,versionBytesNum:70015},PrivKey:{versionByteNum:239}}),ce.get("NETWORK")==="testnet")C.Default=Object.assign({},C.Testnet);else if(ce.get("NETWORK")==="mainnet")C.Default=Object.assign({},C.Mainnet);else if(ce.get("NETWORK")==="regtest")C.Default=Object.assign({},C.Regtest);else if(ce.get("NETWORK")==="stn")C.Default=Object.assign({},C.STN);else throw new Error(`must set network in environment variable - mainnet, testnet, regtest or stn?, received ${ce.get("NETWORK")}`);const b=o(d=>C.Mainnet.Msg.magicNum===d?C.Mainnet:C.Testnet.Msg.magicNum===d?C.Testnet:C.Regtest.Msg.magicNum===d?C.Regtest:C.STN.Msg.magicNum===d?C.STN:C.Default,"getConstants"),r={FALSE:0,0:0,PUSHDATA1:76,PUSHDATA2:77,PUSHDATA4:78,"1NEGATE":79,RESERVED:80,TRUE:81,1:81,2:82,3:83,4:84,5:85,6:86,7:87,8:88,9:89,10:90,11:91,12:92,13:93,14:94,15:95,16:96,NOP:97,VER:98,IF:99,NOTIF:100,VERIF:101,VERNOTIF:102,ELSE:103,ENDIF:104,VERIFY:105,RETURN:106,TOALTSTACK:107,FROMALTSTACK:108,"2DROP":109,"2DUP":110,"3DUP":111,"2OVER":112,"2ROT":113,"2SWAP":114,IFDUP:115,DEPTH:116,DROP:117,DUP:118,NIP:119,OVER:120,PICK:121,ROLL:122,ROT:123,SWAP:124,TUCK:125,CAT:126,SUBSTR:127,SPLIT:127,LEFT:128,NUM2BIN:128,RIGHT:129,BIN2NUM:129,SIZE:130,INVERT:131,AND:132,OR:133,XOR:134,EQUAL:135,EQUALVERIFY:136,RESERVED1:137,RESERVED2:138,"1ADD":139,"1SUB":140,"2MUL":141,"2DIV":142,NEGATE:143,ABS:144,NOT:145,"0NOTEQUAL":146,ADD:147,SUB:148,MUL:149,DIV:150,MOD:151,LSHIFT:152,RSHIFT:153,BOOLAND:154,BOOLOR:155,NUMEQUAL:156,NUMEQUALVERIFY:157,NUMNOTEQUAL:158,LESSTHAN:159,GREATERTHAN:160,LESSTHANOREQUAL:161,GREATERTHANOREQUAL:162,MIN:163,MAX:164,WITHIN:165,RIPEMD160:166,SHA1:167,SHA256:168,HASH160:169,HASH256:170,CODESEPARATOR:171,CHECKSIG:172,CHECKSIGVERIFY:173,CHECKMULTISIG:174,CHECKMULTISIGVERIFY:175,NOP1:176,NOP2:177,CHECKLOCKTIMEVERIFY:177,NOP3:178,CHECKSEQUENCEVERIFY:178,NOP4:179,NOP5:180,NOP6:181,NOP7:182,NOP8:183,NOP9:184,NOP10:185,SMALLDATA:249,SMALLINTEGER:250,PUBKEYS:251,PUBKEYHASH:253,PUBKEY:254,INVALIDOPCODE:255},a={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_SPLIT:127,OP_LEFT:128,OP_NUM2BIN:128,OP_RIGHT:129,OP_BIN2NUM:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_CHECKSEQUENCEVERIFY:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_SMALLDATA:249,OP_SMALLINTEGER:250,OP_PUBKEYS:251,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255};class s extends L{static{o(this,"OpCode")}constructor(e){super({num:e})}fromNumber(e){return this.num=e,this}static fromNumber(e){return new this().fromNumber(e)}toNumber(){return this.num}fromString(e){const t=a[e];if(t===void 0)throw new Error("Invalid opCodeStr");return this.num=t,this}fromNoOpString(e){const t=r[e];if(t===void 0)throw new Error("Invalid opCodeStr");return this.num=t,this}static fromString(e){return new this().fromString(e)}static fromNoOpString(e){return new this().fromNoOpString(e)}toString(){const e=s.str[this.num];return e===void 0?this.num>0&&this.num<s.OP_PUSHDATA1?this.num.toString():"OP_"+this.num.toNumber():e}toNoOpString(){const e=s.noopstr[this.num];return e===void 0?this.num>0&&this.num<s.OP_PUSHDATA1?this.num.toString():this.num.toNumber():e}}s.str={},s.noopstr={};for(const d in a)s[d]=a[d],Object.prototype.hasOwnProperty.call(a,d)&&(s.str[a[d]]=d);for(const d in r)s[d]=r[d],Object.prototype.hasOwnProperty.call(r,d)&&(s.noopstr[r[d]]=d);const h=u().curves.secp256k1,y=h.curve.point().constructor;class S extends y{static{o(this,"Point")}constructor(e,t,i){super(h.curve,e,t,i)}static fromX(e,t){const i=h.curve.pointFromX(t,e);return Object.create(S.prototype).copyFrom(i)}copyFrom(e){if(!(e instanceof y))throw new Error("point should be an external point");return Object.keys(e).forEach(function(t){this[t]=e[t]}.bind(this)),this}add(e){return e=y.prototype.add.call(this,e),Object.create(S.prototype).copyFrom(e)}mul(e){if(!e.lt(S.getN()))throw new Error("point mul out of range");const t=y.prototype.mul.call(this,e);return Object.create(S.prototype).copyFrom(t)}mulAdd(e,t,i){const c=y.prototype.mulAdd.call(this,e,t,i);return t=Object.create(S.prototype),t.copyFrom(c)}getX(){const e=y.prototype.getX.call(this),t=Object.create(f.prototype);return e.copy(t),t}getY(){const e=y.prototype.getY.call(this),t=Object.create(f.prototype);return e.copy(t),t}fromX(e,t){const i=S.fromX(e,t);return this.copyFrom(i)}toJSON(){return{x:this.getX().toString(),y:this.getY().toString()}}fromJSON(e){const t=new f().fromString(e.x),i=new f().fromString(e.y),c=new S(t,i);return this.copyFrom(c)}toString(){return JSON.stringify(this.toJSON())}fromString(e){const t=JSON.parse(e),i=new S().fromJSON(t);return this.copyFrom(i)}static getG(){const e=h.curve.g;return Object.create(S.prototype).copyFrom(e)}static getN(){return new f(h.curve.n.toArray())}validate(){if(S.fromX(this.getY().isOdd(),this.getX()).getY().cmp(this.getY())!==0)throw new Error("Invalid y value of public key");if(!(this.getX().gt(-1)&&this.getX().lt(S.getN()))||!(this.getY().gt(-1)&&this.getY().lt(S.getN())))throw new Error("Point does not lie on the curve");return this}}class g extends L{static{o(this,"PubKey")}constructor(e,t){super({point:e,compressed:t})}fromJSON(e){return this.fromFastHex(e),this}toJSON(){return this.toFastHex()}fromPrivKey(e){return this.fromObject({point:S.getG().mul(e.bn),compressed:e.compressed}),this}static fromPrivKey(e){return new this().fromPrivKey(e)}async asyncFromPrivKey(e){const t=await z.asyncObjectMethod(this,"fromPrivKey",[e]);return this.fromFastBuffer(t.resbuf)}static asyncFromPrivKey(e){return new this().asyncFromPrivKey(e)}fromBuffer(e,t){return this.fromDer(e,t)}async asyncFromBuffer(e,t){const i=[e,t],c=await z.asyncObjectMethod(this,"fromBuffer",i);return this.fromFastBuffer(c.resbuf)}fromFastBuffer(e){if(e.length===0)return this;const t=!!e[0];return e=e.slice(1),this.fromDer(e),this.compressed=t,this}fromDer(e,t){if(t===void 0?t=!0:t=!1,e[0]===4||!t&&(e[0]===6||e[0]===7)){const i=e.slice(1,33),c=e.slice(33,65);if(i.length!==32||c.length!==32||e.length!==65)throw new Error("LEngth of x and y must be 32 bytes");const p=new f(i),O=new f(c);this.point=new S(p,O),this.compressed=!1}else if(e[0]===3){const i=e.slice(1),c=new f(i);this.fromX(!0,c),this.compressed=!0}else if(e[0]===2){const i=e.slice(1),c=new f(i);this.fromX(!1,c),this.compressed=!0}else throw new Error("Invalid DER format pubKey");return this}static fromDer(e,t){return new this().fromDer(e,t)}fromString(e){return this.fromDer(Buffer.from(e,"hex")),this}fromX(e,t){if(typeof e!="boolean")throw new Error("Must specify whether y is odd or not (true or false)");return this.point=S.fromX(e,t),this}static fromX(e,t){return new this().fromX(e,t)}toBuffer(){const e=this.compressed===void 0?!0:this.compressed;return this.toDer(e)}toFastBuffer(){if(!this.point)return Buffer.alloc(0);const e=new I,t=this.compressed===void 0?!0:!!this.compressed;return e.writeUInt8(Number(t)),e.write(this.toDer(!1)),e.toBuffer()}toDer(e){if(e=e===void 0?this.compressed:e,typeof e!="boolean")throw new Error("Must specify whether the public key is compressed or not (true or false)");const t=this.point.getX(),i=this.point.getY(),c=t.toBuffer({size:32}),p=i.toBuffer({size:32});let O;return e?(p[p.length-1]%2?O=Buffer.from([3]):O=Buffer.from([2]),Buffer.concat([O,c])):(O=Buffer.from([4]),Buffer.concat([O,c,p]))}toString(){const e=this.compressed===void 0?!0:this.compressed;return this.toDer(e).toString("hex")}static isCompressedOrUncompressed(e){if(e.length<33)return!1;if(e[0]===4){if(e.length!==65)return!1}else if(e[0]===2||e[0]===3){if(e.length!==33)return!1}else return!1;return!0}validate(){if(this.point.isInfinity())throw new Error("point: Point cannot be equal to Infinity");if(this.point.eq(new S(new f(0),new f(0))))throw new Error("point: Point cannot be equal to 0, 0");return this.point.validate(),this}}var n=Me(353),v=Me.n(n);class te{static{o(this,"Random")}}te.getRandomBuffer=function(d){return v()(d)};class re extends L{static{o(this,"priv_key_PrivKey")}constructor(e,t,i=null){super({bn:e,compressed:t}),i=i||C.Default.PrivKey,this.Constants=i}fromJSON(e){return this.fromHex(e),this}toJSON(){return this.toHex()}fromRandom(){let e,t,i;do e=te.getRandomBuffer(32),t=new f().fromBuffer(e),i=t.lt(S.getN());while(!i);return this.fromObject({bn:t,compressed:!0}),this}static fromRandom(){return new this().fromRandom()}toBuffer(){let e=this.compressed;e===void 0&&(e=!0);const t=this.bn.toBuffer({size:32});let i;return e?i=Buffer.concat([Buffer.from([this.Constants.versionByteNum]),t,Buffer.from([1])]):i=Buffer.concat([Buffer.from([this.Constants.versionByteNum]),t]),i}fromBuffer(e){if(e.length===34&&e[33]===1)this.compressed=!0;else if(e.length===33)this.compressed=!1;else throw new Error("Length of privKey buffer must be 33 (uncompressed pubKey) or 34 (compressed pubKey)");if(e[0]!==this.Constants.versionByteNum)throw new Error("Invalid versionByteNum byte");return this.fromBn(new f().fromBuffer(e.slice(1,33)))}toBn(){return this.bn}fromBn(e){return this.bn=e,this}static fromBn(e){return new this().fromBn(e)}validate(){if(!this.bn.lt(S.getN()))throw new Error("Number must be less than N");if(typeof this.compressed!="boolean")throw new Error("Must specify whether the corresponding public key is compressed or not (true or false)");return this}toWif(){return de.encode(this.toBuffer())}fromWif(e){return this.fromBuffer(de.decode(e))}static fromWif(e){return new this().fromWif(e)}toString(){return this.toWif()}fromString(e){return this.fromWif(e)}}re.Mainnet=class extends re{constructor(d,e){super(d,e,C.Mainnet.PrivKey)}},re.Testnet=class extends re{constructor(d,e){super(d,e,C.Testnet.PrivKey)}};class Q extends L{static{o(this,"Sig")}constructor(e,t,i,c,p){super({r:e,s:t,nHashType:i,recovery:c,compressed:p})}fromBuffer(e){try{return this.fromDer(e,!0)}catch{}try{return this.fromCompact(e)}catch{}return this.fromTxFormat(e)}toBuffer(){return this.nHashType!==void 0?this.toTxFormat():this.recovery!==void 0?this.toCompact():this.toDer()}fromCompact(e){let t=!0,i=e.slice(0,1)[0]-27-4;if(i<0&&(t=!1,i=i+4),!(i===0||i===1||i===2||i===3))throw new Error("i must be 0, 1, 2, or 3");this.compressed=t,this.recovery=i;const c=e.slice(1);return this.fromRS(c),this}static fromCompact(e){return new this().fromCompact(e)}fromRS(e){const t=e.slice(0,32),i=e.slice(32,64);if(t.length!==32)throw new Error("r must be 32 bytes");if(i.length!==32||e.length>64)throw new Error("s must be 32 bytes");return this.r=new f().fromBuffer(t),this.s=new f().fromBuffer(i),this}static fromRS(e){return new this().fromRS(e)}fromDer(e,t){const i=Q.parseDer(e,t);return this.r=i.r,this.s=i.s,this}static fromDer(e,t){return new this().fromDer(e,t)}fromTxFormat(e){if(e.length===0)return this.r=new f(1),this.s=new f(1),this.nHashType=1,this;const t=e.readUInt8(e.length-1),i=e.slice(0,e.length-1);return this.fromDer(i,!1),this.nHashType=t,this}static fromTxFormat(e){return new this().fromTxFormat(e)}fromString(e){return this.fromHex(e)}static parseDer(e,t){if(t===void 0&&(t=!0),!Buffer.isBuffer(e))throw new Error("DER formatted signature should be a buffer");const i=e[0];if(i!==48)throw new Error("Header byte should be 0x30");let c=e[1];const p=e.slice(2).length;if(t&&c!==p)throw new Error("LEngth byte should length of what follows");c=c<p?c:p;const O=e[2];if(O!==2)throw new Error("Integer byte for r should be 0x02");const N=e[3],q=e.slice(4,4+N),X=new f().fromBuffer(q),oe=e[4]===0;if(N!==q.length)throw new Error("LEngth of r incorrect");const ie=e[4+N+0];if(ie!==2)throw new Error("Integer byte for s should be 0x02");const ne=e[4+N+1],Ce=e.slice(4+N+2,4+N+2+ne),ve=new f().fromBuffer(Ce),me=e[4+N+2+2]===0;if(ne!==Ce.length)throw new Error("LEngth of s incorrect");const Xe=4+N+2+ne;if(c!==Xe-2)throw new Error("LEngth of signature incorrect");return{header:i,length:c,rheader:O,rlength:N,rneg:oe,rbuf:q,r:X,sheader:ie,slength:ne,sneg:me,sbuf:Ce,s:ve}}static IsTxDer(e){if(e.length<9||e.length>73||e[0]!==48||e[1]!==e.length-3)return!1;const t=e[3];if(5+t>=e.length)return!1;const i=e[5+t];if(t+i+7!==e.length)return!1;const c=e.slice(4);if(e[2]!==2||t===0||c[0]&128||t>1&&c[0]===0&&!(c[1]&128))return!1;const p=e.slice(6+t);return!(e[6+t-2]!==2||i===0||p[0]&128||i>1&&p[0]===0&&!(p[1]&128))}hasLowS(){return!(this.s.lt(1)||this.s.gt(f.fromBuffer(Buffer.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))))}hasDefinedHashType(){return!(this.nHashType<Q.SIGHASH_ALL||this.nHashType>Q.SIGHASH_SINGLE)}toCompact(e,t){if(e=typeof e=="number"?e:this.recovery,t=typeof t=="boolean"?t:this.compressed,!(e===0||e===1||e===2||e===3))throw new Error("recovery must be equal to 0, 1, 2, or 3");let i=e+27+4;t===!1&&(i=i-4);const c=Buffer.from([i]),p=this.r.toBuffer({size:32}),O=this.s.toBuffer({size:32});return Buffer.concat([c,p,O])}toRS(){return Buffer.concat([this.r.toBuffer({size:32}),this.s.toBuffer({size:32})])}toDer(){const e=this.r.toBuffer(),t=this.s.toBuffer(),i=e[0]&128,c=t[0]&128,p=i?Buffer.concat([Buffer.from([0]),e]):e,O=c?Buffer.concat([Buffer.from([0]),t]):t,N=2+p.length+2+O.length,q=p.length,X=O.length;return Buffer.concat([Buffer.from([48,N,2,q]),p,Buffer.from([2,X]),O])}toTxFormat(){const e=this.toDer(),t=Buffer.alloc(1);return t.writeUInt8(this.nHashType,0),Buffer.concat([e,t])}toString(){return this.toHex()}}Q.SIGHASH_ALL=1,Q.SIGHASH_NONE=2,Q.SIGHASH_SINGLE=3,Q.SIGHASH_FORKID=64,Q.SIGHASH_ANYONECANPAY=128;class ee extends L{static{o(this,"Script")}constructor(e=[]){super({chunks:e})}fromJSON(e){return this.fromString(e)}toJSON(){return this.toString()}fromBuffer(e){this.chunks=[];const t=new P(e);for(;!t.eof();){const i=t.readUInt8();let c=0,p=Buffer.from([]);if(i>0&&i<s.OP_PUSHDATA1)c=i,this.chunks.push({buf:t.read(c),len:c,opCodeNum:i});else if(i===s.OP_PUSHDATA1){try{c=t.readUInt8(),p=t.read(c)}catch{t.read()}this.chunks.push({buf:p,len:c,opCodeNum:i})}else if(i===s.OP_PUSHDATA2){try{c=t.readUInt16LE(),p=t.read(c)}catch{t.read()}this.chunks.push({buf:p,len:c,opCodeNum:i})}else if(i===s.OP_PUSHDATA4){try{c=t.readUInt32LE(),p=t.read(c)}catch{t.read()}this.chunks.push({buf:p,len:c,opCodeNum:i})}else this.chunks.push({opCodeNum:i})}return this}toBuffer(){const e=new I;for(let t=0;t<this.chunks.length;t++){const i=this.chunks[t],c=i.opCodeNum;e.writeUInt8(c),i.buf&&(c<s.OP_PUSHDATA1?e.write(i.buf):c===s.OP_PUSHDATA1?(e.writeUInt8(i.len),e.write(i.buf)):c===s.OP_PUSHDATA2?(e.writeUInt16LE(i.len),e.write(i.buf)):c===s.OP_PUSHDATA4&&(e.writeUInt32LE(i.len),e.write(i.buf)))}return e.toBuffer()}fromString(e){if(this.chunks=[],e===""||e===void 0)return this;const t=e.split(" ");let i=0;for(;i<t.length;){const c=t[i];let p;try{p=new s().fromString(c).toNumber()}catch{}if(p===void 0)if(p=parseInt(c,10),p>0&&p<s.OP_PUSHDATA1)this.chunks.push({buf:Buffer.from(t[i+1].slice(2),"hex"),len:p,opCodeNum:p}),i=i+2;else if(p===0)this.chunks.push({opCodeNum:0}),i=i+1;else throw new Error("Invalid script");else if(p===s.OP_PUSHDATA1||p===s.OP_PUSHDATA2||p===s.OP_PUSHDATA4){if(t[i+2].slice(0,2)!=="0x")throw new Error("Pushdata data must start with 0x");this.chunks.push({buf:Buffer.from(t[i+2].slice(2),"hex"),len:parseInt(t[i+1],10),opCodeNum:p}),i=i+3}else this.chunks.push({opCodeNum:p}),i=i+1}return this}toString(e={noOp:!1}){let t="";for(let i=0;i<this.chunks.length;i++){const c=this.chunks[i],p=c.opCodeNum.hasOwnProperty("num")?c.opCodeNum.num:c.opCodeNum;c.buf?((p===s.OP_PUSHDATA1||p===s.OP_PUSHDATA2||p===s.OP_PUSHDATA4)&&(t=e.noOp?t+" "+new s(p).toNoOpString():t+" "+new s(p).toString()),t=t+" "+c.len,t=t+" 0x"+c.buf.toString("hex")):s.str[p]!==void 0||s.noopstr[p]!==void 0?t=e.noOp?t+" "+new s(p).toNoOpString():t+" "+new s(p).toString():t=t+" 0x"+p.toString(16)}return t.substr(1)}fromBitcoindString(e){const t=new I,i=e.split(" ");let c;for(c=0;c<i.length;c++){const O=i[c];if(O!=="")if(O[0]==="0"&&O[1]==="x"){const N=O.slice(2);t.write(Buffer.from(N,"hex"))}else if(O[0]==="'"){const N=O.slice(1,O.length-1),q=Buffer.from(N),X=new ee().writeBuffer(q).toBuffer();t.write(X)}else if(s["OP_"+O]!==void 0){const N="OP_"+O,q=s[N];t.writeUInt8(q)}else if(typeof s[O]=="number"){const q=s[O];t.writeUInt8(q)}else{if(isNaN(parseInt(O,10)))throw new Error("Could not determine type of script value");{const N=new f(O),X=new ee().writeBn(N).toBuffer();t.write(X)}}}const p=t.toBuffer();return this.fromBuffer(p)}static fromBitcoindString(e){return new this().fromBitcoindString(e)}toBitcoindString(){let e="";for(let t=0;t<this.chunks.length;t++){const i=this.chunks[t];if(i.buf){const p=new ee([i]).toBuffer().toString("hex");e=e+" 0x"+p}else if(s.str[i.opCodeNum]!==void 0){const c=new s(i.opCodeNum).toString();e=e+" "+c.slice(3)}else e=e+" 0x"+i.opCodeNum.toString(16)}return e.substr(1)}fromAsmString(e){this.chunks=[];const t=e.split(" ");let i=0;for(;i<t.length;){const c=t[i];let p,O;try{p=s.fromString(c),O=p.toNumber()}catch{p=void 0,O=void 0}if(c==="0")O=0,this.chunks.push({opCodeNum:O}),i=i+1;else if(c==="-1")O=s.OP_1NEGATE,this.chunks.push({opCodeNum:O}),i=i+1;else if(p===void 0){const N=t[i],q=Buffer.from(N,"hex");if(q.toString("hex")!==N)throw new Error("invalid hex string in script");const X=q.length;X>=0&&X<s.OP_PUSHDATA1?O=X:X<Math.pow(2,8)?O=s.OP_PUSHDATA1:X<Math.pow(2,16)?O=s.OP_PUSHDATA2:X<Math.pow(2,32)&&(O=s.OP_PUSHDATA4),this.chunks.push({buf:q,len:q.length,opCodeNum:O}),i=i+1}else this.chunks.push({opCodeNum:O}),i=i+1}return this}static fromAsmString(e){return new this().fromAsmString(e)}toAsmString(e={noOp:!1}){for(var t="",i=0;i<this.chunks.length;i++){var c=this.chunks[i];t+=this._chunkToString(c,e)}return t.substr(1)}_chunkToString(e,t={noOp:!1}){var i=e.opCodeNum,c="";if(e.buf)e.len>0&&(c=c+" "+e.buf.toString("hex"));else if(typeof s.str[i]<"u")i===0?c=c+" 0":i===79?c=c+" -1":c=t.noOp?c+" "+new s(i).toNoOpString():c+" "+new s(i).toString();else{var p=i.toString(16);p.length%2!==0&&(p="0"+p),c=c+" "+p}return c}fromOpReturnData(e){return this.writeOpCode(s.OP_RETURN),this.writeBuffer(e),this}static fromOpReturnData(e){return new this().fromOpReturnData(e)}fromSafeData(e){return this.writeOpCode(s.OP_FALSE),this.writeOpCode(s.OP_RETURN),this.writeBuffer(e),this}static fromSafeData(e){return new this().fromSafeData(e)}fromSafeDataArray(e){this.writeOpCode(s.OP_FALSE),this.writeOpCode(s.OP_RETURN);for(const t in e){const i=e[t];this.writeBuffer(i)}return this}static fromSafeDataArray(e){return new this().fromSafeDataArray(e)}getData(){if(this.isSafeDataOut())return this.chunks.slice(2).map(i=>i.buf);if(this.isOpReturn())return this.chunks.slice(1).map(i=>i.buf);throw new Error("Unrecognized script type to get data from")}fromPubKeyHash(e){if(e.length!==20)throw new Error("hashBuf must be a 20 byte buffer");return this.writeOpCode(s.OP_DUP),this.writeOpCode(s.OP_HASH160),this.writeBuffer(e),this.writeOpCode(s.OP_EQUALVERIFY),this.writeOpCode(s.OP_CHECKSIG),this}static fromPubKeyHash(e){return new this().fromPubKeyHash(e)}static sortPubKeys(e){return e.slice().sort((t,i)=>{const c=t.toBuffer(),p=i.toBuffer(),O=Math.max(c.length,p.length);for(let N=0;N<=O;N++){if(c[N]===void 0)return-1;if(p[N]===void 0)return 1;if(c[N]<p[N])return-1;if(c[N]>p[N])return 1}})}fromPubKeys(e,t,i=!0){if(typeof e!="number")throw new Error("m must be a number");i===!0&&(t=ee.sortPubKeys(t)),this.writeOpCode(e+s.OP_1-1);for(const c in t)this.writeBuffer(t[c].toBuffer());return this.writeOpCode(t.length+s.OP_1-1),this.writeOpCode(s.OP_CHECKMULTISIG),this}static fromPubKeys(e,t,i){return new this().fromPubKeys(e,t,i)}removeCodeseparators(){const e=[];for(let t=0;t<this.chunks.length;t++)this.chunks[t].opCodeNum!==s.OP_CODESEPARATOR&&e.push(this.chunks[t]);return this.chunks=e,this}isPushOnly(){for(let e=0;e<this.chunks.length;e++)if(this.chunks[e].opCodeNum>s.OP_16)return!1;return!0}isNonSpendable(){const e=this.chunks[0].opCodeNum===s.OP_FALSE,t=this.chunks[1]&&this.chunks[1].opCodeNum===s.OP_RETURN;return!!e&&!!t}isOpReturn(){return this.chunks[0].opCodeNum===s.OP_RETURN&&this.chunks.filter(e=>Buffer.isBuffer(e.buf)).length===this.chunks.slice(1).length}isSafeDataOut(){if(this.chunks.length<2||this.chunks[0].opCodeNum!==s.OP_FALSE)return!1;var e=this.chunks.slice(1),t=new ee(e);return t.isOpReturn()}isPubKeyHashOut(){return!!(this.chunks[0]&&this.chunks[0].opCodeNum===s.OP_DUP&&this.chunks[1]&&this.chunks[1].opCodeNum===s.OP_HASH160&&this.chunks[2].buf&&this.chunks[3]&&this.chunks[3].opCodeNum===s.OP_EQUALVERIFY&&this.chunks[4]&&this.chunks[4].opCodeNum===s.OP_CHECKSIG)}isPubKeyHashIn(){return!!(this.chunks.length===2&&(this.chunks[0].buf||this.chunks[0].opCodeNum===s.OP_0)&&(this.chunks[1].buf||this.chunks[0].opCodeNum===s.OP_0))}isScriptHashOut(){const e=this.toBuffer();return e.length===23&&e[0]===s.OP_HASH160&&e[1]===20&&e[22]===s.OP_EQUAL}isScriptHashIn(){if(!this.isPushOnly())return!1;try{new ee().fromBuffer(this.chunks[this.chunks.length-1].buf)}catch{return!1}return!0}isMultiSigOut(){const e=this.chunks[0].opCodeNum-s.OP_1+1;if(!(e>=1&&e<=16)||!this.chunks.slice(1,this.chunks.length-2).every(c=>{try{const p=c.buf;return new g().fromDer(p).validate(),!0}catch{return!1}}))return!1;const i=this.chunks[this.chunks.length-2].opCodeNum-s.OP_1+1;return!(!(i>=e&&i<=16)||this.chunks[1+i+1].opCodeNum!==s.OP_CHECKMULTISIG)}isMultiSigIn(){if(this.chunks[0].opCodeNum!==s.OP_0)return!1;const e=this.chunks.slice(1);return e.length<1?!1:e.every(t=>Buffer.isBuffer(t.buf)&&Q.IsTxDer(t.buf))}findAndDelete(e){const t=e.toBuffer();for(let i=0;i<this.chunks.length;i++){const p=new ee([this.chunks[i]]).toBuffer();j(t,p)&&this.chunks.splice(i,1)}return this}writeScript(e){return this.chunks=this.chunks.concat(e.chunks),this}static writeScript(e){return new this().writeScript(e)}writeString(e){const t=new ee().fromString(e);return this.chunks=this.chunks.concat(t.chunks),this}static writeString(e){return new this().writeString(e)}writeOpCode(e){return this.chunks.push({opCodeNum:e}),this}static writeOpCode(e){return new this().writeOpCode(e)}setChunkOpCode(e,t){return this.chunks[e]={opCodeNum:t},this}writeBn(e){if(e.cmp(0)===s.OP_0)this.chunks.push({opCodeNum:s.OP_0});else if(e.cmp(-1)===0)this.chunks.push({opCodeNum:s.OP_1NEGATE});else if(e.cmp(1)>=0&&e.cmp(16)<=0)this.chunks.push({opCodeNum:e.toNumber()+s.OP_1-1});else{const t=e.toSm({endian:"little"});this.writeBuffer(t)}return this}static writeBn(e){return new this().writeBn(e)}writeNumber(e){return this.writeBn(new f().fromNumber(e)),this}static writeNumber(e){return new this().writeNumber(e)}setChunkBn(e,t){return this.chunks[e]=new ee().writeBn(t).chunks[0],this}writeBuffer(e){let t;const i=e.length;if(e.length>0&&e.length<s.OP_PUSHDATA1)t=e.length;else if(e.length===0)t=s.OP_0;else if(e.length<Math.pow(2,8))t=s.OP_PUSHDATA1;else if(e.length<Math.pow(2,16))t=s.OP_PUSHDATA2;else if(e.length<Math.pow(2,32))t=s.OP_PUSHDATA4;else throw new Error("You can't push that much data");return this.chunks.push({buf:e,len:i,opCodeNum:t}),this}static writeBuffer(e){return new this().writeBuffer(e)}setChunkBuffer(e,t){return this.chunks[e]=new ee().writeBuffer(t).chunks[0],this}checkMinimalPush(e){const t=this.chunks[e],i=t.buf,c=t.opCodeNum;return i?i.length===0?c===s.OP_0:i.length===1&&i[0]>=1&&i[0]<=16?c===s.OP_1+(i[0]-1):i.length===1&&i[0]===129?c===s.OP_1NEGATE:i.length<=75?c===i.length:i.length<=255?c===s.OP_PUSHDATA1:i.length<=65535?c===s.OP_PUSHDATA2:!0:!0}}class ue extends L{static{o(this,"Address")}constructor(e,t,i=null){super({versionByteNum:e,hashBuf:t}),i=i||C.Default.Address,this.Constants=i}fromBuffer(e){if(e.length!==21)throw new Error("address buffers must be exactly 21 bytes");if(e[0]!==this.Constants.pubKeyHash)throw new Error("address: invalid versionByteNum byte");return this.versionByteNum=e[0],this.hashBuf=e.slice(1),this}fromPubKeyHashBuf(e){return this.hashBuf=e,this.versionByteNum=this.Constants.pubKeyHash,this}static fromPubKeyHashBuf(e){return new this().fromPubKeyHashBuf(e)}fromPubKey(e){const t=U.sha256Ripemd160(e.toBuffer());return this.fromPubKeyHashBuf(t)}static fromPubKey(e){return new this().fromPubKey(e)}async asyncFromPubKey(e){const t=[e],i=await z.asyncObjectMethod(this,"fromPubKey",t);return this.fromFastBuffer(i.resbuf)}static asyncFromPubKey(e){return new this().asyncFromPubKey(e)}fromPrivKey(e){const t=new g().fromPrivKey(e),i=U.sha256Ripemd160(t.toBuffer());return this.fromPubKeyHashBuf(i)}static fromPrivKey(e){return new this().fromPrivKey(e)}async asyncFromPrivKey(e){const t=[e],i=await z.asyncObjectMethod(this,"fromPrivKey",t);return this.fromFastBuffer(i.resbuf)}static asyncFromPrivKey(e){return new this().fromPrivKey(e)}fromRandom(){const e=new re().fromRandom();return this.fromPrivKey(e)}static fromRandom(){return new this().fromRandom()}async asyncFromRandom(){const e=[],t=await z.asyncObjectMethod(this,"fromRandom",e);return this.fromFastBuffer(t.resbuf)}static asyncFromRandom(){return new this().fromRandom()}fromString(e){const t=de.decode(e);return this.fromBuffer(t)}async asyncFromString(e){const t=[e],i=await z.asyncObjectMethod(this,"fromString",t);return this.fromFastBuffer(i.resbuf)}static asyncFromString(e){return new this().asyncFromString(e)}static isValid(e){let t;try{t=new ue().fromString(e)}catch{return!1}return t.isValid()}isValid(){try{return this.validate(),!0}catch{return!1}}toTxOutScript(){const e=new ee;return e.writeOpCode(s.OP_DUP),e.writeOpCode(s.OP_HASH160),e.writeBuffer(this.hashBuf),e.writeOpCode(s.OP_EQUALVERIFY),e.writeOpCode(s.OP_CHECKSIG),e}fromTxInScript(e){const t=U.sha256Ripemd160(e.chunks[1].buf||Buffer.from("00".repeat(32),"hex"));return this.fromPubKeyHashBuf(t)}static fromTxInScript(e){return new this().fromTxInScript(e)}fromTxOutScript(e){return this.fromPubKeyHashBuf(e.chunks[2].buf)}static fromTxOutScript(e){return new this().fromTxOutScript(e)}toBuffer(){const e=Buffer.from([this.versionByteNum]);return Buffer.concat([e,this.hashBuf])}toJSON(){const e={};return this.hashBuf&&(e.hashBuf=this.hashBuf.toString("hex")),typeof this.versionByteNum<"u"&&(e.versionByteNum=this.versionByteNum),e}fromJSON(e){return e.hashBuf&&(this.hashBuf=Buffer.from(e.hashBuf,"hex")),typeof e.versionByteNum<"u"&&(this.versionByteNum=e.versionByteNum),this}toString(){return de.encode(this.toBuffer())}async asyncToString(){const e=[],t=await z.asyncObjectMethod(this,"toString",e);return JSON.parse(t.resbuf.toString())}validate(){if(!Buffer.isBuffer(this.hashBuf)||this.hashBuf.length!==20)throw new Error("hashBuf must be a buffer of 20 bytes");if(this.versionByteNum!==this.Constants.pubKeyHash)throw new Error("invalid versionByteNum");return this}}ue.Mainnet=class extends ue{constructor(d,e){super(d,e,C.Mainnet.Address)}},ue.Testnet=class extends ue{constructor(d,e){super(d,e,C.Testnet.Address)}};class ye extends L{static{o(this,"Bip32")}constructor(e,t,i,c,p,O,N,q=null,X=re){super({versionBytesNum:e,depth:t,parentFingerPrint:i,childIndex:c,chainCode:p,privKey:O,pubKey:N}),q=q||C.Default.Bip32,this.Constants=q,this.PrivKey=X}fromRandom(){return this.versionBytesNum=this.Constants.privKey,this.depth=0,this.parentFingerPrint=Buffer.from([0,0,0,0]),this.childIndex=0,this.chainCode=te.getRandomBuffer(32),this.privKey=new this.PrivKey().fromRandom(),this.pubKey=new g().fromPrivKey(this.privKey),this}static fromRandom(){return new this().fromRandom()}fromString(e){return this.fromBuffer(de.decode(e))}async asyncFromString(e){const t=[e],i=await z.asyncObjectMethod(this,"fromString",t);return this.fromFastBuffer(i.resbuf)}fromSeed(e){if(!Buffer.isBuffer(e))throw new Error("bytes must be a buffer");if(e.length<128/8)throw new Error("Need more than 128 bits of entropy");if(e.length>512/8)throw new Error("More than 512 bits of entropy is nonstandard");const t=U.sha512Hmac(e,Buffer.from("Bitcoin seed"));return this.depth=0,this.parentFingerPrint=Buffer.from([0,0,0,0]),this.childIndex=0,this.chainCode=t.slice(32,64),this.versionBytesNum=this.Constants.privKey,this.privKey=new this.PrivKey().fromBn(f().fromBuffer(t.slice(0,32))),this.pubKey=new g().fromPrivKey(this.privKey),this}static fromSeed(e){return new this().fromSeed(e)}async asyncFromSeed(e){const t=await z.asyncObjectMethod(this,"fromSeed",[e]);return this.fromFastBuffer(t.resbuf)}static asyncFromSeed(e){return new this().asyncFromSeed(e)}fromBuffer(e){if(e.length!==78)throw new Error("incorrect bip32 data length");this.versionBytesNum=e.slice(0,4).readUInt32BE(0),this.depth=e.slice(4,5).readUInt8(0),this.parentFingerPrint=e.slice(5,9),this.childIndex=e.slice(9,13).readUInt32BE(0),this.chainCode=e.slice(13,45);const t=e.slice(45,78),i=this.versionBytesNum===this.Constants.privKey,c=this.versionBytesNum===this.Constants.pubKey;if(i&&t[0]===0)this.privKey=new this.PrivKey().fromBn(f().fromBuffer(t.slice(1,33))),this.pubKey=new g().fromPrivKey(this.privKey);else if(c&&(t[0]===2||t[0]===3))this.pubKey=new g().fromDer(t);else throw new Error("Invalid key");return this}fromFastBuffer(e){if(e.length===0)return this;if(e.length!==78&&e.length!==111)throw new Error("incorrect bip32 fastBuffer data length: "+e.length);this.versionBytesNum=e.slice(0,4).readUInt32BE(0),this.depth=e.slice(4,5).readUInt8(0),this.parentFingerPrint=e.slice(5,9),this.childIndex=e.slice(9,13).readUInt32BE(0),this.chainCode=e.slice(13,45);const t=e.slice(45,e.length),i=this.versionBytesNum===this.Constants.privKey,c=this.versionBytesNum===this.Constants.pubKey;if(i&&t[0]===0&&e.length===78)this.privKey=new this.PrivKey().fromBn(f().fromBuffer(t.slice(1,33))),this.pubKey=new g().fromPrivKey(this.privKey);else if(c&&e.length===111)this.pubKey=new g().fromFastBuffer(t),this.pubKey.compressed=!0;else throw new Error("Invalid key");return this}derive(e){const t=e.split("/");if(e==="m")return this;let i=this;for(const c in t){const p=t[c];if(c==="0"){if(p!=="m")throw new Error("invalid path");continue}if(parseInt(p.replace("'",""),10).toString()!==p.replace("'",""))throw new Error("invalid path");const O=p.length>1&&p[p.length-1]==="'";let N=parseInt(O?p.slice(0,p.length-1):p,10)&2147483647;O&&(N+=2147483648),i=i.deriveChild(N)}return i}async asyncDerive(e){const t=await z.asyncObjectMethod(this,"derive",[e]);return new this.constructor().fromFastBuffer(t.resbuf)}deriveChild(e){if(typeof e!="number")throw new Error("i must be a number");let t=[];t.push(e>>24&255),t.push(e>>16&255),t.push(e>>8&255),t.push(e&255),t=Buffer.from(t);const i=(e&2147483648)!==0,c=this.versionBytesNum===this.Constants.privKey;if(i&&(!this.privKey||!c))throw new Error("Cannot do private key derivation without private key");let p=null;if(this.privKey){let N=null;i?N=Buffer.concat([Buffer.from([0]),this.privKey.bn.toBuffer({size:32}),t]):N=Buffer.concat([this.pubKey.toBuffer({size:32}),t]);const q=U.sha512Hmac(N,this.chainCode),X=f().fromBuffer(q.slice(0,32),{size:32}),oe=q.slice(32,64),ie=X.add(this.privKey.bn).mod(S.getN());p=new this.constructor,p.chainCode=oe,p.privKey=new this.PrivKey().fromBn(ie),p.pubKey=new g().fromPrivKey(p.privKey)}else{const N=Buffer.concat([this.pubKey.toBuffer(),t]),q=U.sha512Hmac(N,this.chainCode),X=f().fromBuffer(q.slice(0,32)),oe=q.slice(32,64),ie=S.getG().mul(X),ne=this.pubKey.point,Ce=ie.add(ne),ve=new g;ve.point=Ce,p=new this.constructor,p.chainCode=oe,p.pubKey=ve}p.childIndex=e;const O=U.sha256Ripemd160(this.pubKey.toBuffer());return p.parentFingerPrint=O.slice(0,4),p.versionBytesNum=this.versionBytesNum,p.depth=this.depth+1,p}toPublic(){const e=new this.constructor().fromObject(this);return e.versionBytesNum=this.Constants.pubKey,e.privKey=void 0,e}toBuffer(){const e=this.versionBytesNum===this.Constants.privKey,t=this.versionBytesNum===this.Constants.pubKey;if(e)return new I().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).writeUInt8(0).write(this.privKey.bn.toBuffer({size:32})).toBuffer();if(t){if(this.pubKey.compressed===!1)throw new Error("cannot convert bip32 to buffer if pubKey is not compressed");return new I().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).write(this.pubKey.toBuffer()).toBuffer()}else throw new Error("bip32: invalid versionBytesNum byte")}toFastBuffer(){if(!this.versionBytesNum)return Buffer.alloc(0);const e=this.versionBytesNum===this.Constants.privKey,t=this.versionBytesNum===this.Constants.pubKey;if(e)return new I().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).writeUInt8(0).write(this.privKey.bn.toBuffer({size:32})).toBuffer();if(t)return new I().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).write(this.pubKey.toFastBuffer()).toBuffer();throw new Error("bip32: invalid versionBytesNum byte")}toString(){return de.encode(this.toBuffer())}async asyncToString(){const e=await z.asyncObjectMethod(this,"toString",[]);return JSON.parse(e.resbuf.toString())}toJSON(){return this.toFastHex()}fromJSON(e){return this.fromFastHex(e)}isPrivate(){return this.versionBytesNum===this.Constants.privKey}}ye.Mainnet=class extends ye{constructor(d,e,t,i,c,p,O){super(d,e,t,i,c,p,O,C.Mainnet.Bip32,re.Mainnet)}},ye.Testnet=class extends ye{constructor(d,e,t,i,c,p,O){super(d,e,t,i,c,p,O,C.Testnet.Bip32,re.Testnet)}};const Ue=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];Ue.space=" ";const we=["\u3042\u3044\u3053\u304F\u3057\u3093","\u3042\u3044\u3055\u3064","\u3042\u3044\u3060","\u3042\u304A\u305E\u3089","\u3042\u304B\u3061\u3083\u3093","\u3042\u304D\u308B","\u3042\u3051\u304C\u305F","\u3042\u3051\u308B","\u3042\u3053\u304C\u308C\u308B","\u3042\u3055\u3044","\u3042\u3055\u3072","\u3042\u3057\u3042\u3068","\u3042\u3058\u308F\u3046","\u3042\u305A\u304B\u308B","\u3042\u305A\u304D","\u3042\u305D\u3076","\u3042\u305F\u3048\u308B","\u3042\u305F\u305F\u3081\u308B","\u3042\u305F\u308A\u307E\u3048","\u3042\u305F\u308B","\u3042\u3064\u3044","\u3042\u3064\u304B\u3046","\u3042\u3063\u3057\u3085\u304F","\u3042\u3064\u307E\u308A","\u3042\u3064\u3081\u308B","\u3042\u3066\u306A","\u3042\u3066\u306F\u307E\u308B","\u3042\u3072\u308B","\u3042\u3076\u3089","\u3042\u3076\u308B","\u3042\u3075\u308C\u308B","\u3042\u307E\u3044","\u3042\u307E\u3069","\u3042\u307E\u3084\u304B\u3059","\u3042\u307E\u308A","\u3042\u307F\u3082\u306E","\u3042\u3081\u308A\u304B","\u3042\u3084\u307E\u308B","\u3042\u3086\u3080","\u3042\u3089\u3044\u3050\u307E","\u3042\u3089\u3057","\u3042\u3089\u3059\u3058","\u3042\u3089\u305F\u3081\u308B","\u3042\u3089\u3086\u308B","\u3042\u3089\u308F\u3059","\u3042\u308A\u304C\u3068\u3046","\u3042\u308F\u305B\u308B","\u3042\u308F\u3066\u308B","\u3042\u3093\u3044","\u3042\u3093\u304C\u3044","\u3042\u3093\u3053","\u3042\u3093\u305C\u3093","\u3042\u3093\u3066\u3044","\u3042\u3093\u306A\u3044","\u3042\u3093\u307E\u308A","\u3044\u3044\u3060\u3059","\u3044\u304A\u3093","\u3044\u304C\u3044","\u3044\u304C\u304F","\u3044\u304D\u304A\u3044","\u3044\u304D\u306A\u308A","\u3044\u304D\u3082\u306E","\u3044\u304D\u308B","\u3044\u304F\u3058","\u3044\u304F\u3076\u3093","\u3044\u3051\u3070\u306A","\u3044\u3051\u3093","\u3044\u3053\u3046","\u3044\u3053\u304F","\u3044\u3053\u3064","\u3044\u3055\u307E\u3057\u3044","\u3044\u3055\u3093","\u3044\u3057\u304D","\u3044\u3058\u3085\u3046","\u3044\u3058\u3087\u3046","\u3044\u3058\u308F\u308B","\u3044\u305A\u307F","\u3044\u305A\u308C","\u3044\u305B\u3044","\u3044\u305B\u3048\u3073","\u3044\u305B\u304B\u3044","\u3044\u305B\u304D","\u3044\u305C\u3093","\u3044\u305D\u3046\u308D\u3046","\u3044\u305D\u304C\u3057\u3044","\u3044\u3060\u3044","\u3044\u3060\u304F","\u3044\u305F\u305A\u3089","\u3044\u305F\u307F","\u3044\u305F\u308A\u3042","\u3044\u3061\u304A\u3046","\u3044\u3061\u3058","\u3044\u3061\u3069","\u3044\u3061\u3070","\u3044\u3061\u3076","\u3044\u3061\u308A\u3085\u3046","\u3044\u3064\u304B","\u3044\u3063\u3057\u3085\u3093","\u3044\u3063\u305B\u3044","\u3044\u3063\u305D\u3046","\u3044\u3063\u305F\u3093","\u3044\u3063\u3061","\u3044\u3063\u3066\u3044","\u3044\u3063\u307D\u3046","\u3044\u3066\u3056","\u3044\u3066\u3093","\u3044\u3069\u3046","\u3044\u3068\u3053","\u3044\u306A\u3044","\u3044\u306A\u304B","\u3044\u306D\u3080\u308A","\u3044\u306E\u3061","\u3044\u306E\u308B","\u3044\u306F\u3064","\u3044\u3070\u308B","\u3044\u306F\u3093","\u3044\u3073\u304D","\u3044\u3072\u3093","\u3044\u3075\u304F","\u3044\u3078\u3093","\u3044\u307B\u3046","\u3044\u307F\u3093","\u3044\u3082\u3046\u3068","\u3044\u3082\u305F\u308C","\u3044\u3082\u308A","\u3044\u3084\u304C\u308B","\u3044\u3084\u3059","\u3044\u3088\u304B\u3093","\u3044\u3088\u304F","\u3044\u3089\u3044","\u3044\u3089\u3059\u3068","\u3044\u308A\u3050\u3061","\u3044\u308A\u3087\u3046","\u3044\u308C\u3044","\u3044\u308C\u3082\u306E","\u3044\u308C\u308B","\u3044\u308D\u3048\u3093\u3074\u3064","\u3044\u308F\u3044","\u3044\u308F\u3046","\u3044\u308F\u304B\u3093","\u3044\u308F\u3070","\u3044\u308F\u3086\u308B","\u3044\u3093\u3052\u3093\u307E\u3081","\u3044\u3093\u3055\u3064","\u3044\u3093\u3057\u3087\u3046","\u3044\u3093\u3088\u3046","\u3046\u3048\u304D","\u3046\u3048\u308B","\u3046\u304A\u3056","\u3046\u304C\u3044","\u3046\u304B\u3076","\u3046\u304B\u3079\u308B","\u3046\u304D\u308F","\u3046\u304F\u3089\u3044\u306A","\u3046\u304F\u308C\u308C","\u3046\u3051\u305F\u307E\u308F\u308B","\u3046\u3051\u3064\u3051","\u3046\u3051\u3068\u308B","\u3046\u3051\u3082\u3064","\u3046\u3051\u308B","\u3046\u3054\u304B\u3059","\u3046\u3054\u304F","\u3046\u3053\u3093","\u3046\u3055\u304E","\u3046\u3057\u306A\u3046","\u3046\u3057\u308D\u304C\u307F","\u3046\u3059\u3044","\u3046\u3059\u304E","\u3046\u3059\u3050\u3089\u3044","\u3046\u3059\u3081\u308B","\u3046\u305B\u3064","\u3046\u3061\u3042\u308F\u305B","\u3046\u3061\u304C\u308F","\u3046\u3061\u304D","\u3046\u3061\u3085\u3046","\u3046\u3063\u304B\u308A","\u3046\u3064\u304F\u3057\u3044","\u3046\u3063\u305F\u3048\u308B","\u3046\u3064\u308B","\u3046\u3069\u3093","\u3046\u306A\u304E","\u3046\u306A\u3058","\u3046\u306A\u305A\u304F","\u3046\u306A\u308B","\u3046\u306D\u308B","\u3046\u306E\u3046","\u3046\u3076\u3052","\u3046\u3076\u3054\u3048","\u3046\u307E\u308C\u308B","\u3046\u3081\u308B","\u3046\u3082\u3046","\u3046\u3084\u307E\u3046","\u3046\u3088\u304F","\u3046\u3089\u304C\u3048\u3059","\u3046\u3089\u3050\u3061","\u3046\u3089\u306A\u3044","\u3046\u308A\u3042\u3052","\u3046\u308A\u304D\u308C","\u3046\u308B\u3055\u3044","\u3046\u308C\u3057\u3044","\u3046\u308C\u3086\u304D","\u3046\u308C\u308B","\u3046\u308D\u3053","\u3046\u308F\u304D","\u3046\u308F\u3055","\u3046\u3093\u3053\u3046","\u3046\u3093\u3061\u3093","\u3046\u3093\u3066\u3093","\u3046\u3093\u3069\u3046","\u3048\u3044\u3048\u3093","\u3048\u3044\u304C","\u3048\u3044\u304D\u3087\u3046","\u3048\u3044\u3054","\u3048\u3044\u305B\u3044","\u3048\u3044\u3076\u3093","\u3048\u3044\u3088\u3046","\u3048\u3044\u308F","\u3048\u304A\u308A","\u3048\u304C\u304A","\u3048\u304C\u304F","\u3048\u304D\u305F\u3044","\u3048\u304F\u305B\u308B","\u3048\u3057\u3083\u304F","\u3048\u3059\u3066","\u3048\u3064\u3089\u3093","\u3048\u306E\u3050","\u3048\u307B\u3046\u307E\u304D","\u3048\u307B\u3093","\u3048\u307E\u304D","\u3048\u3082\u3058","\u3048\u3082\u306E","\u3048\u3089\u3044","\u3048\u3089\u3076","\u3048\u308A\u3042","\u3048\u3093\u3048\u3093","\u3048\u3093\u304B\u3044","\u3048\u3093\u304E","\u3048\u3093\u3052\u304D","\u3048\u3093\u3057\u3085\u3046","\u3048\u3093\u305C\u3064","\u3048\u3093\u305D\u304F","\u3048\u3093\u3061\u3087\u3046","\u3048\u3093\u3068\u3064","\u304A\u3044\u304B\u3051\u308B","\u304A\u3044\u3053\u3059","\u304A\u3044\u3057\u3044","\u304A\u3044\u3064\u304F","\u304A\u3046\u3048\u3093","\u304A\u3046\u3055\u307E","\u304A\u3046\u3058","\u304A\u3046\u305B\u3064","\u304A\u3046\u305F\u3044","\u304A\u3046\u3075\u304F","\u304A\u3046\u3079\u3044","\u304A\u3046\u3088\u3046","\u304A\u3048\u308B","\u304A\u304A\u3044","\u304A\u304A\u3046","\u304A\u304A\u3069\u304A\u308A","\u304A\u304A\u3084","\u304A\u304A\u3088\u305D","\u304A\u304B\u3048\u308A","\u304A\u304B\u305A","\u304A\u304C\u3080","\u304A\u304B\u308F\u308A","\u304A\u304E\u306A\u3046","\u304A\u304D\u308B","\u304A\u304F\u3055\u307E","\u304A\u304F\u3058\u3087\u3046","\u304A\u304F\u308A\u304C\u306A","\u304A\u304F\u308B","\u304A\u304F\u308C\u308B","\u304A\u3053\u3059","\u304A\u3053\u306A\u3046","\u304A\u3053\u308B","\u304A\u3055\u3048\u308B","\u304A\u3055\u306A\u3044","\u304A\u3055\u3081\u308B","\u304A\u3057\u3044\u308C","\u304A\u3057\u3048\u308B","\u304A\u3058\u304E","\u304A\u3058\u3055\u3093","\u304A\u3057\u3083\u308C","\u304A\u305D\u3089\u304F","\u304A\u305D\u308F\u308B","\u304A\u305F\u304C\u3044","\u304A\u305F\u304F","\u304A\u3060\u3084\u304B","\u304A\u3061\u3064\u304F","\u304A\u3063\u3068","\u304A\u3064\u308A","\u304A\u3067\u304B\u3051","\u304A\u3068\u3057\u3082\u306E","\u304A\u3068\u306A\u3057\u3044","\u304A\u3069\u308A","\u304A\u3069\u308D\u304B\u3059","\u304A\u3070\u3055\u3093","\u304A\u307E\u3044\u308A","\u304A\u3081\u3067\u3068\u3046","\u304A\u3082\u3044\u3067","\u304A\u3082\u3046","\u304A\u3082\u305F\u3044","\u304A\u3082\u3061\u3083","\u304A\u3084\u3064","\u304A\u3084\u3086\u3073","\u304A\u3088\u307C\u3059","\u304A\u3089\u3093\u3060","\u304A\u308D\u3059","\u304A\u3093\u304C\u304F","\u304A\u3093\u3051\u3044","\u304A\u3093\u3057\u3083","\u304A\u3093\u305B\u3093","\u304A\u3093\u3060\u3093","\u304A\u3093\u3061\u3085\u3046","\u304A\u3093\u3069\u3051\u3044","\u304B\u3042\u3064","\u304B\u3044\u304C","\u304C\u3044\u304D","\u304C\u3044\u3051\u3093","\u304C\u3044\u3053\u3046","\u304B\u3044\u3055\u3064","\u304B\u3044\u3057\u3083","\u304B\u3044\u3059\u3044\u3088\u304F","\u304B\u3044\u305C\u3093","\u304B\u3044\u305E\u3046\u3069","\u304B\u3044\u3064\u3046","\u304B\u3044\u3066\u3093","\u304B\u3044\u3068\u3046","\u304B\u3044\u3075\u304F","\u304C\u3044\u3078\u304D","\u304B\u3044\u307B\u3046","\u304B\u3044\u3088\u3046","\u304C\u3044\u3089\u3044","\u304B\u3044\u308F","\u304B\u3048\u308B","\u304B\u304A\u308A","\u304B\u304B\u3048\u308B","\u304B\u304C\u304F","\u304B\u304C\u3057","\u304B\u304C\u307F","\u304B\u304F\u3054","\u304B\u304F\u3068\u304F","\u304B\u3056\u308B","\u304C\u305E\u3046","\u304B\u305F\u3044","\u304B\u305F\u3061","\u304C\u3061\u3087\u3046","\u304C\u3063\u304D\u3085\u3046","\u304C\u3063\u3053\u3046","\u304C\u3063\u3055\u3093","\u304C\u3063\u3057\u3087\u3046","\u304B\u306A\u3056\u308F\u3057","\u304B\u306E\u3046","\u304C\u306F\u304F","\u304B\u3076\u304B","\u304B\u307B\u3046","\u304B\u307B\u3054","\u304B\u307E\u3046","\u304B\u307E\u307C\u3053","\u304B\u3081\u308C\u304A\u3093","\u304B\u3086\u3044","\u304B\u3088\u3046\u3073","\u304B\u3089\u3044","\u304B\u308B\u3044","\u304B\u308D\u3046","\u304B\u308F\u304F","\u304B\u308F\u3089","\u304C\u3093\u304B","\u304B\u3093\u3051\u3044","\u304B\u3093\u3053\u3046","\u304B\u3093\u3057\u3083","\u304B\u3093\u305D\u3046","\u304B\u3093\u305F\u3093","\u304B\u3093\u3061","\u304C\u3093\u3070\u308B","\u304D\u3042\u3044","\u304D\u3042\u3064","\u304D\u3044\u308D","\u304E\u3044\u3093","\u304D\u3046\u3044","\u304D\u3046\u3093","\u304D\u3048\u308B","\u304D\u304A\u3046","\u304D\u304A\u304F","\u304D\u304A\u3061","\u304D\u304A\u3093","\u304D\u304B\u3044","\u304D\u304B\u304F","\u304D\u304B\u3093\u3057\u3083","\u304D\u304D\u3066","\u304D\u304F\u3070\u308A","\u304D\u304F\u3089\u3052","\u304D\u3051\u3093\u305B\u3044","\u304D\u3053\u3046","\u304D\u3053\u3048\u308B","\u304D\u3053\u304F","\u304D\u3055\u3044","\u304D\u3055\u304F","\u304D\u3055\u307E","\u304D\u3055\u3089\u304E","\u304E\u3058\u304B\u304C\u304F","\u304E\u3057\u304D","\u304E\u3058\u305F\u3044\u3051\u3093","\u304E\u3058\u306B\u3063\u3066\u3044","\u304E\u3058\u3085\u3064\u3057\u3083","\u304D\u3059\u3046","\u304D\u305B\u3044","\u304D\u305B\u304D","\u304D\u305B\u3064","\u304D\u305D\u3046","\u304D\u305E\u304F","\u304D\u305E\u3093","\u304D\u305F\u3048\u308B","\u304D\u3061\u3087\u3046","\u304D\u3064\u3048\u3093","\u304E\u3063\u3061\u308A","\u304D\u3064\u3064\u304D","\u304D\u3064\u306D","\u304D\u3066\u3044","\u304D\u3069\u3046","\u304D\u3069\u304F","\u304D\u306A\u3044","\u304D\u306A\u304C","\u304D\u306A\u3053","\u304D\u306C\u3054\u3057","\u304D\u306D\u3093","\u304D\u306E\u3046","\u304D\u306E\u3057\u305F","\u304D\u306F\u304F","\u304D\u3073\u3057\u3044","\u304D\u3072\u3093","\u304D\u3075\u304F","\u304D\u3076\u3093","\u304D\u307C\u3046","\u304D\u307B\u3093","\u304D\u307E\u308B","\u304D\u307F\u3064","\u304D\u3080\u305A\u304B\u3057\u3044","\u304D\u3081\u308B","\u304D\u3082\u3060\u3081\u3057","\u304D\u3082\u3061","\u304D\u3082\u306E","\u304D\u3083\u304F","\u304D\u3084\u304F","\u304E\u3085\u3046\u306B\u304F","\u304D\u3088\u3046","\u304D\u3087\u3046\u308A\u3085\u3046","\u304D\u3089\u3044","\u304D\u3089\u304F","\u304D\u308A\u3093","\u304D\u308C\u3044","\u304D\u308C\u3064","\u304D\u308D\u304F","\u304E\u308D\u3093","\u304D\u308F\u3081\u308B","\u304E\u3093\u3044\u308D","\u304D\u3093\u304B\u304F\u3058","\u304D\u3093\u3058\u3087","\u304D\u3093\u3088\u3046\u3073","\u3050\u3042\u3044","\u304F\u3044\u305A","\u304F\u3046\u304B\u3093","\u304F\u3046\u304D","\u304F\u3046\u3050\u3093","\u304F\u3046\u3053\u3046","\u3050\u3046\u305B\u3044","\u304F\u3046\u305D\u3046","\u3050\u3046\u305F\u3089","\u304F\u3046\u3075\u304F","\u304F\u3046\u307C","\u304F\u304B\u3093","\u304F\u304D\u3087\u3046","\u304F\u3052\u3093","\u3050\u3053\u3046","\u304F\u3055\u3044","\u304F\u3055\u304D","\u304F\u3055\u3070\u306A","\u304F\u3055\u308B","\u304F\u3057\u3083\u307F","\u304F\u3057\u3087\u3046","\u304F\u3059\u306E\u304D","\u304F\u3059\u308A\u3086\u3073","\u304F\u305B\u3052","\u304F\u305B\u3093","\u3050\u305F\u3044\u3066\u304D","\u304F\u3060\u3055\u308B","\u304F\u305F\u3073\u308C\u308B","\u304F\u3061\u3053\u307F","\u304F\u3061\u3055\u304D","\u304F\u3064\u3057\u305F","\u3050\u3063\u3059\u308A","\u304F\u3064\u308D\u3050","\u304F\u3068\u3046\u3066\u3093","\u304F\u3069\u304F","\u304F\u306A\u3093","\u304F\u306D\u304F\u306D","\u304F\u306E\u3046","\u304F\u3075\u3046","\u304F\u307F\u3042\u308F\u305B","\u304F\u307F\u305F\u3066\u308B","\u304F\u3081\u308B","\u304F\u3084\u304F\u3057\u3087","\u304F\u3089\u3059","\u304F\u3089\u3079\u308B","\u304F\u308B\u307E","\u304F\u308C\u308B","\u304F\u308D\u3046","\u304F\u308F\u3057\u3044","\u3050\u3093\u304B\u3093","\u3050\u3093\u3057\u3087\u304F","\u3050\u3093\u305F\u3044","\u3050\u3093\u3066","\u3051\u3042\u306A","\u3051\u3044\u304B\u304F","\u3051\u3044\u3051\u3093","\u3051\u3044\u3053","\u3051\u3044\u3055\u3064","\u3052\u3044\u3058\u3085\u3064","\u3051\u3044\u305F\u3044","\u3052\u3044\u306E\u3046\u3058\u3093","\u3051\u3044\u308C\u304D","\u3051\u3044\u308D","\u3051\u304A\u3068\u3059","\u3051\u304A\u308A\u3082\u306E","\u3052\u304D\u304B","\u3052\u304D\u3052\u3093","\u3052\u304D\u3060\u3093","\u3052\u304D\u3061\u3093","\u3052\u304D\u3068\u3064","\u3052\u304D\u306F","\u3052\u304D\u3084\u304F","\u3052\u3053\u3046","\u3052\u3053\u304F\u3058\u3087\u3046","\u3052\u3056\u3044","\u3051\u3055\u304D","\u3052\u3056\u3093","\u3051\u3057\u304D","\u3051\u3057\u3054\u3080","\u3051\u3057\u3087\u3046","\u3052\u3059\u3068","\u3051\u305F\u3070","\u3051\u3061\u3083\u3063\u3077","\u3051\u3061\u3089\u3059","\u3051\u3064\u3042\u3064","\u3051\u3064\u3044","\u3051\u3064\u3048\u304D","\u3051\u3063\u3053\u3093","\u3051\u3064\u3058\u3087","\u3051\u3063\u305B\u304D","\u3051\u3063\u3066\u3044","\u3051\u3064\u307E\u3064","\u3052\u3064\u3088\u3046\u3073","\u3052\u3064\u308C\u3044","\u3051\u3064\u308D\u3093","\u3052\u3069\u304F","\u3051\u3068\u3070\u3059","\u3051\u3068\u308B","\u3051\u306A\u3052","\u3051\u306A\u3059","\u3051\u306A\u307F","\u3051\u306C\u304D","\u3052\u306D\u3064","\u3051\u306D\u3093","\u3051\u306F\u3044","\u3052\u3072\u3093","\u3051\u3076\u304B\u3044","\u3052\u307C\u304F","\u3051\u307E\u308A","\u3051\u307F\u304B\u308B","\u3051\u3080\u3057","\u3051\u3080\u308A","\u3051\u3082\u306E","\u3051\u3089\u3044","\u3051\u308D\u3051\u308D","\u3051\u308F\u3057\u3044","\u3051\u3093\u3044","\u3051\u3093\u3048\u3064","\u3051\u3093\u304A","\u3051\u3093\u304B","\u3052\u3093\u304D","\u3051\u3093\u3052\u3093","\u3051\u3093\u3053\u3046","\u3051\u3093\u3055\u304F","\u3051\u3093\u3057\u3085\u3046","\u3051\u3093\u3059\u3046","\u3052\u3093\u305D\u3046","\u3051\u3093\u3061\u304F","\u3051\u3093\u3066\u3044","\u3051\u3093\u3068\u3046","\u3051\u3093\u306A\u3044","\u3051\u3093\u306B\u3093","\u3052\u3093\u3076\u3064","\u3051\u3093\u307E","\u3051\u3093\u307F\u3093","\u3051\u3093\u3081\u3044","\u3051\u3093\u3089\u3093","\u3051\u3093\u308A","\u3053\u3042\u304F\u307E","\u3053\u3044\u306C","\u3053\u3044\u3073\u3068","\u3054\u3046\u3044","\u3053\u3046\u3048\u3093","\u3053\u3046\u304A\u3093","\u3053\u3046\u304B\u3093","\u3054\u3046\u304D\u3085\u3046","\u3054\u3046\u3051\u3044","\u3053\u3046\u3053\u3046","\u3053\u3046\u3055\u3044","\u3053\u3046\u3058","\u3053\u3046\u3059\u3044","\u3054\u3046\u305B\u3044","\u3053\u3046\u305D\u304F","\u3053\u3046\u305F\u3044","\u3053\u3046\u3061\u3083","\u3053\u3046\u3064\u3046","\u3053\u3046\u3066\u3044","\u3053\u3046\u3069\u3046","\u3053\u3046\u306A\u3044","\u3053\u3046\u306F\u3044","\u3054\u3046\u307B\u3046","\u3054\u3046\u307E\u3093","\u3053\u3046\u3082\u304F","\u3053\u3046\u308A\u3064","\u3053\u3048\u308B","\u3053\u304A\u308A","\u3054\u304B\u3044","\u3054\u304C\u3064","\u3054\u304B\u3093","\u3053\u304F\u3054","\u3053\u304F\u3055\u3044","\u3053\u304F\u3068\u3046","\u3053\u304F\u306A\u3044","\u3053\u304F\u306F\u304F","\u3053\u3050\u307E","\u3053\u3051\u3044","\u3053\u3051\u308B","\u3053\u3053\u306E\u304B","\u3053\u3053\u308D","\u3053\u3055\u3081","\u3053\u3057\u3064","\u3053\u3059\u3046","\u3053\u305B\u3044","\u3053\u305B\u304D","\u3053\u305C\u3093","\u3053\u305D\u3060\u3066","\u3053\u305F\u3044","\u3053\u305F\u3048\u308B","\u3053\u305F\u3064","\u3053\u3061\u3087\u3046","\u3053\u3063\u304B","\u3053\u3064\u3053\u3064","\u3053\u3064\u3070\u3093","\u3053\u3064\u3076","\u3053\u3066\u3044","\u3053\u3066\u3093","\u3053\u3068\u304C\u3089","\u3053\u3068\u3057","\u3053\u3068\u3070","\u3053\u3068\u308A","\u3053\u306A\u3054\u306A","\u3053\u306D\u3053\u306D","\u3053\u306E\u307E\u307E","\u3053\u306E\u307F","\u3053\u306E\u3088","\u3054\u306F\u3093","\u3053\u3072\u3064\u3058","\u3053\u3075\u3046","\u3053\u3075\u3093","\u3053\u307C\u308C\u308B","\u3054\u307E\u3042\u3076\u3089","\u3053\u307E\u304B\u3044","\u3054\u307E\u3059\u308A","\u3053\u307E\u3064\u306A","\u3053\u307E\u308B","\u3053\u3080\u304E\u3053","\u3053\u3082\u3058","\u3053\u3082\u3061","\u3053\u3082\u306E","\u3053\u3082\u3093","\u3053\u3084\u304F","\u3053\u3084\u307E","\u3053\u3086\u3046","\u3053\u3086\u3073","\u3053\u3088\u3044","\u3053\u3088\u3046","\u3053\u308A\u308B","\u3053\u308C\u304F\u3057\u3087\u3093","\u3053\u308D\u3063\u3051","\u3053\u308F\u3082\u3066","\u3053\u308F\u308C\u308B","\u3053\u3093\u3044\u3093","\u3053\u3093\u304B\u3044","\u3053\u3093\u304D","\u3053\u3093\u3057\u3085\u3046","\u3053\u3093\u3059\u3044","\u3053\u3093\u3060\u3066","\u3053\u3093\u3068\u3093","\u3053\u3093\u306A\u3093","\u3053\u3093\u3073\u306B","\u3053\u3093\u307D\u3093","\u3053\u3093\u307E\u3051","\u3053\u3093\u3084","\u3053\u3093\u308C\u3044","\u3053\u3093\u308F\u304F","\u3056\u3044\u3048\u304D","\u3055\u3044\u304B\u3044","\u3055\u3044\u304D\u3093","\u3056\u3044\u3052\u3093","\u3056\u3044\u3053","\u3055\u3044\u3057\u3087","\u3055\u3044\u305B\u3044","\u3056\u3044\u305F\u304F","\u3056\u3044\u3061\u3085\u3046","\u3055\u3044\u3066\u304D","\u3056\u3044\u308A\u3087\u3046","\u3055\u3046\u306A","\u3055\u304B\u3044\u3057","\u3055\u304C\u3059","\u3055\u304B\u306A","\u3055\u304B\u307F\u3061","\u3055\u304C\u308B","\u3055\u304E\u3087\u3046","\u3055\u304F\u3057","\u3055\u304F\u3072\u3093","\u3055\u304F\u3089","\u3055\u3053\u304F","\u3055\u3053\u3064","\u3055\u305A\u304B\u308B","\u3056\u305B\u304D","\u3055\u305F\u3093","\u3055\u3064\u3048\u3044","\u3056\u3064\u304A\u3093","\u3056\u3063\u304B","\u3056\u3064\u304C\u304F","\u3055\u3063\u304D\u3087\u304F","\u3056\u3063\u3057","\u3055\u3064\u3058\u3093","\u3056\u3063\u305D\u3046","\u3055\u3064\u305F\u3070","\u3055\u3064\u307E\u3044\u3082","\u3055\u3066\u3044","\u3055\u3068\u3044\u3082","\u3055\u3068\u3046","\u3055\u3068\u304A\u3084","\u3055\u3068\u3057","\u3055\u3068\u308B","\u3055\u306E\u3046","\u3055\u3070\u304F","\u3055\u3073\u3057\u3044","\u3055\u3079\u3064","\u3055\u307B\u3046","\u3055\u307B\u3069","\u3055\u307E\u3059","\u3055\u307F\u3057\u3044","\u3055\u307F\u3060\u308C","\u3055\u3080\u3051","\u3055\u3081\u308B","\u3055\u3084\u3048\u3093\u3069\u3046","\u3055\u3086\u3046","\u3055\u3088\u3046","\u3055\u3088\u304F","\u3055\u3089\u3060","\u3056\u308B\u305D\u3070","\u3055\u308F\u3084\u304B","\u3055\u308F\u308B","\u3055\u3093\u3044\u3093","\u3055\u3093\u304B","\u3055\u3093\u304D\u3083\u304F","\u3055\u3093\u3053\u3046","\u3055\u3093\u3055\u3044","\u3056\u3093\u3057\u3087","\u3055\u3093\u3059\u3046","\u3055\u3093\u305B\u3044","\u3055\u3093\u305D","\u3055\u3093\u3061","\u3055\u3093\u307E","\u3055\u3093\u307F","\u3055\u3093\u3089\u3093","\u3057\u3042\u3044","\u3057\u3042\u3052","\u3057\u3042\u3055\u3063\u3066","\u3057\u3042\u308F\u305B","\u3057\u3044\u304F","\u3057\u3044\u3093","\u3057\u3046\u3061","\u3057\u3048\u3044","\u3057\u304A\u3051","\u3057\u304B\u3044","\u3057\u304B\u304F","\u3058\u304B\u3093","\u3057\u3054\u3068","\u3057\u3059\u3046","\u3058\u3060\u3044","\u3057\u305F\u3046\u3051","\u3057\u305F\u304E","\u3057\u305F\u3066","\u3057\u305F\u307F","\u3057\u3061\u3087\u3046","\u3057\u3061\u308A\u3093","\u3057\u3063\u304B\u308A","\u3057\u3064\u3058","\u3057\u3064\u3082\u3093","\u3057\u3066\u3044","\u3057\u3066\u304D","\u3057\u3066\u3064","\u3058\u3066\u3093","\u3058\u3069\u3046","\u3057\u306A\u304E\u308C","\u3057\u306A\u3082\u306E","\u3057\u306A\u3093","\u3057\u306D\u307E","\u3057\u306D\u3093","\u3057\u306E\u3050","\u3057\u306E\u3076","\u3057\u306F\u3044","\u3057\u3070\u304B\u308A","\u3057\u306F\u3064","\u3057\u306F\u3089\u3044","\u3057\u306F\u3093","\u3057\u3072\u3087\u3046","\u3057\u3075\u304F","\u3058\u3076\u3093","\u3057\u3078\u3044","\u3057\u307B\u3046","\u3057\u307B\u3093","\u3057\u307E\u3046","\u3057\u307E\u308B","\u3057\u307F\u3093","\u3057\u3080\u3051\u308B","\u3058\u3080\u3057\u3087","\u3057\u3081\u3044","\u3057\u3081\u308B","\u3057\u3082\u3093","\u3057\u3083\u3044\u3093","\u3057\u3083\u3046\u3093","\u3057\u3083\u304A\u3093","\u3058\u3083\u304C\u3044\u3082","\u3057\u3084\u304F\u3057\u3087","\u3057\u3083\u304F\u307B\u3046","\u3057\u3083\u3051\u3093","\u3057\u3083\u3053","\u3057\u3083\u3056\u3044","\u3057\u3083\u3057\u3093","\u3057\u3083\u305B\u3093","\u3057\u3083\u305D\u3046","\u3057\u3083\u305F\u3044","\u3057\u3083\u3061\u3087\u3046","\u3057\u3083\u3063\u304D\u3093","\u3058\u3083\u307E","\u3057\u3083\u308A\u3093","\u3057\u3083\u308C\u3044","\u3058\u3086\u3046","\u3058\u3085\u3046\u3057\u3087","\u3057\u3085\u304F\u306F\u304F","\u3058\u3085\u3057\u3093","\u3057\u3085\u3063\u305B\u304D","\u3057\u3085\u307F","\u3057\u3085\u3089\u3070","\u3058\u3085\u3093\u3070\u3093","\u3057\u3087\u3046\u304B\u3044","\u3057\u3087\u304F\u305F\u304F","\u3057\u3087\u3063\u3051\u3093","\u3057\u3087\u3069\u3046","\u3057\u3087\u3082\u3064","\u3057\u3089\u305B\u308B","\u3057\u3089\u3079\u308B","\u3057\u3093\u304B","\u3057\u3093\u3053\u3046","\u3058\u3093\u3058\u3083","\u3057\u3093\u305B\u3044\u3058","\u3057\u3093\u3061\u304F","\u3057\u3093\u308A\u3093","\u3059\u3042\u3052","\u3059\u3042\u3057","\u3059\u3042\u306A","\u305A\u3042\u3093","\u3059\u3044\u3048\u3044","\u3059\u3044\u304B","\u3059\u3044\u3068\u3046","\u305A\u3044\u3076\u3093","\u3059\u3044\u3088\u3046\u3073","\u3059\u3046\u304C\u304F","\u3059\u3046\u3058\u3064","\u3059\u3046\u305B\u3093","\u3059\u304A\u3069\u308A","\u3059\u304D\u307E","\u3059\u304F\u3046","\u3059\u304F\u306A\u3044","\u3059\u3051\u308B","\u3059\u3054\u3044","\u3059\u3053\u3057","\u305A\u3055\u3093","\u3059\u305A\u3057\u3044","\u3059\u3059\u3080","\u3059\u3059\u3081\u308B","\u3059\u3063\u304B\u308A","\u305A\u3063\u3057\u308A","\u305A\u3063\u3068","\u3059\u3066\u304D","\u3059\u3066\u308B","\u3059\u306D\u308B","\u3059\u306E\u3053","\u3059\u306F\u3060","\u3059\u3070\u3089\u3057\u3044","\u305A\u3072\u3087\u3046","\u305A\u3076\u306C\u308C","\u3059\u3076\u308A","\u3059\u3075\u308C","\u3059\u3079\u3066","\u3059\u3079\u308B","\u305A\u307B\u3046","\u3059\u307C\u3093","\u3059\u307E\u3044","\u3059\u3081\u3057","\u3059\u3082\u3046","\u3059\u3084\u304D","\u3059\u3089\u3059\u3089","\u3059\u308B\u3081","\u3059\u308C\u3061\u304C\u3046","\u3059\u308D\u3063\u3068","\u3059\u308F\u308B","\u3059\u3093\u305C\u3093","\u3059\u3093\u307D\u3046","\u305B\u3042\u3076\u3089","\u305B\u3044\u304B\u3064","\u305B\u3044\u3052\u3093","\u305B\u3044\u3058","\u305B\u3044\u3088\u3046","\u305B\u304A\u3046","\u305B\u304B\u3044\u304B\u3093","\u305B\u304D\u306B\u3093","\u305B\u304D\u3080","\u305B\u304D\u3086","\u305B\u304D\u3089\u3093\u3046\u3093","\u305B\u3051\u3093","\u305B\u3053\u3046","\u305B\u3059\u3058","\u305B\u305F\u3044","\u305B\u305F\u3051","\u305B\u3063\u304B\u304F","\u305B\u3063\u304D\u3083\u304F","\u305C\u3063\u304F","\u305B\u3063\u3051\u3093","\u305B\u3063\u3053\u3064","\u305B\u3063\u3055\u305F\u304F\u307E","\u305B\u3064\u305E\u304F","\u305B\u3064\u3060\u3093","\u305B\u3064\u3067\u3093","\u305B\u3063\u3071\u3093","\u305B\u3064\u3073","\u305B\u3064\u3076\u3093","\u305B\u3064\u3081\u3044","\u305B\u3064\u308A\u3064","\u305B\u306A\u304B","\u305B\u306E\u3073","\u305B\u306F\u3070","\u305B\u3073\u308D","\u305B\u307C\u306D","\u305B\u307E\u3044","\u305B\u307E\u308B","\u305B\u3081\u308B","\u305B\u3082\u305F\u308C","\u305B\u308A\u3075","\u305C\u3093\u3042\u304F","\u305B\u3093\u3044","\u305B\u3093\u3048\u3044","\u305B\u3093\u304B","\u305B\u3093\u304D\u3087","\u305B\u3093\u304F","\u305B\u3093\u3052\u3093","\u305C\u3093\u3054","\u305B\u3093\u3055\u3044","\u305B\u3093\u3057\u3085","\u305B\u3093\u3059\u3044","\u305B\u3093\u305B\u3044","\u305B\u3093\u305E","\u305B\u3093\u305F\u304F","\u305B\u3093\u3061\u3087\u3046","\u305B\u3093\u3066\u3044","\u305B\u3093\u3068\u3046","\u305B\u3093\u306C\u304D","\u305B\u3093\u306D\u3093","\u305B\u3093\u3071\u3044","\u305C\u3093\u3076","\u305C\u3093\u307D\u3046","\u305B\u3093\u3080","\u305B\u3093\u3081\u3093\u3058\u3087","\u305B\u3093\u3082\u3093","\u305B\u3093\u3084\u304F","\u305B\u3093\u3086\u3046","\u305B\u3093\u3088\u3046","\u305C\u3093\u3089","\u305C\u3093\u308A\u3083\u304F","\u305B\u3093\u308C\u3044","\u305B\u3093\u308D","\u305D\u3042\u304F","\u305D\u3044\u3068\u3052\u308B","\u305D\u3044\u306D","\u305D\u3046\u304C\u3093\u304D\u3087\u3046","\u305D\u3046\u304D","\u305D\u3046\u3054","\u305D\u3046\u3057\u3093","\u305D\u3046\u3060\u3093","\u305D\u3046\u306A\u3093","\u305D\u3046\u3073","\u305D\u3046\u3081\u3093","\u305D\u3046\u308A","\u305D\u3048\u3082\u306E","\u305D\u3048\u3093","\u305D\u304C\u3044","\u305D\u3052\u304D","\u305D\u3053\u3046","\u305D\u3053\u305D\u3053","\u305D\u3056\u3044","\u305D\u3057\u306A","\u305D\u305B\u3044","\u305D\u305B\u3093","\u305D\u305D\u3050","\u305D\u3060\u3066\u308B","\u305D\u3064\u3046","\u305D\u3064\u3048\u3093","\u305D\u3063\u304B\u3093","\u305D\u3064\u304E\u3087\u3046","\u305D\u3063\u3051\u3064","\u305D\u3063\u3053\u3046","\u305D\u3063\u305B\u3093","\u305D\u3063\u3068","\u305D\u3068\u304C\u308F","\u305D\u3068\u3065\u3089","\u305D\u306A\u3048\u308B","\u305D\u306A\u305F","\u305D\u3075\u307C","\u305D\u307C\u304F","\u305D\u307C\u308D","\u305D\u307E\u3064","\u305D\u307E\u308B","\u305D\u3080\u304F","\u305D\u3080\u308A\u3048","\u305D\u3081\u308B","\u305D\u3082\u305D\u3082","\u305D\u3088\u304B\u305C","\u305D\u3089\u307E\u3081","\u305D\u308D\u3046","\u305D\u3093\u304B\u3044","\u305D\u3093\u3051\u3044","\u305D\u3093\u3056\u3044","\u305D\u3093\u3057\u3064","\u305D\u3093\u305E\u304F","\u305D\u3093\u3061\u3087\u3046","\u305E\u3093\u3073","\u305E\u3093\u3076\u3093","\u305D\u3093\u307F\u3093","\u305F\u3042\u3044","\u305F\u3044\u3044\u3093","\u305F\u3044\u3046\u3093","\u305F\u3044\u3048\u304D","\u305F\u3044\u304A\u3046","\u3060\u3044\u304C\u304F","\u305F\u3044\u304D","\u305F\u3044\u3050\u3046","\u305F\u3044\u3051\u3093","\u305F\u3044\u3053","\u305F\u3044\u3056\u3044","\u3060\u3044\u3058\u3087\u3046\u3076","\u3060\u3044\u3059\u304D","\u305F\u3044\u305B\u3064","\u305F\u3044\u305D\u3046","\u3060\u3044\u305F\u3044","\u305F\u3044\u3061\u3087\u3046","\u305F\u3044\u3066\u3044","\u3060\u3044\u3069\u3053\u308D","\u305F\u3044\u306A\u3044","\u305F\u3044\u306D\u3064","\u305F\u3044\u306E\u3046","\u305F\u3044\u306F\u3093","\u3060\u3044\u3072\u3087\u3046","\u305F\u3044\u3075\u3046","\u305F\u3044\u3078\u3093","\u305F\u3044\u307B","\u305F\u3044\u307E\u3064\u3070\u306A","\u305F\u3044\u307F\u3093\u3050","\u305F\u3044\u3080","\u305F\u3044\u3081\u3093","\u305F\u3044\u3084\u304D","\u305F\u3044\u3088\u3046","\u305F\u3044\u3089","\u305F\u3044\u308A\u3087\u304F","\u305F\u3044\u308B","\u305F\u3044\u308F\u3093","\u305F\u3046\u3048","\u305F\u3048\u308B","\u305F\u304A\u3059","\u305F\u304A\u308B","\u305F\u304A\u308C\u308B","\u305F\u304B\u3044","\u305F\u304B\u306D","\u305F\u304D\u3073","\u305F\u304F\u3055\u3093","\u305F\u3053\u304F","\u305F\u3053\u3084\u304D","\u305F\u3055\u3044","\u305F\u3057\u3056\u3093","\u3060\u3058\u3083\u308C","\u305F\u3059\u3051\u308B","\u305F\u305A\u3055\u308F\u308B","\u305F\u305D\u304C\u308C","\u305F\u305F\u304B\u3046","\u305F\u305F\u304F","\u305F\u3060\u3057\u3044","\u305F\u305F\u307F","\u305F\u3061\u3070\u306A","\u3060\u3063\u304B\u3044","\u3060\u3063\u304D\u3083\u304F","\u3060\u3063\u3053","\u3060\u3063\u3057\u3085\u3064","\u3060\u3063\u305F\u3044","\u305F\u3066\u308B","\u305F\u3068\u3048\u308B","\u305F\u306A\u3070\u305F","\u305F\u306B\u3093","\u305F\u306C\u304D","\u305F\u306E\u3057\u307F","\u305F\u306F\u3064","\u305F\u3076\u3093","\u305F\u3079\u308B","\u305F\u307C\u3046","\u305F\u307E\u3054","\u305F\u307E\u308B","\u3060\u3080\u308B","\u305F\u3081\u3044\u304D","\u305F\u3081\u3059","\u305F\u3081\u308B","\u305F\u3082\u3064","\u305F\u3084\u3059\u3044","\u305F\u3088\u308B","\u305F\u3089\u3059","\u305F\u308A\u304D\u307B\u3093\u304C\u3093","\u305F\u308A\u3087\u3046","\u305F\u308A\u308B","\u305F\u308B\u3068","\u305F\u308C\u308B","\u305F\u308C\u3093\u3068","\u305F\u308D\u3063\u3068","\u305F\u308F\u3080\u308C\u308B","\u3060\u3093\u3042\u3064","\u305F\u3093\u3044","\u305F\u3093\u304A\u3093","\u305F\u3093\u304B","\u305F\u3093\u304D","\u305F\u3093\u3051\u3093","\u305F\u3093\u3054","\u305F\u3093\u3055\u3093","\u305F\u3093\u3058\u3087\u3046\u3073","\u3060\u3093\u305B\u3044","\u305F\u3093\u305D\u304F","\u305F\u3093\u305F\u3044","\u3060\u3093\u3061","\u305F\u3093\u3066\u3044","\u305F\u3093\u3068\u3046","\u3060\u3093\u306A","\u305F\u3093\u306B\u3093","\u3060\u3093\u306D\u3064","\u305F\u3093\u306E\u3046","\u305F\u3093\u3074\u3093","\u3060\u3093\u307C\u3046","\u305F\u3093\u307E\u3064","\u305F\u3093\u3081\u3044","\u3060\u3093\u308C\u3064","\u3060\u3093\u308D","\u3060\u3093\u308F","\u3061\u3042\u3044","\u3061\u3042\u3093","\u3061\u3044\u304D","\u3061\u3044\u3055\u3044","\u3061\u3048\u3093","\u3061\u304B\u3044","\u3061\u304B\u3089","\u3061\u304D\u3085\u3046","\u3061\u304D\u3093","\u3061\u3051\u3044\u305A","\u3061\u3051\u3093","\u3061\u3053\u304F","\u3061\u3055\u3044","\u3061\u3057\u304D","\u3061\u3057\u308A\u3087\u3046","\u3061\u305B\u3044","\u3061\u305D\u3046","\u3061\u305F\u3044","\u3061\u305F\u3093","\u3061\u3061\u304A\u3084","\u3061\u3064\u3058\u3087","\u3061\u3066\u304D","\u3061\u3066\u3093","\u3061\u306C\u304D","\u3061\u306C\u308A","\u3061\u306E\u3046","\u3061\u3072\u3087\u3046","\u3061\u3078\u3044\u305B\u3093","\u3061\u307B\u3046","\u3061\u307E\u305F","\u3061\u307F\u3064","\u3061\u307F\u3069\u308D","\u3061\u3081\u3044\u3069","\u3061\u3083\u3093\u3053\u306A\u3079","\u3061\u3085\u3046\u3044","\u3061\u3086\u308A\u3087\u304F","\u3061\u3087\u3046\u3057","\u3061\u3087\u3055\u304F\u3051\u3093","\u3061\u3089\u3057","\u3061\u3089\u307F","\u3061\u308A\u304C\u307F","\u3061\u308A\u3087\u3046","\u3061\u308B\u3069","\u3061\u308F\u308F","\u3061\u3093\u305F\u3044","\u3061\u3093\u3082\u304F","\u3064\u3044\u304B","\u3064\u3044\u305F\u3061","\u3064\u3046\u304B","\u3064\u3046\u3058\u3087\u3046","\u3064\u3046\u306F\u3093","\u3064\u3046\u308F","\u3064\u304B\u3046","\u3064\u304B\u308C\u308B","\u3064\u304F\u306D","\u3064\u304F\u308B","\u3064\u3051\u306D","\u3064\u3051\u308B","\u3064\u3054\u3046","\u3064\u305F\u3048\u308B","\u3064\u3065\u304F","\u3064\u3064\u3058","\u3064\u3064\u3080","\u3064\u3068\u3081\u308B","\u3064\u306A\u304C\u308B","\u3064\u306A\u307F","\u3064\u306D\u3065\u306D","\u3064\u306E\u308B","\u3064\u3076\u3059","\u3064\u307E\u3089\u306A\u3044","\u3064\u307E\u308B","\u3064\u307F\u304D","\u3064\u3081\u305F\u3044","\u3064\u3082\u308A","\u3064\u3082\u308B","\u3064\u3088\u3044","\u3064\u308B\u307C","\u3064\u308B\u307F\u304F","\u3064\u308F\u3082\u306E","\u3064\u308F\u308A","\u3066\u3042\u3057","\u3066\u3042\u3066","\u3066\u3042\u307F","\u3066\u3044\u304A\u3093","\u3066\u3044\u304B","\u3066\u3044\u304D","\u3066\u3044\u3051\u3044","\u3066\u3044\u3053\u304F","\u3066\u3044\u3055\u3064","\u3066\u3044\u3057","\u3066\u3044\u305B\u3044","\u3066\u3044\u305F\u3044","\u3066\u3044\u3069","\u3066\u3044\u306D\u3044","\u3066\u3044\u3072\u3087\u3046","\u3066\u3044\u3078\u3093","\u3066\u3044\u307C\u3046","\u3066\u3046\u3061","\u3066\u304A\u304F\u308C","\u3066\u304D\u3068\u3046","\u3066\u304F\u3073","\u3067\u3053\u307C\u3053","\u3066\u3055\u304E\u3087\u3046","\u3066\u3055\u3052","\u3066\u3059\u308A","\u3066\u305D\u3046","\u3066\u3061\u304C\u3044","\u3066\u3061\u3087\u3046","\u3066\u3064\u304C\u304F","\u3066\u3064\u3065\u304D","\u3067\u3063\u3071","\u3066\u3064\u307C\u3046","\u3066\u3064\u3084","\u3067\u306C\u304B\u3048","\u3066\u306C\u304D","\u3066\u306C\u3050\u3044","\u3066\u306E\u3072\u3089","\u3066\u306F\u3044","\u3066\u3076\u304F\u308D","\u3066\u3075\u3060","\u3066\u307B\u3069\u304D","\u3066\u307B\u3093","\u3066\u307E\u3048","\u3066\u307E\u304D\u305A\u3057","\u3066\u307F\u3058\u304B","\u3066\u307F\u3084\u3052","\u3066\u3089\u3059","\u3066\u308C\u3073","\u3066\u308F\u3051","\u3066\u308F\u305F\u3057","\u3067\u3093\u3042\u3064","\u3066\u3093\u3044\u3093","\u3066\u3093\u304B\u3044","\u3066\u3093\u304D","\u3066\u3093\u3050","\u3066\u3093\u3051\u3093","\u3066\u3093\u3054\u304F","\u3066\u3093\u3055\u3044","\u3066\u3093\u3057","\u3066\u3093\u3059\u3046","\u3067\u3093\u3061","\u3066\u3093\u3066\u304D","\u3066\u3093\u3068\u3046","\u3066\u3093\u306A\u3044","\u3066\u3093\u3077\u3089","\u3066\u3093\u307C\u3046\u3060\u3044","\u3066\u3093\u3081\u3064","\u3066\u3093\u3089\u3093\u304B\u3044","\u3067\u3093\u308A\u3087\u304F","\u3067\u3093\u308F","\u3069\u3042\u3044","\u3068\u3044\u308C","\u3069\u3046\u304B\u3093","\u3068\u3046\u304D\u3085\u3046","\u3069\u3046\u3050","\u3068\u3046\u3057","\u3068\u3046\u3080\u304E","\u3068\u304A\u3044","\u3068\u304A\u304B","\u3068\u304A\u304F","\u3068\u304A\u3059","\u3068\u304A\u308B","\u3068\u304B\u3044","\u3068\u304B\u3059","\u3068\u304D\u304A\u308A","\u3068\u304D\u3069\u304D","\u3068\u304F\u3044","\u3068\u304F\u3057\u3085\u3046","\u3068\u304F\u3066\u3093","\u3068\u304F\u306B","\u3068\u304F\u3079\u3064","\u3068\u3051\u3044","\u3068\u3051\u308B","\u3068\u3053\u3084","\u3068\u3055\u304B","\u3068\u3057\u3087\u304B\u3093","\u3068\u305D\u3046","\u3068\u305F\u3093","\u3068\u3061\u3085\u3046","\u3068\u3063\u304D\u3085\u3046","\u3068\u3063\u304F\u3093","\u3068\u3064\u305C\u3093","\u3068\u3064\u306B\u3085\u3046","\u3068\u3069\u3051\u308B","\u3068\u3068\u306E\u3048\u308B","\u3068\u306A\u3044","\u3068\u306A\u3048\u308B","\u3068\u306A\u308A","\u3068\u306E\u3055\u307E","\u3068\u3070\u3059","\u3069\u3076\u304C\u308F","\u3068\u307B\u3046","\u3068\u307E\u308B","\u3068\u3081\u308B","\u3068\u3082\u3060\u3061","\u3068\u3082\u308B","\u3069\u3088\u3046\u3073","\u3068\u3089\u3048\u308B","\u3068\u3093\u304B\u3064","\u3069\u3093\u3076\u308A","\u306A\u3044\u304B\u304F","\u306A\u3044\u3053\u3046","\u306A\u3044\u3057\u3087","\u306A\u3044\u3059","\u306A\u3044\u305B\u3093","\u306A\u3044\u305D\u3046","\u306A\u304A\u3059","\u306A\u304C\u3044","\u306A\u304F\u3059","\u306A\u3052\u308B","\u306A\u3053\u3046\u3069","\u306A\u3055\u3051","\u306A\u305F\u3067\u3053\u3053","\u306A\u3063\u3068\u3046","\u306A\u3064\u3084\u3059\u307F","\u306A\u306A\u304A\u3057","\u306A\u306B\u3054\u3068","\u306A\u306B\u3082\u306E","\u306A\u306B\u308F","\u306A\u306E\u304B","\u306A\u3075\u3060","\u306A\u307E\u3044\u304D","\u306A\u307E\u3048","\u306A\u307E\u307F","\u306A\u307F\u3060","\u306A\u3081\u3089\u304B","\u306A\u3081\u308B","\u306A\u3084\u3080","\u306A\u3089\u3046","\u306A\u3089\u3073","\u306A\u3089\u3076","\u306A\u308C\u308B","\u306A\u308F\u3068\u3073","\u306A\u308F\u3070\u308A","\u306B\u3042\u3046","\u306B\u3044\u304C\u305F","\u306B\u3046\u3051","\u306B\u304A\u3044","\u306B\u304B\u3044","\u306B\u304C\u3066","\u306B\u304D\u3073","\u306B\u304F\u3057\u307F","\u306B\u304F\u307E\u3093","\u306B\u3052\u308B","\u306B\u3055\u3093\u304B\u305F\u3093\u305D","\u306B\u3057\u304D","\u306B\u305B\u3082\u306E","\u306B\u3061\u3058\u3087\u3046","\u306B\u3061\u3088\u3046\u3073","\u306B\u3063\u304B","\u306B\u3063\u304D","\u306B\u3063\u3051\u3044","\u306B\u3063\u3053\u3046","\u306B\u3063\u3055\u3093","\u306B\u3063\u3057\u3087\u304F","\u306B\u3063\u3059\u3046","\u306B\u3063\u305B\u304D","\u306B\u3063\u3066\u3044","\u306B\u306A\u3046","\u306B\u307B\u3093","\u306B\u307E\u3081","\u306B\u3082\u3064","\u306B\u3084\u308A","\u306B\u3085\u3046\u3044\u3093","\u306B\u308A\u3093\u3057\u3083","\u306B\u308F\u3068\u308A","\u306B\u3093\u3044","\u306B\u3093\u304B","\u306B\u3093\u304D","\u306B\u3093\u3052\u3093","\u306B\u3093\u3057\u304D","\u306B\u3093\u305A\u3046","\u306B\u3093\u305D\u3046","\u306B\u3093\u305F\u3044","\u306B\u3093\u3061","\u306B\u3093\u3066\u3044","\u306B\u3093\u306B\u304F","\u306B\u3093\u3077","\u306B\u3093\u307E\u308A","\u306B\u3093\u3080","\u306B\u3093\u3081\u3044","\u306B\u3093\u3088\u3046","\u306C\u3044\u304F\u304E","\u306C\u304B\u3059","\u306C\u3050\u3044\u3068\u308B","\u306C\u3050\u3046","\u306C\u304F\u3082\u308A","\u306C\u3059\u3080","\u306C\u307E\u3048\u3073","\u306C\u3081\u308A","\u306C\u3089\u3059","\u306C\u3093\u3061\u3083\u304F","\u306D\u3042\u3052","\u306D\u3044\u304D","\u306D\u3044\u308B","\u306D\u3044\u308D","\u306D\u3050\u305B","\u306D\u304F\u305F\u3044","\u306D\u304F\u3089","\u306D\u3053\u305C","\u306D\u3053\u3080","\u306D\u3055\u3052","\u306D\u3059\u3054\u3059","\u306D\u305D\u3079\u308B","\u306D\u3060\u3093","\u306D\u3064\u3044","\u306D\u3063\u3057\u3093","\u306D\u3064\u305E\u3046","\u306D\u3063\u305F\u3044\u304E\u3087","\u306D\u3076\u305D\u304F","\u306D\u3075\u3060","\u306D\u307C\u3046","\u306D\u307B\u308A\u306F\u307B\u308A","\u306D\u307E\u304D","\u306D\u307E\u308F\u3057","\u306D\u307F\u307F","\u306D\u3080\u3044","\u306D\u3080\u305F\u3044","\u306D\u3082\u3068","\u306D\u3089\u3046","\u306D\u308F\u3056","\u306D\u3093\u3044\u308A","\u306D\u3093\u304A\u3057","\u306D\u3093\u304B\u3093","\u306D\u3093\u304D\u3093","\u306D\u3093\u3050","\u306D\u3093\u3056","\u306D\u3093\u3057","\u306D\u3093\u3061\u3083\u304F","\u306D\u3093\u3069","\u306D\u3093\u3074","\u306D\u3093\u3076\u3064","\u306D\u3093\u307E\u3064","\u306D\u3093\u308A\u3087\u3046","\u306D\u3093\u308C\u3044","\u306E\u3044\u305A","\u306E\u304A\u3065\u307E","\u306E\u304C\u3059","\u306E\u304D\u306A\u307F","\u306E\u3053\u304E\u308A","\u306E\u3053\u3059","\u306E\u3053\u308B","\u306E\u305B\u308B","\u306E\u305E\u304F","\u306E\u305E\u3080","\u306E\u305F\u307E\u3046","\u306E\u3061\u307B\u3069","\u306E\u3063\u304F","\u306E\u3070\u3059","\u306E\u306F\u3089","\u306E\u3079\u308B","\u306E\u307C\u308B","\u306E\u307F\u3082\u306E","\u306E\u3084\u307E","\u306E\u3089\u3044\u306C","\u306E\u3089\u306D\u3053","\u306E\u308A\u3082\u306E","\u306E\u308A\u3086\u304D","\u306E\u308C\u3093","\u306E\u3093\u304D","\u3070\u3042\u3044","\u306F\u3042\u304F","\u3070\u3042\u3055\u3093","\u3070\u3044\u304B","\u3070\u3044\u304F","\u306F\u3044\u3051\u3093","\u306F\u3044\u3054","\u306F\u3044\u3057\u3093","\u306F\u3044\u3059\u3044","\u306F\u3044\u305B\u3093","\u306F\u3044\u305D\u3046","\u306F\u3044\u3061","\u3070\u3044\u3070\u3044","\u306F\u3044\u308C\u3064","\u306F\u3048\u308B","\u306F\u304A\u308B","\u306F\u304B\u3044","\u3070\u304B\u308A","\u306F\u304B\u308B","\u306F\u304F\u3057\u3085","\u306F\u3051\u3093","\u306F\u3053\u3076","\u306F\u3055\u307F","\u306F\u3055\u3093","\u306F\u3057\u3054","\u3070\u3057\u3087","\u306F\u3057\u308B","\u306F\u305B\u308B","\u3071\u305D\u3053\u3093","\u306F\u305D\u3093","\u306F\u305F\u3093","\u306F\u3061\u307F\u3064","\u306F\u3064\u304A\u3093","\u306F\u3063\u304B\u304F","\u306F\u3065\u304D","\u306F\u3063\u304D\u308A","\u306F\u3063\u304F\u3064","\u306F\u3063\u3051\u3093","\u306F\u3063\u3053\u3046","\u306F\u3063\u3055\u3093","\u306F\u3063\u3057\u3093","\u306F\u3063\u305F\u3064","\u306F\u3063\u3061\u3085\u3046","\u306F\u3063\u3066\u3093","\u306F\u3063\u3074\u3087\u3046","\u306F\u3063\u307D\u3046","\u306F\u306A\u3059","\u306F\u306A\u3073","\u306F\u306B\u304B\u3080","\u306F\u3076\u3089\u3057","\u306F\u307F\u304C\u304D","\u306F\u3080\u304B\u3046","\u306F\u3081\u3064","\u306F\u3084\u3044","\u306F\u3084\u3057","\u306F\u3089\u3046","\u306F\u308D\u3046\u3043\u3093","\u306F\u308F\u3044","\u306F\u3093\u3044","\u306F\u3093\u3048\u3044","\u306F\u3093\u304A\u3093","\u306F\u3093\u304B\u304F","\u306F\u3093\u304D\u3087\u3046","\u3070\u3093\u3050\u307F","\u306F\u3093\u3053","\u306F\u3093\u3057\u3083","\u306F\u3093\u3059\u3046","\u306F\u3093\u3060\u3093","\u3071\u3093\u3061","\u3071\u3093\u3064","\u306F\u3093\u3066\u3044","\u306F\u3093\u3068\u3057","\u306F\u3093\u306E\u3046","\u306F\u3093\u3071","\u306F\u3093\u3076\u3093","\u306F\u3093\u307A\u3093","\u306F\u3093\u307C\u3046\u304D","\u306F\u3093\u3081\u3044","\u306F\u3093\u3089\u3093","\u306F\u3093\u308D\u3093","\u3072\u3044\u304D","\u3072\u3046\u3093","\u3072\u3048\u308B","\u3072\u304B\u304F","\u3072\u304B\u308A","\u3072\u304B\u308B","\u3072\u304B\u3093","\u3072\u304F\u3044","\u3072\u3051\u3064","\u3072\u3053\u3046\u304D","\u3072\u3053\u304F","\u3072\u3055\u3044","\u3072\u3055\u3057\u3076\u308A","\u3072\u3055\u3093","\u3073\u3058\u3085\u3064\u304B\u3093","\u3072\u3057\u3087","\u3072\u305D\u304B","\u3072\u305D\u3080","\u3072\u305F\u3080\u304D","\u3072\u3060\u308A","\u3072\u305F\u308B","\u3072\u3064\u304E","\u3072\u3063\u3053\u3057","\u3072\u3063\u3057","\u3072\u3064\u3058\u3085\u3072\u3093","\u3072\u3063\u3059","\u3072\u3064\u305C\u3093","\u3074\u3063\u305F\u308A","\u3074\u3063\u3061\u308A","\u3072\u3064\u3088\u3046","\u3072\u3066\u3044","\u3072\u3068\u3054\u307F","\u3072\u306A\u307E\u3064\u308A","\u3072\u306A\u3093","\u3072\u306D\u308B","\u3072\u306F\u3093","\u3072\u3073\u304F","\u3072\u3072\u3087\u3046","\u3072\u307B\u3046","\u3072\u307E\u308F\u308A","\u3072\u307E\u3093","\u3072\u307F\u3064","\u3072\u3081\u3044","\u3072\u3081\u3058\u3057","\u3072\u3084\u3051","\u3072\u3084\u3059","\u3072\u3088\u3046","\u3073\u3087\u3046\u304D","\u3072\u3089\u304C\u306A","\u3072\u3089\u304F","\u3072\u308A\u3064","\u3072\u308A\u3087\u3046","\u3072\u308B\u307E","\u3072\u308B\u3084\u3059\u307F","\u3072\u308C\u3044","\u3072\u308D\u3044","\u3072\u308D\u3046","\u3072\u308D\u304D","\u3072\u308D\u3086\u304D","\u3072\u3093\u304B\u304F","\u3072\u3093\u3051\u3064","\u3072\u3093\u3053\u3093","\u3072\u3093\u3057\u3085","\u3072\u3093\u305D\u3046","\u3074\u3093\u3061","\u3072\u3093\u3071\u3093","\u3073\u3093\u307C\u3046","\u3075\u3042\u3093","\u3075\u3044\u3046\u3061","\u3075\u3046\u3051\u3044","\u3075\u3046\u305B\u3093","\u3077\u3046\u305F\u308D\u3046","\u3075\u3046\u3068\u3046","\u3075\u3046\u3075","\u3075\u3048\u308B","\u3075\u304A\u3093","\u3075\u304B\u3044","\u3075\u304D\u3093","\u3075\u304F\u3056\u3064","\u3075\u304F\u3076\u304F\u308D","\u3075\u3053\u3046","\u3075\u3055\u3044","\u3075\u3057\u304E","\u3075\u3058\u307F","\u3075\u3059\u307E","\u3075\u305B\u3044","\u3075\u305B\u3050","\u3075\u305D\u304F","\u3076\u305F\u306B\u304F","\u3075\u305F\u3093","\u3075\u3061\u3087\u3046","\u3075\u3064\u3046","\u3075\u3064\u304B","\u3075\u3063\u304B\u3064","\u3075\u3063\u304D","\u3075\u3063\u3053\u304F","\u3076\u3069\u3046","\u3075\u3068\u308B","\u3075\u3068\u3093","\u3075\u306E\u3046","\u3075\u306F\u3044","\u3075\u3072\u3087\u3046","\u3075\u3078\u3093","\u3075\u307E\u3093","\u3075\u307F\u3093","\u3075\u3081\u3064","\u3075\u3081\u3093","\u3075\u3088\u3046","\u3075\u308A\u3053","\u3075\u308A\u308B","\u3075\u308B\u3044","\u3075\u3093\u3044\u304D","\u3076\u3093\u304C\u304F","\u3076\u3093\u3050","\u3075\u3093\u3057\u3064","\u3076\u3093\u305B\u304D","\u3075\u3093\u305D\u3046","\u3076\u3093\u307D\u3046","\u3078\u3044\u3042\u3093","\u3078\u3044\u304A\u3093","\u3078\u3044\u304C\u3044","\u3078\u3044\u304D","\u3078\u3044\u3052\u3093","\u3078\u3044\u3053\u3046","\u3078\u3044\u3055","\u3078\u3044\u3057\u3083","\u3078\u3044\u305B\u3064","\u3078\u3044\u305D","\u3078\u3044\u305F\u304F","\u3078\u3044\u3066\u3093","\u3078\u3044\u306D\u3064","\u3078\u3044\u308F","\u3078\u304D\u304C","\u3078\u3053\u3080","\u3079\u306B\u3044\u308D","\u3079\u306B\u3057\u3087\u3046\u304C","\u3078\u3089\u3059","\u3078\u3093\u304B\u3093","\u3079\u3093\u304D\u3087\u3046","\u3079\u3093\u3054\u3057","\u3078\u3093\u3055\u3044","\u3078\u3093\u305F\u3044","\u3079\u3093\u308A","\u307B\u3042\u3093","\u307B\u3044\u304F","\u307C\u3046\u304E\u3087","\u307B\u3046\u3053\u304F","\u307B\u3046\u305D\u3046","\u307B\u3046\u307B\u3046","\u307B\u3046\u3082\u3093","\u307B\u3046\u308A\u3064","\u307B\u3048\u308B","\u307B\u304A\u3093","\u307B\u304B\u3093","\u307B\u304D\u3087\u3046","\u307C\u304D\u3093","\u307B\u304F\u308D","\u307B\u3051\u3064","\u307B\u3051\u3093","\u307B\u3053\u3046","\u307B\u3053\u308B","\u307B\u3057\u3044","\u307B\u3057\u3064","\u307B\u3057\u3085","\u307B\u3057\u3087\u3046","\u307B\u305B\u3044","\u307B\u305D\u3044","\u307B\u305D\u304F","\u307B\u305F\u3066","\u307B\u305F\u308B","\u307D\u3061\u3076\u304F\u308D","\u307B\u3063\u304D\u3087\u304F","\u307B\u3063\u3055","\u307B\u3063\u305F\u3093","\u307B\u3068\u3093\u3069","\u307B\u3081\u308B","\u307B\u3093\u3044","\u307B\u3093\u304D","\u307B\u3093\u3051","\u307B\u3093\u3057\u3064","\u307B\u3093\u3084\u304F","\u307E\u3044\u306B\u3061","\u307E\u304B\u3044","\u307E\u304B\u305B\u308B","\u307E\u304C\u308B","\u307E\u3051\u308B","\u307E\u3053\u3068","\u307E\u3055\u3064","\u307E\u3058\u3081","\u307E\u3059\u304F","\u307E\u305C\u308B","\u307E\u3064\u308A","\u307E\u3068\u3081","\u307E\u306A\u3076","\u307E\u306C\u3051","\u307E\u306D\u304F","\u307E\u307B\u3046","\u307E\u3082\u308B","\u307E\u3086\u3052","\u307E\u3088\u3046","\u307E\u308D\u3084\u304B","\u307E\u308F\u3059","\u307E\u308F\u308A","\u307E\u308F\u308B","\u307E\u3093\u304C","\u307E\u3093\u304D\u3064","\u307E\u3093\u305E\u304F","\u307E\u3093\u306A\u304B","\u307F\u3044\u3089","\u307F\u3046\u3061","\u307F\u3048\u308B","\u307F\u304C\u304F","\u307F\u304B\u305F","\u307F\u304B\u3093","\u307F\u3051\u3093","\u307F\u3053\u3093","\u307F\u3058\u304B\u3044","\u307F\u3059\u3044","\u307F\u3059\u3048\u308B","\u307F\u305B\u308B","\u307F\u3063\u304B","\u307F\u3064\u304B\u308B","\u307F\u3064\u3051\u308B","\u307F\u3066\u3044","\u307F\u3068\u3081\u308B","\u307F\u306A\u3068","\u307F\u306A\u307F\u304B\u3055\u3044","\u307F\u306D\u3089\u308B","\u307F\u306E\u3046","\u307F\u306E\u304C\u3059","\u307F\u307B\u3093","\u307F\u3082\u3068","\u307F\u3084\u3052","\u307F\u3089\u3044","\u307F\u308A\u3087\u304F","\u307F\u308F\u304F","\u307F\u3093\u304B","\u307F\u3093\u305E\u304F","\u3080\u3044\u304B","\u3080\u3048\u304D","\u3080\u3048\u3093","\u3080\u304B\u3044","\u3080\u304B\u3046","\u3080\u304B\u3048","\u3080\u304B\u3057","\u3080\u304E\u3061\u3083","\u3080\u3051\u308B","\u3080\u3052\u3093","\u3080\u3055\u307C\u308B","\u3080\u3057\u3042\u3064\u3044","\u3080\u3057\u3070","\u3080\u3058\u3085\u3093","\u3080\u3057\u308D","\u3080\u3059\u3046","\u3080\u3059\u3053","\u3080\u3059\u3076","\u3080\u3059\u3081","\u3080\u305B\u308B","\u3080\u305B\u3093","\u3080\u3061\u3085\u3046","\u3080\u306A\u3057\u3044","\u3080\u306E\u3046","\u3080\u3084\u307F","\u3080\u3088\u3046","\u3080\u3089\u3055\u304D","\u3080\u308A\u3087\u3046","\u3080\u308D\u3093","\u3081\u3044\u3042\u3093","\u3081\u3044\u3046\u3093","\u3081\u3044\u3048\u3093","\u3081\u3044\u304B\u304F","\u3081\u3044\u304D\u3087\u304F","\u3081\u3044\u3055\u3044","\u3081\u3044\u3057","\u3081\u3044\u305D\u3046","\u3081\u3044\u3076\u3064","\u3081\u3044\u308C\u3044","\u3081\u3044\u308F\u304F","\u3081\u3050\u307E\u308C\u308B","\u3081\u3056\u3059","\u3081\u3057\u305F","\u3081\u305A\u3089\u3057\u3044","\u3081\u3060\u3064","\u3081\u307E\u3044","\u3081\u3084\u3059","\u3081\u3093\u304D\u3087","\u3081\u3093\u305B\u304D","\u3081\u3093\u3069\u3046","\u3082\u3046\u3057\u3042\u3052\u308B","\u3082\u3046\u3069\u3046\u3051\u3093","\u3082\u3048\u308B","\u3082\u304F\u3057","\u3082\u304F\u3066\u304D","\u3082\u304F\u3088\u3046\u3073","\u3082\u3061\u308D\u3093","\u3082\u3069\u308B","\u3082\u3089\u3046","\u3082\u3093\u304F","\u3082\u3093\u3060\u3044","\u3084\u304A\u3084","\u3084\u3051\u308B","\u3084\u3055\u3044","\u3084\u3055\u3057\u3044","\u3084\u3059\u3044","\u3084\u3059\u305F\u308D\u3046","\u3084\u3059\u307F","\u3084\u305B\u308B","\u3084\u305D\u3046","\u3084\u305F\u3044","\u3084\u3061\u3093","\u3084\u3063\u3068","\u3084\u3063\u3071\u308A","\u3084\u3076\u308B","\u3084\u3081\u308B","\u3084\u3084\u3053\u3057\u3044","\u3084\u3088\u3044","\u3084\u308F\u3089\u304B\u3044","\u3086\u3046\u304D","\u3086\u3046\u3073\u3093\u304D\u3087\u304F","\u3086\u3046\u3079","\u3086\u3046\u3081\u3044","\u3086\u3051\u3064","\u3086\u3057\u3085\u3064","\u3086\u305B\u3093","\u3086\u305D\u3046","\u3086\u305F\u304B","\u3086\u3061\u3083\u304F","\u3086\u3067\u308B","\u3086\u306B\u3085\u3046","\u3086\u3073\u308F","\u3086\u3089\u3044","\u3086\u308C\u308B","\u3088\u3046\u3044","\u3088\u3046\u304B","\u3088\u3046\u304D\u3085\u3046","\u3088\u3046\u3058","\u3088\u3046\u3059","\u3088\u3046\u3061\u3048\u3093","\u3088\u304B\u305C","\u3088\u304B\u3093","\u3088\u304D\u3093","\u3088\u304F\u305B\u3044","\u3088\u304F\u307C\u3046","\u3088\u3051\u3044","\u3088\u3054\u308C\u308B","\u3088\u3055\u3093","\u3088\u3057\u3085\u3046","\u3088\u305D\u3046","\u3088\u305D\u304F","\u3088\u3063\u304B","\u3088\u3066\u3044","\u3088\u3069\u304C\u308F\u304F","\u3088\u306D\u3064","\u3088\u3084\u304F","\u3088\u3086\u3046","\u3088\u308D\u3053\u3076","\u3088\u308D\u3057\u3044","\u3089\u3044\u3046","\u3089\u304F\u304C\u304D","\u3089\u304F\u3054","\u3089\u304F\u3055\u3064","\u3089\u304F\u3060","\u3089\u3057\u3093\u3070\u3093","\u3089\u305B\u3093","\u3089\u305E\u304F","\u3089\u305F\u3044","\u3089\u3063\u304B","\u3089\u308C\u3064","\u308A\u3048\u304D","\u308A\u304B\u3044","\u308A\u304D\u3055\u304F","\u308A\u304D\u305B\u3064","\u308A\u304F\u3050\u3093","\u308A\u304F\u3064","\u308A\u3051\u3093","\u308A\u3053\u3046","\u308A\u305B\u3044","\u308A\u305D\u3046","\u308A\u305D\u304F","\u308A\u3066\u3093","\u308A\u306D\u3093","\u308A\u3086\u3046","\u308A\u3085\u3046\u304C\u304F","\u308A\u3088\u3046","\u308A\u3087\u3046\u308A","\u308A\u3087\u304B\u3093","\u308A\u3087\u304F\u3061\u3083","\u308A\u3087\u3053\u3046","\u308A\u308A\u304F","\u308A\u308C\u304D","\u308A\u308D\u3093","\u308A\u3093\u3054","\u308B\u3044\u3051\u3044","\u308B\u3044\u3055\u3044","\u308B\u3044\u3058","\u308B\u3044\u305B\u304D","\u308B\u3059\u3070\u3093","\u308B\u308A\u304C\u308F\u3089","\u308C\u3044\u304B\u3093","\u308C\u3044\u304E","\u308C\u3044\u305B\u3044","\u308C\u3044\u305E\u3046\u3053","\u308C\u3044\u3068\u3046","\u308C\u3044\u307C\u3046","\u308C\u304D\u3057","\u308C\u304D\u3060\u3044","\u308C\u3093\u3042\u3044","\u308C\u3093\u3051\u3044","\u308C\u3093\u3053\u3093","\u308C\u3093\u3055\u3044","\u308C\u3093\u3057\u3085\u3046","\u308C\u3093\u305E\u304F","\u308C\u3093\u3089\u304F","\u308D\u3046\u304B","\u308D\u3046\u3054","\u308D\u3046\u3058\u3093","\u308D\u3046\u305D\u304F","\u308D\u304F\u304C","\u308D\u3053\u3064","\u308D\u3058\u3046\u3089","\u308D\u3057\u3085\u3064","\u308D\u305B\u3093","\u308D\u3066\u3093","\u308D\u3081\u3093","\u308D\u308C\u3064","\u308D\u3093\u304E","\u308D\u3093\u3071","\u308D\u3093\u3076\u3093","\u308D\u3093\u308A","\u308F\u304B\u3059","\u308F\u304B\u3081","\u308F\u304B\u3084\u307E","\u308F\u304B\u308C\u308B","\u308F\u3057\u3064","\u308F\u3058\u307E\u3057","\u308F\u3059\u308C\u3082\u306E","\u308F\u3089\u3046","\u308F\u308C\u308B"];we.space="\u3000";const Oe=["a\u0301baco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","accio\u0301n","aceite","acelga","acento","aceptar","a\u0301cido","aclarar","acne\u0301","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","ae\u0301reo","afectar","aficio\u0301n","afinar","afirmar","a\u0301gil","agitar","agoni\u0301a","agosto","agotar","agregar","agrio","agua","agudo","a\u0301guila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacra\u0301n","alambre","alarma","alba","a\u0301lbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodo\u0301n","aliado","aliento","alivio","alma","almeja","almi\u0301bar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","a\u0301mbar","a\u0301mbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","ande\u0301n","anemia","a\u0301ngulo","anillo","a\u0301nimo","ani\u0301s","anotar","antena","antiguo","antojo","anual","anular","anuncio","an\u0303adir","an\u0303ejo","an\u0303o","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","aran\u0303a","arar","a\u0301rbitro","a\u0301rbol","arbusto","archivo","arco","arder","ardilla","arduo","a\u0301rea","a\u0301rido","aries","armoni\u0301a","arne\u0301s","aroma","arpa","arpo\u0301n","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","a\u0301spero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","a\u0301tico","atleta","a\u0301tomo","atraer","atroz","atu\u0301n","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avio\u0301n","aviso","ayer","ayuda","ayuno","azafra\u0301n","azar","azote","azu\u0301car","azufre","azul","baba","babor","bache","bahi\u0301a","baile","bajar","balanza","balco\u0301n","balde","bambu\u0301","banco","banda","ban\u0303o","barba","barco","barniz","barro","ba\u0301scula","basto\u0301n","basura","batalla","bateri\u0301a","batir","batuta","bau\u0301l","bazar","bebe\u0301","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsa\u0301i","borde","borrar","bosque","bote","boti\u0301n","bo\u0301veda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufo\u0301n","bu\u0301ho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzo\u0301n","caballo","cabeza","cabina","cabra","cacao","cada\u0301ver","cadena","caer","cafe\u0301","cai\u0301da","caima\u0301n","caja","cajo\u0301n","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","ca\u0301ncer","candil","canela","canguro","canica","canto","can\u0303a","can\u0303o\u0301n","caoba","caos","capaz","capita\u0301n","capote","captar","capucha","cara","carbo\u0301n","ca\u0301rcel","careta","carga","carin\u0303o","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","ce\u0301lebre","celoso","ce\u0301lula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","ce\u0301sped","cetro","chacal","chaleco","champu\u0301","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclo\u0301n","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","cipre\u0301s","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","cli\u0301nica","cobre","coccio\u0301n","cochino","cocina","coco","co\u0301digo","codo","cofre","coger","cohete","coji\u0301n","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","co\u0301modo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazo\u0301n","corbata","corcho","cordo\u0301n","corona","correr","coser","cosmos","costa","cra\u0301neo","cra\u0301ter","crear","crecer","crei\u0301do","crema","cri\u0301a","crimen","cripta","crisis","cromo","cro\u0301nica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupo\u0301n","cu\u0301pula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","da\u0301til","deber","de\u0301bil","de\u0301cada","decir","dedo","defensa","definir","dejar","delfi\u0301n","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvi\u0301o","detalle","detener","deuda","di\u0301a","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difi\u0301cil","digno","dilema","diluir","dinero","directo","dirigir","disco","disen\u0303o","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","drago\u0301n","droga","ducha","duda","duelo","duen\u0303o","dulce","du\u0301o","duque","durar","dureza","duro","e\u0301bano","ebrio","echar","eco","ecuador","edad","edicio\u0301n","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","e\u0301lite","elixir","elogio","eludir","embudo","emitir","emocio\u0301n","empate","empen\u0303o","empleo","empresa","enano","encargo","enchufe","enci\u0301a","enemigo","enero","enfado","enfermo","engan\u0303o","enigma","enlace","enorme","enredo","ensayo","ensen\u0303ar","entero","entrar","envase","envi\u0301o","e\u0301poca","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espi\u0301a","esposa","espuma","esqui\u0301","estar","este","estilo","estufa","etapa","eterno","e\u0301tica","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","e\u0301xito","experto","explicar","exponer","extremo","fa\u0301brica","fa\u0301bula","fachada","fa\u0301cil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","farao\u0301n","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fe\u0301rtil","fervor","festi\u0301n","fiable","fianza","fiar","fibra","ficcio\u0301n","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flu\u0301or","fobia","foca","fogata","fogo\u0301n","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","fra\u0301gil","franja","frase","fraude","frei\u0301r","freno","fresa","fri\u0301o","frito","fruta","fuego","fuente","fuerza","fuga","fumar","funcio\u0301n","funda","furgo\u0301n","furia","fusil","fu\u0301tbol","futuro","gacela","gafas","gaita","gajo","gala","galeri\u0301a","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavila\u0301n","gemelo","gemir","gen","ge\u0301nero","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gra\u0301fico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","gru\u0301a","grueso","grumo","grupo","guante","guapo","guardia","guerra","gui\u0301a","guin\u0303o","guion","guiso","guitarra","gusano","gustar","haber","ha\u0301bil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazan\u0303a","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","he\u0301roe","hervir","hielo","hierro","hi\u0301gado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","hu\u0301medo","humilde","humo","hundir","huraca\u0301n","hurto","icono","ideal","idioma","i\u0301dolo","iglesia","iglu\u0301","igual","ilegal","ilusio\u0301n","imagen","ima\u0301n","imitar","impar","imperio","imponer","impulso","incapaz","i\u0301ndice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","intere\u0301s","i\u0301ntimo","intuir","inu\u0301til","invierno","ira","iris","ironi\u0301a","isla","islote","jabali\u0301","jabo\u0301n","jamo\u0301n","jarabe","jardi\u0301n","jarra","jaula","jazmi\u0301n","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","ju\u0301piter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladro\u0301n","lagarto","la\u0301grima","laguna","laico","lamer","la\u0301mina","la\u0301mpara","lana","lancha","langosta","lanza","la\u0301piz","largo","larva","la\u0301stima","lata","la\u0301tex","latir","laurel","lavar","lazo","leal","leccio\u0301n","leche","lector","leer","legio\u0301n","legumbre","lejano","lengua","lento","len\u0303a","leo\u0301n","leopardo","lesio\u0301n","letal","letra","leve","leyenda","libertad","libro","licor","li\u0301der","lidiar","lienzo","liga","ligero","lima","li\u0301mite","limo\u0301n","limpio","lince","lindo","li\u0301nea","lingote","lino","linterna","li\u0301quido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","locio\u0301n","loco","locura","lo\u0301gica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","mai\u0301z","maldad","maleta","malla","malo","mama\u0301","mambo","mamut","manco","mando","manejar","manga","maniqui\u0301","manjar","mano","manso","manta","man\u0303ana","mapa","ma\u0301quina","mar","marco","marea","marfil","margen","marido","ma\u0301rmol","marro\u0301n","martes","marzo","masa","ma\u0301scara","masivo","matar","materia","matiz","matriz","ma\u0301ximo","mayor","mazorca","mecha","medalla","medio","me\u0301dula","mejilla","mejor","melena","melo\u0301n","memoria","menor","mensaje","mente","menu\u0301","mercado","merengue","me\u0301rito","mes","meso\u0301n","meta","meter","me\u0301todo","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millo\u0301n","mimo","mina","minero","mi\u0301nimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","mocio\u0301n","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","mon\u0303o","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","mo\u0301vil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","mun\u0303eca","mural","muro","mu\u0301sculo","museo","musgo","mu\u0301sica","muslo","na\u0301car","nacio\u0301n","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","na\u0301usea","naval","nave","navidad","necio","ne\u0301ctar","negar","negocio","negro","neo\u0301n","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","nin\u0303ez","nin\u0303o","ni\u0301tido","nivel","nobleza","noche","no\u0301mina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","nu\u0301cleo","nudillo","nudo","nuera","nueve","nuez","nulo","nu\u0301mero","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","oce\u0301ano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oi\u0301do","oi\u0301r","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opcio\u0301n","o\u0301pera","opinar","oponer","optar","o\u0301ptica","opuesto","oracio\u0301n","orador","oral","o\u0301rbita","orca","orden","oreja","o\u0301rgano","orgi\u0301a","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadi\u0301a","oscuro","osezno","oso","ostra","oton\u0303o","otro","oveja","o\u0301vulo","o\u0301xido","oxi\u0301geno","oyente","ozono","pacto","padre","paella","pa\u0301gina","pago","pai\u0301s","pa\u0301jaro","palabra","palco","paleta","pa\u0301lido","palma","paloma","palpar","pan","panal","pa\u0301nico","pantera","pan\u0303uelo","papa\u0301","papel","papilla","paquete","parar","parcela","pared","parir","paro","pa\u0301rpado","parque","pa\u0301rrafo","parte","pasar","paseo","pasio\u0301n","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peato\u0301n","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldan\u0303o","pelea","peligro","pellejo","pelo","peluca","pena","pensar","pen\u0303o\u0301n","peo\u0301n","peor","pepino","pequen\u0303o","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pe\u0301simo","pestan\u0303a","pe\u0301talo","petro\u0301leo","pez","pezun\u0303a","picar","picho\u0301n","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","pin\u0303a","piojo","pipa","pirata","pisar","piscina","piso","pista","pito\u0301n","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesi\u0301a","poeta","polen","polici\u0301a","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porcio\u0301n","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","pri\u0301ncipe","prisio\u0301n","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","pro\u0301ximo","prueba","pu\u0301blico","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmo\u0301n","pulpo","pulso","puma","punto","pun\u0303al","pun\u0303o","pupa","pupila","pure\u0301","quedar","queja","quemar","querer","queso","quieto","qui\u0301mica","quince","quitar","ra\u0301bano","rabia","rabo","racio\u0301n","radical","rai\u0301z","rama","rampa","rancho","rango","rapaz","ra\u0301pido","rapto","rasgo","raspa","rato","rayo","raza","razo\u0301n","reaccio\u0301n","realidad","reban\u0303o","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refra\u0301n","refugio","regalo","regir","regla","regreso","rehe\u0301n","reino","rei\u0301r","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","reve\u0301s","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","ri\u0301gido","rigor","rinco\u0301n","rin\u0303o\u0301n","ri\u0301o","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubi\u0301","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sa\u0301bado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmo\u0301n","salo\u0301n","salsa","salto","salud","salvar","samba","sancio\u0301n","sandi\u0301a","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sarte\u0301n","sastre","sata\u0301n","sauna","saxofo\u0301n","seccio\u0301n","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","sen\u0303al","sen\u0303or","separar","sepia","sequi\u0301a","ser","serie","sermo\u0301n","servir","sesenta","sesio\u0301n","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","si\u0301laba","silbar","silencio","silla","si\u0301mbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","so\u0301lido","soltar","solucio\u0301n","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","soste\u0301n","so\u0301tano","suave","subir","suceso","sudor","suegra","suelo","suen\u0303o","suerte","sufrir","sujeto","sulta\u0301n","sumar","superar","suplir","suponer","supremo","sur","surco","suren\u0303o","surgir","susto","sutil","tabaco","tabique","tabla","tabu\u0301","taco","tacto","tajo","talar","talco","talento","talla","talo\u0301n","taman\u0303o","tambor","tango","tanque","tapa","tapete","tapia","tapo\u0301n","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazo\u0301n","teatro","techo","tecla","te\u0301cnica","tejado","tejer","tejido","tela","tele\u0301fono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teori\u0301a","terapia","terco","te\u0301rmino","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburo\u0301n","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","ti\u0301mido","timo","tinta","ti\u0301o","ti\u0301pico","tipo","tira","tiro\u0301n","tita\u0301n","ti\u0301tere","ti\u0301tulo","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","to\u0301rax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","to\u0301xico","trabajo","tractor","traer","tra\u0301fico","trago","traje","tramo","trance","trato","trauma","trazar","tre\u0301bol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tuberi\u0301a","tubo","tuerto","tumba","tumor","tu\u0301nel","tu\u0301nica","turbina","turismo","turno","tutor","ubicar","u\u0301lcera","umbral","unidad","unir","universo","uno","untar","un\u0303a","urbano","urbe","urgente","urna","usar","usuario","u\u0301til","utopi\u0301a","uva","vaca","vaci\u0301o","vacuna","vagar","vago","vaina","vajilla","vale","va\u0301lido","valle","valor","va\u0301lvula","vampiro","vara","variar","varo\u0301n","vaso","vecino","vector","vehi\u0301culo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vi\u0301a","viaje","vibrar","vicio","vi\u0301ctima","vida","vi\u0301deo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","vin\u0303edo","violi\u0301n","viral","virgo","virtud","visor","vi\u0301spera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volca\u0301n","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"];Oe.space=" ";class Ve extends L{static{o(this,"Bip39")}constructor(e,t,i){super({mnemonic:e,seed:t,wordlist:i}),this.Wordlist=Ue,this.es=Oe,this.jp=we}setLang(e){switch(e){default:case"en":this.Wordlist=Ue;break;case"es":this.Wordlist=Oe;break;case"jp":this.Wordlist=we;break}}toBw(e){if(e||(e=new I),this.mnemonic){const t=Buffer.from(this.mnemonic);e.writeVarIntNum(t.length),e.write(t)}else e.writeVarIntNum(0);return this.seed?(e.writeVarIntNum(this.seed.length),e.write(this.seed)):e.writeVarIntNum(0),e}fromBr(e){const t=e.readVarIntNum();t>0&&(this.mnemonic=e.read(t).toString());const i=e.readVarIntNum();return i>0&&(this.seed=e.read(i)),this}fromRandom(e){if(e||(e=128),e%32!==0)throw new Error("bits must be multiple of 32");if(e<128)throw new Error("bits must be at least 128");const t=te.getRandomBuffer(e/8);return this.entropy2Mnemonic(t),this.mnemonic2Seed(),this}static fromRandom(e){return new this().fromRandom(e)}async asyncFromRandom(e){e||(e=128);const t=te.getRandomBuffer(e/8);let i=await z.asyncObjectMethod(this,"entropy2Mnemonic",[t]);const c=new Ve().fromFastBuffer(i.resbuf);return i=await z.asyncObjectMethod(c,"mnemonic2Seed",[]),this.fromFastBuffer(i.resbuf)}static asyncFromRandom(e){return new this().asyncFromRandom(e)}fromEntropy(e){return this.entropy2Mnemonic(e),this}static fromEntropy(e){return new this().fromEntropy(e)}async asyncFromEntropy(e){const t=await z.asyncObjectMethod(this,"fromEntropy",[e]);return this.fromFastBuffer(t.resbuf)}static asyncFromEntropy(e){return new this().asyncFromEntropy(e)}fromString(e){return this.mnemonic=e.trim(),this}toString(){return this.mnemonic}toSeed(e){return this.mnemonic2Seed(e),this.seed}async asyncToSeed(e){e===void 0&&(e="");const t=[e];return(await z.asyncObjectMethod(this,"toSeed",t)).resbuf}entropy2Mnemonic(e){if(!Buffer.isBuffer(e)||e.length<128/8)throw new Error("Entropy is less than 128 bits. It must be 128 bits or more.");const t=U.sha256(e);let i="";const c=e.length*8;for(let N=0;N<e.length;N++)i=i+("00000000"+e[N].toString(2)).slice(-8);let p=t[0].toString(2);if(p=("00000000"+p).slice(-8).slice(0,c/32),i=i+p,i.length%11!==0)throw new Error("internal error - entropy not an even multiple of 11 bits - "+i.length);let O="";for(let N=0;N<i.length/11;N++){O!==""&&(O=O+this.Wordlist.space);const q=parseInt(i.slice(N*11,(N+1)*11),2);O=O+this.Wordlist[q]}return this.mnemonic=O,this}check(){const t=this.mnemonic.split(this.Wordlist.space);let i="";for(let oe=0;oe<t.length;oe++){const ie=this.Wordlist.indexOf(t[oe]);if(ie<0)return!1;i=i+("00000000000"+ie.toString(2)).slice(-11)}if(i.length%11!==0)throw new Error("internal error - entropy not an even multiple of 11 bits - "+i.length);const c=i.length/33,p=i.slice(-c),O=i.slice(0,i.length-c),N=Buffer.alloc(O.length/8);for(let oe=0;oe<O.length/8;oe++)N.writeUInt8(parseInt(i.slice(oe*8,(oe+1)*8),2),oe);let X=U.sha256(N)[0].toString(2);return X=("00000000"+X).slice(-8).slice(0,c),X===p}mnemonic2Seed(e=""){let t=this.mnemonic;if(!this.check())throw new Error("Mnemonic does not pass the check - was the mnemonic typed incorrectly? Are there extra spaces?");if(typeof e!="string")throw new Error("passphrase must be a string or undefined");t=t.normalize("NFKD"),e=e.normalize("NFKD");const i=Buffer.from(t),c=Buffer.concat([Buffer.from("mnemonic"),Buffer.from(e)]);return this.seed=M.pbkdf2Sync(i,c,2048,64,"sha512"),this}isValid(e=""){let t;try{t=!!this.mnemonic2Seed(e)}catch{t=!1}return t}static isValid(e,t=""){return new Ve(e).isValid(t)}}class pe extends L{static{o(this,"KeyPair")}constructor(e,t,i=re){super({privKey:e,pubKey:t}),this.PrivKey=i}fromJSON(e){return e.privKey&&(this.privKey=this.PrivKey.fromJSON(e.privKey)),e.pubKey&&(this.pubKey=g.fromJSON(e.pubKey)),this}fromBr(e){const t=e.readUInt8();t>0&&(this.privKey=new this.PrivKey().fromFastBuffer(e.read(t)));const i=e.readUInt8();return i>0&&(this.pubKey=new g().fromFastBuffer(e.read(i))),this}toBw(e){if(e||(e=new I),this.privKey){const t=this.privKey.toFastBuffer();e.writeUInt8(t.length),e.write(t)}else e.writeUInt8(0);if(this.pubKey){const t=this.pubKey.toFastBuffer();e.writeUInt8(t.length),e.write(t)}else e.writeUInt8(0);return e}fromString(e){return this.fromJSON(JSON.parse(e))}toString(){return JSON.stringify(this.toJSON())}toPublic(){const e=new pe().fromObject(this);return e.privKey=void 0,e}fromPrivKey(e){return this.privKey=e,this.pubKey=new g().fromPrivKey(e),this}static fromPrivKey(e){return new this().fromPrivKey(e)}async asyncFromPrivKey(e){return this.privKey=e,this.pubKey=await new g().asyncFromPrivKey(e),this}static asyncFromPrivKey(e){return new this().asyncFromPrivKey(e)}fromRandom(){return this.privKey=new this.PrivKey().fromRandom(),this.pubKey=new g().fromPrivKey(this.privKey),this}static fromRandom(){return new this().fromRandom()}async asyncFromRandom(){return this.privKey=new this.PrivKey().fromRandom(),this.asyncFromPrivKey(this.privKey)}static asyncFromRandom(){return new this().asyncFromRandom()}}pe.Mainnet=class extends pe{constructor(d,e){super(d,e,re.Mainnet)}},pe.Testnet=class extends pe{constructor(d,e){super(d,e,re.Testnet)}};class ge extends L{static{o(this,"Ecdsa")}constructor(e,t,i,c,p,O){super({sig:e,keyPair:t,hashBuf:i,k:c,endian:p,verified:O})}toJSON(){return{sig:this.sig?this.sig.toString():void 0,keyPair:this.keyPair?this.keyPair.toBuffer().toString("hex"):void 0,hashBuf:this.hashBuf?this.hashBuf.toString("hex"):void 0,k:this.k?this.k.toString():void 0,endian:this.endian,verified:this.verified}}fromJSON(e){return this.sig=e.sig?new Q().fromString(e.sig):void 0,this.keyPair=e.keyPair?new pe().fromBuffer(Buffer.from(e.keyPair,"hex")):void 0,this.hashBuf=e.hashBuf?Buffer.from(e.hashBuf,"hex"):void 0,this.k=e.k?new f().fromString(e.k):void 0,this.endian=e.endian,this.verified=e.verified,this}toBuffer(){const e=JSON.stringify(this.toJSON());return Buffer.from(e)}fromBuffer(e){const t=JSON.parse(e.toString());return this.fromJSON(t)}calcrecovery(){for(let e=0;e<4;e++){let t;this.sig.recovery=e;try{t=this.sig2PubKey()}catch{continue}if(t.point.eq(this.keyPair.pubKey.point)){const i=this.keyPair.pubKey.compressed;return this.sig.compressed=this.keyPair.pubKey.compressed===void 0?!0:i,this}}throw this.sig.recovery=void 0,new Error("Unable to find valid recovery factor")}async asyncCalcrecovery(){const e=await z.asyncObjectMethod(this,"calcrecovery",[]);return this.fromFastBuffer(e.resbuf)}static calcrecovery(e,t,i){return new ge().fromObject({sig:e,keyPair:new pe().fromObject({pubKey:t}),hashBuf:i}).calcrecovery().sig}static async asyncCalcrecovery(e,t,i){const c=await z.asyncClassMethod(ge,"calcrecovery",[e,t,i]);return new Q().fromFastBuffer(c.resbuf)}fromString(e){const t=JSON.parse(e);return t.hashBuf&&(this.hashBuf=Buffer.from(t.hashBuf,"hex")),t.keyPair&&(this.keyPair=new pe().fromString(t.keyPair)),t.sig&&(this.sig=new Q().fromString(t.sig)),t.k&&(this.k=new f(t.k,10)),this}randomK(){const e=S.getN();let t;do t=new f().fromBuffer(te.getRandomBuffer(32));while(!(t.lt(e)&&t.gt(0)));return this.k=t,this}deterministicK(e){let t=Buffer.alloc(32);t.fill(1);let i=Buffer.alloc(32);i.fill(0);const c=this.keyPair.privKey.bn.toBuffer({size:32});i=U.sha256Hmac(Buffer.concat([t,Buffer.from([0]),c,this.hashBuf]),i),t=U.sha256Hmac(t,i),i=U.sha256Hmac(Buffer.concat([t,Buffer.from([1]),c,this.hashBuf]),i),t=U.sha256Hmac(t,i),t=U.sha256Hmac(t,i);let p=new f().fromBuffer(t);const O=S.getN();e===void 0&&(e=0);for(let N=0;N<e||!(p.lt(O)&&p.gt(0));N++)i=U.sha256Hmac(Buffer.concat([t,Buffer.from([0])]),i),t=U.sha256Hmac(t,i),t=U.sha256Hmac(t,i),p=new f().fromBuffer(t);return this.k=p,this}sig2PubKey(){const e=this.sig.recovery;if(!(e===0||e===1||e===2||e===3))throw new Error("i must be equal to 0, 1, 2, or 3");const t=new f().fromBuffer(this.hashBuf),i=this.sig.r,c=this.sig.s,p=e&1,O=e>>1,N=S.getN(),q=S.getG(),X=O?i.add(N):i,oe=S.fromX(p,X);let ie="";try{oe.mul(N)}catch(Xe){ie=Xe.message}if(ie!=="point mul out of range")throw new Error("nR is not a valid curve point");const ne=t.neg().umod(N),Ce=i.invm(N),ve=oe.mul(c).add(q.mul(ne)).mul(Ce),me=new g(ve);return me.compressed=this.sig.compressed,me.validate(),me}async asyncSig2PubKey(){const e=await z.asyncObjectMethod(this,"sig2PubKey",[]);return g.fromFastBuffer(e.resbuf)}static sig2PubKey(e,t){return new ge().fromObject({sig:e,hashBuf:t}).sig2PubKey()}static async asyncSig2PubKey(e,t){return await new ge().fromObject({sig:e,hashBuf:t}).asyncSig2PubKey()}verifyStr(e=!0){if(!Buffer.isBuffer(this.hashBuf)||this.hashBuf.length!==32)return"hashBuf must be a 32 byte buffer";try{this.keyPair.pubKey.validate()}catch(oe){return"Invalid pubKey: "+oe}const t=this.sig.r,i=this.sig.s;if(!(t.gt(0)&&t.lt(S.getN()))||!(i.gt(0)&&i.lt(S.getN())))return"r and s not in range";if(e&&!this.sig.hasLowS())return"s is too high and does not satisfy low s contraint - see bip 62";const c=new f().fromBuffer(this.hashBuf,this.endian?{endian:this.endian}:void 0),p=S.getN(),O=i.invm(p),N=O.mul(c).mod(p),q=O.mul(t).mod(p),X=S.getG().mulAdd(N,this.keyPair.pubKey.point,q);return X.isInfinity()?"p is infinity":X.getX().mod(p).cmp(t)!==0?"Invalid signature":!1}sign(){const e=this.endian==="little"?new P(this.hashBuf).readReverse():this.hashBuf,t=this.keyPair.privKey,i=t.bn;if(!e||!t||!i)throw new Error("invalid parameters");if(!Buffer.isBuffer(e)||e.length!==32)throw new Error("hashBuf must be a 32 byte buffer");const c=S.getN(),p=S.getG(),O=new f().fromBuffer(e);let N=0,q,X,oe,ie;do(!this.k||N>0)&&this.deterministicK(N),N++,q=this.k,X=p.mul(q),oe=X.getX().mod(c),ie=q.invm(c).mul(O.add(i.mul(oe))).mod(c);while(oe.cmp(0)<=0||ie.cmp(0)<=0);return ie.gt(new f().fromBuffer(Buffer.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(ie=S.getN().sub(ie)),this.sig=Q.fromObject({r:oe,s:ie,compressed:this.keyPair.pubKey.compressed}),this}async asyncSign(){const e=await z.asyncObjectMethod(this,"sign",[]);return this.fromFastBuffer(e.resbuf)}signRandomK(){return this.randomK(),this.sign()}toString(){const e={};return this.hashBuf&&(e.hashBuf=this.hashBuf.toString("hex")),this.keyPair&&(e.keyPair=this.keyPair.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)}verify(e=!0){return this.verifyStr(e)?this.verified=!1:this.verified=!0,this}async asyncVerify(e=!0){const t=await z.asyncObjectMethod(this,"verify",[e]);return this.fromFastBuffer(t.resbuf)}static sign(e,t,i){return new ge().fromObject({hashBuf:e,endian:i,keyPair:t}).sign().sig}static async asyncSign(e,t,i){const c=new ge().fromObject({hashBuf:e,endian:i,keyPair:t});return await c.asyncSign(),c.sig}static verify(e,t,i,c,p=!0){return new ge().fromObject({hashBuf:e,endian:c,sig:t,keyPair:new pe().fromObject({pubKey:i})}).verify(p).verified}static async asyncVerify(e,t,i,c,p=!0){const O=new ge().fromObject({hashBuf:e,endian:c,sig:t,keyPair:new pe().fromObject({pubKey:i})});return await O.asyncVerify(p),O.verified}}class Ke extends L{static{o(this,"Bsm")}constructor(e,t,i,c,p){super({messageBuf:e,keyPair:t,sig:i,address:c,verified:p})}static magicHash(e){if(!Buffer.isBuffer(e))throw new Error("messageBuf must be a buffer");const t=new I;t.writeVarIntNum(Ke.magicBytes.length),t.write(Ke.magicBytes),t.writeVarIntNum(e.length),t.write(e);const i=t.toBuffer();return U.sha256Sha256(i)}static async asyncMagicHash(e){const t=[e];return(await z.asyncClassMethod(Ke,"magicHash",t)).resbuf}static sign(e,t){const i=new Ke(e,t);return i.sign(),i.sig.toCompact().toString("base64")}static async asyncSign(e,t){const i=[e,t],c=await z.asyncClassMethod(Ke,"sign",i);return JSON.parse(c.resbuf.toString())}static verify(e,t,i){const c=Buffer.from(t,"base64"),p=new Ke;return p.messageBuf=e,p.sig=new Q().fromCompact(c),p.address=i,p.verify().verified}static async asyncVerify(e,t,i){const c=[e,t,i],p=await z.asyncClassMethod(Ke,"verify",c);return JSON.parse(p.resbuf.toString())}sign(){const e=Ke.magicHash(this.messageBuf),t=new ge().fromObject({hashBuf:e,keyPair:this.keyPair});return t.sign(),t.calcrecovery(),this.sig=t.sig,this}verify(){const e=Ke.magicHash(this.messageBuf),t=new ge;if(t.hashBuf=e,t.sig=this.sig,t.keyPair=new pe,t.keyPair.pubKey=t.sig2PubKey(),!t.verify())return this.verified=!1,this;const i=new ue().fromPubKey(t.keyPair.pubKey,void 0,this.sig.compressed);return j(i.hashBuf,this.address.hashBuf)?this.verified=!0:this.verified=!1,this}}Ke.magicBytes=Buffer.from(`Bitcoin Signed Message:
|
|
2
|
+
`);class Ee extends L{static{o(this,"BlockHeader")}constructor(e,t,i,c,p,O){super({versionBytesNum:e,prevBlockHashBuf:t,merkleRootBuf:i,time:c,bits:p,nonce:O})}fromJSON(e){return this.fromObject({versionBytesNum:e.versionBytesNum,prevBlockHashBuf:Buffer.from(e.prevBlockHashBuf,"hex"),merkleRootBuf:Buffer.from(e.merkleRootBuf,"hex"),time:e.time,bits:e.bits,nonce:e.nonce}),this}toJSON(){return{versionBytesNum:this.versionBytesNum,prevBlockHashBuf:this.prevBlockHashBuf.toString("hex"),merkleRootBuf:this.merkleRootBuf.toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}}fromBr(e){return this.versionBytesNum=e.readUInt32LE(),this.prevBlockHashBuf=e.read(32),this.merkleRootBuf=e.read(32),this.time=e.readUInt32LE(),this.bits=e.readUInt32LE(),this.nonce=e.readUInt32LE(),this}toBw(e){return e||(e=new I),e.writeUInt32LE(this.versionBytesNum),e.write(this.prevBlockHashBuf),e.write(this.merkleRootBuf),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e}}class _e extends L{static{o(this,"Merkle")}constructor(e,t,i,c){super({hashBuf:e,buf:t,merkle1:i,merkle2:c})}hash(){if(this.hashBuf)return this.hashBuf;if(this.buf)return U.sha256Sha256(this.buf);const e=this.merkle1.hash(),t=this.merkle2.hash();return this.buf=Buffer.concat([e,t]),U.sha256Sha256(this.buf)}fromBuffers(e){if(e.length<1)throw new Error("buffers must have a length");e=e.slice();const t=Math.log2(e.length);if(!Number.isInteger(t)){const O=e[e.length-1];var i=Math.pow(2,Math.ceil(t));for(let N=e.length;N<i;N++)e.push(O)}const c=e.slice(0,e.length/2),p=e.slice(e.length/2);return this.fromBufferArrays(c,p),this}static fromBuffers(e){return new this().fromBuffers(e)}fromBufferArrays(e,t){if(e.length===1)return this.merkle1=new _e(void 0,e[0]),this.merkle2=new _e(void 0,t[0]),this;const i=e.slice(0,e.length/2),c=e.slice(e.length/2);this.merkle1=new _e().fromBufferArrays(i,c);const p=t.slice(0,t.length/2),O=t.slice(t.length/2);return this.merkle2=new _e().fromBufferArrays(p,O),this}static fromBufferArrays(e,t){return new this().fromBufferArrays(e,t)}leavesNum(){if(this.merkle1)return this.merkle1.leavesNum()+this.merkle2.leavesNum();if(this.buf)return 1;throw new Error("invalid number of leaves")}}class We extends L{static{o(this,"HashCache")}constructor(e,t,i){super(),this.fromObject({prevoutsHashBuf:e,sequenceHashBuf:t,outputsHashBuf:i})}fromBuffer(e){return this.fromJSON(JSON.parse(e.toString()))}toBuffer(){return Buffer.from(JSON.stringify(this.toJSON()))}fromJSON(e){return this.prevoutsHashBuf=e.prevoutsHashBuf?Buffer.from(e.prevoutsHashBuf,"hex"):void 0,this.sequenceHashBuf=e.sequenceHashBuf?Buffer.from(e.sequenceHashBuf,"hex"):void 0,this.outputsHashBuf=e.outputsHashBuf?Buffer.from(e.outputsHashBuf,"hex"):void 0,this}toJSON(){return{prevoutsHashBuf:this.prevoutsHashBuf?this.prevoutsHashBuf.toString("hex"):void 0,sequenceHashBuf:this.sequenceHashBuf?this.sequenceHashBuf.toString("hex"):void 0,outputsHashBuf:this.outputsHashBuf?this.outputsHashBuf.toString("hex"):void 0}}}class le extends L{static{o(this,"VarInt")}constructor(e){super({buf:e})}fromJSON(e){return this.fromObject({buf:Buffer.from(e,"hex")}),this}toJSON(){return this.buf.toString("hex")}fromBuffer(e){return this.buf=e,this}fromBr(e){return this.buf=e.readVarIntBuf(),this}fromBn(e){return this.buf=new I().writeVarIntBn(e).toBuffer(),this}static fromBn(e){return new this().fromBn(e)}fromNumber(e){return this.buf=new I().writeVarIntNum(e).toBuffer(),this}static fromNumber(e){return new this().fromNumber(e)}toBuffer(){return this.buf}toBn(){return new P(this.buf).readVarIntBn()}toNumber(){return new P(this.buf).readVarIntNum()}}class he extends L{static{o(this,"TxIn")}constructor(e,t,i,c,p=4294967295){super({txHashBuf:e,txOutNum:t,scriptVi:i,script:c,nSequence:p})}setScript(e){return this.scriptVi=le.fromNumber(e.toBuffer().length),this.script=e,this}fromProperties(e,t,i,c){return this.fromObject({txHashBuf:e,txOutNum:t,nSequence:c}),this.setScript(i),this}static fromProperties(e,t,i,c){return new this().fromProperties(e,t,i,c)}fromJSON(e){return this.fromObject({txHashBuf:typeof e.txHashBuf<"u"?Buffer.from(e.txHashBuf,"hex"):void 0,txOutNum:e.txOutNum,scriptVi:typeof e.scriptVi<"u"?le.fromJSON(e.scriptVi):void 0,script:typeof e.script<"u"?ee.fromJSON(e.script):void 0,nSequence:e.nSequence}),this}toJSON(){return{txHashBuf:typeof this.txHashBuf<"u"?this.txHashBuf.toString("hex"):void 0,txOutNum:this.txOutNum,scriptVi:typeof this.scriptVi<"u"?this.scriptVi.toJSON():void 0,script:typeof this.script<"u"?this.script.toJSON():void 0,nSequence:this.nSequence}}fromBr(e){return this.txHashBuf=e.read(32),this.txOutNum=e.readUInt32LE(),this.scriptVi=le.fromBuffer(e.readVarIntBuf()),this.script=ee.fromBuffer(e.read(this.scriptVi.toNumber())),this.nSequence=e.readUInt32LE(),this}toBw(e){return e||(e=new I),e.write(this.txHashBuf),e.writeUInt32LE(this.txOutNum),e.write(this.scriptVi.buf),e.write(this.script.toBuffer()),e.writeUInt32LE(this.nSequence),e}fromPubKeyHashTxOut(e,t,i,c){const p=new ee;if(i.script.isPubKeyHashOut())p.writeOpCode(s.OP_0),c?p.writeBuffer(c.toBuffer()):p.writeOpCode(s.OP_0);else throw new Error("txOut must be of type pubKeyHash");return this.txHashBuf=e,this.txOutNum=t,this.setScript(p),this}hasNullInput(){return this.txHashBuf.toString("hex")==="0000000000000000000000000000000000000000000000000000000000000000"&&this.txOutNum===4294967295}setNullInput(){this.txHashBuf=Buffer.alloc(32),this.txHashBuf.fill(0),this.txOutNum=4294967295}}he.LOCKTIME_VERIFY_SEQUENCE=1,he.SEQUENCE_FINAL=4294967295,he.SEQUENCE_LOCKTIME_DISABLE_FLAG=1<<31,he.SEQUENCE_LOCKTIME_TYPE_FLAG=1<<22,he.SEQUENCE_LOCKTIME_MASK=65535,he.SEQUENCE_LOCKTIME_GRANULARITY=9;class De extends L{static{o(this,"TxOut")}constructor(e,t,i){super({valueBn:e,scriptVi:t,script:i})}setScript(e){return this.scriptVi=le.fromNumber(e.toBuffer().length),this.script=e,this}fromProperties(e,t){return this.fromObject({valueBn:e}),this.setScript(t),this}static fromProperties(e,t){return new this().fromProperties(e,t)}fromJSON(e){return this.fromObject({valueBn:new f().fromJSON(e.valueBn),scriptVi:new le().fromJSON(e.scriptVi),script:new ee().fromJSON(e.script)}),this}toJSON(){return{valueBn:this.valueBn.toJSON(),scriptVi:this.scriptVi.toJSON(),script:this.script.toJSON()}}fromBr(e){return this.valueBn=e.readUInt64LEBn(),this.scriptVi=le.fromNumber(e.readVarIntNum()),this.script=new ee().fromBuffer(e.read(this.scriptVi.toNumber())),this}toBw(e){return e||(e=new I),e.writeUInt64LEBn(this.valueBn),e.write(this.scriptVi.buf),e.write(this.script.toBuffer()),e}}class fe extends L{static{o(this,"Tx")}constructor(e=1,t=le.fromNumber(0),i=[],c=le.fromNumber(0),p=[],O=0){super({versionBytesNum:e,txInsVi:t,txIns:i,txOutsVi:c,txOuts:p,nLockTime:O})}fromJSON(e){const t=[];e.txIns.forEach(function(c){t.push(new he().fromJSON(c))});const i=[];return e.txOuts.forEach(function(c){i.push(new De().fromJSON(c))}),this.fromObject({versionBytesNum:e.versionBytesNum,txInsVi:new le().fromJSON(e.txInsVi),txIns:t,txOutsVi:new le().fromJSON(e.txOutsVi),txOuts:i,nLockTime:e.nLockTime}),this}toJSON(){const e=[];this.txIns.forEach(function(i){e.push(i.toJSON())});const t=[];return this.txOuts.forEach(function(i){t.push(i.toJSON())}),{versionBytesNum:this.versionBytesNum,txInsVi:this.txInsVi.toJSON(),txIns:e,txOutsVi:this.txOutsVi.toJSON(),txOuts:t,nLockTime:this.nLockTime}}fromBr(e){this.versionBytesNum=e.readUInt32LE(),this.txInsVi=new le(e.readVarIntBuf());const t=this.txInsVi.toNumber();this.txIns=[];for(let c=0;c<t;c++)this.txIns.push(new he().fromBr(e));this.txOutsVi=new le(e.readVarIntBuf());const i=this.txOutsVi.toNumber();this.txOuts=[];for(let c=0;c<i;c++)this.txOuts.push(new De().fromBr(e));return this.nLockTime=e.readUInt32LE(),this}toBw(e){e||(e=new I),e.writeUInt32LE(this.versionBytesNum),e.write(this.txInsVi.buf);for(let t=0;t<this.txIns.length;t++)this.txIns[t].toBw(e);e.write(this.txOutsVi.buf);for(let t=0;t<this.txOuts.length;t++)this.txOuts[t].toBw(e);return e.writeUInt32LE(this.nLockTime),e}hashPrevouts(){const e=new I;for(const t in this.txIns){const i=this.txIns[t];e.write(i.txHashBuf),e.writeUInt32LE(i.txOutNum)}return U.sha256Sha256(e.toBuffer())}hashSequence(){const e=new I;for(const t in this.txIns){const i=this.txIns[t];e.writeUInt32LE(i.nSequence)}return U.sha256Sha256(e.toBuffer())}hashOutputs(){const e=new I;for(const t in this.txOuts){const i=this.txOuts[t];e.write(i.toBuffer())}return U.sha256Sha256(e.toBuffer())}sighash(e,t,i,c,p=fe.SCRIPT_ENABLE_SIGHASH_FORKID,O=new We){const N=this.sighashPreimage(e,t,i,c,p,O);return N.compare(Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex"))===0?N:new P(U.sha256Sha256(N)).readReverse()}async asyncSighash(e,t,i,c,p=0,O={}){return(await z.asyncObjectMethod(this,"sighash",[e,t,i,c,p,O])).resbuf}sighashPreimage(e,t,i,c,p=fe.SCRIPT_ENABLE_SIGHASH_FORKID,O=new We){if(e&Q.SIGHASH_FORKID&&p&fe.SCRIPT_ENABLE_SIGHASH_FORKID){let X=Buffer.alloc(32,0),oe=Buffer.alloc(32,0),ie=Buffer.alloc(32,0);e&Q.SIGHASH_ANYONECANPAY||(X=O.prevoutsHashBuf?O.prevoutsHashBuf:O.prevoutsHashBuf=this.hashPrevouts()),!(e&Q.SIGHASH_ANYONECANPAY)&&(e&31)!==Q.SIGHASH_SINGLE&&(e&31)!==Q.SIGHASH_NONE&&(oe=O.sequenceHashBuf?O.sequenceHashBuf:O.sequenceHashBuf=this.hashSequence()),(e&31)!==Q.SIGHASH_SINGLE&&(e&31)!==Q.SIGHASH_NONE?ie=O.outputsHashBuf?O.outputsHashBuf:O.outputsHashBuf=this.hashOutputs():(e&31)===Q.SIGHASH_SINGLE&&t<this.txOuts.length&&(ie=U.sha256Sha256(this.txOuts[t].toBuffer()));const ne=new I;return ne.writeUInt32LE(this.versionBytesNum),ne.write(X),ne.write(oe),ne.write(this.txIns[t].txHashBuf),ne.writeUInt32LE(this.txIns[t].txOutNum),ne.writeVarIntNum(i.toBuffer().length),ne.write(i.toBuffer()),ne.writeUInt64LEBn(c),ne.writeUInt32LE(this.txIns[t].nSequence),ne.write(ie),ne.writeUInt32LE(this.nLockTime),ne.writeUInt32LE(e>>>0),ne.toBuffer()}const N=this.cloneByBuffer();i=new ee().fromBuffer(i.toBuffer()),i.removeCodeseparators();for(let X=0;X<N.txIns.length;X++)N.txIns[X]=he.fromBuffer(N.txIns[X].toBuffer()).setScript(new ee);if(N.txIns[t]=he.fromBuffer(N.txIns[t].toBuffer()).setScript(i),(e&31)===Q.SIGHASH_NONE){N.txOuts.length=0,N.txOutsVi=le.fromNumber(0);for(let X=0;X<N.txIns.length;X++)X!==t&&(N.txIns[X].nSequence=0)}else if((e&31)===Q.SIGHASH_SINGLE){if(t>N.txOuts.length-1)return Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex");N.txOuts.length=t+1,N.txOutsVi=le.fromNumber(t+1);for(let X=0;X<N.txOuts.length;X++)X<t&&(N.txOuts[X]=De.fromProperties(new f().fromBuffer(Buffer.from("ffffffffffffffff","hex")),new ee));for(let X=0;X<N.txIns.length;X++)X!==t&&(N.txIns[X].nSequence=0)}return e&Q.SIGHASH_ANYONECANPAY&&(N.txIns[0]=N.txIns[t],N.txIns.length=1,N.txInsVi=le.fromNumber(1)),new I().write(N.toBuffer()).writeInt32LE(e).toBuffer()}async asyncSighashPreimage(e,t,i,c,p=0,O={}){return(await z.asyncObjectMethod(this,"sighashPreimage",[e,t,i,c,p,O])).resbuf}sign(e,t=Q.SIGHASH_ALL|Q.SIGHASH_FORKID,i,c,p,O=fe.SCRIPT_ENABLE_SIGHASH_FORKID,N={}){const q=this.sighash(t,i,c,p,O,N);return this.preImageBuf=q,ge.sign(q,e,"little").fromObject({nHashType:t})}async asyncSign(e,t=Q.SIGHASH_ALL|Q.SIGHASH_FORKID,i,c,p,O=fe.SCRIPT_ENABLE_SIGHASH_FORKID,N={}){const q=await z.asyncObjectMethod(this,"sign",[e,t,i,c,p,O,N]);return new Q().fromFastBuffer(q.resbuf)}verify(e,t,i,c,p=!1,O,N=fe.SCRIPT_ENABLE_SIGHASH_FORKID,q={}){const X=this.sighash(e.nHashType,i,c,O,N,q);return ge.verify(X,e,t,"little",p)}async asyncVerify(e,t,i,c,p=!1,O,N=fe.SCRIPT_ENABLE_SIGHASH_FORKID,q={}){const X=await z.asyncObjectMethod(this,"verify",[e,t,i,c,p,O,N,q]);return JSON.parse(X.resbuf.toString())}hash(){return U.sha256Sha256(this.toBuffer())}async asyncHash(){return(await z.asyncObjectMethod(this,"hash",[])).resbuf}id(){return new P(this.hash()).readReverse().toString("hex")}async asyncId(){const e=await z.asyncObjectMethod(this,"id",[]);return JSON.parse(e.resbuf.toString())}addTxIn(e,t,i,c){let p;return e instanceof he?p=e:p=new he().fromObject({txHashBuf:e,txOutNum:t,nSequence:c}).setScript(i),this.txIns.push(p),this.txInsVi=le.fromNumber(this.txInsVi.toNumber()+1),this}addTxOut(e,t){let i;return e instanceof De?i=e:i=new De().fromObject({valueBn:e}).setScript(t),this.txOuts.push(i),this.txOutsVi=le.fromNumber(this.txOutsVi.toNumber()+1),this}isCoinbase(){return this.txIns.length===1&&this.txIns[0].hasNullInput()}sort(){return this.txIns.sort((e,t)=>new P(e.txHashBuf).readReverse().compare(new P(t.txHashBuf).readReverse())||e.txOutNum-t.txOutNum),this.txOuts.sort((e,t)=>e.valueBn.sub(t.valueBn).toNumber()||e.script.toBuffer().compare(t.script.toBuffer())),this}}fe.MAX_MONEY=21e6*1e8,fe.SCRIPT_ENABLE_SIGHASH_FORKID=65536;class Re extends L{static{o(this,"Block")}constructor(e,t,i){super({blockHeader:e,txsVi:t,txs:i})}fromJSON(e){const t=[];return e.txs.forEach(function(i){t.push(new fe().fromJSON(i))}),this.fromObject({blockHeader:new Ee().fromJSON(e.blockHeader),txsVi:new le().fromJSON(e.txsVi),txs:t}),this}toJSON(){const e=[];return this.txs.forEach(function(t){e.push(t.toJSON())}),{blockHeader:this.blockHeader.toJSON(),txsVi:this.txsVi.toJSON(),txs:e}}fromBr(e){this.blockHeader=new Ee().fromBr(e),this.txsVi=new le(e.readVarIntBuf());const t=this.txsVi.toNumber();this.txs=[];for(let i=0;i<t;i++)this.txs.push(new fe().fromBr(e));return this}toBw(e){e||(e=new I),e.write(this.blockHeader.toBuffer()),e.write(this.txsVi.buf);const t=this.txsVi.toNumber();for(let i=0;i<t;i++)this.txs[i].toBw(e);return e}hash(){return U.sha256Sha256(this.blockHeader.toBuffer())}async asyncHash(){return(await z.asyncObjectMethod(this,"hash",[])).resbuf}id(){return new P(this.hash()).readReverse().toString("hex")}async asyncId(){const e=await z.asyncObjectMethod(this,"id",[]);return JSON.parse(e.resbuf.toString())}verifyMerkleRoot(){const e=this.txs.map(i=>i.toBuffer()),t=_e.fromBuffers(e).hash();return Buffer.compare(t,this.blockHeader.merkleRootBuf)}static iterateTxs(e){const t=new P(e),i=new Ee().fromBr(t),c=new le(t.readVarIntBuf()),p=c.toNumber();return{blockHeader:i,txsVi:c,txsNum:p,*[Symbol.iterator](){for(let O=0;O<p;O++)yield new fe().fromBr(t)}}}}Re.MAX_BLOCK_SIZE=1e6;const Qe=o(d=>{if(d.length===0)return d;const e=d[d.length-1];if(e&127)return d;if(d.length===1)return[];if(d[d.length-2]&128)return d;for(let t=d.length-1;t>0;t--)if(d[t-1]!==0)return d[t-1]&128?(d[t]=e,d.slice(0,t+1)):(d[t-1]|=e,d.slice(0,t));return[]},"minimallyEncode");class G extends L{static{o(this,"Interp")}constructor(e,t,i,c=[],p=[],O=0,N=0,q=0,X=[],oe="",ie=G.defaultFlags,ne=new f(0)){super({script:e,tx:t,nIn:i,stack:c,altStack:p,pc:O,pBeginCodeHash:N,nOpCount:q,ifStack:X,errStr:oe,flags:ie,valueBn:ne})}initialize(){return this.script=new ee,this.stack=[],this.altStack=[],this.pc=0,this.pBeginCodeHash=0,this.nOpCount=0,this.ifStack=[],this.errStr="",this.flags=G.defaultFlags,this.scriptLimit=1e7,this.stackLimit=1e7,this}fromJSON(e){return this.fromJSONNoTx(e),this.tx=e.tx?new fe().fromJSON(e.tx):void 0,this}fromJSONNoTx(e){return this.fromObject({script:e.script!==void 0?new ee().fromJSON(e.script):void 0,nIn:e.nIn}),this.stack=[],e.stack.forEach(function(t){this.stack.push(Buffer.from(t,"hex"))}.bind(this)),this.altStack=[],e.altStack.forEach(function(t){this.altStack.push(Buffer.from(t,"hex"))}.bind(this)),this.fromObject({pc:e.pc,pBeginCodeHash:e.pBeginCodeHash,nOpCount:e.nOpCount,ifStack:e.ifStack,errStr:e.errStr,flags:e.flags}),this}fromBr(e){let t=e.readVarIntNum(),i=e.read(t);this.fromJSONNoTx(JSON.parse(i.toString()));let c=e.readVarIntNum();if(c>0){let p=e.read(c);this.tx=new fe().fromFastBuffer(p)}return this}toJSON(){let e=this.toJSONNoTx();return e.tx=this.tx?this.tx.toJSON():void 0,e}toJSONNoTx(){let e=[];this.stack.forEach(function(i){e.push(i.toString("hex"))});let t=[];return this.altStack.forEach(function(i){t.push(i.toString("hex"))}),{script:this.script?this.script.toJSON():void 0,nIn:this.nIn,stack:e,altStack:t,pc:this.pc,pBeginCodeHash:this.pBeginCodeHash,nOpCount:this.nOpCount,ifStack:this.ifStack,errStr:this.errStr,flags:this.flags,preImage:this?.preImage?this.preImage.toString("hex"):"",hashBuf:this?.hashBuf?this.hashBuf.toString("hex"):""}}toBw(e){e||(e=new I);let t=Buffer.from(JSON.stringify(this.toJSONNoTx()));if(e.writeVarIntNum(t.length),e.write(t),this.tx){let i=this.tx.toFastBuffer();e.writeVarIntNum(i.length),e.write(i)}else e.writeVarIntNum(0);return e}static getFlags(e){let t=0;return e.indexOf("NONE")!==-1&&(t=t|G.SCRIPT_VERIFY_NONE),e.indexOf("P2SH")!==-1&&(t=t|G.SCRIPT_VERIFY_P2SH),e.indexOf("STRICTENC")!==-1&&(t=t|G.SCRIPT_VERIFY_STRICTENC),e.indexOf("DERSIG")!==-1&&(t=t|G.SCRIPT_VERIFY_DERSIG),e.indexOf("LOW_S")!==-1&&(t=t|G.SCRIPT_VERIFY_LOW_S),e.indexOf("NULLDUMMY")!==-1&&(t=t|G.SCRIPT_VERIFY_NULLDUMMY),e.indexOf("SIGPUSHONLY")!==-1&&(t=t|G.SCRIPT_VERIFY_SIGPUSHONLY),e.indexOf("MINIMALDATA")!==-1&&(t=t|G.SCRIPT_VERIFY_MINIMALDATA),e.indexOf("DISCOURAGE_UPGRADABLE_NOPS")!==-1&&(t=t|G.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS),e.indexOf("CLEANSTACK")!==-1&&(t=t|G.SCRIPT_VERIFY_CLEANSTACK),e.indexOf("CHECKLOCKTIMEVERIFY")!==-1&&(t=t|G.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY),e.indexOf("CHECKSEQUENCEVERIFY")!==-1&&(t=t|G.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY),e.indexOf("SIGHASH_FORKID")!==-1&&(t=t|G.SCRIPT_ENABLE_SIGHASH_FORKID),t}static castToBool(e){for(let t=0;t<e.length;t++)if(e[t]!==0)return!(t===e.length-1&&e[t]===128);return!1}checkSigEncoding(e){if(e.length===0)return!0;if(this.flags&(G.SCRIPT_VERIFY_DERSIG|G.SCRIPT_VERIFY_LOW_S|G.SCRIPT_VERIFY_STRICTENC)&&!Q.IsTxDer(e))return this.errStr="SCRIPT_ERR_SIG_DER",!1;if(this.flags&G.SCRIPT_VERIFY_LOW_S){if(!new Q().fromTxFormat(e).hasLowS())return this.errStr="SCRIPT_ERR_SIG_DER",!1}else if(this.flags&G.SCRIPT_VERIFY_STRICTENC&&!new Q().fromTxFormat(e).hasDefinedHashType())return this.errStr="SCRIPT_ERR_SIG_HASHTYPE",!1;return!0}checkPubKeyEncoding(e){return this.flags&G.SCRIPT_VERIFY_STRICTENC&&!g.isCompressedOrUncompressed(e)?(this.errStr="SCRIPT_ERR_PUBKEYTYPE",!1):!0}checkLockTime(e){return!(!(this.tx.nLockTime<G.LOCKTIME_THRESHOLD&&e<G.LOCKTIME_THRESHOLD||this.tx.nLockTime>=G.LOCKTIME_THRESHOLD&&e>=G.LOCKTIME_THRESHOLD)||e>this.tx.nLockTime||he.SEQUENCE_FINAL===this.tx.txIns[this.nIn].nSequence)}checkSequence(e){let t=this.tx.txIns[this.nIn].nSequence;if(this.tx.versionBytesNum<2||t&he.SEQUENCE_LOCKTIME_DISABLE_FLAG)return!1;let i=he.SEQUENCE_LOCKTIME_TYPE_FLAG|he.SEQUENCE_LOCKTIME_MASK,c=t&i,p=e&i;return!(!(c<he.SEQUENCE_LOCKTIME_TYPE_FLAG&&p<he.SEQUENCE_LOCKTIME_TYPE_FLAG||c>=he.SEQUENCE_LOCKTIME_TYPE_FLAG&&p>=he.SEQUENCE_LOCKTIME_TYPE_FLAG)||p>c)}*eval(){this.script.toBuffer().length>this.scriptLimit&&(this.errStr="SCRIPT_ERR_SCRIPT_SIZE",yield!1);try{for(;this.pc<this.script.chunks.length;){let e=this.step();e?yield e:yield!1}this.stack.length+this.altStack.length>this.stackLimit&&(this.errStr="SCRIPT_ERR_STACK_SIZE",yield!1)}catch(e){this.errStr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,yield!1}this.ifStack.length>0&&(this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",yield!1),yield!0}step(){let e=(this.flags&G.SCRIPT_VERIFY_MINIMALDATA)!==0,t=!(this.ifStack.indexOf(!1)+1),i=this.script.chunks[this.pc];this.pc++;let c=i.opCodeNum;if(c===void 0)return this.errStr="SCRIPT_ERR_BAD_OPCODE",!1;if(i.buf&&i.buf.length>G.MAX_SCRIPT_ELEMENT_SIZE)return this.errStr="SCRIPT_ERR_PUSH_SIZE",!1;if(c>s.OP_16&&++this.nOpCount>201)return this.errStr="SCRIPT_ERR_OP_COUNT",!1;if(c===s.OP_2MUL||c===s.OP_2DIV)return this.errStr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(t&&c>=0&&c<=s.OP_PUSHDATA4){if(e&&!this.script.checkMinimalPush(this.pc-1))return this.errStr="SCRIPT_ERR_MINIMALDATA",!1;if(!i.buf)this.stack.push(G.false);else{if(i.len!==i.buf.length)throw new Error("LEngth of push value not equal to length of data");this.stack.push(i.buf)}}else if(t||s.OP_IF<=c&&c<=s.OP_ENDIF)switch(c){case s.OP_1NEGATE:case s.OP_1:case s.OP_2:case s.OP_3:case s.OP_4:case s.OP_5:case s.OP_6:case s.OP_7:case s.OP_8:case s.OP_9:case s.OP_10:case s.OP_11:case s.OP_12:case s.OP_13:case s.OP_14:case s.OP_15:case s.OP_16:{let D=c-(s.OP_1-1),$=new f(D).toScriptNumBuffer();this.stack.push($)}break;case s.OP_NOP:break;case s.OP_CHECKLOCKTIMEVERIFY:{if(!(this.flags&G.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&G.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errStr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=this.stack[this.stack.length-1],se=new f().fromScriptNumBuffer(D,e,5).toNumber();if(se<0)return this.errStr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(se))return this.errStr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1}break;case s.OP_CHECKSEQUENCEVERIFY:{if(!(this.flags&G.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY)){if(this.flags&G.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errStr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=this.stack[this.stack.length-1],se=new f().fromScriptNumBuffer(D,e,5).toNumber();if(se<0)return this.errStr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(se&he.SEQUENCE_LOCKTIME_DISABLE_FLAG)break;if(!this.checkSequence(se))return this.errStr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1}break;case s.OP_NOP1:case s.OP_NOP3:case s.OP_NOP4:case s.OP_NOP5:case s.OP_NOP6:case s.OP_NOP7:case s.OP_NOP8:case s.OP_NOP9:case s.OP_NOP10:if(this.flags&G.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errStr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case s.OP_IF:case s.OP_NOTIF:{let D=!1;if(t){if(this.stack.length<1)return this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;let $=this.stack.pop();D=G.castToBool($),c===s.OP_NOTIF&&(D=!D)}this.ifStack.push(D)}break;case s.OP_ELSE:if(this.ifStack.length===0)return this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.ifStack[this.ifStack.length-1]=!this.ifStack[this.ifStack.length-1];break;case s.OP_ENDIF:if(this.ifStack.length===0)return this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.ifStack.pop();break;case s.OP_VERIFY:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=this.stack[this.stack.length-1];if(G.castToBool(D))this.stack.pop();else return this.errStr="SCRIPT_ERR_VERIFY",!1}break;case s.OP_RETURN:return this.errStr="SCRIPT_ERR_OP_RETURN",!1;case s.OP_TOALTSTACK:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altStack.push(this.stack.pop());break;case s.OP_FROMALTSTACK:if(this.altStack.length<1)return this.errStr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altStack.pop());break;case s.OP_2DROP:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case s.OP_2DUP:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=this.stack[this.stack.length-2],$=this.stack[this.stack.length-1];this.stack.push(D),this.stack.push($)}break;case s.OP_3DUP:{if(this.stack.length<3)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=this.stack[this.stack.length-3],$=this.stack[this.stack.length-2],se=this.stack[this.stack.length-1];this.stack.push(D),this.stack.push($),this.stack.push(se)}break;case s.OP_2OVER:{if(this.stack.length<4)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=this.stack[this.stack.length-4],$=this.stack[this.stack.length-3];this.stack.push(D),this.stack.push($)}break;case s.OP_2ROT:{if(this.stack.length<6)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=this.stack.splice(this.stack.length-6,2);this.stack.push(D[0]),this.stack.push(D[1])}break;case s.OP_2SWAP:{if(this.stack.length<4)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=this.stack.splice(this.stack.length-4,2);this.stack.push(D[0]),this.stack.push(D[1])}break;case s.OP_IFDUP:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=this.stack[this.stack.length-1];G.castToBool(D)&&this.stack.push(D)}break;case s.OP_DEPTH:{let D=new f(this.stack.length).toScriptNumBuffer();this.stack.push(D)}break;case s.OP_DROP:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case s.OP_DUP:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-1]);break;case s.OP_NIP:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case s.OP_OVER:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-2]);break;case s.OP_PICK:case s.OP_ROLL:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=this.stack[this.stack.length-1],se=new f().fromScriptNumBuffer(D,e,G.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS).toNumber();if(this.stack.pop(),se<0||se>=this.stack.length)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;D=this.stack[this.stack.length-se-1],c===s.OP_ROLL&&this.stack.splice(this.stack.length-se-1,1),this.stack.push(D)}break;case s.OP_ROT:{if(this.stack.length<3)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=this.stack[this.stack.length-3],$=this.stack[this.stack.length-2],se=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=$,this.stack[this.stack.length-2]=se,this.stack[this.stack.length-1]=D}break;case s.OP_SWAP:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=this.stack[this.stack.length-2],$=this.stack[this.stack.length-1];this.stack[this.stack.length-2]=$,this.stack[this.stack.length-1]=D}break;case s.OP_TUCK:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case s.OP_SIZE:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=new f(this.stack[this.stack.length-1].length);this.stack.push(D.toScriptNumBuffer())}break;case s.OP_OR:case s.OP_AND:case s.OP_XOR:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let p=this.stack[this.stack.length-2],O=this.stack[this.stack.length-1];if(p.length!=O.length)return this.errStr="SCRIPT_ERR_INVALID_OPERAND_SIZE",!1;switch(c){case s.OP_AND:for(let D=0;D<p.length;D++)p[D]&=O[D];break;case s.OP_OR:for(let D=0;D<p.length;D++)p[D]|=O[D];break;case s.OP_XOR:for(let D=0;D<p.length;D++)p[D]^=O[D];break}this.stack.pop();break;case s.OP_INVERT:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let N=this.stack[this.stack.length-1];for(let D=0;D<N.length;D++)N[D]=~N[D];break;case s.OP_LSHIFT:case s.OP_RSHIFT:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=this.stack[this.stack.length-2],$=new f(D),se=new f().fromScriptNumBuffer(this.stack[this.stack.length-1],e,G.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS).toNumber();if(se<0)return this.errStr="SCRIPT_ERR_INVALID_NUMBER_RANGE",!1;switch(this.stack.pop(),this.stack.pop(),c){case s.OP_LSHIFT:$=$.ushln(se);break;case s.OP_RSHIFT:$=$.ushrn(se);break}let xe=$.toBuffer().slice(-D.length);xe.length<D.length&&(xe=Buffer.concat([Buffer.alloc(D.length-xe.length),xe])),this.stack.push(xe);break}case s.OP_EQUAL:case s.OP_EQUALVERIFY:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=this.stack[this.stack.length-2],$=this.stack[this.stack.length-1],se=j(D,$);if(this.stack.pop(),this.stack.pop(),this.stack.push(se?G.true:G.false),c===s.OP_EQUALVERIFY)if(se)this.stack.pop();else return this.errStr="SCRIPT_ERR_EQUALVERIFY",!1}break;case s.OP_1ADD:case s.OP_1SUB:case s.OP_NEGATE:case s.OP_ABS:case s.OP_NOT:case s.OP_0NOTEQUAL:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=this.stack[this.stack.length-1],$=new f().fromScriptNumBuffer(D,e,G.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS);switch(c){case s.OP_1ADD:$=$.add(1);break;case s.OP_1SUB:$=$.sub(1);break;case s.OP_NEGATE:$=$.neg();break;case s.OP_ABS:$.lt(0)&&($=$.neg());break;case s.OP_NOT:$=new f($.eq(0)+0);break;case s.OP_0NOTEQUAL:$=new f($.neq(0)+0);break}this.stack.pop(),this.stack.push($.toScriptNumBuffer())}break;case s.OP_ADD:case s.OP_SUB:case s.OP_MUL:case s.OP_DIV:case s.OP_MOD:case s.OP_BOOLAND:case s.OP_BOOLOR:case s.OP_NUMEQUAL:case s.OP_NUMEQUALVERIFY:case s.OP_NUMNOTEQUAL:case s.OP_LESSTHAN:case s.OP_GREATERTHAN:case s.OP_LESSTHANOREQUAL:case s.OP_GREATERTHANOREQUAL:case s.OP_MIN:case s.OP_MAX:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=new f().fromScriptNumBuffer(this.stack[this.stack.length-2],e,G.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),$=new f().fromScriptNumBuffer(this.stack[this.stack.length-1],e,G.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),se=new f(0);switch(c){case s.OP_ADD:se=D.add($);break;case s.OP_SUB:se=D.sub($);break;case s.OP_MUL:se=D.mul($);break;case s.OP_DIV:if($==0)return this.errStr="SCRIPT_ERR_DIV_BY_ZERO",!1;se=D.div($);break;case s.OP_MOD:if($==0)return this.errStr="SCRIPT_ERR_DIV_BY_ZERO",!1;se=D.mod($);break;case s.OP_BOOLAND:se=new f((D.neq(0)&&$.neq(0))+0);break;case s.OP_BOOLOR:se=new f((D.neq(0)||$.neq(0))+0);break;case s.OP_NUMEQUAL:se=new f(D.eq($)+0);break;case s.OP_NUMEQUALVERIFY:se=new f(D.eq($)+0);break;case s.OP_NUMNOTEQUAL:se=new f(D.neq($)+0);break;case s.OP_LESSTHAN:se=new f(D.lt($)+0);break;case s.OP_GREATERTHAN:se=new f(D.gt($)+0);break;case s.OP_LESSTHANOREQUAL:se=new f(D.leq($)+0);break;case s.OP_GREATERTHANOREQUAL:se=new f(D.geq($)+0);break;case s.OP_MIN:se=D.lt($)?D:$;break;case s.OP_MAX:se=D.gt($)?D:$;break}if(this.stack.pop(),this.stack.pop(),this.stack.push(se.toScriptNumBuffer()),c===s.OP_NUMEQUALVERIFY)if(G.castToBool(this.stack[this.stack.length-1]))this.stack.pop();else return this.errStr="SCRIPT_ERR_NUMEQUALVERIFY",!1}break;case s.OP_WITHIN:{if(this.stack.length<3)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=new f().fromScriptNumBuffer(this.stack[this.stack.length-3],e,G.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),$=new f().fromScriptNumBuffer(this.stack[this.stack.length-2],e,G.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),se=new f().fromScriptNumBuffer(this.stack[this.stack.length-1],e,G.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),xe=$.leq(D)&&D.lt(se);this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(xe?G.true:G.false)}break;case s.OP_RIPEMD160:case s.OP_SHA1:case s.OP_SHA256:case s.OP_HASH160:case s.OP_HASH256:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=this.stack[this.stack.length-1],$;c===s.OP_RIPEMD160?$=U.ripemd160(D):c===s.OP_SHA1?$=U.sha1(D):c===s.OP_SHA256?$=U.sha256(D):c===s.OP_HASH160?$=U.sha256Ripemd160(D):c===s.OP_HASH256&&($=U.sha256Sha256(D)),this.stack.pop(),this.stack.push($)}break;case s.OP_CODESEPARATOR:this.pBeginCodeHash=this.pc;break;case s.OP_CHECKSIG:case s.OP_CHECKSIGVERIFY:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let D=this.stack[this.stack.length-2],$=this.stack[this.stack.length-1];if(!this.checkSigEncoding(D)||!this.checkPubKeyEncoding($))return!1;let se=new ee().fromObject({chunks:this.script.chunks.slice(this.pBeginCodeHash)});if((D.length>0?D.readUInt8(D.length-1):0)&Q.SIGHASH_FORKID){if(!(this.flags&G.SCRIPT_ENABLE_SIGHASH_FORKID))return this.errStr="SCRIPT_ERR_ILLEGAL_FORKID",!1}else se.findAndDelete(new ee().writeBuffer(D));let Ge;try{let qe=new Q().fromTxFormat(D),Ye=new g().fromBuffer($,!1);this.nHashType=qe.nHashType,typeof this.nIn>"u"&&console.log("Missing tx input nIn"),typeof this.tx>"u"&&(this.tx=new fe);try{this.preImage=this.tx.sighashPreimage(qe.nHashType,this.nIn,se,this.valueBn,fe.SCRIPT_ENABLE_SIGHASH_FORKID),this.preImage.compare(Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex"))===0?this.hashBuf=this.preImage:this.hashBuf=new P(U.sha256Sha256(this.preImage)).readReverse(),this.verify=ge.verify(this.hashBuf,qe,Ye,"little",!0)}catch(je){console.log("ERROR: ",je.message)}Ge=this.tx.verify(qe,Ye,this.nIn,se,!!(this.flags&G.SCRIPT_VERIFY_LOW_S),this.valueBn,fe.SCRIPT_ENABLE_SIGHASH_FORKID)}catch{Ge=!1}if(this.stack.pop(),this.stack.pop(),this.stack.push(Ge?G.true:G.false),c===s.OP_CHECKSIGVERIFY)if(Ge)this.stack.pop();else return this.errStr="SCRIPT_ERR_CHECKSIGVERIFY",!1}break;case s.OP_CHECKMULTISIG:case s.OP_CHECKMULTISIGVERIFY:{let D=1;if(this.stack.length<D)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let $=new f().fromScriptNumBuffer(this.stack[this.stack.length-D],e).toNumber();if($<0||$>20)return this.errStr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=$,this.nOpCount>201)return this.errStr="SCRIPT_ERR_OP_COUNT",!1;let se=++D;if(D+=$,this.stack.length<D)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let xe=new f().fromScriptNumBuffer(this.stack[this.stack.length-D],e).toNumber();if(xe<0||xe>$)return this.errStr="SCRIPT_ERR_SIG_COUNT",!1;let Ge=++D;if(D+=xe,this.stack.length<D)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let qe=new ee().fromObject({chunks:this.script.chunks.slice(this.pBeginCodeHash)});for(let je=0;je<xe;je++){let Je=this.stack[this.stack.length-Ge-je];if((Je.length>0?Je.readUInt8(Je.length-1):0)&Q.SIGHASH_FORKID){if(!(this.flags&G.SCRIPT_ENABLE_SIGHASH_FORKID))return this.errStr="SCRIPT_ERR_ILLEGAL_FORKID",!1}else qe.findAndDelete(new ee().writeBuffer(Je))}let Ye=!0;for(;Ye&&xe>0;){let je=this.stack[this.stack.length-Ge],Je=this.stack[this.stack.length-se];if(!this.checkSigEncoding(je)||!this.checkPubKeyEncoding(Je))return!1;let Ze;try{let tt=new Q().fromTxFormat(je),rt=new g().fromBuffer(Je,!1);Ze=this.tx.verify(tt,rt,this.nIn,qe,!!(this.flags&G.SCRIPT_VERIFY_LOW_S),this.valueBn,this.flags)}catch{Ze=!1}Ze&&(Ge++,xe--),se++,$--,xe>$&&(Ye=!1)}for(;D-- >1;)this.stack.pop();if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&G.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return this.errStr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(Ye?G.true:G.false),c===s.OP_CHECKMULTISIGVERIFY)if(Ye)this.stack.pop();else return this.errStr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1}break;case s.OP_CAT:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let q=this.stack[this.stack.length-2],X=this.stack[this.stack.length-1];this.stack[this.stack.length-2]=Buffer.concat([q,X]),this.stack.pop();break;case s.OP_SPLIT:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let oe=this.stack[this.stack.length-2],ie=new f().fromScriptNumBuffer(this.stack[this.stack.length-1],e);if(ie.lt(0)||ie.gt(oe.length))return this.errStr="SCRIPT_ERR_INVALID_SPLIT_RANGE",!1;let ne=oe.slice(0,ie),Ce=oe.slice(ie);this.stack.pop(),this.stack.pop(),this.stack.push(ne),this.stack.push(Ce);break;case s.OP_NUM2BIN:this.stack.length<2&&(this.errStr="OP_NUM2BIN requires at least two items to be on the stack.");let ve=new f().fromScriptNumBuffer(this.stack[this.stack.length-1],e,G.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS).toNumber();ve>G.MAX_SCRIPT_ELEMENT_SIZE&&(this.errStr=`It's not currently possible to push data larger than ${G.MAX_SCRIPT_ELEMENT_SIZE} bytes.`),this.stack.pop();let me=this.stack[this.stack.length-1];if(me=Qe(me),me.length>ve&&(this.errStr="OP_NUM2BIN requires that the size expressed in the top stack item is large enough to hold the value expressed in the second-from-top stack item."),me.length===ve){this.stack[this.stack.length-1]=me;break}let Xe=0;me.length>0&&(Xe=me[me.length-1]&128,me[me.length-1]&=127);let ke=new Array(ve);ke.fill(0);let Pe;for(Pe=0;Pe<ve;Pe++)ke[Pe]=me[Pe];for(Pe=me.length-1;Pe++<ve-2;)ke[Pe]=0;ke[Pe]=Xe,this.stack[this.stack.length-1]=Buffer.from(new Uint8Array(ke).buffer,"binary");break;case s.OP_BIN2NUM:this.stack.length<1&&(this.errStr="OP_BIN2NUM requires at least one item to be on the stack.");let at=this.stack[this.stack.length-1],Fe=Qe(at);this.stack[this.stack.length-1]=new f().fromScriptNumBuffer(Fe,e,G.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS);break;default:return this.errStr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}verify(e,t,i,c,p,O){let N=this.results(e,t,i,c,p,O);for(let q of N)if(!q)return!1;return!0}*results(e,t,i,c,p,O){let N;this.fromObject({script:e,tx:i,nIn:c,flags:p,valueBn:O}),p&G.SCRIPT_VERIFY_SIGPUSHONLY&&!e.isPushOnly()&&(this.errStr=this.errStr||"SCRIPT_ERR_SIG_PUSHONLY",yield!1),yield*this.eval(),p&G.SCRIPT_VERIFY_P2SH&&(N=this.stack.slice());let q=this.stack;this.initialize(),this.fromObject({script:t,stack:q,tx:i,nIn:c,flags:p,valueBn:O}),yield*this.eval(),this.stack.length===0&&(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1);let X=this.stack[this.stack.length-1];if(G.castToBool(X)||(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1),p&G.SCRIPT_VERIFY_P2SH&&t.isScriptHashOut()){e.isPushOnly()||(this.errStr=this.errStr||"SCRIPT_ERR_SIG_PUSHONLY",yield!1);let oe=q;if(q=N,N=oe,q.length===0)throw new Error("internal error - stack copy empty");let ie=q[q.length-1],ne=new ee().fromBuffer(ie);q.pop(),this.initialize(),this.fromObject({script:ne,stack:q,tx:i,nIn:c,flags:p,valueBn:O}),yield*this.eval(),q.length===0&&(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1),G.castToBool(q[q.length-1])?yield!0:(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1)}if(p&G.SCRIPT_VERIFY_CLEANSTACK){if(!(p&G.SCRIPT_VERIFY_P2SH))throw new Error("cannot use CLEANSTACK without P2SH");q.length!==1&&(this.errStr=this.errStr||"SCRIPT_ERR_CLEANSTACK",yield!1)}yield!0}getDebugObject(){let e=this.pc-1;return{errStr:this.errStr,scriptStr:this.script?this.script.toString():"no script found",pc:e,stack:this.stack.map(t=>t.toString("hex")),altStack:this.altStack.map(t=>t.toString("hex")),opCodeStr:this.script?s.fromNumber(this.script.chunks[e].opCodeNum).toString():"no script found"}}getDebugString(){return JSON.stringify(this.getDebugObject(),null,2)}}G.true=Buffer.from([1]),G.false=Buffer.from([]),G.MAX_SCRIPT_ELEMENT_SIZE=500*1e3,G.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS=10*1e3,G.LOCKTIME_THRESHOLD=5e8,G.SCRIPT_VERIFY_NONE=0,G.SCRIPT_VERIFY_P2SH=1,G.SCRIPT_VERIFY_STRICTENC=2,G.SCRIPT_VERIFY_DERSIG=4,G.SCRIPT_VERIFY_LOW_S=8,G.SCRIPT_VERIFY_NULLDUMMY=16,G.SCRIPT_VERIFY_SIGPUSHONLY=32,G.SCRIPT_VERIFY_MINIMALDATA=64,G.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,G.SCRIPT_VERIFY_CLEANSTACK=256,G.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,G.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY=1024,G.SCRIPT_ENABLE_SIGHASH_FORKID=65536,G.defaultFlags=G.SCRIPT_VERIFY_P2SH|G.SCRIPT_VERIFY_STRICTENC|G.SCRIPT_ENABLE_SIGHASH_FORKID|G.SCRIPT_VERIFY_LOW_S|G.SCRIPT_VERIFY_NULLDUMMY|G.SCRIPT_VERIFY_DERSIG|G.SCRIPT_VERIFY_MINIMALDATA|G.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS|G.SCRIPT_VERIFY_CLEANSTACK|G.SCRIPT_VERIFY_SIGPUSHONLY|G.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY|G.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY;class Ae extends L{static{o(this,"SigOperations")}constructor(e=new Map){super({map:e})}toJSON(){const e={};return this.map.forEach((t,i)=>{e[i]=t.map(c=>({nScriptChunk:c.nScriptChunk,type:c.type,addressStr:c.addressStr,nHashType:c.nHashType,log:c.log}))}),e}fromJSON(e){return Object.keys(e).forEach(t=>{this.map.set(t,e[t].map(i=>({nScriptChunk:i.nScriptChunk,type:i.type,addressStr:i.addressStr,nHashType:i.nHashType,log:i.log})))}),this}setOne(e,t,i,c="sig",p,O=Q.SIGHASH_ALL|Q.SIGHASH_FORKID){const N=e.toString("hex")+":"+t,q={nScriptChunk:i,type:c,addressStr:p,nHashType:O};return this.map.set(N,[q]),this}setMany(e,t,i){const c=e.toString("hex")+":"+t;return i=i.map(p=>({type:p.type||"sig",nHashType:p.nHashType||Q.SIGHASH_ALL|Q.SIGHASH_FORKID,...p})),this.map.set(c,i),this}addOne(e,t,i,c="sig",p,O=Q.SIGHASH_ALL|Q.SIGHASH_FORKID){const N=this.get(e,t)||[];return N.push({nScriptChunk:i,type:c,addressStr:p,nHashType:O}),this.setMany(e,t,N),this}get(e,t){const i=e.toString("hex")+":"+t;return this.map.get(i)||[]}}class et extends L{static{o(this,"TxOutMap")}constructor(e=new Map){super({map:e})}toJSON(){const e={};return this.map.forEach((t,i)=>{e[i]=t.toHex()}),e}fromJSON(e){return Object.keys(e).forEach(t=>{this.map.set(t,De.fromHex(e[t]))}),this}set(e,t,i){const c=e.toString("hex")+":"+t;return this.map.set(c,i),this}get(e,t){const i=e.toString("hex")+":"+t;return this.map.get(i)}setTx(e){const t=e.hash().toString("hex");return e.txOuts.forEach((i,c)=>{const p=t+":"+c;this.map.set(p,i)}),this}}const Te=C.Default.TxBuilder;class He extends L{static{o(this,"TxBuilder")}constructor(e=new fe,t=[],i=[],c=new et,p=new Ae,O,N,q,X=Te.feePerKbNum,oe=0,ie=1,ne=1,Ce=Te.dust,ve=!1,me=new We){super({tx:e,txIns:t,txOuts:i,uTxOutMap:c,sigOperations:p,changeScript:O,changeAmountBn:N,feeAmountBn:q,feePerKbNum:X,nLockTime:oe,versionBytesNum:ie,sigsPerInput:ne,dust:Ce,dustChangeToFees:ve,hashCache:me})}toJSON(){const e={};return e.tx=this.tx.toHex(),e.txIns=this.txIns.map(t=>t.toHex()),e.txOuts=this.txOuts.map(t=>t.toHex()),e.uTxOutMap=this.uTxOutMap.toJSON(),e.sigOperations=this.sigOperations.toJSON(),e.changeScript=this.changeScript?this.changeScript.toHex():void 0,e.changeAmountBn=this.changeAmountBn?this.changeAmountBn.toNumber():void 0,e.feeAmountBn=this.feeAmountBn?this.feeAmountBn.toNumber():void 0,e.feePerKbNum=this.feePerKbNum,e.sigsPerInput=this.sigsPerInput,e.dust=this.dust,e.dustChangeToFees=this.dustChangeToFees,e.hashCache=this.hashCache.toJSON(),e}fromJSON(e){return this.tx=new fe().fromHex(e.tx),this.txIns=e.txIns.map(t=>he.fromHex(t)),this.txOuts=e.txOuts.map(t=>De.fromHex(t)),this.uTxOutMap=new et().fromJSON(e.uTxOutMap),this.sigOperations=new Ae().fromJSON(e.sigOperations),this.changeScript=e.changeScript?new ee().fromHex(e.changeScript):void 0,this.changeAmountBn=e.changeAmountBn?new f(e.changeAmountBn):void 0,this.feeAmountBn=e.feeAmountBn?new f(e.feeAmountBn):void 0,this.feePerKbNum=e.feePerKbNum||this.feePerKbNum,this.sigsPerInput=e.sigsPerInput||this.sigsPerInput,this.dust=e.dust||this.dust,this.dustChangeToFees=e.dustChangeToFees||this.dustChangeToFees,this.hashCache=We.fromJSON(e.hashCache),this}setFeePerKbNum(e){if(typeof e!="number"||e<0)throw new Error("cannot set a fee of zero or less");return this.feePerKbNum=e,this}setChangeAddress(e){return this.changeScript=e.toTxOutScript(),this}setChangeScript(e){return this.changeScript=e,this}setNLocktime(e){return this.nLockTime=e,this}setVersion(e){return this.versionBytesNum=e,this}setDust(e=Te.dust){return this.dust=e,this}sendDustChangeToFees(e=!1){return this.dustChangeToFees=e,this}importPartiallySignedTx(e,t=this.uTxOutMap,i=this.sigOperations){return this.tx=e,this.uTxOutMap=t,this.sigOperations=i,this}inputFromScript(e,t,i,c,p){if(!Buffer.isBuffer(e)||typeof t!="number"||!(i instanceof De)||!(c instanceof ee))throw new Error("invalid one of: txHashBuf, txOutNum, txOut, script");return this.txIns.push(he.fromProperties(e,t,c,p)),this.uTxOutMap.set(e,t,i),this}addSigOperation(e,t,i,c,p,O){return this.sigOperations.addOne(e,t,i,c,p,O),this}inputFromPubKeyHash(e,t,i,c,p,O){if(!Buffer.isBuffer(e)||typeof t!="number"||!(i instanceof De))throw new Error("invalid one of: txHashBuf, txOutNum, txOut");this.txIns.push(new he().fromObject({nSequence:p}).fromPubKeyHashTxOut(e,t,i,c)),this.uTxOutMap.set(e,t,i);const N=ue.fromTxOutScript(i.script).toString();return this.addSigOperation(e,t,0,"sig",N,O),this.addSigOperation(e,t,1,"pubKey",N),this}outputToAddress(e,t){if(!(t instanceof ue)||!(e instanceof f))throw new Error("addr must be an Address, and valueBn must be a Bn");const i=new ee().fromPubKeyHash(t.hashBuf);return this.outputToScript(e,i),this}outputToScript(e,t){if(!(t instanceof ee)||!(e instanceof f))throw new Error("script must be a Script, and valueBn must be a Bn");const i=De.fromProperties(e,t);return this.txOuts.push(i),this}buildOutputs(){let e=new f(0);return this.txOuts.forEach(t=>{if(t.valueBn.lt(this.dust)&&!t.script.isNonSpendable())throw new Error("cannot create output lesser than dust");e=e.add(t.valueBn),this.tx.addTxOut(t)}),e}buildInputs(e,t=0){let i=new f(0);for(const c of this.txIns){const p=this.uTxOutMap.get(c.txHashBuf,c.txOutNum);if(i=i.add(p.valueBn),this.tx.addTxIn(c),i.geq(e)){if(t<=0)break;t--}}if(i.lt(e))throw new Error("not enough funds for outputs: inAmountBn "+i.toNumber()+" outAmountBn "+e.toNumber());return i}estimateSize(){let i=this.tx.toBuffer().length;return this.tx.txIns.forEach(c=>{const{txHashBuf:p,txOutNum:O}=c;this.sigOperations.get(p,O).forEach(q=>{const{nScriptChunk:X,type:oe}=q,ne=new ee([c.script.chunks[X]]).toBuffer().length;if(i-=ne,oe==="sig")i+=72;else if(q.type==="pubKey")i+=35;else throw new Error("unsupported sig operations type")})}),i=i+1,Math.round(i)}estimateFee(e=new f(0)){const t=Math.ceil(this.estimateSize()/1e3*this.feePerKbNum);return new f(t).add(e)}build(e={useAllInputs:!1}){let t;if(this.txIns.length<=0)throw Error("tx-builder number of inputs must be greater than 0");if(!this.changeScript)throw new Error("must specify change script to use build method");for(let i=e.useAllInputs?this.txIns.length-1:0;i<this.txIns.length;i++){this.tx=new fe;const c=this.buildOutputs(),p=De.fromProperties(new f(0),this.changeScript);this.tx.addTxOut(p);let O;try{O=this.buildInputs(c,i)}catch(N){throw N.message.includes("not enough funds for outputs")?new Error("unable to gather enough inputs for outputs and fee"):N}if(this.changeAmountBn=O.sub(c),p.valueBn=this.changeAmountBn,t=this.estimateFee(),this.changeAmountBn.geq(t)&&this.changeAmountBn.sub(t).gt(this.dust))break}if(this.changeAmountBn.geq(t)){if(this.feeAmountBn=t,this.changeAmountBn=this.changeAmountBn.sub(this.feeAmountBn),this.tx.txOuts[this.tx.txOuts.length-1].valueBn=this.changeAmountBn,this.changeAmountBn.lt(this.dust))if(this.dustChangeToFees)this.tx.txOuts.pop(),this.tx.txOutsVi=le.fromNumber(this.tx.txOutsVi.toNumber()-1),this.feeAmountBn=this.feeAmountBn.add(this.changeAmountBn),this.changeAmountBn=new f(0);else throw new Error("unable to create change amount greater than dust");if(this.tx.nLockTime=this.nLockTime,this.tx.versionBytesNum=this.versionBytesNum,this.tx.txOuts.length===0)throw new Error("outputs length is zero - unable to create any outputs greater than dust");return this}else throw new Error("unable to gather enough inputs for outputs and fee")}sort(){return this.tx.sort(),this}static allSigsPresent(e,t){let i=0;for(let c=1;c<t.chunks.length-1;c++)t.chunks[c].buf&&i++;return i===e}static removeBlankSigs(e){e=new ee(e.chunks.slice());for(let t=1;t<e.chunks.length-1;t++)e.chunks[t].buf||e.chunks.splice(t,1);return e}fillSig(e,t,i){const c=this.tx.txIns[e];return c.script.chunks[t]=new ee().writeBuffer(i.toTxFormat()).chunks[0],c.scriptVi=le.fromNumber(c.script.toBuffer().length),this}getSig(e,t=Q.SIGHASH_ALL|Q.SIGHASH_FORKID,i,c,p=fe.SCRIPT_ENABLE_SIGHASH_FORKID){let O;if(t&Q.SIGHASH_FORKID&&p&fe.SCRIPT_ENABLE_SIGHASH_FORKID){const N=this.tx.txIns[i].txHashBuf,q=this.tx.txIns[i].txOutNum,X=this.uTxOutMap.get(N,q);if(!X)throw new Error("for SIGHASH_FORKID must provide UTXOs");O=X.valueBn}return this.tx.sign(e,t,i,c,O,p,this.hashCache)}asyncGetSig(e,t=Q.SIGHASH_ALL|Q.SIGHASH_FORKID,i,c,p=fe.SCRIPT_ENABLE_SIGHASH_FORKID){let O;if(t&Q.SIGHASH_FORKID&&p&fe.SCRIPT_ENABLE_SIGHASH_FORKID){const N=this.tx.txIns[i].txHashBuf,q=this.tx.txIns[i].txOutNum,X=this.uTxOutMap.get(N,q);if(!X)throw new Error("for SIGHASH_FORKID must provide UTXOs");O=X.valueBn}return this.tx.asyncSign(e,t,i,c,O,p,this.hashCache)}signTxIn(e,t,i,c,p=Q.SIGHASH_ALL|Q.SIGHASH_FORKID,O=fe.SCRIPT_ENABLE_SIGHASH_FORKID){const N=this.tx.txIns[e],q=N.script;if(c===void 0&&q.isPubKeyHashIn()&&(c=0),c===void 0)throw new Error("cannot sign unknown script type for input "+e);const X=N.txHashBuf,oe=N.txOutNum;i||(i=this.uTxOutMap.get(X,oe));const ne=i.script,Ce=this.getSig(t,p,e,ne,O,this.hashCache);return this.fillSig(e,c,Ce),this}async asyncSignTxIn(e,t,i,c,p=Q.SIGHASH_ALL|Q.SIGHASH_FORKID,O=fe.SCRIPT_ENABLE_SIGHASH_FORKID){const N=this.tx.txIns[e],q=N.script;if(c===void 0&&q.isPubKeyHashIn()&&(c=0),c===void 0)throw new Error("cannot sign unknown script type for input "+e);const X=N.txHashBuf,oe=N.txOutNum;i||(i=this.uTxOutMap.get(X,oe));const ne=i.script,Ce=await this.asyncGetSig(t,p,e,ne,O,this.hashCache);return this.fillSig(e,c,Ce),this}signWithKeyPairs(e){const t={};for(const i of e){const c=ue.fromPubKey(i.pubKey).toString();t[c]=i}for(const i in this.tx.txIns){const c=this.tx.txIns[i],p=this.sigOperations.get(c.txHashBuf,c.txOutNum);for(const O of p){const{nScriptChunk:N,type:q,addressStr:X,nHashType:oe}=O,ie=t[X];if(!ie){O.log=`cannot find keyPair for addressStr ${X}`;continue}const ne=this.uTxOutMap.get(c.txHashBuf,c.txOutNum);if(q==="sig")this.signTxIn(i,ie,ne,N,oe),O.log="successfully inserted signature";else if(q==="pubKey")c.script.chunks[N]=new ee().writeBuffer(ie.pubKey.toBuffer()).chunks[0],c.setScript(c.script),O.log="successfully inserted public key";else{O.log=`cannot perform operation of type ${q}`;continue}}}return this}}class $e extends L{static{o(this,"TxVerifier")}constructor(e,t,i,c){super({tx:e,txOutMap:t,errStr:i,interp:c})}verify(e=G.SCRIPT_ENABLE_SIGHASH_FORKID){return!this.checkStr()&&!this.verifyStr(e)}async asyncVerify(e){const t=await this.asyncVerifyStr(e);return!this.checkStr()&&!t}static verify(e,t,i){return new $e(e,t).verify(i)}static asyncVerify(e,t,i){return new $e(e,t).asyncVerify(i)}checkStr(){if(this.tx.txIns.length===0||this.tx.txInsVi.toNumber()===0)return this.errStr="transaction txIns empty",this.errStr;if(this.tx.txOuts.length===0||this.tx.txOutsVi.toNumber()===0)return this.errStr="transaction txOuts empty",this.errStr;if(this.tx.toBuffer().length>Re.MAX_BLOCK_SIZE)return this.errStr="transaction over the maximum block size",this.errStr;let e=new f(0);for(let i=0;i<this.tx.txOuts.length;i++){const c=this.tx.txOuts[i];if(c.valueBn.lt(0))return this.errStr="transaction txOut "+i+" negative",this.errStr;if(c.valueBn.gt(fe.MAX_MONEY))return this.errStr="transaction txOut "+i+" greater than MAX_MONEY",this.errStr;if(e=e.add(c.valueBn),e.gt(fe.MAX_MONEY))return this.errStr="transaction txOut "+i+" total output greater than MAX_MONEY",this.errStr}const t={};for(let i=0;i<this.tx.txIns.length;i++){const c=this.tx.txIns[i],p=c.txHashBuf.toString("hex")+":"+c.txOutNum;if(t[p]!==void 0)return this.errStr="transaction input "+i+" duplicate input",this.errStr;t[p]=!0}if(this.tx.isCoinbase()){const i=this.tx.txIns[0].script.toBuffer();if(i.length<2||i.length>100)return this.errStr="coinbase trasaction script size invalid",this.errStr}else for(let i=0;i<this.tx.txIns.length;i++)if(this.tx.txIns[i].hasNullInput())return this.errStr="transaction input "+i+" has null input",this.errStr;return!1}verifyStr(e){for(let t=0;t<this.tx.txIns.length;t++)if(!this.verifyNIn(t,e))return this.errStr="input "+t+" failed script verify",this.errStr;return!1}async asyncVerifyStr(e){for(let t=0;t<this.tx.txIns.length;t++)if(!await this.asyncVerifyNIn(t,e))return this.errStr="input "+t+" failed script verify",this.errStr;return!1}verifyNIn(e,t){const i=this.tx.txIns[e],c=i.script,p=this.txOutMap.get(i.txHashBuf,i.txOutNum);if(!p)return console.log("output "+i.txOutNum+" not found"),!1;const O=p.script,N=p.valueBn;return this.interp=new G,this.interp.verify(c,O,this.tx,e,t,N)}async asyncVerifyNIn(e,t){const i=this.tx.txIns[e],c=i.script,p=this.txOutMap.get(i.txHashBuf,i.txOutNum);if(!p)return console.log("output "+i.txOutNum+" not found"),!1;const O=p.script,N=p.valueBn;this.interp=new G;const q=await z.asyncObjectMethod(this.interp,"verify",[c,O,this.tx,e,t,N]);return JSON.parse(q.resbuf.toString())}getDebugObject(){return{errStr:this.errStr,interpFailure:this.interp?this.interp.getDebugObject():void 0}}getDebugString(){return JSON.stringify(this.getDebugObject(),null,2)}}class Se{static{o(this,"Aes")}}Se.encrypt=function(d,e){const t=Se.buf2Words(e),i=Se.buf2Words(d),p=new(W())(t).encrypt(i);return Se.words2Buf(p)},Se.decrypt=function(d,e){const t=Se.buf2Words(d),i=Se.buf2Words(e),p=new(W())(i).decrypt(t);return Se.words2Buf(p)},Se.buf2Words=function(d){if(d.length%4)throw new Error("buf length must be a multiple of 4");const e=[];for(let t=0;t<d.length/4;t++)e.push(d.readUInt32BE(t*4));return e},Se.words2Buf=function(d){const e=Buffer.alloc(d.length*4);for(let t=0;t<d.length;t++)e.writeUInt32BE(d[t],t*4);return e};class be{static{o(this,"Cbc")}}be.buf2BlocksBuf=function(d,e){const t=e/8,i=[];for(let c=0;c<=d.length/t;c++){let p=d.slice(c*t,c*t+t);p.length<e&&(p=be.pkcs7Pad(p,e)),i.push(p)}return i},be.blockBufs2Buf=function(d){let e=d[d.length-1];return e=be.pkcs7Unpad(e),d[d.length-1]=e,Buffer.concat(d)},be.encrypt=function(d,e,t,i){const c=e.length*8,p=be.buf2BlocksBuf(d,c),O=be.encryptBlocks(p,e,t,i);return Buffer.concat(O)},be.decrypt=function(d,e,t,i){const c=e.length,p=[];for(let q=0;q<d.length/c;q++)p.push(d.slice(q*c,q*c+c));const O=be.decryptBlocks(p,e,t,i);return be.blockBufs2Buf(O)},be.encryptBlock=function(d,e,t,i){const c=be.xorBufs(d,e);return t.encrypt(c,i)},be.decryptBlock=function(d,e,t,i){const c=t.decrypt(d,i);return be.xorBufs(c,e)},be.encryptBlocks=function(d,e,t,i){const c=[];for(let p=0;p<d.length;p++){const O=d[p],N=be.encryptBlock(O,e,t,i);c.push(N),e=N}return c},be.decryptBlocks=function(d,e,t,i){const c=[];for(let p=0;p<d.length;p++){const O=d[p],N=be.decryptBlock(O,e,t,i);c.push(N),e=O}return c},be.pkcs7Pad=function(d,e){const i=e/8-d.length,c=Buffer.alloc(i);return c.fill(i),Buffer.concat([d,c])},be.pkcs7Unpad=function(d){const e=d[d.length-1],t=d.slice(d.length-e,d.length),i=Buffer.alloc(e);if(i.fill(e),!j(t,i))throw new Error("invalid padding");return d.slice(0,d.length-e)},be.xorBufs=function(d,e){if(d.length!==e.length)throw new Error("bufs must have the same length");const t=Buffer.alloc(d.length);for(let i=0;i<d.length;i++)t[i]=d[i]^e[i];return t};class ze{static{o(this,"Aescbc")}}ze.encrypt=function(d,e,t,i=!0){t=t||te.getRandomBuffer(128/8);const c=be.encrypt(d,t,Se,e);return i?Buffer.concat([t,c]):c},ze.decrypt=function(d,e,t=!1){if(t){const i=d;return be.decrypt(i,t,Se,e)}else{const i=d.slice(0,16),c=d.slice(128/8);return be.decrypt(c,i,Se,e)}};class Ne{static{o(this,"Ach")}}Ne.encrypt=function(d,e,t){const i=ze.encrypt(d,e,t),c=U.sha256Hmac(i,e);return Buffer.concat([c,i])},Ne.asyncEncrypt=async function(d,e,t){t||(t=te.getRandomBuffer(128/8));const i=[d,e,t];return(await z.asyncClassMethod(Ne,"encrypt",i)).resbuf},Ne.decrypt=function(d,e){if(d.length<512/8)throw new Error("The encrypted data must be at least 256+128+128 bits, which is the length of the Hmac plus the iv plus the smallest encrypted data size");const t=d.slice(0,256/8);d=d.slice(256/8,d.length);const i=U.sha256Hmac(d,e);if(!j(t,i))throw new Error("Message authentication failed - Hmacs are not equivalent");return ze.decrypt(d,e)},Ne.asyncDecrypt=async function(d,e){const t=[d,e];return(await z.asyncClassMethod(Ne,"decrypt",t)).resbuf};class Be{static{o(this,"Ecies")}}Be.ivkEkM=function(d,e){const t=d.bn,c=e.point.mul(t),O=new g(c).toBuffer(),N=U.sha512(O);return{iv:N.slice(0,16),kE:N.slice(16,32),kM:N.slice(32,64)}},Be.electrumEncrypt=function(d,e,t,i=!1){if(!Buffer.isBuffer(d))throw new Error("messageBuf must be a buffer");let c;t===null&&(t=pe.fromRandom()),i||(c=t.pubKey.toDer(!0));const{iv:p,kE:O,kM:N}=Be.ivkEkM(t.privKey,e),q=ze.encrypt(d,O,p,!1),X=Buffer.from("BIE1");let oe;c?oe=Buffer.concat([X,c,q]):oe=Buffer.concat([X,q]);const ie=U.sha256Hmac(oe,N);return Buffer.concat([oe,ie])},Be.electrumDecrypt=function(d,e,t=null){if(!Buffer.isBuffer(d))throw new Error("encBuf must be a buffer");const i=32;if(!d.slice(0,4).equals(Buffer.from("BIE1")))throw new Error("Invalid Magic");let p=4;if(t===null){const ne=d.slice(4,37);t=g.fromDer(ne),p=37}const{iv:O,kE:N,kM:q}=Be.ivkEkM(e,t),X=d.slice(p,d.length-i),oe=d.slice(d.length-i,d.length),ie=U.sha256Hmac(d.slice(0,d.length-i),q);if(!oe.equals(ie))throw new Error("Invalid checksum");return ze.decrypt(X,N,O)},Be.bitcoreEncrypt=function(d,e,t,i){t||(t=pe.fromRandom());const c=t.privKey.bn,O=t.pubKey.toDer(!0),oe=e.point.mul(c).getX().toBuffer({size:32}),ie=U.sha512(oe),ne=ie.slice(0,32),Ce=ie.slice(32,64),ve=ze.encrypt(d,ne,i),me=U.sha256Hmac(ve,Ce);return Buffer.concat([O,ve,me])},Be.asyncBitcoreEncrypt=async function(d,e,t,i){t||(t=await pe.asyncFromRandom()),i||(i=te.getRandomBuffer(128/8));const c=[d,e,t,i];return(await z.asyncClassMethod(Be,"bitcoreEncrypt",c)).resbuf},Be.bitcoreDecrypt=function(d,e){const t=e.bn,p=g.fromDer(d.slice(0,33)).point.mul(t);if(p.eq(new S))throw new Error("P equals 0");const N=p.getX().toBuffer({size:32}),q=U.sha512(N),X=q.slice(0,32),oe=q.slice(32,64),ie=d.slice(33,d.length-32),ne=d.slice(d.length-32,d.length),Ce=U.sha256Hmac(ie,oe);if(!j(ne,Ce))throw new Error("Invalid checksum");return ze.decrypt(ie,X)},Be.asyncBitcoreDecrypt=async function(d,e){const t=[d,e];return(await z.asyncClassMethod(Be,"bitcoreDecrypt",t)).resbuf};const st={aes:W(),bnjs:B(),bs58:A(),elliptic:u(),hashjs:H(),pbkdf2:M,Buffer:w.Buffer},Le=l.i8})(),module.exports=ot})();
|