@permaweb/libs 0.0.63 → 0.0.65

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/index.js CHANGED
@@ -1,19 +1,19 @@
1
- var a8=Object.create;var iu=Object.defineProperty;var o8=Object.getOwnPropertyDescriptor;var s8=Object.getOwnPropertyNames;var f8=Object.getPrototypeOf,c8=Object.prototype.hasOwnProperty;var rt=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var V=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ip=(t,e)=>{for(var r in e)iu(t,r,{get:e[r],enumerable:!0})},u8=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of s8(e))!c8.call(t,i)&&i!==r&&iu(t,i,{get:()=>e[i],enumerable:!(n=o8(e,i))||n.enumerable});return t};var A=(t,e,r)=>(r=t!=null?a8(f8(t)):{},u8(e||!t||!t.__esModule?iu(r,"default",{value:t,enumerable:!0}):r,t));var S=V((m_,fp)=>{var mt=fp.exports={},Bn,Cn;function au(){throw new Error("setTimeout has not been defined")}function ou(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Bn=setTimeout:Bn=au}catch{Bn=au}try{typeof clearTimeout=="function"?Cn=clearTimeout:Cn=ou}catch{Cn=ou}})();function ap(t){if(Bn===setTimeout)return setTimeout(t,0);if((Bn===au||!Bn)&&setTimeout)return Bn=setTimeout,setTimeout(t,0);try{return Bn(t,0)}catch{try{return Bn.call(null,t,0)}catch{return Bn.call(this,t,0)}}}function l8(t){if(Cn===clearTimeout)return clearTimeout(t);if((Cn===ou||!Cn)&&clearTimeout)return Cn=clearTimeout,clearTimeout(t);try{return Cn(t)}catch{try{return Cn.call(null,t)}catch{return Cn.call(this,t)}}}var si=[],Wa=!1,sa,_f=-1;function d8(){!Wa||!sa||(Wa=!1,sa.length?si=sa.concat(si):_f=-1,si.length&&op())}function op(){if(!Wa){var t=ap(d8);Wa=!0;for(var e=si.length;e;){for(sa=si,si=[];++_f<e;)sa&&sa[_f].run();_f=-1,e=si.length}sa=null,Wa=!1,l8(t)}}mt.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];si.push(new sp(t,e)),si.length===1&&!Wa&&ap(op)};function sp(t,e){this.fun=t,this.array=e}sp.prototype.run=function(){this.fun.apply(null,this.array)};mt.title="browser";mt.browser=!0;mt.env={};mt.argv=[];mt.version="";mt.versions={};function fi(){}mt.on=fi;mt.addListener=fi;mt.once=fi;mt.off=fi;mt.removeListener=fi;mt.removeAllListeners=fi;mt.emit=fi;mt.prependListener=fi;mt.prependOnceListener=fi;mt.listeners=function(t){return[]};mt.binding=function(t){throw new Error("process.binding is not supported")};mt.cwd=function(){return"/"};mt.chdir=function(t){throw new Error("process.chdir is not supported")};mt.umask=function(){return 0}});var vp=V(uu=>{"use strict";var O_=A(S());Object.defineProperty(uu,"__esModule",{value:!0});function m8(t){var e=4,r=t.length,n=r%e;if(!n)return t;var i=r,a=e-n,d=r+a,v=Buffer.alloc(d);for(v.write(t);a--;)v.write("=",i++);return v.toString()}uu.default=m8});var xp=V(hu=>{"use strict";var N_=A(S());Object.defineProperty(hu,"__esModule",{value:!0});var x8=vp();function mp(t,e){return e===void 0&&(e="utf8"),Buffer.isBuffer(t)?lu(t.toString("base64")):lu(Buffer.from(t,e).toString("base64"))}function y8(t,e){return e===void 0&&(e="utf8"),Buffer.from(du(t),"base64").toString(e)}function du(t){return t=t.toString(),x8.default(t).replace(/\-/g,"+").replace(/_/g,"/")}function lu(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function w8(t){return Buffer.from(du(t),"base64")}var $a=mp;$a.encode=mp;$a.decode=y8;$a.toBase64=du;$a.fromBase64=lu;$a.toBuffer=w8;hu.default=$a});var Hr=V((k_,Rf)=>{var J_=A(S());Rf.exports=xp().default;Rf.exports.default=Rf.exports});var Fp=V(If=>{"use strict";var Q_=A(S());If.byteLength=J8;If.toByteArray=H8;If.fromByteArray=X8;var Fn=[],qr=[],k8=typeof Uint8Array<"u"?Uint8Array:Array,Mu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ca=0,Lp=Mu.length;ca<Lp;++ca)Fn[ca]=Mu[ca],qr[Mu.charCodeAt(ca)]=ca;var ca,Lp;qr[45]=62;qr[95]=63;function Rp(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function J8(t){var e=Rp(t),r=e[0],n=e[1];return(r+n)*3/4-n}function U8(t,e,r){return(e+r)*3/4-r}function H8(t){var e,r=Rp(t),n=r[0],i=r[1],a=new k8(U8(t,n,i)),d=0,v=i>0?n-4:n,y;for(y=0;y<v;y+=4)e=qr[t.charCodeAt(y)]<<18|qr[t.charCodeAt(y+1)]<<12|qr[t.charCodeAt(y+2)]<<6|qr[t.charCodeAt(y+3)],a[d++]=e>>16&255,a[d++]=e>>8&255,a[d++]=e&255;return i===2&&(e=qr[t.charCodeAt(y)]<<2|qr[t.charCodeAt(y+1)]>>4,a[d++]=e&255),i===1&&(e=qr[t.charCodeAt(y)]<<10|qr[t.charCodeAt(y+1)]<<4|qr[t.charCodeAt(y+2)]>>2,a[d++]=e>>8&255,a[d++]=e&255),a}function q8(t){return Fn[t>>18&63]+Fn[t>>12&63]+Fn[t>>6&63]+Fn[t&63]}function G8(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(q8(n));return i.join("")}function X8(t){for(var e,r=t.length,n=r%3,i=[],a=16383,d=0,v=r-n;d<v;d+=a)i.push(G8(t,d,d+a>v?v:d+a));return n===1?(e=t[r-1],i.push(Fn[e>>2]+Fn[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(Fn[e>>10]+Fn[e>>4&63]+Fn[e<<2&63]+"=")),i.join("")}});var gn=V(Gr=>{"use strict";var Y_=A(S());Object.defineProperty(Gr,"__esModule",{value:!0});Gr.concatBuffers=z8;Gr.b64UrlToString=K8;Gr.bufferToString=Op;Gr.stringToBuffer=Ip;Gr.stringToB64Url=Z8;Gr.b64UrlToBuffer=Np;Gr.bufferTob64=kp;Gr.bufferTob64Url=Jp;Gr.b64UrlEncode=Up;Gr.b64UrlDecode=Hp;var Dp=Fp();function z8(t){let e=0;for(let i=0;i<t.length;i++)e+=t[i].byteLength;let r=new Uint8Array(e),n=0;r.set(new Uint8Array(t[0]),n),n+=t[0].byteLength;for(let i=1;i<t.length;i++)r.set(new Uint8Array(t[i]),n),n+=t[i].byteLength;return r}function K8(t){let e=Np(t);return Op(e)}function Op(t){return new TextDecoder("utf-8",{fatal:!0}).decode(t)}function Ip(t){return new TextEncoder().encode(t)}function Z8(t){return Jp(Ip(t))}function Np(t){return new Uint8Array(Dp.toByteArray(Hp(t)))}function kp(t){return Dp.fromByteArray(new Uint8Array(t))}function Jp(t){return Up(kp(t))}function Up(t){try{return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}catch(e){throw new Error("Failed to encode string",{cause:e})}}function Hp(t){try{t=t.replace(/\-/g,"+").replace(/\_/g,"/");let e;return t.length%4==0?e=0:e=4-t.length%4,t.concat("=".repeat(e))}catch(e){throw new Error("Failed to decode string",{cause:e})}}});var Eu=V(Tu=>{"use strict";var iB=A(S());Object.defineProperty(Tu,"__esModule",{value:!0});var Fi=gn(),Su=class{keyLength=4096;publicExponent=65537;hashAlgorithm="sha256";driver;constructor(){if(!this.detectWebCrypto())throw new Error("SubtleCrypto not available!");this.driver=crypto.subtle}async generateJWK(){let e=await this.driver.generateKey({name:"RSA-PSS",modulusLength:4096,publicExponent:new Uint8Array([1,0,1]),hash:{name:"SHA-256"}},!0,["sign"]),r=await this.driver.exportKey("jwk",e.privateKey);return{kty:r.kty,e:r.e,n:r.n,d:r.d,p:r.p,q:r.q,dp:r.dp,dq:r.dq,qi:r.qi}}async sign(e,r,{saltLength:n}={}){let i=await this.driver.sign({name:"RSA-PSS",saltLength:n??32},await this.jwkToCryptoKey(e),r);return new Uint8Array(i)}async hash(e,r="SHA-256"){let n=await this.driver.digest(r,e);return new Uint8Array(n)}async verify(e,r,n){let i={kty:"RSA",e:"AQAB",n:e},a=await this.jwkToPublicCryptoKey(i),d=await this.driver.digest("SHA-256",r),v=await this.driver.verify({name:"RSA-PSS",saltLength:0},a,n,r),y=await this.driver.verify({name:"RSA-PSS",saltLength:32},a,n,r),x=Math.ceil((a.algorithm.modulusLength-1)/8)-d.byteLength-2,B=await this.driver.verify({name:"RSA-PSS",saltLength:x},a,n,r),C=v||y||B;if(!C){let D={algorithm:a.algorithm.name,modulusLength:a.algorithm.modulusLength,keyUsages:a.usages,saltLengthsAttempted:`0, 32, ${x}`};console.warn(`Transaction Verification Failed!
1
+ var s8=Object.create;var iu=Object.defineProperty;var f8=Object.getOwnPropertyDescriptor;var c8=Object.getOwnPropertyNames;var u8=Object.getPrototypeOf,l8=Object.prototype.hasOwnProperty;var rt=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var V=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ap=(t,e)=>{for(var r in e)iu(t,r,{get:e[r],enumerable:!0})},d8=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of c8(e))!l8.call(t,i)&&i!==r&&iu(t,i,{get:()=>e[i],enumerable:!(n=f8(e,i))||n.enumerable});return t};var A=(t,e,r)=>(r=t!=null?s8(u8(t)):{},d8(e||!t||!t.__esModule?iu(r,"default",{value:t,enumerable:!0}):r,t));var M=V((y_,cp)=>{var mt=cp.exports={},Bn,Cn;function au(){throw new Error("setTimeout has not been defined")}function ou(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Bn=setTimeout:Bn=au}catch{Bn=au}try{typeof clearTimeout=="function"?Cn=clearTimeout:Cn=ou}catch{Cn=ou}})();function op(t){if(Bn===setTimeout)return setTimeout(t,0);if((Bn===au||!Bn)&&setTimeout)return Bn=setTimeout,setTimeout(t,0);try{return Bn(t,0)}catch{try{return Bn.call(null,t,0)}catch{return Bn.call(this,t,0)}}}function h8(t){if(Cn===clearTimeout)return clearTimeout(t);if((Cn===ou||!Cn)&&clearTimeout)return Cn=clearTimeout,clearTimeout(t);try{return Cn(t)}catch{try{return Cn.call(null,t)}catch{return Cn.call(this,t)}}}var si=[],Wa=!1,fa,_f=-1;function p8(){!Wa||!fa||(Wa=!1,fa.length?si=fa.concat(si):_f=-1,si.length&&sp())}function sp(){if(!Wa){var t=op(p8);Wa=!0;for(var e=si.length;e;){for(fa=si,si=[];++_f<e;)fa&&fa[_f].run();_f=-1,e=si.length}fa=null,Wa=!1,h8(t)}}mt.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];si.push(new fp(t,e)),si.length===1&&!Wa&&op(sp)};function fp(t,e){this.fun=t,this.array=e}fp.prototype.run=function(){this.fun.apply(null,this.array)};mt.title="browser";mt.browser=!0;mt.env={};mt.argv=[];mt.version="";mt.versions={};function fi(){}mt.on=fi;mt.addListener=fi;mt.once=fi;mt.off=fi;mt.removeListener=fi;mt.removeAllListeners=fi;mt.emit=fi;mt.prependListener=fi;mt.prependOnceListener=fi;mt.listeners=function(t){return[]};mt.binding=function(t){throw new Error("process.binding is not supported")};mt.cwd=function(){return"/"};mt.chdir=function(t){throw new Error("process.chdir is not supported")};mt.umask=function(){return 0}});var mp=V(lu=>{"use strict";var N_=A(M());Object.defineProperty(lu,"__esModule",{value:!0});function y8(t){var e=4,r=t.length,n=r%e;if(!n)return t;var i=r,a=e-n,d=r+a,v=Buffer.alloc(d);for(v.write(t);a--;)v.write("=",i++);return v.toString()}lu.default=y8});var yp=V(pu=>{"use strict";var J_=A(M());Object.defineProperty(pu,"__esModule",{value:!0});var w8=mp();function xp(t,e){return e===void 0&&(e="utf8"),Buffer.isBuffer(t)?du(t.toString("base64")):du(Buffer.from(t,e).toString("base64"))}function A8(t,e){return e===void 0&&(e="utf8"),Buffer.from(hu(t),"base64").toString(e)}function hu(t){return t=t.toString(),w8.default(t).replace(/\-/g,"+").replace(/_/g,"/")}function du(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function M8(t){return Buffer.from(hu(t),"base64")}var $a=xp;$a.encode=xp;$a.decode=A8;$a.toBase64=hu;$a.fromBase64=du;$a.toBuffer=M8;pu.default=$a});var Hr=V((U_,Rf)=>{var H_=A(M());Rf.exports=yp().default;Rf.exports.default=Rf.exports});var Dp=V(If=>{"use strict";var Y_=A(M());If.byteLength=H8;If.toByteArray=G8;If.fromByteArray=K8;var Fn=[],qr=[],U8=typeof Uint8Array<"u"?Uint8Array:Array,Su="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ua=0,Rp=Su.length;ua<Rp;++ua)Fn[ua]=Su[ua],qr[Su.charCodeAt(ua)]=ua;var ua,Rp;qr[45]=62;qr[95]=63;function Fp(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function H8(t){var e=Fp(t),r=e[0],n=e[1];return(r+n)*3/4-n}function q8(t,e,r){return(e+r)*3/4-r}function G8(t){var e,r=Fp(t),n=r[0],i=r[1],a=new U8(q8(t,n,i)),d=0,v=i>0?n-4:n,y;for(y=0;y<v;y+=4)e=qr[t.charCodeAt(y)]<<18|qr[t.charCodeAt(y+1)]<<12|qr[t.charCodeAt(y+2)]<<6|qr[t.charCodeAt(y+3)],a[d++]=e>>16&255,a[d++]=e>>8&255,a[d++]=e&255;return i===2&&(e=qr[t.charCodeAt(y)]<<2|qr[t.charCodeAt(y+1)]>>4,a[d++]=e&255),i===1&&(e=qr[t.charCodeAt(y)]<<10|qr[t.charCodeAt(y+1)]<<4|qr[t.charCodeAt(y+2)]>>2,a[d++]=e>>8&255,a[d++]=e&255),a}function X8(t){return Fn[t>>18&63]+Fn[t>>12&63]+Fn[t>>6&63]+Fn[t&63]}function z8(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(X8(n));return i.join("")}function K8(t){for(var e,r=t.length,n=r%3,i=[],a=16383,d=0,v=r-n;d<v;d+=a)i.push(z8(t,d,d+a>v?v:d+a));return n===1?(e=t[r-1],i.push(Fn[e>>2]+Fn[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(Fn[e>>10]+Fn[e>>4&63]+Fn[e<<2&63]+"=")),i.join("")}});var gn=V(Gr=>{"use strict";var eB=A(M());Object.defineProperty(Gr,"__esModule",{value:!0});Gr.concatBuffers=Z8;Gr.b64UrlToString=V8;Gr.bufferToString=Ip;Gr.stringToBuffer=Np;Gr.stringToB64Url=j8;Gr.b64UrlToBuffer=kp;Gr.bufferTob64=Jp;Gr.bufferTob64Url=Up;Gr.b64UrlEncode=Hp;Gr.b64UrlDecode=qp;var Op=Dp();function Z8(t){let e=0;for(let i=0;i<t.length;i++)e+=t[i].byteLength;let r=new Uint8Array(e),n=0;r.set(new Uint8Array(t[0]),n),n+=t[0].byteLength;for(let i=1;i<t.length;i++)r.set(new Uint8Array(t[i]),n),n+=t[i].byteLength;return r}function V8(t){let e=kp(t);return Ip(e)}function Ip(t){return new TextDecoder("utf-8",{fatal:!0}).decode(t)}function Np(t){return new TextEncoder().encode(t)}function j8(t){return Up(Np(t))}function kp(t){return new Uint8Array(Op.toByteArray(qp(t)))}function Jp(t){return Op.fromByteArray(new Uint8Array(t))}function Up(t){return Hp(Jp(t))}function Hp(t){try{return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}catch(e){throw new Error("Failed to encode string",{cause:e})}}function qp(t){try{t=t.replace(/\-/g,"+").replace(/\_/g,"/");let e;return t.length%4==0?e=0:e=4-t.length%4,t.concat("=".repeat(e))}catch(e){throw new Error("Failed to decode string",{cause:e})}}});var _u=V(Eu=>{"use strict";var oB=A(M());Object.defineProperty(Eu,"__esModule",{value:!0});var Fi=gn(),Tu=class{keyLength=4096;publicExponent=65537;hashAlgorithm="sha256";driver;constructor(){if(!this.detectWebCrypto())throw new Error("SubtleCrypto not available!");this.driver=crypto.subtle}async generateJWK(){let e=await this.driver.generateKey({name:"RSA-PSS",modulusLength:4096,publicExponent:new Uint8Array([1,0,1]),hash:{name:"SHA-256"}},!0,["sign"]),r=await this.driver.exportKey("jwk",e.privateKey);return{kty:r.kty,e:r.e,n:r.n,d:r.d,p:r.p,q:r.q,dp:r.dp,dq:r.dq,qi:r.qi}}async sign(e,r,{saltLength:n}={}){let i=await this.driver.sign({name:"RSA-PSS",saltLength:n??32},await this.jwkToCryptoKey(e),r);return new Uint8Array(i)}async hash(e,r="SHA-256"){let n=await this.driver.digest(r,e);return new Uint8Array(n)}async verify(e,r,n){let i={kty:"RSA",e:"AQAB",n:e},a=await this.jwkToPublicCryptoKey(i),d=await this.driver.digest("SHA-256",r),v=await this.driver.verify({name:"RSA-PSS",saltLength:0},a,n,r),y=await this.driver.verify({name:"RSA-PSS",saltLength:32},a,n,r),x=Math.ceil((a.algorithm.modulusLength-1)/8)-d.byteLength-2,B=await this.driver.verify({name:"RSA-PSS",saltLength:x},a,n,r),C=v||y||B;if(!C){let D={algorithm:a.algorithm.name,modulusLength:a.algorithm.modulusLength,keyUsages:a.usages,saltLengthsAttempted:`0, 32, ${x}`};console.warn(`Transaction Verification Failed!
2
2
  `,`Details: ${JSON.stringify(D,null,2)}
3
- `,"N.B. ArweaveJS is only guaranteed to verify txs created using ArweaveJS.")}return C}async jwkToCryptoKey(e){return this.driver.importKey("jwk",e,{name:"RSA-PSS",hash:{name:"SHA-256"}},!1,["sign"])}async jwkToPublicCryptoKey(e){return this.driver.importKey("jwk",e,{name:"RSA-PSS",hash:{name:"SHA-256"}},!1,["verify"])}detectWebCrypto(){if(typeof crypto>"u")return!1;let e=crypto?.subtle;return e===void 0?!1:["generateKey","importKey","exportKey","digest","sign"].every(n=>typeof e[n]=="function")}async encrypt(e,r,n){let i=await this.driver.importKey("raw",typeof r=="string"?Fi.stringToBuffer(r):r,{name:"PBKDF2",length:32},!1,["deriveKey"]),a=await this.driver.deriveKey({name:"PBKDF2",salt:n?Fi.stringToBuffer(n):Fi.stringToBuffer("salt"),iterations:1e5,hash:"SHA-256"},i,{name:"AES-CBC",length:256},!1,["encrypt","decrypt"]),d=new Uint8Array(16);crypto.getRandomValues(d);let v=await this.driver.encrypt({name:"AES-CBC",iv:d},a,e);return Fi.concatBuffers([d,v])}async decrypt(e,r,n){let i=await this.driver.importKey("raw",typeof r=="string"?Fi.stringToBuffer(r):r,{name:"PBKDF2",length:32},!1,["deriveKey"]),a=await this.driver.deriveKey({name:"PBKDF2",salt:n?Fi.stringToBuffer(n):Fi.stringToBuffer("salt"),iterations:1e5,hash:"SHA-256"},i,{name:"AES-CBC",length:256},!1,["encrypt","decrypt"]),d=e.slice(0,16),v=await this.driver.decrypt({name:"AES-CBC",iv:d},a,e.slice(16));return Fi.concatBuffers([v])}};Tu.default=Su});var Xp=V((Gp,Nf)=>{var aB=A(S());(function(t){"use strict";var e,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,i=Math.floor,a="[BigNumber Error] ",d=a+"Number primitive has more than 15 significant digits: ",v=1e14,y=14,x=9007199254740991,B=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],C=1e7,D=1e9;function F(ie){var ee,ce,te,Y=w.prototype={constructor:w,toString:null,valueOf:null},M=new w(1),s=20,u=4,l=-7,f=21,c=-1e7,g=1e7,m=!1,h=1,o=0,p={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},E="0123456789abcdefghijklmnopqrstuvwxyz",b=!0;function w(_,R){var L,O,G,I,J,z,k,U,Q=this;if(!(Q instanceof w))return new w(_,R);if(R==null){if(_&&_._isBigNumber===!0){Q.s=_.s,!_.c||_.e>g?Q.c=Q.e=null:_.e<c?Q.c=[Q.e=0]:(Q.e=_.e,Q.c=_.c.slice());return}if((z=typeof _=="number")&&_*0==0){if(Q.s=1/_<0?(_=-_,-1):1,_===~~_){for(I=0,J=_;J>=10;J/=10,I++);I>g?Q.c=Q.e=null:(Q.e=I,Q.c=[_]);return}U=String(_)}else{if(!r.test(U=String(_)))return te(Q,U,z);Q.s=U.charCodeAt(0)==45?(U=U.slice(1),-1):1}(I=U.indexOf("."))>-1&&(U=U.replace(".","")),(J=U.search(/e/i))>0?(I<0&&(I=J),I+=+U.slice(J+1),U=U.substring(0,J)):I<0&&(I=U.length)}else{if(K(R,2,E.length,"Base"),R==10&&b)return Q=new w(_),X(Q,s+Q.e+1,u);if(U=String(_),z=typeof _=="number"){if(_*0!=0)return te(Q,U,z,R);if(Q.s=1/_<0?(U=U.slice(1),-1):1,w.DEBUG&&U.replace(/^0\.0*|\./,"").length>15)throw Error(d+_)}else Q.s=U.charCodeAt(0)===45?(U=U.slice(1),-1):1;for(L=E.slice(0,R),I=J=0,k=U.length;J<k;J++)if(L.indexOf(O=U.charAt(J))<0){if(O=="."){if(J>I){I=k;continue}}else if(!G&&(U==U.toUpperCase()&&(U=U.toLowerCase())||U==U.toLowerCase()&&(U=U.toUpperCase()))){G=!0,J=-1,I=0;continue}return te(Q,String(_),z,R)}z=!1,U=ce(U,R,10,Q.s),(I=U.indexOf("."))>-1?U=U.replace(".",""):I=U.length}for(J=0;U.charCodeAt(J)===48;J++);for(k=U.length;U.charCodeAt(--k)===48;);if(U=U.slice(J,++k)){if(k-=J,z&&w.DEBUG&&k>15&&(_>x||_!==i(_)))throw Error(d+Q.s*_);if((I=I-J-1)>g)Q.c=Q.e=null;else if(I<c)Q.c=[Q.e=0];else{if(Q.e=I,Q.c=[],J=(I+1)%y,I<0&&(J+=y),J<k){for(J&&Q.c.push(+U.slice(0,J)),k-=y;J<k;)Q.c.push(+U.slice(J,J+=y));J=y-(U=U.slice(J)).length}else J-=k;for(;J--;U+="0");Q.c.push(+U)}}else Q.c=[Q.e=0]}w.clone=F,w.ROUND_UP=0,w.ROUND_DOWN=1,w.ROUND_CEIL=2,w.ROUND_FLOOR=3,w.ROUND_HALF_UP=4,w.ROUND_HALF_DOWN=5,w.ROUND_HALF_EVEN=6,w.ROUND_HALF_CEIL=7,w.ROUND_HALF_FLOOR=8,w.EUCLID=9,w.config=w.set=function(_){var R,L;if(_!=null)if(typeof _=="object"){if(_.hasOwnProperty(R="DECIMAL_PLACES")&&(L=_[R],K(L,0,D,R),s=L),_.hasOwnProperty(R="ROUNDING_MODE")&&(L=_[R],K(L,0,8,R),u=L),_.hasOwnProperty(R="EXPONENTIAL_AT")&&(L=_[R],L&&L.pop?(K(L[0],-D,0,R),K(L[1],0,D,R),l=L[0],f=L[1]):(K(L,-D,D,R),l=-(f=L<0?-L:L))),_.hasOwnProperty(R="RANGE"))if(L=_[R],L&&L.pop)K(L[0],-D,-1,R),K(L[1],1,D,R),c=L[0],g=L[1];else if(K(L,-D,D,R),L)c=-(g=L<0?-L:L);else throw Error(a+R+" cannot be zero: "+L);if(_.hasOwnProperty(R="CRYPTO"))if(L=_[R],L===!!L)if(L)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))m=L;else throw m=!L,Error(a+"crypto unavailable");else m=L;else throw Error(a+R+" not true or false: "+L);if(_.hasOwnProperty(R="MODULO_MODE")&&(L=_[R],K(L,0,9,R),h=L),_.hasOwnProperty(R="POW_PRECISION")&&(L=_[R],K(L,0,D,R),o=L),_.hasOwnProperty(R="FORMAT"))if(L=_[R],typeof L=="object")p=L;else throw Error(a+R+" not an object: "+L);if(_.hasOwnProperty(R="ALPHABET"))if(L=_[R],typeof L=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(L))b=L.slice(0,10)=="0123456789",E=L;else throw Error(a+R+" invalid: "+L)}else throw Error(a+"Object expected: "+_);return{DECIMAL_PLACES:s,ROUNDING_MODE:u,EXPONENTIAL_AT:[l,f],RANGE:[c,g],CRYPTO:m,MODULO_MODE:h,POW_PRECISION:o,FORMAT:p,ALPHABET:E}},w.isBigNumber=function(_){if(!_||_._isBigNumber!==!0)return!1;if(!w.DEBUG)return!0;var R,L,O=_.c,G=_.e,I=_.s;e:if({}.toString.call(O)=="[object Array]"){if((I===1||I===-1)&&G>=-D&&G<=D&&G===i(G)){if(O[0]===0){if(G===0&&O.length===1)return!0;break e}if(R=(G+1)%y,R<1&&(R+=y),String(O[0]).length==R){for(R=0;R<O.length;R++)if(L=O[R],L<0||L>=v||L!==i(L))break e;if(L!==0)return!0}}}else if(O===null&&G===null&&(I===null||I===1||I===-1))return!0;throw Error(a+"Invalid BigNumber: "+_)},w.maximum=w.max=function(){return T(arguments,-1)},w.minimum=w.min=function(){return T(arguments,1)},w.random=function(){var _=9007199254740992,R=Math.random()*_&2097151?function(){return i(Math.random()*_)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(L){var O,G,I,J,z,k=0,U=[],Q=new w(M);if(L==null?L=s:K(L,0,D),J=n(L/y),m)if(crypto.getRandomValues){for(O=crypto.getRandomValues(new Uint32Array(J*=2));k<J;)z=O[k]*131072+(O[k+1]>>>11),z>=9e15?(G=crypto.getRandomValues(new Uint32Array(2)),O[k]=G[0],O[k+1]=G[1]):(U.push(z%1e14),k+=2);k=J/2}else if(crypto.randomBytes){for(O=crypto.randomBytes(J*=7);k<J;)z=(O[k]&31)*281474976710656+O[k+1]*1099511627776+O[k+2]*4294967296+O[k+3]*16777216+(O[k+4]<<16)+(O[k+5]<<8)+O[k+6],z>=9e15?crypto.randomBytes(7).copy(O,k):(U.push(z%1e14),k+=7);k=J/7}else throw m=!1,Error(a+"crypto unavailable");if(!m)for(;k<J;)z=R(),z<9e15&&(U[k++]=z%1e14);for(J=U[--k],L%=y,J&&L&&(z=B[y-L],U[k]=i(J/z)*z);U[k]===0;U.pop(),k--);if(k<0)U=[I=0];else{for(I=-1;U[0]===0;U.splice(0,1),I-=y);for(k=1,z=U[0];z>=10;z/=10,k++);k<y&&(I-=y-k)}return Q.e=I,Q.c=U,Q}}(),w.sum=function(){for(var _=1,R=arguments,L=new w(R[0]);_<R.length;)L=L.plus(R[_++]);return L},ce=function(){var _="0123456789";function R(L,O,G,I){for(var J,z=[0],k,U=0,Q=L.length;U<Q;){for(k=z.length;k--;z[k]*=O);for(z[0]+=I.indexOf(L.charAt(U++)),J=0;J<z.length;J++)z[J]>G-1&&(z[J+1]==null&&(z[J+1]=0),z[J+1]+=z[J]/G|0,z[J]%=G)}return z.reverse()}return function(L,O,G,I,J){var z,k,U,Q,j,re,De,se,le=L.indexOf("."),Ue=s,oe=u;for(le>=0&&(Q=o,o=0,L=L.replace(".",""),se=new w(O),re=se.pow(L.length-le),o=Q,se.c=R(ae(q(re.c),re.e,"0"),10,G,_),se.e=se.c.length),De=R(L,O,G,J?(z=E,_):(z=_,E)),U=Q=De.length;De[--Q]==0;De.pop());if(!De[0])return z.charAt(0);if(le<0?--U:(re.c=De,re.e=U,re.s=I,re=ee(re,se,Ue,oe,G),De=re.c,j=re.r,U=re.e),k=U+Ue+1,le=De[k],Q=G/2,j=j||k<0||De[k+1]!=null,j=oe<4?(le!=null||j)&&(oe==0||oe==(re.s<0?3:2)):le>Q||le==Q&&(oe==4||j||oe==6&&De[k-1]&1||oe==(re.s<0?8:7)),k<1||!De[0])L=j?ae(z.charAt(1),-Ue,z.charAt(0)):z.charAt(0);else{if(De.length=k,j)for(--G;++De[--k]>G;)De[k]=0,k||(++U,De=[1].concat(De));for(Q=De.length;!De[--Q];);for(le=0,L="";le<=Q;L+=z.charAt(De[le++]));L=ae(L,U,z.charAt(0))}return L}}(),ee=function(){function _(O,G,I){var J,z,k,U,Q=0,j=O.length,re=G%C,De=G/C|0;for(O=O.slice();j--;)k=O[j]%C,U=O[j]/C|0,J=De*k+U*re,z=re*k+J%C*C+Q,Q=(z/I|0)+(J/C|0)+De*U,O[j]=z%I;return Q&&(O=[Q].concat(O)),O}function R(O,G,I,J){var z,k;if(I!=J)k=I>J?1:-1;else for(z=k=0;z<I;z++)if(O[z]!=G[z]){k=O[z]>G[z]?1:-1;break}return k}function L(O,G,I,J){for(var z=0;I--;)O[I]-=z,z=O[I]<G[I]?1:0,O[I]=z*J+O[I]-G[I];for(;!O[0]&&O.length>1;O.splice(0,1));}return function(O,G,I,J,z){var k,U,Q,j,re,De,se,le,Ue,oe,fe,Xe,ge,ve,vt,pe,be,Ye=O.s==G.s?1:-1,de=O.c,ue=G.c;if(!de||!de[0]||!ue||!ue[0])return new w(!O.s||!G.s||(de?ue&&de[0]==ue[0]:!ue)?NaN:de&&de[0]==0||!ue?Ye*0:Ye/0);for(le=new w(Ye),Ue=le.c=[],U=O.e-G.e,Ye=I+U+1,z||(z=v,U=P(O.e/y)-P(G.e/y),Ye=Ye/y|0),Q=0;ue[Q]==(de[Q]||0);Q++);if(ue[Q]>(de[Q]||0)&&U--,Ye<0)Ue.push(1),j=!0;else{for(ve=de.length,pe=ue.length,Q=0,Ye+=2,re=i(z/(ue[0]+1)),re>1&&(ue=_(ue,re,z),de=_(de,re,z),pe=ue.length,ve=de.length),ge=pe,oe=de.slice(0,pe),fe=oe.length;fe<pe;oe[fe++]=0);be=ue.slice(),be=[0].concat(be),vt=ue[0],ue[1]>=z/2&&vt++;do{if(re=0,k=R(ue,oe,pe,fe),k<0){if(Xe=oe[0],pe!=fe&&(Xe=Xe*z+(oe[1]||0)),re=i(Xe/vt),re>1)for(re>=z&&(re=z-1),De=_(ue,re,z),se=De.length,fe=oe.length;R(De,oe,se,fe)==1;)re--,L(De,pe<se?be:ue,se,z),se=De.length,k=1;else re==0&&(k=re=1),De=ue.slice(),se=De.length;if(se<fe&&(De=[0].concat(De)),L(oe,De,fe,z),fe=oe.length,k==-1)for(;R(ue,oe,pe,fe)<1;)re++,L(oe,pe<fe?be:ue,fe,z),fe=oe.length}else k===0&&(re++,oe=[0]);Ue[Q++]=re,oe[0]?oe[fe++]=de[ge]||0:(oe=[de[ge]],fe=1)}while((ge++<ve||oe[0]!=null)&&Ye--);j=oe[0]!=null,Ue[0]||Ue.splice(0,1)}if(z==v){for(Q=1,Ye=Ue[0];Ye>=10;Ye/=10,Q++);X(le,I+(le.e=Q+U*y-1)+1,J,j)}else le.e=U,le.r=+j;return le}}();function H(_,R,L,O){var G,I,J,z,k;if(L==null?L=u:K(L,0,8),!_.c)return _.toString();if(G=_.c[0],J=_.e,R==null)k=q(_.c),k=O==1||O==2&&(J<=l||J>=f)?$(k,J):ae(k,J,"0");else if(_=X(new w(_),R,L),I=_.e,k=q(_.c),z=k.length,O==1||O==2&&(R<=I||I<=l)){for(;z<R;k+="0",z++);k=$(k,I)}else if(R-=J,k=ae(k,I,"0"),I+1>z){if(--R>0)for(k+=".";R--;k+="0");}else if(R+=I-z,R>0)for(I+1==z&&(k+=".");R--;k+="0");return _.s<0&&G?"-"+k:k}function T(_,R){for(var L,O,G=1,I=new w(_[0]);G<_.length;G++)O=new w(_[G]),(!O.s||(L=W(I,O))===R||L===0&&I.s===R)&&(I=O);return I}function N(_,R,L){for(var O=1,G=R.length;!R[--G];R.pop());for(G=R[0];G>=10;G/=10,O++);return(L=O+L*y-1)>g?_.c=_.e=null:L<c?_.c=[_.e=0]:(_.e=L,_.c=R),_}te=function(){var _=/^(-?)0([xbo])(?=\w[\w.]*$)/i,R=/^([^.]+)\.$/,L=/^\.([^.]+)$/,O=/^-?(Infinity|NaN)$/,G=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(I,J,z,k){var U,Q=z?J:J.replace(G,"");if(O.test(Q))I.s=isNaN(Q)?null:Q<0?-1:1;else{if(!z&&(Q=Q.replace(_,function(j,re,De){return U=(De=De.toLowerCase())=="x"?16:De=="b"?2:8,!k||k==U?re:j}),k&&(U=k,Q=Q.replace(R,"$1").replace(L,"0.$1")),J!=Q))return new w(Q,U);if(w.DEBUG)throw Error(a+"Not a"+(k?" base "+k:"")+" number: "+J);I.s=null}I.c=I.e=null}}();function X(_,R,L,O){var G,I,J,z,k,U,Q,j=_.c,re=B;if(j){e:{for(G=1,z=j[0];z>=10;z/=10,G++);if(I=R-G,I<0)I+=y,J=R,k=j[U=0],Q=i(k/re[G-J-1]%10);else if(U=n((I+1)/y),U>=j.length)if(O){for(;j.length<=U;j.push(0));k=Q=0,G=1,I%=y,J=I-y+1}else break e;else{for(k=z=j[U],G=1;z>=10;z/=10,G++);I%=y,J=I-y+G,Q=J<0?0:i(k/re[G-J-1]%10)}if(O=O||R<0||j[U+1]!=null||(J<0?k:k%re[G-J-1]),O=L<4?(Q||O)&&(L==0||L==(_.s<0?3:2)):Q>5||Q==5&&(L==4||O||L==6&&(I>0?J>0?k/re[G-J]:0:j[U-1])%10&1||L==(_.s<0?8:7)),R<1||!j[0])return j.length=0,O?(R-=_.e+1,j[0]=re[(y-R%y)%y],_.e=-R||0):j[0]=_.e=0,_;if(I==0?(j.length=U,z=1,U--):(j.length=U+1,z=re[y-I],j[U]=J>0?i(k/re[G-J]%re[J])*z:0),O)for(;;)if(U==0){for(I=1,J=j[0];J>=10;J/=10,I++);for(J=j[0]+=z,z=1;J>=10;J/=10,z++);I!=z&&(_.e++,j[0]==v&&(j[0]=1));break}else{if(j[U]+=z,j[U]!=v)break;j[U--]=0,z=1}for(I=j.length;j[--I]===0;j.pop());}_.e>g?_.c=_.e=null:_.e<c&&(_.c=[_.e=0])}return _}function Z(_){var R,L=_.e;return L===null?_.toString():(R=q(_.c),R=L<=l||L>=f?$(R,L):ae(R,L,"0"),_.s<0?"-"+R:R)}return Y.absoluteValue=Y.abs=function(){var _=new w(this);return _.s<0&&(_.s=1),_},Y.comparedTo=function(_,R){return W(this,new w(_,R))},Y.decimalPlaces=Y.dp=function(_,R){var L,O,G,I=this;if(_!=null)return K(_,0,D),R==null?R=u:K(R,0,8),X(new w(I),_+I.e+1,R);if(!(L=I.c))return null;if(O=((G=L.length-1)-P(this.e/y))*y,G=L[G])for(;G%10==0;G/=10,O--);return O<0&&(O=0),O},Y.dividedBy=Y.div=function(_,R){return ee(this,new w(_,R),s,u)},Y.dividedToIntegerBy=Y.idiv=function(_,R){return ee(this,new w(_,R),0,1)},Y.exponentiatedBy=Y.pow=function(_,R){var L,O,G,I,J,z,k,U,Q,j=this;if(_=new w(_),_.c&&!_.isInteger())throw Error(a+"Exponent not an integer: "+Z(_));if(R!=null&&(R=new w(R)),z=_.e>14,!j.c||!j.c[0]||j.c[0]==1&&!j.e&&j.c.length==1||!_.c||!_.c[0])return Q=new w(Math.pow(+Z(j),z?_.s*(2-ne(_)):+Z(_))),R?Q.mod(R):Q;if(k=_.s<0,R){if(R.c?!R.c[0]:!R.s)return new w(NaN);O=!k&&j.isInteger()&&R.isInteger(),O&&(j=j.mod(R))}else{if(_.e>9&&(j.e>0||j.e<-1||(j.e==0?j.c[0]>1||z&&j.c[1]>=24e7:j.c[0]<8e13||z&&j.c[0]<=9999975e7)))return I=j.s<0&&ne(_)?-0:0,j.e>-1&&(I=1/I),new w(k?1/I:I);o&&(I=n(o/y+2))}for(z?(L=new w(.5),k&&(_.s=1),U=ne(_)):(G=Math.abs(+Z(_)),U=G%2),Q=new w(M);;){if(U){if(Q=Q.times(j),!Q.c)break;I?Q.c.length>I&&(Q.c.length=I):O&&(Q=Q.mod(R))}if(G){if(G=i(G/2),G===0)break;U=G%2}else if(_=_.times(L),X(_,_.e+1,1),_.e>14)U=ne(_);else{if(G=+Z(_),G===0)break;U=G%2}j=j.times(j),I?j.c&&j.c.length>I&&(j.c.length=I):O&&(j=j.mod(R))}return O?Q:(k&&(Q=M.div(Q)),R?Q.mod(R):I?X(Q,o,u,J):Q)},Y.integerValue=function(_){var R=new w(this);return _==null?_=u:K(_,0,8),X(R,R.e+1,_)},Y.isEqualTo=Y.eq=function(_,R){return W(this,new w(_,R))===0},Y.isFinite=function(){return!!this.c},Y.isGreaterThan=Y.gt=function(_,R){return W(this,new w(_,R))>0},Y.isGreaterThanOrEqualTo=Y.gte=function(_,R){return(R=W(this,new w(_,R)))===1||R===0},Y.isInteger=function(){return!!this.c&&P(this.e/y)>this.c.length-2},Y.isLessThan=Y.lt=function(_,R){return W(this,new w(_,R))<0},Y.isLessThanOrEqualTo=Y.lte=function(_,R){return(R=W(this,new w(_,R)))===-1||R===0},Y.isNaN=function(){return!this.s},Y.isNegative=function(){return this.s<0},Y.isPositive=function(){return this.s>0},Y.isZero=function(){return!!this.c&&this.c[0]==0},Y.minus=function(_,R){var L,O,G,I,J=this,z=J.s;if(_=new w(_,R),R=_.s,!z||!R)return new w(NaN);if(z!=R)return _.s=-R,J.plus(_);var k=J.e/y,U=_.e/y,Q=J.c,j=_.c;if(!k||!U){if(!Q||!j)return Q?(_.s=-R,_):new w(j?J:NaN);if(!Q[0]||!j[0])return j[0]?(_.s=-R,_):new w(Q[0]?J:u==3?-0:0)}if(k=P(k),U=P(U),Q=Q.slice(),z=k-U){for((I=z<0)?(z=-z,G=Q):(U=k,G=j),G.reverse(),R=z;R--;G.push(0));G.reverse()}else for(O=(I=(z=Q.length)<(R=j.length))?z:R,z=R=0;R<O;R++)if(Q[R]!=j[R]){I=Q[R]<j[R];break}if(I&&(G=Q,Q=j,j=G,_.s=-_.s),R=(O=j.length)-(L=Q.length),R>0)for(;R--;Q[L++]=0);for(R=v-1;O>z;){if(Q[--O]<j[O]){for(L=O;L&&!Q[--L];Q[L]=R);--Q[L],Q[O]+=v}Q[O]-=j[O]}for(;Q[0]==0;Q.splice(0,1),--U);return Q[0]?N(_,Q,U):(_.s=u==3?-1:1,_.c=[_.e=0],_)},Y.modulo=Y.mod=function(_,R){var L,O,G=this;return _=new w(_,R),!G.c||!_.s||_.c&&!_.c[0]?new w(NaN):!_.c||G.c&&!G.c[0]?new w(G):(h==9?(O=_.s,_.s=1,L=ee(G,_,0,3),_.s=O,L.s*=O):L=ee(G,_,0,h),_=G.minus(L.times(_)),!_.c[0]&&h==1&&(_.s=G.s),_)},Y.multipliedBy=Y.times=function(_,R){var L,O,G,I,J,z,k,U,Q,j,re,De,se,le,Ue,oe=this,fe=oe.c,Xe=(_=new w(_,R)).c;if(!fe||!Xe||!fe[0]||!Xe[0])return!oe.s||!_.s||fe&&!fe[0]&&!Xe||Xe&&!Xe[0]&&!fe?_.c=_.e=_.s=null:(_.s*=oe.s,!fe||!Xe?_.c=_.e=null:(_.c=[0],_.e=0)),_;for(O=P(oe.e/y)+P(_.e/y),_.s*=oe.s,k=fe.length,j=Xe.length,k<j&&(se=fe,fe=Xe,Xe=se,G=k,k=j,j=G),G=k+j,se=[];G--;se.push(0));for(le=v,Ue=C,G=j;--G>=0;){for(L=0,re=Xe[G]%Ue,De=Xe[G]/Ue|0,J=k,I=G+J;I>G;)U=fe[--J]%Ue,Q=fe[J]/Ue|0,z=De*U+Q*re,U=re*U+z%Ue*Ue+se[I]+L,L=(U/le|0)+(z/Ue|0)+De*Q,se[I--]=U%le;se[I]=L}return L?++O:se.splice(0,1),N(_,se,O)},Y.negated=function(){var _=new w(this);return _.s=-_.s||null,_},Y.plus=function(_,R){var L,O=this,G=O.s;if(_=new w(_,R),R=_.s,!G||!R)return new w(NaN);if(G!=R)return _.s=-R,O.minus(_);var I=O.e/y,J=_.e/y,z=O.c,k=_.c;if(!I||!J){if(!z||!k)return new w(G/0);if(!z[0]||!k[0])return k[0]?_:new w(z[0]?O:G*0)}if(I=P(I),J=P(J),z=z.slice(),G=I-J){for(G>0?(J=I,L=k):(G=-G,L=z),L.reverse();G--;L.push(0));L.reverse()}for(G=z.length,R=k.length,G-R<0&&(L=k,k=z,z=L,R=G),G=0;R;)G=(z[--R]=z[R]+k[R]+G)/v|0,z[R]=v===z[R]?0:z[R]%v;return G&&(z=[G].concat(z),++J),N(_,z,J)},Y.precision=Y.sd=function(_,R){var L,O,G,I=this;if(_!=null&&_!==!!_)return K(_,1,D),R==null?R=u:K(R,0,8),X(new w(I),_,R);if(!(L=I.c))return null;if(G=L.length-1,O=G*y+1,G=L[G]){for(;G%10==0;G/=10,O--);for(G=L[0];G>=10;G/=10,O++);}return _&&I.e+1>O&&(O=I.e+1),O},Y.shiftedBy=function(_){return K(_,-x,x),this.times("1e"+_)},Y.squareRoot=Y.sqrt=function(){var _,R,L,O,G,I=this,J=I.c,z=I.s,k=I.e,U=s+4,Q=new w("0.5");if(z!==1||!J||!J[0])return new w(!z||z<0&&(!J||J[0])?NaN:J?I:1/0);if(z=Math.sqrt(+Z(I)),z==0||z==1/0?(R=q(J),(R.length+k)%2==0&&(R+="0"),z=Math.sqrt(+R),k=P((k+1)/2)-(k<0||k%2),z==1/0?R="5e"+k:(R=z.toExponential(),R=R.slice(0,R.indexOf("e")+1)+k),L=new w(R)):L=new w(z+""),L.c[0]){for(k=L.e,z=k+U,z<3&&(z=0);;)if(G=L,L=Q.times(G.plus(ee(I,G,U,1))),q(G.c).slice(0,z)===(R=q(L.c)).slice(0,z))if(L.e<k&&--z,R=R.slice(z-3,z+1),R=="9999"||!O&&R=="4999"){if(!O&&(X(G,G.e+s+2,0),G.times(G).eq(I))){L=G;break}U+=4,z+=4,O=1}else{(!+R||!+R.slice(1)&&R.charAt(0)=="5")&&(X(L,L.e+s+2,1),_=!L.times(L).eq(I));break}}return X(L,L.e+s+1,u,_)},Y.toExponential=function(_,R){return _!=null&&(K(_,0,D),_++),H(this,_,R,1)},Y.toFixed=function(_,R){return _!=null&&(K(_,0,D),_=_+this.e+1),H(this,_,R)},Y.toFormat=function(_,R,L){var O,G=this;if(L==null)_!=null&&R&&typeof R=="object"?(L=R,R=null):_&&typeof _=="object"?(L=_,_=R=null):L=p;else if(typeof L!="object")throw Error(a+"Argument not an object: "+L);if(O=G.toFixed(_,R),G.c){var I,J=O.split("."),z=+L.groupSize,k=+L.secondaryGroupSize,U=L.groupSeparator||"",Q=J[0],j=J[1],re=G.s<0,De=re?Q.slice(1):Q,se=De.length;if(k&&(I=z,z=k,k=I,se-=I),z>0&&se>0){for(I=se%z||z,Q=De.substr(0,I);I<se;I+=z)Q+=U+De.substr(I,z);k>0&&(Q+=U+De.slice(I)),re&&(Q="-"+Q)}O=j?Q+(L.decimalSeparator||"")+((k=+L.fractionGroupSize)?j.replace(new RegExp("\\d{"+k+"}\\B","g"),"$&"+(L.fractionGroupSeparator||"")):j):Q}return(L.prefix||"")+O+(L.suffix||"")},Y.toFraction=function(_){var R,L,O,G,I,J,z,k,U,Q,j,re,De=this,se=De.c;if(_!=null&&(z=new w(_),!z.isInteger()&&(z.c||z.s!==1)||z.lt(M)))throw Error(a+"Argument "+(z.isInteger()?"out of range: ":"not an integer: ")+Z(z));if(!se)return new w(De);for(R=new w(M),U=L=new w(M),O=k=new w(M),re=q(se),I=R.e=re.length-De.e-1,R.c[0]=B[(J=I%y)<0?y+J:J],_=!_||z.comparedTo(R)>0?I>0?R:U:z,J=g,g=1/0,z=new w(re),k.c[0]=0;Q=ee(z,R,0,1),G=L.plus(Q.times(O)),G.comparedTo(_)!=1;)L=O,O=G,U=k.plus(Q.times(G=U)),k=G,R=z.minus(Q.times(G=R)),z=G;return G=ee(_.minus(L),O,0,1),k=k.plus(G.times(U)),L=L.plus(G.times(O)),k.s=U.s=De.s,I=I*2,j=ee(U,O,I,u).minus(De).abs().comparedTo(ee(k,L,I,u).minus(De).abs())<1?[U,O]:[k,L],g=J,j},Y.toNumber=function(){return+Z(this)},Y.toPrecision=function(_,R){return _!=null&&K(_,1,D),H(this,_,R,2)},Y.toString=function(_){var R,L=this,O=L.s,G=L.e;return G===null?O?(R="Infinity",O<0&&(R="-"+R)):R="NaN":(_==null?R=G<=l||G>=f?$(q(L.c),G):ae(q(L.c),G,"0"):_===10&&b?(L=X(new w(L),s+G+1,u),R=ae(q(L.c),L.e,"0")):(K(_,2,E.length,"Base"),R=ce(ae(q(L.c),G,"0"),10,_,O,!0)),O<0&&L.c[0]&&(R="-"+R)),R},Y.valueOf=Y.toJSON=function(){return Z(this)},Y._isBigNumber=!0,ie!=null&&w.set(ie),w}function P(ie){var ee=ie|0;return ie>0||ie===ee?ee:ee-1}function q(ie){for(var ee,ce,te=1,Y=ie.length,M=ie[0]+"";te<Y;){for(ee=ie[te++]+"",ce=y-ee.length;ce--;ee="0"+ee);M+=ee}for(Y=M.length;M.charCodeAt(--Y)===48;);return M.slice(0,Y+1||1)}function W(ie,ee){var ce,te,Y=ie.c,M=ee.c,s=ie.s,u=ee.s,l=ie.e,f=ee.e;if(!s||!u)return null;if(ce=Y&&!Y[0],te=M&&!M[0],ce||te)return ce?te?0:-u:s;if(s!=u)return s;if(ce=s<0,te=l==f,!Y||!M)return te?0:!Y^ce?1:-1;if(!te)return l>f^ce?1:-1;for(u=(l=Y.length)<(f=M.length)?l:f,s=0;s<u;s++)if(Y[s]!=M[s])return Y[s]>M[s]^ce?1:-1;return l==f?0:l>f^ce?1:-1}function K(ie,ee,ce,te){if(ie<ee||ie>ce||ie!==i(ie))throw Error(a+(te||"Argument")+(typeof ie=="number"?ie<ee||ie>ce?" out of range: ":" not an integer: ":" not a primitive number: ")+String(ie))}function ne(ie){var ee=ie.c.length-1;return P(ie.e/y)==ee&&ie.c[ee]%2!=0}function $(ie,ee){return(ie.length>1?ie.charAt(0)+"."+ie.slice(1):ie)+(ee<0?"e":"e+")+ee}function ae(ie,ee,ce){var te,Y;if(ee<0){for(Y=ce+".";++ee;Y+=ce);ie=Y+ie}else if(te=ie.length,++ee>te){for(Y=ce,ee-=te;--ee;Y+=ce);ie+=Y}else ee<te&&(ie=ie.slice(0,ee)+"."+ie.slice(ee));return ie}e=F(),e.default=e.BigNumber=e,typeof define=="function"&&define.amd?define(function(){return e}):typeof Nf<"u"&&Nf.exports?Nf.exports=e:(t||(t=typeof self<"u"&&self?self:window),t.BigNumber=e)})(Gp)});var zp=V(Bu=>{"use strict";var sB=A(S());Object.defineProperty(Bu,"__esModule",{value:!0});var j8=Xp(),_u=class{BigNum;constructor(){this.BigNum=(e,r)=>{let n=j8.BigNumber.clone({DECIMAL_PLACES:r});return new n(e)}}winstonToAr(e,{formatted:r=!1,decimals:n=12,trim:i=!0}={}){let a=this.stringToBigNum(e,n).shiftedBy(-12);return r?a.toFormat(n):a.toFixed(n)}arToWinston(e,{formatted:r=!1}={}){let n=this.stringToBigNum(e).shiftedBy(12);return r?n.toFormat():n.toFixed(0)}compare(e,r){let n=this.stringToBigNum(e),i=this.stringToBigNum(r);return n.comparedTo(i)}isEqual(e,r){return this.compare(e,r)===0}isLessThan(e,r){let n=this.stringToBigNum(e),i=this.stringToBigNum(r);return n.isLessThan(i)}isGreaterThan(e,r){let n=this.stringToBigNum(e),i=this.stringToBigNum(r);return n.isGreaterThan(i)}add(e,r){let n=this.stringToBigNum(e),i=this.stringToBigNum(r);return n.plus(r).toFixed(0)}sub(e,r){let n=this.stringToBigNum(e),i=this.stringToBigNum(r);return n.minus(r).toFixed(0)}stringToBigNum(e,r=12){return this.BigNum(e,r)}};Bu.default=_u});var Kp=V(Pu=>{"use strict";var cB=A(S());Object.defineProperty(Pu,"__esModule",{value:!0});var Cu=class{METHOD_GET="GET";METHOD_POST="POST";config;constructor(e){this.applyConfig(e)}applyConfig(e){this.config=this.mergeDefaults(e)}getConfig(){return this.config}mergeDefaults(e){let r=e.protocol||"http",n=e.port||(r==="https"?443:80);return{host:e.host||"127.0.0.1",protocol:r,port:n,timeout:e.timeout||2e4,logging:e.logging||!1,logger:e.logger||console.log,network:e.network}}async get(e,r){return await this.request(e,{...r,method:this.METHOD_GET})}async post(e,r,n){let i=new Headers(n?.headers||{});return i.get("content-type")?.includes("application/json")||i.append("content-type","application/json"),i.append("accept","application/json, text/plain, */*"),await this.request(e,{...n,method:this.METHOD_POST,body:typeof r!="string"?JSON.stringify(r):r,headers:i})}async request(e,r){let n=new Headers(r?.headers||{}),i=`${this.config.protocol}://${this.config.host}:${this.config.port}`,a=r?.responseType;delete r?.responseType,e.startsWith("/")&&(e=e.slice(1)),this.config.network&&n.append("x-network",this.config.network),this.config.logging&&this.config.logger(`Requesting: ${i}/${e}`);let d=await fetch(`${i}/${e}`,{...r||{},headers:n});this.config.logging&&this.config.logger(`Response: ${d.url} - ${d.status}`);let y=d.headers.get("content-type")?.match(/charset=([^()<>@,;:\"/[\]?.=\s]*)/i)?.[1],x=d,B=async()=>{if(y)try{x.data=new TextDecoder(y).decode(await d.arrayBuffer())}catch{x.data=await d.text()}else x.data=await d.text()};if(a==="arraybuffer")x.data=await d.arrayBuffer();else if(a==="text")await B();else if(a==="webstream")x.data=Q8(d.body);else try{let C=await d.clone().json();typeof C!="object"?await B():x.data=await d.json(),C=null}catch{await B()}return x}};Pu.default=Cu;var Q8=t=>{let e=t;return typeof e[Symbol.asyncIterator]>"u"&&(e[Symbol.asyncIterator]=W8(t)),e},W8=function(t){return async function*(){let r=t.getReader();try{for(;;){let{done:n,value:i}=await r.read();if(n)return;yield i}}finally{r.releaseLock()}}}});var Zp=V(Ru=>{"use strict";var lB=A(S());Object.defineProperty(Ru,"__esModule",{value:!0});var Lu=class{api;constructor(e){this.api=e}getInfo(){return this.api.get("info").then(e=>e.data)}getPeers(){return this.api.get("peers").then(e=>e.data)}};Ru.default=Lu});var ds=V(kf=>{"use strict";var hB=A(S());Object.defineProperty(kf,"__esModule",{value:!0});kf.getError=Y8;var Fu=class extends Error{type;response;constructor(e,r={}){r.message?super(r.message):super(),this.type=e,this.response=r.response}getType(){return this.type}};kf.default=Fu;function Y8(t){let e=t.data;if(typeof t.data=="string")try{e=JSON.parse(t.data)}catch{}if(t.data instanceof ArrayBuffer||t.data instanceof Uint8Array)try{e=JSON.parse(e.toString())}catch{}return e?e.error||e:t.statusText||"unknown"}});var Ju=V(st=>{"use strict";var bB=A(S());Object.defineProperty(st,"__esModule",{value:!0});st.arrayCompare=st.MIN_CHUNK_SIZE=st.MAX_CHUNK_SIZE=void 0;st.chunkData=Ou;st.generateLeaves=Iu;st.computeRootHash=$8;st.generateTree=jp;st.generateTransactionChunks=e6;st.buildLayers=Uf;st.generateProofs=Qp;st.arrayFlatten=Nu;st.intToBuffer=bs;st.bufferToInt=ku;st.validatePath=hs;st.debug=Wp;var Jf=gs(),Vp=gn();st.MAX_CHUNK_SIZE=256*1024;st.MIN_CHUNK_SIZE=32*1024;var ps=32,ro=32;async function Ou(t){let e=[],r=t,n=0;for(;r.byteLength>=st.MAX_CHUNK_SIZE;){let i=st.MAX_CHUNK_SIZE,a=r.byteLength-st.MAX_CHUNK_SIZE;a>0&&a<st.MIN_CHUNK_SIZE&&(i=Math.ceil(r.byteLength/2));let d=r.slice(0,i),v=await Jf.default.crypto.hash(d);n+=d.byteLength,e.push({dataHash:v,minByteRange:n-d.byteLength,maxByteRange:n}),r=r.slice(i)}return e.push({dataHash:await Jf.default.crypto.hash(r),minByteRange:n,maxByteRange:n+r.byteLength}),e}async function Iu(t){return Promise.all(t.map(async({dataHash:e,minByteRange:r,maxByteRange:n})=>({type:"leaf",id:await Nt(await Promise.all([Nt(e),Nt(bs(n))])),dataHash:e,minByteRange:r,maxByteRange:n})))}async function $8(t){return(await jp(t)).id}async function jp(t){return await Uf(await Iu(await Ou(t)))}async function e6(t){let e=await Ou(t),r=await Iu(e),n=await Uf(r),i=await Qp(n),a=e.slice(-1)[0];return a.maxByteRange-a.minByteRange===0&&(e.splice(e.length-1,1),i.splice(i.length-1,1)),{data_root:n.id,chunks:e,proofs:i}}async function Uf(t,e=0){if(t.length<2)return t[0];let r=[];for(let n=0;n<t.length;n+=2)r.push(await t6(t[n],t[n+1]));return Uf(r,e+1)}function Qp(t){let e=Du(t);return Array.isArray(e)?Nu(e):[e]}function Du(t,e=new Uint8Array,r=0){if(t.type=="leaf")return{offset:t.maxByteRange-1,proof:(0,Vp.concatBuffers)([e,t.dataHash,bs(t.maxByteRange)])};if(t.type=="branch"){let n=(0,Vp.concatBuffers)([e,t.leftChild.id,t.rightChild.id,bs(t.byteRange)]);return[Du(t.leftChild,n,r+1),Du(t.rightChild,n,r+1)]}throw new Error("Unexpected node type")}function Nu(t){let e=[];return t.forEach(r=>{Array.isArray(r)?e.push(...Nu(r)):e.push(r)}),e}async function t6(t,e){return e?{type:"branch",id:await Nt([await Nt(t.id),await Nt(e.id),await Nt(bs(t.maxByteRange))]),byteRange:t.maxByteRange,maxByteRange:e.maxByteRange,leftChild:t,rightChild:e}:t}async function Nt(t){return Array.isArray(t)&&(t=Jf.default.utils.concatBuffers(t)),new Uint8Array(await Jf.default.crypto.hash(t))}function bs(t){let e=new Uint8Array(ps);for(var r=e.length-1;r>=0;r--){var n=t%256;e[r]=n,t=(t-n)/256}return e}function ku(t){let e=0;for(var r=0;r<t.length;r++)e*=256,e+=t[r];return e}var r6=(t,e)=>t.every((r,n)=>e[n]===r);st.arrayCompare=r6;async function hs(t,e,r,n,i){if(n<=0)return!1;if(e>=n)return hs(t,0,n-1,n,i);if(e<0)return hs(t,0,0,n,i);if(i.length==ro+ps){let C=i.slice(0,ro),D=i.slice(C.length,C.length+ps),F=await Nt([await Nt(C),await Nt(D)]);return(0,st.arrayCompare)(t,F)?{offset:n-1,leftBound:r,rightBound:n,chunkSize:n-r}:!1}let a=i.slice(0,ro),d=i.slice(a.length,a.length+ro),v=i.slice(a.length+d.length,a.length+d.length+ps),y=ku(v),x=i.slice(a.length+d.length+v.length),B=await Nt([await Nt(a),await Nt(d),await Nt(v)]);return(0,st.arrayCompare)(t,B)?e<y?await hs(a,e,r,Math.min(n,y),x):await hs(d,e,Math.max(r,y),n,x):!1}async function Wp(t,e=""){if(t.byteLength<1)return e;let r=t.slice(0,ro),n=t.slice(r.length,r.length+ro),i=t.slice(r.length+n.length,r.length+n.length+ps),a=ku(i),d=t.slice(r.length+n.length+i.length),v=await Nt([await Nt(r),await Nt(n),await Nt(i)]),y=`${e}
4
- ${JSON.stringify(Buffer.from(r))},${JSON.stringify(Buffer.from(n))},${a} => ${JSON.stringify(v)}`;return Wp(d,y)}});var t1=V(Hf=>{"use strict";var vB=A(S());Object.defineProperty(Hf,"__esModule",{value:!0});Hf.TransactionUploader=void 0;var Yp=vs(),n6=gn(),Uu=ds(),i6=Ju(),$p=1,a6=["invalid_json","chunk_too_big","data_path_too_big","offset_too_big","data_size_too_big","chunk_proof_ratio_not_attractive","invalid_proof"],e1=1e3*40,Hu=class t{api;chunkIndex=0;txPosted=!1;transaction;lastRequestTimeEnd=0;totalErrors=0;data;lastResponseStatus=0;lastResponseError="";get isComplete(){return this.txPosted&&this.chunkIndex===this.transaction.chunks.chunks.length}get totalChunks(){return this.transaction.chunks.chunks.length}get uploadedChunks(){return this.chunkIndex}get pctComplete(){return Math.trunc(this.uploadedChunks/this.totalChunks*100)}constructor(e,r){if(this.api=e,!r.id)throw new Error("Transaction is not signed");if(!r.chunks)throw new Error("Transaction chunks not prepared");this.data=r.data,this.transaction=new Yp.default(Object.assign({},r,{data:new Uint8Array(0)}))}async uploadChunk(e){if(this.isComplete)throw new Error("Upload is already complete");if(this.lastResponseError!==""?this.totalErrors++:this.totalErrors=0,this.totalErrors===100)throw new Error(`Unable to complete upload: ${this.lastResponseStatus}: ${this.lastResponseError}`);let r=this.lastResponseError===""?0:Math.max(this.lastRequestTimeEnd+e1-Date.now(),e1);if(r>0&&(r=r-r*Math.random()*.3,await new Promise(d=>setTimeout(d,r))),this.lastResponseError="",!this.txPosted){await this.postTransaction();return}e&&(this.chunkIndex=e);let n=this.transaction.getChunk(e||this.chunkIndex,this.data);if(!await(0,i6.validatePath)(this.transaction.chunks.data_root,parseInt(n.offset),0,parseInt(n.data_size),n6.b64UrlToBuffer(n.data_path)))throw new Error(`Unable to validate chunk ${this.chunkIndex}`);let a=await this.api.post("chunk",this.transaction.getChunk(this.chunkIndex,this.data)).catch(d=>(console.error(d.message),{status:-1,data:{error:d.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=a.status,this.lastResponseStatus==200)this.chunkIndex++;else if(this.lastResponseError=(0,Uu.getError)(a),a6.includes(this.lastResponseError))throw new Error(`Fatal error uploading chunk ${this.chunkIndex}: ${this.lastResponseError}`)}static async fromSerialized(e,r,n){if(!r||typeof r.chunkIndex!="number"||typeof r.transaction!="object")throw new Error("Serialized object does not match expected format.");var i=new Yp.default(r.transaction);i.chunks||await i.prepareChunks(n);let a=new t(e,i);if(a.chunkIndex=r.chunkIndex,a.lastRequestTimeEnd=r.lastRequestTimeEnd,a.lastResponseError=r.lastResponseError,a.lastResponseStatus=r.lastResponseStatus,a.txPosted=r.txPosted,a.data=n,a.transaction.data_root!==r.transaction.data_root)throw new Error("Data mismatch: Uploader doesn't match provided data.");return a}static async fromTransactionId(e,r){let n=await e.get(`tx/${r}`);if(n.status!==200)throw new Error(`Tx ${r} not found: ${n.status}`);let i=n.data;return i.data=new Uint8Array(0),{txPosted:!0,chunkIndex:0,lastResponseError:"",lastRequestTimeEnd:0,lastResponseStatus:0,transaction:i}}toJSON(){return{chunkIndex:this.chunkIndex,transaction:this.transaction,lastRequestTimeEnd:this.lastRequestTimeEnd,lastResponseStatus:this.lastResponseStatus,lastResponseError:this.lastResponseError,txPosted:this.txPosted}}async postTransaction(){if(this.totalChunks<=$p){this.transaction.data=this.data;let n=await this.api.post("tx",this.transaction).catch(i=>(console.error(i),{status:-1,data:{error:i.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=n.status,this.transaction.data=new Uint8Array(0),n.status>=200&&n.status<300){this.txPosted=!0,this.chunkIndex=$p;return}throw this.lastResponseError=(0,Uu.getError)(n),new Error(`Unable to upload transaction: ${n.status}, ${this.lastResponseError}`)}let r=await this.api.post("tx",this.transaction);if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=r.status,!(r.status>=200&&r.status<300))throw this.lastResponseError=(0,Uu.getError)(r),new Error(`Unable to upload transaction: ${r.status}, ${this.lastResponseError}`);this.txPosted=!0}};Hf.TransactionUploader=Hu});var qf=V((mB,r1)=>{var xB=A(S());r1.exports={}});var n1=V(zu=>{"use strict";var wB=A(S());Object.defineProperty(zu,"__esModule",{value:!0});var qu=ds(),ui=vs(),ms=gn(),Gu=t1();qf();var Xu=class{api;crypto;chunks;constructor(e,r,n){this.api=e,this.crypto=r,this.chunks=n}async getTransactionAnchor(){let e=await this.api.get("tx_anchor");if(!e.data.match(/^[a-z0-9_-]{43,}/i)||!e.ok)throw new Error(`Could not getTransactionAnchor. Received: ${e.data}. Status: ${e.status}, ${e.statusText}`);return e.data}async getPrice(e,r){let n=r?`price/${e}/${r}`:`price/${e}`,i=await this.api.get(n);if(!/^\d+$/.test(i.data)||!i.ok)throw new Error(`Could not getPrice. Received: ${i.data}. Status: ${i.status}, ${i.statusText}`);return i.data}async get(e){let r=await this.api.get(`tx/${e}`);if(r.status==200){let n=parseInt(r.data.data_size);if(r.data.format>=2&&n>0&&n<=1024*1024*12){let i=await this.getData(e);return new ui.default({...r.data,data:i})}return new ui.default({...r.data,format:r.data.format||1})}throw r.status==404?new qu.default("TX_NOT_FOUND"):r.status==410?new qu.default("TX_FAILED"):new qu.default("TX_INVALID")}fromRaw(e){return new ui.default(e)}async search(e,r){return this.api.post("arql",{op:"equals",expr1:e,expr2:r}).then(n=>n.data?n.data:[])}getStatus(e){return this.api.get(`tx/${e}/status`).then(r=>r.status==200?{status:200,confirmed:r.data}:{status:r.status,confirmed:null})}async getData(e,r){let n;try{n=await this.chunks.downloadChunkedData(e)}catch(i){console.error(`Error while trying to download chunked data for ${e}`),console.error(i)}if(!n){console.warn(`Falling back to gateway cache for ${e}`);try{let{data:i,ok:a,status:d,statusText:v}=await this.api.get(`/${e}`,{responseType:"arraybuffer"});if(!a)throw new Error("Bad http status code",{cause:{status:d,statusText:v}});n=i}catch(i){console.error(`Error while trying to download contiguous data from gateway cache for ${e}`),console.error(i)}}if(!n)throw new Error(`${e} data was not found!`);return r&&r.decode&&!r.string?n:r&&r.decode&&r.string?ms.bufferToString(n):ms.bufferTob64Url(n)}async sign(e,r,n){let a=typeof r=="object"&&(v=>{let y=!0;return["n","e","d","p","q","dp","dq","qi"].map(x=>!(x in v)&&(y=!1)),y})(r),d=typeof arweaveWallet=="object";if(!a&&!d)throw new Error("No valid JWK or external wallet found to sign transaction.");if(a){e.setOwner(r.n);let v=await e.getSignatureData(),y=await this.crypto.sign(r,v,n),x=await this.crypto.hash(y);e.setSignature({id:ms.bufferTob64Url(x),owner:r.n,signature:ms.bufferTob64Url(y)})}else if(d){try{(await arweaveWallet.getPermissions()).includes("SIGN_TRANSACTION")||await arweaveWallet.connect(["SIGN_TRANSACTION"])}catch{}let v=await arweaveWallet.sign(e,n);e.setSignature({id:v.id,owner:v.owner,reward:v.reward,tags:v.tags,signature:v.signature})}else throw new Error("An error occurred while signing. Check wallet is valid")}async verify(e){let r=await e.getSignatureData(),n=e.get("signature",{decode:!0,string:!1}),i=ms.bufferTob64Url(await this.crypto.hash(n));if(e.id!==i)throw new Error("Invalid transaction signature or ID! The transaction ID doesn't match the expected SHA-256 hash of the signature.");return this.crypto.verify(e.owner,r,n)}async post(e){if(typeof e=="string"?e=new ui.default(JSON.parse(e)):typeof e.readInt32BE=="function"?e=new ui.default(JSON.parse(e.toString())):typeof e=="object"&&!(e instanceof ui.default)&&(e=new ui.default(e)),!(e instanceof ui.default))throw new Error("Must be Transaction object");e.chunks||await e.prepareChunks(e.data);let r=await this.getUploader(e,e.data);try{for(;!r.isComplete;)await r.uploadChunk()}catch(n){if(r.lastResponseStatus>0)return{status:r.lastResponseStatus,statusText:r.lastResponseError,data:{error:r.lastResponseError}};throw n}return{status:200,statusText:"OK",data:{}}}async getUploader(e,r){let n;if(r instanceof ArrayBuffer&&(r=new Uint8Array(r)),e instanceof ui.default){if(r||(r=e.data),!(r instanceof Uint8Array))throw new Error("Data format is invalid");e.chunks||await e.prepareChunks(r),n=new Gu.TransactionUploader(this.api,e),(!n.data||n.data.length===0)&&(n.data=r)}else{if(typeof e=="string"&&(e=await Gu.TransactionUploader.fromTransactionId(this.api,e)),!r||!(r instanceof Uint8Array))throw new Error("Must provide data when resuming upload");n=await Gu.TransactionUploader.fromSerialized(this.api,e,r)}return n}async*upload(e,r){let n=await this.getUploader(e,r);for(;!n.isComplete;)await n.uploadChunk(),yield n;return n}};zu.default=Xu});var a1=V(Zu=>{"use strict";var MB=A(S());Object.defineProperty(Zu,"__esModule",{value:!0});var i1=gn();qf();var Ku=class{api;crypto;constructor(e,r){this.api=e,this.crypto=r}getBalance(e){return this.api.get(`wallet/${e}/balance`).then(r=>r.data)}getLastTransactionID(e){return this.api.get(`wallet/${e}/last_tx`).then(r=>r.data)}generate(){return this.crypto.generateJWK()}async jwkToAddress(e){return!e||e==="use_wallet"?this.getAddress():this.getAddress(e)}async getAddress(e){if(!e||e==="use_wallet"){try{await arweaveWallet.connect(["ACCESS_ADDRESS"])}catch{}return arweaveWallet.getActiveAddress()}else return this.ownerToAddress(e.n)}async ownerToAddress(e){return i1.bufferTob64Url(await this.crypto.hash(i1.b64UrlToBuffer(e)))}};Zu.default=Ku});var s1=V(xs=>{"use strict";var TB=A(S());Object.defineProperty(xs,"__esModule",{value:!0});xs.SiloResource=void 0;var o1=gn(),Vu=class{api;crypto;transactions;constructor(e,r,n){this.api=e,this.crypto=r,this.transactions=n}async get(e){if(!e)throw new Error("No Silo URI specified");let r=await this.parseUri(e),n=await this.transactions.search("Silo-Name",r.getAccessKey());if(n.length==0)throw new Error(`No data could be found for the Silo URI: ${e}`);let i=await this.transactions.get(n[0]);if(!i)throw new Error(`No data could be found for the Silo URI: ${e}`);let a=i.get("data",{decode:!0,string:!1});return this.crypto.decrypt(a,r.getEncryptionKey())}async readTransactionData(e,r){if(!r)throw new Error("No Silo URI specified");let n=await this.parseUri(r),i=e.get("data",{decode:!0,string:!1});return this.crypto.decrypt(i,n.getEncryptionKey())}async parseUri(e){let r=e.match(/^([a-z0-9-_]+)\.([0-9]+)/i);if(!r)throw new Error("Invalid Silo name, must be a name in the format of [a-z0-9]+.[0-9]+, e.g. 'bubble.7'");let n=r[1],i=Math.pow(2,parseInt(r[2])),a=await this.hash(o1.stringToBuffer(n),i),d=o1.bufferTob64(a.slice(0,15)),v=await this.hash(a.slice(16,31),1);return new Gf(e,d,v)}async hash(e,r){let n=await this.crypto.hash(e);for(let i=0;i<r-1;i++)n=await this.crypto.hash(n);return n}};xs.default=Vu;var Gf=class{uri;accessKey;encryptionKey;constructor(e,r,n){this.uri=e,this.accessKey=r,this.encryptionKey=n}getUri(){return this.uri}getAccessKey(){return this.accessKey}getEncryptionKey(){return this.encryptionKey}};xs.SiloResource=Gf});var c1=V(Qu=>{"use strict";var _B=A(S());Object.defineProperty(Qu,"__esModule",{value:!0});var f1=ds(),o6=gn(),ju=class{api;constructor(e){this.api=e}async getTransactionOffset(e){let r=await this.api.get(`tx/${e}/offset`);if(r.status===200)return r.data;throw new Error(`Unable to get transaction offset: ${(0,f1.getError)(r)}`)}async getChunk(e){let r=await this.api.get(`chunk/${e}`);if(r.status===200)return r.data;throw new Error(`Unable to get chunk: ${(0,f1.getError)(r)}`)}async getChunkData(e){let r=await this.getChunk(e);return o6.b64UrlToBuffer(r.chunk)}firstChunkOffset(e){return parseInt(e.offset)-parseInt(e.size)+1}async downloadChunkedData(e){let r=await this.getTransactionOffset(e),n=parseInt(r.size),a=parseInt(r.offset)-n+1,d=new Uint8Array(n),v=0;for(;v<n;){this.api.config.logging&&console.log(`[chunk] ${v}/${n}`);let y;try{y=await this.getChunkData(a+v)}catch{console.error(`[chunk] Failed to fetch chunk at offset ${a+v}`),console.error("[chunk] This could indicate that the chunk wasn't uploaded or hasn't yet seeded properly to a particular gateway/node")}if(y)d.set(y,v),v+=y.length;else throw new Error(`Couldn't complete data download at ${v}/${n}`)}return d}};Qu.default=ju});var l1=V(Yu=>{"use strict";var CB=A(S());Object.defineProperty(Yu,"__esModule",{value:!0});var u1=ds();qf();var Wu=class t{api;network;static HASH_ENDPOINT="block/hash/";static HEIGHT_ENDPOINT="block/height/";constructor(e,r){this.api=e,this.network=r}async get(e){let r=await this.api.get(`${t.HASH_ENDPOINT}${e}`);if(r.status===200)return r.data;throw r.status===404?new u1.default("BLOCK_NOT_FOUND"):new Error(`Error while loading block data: ${r}`)}async getByHeight(e){let r=await this.api.get(`${t.HEIGHT_ENDPOINT}${e}`);if(r.status===200)return r.data;throw r.status===404?new u1.default("BLOCK_NOT_FOUND"):new Error(`Error while loading block data: ${r}`)}async getCurrent(){let{current:e}=await this.network.getInfo();return await this.get(e)}};Yu.default=Wu});var gs=V(el=>{"use strict";var LB=A(S());Object.defineProperty(el,"__esModule",{value:!0});var s6=zp(),f6=Kp(),c6=Eu(),u6=Zp(),l6=n1(),d6=a1(),d1=vs(),ys=gn(),h6=s1(),p6=c1(),b6=l1(),$u=class t{api;wallets;transactions;network;blocks;ar;silo;chunks;static init;static crypto=new c6.default;static utils=ys;constructor(e){this.api=new f6.default(e),this.wallets=new d6.default(this.api,t.crypto),this.chunks=new p6.default(this.api),this.transactions=new l6.default(this.api,t.crypto,this.chunks),this.silo=new h6.default(this.api,this.crypto,this.transactions),this.network=new u6.default(this.api),this.blocks=new b6.default(this.api,this.network),this.ar=new s6.default}get crypto(){return t.crypto}get utils(){return t.utils}getConfig(){return{api:this.api.getConfig(),crypto:null}}async createTransaction(e,r){let n={};if(Object.assign(n,e),!e.data&&!(e.target&&e.quantity))throw new Error("A new Arweave transaction must have a 'data' value, or 'target' and 'quantity' values.");if(e.owner==null&&r&&r!=="use_wallet"&&(n.owner=r.n),e.last_tx==null&&(n.last_tx=await this.transactions.getTransactionAnchor()),typeof e.data=="string"&&(e.data=ys.stringToBuffer(e.data)),e.data instanceof ArrayBuffer&&(e.data=new Uint8Array(e.data)),e.data&&!(e.data instanceof Uint8Array))throw new Error("Expected data to be a string, Uint8Array or ArrayBuffer");if(e.reward==null){let a=e.data?e.data.byteLength:0;n.reward=await this.transactions.getPrice(a,n.target)}n.data_root="",n.data_size=e.data?e.data.byteLength.toString():"0",n.data=e.data||new Uint8Array(0);let i=new d1.default(n);return await i.getSignatureData(),i}async createSiloTransaction(e,r,n){let i={};if(Object.assign(i,e),!e.data)throw new Error("Silo transactions must have a 'data' value");if(!n)throw new Error("No Silo URI specified.");if(e.target||e.quantity)throw new Error("Silo transactions can only be used for storing data, sending AR to other wallets isn't supported.");if(e.owner==null){if(!r||!r.n)throw new Error("A new Arweave transaction must either have an 'owner' attribute, or you must provide the jwk parameter.");i.owner=r.n}e.last_tx==null&&(i.last_tx=await this.transactions.getTransactionAnchor());let a=await this.silo.parseUri(n);if(typeof e.data=="string"){let v=await this.crypto.encrypt(ys.stringToBuffer(e.data),a.getEncryptionKey());i.reward=await this.transactions.getPrice(v.byteLength),i.data=ys.bufferTob64Url(v)}if(e.data instanceof Uint8Array){let v=await this.crypto.encrypt(e.data,a.getEncryptionKey());i.reward=await this.transactions.getPrice(v.byteLength),i.data=ys.bufferTob64Url(v)}let d=new d1.default(i);return d.addTag("Silo-Name",a.getAccessKey()),d.addTag("Silo-Version","0.1.0"),d}arql(e){return this.api.post("/arql",e).then(r=>r.data||[])}};el.default=$u});var b1=V(tl=>{"use strict";var FB=A(S());Object.defineProperty(tl,"__esModule",{value:!0});tl.default=h1;var Rr=gs();async function h1(t){if(Array.isArray(t)){let n=Rr.default.utils.concatBuffers([Rr.default.utils.stringToBuffer("list"),Rr.default.utils.stringToBuffer(t.length.toString())]);return await p1(t,await Rr.default.crypto.hash(n,"SHA-384"))}let e=Rr.default.utils.concatBuffers([Rr.default.utils.stringToBuffer("blob"),Rr.default.utils.stringToBuffer(t.byteLength.toString())]),r=Rr.default.utils.concatBuffers([await Rr.default.crypto.hash(e,"SHA-384"),await Rr.default.crypto.hash(t,"SHA-384")]);return await Rr.default.crypto.hash(r,"SHA-384")}async function p1(t,e){if(t.length<1)return e;let r=Rr.default.utils.concatBuffers([e,await h1(t[0])]),n=await Rr.default.crypto.hash(r,"SHA-384");return await p1(t.slice(1),n)}});var vs=V(As=>{"use strict";var OB=A(S());Object.defineProperty(As,"__esModule",{value:!0});As.Tag=void 0;var It=gn(),g6=b1(),v6=Ju(),Xf=class{get(e,r){if(!Object.getOwnPropertyNames(this).includes(e))throw new Error(`Field "${e}" is not a property of the Arweave Transaction class.`);if(this[e]instanceof Uint8Array)return r&&r.decode&&r.string?It.bufferToString(this[e]):r&&r.decode&&!r.string?this[e]:It.bufferTob64Url(this[e]);if(this[e]instanceof Array){if(r?.decode!==void 0||r?.string!==void 0)throw e==="tags"&&console.warn(`Did you mean to use 'transaction["tags"]' ?`),new Error("Cannot decode or stringify an array.");return this[e]}return r&&r.decode==!0?r&&r.string?It.b64UrlToString(this[e]):It.b64UrlToBuffer(this[e]):this[e]}},ws=class extends Xf{name;value;constructor(e,r,n=!1){super(),this.name=e,this.value=r}};As.Tag=ws;var rl=class extends Xf{format=2;id="";last_tx="";owner="";tags=[];target="";quantity="0";data_size="0";data=new Uint8Array;data_root="";reward="0";signature="";chunks;constructor(e={}){super(),Object.assign(this,e),typeof this.data=="string"&&(this.data=It.b64UrlToBuffer(this.data)),e.tags&&(this.tags=e.tags.map(r=>new ws(r.name,r.value)))}addTag(e,r){this.tags.push(new ws(It.stringToB64Url(e),It.stringToB64Url(r)))}toJSON(){return{format:this.format,id:this.id,last_tx:this.last_tx,owner:this.owner,tags:this.tags,target:this.target,quantity:this.quantity,data:It.bufferTob64Url(this.data),data_size:this.data_size,data_root:this.data_root,data_tree:this.data_tree,reward:this.reward,signature:this.signature}}setOwner(e){this.owner=e}setSignature({id:e,owner:r,reward:n,tags:i,signature:a}){this.id=e,this.owner=r,n&&(this.reward=n),i&&(this.tags=i),this.signature=a}async prepareChunks(e){!this.chunks&&e.byteLength>0&&(this.chunks=await(0,v6.generateTransactionChunks)(e),this.data_root=It.bufferTob64Url(this.chunks.data_root)),!this.chunks&&e.byteLength===0&&(this.chunks={chunks:[],data_root:new Uint8Array,proofs:[]},this.data_root="")}getChunk(e,r){if(!this.chunks)throw new Error("Chunks have not been prepared");let n=this.chunks.proofs[e],i=this.chunks.chunks[e];return{data_root:this.data_root,data_size:this.data_size,data_path:It.bufferTob64Url(n.proof),offset:n.offset.toString(),chunk:It.bufferTob64Url(r.slice(i.minByteRange,i.maxByteRange))}}async getSignatureData(){switch(this.format){case 1:let e=this.tags.reduce((n,i)=>It.concatBuffers([n,i.get("name",{decode:!0,string:!1}),i.get("value",{decode:!0,string:!1})]),new Uint8Array);return It.concatBuffers([this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),this.get("data",{decode:!0,string:!1}),It.stringToBuffer(this.quantity),It.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),e]);case 2:this.data_root||await this.prepareChunks(this.data);let r=this.tags.map(n=>[n.get("name",{decode:!0,string:!1}),n.get("value",{decode:!0,string:!1})]);return await(0,g6.default)([It.stringToBuffer(this.format.toString()),this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),It.stringToBuffer(this.quantity),It.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),r,It.stringToBuffer(this.data_size),this.get("data_root",{decode:!0,string:!1})]);default:throw new Error(`Unexpected transaction format: ${this.format}`)}}};As.default=rl});var g1=V(zf=>{"use strict";var NB=A(S());Object.defineProperty(zf,"__esModule",{value:!0});zf.getDefaultConfig=void 0;var m6=(t,e)=>{let r=/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/,n=e.split("."),i=n[n.length-1],a=["localhost","[::1]"];return a.includes(e)||t=="file"||a.includes(i)||!!e.match(r)||!!i.match(r)},x6=t=>{let e=t.charAt(0)==="[",r=/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/;return!!t.match(r)||e},y6=(t,e)=>{if(m6(t,e))return{protocol:"https",host:"arweave.net",port:443};if(!x6(e)){let r=e.split(".");if(r.length>=3){r.shift();let n=r.join(".");return{protocol:t,host:n}}}return{protocol:t,host:e}};zf.getDefaultConfig=y6});var v1=V(Di=>{"use strict";var JB=A(S()),w6=Di&&Di.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),A6=Di&&Di.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&w6(e,t,r)};Object.defineProperty(Di,"__esModule",{value:!0});var no=gs(),M6=g1();no.default.init=function(t={}){let e={host:"arweave.net",port:443,protocol:"https"};if(typeof location!="object"||!location.protocol||!location.hostname)return new no.default({...t,...e});let r=location.protocol.replace(":",""),n=location.hostname,i=location.port?parseInt(location.port):r=="https"?443:80,a=(0,M6.getDefaultConfig)(r,n),d=t.protocol||a.protocol,v=t.host||a.host,y=t.port||a.port||i;return new no.default({...t,host:v,protocol:d,port:y})};typeof globalThis=="object"?globalThis.Arweave=no.default:typeof self=="object"&&(self.Arweave=no.default);A6(gs(),Di);Di.default=no.default});var il=V((w1,nl)=>{var VB=A(S());(function(t,e){"use strict";function r(M,s){if(!M)throw new Error(s||"Assertion failed")}function n(M,s){M.super_=s;var u=function(){};u.prototype=s.prototype,M.prototype=new u,M.prototype.constructor=M}function i(M,s,u){if(i.isBN(M))return M;this.negative=0,this.words=null,this.length=0,this.red=null,M!==null&&((s==="le"||s==="be")&&(u=s,s=10),this._init(M||0,s||10,u||"be"))}typeof t=="object"?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=rt("buffer").Buffer}catch{}i.isBN=function(s){return s instanceof i?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===i.wordSize&&Array.isArray(s.words)},i.max=function(s,u){return s.cmp(u)>0?s:u},i.min=function(s,u){return s.cmp(u)<0?s:u},i.prototype._init=function(s,u,l){if(typeof s=="number")return this._initNumber(s,u,l);if(typeof s=="object")return this._initArray(s,u,l);u==="hex"&&(u=16),r(u===(u|0)&&u>=2&&u<=36),s=s.toString().replace(/\s+/g,"");var f=0;s[0]==="-"&&(f++,this.negative=1),f<s.length&&(u===16?this._parseHex(s,f,l):(this._parseBase(s,u,f),l==="le"&&this._initArray(this.toArray(),u,l)))},i.prototype._initNumber=function(s,u,l){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(r(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),u,l)},i.prototype._initArray=function(s,u,l){if(r(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c,g,m=0;if(l==="be")for(f=s.length-1,c=0;f>=0;f-=3)g=s[f]|s[f-1]<<8|s[f-2]<<16,this.words[c]|=g<<m&67108863,this.words[c+1]=g>>>26-m&67108863,m+=24,m>=26&&(m-=26,c++);else if(l==="le")for(f=0,c=0;f<s.length;f+=3)g=s[f]|s[f+1]<<8|s[f+2]<<16,this.words[c]|=g<<m&67108863,this.words[c+1]=g>>>26-m&67108863,m+=24,m>=26&&(m-=26,c++);return this.strip()};function d(M,s){var u=M.charCodeAt(s);return u>=65&&u<=70?u-55:u>=97&&u<=102?u-87:u-48&15}function v(M,s,u){var l=d(M,u);return u-1>=s&&(l|=d(M,u-1)<<4),l}i.prototype._parseHex=function(s,u,l){this.length=Math.ceil((s.length-u)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c=0,g=0,m;if(l==="be")for(f=s.length-1;f>=u;f-=2)m=v(s,u,f)<<c,this.words[g]|=m&67108863,c>=18?(c-=18,g+=1,this.words[g]|=m>>>26):c+=8;else{var h=s.length-u;for(f=h%2===0?u+1:u;f<s.length;f+=2)m=v(s,u,f)<<c,this.words[g]|=m&67108863,c>=18?(c-=18,g+=1,this.words[g]|=m>>>26):c+=8}this.strip()};function y(M,s,u,l){for(var f=0,c=Math.min(M.length,u),g=s;g<c;g++){var m=M.charCodeAt(g)-48;f*=l,m>=49?f+=m-49+10:m>=17?f+=m-17+10:f+=m}return f}i.prototype._parseBase=function(s,u,l){this.words=[0],this.length=1;for(var f=0,c=1;c<=67108863;c*=u)f++;f--,c=c/u|0;for(var g=s.length-l,m=g%f,h=Math.min(g,g-m)+l,o=0,p=l;p<h;p+=f)o=y(s,p,p+f,u),this.imuln(c),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(m!==0){var E=1;for(o=y(s,p,s.length,u),p=0;p<m;p++)E*=u;this.imuln(E),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},i.prototype.copy=function(s){s.words=new Array(this.length);for(var u=0;u<this.length;u++)s.words[u]=this.words[u];s.length=this.length,s.negative=this.negative,s.red=this.red},i.prototype.clone=function(){var s=new i(null);return this.copy(s),s},i.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],B=[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],C=[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];i.prototype.toString=function(s,u){s=s||10,u=u|0||1;var l;if(s===16||s==="hex"){l="";for(var f=0,c=0,g=0;g<this.length;g++){var m=this.words[g],h=((m<<f|c)&16777215).toString(16);c=m>>>24-f&16777215,f+=2,f>=26&&(f-=26,g--),c!==0||g!==this.length-1?l=x[6-h.length]+h+l:l=h+l}for(c!==0&&(l=c.toString(16)+l);l.length%u!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(s===(s|0)&&s>=2&&s<=36){var o=B[s],p=C[s];l="";var E=this.clone();for(E.negative=0;!E.isZero();){var b=E.modn(p).toString(s);E=E.idivn(p),E.isZero()?l=b+l:l=x[o-b.length]+b+l}for(this.isZero()&&(l="0"+l);l.length%u!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(s,u){return r(typeof a<"u"),this.toArrayLike(a,s,u)},i.prototype.toArray=function(s,u){return this.toArrayLike(Array,s,u)},i.prototype.toArrayLike=function(s,u,l){var f=this.byteLength(),c=l||Math.max(1,f);r(f<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var g=u==="le",m=new s(c),h,o,p=this.clone();if(g){for(o=0;!p.isZero();o++)h=p.andln(255),p.iushrn(8),m[o]=h;for(;o<c;o++)m[o]=0}else{for(o=0;o<c-f;o++)m[o]=0;for(o=0;!p.isZero();o++)h=p.andln(255),p.iushrn(8),m[c-o-1]=h}return m},Math.clz32?i.prototype._countBits=function(s){return 32-Math.clz32(s)}:i.prototype._countBits=function(s){var u=s,l=0;return u>=4096&&(l+=13,u>>>=13),u>=64&&(l+=7,u>>>=7),u>=8&&(l+=4,u>>>=4),u>=2&&(l+=2,u>>>=2),l+u},i.prototype._zeroBits=function(s){if(s===0)return 26;var u=s,l=0;return u&8191||(l+=13,u>>>=13),u&127||(l+=7,u>>>=7),u&15||(l+=4,u>>>=4),u&3||(l+=2,u>>>=2),u&1||l++,l},i.prototype.bitLength=function(){var s=this.words[this.length-1],u=this._countBits(s);return(this.length-1)*26+u};function D(M){for(var s=new Array(M.bitLength()),u=0;u<s.length;u++){var l=u/26|0,f=u%26;s[u]=(M.words[l]&1<<f)>>>f}return s}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,u=0;u<this.length;u++){var l=this._zeroBits(this.words[u]);if(s+=l,l!==26)break}return s},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},i.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var u=0;u<s.length;u++)this.words[u]=this.words[u]|s.words[u];return this.strip()},i.prototype.ior=function(s){return r((this.negative|s.negative)===0),this.iuor(s)},i.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},i.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},i.prototype.iuand=function(s){var u;this.length>s.length?u=s:u=this;for(var l=0;l<u.length;l++)this.words[l]=this.words[l]&s.words[l];return this.length=u.length,this.strip()},i.prototype.iand=function(s){return r((this.negative|s.negative)===0),this.iuand(s)},i.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},i.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},i.prototype.iuxor=function(s){var u,l;this.length>s.length?(u=this,l=s):(u=s,l=this);for(var f=0;f<l.length;f++)this.words[f]=u.words[f]^l.words[f];if(this!==u)for(;f<u.length;f++)this.words[f]=u.words[f];return this.length=u.length,this.strip()},i.prototype.ixor=function(s){return r((this.negative|s.negative)===0),this.iuxor(s)},i.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},i.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},i.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var u=Math.ceil(s/26)|0,l=s%26;this._expand(u),l>0&&u--;for(var f=0;f<u;f++)this.words[f]=~this.words[f]&67108863;return l>0&&(this.words[f]=~this.words[f]&67108863>>26-l),this.strip()},i.prototype.notn=function(s){return this.clone().inotn(s)},i.prototype.setn=function(s,u){r(typeof s=="number"&&s>=0);var l=s/26|0,f=s%26;return this._expand(l+1),u?this.words[l]=this.words[l]|1<<f:this.words[l]=this.words[l]&~(1<<f),this.strip()},i.prototype.iadd=function(s){var u;if(this.negative!==0&&s.negative===0)return this.negative=0,u=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,u=this.isub(s),s.negative=1,u._normSign();var l,f;this.length>s.length?(l=this,f=s):(l=s,f=this);for(var c=0,g=0;g<f.length;g++)u=(l.words[g]|0)+(f.words[g]|0)+c,this.words[g]=u&67108863,c=u>>>26;for(;c!==0&&g<l.length;g++)u=(l.words[g]|0)+c,this.words[g]=u&67108863,c=u>>>26;if(this.length=l.length,c!==0)this.words[this.length]=c,this.length++;else if(l!==this)for(;g<l.length;g++)this.words[g]=l.words[g];return this},i.prototype.add=function(s){var u;return s.negative!==0&&this.negative===0?(s.negative=0,u=this.sub(s),s.negative^=1,u):s.negative===0&&this.negative!==0?(this.negative=0,u=s.sub(this),this.negative=1,u):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},i.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var u=this.iadd(s);return s.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var l=this.cmp(s);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,c;l>0?(f=this,c=s):(f=s,c=this);for(var g=0,m=0;m<c.length;m++)u=(f.words[m]|0)-(c.words[m]|0)+g,g=u>>26,this.words[m]=u&67108863;for(;g!==0&&m<f.length;m++)u=(f.words[m]|0)+g,g=u>>26,this.words[m]=u&67108863;if(g===0&&m<f.length&&f!==this)for(;m<f.length;m++)this.words[m]=f.words[m];return this.length=Math.max(this.length,m),f!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(s){return this.clone().isub(s)};function F(M,s,u){u.negative=s.negative^M.negative;var l=M.length+s.length|0;u.length=l,l=l-1|0;var f=M.words[0]|0,c=s.words[0]|0,g=f*c,m=g&67108863,h=g/67108864|0;u.words[0]=m;for(var o=1;o<l;o++){for(var p=h>>>26,E=h&67108863,b=Math.min(o,s.length-1),w=Math.max(0,o-M.length+1);w<=b;w++){var H=o-w|0;f=M.words[H]|0,c=s.words[w]|0,g=f*c+E,p+=g/67108864|0,E=g&67108863}u.words[o]=E|0,h=p|0}return h!==0?u.words[o]=h|0:u.length--,u.strip()}var P=function(s,u,l){var f=s.words,c=u.words,g=l.words,m=0,h,o,p,E=f[0]|0,b=E&8191,w=E>>>13,H=f[1]|0,T=H&8191,N=H>>>13,X=f[2]|0,Z=X&8191,_=X>>>13,R=f[3]|0,L=R&8191,O=R>>>13,G=f[4]|0,I=G&8191,J=G>>>13,z=f[5]|0,k=z&8191,U=z>>>13,Q=f[6]|0,j=Q&8191,re=Q>>>13,De=f[7]|0,se=De&8191,le=De>>>13,Ue=f[8]|0,oe=Ue&8191,fe=Ue>>>13,Xe=f[9]|0,ge=Xe&8191,ve=Xe>>>13,vt=c[0]|0,pe=vt&8191,be=vt>>>13,Ye=c[1]|0,de=Ye&8191,ue=Ye>>>13,Kt=c[2]|0,me=Kt&8191,xe=Kt>>>13,Zt=c[3]|0,ye=Zt&8191,we=Zt>>>13,Vt=c[4]|0,Ae=Vt&8191,Me=Vt>>>13,jt=c[5]|0,Se=jt&8191,Te=jt>>>13,Qt=c[6]|0,Ee=Qt&8191,_e=Qt>>>13,Wt=c[7]|0,Be=Wt&8191,Ce=Wt>>>13,Yt=c[8]|0,Pe=Yt&8191,Le=Yt>>>13,$t=c[9]|0,Re=$t&8191,Fe=$t>>>13;l.negative=s.negative^u.negative,l.length=19,h=Math.imul(b,pe),o=Math.imul(b,be),o=o+Math.imul(w,pe)|0,p=Math.imul(w,be);var Dt=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,h=Math.imul(T,pe),o=Math.imul(T,be),o=o+Math.imul(N,pe)|0,p=Math.imul(N,be),h=h+Math.imul(b,de)|0,o=o+Math.imul(b,ue)|0,o=o+Math.imul(w,de)|0,p=p+Math.imul(w,ue)|0;var Ne=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,h=Math.imul(Z,pe),o=Math.imul(Z,be),o=o+Math.imul(_,pe)|0,p=Math.imul(_,be),h=h+Math.imul(T,de)|0,o=o+Math.imul(T,ue)|0,o=o+Math.imul(N,de)|0,p=p+Math.imul(N,ue)|0,h=h+Math.imul(b,me)|0,o=o+Math.imul(b,xe)|0,o=o+Math.imul(w,me)|0,p=p+Math.imul(w,xe)|0;var ke=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,h=Math.imul(L,pe),o=Math.imul(L,be),o=o+Math.imul(O,pe)|0,p=Math.imul(O,be),h=h+Math.imul(Z,de)|0,o=o+Math.imul(Z,ue)|0,o=o+Math.imul(_,de)|0,p=p+Math.imul(_,ue)|0,h=h+Math.imul(T,me)|0,o=o+Math.imul(T,xe)|0,o=o+Math.imul(N,me)|0,p=p+Math.imul(N,xe)|0,h=h+Math.imul(b,ye)|0,o=o+Math.imul(b,we)|0,o=o+Math.imul(w,ye)|0,p=p+Math.imul(w,we)|0;var St=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(St>>>26)|0,St&=67108863,h=Math.imul(I,pe),o=Math.imul(I,be),o=o+Math.imul(J,pe)|0,p=Math.imul(J,be),h=h+Math.imul(L,de)|0,o=o+Math.imul(L,ue)|0,o=o+Math.imul(O,de)|0,p=p+Math.imul(O,ue)|0,h=h+Math.imul(Z,me)|0,o=o+Math.imul(Z,xe)|0,o=o+Math.imul(_,me)|0,p=p+Math.imul(_,xe)|0,h=h+Math.imul(T,ye)|0,o=o+Math.imul(T,we)|0,o=o+Math.imul(N,ye)|0,p=p+Math.imul(N,we)|0,h=h+Math.imul(b,Ae)|0,o=o+Math.imul(b,Me)|0,o=o+Math.imul(w,Ae)|0,p=p+Math.imul(w,Me)|0;var Tt=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,h=Math.imul(k,pe),o=Math.imul(k,be),o=o+Math.imul(U,pe)|0,p=Math.imul(U,be),h=h+Math.imul(I,de)|0,o=o+Math.imul(I,ue)|0,o=o+Math.imul(J,de)|0,p=p+Math.imul(J,ue)|0,h=h+Math.imul(L,me)|0,o=o+Math.imul(L,xe)|0,o=o+Math.imul(O,me)|0,p=p+Math.imul(O,xe)|0,h=h+Math.imul(Z,ye)|0,o=o+Math.imul(Z,we)|0,o=o+Math.imul(_,ye)|0,p=p+Math.imul(_,we)|0,h=h+Math.imul(T,Ae)|0,o=o+Math.imul(T,Me)|0,o=o+Math.imul(N,Ae)|0,p=p+Math.imul(N,Me)|0,h=h+Math.imul(b,Se)|0,o=o+Math.imul(b,Te)|0,o=o+Math.imul(w,Se)|0,p=p+Math.imul(w,Te)|0;var Et=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,h=Math.imul(j,pe),o=Math.imul(j,be),o=o+Math.imul(re,pe)|0,p=Math.imul(re,be),h=h+Math.imul(k,de)|0,o=o+Math.imul(k,ue)|0,o=o+Math.imul(U,de)|0,p=p+Math.imul(U,ue)|0,h=h+Math.imul(I,me)|0,o=o+Math.imul(I,xe)|0,o=o+Math.imul(J,me)|0,p=p+Math.imul(J,xe)|0,h=h+Math.imul(L,ye)|0,o=o+Math.imul(L,we)|0,o=o+Math.imul(O,ye)|0,p=p+Math.imul(O,we)|0,h=h+Math.imul(Z,Ae)|0,o=o+Math.imul(Z,Me)|0,o=o+Math.imul(_,Ae)|0,p=p+Math.imul(_,Me)|0,h=h+Math.imul(T,Se)|0,o=o+Math.imul(T,Te)|0,o=o+Math.imul(N,Se)|0,p=p+Math.imul(N,Te)|0,h=h+Math.imul(b,Ee)|0,o=o+Math.imul(b,_e)|0,o=o+Math.imul(w,Ee)|0,p=p+Math.imul(w,_e)|0;var _t=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,h=Math.imul(se,pe),o=Math.imul(se,be),o=o+Math.imul(le,pe)|0,p=Math.imul(le,be),h=h+Math.imul(j,de)|0,o=o+Math.imul(j,ue)|0,o=o+Math.imul(re,de)|0,p=p+Math.imul(re,ue)|0,h=h+Math.imul(k,me)|0,o=o+Math.imul(k,xe)|0,o=o+Math.imul(U,me)|0,p=p+Math.imul(U,xe)|0,h=h+Math.imul(I,ye)|0,o=o+Math.imul(I,we)|0,o=o+Math.imul(J,ye)|0,p=p+Math.imul(J,we)|0,h=h+Math.imul(L,Ae)|0,o=o+Math.imul(L,Me)|0,o=o+Math.imul(O,Ae)|0,p=p+Math.imul(O,Me)|0,h=h+Math.imul(Z,Se)|0,o=o+Math.imul(Z,Te)|0,o=o+Math.imul(_,Se)|0,p=p+Math.imul(_,Te)|0,h=h+Math.imul(T,Ee)|0,o=o+Math.imul(T,_e)|0,o=o+Math.imul(N,Ee)|0,p=p+Math.imul(N,_e)|0,h=h+Math.imul(b,Be)|0,o=o+Math.imul(b,Ce)|0,o=o+Math.imul(w,Be)|0,p=p+Math.imul(w,Ce)|0;var Bt=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,h=Math.imul(oe,pe),o=Math.imul(oe,be),o=o+Math.imul(fe,pe)|0,p=Math.imul(fe,be),h=h+Math.imul(se,de)|0,o=o+Math.imul(se,ue)|0,o=o+Math.imul(le,de)|0,p=p+Math.imul(le,ue)|0,h=h+Math.imul(j,me)|0,o=o+Math.imul(j,xe)|0,o=o+Math.imul(re,me)|0,p=p+Math.imul(re,xe)|0,h=h+Math.imul(k,ye)|0,o=o+Math.imul(k,we)|0,o=o+Math.imul(U,ye)|0,p=p+Math.imul(U,we)|0,h=h+Math.imul(I,Ae)|0,o=o+Math.imul(I,Me)|0,o=o+Math.imul(J,Ae)|0,p=p+Math.imul(J,Me)|0,h=h+Math.imul(L,Se)|0,o=o+Math.imul(L,Te)|0,o=o+Math.imul(O,Se)|0,p=p+Math.imul(O,Te)|0,h=h+Math.imul(Z,Ee)|0,o=o+Math.imul(Z,_e)|0,o=o+Math.imul(_,Ee)|0,p=p+Math.imul(_,_e)|0,h=h+Math.imul(T,Be)|0,o=o+Math.imul(T,Ce)|0,o=o+Math.imul(N,Be)|0,p=p+Math.imul(N,Ce)|0,h=h+Math.imul(b,Pe)|0,o=o+Math.imul(b,Le)|0,o=o+Math.imul(w,Pe)|0,p=p+Math.imul(w,Le)|0;var hr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(hr>>>26)|0,hr&=67108863,h=Math.imul(ge,pe),o=Math.imul(ge,be),o=o+Math.imul(ve,pe)|0,p=Math.imul(ve,be),h=h+Math.imul(oe,de)|0,o=o+Math.imul(oe,ue)|0,o=o+Math.imul(fe,de)|0,p=p+Math.imul(fe,ue)|0,h=h+Math.imul(se,me)|0,o=o+Math.imul(se,xe)|0,o=o+Math.imul(le,me)|0,p=p+Math.imul(le,xe)|0,h=h+Math.imul(j,ye)|0,o=o+Math.imul(j,we)|0,o=o+Math.imul(re,ye)|0,p=p+Math.imul(re,we)|0,h=h+Math.imul(k,Ae)|0,o=o+Math.imul(k,Me)|0,o=o+Math.imul(U,Ae)|0,p=p+Math.imul(U,Me)|0,h=h+Math.imul(I,Se)|0,o=o+Math.imul(I,Te)|0,o=o+Math.imul(J,Se)|0,p=p+Math.imul(J,Te)|0,h=h+Math.imul(L,Ee)|0,o=o+Math.imul(L,_e)|0,o=o+Math.imul(O,Ee)|0,p=p+Math.imul(O,_e)|0,h=h+Math.imul(Z,Be)|0,o=o+Math.imul(Z,Ce)|0,o=o+Math.imul(_,Be)|0,p=p+Math.imul(_,Ce)|0,h=h+Math.imul(T,Pe)|0,o=o+Math.imul(T,Le)|0,o=o+Math.imul(N,Pe)|0,p=p+Math.imul(N,Le)|0,h=h+Math.imul(b,Re)|0,o=o+Math.imul(b,Fe)|0,o=o+Math.imul(w,Re)|0,p=p+Math.imul(w,Fe)|0;var pr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(pr>>>26)|0,pr&=67108863,h=Math.imul(ge,de),o=Math.imul(ge,ue),o=o+Math.imul(ve,de)|0,p=Math.imul(ve,ue),h=h+Math.imul(oe,me)|0,o=o+Math.imul(oe,xe)|0,o=o+Math.imul(fe,me)|0,p=p+Math.imul(fe,xe)|0,h=h+Math.imul(se,ye)|0,o=o+Math.imul(se,we)|0,o=o+Math.imul(le,ye)|0,p=p+Math.imul(le,we)|0,h=h+Math.imul(j,Ae)|0,o=o+Math.imul(j,Me)|0,o=o+Math.imul(re,Ae)|0,p=p+Math.imul(re,Me)|0,h=h+Math.imul(k,Se)|0,o=o+Math.imul(k,Te)|0,o=o+Math.imul(U,Se)|0,p=p+Math.imul(U,Te)|0,h=h+Math.imul(I,Ee)|0,o=o+Math.imul(I,_e)|0,o=o+Math.imul(J,Ee)|0,p=p+Math.imul(J,_e)|0,h=h+Math.imul(L,Be)|0,o=o+Math.imul(L,Ce)|0,o=o+Math.imul(O,Be)|0,p=p+Math.imul(O,Ce)|0,h=h+Math.imul(Z,Pe)|0,o=o+Math.imul(Z,Le)|0,o=o+Math.imul(_,Pe)|0,p=p+Math.imul(_,Le)|0,h=h+Math.imul(T,Re)|0,o=o+Math.imul(T,Fe)|0,o=o+Math.imul(N,Re)|0,p=p+Math.imul(N,Fe)|0;var br=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(br>>>26)|0,br&=67108863,h=Math.imul(ge,me),o=Math.imul(ge,xe),o=o+Math.imul(ve,me)|0,p=Math.imul(ve,xe),h=h+Math.imul(oe,ye)|0,o=o+Math.imul(oe,we)|0,o=o+Math.imul(fe,ye)|0,p=p+Math.imul(fe,we)|0,h=h+Math.imul(se,Ae)|0,o=o+Math.imul(se,Me)|0,o=o+Math.imul(le,Ae)|0,p=p+Math.imul(le,Me)|0,h=h+Math.imul(j,Se)|0,o=o+Math.imul(j,Te)|0,o=o+Math.imul(re,Se)|0,p=p+Math.imul(re,Te)|0,h=h+Math.imul(k,Ee)|0,o=o+Math.imul(k,_e)|0,o=o+Math.imul(U,Ee)|0,p=p+Math.imul(U,_e)|0,h=h+Math.imul(I,Be)|0,o=o+Math.imul(I,Ce)|0,o=o+Math.imul(J,Be)|0,p=p+Math.imul(J,Ce)|0,h=h+Math.imul(L,Pe)|0,o=o+Math.imul(L,Le)|0,o=o+Math.imul(O,Pe)|0,p=p+Math.imul(O,Le)|0,h=h+Math.imul(Z,Re)|0,o=o+Math.imul(Z,Fe)|0,o=o+Math.imul(_,Re)|0,p=p+Math.imul(_,Fe)|0;var gr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(gr>>>26)|0,gr&=67108863,h=Math.imul(ge,ye),o=Math.imul(ge,we),o=o+Math.imul(ve,ye)|0,p=Math.imul(ve,we),h=h+Math.imul(oe,Ae)|0,o=o+Math.imul(oe,Me)|0,o=o+Math.imul(fe,Ae)|0,p=p+Math.imul(fe,Me)|0,h=h+Math.imul(se,Se)|0,o=o+Math.imul(se,Te)|0,o=o+Math.imul(le,Se)|0,p=p+Math.imul(le,Te)|0,h=h+Math.imul(j,Ee)|0,o=o+Math.imul(j,_e)|0,o=o+Math.imul(re,Ee)|0,p=p+Math.imul(re,_e)|0,h=h+Math.imul(k,Be)|0,o=o+Math.imul(k,Ce)|0,o=o+Math.imul(U,Be)|0,p=p+Math.imul(U,Ce)|0,h=h+Math.imul(I,Pe)|0,o=o+Math.imul(I,Le)|0,o=o+Math.imul(J,Pe)|0,p=p+Math.imul(J,Le)|0,h=h+Math.imul(L,Re)|0,o=o+Math.imul(L,Fe)|0,o=o+Math.imul(O,Re)|0,p=p+Math.imul(O,Fe)|0;var vr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(vr>>>26)|0,vr&=67108863,h=Math.imul(ge,Ae),o=Math.imul(ge,Me),o=o+Math.imul(ve,Ae)|0,p=Math.imul(ve,Me),h=h+Math.imul(oe,Se)|0,o=o+Math.imul(oe,Te)|0,o=o+Math.imul(fe,Se)|0,p=p+Math.imul(fe,Te)|0,h=h+Math.imul(se,Ee)|0,o=o+Math.imul(se,_e)|0,o=o+Math.imul(le,Ee)|0,p=p+Math.imul(le,_e)|0,h=h+Math.imul(j,Be)|0,o=o+Math.imul(j,Ce)|0,o=o+Math.imul(re,Be)|0,p=p+Math.imul(re,Ce)|0,h=h+Math.imul(k,Pe)|0,o=o+Math.imul(k,Le)|0,o=o+Math.imul(U,Pe)|0,p=p+Math.imul(U,Le)|0,h=h+Math.imul(I,Re)|0,o=o+Math.imul(I,Fe)|0,o=o+Math.imul(J,Re)|0,p=p+Math.imul(J,Fe)|0;var mr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(mr>>>26)|0,mr&=67108863,h=Math.imul(ge,Se),o=Math.imul(ge,Te),o=o+Math.imul(ve,Se)|0,p=Math.imul(ve,Te),h=h+Math.imul(oe,Ee)|0,o=o+Math.imul(oe,_e)|0,o=o+Math.imul(fe,Ee)|0,p=p+Math.imul(fe,_e)|0,h=h+Math.imul(se,Be)|0,o=o+Math.imul(se,Ce)|0,o=o+Math.imul(le,Be)|0,p=p+Math.imul(le,Ce)|0,h=h+Math.imul(j,Pe)|0,o=o+Math.imul(j,Le)|0,o=o+Math.imul(re,Pe)|0,p=p+Math.imul(re,Le)|0,h=h+Math.imul(k,Re)|0,o=o+Math.imul(k,Fe)|0,o=o+Math.imul(U,Re)|0,p=p+Math.imul(U,Fe)|0;var xr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(xr>>>26)|0,xr&=67108863,h=Math.imul(ge,Ee),o=Math.imul(ge,_e),o=o+Math.imul(ve,Ee)|0,p=Math.imul(ve,_e),h=h+Math.imul(oe,Be)|0,o=o+Math.imul(oe,Ce)|0,o=o+Math.imul(fe,Be)|0,p=p+Math.imul(fe,Ce)|0,h=h+Math.imul(se,Pe)|0,o=o+Math.imul(se,Le)|0,o=o+Math.imul(le,Pe)|0,p=p+Math.imul(le,Le)|0,h=h+Math.imul(j,Re)|0,o=o+Math.imul(j,Fe)|0,o=o+Math.imul(re,Re)|0,p=p+Math.imul(re,Fe)|0;var yr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(yr>>>26)|0,yr&=67108863,h=Math.imul(ge,Be),o=Math.imul(ge,Ce),o=o+Math.imul(ve,Be)|0,p=Math.imul(ve,Ce),h=h+Math.imul(oe,Pe)|0,o=o+Math.imul(oe,Le)|0,o=o+Math.imul(fe,Pe)|0,p=p+Math.imul(fe,Le)|0,h=h+Math.imul(se,Re)|0,o=o+Math.imul(se,Fe)|0,o=o+Math.imul(le,Re)|0,p=p+Math.imul(le,Fe)|0;var wr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(wr>>>26)|0,wr&=67108863,h=Math.imul(ge,Pe),o=Math.imul(ge,Le),o=o+Math.imul(ve,Pe)|0,p=Math.imul(ve,Le),h=h+Math.imul(oe,Re)|0,o=o+Math.imul(oe,Fe)|0,o=o+Math.imul(fe,Re)|0,p=p+Math.imul(fe,Fe)|0;var pn=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(pn>>>26)|0,pn&=67108863,h=Math.imul(ge,Re),o=Math.imul(ge,Fe),o=o+Math.imul(ve,Re)|0,p=Math.imul(ve,Fe);var bn=(m+h|0)+((o&8191)<<13)|0;return m=(p+(o>>>13)|0)+(bn>>>26)|0,bn&=67108863,g[0]=Dt,g[1]=Ne,g[2]=ke,g[3]=St,g[4]=Tt,g[5]=Et,g[6]=_t,g[7]=Bt,g[8]=hr,g[9]=pr,g[10]=br,g[11]=gr,g[12]=vr,g[13]=mr,g[14]=xr,g[15]=yr,g[16]=wr,g[17]=pn,g[18]=bn,m!==0&&(g[19]=m,l.length++),l};Math.imul||(P=F);function q(M,s,u){u.negative=s.negative^M.negative,u.length=M.length+s.length;for(var l=0,f=0,c=0;c<u.length-1;c++){var g=f;f=0;for(var m=l&67108863,h=Math.min(c,s.length-1),o=Math.max(0,c-M.length+1);o<=h;o++){var p=c-o,E=M.words[p]|0,b=s.words[o]|0,w=E*b,H=w&67108863;g=g+(w/67108864|0)|0,H=H+m|0,m=H&67108863,g=g+(H>>>26)|0,f+=g>>>26,g&=67108863}u.words[c]=m,l=g,g=f}return l!==0?u.words[c]=l:u.length--,u.strip()}function W(M,s,u){var l=new K;return l.mulp(M,s,u)}i.prototype.mulTo=function(s,u){var l,f=this.length+s.length;return this.length===10&&s.length===10?l=P(this,s,u):f<63?l=F(this,s,u):f<1024?l=q(this,s,u):l=W(this,s,u),l};function K(M,s){this.x=M,this.y=s}K.prototype.makeRBT=function(s){for(var u=new Array(s),l=i.prototype._countBits(s)-1,f=0;f<s;f++)u[f]=this.revBin(f,l,s);return u},K.prototype.revBin=function(s,u,l){if(s===0||s===l-1)return s;for(var f=0,c=0;c<u;c++)f|=(s&1)<<u-c-1,s>>=1;return f},K.prototype.permute=function(s,u,l,f,c,g){for(var m=0;m<g;m++)f[m]=u[s[m]],c[m]=l[s[m]]},K.prototype.transform=function(s,u,l,f,c,g){this.permute(g,s,u,l,f,c);for(var m=1;m<c;m<<=1)for(var h=m<<1,o=Math.cos(2*Math.PI/h),p=Math.sin(2*Math.PI/h),E=0;E<c;E+=h)for(var b=o,w=p,H=0;H<m;H++){var T=l[E+H],N=f[E+H],X=l[E+H+m],Z=f[E+H+m],_=b*X-w*Z;Z=b*Z+w*X,X=_,l[E+H]=T+X,f[E+H]=N+Z,l[E+H+m]=T-X,f[E+H+m]=N-Z,H!==h&&(_=o*b-p*w,w=o*w+p*b,b=_)}},K.prototype.guessLen13b=function(s,u){var l=Math.max(u,s)|1,f=l&1,c=0;for(l=l/2|0;l;l=l>>>1)c++;return 1<<c+1+f},K.prototype.conjugate=function(s,u,l){if(!(l<=1))for(var f=0;f<l/2;f++){var c=s[f];s[f]=s[l-f-1],s[l-f-1]=c,c=u[f],u[f]=-u[l-f-1],u[l-f-1]=-c}},K.prototype.normalize13b=function(s,u){for(var l=0,f=0;f<u/2;f++){var c=Math.round(s[2*f+1]/u)*8192+Math.round(s[2*f]/u)+l;s[f]=c&67108863,c<67108864?l=0:l=c/67108864|0}return s},K.prototype.convert13b=function(s,u,l,f){for(var c=0,g=0;g<u;g++)c=c+(s[g]|0),l[2*g]=c&8191,c=c>>>13,l[2*g+1]=c&8191,c=c>>>13;for(g=2*u;g<f;++g)l[g]=0;r(c===0),r((c&-8192)===0)},K.prototype.stub=function(s){for(var u=new Array(s),l=0;l<s;l++)u[l]=0;return u},K.prototype.mulp=function(s,u,l){var f=2*this.guessLen13b(s.length,u.length),c=this.makeRBT(f),g=this.stub(f),m=new Array(f),h=new Array(f),o=new Array(f),p=new Array(f),E=new Array(f),b=new Array(f),w=l.words;w.length=f,this.convert13b(s.words,s.length,m,f),this.convert13b(u.words,u.length,p,f),this.transform(m,g,h,o,f,c),this.transform(p,g,E,b,f,c);for(var H=0;H<f;H++){var T=h[H]*E[H]-o[H]*b[H];o[H]=h[H]*b[H]+o[H]*E[H],h[H]=T}return this.conjugate(h,o,f),this.transform(h,o,w,g,f,c),this.conjugate(w,g,f),this.normalize13b(w,f),l.negative=s.negative^u.negative,l.length=s.length+u.length,l.strip()},i.prototype.mul=function(s){var u=new i(null);return u.words=new Array(this.length+s.length),this.mulTo(s,u)},i.prototype.mulf=function(s){var u=new i(null);return u.words=new Array(this.length+s.length),W(this,s,u)},i.prototype.imul=function(s){return this.clone().mulTo(s,this)},i.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var u=0,l=0;l<this.length;l++){var f=(this.words[l]|0)*s,c=(f&67108863)+(u&67108863);u>>=26,u+=f/67108864|0,u+=c>>>26,this.words[l]=c&67108863}return u!==0&&(this.words[l]=u,this.length++),this.length=s===0?1:this.length,this},i.prototype.muln=function(s){return this.clone().imuln(s)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(s){var u=D(s);if(u.length===0)return new i(1);for(var l=this,f=0;f<u.length&&u[f]===0;f++,l=l.sqr());if(++f<u.length)for(var c=l.sqr();f<u.length;f++,c=c.sqr())u[f]!==0&&(l=l.mul(c));return l},i.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var u=s%26,l=(s-u)/26,f=67108863>>>26-u<<26-u,c;if(u!==0){var g=0;for(c=0;c<this.length;c++){var m=this.words[c]&f,h=(this.words[c]|0)-m<<u;this.words[c]=h|g,g=m>>>26-u}g&&(this.words[c]=g,this.length++)}if(l!==0){for(c=this.length-1;c>=0;c--)this.words[c+l]=this.words[c];for(c=0;c<l;c++)this.words[c]=0;this.length+=l}return this.strip()},i.prototype.ishln=function(s){return r(this.negative===0),this.iushln(s)},i.prototype.iushrn=function(s,u,l){r(typeof s=="number"&&s>=0);var f;u?f=(u-u%26)/26:f=0;var c=s%26,g=Math.min((s-c)/26,this.length),m=67108863^67108863>>>c<<c,h=l;if(f-=g,f=Math.max(0,f),h){for(var o=0;o<g;o++)h.words[o]=this.words[o];h.length=g}if(g!==0)if(this.length>g)for(this.length-=g,o=0;o<this.length;o++)this.words[o]=this.words[o+g];else this.words[0]=0,this.length=1;var p=0;for(o=this.length-1;o>=0&&(p!==0||o>=f);o--){var E=this.words[o]|0;this.words[o]=p<<26-c|E>>>c,p=E&m}return h&&p!==0&&(h.words[h.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(s,u,l){return r(this.negative===0),this.iushrn(s,u,l)},i.prototype.shln=function(s){return this.clone().ishln(s)},i.prototype.ushln=function(s){return this.clone().iushln(s)},i.prototype.shrn=function(s){return this.clone().ishrn(s)},i.prototype.ushrn=function(s){return this.clone().iushrn(s)},i.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var u=s%26,l=(s-u)/26,f=1<<u;if(this.length<=l)return!1;var c=this.words[l];return!!(c&f)},i.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var u=s%26,l=(s-u)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(u!==0&&l++,this.length=Math.min(l,this.length),u!==0){var f=67108863^67108863>>>u<<u;this.words[this.length-1]&=f}return this.strip()},i.prototype.maskn=function(s){return this.clone().imaskn(s)},i.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},i.prototype._iaddn=function(s){this.words[0]+=s;for(var u=0;u<this.length&&this.words[u]>=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},i.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u<this.length&&this.words[u]<0;u++)this.words[u]+=67108864,this.words[u+1]-=1;return this.strip()},i.prototype.addn=function(s){return this.clone().iaddn(s)},i.prototype.subn=function(s){return this.clone().isubn(s)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(s,u,l){var f=s.length+l,c;this._expand(f);var g,m=0;for(c=0;c<s.length;c++){g=(this.words[c+l]|0)+m;var h=(s.words[c]|0)*u;g-=h&67108863,m=(g>>26)-(h/67108864|0),this.words[c+l]=g&67108863}for(;c<this.length-l;c++)g=(this.words[c+l]|0)+m,m=g>>26,this.words[c+l]=g&67108863;if(m===0)return this.strip();for(r(m===-1),m=0,c=0;c<this.length;c++)g=-(this.words[c]|0)+m,m=g>>26,this.words[c]=g&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(s,u){var l=this.length-s.length,f=this.clone(),c=s,g=c.words[c.length-1]|0,m=this._countBits(g);l=26-m,l!==0&&(c=c.ushln(l),f.iushln(l),g=c.words[c.length-1]|0);var h=f.length-c.length,o;if(u!=="mod"){o=new i(null),o.length=h+1,o.words=new Array(o.length);for(var p=0;p<o.length;p++)o.words[p]=0}var E=f.clone()._ishlnsubmul(c,1,h);E.negative===0&&(f=E,o&&(o.words[h]=1));for(var b=h-1;b>=0;b--){var w=(f.words[c.length+b]|0)*67108864+(f.words[c.length+b-1]|0);for(w=Math.min(w/g|0,67108863),f._ishlnsubmul(c,w,b);f.negative!==0;)w--,f.negative=0,f._ishlnsubmul(c,1,b),f.isZero()||(f.negative^=1);o&&(o.words[b]=w)}return o&&o.strip(),f.strip(),u!=="div"&&l!==0&&f.iushrn(l),{div:o||null,mod:f}},i.prototype.divmod=function(s,u,l){if(r(!s.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var f,c,g;return this.negative!==0&&s.negative===0?(g=this.neg().divmod(s,u),u!=="mod"&&(f=g.div.neg()),u!=="div"&&(c=g.mod.neg(),l&&c.negative!==0&&c.iadd(s)),{div:f,mod:c}):this.negative===0&&s.negative!==0?(g=this.divmod(s.neg(),u),u!=="mod"&&(f=g.div.neg()),{div:f,mod:g.mod}):this.negative&s.negative?(g=this.neg().divmod(s.neg(),u),u!=="div"&&(c=g.mod.neg(),l&&c.negative!==0&&c.isub(s)),{div:g.div,mod:c}):s.length>this.length||this.cmp(s)<0?{div:new i(0),mod:this}:s.length===1?u==="div"?{div:this.divn(s.words[0]),mod:null}:u==="mod"?{div:null,mod:new i(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new i(this.modn(s.words[0]))}:this._wordDiv(s,u)},i.prototype.div=function(s){return this.divmod(s,"div",!1).div},i.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},i.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},i.prototype.divRound=function(s){var u=this.divmod(s);if(u.mod.isZero())return u.div;var l=u.div.negative!==0?u.mod.isub(s):u.mod,f=s.ushrn(1),c=s.andln(1),g=l.cmp(f);return g<0||c===1&&g===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},i.prototype.modn=function(s){r(s<=67108863);for(var u=(1<<26)%s,l=0,f=this.length-1;f>=0;f--)l=(u*l+(this.words[f]|0))%s;return l},i.prototype.idivn=function(s){r(s<=67108863);for(var u=0,l=this.length-1;l>=0;l--){var f=(this.words[l]|0)+u*67108864;this.words[l]=f/s|0,u=f%s}return this.strip()},i.prototype.divn=function(s){return this.clone().idivn(s)},i.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var u=this,l=s.clone();u.negative!==0?u=u.umod(s):u=u.clone();for(var f=new i(1),c=new i(0),g=new i(0),m=new i(1),h=0;u.isEven()&&l.isEven();)u.iushrn(1),l.iushrn(1),++h;for(var o=l.clone(),p=u.clone();!u.isZero();){for(var E=0,b=1;!(u.words[0]&b)&&E<26;++E,b<<=1);if(E>0)for(u.iushrn(E);E-- >0;)(f.isOdd()||c.isOdd())&&(f.iadd(o),c.isub(p)),f.iushrn(1),c.iushrn(1);for(var w=0,H=1;!(l.words[0]&H)&&w<26;++w,H<<=1);if(w>0)for(l.iushrn(w);w-- >0;)(g.isOdd()||m.isOdd())&&(g.iadd(o),m.isub(p)),g.iushrn(1),m.iushrn(1);u.cmp(l)>=0?(u.isub(l),f.isub(g),c.isub(m)):(l.isub(u),g.isub(f),m.isub(c))}return{a:g,b:m,gcd:l.iushln(h)}},i.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var u=this,l=s.clone();u.negative!==0?u=u.umod(s):u=u.clone();for(var f=new i(1),c=new i(0),g=l.clone();u.cmpn(1)>0&&l.cmpn(1)>0;){for(var m=0,h=1;!(u.words[0]&h)&&m<26;++m,h<<=1);if(m>0)for(u.iushrn(m);m-- >0;)f.isOdd()&&f.iadd(g),f.iushrn(1);for(var o=0,p=1;!(l.words[0]&p)&&o<26;++o,p<<=1);if(o>0)for(l.iushrn(o);o-- >0;)c.isOdd()&&c.iadd(g),c.iushrn(1);u.cmp(l)>=0?(u.isub(l),f.isub(c)):(l.isub(u),c.isub(f))}var E;return u.cmpn(1)===0?E=f:E=c,E.cmpn(0)<0&&E.iadd(s),E},i.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var u=this.clone(),l=s.clone();u.negative=0,l.negative=0;for(var f=0;u.isEven()&&l.isEven();f++)u.iushrn(1),l.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;l.isEven();)l.iushrn(1);var c=u.cmp(l);if(c<0){var g=u;u=l,l=g}else if(c===0||l.cmpn(1)===0)break;u.isub(l)}while(!0);return l.iushln(f)},i.prototype.invm=function(s){return this.egcd(s).a.umod(s)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(s){return this.words[0]&s},i.prototype.bincn=function(s){r(typeof s=="number");var u=s%26,l=(s-u)/26,f=1<<u;if(this.length<=l)return this._expand(l+1),this.words[l]|=f,this;for(var c=f,g=l;c!==0&&g<this.length;g++){var m=this.words[g]|0;m+=c,c=m>>>26,m&=67108863,this.words[g]=m}return c!==0&&(this.words[g]=c,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(s){var u=s<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this.strip();var l;if(this.length>1)l=1;else{u&&(s=-s),r(s<=67108863,"Number is too big");var f=this.words[0]|0;l=f===s?0:f<s?-1:1}return this.negative!==0?-l|0:l},i.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var u=this.ucmp(s);return this.negative!==0?-u|0:u},i.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var u=0,l=this.length-1;l>=0;l--){var f=this.words[l]|0,c=s.words[l]|0;if(f!==c){f<c?u=-1:f>c&&(u=1);break}}return u},i.prototype.gtn=function(s){return this.cmpn(s)===1},i.prototype.gt=function(s){return this.cmp(s)===1},i.prototype.gten=function(s){return this.cmpn(s)>=0},i.prototype.gte=function(s){return this.cmp(s)>=0},i.prototype.ltn=function(s){return this.cmpn(s)===-1},i.prototype.lt=function(s){return this.cmp(s)===-1},i.prototype.lten=function(s){return this.cmpn(s)<=0},i.prototype.lte=function(s){return this.cmp(s)<=0},i.prototype.eqn=function(s){return this.cmpn(s)===0},i.prototype.eq=function(s){return this.cmp(s)===0},i.red=function(s){return new te(s)},i.prototype.toRed=function(s){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(s){return this.red=s,this},i.prototype.forceRed=function(s){return r(!this.red,"Already a number in reduction context"),this._forceRed(s)},i.prototype.redAdd=function(s){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},i.prototype.redIAdd=function(s){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},i.prototype.redSub=function(s){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},i.prototype.redISub=function(s){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},i.prototype.redShl=function(s){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},i.prototype.redMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},i.prototype.redIMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(s){return r(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var ne={k256:null,p224:null,p192:null,p25519:null};function $(M,s){this.name=M,this.p=new i(s,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}$.prototype._tmp=function(){var s=new i(null);return s.words=new Array(Math.ceil(this.n/13)),s},$.prototype.ireduce=function(s){var u=s,l;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),l=u.bitLength();while(l>this.n);var f=l<this.n?-1:u.ucmp(this.p);return f===0?(u.words[0]=0,u.length=1):f>0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},$.prototype.split=function(s,u){s.iushrn(this.n,0,u)},$.prototype.imulK=function(s){return s.imul(this.k)};function ae(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(ae,$),ae.prototype.split=function(s,u){for(var l=4194303,f=Math.min(s.length,9),c=0;c<f;c++)u.words[c]=s.words[c];if(u.length=f,s.length<=9){s.words[0]=0,s.length=1;return}var g=s.words[9];for(u.words[u.length++]=g&l,c=10;c<s.length;c++){var m=s.words[c]|0;s.words[c-10]=(m&l)<<4|g>>>22,g=m}g>>>=22,s.words[c-10]=g,g===0&&s.length>10?s.length-=10:s.length-=9},ae.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var u=0,l=0;l<s.length;l++){var f=s.words[l]|0;u+=f*977,s.words[l]=u&67108863,u=f*64+(u/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function ie(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(ie,$);function ee(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(ee,$);function ce(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(ce,$),ce.prototype.imulK=function(s){for(var u=0,l=0;l<s.length;l++){var f=(s.words[l]|0)*19+u,c=f&67108863;f>>>=26,s.words[l]=c,u=f}return u!==0&&(s.words[s.length++]=u),s},i._prime=function(s){if(ne[s])return ne[s];var u;if(s==="k256")u=new ae;else if(s==="p224")u=new ie;else if(s==="p192")u=new ee;else if(s==="p25519")u=new ce;else throw new Error("Unknown prime "+s);return ne[s]=u,u};function te(M){if(typeof M=="string"){var s=i._prime(M);this.m=s.p,this.prime=s}else r(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}te.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},te.prototype._verify2=function(s,u){r((s.negative|u.negative)===0,"red works only with positives"),r(s.red&&s.red===u.red,"red works only with red numbers")},te.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},te.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},te.prototype.add=function(s,u){this._verify2(s,u);var l=s.add(u);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},te.prototype.iadd=function(s,u){this._verify2(s,u);var l=s.iadd(u);return l.cmp(this.m)>=0&&l.isub(this.m),l},te.prototype.sub=function(s,u){this._verify2(s,u);var l=s.sub(u);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},te.prototype.isub=function(s,u){this._verify2(s,u);var l=s.isub(u);return l.cmpn(0)<0&&l.iadd(this.m),l},te.prototype.shl=function(s,u){return this._verify1(s),this.imod(s.ushln(u))},te.prototype.imul=function(s,u){return this._verify2(s,u),this.imod(s.imul(u))},te.prototype.mul=function(s,u){return this._verify2(s,u),this.imod(s.mul(u))},te.prototype.isqr=function(s){return this.imul(s,s.clone())},te.prototype.sqr=function(s){return this.mul(s,s)},te.prototype.sqrt=function(s){if(s.isZero())return s.clone();var u=this.m.andln(3);if(r(u%2===1),u===3){var l=this.m.add(new i(1)).iushrn(2);return this.pow(s,l)}for(var f=this.m.subn(1),c=0;!f.isZero()&&f.andln(1)===0;)c++,f.iushrn(1);r(!f.isZero());var g=new i(1).toRed(this),m=g.redNeg(),h=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new i(2*o*o).toRed(this);this.pow(o,h).cmp(m)!==0;)o.redIAdd(m);for(var p=this.pow(o,f),E=this.pow(s,f.addn(1).iushrn(1)),b=this.pow(s,f),w=c;b.cmp(g)!==0;){for(var H=b,T=0;H.cmp(g)!==0;T++)H=H.redSqr();r(T<w);var N=this.pow(p,new i(1).iushln(w-T-1));E=E.redMul(N),p=N.redSqr(),b=b.redMul(p),w=T}return E},te.prototype.invm=function(s){var u=s._invmp(this.m);return u.negative!==0?(u.negative=0,this.imod(u).redNeg()):this.imod(u)},te.prototype.pow=function(s,u){if(u.isZero())return new i(1).toRed(this);if(u.cmpn(1)===0)return s.clone();var l=4,f=new Array(1<<l);f[0]=new i(1).toRed(this),f[1]=s;for(var c=2;c<f.length;c++)f[c]=this.mul(f[c-1],s);var g=f[0],m=0,h=0,o=u.bitLength()%26;for(o===0&&(o=26),c=u.length-1;c>=0;c--){for(var p=u.words[c],E=o-1;E>=0;E--){var b=p>>E&1;if(g!==f[0]&&(g=this.sqr(g)),b===0&&m===0){h=0;continue}m<<=1,m|=b,h++,!(h!==l&&(c!==0||E!==0))&&(g=this.mul(g,f[m]),h=0,m=0)}o=26}return g},te.prototype.convertTo=function(s){var u=s.umod(this.m);return u===s?u.clone():u},te.prototype.convertFrom=function(s){var u=s.clone();return u.red=null,u},i.mont=function(s){return new Y(s)};function Y(M){te.call(this,M),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}n(Y,te),Y.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},Y.prototype.convertFrom=function(s){var u=this.imod(s.mul(this.rinv));return u.red=null,u},Y.prototype.imul=function(s,u){if(s.isZero()||u.isZero())return s.words[0]=0,s.length=1,s;var l=s.imul(u),f=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=l.isub(f).iushrn(this.shift),g=c;return c.cmp(this.m)>=0?g=c.isub(this.m):c.cmpn(0)<0&&(g=c.iadd(this.m)),g._forceRed(this)},Y.prototype.mul=function(s,u){if(s.isZero()||u.isZero())return new i(0)._forceRed(this);var l=s.mul(u),f=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=l.isub(f).iushrn(this.shift),g=c;return c.cmp(this.m)>=0?g=c.isub(this.m):c.cmpn(0)<0&&(g=c.iadd(this.m)),g._forceRed(this)},Y.prototype.invm=function(s){var u=this.imod(s._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(typeof nl>"u"||nl,w1)});var A1=V((jB,al)=>{var QB=A(S());typeof Object.create=="function"?al.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:al.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var tr=V((WB,sl)=>{var YB=A(S());try{if(ol=rt("util"),typeof ol.inherits!="function")throw"";sl.exports=ol.inherits}catch{sl.exports=A1()}var ol});var jf=V(($B,M1)=>{"use strict";var eC=A(S()),Vf=rt("buffer"),io=Vf.Buffer,Xr={},zr;for(zr in Vf)Vf.hasOwnProperty(zr)&&(zr==="SlowBuffer"||zr==="Buffer"||(Xr[zr]=Vf[zr]));var ao=Xr.Buffer={};for(zr in io)io.hasOwnProperty(zr)&&(zr==="allocUnsafe"||zr==="allocUnsafeSlow"||(ao[zr]=io[zr]));Xr.Buffer.prototype=io.prototype;(!ao.from||ao.from===Uint8Array.from)&&(ao.from=function(t,e,r){if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&typeof t.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return io(t,e,r)});ao.alloc||(ao.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=io(t);return!e||e.length===0?n.fill(0):typeof r=="string"?n.fill(e,r):n.fill(e),n});if(!Xr.kStringMaxLength)try{Xr.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}Xr.constants||(Xr.constants={MAX_LENGTH:Xr.kMaxLength},Xr.kStringMaxLength&&(Xr.constants.MAX_STRING_LENGTH=Xr.kStringMaxLength));M1.exports=Xr});var Qf=V(S1=>{"use strict";var rC=A(S()),B6=tr();function Kr(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}S1.Reporter=Kr;Kr.prototype.isError=function(e){return e instanceof oo};Kr.prototype.save=function(){let e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};Kr.prototype.restore=function(e){let r=this._reporterState;r.obj=e.obj,r.path=r.path.slice(0,e.pathLen)};Kr.prototype.enterKey=function(e){return this._reporterState.path.push(e)};Kr.prototype.exitKey=function(e){let r=this._reporterState;r.path=r.path.slice(0,e-1)};Kr.prototype.leaveKey=function(e,r,n){let i=this._reporterState;this.exitKey(e),i.obj!==null&&(i.obj[r]=n)};Kr.prototype.path=function(){return this._reporterState.path.join("/")};Kr.prototype.enterObject=function(){let e=this._reporterState,r=e.obj;return e.obj={},r};Kr.prototype.leaveObject=function(e){let r=this._reporterState,n=r.obj;return r.obj=e,n};Kr.prototype.error=function(e){let r,n=this._reporterState,i=e instanceof oo;if(i?r=e:r=new oo(n.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw r;return i||n.errors.push(r),r};Kr.prototype.wrapResult=function(e){let r=this._reporterState;return r.options.partial?{result:this.isError(e)?null:e,errors:r.errors}:e};function oo(t,e){this.path=t,this.rethrow(e)}B6(oo,Error);oo.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,oo),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this}});var co=V(fl=>{"use strict";var iC=A(S()),C6=tr(),Wf=Qf().Reporter,so=jf().Buffer;function Zr(t,e){if(Wf.call(this,e),!so.isBuffer(t)){this.error("Input not Buffer");return}this.base=t,this.offset=0,this.length=t.length}C6(Zr,Wf);fl.DecoderBuffer=Zr;Zr.isDecoderBuffer=function(e){return e instanceof Zr?!0:typeof e=="object"&&so.isBuffer(e.base)&&e.constructor.name==="DecoderBuffer"&&typeof e.offset=="number"&&typeof e.length=="number"&&typeof e.save=="function"&&typeof e.restore=="function"&&typeof e.isEmpty=="function"&&typeof e.readUInt8=="function"&&typeof e.skip=="function"&&typeof e.raw=="function"};Zr.prototype.save=function(){return{offset:this.offset,reporter:Wf.prototype.save.call(this)}};Zr.prototype.restore=function(e){let r=new Zr(this.base);return r.offset=e.offset,r.length=this.offset,this.offset=e.offset,Wf.prototype.restore.call(this,e.reporter),r};Zr.prototype.isEmpty=function(){return this.offset===this.length};Zr.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};Zr.prototype.skip=function(e,r){if(!(this.offset+e<=this.length))return this.error(r||"DecoderBuffer overrun");let n=new Zr(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n};Zr.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function fo(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(r){return fo.isEncoderBuffer(r)||(r=new fo(r,e)),this.length+=r.length,r},this);else if(typeof t=="number"){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if(typeof t=="string")this.value=t,this.length=so.byteLength(t);else if(so.isBuffer(t))this.value=t,this.length=t.length;else return e.error("Unsupported type: "+typeof t)}fl.EncoderBuffer=fo;fo.isEncoderBuffer=function(e){return e instanceof fo?!0:typeof e=="object"&&e.constructor.name==="EncoderBuffer"&&typeof e.length=="number"&&typeof e.join=="function"};fo.prototype.join=function(e,r){return e||(e=so.alloc(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,r),r+=n.length}):(typeof this.value=="number"?e[r]=this.value:typeof this.value=="string"?e.write(this.value,r):so.isBuffer(this.value)&&this.value.copy(e,r),r+=this.length)),e}});var li=V((aC,E1)=>{var oC=A(S());E1.exports=T1;function T1(t,e){if(!t)throw new Error(e||"Assertion failed")}T1.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)}});var Yf=V((sC,B1)=>{"use strict";var fC=A(S()),P6=Qf().Reporter,L6=co().EncoderBuffer,R6=co().DecoderBuffer,Mr=li(),_1=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],F6=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(_1),D6=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function et(t,e,r){let n={};this._baseState=n,n.name=r,n.enc=t,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}B1.exports=et;var O6=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];et.prototype.clone=function(){let e=this._baseState,r={};O6.forEach(function(i){r[i]=e[i]});let n=new this.constructor(r.parent);return n._baseState=r,n};et.prototype._wrap=function(){let e=this._baseState;F6.forEach(function(r){this[r]=function(){let i=new this.constructor(this);return e.children.push(i),i[r].apply(i,arguments)}},this)};et.prototype._init=function(e){let r=this._baseState;Mr(r.parent===null),e.call(this),r.children=r.children.filter(function(n){return n._baseState.parent===this},this),Mr.equal(r.children.length,1,"Root node can have only one child")};et.prototype._useArgs=function(e){let r=this._baseState,n=e.filter(function(i){return i instanceof this.constructor},this);e=e.filter(function(i){return!(i instanceof this.constructor)},this),n.length!==0&&(Mr(r.children===null),r.children=n,n.forEach(function(i){i._baseState.parent=this},this)),e.length!==0&&(Mr(r.args===null),r.args=e,r.reverseArgs=e.map(function(i){if(typeof i!="object"||i.constructor!==Object)return i;let a={};return Object.keys(i).forEach(function(d){d==(d|0)&&(d|=0);let v=i[d];a[v]=d}),a}))};D6.forEach(function(t){et.prototype[t]=function(){let r=this._baseState;throw new Error(t+" not implemented for encoding: "+r.enc)}});_1.forEach(function(t){et.prototype[t]=function(){let r=this._baseState,n=Array.prototype.slice.call(arguments);return Mr(r.tag===null),r.tag=t,this._useArgs(n),this}});et.prototype.use=function(e){Mr(e);let r=this._baseState;return Mr(r.use===null),r.use=e,this};et.prototype.optional=function(){let e=this._baseState;return e.optional=!0,this};et.prototype.def=function(e){let r=this._baseState;return Mr(r.default===null),r.default=e,r.optional=!0,this};et.prototype.explicit=function(e){let r=this._baseState;return Mr(r.explicit===null&&r.implicit===null),r.explicit=e,this};et.prototype.implicit=function(e){let r=this._baseState;return Mr(r.explicit===null&&r.implicit===null),r.implicit=e,this};et.prototype.obj=function(){let e=this._baseState,r=Array.prototype.slice.call(arguments);return e.obj=!0,r.length!==0&&this._useArgs(r),this};et.prototype.key=function(e){let r=this._baseState;return Mr(r.key===null),r.key=e,this};et.prototype.any=function(){let e=this._baseState;return e.any=!0,this};et.prototype.choice=function(e){let r=this._baseState;return Mr(r.choice===null),r.choice=e,this._useArgs(Object.keys(e).map(function(n){return e[n]})),this};et.prototype.contains=function(e){let r=this._baseState;return Mr(r.use===null),r.contains=e,this};et.prototype._decode=function(e,r){let n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,r));let i=n.default,a=!0,d=null;if(n.key!==null&&(d=e.enterKey(n.key)),n.optional){let y=null;if(n.explicit!==null?y=n.explicit:n.implicit!==null?y=n.implicit:n.tag!==null&&(y=n.tag),y===null&&!n.any){let x=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,r):this._decodeChoice(e,r),a=!0}catch{a=!1}e.restore(x)}else if(a=this._peekTag(e,y,n.any),e.isError(a))return a}let v;if(n.obj&&a&&(v=e.enterObject()),a){if(n.explicit!==null){let x=this._decodeTag(e,n.explicit);if(e.isError(x))return x;e=x}let y=e.offset;if(n.use===null&&n.choice===null){let x;n.any&&(x=e.save());let B=this._decodeTag(e,n.implicit!==null?n.implicit:n.tag,n.any);if(e.isError(B))return B;n.any?i=e.raw(x):e=B}if(r&&r.track&&n.tag!==null&&r.track(e.path(),y,e.length,"tagged"),r&&r.track&&n.tag!==null&&r.track(e.path(),e.offset,e.length,"content"),n.any||(n.choice===null?i=this._decodeGeneric(n.tag,e,r):i=this._decodeChoice(e,r)),e.isError(i))return i;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(B){B._decode(e,r)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){let x=new R6(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(x,r)}}return n.obj&&a&&(i=e.leaveObject(v)),n.key!==null&&(i!==null||a===!0)?e.leaveKey(d,n.key,i):d!==null&&e.exitKey(d),i};et.prototype._decodeGeneric=function(e,r,n){let i=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(r,e,i.args[0],n):/str$/.test(e)?this._decodeStr(r,e,n):e==="objid"&&i.args?this._decodeObjid(r,i.args[0],i.args[1],n):e==="objid"?this._decodeObjid(r,null,null,n):e==="gentime"||e==="utctime"?this._decodeTime(r,e,n):e==="null_"?this._decodeNull(r,n):e==="bool"?this._decodeBool(r,n):e==="objDesc"?this._decodeStr(r,e,n):e==="int"||e==="enum"?this._decodeInt(r,i.args&&i.args[0],n):i.use!==null?this._getUse(i.use,r._reporterState.obj)._decode(r,n):r.error("unknown tag: "+e)};et.prototype._getUse=function(e,r){let n=this._baseState;return n.useDecoder=this._use(e,r),Mr(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder};et.prototype._decodeChoice=function(e,r){let n=this._baseState,i=null,a=!1;return Object.keys(n.choice).some(function(d){let v=e.save(),y=n.choice[d];try{let x=y._decode(e,r);if(e.isError(x))return!1;i={type:d,value:x},a=!0}catch{return e.restore(v),!1}return!0},this),a?i:e.error("Choice not matched")};et.prototype._createEncoderBuffer=function(e){return new L6(e,this.reporter)};et.prototype._encode=function(e,r,n){let i=this._baseState;if(i.default!==null&&i.default===e)return;let a=this._encodeValue(e,r,n);if(a!==void 0&&!this._skipDefault(a,r,n))return a};et.prototype._encodeValue=function(e,r,n){let i=this._baseState;if(i.parent===null)return i.children[0]._encode(e,r||new P6);let a=null;if(this.reporter=r,i.optional&&e===void 0)if(i.default!==null)e=i.default;else return;let d=null,v=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,r);else if(i.contains)d=this._getUse(i.contains,n)._encode(e,r),v=!0;else if(i.children)d=i.children.map(function(y){if(y._baseState.tag==="null_")return y._encode(null,r,e);if(y._baseState.key===null)return r.error("Child should have a key");let x=r.enterKey(y._baseState.key);if(typeof e!="object")return r.error("Child expected, but input is not object");let B=y._encode(e[y._baseState.key],r,e);return r.leaveKey(x),B},this).filter(function(y){return y}),d=this._createEncoderBuffer(d);else if(i.tag==="seqof"||i.tag==="setof"){if(!(i.args&&i.args.length===1))return r.error("Too many args for : "+i.tag);if(!Array.isArray(e))return r.error("seqof/setof, but data is not Array");let y=this.clone();y._baseState.implicit=null,d=this._createEncoderBuffer(e.map(function(x){let B=this._baseState;return this._getUse(B.args[0],e)._encode(x,r)},y))}else i.use!==null?a=this._getUse(i.use,n)._encode(e,r):(d=this._encodePrimitive(i.tag,e),v=!0);if(!i.any&&i.choice===null){let y=i.implicit!==null?i.implicit:i.tag,x=i.implicit===null?"universal":"context";y===null?i.use===null&&r.error("Tag could be omitted only for .use()"):i.use===null&&(a=this._encodeComposite(y,v,x,d))}return i.explicit!==null&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a};et.prototype._encodeChoice=function(e,r){let n=this._baseState,i=n.choice[e.type];return i||Mr(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),i._encode(e.value,r)};et.prototype._encodePrimitive=function(e,r){let n=this._baseState;if(/str$/.test(e))return this._encodeStr(r,e);if(e==="objid"&&n.args)return this._encodeObjid(r,n.reverseArgs[0],n.args[1]);if(e==="objid")return this._encodeObjid(r,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(r,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(r,n.args&&n.reverseArgs[0]);if(e==="bool")return this._encodeBool(r);if(e==="objDesc")return this._encodeStr(r,e);throw new Error("Unsupported tag: "+e)};et.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};et.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}});var $f=V(la=>{"use strict";var uC=A(S());function C1(t){let e={};return Object.keys(t).forEach(function(r){(r|0)==r&&(r=r|0);let n=t[r];e[n]=r}),e}la.tagClass={0:"universal",1:"application",2:"context",3:"private"};la.tagClassByName=C1(la.tagClass);la.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};la.tagByName=C1(la.tag)});var ul=V((lC,R1)=>{"use strict";var dC=A(S()),I6=tr(),di=jf().Buffer,P1=Yf(),cl=$f();function L1(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new vn,this.tree._init(t.body)}R1.exports=L1;L1.prototype.encode=function(e,r){return this.tree._encode(e,r).join()};function vn(t){P1.call(this,"der",t)}I6(vn,P1);vn.prototype._encodeComposite=function(e,r,n,i){let a=N6(e,r,n,this.reporter);if(i.length<128){let y=di.alloc(2);return y[0]=a,y[1]=i.length,this._createEncoderBuffer([y,i])}let d=1;for(let y=i.length;y>=256;y>>=8)d++;let v=di.alloc(2+d);v[0]=a,v[1]=128|d;for(let y=1+d,x=i.length;x>0;y--,x>>=8)v[y]=x&255;return this._createEncoderBuffer([v,i])};vn.prototype._encodeStr=function(e,r){if(r==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(r==="bmpstr"){let n=di.alloc(e.length*2);for(let i=0;i<e.length;i++)n.writeUInt16BE(e.charCodeAt(i),i*2);return this._createEncoderBuffer(n)}else return r==="numstr"?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):r==="printstr"?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(r)?this._createEncoderBuffer(e):r==="objDesc"?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+r+" unsupported")};vn.prototype._encodeObjid=function(e,r,n){if(typeof e=="string"){if(!r)return this.reporter.error("string objid given, but no values map found");if(!r.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=r[e].split(/[\s.]+/g);for(let v=0;v<e.length;v++)e[v]|=0}else if(Array.isArray(e)){e=e.slice();for(let v=0;v<e.length;v++)e[v]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}let i=0;for(let v=0;v<e.length;v++){let y=e[v];for(i++;y>=128;y>>=7)i++}let a=di.alloc(i),d=a.length-1;for(let v=e.length-1;v>=0;v--){let y=e[v];for(a[d--]=y&127;(y>>=7)>0;)a[d--]=128|y&127}return this._createEncoderBuffer(a)};function Vr(t){return t<10?"0"+t:t}vn.prototype._encodeTime=function(e,r){let n,i=new Date(e);return r==="gentime"?n=[Vr(i.getUTCFullYear()),Vr(i.getUTCMonth()+1),Vr(i.getUTCDate()),Vr(i.getUTCHours()),Vr(i.getUTCMinutes()),Vr(i.getUTCSeconds()),"Z"].join(""):r==="utctime"?n=[Vr(i.getUTCFullYear()%100),Vr(i.getUTCMonth()+1),Vr(i.getUTCDate()),Vr(i.getUTCHours()),Vr(i.getUTCMinutes()),Vr(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(n,"octstr")};vn.prototype._encodeNull=function(){return this._createEncoderBuffer("")};vn.prototype._encodeInt=function(e,r){if(typeof e=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=r[e]}if(typeof e!="number"&&!di.isBuffer(e)){let a=e.toArray();!e.sign&&a[0]&128&&a.unshift(0),e=di.from(a)}if(di.isBuffer(e)){let a=e.length;e.length===0&&a++;let d=di.alloc(a);return e.copy(d),e.length===0&&(d[0]=0),this._createEncoderBuffer(d)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let a=e;a>=256;a>>=8)n++;let i=new Array(n);for(let a=i.length-1;a>=0;a--)i[a]=e&255,e>>=8;return i[0]&128&&i.unshift(0),this._createEncoderBuffer(di.from(i))};vn.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};vn.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getEncoder("der").tree};vn.prototype._skipDefault=function(e,r,n){let i=this._baseState,a;if(i.default===null)return!1;let d=e.join();if(i.defaultBuffer===void 0&&(i.defaultBuffer=this._encodeValue(i.default,r,n).join()),d.length!==i.defaultBuffer.length)return!1;for(a=0;a<d.length;a++)if(d[a]!==i.defaultBuffer[a])return!1;return!0};function N6(t,e,r,n){let i;if(t==="seqof"?t="seq":t==="setof"&&(t="set"),cl.tagByName.hasOwnProperty(t))i=cl.tagByName[t];else if(typeof t=="number"&&(t|0)===t)i=t;else return n.error("Unknown tag: "+t);return i>=31?n.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|=cl.tagClassByName[r||"universal"]<<6,i)}});var D1=V((hC,F1)=>{"use strict";var pC=A(S()),k6=tr(),ll=ul();function dl(t){ll.call(this,t),this.enc="pem"}k6(dl,ll);F1.exports=dl;dl.prototype.encode=function(e,r){let i=ll.prototype.encode.call(this,e).toString("base64"),a=["-----BEGIN "+r.label+"-----"];for(let d=0;d<i.length;d+=64)a.push(i.slice(d,d+64));return a.push("-----END "+r.label+"-----"),a.join(`
5
- `)}});var hl=V(I1=>{"use strict";var gC=A(S()),O1=I1;O1.der=ul();O1.pem=D1()});var bl=V((vC,q1)=>{"use strict";var mC=A(S()),J6=tr(),U6=il(),N1=co().DecoderBuffer,J1=Yf(),k1=$f();function U1(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new Fr,this.tree._init(t.body)}q1.exports=U1;U1.prototype.decode=function(e,r){return N1.isDecoderBuffer(e)||(e=new N1(e,r)),this.tree._decode(e,r)};function Fr(t){J1.call(this,"der",t)}J6(Fr,J1);Fr.prototype._peekTag=function(e,r,n){if(e.isEmpty())return!1;let i=e.save(),a=pl(e,'Failed to peek tag: "'+r+'"');return e.isError(a)?a:(e.restore(i),a.tag===r||a.tagStr===r||a.tagStr+"of"===r||n)};Fr.prototype._decodeTag=function(e,r,n){let i=pl(e,'Failed to decode tag of "'+r+'"');if(e.isError(i))return i;let a=H1(e,i.primitive,'Failed to get length of "'+r+'"');if(e.isError(a))return a;if(!n&&i.tag!==r&&i.tagStr!==r&&i.tagStr+"of"!==r)return e.error('Failed to match tag: "'+r+'"');if(i.primitive||a!==null)return e.skip(a,'Failed to match body of: "'+r+'"');let d=e.save(),v=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(v)?v:(a=e.offset-d.offset,e.restore(d),e.skip(a,'Failed to match body of: "'+r+'"'))};Fr.prototype._skipUntilEnd=function(e,r){for(;;){let n=pl(e,r);if(e.isError(n))return n;let i=H1(e,n.primitive,r);if(e.isError(i))return i;let a;if(n.primitive||i!==null?a=e.skip(i):a=this._skipUntilEnd(e,r),e.isError(a))return a;if(n.tagStr==="end")break}};Fr.prototype._decodeList=function(e,r,n,i){let a=[];for(;!e.isEmpty();){let d=this._peekTag(e,"end");if(e.isError(d))return d;let v=n.decode(e,"der",i);if(e.isError(v)&&d)break;a.push(v)}return a};Fr.prototype._decodeStr=function(e,r){if(r==="bitstr"){let n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}else if(r==="bmpstr"){let n=e.raw();if(n.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");let i="";for(let a=0;a<n.length/2;a++)i+=String.fromCharCode(n.readUInt16BE(a*2));return i}else if(r==="numstr"){let n=e.raw().toString("ascii");return this._isNumstr(n)?n:e.error("Decoding of string type: numstr unsupported characters")}else{if(r==="octstr")return e.raw();if(r==="objDesc")return e.raw();if(r==="printstr"){let n=e.raw().toString("ascii");return this._isPrintstr(n)?n:e.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(r)?e.raw().toString():e.error("Decoding of string type: "+r+" unsupported")}};Fr.prototype._decodeObjid=function(e,r,n){let i,a=[],d=0,v=0;for(;!e.isEmpty();)v=e.readUInt8(),d<<=7,d|=v&127,v&128||(a.push(d),d=0);v&128&&a.push(d);let y=a[0]/40|0,x=a[0]%40;if(n?i=a:i=[y,x].concat(a.slice(1)),r){let B=r[i.join(" ")];B===void 0&&(B=r[i.join(".")]),B!==void 0&&(i=B)}return i};Fr.prototype._decodeTime=function(e,r){let n=e.raw().toString(),i,a,d,v,y,x;if(r==="gentime")i=n.slice(0,4)|0,a=n.slice(4,6)|0,d=n.slice(6,8)|0,v=n.slice(8,10)|0,y=n.slice(10,12)|0,x=n.slice(12,14)|0;else if(r==="utctime")i=n.slice(0,2)|0,a=n.slice(2,4)|0,d=n.slice(4,6)|0,v=n.slice(6,8)|0,y=n.slice(8,10)|0,x=n.slice(10,12)|0,i<70?i=2e3+i:i=1900+i;else return e.error("Decoding "+r+" time is not supported yet");return Date.UTC(i,a-1,d,v,y,x,0)};Fr.prototype._decodeNull=function(){return null};Fr.prototype._decodeBool=function(e){let r=e.readUInt8();return e.isError(r)?r:r!==0};Fr.prototype._decodeInt=function(e,r){let n=e.raw(),i=new U6(n);return r&&(i=r[i.toString(10)]||i),i};Fr.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getDecoder("der").tree};function pl(t,e){let r=t.readUInt8(e);if(t.isError(r))return r;let n=k1.tagClass[r>>6],i=(r&32)===0;if((r&31)===31){let d=r;for(r=0;(d&128)===128;){if(d=t.readUInt8(e),t.isError(d))return d;r<<=7,r|=d&127}}else r&=31;let a=k1.tag[r];return{cls:n,primitive:i,tag:r,tagStr:a}}function H1(t,e,r){let n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&n===128)return null;if(!(n&128))return n;let i=n&127;if(i>4)return t.error("length octect is too long");n=0;for(let a=0;a<i;a++){n<<=8;let d=t.readUInt8(r);if(t.isError(d))return d;n|=d}return n}});var X1=V((xC,G1)=>{"use strict";var yC=A(S()),H6=tr(),q6=jf().Buffer,gl=bl();function vl(t){gl.call(this,t),this.enc="pem"}H6(vl,gl);G1.exports=vl;vl.prototype.decode=function(e,r){let n=e.toString().split(/[\r\n]+/g),i=r.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,d=-1,v=-1;for(let B=0;B<n.length;B++){let C=n[B].match(a);if(C!==null&&C[2]===i)if(d===-1){if(C[1]!=="BEGIN")break;d=B}else{if(C[1]!=="END")break;v=B;break}}if(d===-1||v===-1)throw new Error("PEM section not found for: "+i);let y=n.slice(d+1,v).join("");y.replace(/[^a-z0-9+/=]+/gi,"");let x=q6.from(y,"base64");return gl.prototype.decode.call(this,x,r)}});var ml=V(K1=>{"use strict";var AC=A(S()),z1=K1;z1.der=bl();z1.pem=X1()});var V1=V(Z1=>{"use strict";var SC=A(S()),G6=hl(),X6=ml(),z6=tr(),K6=Z1;K6.define=function(e,r){return new uo(e,r)};function uo(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}uo.prototype._createNamed=function(e){let r=this.name;function n(i){this._initNamed(i,r)}return z6(n,e),n.prototype._initNamed=function(a,d){e.call(this,a,d)},new n(this)};uo.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(X6[e])),this.decoders[e]};uo.prototype.decode=function(e,r,n){return this._getDecoder(r).decode(e,n)};uo.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(G6[e])),this.encoders[e]};uo.prototype.encode=function(e,r,n){return this._getEncoder(r).encode(e,n)}});var Q1=V(j1=>{"use strict";var EC=A(S()),e0=j1;e0.Reporter=Qf().Reporter;e0.DecoderBuffer=co().DecoderBuffer;e0.EncoderBuffer=co().EncoderBuffer;e0.Node=Yf()});var $1=V(Y1=>{"use strict";var BC=A(S()),W1=Y1;W1._reverse=function(e){let r={};return Object.keys(e).forEach(function(n){(n|0)==n&&(n=n|0);let i=e[n];r[i]=n}),r};W1.der=$f()});var tb=V(eb=>{"use strict";var PC=A(S()),lo=eb;lo.bignum=il();lo.define=V1().define;lo.base=Q1();lo.constants=$1();lo.decoders=ml();lo.encoders=hl()});var cb=V(Dn=>{"use strict";var RC=A(S()),Z6=Dn&&Dn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),V6=Dn&&Dn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),j6=Dn&&Dn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Z6(e,t,r);return V6(e,t),e};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.pemTojwk=a4;Dn.jwkTopem=o4;var hi=j6(tb());function Q6(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function xl(t){return Q6(Buffer.from(t,"hex").toString("base64"))}var rb=hi.define("RSAPublicKey",function(){this.seq().obj(this.key("n").int(),this.key("e").int())}),nb=hi.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())}),W6=hi.define("PublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(nb),this.key("publicKey").bitstr())}),ib=hi.define("Version",function(){this.int({0:"two-prime",1:"multi"})}),Y6=hi.define("OtherPrimeInfos",function(){this.seq().obj(this.key("ri").int(),this.key("di").int(),this.key("ti").int())}),ab=hi.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").use(ib),this.key("n").int(),this.key("e").int(),this.key("d").int(),this.key("p").int(),this.key("q").int(),this.key("dp").int(),this.key("dq").int(),this.key("qi").int(),this.key("other").optional().use(Y6))}),$6=hi.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").use(ib),this.key("algorithm").use(nb),this.key("privateKey").bitstr())});function ob(t,e){return e=e||{},Object.keys(e).forEach(function(r){t[r]=e[r]}),t}function yl(t){return t.length%2===1?"0"+t:t}function sb(t,e){var r=rb.decode(t,"der"),n=yl(r.e.toString(16)),i={kty:"RSA",n:Ii(r.n),e:xl(n)};return ob(i,e)}function fb(t,e){var r=ab.decode(t,"der"),n=yl(r.e.toString(16)),i={kty:"RSA",n:Ii(r.n),e:xl(n),d:Ii(r.d),p:Ii(r.p),q:Ii(r.q),dp:Ii(r.dp),dq:Ii(r.dq),qi:Ii(r.qi)};return ob(i,e)}function e4(t,e){var r=W6.decode(t,"der");return sb(r.publicKey.data,e)}function t4(t,e){var r=$6.decode(t,"der");return fb(r.privateKey.data,e)}function r4(t){var e=/^-----BEGIN (RSA )?(PUBLIC|PRIVATE) KEY-----$/.exec(t);if(!e)return null;var r=!!e[1],n=e[2]==="PRIVATE";return n?r?fb:t4:r?sb:e4}function n4(t){return{n:Oi(t.n),e:Oi(t.e),d:t.d&&Oi(t.d),p:t.p&&Oi(t.p),q:t.q&&Oi(t.q),dp:t.dp&&Oi(t.dp),dq:t.dq&&Oi(t.dq),qi:t.qi&&Oi(t.qi)}}function Ii(t){return xl(yl(t.toString(16)))}function i4(t){return new hi.bignum(Buffer.from(t,"base64"))}function Oi(t){return/^[0-9]+$/.test(t)?new hi.bignum(t,10):i4(t)}function a4(t,e){var r=t.toString().split(/(\r\n|\r|\n)+/g);r=r.filter(function(i){return i.trim().length!==0});var n=r4(r[0]);return r=r.slice(1,-1).join(""),n(Buffer.from(r.replace(/[^\w\d\+\/=]+/g,""),"base64"),e)}function o4(t){var e=n4(t),r=!!e.d,n=r?"PRIVATE":"PUBLIC",i="-----BEGIN RSA "+n+` KEY-----
3
+ `,"N.B. ArweaveJS is only guaranteed to verify txs created using ArweaveJS.")}return C}async jwkToCryptoKey(e){return this.driver.importKey("jwk",e,{name:"RSA-PSS",hash:{name:"SHA-256"}},!1,["sign"])}async jwkToPublicCryptoKey(e){return this.driver.importKey("jwk",e,{name:"RSA-PSS",hash:{name:"SHA-256"}},!1,["verify"])}detectWebCrypto(){if(typeof crypto>"u")return!1;let e=crypto?.subtle;return e===void 0?!1:["generateKey","importKey","exportKey","digest","sign"].every(n=>typeof e[n]=="function")}async encrypt(e,r,n){let i=await this.driver.importKey("raw",typeof r=="string"?Fi.stringToBuffer(r):r,{name:"PBKDF2",length:32},!1,["deriveKey"]),a=await this.driver.deriveKey({name:"PBKDF2",salt:n?Fi.stringToBuffer(n):Fi.stringToBuffer("salt"),iterations:1e5,hash:"SHA-256"},i,{name:"AES-CBC",length:256},!1,["encrypt","decrypt"]),d=new Uint8Array(16);crypto.getRandomValues(d);let v=await this.driver.encrypt({name:"AES-CBC",iv:d},a,e);return Fi.concatBuffers([d,v])}async decrypt(e,r,n){let i=await this.driver.importKey("raw",typeof r=="string"?Fi.stringToBuffer(r):r,{name:"PBKDF2",length:32},!1,["deriveKey"]),a=await this.driver.deriveKey({name:"PBKDF2",salt:n?Fi.stringToBuffer(n):Fi.stringToBuffer("salt"),iterations:1e5,hash:"SHA-256"},i,{name:"AES-CBC",length:256},!1,["encrypt","decrypt"]),d=e.slice(0,16),v=await this.driver.decrypt({name:"AES-CBC",iv:d},a,e.slice(16));return Fi.concatBuffers([v])}};Eu.default=Tu});var zp=V((Xp,Nf)=>{var sB=A(M());(function(t){"use strict";var e,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,i=Math.floor,a="[BigNumber Error] ",d=a+"Number primitive has more than 15 significant digits: ",v=1e14,y=14,x=9007199254740991,B=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],C=1e7,D=1e9;function F(ne){var $,fe,te,Y=w.prototype={constructor:w,toString:null,valueOf:null},T=new w(1),s=20,u=4,l=-7,f=21,c=-1e7,g=1e7,m=!1,h=1,o=0,p={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},E="0123456789abcdefghijklmnopqrstuvwxyz",b=!0;function w(_,R){var L,O,q,I,J,z,k,H,Q=this;if(!(Q instanceof w))return new w(_,R);if(R==null){if(_&&_._isBigNumber===!0){Q.s=_.s,!_.c||_.e>g?Q.c=Q.e=null:_.e<c?Q.c=[Q.e=0]:(Q.e=_.e,Q.c=_.c.slice());return}if((z=typeof _=="number")&&_*0==0){if(Q.s=1/_<0?(_=-_,-1):1,_===~~_){for(I=0,J=_;J>=10;J/=10,I++);I>g?Q.c=Q.e=null:(Q.e=I,Q.c=[_]);return}H=String(_)}else{if(!r.test(H=String(_)))return te(Q,H,z);Q.s=H.charCodeAt(0)==45?(H=H.slice(1),-1):1}(I=H.indexOf("."))>-1&&(H=H.replace(".","")),(J=H.search(/e/i))>0?(I<0&&(I=J),I+=+H.slice(J+1),H=H.substring(0,J)):I<0&&(I=H.length)}else{if(K(R,2,E.length,"Base"),R==10&&b)return Q=new w(_),G(Q,s+Q.e+1,u);if(H=String(_),z=typeof _=="number"){if(_*0!=0)return te(Q,H,z,R);if(Q.s=1/_<0?(H=H.slice(1),-1):1,w.DEBUG&&H.replace(/^0\.0*|\./,"").length>15)throw Error(d+_)}else Q.s=H.charCodeAt(0)===45?(H=H.slice(1),-1):1;for(L=E.slice(0,R),I=J=0,k=H.length;J<k;J++)if(L.indexOf(O=H.charAt(J))<0){if(O=="."){if(J>I){I=k;continue}}else if(!q&&(H==H.toUpperCase()&&(H=H.toLowerCase())||H==H.toLowerCase()&&(H=H.toUpperCase()))){q=!0,J=-1,I=0;continue}return te(Q,String(_),z,R)}z=!1,H=fe(H,R,10,Q.s),(I=H.indexOf("."))>-1?H=H.replace(".",""):I=H.length}for(J=0;H.charCodeAt(J)===48;J++);for(k=H.length;H.charCodeAt(--k)===48;);if(H=H.slice(J,++k)){if(k-=J,z&&w.DEBUG&&k>15&&(_>x||_!==i(_)))throw Error(d+Q.s*_);if((I=I-J-1)>g)Q.c=Q.e=null;else if(I<c)Q.c=[Q.e=0];else{if(Q.e=I,Q.c=[],J=(I+1)%y,I<0&&(J+=y),J<k){for(J&&Q.c.push(+H.slice(0,J)),k-=y;J<k;)Q.c.push(+H.slice(J,J+=y));J=y-(H=H.slice(J)).length}else J-=k;for(;J--;H+="0");Q.c.push(+H)}}else Q.c=[Q.e=0]}w.clone=F,w.ROUND_UP=0,w.ROUND_DOWN=1,w.ROUND_CEIL=2,w.ROUND_FLOOR=3,w.ROUND_HALF_UP=4,w.ROUND_HALF_DOWN=5,w.ROUND_HALF_EVEN=6,w.ROUND_HALF_CEIL=7,w.ROUND_HALF_FLOOR=8,w.EUCLID=9,w.config=w.set=function(_){var R,L;if(_!=null)if(typeof _=="object"){if(_.hasOwnProperty(R="DECIMAL_PLACES")&&(L=_[R],K(L,0,D,R),s=L),_.hasOwnProperty(R="ROUNDING_MODE")&&(L=_[R],K(L,0,8,R),u=L),_.hasOwnProperty(R="EXPONENTIAL_AT")&&(L=_[R],L&&L.pop?(K(L[0],-D,0,R),K(L[1],0,D,R),l=L[0],f=L[1]):(K(L,-D,D,R),l=-(f=L<0?-L:L))),_.hasOwnProperty(R="RANGE"))if(L=_[R],L&&L.pop)K(L[0],-D,-1,R),K(L[1],1,D,R),c=L[0],g=L[1];else if(K(L,-D,D,R),L)c=-(g=L<0?-L:L);else throw Error(a+R+" cannot be zero: "+L);if(_.hasOwnProperty(R="CRYPTO"))if(L=_[R],L===!!L)if(L)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))m=L;else throw m=!L,Error(a+"crypto unavailable");else m=L;else throw Error(a+R+" not true or false: "+L);if(_.hasOwnProperty(R="MODULO_MODE")&&(L=_[R],K(L,0,9,R),h=L),_.hasOwnProperty(R="POW_PRECISION")&&(L=_[R],K(L,0,D,R),o=L),_.hasOwnProperty(R="FORMAT"))if(L=_[R],typeof L=="object")p=L;else throw Error(a+R+" not an object: "+L);if(_.hasOwnProperty(R="ALPHABET"))if(L=_[R],typeof L=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(L))b=L.slice(0,10)=="0123456789",E=L;else throw Error(a+R+" invalid: "+L)}else throw Error(a+"Object expected: "+_);return{DECIMAL_PLACES:s,ROUNDING_MODE:u,EXPONENTIAL_AT:[l,f],RANGE:[c,g],CRYPTO:m,MODULO_MODE:h,POW_PRECISION:o,FORMAT:p,ALPHABET:E}},w.isBigNumber=function(_){if(!_||_._isBigNumber!==!0)return!1;if(!w.DEBUG)return!0;var R,L,O=_.c,q=_.e,I=_.s;e:if({}.toString.call(O)=="[object Array]"){if((I===1||I===-1)&&q>=-D&&q<=D&&q===i(q)){if(O[0]===0){if(q===0&&O.length===1)return!0;break e}if(R=(q+1)%y,R<1&&(R+=y),String(O[0]).length==R){for(R=0;R<O.length;R++)if(L=O[R],L<0||L>=v||L!==i(L))break e;if(L!==0)return!0}}}else if(O===null&&q===null&&(I===null||I===1||I===-1))return!0;throw Error(a+"Invalid BigNumber: "+_)},w.maximum=w.max=function(){return S(arguments,-1)},w.minimum=w.min=function(){return S(arguments,1)},w.random=function(){var _=9007199254740992,R=Math.random()*_&2097151?function(){return i(Math.random()*_)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(L){var O,q,I,J,z,k=0,H=[],Q=new w(T);if(L==null?L=s:K(L,0,D),J=n(L/y),m)if(crypto.getRandomValues){for(O=crypto.getRandomValues(new Uint32Array(J*=2));k<J;)z=O[k]*131072+(O[k+1]>>>11),z>=9e15?(q=crypto.getRandomValues(new Uint32Array(2)),O[k]=q[0],O[k+1]=q[1]):(H.push(z%1e14),k+=2);k=J/2}else if(crypto.randomBytes){for(O=crypto.randomBytes(J*=7);k<J;)z=(O[k]&31)*281474976710656+O[k+1]*1099511627776+O[k+2]*4294967296+O[k+3]*16777216+(O[k+4]<<16)+(O[k+5]<<8)+O[k+6],z>=9e15?crypto.randomBytes(7).copy(O,k):(H.push(z%1e14),k+=7);k=J/7}else throw m=!1,Error(a+"crypto unavailable");if(!m)for(;k<J;)z=R(),z<9e15&&(H[k++]=z%1e14);for(J=H[--k],L%=y,J&&L&&(z=B[y-L],H[k]=i(J/z)*z);H[k]===0;H.pop(),k--);if(k<0)H=[I=0];else{for(I=-1;H[0]===0;H.splice(0,1),I-=y);for(k=1,z=H[0];z>=10;z/=10,k++);k<y&&(I-=y-k)}return Q.e=I,Q.c=H,Q}}(),w.sum=function(){for(var _=1,R=arguments,L=new w(R[0]);_<R.length;)L=L.plus(R[_++]);return L},fe=function(){var _="0123456789";function R(L,O,q,I){for(var J,z=[0],k,H=0,Q=L.length;H<Q;){for(k=z.length;k--;z[k]*=O);for(z[0]+=I.indexOf(L.charAt(H++)),J=0;J<z.length;J++)z[J]>q-1&&(z[J+1]==null&&(z[J+1]=0),z[J+1]+=z[J]/q|0,z[J]%=q)}return z.reverse()}return function(L,O,q,I,J){var z,k,H,Q,j,re,De,se,le=L.indexOf("."),Ue=s,oe=u;for(le>=0&&(Q=o,o=0,L=L.replace(".",""),se=new w(O),re=se.pow(L.length-le),o=Q,se.c=R(ae(X(re.c),re.e,"0"),10,q,_),se.e=se.c.length),De=R(L,O,q,J?(z=E,_):(z=_,E)),H=Q=De.length;De[--Q]==0;De.pop());if(!De[0])return z.charAt(0);if(le<0?--H:(re.c=De,re.e=H,re.s=I,re=$(re,se,Ue,oe,q),De=re.c,j=re.r,H=re.e),k=H+Ue+1,le=De[k],Q=q/2,j=j||k<0||De[k+1]!=null,j=oe<4?(le!=null||j)&&(oe==0||oe==(re.s<0?3:2)):le>Q||le==Q&&(oe==4||j||oe==6&&De[k-1]&1||oe==(re.s<0?8:7)),k<1||!De[0])L=j?ae(z.charAt(1),-Ue,z.charAt(0)):z.charAt(0);else{if(De.length=k,j)for(--q;++De[--k]>q;)De[k]=0,k||(++H,De=[1].concat(De));for(Q=De.length;!De[--Q];);for(le=0,L="";le<=Q;L+=z.charAt(De[le++]));L=ae(L,H,z.charAt(0))}return L}}(),$=function(){function _(O,q,I){var J,z,k,H,Q=0,j=O.length,re=q%C,De=q/C|0;for(O=O.slice();j--;)k=O[j]%C,H=O[j]/C|0,J=De*k+H*re,z=re*k+J%C*C+Q,Q=(z/I|0)+(J/C|0)+De*H,O[j]=z%I;return Q&&(O=[Q].concat(O)),O}function R(O,q,I,J){var z,k;if(I!=J)k=I>J?1:-1;else for(z=k=0;z<I;z++)if(O[z]!=q[z]){k=O[z]>q[z]?1:-1;break}return k}function L(O,q,I,J){for(var z=0;I--;)O[I]-=z,z=O[I]<q[I]?1:0,O[I]=z*J+O[I]-q[I];for(;!O[0]&&O.length>1;O.splice(0,1));}return function(O,q,I,J,z){var k,H,Q,j,re,De,se,le,Ue,oe,ce,Xe,ge,ve,vt,pe,be,Ye=O.s==q.s?1:-1,de=O.c,ue=q.c;if(!de||!de[0]||!ue||!ue[0])return new w(!O.s||!q.s||(de?ue&&de[0]==ue[0]:!ue)?NaN:de&&de[0]==0||!ue?Ye*0:Ye/0);for(le=new w(Ye),Ue=le.c=[],H=O.e-q.e,Ye=I+H+1,z||(z=v,H=P(O.e/y)-P(q.e/y),Ye=Ye/y|0),Q=0;ue[Q]==(de[Q]||0);Q++);if(ue[Q]>(de[Q]||0)&&H--,Ye<0)Ue.push(1),j=!0;else{for(ve=de.length,pe=ue.length,Q=0,Ye+=2,re=i(z/(ue[0]+1)),re>1&&(ue=_(ue,re,z),de=_(de,re,z),pe=ue.length,ve=de.length),ge=pe,oe=de.slice(0,pe),ce=oe.length;ce<pe;oe[ce++]=0);be=ue.slice(),be=[0].concat(be),vt=ue[0],ue[1]>=z/2&&vt++;do{if(re=0,k=R(ue,oe,pe,ce),k<0){if(Xe=oe[0],pe!=ce&&(Xe=Xe*z+(oe[1]||0)),re=i(Xe/vt),re>1)for(re>=z&&(re=z-1),De=_(ue,re,z),se=De.length,ce=oe.length;R(De,oe,se,ce)==1;)re--,L(De,pe<se?be:ue,se,z),se=De.length,k=1;else re==0&&(k=re=1),De=ue.slice(),se=De.length;if(se<ce&&(De=[0].concat(De)),L(oe,De,ce,z),ce=oe.length,k==-1)for(;R(ue,oe,pe,ce)<1;)re++,L(oe,pe<ce?be:ue,ce,z),ce=oe.length}else k===0&&(re++,oe=[0]);Ue[Q++]=re,oe[0]?oe[ce++]=de[ge]||0:(oe=[de[ge]],ce=1)}while((ge++<ve||oe[0]!=null)&&Ye--);j=oe[0]!=null,Ue[0]||Ue.splice(0,1)}if(z==v){for(Q=1,Ye=Ue[0];Ye>=10;Ye/=10,Q++);G(le,I+(le.e=Q+H*y-1)+1,J,j)}else le.e=H,le.r=+j;return le}}();function U(_,R,L,O){var q,I,J,z,k;if(L==null?L=u:K(L,0,8),!_.c)return _.toString();if(q=_.c[0],J=_.e,R==null)k=X(_.c),k=O==1||O==2&&(J<=l||J>=f)?ee(k,J):ae(k,J,"0");else if(_=G(new w(_),R,L),I=_.e,k=X(_.c),z=k.length,O==1||O==2&&(R<=I||I<=l)){for(;z<R;k+="0",z++);k=ee(k,I)}else if(R-=J,k=ae(k,I,"0"),I+1>z){if(--R>0)for(k+=".";R--;k+="0");}else if(R+=I-z,R>0)for(I+1==z&&(k+=".");R--;k+="0");return _.s<0&&q?"-"+k:k}function S(_,R){for(var L,O,q=1,I=new w(_[0]);q<_.length;q++)O=new w(_[q]),(!O.s||(L=W(I,O))===R||L===0&&I.s===R)&&(I=O);return I}function N(_,R,L){for(var O=1,q=R.length;!R[--q];R.pop());for(q=R[0];q>=10;q/=10,O++);return(L=O+L*y-1)>g?_.c=_.e=null:L<c?_.c=[_.e=0]:(_.e=L,_.c=R),_}te=function(){var _=/^(-?)0([xbo])(?=\w[\w.]*$)/i,R=/^([^.]+)\.$/,L=/^\.([^.]+)$/,O=/^-?(Infinity|NaN)$/,q=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(I,J,z,k){var H,Q=z?J:J.replace(q,"");if(O.test(Q))I.s=isNaN(Q)?null:Q<0?-1:1;else{if(!z&&(Q=Q.replace(_,function(j,re,De){return H=(De=De.toLowerCase())=="x"?16:De=="b"?2:8,!k||k==H?re:j}),k&&(H=k,Q=Q.replace(R,"$1").replace(L,"0.$1")),J!=Q))return new w(Q,H);if(w.DEBUG)throw Error(a+"Not a"+(k?" base "+k:"")+" number: "+J);I.s=null}I.c=I.e=null}}();function G(_,R,L,O){var q,I,J,z,k,H,Q,j=_.c,re=B;if(j){e:{for(q=1,z=j[0];z>=10;z/=10,q++);if(I=R-q,I<0)I+=y,J=R,k=j[H=0],Q=i(k/re[q-J-1]%10);else if(H=n((I+1)/y),H>=j.length)if(O){for(;j.length<=H;j.push(0));k=Q=0,q=1,I%=y,J=I-y+1}else break e;else{for(k=z=j[H],q=1;z>=10;z/=10,q++);I%=y,J=I-y+q,Q=J<0?0:i(k/re[q-J-1]%10)}if(O=O||R<0||j[H+1]!=null||(J<0?k:k%re[q-J-1]),O=L<4?(Q||O)&&(L==0||L==(_.s<0?3:2)):Q>5||Q==5&&(L==4||O||L==6&&(I>0?J>0?k/re[q-J]:0:j[H-1])%10&1||L==(_.s<0?8:7)),R<1||!j[0])return j.length=0,O?(R-=_.e+1,j[0]=re[(y-R%y)%y],_.e=-R||0):j[0]=_.e=0,_;if(I==0?(j.length=H,z=1,H--):(j.length=H+1,z=re[y-I],j[H]=J>0?i(k/re[q-J]%re[J])*z:0),O)for(;;)if(H==0){for(I=1,J=j[0];J>=10;J/=10,I++);for(J=j[0]+=z,z=1;J>=10;J/=10,z++);I!=z&&(_.e++,j[0]==v&&(j[0]=1));break}else{if(j[H]+=z,j[H]!=v)break;j[H--]=0,z=1}for(I=j.length;j[--I]===0;j.pop());}_.e>g?_.c=_.e=null:_.e<c&&(_.c=[_.e=0])}return _}function Z(_){var R,L=_.e;return L===null?_.toString():(R=X(_.c),R=L<=l||L>=f?ee(R,L):ae(R,L,"0"),_.s<0?"-"+R:R)}return Y.absoluteValue=Y.abs=function(){var _=new w(this);return _.s<0&&(_.s=1),_},Y.comparedTo=function(_,R){return W(this,new w(_,R))},Y.decimalPlaces=Y.dp=function(_,R){var L,O,q,I=this;if(_!=null)return K(_,0,D),R==null?R=u:K(R,0,8),G(new w(I),_+I.e+1,R);if(!(L=I.c))return null;if(O=((q=L.length-1)-P(this.e/y))*y,q=L[q])for(;q%10==0;q/=10,O--);return O<0&&(O=0),O},Y.dividedBy=Y.div=function(_,R){return $(this,new w(_,R),s,u)},Y.dividedToIntegerBy=Y.idiv=function(_,R){return $(this,new w(_,R),0,1)},Y.exponentiatedBy=Y.pow=function(_,R){var L,O,q,I,J,z,k,H,Q,j=this;if(_=new w(_),_.c&&!_.isInteger())throw Error(a+"Exponent not an integer: "+Z(_));if(R!=null&&(R=new w(R)),z=_.e>14,!j.c||!j.c[0]||j.c[0]==1&&!j.e&&j.c.length==1||!_.c||!_.c[0])return Q=new w(Math.pow(+Z(j),z?_.s*(2-ie(_)):+Z(_))),R?Q.mod(R):Q;if(k=_.s<0,R){if(R.c?!R.c[0]:!R.s)return new w(NaN);O=!k&&j.isInteger()&&R.isInteger(),O&&(j=j.mod(R))}else{if(_.e>9&&(j.e>0||j.e<-1||(j.e==0?j.c[0]>1||z&&j.c[1]>=24e7:j.c[0]<8e13||z&&j.c[0]<=9999975e7)))return I=j.s<0&&ie(_)?-0:0,j.e>-1&&(I=1/I),new w(k?1/I:I);o&&(I=n(o/y+2))}for(z?(L=new w(.5),k&&(_.s=1),H=ie(_)):(q=Math.abs(+Z(_)),H=q%2),Q=new w(T);;){if(H){if(Q=Q.times(j),!Q.c)break;I?Q.c.length>I&&(Q.c.length=I):O&&(Q=Q.mod(R))}if(q){if(q=i(q/2),q===0)break;H=q%2}else if(_=_.times(L),G(_,_.e+1,1),_.e>14)H=ie(_);else{if(q=+Z(_),q===0)break;H=q%2}j=j.times(j),I?j.c&&j.c.length>I&&(j.c.length=I):O&&(j=j.mod(R))}return O?Q:(k&&(Q=T.div(Q)),R?Q.mod(R):I?G(Q,o,u,J):Q)},Y.integerValue=function(_){var R=new w(this);return _==null?_=u:K(_,0,8),G(R,R.e+1,_)},Y.isEqualTo=Y.eq=function(_,R){return W(this,new w(_,R))===0},Y.isFinite=function(){return!!this.c},Y.isGreaterThan=Y.gt=function(_,R){return W(this,new w(_,R))>0},Y.isGreaterThanOrEqualTo=Y.gte=function(_,R){return(R=W(this,new w(_,R)))===1||R===0},Y.isInteger=function(){return!!this.c&&P(this.e/y)>this.c.length-2},Y.isLessThan=Y.lt=function(_,R){return W(this,new w(_,R))<0},Y.isLessThanOrEqualTo=Y.lte=function(_,R){return(R=W(this,new w(_,R)))===-1||R===0},Y.isNaN=function(){return!this.s},Y.isNegative=function(){return this.s<0},Y.isPositive=function(){return this.s>0},Y.isZero=function(){return!!this.c&&this.c[0]==0},Y.minus=function(_,R){var L,O,q,I,J=this,z=J.s;if(_=new w(_,R),R=_.s,!z||!R)return new w(NaN);if(z!=R)return _.s=-R,J.plus(_);var k=J.e/y,H=_.e/y,Q=J.c,j=_.c;if(!k||!H){if(!Q||!j)return Q?(_.s=-R,_):new w(j?J:NaN);if(!Q[0]||!j[0])return j[0]?(_.s=-R,_):new w(Q[0]?J:u==3?-0:0)}if(k=P(k),H=P(H),Q=Q.slice(),z=k-H){for((I=z<0)?(z=-z,q=Q):(H=k,q=j),q.reverse(),R=z;R--;q.push(0));q.reverse()}else for(O=(I=(z=Q.length)<(R=j.length))?z:R,z=R=0;R<O;R++)if(Q[R]!=j[R]){I=Q[R]<j[R];break}if(I&&(q=Q,Q=j,j=q,_.s=-_.s),R=(O=j.length)-(L=Q.length),R>0)for(;R--;Q[L++]=0);for(R=v-1;O>z;){if(Q[--O]<j[O]){for(L=O;L&&!Q[--L];Q[L]=R);--Q[L],Q[O]+=v}Q[O]-=j[O]}for(;Q[0]==0;Q.splice(0,1),--H);return Q[0]?N(_,Q,H):(_.s=u==3?-1:1,_.c=[_.e=0],_)},Y.modulo=Y.mod=function(_,R){var L,O,q=this;return _=new w(_,R),!q.c||!_.s||_.c&&!_.c[0]?new w(NaN):!_.c||q.c&&!q.c[0]?new w(q):(h==9?(O=_.s,_.s=1,L=$(q,_,0,3),_.s=O,L.s*=O):L=$(q,_,0,h),_=q.minus(L.times(_)),!_.c[0]&&h==1&&(_.s=q.s),_)},Y.multipliedBy=Y.times=function(_,R){var L,O,q,I,J,z,k,H,Q,j,re,De,se,le,Ue,oe=this,ce=oe.c,Xe=(_=new w(_,R)).c;if(!ce||!Xe||!ce[0]||!Xe[0])return!oe.s||!_.s||ce&&!ce[0]&&!Xe||Xe&&!Xe[0]&&!ce?_.c=_.e=_.s=null:(_.s*=oe.s,!ce||!Xe?_.c=_.e=null:(_.c=[0],_.e=0)),_;for(O=P(oe.e/y)+P(_.e/y),_.s*=oe.s,k=ce.length,j=Xe.length,k<j&&(se=ce,ce=Xe,Xe=se,q=k,k=j,j=q),q=k+j,se=[];q--;se.push(0));for(le=v,Ue=C,q=j;--q>=0;){for(L=0,re=Xe[q]%Ue,De=Xe[q]/Ue|0,J=k,I=q+J;I>q;)H=ce[--J]%Ue,Q=ce[J]/Ue|0,z=De*H+Q*re,H=re*H+z%Ue*Ue+se[I]+L,L=(H/le|0)+(z/Ue|0)+De*Q,se[I--]=H%le;se[I]=L}return L?++O:se.splice(0,1),N(_,se,O)},Y.negated=function(){var _=new w(this);return _.s=-_.s||null,_},Y.plus=function(_,R){var L,O=this,q=O.s;if(_=new w(_,R),R=_.s,!q||!R)return new w(NaN);if(q!=R)return _.s=-R,O.minus(_);var I=O.e/y,J=_.e/y,z=O.c,k=_.c;if(!I||!J){if(!z||!k)return new w(q/0);if(!z[0]||!k[0])return k[0]?_:new w(z[0]?O:q*0)}if(I=P(I),J=P(J),z=z.slice(),q=I-J){for(q>0?(J=I,L=k):(q=-q,L=z),L.reverse();q--;L.push(0));L.reverse()}for(q=z.length,R=k.length,q-R<0&&(L=k,k=z,z=L,R=q),q=0;R;)q=(z[--R]=z[R]+k[R]+q)/v|0,z[R]=v===z[R]?0:z[R]%v;return q&&(z=[q].concat(z),++J),N(_,z,J)},Y.precision=Y.sd=function(_,R){var L,O,q,I=this;if(_!=null&&_!==!!_)return K(_,1,D),R==null?R=u:K(R,0,8),G(new w(I),_,R);if(!(L=I.c))return null;if(q=L.length-1,O=q*y+1,q=L[q]){for(;q%10==0;q/=10,O--);for(q=L[0];q>=10;q/=10,O++);}return _&&I.e+1>O&&(O=I.e+1),O},Y.shiftedBy=function(_){return K(_,-x,x),this.times("1e"+_)},Y.squareRoot=Y.sqrt=function(){var _,R,L,O,q,I=this,J=I.c,z=I.s,k=I.e,H=s+4,Q=new w("0.5");if(z!==1||!J||!J[0])return new w(!z||z<0&&(!J||J[0])?NaN:J?I:1/0);if(z=Math.sqrt(+Z(I)),z==0||z==1/0?(R=X(J),(R.length+k)%2==0&&(R+="0"),z=Math.sqrt(+R),k=P((k+1)/2)-(k<0||k%2),z==1/0?R="5e"+k:(R=z.toExponential(),R=R.slice(0,R.indexOf("e")+1)+k),L=new w(R)):L=new w(z+""),L.c[0]){for(k=L.e,z=k+H,z<3&&(z=0);;)if(q=L,L=Q.times(q.plus($(I,q,H,1))),X(q.c).slice(0,z)===(R=X(L.c)).slice(0,z))if(L.e<k&&--z,R=R.slice(z-3,z+1),R=="9999"||!O&&R=="4999"){if(!O&&(G(q,q.e+s+2,0),q.times(q).eq(I))){L=q;break}H+=4,z+=4,O=1}else{(!+R||!+R.slice(1)&&R.charAt(0)=="5")&&(G(L,L.e+s+2,1),_=!L.times(L).eq(I));break}}return G(L,L.e+s+1,u,_)},Y.toExponential=function(_,R){return _!=null&&(K(_,0,D),_++),U(this,_,R,1)},Y.toFixed=function(_,R){return _!=null&&(K(_,0,D),_=_+this.e+1),U(this,_,R)},Y.toFormat=function(_,R,L){var O,q=this;if(L==null)_!=null&&R&&typeof R=="object"?(L=R,R=null):_&&typeof _=="object"?(L=_,_=R=null):L=p;else if(typeof L!="object")throw Error(a+"Argument not an object: "+L);if(O=q.toFixed(_,R),q.c){var I,J=O.split("."),z=+L.groupSize,k=+L.secondaryGroupSize,H=L.groupSeparator||"",Q=J[0],j=J[1],re=q.s<0,De=re?Q.slice(1):Q,se=De.length;if(k&&(I=z,z=k,k=I,se-=I),z>0&&se>0){for(I=se%z||z,Q=De.substr(0,I);I<se;I+=z)Q+=H+De.substr(I,z);k>0&&(Q+=H+De.slice(I)),re&&(Q="-"+Q)}O=j?Q+(L.decimalSeparator||"")+((k=+L.fractionGroupSize)?j.replace(new RegExp("\\d{"+k+"}\\B","g"),"$&"+(L.fractionGroupSeparator||"")):j):Q}return(L.prefix||"")+O+(L.suffix||"")},Y.toFraction=function(_){var R,L,O,q,I,J,z,k,H,Q,j,re,De=this,se=De.c;if(_!=null&&(z=new w(_),!z.isInteger()&&(z.c||z.s!==1)||z.lt(T)))throw Error(a+"Argument "+(z.isInteger()?"out of range: ":"not an integer: ")+Z(z));if(!se)return new w(De);for(R=new w(T),H=L=new w(T),O=k=new w(T),re=X(se),I=R.e=re.length-De.e-1,R.c[0]=B[(J=I%y)<0?y+J:J],_=!_||z.comparedTo(R)>0?I>0?R:H:z,J=g,g=1/0,z=new w(re),k.c[0]=0;Q=$(z,R,0,1),q=L.plus(Q.times(O)),q.comparedTo(_)!=1;)L=O,O=q,H=k.plus(Q.times(q=H)),k=q,R=z.minus(Q.times(q=R)),z=q;return q=$(_.minus(L),O,0,1),k=k.plus(q.times(H)),L=L.plus(q.times(O)),k.s=H.s=De.s,I=I*2,j=$(H,O,I,u).minus(De).abs().comparedTo($(k,L,I,u).minus(De).abs())<1?[H,O]:[k,L],g=J,j},Y.toNumber=function(){return+Z(this)},Y.toPrecision=function(_,R){return _!=null&&K(_,1,D),U(this,_,R,2)},Y.toString=function(_){var R,L=this,O=L.s,q=L.e;return q===null?O?(R="Infinity",O<0&&(R="-"+R)):R="NaN":(_==null?R=q<=l||q>=f?ee(X(L.c),q):ae(X(L.c),q,"0"):_===10&&b?(L=G(new w(L),s+q+1,u),R=ae(X(L.c),L.e,"0")):(K(_,2,E.length,"Base"),R=fe(ae(X(L.c),q,"0"),10,_,O,!0)),O<0&&L.c[0]&&(R="-"+R)),R},Y.valueOf=Y.toJSON=function(){return Z(this)},Y._isBigNumber=!0,ne!=null&&w.set(ne),w}function P(ne){var $=ne|0;return ne>0||ne===$?$:$-1}function X(ne){for(var $,fe,te=1,Y=ne.length,T=ne[0]+"";te<Y;){for($=ne[te++]+"",fe=y-$.length;fe--;$="0"+$);T+=$}for(Y=T.length;T.charCodeAt(--Y)===48;);return T.slice(0,Y+1||1)}function W(ne,$){var fe,te,Y=ne.c,T=$.c,s=ne.s,u=$.s,l=ne.e,f=$.e;if(!s||!u)return null;if(fe=Y&&!Y[0],te=T&&!T[0],fe||te)return fe?te?0:-u:s;if(s!=u)return s;if(fe=s<0,te=l==f,!Y||!T)return te?0:!Y^fe?1:-1;if(!te)return l>f^fe?1:-1;for(u=(l=Y.length)<(f=T.length)?l:f,s=0;s<u;s++)if(Y[s]!=T[s])return Y[s]>T[s]^fe?1:-1;return l==f?0:l>f^fe?1:-1}function K(ne,$,fe,te){if(ne<$||ne>fe||ne!==i(ne))throw Error(a+(te||"Argument")+(typeof ne=="number"?ne<$||ne>fe?" out of range: ":" not an integer: ":" not a primitive number: ")+String(ne))}function ie(ne){var $=ne.c.length-1;return P(ne.e/y)==$&&ne.c[$]%2!=0}function ee(ne,$){return(ne.length>1?ne.charAt(0)+"."+ne.slice(1):ne)+($<0?"e":"e+")+$}function ae(ne,$,fe){var te,Y;if($<0){for(Y=fe+".";++$;Y+=fe);ne=Y+ne}else if(te=ne.length,++$>te){for(Y=fe,$-=te;--$;Y+=fe);ne+=Y}else $<te&&(ne=ne.slice(0,$)+"."+ne.slice($));return ne}e=F(),e.default=e.BigNumber=e,typeof define=="function"&&define.amd?define(function(){return e}):typeof Nf<"u"&&Nf.exports?Nf.exports=e:(t||(t=typeof self<"u"&&self?self:window),t.BigNumber=e)})(Xp)});var Kp=V(Cu=>{"use strict";var cB=A(M());Object.defineProperty(Cu,"__esModule",{value:!0});var W8=zp(),Bu=class{BigNum;constructor(){this.BigNum=(e,r)=>{let n=W8.BigNumber.clone({DECIMAL_PLACES:r});return new n(e)}}winstonToAr(e,{formatted:r=!1,decimals:n=12,trim:i=!0}={}){let a=this.stringToBigNum(e,n).shiftedBy(-12);return r?a.toFormat(n):a.toFixed(n)}arToWinston(e,{formatted:r=!1}={}){let n=this.stringToBigNum(e).shiftedBy(12);return r?n.toFormat():n.toFixed(0)}compare(e,r){let n=this.stringToBigNum(e),i=this.stringToBigNum(r);return n.comparedTo(i)}isEqual(e,r){return this.compare(e,r)===0}isLessThan(e,r){let n=this.stringToBigNum(e),i=this.stringToBigNum(r);return n.isLessThan(i)}isGreaterThan(e,r){let n=this.stringToBigNum(e),i=this.stringToBigNum(r);return n.isGreaterThan(i)}add(e,r){let n=this.stringToBigNum(e),i=this.stringToBigNum(r);return n.plus(r).toFixed(0)}sub(e,r){let n=this.stringToBigNum(e),i=this.stringToBigNum(r);return n.minus(r).toFixed(0)}stringToBigNum(e,r=12){return this.BigNum(e,r)}};Cu.default=Bu});var Zp=V(Lu=>{"use strict";var lB=A(M());Object.defineProperty(Lu,"__esModule",{value:!0});var Pu=class{METHOD_GET="GET";METHOD_POST="POST";config;constructor(e){this.applyConfig(e)}applyConfig(e){this.config=this.mergeDefaults(e)}getConfig(){return this.config}mergeDefaults(e){let r=e.protocol||"http",n=e.port||(r==="https"?443:80);return{host:e.host||"127.0.0.1",protocol:r,port:n,timeout:e.timeout||2e4,logging:e.logging||!1,logger:e.logger||console.log,network:e.network}}async get(e,r){return await this.request(e,{...r,method:this.METHOD_GET})}async post(e,r,n){let i=new Headers(n?.headers||{});return i.get("content-type")?.includes("application/json")||i.append("content-type","application/json"),i.append("accept","application/json, text/plain, */*"),await this.request(e,{...n,method:this.METHOD_POST,body:typeof r!="string"?JSON.stringify(r):r,headers:i})}async request(e,r){let n=new Headers(r?.headers||{}),i=`${this.config.protocol}://${this.config.host}:${this.config.port}`,a=r?.responseType;delete r?.responseType,e.startsWith("/")&&(e=e.slice(1)),this.config.network&&n.append("x-network",this.config.network),this.config.logging&&this.config.logger(`Requesting: ${i}/${e}`);let d=await fetch(`${i}/${e}`,{...r||{},headers:n});this.config.logging&&this.config.logger(`Response: ${d.url} - ${d.status}`);let y=d.headers.get("content-type")?.match(/charset=([^()<>@,;:\"/[\]?.=\s]*)/i)?.[1],x=d,B=async()=>{if(y)try{x.data=new TextDecoder(y).decode(await d.arrayBuffer())}catch{x.data=await d.text()}else x.data=await d.text()};if(a==="arraybuffer")x.data=await d.arrayBuffer();else if(a==="text")await B();else if(a==="webstream")x.data=Y8(d.body);else try{let C=await d.clone().json();typeof C!="object"?await B():x.data=await d.json(),C=null}catch{await B()}return x}};Lu.default=Pu;var Y8=t=>{let e=t;return typeof e[Symbol.asyncIterator]>"u"&&(e[Symbol.asyncIterator]=$8(t)),e},$8=function(t){return async function*(){let r=t.getReader();try{for(;;){let{done:n,value:i}=await r.read();if(n)return;yield i}}finally{r.releaseLock()}}}});var Vp=V(Fu=>{"use strict";var hB=A(M());Object.defineProperty(Fu,"__esModule",{value:!0});var Ru=class{api;constructor(e){this.api=e}getInfo(){return this.api.get("info").then(e=>e.data)}getPeers(){return this.api.get("peers").then(e=>e.data)}};Fu.default=Ru});var ds=V(kf=>{"use strict";var bB=A(M());Object.defineProperty(kf,"__esModule",{value:!0});kf.getError=e6;var Du=class extends Error{type;response;constructor(e,r={}){r.message?super(r.message):super(),this.type=e,this.response=r.response}getType(){return this.type}};kf.default=Du;function e6(t){let e=t.data;if(typeof t.data=="string")try{e=JSON.parse(t.data)}catch{}if(t.data instanceof ArrayBuffer||t.data instanceof Uint8Array)try{e=JSON.parse(e.toString())}catch{}return e?e.error||e:t.statusText||"unknown"}});var Uu=V(ft=>{"use strict";var vB=A(M());Object.defineProperty(ft,"__esModule",{value:!0});ft.arrayCompare=ft.MIN_CHUNK_SIZE=ft.MAX_CHUNK_SIZE=void 0;ft.chunkData=Iu;ft.generateLeaves=Nu;ft.computeRootHash=t6;ft.generateTree=Qp;ft.generateTransactionChunks=r6;ft.buildLayers=Uf;ft.generateProofs=Wp;ft.arrayFlatten=ku;ft.intToBuffer=bs;ft.bufferToInt=Ju;ft.validatePath=hs;ft.debug=Yp;var Jf=gs(),jp=gn();ft.MAX_CHUNK_SIZE=256*1024;ft.MIN_CHUNK_SIZE=32*1024;var ps=32,ro=32;async function Iu(t){let e=[],r=t,n=0;for(;r.byteLength>=ft.MAX_CHUNK_SIZE;){let i=ft.MAX_CHUNK_SIZE,a=r.byteLength-ft.MAX_CHUNK_SIZE;a>0&&a<ft.MIN_CHUNK_SIZE&&(i=Math.ceil(r.byteLength/2));let d=r.slice(0,i),v=await Jf.default.crypto.hash(d);n+=d.byteLength,e.push({dataHash:v,minByteRange:n-d.byteLength,maxByteRange:n}),r=r.slice(i)}return e.push({dataHash:await Jf.default.crypto.hash(r),minByteRange:n,maxByteRange:n+r.byteLength}),e}async function Nu(t){return Promise.all(t.map(async({dataHash:e,minByteRange:r,maxByteRange:n})=>({type:"leaf",id:await Nt(await Promise.all([Nt(e),Nt(bs(n))])),dataHash:e,minByteRange:r,maxByteRange:n})))}async function t6(t){return(await Qp(t)).id}async function Qp(t){return await Uf(await Nu(await Iu(t)))}async function r6(t){let e=await Iu(t),r=await Nu(e),n=await Uf(r),i=await Wp(n),a=e.slice(-1)[0];return a.maxByteRange-a.minByteRange===0&&(e.splice(e.length-1,1),i.splice(i.length-1,1)),{data_root:n.id,chunks:e,proofs:i}}async function Uf(t,e=0){if(t.length<2)return t[0];let r=[];for(let n=0;n<t.length;n+=2)r.push(await n6(t[n],t[n+1]));return Uf(r,e+1)}function Wp(t){let e=Ou(t);return Array.isArray(e)?ku(e):[e]}function Ou(t,e=new Uint8Array,r=0){if(t.type=="leaf")return{offset:t.maxByteRange-1,proof:(0,jp.concatBuffers)([e,t.dataHash,bs(t.maxByteRange)])};if(t.type=="branch"){let n=(0,jp.concatBuffers)([e,t.leftChild.id,t.rightChild.id,bs(t.byteRange)]);return[Ou(t.leftChild,n,r+1),Ou(t.rightChild,n,r+1)]}throw new Error("Unexpected node type")}function ku(t){let e=[];return t.forEach(r=>{Array.isArray(r)?e.push(...ku(r)):e.push(r)}),e}async function n6(t,e){return e?{type:"branch",id:await Nt([await Nt(t.id),await Nt(e.id),await Nt(bs(t.maxByteRange))]),byteRange:t.maxByteRange,maxByteRange:e.maxByteRange,leftChild:t,rightChild:e}:t}async function Nt(t){return Array.isArray(t)&&(t=Jf.default.utils.concatBuffers(t)),new Uint8Array(await Jf.default.crypto.hash(t))}function bs(t){let e=new Uint8Array(ps);for(var r=e.length-1;r>=0;r--){var n=t%256;e[r]=n,t=(t-n)/256}return e}function Ju(t){let e=0;for(var r=0;r<t.length;r++)e*=256,e+=t[r];return e}var i6=(t,e)=>t.every((r,n)=>e[n]===r);ft.arrayCompare=i6;async function hs(t,e,r,n,i){if(n<=0)return!1;if(e>=n)return hs(t,0,n-1,n,i);if(e<0)return hs(t,0,0,n,i);if(i.length==ro+ps){let C=i.slice(0,ro),D=i.slice(C.length,C.length+ps),F=await Nt([await Nt(C),await Nt(D)]);return(0,ft.arrayCompare)(t,F)?{offset:n-1,leftBound:r,rightBound:n,chunkSize:n-r}:!1}let a=i.slice(0,ro),d=i.slice(a.length,a.length+ro),v=i.slice(a.length+d.length,a.length+d.length+ps),y=Ju(v),x=i.slice(a.length+d.length+v.length),B=await Nt([await Nt(a),await Nt(d),await Nt(v)]);return(0,ft.arrayCompare)(t,B)?e<y?await hs(a,e,r,Math.min(n,y),x):await hs(d,e,Math.max(r,y),n,x):!1}async function Yp(t,e=""){if(t.byteLength<1)return e;let r=t.slice(0,ro),n=t.slice(r.length,r.length+ro),i=t.slice(r.length+n.length,r.length+n.length+ps),a=Ju(i),d=t.slice(r.length+n.length+i.length),v=await Nt([await Nt(r),await Nt(n),await Nt(i)]),y=`${e}
4
+ ${JSON.stringify(Buffer.from(r))},${JSON.stringify(Buffer.from(n))},${a} => ${JSON.stringify(v)}`;return Yp(d,y)}});var r1=V(Hf=>{"use strict";var xB=A(M());Object.defineProperty(Hf,"__esModule",{value:!0});Hf.TransactionUploader=void 0;var $p=vs(),a6=gn(),Hu=ds(),o6=Uu(),e1=1,s6=["invalid_json","chunk_too_big","data_path_too_big","offset_too_big","data_size_too_big","chunk_proof_ratio_not_attractive","invalid_proof"],t1=1e3*40,qu=class t{api;chunkIndex=0;txPosted=!1;transaction;lastRequestTimeEnd=0;totalErrors=0;data;lastResponseStatus=0;lastResponseError="";get isComplete(){return this.txPosted&&this.chunkIndex===this.transaction.chunks.chunks.length}get totalChunks(){return this.transaction.chunks.chunks.length}get uploadedChunks(){return this.chunkIndex}get pctComplete(){return Math.trunc(this.uploadedChunks/this.totalChunks*100)}constructor(e,r){if(this.api=e,!r.id)throw new Error("Transaction is not signed");if(!r.chunks)throw new Error("Transaction chunks not prepared");this.data=r.data,this.transaction=new $p.default(Object.assign({},r,{data:new Uint8Array(0)}))}async uploadChunk(e){if(this.isComplete)throw new Error("Upload is already complete");if(this.lastResponseError!==""?this.totalErrors++:this.totalErrors=0,this.totalErrors===100)throw new Error(`Unable to complete upload: ${this.lastResponseStatus}: ${this.lastResponseError}`);let r=this.lastResponseError===""?0:Math.max(this.lastRequestTimeEnd+t1-Date.now(),t1);if(r>0&&(r=r-r*Math.random()*.3,await new Promise(d=>setTimeout(d,r))),this.lastResponseError="",!this.txPosted){await this.postTransaction();return}e&&(this.chunkIndex=e);let n=this.transaction.getChunk(e||this.chunkIndex,this.data);if(!await(0,o6.validatePath)(this.transaction.chunks.data_root,parseInt(n.offset),0,parseInt(n.data_size),a6.b64UrlToBuffer(n.data_path)))throw new Error(`Unable to validate chunk ${this.chunkIndex}`);let a=await this.api.post("chunk",this.transaction.getChunk(this.chunkIndex,this.data)).catch(d=>(console.error(d.message),{status:-1,data:{error:d.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=a.status,this.lastResponseStatus==200)this.chunkIndex++;else if(this.lastResponseError=(0,Hu.getError)(a),s6.includes(this.lastResponseError))throw new Error(`Fatal error uploading chunk ${this.chunkIndex}: ${this.lastResponseError}`)}static async fromSerialized(e,r,n){if(!r||typeof r.chunkIndex!="number"||typeof r.transaction!="object")throw new Error("Serialized object does not match expected format.");var i=new $p.default(r.transaction);i.chunks||await i.prepareChunks(n);let a=new t(e,i);if(a.chunkIndex=r.chunkIndex,a.lastRequestTimeEnd=r.lastRequestTimeEnd,a.lastResponseError=r.lastResponseError,a.lastResponseStatus=r.lastResponseStatus,a.txPosted=r.txPosted,a.data=n,a.transaction.data_root!==r.transaction.data_root)throw new Error("Data mismatch: Uploader doesn't match provided data.");return a}static async fromTransactionId(e,r){let n=await e.get(`tx/${r}`);if(n.status!==200)throw new Error(`Tx ${r} not found: ${n.status}`);let i=n.data;return i.data=new Uint8Array(0),{txPosted:!0,chunkIndex:0,lastResponseError:"",lastRequestTimeEnd:0,lastResponseStatus:0,transaction:i}}toJSON(){return{chunkIndex:this.chunkIndex,transaction:this.transaction,lastRequestTimeEnd:this.lastRequestTimeEnd,lastResponseStatus:this.lastResponseStatus,lastResponseError:this.lastResponseError,txPosted:this.txPosted}}async postTransaction(){if(this.totalChunks<=e1){this.transaction.data=this.data;let n=await this.api.post("tx",this.transaction).catch(i=>(console.error(i),{status:-1,data:{error:i.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=n.status,this.transaction.data=new Uint8Array(0),n.status>=200&&n.status<300){this.txPosted=!0,this.chunkIndex=e1;return}throw this.lastResponseError=(0,Hu.getError)(n),new Error(`Unable to upload transaction: ${n.status}, ${this.lastResponseError}`)}let r=await this.api.post("tx",this.transaction);if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=r.status,!(r.status>=200&&r.status<300))throw this.lastResponseError=(0,Hu.getError)(r),new Error(`Unable to upload transaction: ${r.status}, ${this.lastResponseError}`);this.txPosted=!0}};Hf.TransactionUploader=qu});var qf=V((yB,n1)=>{var wB=A(M());n1.exports={}});var i1=V(Ku=>{"use strict";var MB=A(M());Object.defineProperty(Ku,"__esModule",{value:!0});var Gu=ds(),ui=vs(),ms=gn(),Xu=r1();qf();var zu=class{api;crypto;chunks;constructor(e,r,n){this.api=e,this.crypto=r,this.chunks=n}async getTransactionAnchor(){let e=await this.api.get("tx_anchor");if(!e.data.match(/^[a-z0-9_-]{43,}/i)||!e.ok)throw new Error(`Could not getTransactionAnchor. Received: ${e.data}. Status: ${e.status}, ${e.statusText}`);return e.data}async getPrice(e,r){let n=r?`price/${e}/${r}`:`price/${e}`,i=await this.api.get(n);if(!/^\d+$/.test(i.data)||!i.ok)throw new Error(`Could not getPrice. Received: ${i.data}. Status: ${i.status}, ${i.statusText}`);return i.data}async get(e){let r=await this.api.get(`tx/${e}`);if(r.status==200){let n=parseInt(r.data.data_size);if(r.data.format>=2&&n>0&&n<=1024*1024*12){let i=await this.getData(e);return new ui.default({...r.data,data:i})}return new ui.default({...r.data,format:r.data.format||1})}throw r.status==404?new Gu.default("TX_NOT_FOUND"):r.status==410?new Gu.default("TX_FAILED"):new Gu.default("TX_INVALID")}fromRaw(e){return new ui.default(e)}async search(e,r){return this.api.post("arql",{op:"equals",expr1:e,expr2:r}).then(n=>n.data?n.data:[])}getStatus(e){return this.api.get(`tx/${e}/status`).then(r=>r.status==200?{status:200,confirmed:r.data}:{status:r.status,confirmed:null})}async getData(e,r){let n;try{n=await this.chunks.downloadChunkedData(e)}catch(i){console.error(`Error while trying to download chunked data for ${e}`),console.error(i)}if(!n){console.warn(`Falling back to gateway cache for ${e}`);try{let{data:i,ok:a,status:d,statusText:v}=await this.api.get(`/${e}`,{responseType:"arraybuffer"});if(!a)throw new Error("Bad http status code",{cause:{status:d,statusText:v}});n=i}catch(i){console.error(`Error while trying to download contiguous data from gateway cache for ${e}`),console.error(i)}}if(!n)throw new Error(`${e} data was not found!`);return r&&r.decode&&!r.string?n:r&&r.decode&&r.string?ms.bufferToString(n):ms.bufferTob64Url(n)}async sign(e,r,n){let a=typeof r=="object"&&(v=>{let y=!0;return["n","e","d","p","q","dp","dq","qi"].map(x=>!(x in v)&&(y=!1)),y})(r),d=typeof arweaveWallet=="object";if(!a&&!d)throw new Error("No valid JWK or external wallet found to sign transaction.");if(a){e.setOwner(r.n);let v=await e.getSignatureData(),y=await this.crypto.sign(r,v,n),x=await this.crypto.hash(y);e.setSignature({id:ms.bufferTob64Url(x),owner:r.n,signature:ms.bufferTob64Url(y)})}else if(d){try{(await arweaveWallet.getPermissions()).includes("SIGN_TRANSACTION")||await arweaveWallet.connect(["SIGN_TRANSACTION"])}catch{}let v=await arweaveWallet.sign(e,n);e.setSignature({id:v.id,owner:v.owner,reward:v.reward,tags:v.tags,signature:v.signature})}else throw new Error("An error occurred while signing. Check wallet is valid")}async verify(e){let r=await e.getSignatureData(),n=e.get("signature",{decode:!0,string:!1}),i=ms.bufferTob64Url(await this.crypto.hash(n));if(e.id!==i)throw new Error("Invalid transaction signature or ID! The transaction ID doesn't match the expected SHA-256 hash of the signature.");return this.crypto.verify(e.owner,r,n)}async post(e){if(typeof e=="string"?e=new ui.default(JSON.parse(e)):typeof e.readInt32BE=="function"?e=new ui.default(JSON.parse(e.toString())):typeof e=="object"&&!(e instanceof ui.default)&&(e=new ui.default(e)),!(e instanceof ui.default))throw new Error("Must be Transaction object");e.chunks||await e.prepareChunks(e.data);let r=await this.getUploader(e,e.data);try{for(;!r.isComplete;)await r.uploadChunk()}catch(n){if(r.lastResponseStatus>0)return{status:r.lastResponseStatus,statusText:r.lastResponseError,data:{error:r.lastResponseError}};throw n}return{status:200,statusText:"OK",data:{}}}async getUploader(e,r){let n;if(r instanceof ArrayBuffer&&(r=new Uint8Array(r)),e instanceof ui.default){if(r||(r=e.data),!(r instanceof Uint8Array))throw new Error("Data format is invalid");e.chunks||await e.prepareChunks(r),n=new Xu.TransactionUploader(this.api,e),(!n.data||n.data.length===0)&&(n.data=r)}else{if(typeof e=="string"&&(e=await Xu.TransactionUploader.fromTransactionId(this.api,e)),!r||!(r instanceof Uint8Array))throw new Error("Must provide data when resuming upload");n=await Xu.TransactionUploader.fromSerialized(this.api,e,r)}return n}async*upload(e,r){let n=await this.getUploader(e,r);for(;!n.isComplete;)await n.uploadChunk(),yield n;return n}};Ku.default=zu});var o1=V(Vu=>{"use strict";var TB=A(M());Object.defineProperty(Vu,"__esModule",{value:!0});var a1=gn();qf();var Zu=class{api;crypto;constructor(e,r){this.api=e,this.crypto=r}getBalance(e){return this.api.get(`wallet/${e}/balance`).then(r=>r.data)}getLastTransactionID(e){return this.api.get(`wallet/${e}/last_tx`).then(r=>r.data)}generate(){return this.crypto.generateJWK()}async jwkToAddress(e){return!e||e==="use_wallet"?this.getAddress():this.getAddress(e)}async getAddress(e){if(!e||e==="use_wallet"){try{await arweaveWallet.connect(["ACCESS_ADDRESS"])}catch{}return arweaveWallet.getActiveAddress()}else return this.ownerToAddress(e.n)}async ownerToAddress(e){return a1.bufferTob64Url(await this.crypto.hash(a1.b64UrlToBuffer(e)))}};Vu.default=Zu});var f1=V(xs=>{"use strict";var _B=A(M());Object.defineProperty(xs,"__esModule",{value:!0});xs.SiloResource=void 0;var s1=gn(),ju=class{api;crypto;transactions;constructor(e,r,n){this.api=e,this.crypto=r,this.transactions=n}async get(e){if(!e)throw new Error("No Silo URI specified");let r=await this.parseUri(e),n=await this.transactions.search("Silo-Name",r.getAccessKey());if(n.length==0)throw new Error(`No data could be found for the Silo URI: ${e}`);let i=await this.transactions.get(n[0]);if(!i)throw new Error(`No data could be found for the Silo URI: ${e}`);let a=i.get("data",{decode:!0,string:!1});return this.crypto.decrypt(a,r.getEncryptionKey())}async readTransactionData(e,r){if(!r)throw new Error("No Silo URI specified");let n=await this.parseUri(r),i=e.get("data",{decode:!0,string:!1});return this.crypto.decrypt(i,n.getEncryptionKey())}async parseUri(e){let r=e.match(/^([a-z0-9-_]+)\.([0-9]+)/i);if(!r)throw new Error("Invalid Silo name, must be a name in the format of [a-z0-9]+.[0-9]+, e.g. 'bubble.7'");let n=r[1],i=Math.pow(2,parseInt(r[2])),a=await this.hash(s1.stringToBuffer(n),i),d=s1.bufferTob64(a.slice(0,15)),v=await this.hash(a.slice(16,31),1);return new Gf(e,d,v)}async hash(e,r){let n=await this.crypto.hash(e);for(let i=0;i<r-1;i++)n=await this.crypto.hash(n);return n}};xs.default=ju;var Gf=class{uri;accessKey;encryptionKey;constructor(e,r,n){this.uri=e,this.accessKey=r,this.encryptionKey=n}getUri(){return this.uri}getAccessKey(){return this.accessKey}getEncryptionKey(){return this.encryptionKey}};xs.SiloResource=Gf});var u1=V(Wu=>{"use strict";var CB=A(M());Object.defineProperty(Wu,"__esModule",{value:!0});var c1=ds(),f6=gn(),Qu=class{api;constructor(e){this.api=e}async getTransactionOffset(e){let r=await this.api.get(`tx/${e}/offset`);if(r.status===200)return r.data;throw new Error(`Unable to get transaction offset: ${(0,c1.getError)(r)}`)}async getChunk(e){let r=await this.api.get(`chunk/${e}`);if(r.status===200)return r.data;throw new Error(`Unable to get chunk: ${(0,c1.getError)(r)}`)}async getChunkData(e){let r=await this.getChunk(e);return f6.b64UrlToBuffer(r.chunk)}firstChunkOffset(e){return parseInt(e.offset)-parseInt(e.size)+1}async downloadChunkedData(e){let r=await this.getTransactionOffset(e),n=parseInt(r.size),a=parseInt(r.offset)-n+1,d=new Uint8Array(n),v=0;for(;v<n;){this.api.config.logging&&console.log(`[chunk] ${v}/${n}`);let y;try{y=await this.getChunkData(a+v)}catch{console.error(`[chunk] Failed to fetch chunk at offset ${a+v}`),console.error("[chunk] This could indicate that the chunk wasn't uploaded or hasn't yet seeded properly to a particular gateway/node")}if(y)d.set(y,v),v+=y.length;else throw new Error(`Couldn't complete data download at ${v}/${n}`)}return d}};Wu.default=Qu});var d1=V($u=>{"use strict";var LB=A(M());Object.defineProperty($u,"__esModule",{value:!0});var l1=ds();qf();var Yu=class t{api;network;static HASH_ENDPOINT="block/hash/";static HEIGHT_ENDPOINT="block/height/";constructor(e,r){this.api=e,this.network=r}async get(e){let r=await this.api.get(`${t.HASH_ENDPOINT}${e}`);if(r.status===200)return r.data;throw r.status===404?new l1.default("BLOCK_NOT_FOUND"):new Error(`Error while loading block data: ${r}`)}async getByHeight(e){let r=await this.api.get(`${t.HEIGHT_ENDPOINT}${e}`);if(r.status===200)return r.data;throw r.status===404?new l1.default("BLOCK_NOT_FOUND"):new Error(`Error while loading block data: ${r}`)}async getCurrent(){let{current:e}=await this.network.getInfo();return await this.get(e)}};$u.default=Yu});var gs=V(tl=>{"use strict";var FB=A(M());Object.defineProperty(tl,"__esModule",{value:!0});var c6=Kp(),u6=Zp(),l6=_u(),d6=Vp(),h6=i1(),p6=o1(),h1=vs(),ys=gn(),b6=f1(),g6=u1(),v6=d1(),el=class t{api;wallets;transactions;network;blocks;ar;silo;chunks;static init;static crypto=new l6.default;static utils=ys;constructor(e){this.api=new u6.default(e),this.wallets=new p6.default(this.api,t.crypto),this.chunks=new g6.default(this.api),this.transactions=new h6.default(this.api,t.crypto,this.chunks),this.silo=new b6.default(this.api,this.crypto,this.transactions),this.network=new d6.default(this.api),this.blocks=new v6.default(this.api,this.network),this.ar=new c6.default}get crypto(){return t.crypto}get utils(){return t.utils}getConfig(){return{api:this.api.getConfig(),crypto:null}}async createTransaction(e,r){let n={};if(Object.assign(n,e),!e.data&&!(e.target&&e.quantity))throw new Error("A new Arweave transaction must have a 'data' value, or 'target' and 'quantity' values.");if(e.owner==null&&r&&r!=="use_wallet"&&(n.owner=r.n),e.last_tx==null&&(n.last_tx=await this.transactions.getTransactionAnchor()),typeof e.data=="string"&&(e.data=ys.stringToBuffer(e.data)),e.data instanceof ArrayBuffer&&(e.data=new Uint8Array(e.data)),e.data&&!(e.data instanceof Uint8Array))throw new Error("Expected data to be a string, Uint8Array or ArrayBuffer");if(e.reward==null){let a=e.data?e.data.byteLength:0;n.reward=await this.transactions.getPrice(a,n.target)}n.data_root="",n.data_size=e.data?e.data.byteLength.toString():"0",n.data=e.data||new Uint8Array(0);let i=new h1.default(n);return await i.getSignatureData(),i}async createSiloTransaction(e,r,n){let i={};if(Object.assign(i,e),!e.data)throw new Error("Silo transactions must have a 'data' value");if(!n)throw new Error("No Silo URI specified.");if(e.target||e.quantity)throw new Error("Silo transactions can only be used for storing data, sending AR to other wallets isn't supported.");if(e.owner==null){if(!r||!r.n)throw new Error("A new Arweave transaction must either have an 'owner' attribute, or you must provide the jwk parameter.");i.owner=r.n}e.last_tx==null&&(i.last_tx=await this.transactions.getTransactionAnchor());let a=await this.silo.parseUri(n);if(typeof e.data=="string"){let v=await this.crypto.encrypt(ys.stringToBuffer(e.data),a.getEncryptionKey());i.reward=await this.transactions.getPrice(v.byteLength),i.data=ys.bufferTob64Url(v)}if(e.data instanceof Uint8Array){let v=await this.crypto.encrypt(e.data,a.getEncryptionKey());i.reward=await this.transactions.getPrice(v.byteLength),i.data=ys.bufferTob64Url(v)}let d=new h1.default(i);return d.addTag("Silo-Name",a.getAccessKey()),d.addTag("Silo-Version","0.1.0"),d}arql(e){return this.api.post("/arql",e).then(r=>r.data||[])}};tl.default=el});var g1=V(rl=>{"use strict";var OB=A(M());Object.defineProperty(rl,"__esModule",{value:!0});rl.default=p1;var Fr=gs();async function p1(t){if(Array.isArray(t)){let n=Fr.default.utils.concatBuffers([Fr.default.utils.stringToBuffer("list"),Fr.default.utils.stringToBuffer(t.length.toString())]);return await b1(t,await Fr.default.crypto.hash(n,"SHA-384"))}let e=Fr.default.utils.concatBuffers([Fr.default.utils.stringToBuffer("blob"),Fr.default.utils.stringToBuffer(t.byteLength.toString())]),r=Fr.default.utils.concatBuffers([await Fr.default.crypto.hash(e,"SHA-384"),await Fr.default.crypto.hash(t,"SHA-384")]);return await Fr.default.crypto.hash(r,"SHA-384")}async function b1(t,e){if(t.length<1)return e;let r=Fr.default.utils.concatBuffers([e,await p1(t[0])]),n=await Fr.default.crypto.hash(r,"SHA-384");return await b1(t.slice(1),n)}});var vs=V(As=>{"use strict";var NB=A(M());Object.defineProperty(As,"__esModule",{value:!0});As.Tag=void 0;var It=gn(),m6=g1(),x6=Uu(),Xf=class{get(e,r){if(!Object.getOwnPropertyNames(this).includes(e))throw new Error(`Field "${e}" is not a property of the Arweave Transaction class.`);if(this[e]instanceof Uint8Array)return r&&r.decode&&r.string?It.bufferToString(this[e]):r&&r.decode&&!r.string?this[e]:It.bufferTob64Url(this[e]);if(this[e]instanceof Array){if(r?.decode!==void 0||r?.string!==void 0)throw e==="tags"&&console.warn(`Did you mean to use 'transaction["tags"]' ?`),new Error("Cannot decode or stringify an array.");return this[e]}return r&&r.decode==!0?r&&r.string?It.b64UrlToString(this[e]):It.b64UrlToBuffer(this[e]):this[e]}},ws=class extends Xf{name;value;constructor(e,r,n=!1){super(),this.name=e,this.value=r}};As.Tag=ws;var nl=class extends Xf{format=2;id="";last_tx="";owner="";tags=[];target="";quantity="0";data_size="0";data=new Uint8Array;data_root="";reward="0";signature="";chunks;constructor(e={}){super(),Object.assign(this,e),typeof this.data=="string"&&(this.data=It.b64UrlToBuffer(this.data)),e.tags&&(this.tags=e.tags.map(r=>new ws(r.name,r.value)))}addTag(e,r){this.tags.push(new ws(It.stringToB64Url(e),It.stringToB64Url(r)))}toJSON(){return{format:this.format,id:this.id,last_tx:this.last_tx,owner:this.owner,tags:this.tags,target:this.target,quantity:this.quantity,data:It.bufferTob64Url(this.data),data_size:this.data_size,data_root:this.data_root,data_tree:this.data_tree,reward:this.reward,signature:this.signature}}setOwner(e){this.owner=e}setSignature({id:e,owner:r,reward:n,tags:i,signature:a}){this.id=e,this.owner=r,n&&(this.reward=n),i&&(this.tags=i),this.signature=a}async prepareChunks(e){!this.chunks&&e.byteLength>0&&(this.chunks=await(0,x6.generateTransactionChunks)(e),this.data_root=It.bufferTob64Url(this.chunks.data_root)),!this.chunks&&e.byteLength===0&&(this.chunks={chunks:[],data_root:new Uint8Array,proofs:[]},this.data_root="")}getChunk(e,r){if(!this.chunks)throw new Error("Chunks have not been prepared");let n=this.chunks.proofs[e],i=this.chunks.chunks[e];return{data_root:this.data_root,data_size:this.data_size,data_path:It.bufferTob64Url(n.proof),offset:n.offset.toString(),chunk:It.bufferTob64Url(r.slice(i.minByteRange,i.maxByteRange))}}async getSignatureData(){switch(this.format){case 1:let e=this.tags.reduce((n,i)=>It.concatBuffers([n,i.get("name",{decode:!0,string:!1}),i.get("value",{decode:!0,string:!1})]),new Uint8Array);return It.concatBuffers([this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),this.get("data",{decode:!0,string:!1}),It.stringToBuffer(this.quantity),It.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),e]);case 2:this.data_root||await this.prepareChunks(this.data);let r=this.tags.map(n=>[n.get("name",{decode:!0,string:!1}),n.get("value",{decode:!0,string:!1})]);return await(0,m6.default)([It.stringToBuffer(this.format.toString()),this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),It.stringToBuffer(this.quantity),It.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),r,It.stringToBuffer(this.data_size),this.get("data_root",{decode:!0,string:!1})]);default:throw new Error(`Unexpected transaction format: ${this.format}`)}}};As.default=nl});var v1=V(zf=>{"use strict";var JB=A(M());Object.defineProperty(zf,"__esModule",{value:!0});zf.getDefaultConfig=void 0;var y6=(t,e)=>{let r=/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/,n=e.split("."),i=n[n.length-1],a=["localhost","[::1]"];return a.includes(e)||t=="file"||a.includes(i)||!!e.match(r)||!!i.match(r)},w6=t=>{let e=t.charAt(0)==="[",r=/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/;return!!t.match(r)||e},A6=(t,e)=>{if(y6(t,e))return{protocol:"https",host:"arweave.net",port:443};if(!w6(e)){let r=e.split(".");if(r.length>=3){r.shift();let n=r.join(".");return{protocol:t,host:n}}}return{protocol:t,host:e}};zf.getDefaultConfig=A6});var m1=V(Di=>{"use strict";var HB=A(M()),M6=Di&&Di.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),S6=Di&&Di.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&M6(e,t,r)};Object.defineProperty(Di,"__esModule",{value:!0});var no=gs(),T6=v1();no.default.init=function(t={}){let e={host:"arweave.net",port:443,protocol:"https"};if(typeof location!="object"||!location.protocol||!location.hostname)return new no.default({...t,...e});let r=location.protocol.replace(":",""),n=location.hostname,i=location.port?parseInt(location.port):r=="https"?443:80,a=(0,T6.getDefaultConfig)(r,n),d=t.protocol||a.protocol,v=t.host||a.host,y=t.port||a.port||i;return new no.default({...t,host:v,protocol:d,port:y})};typeof globalThis=="object"?globalThis.Arweave=no.default:typeof self=="object"&&(self.Arweave=no.default);S6(gs(),Di);Di.default=no.default});var al=V((A1,il)=>{var QB=A(M());(function(t,e){"use strict";function r(T,s){if(!T)throw new Error(s||"Assertion failed")}function n(T,s){T.super_=s;var u=function(){};u.prototype=s.prototype,T.prototype=new u,T.prototype.constructor=T}function i(T,s,u){if(i.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&((s==="le"||s==="be")&&(u=s,s=10),this._init(T||0,s||10,u||"be"))}typeof t=="object"?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=rt("buffer").Buffer}catch{}i.isBN=function(s){return s instanceof i?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===i.wordSize&&Array.isArray(s.words)},i.max=function(s,u){return s.cmp(u)>0?s:u},i.min=function(s,u){return s.cmp(u)<0?s:u},i.prototype._init=function(s,u,l){if(typeof s=="number")return this._initNumber(s,u,l);if(typeof s=="object")return this._initArray(s,u,l);u==="hex"&&(u=16),r(u===(u|0)&&u>=2&&u<=36),s=s.toString().replace(/\s+/g,"");var f=0;s[0]==="-"&&(f++,this.negative=1),f<s.length&&(u===16?this._parseHex(s,f,l):(this._parseBase(s,u,f),l==="le"&&this._initArray(this.toArray(),u,l)))},i.prototype._initNumber=function(s,u,l){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(r(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),u,l)},i.prototype._initArray=function(s,u,l){if(r(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c,g,m=0;if(l==="be")for(f=s.length-1,c=0;f>=0;f-=3)g=s[f]|s[f-1]<<8|s[f-2]<<16,this.words[c]|=g<<m&67108863,this.words[c+1]=g>>>26-m&67108863,m+=24,m>=26&&(m-=26,c++);else if(l==="le")for(f=0,c=0;f<s.length;f+=3)g=s[f]|s[f+1]<<8|s[f+2]<<16,this.words[c]|=g<<m&67108863,this.words[c+1]=g>>>26-m&67108863,m+=24,m>=26&&(m-=26,c++);return this.strip()};function d(T,s){var u=T.charCodeAt(s);return u>=65&&u<=70?u-55:u>=97&&u<=102?u-87:u-48&15}function v(T,s,u){var l=d(T,u);return u-1>=s&&(l|=d(T,u-1)<<4),l}i.prototype._parseHex=function(s,u,l){this.length=Math.ceil((s.length-u)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c=0,g=0,m;if(l==="be")for(f=s.length-1;f>=u;f-=2)m=v(s,u,f)<<c,this.words[g]|=m&67108863,c>=18?(c-=18,g+=1,this.words[g]|=m>>>26):c+=8;else{var h=s.length-u;for(f=h%2===0?u+1:u;f<s.length;f+=2)m=v(s,u,f)<<c,this.words[g]|=m&67108863,c>=18?(c-=18,g+=1,this.words[g]|=m>>>26):c+=8}this.strip()};function y(T,s,u,l){for(var f=0,c=Math.min(T.length,u),g=s;g<c;g++){var m=T.charCodeAt(g)-48;f*=l,m>=49?f+=m-49+10:m>=17?f+=m-17+10:f+=m}return f}i.prototype._parseBase=function(s,u,l){this.words=[0],this.length=1;for(var f=0,c=1;c<=67108863;c*=u)f++;f--,c=c/u|0;for(var g=s.length-l,m=g%f,h=Math.min(g,g-m)+l,o=0,p=l;p<h;p+=f)o=y(s,p,p+f,u),this.imuln(c),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(m!==0){var E=1;for(o=y(s,p,s.length,u),p=0;p<m;p++)E*=u;this.imuln(E),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},i.prototype.copy=function(s){s.words=new Array(this.length);for(var u=0;u<this.length;u++)s.words[u]=this.words[u];s.length=this.length,s.negative=this.negative,s.red=this.red},i.prototype.clone=function(){var s=new i(null);return this.copy(s),s},i.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],B=[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],C=[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];i.prototype.toString=function(s,u){s=s||10,u=u|0||1;var l;if(s===16||s==="hex"){l="";for(var f=0,c=0,g=0;g<this.length;g++){var m=this.words[g],h=((m<<f|c)&16777215).toString(16);c=m>>>24-f&16777215,f+=2,f>=26&&(f-=26,g--),c!==0||g!==this.length-1?l=x[6-h.length]+h+l:l=h+l}for(c!==0&&(l=c.toString(16)+l);l.length%u!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(s===(s|0)&&s>=2&&s<=36){var o=B[s],p=C[s];l="";var E=this.clone();for(E.negative=0;!E.isZero();){var b=E.modn(p).toString(s);E=E.idivn(p),E.isZero()?l=b+l:l=x[o-b.length]+b+l}for(this.isZero()&&(l="0"+l);l.length%u!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(s,u){return r(typeof a<"u"),this.toArrayLike(a,s,u)},i.prototype.toArray=function(s,u){return this.toArrayLike(Array,s,u)},i.prototype.toArrayLike=function(s,u,l){var f=this.byteLength(),c=l||Math.max(1,f);r(f<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var g=u==="le",m=new s(c),h,o,p=this.clone();if(g){for(o=0;!p.isZero();o++)h=p.andln(255),p.iushrn(8),m[o]=h;for(;o<c;o++)m[o]=0}else{for(o=0;o<c-f;o++)m[o]=0;for(o=0;!p.isZero();o++)h=p.andln(255),p.iushrn(8),m[c-o-1]=h}return m},Math.clz32?i.prototype._countBits=function(s){return 32-Math.clz32(s)}:i.prototype._countBits=function(s){var u=s,l=0;return u>=4096&&(l+=13,u>>>=13),u>=64&&(l+=7,u>>>=7),u>=8&&(l+=4,u>>>=4),u>=2&&(l+=2,u>>>=2),l+u},i.prototype._zeroBits=function(s){if(s===0)return 26;var u=s,l=0;return u&8191||(l+=13,u>>>=13),u&127||(l+=7,u>>>=7),u&15||(l+=4,u>>>=4),u&3||(l+=2,u>>>=2),u&1||l++,l},i.prototype.bitLength=function(){var s=this.words[this.length-1],u=this._countBits(s);return(this.length-1)*26+u};function D(T){for(var s=new Array(T.bitLength()),u=0;u<s.length;u++){var l=u/26|0,f=u%26;s[u]=(T.words[l]&1<<f)>>>f}return s}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,u=0;u<this.length;u++){var l=this._zeroBits(this.words[u]);if(s+=l,l!==26)break}return s},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},i.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var u=0;u<s.length;u++)this.words[u]=this.words[u]|s.words[u];return this.strip()},i.prototype.ior=function(s){return r((this.negative|s.negative)===0),this.iuor(s)},i.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},i.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},i.prototype.iuand=function(s){var u;this.length>s.length?u=s:u=this;for(var l=0;l<u.length;l++)this.words[l]=this.words[l]&s.words[l];return this.length=u.length,this.strip()},i.prototype.iand=function(s){return r((this.negative|s.negative)===0),this.iuand(s)},i.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},i.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},i.prototype.iuxor=function(s){var u,l;this.length>s.length?(u=this,l=s):(u=s,l=this);for(var f=0;f<l.length;f++)this.words[f]=u.words[f]^l.words[f];if(this!==u)for(;f<u.length;f++)this.words[f]=u.words[f];return this.length=u.length,this.strip()},i.prototype.ixor=function(s){return r((this.negative|s.negative)===0),this.iuxor(s)},i.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},i.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},i.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var u=Math.ceil(s/26)|0,l=s%26;this._expand(u),l>0&&u--;for(var f=0;f<u;f++)this.words[f]=~this.words[f]&67108863;return l>0&&(this.words[f]=~this.words[f]&67108863>>26-l),this.strip()},i.prototype.notn=function(s){return this.clone().inotn(s)},i.prototype.setn=function(s,u){r(typeof s=="number"&&s>=0);var l=s/26|0,f=s%26;return this._expand(l+1),u?this.words[l]=this.words[l]|1<<f:this.words[l]=this.words[l]&~(1<<f),this.strip()},i.prototype.iadd=function(s){var u;if(this.negative!==0&&s.negative===0)return this.negative=0,u=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,u=this.isub(s),s.negative=1,u._normSign();var l,f;this.length>s.length?(l=this,f=s):(l=s,f=this);for(var c=0,g=0;g<f.length;g++)u=(l.words[g]|0)+(f.words[g]|0)+c,this.words[g]=u&67108863,c=u>>>26;for(;c!==0&&g<l.length;g++)u=(l.words[g]|0)+c,this.words[g]=u&67108863,c=u>>>26;if(this.length=l.length,c!==0)this.words[this.length]=c,this.length++;else if(l!==this)for(;g<l.length;g++)this.words[g]=l.words[g];return this},i.prototype.add=function(s){var u;return s.negative!==0&&this.negative===0?(s.negative=0,u=this.sub(s),s.negative^=1,u):s.negative===0&&this.negative!==0?(this.negative=0,u=s.sub(this),this.negative=1,u):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},i.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var u=this.iadd(s);return s.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var l=this.cmp(s);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,c;l>0?(f=this,c=s):(f=s,c=this);for(var g=0,m=0;m<c.length;m++)u=(f.words[m]|0)-(c.words[m]|0)+g,g=u>>26,this.words[m]=u&67108863;for(;g!==0&&m<f.length;m++)u=(f.words[m]|0)+g,g=u>>26,this.words[m]=u&67108863;if(g===0&&m<f.length&&f!==this)for(;m<f.length;m++)this.words[m]=f.words[m];return this.length=Math.max(this.length,m),f!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(s){return this.clone().isub(s)};function F(T,s,u){u.negative=s.negative^T.negative;var l=T.length+s.length|0;u.length=l,l=l-1|0;var f=T.words[0]|0,c=s.words[0]|0,g=f*c,m=g&67108863,h=g/67108864|0;u.words[0]=m;for(var o=1;o<l;o++){for(var p=h>>>26,E=h&67108863,b=Math.min(o,s.length-1),w=Math.max(0,o-T.length+1);w<=b;w++){var U=o-w|0;f=T.words[U]|0,c=s.words[w]|0,g=f*c+E,p+=g/67108864|0,E=g&67108863}u.words[o]=E|0,h=p|0}return h!==0?u.words[o]=h|0:u.length--,u.strip()}var P=function(s,u,l){var f=s.words,c=u.words,g=l.words,m=0,h,o,p,E=f[0]|0,b=E&8191,w=E>>>13,U=f[1]|0,S=U&8191,N=U>>>13,G=f[2]|0,Z=G&8191,_=G>>>13,R=f[3]|0,L=R&8191,O=R>>>13,q=f[4]|0,I=q&8191,J=q>>>13,z=f[5]|0,k=z&8191,H=z>>>13,Q=f[6]|0,j=Q&8191,re=Q>>>13,De=f[7]|0,se=De&8191,le=De>>>13,Ue=f[8]|0,oe=Ue&8191,ce=Ue>>>13,Xe=f[9]|0,ge=Xe&8191,ve=Xe>>>13,vt=c[0]|0,pe=vt&8191,be=vt>>>13,Ye=c[1]|0,de=Ye&8191,ue=Ye>>>13,Kt=c[2]|0,me=Kt&8191,xe=Kt>>>13,Zt=c[3]|0,ye=Zt&8191,we=Zt>>>13,Vt=c[4]|0,Ae=Vt&8191,Me=Vt>>>13,jt=c[5]|0,Se=jt&8191,Te=jt>>>13,Qt=c[6]|0,Ee=Qt&8191,_e=Qt>>>13,Wt=c[7]|0,Be=Wt&8191,Ce=Wt>>>13,Yt=c[8]|0,Pe=Yt&8191,Le=Yt>>>13,$t=c[9]|0,Re=$t&8191,Fe=$t>>>13;l.negative=s.negative^u.negative,l.length=19,h=Math.imul(b,pe),o=Math.imul(b,be),o=o+Math.imul(w,pe)|0,p=Math.imul(w,be);var Dt=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,h=Math.imul(S,pe),o=Math.imul(S,be),o=o+Math.imul(N,pe)|0,p=Math.imul(N,be),h=h+Math.imul(b,de)|0,o=o+Math.imul(b,ue)|0,o=o+Math.imul(w,de)|0,p=p+Math.imul(w,ue)|0;var Ne=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,h=Math.imul(Z,pe),o=Math.imul(Z,be),o=o+Math.imul(_,pe)|0,p=Math.imul(_,be),h=h+Math.imul(S,de)|0,o=o+Math.imul(S,ue)|0,o=o+Math.imul(N,de)|0,p=p+Math.imul(N,ue)|0,h=h+Math.imul(b,me)|0,o=o+Math.imul(b,xe)|0,o=o+Math.imul(w,me)|0,p=p+Math.imul(w,xe)|0;var ke=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,h=Math.imul(L,pe),o=Math.imul(L,be),o=o+Math.imul(O,pe)|0,p=Math.imul(O,be),h=h+Math.imul(Z,de)|0,o=o+Math.imul(Z,ue)|0,o=o+Math.imul(_,de)|0,p=p+Math.imul(_,ue)|0,h=h+Math.imul(S,me)|0,o=o+Math.imul(S,xe)|0,o=o+Math.imul(N,me)|0,p=p+Math.imul(N,xe)|0,h=h+Math.imul(b,ye)|0,o=o+Math.imul(b,we)|0,o=o+Math.imul(w,ye)|0,p=p+Math.imul(w,we)|0;var St=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(St>>>26)|0,St&=67108863,h=Math.imul(I,pe),o=Math.imul(I,be),o=o+Math.imul(J,pe)|0,p=Math.imul(J,be),h=h+Math.imul(L,de)|0,o=o+Math.imul(L,ue)|0,o=o+Math.imul(O,de)|0,p=p+Math.imul(O,ue)|0,h=h+Math.imul(Z,me)|0,o=o+Math.imul(Z,xe)|0,o=o+Math.imul(_,me)|0,p=p+Math.imul(_,xe)|0,h=h+Math.imul(S,ye)|0,o=o+Math.imul(S,we)|0,o=o+Math.imul(N,ye)|0,p=p+Math.imul(N,we)|0,h=h+Math.imul(b,Ae)|0,o=o+Math.imul(b,Me)|0,o=o+Math.imul(w,Ae)|0,p=p+Math.imul(w,Me)|0;var Tt=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,h=Math.imul(k,pe),o=Math.imul(k,be),o=o+Math.imul(H,pe)|0,p=Math.imul(H,be),h=h+Math.imul(I,de)|0,o=o+Math.imul(I,ue)|0,o=o+Math.imul(J,de)|0,p=p+Math.imul(J,ue)|0,h=h+Math.imul(L,me)|0,o=o+Math.imul(L,xe)|0,o=o+Math.imul(O,me)|0,p=p+Math.imul(O,xe)|0,h=h+Math.imul(Z,ye)|0,o=o+Math.imul(Z,we)|0,o=o+Math.imul(_,ye)|0,p=p+Math.imul(_,we)|0,h=h+Math.imul(S,Ae)|0,o=o+Math.imul(S,Me)|0,o=o+Math.imul(N,Ae)|0,p=p+Math.imul(N,Me)|0,h=h+Math.imul(b,Se)|0,o=o+Math.imul(b,Te)|0,o=o+Math.imul(w,Se)|0,p=p+Math.imul(w,Te)|0;var Et=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,h=Math.imul(j,pe),o=Math.imul(j,be),o=o+Math.imul(re,pe)|0,p=Math.imul(re,be),h=h+Math.imul(k,de)|0,o=o+Math.imul(k,ue)|0,o=o+Math.imul(H,de)|0,p=p+Math.imul(H,ue)|0,h=h+Math.imul(I,me)|0,o=o+Math.imul(I,xe)|0,o=o+Math.imul(J,me)|0,p=p+Math.imul(J,xe)|0,h=h+Math.imul(L,ye)|0,o=o+Math.imul(L,we)|0,o=o+Math.imul(O,ye)|0,p=p+Math.imul(O,we)|0,h=h+Math.imul(Z,Ae)|0,o=o+Math.imul(Z,Me)|0,o=o+Math.imul(_,Ae)|0,p=p+Math.imul(_,Me)|0,h=h+Math.imul(S,Se)|0,o=o+Math.imul(S,Te)|0,o=o+Math.imul(N,Se)|0,p=p+Math.imul(N,Te)|0,h=h+Math.imul(b,Ee)|0,o=o+Math.imul(b,_e)|0,o=o+Math.imul(w,Ee)|0,p=p+Math.imul(w,_e)|0;var _t=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,h=Math.imul(se,pe),o=Math.imul(se,be),o=o+Math.imul(le,pe)|0,p=Math.imul(le,be),h=h+Math.imul(j,de)|0,o=o+Math.imul(j,ue)|0,o=o+Math.imul(re,de)|0,p=p+Math.imul(re,ue)|0,h=h+Math.imul(k,me)|0,o=o+Math.imul(k,xe)|0,o=o+Math.imul(H,me)|0,p=p+Math.imul(H,xe)|0,h=h+Math.imul(I,ye)|0,o=o+Math.imul(I,we)|0,o=o+Math.imul(J,ye)|0,p=p+Math.imul(J,we)|0,h=h+Math.imul(L,Ae)|0,o=o+Math.imul(L,Me)|0,o=o+Math.imul(O,Ae)|0,p=p+Math.imul(O,Me)|0,h=h+Math.imul(Z,Se)|0,o=o+Math.imul(Z,Te)|0,o=o+Math.imul(_,Se)|0,p=p+Math.imul(_,Te)|0,h=h+Math.imul(S,Ee)|0,o=o+Math.imul(S,_e)|0,o=o+Math.imul(N,Ee)|0,p=p+Math.imul(N,_e)|0,h=h+Math.imul(b,Be)|0,o=o+Math.imul(b,Ce)|0,o=o+Math.imul(w,Be)|0,p=p+Math.imul(w,Ce)|0;var Bt=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,h=Math.imul(oe,pe),o=Math.imul(oe,be),o=o+Math.imul(ce,pe)|0,p=Math.imul(ce,be),h=h+Math.imul(se,de)|0,o=o+Math.imul(se,ue)|0,o=o+Math.imul(le,de)|0,p=p+Math.imul(le,ue)|0,h=h+Math.imul(j,me)|0,o=o+Math.imul(j,xe)|0,o=o+Math.imul(re,me)|0,p=p+Math.imul(re,xe)|0,h=h+Math.imul(k,ye)|0,o=o+Math.imul(k,we)|0,o=o+Math.imul(H,ye)|0,p=p+Math.imul(H,we)|0,h=h+Math.imul(I,Ae)|0,o=o+Math.imul(I,Me)|0,o=o+Math.imul(J,Ae)|0,p=p+Math.imul(J,Me)|0,h=h+Math.imul(L,Se)|0,o=o+Math.imul(L,Te)|0,o=o+Math.imul(O,Se)|0,p=p+Math.imul(O,Te)|0,h=h+Math.imul(Z,Ee)|0,o=o+Math.imul(Z,_e)|0,o=o+Math.imul(_,Ee)|0,p=p+Math.imul(_,_e)|0,h=h+Math.imul(S,Be)|0,o=o+Math.imul(S,Ce)|0,o=o+Math.imul(N,Be)|0,p=p+Math.imul(N,Ce)|0,h=h+Math.imul(b,Pe)|0,o=o+Math.imul(b,Le)|0,o=o+Math.imul(w,Pe)|0,p=p+Math.imul(w,Le)|0;var hr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(hr>>>26)|0,hr&=67108863,h=Math.imul(ge,pe),o=Math.imul(ge,be),o=o+Math.imul(ve,pe)|0,p=Math.imul(ve,be),h=h+Math.imul(oe,de)|0,o=o+Math.imul(oe,ue)|0,o=o+Math.imul(ce,de)|0,p=p+Math.imul(ce,ue)|0,h=h+Math.imul(se,me)|0,o=o+Math.imul(se,xe)|0,o=o+Math.imul(le,me)|0,p=p+Math.imul(le,xe)|0,h=h+Math.imul(j,ye)|0,o=o+Math.imul(j,we)|0,o=o+Math.imul(re,ye)|0,p=p+Math.imul(re,we)|0,h=h+Math.imul(k,Ae)|0,o=o+Math.imul(k,Me)|0,o=o+Math.imul(H,Ae)|0,p=p+Math.imul(H,Me)|0,h=h+Math.imul(I,Se)|0,o=o+Math.imul(I,Te)|0,o=o+Math.imul(J,Se)|0,p=p+Math.imul(J,Te)|0,h=h+Math.imul(L,Ee)|0,o=o+Math.imul(L,_e)|0,o=o+Math.imul(O,Ee)|0,p=p+Math.imul(O,_e)|0,h=h+Math.imul(Z,Be)|0,o=o+Math.imul(Z,Ce)|0,o=o+Math.imul(_,Be)|0,p=p+Math.imul(_,Ce)|0,h=h+Math.imul(S,Pe)|0,o=o+Math.imul(S,Le)|0,o=o+Math.imul(N,Pe)|0,p=p+Math.imul(N,Le)|0,h=h+Math.imul(b,Re)|0,o=o+Math.imul(b,Fe)|0,o=o+Math.imul(w,Re)|0,p=p+Math.imul(w,Fe)|0;var pr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(pr>>>26)|0,pr&=67108863,h=Math.imul(ge,de),o=Math.imul(ge,ue),o=o+Math.imul(ve,de)|0,p=Math.imul(ve,ue),h=h+Math.imul(oe,me)|0,o=o+Math.imul(oe,xe)|0,o=o+Math.imul(ce,me)|0,p=p+Math.imul(ce,xe)|0,h=h+Math.imul(se,ye)|0,o=o+Math.imul(se,we)|0,o=o+Math.imul(le,ye)|0,p=p+Math.imul(le,we)|0,h=h+Math.imul(j,Ae)|0,o=o+Math.imul(j,Me)|0,o=o+Math.imul(re,Ae)|0,p=p+Math.imul(re,Me)|0,h=h+Math.imul(k,Se)|0,o=o+Math.imul(k,Te)|0,o=o+Math.imul(H,Se)|0,p=p+Math.imul(H,Te)|0,h=h+Math.imul(I,Ee)|0,o=o+Math.imul(I,_e)|0,o=o+Math.imul(J,Ee)|0,p=p+Math.imul(J,_e)|0,h=h+Math.imul(L,Be)|0,o=o+Math.imul(L,Ce)|0,o=o+Math.imul(O,Be)|0,p=p+Math.imul(O,Ce)|0,h=h+Math.imul(Z,Pe)|0,o=o+Math.imul(Z,Le)|0,o=o+Math.imul(_,Pe)|0,p=p+Math.imul(_,Le)|0,h=h+Math.imul(S,Re)|0,o=o+Math.imul(S,Fe)|0,o=o+Math.imul(N,Re)|0,p=p+Math.imul(N,Fe)|0;var br=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(br>>>26)|0,br&=67108863,h=Math.imul(ge,me),o=Math.imul(ge,xe),o=o+Math.imul(ve,me)|0,p=Math.imul(ve,xe),h=h+Math.imul(oe,ye)|0,o=o+Math.imul(oe,we)|0,o=o+Math.imul(ce,ye)|0,p=p+Math.imul(ce,we)|0,h=h+Math.imul(se,Ae)|0,o=o+Math.imul(se,Me)|0,o=o+Math.imul(le,Ae)|0,p=p+Math.imul(le,Me)|0,h=h+Math.imul(j,Se)|0,o=o+Math.imul(j,Te)|0,o=o+Math.imul(re,Se)|0,p=p+Math.imul(re,Te)|0,h=h+Math.imul(k,Ee)|0,o=o+Math.imul(k,_e)|0,o=o+Math.imul(H,Ee)|0,p=p+Math.imul(H,_e)|0,h=h+Math.imul(I,Be)|0,o=o+Math.imul(I,Ce)|0,o=o+Math.imul(J,Be)|0,p=p+Math.imul(J,Ce)|0,h=h+Math.imul(L,Pe)|0,o=o+Math.imul(L,Le)|0,o=o+Math.imul(O,Pe)|0,p=p+Math.imul(O,Le)|0,h=h+Math.imul(Z,Re)|0,o=o+Math.imul(Z,Fe)|0,o=o+Math.imul(_,Re)|0,p=p+Math.imul(_,Fe)|0;var gr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(gr>>>26)|0,gr&=67108863,h=Math.imul(ge,ye),o=Math.imul(ge,we),o=o+Math.imul(ve,ye)|0,p=Math.imul(ve,we),h=h+Math.imul(oe,Ae)|0,o=o+Math.imul(oe,Me)|0,o=o+Math.imul(ce,Ae)|0,p=p+Math.imul(ce,Me)|0,h=h+Math.imul(se,Se)|0,o=o+Math.imul(se,Te)|0,o=o+Math.imul(le,Se)|0,p=p+Math.imul(le,Te)|0,h=h+Math.imul(j,Ee)|0,o=o+Math.imul(j,_e)|0,o=o+Math.imul(re,Ee)|0,p=p+Math.imul(re,_e)|0,h=h+Math.imul(k,Be)|0,o=o+Math.imul(k,Ce)|0,o=o+Math.imul(H,Be)|0,p=p+Math.imul(H,Ce)|0,h=h+Math.imul(I,Pe)|0,o=o+Math.imul(I,Le)|0,o=o+Math.imul(J,Pe)|0,p=p+Math.imul(J,Le)|0,h=h+Math.imul(L,Re)|0,o=o+Math.imul(L,Fe)|0,o=o+Math.imul(O,Re)|0,p=p+Math.imul(O,Fe)|0;var vr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(vr>>>26)|0,vr&=67108863,h=Math.imul(ge,Ae),o=Math.imul(ge,Me),o=o+Math.imul(ve,Ae)|0,p=Math.imul(ve,Me),h=h+Math.imul(oe,Se)|0,o=o+Math.imul(oe,Te)|0,o=o+Math.imul(ce,Se)|0,p=p+Math.imul(ce,Te)|0,h=h+Math.imul(se,Ee)|0,o=o+Math.imul(se,_e)|0,o=o+Math.imul(le,Ee)|0,p=p+Math.imul(le,_e)|0,h=h+Math.imul(j,Be)|0,o=o+Math.imul(j,Ce)|0,o=o+Math.imul(re,Be)|0,p=p+Math.imul(re,Ce)|0,h=h+Math.imul(k,Pe)|0,o=o+Math.imul(k,Le)|0,o=o+Math.imul(H,Pe)|0,p=p+Math.imul(H,Le)|0,h=h+Math.imul(I,Re)|0,o=o+Math.imul(I,Fe)|0,o=o+Math.imul(J,Re)|0,p=p+Math.imul(J,Fe)|0;var mr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(mr>>>26)|0,mr&=67108863,h=Math.imul(ge,Se),o=Math.imul(ge,Te),o=o+Math.imul(ve,Se)|0,p=Math.imul(ve,Te),h=h+Math.imul(oe,Ee)|0,o=o+Math.imul(oe,_e)|0,o=o+Math.imul(ce,Ee)|0,p=p+Math.imul(ce,_e)|0,h=h+Math.imul(se,Be)|0,o=o+Math.imul(se,Ce)|0,o=o+Math.imul(le,Be)|0,p=p+Math.imul(le,Ce)|0,h=h+Math.imul(j,Pe)|0,o=o+Math.imul(j,Le)|0,o=o+Math.imul(re,Pe)|0,p=p+Math.imul(re,Le)|0,h=h+Math.imul(k,Re)|0,o=o+Math.imul(k,Fe)|0,o=o+Math.imul(H,Re)|0,p=p+Math.imul(H,Fe)|0;var xr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(xr>>>26)|0,xr&=67108863,h=Math.imul(ge,Ee),o=Math.imul(ge,_e),o=o+Math.imul(ve,Ee)|0,p=Math.imul(ve,_e),h=h+Math.imul(oe,Be)|0,o=o+Math.imul(oe,Ce)|0,o=o+Math.imul(ce,Be)|0,p=p+Math.imul(ce,Ce)|0,h=h+Math.imul(se,Pe)|0,o=o+Math.imul(se,Le)|0,o=o+Math.imul(le,Pe)|0,p=p+Math.imul(le,Le)|0,h=h+Math.imul(j,Re)|0,o=o+Math.imul(j,Fe)|0,o=o+Math.imul(re,Re)|0,p=p+Math.imul(re,Fe)|0;var yr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(yr>>>26)|0,yr&=67108863,h=Math.imul(ge,Be),o=Math.imul(ge,Ce),o=o+Math.imul(ve,Be)|0,p=Math.imul(ve,Ce),h=h+Math.imul(oe,Pe)|0,o=o+Math.imul(oe,Le)|0,o=o+Math.imul(ce,Pe)|0,p=p+Math.imul(ce,Le)|0,h=h+Math.imul(se,Re)|0,o=o+Math.imul(se,Fe)|0,o=o+Math.imul(le,Re)|0,p=p+Math.imul(le,Fe)|0;var wr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(wr>>>26)|0,wr&=67108863,h=Math.imul(ge,Pe),o=Math.imul(ge,Le),o=o+Math.imul(ve,Pe)|0,p=Math.imul(ve,Le),h=h+Math.imul(oe,Re)|0,o=o+Math.imul(oe,Fe)|0,o=o+Math.imul(ce,Re)|0,p=p+Math.imul(ce,Fe)|0;var pn=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(pn>>>26)|0,pn&=67108863,h=Math.imul(ge,Re),o=Math.imul(ge,Fe),o=o+Math.imul(ve,Re)|0,p=Math.imul(ve,Fe);var bn=(m+h|0)+((o&8191)<<13)|0;return m=(p+(o>>>13)|0)+(bn>>>26)|0,bn&=67108863,g[0]=Dt,g[1]=Ne,g[2]=ke,g[3]=St,g[4]=Tt,g[5]=Et,g[6]=_t,g[7]=Bt,g[8]=hr,g[9]=pr,g[10]=br,g[11]=gr,g[12]=vr,g[13]=mr,g[14]=xr,g[15]=yr,g[16]=wr,g[17]=pn,g[18]=bn,m!==0&&(g[19]=m,l.length++),l};Math.imul||(P=F);function X(T,s,u){u.negative=s.negative^T.negative,u.length=T.length+s.length;for(var l=0,f=0,c=0;c<u.length-1;c++){var g=f;f=0;for(var m=l&67108863,h=Math.min(c,s.length-1),o=Math.max(0,c-T.length+1);o<=h;o++){var p=c-o,E=T.words[p]|0,b=s.words[o]|0,w=E*b,U=w&67108863;g=g+(w/67108864|0)|0,U=U+m|0,m=U&67108863,g=g+(U>>>26)|0,f+=g>>>26,g&=67108863}u.words[c]=m,l=g,g=f}return l!==0?u.words[c]=l:u.length--,u.strip()}function W(T,s,u){var l=new K;return l.mulp(T,s,u)}i.prototype.mulTo=function(s,u){var l,f=this.length+s.length;return this.length===10&&s.length===10?l=P(this,s,u):f<63?l=F(this,s,u):f<1024?l=X(this,s,u):l=W(this,s,u),l};function K(T,s){this.x=T,this.y=s}K.prototype.makeRBT=function(s){for(var u=new Array(s),l=i.prototype._countBits(s)-1,f=0;f<s;f++)u[f]=this.revBin(f,l,s);return u},K.prototype.revBin=function(s,u,l){if(s===0||s===l-1)return s;for(var f=0,c=0;c<u;c++)f|=(s&1)<<u-c-1,s>>=1;return f},K.prototype.permute=function(s,u,l,f,c,g){for(var m=0;m<g;m++)f[m]=u[s[m]],c[m]=l[s[m]]},K.prototype.transform=function(s,u,l,f,c,g){this.permute(g,s,u,l,f,c);for(var m=1;m<c;m<<=1)for(var h=m<<1,o=Math.cos(2*Math.PI/h),p=Math.sin(2*Math.PI/h),E=0;E<c;E+=h)for(var b=o,w=p,U=0;U<m;U++){var S=l[E+U],N=f[E+U],G=l[E+U+m],Z=f[E+U+m],_=b*G-w*Z;Z=b*Z+w*G,G=_,l[E+U]=S+G,f[E+U]=N+Z,l[E+U+m]=S-G,f[E+U+m]=N-Z,U!==h&&(_=o*b-p*w,w=o*w+p*b,b=_)}},K.prototype.guessLen13b=function(s,u){var l=Math.max(u,s)|1,f=l&1,c=0;for(l=l/2|0;l;l=l>>>1)c++;return 1<<c+1+f},K.prototype.conjugate=function(s,u,l){if(!(l<=1))for(var f=0;f<l/2;f++){var c=s[f];s[f]=s[l-f-1],s[l-f-1]=c,c=u[f],u[f]=-u[l-f-1],u[l-f-1]=-c}},K.prototype.normalize13b=function(s,u){for(var l=0,f=0;f<u/2;f++){var c=Math.round(s[2*f+1]/u)*8192+Math.round(s[2*f]/u)+l;s[f]=c&67108863,c<67108864?l=0:l=c/67108864|0}return s},K.prototype.convert13b=function(s,u,l,f){for(var c=0,g=0;g<u;g++)c=c+(s[g]|0),l[2*g]=c&8191,c=c>>>13,l[2*g+1]=c&8191,c=c>>>13;for(g=2*u;g<f;++g)l[g]=0;r(c===0),r((c&-8192)===0)},K.prototype.stub=function(s){for(var u=new Array(s),l=0;l<s;l++)u[l]=0;return u},K.prototype.mulp=function(s,u,l){var f=2*this.guessLen13b(s.length,u.length),c=this.makeRBT(f),g=this.stub(f),m=new Array(f),h=new Array(f),o=new Array(f),p=new Array(f),E=new Array(f),b=new Array(f),w=l.words;w.length=f,this.convert13b(s.words,s.length,m,f),this.convert13b(u.words,u.length,p,f),this.transform(m,g,h,o,f,c),this.transform(p,g,E,b,f,c);for(var U=0;U<f;U++){var S=h[U]*E[U]-o[U]*b[U];o[U]=h[U]*b[U]+o[U]*E[U],h[U]=S}return this.conjugate(h,o,f),this.transform(h,o,w,g,f,c),this.conjugate(w,g,f),this.normalize13b(w,f),l.negative=s.negative^u.negative,l.length=s.length+u.length,l.strip()},i.prototype.mul=function(s){var u=new i(null);return u.words=new Array(this.length+s.length),this.mulTo(s,u)},i.prototype.mulf=function(s){var u=new i(null);return u.words=new Array(this.length+s.length),W(this,s,u)},i.prototype.imul=function(s){return this.clone().mulTo(s,this)},i.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var u=0,l=0;l<this.length;l++){var f=(this.words[l]|0)*s,c=(f&67108863)+(u&67108863);u>>=26,u+=f/67108864|0,u+=c>>>26,this.words[l]=c&67108863}return u!==0&&(this.words[l]=u,this.length++),this.length=s===0?1:this.length,this},i.prototype.muln=function(s){return this.clone().imuln(s)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(s){var u=D(s);if(u.length===0)return new i(1);for(var l=this,f=0;f<u.length&&u[f]===0;f++,l=l.sqr());if(++f<u.length)for(var c=l.sqr();f<u.length;f++,c=c.sqr())u[f]!==0&&(l=l.mul(c));return l},i.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var u=s%26,l=(s-u)/26,f=67108863>>>26-u<<26-u,c;if(u!==0){var g=0;for(c=0;c<this.length;c++){var m=this.words[c]&f,h=(this.words[c]|0)-m<<u;this.words[c]=h|g,g=m>>>26-u}g&&(this.words[c]=g,this.length++)}if(l!==0){for(c=this.length-1;c>=0;c--)this.words[c+l]=this.words[c];for(c=0;c<l;c++)this.words[c]=0;this.length+=l}return this.strip()},i.prototype.ishln=function(s){return r(this.negative===0),this.iushln(s)},i.prototype.iushrn=function(s,u,l){r(typeof s=="number"&&s>=0);var f;u?f=(u-u%26)/26:f=0;var c=s%26,g=Math.min((s-c)/26,this.length),m=67108863^67108863>>>c<<c,h=l;if(f-=g,f=Math.max(0,f),h){for(var o=0;o<g;o++)h.words[o]=this.words[o];h.length=g}if(g!==0)if(this.length>g)for(this.length-=g,o=0;o<this.length;o++)this.words[o]=this.words[o+g];else this.words[0]=0,this.length=1;var p=0;for(o=this.length-1;o>=0&&(p!==0||o>=f);o--){var E=this.words[o]|0;this.words[o]=p<<26-c|E>>>c,p=E&m}return h&&p!==0&&(h.words[h.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(s,u,l){return r(this.negative===0),this.iushrn(s,u,l)},i.prototype.shln=function(s){return this.clone().ishln(s)},i.prototype.ushln=function(s){return this.clone().iushln(s)},i.prototype.shrn=function(s){return this.clone().ishrn(s)},i.prototype.ushrn=function(s){return this.clone().iushrn(s)},i.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var u=s%26,l=(s-u)/26,f=1<<u;if(this.length<=l)return!1;var c=this.words[l];return!!(c&f)},i.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var u=s%26,l=(s-u)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(u!==0&&l++,this.length=Math.min(l,this.length),u!==0){var f=67108863^67108863>>>u<<u;this.words[this.length-1]&=f}return this.strip()},i.prototype.maskn=function(s){return this.clone().imaskn(s)},i.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},i.prototype._iaddn=function(s){this.words[0]+=s;for(var u=0;u<this.length&&this.words[u]>=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},i.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u<this.length&&this.words[u]<0;u++)this.words[u]+=67108864,this.words[u+1]-=1;return this.strip()},i.prototype.addn=function(s){return this.clone().iaddn(s)},i.prototype.subn=function(s){return this.clone().isubn(s)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(s,u,l){var f=s.length+l,c;this._expand(f);var g,m=0;for(c=0;c<s.length;c++){g=(this.words[c+l]|0)+m;var h=(s.words[c]|0)*u;g-=h&67108863,m=(g>>26)-(h/67108864|0),this.words[c+l]=g&67108863}for(;c<this.length-l;c++)g=(this.words[c+l]|0)+m,m=g>>26,this.words[c+l]=g&67108863;if(m===0)return this.strip();for(r(m===-1),m=0,c=0;c<this.length;c++)g=-(this.words[c]|0)+m,m=g>>26,this.words[c]=g&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(s,u){var l=this.length-s.length,f=this.clone(),c=s,g=c.words[c.length-1]|0,m=this._countBits(g);l=26-m,l!==0&&(c=c.ushln(l),f.iushln(l),g=c.words[c.length-1]|0);var h=f.length-c.length,o;if(u!=="mod"){o=new i(null),o.length=h+1,o.words=new Array(o.length);for(var p=0;p<o.length;p++)o.words[p]=0}var E=f.clone()._ishlnsubmul(c,1,h);E.negative===0&&(f=E,o&&(o.words[h]=1));for(var b=h-1;b>=0;b--){var w=(f.words[c.length+b]|0)*67108864+(f.words[c.length+b-1]|0);for(w=Math.min(w/g|0,67108863),f._ishlnsubmul(c,w,b);f.negative!==0;)w--,f.negative=0,f._ishlnsubmul(c,1,b),f.isZero()||(f.negative^=1);o&&(o.words[b]=w)}return o&&o.strip(),f.strip(),u!=="div"&&l!==0&&f.iushrn(l),{div:o||null,mod:f}},i.prototype.divmod=function(s,u,l){if(r(!s.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var f,c,g;return this.negative!==0&&s.negative===0?(g=this.neg().divmod(s,u),u!=="mod"&&(f=g.div.neg()),u!=="div"&&(c=g.mod.neg(),l&&c.negative!==0&&c.iadd(s)),{div:f,mod:c}):this.negative===0&&s.negative!==0?(g=this.divmod(s.neg(),u),u!=="mod"&&(f=g.div.neg()),{div:f,mod:g.mod}):this.negative&s.negative?(g=this.neg().divmod(s.neg(),u),u!=="div"&&(c=g.mod.neg(),l&&c.negative!==0&&c.isub(s)),{div:g.div,mod:c}):s.length>this.length||this.cmp(s)<0?{div:new i(0),mod:this}:s.length===1?u==="div"?{div:this.divn(s.words[0]),mod:null}:u==="mod"?{div:null,mod:new i(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new i(this.modn(s.words[0]))}:this._wordDiv(s,u)},i.prototype.div=function(s){return this.divmod(s,"div",!1).div},i.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},i.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},i.prototype.divRound=function(s){var u=this.divmod(s);if(u.mod.isZero())return u.div;var l=u.div.negative!==0?u.mod.isub(s):u.mod,f=s.ushrn(1),c=s.andln(1),g=l.cmp(f);return g<0||c===1&&g===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},i.prototype.modn=function(s){r(s<=67108863);for(var u=(1<<26)%s,l=0,f=this.length-1;f>=0;f--)l=(u*l+(this.words[f]|0))%s;return l},i.prototype.idivn=function(s){r(s<=67108863);for(var u=0,l=this.length-1;l>=0;l--){var f=(this.words[l]|0)+u*67108864;this.words[l]=f/s|0,u=f%s}return this.strip()},i.prototype.divn=function(s){return this.clone().idivn(s)},i.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var u=this,l=s.clone();u.negative!==0?u=u.umod(s):u=u.clone();for(var f=new i(1),c=new i(0),g=new i(0),m=new i(1),h=0;u.isEven()&&l.isEven();)u.iushrn(1),l.iushrn(1),++h;for(var o=l.clone(),p=u.clone();!u.isZero();){for(var E=0,b=1;!(u.words[0]&b)&&E<26;++E,b<<=1);if(E>0)for(u.iushrn(E);E-- >0;)(f.isOdd()||c.isOdd())&&(f.iadd(o),c.isub(p)),f.iushrn(1),c.iushrn(1);for(var w=0,U=1;!(l.words[0]&U)&&w<26;++w,U<<=1);if(w>0)for(l.iushrn(w);w-- >0;)(g.isOdd()||m.isOdd())&&(g.iadd(o),m.isub(p)),g.iushrn(1),m.iushrn(1);u.cmp(l)>=0?(u.isub(l),f.isub(g),c.isub(m)):(l.isub(u),g.isub(f),m.isub(c))}return{a:g,b:m,gcd:l.iushln(h)}},i.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var u=this,l=s.clone();u.negative!==0?u=u.umod(s):u=u.clone();for(var f=new i(1),c=new i(0),g=l.clone();u.cmpn(1)>0&&l.cmpn(1)>0;){for(var m=0,h=1;!(u.words[0]&h)&&m<26;++m,h<<=1);if(m>0)for(u.iushrn(m);m-- >0;)f.isOdd()&&f.iadd(g),f.iushrn(1);for(var o=0,p=1;!(l.words[0]&p)&&o<26;++o,p<<=1);if(o>0)for(l.iushrn(o);o-- >0;)c.isOdd()&&c.iadd(g),c.iushrn(1);u.cmp(l)>=0?(u.isub(l),f.isub(c)):(l.isub(u),c.isub(f))}var E;return u.cmpn(1)===0?E=f:E=c,E.cmpn(0)<0&&E.iadd(s),E},i.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var u=this.clone(),l=s.clone();u.negative=0,l.negative=0;for(var f=0;u.isEven()&&l.isEven();f++)u.iushrn(1),l.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;l.isEven();)l.iushrn(1);var c=u.cmp(l);if(c<0){var g=u;u=l,l=g}else if(c===0||l.cmpn(1)===0)break;u.isub(l)}while(!0);return l.iushln(f)},i.prototype.invm=function(s){return this.egcd(s).a.umod(s)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(s){return this.words[0]&s},i.prototype.bincn=function(s){r(typeof s=="number");var u=s%26,l=(s-u)/26,f=1<<u;if(this.length<=l)return this._expand(l+1),this.words[l]|=f,this;for(var c=f,g=l;c!==0&&g<this.length;g++){var m=this.words[g]|0;m+=c,c=m>>>26,m&=67108863,this.words[g]=m}return c!==0&&(this.words[g]=c,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(s){var u=s<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this.strip();var l;if(this.length>1)l=1;else{u&&(s=-s),r(s<=67108863,"Number is too big");var f=this.words[0]|0;l=f===s?0:f<s?-1:1}return this.negative!==0?-l|0:l},i.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var u=this.ucmp(s);return this.negative!==0?-u|0:u},i.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var u=0,l=this.length-1;l>=0;l--){var f=this.words[l]|0,c=s.words[l]|0;if(f!==c){f<c?u=-1:f>c&&(u=1);break}}return u},i.prototype.gtn=function(s){return this.cmpn(s)===1},i.prototype.gt=function(s){return this.cmp(s)===1},i.prototype.gten=function(s){return this.cmpn(s)>=0},i.prototype.gte=function(s){return this.cmp(s)>=0},i.prototype.ltn=function(s){return this.cmpn(s)===-1},i.prototype.lt=function(s){return this.cmp(s)===-1},i.prototype.lten=function(s){return this.cmpn(s)<=0},i.prototype.lte=function(s){return this.cmp(s)<=0},i.prototype.eqn=function(s){return this.cmpn(s)===0},i.prototype.eq=function(s){return this.cmp(s)===0},i.red=function(s){return new te(s)},i.prototype.toRed=function(s){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(s){return this.red=s,this},i.prototype.forceRed=function(s){return r(!this.red,"Already a number in reduction context"),this._forceRed(s)},i.prototype.redAdd=function(s){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},i.prototype.redIAdd=function(s){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},i.prototype.redSub=function(s){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},i.prototype.redISub=function(s){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},i.prototype.redShl=function(s){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},i.prototype.redMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},i.prototype.redIMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(s){return r(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(T,s){this.name=T,this.p=new i(s,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ee.prototype._tmp=function(){var s=new i(null);return s.words=new Array(Math.ceil(this.n/13)),s},ee.prototype.ireduce=function(s){var u=s,l;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),l=u.bitLength();while(l>this.n);var f=l<this.n?-1:u.ucmp(this.p);return f===0?(u.words[0]=0,u.length=1):f>0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},ee.prototype.split=function(s,u){s.iushrn(this.n,0,u)},ee.prototype.imulK=function(s){return s.imul(this.k)};function ae(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(ae,ee),ae.prototype.split=function(s,u){for(var l=4194303,f=Math.min(s.length,9),c=0;c<f;c++)u.words[c]=s.words[c];if(u.length=f,s.length<=9){s.words[0]=0,s.length=1;return}var g=s.words[9];for(u.words[u.length++]=g&l,c=10;c<s.length;c++){var m=s.words[c]|0;s.words[c-10]=(m&l)<<4|g>>>22,g=m}g>>>=22,s.words[c-10]=g,g===0&&s.length>10?s.length-=10:s.length-=9},ae.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var u=0,l=0;l<s.length;l++){var f=s.words[l]|0;u+=f*977,s.words[l]=u&67108863,u=f*64+(u/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function ne(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(ne,ee);function $(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n($,ee);function fe(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(fe,ee),fe.prototype.imulK=function(s){for(var u=0,l=0;l<s.length;l++){var f=(s.words[l]|0)*19+u,c=f&67108863;f>>>=26,s.words[l]=c,u=f}return u!==0&&(s.words[s.length++]=u),s},i._prime=function(s){if(ie[s])return ie[s];var u;if(s==="k256")u=new ae;else if(s==="p224")u=new ne;else if(s==="p192")u=new $;else if(s==="p25519")u=new fe;else throw new Error("Unknown prime "+s);return ie[s]=u,u};function te(T){if(typeof T=="string"){var s=i._prime(T);this.m=s.p,this.prime=s}else r(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}te.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},te.prototype._verify2=function(s,u){r((s.negative|u.negative)===0,"red works only with positives"),r(s.red&&s.red===u.red,"red works only with red numbers")},te.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},te.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},te.prototype.add=function(s,u){this._verify2(s,u);var l=s.add(u);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},te.prototype.iadd=function(s,u){this._verify2(s,u);var l=s.iadd(u);return l.cmp(this.m)>=0&&l.isub(this.m),l},te.prototype.sub=function(s,u){this._verify2(s,u);var l=s.sub(u);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},te.prototype.isub=function(s,u){this._verify2(s,u);var l=s.isub(u);return l.cmpn(0)<0&&l.iadd(this.m),l},te.prototype.shl=function(s,u){return this._verify1(s),this.imod(s.ushln(u))},te.prototype.imul=function(s,u){return this._verify2(s,u),this.imod(s.imul(u))},te.prototype.mul=function(s,u){return this._verify2(s,u),this.imod(s.mul(u))},te.prototype.isqr=function(s){return this.imul(s,s.clone())},te.prototype.sqr=function(s){return this.mul(s,s)},te.prototype.sqrt=function(s){if(s.isZero())return s.clone();var u=this.m.andln(3);if(r(u%2===1),u===3){var l=this.m.add(new i(1)).iushrn(2);return this.pow(s,l)}for(var f=this.m.subn(1),c=0;!f.isZero()&&f.andln(1)===0;)c++,f.iushrn(1);r(!f.isZero());var g=new i(1).toRed(this),m=g.redNeg(),h=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new i(2*o*o).toRed(this);this.pow(o,h).cmp(m)!==0;)o.redIAdd(m);for(var p=this.pow(o,f),E=this.pow(s,f.addn(1).iushrn(1)),b=this.pow(s,f),w=c;b.cmp(g)!==0;){for(var U=b,S=0;U.cmp(g)!==0;S++)U=U.redSqr();r(S<w);var N=this.pow(p,new i(1).iushln(w-S-1));E=E.redMul(N),p=N.redSqr(),b=b.redMul(p),w=S}return E},te.prototype.invm=function(s){var u=s._invmp(this.m);return u.negative!==0?(u.negative=0,this.imod(u).redNeg()):this.imod(u)},te.prototype.pow=function(s,u){if(u.isZero())return new i(1).toRed(this);if(u.cmpn(1)===0)return s.clone();var l=4,f=new Array(1<<l);f[0]=new i(1).toRed(this),f[1]=s;for(var c=2;c<f.length;c++)f[c]=this.mul(f[c-1],s);var g=f[0],m=0,h=0,o=u.bitLength()%26;for(o===0&&(o=26),c=u.length-1;c>=0;c--){for(var p=u.words[c],E=o-1;E>=0;E--){var b=p>>E&1;if(g!==f[0]&&(g=this.sqr(g)),b===0&&m===0){h=0;continue}m<<=1,m|=b,h++,!(h!==l&&(c!==0||E!==0))&&(g=this.mul(g,f[m]),h=0,m=0)}o=26}return g},te.prototype.convertTo=function(s){var u=s.umod(this.m);return u===s?u.clone():u},te.prototype.convertFrom=function(s){var u=s.clone();return u.red=null,u},i.mont=function(s){return new Y(s)};function Y(T){te.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}n(Y,te),Y.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},Y.prototype.convertFrom=function(s){var u=this.imod(s.mul(this.rinv));return u.red=null,u},Y.prototype.imul=function(s,u){if(s.isZero()||u.isZero())return s.words[0]=0,s.length=1,s;var l=s.imul(u),f=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=l.isub(f).iushrn(this.shift),g=c;return c.cmp(this.m)>=0?g=c.isub(this.m):c.cmpn(0)<0&&(g=c.iadd(this.m)),g._forceRed(this)},Y.prototype.mul=function(s,u){if(s.isZero()||u.isZero())return new i(0)._forceRed(this);var l=s.mul(u),f=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=l.isub(f).iushrn(this.shift),g=c;return c.cmp(this.m)>=0?g=c.isub(this.m):c.cmpn(0)<0&&(g=c.iadd(this.m)),g._forceRed(this)},Y.prototype.invm=function(s){var u=this.imod(s._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(typeof il>"u"||il,A1)});var M1=V((WB,ol)=>{var YB=A(M());typeof Object.create=="function"?ol.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:ol.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var tr=V(($B,fl)=>{var eC=A(M());try{if(sl=rt("util"),typeof sl.inherits!="function")throw"";fl.exports=sl.inherits}catch{fl.exports=M1()}var sl});var jf=V((tC,S1)=>{"use strict";var rC=A(M()),Vf=rt("buffer"),io=Vf.Buffer,Xr={},zr;for(zr in Vf)Vf.hasOwnProperty(zr)&&(zr==="SlowBuffer"||zr==="Buffer"||(Xr[zr]=Vf[zr]));var ao=Xr.Buffer={};for(zr in io)io.hasOwnProperty(zr)&&(zr==="allocUnsafe"||zr==="allocUnsafeSlow"||(ao[zr]=io[zr]));Xr.Buffer.prototype=io.prototype;(!ao.from||ao.from===Uint8Array.from)&&(ao.from=function(t,e,r){if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&typeof t.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return io(t,e,r)});ao.alloc||(ao.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=io(t);return!e||e.length===0?n.fill(0):typeof r=="string"?n.fill(e,r):n.fill(e),n});if(!Xr.kStringMaxLength)try{Xr.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}Xr.constants||(Xr.constants={MAX_LENGTH:Xr.kMaxLength},Xr.kStringMaxLength&&(Xr.constants.MAX_STRING_LENGTH=Xr.kStringMaxLength));S1.exports=Xr});var Qf=V(T1=>{"use strict";var iC=A(M()),P6=tr();function Kr(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}T1.Reporter=Kr;Kr.prototype.isError=function(e){return e instanceof oo};Kr.prototype.save=function(){let e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};Kr.prototype.restore=function(e){let r=this._reporterState;r.obj=e.obj,r.path=r.path.slice(0,e.pathLen)};Kr.prototype.enterKey=function(e){return this._reporterState.path.push(e)};Kr.prototype.exitKey=function(e){let r=this._reporterState;r.path=r.path.slice(0,e-1)};Kr.prototype.leaveKey=function(e,r,n){let i=this._reporterState;this.exitKey(e),i.obj!==null&&(i.obj[r]=n)};Kr.prototype.path=function(){return this._reporterState.path.join("/")};Kr.prototype.enterObject=function(){let e=this._reporterState,r=e.obj;return e.obj={},r};Kr.prototype.leaveObject=function(e){let r=this._reporterState,n=r.obj;return r.obj=e,n};Kr.prototype.error=function(e){let r,n=this._reporterState,i=e instanceof oo;if(i?r=e:r=new oo(n.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw r;return i||n.errors.push(r),r};Kr.prototype.wrapResult=function(e){let r=this._reporterState;return r.options.partial?{result:this.isError(e)?null:e,errors:r.errors}:e};function oo(t,e){this.path=t,this.rethrow(e)}P6(oo,Error);oo.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,oo),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this}});var co=V(cl=>{"use strict";var oC=A(M()),L6=tr(),Wf=Qf().Reporter,so=jf().Buffer;function Zr(t,e){if(Wf.call(this,e),!so.isBuffer(t)){this.error("Input not Buffer");return}this.base=t,this.offset=0,this.length=t.length}L6(Zr,Wf);cl.DecoderBuffer=Zr;Zr.isDecoderBuffer=function(e){return e instanceof Zr?!0:typeof e=="object"&&so.isBuffer(e.base)&&e.constructor.name==="DecoderBuffer"&&typeof e.offset=="number"&&typeof e.length=="number"&&typeof e.save=="function"&&typeof e.restore=="function"&&typeof e.isEmpty=="function"&&typeof e.readUInt8=="function"&&typeof e.skip=="function"&&typeof e.raw=="function"};Zr.prototype.save=function(){return{offset:this.offset,reporter:Wf.prototype.save.call(this)}};Zr.prototype.restore=function(e){let r=new Zr(this.base);return r.offset=e.offset,r.length=this.offset,this.offset=e.offset,Wf.prototype.restore.call(this,e.reporter),r};Zr.prototype.isEmpty=function(){return this.offset===this.length};Zr.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};Zr.prototype.skip=function(e,r){if(!(this.offset+e<=this.length))return this.error(r||"DecoderBuffer overrun");let n=new Zr(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n};Zr.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function fo(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(r){return fo.isEncoderBuffer(r)||(r=new fo(r,e)),this.length+=r.length,r},this);else if(typeof t=="number"){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if(typeof t=="string")this.value=t,this.length=so.byteLength(t);else if(so.isBuffer(t))this.value=t,this.length=t.length;else return e.error("Unsupported type: "+typeof t)}cl.EncoderBuffer=fo;fo.isEncoderBuffer=function(e){return e instanceof fo?!0:typeof e=="object"&&e.constructor.name==="EncoderBuffer"&&typeof e.length=="number"&&typeof e.join=="function"};fo.prototype.join=function(e,r){return e||(e=so.alloc(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,r),r+=n.length}):(typeof this.value=="number"?e[r]=this.value:typeof this.value=="string"?e.write(this.value,r):so.isBuffer(this.value)&&this.value.copy(e,r),r+=this.length)),e}});var li=V((sC,_1)=>{var fC=A(M());_1.exports=E1;function E1(t,e){if(!t)throw new Error(e||"Assertion failed")}E1.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)}});var Yf=V((cC,C1)=>{"use strict";var uC=A(M()),R6=Qf().Reporter,F6=co().EncoderBuffer,D6=co().DecoderBuffer,Mr=li(),B1=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],O6=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(B1),I6=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function et(t,e,r){let n={};this._baseState=n,n.name=r,n.enc=t,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}C1.exports=et;var N6=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];et.prototype.clone=function(){let e=this._baseState,r={};N6.forEach(function(i){r[i]=e[i]});let n=new this.constructor(r.parent);return n._baseState=r,n};et.prototype._wrap=function(){let e=this._baseState;O6.forEach(function(r){this[r]=function(){let i=new this.constructor(this);return e.children.push(i),i[r].apply(i,arguments)}},this)};et.prototype._init=function(e){let r=this._baseState;Mr(r.parent===null),e.call(this),r.children=r.children.filter(function(n){return n._baseState.parent===this},this),Mr.equal(r.children.length,1,"Root node can have only one child")};et.prototype._useArgs=function(e){let r=this._baseState,n=e.filter(function(i){return i instanceof this.constructor},this);e=e.filter(function(i){return!(i instanceof this.constructor)},this),n.length!==0&&(Mr(r.children===null),r.children=n,n.forEach(function(i){i._baseState.parent=this},this)),e.length!==0&&(Mr(r.args===null),r.args=e,r.reverseArgs=e.map(function(i){if(typeof i!="object"||i.constructor!==Object)return i;let a={};return Object.keys(i).forEach(function(d){d==(d|0)&&(d|=0);let v=i[d];a[v]=d}),a}))};I6.forEach(function(t){et.prototype[t]=function(){let r=this._baseState;throw new Error(t+" not implemented for encoding: "+r.enc)}});B1.forEach(function(t){et.prototype[t]=function(){let r=this._baseState,n=Array.prototype.slice.call(arguments);return Mr(r.tag===null),r.tag=t,this._useArgs(n),this}});et.prototype.use=function(e){Mr(e);let r=this._baseState;return Mr(r.use===null),r.use=e,this};et.prototype.optional=function(){let e=this._baseState;return e.optional=!0,this};et.prototype.def=function(e){let r=this._baseState;return Mr(r.default===null),r.default=e,r.optional=!0,this};et.prototype.explicit=function(e){let r=this._baseState;return Mr(r.explicit===null&&r.implicit===null),r.explicit=e,this};et.prototype.implicit=function(e){let r=this._baseState;return Mr(r.explicit===null&&r.implicit===null),r.implicit=e,this};et.prototype.obj=function(){let e=this._baseState,r=Array.prototype.slice.call(arguments);return e.obj=!0,r.length!==0&&this._useArgs(r),this};et.prototype.key=function(e){let r=this._baseState;return Mr(r.key===null),r.key=e,this};et.prototype.any=function(){let e=this._baseState;return e.any=!0,this};et.prototype.choice=function(e){let r=this._baseState;return Mr(r.choice===null),r.choice=e,this._useArgs(Object.keys(e).map(function(n){return e[n]})),this};et.prototype.contains=function(e){let r=this._baseState;return Mr(r.use===null),r.contains=e,this};et.prototype._decode=function(e,r){let n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,r));let i=n.default,a=!0,d=null;if(n.key!==null&&(d=e.enterKey(n.key)),n.optional){let y=null;if(n.explicit!==null?y=n.explicit:n.implicit!==null?y=n.implicit:n.tag!==null&&(y=n.tag),y===null&&!n.any){let x=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,r):this._decodeChoice(e,r),a=!0}catch{a=!1}e.restore(x)}else if(a=this._peekTag(e,y,n.any),e.isError(a))return a}let v;if(n.obj&&a&&(v=e.enterObject()),a){if(n.explicit!==null){let x=this._decodeTag(e,n.explicit);if(e.isError(x))return x;e=x}let y=e.offset;if(n.use===null&&n.choice===null){let x;n.any&&(x=e.save());let B=this._decodeTag(e,n.implicit!==null?n.implicit:n.tag,n.any);if(e.isError(B))return B;n.any?i=e.raw(x):e=B}if(r&&r.track&&n.tag!==null&&r.track(e.path(),y,e.length,"tagged"),r&&r.track&&n.tag!==null&&r.track(e.path(),e.offset,e.length,"content"),n.any||(n.choice===null?i=this._decodeGeneric(n.tag,e,r):i=this._decodeChoice(e,r)),e.isError(i))return i;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(B){B._decode(e,r)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){let x=new D6(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(x,r)}}return n.obj&&a&&(i=e.leaveObject(v)),n.key!==null&&(i!==null||a===!0)?e.leaveKey(d,n.key,i):d!==null&&e.exitKey(d),i};et.prototype._decodeGeneric=function(e,r,n){let i=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(r,e,i.args[0],n):/str$/.test(e)?this._decodeStr(r,e,n):e==="objid"&&i.args?this._decodeObjid(r,i.args[0],i.args[1],n):e==="objid"?this._decodeObjid(r,null,null,n):e==="gentime"||e==="utctime"?this._decodeTime(r,e,n):e==="null_"?this._decodeNull(r,n):e==="bool"?this._decodeBool(r,n):e==="objDesc"?this._decodeStr(r,e,n):e==="int"||e==="enum"?this._decodeInt(r,i.args&&i.args[0],n):i.use!==null?this._getUse(i.use,r._reporterState.obj)._decode(r,n):r.error("unknown tag: "+e)};et.prototype._getUse=function(e,r){let n=this._baseState;return n.useDecoder=this._use(e,r),Mr(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder};et.prototype._decodeChoice=function(e,r){let n=this._baseState,i=null,a=!1;return Object.keys(n.choice).some(function(d){let v=e.save(),y=n.choice[d];try{let x=y._decode(e,r);if(e.isError(x))return!1;i={type:d,value:x},a=!0}catch{return e.restore(v),!1}return!0},this),a?i:e.error("Choice not matched")};et.prototype._createEncoderBuffer=function(e){return new F6(e,this.reporter)};et.prototype._encode=function(e,r,n){let i=this._baseState;if(i.default!==null&&i.default===e)return;let a=this._encodeValue(e,r,n);if(a!==void 0&&!this._skipDefault(a,r,n))return a};et.prototype._encodeValue=function(e,r,n){let i=this._baseState;if(i.parent===null)return i.children[0]._encode(e,r||new R6);let a=null;if(this.reporter=r,i.optional&&e===void 0)if(i.default!==null)e=i.default;else return;let d=null,v=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,r);else if(i.contains)d=this._getUse(i.contains,n)._encode(e,r),v=!0;else if(i.children)d=i.children.map(function(y){if(y._baseState.tag==="null_")return y._encode(null,r,e);if(y._baseState.key===null)return r.error("Child should have a key");let x=r.enterKey(y._baseState.key);if(typeof e!="object")return r.error("Child expected, but input is not object");let B=y._encode(e[y._baseState.key],r,e);return r.leaveKey(x),B},this).filter(function(y){return y}),d=this._createEncoderBuffer(d);else if(i.tag==="seqof"||i.tag==="setof"){if(!(i.args&&i.args.length===1))return r.error("Too many args for : "+i.tag);if(!Array.isArray(e))return r.error("seqof/setof, but data is not Array");let y=this.clone();y._baseState.implicit=null,d=this._createEncoderBuffer(e.map(function(x){let B=this._baseState;return this._getUse(B.args[0],e)._encode(x,r)},y))}else i.use!==null?a=this._getUse(i.use,n)._encode(e,r):(d=this._encodePrimitive(i.tag,e),v=!0);if(!i.any&&i.choice===null){let y=i.implicit!==null?i.implicit:i.tag,x=i.implicit===null?"universal":"context";y===null?i.use===null&&r.error("Tag could be omitted only for .use()"):i.use===null&&(a=this._encodeComposite(y,v,x,d))}return i.explicit!==null&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a};et.prototype._encodeChoice=function(e,r){let n=this._baseState,i=n.choice[e.type];return i||Mr(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),i._encode(e.value,r)};et.prototype._encodePrimitive=function(e,r){let n=this._baseState;if(/str$/.test(e))return this._encodeStr(r,e);if(e==="objid"&&n.args)return this._encodeObjid(r,n.reverseArgs[0],n.args[1]);if(e==="objid")return this._encodeObjid(r,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(r,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(r,n.args&&n.reverseArgs[0]);if(e==="bool")return this._encodeBool(r);if(e==="objDesc")return this._encodeStr(r,e);throw new Error("Unsupported tag: "+e)};et.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};et.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}});var $f=V(da=>{"use strict";var dC=A(M());function P1(t){let e={};return Object.keys(t).forEach(function(r){(r|0)==r&&(r=r|0);let n=t[r];e[n]=r}),e}da.tagClass={0:"universal",1:"application",2:"context",3:"private"};da.tagClassByName=P1(da.tagClass);da.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};da.tagByName=P1(da.tag)});var ll=V((hC,F1)=>{"use strict";var pC=A(M()),k6=tr(),di=jf().Buffer,L1=Yf(),ul=$f();function R1(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new vn,this.tree._init(t.body)}F1.exports=R1;R1.prototype.encode=function(e,r){return this.tree._encode(e,r).join()};function vn(t){L1.call(this,"der",t)}k6(vn,L1);vn.prototype._encodeComposite=function(e,r,n,i){let a=J6(e,r,n,this.reporter);if(i.length<128){let y=di.alloc(2);return y[0]=a,y[1]=i.length,this._createEncoderBuffer([y,i])}let d=1;for(let y=i.length;y>=256;y>>=8)d++;let v=di.alloc(2+d);v[0]=a,v[1]=128|d;for(let y=1+d,x=i.length;x>0;y--,x>>=8)v[y]=x&255;return this._createEncoderBuffer([v,i])};vn.prototype._encodeStr=function(e,r){if(r==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(r==="bmpstr"){let n=di.alloc(e.length*2);for(let i=0;i<e.length;i++)n.writeUInt16BE(e.charCodeAt(i),i*2);return this._createEncoderBuffer(n)}else return r==="numstr"?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):r==="printstr"?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(r)?this._createEncoderBuffer(e):r==="objDesc"?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+r+" unsupported")};vn.prototype._encodeObjid=function(e,r,n){if(typeof e=="string"){if(!r)return this.reporter.error("string objid given, but no values map found");if(!r.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=r[e].split(/[\s.]+/g);for(let v=0;v<e.length;v++)e[v]|=0}else if(Array.isArray(e)){e=e.slice();for(let v=0;v<e.length;v++)e[v]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}let i=0;for(let v=0;v<e.length;v++){let y=e[v];for(i++;y>=128;y>>=7)i++}let a=di.alloc(i),d=a.length-1;for(let v=e.length-1;v>=0;v--){let y=e[v];for(a[d--]=y&127;(y>>=7)>0;)a[d--]=128|y&127}return this._createEncoderBuffer(a)};function Vr(t){return t<10?"0"+t:t}vn.prototype._encodeTime=function(e,r){let n,i=new Date(e);return r==="gentime"?n=[Vr(i.getUTCFullYear()),Vr(i.getUTCMonth()+1),Vr(i.getUTCDate()),Vr(i.getUTCHours()),Vr(i.getUTCMinutes()),Vr(i.getUTCSeconds()),"Z"].join(""):r==="utctime"?n=[Vr(i.getUTCFullYear()%100),Vr(i.getUTCMonth()+1),Vr(i.getUTCDate()),Vr(i.getUTCHours()),Vr(i.getUTCMinutes()),Vr(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(n,"octstr")};vn.prototype._encodeNull=function(){return this._createEncoderBuffer("")};vn.prototype._encodeInt=function(e,r){if(typeof e=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=r[e]}if(typeof e!="number"&&!di.isBuffer(e)){let a=e.toArray();!e.sign&&a[0]&128&&a.unshift(0),e=di.from(a)}if(di.isBuffer(e)){let a=e.length;e.length===0&&a++;let d=di.alloc(a);return e.copy(d),e.length===0&&(d[0]=0),this._createEncoderBuffer(d)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let a=e;a>=256;a>>=8)n++;let i=new Array(n);for(let a=i.length-1;a>=0;a--)i[a]=e&255,e>>=8;return i[0]&128&&i.unshift(0),this._createEncoderBuffer(di.from(i))};vn.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};vn.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getEncoder("der").tree};vn.prototype._skipDefault=function(e,r,n){let i=this._baseState,a;if(i.default===null)return!1;let d=e.join();if(i.defaultBuffer===void 0&&(i.defaultBuffer=this._encodeValue(i.default,r,n).join()),d.length!==i.defaultBuffer.length)return!1;for(a=0;a<d.length;a++)if(d[a]!==i.defaultBuffer[a])return!1;return!0};function J6(t,e,r,n){let i;if(t==="seqof"?t="seq":t==="setof"&&(t="set"),ul.tagByName.hasOwnProperty(t))i=ul.tagByName[t];else if(typeof t=="number"&&(t|0)===t)i=t;else return n.error("Unknown tag: "+t);return i>=31?n.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|=ul.tagClassByName[r||"universal"]<<6,i)}});var O1=V((bC,D1)=>{"use strict";var gC=A(M()),U6=tr(),dl=ll();function hl(t){dl.call(this,t),this.enc="pem"}U6(hl,dl);D1.exports=hl;hl.prototype.encode=function(e,r){let i=dl.prototype.encode.call(this,e).toString("base64"),a=["-----BEGIN "+r.label+"-----"];for(let d=0;d<i.length;d+=64)a.push(i.slice(d,d+64));return a.push("-----END "+r.label+"-----"),a.join(`
5
+ `)}});var pl=V(N1=>{"use strict";var mC=A(M()),I1=N1;I1.der=ll();I1.pem=O1()});var gl=V((xC,G1)=>{"use strict";var yC=A(M()),H6=tr(),q6=al(),k1=co().DecoderBuffer,U1=Yf(),J1=$f();function H1(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new Dr,this.tree._init(t.body)}G1.exports=H1;H1.prototype.decode=function(e,r){return k1.isDecoderBuffer(e)||(e=new k1(e,r)),this.tree._decode(e,r)};function Dr(t){U1.call(this,"der",t)}H6(Dr,U1);Dr.prototype._peekTag=function(e,r,n){if(e.isEmpty())return!1;let i=e.save(),a=bl(e,'Failed to peek tag: "'+r+'"');return e.isError(a)?a:(e.restore(i),a.tag===r||a.tagStr===r||a.tagStr+"of"===r||n)};Dr.prototype._decodeTag=function(e,r,n){let i=bl(e,'Failed to decode tag of "'+r+'"');if(e.isError(i))return i;let a=q1(e,i.primitive,'Failed to get length of "'+r+'"');if(e.isError(a))return a;if(!n&&i.tag!==r&&i.tagStr!==r&&i.tagStr+"of"!==r)return e.error('Failed to match tag: "'+r+'"');if(i.primitive||a!==null)return e.skip(a,'Failed to match body of: "'+r+'"');let d=e.save(),v=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(v)?v:(a=e.offset-d.offset,e.restore(d),e.skip(a,'Failed to match body of: "'+r+'"'))};Dr.prototype._skipUntilEnd=function(e,r){for(;;){let n=bl(e,r);if(e.isError(n))return n;let i=q1(e,n.primitive,r);if(e.isError(i))return i;let a;if(n.primitive||i!==null?a=e.skip(i):a=this._skipUntilEnd(e,r),e.isError(a))return a;if(n.tagStr==="end")break}};Dr.prototype._decodeList=function(e,r,n,i){let a=[];for(;!e.isEmpty();){let d=this._peekTag(e,"end");if(e.isError(d))return d;let v=n.decode(e,"der",i);if(e.isError(v)&&d)break;a.push(v)}return a};Dr.prototype._decodeStr=function(e,r){if(r==="bitstr"){let n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}else if(r==="bmpstr"){let n=e.raw();if(n.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");let i="";for(let a=0;a<n.length/2;a++)i+=String.fromCharCode(n.readUInt16BE(a*2));return i}else if(r==="numstr"){let n=e.raw().toString("ascii");return this._isNumstr(n)?n:e.error("Decoding of string type: numstr unsupported characters")}else{if(r==="octstr")return e.raw();if(r==="objDesc")return e.raw();if(r==="printstr"){let n=e.raw().toString("ascii");return this._isPrintstr(n)?n:e.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(r)?e.raw().toString():e.error("Decoding of string type: "+r+" unsupported")}};Dr.prototype._decodeObjid=function(e,r,n){let i,a=[],d=0,v=0;for(;!e.isEmpty();)v=e.readUInt8(),d<<=7,d|=v&127,v&128||(a.push(d),d=0);v&128&&a.push(d);let y=a[0]/40|0,x=a[0]%40;if(n?i=a:i=[y,x].concat(a.slice(1)),r){let B=r[i.join(" ")];B===void 0&&(B=r[i.join(".")]),B!==void 0&&(i=B)}return i};Dr.prototype._decodeTime=function(e,r){let n=e.raw().toString(),i,a,d,v,y,x;if(r==="gentime")i=n.slice(0,4)|0,a=n.slice(4,6)|0,d=n.slice(6,8)|0,v=n.slice(8,10)|0,y=n.slice(10,12)|0,x=n.slice(12,14)|0;else if(r==="utctime")i=n.slice(0,2)|0,a=n.slice(2,4)|0,d=n.slice(4,6)|0,v=n.slice(6,8)|0,y=n.slice(8,10)|0,x=n.slice(10,12)|0,i<70?i=2e3+i:i=1900+i;else return e.error("Decoding "+r+" time is not supported yet");return Date.UTC(i,a-1,d,v,y,x,0)};Dr.prototype._decodeNull=function(){return null};Dr.prototype._decodeBool=function(e){let r=e.readUInt8();return e.isError(r)?r:r!==0};Dr.prototype._decodeInt=function(e,r){let n=e.raw(),i=new q6(n);return r&&(i=r[i.toString(10)]||i),i};Dr.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getDecoder("der").tree};function bl(t,e){let r=t.readUInt8(e);if(t.isError(r))return r;let n=J1.tagClass[r>>6],i=(r&32)===0;if((r&31)===31){let d=r;for(r=0;(d&128)===128;){if(d=t.readUInt8(e),t.isError(d))return d;r<<=7,r|=d&127}}else r&=31;let a=J1.tag[r];return{cls:n,primitive:i,tag:r,tagStr:a}}function q1(t,e,r){let n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&n===128)return null;if(!(n&128))return n;let i=n&127;if(i>4)return t.error("length octect is too long");n=0;for(let a=0;a<i;a++){n<<=8;let d=t.readUInt8(r);if(t.isError(d))return d;n|=d}return n}});var z1=V((wC,X1)=>{"use strict";var AC=A(M()),G6=tr(),X6=jf().Buffer,vl=gl();function ml(t){vl.call(this,t),this.enc="pem"}G6(ml,vl);X1.exports=ml;ml.prototype.decode=function(e,r){let n=e.toString().split(/[\r\n]+/g),i=r.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,d=-1,v=-1;for(let B=0;B<n.length;B++){let C=n[B].match(a);if(C!==null&&C[2]===i)if(d===-1){if(C[1]!=="BEGIN")break;d=B}else{if(C[1]!=="END")break;v=B;break}}if(d===-1||v===-1)throw new Error("PEM section not found for: "+i);let y=n.slice(d+1,v).join("");y.replace(/[^a-z0-9+/=]+/gi,"");let x=X6.from(y,"base64");return vl.prototype.decode.call(this,x,r)}});var xl=V(Z1=>{"use strict";var SC=A(M()),K1=Z1;K1.der=gl();K1.pem=z1()});var j1=V(V1=>{"use strict";var EC=A(M()),z6=pl(),K6=xl(),Z6=tr(),V6=V1;V6.define=function(e,r){return new uo(e,r)};function uo(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}uo.prototype._createNamed=function(e){let r=this.name;function n(i){this._initNamed(i,r)}return Z6(n,e),n.prototype._initNamed=function(a,d){e.call(this,a,d)},new n(this)};uo.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(K6[e])),this.decoders[e]};uo.prototype.decode=function(e,r,n){return this._getDecoder(r).decode(e,n)};uo.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(z6[e])),this.encoders[e]};uo.prototype.encode=function(e,r,n){return this._getEncoder(r).encode(e,n)}});var W1=V(Q1=>{"use strict";var BC=A(M()),e0=Q1;e0.Reporter=Qf().Reporter;e0.DecoderBuffer=co().DecoderBuffer;e0.EncoderBuffer=co().EncoderBuffer;e0.Node=Yf()});var eb=V($1=>{"use strict";var PC=A(M()),Y1=$1;Y1._reverse=function(e){let r={};return Object.keys(e).forEach(function(n){(n|0)==n&&(n=n|0);let i=e[n];r[i]=n}),r};Y1.der=$f()});var rb=V(tb=>{"use strict";var RC=A(M()),lo=tb;lo.bignum=al();lo.define=j1().define;lo.base=W1();lo.constants=eb();lo.decoders=xl();lo.encoders=pl()});var ub=V(Dn=>{"use strict";var DC=A(M()),j6=Dn&&Dn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Q6=Dn&&Dn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),W6=Dn&&Dn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&j6(e,t,r);return Q6(e,t),e};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.pemTojwk=s4;Dn.jwkTopem=f4;var hi=W6(rb());function Y6(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function yl(t){return Y6(Buffer.from(t,"hex").toString("base64"))}var nb=hi.define("RSAPublicKey",function(){this.seq().obj(this.key("n").int(),this.key("e").int())}),ib=hi.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())}),$6=hi.define("PublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(ib),this.key("publicKey").bitstr())}),ab=hi.define("Version",function(){this.int({0:"two-prime",1:"multi"})}),e4=hi.define("OtherPrimeInfos",function(){this.seq().obj(this.key("ri").int(),this.key("di").int(),this.key("ti").int())}),ob=hi.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").use(ab),this.key("n").int(),this.key("e").int(),this.key("d").int(),this.key("p").int(),this.key("q").int(),this.key("dp").int(),this.key("dq").int(),this.key("qi").int(),this.key("other").optional().use(e4))}),t4=hi.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").use(ab),this.key("algorithm").use(ib),this.key("privateKey").bitstr())});function sb(t,e){return e=e||{},Object.keys(e).forEach(function(r){t[r]=e[r]}),t}function wl(t){return t.length%2===1?"0"+t:t}function fb(t,e){var r=nb.decode(t,"der"),n=wl(r.e.toString(16)),i={kty:"RSA",n:Ii(r.n),e:yl(n)};return sb(i,e)}function cb(t,e){var r=ob.decode(t,"der"),n=wl(r.e.toString(16)),i={kty:"RSA",n:Ii(r.n),e:yl(n),d:Ii(r.d),p:Ii(r.p),q:Ii(r.q),dp:Ii(r.dp),dq:Ii(r.dq),qi:Ii(r.qi)};return sb(i,e)}function r4(t,e){var r=$6.decode(t,"der");return fb(r.publicKey.data,e)}function n4(t,e){var r=t4.decode(t,"der");return cb(r.privateKey.data,e)}function i4(t){var e=/^-----BEGIN (RSA )?(PUBLIC|PRIVATE) KEY-----$/.exec(t);if(!e)return null;var r=!!e[1],n=e[2]==="PRIVATE";return n?r?cb:n4:r?fb:r4}function a4(t){return{n:Oi(t.n),e:Oi(t.e),d:t.d&&Oi(t.d),p:t.p&&Oi(t.p),q:t.q&&Oi(t.q),dp:t.dp&&Oi(t.dp),dq:t.dq&&Oi(t.dq),qi:t.qi&&Oi(t.qi)}}function Ii(t){return yl(wl(t.toString(16)))}function o4(t){return new hi.bignum(Buffer.from(t,"base64"))}function Oi(t){return/^[0-9]+$/.test(t)?new hi.bignum(t,10):o4(t)}function s4(t,e){var r=t.toString().split(/(\r\n|\r|\n)+/g);r=r.filter(function(i){return i.trim().length!==0});var n=i4(r[0]);return r=r.slice(1,-1).join(""),n(Buffer.from(r.replace(/[^\w\d\+\/=]+/g,""),"base64"),e)}function f4(t){var e=a4(t),r=!!e.d,n=r?"PRIVATE":"PUBLIC",i="-----BEGIN RSA "+n+` KEY-----
6
6
  `,a=`
7
7
  -----END RSA `+n+` KEY-----
8
- `,d=Buffer.alloc(0);r?(e.version="two-prime",d=ab.encode(e,"der")):d=rb.encode(e,"der");var v=d.toString("base64").match(/.{1,64}/g).join(`
9
- `);return i+v+a}});var hb=V((HC,t0)=>{var qC=A(S());(function(){"use strict";var t="input is invalid type",e="finalize already called",r=typeof window=="object",n=r?window:{};n.JS_SHA3_NO_WINDOW&&(r=!1);var i=!r&&typeof self=="object",a=!n.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;a?n=global:i&&(n=self);var d=!n.JS_SHA3_NO_COMMON_JS&&typeof t0=="object"&&t0.exports,v=typeof define=="function"&&define.amd,y=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",x="0123456789abcdef".split(""),B=[31,7936,2031616,520093696],C=[4,1024,262144,67108864],D=[1,256,65536,16777216],F=[6,1536,393216,100663296],P=[0,8,16,24],q=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],W=[224,256,384,512],K=[128,256],ne=["hex","buffer","arrayBuffer","array","digest"],$={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(T){return Object.prototype.toString.call(T)==="[object Array]"}),y&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(T){return typeof T=="object"&&T.buffer&&T.buffer.constructor===ArrayBuffer});for(var ae=function(T,N,X){return function(Z){return new b(T,N,T).update(Z)[X]()}},ie=function(T,N,X){return function(Z,_){return new b(T,N,_).update(Z)[X]()}},ee=function(T,N,X){return function(Z,_,R,L){return f["cshake"+T].update(Z,_,R,L)[X]()}},ce=function(T,N,X){return function(Z,_,R,L){return f["kmac"+T].update(Z,_,R,L)[X]()}},te=function(T,N,X,Z){for(var _=0;_<ne.length;++_){var R=ne[_];T[R]=N(X,Z,R)}return T},Y=function(T,N){var X=ae(T,N,"hex");return X.create=function(){return new b(T,N,T)},X.update=function(Z){return X.create().update(Z)},te(X,ae,T,N)},M=function(T,N){var X=ie(T,N,"hex");return X.create=function(Z){return new b(T,N,Z)},X.update=function(Z,_){return X.create(_).update(Z)},te(X,ie,T,N)},s=function(T,N){var X=$[T],Z=ee(T,N,"hex");return Z.create=function(_,R,L){return!R&&!L?f["shake"+T].create(_):new b(T,N,_).bytepad([R,L],X)},Z.update=function(_,R,L,O){return Z.create(R,L,O).update(_)},te(Z,ee,T,N)},u=function(T,N){var X=$[T],Z=ce(T,N,"hex");return Z.create=function(_,R,L){return new w(T,N,R).bytepad(["KMAC",L],X).bytepad([_],X)},Z.update=function(_,R,L,O){return Z.create(_,L,O).update(R)},te(Z,ce,T,N)},l=[{name:"keccak",padding:D,bits:W,createMethod:Y},{name:"sha3",padding:F,bits:W,createMethod:Y},{name:"shake",padding:B,bits:K,createMethod:M},{name:"cshake",padding:C,bits:K,createMethod:s},{name:"kmac",padding:C,bits:K,createMethod:u}],f={},c=[],g=0;g<l.length;++g)for(var m=l[g],h=m.bits,o=0;o<h.length;++o){var p=m.name+"_"+h[o];if(c.push(p),f[p]=m.createMethod(h[o],m.padding),m.name!=="sha3"){var E=m.name+h[o];c.push(E),f[E]=f[p]}}function b(T,N,X){this.blocks=[],this.s=[],this.padding=N,this.outputBits=X,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(T<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=X>>5,this.extraBytes=(X&31)>>3;for(var Z=0;Z<50;++Z)this.s[Z]=0}b.prototype.update=function(T){if(this.finalized)throw new Error(e);var N,X=typeof T;if(X!=="string"){if(X==="object"){if(T===null)throw new Error(t);if(y&&T.constructor===ArrayBuffer)T=new Uint8Array(T);else if(!Array.isArray(T)&&(!y||!ArrayBuffer.isView(T)))throw new Error(t)}else throw new Error(t);N=!0}for(var Z=this.blocks,_=this.byteCount,R=T.length,L=this.blockCount,O=0,G=this.s,I,J;O<R;){if(this.reset)for(this.reset=!1,Z[0]=this.block,I=1;I<L+1;++I)Z[I]=0;if(N)for(I=this.start;O<R&&I<_;++O)Z[I>>2]|=T[O]<<P[I++&3];else for(I=this.start;O<R&&I<_;++O)J=T.charCodeAt(O),J<128?Z[I>>2]|=J<<P[I++&3]:J<2048?(Z[I>>2]|=(192|J>>6)<<P[I++&3],Z[I>>2]|=(128|J&63)<<P[I++&3]):J<55296||J>=57344?(Z[I>>2]|=(224|J>>12)<<P[I++&3],Z[I>>2]|=(128|J>>6&63)<<P[I++&3],Z[I>>2]|=(128|J&63)<<P[I++&3]):(J=65536+((J&1023)<<10|T.charCodeAt(++O)&1023),Z[I>>2]|=(240|J>>18)<<P[I++&3],Z[I>>2]|=(128|J>>12&63)<<P[I++&3],Z[I>>2]|=(128|J>>6&63)<<P[I++&3],Z[I>>2]|=(128|J&63)<<P[I++&3]);if(this.lastByteIndex=I,I>=_){for(this.start=I-_,this.block=Z[L],I=0;I<L;++I)G[I]^=Z[I];H(G),this.reset=!0}else this.start=I}return this},b.prototype.encode=function(T,N){var X=T&255,Z=1,_=[X];for(T=T>>8,X=T&255;X>0;)_.unshift(X),T=T>>8,X=T&255,++Z;return N?_.push(Z):_.unshift(Z),this.update(_),_.length},b.prototype.encodeString=function(T){var N,X=typeof T;if(X!=="string"){if(X==="object"){if(T===null)throw new Error(t);if(y&&T.constructor===ArrayBuffer)T=new Uint8Array(T);else if(!Array.isArray(T)&&(!y||!ArrayBuffer.isView(T)))throw new Error(t)}else throw new Error(t);N=!0}var Z=0,_=T.length;if(N)Z=_;else for(var R=0;R<T.length;++R){var L=T.charCodeAt(R);L<128?Z+=1:L<2048?Z+=2:L<55296||L>=57344?Z+=3:(L=65536+((L&1023)<<10|T.charCodeAt(++R)&1023),Z+=4)}return Z+=this.encode(Z*8),this.update(T),Z},b.prototype.bytepad=function(T,N){for(var X=this.encode(N),Z=0;Z<T.length;++Z)X+=this.encodeString(T[Z]);var _=N-X%N,R=[];return R.length=_,this.update(R),this},b.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var T=this.blocks,N=this.lastByteIndex,X=this.blockCount,Z=this.s;if(T[N>>2]|=this.padding[N&3],this.lastByteIndex===this.byteCount)for(T[0]=T[X],N=1;N<X+1;++N)T[N]=0;for(T[X-1]|=2147483648,N=0;N<X;++N)Z[N]^=T[N];H(Z)}},b.prototype.toString=b.prototype.hex=function(){this.finalize();for(var T=this.blockCount,N=this.s,X=this.outputBlocks,Z=this.extraBytes,_=0,R=0,L="",O;R<X;){for(_=0;_<T&&R<X;++_,++R)O=N[_],L+=x[O>>4&15]+x[O&15]+x[O>>12&15]+x[O>>8&15]+x[O>>20&15]+x[O>>16&15]+x[O>>28&15]+x[O>>24&15];R%T===0&&(H(N),_=0)}return Z&&(O=N[_],L+=x[O>>4&15]+x[O&15],Z>1&&(L+=x[O>>12&15]+x[O>>8&15]),Z>2&&(L+=x[O>>20&15]+x[O>>16&15])),L},b.prototype.arrayBuffer=function(){this.finalize();var T=this.blockCount,N=this.s,X=this.outputBlocks,Z=this.extraBytes,_=0,R=0,L=this.outputBits>>3,O;Z?O=new ArrayBuffer(X+1<<2):O=new ArrayBuffer(L);for(var G=new Uint32Array(O);R<X;){for(_=0;_<T&&R<X;++_,++R)G[R]=N[_];R%T===0&&H(N)}return Z&&(G[_]=N[_],O=O.slice(0,L)),O},b.prototype.buffer=b.prototype.arrayBuffer,b.prototype.digest=b.prototype.array=function(){this.finalize();for(var T=this.blockCount,N=this.s,X=this.outputBlocks,Z=this.extraBytes,_=0,R=0,L=[],O,G;R<X;){for(_=0;_<T&&R<X;++_,++R)O=R<<2,G=N[_],L[O]=G&255,L[O+1]=G>>8&255,L[O+2]=G>>16&255,L[O+3]=G>>24&255;R%T===0&&H(N)}return Z&&(O=R<<2,G=N[_],L[O]=G&255,Z>1&&(L[O+1]=G>>8&255),Z>2&&(L[O+2]=G>>16&255)),L};function w(T,N,X){b.call(this,T,N,X)}w.prototype=new b,w.prototype.finalize=function(){return this.encode(this.outputBits,!0),b.prototype.finalize.call(this)};var H=function(T){var N,X,Z,_,R,L,O,G,I,J,z,k,U,Q,j,re,De,se,le,Ue,oe,fe,Xe,ge,ve,vt,pe,be,Ye,de,ue,Kt,me,xe,Zt,ye,we,Vt,Ae,Me,jt,Se,Te,Qt,Ee,_e,Wt,Be,Ce,Yt,Pe,Le,$t,Re,Fe,Dt,Ne,ke,St,Tt,Et,_t,Bt;for(Z=0;Z<48;Z+=2)_=T[0]^T[10]^T[20]^T[30]^T[40],R=T[1]^T[11]^T[21]^T[31]^T[41],L=T[2]^T[12]^T[22]^T[32]^T[42],O=T[3]^T[13]^T[23]^T[33]^T[43],G=T[4]^T[14]^T[24]^T[34]^T[44],I=T[5]^T[15]^T[25]^T[35]^T[45],J=T[6]^T[16]^T[26]^T[36]^T[46],z=T[7]^T[17]^T[27]^T[37]^T[47],k=T[8]^T[18]^T[28]^T[38]^T[48],U=T[9]^T[19]^T[29]^T[39]^T[49],N=k^(L<<1|O>>>31),X=U^(O<<1|L>>>31),T[0]^=N,T[1]^=X,T[10]^=N,T[11]^=X,T[20]^=N,T[21]^=X,T[30]^=N,T[31]^=X,T[40]^=N,T[41]^=X,N=_^(G<<1|I>>>31),X=R^(I<<1|G>>>31),T[2]^=N,T[3]^=X,T[12]^=N,T[13]^=X,T[22]^=N,T[23]^=X,T[32]^=N,T[33]^=X,T[42]^=N,T[43]^=X,N=L^(J<<1|z>>>31),X=O^(z<<1|J>>>31),T[4]^=N,T[5]^=X,T[14]^=N,T[15]^=X,T[24]^=N,T[25]^=X,T[34]^=N,T[35]^=X,T[44]^=N,T[45]^=X,N=G^(k<<1|U>>>31),X=I^(U<<1|k>>>31),T[6]^=N,T[7]^=X,T[16]^=N,T[17]^=X,T[26]^=N,T[27]^=X,T[36]^=N,T[37]^=X,T[46]^=N,T[47]^=X,N=J^(_<<1|R>>>31),X=z^(R<<1|_>>>31),T[8]^=N,T[9]^=X,T[18]^=N,T[19]^=X,T[28]^=N,T[29]^=X,T[38]^=N,T[39]^=X,T[48]^=N,T[49]^=X,Q=T[0],j=T[1],_e=T[11]<<4|T[10]>>>28,Wt=T[10]<<4|T[11]>>>28,be=T[20]<<3|T[21]>>>29,Ye=T[21]<<3|T[20]>>>29,Tt=T[31]<<9|T[30]>>>23,Et=T[30]<<9|T[31]>>>23,Se=T[40]<<18|T[41]>>>14,Te=T[41]<<18|T[40]>>>14,xe=T[2]<<1|T[3]>>>31,Zt=T[3]<<1|T[2]>>>31,re=T[13]<<12|T[12]>>>20,De=T[12]<<12|T[13]>>>20,Be=T[22]<<10|T[23]>>>22,Ce=T[23]<<10|T[22]>>>22,de=T[33]<<13|T[32]>>>19,ue=T[32]<<13|T[33]>>>19,_t=T[42]<<2|T[43]>>>30,Bt=T[43]<<2|T[42]>>>30,Re=T[5]<<30|T[4]>>>2,Fe=T[4]<<30|T[5]>>>2,ye=T[14]<<6|T[15]>>>26,we=T[15]<<6|T[14]>>>26,se=T[25]<<11|T[24]>>>21,le=T[24]<<11|T[25]>>>21,Yt=T[34]<<15|T[35]>>>17,Pe=T[35]<<15|T[34]>>>17,Kt=T[45]<<29|T[44]>>>3,me=T[44]<<29|T[45]>>>3,ge=T[6]<<28|T[7]>>>4,ve=T[7]<<28|T[6]>>>4,Dt=T[17]<<23|T[16]>>>9,Ne=T[16]<<23|T[17]>>>9,Vt=T[26]<<25|T[27]>>>7,Ae=T[27]<<25|T[26]>>>7,Ue=T[36]<<21|T[37]>>>11,oe=T[37]<<21|T[36]>>>11,Le=T[47]<<24|T[46]>>>8,$t=T[46]<<24|T[47]>>>8,Qt=T[8]<<27|T[9]>>>5,Ee=T[9]<<27|T[8]>>>5,vt=T[18]<<20|T[19]>>>12,pe=T[19]<<20|T[18]>>>12,ke=T[29]<<7|T[28]>>>25,St=T[28]<<7|T[29]>>>25,Me=T[38]<<8|T[39]>>>24,jt=T[39]<<8|T[38]>>>24,fe=T[48]<<14|T[49]>>>18,Xe=T[49]<<14|T[48]>>>18,T[0]=Q^~re&se,T[1]=j^~De&le,T[10]=ge^~vt&be,T[11]=ve^~pe&Ye,T[20]=xe^~ye&Vt,T[21]=Zt^~we&Ae,T[30]=Qt^~_e&Be,T[31]=Ee^~Wt&Ce,T[40]=Re^~Dt&ke,T[41]=Fe^~Ne&St,T[2]=re^~se&Ue,T[3]=De^~le&oe,T[12]=vt^~be&de,T[13]=pe^~Ye&ue,T[22]=ye^~Vt&Me,T[23]=we^~Ae&jt,T[32]=_e^~Be&Yt,T[33]=Wt^~Ce&Pe,T[42]=Dt^~ke&Tt,T[43]=Ne^~St&Et,T[4]=se^~Ue&fe,T[5]=le^~oe&Xe,T[14]=be^~de&Kt,T[15]=Ye^~ue&me,T[24]=Vt^~Me&Se,T[25]=Ae^~jt&Te,T[34]=Be^~Yt&Le,T[35]=Ce^~Pe&$t,T[44]=ke^~Tt&_t,T[45]=St^~Et&Bt,T[6]=Ue^~fe&Q,T[7]=oe^~Xe&j,T[16]=de^~Kt&ge,T[17]=ue^~me&ve,T[26]=Me^~Se&xe,T[27]=jt^~Te&Zt,T[36]=Yt^~Le&Qt,T[37]=Pe^~$t&Ee,T[46]=Tt^~_t&Re,T[47]=Et^~Bt&Fe,T[8]=fe^~Q&re,T[9]=Xe^~j&De,T[18]=Kt^~ge&vt,T[19]=me^~ve&pe,T[28]=Se^~xe&ye,T[29]=Te^~Zt&we,T[38]=Le^~Qt&_e,T[39]=$t^~Ee&Wt,T[48]=_t^~Re&Dt,T[49]=Bt^~Fe&Ne,T[0]^=q[Z],T[1]^=q[Z+1]};if(d)t0.exports=f;else{for(g=0;g<c.length;++g)n[c[g]]=f[c[g]];v&&define(function(){return f})}})()});var pb=V(r0=>{"use strict";var XC=A(S());Object.defineProperty(r0,"__esModule",{value:!0});r0.version=void 0;r0.version="logger/5.8.0"});var Ct=V(In=>{"use strict";var KC=A(S());Object.defineProperty(In,"__esModule",{value:!0});In.Logger=In.ErrorCode=In.LogLevel=void 0;var bb=!1,gb=!1,n0={debug:1,default:2,info:2,warning:3,error:4,off:5},vb=n0.default,s4=pb(),wl=null;function f4(){try{var t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(function(e){try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if("\xE9".normalize("NFD")!=="e\u0301")throw new Error("broken implementation")}catch(e){return e.message}return null}var mb=f4(),yb;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(yb=In.LogLevel||(In.LogLevel={}));var On;(function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"})(On=In.ErrorCode||(In.ErrorCode={}));var xb="0123456789abcdef",c4=function(){function t(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}return t.prototype._log=function(e,r){var n=e.toLowerCase();n0[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(vb>n0[n])&&console.log.apply(console,r)},t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._log(t.levels.DEBUG,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._log(t.levels.INFO,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._log(t.levels.WARNING,e)},t.prototype.makeError=function(e,r,n){if(gb)return this.makeError("censored error",r,{});r||(r=t.errors.UNKNOWN_ERROR),n||(n={});var i=[];Object.keys(n).forEach(function(x){var B=n[x];try{if(B instanceof Uint8Array){for(var C="",D=0;D<B.length;D++)C+=xb[B[D]>>4],C+=xb[B[D]&15];i.push(x+"=Uint8Array(0x"+C+")")}else i.push(x+"="+JSON.stringify(B))}catch{i.push(x+"="+JSON.stringify(n[x].toString()))}}),i.push("code="+r),i.push("version="+this.version);var a=e,d="";switch(r){case On.NUMERIC_FAULT:{d="NUMERIC_FAULT";var v=e;switch(v){case"overflow":case"underflow":case"division-by-zero":d+="-"+v;break;case"negative-power":case"negative-width":d+="-unsupported";break;case"unbound-bitwise-result":d+="-unbound-result";break}break}case On.CALL_EXCEPTION:case On.INSUFFICIENT_FUNDS:case On.MISSING_NEW:case On.NONCE_EXPIRED:case On.REPLACEMENT_UNDERPRICED:case On.TRANSACTION_REPLACED:case On.UNPREDICTABLE_GAS_LIMIT:d=r;break}d&&(e+=" [ See: https://links.ethers.org/v5-errors-"+d+" ]"),i.length&&(e+=" ("+i.join(", ")+")");var y=new Error(e);return y.reason=a,y.code=r,Object.keys(n).forEach(function(x){y[x]=n[x]}),y},t.prototype.throwError=function(e,r,n){throw this.makeError(e,r,n)},t.prototype.throwArgumentError=function(e,r,n){return this.throwError(e,t.errors.INVALID_ARGUMENT,{argument:r,value:n})},t.prototype.assert=function(e,r,n,i){e||this.throwError(r,n,i)},t.prototype.assertArgument=function(e,r,n,i){e||this.throwArgumentError(r,n,i)},t.prototype.checkNormalize=function(e){e==null&&(e="platform missing String.prototype.normalize"),mb&&this.throwError("platform missing String.prototype.normalize",t.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:mb})},t.prototype.checkSafeUint53=function(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))},t.prototype.checkArgumentCount=function(e,r,n){n?n=": "+n:n="",e<r&&this.throwError("missing argument"+n,t.errors.MISSING_ARGUMENT,{count:e,expectedCount:r}),e>r&&this.throwError("too many arguments"+n,t.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})},t.prototype.checkNew=function(e,r){(e===Object||e==null)&&this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name})},t.prototype.checkAbstract=function(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",t.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name})},t.globalLogger=function(){return wl||(wl=new t(s4.version)),wl},t.setCensorship=function(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),bb){if(!e)return;this.globalLogger().throwError("error censorship permanent",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}gb=!!e,bb=!!r},t.setLogLevel=function(e){var r=n0[e.toLowerCase()];if(r==null){t.globalLogger().warn("invalid log level - "+e);return}vb=r},t.from=function(e){return new t(e)},t.errors=On,t.levels=yb,t}();In.Logger=c4});var wb=V(i0=>{"use strict";var VC=A(S());Object.defineProperty(i0,"__esModule",{value:!0});i0.version=void 0;i0.version="bytes/5.8.0"});var nt=V(Ke=>{"use strict";var QC=A(S());Object.defineProperty(Ke,"__esModule",{value:!0});Ke.joinSignature=Ke.splitSignature=Ke.hexZeroPad=Ke.hexStripZeros=Ke.hexValue=Ke.hexConcat=Ke.hexDataSlice=Ke.hexDataLength=Ke.hexlify=Ke.isHexString=Ke.zeroPad=Ke.stripZeros=Ke.concat=Ke.arrayify=Ke.isBytes=Ke.isBytesLike=void 0;var u4=Ct(),l4=wb(),dt=new u4.Logger(l4.version);function Mb(t){return!!t.toHexString}function ho(t){return t.slice||(t.slice=function(){var e=Array.prototype.slice.call(arguments);return ho(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function Sb(t){return mn(t)&&!(t.length%2)||o0(t)}Ke.isBytesLike=Sb;function Ab(t){return typeof t=="number"&&t==t&&t%1===0}function o0(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;if(typeof t=="string"||!Ab(t.length)||t.length<0)return!1;for(var e=0;e<t.length;e++){var r=t[e];if(!Ab(r)||r<0||r>=256)return!1}return!0}Ke.isBytes=o0;function pa(t,e){if(e||(e={}),typeof t=="number"){dt.checkSafeUint53(t,"invalid arrayify value");for(var r=[];t;)r.unshift(t&255),t=parseInt(String(t/256));return r.length===0&&r.push(0),ho(new Uint8Array(r))}if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),Mb(t)&&(t=t.toHexString()),mn(t)){var n=t.substring(2);n.length%2&&(e.hexPad==="left"?n="0"+n:e.hexPad==="right"?n+="0":dt.throwArgumentError("hex data is odd-length","value",t));for(var r=[],i=0;i<n.length;i+=2)r.push(parseInt(n.substring(i,i+2),16));return ho(new Uint8Array(r))}return o0(t)?ho(new Uint8Array(t)):dt.throwArgumentError("invalid arrayify value","value",t)}Ke.arrayify=pa;function Tb(t){var e=t.map(function(i){return pa(i)}),r=e.reduce(function(i,a){return i+a.length},0),n=new Uint8Array(r);return e.reduce(function(i,a){return n.set(a,i),i+a.length},0),ho(n)}Ke.concat=Tb;function d4(t){var e=pa(t);if(e.length===0)return e;for(var r=0;r<e.length&&e[r]===0;)r++;return r&&(e=e.slice(r)),e}Ke.stripZeros=d4;function Eb(t,e){t=pa(t),t.length>e&&dt.throwArgumentError("value out of range","value",arguments[0]);var r=new Uint8Array(e);return r.set(t,e-t.length),ho(r)}Ke.zeroPad=Eb;function mn(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}Ke.isHexString=mn;var Al="0123456789abcdef";function or(t,e){if(e||(e={}),typeof t=="number"){dt.checkSafeUint53(t,"invalid hexlify value");for(var r="";t;)r=Al[t&15]+r,t=Math.floor(t/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof t=="bigint")return t=t.toString(16),t.length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),Mb(t))return t.toHexString();if(mn(t))return t.length%2&&(e.hexPad==="left"?t="0x0"+t.substring(2):e.hexPad==="right"?t+="0":dt.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(o0(t)){for(var n="0x",i=0;i<t.length;i++){var a=t[i];n+=Al[(a&240)>>4]+Al[a&15]}return n}return dt.throwArgumentError("invalid hexlify value","value",t)}Ke.hexlify=or;function h4(t){if(typeof t!="string")t=or(t);else if(!mn(t)||t.length%2)return null;return(t.length-2)/2}Ke.hexDataLength=h4;function p4(t,e,r){return typeof t!="string"?t=or(t):(!mn(t)||t.length%2)&&dt.throwArgumentError("invalid hexData","value",t),e=2+2*e,r!=null?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}Ke.hexDataSlice=p4;function b4(t){var e="0x";return t.forEach(function(r){e+=or(r).substring(2)}),e}Ke.hexConcat=b4;function g4(t){var e=_b(or(t,{hexPad:"left"}));return e==="0x"?"0x0":e}Ke.hexValue=g4;function _b(t){typeof t!="string"&&(t=or(t)),mn(t)||dt.throwArgumentError("invalid hex string","value",t),t=t.substring(2);for(var e=0;e<t.length&&t[e]==="0";)e++;return"0x"+t.substring(e)}Ke.hexStripZeros=_b;function a0(t,e){for(typeof t!="string"?t=or(t):mn(t)||dt.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&dt.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}Ke.hexZeroPad=a0;function Bb(t){var e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(Sb(t)){var r=pa(t);r.length===64?(e.v=27+(r[32]>>7),r[32]&=127,e.r=or(r.slice(0,32)),e.s=or(r.slice(32,64))):r.length===65?(e.r=or(r.slice(0,32)),e.s=or(r.slice(32,64)),e.v=r[64]):dt.throwArgumentError("invalid signature string","signature",t),e.v<27&&(e.v===0||e.v===1?e.v+=27:dt.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=or(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,e._vs!=null){var n=Eb(pa(e._vs),32);e._vs=or(n);var i=n[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=i:e.recoveryParam!==i&&dt.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),n[0]&=127;var a=or(n);e.s==null?e.s=a:e.s!==a&&dt.throwArgumentError("signature v mismatch _vs","signature",t)}if(e.recoveryParam==null)e.v==null?dt.throwArgumentError("signature missing v and recoveryParam","signature",t):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{var d=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==d&&dt.throwArgumentError("signature recoveryParam mismatch v","signature",t)}e.r==null||!mn(e.r)?dt.throwArgumentError("signature missing or invalid r","signature",t):e.r=a0(e.r,32),e.s==null||!mn(e.s)?dt.throwArgumentError("signature missing or invalid s","signature",t):e.s=a0(e.s,32);var v=pa(e.s);v[0]>=128&&dt.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(v[0]|=128);var y=or(v);e._vs&&(mn(e._vs)||dt.throwArgumentError("signature invalid _vs","signature",t),e._vs=a0(e._vs,32)),e._vs==null?e._vs=y:e._vs!==y&&dt.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}Ke.splitSignature=Bb;function v4(t){return t=Bb(t),or(Tb([t.r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}Ke.joinSignature=v4});var Nn=V(po=>{"use strict";var YC=A(S()),m4=po&&po.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(po,"__esModule",{value:!0});po.keccak256=void 0;var x4=m4(hb()),y4=nt();function w4(t){return"0x"+x4.default.keccak_256((0,y4.arrayify)(t))}po.keccak256=w4});var Cb=V(s0=>{"use strict";var eP=A(S());Object.defineProperty(s0,"__esModule",{value:!0});s0.AddressZero=void 0;s0.AddressZero="0x0000000000000000000000000000000000000000"});var Lb=V((Pb,Ml)=>{var tP=A(S());(function(t,e){"use strict";function r(l,f){if(!l)throw new Error(f||"Assertion failed")}function n(l,f){l.super_=f;var c=function(){};c.prototype=f.prototype,l.prototype=new c,l.prototype.constructor=l}function i(l,f,c){if(i.isBN(l))return l;this.negative=0,this.words=null,this.length=0,this.red=null,l!==null&&((f==="le"||f==="be")&&(c=f,f=10),this._init(l||0,f||10,c||"be"))}typeof t=="object"?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=rt("buffer").Buffer}catch{}i.isBN=function(f){return f instanceof i?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===i.wordSize&&Array.isArray(f.words)},i.max=function(f,c){return f.cmp(c)>0?f:c},i.min=function(f,c){return f.cmp(c)<0?f:c},i.prototype._init=function(f,c,g){if(typeof f=="number")return this._initNumber(f,c,g);if(typeof f=="object")return this._initArray(f,c,g);c==="hex"&&(c=16),r(c===(c|0)&&c>=2&&c<=36),f=f.toString().replace(/\s+/g,"");var m=0;f[0]==="-"&&(m++,this.negative=1),m<f.length&&(c===16?this._parseHex(f,m,g):(this._parseBase(f,c,m),g==="le"&&this._initArray(this.toArray(),c,g)))},i.prototype._initNumber=function(f,c,g){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(r(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),c,g)},i.prototype._initArray=function(f,c,g){if(r(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var h,o,p=0;if(g==="be")for(m=f.length-1,h=0;m>=0;m-=3)o=f[m]|f[m-1]<<8|f[m-2]<<16,this.words[h]|=o<<p&67108863,this.words[h+1]=o>>>26-p&67108863,p+=24,p>=26&&(p-=26,h++);else if(g==="le")for(m=0,h=0;m<f.length;m+=3)o=f[m]|f[m+1]<<8|f[m+2]<<16,this.words[h]|=o<<p&67108863,this.words[h+1]=o>>>26-p&67108863,p+=24,p>=26&&(p-=26,h++);return this._strip()};function d(l,f){var c=l.charCodeAt(f);if(c>=48&&c<=57)return c-48;if(c>=65&&c<=70)return c-55;if(c>=97&&c<=102)return c-87;r(!1,"Invalid character in "+l)}function v(l,f,c){var g=d(l,c);return c-1>=f&&(g|=d(l,c-1)<<4),g}i.prototype._parseHex=function(f,c,g){this.length=Math.ceil((f.length-c)/6),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var h=0,o=0,p;if(g==="be")for(m=f.length-1;m>=c;m-=2)p=v(f,c,m)<<h,this.words[o]|=p&67108863,h>=18?(h-=18,o+=1,this.words[o]|=p>>>26):h+=8;else{var E=f.length-c;for(m=E%2===0?c+1:c;m<f.length;m+=2)p=v(f,c,m)<<h,this.words[o]|=p&67108863,h>=18?(h-=18,o+=1,this.words[o]|=p>>>26):h+=8}this._strip()};function y(l,f,c,g){for(var m=0,h=0,o=Math.min(l.length,c),p=f;p<o;p++){var E=l.charCodeAt(p)-48;m*=g,E>=49?h=E-49+10:E>=17?h=E-17+10:h=E,r(E>=0&&h<g,"Invalid character"),m+=h}return m}i.prototype._parseBase=function(f,c,g){this.words=[0],this.length=1;for(var m=0,h=1;h<=67108863;h*=c)m++;m--,h=h/c|0;for(var o=f.length-g,p=o%m,E=Math.min(o,o-p)+g,b=0,w=g;w<E;w+=m)b=y(f,w,w+m,c),this.imuln(h),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b);if(p!==0){var H=1;for(b=y(f,w,f.length,c),w=0;w<p;w++)H*=c;this.imuln(H),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b)}this._strip()},i.prototype.copy=function(f){f.words=new Array(this.length);for(var c=0;c<this.length;c++)f.words[c]=this.words[c];f.length=this.length,f.negative=this.negative,f.red=this.red};function x(l,f){l.words=f.words,l.length=f.length,l.negative=f.negative,l.red=f.red}if(i.prototype._move=function(f){x(f,this)},i.prototype.clone=function(){var f=new i(null);return this.copy(f),f},i.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=B}catch{i.prototype.inspect=B}else i.prototype.inspect=B;function B(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var C=["","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"],D=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(f,c){f=f||10,c=c|0||1;var g;if(f===16||f==="hex"){g="";for(var m=0,h=0,o=0;o<this.length;o++){var p=this.words[o],E=((p<<m|h)&16777215).toString(16);h=p>>>24-m&16777215,m+=2,m>=26&&(m-=26,o--),h!==0||o!==this.length-1?g=C[6-E.length]+E+g:g=E+g}for(h!==0&&(g=h.toString(16)+g);g.length%c!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(f===(f|0)&&f>=2&&f<=36){var b=D[f],w=F[f];g="";var H=this.clone();for(H.negative=0;!H.isZero();){var T=H.modrn(w).toString(f);H=H.idivn(w),H.isZero()?g=T+g:g=C[b-T.length]+T+g}for(this.isZero()&&(g="0"+g);g.length%c!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},i.prototype.toJSON=function(){return this.toString(16,2)},a&&(i.prototype.toBuffer=function(f,c){return this.toArrayLike(a,f,c)}),i.prototype.toArray=function(f,c){return this.toArrayLike(Array,f,c)};var P=function(f,c){return f.allocUnsafe?f.allocUnsafe(c):new f(c)};i.prototype.toArrayLike=function(f,c,g){this._strip();var m=this.byteLength(),h=g||Math.max(1,m);r(m<=h,"byte array longer than desired length"),r(h>0,"Requested array length <= 0");var o=P(f,h),p=c==="le"?"LE":"BE";return this["_toArrayLike"+p](o,m),o},i.prototype._toArrayLikeLE=function(f,c){for(var g=0,m=0,h=0,o=0;h<this.length;h++){var p=this.words[h]<<o|m;f[g++]=p&255,g<f.length&&(f[g++]=p>>8&255),g<f.length&&(f[g++]=p>>16&255),o===6?(g<f.length&&(f[g++]=p>>24&255),m=0,o=0):(m=p>>>24,o+=2)}if(g<f.length)for(f[g++]=m;g<f.length;)f[g++]=0},i.prototype._toArrayLikeBE=function(f,c){for(var g=f.length-1,m=0,h=0,o=0;h<this.length;h++){var p=this.words[h]<<o|m;f[g--]=p&255,g>=0&&(f[g--]=p>>8&255),g>=0&&(f[g--]=p>>16&255),o===6?(g>=0&&(f[g--]=p>>24&255),m=0,o=0):(m=p>>>24,o+=2)}if(g>=0)for(f[g--]=m;g>=0;)f[g--]=0},Math.clz32?i.prototype._countBits=function(f){return 32-Math.clz32(f)}:i.prototype._countBits=function(f){var c=f,g=0;return c>=4096&&(g+=13,c>>>=13),c>=64&&(g+=7,c>>>=7),c>=8&&(g+=4,c>>>=4),c>=2&&(g+=2,c>>>=2),g+c},i.prototype._zeroBits=function(f){if(f===0)return 26;var c=f,g=0;return c&8191||(g+=13,c>>>=13),c&127||(g+=7,c>>>=7),c&15||(g+=4,c>>>=4),c&3||(g+=2,c>>>=2),c&1||g++,g},i.prototype.bitLength=function(){var f=this.words[this.length-1],c=this._countBits(f);return(this.length-1)*26+c};function q(l){for(var f=new Array(l.bitLength()),c=0;c<f.length;c++){var g=c/26|0,m=c%26;f[c]=l.words[g]>>>m&1}return f}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,c=0;c<this.length;c++){var g=this._zeroBits(this.words[c]);if(f+=g,g!==26)break}return f},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},i.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var c=0;c<f.length;c++)this.words[c]=this.words[c]|f.words[c];return this._strip()},i.prototype.ior=function(f){return r((this.negative|f.negative)===0),this.iuor(f)},i.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},i.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},i.prototype.iuand=function(f){var c;this.length>f.length?c=f:c=this;for(var g=0;g<c.length;g++)this.words[g]=this.words[g]&f.words[g];return this.length=c.length,this._strip()},i.prototype.iand=function(f){return r((this.negative|f.negative)===0),this.iuand(f)},i.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},i.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},i.prototype.iuxor=function(f){var c,g;this.length>f.length?(c=this,g=f):(c=f,g=this);for(var m=0;m<g.length;m++)this.words[m]=c.words[m]^g.words[m];if(this!==c)for(;m<c.length;m++)this.words[m]=c.words[m];return this.length=c.length,this._strip()},i.prototype.ixor=function(f){return r((this.negative|f.negative)===0),this.iuxor(f)},i.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},i.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},i.prototype.inotn=function(f){r(typeof f=="number"&&f>=0);var c=Math.ceil(f/26)|0,g=f%26;this._expand(c),g>0&&c--;for(var m=0;m<c;m++)this.words[m]=~this.words[m]&67108863;return g>0&&(this.words[m]=~this.words[m]&67108863>>26-g),this._strip()},i.prototype.notn=function(f){return this.clone().inotn(f)},i.prototype.setn=function(f,c){r(typeof f=="number"&&f>=0);var g=f/26|0,m=f%26;return this._expand(g+1),c?this.words[g]=this.words[g]|1<<m:this.words[g]=this.words[g]&~(1<<m),this._strip()},i.prototype.iadd=function(f){var c;if(this.negative!==0&&f.negative===0)return this.negative=0,c=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,c=this.isub(f),f.negative=1,c._normSign();var g,m;this.length>f.length?(g=this,m=f):(g=f,m=this);for(var h=0,o=0;o<m.length;o++)c=(g.words[o]|0)+(m.words[o]|0)+h,this.words[o]=c&67108863,h=c>>>26;for(;h!==0&&o<g.length;o++)c=(g.words[o]|0)+h,this.words[o]=c&67108863,h=c>>>26;if(this.length=g.length,h!==0)this.words[this.length]=h,this.length++;else if(g!==this)for(;o<g.length;o++)this.words[o]=g.words[o];return this},i.prototype.add=function(f){var c;return f.negative!==0&&this.negative===0?(f.negative=0,c=this.sub(f),f.negative^=1,c):f.negative===0&&this.negative!==0?(this.negative=0,c=f.sub(this),this.negative=1,c):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},i.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var c=this.iadd(f);return f.negative=1,c._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var g=this.cmp(f);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var m,h;g>0?(m=this,h=f):(m=f,h=this);for(var o=0,p=0;p<h.length;p++)c=(m.words[p]|0)-(h.words[p]|0)+o,o=c>>26,this.words[p]=c&67108863;for(;o!==0&&p<m.length;p++)c=(m.words[p]|0)+o,o=c>>26,this.words[p]=c&67108863;if(o===0&&p<m.length&&m!==this)for(;p<m.length;p++)this.words[p]=m.words[p];return this.length=Math.max(this.length,p),m!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(f){return this.clone().isub(f)};function W(l,f,c){c.negative=f.negative^l.negative;var g=l.length+f.length|0;c.length=g,g=g-1|0;var m=l.words[0]|0,h=f.words[0]|0,o=m*h,p=o&67108863,E=o/67108864|0;c.words[0]=p;for(var b=1;b<g;b++){for(var w=E>>>26,H=E&67108863,T=Math.min(b,f.length-1),N=Math.max(0,b-l.length+1);N<=T;N++){var X=b-N|0;m=l.words[X]|0,h=f.words[N]|0,o=m*h+H,w+=o/67108864|0,H=o&67108863}c.words[b]=H|0,E=w|0}return E!==0?c.words[b]=E|0:c.length--,c._strip()}var K=function(f,c,g){var m=f.words,h=c.words,o=g.words,p=0,E,b,w,H=m[0]|0,T=H&8191,N=H>>>13,X=m[1]|0,Z=X&8191,_=X>>>13,R=m[2]|0,L=R&8191,O=R>>>13,G=m[3]|0,I=G&8191,J=G>>>13,z=m[4]|0,k=z&8191,U=z>>>13,Q=m[5]|0,j=Q&8191,re=Q>>>13,De=m[6]|0,se=De&8191,le=De>>>13,Ue=m[7]|0,oe=Ue&8191,fe=Ue>>>13,Xe=m[8]|0,ge=Xe&8191,ve=Xe>>>13,vt=m[9]|0,pe=vt&8191,be=vt>>>13,Ye=h[0]|0,de=Ye&8191,ue=Ye>>>13,Kt=h[1]|0,me=Kt&8191,xe=Kt>>>13,Zt=h[2]|0,ye=Zt&8191,we=Zt>>>13,Vt=h[3]|0,Ae=Vt&8191,Me=Vt>>>13,jt=h[4]|0,Se=jt&8191,Te=jt>>>13,Qt=h[5]|0,Ee=Qt&8191,_e=Qt>>>13,Wt=h[6]|0,Be=Wt&8191,Ce=Wt>>>13,Yt=h[7]|0,Pe=Yt&8191,Le=Yt>>>13,$t=h[8]|0,Re=$t&8191,Fe=$t>>>13,Dt=h[9]|0,Ne=Dt&8191,ke=Dt>>>13;g.negative=f.negative^c.negative,g.length=19,E=Math.imul(T,de),b=Math.imul(T,ue),b=b+Math.imul(N,de)|0,w=Math.imul(N,ue);var St=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(St>>>26)|0,St&=67108863,E=Math.imul(Z,de),b=Math.imul(Z,ue),b=b+Math.imul(_,de)|0,w=Math.imul(_,ue),E=E+Math.imul(T,me)|0,b=b+Math.imul(T,xe)|0,b=b+Math.imul(N,me)|0,w=w+Math.imul(N,xe)|0;var Tt=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,E=Math.imul(L,de),b=Math.imul(L,ue),b=b+Math.imul(O,de)|0,w=Math.imul(O,ue),E=E+Math.imul(Z,me)|0,b=b+Math.imul(Z,xe)|0,b=b+Math.imul(_,me)|0,w=w+Math.imul(_,xe)|0,E=E+Math.imul(T,ye)|0,b=b+Math.imul(T,we)|0,b=b+Math.imul(N,ye)|0,w=w+Math.imul(N,we)|0;var Et=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(Et>>>26)|0,Et&=67108863,E=Math.imul(I,de),b=Math.imul(I,ue),b=b+Math.imul(J,de)|0,w=Math.imul(J,ue),E=E+Math.imul(L,me)|0,b=b+Math.imul(L,xe)|0,b=b+Math.imul(O,me)|0,w=w+Math.imul(O,xe)|0,E=E+Math.imul(Z,ye)|0,b=b+Math.imul(Z,we)|0,b=b+Math.imul(_,ye)|0,w=w+Math.imul(_,we)|0,E=E+Math.imul(T,Ae)|0,b=b+Math.imul(T,Me)|0,b=b+Math.imul(N,Ae)|0,w=w+Math.imul(N,Me)|0;var _t=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(_t>>>26)|0,_t&=67108863,E=Math.imul(k,de),b=Math.imul(k,ue),b=b+Math.imul(U,de)|0,w=Math.imul(U,ue),E=E+Math.imul(I,me)|0,b=b+Math.imul(I,xe)|0,b=b+Math.imul(J,me)|0,w=w+Math.imul(J,xe)|0,E=E+Math.imul(L,ye)|0,b=b+Math.imul(L,we)|0,b=b+Math.imul(O,ye)|0,w=w+Math.imul(O,we)|0,E=E+Math.imul(Z,Ae)|0,b=b+Math.imul(Z,Me)|0,b=b+Math.imul(_,Ae)|0,w=w+Math.imul(_,Me)|0,E=E+Math.imul(T,Se)|0,b=b+Math.imul(T,Te)|0,b=b+Math.imul(N,Se)|0,w=w+Math.imul(N,Te)|0;var Bt=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,E=Math.imul(j,de),b=Math.imul(j,ue),b=b+Math.imul(re,de)|0,w=Math.imul(re,ue),E=E+Math.imul(k,me)|0,b=b+Math.imul(k,xe)|0,b=b+Math.imul(U,me)|0,w=w+Math.imul(U,xe)|0,E=E+Math.imul(I,ye)|0,b=b+Math.imul(I,we)|0,b=b+Math.imul(J,ye)|0,w=w+Math.imul(J,we)|0,E=E+Math.imul(L,Ae)|0,b=b+Math.imul(L,Me)|0,b=b+Math.imul(O,Ae)|0,w=w+Math.imul(O,Me)|0,E=E+Math.imul(Z,Se)|0,b=b+Math.imul(Z,Te)|0,b=b+Math.imul(_,Se)|0,w=w+Math.imul(_,Te)|0,E=E+Math.imul(T,Ee)|0,b=b+Math.imul(T,_e)|0,b=b+Math.imul(N,Ee)|0,w=w+Math.imul(N,_e)|0;var hr=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(hr>>>26)|0,hr&=67108863,E=Math.imul(se,de),b=Math.imul(se,ue),b=b+Math.imul(le,de)|0,w=Math.imul(le,ue),E=E+Math.imul(j,me)|0,b=b+Math.imul(j,xe)|0,b=b+Math.imul(re,me)|0,w=w+Math.imul(re,xe)|0,E=E+Math.imul(k,ye)|0,b=b+Math.imul(k,we)|0,b=b+Math.imul(U,ye)|0,w=w+Math.imul(U,we)|0,E=E+Math.imul(I,Ae)|0,b=b+Math.imul(I,Me)|0,b=b+Math.imul(J,Ae)|0,w=w+Math.imul(J,Me)|0,E=E+Math.imul(L,Se)|0,b=b+Math.imul(L,Te)|0,b=b+Math.imul(O,Se)|0,w=w+Math.imul(O,Te)|0,E=E+Math.imul(Z,Ee)|0,b=b+Math.imul(Z,_e)|0,b=b+Math.imul(_,Ee)|0,w=w+Math.imul(_,_e)|0,E=E+Math.imul(T,Be)|0,b=b+Math.imul(T,Ce)|0,b=b+Math.imul(N,Be)|0,w=w+Math.imul(N,Ce)|0;var pr=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(pr>>>26)|0,pr&=67108863,E=Math.imul(oe,de),b=Math.imul(oe,ue),b=b+Math.imul(fe,de)|0,w=Math.imul(fe,ue),E=E+Math.imul(se,me)|0,b=b+Math.imul(se,xe)|0,b=b+Math.imul(le,me)|0,w=w+Math.imul(le,xe)|0,E=E+Math.imul(j,ye)|0,b=b+Math.imul(j,we)|0,b=b+Math.imul(re,ye)|0,w=w+Math.imul(re,we)|0,E=E+Math.imul(k,Ae)|0,b=b+Math.imul(k,Me)|0,b=b+Math.imul(U,Ae)|0,w=w+Math.imul(U,Me)|0,E=E+Math.imul(I,Se)|0,b=b+Math.imul(I,Te)|0,b=b+Math.imul(J,Se)|0,w=w+Math.imul(J,Te)|0,E=E+Math.imul(L,Ee)|0,b=b+Math.imul(L,_e)|0,b=b+Math.imul(O,Ee)|0,w=w+Math.imul(O,_e)|0,E=E+Math.imul(Z,Be)|0,b=b+Math.imul(Z,Ce)|0,b=b+Math.imul(_,Be)|0,w=w+Math.imul(_,Ce)|0,E=E+Math.imul(T,Pe)|0,b=b+Math.imul(T,Le)|0,b=b+Math.imul(N,Pe)|0,w=w+Math.imul(N,Le)|0;var br=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(br>>>26)|0,br&=67108863,E=Math.imul(ge,de),b=Math.imul(ge,ue),b=b+Math.imul(ve,de)|0,w=Math.imul(ve,ue),E=E+Math.imul(oe,me)|0,b=b+Math.imul(oe,xe)|0,b=b+Math.imul(fe,me)|0,w=w+Math.imul(fe,xe)|0,E=E+Math.imul(se,ye)|0,b=b+Math.imul(se,we)|0,b=b+Math.imul(le,ye)|0,w=w+Math.imul(le,we)|0,E=E+Math.imul(j,Ae)|0,b=b+Math.imul(j,Me)|0,b=b+Math.imul(re,Ae)|0,w=w+Math.imul(re,Me)|0,E=E+Math.imul(k,Se)|0,b=b+Math.imul(k,Te)|0,b=b+Math.imul(U,Se)|0,w=w+Math.imul(U,Te)|0,E=E+Math.imul(I,Ee)|0,b=b+Math.imul(I,_e)|0,b=b+Math.imul(J,Ee)|0,w=w+Math.imul(J,_e)|0,E=E+Math.imul(L,Be)|0,b=b+Math.imul(L,Ce)|0,b=b+Math.imul(O,Be)|0,w=w+Math.imul(O,Ce)|0,E=E+Math.imul(Z,Pe)|0,b=b+Math.imul(Z,Le)|0,b=b+Math.imul(_,Pe)|0,w=w+Math.imul(_,Le)|0,E=E+Math.imul(T,Re)|0,b=b+Math.imul(T,Fe)|0,b=b+Math.imul(N,Re)|0,w=w+Math.imul(N,Fe)|0;var gr=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(gr>>>26)|0,gr&=67108863,E=Math.imul(pe,de),b=Math.imul(pe,ue),b=b+Math.imul(be,de)|0,w=Math.imul(be,ue),E=E+Math.imul(ge,me)|0,b=b+Math.imul(ge,xe)|0,b=b+Math.imul(ve,me)|0,w=w+Math.imul(ve,xe)|0,E=E+Math.imul(oe,ye)|0,b=b+Math.imul(oe,we)|0,b=b+Math.imul(fe,ye)|0,w=w+Math.imul(fe,we)|0,E=E+Math.imul(se,Ae)|0,b=b+Math.imul(se,Me)|0,b=b+Math.imul(le,Ae)|0,w=w+Math.imul(le,Me)|0,E=E+Math.imul(j,Se)|0,b=b+Math.imul(j,Te)|0,b=b+Math.imul(re,Se)|0,w=w+Math.imul(re,Te)|0,E=E+Math.imul(k,Ee)|0,b=b+Math.imul(k,_e)|0,b=b+Math.imul(U,Ee)|0,w=w+Math.imul(U,_e)|0,E=E+Math.imul(I,Be)|0,b=b+Math.imul(I,Ce)|0,b=b+Math.imul(J,Be)|0,w=w+Math.imul(J,Ce)|0,E=E+Math.imul(L,Pe)|0,b=b+Math.imul(L,Le)|0,b=b+Math.imul(O,Pe)|0,w=w+Math.imul(O,Le)|0,E=E+Math.imul(Z,Re)|0,b=b+Math.imul(Z,Fe)|0,b=b+Math.imul(_,Re)|0,w=w+Math.imul(_,Fe)|0,E=E+Math.imul(T,Ne)|0,b=b+Math.imul(T,ke)|0,b=b+Math.imul(N,Ne)|0,w=w+Math.imul(N,ke)|0;var vr=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(vr>>>26)|0,vr&=67108863,E=Math.imul(pe,me),b=Math.imul(pe,xe),b=b+Math.imul(be,me)|0,w=Math.imul(be,xe),E=E+Math.imul(ge,ye)|0,b=b+Math.imul(ge,we)|0,b=b+Math.imul(ve,ye)|0,w=w+Math.imul(ve,we)|0,E=E+Math.imul(oe,Ae)|0,b=b+Math.imul(oe,Me)|0,b=b+Math.imul(fe,Ae)|0,w=w+Math.imul(fe,Me)|0,E=E+Math.imul(se,Se)|0,b=b+Math.imul(se,Te)|0,b=b+Math.imul(le,Se)|0,w=w+Math.imul(le,Te)|0,E=E+Math.imul(j,Ee)|0,b=b+Math.imul(j,_e)|0,b=b+Math.imul(re,Ee)|0,w=w+Math.imul(re,_e)|0,E=E+Math.imul(k,Be)|0,b=b+Math.imul(k,Ce)|0,b=b+Math.imul(U,Be)|0,w=w+Math.imul(U,Ce)|0,E=E+Math.imul(I,Pe)|0,b=b+Math.imul(I,Le)|0,b=b+Math.imul(J,Pe)|0,w=w+Math.imul(J,Le)|0,E=E+Math.imul(L,Re)|0,b=b+Math.imul(L,Fe)|0,b=b+Math.imul(O,Re)|0,w=w+Math.imul(O,Fe)|0,E=E+Math.imul(Z,Ne)|0,b=b+Math.imul(Z,ke)|0,b=b+Math.imul(_,Ne)|0,w=w+Math.imul(_,ke)|0;var mr=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(mr>>>26)|0,mr&=67108863,E=Math.imul(pe,ye),b=Math.imul(pe,we),b=b+Math.imul(be,ye)|0,w=Math.imul(be,we),E=E+Math.imul(ge,Ae)|0,b=b+Math.imul(ge,Me)|0,b=b+Math.imul(ve,Ae)|0,w=w+Math.imul(ve,Me)|0,E=E+Math.imul(oe,Se)|0,b=b+Math.imul(oe,Te)|0,b=b+Math.imul(fe,Se)|0,w=w+Math.imul(fe,Te)|0,E=E+Math.imul(se,Ee)|0,b=b+Math.imul(se,_e)|0,b=b+Math.imul(le,Ee)|0,w=w+Math.imul(le,_e)|0,E=E+Math.imul(j,Be)|0,b=b+Math.imul(j,Ce)|0,b=b+Math.imul(re,Be)|0,w=w+Math.imul(re,Ce)|0,E=E+Math.imul(k,Pe)|0,b=b+Math.imul(k,Le)|0,b=b+Math.imul(U,Pe)|0,w=w+Math.imul(U,Le)|0,E=E+Math.imul(I,Re)|0,b=b+Math.imul(I,Fe)|0,b=b+Math.imul(J,Re)|0,w=w+Math.imul(J,Fe)|0,E=E+Math.imul(L,Ne)|0,b=b+Math.imul(L,ke)|0,b=b+Math.imul(O,Ne)|0,w=w+Math.imul(O,ke)|0;var xr=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(xr>>>26)|0,xr&=67108863,E=Math.imul(pe,Ae),b=Math.imul(pe,Me),b=b+Math.imul(be,Ae)|0,w=Math.imul(be,Me),E=E+Math.imul(ge,Se)|0,b=b+Math.imul(ge,Te)|0,b=b+Math.imul(ve,Se)|0,w=w+Math.imul(ve,Te)|0,E=E+Math.imul(oe,Ee)|0,b=b+Math.imul(oe,_e)|0,b=b+Math.imul(fe,Ee)|0,w=w+Math.imul(fe,_e)|0,E=E+Math.imul(se,Be)|0,b=b+Math.imul(se,Ce)|0,b=b+Math.imul(le,Be)|0,w=w+Math.imul(le,Ce)|0,E=E+Math.imul(j,Pe)|0,b=b+Math.imul(j,Le)|0,b=b+Math.imul(re,Pe)|0,w=w+Math.imul(re,Le)|0,E=E+Math.imul(k,Re)|0,b=b+Math.imul(k,Fe)|0,b=b+Math.imul(U,Re)|0,w=w+Math.imul(U,Fe)|0,E=E+Math.imul(I,Ne)|0,b=b+Math.imul(I,ke)|0,b=b+Math.imul(J,Ne)|0,w=w+Math.imul(J,ke)|0;var yr=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(yr>>>26)|0,yr&=67108863,E=Math.imul(pe,Se),b=Math.imul(pe,Te),b=b+Math.imul(be,Se)|0,w=Math.imul(be,Te),E=E+Math.imul(ge,Ee)|0,b=b+Math.imul(ge,_e)|0,b=b+Math.imul(ve,Ee)|0,w=w+Math.imul(ve,_e)|0,E=E+Math.imul(oe,Be)|0,b=b+Math.imul(oe,Ce)|0,b=b+Math.imul(fe,Be)|0,w=w+Math.imul(fe,Ce)|0,E=E+Math.imul(se,Pe)|0,b=b+Math.imul(se,Le)|0,b=b+Math.imul(le,Pe)|0,w=w+Math.imul(le,Le)|0,E=E+Math.imul(j,Re)|0,b=b+Math.imul(j,Fe)|0,b=b+Math.imul(re,Re)|0,w=w+Math.imul(re,Fe)|0,E=E+Math.imul(k,Ne)|0,b=b+Math.imul(k,ke)|0,b=b+Math.imul(U,Ne)|0,w=w+Math.imul(U,ke)|0;var wr=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(wr>>>26)|0,wr&=67108863,E=Math.imul(pe,Ee),b=Math.imul(pe,_e),b=b+Math.imul(be,Ee)|0,w=Math.imul(be,_e),E=E+Math.imul(ge,Be)|0,b=b+Math.imul(ge,Ce)|0,b=b+Math.imul(ve,Be)|0,w=w+Math.imul(ve,Ce)|0,E=E+Math.imul(oe,Pe)|0,b=b+Math.imul(oe,Le)|0,b=b+Math.imul(fe,Pe)|0,w=w+Math.imul(fe,Le)|0,E=E+Math.imul(se,Re)|0,b=b+Math.imul(se,Fe)|0,b=b+Math.imul(le,Re)|0,w=w+Math.imul(le,Fe)|0,E=E+Math.imul(j,Ne)|0,b=b+Math.imul(j,ke)|0,b=b+Math.imul(re,Ne)|0,w=w+Math.imul(re,ke)|0;var pn=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(pn>>>26)|0,pn&=67108863,E=Math.imul(pe,Be),b=Math.imul(pe,Ce),b=b+Math.imul(be,Be)|0,w=Math.imul(be,Ce),E=E+Math.imul(ge,Pe)|0,b=b+Math.imul(ge,Le)|0,b=b+Math.imul(ve,Pe)|0,w=w+Math.imul(ve,Le)|0,E=E+Math.imul(oe,Re)|0,b=b+Math.imul(oe,Fe)|0,b=b+Math.imul(fe,Re)|0,w=w+Math.imul(fe,Fe)|0,E=E+Math.imul(se,Ne)|0,b=b+Math.imul(se,ke)|0,b=b+Math.imul(le,Ne)|0,w=w+Math.imul(le,ke)|0;var bn=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(bn>>>26)|0,bn&=67108863,E=Math.imul(pe,Pe),b=Math.imul(pe,Le),b=b+Math.imul(be,Pe)|0,w=Math.imul(be,Le),E=E+Math.imul(ge,Re)|0,b=b+Math.imul(ge,Fe)|0,b=b+Math.imul(ve,Re)|0,w=w+Math.imul(ve,Fe)|0,E=E+Math.imul(oe,Ne)|0,b=b+Math.imul(oe,ke)|0,b=b+Math.imul(fe,Ne)|0,w=w+Math.imul(fe,ke)|0;var tu=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(tu>>>26)|0,tu&=67108863,E=Math.imul(pe,Re),b=Math.imul(pe,Fe),b=b+Math.imul(be,Re)|0,w=Math.imul(be,Fe),E=E+Math.imul(ge,Ne)|0,b=b+Math.imul(ge,ke)|0,b=b+Math.imul(ve,Ne)|0,w=w+Math.imul(ve,ke)|0;var ru=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(ru>>>26)|0,ru&=67108863,E=Math.imul(pe,Ne),b=Math.imul(pe,ke),b=b+Math.imul(be,Ne)|0,w=Math.imul(be,ke);var nu=(p+E|0)+((b&8191)<<13)|0;return p=(w+(b>>>13)|0)+(nu>>>26)|0,nu&=67108863,o[0]=St,o[1]=Tt,o[2]=Et,o[3]=_t,o[4]=Bt,o[5]=hr,o[6]=pr,o[7]=br,o[8]=gr,o[9]=vr,o[10]=mr,o[11]=xr,o[12]=yr,o[13]=wr,o[14]=pn,o[15]=bn,o[16]=tu,o[17]=ru,o[18]=nu,p!==0&&(o[19]=p,g.length++),g};Math.imul||(K=W);function ne(l,f,c){c.negative=f.negative^l.negative,c.length=l.length+f.length;for(var g=0,m=0,h=0;h<c.length-1;h++){var o=m;m=0;for(var p=g&67108863,E=Math.min(h,f.length-1),b=Math.max(0,h-l.length+1);b<=E;b++){var w=h-b,H=l.words[w]|0,T=f.words[b]|0,N=H*T,X=N&67108863;o=o+(N/67108864|0)|0,X=X+p|0,p=X&67108863,o=o+(X>>>26)|0,m+=o>>>26,o&=67108863}c.words[h]=p,g=o,o=m}return g!==0?c.words[h]=g:c.length--,c._strip()}function $(l,f,c){return ne(l,f,c)}i.prototype.mulTo=function(f,c){var g,m=this.length+f.length;return this.length===10&&f.length===10?g=K(this,f,c):m<63?g=W(this,f,c):m<1024?g=ne(this,f,c):g=$(this,f,c),g};function ae(l,f){this.x=l,this.y=f}ae.prototype.makeRBT=function(f){for(var c=new Array(f),g=i.prototype._countBits(f)-1,m=0;m<f;m++)c[m]=this.revBin(m,g,f);return c},ae.prototype.revBin=function(f,c,g){if(f===0||f===g-1)return f;for(var m=0,h=0;h<c;h++)m|=(f&1)<<c-h-1,f>>=1;return m},ae.prototype.permute=function(f,c,g,m,h,o){for(var p=0;p<o;p++)m[p]=c[f[p]],h[p]=g[f[p]]},ae.prototype.transform=function(f,c,g,m,h,o){this.permute(o,f,c,g,m,h);for(var p=1;p<h;p<<=1)for(var E=p<<1,b=Math.cos(2*Math.PI/E),w=Math.sin(2*Math.PI/E),H=0;H<h;H+=E)for(var T=b,N=w,X=0;X<p;X++){var Z=g[H+X],_=m[H+X],R=g[H+X+p],L=m[H+X+p],O=T*R-N*L;L=T*L+N*R,R=O,g[H+X]=Z+R,m[H+X]=_+L,g[H+X+p]=Z-R,m[H+X+p]=_-L,X!==E&&(O=b*T-w*N,N=b*N+w*T,T=O)}},ae.prototype.guessLen13b=function(f,c){var g=Math.max(c,f)|1,m=g&1,h=0;for(g=g/2|0;g;g=g>>>1)h++;return 1<<h+1+m},ae.prototype.conjugate=function(f,c,g){if(!(g<=1))for(var m=0;m<g/2;m++){var h=f[m];f[m]=f[g-m-1],f[g-m-1]=h,h=c[m],c[m]=-c[g-m-1],c[g-m-1]=-h}},ae.prototype.normalize13b=function(f,c){for(var g=0,m=0;m<c/2;m++){var h=Math.round(f[2*m+1]/c)*8192+Math.round(f[2*m]/c)+g;f[m]=h&67108863,h<67108864?g=0:g=h/67108864|0}return f},ae.prototype.convert13b=function(f,c,g,m){for(var h=0,o=0;o<c;o++)h=h+(f[o]|0),g[2*o]=h&8191,h=h>>>13,g[2*o+1]=h&8191,h=h>>>13;for(o=2*c;o<m;++o)g[o]=0;r(h===0),r((h&-8192)===0)},ae.prototype.stub=function(f){for(var c=new Array(f),g=0;g<f;g++)c[g]=0;return c},ae.prototype.mulp=function(f,c,g){var m=2*this.guessLen13b(f.length,c.length),h=this.makeRBT(m),o=this.stub(m),p=new Array(m),E=new Array(m),b=new Array(m),w=new Array(m),H=new Array(m),T=new Array(m),N=g.words;N.length=m,this.convert13b(f.words,f.length,p,m),this.convert13b(c.words,c.length,w,m),this.transform(p,o,E,b,m,h),this.transform(w,o,H,T,m,h);for(var X=0;X<m;X++){var Z=E[X]*H[X]-b[X]*T[X];b[X]=E[X]*T[X]+b[X]*H[X],E[X]=Z}return this.conjugate(E,b,m),this.transform(E,b,N,o,m,h),this.conjugate(N,o,m),this.normalize13b(N,m),g.negative=f.negative^c.negative,g.length=f.length+c.length,g._strip()},i.prototype.mul=function(f){var c=new i(null);return c.words=new Array(this.length+f.length),this.mulTo(f,c)},i.prototype.mulf=function(f){var c=new i(null);return c.words=new Array(this.length+f.length),$(this,f,c)},i.prototype.imul=function(f){return this.clone().mulTo(f,this)},i.prototype.imuln=function(f){var c=f<0;c&&(f=-f),r(typeof f=="number"),r(f<67108864);for(var g=0,m=0;m<this.length;m++){var h=(this.words[m]|0)*f,o=(h&67108863)+(g&67108863);g>>=26,g+=h/67108864|0,g+=o>>>26,this.words[m]=o&67108863}return g!==0&&(this.words[m]=g,this.length++),this.length=f===0?1:this.length,c?this.ineg():this},i.prototype.muln=function(f){return this.clone().imuln(f)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(f){var c=q(f);if(c.length===0)return new i(1);for(var g=this,m=0;m<c.length&&c[m]===0;m++,g=g.sqr());if(++m<c.length)for(var h=g.sqr();m<c.length;m++,h=h.sqr())c[m]!==0&&(g=g.mul(h));return g},i.prototype.iushln=function(f){r(typeof f=="number"&&f>=0);var c=f%26,g=(f-c)/26,m=67108863>>>26-c<<26-c,h;if(c!==0){var o=0;for(h=0;h<this.length;h++){var p=this.words[h]&m,E=(this.words[h]|0)-p<<c;this.words[h]=E|o,o=p>>>26-c}o&&(this.words[h]=o,this.length++)}if(g!==0){for(h=this.length-1;h>=0;h--)this.words[h+g]=this.words[h];for(h=0;h<g;h++)this.words[h]=0;this.length+=g}return this._strip()},i.prototype.ishln=function(f){return r(this.negative===0),this.iushln(f)},i.prototype.iushrn=function(f,c,g){r(typeof f=="number"&&f>=0);var m;c?m=(c-c%26)/26:m=0;var h=f%26,o=Math.min((f-h)/26,this.length),p=67108863^67108863>>>h<<h,E=g;if(m-=o,m=Math.max(0,m),E){for(var b=0;b<o;b++)E.words[b]=this.words[b];E.length=o}if(o!==0)if(this.length>o)for(this.length-=o,b=0;b<this.length;b++)this.words[b]=this.words[b+o];else this.words[0]=0,this.length=1;var w=0;for(b=this.length-1;b>=0&&(w!==0||b>=m);b--){var H=this.words[b]|0;this.words[b]=w<<26-h|H>>>h,w=H&p}return E&&w!==0&&(E.words[E.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(f,c,g){return r(this.negative===0),this.iushrn(f,c,g)},i.prototype.shln=function(f){return this.clone().ishln(f)},i.prototype.ushln=function(f){return this.clone().iushln(f)},i.prototype.shrn=function(f){return this.clone().ishrn(f)},i.prototype.ushrn=function(f){return this.clone().iushrn(f)},i.prototype.testn=function(f){r(typeof f=="number"&&f>=0);var c=f%26,g=(f-c)/26,m=1<<c;if(this.length<=g)return!1;var h=this.words[g];return!!(h&m)},i.prototype.imaskn=function(f){r(typeof f=="number"&&f>=0);var c=f%26,g=(f-c)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(c!==0&&g++,this.length=Math.min(g,this.length),c!==0){var m=67108863^67108863>>>c<<c;this.words[this.length-1]&=m}return this._strip()},i.prototype.maskn=function(f){return this.clone().imaskn(f)},i.prototype.iaddn=function(f){return r(typeof f=="number"),r(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<=f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},i.prototype._iaddn=function(f){this.words[0]+=f;for(var c=0;c<this.length&&this.words[c]>=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},i.prototype.isubn=function(f){if(r(typeof f=="number"),r(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c<this.length&&this.words[c]<0;c++)this.words[c]+=67108864,this.words[c+1]-=1;return this._strip()},i.prototype.addn=function(f){return this.clone().iaddn(f)},i.prototype.subn=function(f){return this.clone().isubn(f)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(f,c,g){var m=f.length+g,h;this._expand(m);var o,p=0;for(h=0;h<f.length;h++){o=(this.words[h+g]|0)+p;var E=(f.words[h]|0)*c;o-=E&67108863,p=(o>>26)-(E/67108864|0),this.words[h+g]=o&67108863}for(;h<this.length-g;h++)o=(this.words[h+g]|0)+p,p=o>>26,this.words[h+g]=o&67108863;if(p===0)return this._strip();for(r(p===-1),p=0,h=0;h<this.length;h++)o=-(this.words[h]|0)+p,p=o>>26,this.words[h]=o&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(f,c){var g=this.length-f.length,m=this.clone(),h=f,o=h.words[h.length-1]|0,p=this._countBits(o);g=26-p,g!==0&&(h=h.ushln(g),m.iushln(g),o=h.words[h.length-1]|0);var E=m.length-h.length,b;if(c!=="mod"){b=new i(null),b.length=E+1,b.words=new Array(b.length);for(var w=0;w<b.length;w++)b.words[w]=0}var H=m.clone()._ishlnsubmul(h,1,E);H.negative===0&&(m=H,b&&(b.words[E]=1));for(var T=E-1;T>=0;T--){var N=(m.words[h.length+T]|0)*67108864+(m.words[h.length+T-1]|0);for(N=Math.min(N/o|0,67108863),m._ishlnsubmul(h,N,T);m.negative!==0;)N--,m.negative=0,m._ishlnsubmul(h,1,T),m.isZero()||(m.negative^=1);b&&(b.words[T]=N)}return b&&b._strip(),m._strip(),c!=="div"&&g!==0&&m.iushrn(g),{div:b||null,mod:m}},i.prototype.divmod=function(f,c,g){if(r(!f.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var m,h,o;return this.negative!==0&&f.negative===0?(o=this.neg().divmod(f,c),c!=="mod"&&(m=o.div.neg()),c!=="div"&&(h=o.mod.neg(),g&&h.negative!==0&&h.iadd(f)),{div:m,mod:h}):this.negative===0&&f.negative!==0?(o=this.divmod(f.neg(),c),c!=="mod"&&(m=o.div.neg()),{div:m,mod:o.mod}):this.negative&f.negative?(o=this.neg().divmod(f.neg(),c),c!=="div"&&(h=o.mod.neg(),g&&h.negative!==0&&h.isub(f)),{div:o.div,mod:h}):f.length>this.length||this.cmp(f)<0?{div:new i(0),mod:this}:f.length===1?c==="div"?{div:this.divn(f.words[0]),mod:null}:c==="mod"?{div:null,mod:new i(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new i(this.modrn(f.words[0]))}:this._wordDiv(f,c)},i.prototype.div=function(f){return this.divmod(f,"div",!1).div},i.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},i.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},i.prototype.divRound=function(f){var c=this.divmod(f);if(c.mod.isZero())return c.div;var g=c.div.negative!==0?c.mod.isub(f):c.mod,m=f.ushrn(1),h=f.andln(1),o=g.cmp(m);return o<0||h===1&&o===0?c.div:c.div.negative!==0?c.div.isubn(1):c.div.iaddn(1)},i.prototype.modrn=function(f){var c=f<0;c&&(f=-f),r(f<=67108863);for(var g=(1<<26)%f,m=0,h=this.length-1;h>=0;h--)m=(g*m+(this.words[h]|0))%f;return c?-m:m},i.prototype.modn=function(f){return this.modrn(f)},i.prototype.idivn=function(f){var c=f<0;c&&(f=-f),r(f<=67108863);for(var g=0,m=this.length-1;m>=0;m--){var h=(this.words[m]|0)+g*67108864;this.words[m]=h/f|0,g=h%f}return this._strip(),c?this.ineg():this},i.prototype.divn=function(f){return this.clone().idivn(f)},i.prototype.egcd=function(f){r(f.negative===0),r(!f.isZero());var c=this,g=f.clone();c.negative!==0?c=c.umod(f):c=c.clone();for(var m=new i(1),h=new i(0),o=new i(0),p=new i(1),E=0;c.isEven()&&g.isEven();)c.iushrn(1),g.iushrn(1),++E;for(var b=g.clone(),w=c.clone();!c.isZero();){for(var H=0,T=1;!(c.words[0]&T)&&H<26;++H,T<<=1);if(H>0)for(c.iushrn(H);H-- >0;)(m.isOdd()||h.isOdd())&&(m.iadd(b),h.isub(w)),m.iushrn(1),h.iushrn(1);for(var N=0,X=1;!(g.words[0]&X)&&N<26;++N,X<<=1);if(N>0)for(g.iushrn(N);N-- >0;)(o.isOdd()||p.isOdd())&&(o.iadd(b),p.isub(w)),o.iushrn(1),p.iushrn(1);c.cmp(g)>=0?(c.isub(g),m.isub(o),h.isub(p)):(g.isub(c),o.isub(m),p.isub(h))}return{a:o,b:p,gcd:g.iushln(E)}},i.prototype._invmp=function(f){r(f.negative===0),r(!f.isZero());var c=this,g=f.clone();c.negative!==0?c=c.umod(f):c=c.clone();for(var m=new i(1),h=new i(0),o=g.clone();c.cmpn(1)>0&&g.cmpn(1)>0;){for(var p=0,E=1;!(c.words[0]&E)&&p<26;++p,E<<=1);if(p>0)for(c.iushrn(p);p-- >0;)m.isOdd()&&m.iadd(o),m.iushrn(1);for(var b=0,w=1;!(g.words[0]&w)&&b<26;++b,w<<=1);if(b>0)for(g.iushrn(b);b-- >0;)h.isOdd()&&h.iadd(o),h.iushrn(1);c.cmp(g)>=0?(c.isub(g),m.isub(h)):(g.isub(c),h.isub(m))}var H;return c.cmpn(1)===0?H=m:H=h,H.cmpn(0)<0&&H.iadd(f),H},i.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var c=this.clone(),g=f.clone();c.negative=0,g.negative=0;for(var m=0;c.isEven()&&g.isEven();m++)c.iushrn(1),g.iushrn(1);do{for(;c.isEven();)c.iushrn(1);for(;g.isEven();)g.iushrn(1);var h=c.cmp(g);if(h<0){var o=c;c=g,g=o}else if(h===0||g.cmpn(1)===0)break;c.isub(g)}while(!0);return g.iushln(m)},i.prototype.invm=function(f){return this.egcd(f).a.umod(f)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(f){return this.words[0]&f},i.prototype.bincn=function(f){r(typeof f=="number");var c=f%26,g=(f-c)/26,m=1<<c;if(this.length<=g)return this._expand(g+1),this.words[g]|=m,this;for(var h=m,o=g;h!==0&&o<this.length;o++){var p=this.words[o]|0;p+=h,h=p>>>26,p&=67108863,this.words[o]=p}return h!==0&&(this.words[o]=h,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(f){var c=f<0;if(this.negative!==0&&!c)return-1;if(this.negative===0&&c)return 1;this._strip();var g;if(this.length>1)g=1;else{c&&(f=-f),r(f<=67108863,"Number is too big");var m=this.words[0]|0;g=m===f?0:m<f?-1:1}return this.negative!==0?-g|0:g},i.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var c=this.ucmp(f);return this.negative!==0?-c|0:c},i.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var c=0,g=this.length-1;g>=0;g--){var m=this.words[g]|0,h=f.words[g]|0;if(m!==h){m<h?c=-1:m>h&&(c=1);break}}return c},i.prototype.gtn=function(f){return this.cmpn(f)===1},i.prototype.gt=function(f){return this.cmp(f)===1},i.prototype.gten=function(f){return this.cmpn(f)>=0},i.prototype.gte=function(f){return this.cmp(f)>=0},i.prototype.ltn=function(f){return this.cmpn(f)===-1},i.prototype.lt=function(f){return this.cmp(f)===-1},i.prototype.lten=function(f){return this.cmpn(f)<=0},i.prototype.lte=function(f){return this.cmp(f)<=0},i.prototype.eqn=function(f){return this.cmpn(f)===0},i.prototype.eq=function(f){return this.cmp(f)===0},i.red=function(f){return new s(f)},i.prototype.toRed=function(f){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(f){return this.red=f,this},i.prototype.forceRed=function(f){return r(!this.red,"Already a number in reduction context"),this._forceRed(f)},i.prototype.redAdd=function(f){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},i.prototype.redIAdd=function(f){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},i.prototype.redSub=function(f){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},i.prototype.redISub=function(f){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},i.prototype.redShl=function(f){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},i.prototype.redMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},i.prototype.redIMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(f){return r(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(l,f){this.name=l,this.p=new i(f,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ee.prototype._tmp=function(){var f=new i(null);return f.words=new Array(Math.ceil(this.n/13)),f},ee.prototype.ireduce=function(f){var c=f,g;do this.split(c,this.tmp),c=this.imulK(c),c=c.iadd(this.tmp),g=c.bitLength();while(g>this.n);var m=g<this.n?-1:c.ucmp(this.p);return m===0?(c.words[0]=0,c.length=1):m>0?c.isub(this.p):c.strip!==void 0?c.strip():c._strip(),c},ee.prototype.split=function(f,c){f.iushrn(this.n,0,c)},ee.prototype.imulK=function(f){return f.imul(this.k)};function ce(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(ce,ee),ce.prototype.split=function(f,c){for(var g=4194303,m=Math.min(f.length,9),h=0;h<m;h++)c.words[h]=f.words[h];if(c.length=m,f.length<=9){f.words[0]=0,f.length=1;return}var o=f.words[9];for(c.words[c.length++]=o&g,h=10;h<f.length;h++){var p=f.words[h]|0;f.words[h-10]=(p&g)<<4|o>>>22,o=p}o>>>=22,f.words[h-10]=o,o===0&&f.length>10?f.length-=10:f.length-=9},ce.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var c=0,g=0;g<f.length;g++){var m=f.words[g]|0;c+=m*977,f.words[g]=c&67108863,c=m*64+(c/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function te(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(te,ee);function Y(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(Y,ee);function M(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(M,ee),M.prototype.imulK=function(f){for(var c=0,g=0;g<f.length;g++){var m=(f.words[g]|0)*19+c,h=m&67108863;m>>>=26,f.words[g]=h,c=m}return c!==0&&(f.words[f.length++]=c),f},i._prime=function(f){if(ie[f])return ie[f];var c;if(f==="k256")c=new ce;else if(f==="p224")c=new te;else if(f==="p192")c=new Y;else if(f==="p25519")c=new M;else throw new Error("Unknown prime "+f);return ie[f]=c,c};function s(l){if(typeof l=="string"){var f=i._prime(l);this.m=f.p,this.prime=f}else r(l.gtn(1),"modulus must be greater than 1"),this.m=l,this.prime=null}s.prototype._verify1=function(f){r(f.negative===0,"red works only with positives"),r(f.red,"red works only with red numbers")},s.prototype._verify2=function(f,c){r((f.negative|c.negative)===0,"red works only with positives"),r(f.red&&f.red===c.red,"red works only with red numbers")},s.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(x(f,f.umod(this.m)._forceRed(this)),f)},s.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},s.prototype.add=function(f,c){this._verify2(f,c);var g=f.add(c);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},s.prototype.iadd=function(f,c){this._verify2(f,c);var g=f.iadd(c);return g.cmp(this.m)>=0&&g.isub(this.m),g},s.prototype.sub=function(f,c){this._verify2(f,c);var g=f.sub(c);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},s.prototype.isub=function(f,c){this._verify2(f,c);var g=f.isub(c);return g.cmpn(0)<0&&g.iadd(this.m),g},s.prototype.shl=function(f,c){return this._verify1(f),this.imod(f.ushln(c))},s.prototype.imul=function(f,c){return this._verify2(f,c),this.imod(f.imul(c))},s.prototype.mul=function(f,c){return this._verify2(f,c),this.imod(f.mul(c))},s.prototype.isqr=function(f){return this.imul(f,f.clone())},s.prototype.sqr=function(f){return this.mul(f,f)},s.prototype.sqrt=function(f){if(f.isZero())return f.clone();var c=this.m.andln(3);if(r(c%2===1),c===3){var g=this.m.add(new i(1)).iushrn(2);return this.pow(f,g)}for(var m=this.m.subn(1),h=0;!m.isZero()&&m.andln(1)===0;)h++,m.iushrn(1);r(!m.isZero());var o=new i(1).toRed(this),p=o.redNeg(),E=this.m.subn(1).iushrn(1),b=this.m.bitLength();for(b=new i(2*b*b).toRed(this);this.pow(b,E).cmp(p)!==0;)b.redIAdd(p);for(var w=this.pow(b,m),H=this.pow(f,m.addn(1).iushrn(1)),T=this.pow(f,m),N=h;T.cmp(o)!==0;){for(var X=T,Z=0;X.cmp(o)!==0;Z++)X=X.redSqr();r(Z<N);var _=this.pow(w,new i(1).iushln(N-Z-1));H=H.redMul(_),w=_.redSqr(),T=T.redMul(w),N=Z}return H},s.prototype.invm=function(f){var c=f._invmp(this.m);return c.negative!==0?(c.negative=0,this.imod(c).redNeg()):this.imod(c)},s.prototype.pow=function(f,c){if(c.isZero())return new i(1).toRed(this);if(c.cmpn(1)===0)return f.clone();var g=4,m=new Array(1<<g);m[0]=new i(1).toRed(this),m[1]=f;for(var h=2;h<m.length;h++)m[h]=this.mul(m[h-1],f);var o=m[0],p=0,E=0,b=c.bitLength()%26;for(b===0&&(b=26),h=c.length-1;h>=0;h--){for(var w=c.words[h],H=b-1;H>=0;H--){var T=w>>H&1;if(o!==m[0]&&(o=this.sqr(o)),T===0&&p===0){E=0;continue}p<<=1,p|=T,E++,!(E!==g&&(h!==0||H!==0))&&(o=this.mul(o,m[p]),E=0,p=0)}b=26}return o},s.prototype.convertTo=function(f){var c=f.umod(this.m);return c===f?c.clone():c},s.prototype.convertFrom=function(f){var c=f.clone();return c.red=null,c},i.mont=function(f){return new u(f)};function u(l){s.call(this,l),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}n(u,s),u.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},u.prototype.convertFrom=function(f){var c=this.imod(f.mul(this.rinv));return c.red=null,c},u.prototype.imul=function(f,c){if(f.isZero()||c.isZero())return f.words[0]=0,f.length=1,f;var g=f.imul(c),m=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=g.isub(m).iushrn(this.shift),o=h;return h.cmp(this.m)>=0?o=h.isub(this.m):h.cmpn(0)<0&&(o=h.iadd(this.m)),o._forceRed(this)},u.prototype.mul=function(f,c){if(f.isZero()||c.isZero())return new i(0)._forceRed(this);var g=f.mul(c),m=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=g.isub(m).iushrn(this.shift),o=h;return h.cmp(this.m)>=0?o=h.isub(this.m):h.cmpn(0)<0&&(o=h.iadd(this.m)),o._forceRed(this)},u.prototype.invm=function(f){var c=this.imod(f._invmp(this.m).mul(this.r2));return c._forceRed(this)}})(typeof Ml>"u"||Ml,Pb)});var Sl=V(f0=>{"use strict";var nP=A(S());Object.defineProperty(f0,"__esModule",{value:!0});f0.version=void 0;f0.version="bignumber/5.8.0"});var u0=V(Qr=>{"use strict";var aP=A(S()),A4=Qr&&Qr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qr,"__esModule",{value:!0});Qr._base16To36=Qr._base36To16=Qr.BigNumber=Qr.isBigNumberish=void 0;var M4=A4(Lb()),Ms=M4.default.BN,bo=nt(),go=Ct(),S4=Sl(),pi=new go.Logger(S4.version),Tl={},Rb=9007199254740991;function T4(t){return t!=null&&(c0.isBigNumber(t)||typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||(0,bo.isHexString)(t)||typeof t=="bigint"||(0,bo.isBytes)(t))}Qr.isBigNumberish=T4;var Fb=!1,c0=function(){function t(e,r){e!==Tl&&pi.throwError("cannot call constructor directly; use BigNumber.from",go.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}return t.prototype.fromTwos=function(e){return _r(He(this).fromTwos(e))},t.prototype.toTwos=function(e){return _r(He(this).toTwos(e))},t.prototype.abs=function(){return this._hex[0]==="-"?t.from(this._hex.substring(1)):this},t.prototype.add=function(e){return _r(He(this).add(He(e)))},t.prototype.sub=function(e){return _r(He(this).sub(He(e)))},t.prototype.div=function(e){var r=t.from(e);return r.isZero()&&jr("division-by-zero","div"),_r(He(this).div(He(e)))},t.prototype.mul=function(e){return _r(He(this).mul(He(e)))},t.prototype.mod=function(e){var r=He(e);return r.isNeg()&&jr("division-by-zero","mod"),_r(He(this).umod(r))},t.prototype.pow=function(e){var r=He(e);return r.isNeg()&&jr("negative-power","pow"),_r(He(this).pow(r))},t.prototype.and=function(e){var r=He(e);return(this.isNegative()||r.isNeg())&&jr("unbound-bitwise-result","and"),_r(He(this).and(r))},t.prototype.or=function(e){var r=He(e);return(this.isNegative()||r.isNeg())&&jr("unbound-bitwise-result","or"),_r(He(this).or(r))},t.prototype.xor=function(e){var r=He(e);return(this.isNegative()||r.isNeg())&&jr("unbound-bitwise-result","xor"),_r(He(this).xor(r))},t.prototype.mask=function(e){return(this.isNegative()||e<0)&&jr("negative-width","mask"),_r(He(this).maskn(e))},t.prototype.shl=function(e){return(this.isNegative()||e<0)&&jr("negative-width","shl"),_r(He(this).shln(e))},t.prototype.shr=function(e){return(this.isNegative()||e<0)&&jr("negative-width","shr"),_r(He(this).shrn(e))},t.prototype.eq=function(e){return He(this).eq(He(e))},t.prototype.lt=function(e){return He(this).lt(He(e))},t.prototype.lte=function(e){return He(this).lte(He(e))},t.prototype.gt=function(e){return He(this).gt(He(e))},t.prototype.gte=function(e){return He(this).gte(He(e))},t.prototype.isNegative=function(){return this._hex[0]==="-"},t.prototype.isZero=function(){return He(this).isZero()},t.prototype.toNumber=function(){try{return He(this).toNumber()}catch{jr("overflow","toNumber",this.toString())}return null},t.prototype.toBigInt=function(){try{return BigInt(this.toString())}catch{}return pi.throwError("this platform does not support BigInt",go.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})},t.prototype.toString=function(){return arguments.length>0&&(arguments[0]===10?Fb||(Fb=!0,pi.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?pi.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",go.Logger.errors.UNEXPECTED_ARGUMENT,{}):pi.throwError("BigNumber.toString does not accept parameters",go.Logger.errors.UNEXPECTED_ARGUMENT,{})),He(this).toString(10)},t.prototype.toHexString=function(){return this._hex},t.prototype.toJSON=function(e){return{type:"BigNumber",hex:this.toHexString()}},t.from=function(e){if(e instanceof t)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new t(Tl,Ss(e)):e.match(/^-?[0-9]+$/)?new t(Tl,Ss(new Ms(e))):pi.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&jr("underflow","BigNumber.from",e),(e>=Rb||e<=-Rb)&&jr("overflow","BigNumber.from",e),t.from(String(e));var r=e;if(typeof r=="bigint")return t.from(r.toString());if((0,bo.isBytes)(r))return t.from((0,bo.hexlify)(r));if(r)if(r.toHexString){var n=r.toHexString();if(typeof n=="string")return t.from(n)}else{var n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&((0,bo.isHexString)(n)||n[0]==="-"&&(0,bo.isHexString)(n.substring(1))))return t.from(n)}return pi.throwArgumentError("invalid BigNumber value","value",e)},t.isBigNumber=function(e){return!!(e&&e._isBigNumber)},t}();Qr.BigNumber=c0;function Ss(t){if(typeof t!="string")return Ss(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&pi.throwArgumentError("invalid hex","value",t),t=Ss(t),t==="0x00"?t:"-"+t;if(t.substring(0,2)!=="0x"&&(t="0x"+t),t==="0x")return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&t.substring(0,4)==="0x00";)t="0x"+t.substring(4);return t}function _r(t){return c0.from(Ss(t))}function He(t){var e=c0.from(t).toHexString();return e[0]==="-"?new Ms("-"+e.substring(3),16):new Ms(e.substring(2),16)}function jr(t,e,r){var n={fault:t,operation:e};return r!=null&&(n.value=r),pi.throwError(t,go.Logger.errors.NUMERIC_FAULT,n)}function E4(t){return new Ms(t,36).toString(16)}Qr._base36To16=E4;function _4(t){return new Ms(t,16).toString(36)}Qr._base16To36=_4});var kb=V(Jn=>{"use strict";var sP=A(S());Object.defineProperty(Jn,"__esModule",{value:!0});Jn.FixedNumber=Jn.FixedFormat=Jn.parseFixed=Jn.formatFixed=void 0;var l0=nt(),_s=Ct(),B4=Sl(),Sr=new _s.Logger(B4.version),bi=u0(),Ts={},Ob=bi.BigNumber.from(0),Ib=bi.BigNumber.from(-1);function Nb(t,e,r,n){var i={fault:e,operation:r};return n!==void 0&&(i.value=n),Sr.throwError(t,_s.Logger.errors.NUMERIC_FAULT,i)}var Es="0";for(;Es.length<256;)Es+=Es;function El(t){if(typeof t!="number")try{t=bi.BigNumber.from(t).toNumber()}catch{}return typeof t=="number"&&t>=0&&t<=256&&!(t%1)?"1"+Es.substring(0,t):Sr.throwArgumentError("invalid decimal size","decimals",t)}function d0(t,e){e==null&&(e=0);var r=El(e);t=bi.BigNumber.from(t);var n=t.lt(Ob);n&&(t=t.mul(Ib));for(var i=t.mod(r).toString();i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];var a=t.div(r).toString();return r.length===1?t=a:t=a+"."+i,n&&(t="-"+t),t}Jn.formatFixed=d0;function kn(t,e){e==null&&(e=0);var r=El(e);(typeof t!="string"||!t.match(/^-?[0-9.]+$/))&&Sr.throwArgumentError("invalid decimal value","value",t);var n=t.substring(0,1)==="-";n&&(t=t.substring(1)),t==="."&&Sr.throwArgumentError("missing value","value",t);var i=t.split(".");i.length>2&&Sr.throwArgumentError("too many decimal points","value",t);var a=i[0],d=i[1];for(a||(a="0"),d||(d="0");d[d.length-1]==="0";)d=d.substring(0,d.length-1);for(d.length>r.length-1&&Nb("fractional component exceeds decimals","underflow","parseFixed"),d===""&&(d="0");d.length<r.length-1;)d+="0";var v=bi.BigNumber.from(a),y=bi.BigNumber.from(d),x=v.mul(r).add(y);return n&&(x=x.mul(Ib)),x}Jn.parseFixed=kn;var h0=function(){function t(e,r,n,i){e!==Ts&&Sr.throwError("cannot use FixedFormat constructor; use FixedFormat.from",_s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=r,this.width=n,this.decimals=i,this.name=(r?"":"u")+"fixed"+String(n)+"x"+String(i),this._multiplier=El(i),Object.freeze(this)}return t.from=function(e){if(e instanceof t)return e;typeof e=="number"&&(e="fixed128x"+e);var r=!0,n=128,i=18;if(typeof e=="string"){if(e!=="fixed")if(e==="ufixed")r=!1;else{var a=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);a||Sr.throwArgumentError("invalid fixed format","format",e),r=a[1]!=="u",n=parseInt(a[2]),i=parseInt(a[3])}}else if(e){var d=function(v,y,x){return e[v]==null?x:(typeof e[v]!==y&&Sr.throwArgumentError("invalid fixed format ("+v+" not "+y+")","format."+v,e[v]),e[v])};r=d("signed","boolean",r),n=d("width","number",n),i=d("decimals","number",i)}return n%8&&Sr.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&Sr.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new t(Ts,r,n,i)},t}();Jn.FixedFormat=h0;var _l=function(){function t(e,r,n,i){e!==Ts&&Sr.throwError("cannot use FixedNumber constructor; use FixedNumber.from",_s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return t.prototype._checkFormat=function(e){this.format.name!==e.format.name&&Sr.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)},t.prototype.addUnsafe=function(e){this._checkFormat(e);var r=kn(this._value,this.format.decimals),n=kn(e._value,e.format.decimals);return t.fromValue(r.add(n),this.format.decimals,this.format)},t.prototype.subUnsafe=function(e){this._checkFormat(e);var r=kn(this._value,this.format.decimals),n=kn(e._value,e.format.decimals);return t.fromValue(r.sub(n),this.format.decimals,this.format)},t.prototype.mulUnsafe=function(e){this._checkFormat(e);var r=kn(this._value,this.format.decimals),n=kn(e._value,e.format.decimals);return t.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)},t.prototype.divUnsafe=function(e){this._checkFormat(e);var r=kn(this._value,this.format.decimals),n=kn(e._value,e.format.decimals);return t.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)},t.prototype.floor=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var r=t.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(Db.toFormat(r.format))),r},t.prototype.ceiling=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var r=t.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(Db.toFormat(r.format))),r},t.prototype.round=function(e){e==null&&(e=0);var r=this.toString().split(".");if(r.length===1&&r.push("0"),(e<0||e>80||e%1)&&Sr.throwArgumentError("invalid decimal count","decimals",e),r[1].length<=e)return this;var n=t.from("1"+Es.substring(0,e),this.format),i=C4.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)},t.prototype.isZero=function(){return this._value==="0.0"||this._value==="0"},t.prototype.isNegative=function(){return this._value[0]==="-"},t.prototype.toString=function(){return this._value},t.prototype.toHexString=function(e){if(e==null)return this._hex;e%8&&Sr.throwArgumentError("invalid byte width","width",e);var r=bi.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,l0.hexZeroPad)(r,e/8)},t.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())},t.prototype.toFormat=function(e){return t.fromString(this._value,e)},t.fromValue=function(e,r,n){return n==null&&r!=null&&!(0,bi.isBigNumberish)(r)&&(n=r,r=null),r==null&&(r=0),n==null&&(n="fixed"),t.fromString(d0(e,r),h0.from(n))},t.fromString=function(e,r){r==null&&(r="fixed");var n=h0.from(r),i=kn(e,n.decimals);!n.signed&&i.lt(Ob)&&Nb("unsigned value cannot be negative","overflow","value",e);var a=null;n.signed?a=i.toTwos(n.width).toHexString():(a=i.toHexString(),a=(0,l0.hexZeroPad)(a,n.width/8));var d=d0(i,n.decimals);return new t(Ts,a,d,n)},t.fromBytes=function(e,r){r==null&&(r="fixed");var n=h0.from(r);if((0,l0.arrayify)(e).length>n.width/8)throw new Error("overflow");var i=bi.BigNumber.from(e);n.signed&&(i=i.fromTwos(n.width));var a=i.toTwos((n.signed?0:1)+n.width).toHexString(),d=d0(i,n.decimals);return new t(Ts,a,d,n)},t.from=function(e,r){if(typeof e=="string")return t.fromString(e,r);if((0,l0.isBytes)(e))return t.fromBytes(e,r);try{return t.fromValue(e,0,r)}catch(n){if(n.code!==_s.Logger.errors.INVALID_ARGUMENT)throw n}return Sr.throwArgumentError("invalid FixedNumber value","value",e)},t.isFixedNumber=function(e){return!!(e&&e._isFixedNumber)},t}();Jn.FixedNumber=_l;var Db=_l.from(1),C4=_l.from("0.5")});var ba=V(sr=>{"use strict";var cP=A(S());Object.defineProperty(sr,"__esModule",{value:!0});sr._base36To16=sr._base16To36=sr.parseFixed=sr.FixedNumber=sr.FixedFormat=sr.formatFixed=sr.BigNumber=void 0;var P4=u0();Object.defineProperty(sr,"BigNumber",{enumerable:!0,get:function(){return P4.BigNumber}});var p0=kb();Object.defineProperty(sr,"formatFixed",{enumerable:!0,get:function(){return p0.formatFixed}});Object.defineProperty(sr,"FixedFormat",{enumerable:!0,get:function(){return p0.FixedFormat}});Object.defineProperty(sr,"FixedNumber",{enumerable:!0,get:function(){return p0.FixedNumber}});Object.defineProperty(sr,"parseFixed",{enumerable:!0,get:function(){return p0.parseFixed}});var Jb=u0();Object.defineProperty(sr,"_base16To36",{enumerable:!0,get:function(){return Jb._base16To36}});Object.defineProperty(sr,"_base36To16",{enumerable:!0,get:function(){return Jb._base36To16}})});var Ub=V(kt=>{"use strict";var lP=A(S());Object.defineProperty(kt,"__esModule",{value:!0});kt.MaxInt256=kt.MinInt256=kt.MaxUint256=kt.WeiPerEther=kt.Two=kt.One=kt.Zero=kt.NegativeOne=void 0;var Ni=ba(),L4=Ni.BigNumber.from(-1);kt.NegativeOne=L4;var R4=Ni.BigNumber.from(0);kt.Zero=R4;var F4=Ni.BigNumber.from(1);kt.One=F4;var D4=Ni.BigNumber.from(2);kt.Two=D4;var O4=Ni.BigNumber.from("1000000000000000000");kt.WeiPerEther=O4;var I4=Ni.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");kt.MaxUint256=I4;var N4=Ni.BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000");kt.MinInt256=N4;var k4=Ni.BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");kt.MaxInt256=k4});var Hb=V(b0=>{"use strict";var hP=A(S());Object.defineProperty(b0,"__esModule",{value:!0});b0.HashZero=void 0;b0.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000"});var qb=V(g0=>{"use strict";var bP=A(S());Object.defineProperty(g0,"__esModule",{value:!0});g0.EtherSymbol=void 0;g0.EtherSymbol="\u039E"});var Bl=V(ut=>{"use strict";var vP=A(S());Object.defineProperty(ut,"__esModule",{value:!0});ut.EtherSymbol=ut.HashZero=ut.MaxInt256=ut.MinInt256=ut.MaxUint256=ut.WeiPerEther=ut.Two=ut.One=ut.Zero=ut.NegativeOne=ut.AddressZero=void 0;var J4=Cb();Object.defineProperty(ut,"AddressZero",{enumerable:!0,get:function(){return J4.AddressZero}});var ki=Ub();Object.defineProperty(ut,"NegativeOne",{enumerable:!0,get:function(){return ki.NegativeOne}});Object.defineProperty(ut,"Zero",{enumerable:!0,get:function(){return ki.Zero}});Object.defineProperty(ut,"One",{enumerable:!0,get:function(){return ki.One}});Object.defineProperty(ut,"Two",{enumerable:!0,get:function(){return ki.Two}});Object.defineProperty(ut,"WeiPerEther",{enumerable:!0,get:function(){return ki.WeiPerEther}});Object.defineProperty(ut,"MaxUint256",{enumerable:!0,get:function(){return ki.MaxUint256}});Object.defineProperty(ut,"MinInt256",{enumerable:!0,get:function(){return ki.MinInt256}});Object.defineProperty(ut,"MaxInt256",{enumerable:!0,get:function(){return ki.MaxInt256}});var U4=Hb();Object.defineProperty(ut,"HashZero",{enumerable:!0,get:function(){return U4.HashZero}});var H4=qb();Object.defineProperty(ut,"EtherSymbol",{enumerable:!0,get:function(){return H4.EtherSymbol}})});var Gb=V(v0=>{"use strict";var xP=A(S());Object.defineProperty(v0,"__esModule",{value:!0});v0.version=void 0;v0.version="strings/5.8.0"});var x0=V(At=>{"use strict";var wP=A(S());Object.defineProperty(At,"__esModule",{value:!0});At.toUtf8CodePoints=At.toUtf8String=At._toUtf8String=At._toEscapedUtf8String=At.toUtf8Bytes=At.Utf8ErrorFuncs=At.Utf8ErrorReason=At.UnicodeNormalizationForm=void 0;var Xb=nt(),q4=Ct(),G4=Gb(),zb=new q4.Logger(G4.version),m0;(function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"})(m0=At.UnicodeNormalizationForm||(At.UnicodeNormalizationForm={}));var Wr;(function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"})(Wr=At.Utf8ErrorReason||(At.Utf8ErrorReason={}));function X4(t,e,r,n,i){return zb.throwArgumentError("invalid codepoint at offset "+e+"; "+t,"bytes",r)}function Kb(t,e,r,n,i){if(t===Wr.BAD_PREFIX||t===Wr.UNEXPECTED_CONTINUE){for(var a=0,d=e+1;d<r.length&&r[d]>>6===2;d++)a++;return a}return t===Wr.OVERRUN?r.length-e-1:0}function z4(t,e,r,n,i){return t===Wr.OVERLONG?(n.push(i),0):(n.push(65533),Kb(t,e,r,n,i))}At.Utf8ErrorFuncs=Object.freeze({error:X4,ignore:Kb,replace:z4});function Pl(t,e){e==null&&(e=At.Utf8ErrorFuncs.error),t=(0,Xb.arrayify)(t);for(var r=[],n=0;n<t.length;){var i=t[n++];if(!(i>>7)){r.push(i);continue}var a=null,d=null;if((i&224)===192)a=1,d=127;else if((i&240)===224)a=2,d=2047;else if((i&248)===240)a=3,d=65535;else{(i&192)===128?n+=e(Wr.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(Wr.BAD_PREFIX,n-1,t,r);continue}if(n-1+a>=t.length){n+=e(Wr.OVERRUN,n-1,t,r);continue}for(var v=i&(1<<8-a-1)-1,y=0;y<a;y++){var x=t[n];if((x&192)!=128){n+=e(Wr.MISSING_CONTINUE,n,t,r),v=null;break}v=v<<6|x&63,n++}if(v!==null){if(v>1114111){n+=e(Wr.OUT_OF_RANGE,n-1-a,t,r,v);continue}if(v>=55296&&v<=57343){n+=e(Wr.UTF16_SURROGATE,n-1-a,t,r,v);continue}if(v<=d){n+=e(Wr.OVERLONG,n-1-a,t,r,v);continue}r.push(v)}}return r}function Zb(t,e){e===void 0&&(e=m0.current),e!=m0.current&&(zb.checkNormalize(),t=t.normalize(e));for(var r=[],n=0;n<t.length;n++){var i=t.charCodeAt(n);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;var a=t.charCodeAt(n);if(n>=t.length||(a&64512)!==56320)throw new Error("invalid utf-8 string");var d=65536+((i&1023)<<10)+(a&1023);r.push(d>>18|240),r.push(d>>12&63|128),r.push(d>>6&63|128),r.push(d&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return(0,Xb.arrayify)(r)}At.toUtf8Bytes=Zb;function Cl(t){var e="0000"+t.toString(16);return"\\u"+e.substring(e.length-4)}function K4(t,e){return'"'+Pl(t,e).map(function(r){if(r<256){switch(r){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(r>=32&&r<127)return String.fromCharCode(r)}return r<=65535?Cl(r):(r-=65536,Cl((r>>10&1023)+55296)+Cl((r&1023)+56320))}).join("")+'"'}At._toEscapedUtf8String=K4;function Vb(t){return t.map(function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))}).join("")}At._toUtf8String=Vb;function Z4(t,e){return Vb(Pl(t,e))}At.toUtf8String=Z4;function V4(t,e){return e===void 0&&(e=m0.current),Pl(Zb(t,e))}At.toUtf8CodePoints=V4});var Qb=V(vo=>{"use strict";var MP=A(S());Object.defineProperty(vo,"__esModule",{value:!0});vo.parseBytes32String=vo.formatBytes32String=void 0;var j4=Bl(),Ll=nt(),jb=x0();function Q4(t){var e=(0,jb.toUtf8Bytes)(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,Ll.hexlify)((0,Ll.concat)([e,j4.HashZero]).slice(0,32))}vo.formatBytes32String=Q4;function W4(t){var e=(0,Ll.arrayify)(t);if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");for(var r=31;e[r-1]===0;)r--;return(0,jb.toUtf8String)(e.slice(0,r))}vo.parseBytes32String=W4});var tg=V(Un=>{"use strict";var TP=A(S());Object.defineProperty(Un,"__esModule",{value:!0});Un.nameprep=Un._nameprepTableC=Un._nameprepTableB2=Un._nameprepTableA1=void 0;var Bs=x0();function Y4(t){if(t.length%4!==0)throw new Error("bad data");for(var e=[],r=0;r<t.length;r+=4)e.push(parseInt(t.substring(r,r+4),16));return e}function Rl(t,e){e||(e=function(i){return[parseInt(i,16)]});var r=0,n={};return t.split(",").forEach(function(i){var a=i.split(":");r+=parseInt(a[0],16),n[r]=e(a[1])}),n}function Wb(t){var e=0;return t.split(",").map(function(r){var n=r.split("-");n.length===1?n[1]="0":n[1]===""&&(n[1]="1");var i=e+parseInt(n[0],16);return e=parseInt(n[1],16),{l:i,h:e}})}function Fl(t,e){for(var r=0,n=0;n<e.length;n++){var i=e[n];if(r+=i.l,t>=r&&t<=r+i.h&&(t-r)%(i.d||1)===0){if(i.e&&i.e.indexOf(t-r)!==-1)continue;return i}}return null}var $4=Wb("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),e5="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(function(t){return parseInt(t,16)}),t5=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],r5=Rl("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),n5=Rl("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),i5=Rl("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",Y4),a5=Wb("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function o5(t){return t.reduce(function(e,r){return r.forEach(function(n){e.push(n)}),e},[])}function Yb(t){return!!Fl(t,$4)}Un._nameprepTableA1=Yb;function $b(t){var e=Fl(t,t5);if(e)return[t+e.s];var r=r5[t];if(r)return r;var n=n5[t];if(n)return[t+n[0]];var i=i5[t];return i||null}Un._nameprepTableB2=$b;function eg(t){return!!Fl(t,a5)}Un._nameprepTableC=eg;function s5(t){if(t.match(/^[a-z0-9-]*$/i)&&t.length<=59)return t.toLowerCase();var e=(0,Bs.toUtf8CodePoints)(t);e=o5(e.map(function(n){if(e5.indexOf(n)>=0)return[];if(n>=65024&&n<=65039)return[];var i=$b(n);return i||[n]})),e=(0,Bs.toUtf8CodePoints)((0,Bs._toUtf8String)(e),Bs.UnicodeNormalizationForm.NFKC),e.forEach(function(n){if(eg(n))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(function(n){if(Yb(n))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});var r=(0,Bs._toUtf8String)(e);if(r.substring(0,1)==="-"||r.substring(2,4)==="--"||r.substring(r.length-1)==="-")throw new Error("invalid hyphen");return r}Un.nameprep=s5});var Dr=V(ht=>{"use strict";var _P=A(S());Object.defineProperty(ht,"__esModule",{value:!0});ht.nameprep=ht.parseBytes32String=ht.formatBytes32String=ht.UnicodeNormalizationForm=ht.Utf8ErrorReason=ht.Utf8ErrorFuncs=ht.toUtf8String=ht.toUtf8CodePoints=ht.toUtf8Bytes=ht._toEscapedUtf8String=void 0;var rg=Qb();Object.defineProperty(ht,"formatBytes32String",{enumerable:!0,get:function(){return rg.formatBytes32String}});Object.defineProperty(ht,"parseBytes32String",{enumerable:!0,get:function(){return rg.parseBytes32String}});var f5=tg();Object.defineProperty(ht,"nameprep",{enumerable:!0,get:function(){return f5.nameprep}});var ga=x0();Object.defineProperty(ht,"_toEscapedUtf8String",{enumerable:!0,get:function(){return ga._toEscapedUtf8String}});Object.defineProperty(ht,"toUtf8Bytes",{enumerable:!0,get:function(){return ga.toUtf8Bytes}});Object.defineProperty(ht,"toUtf8CodePoints",{enumerable:!0,get:function(){return ga.toUtf8CodePoints}});Object.defineProperty(ht,"toUtf8String",{enumerable:!0,get:function(){return ga.toUtf8String}});Object.defineProperty(ht,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return ga.UnicodeNormalizationForm}});Object.defineProperty(ht,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return ga.Utf8ErrorFuncs}});Object.defineProperty(ht,"Utf8ErrorReason",{enumerable:!0,get:function(){return ga.Utf8ErrorReason}})});var Dl=V(y0=>{"use strict";var CP=A(S());Object.defineProperty(y0,"__esModule",{value:!0});y0.id=void 0;var c5=Nn(),u5=Dr();function l5(t){return(0,c5.keccak256)((0,u5.toUtf8Bytes)(t))}y0.id=l5});var Ol=V(w0=>{"use strict";var LP=A(S());Object.defineProperty(w0,"__esModule",{value:!0});w0.version=void 0;w0.version="hash/5.8.0"});var ig=V(mo=>{"use strict";var FP=A(S());Object.defineProperty(mo,"__esModule",{value:!0});mo.encode=mo.decode=void 0;var ng=nt();function d5(t){return(0,ng.arrayify)(new Uint8Array(Buffer.from(t,"base64")))}mo.decode=d5;function h5(t){return Buffer.from((0,ng.arrayify)(t)).toString("base64")}mo.encode=h5});var og=V(xo=>{"use strict";var OP=A(S());Object.defineProperty(xo,"__esModule",{value:!0});xo.encode=xo.decode=void 0;var ag=ig();Object.defineProperty(xo,"decode",{enumerable:!0,get:function(){return ag.decode}});Object.defineProperty(xo,"encode",{enumerable:!0,get:function(){return ag.encode}})});var Nl=V(Jt=>{"use strict";var NP=A(S());Object.defineProperty(Jt,"__esModule",{value:!0});Jt.read_emoji_trie=Jt.read_zero_terminated_array=Jt.read_mapped_map=Jt.read_member_array=Jt.signed=Jt.read_compressed_payload=Jt.read_payload=Jt.decode_arithmetic=void 0;function fg(t,e){e==null&&(e=1);var r=[],n=r.forEach,i=function(a,d){n.call(a,function(v){d>0&&Array.isArray(v)?i(v,d-1):r.push(v)})};return i(t,e),r}function p5(t){for(var e={},r=0;r<t.length;r++){var n=t[r];e[n[0]]=n[1]}return e}function cg(t){var e=0;function r(){return t[e++]<<8|t[e++]}for(var n=r(),i=1,a=[0,1],d=1;d<n;d++)a.push(i+=r());var v=r(),y=e;e+=v;var x=0,B=0;function C(){return x==0&&(B=B<<8|t[e++],x=8),B>>--x&1}for(var D=31,F=Math.pow(2,D),P=F>>>1,q=P>>1,W=F-1,K=0,d=0;d<D;d++)K=K<<1|C();for(var ne=[],$=0,ae=F;;){for(var ie=Math.floor(((K-$+1)*i-1)/ae),ee=0,ce=n;ce-ee>1;){var te=ee+ce>>>1;ie<a[te]?ce=te:ee=te}if(ee==0)break;ne.push(ee);for(var Y=$+Math.floor(ae*a[ee]/i),M=$+Math.floor(ae*a[ee+1]/i)-1;!((Y^M)&P);)K=K<<1&W|C(),Y=Y<<1&W,M=M<<1&W|1;for(;Y&~M&q;)K=K&P|K<<1&W>>>1|C(),Y=Y<<1^P,M=(M^P)<<1|P|1;$=Y,ae=1+M-Y}var s=n-4;return ne.map(function(u){switch(u-s){case 3:return s+65792+(t[y++]<<16|t[y++]<<8|t[y++]);case 2:return s+256+(t[y++]<<8|t[y++]);case 1:return s+t[y++];default:return u-1}})}Jt.decode_arithmetic=cg;function ug(t){var e=0;return function(){return t[e++]}}Jt.read_payload=ug;function b5(t){return ug(cg(t))}Jt.read_compressed_payload=b5;function lg(t){return t&1?~t>>1:t>>1}Jt.signed=lg;function g5(t,e){for(var r=Array(t),n=0;n<t;n++)r[n]=1+e();return r}function sg(t,e){for(var r=Array(t),n=0,i=-1;n<t;n++)r[n]=i+=1+e();return r}function v5(t,e){for(var r=Array(t),n=0,i=0;n<t;n++)r[n]=i+=lg(e());return r}function Il(t,e){for(var r=sg(t(),t),n=t(),i=sg(n,t),a=g5(n,t),d=0;d<n;d++)for(var v=0;v<a[d];v++)r.push(i[d]+v);return e?r.map(function(y){return e[y]}):r}Jt.read_member_array=Il;function m5(t){for(var e=[];;){var r=t();if(r==0)break;e.push(x5(r,t))}for(;;){var r=t()-1;if(r<0)break;e.push(y5(r,t))}return p5(fg(e))}Jt.read_mapped_map=m5;function dg(t){for(var e=[];;){var r=t();if(r==0)break;e.push(r)}return e}Jt.read_zero_terminated_array=dg;function hg(t,e,r){for(var n=Array(t).fill(void 0).map(function(){return[]}),i=0;i<e;i++)v5(t,r).forEach(function(a,d){return n[d].push(a)});return n}function x5(t,e){var r=1+e(),n=e(),i=dg(e),a=hg(i.length,1+t,e);return fg(a.map(function(d,v){var y=d[0],x=d.slice(1);return Array(i[v]).fill(void 0).map(function(B,C){var D=C*n;return[y+C*r,x.map(function(F){return F+D})]})}))}function y5(t,e){var r=1+e(),n=hg(r,1+t,e);return n.map(function(i){return[i[0],i.slice(1)]})}function w5(t){var e=Il(t).sort(function(n,i){return n-i});return r();function r(){for(var n=[];;){var i=Il(t,e);if(i.length==0)break;n.push({set:new Set(i),node:r()})}n.sort(function(B,C){return C.set.size-B.set.size});var a=t(),d=a%3;a=a/3|0;var v=!!(a&1);a>>=1;var y=a==1,x=a==2;return{branches:n,valid:d,fe0f:v,save:y,check:x}}}Jt.read_emoji_trie=w5});var pg=V(A0=>{"use strict";var JP=A(S());Object.defineProperty(A0,"__esModule",{value:!0});A0.getData=void 0;var A5=og(),M5=Nl();function S5(){return(0,M5.read_compressed_payload)((0,A5.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}A0.getData=S5});var mg=V(yo=>{"use strict";var HP=A(S());Object.defineProperty(yo,"__esModule",{value:!0});yo.ens_normalize=yo.ens_normalize_post_check=void 0;var T5=Dr(),E5=pg(),M0=(0,E5.getData)(),S0=Nl(),_5=new Set((0,S0.read_member_array)(M0)),B5=new Set((0,S0.read_member_array)(M0)),C5=(0,S0.read_mapped_map)(M0),P5=(0,S0.read_emoji_trie)(M0),bg=45,gg=95;function vg(t){return(0,T5.toUtf8CodePoints)(t)}function L5(t){return t.filter(function(e){return e!=65039})}function kl(t){for(var e=0,r=t.split(".");e<r.length;e++){var n=r[e],i=vg(n);try{for(var a=i.lastIndexOf(gg)-1;a>=0;a--)if(i[a]!==gg)throw new Error("underscore only allowed at start");if(i.length>=4&&i.every(function(d){return d<128})&&i[2]===bg&&i[3]===bg)throw new Error("invalid label extension")}catch(d){throw new Error('Invalid label "'+n+'": '+d.message)}}return t}yo.ens_normalize_post_check=kl;function R5(t){return kl(F5(t,L5))}yo.ens_normalize=R5;function F5(t,e){for(var r=vg(t).reverse(),n=[];r.length;){var i=O5(r);if(i){n.push.apply(n,e(i));continue}var a=r.pop();if(_5.has(a)){n.push(a);continue}if(!B5.has(a)){var d=C5[a];if(d){n.push.apply(n,d);continue}throw new Error("Disallowed codepoint: 0x"+a.toString(16).toUpperCase())}}return kl(D5(String.fromCodePoint.apply(String,n)))}function D5(t){return t.normalize("NFC")}function O5(t,e){var r,n=P5,i,a,d=[],v=t.length;e&&(e.length=0);for(var y=function(){var B=t[--v];if(n=(r=n.branches.find(function(C){return C.set.has(B)}))===null||r===void 0?void 0:r.node,!n)return"break";if(n.save)a=B;else if(n.check&&B===a)return"break";d.push(B),n.fe0f&&(d.push(65039),v>0&&t[v-1]==65039&&v--),n.valid&&(i=d.slice(),n.valid==2&&i.splice(1,1),e&&e.push.apply(e,t.slice(v).reverse()),t.length=v)};v;){var x=y();if(x==="break")break}return i}});var Jl=V(Hn=>{"use strict";var GP=A(S());Object.defineProperty(Hn,"__esModule",{value:!0});Hn.dnsEncode=Hn.namehash=Hn.isValidName=Hn.ensNormalize=void 0;var T0=nt(),wg=Dr(),xg=Nn(),I5=Ct(),N5=Ol(),k5=new I5.Logger(N5.version),J5=mg(),Ag=new Uint8Array(32);Ag.fill(0);function yg(t){if(t.length===0)throw new Error("invalid ENS name; empty component");return t}function E0(t){var e=(0,wg.toUtf8Bytes)((0,J5.ens_normalize)(t)),r=[];if(t.length===0)return r;for(var n=0,i=0;i<e.length;i++){var a=e[i];a===46&&(r.push(yg(e.slice(n,i))),n=i+1)}if(n>=e.length)throw new Error("invalid ENS name; empty component");return r.push(yg(e.slice(n))),r}function U5(t){return E0(t).map(function(e){return(0,wg.toUtf8String)(e)}).join(".")}Hn.ensNormalize=U5;function H5(t){try{return E0(t).length!==0}catch{}return!1}Hn.isValidName=H5;function q5(t){typeof t!="string"&&k5.throwArgumentError("invalid ENS name; not a string","name",t);for(var e=Ag,r=E0(t);r.length;)e=(0,xg.keccak256)((0,T0.concat)([e,(0,xg.keccak256)(r.pop())]));return(0,T0.hexlify)(e)}Hn.namehash=q5;function G5(t){return(0,T0.hexlify)((0,T0.concat)(E0(t).map(function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var r=new Uint8Array(e.length+1);return r.set(e,1),r[0]=r.length-1,r})))+"00"}Hn.dnsEncode=G5});var Mg=V(va=>{"use strict";var zP=A(S());Object.defineProperty(va,"__esModule",{value:!0});va.hashMessage=va.messagePrefix=void 0;var X5=nt(),z5=Nn(),Ul=Dr();va.messagePrefix=`Ethereum Signed Message:
10
- `;function K5(t){return typeof t=="string"&&(t=(0,Ul.toUtf8Bytes)(t)),(0,z5.keccak256)((0,X5.concat)([(0,Ul.toUtf8Bytes)(va.messagePrefix),(0,Ul.toUtf8Bytes)(String(t.length)),t]))}va.hashMessage=K5});var Sg=V(_0=>{"use strict";var ZP=A(S());Object.defineProperty(_0,"__esModule",{value:!0});_0.version=void 0;_0.version="rlp/5.8.0"});var Hl=V(wo=>{"use strict";var jP=A(S());Object.defineProperty(wo,"__esModule",{value:!0});wo.decode=wo.encode=void 0;var ma=nt(),gi=Ct(),Z5=Sg(),qn=new gi.Logger(Z5.version);function Tg(t){for(var e=[];t;)e.unshift(t&255),t>>=8;return e}function Eg(t,e,r){for(var n=0,i=0;i<r;i++)n=n*256+t[e+i];return n}function Bg(t){if(Array.isArray(t)){var e=[];if(t.forEach(function(a){e=e.concat(Bg(a))}),e.length<=55)return e.unshift(192+e.length),e;var r=Tg(e.length);return r.unshift(247+r.length),r.concat(e)}(0,ma.isBytesLike)(t)||qn.throwArgumentError("RLP object must be BytesLike","object",t);var n=Array.prototype.slice.call((0,ma.arrayify)(t));if(n.length===1&&n[0]<=127)return n;if(n.length<=55)return n.unshift(128+n.length),n;var i=Tg(n.length);return i.unshift(183+i.length),i.concat(n)}function V5(t){return(0,ma.hexlify)(Bg(t))}wo.encode=V5;function _g(t,e,r,n){for(var i=[];r<e+1+n;){var a=Cg(t,r);i.push(a.result),r+=a.consumed,r>e+1+n&&qn.throwError("child data too short",gi.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function Cg(t,e){if(t.length===0&&qn.throwError("data too short",gi.Logger.errors.BUFFER_OVERRUN,{}),t[e]>=248){var r=t[e]-247;e+1+r>t.length&&qn.throwError("data short segment too short",gi.Logger.errors.BUFFER_OVERRUN,{});var n=Eg(t,e+1,r);return e+1+r+n>t.length&&qn.throwError("data long segment too short",gi.Logger.errors.BUFFER_OVERRUN,{}),_g(t,e,e+1+r,r+n)}else if(t[e]>=192){var i=t[e]-192;return e+1+i>t.length&&qn.throwError("data array too short",gi.Logger.errors.BUFFER_OVERRUN,{}),_g(t,e,e+1,i)}else if(t[e]>=184){var r=t[e]-183;e+1+r>t.length&&qn.throwError("data array too short",gi.Logger.errors.BUFFER_OVERRUN,{});var a=Eg(t,e+1,r);e+1+r+a>t.length&&qn.throwError("data array too short",gi.Logger.errors.BUFFER_OVERRUN,{});var d=(0,ma.hexlify)(t.slice(e+1+r,e+1+r+a));return{consumed:1+r+a,result:d}}else if(t[e]>=128){var v=t[e]-128;e+1+v>t.length&&qn.throwError("data too short",gi.Logger.errors.BUFFER_OVERRUN,{});var d=(0,ma.hexlify)(t.slice(e+1,e+1+v));return{consumed:1+v,result:d}}return{consumed:1,result:(0,ma.hexlify)(t[e])}}function j5(t){var e=(0,ma.arrayify)(t),r=Cg(e,0);return r.consumed!==e.length&&qn.throwArgumentError("invalid rlp data","data",t),r.result}wo.decode=j5});var Pg=V(B0=>{"use strict";var WP=A(S());Object.defineProperty(B0,"__esModule",{value:!0});B0.version=void 0;B0.version="address/5.8.0"});var ya=V(Yr=>{"use strict";var $P=A(S());Object.defineProperty(Yr,"__esModule",{value:!0});Yr.getCreate2Address=Yr.getContractAddress=Yr.getIcapAddress=Yr.isAddress=Yr.getAddress=void 0;var vi=nt(),ql=ba(),Gl=Nn(),Q5=Hl(),W5=Ct(),Y5=Pg(),Ji=new W5.Logger(Y5.version);function Lg(t){(0,vi.isHexString)(t,20)||Ji.throwArgumentError("invalid address","address",t),t=t.toLowerCase();for(var e=t.substring(2).split(""),r=new Uint8Array(40),n=0;n<40;n++)r[n]=e[n].charCodeAt(0);for(var i=(0,vi.arrayify)((0,Gl.keccak256)(r)),n=0;n<40;n+=2)i[n>>1]>>4>=8&&(e[n]=e[n].toUpperCase()),(i[n>>1]&15)>=8&&(e[n+1]=e[n+1].toUpperCase());return"0x"+e.join("")}var $5=9007199254740991;function e7(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}var Xl={};for(xn=0;xn<10;xn++)Xl[String(xn)]=String(xn);var xn;for(xn=0;xn<26;xn++)Xl[String.fromCharCode(65+xn)]=String(10+xn);var xn,Rg=Math.floor(e7($5));function Fg(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";for(var e=t.split("").map(function(i){return Xl[i]}).join("");e.length>=Rg;){var r=e.substring(0,Rg);e=parseInt(r,10)%97+e.substring(r.length)}for(var n=String(98-parseInt(e,10)%97);n.length<2;)n="0"+n;return n}function xa(t){var e=null;if(typeof t!="string"&&Ji.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=Lg(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&Ji.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==Fg(t)&&Ji.throwArgumentError("bad icap checksum","address",t),e=(0,ql._base36To16)(t.substring(4));e.length<40;)e="0"+e;e=Lg("0x"+e)}else Ji.throwArgumentError("invalid address","address",t);return e}Yr.getAddress=xa;function t7(t){try{return xa(t),!0}catch{}return!1}Yr.isAddress=t7;function r7(t){for(var e=(0,ql._base16To36)(xa(t).substring(2)).toUpperCase();e.length<30;)e="0"+e;return"XE"+Fg("XE00"+e)+e}Yr.getIcapAddress=r7;function n7(t){var e=null;try{e=xa(t.from)}catch{Ji.throwArgumentError("missing from address","transaction",t)}var r=(0,vi.stripZeros)((0,vi.arrayify)(ql.BigNumber.from(t.nonce).toHexString()));return xa((0,vi.hexDataSlice)((0,Gl.keccak256)((0,Q5.encode)([e,r])),12))}Yr.getContractAddress=n7;function i7(t,e,r){return(0,vi.hexDataLength)(e)!==32&&Ji.throwArgumentError("salt must be 32 bytes","salt",e),(0,vi.hexDataLength)(r)!==32&&Ji.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),xa((0,vi.hexDataSlice)((0,Gl.keccak256)((0,vi.concat)(["0xff",xa(t),e,r])),12))}Yr.getCreate2Address=i7});var Dg=V(C0=>{"use strict";var tL=A(S());Object.defineProperty(C0,"__esModule",{value:!0});C0.version=void 0;C0.version="properties/5.8.0"});var $r=V(Pt=>{"use strict";var nL=A(S()),a7=Pt&&Pt.__awaiter||function(t,e,r,n){function i(a){return a instanceof r?a:new r(function(d){d(a)})}return new(r||(r=Promise))(function(a,d){function v(B){try{x(n.next(B))}catch(C){d(C)}}function y(B){try{x(n.throw(B))}catch(C){d(C)}}function x(B){B.done?a(B.value):i(B.value).then(v,y)}x((n=n.apply(t,e||[])).next())})},o7=Pt&&Pt.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,d;return d={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(x){return function(B){return y([x,B])}}function y(x){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=x[0]&2?i.return:x[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,x[1])).done)return a;switch(i=0,a&&(x=[x[0]&2,a.value]),x[0]){case 0:case 1:a=x;break;case 4:return r.label++,{value:x[1],done:!1};case 5:r.label++,i=x[1],x=[0];continue;case 7:x=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(x[0]===6||x[0]===2)){r=0;continue}if(x[0]===3&&(!a||x[1]>a[0]&&x[1]<a[3])){r.label=x[1];break}if(x[0]===6&&r.label<a[1]){r.label=a[1],a=x;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(x);break}a[2]&&r.ops.pop(),r.trys.pop();continue}x=e.call(t,r)}catch(B){x=[6,B],i=0}finally{n=a=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.Description=Pt.deepCopy=Pt.shallowCopy=Pt.checkProperties=Pt.resolveProperties=Pt.getStatic=Pt.defineReadOnly=void 0;var s7=Ct(),f7=Dg(),P0=new s7.Logger(f7.version);function Og(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}Pt.defineReadOnly=Og;function c7(t,e){for(var r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||typeof t.prototype!="object")break;t=Object.getPrototypeOf(t.prototype).constructor}return null}Pt.getStatic=c7;function u7(t){return a7(this,void 0,void 0,function(){var e,r;return o7(this,function(n){switch(n.label){case 0:return e=Object.keys(t).map(function(i){var a=t[i];return Promise.resolve(a).then(function(d){return{key:i,value:d}})}),[4,Promise.all(e)];case 1:return r=n.sent(),[2,r.reduce(function(i,a){return i[a.key]=a.value,i},{})]}})})}Pt.resolveProperties=u7;function l7(t,e){(!t||typeof t!="object")&&P0.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(function(r){e[r]||P0.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}Pt.checkProperties=l7;function d7(t){var e={};for(var r in t)e[r]=t[r];return e}Pt.shallowCopy=d7;var h7={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function Ig(t){if(t==null||h7[typeof t])return!0;if(Array.isArray(t)||typeof t=="object"){if(!Object.isFrozen(t))return!1;for(var e=Object.keys(t),r=0;r<e.length;r++){var n=null;try{n=t[e[r]]}catch{continue}if(!Ig(n))return!1}return!0}return P0.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}function p7(t){if(Ig(t))return t;if(Array.isArray(t))return Object.freeze(t.map(function(i){return L0(i)}));if(typeof t=="object"){var e={};for(var r in t){var n=t[r];n!==void 0&&Og(e,r,L0(n))}return e}return P0.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}function L0(t){return p7(t)}Pt.deepCopy=L0;var b7=function(){function t(e){for(var r in e)this[r]=L0(e[r])}return t}();Pt.Description=b7});var zg=V(Ui=>{"use strict";var aL=A(S()),g7=Ui&&Ui.__awaiter||function(t,e,r,n){function i(a){return a instanceof r?a:new r(function(d){d(a)})}return new(r||(r=Promise))(function(a,d){function v(B){try{x(n.next(B))}catch(C){d(C)}}function y(B){try{x(n.throw(B))}catch(C){d(C)}}function x(B){B.done?a(B.value):i(B.value).then(v,y)}x((n=n.apply(t,e||[])).next())})},v7=Ui&&Ui.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,d;return d={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(x){return function(B){return y([x,B])}}function y(x){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=x[0]&2?i.return:x[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,x[1])).done)return a;switch(i=0,a&&(x=[x[0]&2,a.value]),x[0]){case 0:case 1:a=x;break;case 4:return r.label++,{value:x[1],done:!1};case 5:r.label++,i=x[1],x=[0];continue;case 7:x=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(x[0]===6||x[0]===2)){r=0;continue}if(x[0]===3&&(!a||x[1]>a[0]&&x[1]<a[3])){r.label=x[1];break}if(x[0]===6&&r.label<a[1]){r.label=a[1],a=x;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(x);break}a[2]&&r.ops.pop(),r.trys.pop();continue}x=e.call(t,r)}catch(B){x=[6,B],i=0}finally{n=a=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}};Object.defineProperty(Ui,"__esModule",{value:!0});Ui.TypedDataEncoder=void 0;var Ug=ya(),Aa=ba(),rr=nt(),Ao=Nn(),wa=$r(),m7=Ct(),x7=Ol(),lt=new m7.Logger(x7.version),Hg=Dl(),qg=new Uint8Array(32);qg.fill(0);var y7=Aa.BigNumber.from(-1),Gg=Aa.BigNumber.from(0),Xg=Aa.BigNumber.from(1),w7=Aa.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function A7(t){var e=(0,rr.arrayify)(t),r=e.length%32;return r?(0,rr.hexConcat)([e,qg.slice(r)]):(0,rr.hexlify)(e)}var M7=(0,rr.hexZeroPad)(Xg.toHexString(),32),S7=(0,rr.hexZeroPad)(Gg.toHexString(),32),Ng={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},zl=["name","version","chainId","verifyingContract","salt"];function kg(t){return function(e){return typeof e!="string"&&lt.throwArgumentError("invalid domain value for "+JSON.stringify(t),"domain."+t,e),e}}var T7={name:kg("name"),version:kg("version"),chainId:function(t){try{return Aa.BigNumber.from(t).toString()}catch{}return lt.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return(0,Ug.getAddress)(t).toLowerCase()}catch{}return lt.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{var e=(0,rr.arrayify)(t);if(e.length!==32)throw new Error("bad length");return(0,rr.hexlify)(e)}catch{}return lt.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function Kl(t){{var e=t.match(/^(u?)int(\d*)$/);if(e){var r=e[1]==="",n=parseInt(e[2]||"256");(n%8!==0||n>256||e[2]&&e[2]!==String(n))&&lt.throwArgumentError("invalid numeric width","type",t);var i=w7.mask(r?n-1:n),a=r?i.add(Xg).mul(y7):Gg;return function(v){var y=Aa.BigNumber.from(v);return(y.lt(a)||y.gt(i))&&lt.throwArgumentError("value out-of-bounds for "+t,"value",v),(0,rr.hexZeroPad)(y.toTwos(256).toHexString(),32)}}}{var e=t.match(/^bytes(\d+)$/);if(e){var d=parseInt(e[1]);return(d===0||d>32||e[1]!==String(d))&&lt.throwArgumentError("invalid bytes width","type",t),function(y){var x=(0,rr.arrayify)(y);return x.length!==d&&lt.throwArgumentError("invalid length for "+t,"value",y),A7(y)}}}switch(t){case"address":return function(v){return(0,rr.hexZeroPad)((0,Ug.getAddress)(v),32)};case"bool":return function(v){return v?M7:S7};case"bytes":return function(v){return(0,Ao.keccak256)(v)};case"string":return function(v){return(0,Hg.id)(v)}}return null}function Jg(t,e){return t+"("+e.map(function(r){var n=r.name,i=r.type;return i+" "+n}).join(",")+")"}var E7=function(){function t(e){(0,wa.defineReadOnly)(this,"types",Object.freeze((0,wa.deepCopy)(e))),(0,wa.defineReadOnly)(this,"_encoderCache",{}),(0,wa.defineReadOnly)(this,"_types",{});var r={},n={},i={};Object.keys(e).forEach(function(C){r[C]={},n[C]=[],i[C]={}});var a=function(C){var D={};e[C].forEach(function(F){D[F.name]&&lt.throwArgumentError("duplicate variable name "+JSON.stringify(F.name)+" in "+JSON.stringify(C),"types",e),D[F.name]=!0;var P=F.type.match(/^([^\x5b]*)(\x5b|$)/)[1];P===C&&lt.throwArgumentError("circular type reference to "+JSON.stringify(P),"types",e);var q=Kl(P);q||(n[P]||lt.throwArgumentError("unknown type "+JSON.stringify(P),"types",e),n[P].push(C),r[C][P]=!0)})};for(var d in e)a(d);var v=Object.keys(n).filter(function(C){return n[C].length===0});v.length===0?lt.throwArgumentError("missing primary type","types",e):v.length>1&&lt.throwArgumentError("ambiguous primary types or unused types: "+v.map(function(C){return JSON.stringify(C)}).join(", "),"types",e),(0,wa.defineReadOnly)(this,"primaryType",v[0]);function y(C,D){D[C]&&lt.throwArgumentError("circular type reference to "+JSON.stringify(C),"types",e),D[C]=!0,Object.keys(r[C]).forEach(function(F){n[F]&&(y(F,D),Object.keys(D).forEach(function(P){i[P][F]=!0}))}),delete D[C]}y(this.primaryType,{});for(var x in i){var B=Object.keys(i[x]);B.sort(),this._types[x]=Jg(x,e[x])+B.map(function(C){return Jg(C,e[C])}).join("")}}return t.prototype.getEncoder=function(e){var r=this._encoderCache[e];return r||(r=this._encoderCache[e]=this._getEncoder(e)),r},t.prototype._getEncoder=function(e){var r=this;{var n=Kl(e);if(n)return n}var i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){var a=i[1],d=this.getEncoder(a),v=parseInt(i[3]);return function(B){v>=0&&B.length!==v&&lt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",B);var C=B.map(d);return r._types[a]&&(C=C.map(Ao.keccak256)),(0,Ao.keccak256)((0,rr.hexConcat)(C))}}var y=this.types[e];if(y){var x=(0,Hg.id)(this._types[e]);return function(B){var C=y.map(function(D){var F=D.name,P=D.type,q=r.getEncoder(P)(B[F]);return r._types[P]?(0,Ao.keccak256)(q):q});return C.unshift(x),(0,rr.hexConcat)(C)}}return lt.throwArgumentError("unknown type: "+e,"type",e)},t.prototype.encodeType=function(e){var r=this._types[e];return r||lt.throwArgumentError("unknown type: "+JSON.stringify(e),"name",e),r},t.prototype.encodeData=function(e,r){return this.getEncoder(e)(r)},t.prototype.hashStruct=function(e,r){return(0,Ao.keccak256)(this.encodeData(e,r))},t.prototype.encode=function(e){return this.encodeData(this.primaryType,e)},t.prototype.hash=function(e){return this.hashStruct(this.primaryType,e)},t.prototype._visit=function(e,r,n){var i=this;{var a=Kl(e);if(a)return n(e,r)}var d=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(d){var v=d[1],y=parseInt(d[3]);return y>=0&&r.length!==y&&lt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",r),r.map(function(B){return i._visit(v,B,n)})}var x=this.types[e];return x?x.reduce(function(B,C){var D=C.name,F=C.type;return B[D]=i._visit(F,r[D],n),B},{}):lt.throwArgumentError("unknown type: "+e,"type",e)},t.prototype.visit=function(e,r){return this._visit(this.primaryType,e,r)},t.from=function(e){return new t(e)},t.getPrimaryType=function(e){return t.from(e).primaryType},t.hashStruct=function(e,r,n){return t.from(r).hashStruct(e,n)},t.hashDomain=function(e){var r=[];for(var n in e){var i=Ng[n];i||lt.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(n),"domain",e),r.push({name:n,type:i})}return r.sort(function(a,d){return zl.indexOf(a.name)-zl.indexOf(d.name)}),t.hashStruct("EIP712Domain",{EIP712Domain:r},e)},t.encode=function(e,r,n){return(0,rr.hexConcat)(["0x1901",t.hashDomain(e),t.from(r).hash(n)])},t.hash=function(e,r,n){return(0,Ao.keccak256)(t.encode(e,r,n))},t.resolveNames=function(e,r,n,i){return g7(this,void 0,void 0,function(){var a,d,v,y,x,B,C,D;return v7(this,function(F){switch(F.label){case 0:e=(0,wa.shallowCopy)(e),a={},e.verifyingContract&&!(0,rr.isHexString)(e.verifyingContract,20)&&(a[e.verifyingContract]="0x"),d=t.from(r),d.visit(n,function(P,q){return P==="address"&&!(0,rr.isHexString)(q,20)&&(a[q]="0x"),q}),v=[];for(y in a)v.push(y);x=0,F.label=1;case 1:return x<v.length?(B=v[x],C=a,D=B,[4,i(B)]):[3,4];case 2:C[D]=F.sent(),F.label=3;case 3:return x++,[3,1];case 4:return e.verifyingContract&&a[e.verifyingContract]&&(e.verifyingContract=a[e.verifyingContract]),n=d.visit(n,function(P,q){return P==="address"&&a[q]?a[q]:q}),[2,{domain:e,value:n}]}})})},t.getPayload=function(e,r,n){t.hashDomain(e);var i={},a=[];zl.forEach(function(y){var x=e[y];x!=null&&(i[y]=T7[y](x),a.push({name:y,type:Ng[y]}))});var d=t.from(r),v=(0,wa.shallowCopy)(r);return v.EIP712Domain?lt.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):v.EIP712Domain=a,d.encode(n),{types:v,domain:i,primaryType:d.primaryType,message:d.visit(n,function(y,x){if(y.match(/^bytes(\d*)/))return(0,rr.hexlify)((0,rr.arrayify)(x));if(y.match(/^u?int/))return Aa.BigNumber.from(x).toString();switch(y){case"address":return x.toLowerCase();case"bool":return!!x;case"string":return typeof x!="string"&&lt.throwArgumentError("invalid string","value",x),x}return lt.throwArgumentError("unsupported type","type",y)})}},t}();Ui.TypedDataEncoder=E7});var Cs=V(Ut=>{"use strict";var sL=A(S());Object.defineProperty(Ut,"__esModule",{value:!0});Ut._TypedDataEncoder=Ut.hashMessage=Ut.messagePrefix=Ut.ensNormalize=Ut.isValidName=Ut.namehash=Ut.dnsEncode=Ut.id=void 0;var _7=Dl();Object.defineProperty(Ut,"id",{enumerable:!0,get:function(){return _7.id}});var Zl=Jl();Object.defineProperty(Ut,"dnsEncode",{enumerable:!0,get:function(){return Zl.dnsEncode}});Object.defineProperty(Ut,"isValidName",{enumerable:!0,get:function(){return Zl.isValidName}});Object.defineProperty(Ut,"namehash",{enumerable:!0,get:function(){return Zl.namehash}});var Kg=Mg();Object.defineProperty(Ut,"hashMessage",{enumerable:!0,get:function(){return Kg.hashMessage}});Object.defineProperty(Ut,"messagePrefix",{enumerable:!0,get:function(){return Kg.messagePrefix}});var B7=Jl();Object.defineProperty(Ut,"ensNormalize",{enumerable:!0,get:function(){return B7.ensNormalize}});var C7=zg();Object.defineProperty(Ut,"_TypedDataEncoder",{enumerable:!0,get:function(){return C7.TypedDataEncoder}})});var Zg=V((fL,P7)=>{P7.exports={name:"elliptic",version:"6.6.1",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}});var Gn=V((Vg,Vl)=>{var cL=A(S());(function(t,e){"use strict";function r(M,s){if(!M)throw new Error(s||"Assertion failed")}function n(M,s){M.super_=s;var u=function(){};u.prototype=s.prototype,M.prototype=new u,M.prototype.constructor=M}function i(M,s,u){if(i.isBN(M))return M;this.negative=0,this.words=null,this.length=0,this.red=null,M!==null&&((s==="le"||s==="be")&&(u=s,s=10),this._init(M||0,s||10,u||"be"))}typeof t=="object"?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=rt("buffer").Buffer}catch{}i.isBN=function(s){return s instanceof i?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===i.wordSize&&Array.isArray(s.words)},i.max=function(s,u){return s.cmp(u)>0?s:u},i.min=function(s,u){return s.cmp(u)<0?s:u},i.prototype._init=function(s,u,l){if(typeof s=="number")return this._initNumber(s,u,l);if(typeof s=="object")return this._initArray(s,u,l);u==="hex"&&(u=16),r(u===(u|0)&&u>=2&&u<=36),s=s.toString().replace(/\s+/g,"");var f=0;s[0]==="-"&&(f++,this.negative=1),f<s.length&&(u===16?this._parseHex(s,f,l):(this._parseBase(s,u,f),l==="le"&&this._initArray(this.toArray(),u,l)))},i.prototype._initNumber=function(s,u,l){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(r(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),u,l)},i.prototype._initArray=function(s,u,l){if(r(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c,g,m=0;if(l==="be")for(f=s.length-1,c=0;f>=0;f-=3)g=s[f]|s[f-1]<<8|s[f-2]<<16,this.words[c]|=g<<m&67108863,this.words[c+1]=g>>>26-m&67108863,m+=24,m>=26&&(m-=26,c++);else if(l==="le")for(f=0,c=0;f<s.length;f+=3)g=s[f]|s[f+1]<<8|s[f+2]<<16,this.words[c]|=g<<m&67108863,this.words[c+1]=g>>>26-m&67108863,m+=24,m>=26&&(m-=26,c++);return this.strip()};function d(M,s){var u=M.charCodeAt(s);return u>=65&&u<=70?u-55:u>=97&&u<=102?u-87:u-48&15}function v(M,s,u){var l=d(M,u);return u-1>=s&&(l|=d(M,u-1)<<4),l}i.prototype._parseHex=function(s,u,l){this.length=Math.ceil((s.length-u)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c=0,g=0,m;if(l==="be")for(f=s.length-1;f>=u;f-=2)m=v(s,u,f)<<c,this.words[g]|=m&67108863,c>=18?(c-=18,g+=1,this.words[g]|=m>>>26):c+=8;else{var h=s.length-u;for(f=h%2===0?u+1:u;f<s.length;f+=2)m=v(s,u,f)<<c,this.words[g]|=m&67108863,c>=18?(c-=18,g+=1,this.words[g]|=m>>>26):c+=8}this.strip()};function y(M,s,u,l){for(var f=0,c=Math.min(M.length,u),g=s;g<c;g++){var m=M.charCodeAt(g)-48;f*=l,m>=49?f+=m-49+10:m>=17?f+=m-17+10:f+=m}return f}i.prototype._parseBase=function(s,u,l){this.words=[0],this.length=1;for(var f=0,c=1;c<=67108863;c*=u)f++;f--,c=c/u|0;for(var g=s.length-l,m=g%f,h=Math.min(g,g-m)+l,o=0,p=l;p<h;p+=f)o=y(s,p,p+f,u),this.imuln(c),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(m!==0){var E=1;for(o=y(s,p,s.length,u),p=0;p<m;p++)E*=u;this.imuln(E),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},i.prototype.copy=function(s){s.words=new Array(this.length);for(var u=0;u<this.length;u++)s.words[u]=this.words[u];s.length=this.length,s.negative=this.negative,s.red=this.red},i.prototype.clone=function(){var s=new i(null);return this.copy(s),s},i.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],B=[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],C=[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];i.prototype.toString=function(s,u){s=s||10,u=u|0||1;var l;if(s===16||s==="hex"){l="";for(var f=0,c=0,g=0;g<this.length;g++){var m=this.words[g],h=((m<<f|c)&16777215).toString(16);c=m>>>24-f&16777215,f+=2,f>=26&&(f-=26,g--),c!==0||g!==this.length-1?l=x[6-h.length]+h+l:l=h+l}for(c!==0&&(l=c.toString(16)+l);l.length%u!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(s===(s|0)&&s>=2&&s<=36){var o=B[s],p=C[s];l="";var E=this.clone();for(E.negative=0;!E.isZero();){var b=E.modn(p).toString(s);E=E.idivn(p),E.isZero()?l=b+l:l=x[o-b.length]+b+l}for(this.isZero()&&(l="0"+l);l.length%u!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(s,u){return r(typeof a<"u"),this.toArrayLike(a,s,u)},i.prototype.toArray=function(s,u){return this.toArrayLike(Array,s,u)},i.prototype.toArrayLike=function(s,u,l){var f=this.byteLength(),c=l||Math.max(1,f);r(f<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var g=u==="le",m=new s(c),h,o,p=this.clone();if(g){for(o=0;!p.isZero();o++)h=p.andln(255),p.iushrn(8),m[o]=h;for(;o<c;o++)m[o]=0}else{for(o=0;o<c-f;o++)m[o]=0;for(o=0;!p.isZero();o++)h=p.andln(255),p.iushrn(8),m[c-o-1]=h}return m},Math.clz32?i.prototype._countBits=function(s){return 32-Math.clz32(s)}:i.prototype._countBits=function(s){var u=s,l=0;return u>=4096&&(l+=13,u>>>=13),u>=64&&(l+=7,u>>>=7),u>=8&&(l+=4,u>>>=4),u>=2&&(l+=2,u>>>=2),l+u},i.prototype._zeroBits=function(s){if(s===0)return 26;var u=s,l=0;return u&8191||(l+=13,u>>>=13),u&127||(l+=7,u>>>=7),u&15||(l+=4,u>>>=4),u&3||(l+=2,u>>>=2),u&1||l++,l},i.prototype.bitLength=function(){var s=this.words[this.length-1],u=this._countBits(s);return(this.length-1)*26+u};function D(M){for(var s=new Array(M.bitLength()),u=0;u<s.length;u++){var l=u/26|0,f=u%26;s[u]=(M.words[l]&1<<f)>>>f}return s}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,u=0;u<this.length;u++){var l=this._zeroBits(this.words[u]);if(s+=l,l!==26)break}return s},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},i.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var u=0;u<s.length;u++)this.words[u]=this.words[u]|s.words[u];return this.strip()},i.prototype.ior=function(s){return r((this.negative|s.negative)===0),this.iuor(s)},i.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},i.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},i.prototype.iuand=function(s){var u;this.length>s.length?u=s:u=this;for(var l=0;l<u.length;l++)this.words[l]=this.words[l]&s.words[l];return this.length=u.length,this.strip()},i.prototype.iand=function(s){return r((this.negative|s.negative)===0),this.iuand(s)},i.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},i.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},i.prototype.iuxor=function(s){var u,l;this.length>s.length?(u=this,l=s):(u=s,l=this);for(var f=0;f<l.length;f++)this.words[f]=u.words[f]^l.words[f];if(this!==u)for(;f<u.length;f++)this.words[f]=u.words[f];return this.length=u.length,this.strip()},i.prototype.ixor=function(s){return r((this.negative|s.negative)===0),this.iuxor(s)},i.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},i.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},i.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var u=Math.ceil(s/26)|0,l=s%26;this._expand(u),l>0&&u--;for(var f=0;f<u;f++)this.words[f]=~this.words[f]&67108863;return l>0&&(this.words[f]=~this.words[f]&67108863>>26-l),this.strip()},i.prototype.notn=function(s){return this.clone().inotn(s)},i.prototype.setn=function(s,u){r(typeof s=="number"&&s>=0);var l=s/26|0,f=s%26;return this._expand(l+1),u?this.words[l]=this.words[l]|1<<f:this.words[l]=this.words[l]&~(1<<f),this.strip()},i.prototype.iadd=function(s){var u;if(this.negative!==0&&s.negative===0)return this.negative=0,u=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,u=this.isub(s),s.negative=1,u._normSign();var l,f;this.length>s.length?(l=this,f=s):(l=s,f=this);for(var c=0,g=0;g<f.length;g++)u=(l.words[g]|0)+(f.words[g]|0)+c,this.words[g]=u&67108863,c=u>>>26;for(;c!==0&&g<l.length;g++)u=(l.words[g]|0)+c,this.words[g]=u&67108863,c=u>>>26;if(this.length=l.length,c!==0)this.words[this.length]=c,this.length++;else if(l!==this)for(;g<l.length;g++)this.words[g]=l.words[g];return this},i.prototype.add=function(s){var u;return s.negative!==0&&this.negative===0?(s.negative=0,u=this.sub(s),s.negative^=1,u):s.negative===0&&this.negative!==0?(this.negative=0,u=s.sub(this),this.negative=1,u):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},i.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var u=this.iadd(s);return s.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var l=this.cmp(s);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,c;l>0?(f=this,c=s):(f=s,c=this);for(var g=0,m=0;m<c.length;m++)u=(f.words[m]|0)-(c.words[m]|0)+g,g=u>>26,this.words[m]=u&67108863;for(;g!==0&&m<f.length;m++)u=(f.words[m]|0)+g,g=u>>26,this.words[m]=u&67108863;if(g===0&&m<f.length&&f!==this)for(;m<f.length;m++)this.words[m]=f.words[m];return this.length=Math.max(this.length,m),f!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(s){return this.clone().isub(s)};function F(M,s,u){u.negative=s.negative^M.negative;var l=M.length+s.length|0;u.length=l,l=l-1|0;var f=M.words[0]|0,c=s.words[0]|0,g=f*c,m=g&67108863,h=g/67108864|0;u.words[0]=m;for(var o=1;o<l;o++){for(var p=h>>>26,E=h&67108863,b=Math.min(o,s.length-1),w=Math.max(0,o-M.length+1);w<=b;w++){var H=o-w|0;f=M.words[H]|0,c=s.words[w]|0,g=f*c+E,p+=g/67108864|0,E=g&67108863}u.words[o]=E|0,h=p|0}return h!==0?u.words[o]=h|0:u.length--,u.strip()}var P=function(s,u,l){var f=s.words,c=u.words,g=l.words,m=0,h,o,p,E=f[0]|0,b=E&8191,w=E>>>13,H=f[1]|0,T=H&8191,N=H>>>13,X=f[2]|0,Z=X&8191,_=X>>>13,R=f[3]|0,L=R&8191,O=R>>>13,G=f[4]|0,I=G&8191,J=G>>>13,z=f[5]|0,k=z&8191,U=z>>>13,Q=f[6]|0,j=Q&8191,re=Q>>>13,De=f[7]|0,se=De&8191,le=De>>>13,Ue=f[8]|0,oe=Ue&8191,fe=Ue>>>13,Xe=f[9]|0,ge=Xe&8191,ve=Xe>>>13,vt=c[0]|0,pe=vt&8191,be=vt>>>13,Ye=c[1]|0,de=Ye&8191,ue=Ye>>>13,Kt=c[2]|0,me=Kt&8191,xe=Kt>>>13,Zt=c[3]|0,ye=Zt&8191,we=Zt>>>13,Vt=c[4]|0,Ae=Vt&8191,Me=Vt>>>13,jt=c[5]|0,Se=jt&8191,Te=jt>>>13,Qt=c[6]|0,Ee=Qt&8191,_e=Qt>>>13,Wt=c[7]|0,Be=Wt&8191,Ce=Wt>>>13,Yt=c[8]|0,Pe=Yt&8191,Le=Yt>>>13,$t=c[9]|0,Re=$t&8191,Fe=$t>>>13;l.negative=s.negative^u.negative,l.length=19,h=Math.imul(b,pe),o=Math.imul(b,be),o=o+Math.imul(w,pe)|0,p=Math.imul(w,be);var Dt=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,h=Math.imul(T,pe),o=Math.imul(T,be),o=o+Math.imul(N,pe)|0,p=Math.imul(N,be),h=h+Math.imul(b,de)|0,o=o+Math.imul(b,ue)|0,o=o+Math.imul(w,de)|0,p=p+Math.imul(w,ue)|0;var Ne=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,h=Math.imul(Z,pe),o=Math.imul(Z,be),o=o+Math.imul(_,pe)|0,p=Math.imul(_,be),h=h+Math.imul(T,de)|0,o=o+Math.imul(T,ue)|0,o=o+Math.imul(N,de)|0,p=p+Math.imul(N,ue)|0,h=h+Math.imul(b,me)|0,o=o+Math.imul(b,xe)|0,o=o+Math.imul(w,me)|0,p=p+Math.imul(w,xe)|0;var ke=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,h=Math.imul(L,pe),o=Math.imul(L,be),o=o+Math.imul(O,pe)|0,p=Math.imul(O,be),h=h+Math.imul(Z,de)|0,o=o+Math.imul(Z,ue)|0,o=o+Math.imul(_,de)|0,p=p+Math.imul(_,ue)|0,h=h+Math.imul(T,me)|0,o=o+Math.imul(T,xe)|0,o=o+Math.imul(N,me)|0,p=p+Math.imul(N,xe)|0,h=h+Math.imul(b,ye)|0,o=o+Math.imul(b,we)|0,o=o+Math.imul(w,ye)|0,p=p+Math.imul(w,we)|0;var St=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(St>>>26)|0,St&=67108863,h=Math.imul(I,pe),o=Math.imul(I,be),o=o+Math.imul(J,pe)|0,p=Math.imul(J,be),h=h+Math.imul(L,de)|0,o=o+Math.imul(L,ue)|0,o=o+Math.imul(O,de)|0,p=p+Math.imul(O,ue)|0,h=h+Math.imul(Z,me)|0,o=o+Math.imul(Z,xe)|0,o=o+Math.imul(_,me)|0,p=p+Math.imul(_,xe)|0,h=h+Math.imul(T,ye)|0,o=o+Math.imul(T,we)|0,o=o+Math.imul(N,ye)|0,p=p+Math.imul(N,we)|0,h=h+Math.imul(b,Ae)|0,o=o+Math.imul(b,Me)|0,o=o+Math.imul(w,Ae)|0,p=p+Math.imul(w,Me)|0;var Tt=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,h=Math.imul(k,pe),o=Math.imul(k,be),o=o+Math.imul(U,pe)|0,p=Math.imul(U,be),h=h+Math.imul(I,de)|0,o=o+Math.imul(I,ue)|0,o=o+Math.imul(J,de)|0,p=p+Math.imul(J,ue)|0,h=h+Math.imul(L,me)|0,o=o+Math.imul(L,xe)|0,o=o+Math.imul(O,me)|0,p=p+Math.imul(O,xe)|0,h=h+Math.imul(Z,ye)|0,o=o+Math.imul(Z,we)|0,o=o+Math.imul(_,ye)|0,p=p+Math.imul(_,we)|0,h=h+Math.imul(T,Ae)|0,o=o+Math.imul(T,Me)|0,o=o+Math.imul(N,Ae)|0,p=p+Math.imul(N,Me)|0,h=h+Math.imul(b,Se)|0,o=o+Math.imul(b,Te)|0,o=o+Math.imul(w,Se)|0,p=p+Math.imul(w,Te)|0;var Et=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,h=Math.imul(j,pe),o=Math.imul(j,be),o=o+Math.imul(re,pe)|0,p=Math.imul(re,be),h=h+Math.imul(k,de)|0,o=o+Math.imul(k,ue)|0,o=o+Math.imul(U,de)|0,p=p+Math.imul(U,ue)|0,h=h+Math.imul(I,me)|0,o=o+Math.imul(I,xe)|0,o=o+Math.imul(J,me)|0,p=p+Math.imul(J,xe)|0,h=h+Math.imul(L,ye)|0,o=o+Math.imul(L,we)|0,o=o+Math.imul(O,ye)|0,p=p+Math.imul(O,we)|0,h=h+Math.imul(Z,Ae)|0,o=o+Math.imul(Z,Me)|0,o=o+Math.imul(_,Ae)|0,p=p+Math.imul(_,Me)|0,h=h+Math.imul(T,Se)|0,o=o+Math.imul(T,Te)|0,o=o+Math.imul(N,Se)|0,p=p+Math.imul(N,Te)|0,h=h+Math.imul(b,Ee)|0,o=o+Math.imul(b,_e)|0,o=o+Math.imul(w,Ee)|0,p=p+Math.imul(w,_e)|0;var _t=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,h=Math.imul(se,pe),o=Math.imul(se,be),o=o+Math.imul(le,pe)|0,p=Math.imul(le,be),h=h+Math.imul(j,de)|0,o=o+Math.imul(j,ue)|0,o=o+Math.imul(re,de)|0,p=p+Math.imul(re,ue)|0,h=h+Math.imul(k,me)|0,o=o+Math.imul(k,xe)|0,o=o+Math.imul(U,me)|0,p=p+Math.imul(U,xe)|0,h=h+Math.imul(I,ye)|0,o=o+Math.imul(I,we)|0,o=o+Math.imul(J,ye)|0,p=p+Math.imul(J,we)|0,h=h+Math.imul(L,Ae)|0,o=o+Math.imul(L,Me)|0,o=o+Math.imul(O,Ae)|0,p=p+Math.imul(O,Me)|0,h=h+Math.imul(Z,Se)|0,o=o+Math.imul(Z,Te)|0,o=o+Math.imul(_,Se)|0,p=p+Math.imul(_,Te)|0,h=h+Math.imul(T,Ee)|0,o=o+Math.imul(T,_e)|0,o=o+Math.imul(N,Ee)|0,p=p+Math.imul(N,_e)|0,h=h+Math.imul(b,Be)|0,o=o+Math.imul(b,Ce)|0,o=o+Math.imul(w,Be)|0,p=p+Math.imul(w,Ce)|0;var Bt=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,h=Math.imul(oe,pe),o=Math.imul(oe,be),o=o+Math.imul(fe,pe)|0,p=Math.imul(fe,be),h=h+Math.imul(se,de)|0,o=o+Math.imul(se,ue)|0,o=o+Math.imul(le,de)|0,p=p+Math.imul(le,ue)|0,h=h+Math.imul(j,me)|0,o=o+Math.imul(j,xe)|0,o=o+Math.imul(re,me)|0,p=p+Math.imul(re,xe)|0,h=h+Math.imul(k,ye)|0,o=o+Math.imul(k,we)|0,o=o+Math.imul(U,ye)|0,p=p+Math.imul(U,we)|0,h=h+Math.imul(I,Ae)|0,o=o+Math.imul(I,Me)|0,o=o+Math.imul(J,Ae)|0,p=p+Math.imul(J,Me)|0,h=h+Math.imul(L,Se)|0,o=o+Math.imul(L,Te)|0,o=o+Math.imul(O,Se)|0,p=p+Math.imul(O,Te)|0,h=h+Math.imul(Z,Ee)|0,o=o+Math.imul(Z,_e)|0,o=o+Math.imul(_,Ee)|0,p=p+Math.imul(_,_e)|0,h=h+Math.imul(T,Be)|0,o=o+Math.imul(T,Ce)|0,o=o+Math.imul(N,Be)|0,p=p+Math.imul(N,Ce)|0,h=h+Math.imul(b,Pe)|0,o=o+Math.imul(b,Le)|0,o=o+Math.imul(w,Pe)|0,p=p+Math.imul(w,Le)|0;var hr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(hr>>>26)|0,hr&=67108863,h=Math.imul(ge,pe),o=Math.imul(ge,be),o=o+Math.imul(ve,pe)|0,p=Math.imul(ve,be),h=h+Math.imul(oe,de)|0,o=o+Math.imul(oe,ue)|0,o=o+Math.imul(fe,de)|0,p=p+Math.imul(fe,ue)|0,h=h+Math.imul(se,me)|0,o=o+Math.imul(se,xe)|0,o=o+Math.imul(le,me)|0,p=p+Math.imul(le,xe)|0,h=h+Math.imul(j,ye)|0,o=o+Math.imul(j,we)|0,o=o+Math.imul(re,ye)|0,p=p+Math.imul(re,we)|0,h=h+Math.imul(k,Ae)|0,o=o+Math.imul(k,Me)|0,o=o+Math.imul(U,Ae)|0,p=p+Math.imul(U,Me)|0,h=h+Math.imul(I,Se)|0,o=o+Math.imul(I,Te)|0,o=o+Math.imul(J,Se)|0,p=p+Math.imul(J,Te)|0,h=h+Math.imul(L,Ee)|0,o=o+Math.imul(L,_e)|0,o=o+Math.imul(O,Ee)|0,p=p+Math.imul(O,_e)|0,h=h+Math.imul(Z,Be)|0,o=o+Math.imul(Z,Ce)|0,o=o+Math.imul(_,Be)|0,p=p+Math.imul(_,Ce)|0,h=h+Math.imul(T,Pe)|0,o=o+Math.imul(T,Le)|0,o=o+Math.imul(N,Pe)|0,p=p+Math.imul(N,Le)|0,h=h+Math.imul(b,Re)|0,o=o+Math.imul(b,Fe)|0,o=o+Math.imul(w,Re)|0,p=p+Math.imul(w,Fe)|0;var pr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(pr>>>26)|0,pr&=67108863,h=Math.imul(ge,de),o=Math.imul(ge,ue),o=o+Math.imul(ve,de)|0,p=Math.imul(ve,ue),h=h+Math.imul(oe,me)|0,o=o+Math.imul(oe,xe)|0,o=o+Math.imul(fe,me)|0,p=p+Math.imul(fe,xe)|0,h=h+Math.imul(se,ye)|0,o=o+Math.imul(se,we)|0,o=o+Math.imul(le,ye)|0,p=p+Math.imul(le,we)|0,h=h+Math.imul(j,Ae)|0,o=o+Math.imul(j,Me)|0,o=o+Math.imul(re,Ae)|0,p=p+Math.imul(re,Me)|0,h=h+Math.imul(k,Se)|0,o=o+Math.imul(k,Te)|0,o=o+Math.imul(U,Se)|0,p=p+Math.imul(U,Te)|0,h=h+Math.imul(I,Ee)|0,o=o+Math.imul(I,_e)|0,o=o+Math.imul(J,Ee)|0,p=p+Math.imul(J,_e)|0,h=h+Math.imul(L,Be)|0,o=o+Math.imul(L,Ce)|0,o=o+Math.imul(O,Be)|0,p=p+Math.imul(O,Ce)|0,h=h+Math.imul(Z,Pe)|0,o=o+Math.imul(Z,Le)|0,o=o+Math.imul(_,Pe)|0,p=p+Math.imul(_,Le)|0,h=h+Math.imul(T,Re)|0,o=o+Math.imul(T,Fe)|0,o=o+Math.imul(N,Re)|0,p=p+Math.imul(N,Fe)|0;var br=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(br>>>26)|0,br&=67108863,h=Math.imul(ge,me),o=Math.imul(ge,xe),o=o+Math.imul(ve,me)|0,p=Math.imul(ve,xe),h=h+Math.imul(oe,ye)|0,o=o+Math.imul(oe,we)|0,o=o+Math.imul(fe,ye)|0,p=p+Math.imul(fe,we)|0,h=h+Math.imul(se,Ae)|0,o=o+Math.imul(se,Me)|0,o=o+Math.imul(le,Ae)|0,p=p+Math.imul(le,Me)|0,h=h+Math.imul(j,Se)|0,o=o+Math.imul(j,Te)|0,o=o+Math.imul(re,Se)|0,p=p+Math.imul(re,Te)|0,h=h+Math.imul(k,Ee)|0,o=o+Math.imul(k,_e)|0,o=o+Math.imul(U,Ee)|0,p=p+Math.imul(U,_e)|0,h=h+Math.imul(I,Be)|0,o=o+Math.imul(I,Ce)|0,o=o+Math.imul(J,Be)|0,p=p+Math.imul(J,Ce)|0,h=h+Math.imul(L,Pe)|0,o=o+Math.imul(L,Le)|0,o=o+Math.imul(O,Pe)|0,p=p+Math.imul(O,Le)|0,h=h+Math.imul(Z,Re)|0,o=o+Math.imul(Z,Fe)|0,o=o+Math.imul(_,Re)|0,p=p+Math.imul(_,Fe)|0;var gr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(gr>>>26)|0,gr&=67108863,h=Math.imul(ge,ye),o=Math.imul(ge,we),o=o+Math.imul(ve,ye)|0,p=Math.imul(ve,we),h=h+Math.imul(oe,Ae)|0,o=o+Math.imul(oe,Me)|0,o=o+Math.imul(fe,Ae)|0,p=p+Math.imul(fe,Me)|0,h=h+Math.imul(se,Se)|0,o=o+Math.imul(se,Te)|0,o=o+Math.imul(le,Se)|0,p=p+Math.imul(le,Te)|0,h=h+Math.imul(j,Ee)|0,o=o+Math.imul(j,_e)|0,o=o+Math.imul(re,Ee)|0,p=p+Math.imul(re,_e)|0,h=h+Math.imul(k,Be)|0,o=o+Math.imul(k,Ce)|0,o=o+Math.imul(U,Be)|0,p=p+Math.imul(U,Ce)|0,h=h+Math.imul(I,Pe)|0,o=o+Math.imul(I,Le)|0,o=o+Math.imul(J,Pe)|0,p=p+Math.imul(J,Le)|0,h=h+Math.imul(L,Re)|0,o=o+Math.imul(L,Fe)|0,o=o+Math.imul(O,Re)|0,p=p+Math.imul(O,Fe)|0;var vr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(vr>>>26)|0,vr&=67108863,h=Math.imul(ge,Ae),o=Math.imul(ge,Me),o=o+Math.imul(ve,Ae)|0,p=Math.imul(ve,Me),h=h+Math.imul(oe,Se)|0,o=o+Math.imul(oe,Te)|0,o=o+Math.imul(fe,Se)|0,p=p+Math.imul(fe,Te)|0,h=h+Math.imul(se,Ee)|0,o=o+Math.imul(se,_e)|0,o=o+Math.imul(le,Ee)|0,p=p+Math.imul(le,_e)|0,h=h+Math.imul(j,Be)|0,o=o+Math.imul(j,Ce)|0,o=o+Math.imul(re,Be)|0,p=p+Math.imul(re,Ce)|0,h=h+Math.imul(k,Pe)|0,o=o+Math.imul(k,Le)|0,o=o+Math.imul(U,Pe)|0,p=p+Math.imul(U,Le)|0,h=h+Math.imul(I,Re)|0,o=o+Math.imul(I,Fe)|0,o=o+Math.imul(J,Re)|0,p=p+Math.imul(J,Fe)|0;var mr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(mr>>>26)|0,mr&=67108863,h=Math.imul(ge,Se),o=Math.imul(ge,Te),o=o+Math.imul(ve,Se)|0,p=Math.imul(ve,Te),h=h+Math.imul(oe,Ee)|0,o=o+Math.imul(oe,_e)|0,o=o+Math.imul(fe,Ee)|0,p=p+Math.imul(fe,_e)|0,h=h+Math.imul(se,Be)|0,o=o+Math.imul(se,Ce)|0,o=o+Math.imul(le,Be)|0,p=p+Math.imul(le,Ce)|0,h=h+Math.imul(j,Pe)|0,o=o+Math.imul(j,Le)|0,o=o+Math.imul(re,Pe)|0,p=p+Math.imul(re,Le)|0,h=h+Math.imul(k,Re)|0,o=o+Math.imul(k,Fe)|0,o=o+Math.imul(U,Re)|0,p=p+Math.imul(U,Fe)|0;var xr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(xr>>>26)|0,xr&=67108863,h=Math.imul(ge,Ee),o=Math.imul(ge,_e),o=o+Math.imul(ve,Ee)|0,p=Math.imul(ve,_e),h=h+Math.imul(oe,Be)|0,o=o+Math.imul(oe,Ce)|0,o=o+Math.imul(fe,Be)|0,p=p+Math.imul(fe,Ce)|0,h=h+Math.imul(se,Pe)|0,o=o+Math.imul(se,Le)|0,o=o+Math.imul(le,Pe)|0,p=p+Math.imul(le,Le)|0,h=h+Math.imul(j,Re)|0,o=o+Math.imul(j,Fe)|0,o=o+Math.imul(re,Re)|0,p=p+Math.imul(re,Fe)|0;var yr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(yr>>>26)|0,yr&=67108863,h=Math.imul(ge,Be),o=Math.imul(ge,Ce),o=o+Math.imul(ve,Be)|0,p=Math.imul(ve,Ce),h=h+Math.imul(oe,Pe)|0,o=o+Math.imul(oe,Le)|0,o=o+Math.imul(fe,Pe)|0,p=p+Math.imul(fe,Le)|0,h=h+Math.imul(se,Re)|0,o=o+Math.imul(se,Fe)|0,o=o+Math.imul(le,Re)|0,p=p+Math.imul(le,Fe)|0;var wr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(wr>>>26)|0,wr&=67108863,h=Math.imul(ge,Pe),o=Math.imul(ge,Le),o=o+Math.imul(ve,Pe)|0,p=Math.imul(ve,Le),h=h+Math.imul(oe,Re)|0,o=o+Math.imul(oe,Fe)|0,o=o+Math.imul(fe,Re)|0,p=p+Math.imul(fe,Fe)|0;var pn=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(pn>>>26)|0,pn&=67108863,h=Math.imul(ge,Re),o=Math.imul(ge,Fe),o=o+Math.imul(ve,Re)|0,p=Math.imul(ve,Fe);var bn=(m+h|0)+((o&8191)<<13)|0;return m=(p+(o>>>13)|0)+(bn>>>26)|0,bn&=67108863,g[0]=Dt,g[1]=Ne,g[2]=ke,g[3]=St,g[4]=Tt,g[5]=Et,g[6]=_t,g[7]=Bt,g[8]=hr,g[9]=pr,g[10]=br,g[11]=gr,g[12]=vr,g[13]=mr,g[14]=xr,g[15]=yr,g[16]=wr,g[17]=pn,g[18]=bn,m!==0&&(g[19]=m,l.length++),l};Math.imul||(P=F);function q(M,s,u){u.negative=s.negative^M.negative,u.length=M.length+s.length;for(var l=0,f=0,c=0;c<u.length-1;c++){var g=f;f=0;for(var m=l&67108863,h=Math.min(c,s.length-1),o=Math.max(0,c-M.length+1);o<=h;o++){var p=c-o,E=M.words[p]|0,b=s.words[o]|0,w=E*b,H=w&67108863;g=g+(w/67108864|0)|0,H=H+m|0,m=H&67108863,g=g+(H>>>26)|0,f+=g>>>26,g&=67108863}u.words[c]=m,l=g,g=f}return l!==0?u.words[c]=l:u.length--,u.strip()}function W(M,s,u){var l=new K;return l.mulp(M,s,u)}i.prototype.mulTo=function(s,u){var l,f=this.length+s.length;return this.length===10&&s.length===10?l=P(this,s,u):f<63?l=F(this,s,u):f<1024?l=q(this,s,u):l=W(this,s,u),l};function K(M,s){this.x=M,this.y=s}K.prototype.makeRBT=function(s){for(var u=new Array(s),l=i.prototype._countBits(s)-1,f=0;f<s;f++)u[f]=this.revBin(f,l,s);return u},K.prototype.revBin=function(s,u,l){if(s===0||s===l-1)return s;for(var f=0,c=0;c<u;c++)f|=(s&1)<<u-c-1,s>>=1;return f},K.prototype.permute=function(s,u,l,f,c,g){for(var m=0;m<g;m++)f[m]=u[s[m]],c[m]=l[s[m]]},K.prototype.transform=function(s,u,l,f,c,g){this.permute(g,s,u,l,f,c);for(var m=1;m<c;m<<=1)for(var h=m<<1,o=Math.cos(2*Math.PI/h),p=Math.sin(2*Math.PI/h),E=0;E<c;E+=h)for(var b=o,w=p,H=0;H<m;H++){var T=l[E+H],N=f[E+H],X=l[E+H+m],Z=f[E+H+m],_=b*X-w*Z;Z=b*Z+w*X,X=_,l[E+H]=T+X,f[E+H]=N+Z,l[E+H+m]=T-X,f[E+H+m]=N-Z,H!==h&&(_=o*b-p*w,w=o*w+p*b,b=_)}},K.prototype.guessLen13b=function(s,u){var l=Math.max(u,s)|1,f=l&1,c=0;for(l=l/2|0;l;l=l>>>1)c++;return 1<<c+1+f},K.prototype.conjugate=function(s,u,l){if(!(l<=1))for(var f=0;f<l/2;f++){var c=s[f];s[f]=s[l-f-1],s[l-f-1]=c,c=u[f],u[f]=-u[l-f-1],u[l-f-1]=-c}},K.prototype.normalize13b=function(s,u){for(var l=0,f=0;f<u/2;f++){var c=Math.round(s[2*f+1]/u)*8192+Math.round(s[2*f]/u)+l;s[f]=c&67108863,c<67108864?l=0:l=c/67108864|0}return s},K.prototype.convert13b=function(s,u,l,f){for(var c=0,g=0;g<u;g++)c=c+(s[g]|0),l[2*g]=c&8191,c=c>>>13,l[2*g+1]=c&8191,c=c>>>13;for(g=2*u;g<f;++g)l[g]=0;r(c===0),r((c&-8192)===0)},K.prototype.stub=function(s){for(var u=new Array(s),l=0;l<s;l++)u[l]=0;return u},K.prototype.mulp=function(s,u,l){var f=2*this.guessLen13b(s.length,u.length),c=this.makeRBT(f),g=this.stub(f),m=new Array(f),h=new Array(f),o=new Array(f),p=new Array(f),E=new Array(f),b=new Array(f),w=l.words;w.length=f,this.convert13b(s.words,s.length,m,f),this.convert13b(u.words,u.length,p,f),this.transform(m,g,h,o,f,c),this.transform(p,g,E,b,f,c);for(var H=0;H<f;H++){var T=h[H]*E[H]-o[H]*b[H];o[H]=h[H]*b[H]+o[H]*E[H],h[H]=T}return this.conjugate(h,o,f),this.transform(h,o,w,g,f,c),this.conjugate(w,g,f),this.normalize13b(w,f),l.negative=s.negative^u.negative,l.length=s.length+u.length,l.strip()},i.prototype.mul=function(s){var u=new i(null);return u.words=new Array(this.length+s.length),this.mulTo(s,u)},i.prototype.mulf=function(s){var u=new i(null);return u.words=new Array(this.length+s.length),W(this,s,u)},i.prototype.imul=function(s){return this.clone().mulTo(s,this)},i.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var u=0,l=0;l<this.length;l++){var f=(this.words[l]|0)*s,c=(f&67108863)+(u&67108863);u>>=26,u+=f/67108864|0,u+=c>>>26,this.words[l]=c&67108863}return u!==0&&(this.words[l]=u,this.length++),this.length=s===0?1:this.length,this},i.prototype.muln=function(s){return this.clone().imuln(s)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(s){var u=D(s);if(u.length===0)return new i(1);for(var l=this,f=0;f<u.length&&u[f]===0;f++,l=l.sqr());if(++f<u.length)for(var c=l.sqr();f<u.length;f++,c=c.sqr())u[f]!==0&&(l=l.mul(c));return l},i.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var u=s%26,l=(s-u)/26,f=67108863>>>26-u<<26-u,c;if(u!==0){var g=0;for(c=0;c<this.length;c++){var m=this.words[c]&f,h=(this.words[c]|0)-m<<u;this.words[c]=h|g,g=m>>>26-u}g&&(this.words[c]=g,this.length++)}if(l!==0){for(c=this.length-1;c>=0;c--)this.words[c+l]=this.words[c];for(c=0;c<l;c++)this.words[c]=0;this.length+=l}return this.strip()},i.prototype.ishln=function(s){return r(this.negative===0),this.iushln(s)},i.prototype.iushrn=function(s,u,l){r(typeof s=="number"&&s>=0);var f;u?f=(u-u%26)/26:f=0;var c=s%26,g=Math.min((s-c)/26,this.length),m=67108863^67108863>>>c<<c,h=l;if(f-=g,f=Math.max(0,f),h){for(var o=0;o<g;o++)h.words[o]=this.words[o];h.length=g}if(g!==0)if(this.length>g)for(this.length-=g,o=0;o<this.length;o++)this.words[o]=this.words[o+g];else this.words[0]=0,this.length=1;var p=0;for(o=this.length-1;o>=0&&(p!==0||o>=f);o--){var E=this.words[o]|0;this.words[o]=p<<26-c|E>>>c,p=E&m}return h&&p!==0&&(h.words[h.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(s,u,l){return r(this.negative===0),this.iushrn(s,u,l)},i.prototype.shln=function(s){return this.clone().ishln(s)},i.prototype.ushln=function(s){return this.clone().iushln(s)},i.prototype.shrn=function(s){return this.clone().ishrn(s)},i.prototype.ushrn=function(s){return this.clone().iushrn(s)},i.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var u=s%26,l=(s-u)/26,f=1<<u;if(this.length<=l)return!1;var c=this.words[l];return!!(c&f)},i.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var u=s%26,l=(s-u)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(u!==0&&l++,this.length=Math.min(l,this.length),u!==0){var f=67108863^67108863>>>u<<u;this.words[this.length-1]&=f}return this.strip()},i.prototype.maskn=function(s){return this.clone().imaskn(s)},i.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},i.prototype._iaddn=function(s){this.words[0]+=s;for(var u=0;u<this.length&&this.words[u]>=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},i.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u<this.length&&this.words[u]<0;u++)this.words[u]+=67108864,this.words[u+1]-=1;return this.strip()},i.prototype.addn=function(s){return this.clone().iaddn(s)},i.prototype.subn=function(s){return this.clone().isubn(s)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(s,u,l){var f=s.length+l,c;this._expand(f);var g,m=0;for(c=0;c<s.length;c++){g=(this.words[c+l]|0)+m;var h=(s.words[c]|0)*u;g-=h&67108863,m=(g>>26)-(h/67108864|0),this.words[c+l]=g&67108863}for(;c<this.length-l;c++)g=(this.words[c+l]|0)+m,m=g>>26,this.words[c+l]=g&67108863;if(m===0)return this.strip();for(r(m===-1),m=0,c=0;c<this.length;c++)g=-(this.words[c]|0)+m,m=g>>26,this.words[c]=g&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(s,u){var l=this.length-s.length,f=this.clone(),c=s,g=c.words[c.length-1]|0,m=this._countBits(g);l=26-m,l!==0&&(c=c.ushln(l),f.iushln(l),g=c.words[c.length-1]|0);var h=f.length-c.length,o;if(u!=="mod"){o=new i(null),o.length=h+1,o.words=new Array(o.length);for(var p=0;p<o.length;p++)o.words[p]=0}var E=f.clone()._ishlnsubmul(c,1,h);E.negative===0&&(f=E,o&&(o.words[h]=1));for(var b=h-1;b>=0;b--){var w=(f.words[c.length+b]|0)*67108864+(f.words[c.length+b-1]|0);for(w=Math.min(w/g|0,67108863),f._ishlnsubmul(c,w,b);f.negative!==0;)w--,f.negative=0,f._ishlnsubmul(c,1,b),f.isZero()||(f.negative^=1);o&&(o.words[b]=w)}return o&&o.strip(),f.strip(),u!=="div"&&l!==0&&f.iushrn(l),{div:o||null,mod:f}},i.prototype.divmod=function(s,u,l){if(r(!s.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var f,c,g;return this.negative!==0&&s.negative===0?(g=this.neg().divmod(s,u),u!=="mod"&&(f=g.div.neg()),u!=="div"&&(c=g.mod.neg(),l&&c.negative!==0&&c.iadd(s)),{div:f,mod:c}):this.negative===0&&s.negative!==0?(g=this.divmod(s.neg(),u),u!=="mod"&&(f=g.div.neg()),{div:f,mod:g.mod}):this.negative&s.negative?(g=this.neg().divmod(s.neg(),u),u!=="div"&&(c=g.mod.neg(),l&&c.negative!==0&&c.isub(s)),{div:g.div,mod:c}):s.length>this.length||this.cmp(s)<0?{div:new i(0),mod:this}:s.length===1?u==="div"?{div:this.divn(s.words[0]),mod:null}:u==="mod"?{div:null,mod:new i(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new i(this.modn(s.words[0]))}:this._wordDiv(s,u)},i.prototype.div=function(s){return this.divmod(s,"div",!1).div},i.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},i.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},i.prototype.divRound=function(s){var u=this.divmod(s);if(u.mod.isZero())return u.div;var l=u.div.negative!==0?u.mod.isub(s):u.mod,f=s.ushrn(1),c=s.andln(1),g=l.cmp(f);return g<0||c===1&&g===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},i.prototype.modn=function(s){r(s<=67108863);for(var u=(1<<26)%s,l=0,f=this.length-1;f>=0;f--)l=(u*l+(this.words[f]|0))%s;return l},i.prototype.idivn=function(s){r(s<=67108863);for(var u=0,l=this.length-1;l>=0;l--){var f=(this.words[l]|0)+u*67108864;this.words[l]=f/s|0,u=f%s}return this.strip()},i.prototype.divn=function(s){return this.clone().idivn(s)},i.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var u=this,l=s.clone();u.negative!==0?u=u.umod(s):u=u.clone();for(var f=new i(1),c=new i(0),g=new i(0),m=new i(1),h=0;u.isEven()&&l.isEven();)u.iushrn(1),l.iushrn(1),++h;for(var o=l.clone(),p=u.clone();!u.isZero();){for(var E=0,b=1;!(u.words[0]&b)&&E<26;++E,b<<=1);if(E>0)for(u.iushrn(E);E-- >0;)(f.isOdd()||c.isOdd())&&(f.iadd(o),c.isub(p)),f.iushrn(1),c.iushrn(1);for(var w=0,H=1;!(l.words[0]&H)&&w<26;++w,H<<=1);if(w>0)for(l.iushrn(w);w-- >0;)(g.isOdd()||m.isOdd())&&(g.iadd(o),m.isub(p)),g.iushrn(1),m.iushrn(1);u.cmp(l)>=0?(u.isub(l),f.isub(g),c.isub(m)):(l.isub(u),g.isub(f),m.isub(c))}return{a:g,b:m,gcd:l.iushln(h)}},i.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var u=this,l=s.clone();u.negative!==0?u=u.umod(s):u=u.clone();for(var f=new i(1),c=new i(0),g=l.clone();u.cmpn(1)>0&&l.cmpn(1)>0;){for(var m=0,h=1;!(u.words[0]&h)&&m<26;++m,h<<=1);if(m>0)for(u.iushrn(m);m-- >0;)f.isOdd()&&f.iadd(g),f.iushrn(1);for(var o=0,p=1;!(l.words[0]&p)&&o<26;++o,p<<=1);if(o>0)for(l.iushrn(o);o-- >0;)c.isOdd()&&c.iadd(g),c.iushrn(1);u.cmp(l)>=0?(u.isub(l),f.isub(c)):(l.isub(u),c.isub(f))}var E;return u.cmpn(1)===0?E=f:E=c,E.cmpn(0)<0&&E.iadd(s),E},i.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var u=this.clone(),l=s.clone();u.negative=0,l.negative=0;for(var f=0;u.isEven()&&l.isEven();f++)u.iushrn(1),l.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;l.isEven();)l.iushrn(1);var c=u.cmp(l);if(c<0){var g=u;u=l,l=g}else if(c===0||l.cmpn(1)===0)break;u.isub(l)}while(!0);return l.iushln(f)},i.prototype.invm=function(s){return this.egcd(s).a.umod(s)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(s){return this.words[0]&s},i.prototype.bincn=function(s){r(typeof s=="number");var u=s%26,l=(s-u)/26,f=1<<u;if(this.length<=l)return this._expand(l+1),this.words[l]|=f,this;for(var c=f,g=l;c!==0&&g<this.length;g++){var m=this.words[g]|0;m+=c,c=m>>>26,m&=67108863,this.words[g]=m}return c!==0&&(this.words[g]=c,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(s){var u=s<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this.strip();var l;if(this.length>1)l=1;else{u&&(s=-s),r(s<=67108863,"Number is too big");var f=this.words[0]|0;l=f===s?0:f<s?-1:1}return this.negative!==0?-l|0:l},i.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var u=this.ucmp(s);return this.negative!==0?-u|0:u},i.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var u=0,l=this.length-1;l>=0;l--){var f=this.words[l]|0,c=s.words[l]|0;if(f!==c){f<c?u=-1:f>c&&(u=1);break}}return u},i.prototype.gtn=function(s){return this.cmpn(s)===1},i.prototype.gt=function(s){return this.cmp(s)===1},i.prototype.gten=function(s){return this.cmpn(s)>=0},i.prototype.gte=function(s){return this.cmp(s)>=0},i.prototype.ltn=function(s){return this.cmpn(s)===-1},i.prototype.lt=function(s){return this.cmp(s)===-1},i.prototype.lten=function(s){return this.cmpn(s)<=0},i.prototype.lte=function(s){return this.cmp(s)<=0},i.prototype.eqn=function(s){return this.cmpn(s)===0},i.prototype.eq=function(s){return this.cmp(s)===0},i.red=function(s){return new te(s)},i.prototype.toRed=function(s){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(s){return this.red=s,this},i.prototype.forceRed=function(s){return r(!this.red,"Already a number in reduction context"),this._forceRed(s)},i.prototype.redAdd=function(s){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},i.prototype.redIAdd=function(s){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},i.prototype.redSub=function(s){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},i.prototype.redISub=function(s){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},i.prototype.redShl=function(s){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},i.prototype.redMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},i.prototype.redIMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(s){return r(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var ne={k256:null,p224:null,p192:null,p25519:null};function $(M,s){this.name=M,this.p=new i(s,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}$.prototype._tmp=function(){var s=new i(null);return s.words=new Array(Math.ceil(this.n/13)),s},$.prototype.ireduce=function(s){var u=s,l;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),l=u.bitLength();while(l>this.n);var f=l<this.n?-1:u.ucmp(this.p);return f===0?(u.words[0]=0,u.length=1):f>0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},$.prototype.split=function(s,u){s.iushrn(this.n,0,u)},$.prototype.imulK=function(s){return s.imul(this.k)};function ae(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(ae,$),ae.prototype.split=function(s,u){for(var l=4194303,f=Math.min(s.length,9),c=0;c<f;c++)u.words[c]=s.words[c];if(u.length=f,s.length<=9){s.words[0]=0,s.length=1;return}var g=s.words[9];for(u.words[u.length++]=g&l,c=10;c<s.length;c++){var m=s.words[c]|0;s.words[c-10]=(m&l)<<4|g>>>22,g=m}g>>>=22,s.words[c-10]=g,g===0&&s.length>10?s.length-=10:s.length-=9},ae.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var u=0,l=0;l<s.length;l++){var f=s.words[l]|0;u+=f*977,s.words[l]=u&67108863,u=f*64+(u/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function ie(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(ie,$);function ee(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(ee,$);function ce(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(ce,$),ce.prototype.imulK=function(s){for(var u=0,l=0;l<s.length;l++){var f=(s.words[l]|0)*19+u,c=f&67108863;f>>>=26,s.words[l]=c,u=f}return u!==0&&(s.words[s.length++]=u),s},i._prime=function(s){if(ne[s])return ne[s];var u;if(s==="k256")u=new ae;else if(s==="p224")u=new ie;else if(s==="p192")u=new ee;else if(s==="p25519")u=new ce;else throw new Error("Unknown prime "+s);return ne[s]=u,u};function te(M){if(typeof M=="string"){var s=i._prime(M);this.m=s.p,this.prime=s}else r(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}te.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},te.prototype._verify2=function(s,u){r((s.negative|u.negative)===0,"red works only with positives"),r(s.red&&s.red===u.red,"red works only with red numbers")},te.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},te.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},te.prototype.add=function(s,u){this._verify2(s,u);var l=s.add(u);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},te.prototype.iadd=function(s,u){this._verify2(s,u);var l=s.iadd(u);return l.cmp(this.m)>=0&&l.isub(this.m),l},te.prototype.sub=function(s,u){this._verify2(s,u);var l=s.sub(u);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},te.prototype.isub=function(s,u){this._verify2(s,u);var l=s.isub(u);return l.cmpn(0)<0&&l.iadd(this.m),l},te.prototype.shl=function(s,u){return this._verify1(s),this.imod(s.ushln(u))},te.prototype.imul=function(s,u){return this._verify2(s,u),this.imod(s.imul(u))},te.prototype.mul=function(s,u){return this._verify2(s,u),this.imod(s.mul(u))},te.prototype.isqr=function(s){return this.imul(s,s.clone())},te.prototype.sqr=function(s){return this.mul(s,s)},te.prototype.sqrt=function(s){if(s.isZero())return s.clone();var u=this.m.andln(3);if(r(u%2===1),u===3){var l=this.m.add(new i(1)).iushrn(2);return this.pow(s,l)}for(var f=this.m.subn(1),c=0;!f.isZero()&&f.andln(1)===0;)c++,f.iushrn(1);r(!f.isZero());var g=new i(1).toRed(this),m=g.redNeg(),h=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new i(2*o*o).toRed(this);this.pow(o,h).cmp(m)!==0;)o.redIAdd(m);for(var p=this.pow(o,f),E=this.pow(s,f.addn(1).iushrn(1)),b=this.pow(s,f),w=c;b.cmp(g)!==0;){for(var H=b,T=0;H.cmp(g)!==0;T++)H=H.redSqr();r(T<w);var N=this.pow(p,new i(1).iushln(w-T-1));E=E.redMul(N),p=N.redSqr(),b=b.redMul(p),w=T}return E},te.prototype.invm=function(s){var u=s._invmp(this.m);return u.negative!==0?(u.negative=0,this.imod(u).redNeg()):this.imod(u)},te.prototype.pow=function(s,u){if(u.isZero())return new i(1).toRed(this);if(u.cmpn(1)===0)return s.clone();var l=4,f=new Array(1<<l);f[0]=new i(1).toRed(this),f[1]=s;for(var c=2;c<f.length;c++)f[c]=this.mul(f[c-1],s);var g=f[0],m=0,h=0,o=u.bitLength()%26;for(o===0&&(o=26),c=u.length-1;c>=0;c--){for(var p=u.words[c],E=o-1;E>=0;E--){var b=p>>E&1;if(g!==f[0]&&(g=this.sqr(g)),b===0&&m===0){h=0;continue}m<<=1,m|=b,h++,!(h!==l&&(c!==0||E!==0))&&(g=this.mul(g,f[m]),h=0,m=0)}o=26}return g},te.prototype.convertTo=function(s){var u=s.umod(this.m);return u===s?u.clone():u},te.prototype.convertFrom=function(s){var u=s.clone();return u.red=null,u},i.mont=function(s){return new Y(s)};function Y(M){te.call(this,M),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}n(Y,te),Y.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},Y.prototype.convertFrom=function(s){var u=this.imod(s.mul(this.rinv));return u.red=null,u},Y.prototype.imul=function(s,u){if(s.isZero()||u.isZero())return s.words[0]=0,s.length=1,s;var l=s.imul(u),f=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=l.isub(f).iushrn(this.shift),g=c;return c.cmp(this.m)>=0?g=c.isub(this.m):c.cmpn(0)<0&&(g=c.iadd(this.m)),g._forceRed(this)},Y.prototype.mul=function(s,u){if(s.isZero()||u.isZero())return new i(0)._forceRed(this);var l=s.mul(u),f=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=l.isub(f).iushrn(this.shift),g=c;return c.cmp(this.m)>=0?g=c.isub(this.m):c.cmpn(0)<0&&(g=c.iadd(this.m)),g._forceRed(this)},Y.prototype.invm=function(s){var u=this.imod(s._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(typeof Vl>"u"||Vl,Vg)});var jl=V(Wg=>{"use strict";var lL=A(S()),R0=Wg;function L7(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t!="string"){for(var n=0;n<t.length;n++)r[n]=t[n]|0;return r}if(e==="hex"){t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t);for(var n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var n=0;n<t.length;n++){var i=t.charCodeAt(n),a=i>>8,d=i&255;a?r.push(a,d):r.push(d)}return r}R0.toArray=L7;function jg(t){return t.length===1?"0"+t:t}R0.zero2=jg;function Qg(t){for(var e="",r=0;r<t.length;r++)e+=jg(t[r].toString(16));return e}R0.toHex=Qg;R0.encode=function(e,r){return r==="hex"?Qg(e):e}});var Or=V(Yg=>{"use strict";var hL=A(S()),yn=Yg,R7=Gn(),F7=li(),F0=jl();yn.assert=F7;yn.toArray=F0.toArray;yn.zero2=F0.zero2;yn.toHex=F0.toHex;yn.encode=F0.encode;function D7(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1),i;for(i=0;i<n.length;i+=1)n[i]=0;var a=1<<e+1,d=t.clone();for(i=0;i<n.length;i++){var v,y=d.andln(a-1);d.isOdd()?(y>(a>>1)-1?v=(a>>1)-y:v=y,d.isubn(v)):v=0,n[i]=v,d.iushrn(1)}return n}yn.getNAF=D7;function O7(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n=0,i=0,a;t.cmpn(-n)>0||e.cmpn(-i)>0;){var d=t.andln(3)+n&3,v=e.andln(3)+i&3;d===3&&(d=-1),v===3&&(v=-1);var y;d&1?(a=t.andln(7)+n&7,(a===3||a===5)&&v===2?y=-d:y=d):y=0,r[0].push(y);var x;v&1?(a=e.andln(7)+i&7,(a===3||a===5)&&d===2?x=-v:x=v):x=0,r[1].push(x),2*n===y+1&&(n=1-n),2*i===x+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r}yn.getJSF=O7;function I7(t,e,r){var n="_"+e;t.prototype[e]=function(){return this[n]!==void 0?this[n]:this[n]=r.call(this)}}yn.cachedProperty=I7;function N7(t){return typeof t=="string"?yn.toArray(t,"hex"):t}yn.parseBytes=N7;function k7(t){return new R7(t,"hex","le")}yn.intFromLE=k7});var $l=V((pL,Yl)=>{var bL=A(S()),Ql;Yl.exports=function(e){return Ql||(Ql=new Hi(null)),Ql.generate(e)};function Hi(t){this.rand=t}Yl.exports.Rand=Hi;Hi.prototype.generate=function(e){return this._rand(e)};Hi.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var r=new Uint8Array(e),n=0;n<r.length;n++)r[n]=this.rand.getByte();return r};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?Hi.prototype._rand=function(e){var r=new Uint8Array(e);return self.crypto.getRandomValues(r),r}:self.msCrypto&&self.msCrypto.getRandomValues?Hi.prototype._rand=function(e){var r=new Uint8Array(e);return self.msCrypto.getRandomValues(r),r}:typeof window=="object"&&(Hi.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(Wl=rt("crypto"),typeof Wl.randomBytes!="function")throw new Error("Not supported");Hi.prototype._rand=function(e){return Wl.randomBytes(e)}}catch{}var Wl});var Ls=V((gL,$g)=>{"use strict";var vL=A(S()),Ma=Gn(),Ps=Or(),D0=Ps.getNAF,J7=Ps.getJSF,O0=Ps.assert;function qi(t,e){this.type=t,this.p=new Ma(e.p,16),this.red=e.prime?Ma.red(e.prime):Ma.mont(this.p),this.zero=new Ma(0).toRed(this.red),this.one=new Ma(1).toRed(this.red),this.two=new Ma(2).toRed(this.red),this.n=e.n&&new Ma(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}$g.exports=qi;qi.prototype.point=function(){throw new Error("Not implemented")};qi.prototype.validate=function(){throw new Error("Not implemented")};qi.prototype._fixedNafMul=function(e,r){O0(e.precomputed);var n=e._getDoubles(),i=D0(r,1,this._bitLength),a=(1<<n.step+1)-(n.step%2===0?2:1);a/=3;var d=[],v,y;for(v=0;v<i.length;v+=n.step){y=0;for(var x=v+n.step-1;x>=v;x--)y=(y<<1)+i[x];d.push(y)}for(var B=this.jpoint(null,null,null),C=this.jpoint(null,null,null),D=a;D>0;D--){for(v=0;v<d.length;v++)y=d[v],y===D?C=C.mixedAdd(n.points[v]):y===-D&&(C=C.mixedAdd(n.points[v].neg()));B=B.add(C)}return B.toP()};qi.prototype._wnafMul=function(e,r){var n=4,i=e._getNAFPoints(n);n=i.wnd;for(var a=i.points,d=D0(r,n,this._bitLength),v=this.jpoint(null,null,null),y=d.length-1;y>=0;y--){for(var x=0;y>=0&&d[y]===0;y--)x++;if(y>=0&&x++,v=v.dblp(x),y<0)break;var B=d[y];O0(B!==0),e.type==="affine"?B>0?v=v.mixedAdd(a[B-1>>1]):v=v.mixedAdd(a[-B-1>>1].neg()):B>0?v=v.add(a[B-1>>1]):v=v.add(a[-B-1>>1].neg())}return e.type==="affine"?v.toP():v};qi.prototype._wnafMulAdd=function(e,r,n,i,a){var d=this._wnafT1,v=this._wnafT2,y=this._wnafT3,x=0,B,C,D;for(B=0;B<i;B++){D=r[B];var F=D._getNAFPoints(e);d[B]=F.wnd,v[B]=F.points}for(B=i-1;B>=1;B-=2){var P=B-1,q=B;if(d[P]!==1||d[q]!==1){y[P]=D0(n[P],d[P],this._bitLength),y[q]=D0(n[q],d[q],this._bitLength),x=Math.max(y[P].length,x),x=Math.max(y[q].length,x);continue}var W=[r[P],null,null,r[q]];r[P].y.cmp(r[q].y)===0?(W[1]=r[P].add(r[q]),W[2]=r[P].toJ().mixedAdd(r[q].neg())):r[P].y.cmp(r[q].y.redNeg())===0?(W[1]=r[P].toJ().mixedAdd(r[q]),W[2]=r[P].add(r[q].neg())):(W[1]=r[P].toJ().mixedAdd(r[q]),W[2]=r[P].toJ().mixedAdd(r[q].neg()));var K=[-3,-1,-5,-7,0,7,5,1,3],ne=J7(n[P],n[q]);for(x=Math.max(ne[0].length,x),y[P]=new Array(x),y[q]=new Array(x),C=0;C<x;C++){var $=ne[0][C]|0,ae=ne[1][C]|0;y[P][C]=K[($+1)*3+(ae+1)],y[q][C]=0,v[P]=W}}var ie=this.jpoint(null,null,null),ee=this._wnafT4;for(B=x;B>=0;B--){for(var ce=0;B>=0;){var te=!0;for(C=0;C<i;C++)ee[C]=y[C][B]|0,ee[C]!==0&&(te=!1);if(!te)break;ce++,B--}if(B>=0&&ce++,ie=ie.dblp(ce),B<0)break;for(C=0;C<i;C++){var Y=ee[C];Y!==0&&(Y>0?D=v[C][Y-1>>1]:Y<0&&(D=v[C][-Y-1>>1].neg()),D.type==="affine"?ie=ie.mixedAdd(D):ie=ie.add(D))}}for(B=0;B<i;B++)v[B]=null;return a?ie:ie.toP()};function en(t,e){this.curve=t,this.type=e,this.precomputed=null}qi.BasePoint=en;en.prototype.eq=function(){throw new Error("Not implemented")};en.prototype.validate=function(){return this.curve.validate(this)};qi.prototype.decodePoint=function(e,r){e=Ps.toArray(e,r);var n=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*n){e[0]===6?O0(e[e.length-1]%2===0):e[0]===7&&O0(e[e.length-1]%2===1);var i=this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));return i}else if((e[0]===2||e[0]===3)&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),e[0]===3);throw new Error("Unknown point format")};en.prototype.encodeCompressed=function(e){return this.encode(e,!0)};en.prototype._encode=function(e){var r=this.curve.p.byteLength(),n=this.getX().toArray("be",r);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",r))};en.prototype.encode=function(e,r){return Ps.encode(this._encode(r),e)};en.prototype.precompute=function(e){if(this.precomputed)return this;var r={doubles:null,naf:null,beta:null};return r.naf=this._getNAFPoints(8),r.doubles=this._getDoubles(4,e),r.beta=this._getBeta(),this.precomputed=r,this};en.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var r=this.precomputed.doubles;return r?r.points.length>=Math.ceil((e.bitLength()+1)/r.step):!1};en.prototype._getDoubles=function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,a=0;a<r;a+=e){for(var d=0;d<e;d++)i=i.dbl();n.push(i)}return{step:e,points:n}};en.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var r=[this],n=(1<<e)-1,i=n===1?null:this.dbl(),a=1;a<n;a++)r[a]=r[a-1].add(i);return{wnd:e,points:r}};en.prototype._getBeta=function(){return null};en.prototype.dblp=function(e){for(var r=this,n=0;n<e;n++)r=r.dbl();return r}});var tv=V((mL,ev)=>{"use strict";var xL=A(S()),U7=Or(),pt=Gn(),ed=tr(),Mo=Ls(),H7=U7.assert;function tn(t){Mo.call(this,"short",t),this.a=new pt(t.a,16).toRed(this.red),this.b=new pt(t.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(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}ed(tn,Mo);ev.exports=tn;tn.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var r,n;if(e.beta)r=new pt(e.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);r=i[0].cmp(i[1])<0?i[0]:i[1],r=r.toRed(this.red)}if(e.lambda)n=new pt(e.lambda,16);else{var a=this._getEndoRoots(this.n);this.g.mul(a[0]).x.cmp(this.g.x.redMul(r))===0?n=a[0]:(n=a[1],H7(this.g.mul(n).x.cmp(this.g.x.redMul(r))===0))}var d;return e.basis?d=e.basis.map(function(v){return{a:new pt(v.a,16),b:new pt(v.b,16)}}):d=this._getEndoBasis(n),{beta:r,lambda:n,basis:d}}};tn.prototype._getEndoRoots=function(e){var r=e===this.p?this.red:pt.mont(e),n=new pt(2).toRed(r).redInvm(),i=n.redNeg(),a=new pt(3).toRed(r).redNeg().redSqrt().redMul(n),d=i.redAdd(a).fromRed(),v=i.redSub(a).fromRed();return[d,v]};tn.prototype._getEndoBasis=function(e){for(var r=this.n.ushrn(Math.floor(this.n.bitLength()/2)),n=e,i=this.n.clone(),a=new pt(1),d=new pt(0),v=new pt(0),y=new pt(1),x,B,C,D,F,P,q,W=0,K,ne;n.cmpn(0)!==0;){var $=i.div(n);K=i.sub($.mul(n)),ne=v.sub($.mul(a));var ae=y.sub($.mul(d));if(!C&&K.cmp(r)<0)x=q.neg(),B=a,C=K.neg(),D=ne;else if(C&&++W===2)break;q=K,i=n,n=K,v=a,a=ne,y=d,d=ae}F=K.neg(),P=ne;var ie=C.sqr().add(D.sqr()),ee=F.sqr().add(P.sqr());return ee.cmp(ie)>=0&&(F=x,P=B),C.negative&&(C=C.neg(),D=D.neg()),F.negative&&(F=F.neg(),P=P.neg()),[{a:C,b:D},{a:F,b:P}]};tn.prototype._endoSplit=function(e){var r=this.endo.basis,n=r[0],i=r[1],a=i.b.mul(e).divRound(this.n),d=n.b.neg().mul(e).divRound(this.n),v=a.mul(n.a),y=d.mul(i.a),x=a.mul(n.b),B=d.mul(i.b),C=e.sub(v).sub(y),D=x.add(B).neg();return{k1:C,k2:D}};tn.prototype.pointFromX=function(e,r){e=new pt(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var a=i.fromRed().isOdd();return(r&&!a||!r&&a)&&(i=i.redNeg()),this.point(e,i)};tn.prototype.validate=function(e){if(e.inf)return!0;var r=e.x,n=e.y,i=this.a.redMul(r),a=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(a).cmpn(0)===0};tn.prototype._endoWnafMulAdd=function(e,r,n){for(var i=this._endoWnafT1,a=this._endoWnafT2,d=0;d<e.length;d++){var v=this._endoSplit(r[d]),y=e[d],x=y._getBeta();v.k1.negative&&(v.k1.ineg(),y=y.neg(!0)),v.k2.negative&&(v.k2.ineg(),x=x.neg(!0)),i[d*2]=y,i[d*2+1]=x,a[d*2]=v.k1,a[d*2+1]=v.k2}for(var B=this._wnafMulAdd(1,i,a,d*2,n),C=0;C<d*2;C++)i[C]=null,a[C]=null;return B};function Ht(t,e,r,n){Mo.BasePoint.call(this,t,"affine"),e===null&&r===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new pt(e,16),this.y=new pt(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}ed(Ht,Mo.BasePoint);tn.prototype.point=function(e,r,n){return new Ht(this,e,r,n)};tn.prototype.pointFromJSON=function(e,r){return Ht.fromJSON(this,e,r)};Ht.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var r=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,i=function(a){return n.point(a.x.redMul(n.endo.beta),a.y)};e.beta=r,r.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(i)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(i)}}}return r}};Ht.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]};Ht.fromJSON=function(e,r,n){typeof r=="string"&&(r=JSON.parse(r));var i=e.point(r[0],r[1],n);if(!r[2])return i;function a(v){return e.point(v[0],v[1],n)}var d=r[2];return i.precomputed={beta:null,doubles:d.doubles&&{step:d.doubles.step,points:[i].concat(d.doubles.points.map(a))},naf:d.naf&&{wnd:d.naf.wnd,points:[i].concat(d.naf.points.map(a))}},i};Ht.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};Ht.prototype.isInfinity=function(){return this.inf};Ht.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(e.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};Ht.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),i=e.redInvm(),a=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),d=a.redSqr().redISub(this.x.redAdd(this.x)),v=a.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,v)};Ht.prototype.getX=function(){return this.x.fromRed()};Ht.prototype.getY=function(){return this.y.fromRed()};Ht.prototype.mul=function(e){return e=new pt(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};Ht.prototype.mulAdd=function(e,r,n){var i=[this,r],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,a):this.curve._wnafMulAdd(1,i,a,2)};Ht.prototype.jmulAdd=function(e,r,n){var i=[this,r],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,a,!0):this.curve._wnafMulAdd(1,i,a,2,!0)};Ht.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};Ht.prototype.neg=function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,i=function(a){return a.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};Ht.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function nr(t,e,r,n){Mo.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new pt(0)):(this.x=new pt(e,16),this.y=new pt(r,16),this.z=new pt(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}ed(nr,Mo.BasePoint);tn.prototype.jpoint=function(e,r,n){return new nr(this,e,r,n)};nr.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(e);return this.curve.point(n,i)};nr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};nr.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),a=e.x.redMul(n),d=this.y.redMul(r.redMul(e.z)),v=e.y.redMul(n.redMul(this.z)),y=i.redSub(a),x=d.redSub(v);if(y.cmpn(0)===0)return x.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var B=y.redSqr(),C=B.redMul(y),D=i.redMul(B),F=x.redSqr().redIAdd(C).redISub(D).redISub(D),P=x.redMul(D.redISub(F)).redISub(d.redMul(C)),q=this.z.redMul(e.z).redMul(y);return this.curve.jpoint(F,P,q)};nr.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=e.x.redMul(r),a=this.y,d=e.y.redMul(r).redMul(this.z),v=n.redSub(i),y=a.redSub(d);if(v.cmpn(0)===0)return y.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var x=v.redSqr(),B=x.redMul(v),C=n.redMul(x),D=y.redSqr().redIAdd(B).redISub(C).redISub(C),F=y.redMul(C.redISub(D)).redISub(a.redMul(B)),P=this.z.redMul(v);return this.curve.jpoint(D,F,P)};nr.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r<e;r++)n=n.dbl();return n}var i=this.curve.a,a=this.curve.tinv,d=this.x,v=this.y,y=this.z,x=y.redSqr().redSqr(),B=v.redAdd(v);for(r=0;r<e;r++){var C=d.redSqr(),D=B.redSqr(),F=D.redSqr(),P=C.redAdd(C).redIAdd(C).redIAdd(i.redMul(x)),q=d.redMul(D),W=P.redSqr().redISub(q.redAdd(q)),K=q.redISub(W),ne=P.redMul(K);ne=ne.redIAdd(ne).redISub(F);var $=B.redMul(y);r+1<e&&(x=x.redMul(F)),d=W,y=$,B=ne}return this.curve.jpoint(d,B.redMul(a),y)};nr.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};nr.prototype._zeroDbl=function(){var e,r,n;if(this.zOne){var i=this.x.redSqr(),a=this.y.redSqr(),d=a.redSqr(),v=this.x.redAdd(a).redSqr().redISub(i).redISub(d);v=v.redIAdd(v);var y=i.redAdd(i).redIAdd(i),x=y.redSqr().redISub(v).redISub(v),B=d.redIAdd(d);B=B.redIAdd(B),B=B.redIAdd(B),e=x,r=y.redMul(v.redISub(x)).redISub(B),n=this.y.redAdd(this.y)}else{var C=this.x.redSqr(),D=this.y.redSqr(),F=D.redSqr(),P=this.x.redAdd(D).redSqr().redISub(C).redISub(F);P=P.redIAdd(P);var q=C.redAdd(C).redIAdd(C),W=q.redSqr(),K=F.redIAdd(F);K=K.redIAdd(K),K=K.redIAdd(K),e=W.redISub(P).redISub(P),r=q.redMul(P.redISub(e)).redISub(K),n=this.y.redMul(this.z),n=n.redIAdd(n)}return this.curve.jpoint(e,r,n)};nr.prototype._threeDbl=function(){var e,r,n;if(this.zOne){var i=this.x.redSqr(),a=this.y.redSqr(),d=a.redSqr(),v=this.x.redAdd(a).redSqr().redISub(i).redISub(d);v=v.redIAdd(v);var y=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),x=y.redSqr().redISub(v).redISub(v);e=x;var B=d.redIAdd(d);B=B.redIAdd(B),B=B.redIAdd(B),r=y.redMul(v.redISub(x)).redISub(B),n=this.y.redAdd(this.y)}else{var C=this.z.redSqr(),D=this.y.redSqr(),F=this.x.redMul(D),P=this.x.redSub(C).redMul(this.x.redAdd(C));P=P.redAdd(P).redIAdd(P);var q=F.redIAdd(F);q=q.redIAdd(q);var W=q.redAdd(q);e=P.redSqr().redISub(W),n=this.y.redAdd(this.z).redSqr().redISub(D).redISub(C);var K=D.redSqr();K=K.redIAdd(K),K=K.redIAdd(K),K=K.redIAdd(K),r=P.redMul(q.redISub(e)).redISub(K)}return this.curve.jpoint(e,r,n)};nr.prototype._dbl=function(){var e=this.curve.a,r=this.x,n=this.y,i=this.z,a=i.redSqr().redSqr(),d=r.redSqr(),v=n.redSqr(),y=d.redAdd(d).redIAdd(d).redIAdd(e.redMul(a)),x=r.redAdd(r);x=x.redIAdd(x);var B=x.redMul(v),C=y.redSqr().redISub(B.redAdd(B)),D=B.redISub(C),F=v.redSqr();F=F.redIAdd(F),F=F.redIAdd(F),F=F.redIAdd(F);var P=y.redMul(D).redISub(F),q=n.redAdd(n).redMul(i);return this.curve.jpoint(C,P,q)};nr.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr(),i=r.redSqr(),a=e.redAdd(e).redIAdd(e),d=a.redSqr(),v=this.x.redAdd(r).redSqr().redISub(e).redISub(i);v=v.redIAdd(v),v=v.redAdd(v).redIAdd(v),v=v.redISub(d);var y=v.redSqr(),x=i.redIAdd(i);x=x.redIAdd(x),x=x.redIAdd(x),x=x.redIAdd(x);var B=a.redIAdd(v).redSqr().redISub(d).redISub(y).redISub(x),C=r.redMul(B);C=C.redIAdd(C),C=C.redIAdd(C);var D=this.x.redMul(y).redISub(C);D=D.redIAdd(D),D=D.redIAdd(D);var F=this.y.redMul(B.redMul(x.redISub(B)).redISub(v.redMul(y)));F=F.redIAdd(F),F=F.redIAdd(F),F=F.redIAdd(F);var P=this.z.redAdd(v).redSqr().redISub(n).redISub(y);return this.curve.jpoint(D,F,P)};nr.prototype.mul=function(e,r){return e=new pt(e,r),this.curve._wnafMul(this,e)};nr.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var r=this.z.redSqr(),n=e.z.redSqr();if(this.x.redMul(n).redISub(e.x.redMul(r)).cmpn(0)!==0)return!1;var i=r.redMul(this.z),a=n.redMul(e.z);return this.y.redMul(a).redISub(e.y.redMul(i)).cmpn(0)===0};nr.prototype.eqXToP=function(e){var r=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(r);if(this.x.cmp(n)===0)return!0;for(var i=e.clone(),a=this.curve.redN.redMul(r);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(a),this.x.cmp(n)===0)return!0}};nr.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};nr.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var iv=V((yL,nv)=>{"use strict";var wL=A(S()),So=Gn(),rv=tr(),I0=Ls(),q7=Or();function To(t){I0.call(this,"mont",t),this.a=new So(t.a,16).toRed(this.red),this.b=new So(t.b,16).toRed(this.red),this.i4=new So(4).toRed(this.red).redInvm(),this.two=new So(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}rv(To,I0);nv.exports=To;To.prototype.validate=function(e){var r=e.normalize().x,n=r.redSqr(),i=n.redMul(r).redAdd(n.redMul(this.a)).redAdd(r),a=i.redSqrt();return a.redSqr().cmp(i)===0};function qt(t,e,r){I0.BasePoint.call(this,t,"projective"),e===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new So(e,16),this.z=new So(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}rv(qt,I0.BasePoint);To.prototype.decodePoint=function(e,r){return this.point(q7.toArray(e,r),1)};To.prototype.point=function(e,r){return new qt(this,e,r)};To.prototype.pointFromJSON=function(e){return qt.fromJSON(this,e)};qt.prototype.precompute=function(){};qt.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};qt.fromJSON=function(e,r){return new qt(e,r[0],r[1]||e.one)};qt.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};qt.prototype.isInfinity=function(){return this.z.cmpn(0)===0};qt.prototype.dbl=function(){var e=this.x.redAdd(this.z),r=e.redSqr(),n=this.x.redSub(this.z),i=n.redSqr(),a=r.redSub(i),d=r.redMul(i),v=a.redMul(i.redAdd(this.curve.a24.redMul(a)));return this.curve.point(d,v)};qt.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};qt.prototype.diffAdd=function(e,r){var n=this.x.redAdd(this.z),i=this.x.redSub(this.z),a=e.x.redAdd(e.z),d=e.x.redSub(e.z),v=d.redMul(n),y=a.redMul(i),x=r.z.redMul(v.redAdd(y).redSqr()),B=r.x.redMul(v.redISub(y).redSqr());return this.curve.point(x,B)};qt.prototype.mul=function(e){for(var r=e.clone(),n=this,i=this.curve.point(null,null),a=this,d=[];r.cmpn(0)!==0;r.iushrn(1))d.push(r.andln(1));for(var v=d.length-1;v>=0;v--)d[v]===0?(n=n.diffAdd(i,a),i=i.dbl()):(i=n.diffAdd(i,a),n=n.dbl());return i};qt.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};qt.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};qt.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};qt.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};qt.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var sv=V((AL,ov)=>{"use strict";var ML=A(S()),G7=Or(),mi=Gn(),av=tr(),N0=Ls(),X7=G7.assert;function Xn(t){this.twisted=(t.a|0)!==1,this.mOneA=this.twisted&&(t.a|0)===-1,this.extended=this.mOneA,N0.call(this,"edwards",t),this.a=new mi(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new mi(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new mi(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),X7(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(t.c|0)===1}av(Xn,N0);ov.exports=Xn;Xn.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};Xn.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};Xn.prototype.jpoint=function(e,r,n,i){return this.point(e,r,n,i)};Xn.prototype.pointFromX=function(e,r){e=new mi(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),i=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),d=i.redMul(a.redInvm()),v=d.redSqrt();if(v.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");var y=v.fromRed().isOdd();return(r&&!y||!r&&y)&&(v=v.redNeg()),this.point(e,v)};Xn.prototype.pointFromY=function(e,r){e=new mi(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),i=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),d=i.redMul(a.redInvm());if(d.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,e)}var v=d.redSqrt();if(v.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");return v.fromRed().isOdd()!==r&&(v=v.redNeg()),this.point(v,e)};Xn.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var r=e.x.redSqr(),n=e.y.redSqr(),i=r.redMul(this.a).redAdd(n),a=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(n)));return i.cmp(a)===0};function ft(t,e,r,n,i){N0.BasePoint.call(this,t,"projective"),e===null&&r===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new mi(e,16),this.y=new mi(r,16),this.z=n?new mi(n,16):this.curve.one,this.t=i&&new mi(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}av(ft,N0.BasePoint);Xn.prototype.pointFromJSON=function(e){return ft.fromJSON(this,e)};Xn.prototype.point=function(e,r,n,i){return new ft(this,e,r,n,i)};ft.fromJSON=function(e,r){return new ft(e,r[0],r[1],r[2])};ft.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};ft.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};ft.prototype._extDbl=function(){var e=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var i=this.curve._mulA(e),a=this.x.redAdd(this.y).redSqr().redISub(e).redISub(r),d=i.redAdd(r),v=d.redSub(n),y=i.redSub(r),x=a.redMul(v),B=d.redMul(y),C=a.redMul(y),D=v.redMul(d);return this.curve.point(x,B,D,C)};ft.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),n=this.y.redSqr(),i,a,d,v,y,x;if(this.curve.twisted){v=this.curve._mulA(r);var B=v.redAdd(n);this.zOne?(i=e.redSub(r).redSub(n).redMul(B.redSub(this.curve.two)),a=B.redMul(v.redSub(n)),d=B.redSqr().redSub(B).redSub(B)):(y=this.z.redSqr(),x=B.redSub(y).redISub(y),i=e.redSub(r).redISub(n).redMul(x),a=B.redMul(v.redSub(n)),d=B.redMul(x))}else v=r.redAdd(n),y=this.curve._mulC(this.z).redSqr(),x=v.redSub(y).redSub(y),i=this.curve._mulC(e.redISub(v)).redMul(x),a=this.curve._mulC(v).redMul(r.redISub(n)),d=v.redMul(x);return this.curve.point(i,a,d)};ft.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};ft.prototype._extAdd=function(e){var r=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),a=this.z.redMul(e.z.redAdd(e.z)),d=n.redSub(r),v=a.redSub(i),y=a.redAdd(i),x=n.redAdd(r),B=d.redMul(v),C=y.redMul(x),D=d.redMul(x),F=v.redMul(y);return this.curve.point(B,C,F,D)};ft.prototype._projAdd=function(e){var r=this.z.redMul(e.z),n=r.redSqr(),i=this.x.redMul(e.x),a=this.y.redMul(e.y),d=this.curve.d.redMul(i).redMul(a),v=n.redSub(d),y=n.redAdd(d),x=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(a),B=r.redMul(v).redMul(x),C,D;return this.curve.twisted?(C=r.redMul(y).redMul(a.redSub(this.curve._mulA(i))),D=v.redMul(y)):(C=r.redMul(y).redMul(a.redSub(i)),D=this.curve._mulC(v).redMul(y)),this.curve.point(B,C,D)};ft.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};ft.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};ft.prototype.mulAdd=function(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,!1)};ft.prototype.jmulAdd=function(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,!0)};ft.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this};ft.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};ft.prototype.getX=function(){return this.normalize(),this.x.fromRed()};ft.prototype.getY=function(){return this.normalize(),this.y.fromRed()};ft.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};ft.prototype.eqXToP=function(e){var r=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var n=e.clone(),i=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),this.x.cmp(r)===0)return!0}};ft.prototype.toP=ft.prototype.normalize;ft.prototype.mixedAdd=ft.prototype.add});var td=V(fv=>{"use strict";var TL=A(S()),k0=fv;k0.base=Ls();k0.short=tv();k0.mont=iv();k0.edwards=sv()});var wn=V(it=>{"use strict";var _L=A(S()),z7=li(),K7=tr();it.inherits=K7;function Z7(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function V7(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var n=0,i=0;i<t.length;i++){var a=t.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=a&63|128):Z7(t,i)?(a=65536+((a&1023)<<10)+(t.charCodeAt(++i)&1023),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=a&63|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=a&63|128)}else for(i=0;i<t.length;i++)r[i]=t[i]|0;return r}it.toArray=V7;function j7(t){for(var e="",r=0;r<t.length;r++)e+=uv(t[r].toString(16));return e}it.toHex=j7;function cv(t){var e=t>>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}it.htonl=cv;function Q7(t,e){for(var r="",n=0;n<t.length;n++){var i=t[n];e==="little"&&(i=cv(i)),r+=lv(i.toString(16))}return r}it.toHex32=Q7;function uv(t){return t.length===1?"0"+t:t}it.zero2=uv;function lv(t){return t.length===7?"0"+t:t.length===6?"00"+t:t.length===5?"000"+t:t.length===4?"0000"+t:t.length===3?"00000"+t:t.length===2?"000000"+t:t.length===1?"0000000"+t:t}it.zero8=lv;function W7(t,e,r,n){var i=r-e;z7(i%4===0);for(var a=new Array(i/4),d=0,v=e;d<a.length;d++,v+=4){var y;n==="big"?y=t[v]<<24|t[v+1]<<16|t[v+2]<<8|t[v+3]:y=t[v+3]<<24|t[v+2]<<16|t[v+1]<<8|t[v],a[d]=y>>>0}return a}it.join32=W7;function Y7(t,e){for(var r=new Array(t.length*4),n=0,i=0;n<t.length;n++,i+=4){var a=t[n];e==="big"?(r[i]=a>>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=a&255):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=a&255)}return r}it.split32=Y7;function $7(t,e){return t>>>e|t<<32-e}it.rotr32=$7;function ew(t,e){return t<<e|t>>>32-e}it.rotl32=ew;function tw(t,e){return t+e>>>0}it.sum32=tw;function rw(t,e,r){return t+e+r>>>0}it.sum32_3=rw;function nw(t,e,r,n){return t+e+r+n>>>0}it.sum32_4=nw;function iw(t,e,r,n,i){return t+e+r+n+i>>>0}it.sum32_5=iw;function aw(t,e,r,n){var i=t[e],a=t[e+1],d=n+a>>>0,v=(d<n?1:0)+r+i;t[e]=v>>>0,t[e+1]=d}it.sum64=aw;function ow(t,e,r,n){var i=e+n>>>0,a=(i<e?1:0)+t+r;return a>>>0}it.sum64_hi=ow;function sw(t,e,r,n){var i=e+n;return i>>>0}it.sum64_lo=sw;function fw(t,e,r,n,i,a,d,v){var y=0,x=e;x=x+n>>>0,y+=x<e?1:0,x=x+a>>>0,y+=x<a?1:0,x=x+v>>>0,y+=x<v?1:0;var B=t+r+i+d+y;return B>>>0}it.sum64_4_hi=fw;function cw(t,e,r,n,i,a,d,v){var y=e+n+a+v;return y>>>0}it.sum64_4_lo=cw;function uw(t,e,r,n,i,a,d,v,y,x){var B=0,C=e;C=C+n>>>0,B+=C<e?1:0,C=C+a>>>0,B+=C<a?1:0,C=C+v>>>0,B+=C<v?1:0,C=C+x>>>0,B+=C<x?1:0;var D=t+r+i+d+y+B;return D>>>0}it.sum64_5_hi=uw;function lw(t,e,r,n,i,a,d,v,y,x){var B=e+n+a+v+x;return B>>>0}it.sum64_5_lo=lw;function dw(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}it.rotr64_hi=dw;function hw(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}it.rotr64_lo=hw;function pw(t,e,r){return t>>>r}it.shr64_hi=pw;function bw(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}it.shr64_lo=bw});var Eo=V(hv=>{"use strict";var CL=A(S()),dv=wn(),gw=li();function J0(){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}hv.BlockHash=J0;J0.prototype.update=function(e,r){if(e=dv.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=dv.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this};J0.prototype.digest=function(e){return this.update(this._pad()),gw(this.pending===null),this._digest(e)};J0.prototype._pad=function(){var e=this.pendingTotal,r=this._delta8,n=r-(e+this.padLength)%r,i=new Array(n+this.padLength);i[0]=128;for(var a=1;a<n;a++)i[a]=0;if(e<<=3,this.endian==="big"){for(var d=8;d<this.padLength;d++)i[a++]=0;i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=e>>>24&255,i[a++]=e>>>16&255,i[a++]=e>>>8&255,i[a++]=e&255}else for(i[a++]=e&255,i[a++]=e>>>8&255,i[a++]=e>>>16&255,i[a++]=e>>>24&255,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0,d=8;d<this.padLength;d++)i[a++]=0;return i}});var rd=V(xi=>{"use strict";var LL=A(S()),vw=wn(),zn=vw.rotr32;function mw(t,e,r,n){if(t===0)return pv(e,r,n);if(t===1||t===3)return gv(e,r,n);if(t===2)return bv(e,r,n)}xi.ft_1=mw;function pv(t,e,r){return t&e^~t&r}xi.ch32=pv;function bv(t,e,r){return t&e^t&r^e&r}xi.maj32=bv;function gv(t,e,r){return t^e^r}xi.p32=gv;function xw(t){return zn(t,2)^zn(t,13)^zn(t,22)}xi.s0_256=xw;function yw(t){return zn(t,6)^zn(t,11)^zn(t,25)}xi.s1_256=yw;function ww(t){return zn(t,7)^zn(t,18)^t>>>3}xi.g0_256=ww;function Aw(t){return zn(t,17)^zn(t,19)^t>>>10}xi.g1_256=Aw});var xv=V((RL,mv)=>{"use strict";var FL=A(S()),_o=wn(),Mw=Eo(),Sw=rd(),nd=_o.rotl32,Rs=_o.sum32,Tw=_o.sum32_5,Ew=Sw.ft_1,vv=Mw.BlockHash,_w=[1518500249,1859775393,2400959708,3395469782];function Kn(){if(!(this instanceof Kn))return new Kn;vv.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}_o.inherits(Kn,vv);mv.exports=Kn;Kn.blockSize=512;Kn.outSize=160;Kn.hmacStrength=80;Kn.padLength=64;Kn.prototype._update=function(e,r){for(var n=this.W,i=0;i<16;i++)n[i]=e[r+i];for(;i<n.length;i++)n[i]=nd(n[i-3]^n[i-8]^n[i-14]^n[i-16],1);var a=this.h[0],d=this.h[1],v=this.h[2],y=this.h[3],x=this.h[4];for(i=0;i<n.length;i++){var B=~~(i/20),C=Tw(nd(a,5),Ew(B,d,v,y),x,n[i],_w[B]);x=y,y=v,v=nd(d,30),d=a,a=C}this.h[0]=Rs(this.h[0],a),this.h[1]=Rs(this.h[1],d),this.h[2]=Rs(this.h[2],v),this.h[3]=Rs(this.h[3],y),this.h[4]=Rs(this.h[4],x)};Kn.prototype._digest=function(e){return e==="hex"?_o.toHex32(this.h,"big"):_o.split32(this.h,"big")}});var id=V((DL,wv)=>{"use strict";var OL=A(S()),Bo=wn(),Bw=Eo(),Co=rd(),Cw=li(),An=Bo.sum32,Pw=Bo.sum32_4,Lw=Bo.sum32_5,Rw=Co.ch32,Fw=Co.maj32,Dw=Co.s0_256,Ow=Co.s1_256,Iw=Co.g0_256,Nw=Co.g1_256,yv=Bw.BlockHash,kw=[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 Zn(){if(!(this instanceof Zn))return new Zn;yv.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=kw,this.W=new Array(64)}Bo.inherits(Zn,yv);wv.exports=Zn;Zn.blockSize=512;Zn.outSize=256;Zn.hmacStrength=192;Zn.padLength=64;Zn.prototype._update=function(e,r){for(var n=this.W,i=0;i<16;i++)n[i]=e[r+i];for(;i<n.length;i++)n[i]=Pw(Nw(n[i-2]),n[i-7],Iw(n[i-15]),n[i-16]);var a=this.h[0],d=this.h[1],v=this.h[2],y=this.h[3],x=this.h[4],B=this.h[5],C=this.h[6],D=this.h[7];for(Cw(this.k.length===n.length),i=0;i<n.length;i++){var F=Lw(D,Ow(x),Rw(x,B,C),this.k[i],n[i]),P=An(Dw(a),Fw(a,d,v));D=C,C=B,B=x,x=An(y,F),y=v,v=d,d=a,a=An(F,P)}this.h[0]=An(this.h[0],a),this.h[1]=An(this.h[1],d),this.h[2]=An(this.h[2],v),this.h[3]=An(this.h[3],y),this.h[4]=An(this.h[4],x),this.h[5]=An(this.h[5],B),this.h[6]=An(this.h[6],C),this.h[7]=An(this.h[7],D)};Zn.prototype._digest=function(e){return e==="hex"?Bo.toHex32(this.h,"big"):Bo.split32(this.h,"big")}});var Sv=V((IL,Mv)=>{"use strict";var NL=A(S()),ad=wn(),Av=id();function yi(){if(!(this instanceof yi))return new yi;Av.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}ad.inherits(yi,Av);Mv.exports=yi;yi.blockSize=512;yi.outSize=224;yi.hmacStrength=192;yi.padLength=64;yi.prototype._digest=function(e){return e==="hex"?ad.toHex32(this.h.slice(0,7),"big"):ad.split32(this.h.slice(0,7),"big")}});var fd=V((kL,Bv)=>{"use strict";var JL=A(S()),Br=wn(),Jw=Eo(),Uw=li(),Vn=Br.rotr64_hi,jn=Br.rotr64_lo,Tv=Br.shr64_hi,Ev=Br.shr64_lo,Gi=Br.sum64,od=Br.sum64_hi,sd=Br.sum64_lo,Hw=Br.sum64_4_hi,qw=Br.sum64_4_lo,Gw=Br.sum64_5_hi,Xw=Br.sum64_5_lo,_v=Jw.BlockHash,zw=[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 Mn(){if(!(this instanceof Mn))return new Mn;_v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=zw,this.W=new Array(160)}Br.inherits(Mn,_v);Bv.exports=Mn;Mn.blockSize=1024;Mn.outSize=512;Mn.hmacStrength=192;Mn.padLength=128;Mn.prototype._prepareBlock=function(e,r){for(var n=this.W,i=0;i<32;i++)n[i]=e[r+i];for(;i<n.length;i+=2){var a=r9(n[i-4],n[i-3]),d=n9(n[i-4],n[i-3]),v=n[i-14],y=n[i-13],x=e9(n[i-30],n[i-29]),B=t9(n[i-30],n[i-29]),C=n[i-32],D=n[i-31];n[i]=Hw(a,d,v,y,x,B,C,D),n[i+1]=qw(a,d,v,y,x,B,C,D)}};Mn.prototype._update=function(e,r){this._prepareBlock(e,r);var n=this.W,i=this.h[0],a=this.h[1],d=this.h[2],v=this.h[3],y=this.h[4],x=this.h[5],B=this.h[6],C=this.h[7],D=this.h[8],F=this.h[9],P=this.h[10],q=this.h[11],W=this.h[12],K=this.h[13],ne=this.h[14],$=this.h[15];Uw(this.k.length===n.length);for(var ae=0;ae<n.length;ae+=2){var ie=ne,ee=$,ce=Yw(D,F),te=$w(D,F),Y=Kw(D,F,P,q,W,K),M=Zw(D,F,P,q,W,K),s=this.k[ae],u=this.k[ae+1],l=n[ae],f=n[ae+1],c=Gw(ie,ee,ce,te,Y,M,s,u,l,f),g=Xw(ie,ee,ce,te,Y,M,s,u,l,f);ie=Qw(i,a),ee=Ww(i,a),ce=Vw(i,a,d,v,y,x),te=jw(i,a,d,v,y,x);var m=od(ie,ee,ce,te),h=sd(ie,ee,ce,te);ne=W,$=K,W=P,K=q,P=D,q=F,D=od(B,C,c,g),F=sd(C,C,c,g),B=y,C=x,y=d,x=v,d=i,v=a,i=od(c,g,m,h),a=sd(c,g,m,h)}Gi(this.h,0,i,a),Gi(this.h,2,d,v),Gi(this.h,4,y,x),Gi(this.h,6,B,C),Gi(this.h,8,D,F),Gi(this.h,10,P,q),Gi(this.h,12,W,K),Gi(this.h,14,ne,$)};Mn.prototype._digest=function(e){return e==="hex"?Br.toHex32(this.h,"big"):Br.split32(this.h,"big")};function Kw(t,e,r,n,i){var a=t&r^~t&i;return a<0&&(a+=4294967296),a}function Zw(t,e,r,n,i,a){var d=e&n^~e&a;return d<0&&(d+=4294967296),d}function Vw(t,e,r,n,i){var a=t&r^t&i^r&i;return a<0&&(a+=4294967296),a}function jw(t,e,r,n,i,a){var d=e&n^e&a^n&a;return d<0&&(d+=4294967296),d}function Qw(t,e){var r=Vn(t,e,28),n=Vn(e,t,2),i=Vn(e,t,7),a=r^n^i;return a<0&&(a+=4294967296),a}function Ww(t,e){var r=jn(t,e,28),n=jn(e,t,2),i=jn(e,t,7),a=r^n^i;return a<0&&(a+=4294967296),a}function Yw(t,e){var r=Vn(t,e,14),n=Vn(t,e,18),i=Vn(e,t,9),a=r^n^i;return a<0&&(a+=4294967296),a}function $w(t,e){var r=jn(t,e,14),n=jn(t,e,18),i=jn(e,t,9),a=r^n^i;return a<0&&(a+=4294967296),a}function e9(t,e){var r=Vn(t,e,1),n=Vn(t,e,8),i=Tv(t,e,7),a=r^n^i;return a<0&&(a+=4294967296),a}function t9(t,e){var r=jn(t,e,1),n=jn(t,e,8),i=Ev(t,e,7),a=r^n^i;return a<0&&(a+=4294967296),a}function r9(t,e){var r=Vn(t,e,19),n=Vn(e,t,29),i=Tv(t,e,6),a=r^n^i;return a<0&&(a+=4294967296),a}function n9(t,e){var r=jn(t,e,19),n=jn(e,t,29),i=Ev(t,e,6),a=r^n^i;return a<0&&(a+=4294967296),a}});var Lv=V((UL,Pv)=>{"use strict";var HL=A(S()),cd=wn(),Cv=fd();function wi(){if(!(this instanceof wi))return new wi;Cv.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}cd.inherits(wi,Cv);Pv.exports=wi;wi.blockSize=1024;wi.outSize=384;wi.hmacStrength=192;wi.padLength=128;wi.prototype._digest=function(e){return e==="hex"?cd.toHex32(this.h.slice(0,12),"big"):cd.split32(this.h.slice(0,12),"big")}});var Rv=V(Po=>{"use strict";var GL=A(S());Po.sha1=xv();Po.sha224=Sv();Po.sha256=id();Po.sha384=Lv();Po.sha512=fd()});var kv=V(Nv=>{"use strict";var zL=A(S()),Sa=wn(),i9=Eo(),U0=Sa.rotl32,Fv=Sa.sum32,Fs=Sa.sum32_3,Dv=Sa.sum32_4,Iv=i9.BlockHash;function Qn(){if(!(this instanceof Qn))return new Qn;Iv.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Sa.inherits(Qn,Iv);Nv.ripemd160=Qn;Qn.blockSize=512;Qn.outSize=160;Qn.hmacStrength=192;Qn.padLength=64;Qn.prototype._update=function(e,r){for(var n=this.h[0],i=this.h[1],a=this.h[2],d=this.h[3],v=this.h[4],y=n,x=i,B=a,C=d,D=v,F=0;F<80;F++){var P=Fv(U0(Dv(n,Ov(F,i,a,d),e[s9[F]+r],a9(F)),c9[F]),v);n=v,v=d,d=U0(a,10),a=i,i=P,P=Fv(U0(Dv(y,Ov(79-F,x,B,C),e[f9[F]+r],o9(F)),u9[F]),D),y=D,D=C,C=U0(B,10),B=x,x=P}P=Fs(this.h[1],a,C),this.h[1]=Fs(this.h[2],d,D),this.h[2]=Fs(this.h[3],v,y),this.h[3]=Fs(this.h[4],n,x),this.h[4]=Fs(this.h[0],i,B),this.h[0]=P};Qn.prototype._digest=function(e){return e==="hex"?Sa.toHex32(this.h,"little"):Sa.split32(this.h,"little")};function Ov(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function a9(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function o9(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}var s9=[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],f9=[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],c9=[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],u9=[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]});var Uv=V((KL,Jv)=>{"use strict";var ZL=A(S()),l9=wn(),d9=li();function Lo(t,e,r){if(!(this instanceof Lo))return new Lo(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(l9.toArray(e,r))}Jv.exports=Lo;Lo.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),d9(e.length<=this.blockSize);for(var r=e.length;r<this.blockSize;r++)e.push(0);for(r=0;r<e.length;r++)e[r]^=54;for(this.inner=new this.Hash().update(e),r=0;r<e.length;r++)e[r]^=106;this.outer=new this.Hash().update(e)};Lo.prototype.update=function(e,r){return this.inner.update(e,r),this};Lo.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}});var Ds=V(Hv=>{var jL=A(S()),ir=Hv;ir.utils=wn();ir.common=Eo();ir.sha=Rv();ir.ripemd=kv();ir.hmac=Uv();ir.sha1=ir.sha.sha1;ir.sha256=ir.sha.sha256;ir.sha224=ir.sha.sha224;ir.sha384=ir.sha.sha384;ir.sha512=ir.sha.sha512;ir.ripemd160=ir.ripemd.ripemd160});var Gv=V((QL,qv)=>{var WL=A(S());qv.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"]]}}});var H0=V(Kv=>{"use strict";var $L=A(S()),ld=Kv,Xi=Ds(),ud=td(),h9=Or(),Xv=h9.assert;function zv(t){t.type==="short"?this.curve=new ud.short(t):t.type==="edwards"?this.curve=new ud.edwards(t):this.curve=new ud.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,Xv(this.g.validate(),"Invalid curve"),Xv(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}ld.PresetCurve=zv;function zi(t,e){Object.defineProperty(ld,t,{configurable:!0,enumerable:!0,get:function(){var r=new zv(e);return Object.defineProperty(ld,t,{configurable:!0,enumerable:!0,value:r}),r}})}zi("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Xi.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});zi("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Xi.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});zi("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Xi.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});zi("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Xi.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]});zi("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Xi.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]});zi("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Xi.sha256,gRed:!1,g:["9"]});zi("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Xi.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var dd;try{dd=Gv()}catch{dd=void 0}zi("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:Xi.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",dd]})});var jv=V((eR,Vv)=>{"use strict";var tR=A(S()),p9=Ds(),Ta=jl(),Zv=li();function Ki(t){if(!(this instanceof Ki))return new Ki(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Ta.toArray(t.entropy,t.entropyEnc||"hex"),r=Ta.toArray(t.nonce,t.nonceEnc||"hex"),n=Ta.toArray(t.pers,t.persEnc||"hex");Zv(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}Vv.exports=Ki;Ki.prototype._init=function(e,r,n){var i=e.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a<this.V.length;a++)this.K[a]=0,this.V[a]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656};Ki.prototype._hmac=function(){return new p9.hmac(this.hash,this.K)};Ki.prototype._update=function(e){var r=this._hmac().update(this.V).update([0]);e&&(r=r.update(e)),this.K=r.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())};Ki.prototype.reseed=function(e,r,n,i){typeof r!="string"&&(i=n,n=r,r=null),e=Ta.toArray(e,r),n=Ta.toArray(n,i),Zv(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};Ki.prototype.generate=function(e,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=Ta.toArray(n,i||"hex"),this._update(n));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var d=a.slice(0,e);return this._update(n),this._reseed++,Ta.encode(d,r)}});var Wv=V((rR,Qv)=>{"use strict";var nR=A(S()),b9=Gn(),g9=Or(),hd=g9.assert;function fr(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}Qv.exports=fr;fr.fromPublic=function(e,r,n){return r instanceof fr?r:new fr(e,{pub:r,pubEnc:n})};fr.fromPrivate=function(e,r,n){return r instanceof fr?r:new fr(e,{priv:r,privEnc:n})};fr.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.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"}};fr.prototype.getPublic=function(e,r){return typeof e=="string"&&(r=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),r?this.pub.encode(r,e):this.pub};fr.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};fr.prototype._importPrivate=function(e,r){this.priv=new b9(e,r||16),this.priv=this.priv.umod(this.ec.curve.n)};fr.prototype._importPublic=function(e,r){if(e.x||e.y){this.ec.curve.type==="mont"?hd(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&hd(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,r)};fr.prototype.derive=function(e){return e.validate()||hd(e.validate(),"public point not validated"),e.mul(this.priv).getX()};fr.prototype.sign=function(e,r,n){return this.ec.sign(e,this,r,n)};fr.prototype.verify=function(e,r,n){return this.ec.verify(e,r,this,void 0,n)};fr.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}});var em=V((iR,$v)=>{"use strict";var aR=A(S()),q0=Gn(),gd=Or(),v9=gd.assert;function G0(t,e){if(t instanceof G0)return t;this._importDER(t,e)||(v9(t.r&&t.s,"Signature without r or s"),this.r=new q0(t.r,16),this.s=new q0(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}$v.exports=G0;function m9(){this.place=0}function pd(t,e){var r=t[e.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4||t[e.place]===0)return!1;for(var i=0,a=0,d=e.place;a<n;a++,d++)i<<=8,i|=t[d],i>>>=0;return i<=127?!1:(e.place=d,i)}function Yv(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e<r;)e++;return e===0?t:t.slice(e)}G0.prototype._importDER=function(e,r){e=gd.toArray(e,r);var n=new m9;if(e[n.place++]!==48)return!1;var i=pd(e,n);if(i===!1||i+n.place!==e.length||e[n.place++]!==2)return!1;var a=pd(e,n);if(a===!1||e[n.place]&128)return!1;var d=e.slice(n.place,a+n.place);if(n.place+=a,e[n.place++]!==2)return!1;var v=pd(e,n);if(v===!1||e.length!==v+n.place||e[n.place]&128)return!1;var y=e.slice(n.place,v+n.place);if(d[0]===0)if(d[1]&128)d=d.slice(1);else return!1;if(y[0]===0)if(y[1]&128)y=y.slice(1);else return!1;return this.r=new q0(d),this.s=new q0(y),this.recoveryParam=null,!0};function bd(t,e){if(e<128){t.push(e);return}var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}G0.prototype.toDER=function(e){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=Yv(r),n=Yv(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];bd(i,r.length),i=i.concat(r),i.push(2),bd(i,n.length);var a=i.concat(n),d=[48];return bd(d,a.length),d=d.concat(a),gd.encode(d,e)}});var nm=V((oR,rm)=>{"use strict";var sR=A(S()),Sn=Gn(),tm=jv(),x9=Or(),vd=H0(),y9=$l(),Ea=x9.assert,md=Wv(),X0=em();function rn(t){if(!(this instanceof rn))return new rn(t);typeof t=="string"&&(Ea(Object.prototype.hasOwnProperty.call(vd,t),"Unknown curve "+t),t=vd[t]),t instanceof vd.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}rm.exports=rn;rn.prototype.keyPair=function(e){return new md(this,e)};rn.prototype.keyFromPrivate=function(e,r){return md.fromPrivate(this,e,r)};rn.prototype.keyFromPublic=function(e,r){return md.fromPublic(this,e,r)};rn.prototype.genKeyPair=function(e){e||(e={});for(var r=new tm({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||y9(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new Sn(2));;){var a=new Sn(r.generate(n));if(!(a.cmp(i)>0))return a.iaddn(1),this.keyFromPrivate(a)}};rn.prototype._truncateToN=function(e,r,n){var i;if(Sn.isBN(e)||typeof e=="number")e=new Sn(e,16),i=e.byteLength();else if(typeof e=="object")i=e.length,e=new Sn(e,16);else{var a=e.toString();i=a.length+1>>>1,e=new Sn(a,16)}typeof n!="number"&&(n=i*8);var d=n-this.n.bitLength();return d>0&&(e=e.ushrn(d)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e};rn.prototype.sign=function(e,r,n,i){if(typeof n=="object"&&(i=n,n=null),i||(i={}),typeof e!="string"&&typeof e!="number"&&!Sn.isBN(e)){Ea(typeof e=="object"&&e&&typeof e.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),Ea(e.length>>>0===e.length);for(var a=0;a<e.length;a++)Ea((e[a]&255)===e[a])}r=this.keyFromPrivate(r,n),e=this._truncateToN(e,!1,i.msgBitLength),Ea(!e.isNeg(),"Can not sign a negative message");var d=this.n.byteLength(),v=r.getPrivate().toArray("be",d),y=e.toArray("be",d);Ea(new Sn(y).eq(e),"Can not sign message");for(var x=new tm({hash:this.hash,entropy:v,nonce:y,pers:i.pers,persEnc:i.persEnc||"utf8"}),B=this.n.sub(new Sn(1)),C=0;;C++){var D=i.k?i.k(C):new Sn(x.generate(this.n.byteLength()));if(D=this._truncateToN(D,!0),!(D.cmpn(1)<=0||D.cmp(B)>=0)){var F=this.g.mul(D);if(!F.isInfinity()){var P=F.getX(),q=P.umod(this.n);if(q.cmpn(0)!==0){var W=D.invm(this.n).mul(q.mul(r.getPrivate()).iadd(e));if(W=W.umod(this.n),W.cmpn(0)!==0){var K=(F.getY().isOdd()?1:0)|(P.cmp(q)!==0?2:0);return i.canonical&&W.cmp(this.nh)>0&&(W=this.n.sub(W),K^=1),new X0({r:q,s:W,recoveryParam:K})}}}}}};rn.prototype.verify=function(e,r,n,i,a){a||(a={}),e=this._truncateToN(e,!1,a.msgBitLength),n=this.keyFromPublic(n,i),r=new X0(r,"hex");var d=r.r,v=r.s;if(d.cmpn(1)<0||d.cmp(this.n)>=0||v.cmpn(1)<0||v.cmp(this.n)>=0)return!1;var y=v.invm(this.n),x=y.mul(e).umod(this.n),B=y.mul(d).umod(this.n),C;return this.curve._maxwellTrick?(C=this.g.jmulAdd(x,n.getPublic(),B),C.isInfinity()?!1:C.eqXToP(d)):(C=this.g.mulAdd(x,n.getPublic(),B),C.isInfinity()?!1:C.getX().umod(this.n).cmp(d)===0)};rn.prototype.recoverPubKey=function(t,e,r,n){Ea((3&r)===r,"The recovery param is more than two bits"),e=new X0(e,n);var i=this.n,a=new Sn(t),d=e.r,v=e.s,y=r&1,x=r>>1;if(d.cmp(this.curve.p.umod(this.curve.n))>=0&&x)throw new Error("Unable to find sencond key candinate");x?d=this.curve.pointFromX(d.add(this.curve.n),y):d=this.curve.pointFromX(d,y);var B=e.r.invm(i),C=i.sub(a).mul(B).umod(i),D=v.mul(B).umod(i);return this.g.mulAdd(C,d,D)};rn.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new X0(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(t,e,i)}catch{continue}if(a.eq(r))return i}throw new Error("Unable to find valid recovery factor")}});var sm=V((fR,om)=>{"use strict";var cR=A(S()),Os=Or(),am=Os.assert,im=Os.parseBytes,Ro=Os.cachedProperty;function Gt(t,e){this.eddsa=t,this._secret=im(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=im(e.pub)}Gt.fromPublic=function(e,r){return r instanceof Gt?r:new Gt(e,{pub:r})};Gt.fromSecret=function(e,r){return r instanceof Gt?r:new Gt(e,{secret:r})};Gt.prototype.secret=function(){return this._secret};Ro(Gt,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});Ro(Gt,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});Ro(Gt,"privBytes",function(){var e=this.eddsa,r=this.hash(),n=e.encodingLength-1,i=r.slice(0,e.encodingLength);return i[0]&=248,i[n]&=127,i[n]|=64,i});Ro(Gt,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});Ro(Gt,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});Ro(Gt,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Gt.prototype.sign=function(e){return am(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};Gt.prototype.verify=function(e,r){return this.eddsa.verify(e,r,this)};Gt.prototype.getSecret=function(e){return am(this._secret,"KeyPair is public only"),Os.encode(this.secret(),e)};Gt.prototype.getPublic=function(e){return Os.encode(this.pubBytes(),e)};om.exports=Gt});var um=V((uR,cm)=>{"use strict";var lR=A(S()),w9=Gn(),z0=Or(),fm=z0.assert,K0=z0.cachedProperty,A9=z0.parseBytes;function _a(t,e){this.eddsa=t,typeof e!="object"&&(e=A9(e)),Array.isArray(e)&&(fm(e.length===t.encodingLength*2,"Signature has invalid size"),e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),fm(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof w9&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}K0(_a,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});K0(_a,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});K0(_a,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});K0(_a,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});_a.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};_a.prototype.toHex=function(){return z0.encode(this.toBytes(),"hex").toUpperCase()};cm.exports=_a});var bm=V((dR,pm)=>{"use strict";var hR=A(S()),M9=Ds(),S9=H0(),Fo=Or(),T9=Fo.assert,dm=Fo.parseBytes,hm=sm(),lm=um();function Cr(t){if(T9(t==="ed25519","only tested with ed25519 so far"),!(this instanceof Cr))return new Cr(t);t=S9[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=M9.sha512}pm.exports=Cr;Cr.prototype.sign=function(e,r){e=dm(e);var n=this.keyFromSecret(r),i=this.hashInt(n.messagePrefix(),e),a=this.g.mul(i),d=this.encodePoint(a),v=this.hashInt(d,n.pubBytes(),e).mul(n.priv()),y=i.add(v).umod(this.curve.n);return this.makeSignature({R:a,S:y,Rencoded:d})};Cr.prototype.verify=function(e,r,n){if(e=dm(e),r=this.makeSignature(r),r.S().gte(r.eddsa.curve.n)||r.S().isNeg())return!1;var i=this.keyFromPublic(n),a=this.hashInt(r.Rencoded(),i.pubBytes(),e),d=this.g.mul(r.S()),v=r.R().add(i.pub().mul(a));return v.eq(d)};Cr.prototype.hashInt=function(){for(var e=this.hash(),r=0;r<arguments.length;r++)e.update(arguments[r]);return Fo.intFromLE(e.digest()).umod(this.curve.n)};Cr.prototype.keyFromPublic=function(e){return hm.fromPublic(this,e)};Cr.prototype.keyFromSecret=function(e){return hm.fromSecret(this,e)};Cr.prototype.makeSignature=function(e){return e instanceof lm?e:new lm(this,e)};Cr.prototype.encodePoint=function(e){var r=e.getY().toArray("le",this.encodingLength);return r[this.encodingLength-1]|=e.getX().isOdd()?128:0,r};Cr.prototype.decodePoint=function(e){e=Fo.parseBytes(e);var r=e.length-1,n=e.slice(0,r).concat(e[r]&-129),i=(e[r]&128)!==0,a=Fo.intFromLE(n);return this.curve.pointFromY(a,i)};Cr.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)};Cr.prototype.decodeInt=function(e){return Fo.intFromLE(e)};Cr.prototype.isPoint=function(e){return e instanceof this.pointClass}});var xd=V(gm=>{"use strict";var bR=A(S()),Ba=gm;Ba.version=Zg().version;Ba.utils=Or();Ba.rand=$l();Ba.curve=td();Ba.curves=H0();Ba.ec=nm();Ba.eddsa=bm()});var vm=V(Do=>{"use strict";var vR=A(S()),E9=Do&&Do.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Do,"__esModule",{value:!0});Do.EC=void 0;var _9=E9(xd()),B9=_9.default.ec;Do.EC=B9});var mm=V(Z0=>{"use strict";var xR=A(S());Object.defineProperty(Z0,"__esModule",{value:!0});Z0.version=void 0;Z0.version="signing-key/5.8.0"});var Ns=V(Zi=>{"use strict";var wR=A(S());Object.defineProperty(Zi,"__esModule",{value:!0});Zi.computePublicKey=Zi.recoverPublicKey=Zi.SigningKey=void 0;var C9=vm(),Lt=nt(),Is=$r(),P9=Ct(),L9=mm(),wd=new P9.Logger(L9.version),yd=null;function Wn(){return yd||(yd=new C9.EC("secp256k1")),yd}var xm=function(){function t(e){(0,Is.defineReadOnly)(this,"curve","secp256k1"),(0,Is.defineReadOnly)(this,"privateKey",(0,Lt.hexlify)(e)),(0,Lt.hexDataLength)(this.privateKey)!==32&&wd.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var r=Wn().keyFromPrivate((0,Lt.arrayify)(this.privateKey));(0,Is.defineReadOnly)(this,"publicKey","0x"+r.getPublic(!1,"hex")),(0,Is.defineReadOnly)(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),(0,Is.defineReadOnly)(this,"_isSigningKey",!0)}return t.prototype._addPoint=function(e){var r=Wn().keyFromPublic((0,Lt.arrayify)(this.publicKey)),n=Wn().keyFromPublic((0,Lt.arrayify)(e));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")},t.prototype.signDigest=function(e){var r=Wn().keyFromPrivate((0,Lt.arrayify)(this.privateKey)),n=(0,Lt.arrayify)(e);n.length!==32&&wd.throwArgumentError("bad digest length","digest",e);var i=r.sign(n,{canonical:!0});return(0,Lt.splitSignature)({recoveryParam:i.recoveryParam,r:(0,Lt.hexZeroPad)("0x"+i.r.toString(16),32),s:(0,Lt.hexZeroPad)("0x"+i.s.toString(16),32)})},t.prototype.computeSharedSecret=function(e){var r=Wn().keyFromPrivate((0,Lt.arrayify)(this.privateKey)),n=Wn().keyFromPublic((0,Lt.arrayify)(ym(e)));return(0,Lt.hexZeroPad)("0x"+r.derive(n.getPublic()).toString(16),32)},t.isSigningKey=function(e){return!!(e&&e._isSigningKey)},t}();Zi.SigningKey=xm;function R9(t,e){var r=(0,Lt.splitSignature)(e),n={r:(0,Lt.arrayify)(r.r),s:(0,Lt.arrayify)(r.s)};return"0x"+Wn().recoverPubKey((0,Lt.arrayify)(t),n,r.recoveryParam).encode("hex",!1)}Zi.recoverPublicKey=R9;function ym(t,e){var r=(0,Lt.arrayify)(t);if(r.length===32){var n=new xm(r);return e?"0x"+Wn().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return e?(0,Lt.hexlify)(r):"0x"+Wn().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return e?"0x"+Wn().keyFromPublic(r).getPublic(!0,"hex"):(0,Lt.hexlify)(r)}return wd.throwArgumentError("invalid public or private key","key","[REDACTED]")}Zi.computePublicKey=ym});var wm=V(V0=>{"use strict";var MR=A(S());Object.defineProperty(V0,"__esModule",{value:!0});V0.version=void 0;V0.version="transactions/5.8.0"});var Js=V(Mt=>{"use strict";var TR=A(S()),F9=Mt&&Mt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),D9=Mt&&Mt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),O9=Mt&&Mt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&F9(e,t,r);return D9(e,t),e};Object.defineProperty(Mt,"__esModule",{value:!0});Mt.parse=Mt.serialize=Mt.accessListify=Mt.recoverAddress=Mt.computeAddress=Mt.TransactionTypes=void 0;var ks=ya(),Ca=ba(),Ge=nt(),I9=Bl(),Oo=Nn(),N9=$r(),Vi=O9(Hl()),Am=Ns(),Md=Ct(),k9=wm(),ur=new Md.Logger(k9.version),J9;(function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"})(J9=Mt.TransactionTypes||(Mt.TransactionTypes={}));function Sd(t){return t==="0x"?null:(0,ks.getAddress)(t)}function cr(t){return t==="0x"?I9.Zero:Ca.BigNumber.from(t)}var U9=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],H9={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function Mm(t){var e=(0,Am.computePublicKey)(t);return(0,ks.getAddress)((0,Ge.hexDataSlice)((0,Oo.keccak256)((0,Ge.hexDataSlice)(e,1)),12))}Mt.computeAddress=Mm;function Td(t,e){return Mm((0,Am.recoverPublicKey)((0,Ge.arrayify)(t),e))}Mt.recoverAddress=Td;function Ir(t,e){var r=(0,Ge.stripZeros)(Ca.BigNumber.from(t).toHexString());return r.length>32&&ur.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function Ad(t,e){return{address:(0,ks.getAddress)(t),storageKeys:(e||[]).map(function(r,n){return(0,Ge.hexDataLength)(r)!==32&&ur.throwArgumentError("invalid access list storageKey","accessList["+t+":"+n+"]",r),r.toLowerCase()})}}function j0(t){if(Array.isArray(t))return t.map(function(r,n){return Array.isArray(r)?(r.length>2&&ur.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value["+n+"]",r),Ad(r[0],r[1])):Ad(r.address,r.storageKeys)});var e=Object.keys(t).map(function(r){var n=t[r].reduce(function(i,a){return i[a]=!0,i},{});return Ad(r,Object.keys(n).sort())});return e.sort(function(r,n){return r.address.localeCompare(n.address)}),e}Mt.accessListify=j0;function Sm(t){return j0(t).map(function(e){return[e.address,e.storageKeys]})}function Tm(t,e){if(t.gasPrice!=null){var r=Ca.BigNumber.from(t.gasPrice),n=Ca.BigNumber.from(t.maxFeePerGas||0);r.eq(n)||ur.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:n})}var i=[Ir(t.chainId||0,"chainId"),Ir(t.nonce||0,"nonce"),Ir(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Ir(t.maxFeePerGas||0,"maxFeePerGas"),Ir(t.gasLimit||0,"gasLimit"),t.to!=null?(0,ks.getAddress)(t.to):"0x",Ir(t.value||0,"value"),t.data||"0x",Sm(t.accessList||[])];if(e){var a=(0,Ge.splitSignature)(e);i.push(Ir(a.recoveryParam,"recoveryParam")),i.push((0,Ge.stripZeros)(a.r)),i.push((0,Ge.stripZeros)(a.s))}return(0,Ge.hexConcat)(["0x02",Vi.encode(i)])}function Em(t,e){var r=[Ir(t.chainId||0,"chainId"),Ir(t.nonce||0,"nonce"),Ir(t.gasPrice||0,"gasPrice"),Ir(t.gasLimit||0,"gasLimit"),t.to!=null?(0,ks.getAddress)(t.to):"0x",Ir(t.value||0,"value"),t.data||"0x",Sm(t.accessList||[])];if(e){var n=(0,Ge.splitSignature)(e);r.push(Ir(n.recoveryParam,"recoveryParam")),r.push((0,Ge.stripZeros)(n.r)),r.push((0,Ge.stripZeros)(n.s))}return(0,Ge.hexConcat)(["0x01",Vi.encode(r)])}function q9(t,e){(0,N9.checkProperties)(t,H9);var r=[];U9.forEach(function(d){var v=t[d.name]||[],y={};d.numeric&&(y.hexPad="left"),v=(0,Ge.arrayify)((0,Ge.hexlify)(v,y)),d.length&&v.length!==d.length&&v.length>0&&ur.throwArgumentError("invalid length for "+d.name,"transaction:"+d.name,v),d.maxLength&&(v=(0,Ge.stripZeros)(v),v.length>d.maxLength&&ur.throwArgumentError("invalid length for "+d.name,"transaction:"+d.name,v)),r.push((0,Ge.hexlify)(v))});var n=0;if(t.chainId!=null?(n=t.chainId,typeof n!="number"&&ur.throwArgumentError("invalid transaction.chainId","transaction",t)):e&&!(0,Ge.isBytesLike)(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(r.push((0,Ge.hexlify)(n)),r.push("0x"),r.push("0x")),!e)return Vi.encode(r);var i=(0,Ge.splitSignature)(e),a=27+i.recoveryParam;return n!==0?(r.pop(),r.pop(),r.pop(),a+=n*2+8,i.v>28&&i.v!==a&&ur.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==a&&ur.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push((0,Ge.hexlify)(a)),r.push((0,Ge.stripZeros)((0,Ge.arrayify)(i.r))),r.push((0,Ge.stripZeros)((0,Ge.arrayify)(i.s))),Vi.encode(r)}function G9(t,e){if(t.type==null||t.type===0)return t.accessList!=null&&ur.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),q9(t,e);switch(t.type){case 1:return Em(t,e);case 2:return Tm(t,e);default:break}return ur.throwError("unsupported transaction type: "+t.type,Md.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})}Mt.serialize=G9;function _m(t,e,r){try{var n=cr(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");t.v=n}catch{ur.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=(0,Ge.hexZeroPad)(e[1],32),t.s=(0,Ge.hexZeroPad)(e[2],32);try{var i=(0,Oo.keccak256)(r(t));t.from=Td(i,{r:t.r,s:t.s,recoveryParam:t.v})}catch{}}function X9(t){var e=Vi.decode(t.slice(1));e.length!==9&&e.length!==12&&ur.throwArgumentError("invalid component count for transaction type: 2","payload",(0,Ge.hexlify)(t));var r=cr(e[2]),n=cr(e[3]),i={type:2,chainId:cr(e[0]).toNumber(),nonce:cr(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:cr(e[4]),to:Sd(e[5]),value:cr(e[6]),data:e[7],accessList:j0(e[8])};return e.length===9||(i.hash=(0,Oo.keccak256)(t),_m(i,e.slice(9),Tm)),i}function z9(t){var e=Vi.decode(t.slice(1));e.length!==8&&e.length!==11&&ur.throwArgumentError("invalid component count for transaction type: 1","payload",(0,Ge.hexlify)(t));var r={type:1,chainId:cr(e[0]).toNumber(),nonce:cr(e[1]).toNumber(),gasPrice:cr(e[2]),gasLimit:cr(e[3]),to:Sd(e[4]),value:cr(e[5]),data:e[6],accessList:j0(e[7])};return e.length===8||(r.hash=(0,Oo.keccak256)(t),_m(r,e.slice(8),Em)),r}function K9(t){var e=Vi.decode(t);e.length!==9&&e.length!==6&&ur.throwArgumentError("invalid raw transaction","rawTransaction",t);var r={nonce:cr(e[0]).toNumber(),gasPrice:cr(e[1]),gasLimit:cr(e[2]),to:Sd(e[3]),value:cr(e[4]),data:e[5],chainId:0};if(e.length===6)return r;try{r.v=Ca.BigNumber.from(e[6]).toNumber()}catch{return r}if(r.r=(0,Ge.hexZeroPad)(e[7],32),r.s=(0,Ge.hexZeroPad)(e[8],32),Ca.BigNumber.from(r.r).isZero()&&Ca.BigNumber.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);var n=r.v-27,i=e.slice(0,6);r.chainId!==0&&(i.push((0,Ge.hexlify)(r.chainId)),i.push("0x"),i.push("0x"),n-=r.chainId*2+8);var a=(0,Oo.keccak256)(Vi.encode(i));try{r.from=Td(a,{r:(0,Ge.hexlify)(r.r),s:(0,Ge.hexlify)(r.s),recoveryParam:n})}catch{}r.hash=(0,Oo.keccak256)(t)}return r.type=null,r}function Z9(t){var e=(0,Ge.arrayify)(t);if(e[0]>127)return K9(e);switch(e[0]){case 1:return z9(e);case 2:return X9(e);default:break}return ur.throwError("unsupported transaction type: "+e[0],Md.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}Mt.parse=Z9});var Bm=V(Q0=>{"use strict";var _R=A(S());Object.defineProperty(Q0,"__esModule",{value:!0});Q0.version=void 0;Q0.version="abstract-provider/5.8.0"});var Cm=V(Xt=>{"use strict";var CR=A(S()),Y0=Xt&&Xt.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),V9=Xt&&Xt.__awaiter||function(t,e,r,n){function i(a){return a instanceof r?a:new r(function(d){d(a)})}return new(r||(r=Promise))(function(a,d){function v(B){try{x(n.next(B))}catch(C){d(C)}}function y(B){try{x(n.throw(B))}catch(C){d(C)}}function x(B){B.done?a(B.value):i(B.value).then(v,y)}x((n=n.apply(t,e||[])).next())})},j9=Xt&&Xt.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,d;return d={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(x){return function(B){return y([x,B])}}function y(x){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=x[0]&2?i.return:x[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,x[1])).done)return a;switch(i=0,a&&(x=[x[0]&2,a.value]),x[0]){case 0:case 1:a=x;break;case 4:return r.label++,{value:x[1],done:!1};case 5:r.label++,i=x[1],x=[0];continue;case 7:x=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(x[0]===6||x[0]===2)){r=0;continue}if(x[0]===3&&(!a||x[1]>a[0]&&x[1]<a[3])){r.label=x[1];break}if(x[0]===6&&r.label<a[1]){r.label=a[1],a=x;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(x);break}a[2]&&r.ops.pop(),r.trys.pop();continue}x=e.call(t,r)}catch(B){x=[6,B],i=0}finally{n=a=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.Provider=Xt.TransactionOrderForkEvent=Xt.TransactionForkEvent=Xt.BlockForkEvent=Xt.ForkEvent=void 0;var Q9=ba(),W0=nt(),Ed=$r(),W9=Ct(),Y9=Bm(),Us=new W9.Logger(Y9.version),$0=function(t){Y0(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.isForkEvent=function(r){return!!(r&&r._isForkEvent)},e}(Ed.Description);Xt.ForkEvent=$0;var $9=function(t){Y0(e,t);function e(r,n){var i=this;return(0,W0.isHexString)(r,32)||Us.throwArgumentError("invalid blockHash","blockHash",r),i=t.call(this,{_isForkEvent:!0,_isBlockForkEvent:!0,expiry:n||0,blockHash:r})||this,i}return e}($0);Xt.BlockForkEvent=$9;var eA=function(t){Y0(e,t);function e(r,n){var i=this;return(0,W0.isHexString)(r,32)||Us.throwArgumentError("invalid transaction hash","hash",r),i=t.call(this,{_isForkEvent:!0,_isTransactionForkEvent:!0,expiry:n||0,hash:r})||this,i}return e}($0);Xt.TransactionForkEvent=eA;var tA=function(t){Y0(e,t);function e(r,n,i){var a=this;return(0,W0.isHexString)(r,32)||Us.throwArgumentError("invalid transaction hash","beforeHash",r),(0,W0.isHexString)(n,32)||Us.throwArgumentError("invalid transaction hash","afterHash",n),a=t.call(this,{_isForkEvent:!0,_isTransactionOrderForkEvent:!0,expiry:i||0,beforeHash:r,afterHash:n})||this,a}return e}($0);Xt.TransactionOrderForkEvent=tA;var rA=function(){function t(){var e=this.constructor;Us.checkAbstract(e,t),(0,Ed.defineReadOnly)(this,"_isProvider",!0)}return t.prototype.getFeeData=function(){return V9(this,void 0,void 0,function(){var e,r,n,i,a,d;return j9(this,function(v){switch(v.label){case 0:return[4,(0,Ed.resolveProperties)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(function(y){return null})})];case 1:return e=v.sent(),r=e.block,n=e.gasPrice,i=null,a=null,d=null,r&&r.baseFeePerGas&&(i=r.baseFeePerGas,d=Q9.BigNumber.from("1500000000"),a=r.baseFeePerGas.mul(2).add(d)),[2,{lastBaseFeePerGas:i,maxFeePerGas:a,maxPriorityFeePerGas:d,gasPrice:n}]}})})},t.prototype.addListener=function(e,r){return this.on(e,r)},t.prototype.removeListener=function(e,r){return this.off(e,r)},t.isProvider=function(e){return!!(e&&e._isProvider)},t}();Xt.Provider=rA});var Pm=V(ec=>{"use strict";var LR=A(S());Object.defineProperty(ec,"__esModule",{value:!0});ec.version=void 0;ec.version="abstract-signer/5.8.0"});var Rm=V(an=>{"use strict";var FR=A(S()),nA=an&&an.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Tn=an&&an.__awaiter||function(t,e,r,n){function i(a){return a instanceof r?a:new r(function(d){d(a)})}return new(r||(r=Promise))(function(a,d){function v(B){try{x(n.next(B))}catch(C){d(C)}}function y(B){try{x(n.throw(B))}catch(C){d(C)}}function x(B){B.done?a(B.value):i(B.value).then(v,y)}x((n=n.apply(t,e||[])).next())})},En=an&&an.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,d;return d={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(x){return function(B){return y([x,B])}}function y(x){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=x[0]&2?i.return:x[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,x[1])).done)return a;switch(i=0,a&&(x=[x[0]&2,a.value]),x[0]){case 0:case 1:a=x;break;case 4:return r.label++,{value:x[1],done:!1};case 5:r.label++,i=x[1],x=[0];continue;case 7:x=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(x[0]===6||x[0]===2)){r=0;continue}if(x[0]===3&&(!a||x[1]>a[0]&&x[1]<a[3])){r.label=x[1];break}if(x[0]===6&&r.label<a[1]){r.label=a[1],a=x;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(x);break}a[2]&&r.ops.pop(),r.trys.pop();continue}x=e.call(t,r)}catch(B){x=[6,B],i=0}finally{n=a=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}};Object.defineProperty(an,"__esModule",{value:!0});an.VoidSigner=an.Signer=void 0;var ji=$r(),Ai=Ct(),iA=Pm(),nn=new Ai.Logger(iA.version),aA=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],oA=[Ai.Logger.errors.INSUFFICIENT_FUNDS,Ai.Logger.errors.NONCE_EXPIRED,Ai.Logger.errors.REPLACEMENT_UNDERPRICED],Lm=function(){function t(){var e=this.constructor;nn.checkAbstract(e,t),(0,ji.defineReadOnly)(this,"_isSigner",!0)}return t.prototype.getBalance=function(e){return Tn(this,void 0,void 0,function(){return En(this,function(r){switch(r.label){case 0:return this._checkProvider("getBalance"),[4,this.provider.getBalance(this.getAddress(),e)];case 1:return[2,r.sent()]}})})},t.prototype.getTransactionCount=function(e){return Tn(this,void 0,void 0,function(){return En(this,function(r){switch(r.label){case 0:return this._checkProvider("getTransactionCount"),[4,this.provider.getTransactionCount(this.getAddress(),e)];case 1:return[2,r.sent()]}})})},t.prototype.estimateGas=function(e){return Tn(this,void 0,void 0,function(){var r;return En(this,function(n){switch(n.label){case 0:return this._checkProvider("estimateGas"),[4,(0,ji.resolveProperties)(this.checkTransaction(e))];case 1:return r=n.sent(),[4,this.provider.estimateGas(r)];case 2:return[2,n.sent()]}})})},t.prototype.call=function(e,r){return Tn(this,void 0,void 0,function(){var n;return En(this,function(i){switch(i.label){case 0:return this._checkProvider("call"),[4,(0,ji.resolveProperties)(this.checkTransaction(e))];case 1:return n=i.sent(),[4,this.provider.call(n,r)];case 2:return[2,i.sent()]}})})},t.prototype.sendTransaction=function(e){return Tn(this,void 0,void 0,function(){var r,n;return En(this,function(i){switch(i.label){case 0:return this._checkProvider("sendTransaction"),[4,this.populateTransaction(e)];case 1:return r=i.sent(),[4,this.signTransaction(r)];case 2:return n=i.sent(),[4,this.provider.sendTransaction(n)];case 3:return[2,i.sent()]}})})},t.prototype.getChainId=function(){return Tn(this,void 0,void 0,function(){var e;return En(this,function(r){switch(r.label){case 0:return this._checkProvider("getChainId"),[4,this.provider.getNetwork()];case 1:return e=r.sent(),[2,e.chainId]}})})},t.prototype.getGasPrice=function(){return Tn(this,void 0,void 0,function(){return En(this,function(e){switch(e.label){case 0:return this._checkProvider("getGasPrice"),[4,this.provider.getGasPrice()];case 1:return[2,e.sent()]}})})},t.prototype.getFeeData=function(){return Tn(this,void 0,void 0,function(){return En(this,function(e){switch(e.label){case 0:return this._checkProvider("getFeeData"),[4,this.provider.getFeeData()];case 1:return[2,e.sent()]}})})},t.prototype.resolveName=function(e){return Tn(this,void 0,void 0,function(){return En(this,function(r){switch(r.label){case 0:return this._checkProvider("resolveName"),[4,this.provider.resolveName(e)];case 1:return[2,r.sent()]}})})},t.prototype.checkTransaction=function(e){for(var r in e)aA.indexOf(r)===-1&&nn.throwArgumentError("invalid transaction key: "+r,"transaction",e);var n=(0,ji.shallowCopy)(e);return n.from==null?n.from=this.getAddress():n.from=Promise.all([Promise.resolve(n.from),this.getAddress()]).then(function(i){return i[0].toLowerCase()!==i[1].toLowerCase()&&nn.throwArgumentError("from address mismatch","transaction",e),i[0]}),n},t.prototype.populateTransaction=function(e){return Tn(this,void 0,void 0,function(){var r,n,i,a,d=this;return En(this,function(v){switch(v.label){case 0:return[4,(0,ji.resolveProperties)(this.checkTransaction(e))];case 1:return r=v.sent(),r.to!=null&&(r.to=Promise.resolve(r.to).then(function(y){return Tn(d,void 0,void 0,function(){var x;return En(this,function(B){switch(B.label){case 0:return y==null?[2,null]:[4,this.resolveName(y)];case 1:return x=B.sent(),x==null&&nn.throwArgumentError("provided ENS name resolves to null","tx.to",y),[2,x]}})})}),r.to.catch(function(y){})),n=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null,r.gasPrice!=null&&(r.type===2||n)?nn.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(r.type===0||r.type===1)&&n&&nn.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null?(r.type=2,[3,5]):[3,2];case 2:return r.type===0||r.type===1?(r.gasPrice==null&&(r.gasPrice=this.getGasPrice()),[3,5]):[3,3];case 3:return[4,this.getFeeData()];case 4:i=v.sent(),r.type==null?i.maxFeePerGas!=null&&i.maxPriorityFeePerGas!=null?(r.type=2,r.gasPrice!=null?(a=r.gasPrice,delete r.gasPrice,r.maxFeePerGas=a,r.maxPriorityFeePerGas=a):(r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas))):i.gasPrice!=null?(n&&nn.throwError("network does not support EIP-1559",Ai.Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=i.gasPrice),r.type=0):nn.throwError("failed to get consistent fee data",Ai.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"}):r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas)),v.label=5;case 5:return r.nonce==null&&(r.nonce=this.getTransactionCount("pending")),r.gasLimit==null&&(r.gasLimit=this.estimateGas(r).catch(function(y){if(oA.indexOf(y.code)>=0)throw y;return nn.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Ai.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:y,tx:r})})),r.chainId==null?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then(function(y){return y[1]!==0&&y[0]!==y[1]&&nn.throwArgumentError("chainId address mismatch","transaction",e),y[0]}),[4,(0,ji.resolveProperties)(r)];case 6:return[2,v.sent()]}})})},t.prototype._checkProvider=function(e){this.provider||nn.throwError("missing provider",Ai.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})},t.isSigner=function(e){return!!(e&&e._isSigner)},t}();an.Signer=Lm;var sA=function(t){nA(e,t);function e(r,n){var i=t.call(this)||this;return(0,ji.defineReadOnly)(i,"address",r),(0,ji.defineReadOnly)(i,"provider",n||null),i}return e.prototype.getAddress=function(){return Promise.resolve(this.address)},e.prototype._fail=function(r,n){return Promise.resolve().then(function(){nn.throwError(r,Ai.Logger.errors.UNSUPPORTED_OPERATION,{operation:n})})},e.prototype.signMessage=function(r){return this._fail("VoidSigner cannot sign messages","signMessage")},e.prototype.signTransaction=function(r){return this._fail("VoidSigner cannot sign transactions","signTransaction")},e.prototype._signTypedData=function(r,n,i){return this._fail("VoidSigner cannot sign typed data","signTypedData")},e.prototype.connect=function(r){return new e(this.address,r)},e}(Lm);an.VoidSigner=sA});var Dm=V(Qi=>{"use strict";var OR=A(S());Object.defineProperty(Qi,"__esModule",{value:!0});Qi.Base58=Qi.Base32=Qi.BaseX=void 0;var Fm=nt(),tc=$r(),_d=function(){function t(e){(0,tc.defineReadOnly)(this,"alphabet",e),(0,tc.defineReadOnly)(this,"base",e.length),(0,tc.defineReadOnly)(this,"_alphabetMap",{}),(0,tc.defineReadOnly)(this,"_leader",e.charAt(0));for(var r=0;r<e.length;r++)this._alphabetMap[e.charAt(r)]=r}return t.prototype.encode=function(e){var r=(0,Fm.arrayify)(e);if(r.length===0)return"";for(var n=[0],i=0;i<r.length;++i){for(var a=r[i],d=0;d<n.length;++d)a+=n[d]<<8,n[d]=a%this.base,a=a/this.base|0;for(;a>0;)n.push(a%this.base),a=a/this.base|0}for(var v="",y=0;r[y]===0&&y<r.length-1;++y)v+=this._leader;for(var x=n.length-1;x>=0;--x)v+=this.alphabet[n[x]];return v},t.prototype.decode=function(e){if(typeof e!="string")throw new TypeError("Expected String");var r=[];if(e.length===0)return new Uint8Array(r);r.push(0);for(var n=0;n<e.length;n++){var i=this._alphabetMap[e[n]];if(i===void 0)throw new Error("Non-base"+this.base+" character");for(var a=i,d=0;d<r.length;++d)a+=r[d]*this.base,r[d]=a&255,a>>=8;for(;a>0;)r.push(a&255),a>>=8}for(var v=0;e[v]===this._leader&&v<e.length-1;++v)r.push(0);return(0,Fm.arrayify)(new Uint8Array(r.reverse()))},t}();Qi.BaseX=_d;var fA=new _d("abcdefghijklmnopqrstuvwxyz234567");Qi.Base32=fA;var cA=new _d("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");Qi.Base58=cA});var Nm=V(rc=>{"use strict";var NR=A(S());Object.defineProperty(rc,"__esModule",{value:!0});rc.pbkdf2=void 0;var uA=rt("crypto"),Im=nt();function Om(t){return Buffer.from((0,Im.arrayify)(t))}function lA(t,e,r,n,i){return(0,Im.hexlify)((0,uA.pbkdf2Sync)(Om(t),Om(e),r,n,i))}rc.pbkdf2=lA});var ic=V(nc=>{"use strict";var JR=A(S());Object.defineProperty(nc,"__esModule",{value:!0});nc.pbkdf2=void 0;var dA=Nm();Object.defineProperty(nc,"pbkdf2",{enumerable:!0,get:function(){return dA.pbkdf2}})});var Bd=V(Hs=>{"use strict";var HR=A(S());Object.defineProperty(Hs,"__esModule",{value:!0});Hs.SupportedAlgorithm=void 0;var hA;(function(t){t.sha256="sha256",t.sha512="sha512"})(hA=Hs.SupportedAlgorithm||(Hs.SupportedAlgorithm={}))});var km=V(ac=>{"use strict";var GR=A(S());Object.defineProperty(ac,"__esModule",{value:!0});ac.version=void 0;ac.version="sha2/5.8.0"});var Um=V(on=>{"use strict";var zR=A(S()),pA=on&&on.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(on,"__esModule",{value:!0});on.computeHmac=on.sha512=on.sha256=on.ripemd160=void 0;var Cd=rt("crypto"),bA=pA(Ds()),qs=nt(),gA=Bd(),Jm=Ct(),vA=km(),mA=new Jm.Logger(vA.version);function xA(t){return"0x"+bA.default.ripemd160().update((0,qs.arrayify)(t)).digest("hex")}on.ripemd160=xA;function yA(t){return"0x"+(0,Cd.createHash)("sha256").update(Buffer.from((0,qs.arrayify)(t))).digest("hex")}on.sha256=yA;function wA(t){return"0x"+(0,Cd.createHash)("sha512").update(Buffer.from((0,qs.arrayify)(t))).digest("hex")}on.sha512=wA;function AA(t,e,r){return gA.SupportedAlgorithm[t]||mA.throwError("unsupported algorithm - "+t,Jm.Logger.errors.UNSUPPORTED_OPERATION,{operation:"computeHmac",algorithm:t}),"0x"+(0,Cd.createHmac)(t,Buffer.from((0,qs.arrayify)(e))).update(Buffer.from((0,qs.arrayify)(r))).digest("hex")}on.computeHmac=AA});var Hm=V(sn=>{"use strict";var ZR=A(S());Object.defineProperty(sn,"__esModule",{value:!0});sn.SupportedAlgorithm=sn.sha512=sn.sha256=sn.ripemd160=sn.computeHmac=void 0;var oc=Um();Object.defineProperty(sn,"computeHmac",{enumerable:!0,get:function(){return oc.computeHmac}});Object.defineProperty(sn,"ripemd160",{enumerable:!0,get:function(){return oc.ripemd160}});Object.defineProperty(sn,"sha256",{enumerable:!0,get:function(){return oc.sha256}});Object.defineProperty(sn,"sha512",{enumerable:!0,get:function(){return oc.sha512}});var MA=Bd();Object.defineProperty(sn,"SupportedAlgorithm",{enumerable:!0,get:function(){return MA.SupportedAlgorithm}})});var qm=V(sc=>{"use strict";var jR=A(S());Object.defineProperty(sc,"__esModule",{value:!0});sc.version=void 0;sc.version="wordlists/5.8.0"});var Yn=V(Pa=>{"use strict";var WR=A(S());Object.defineProperty(Pa,"__esModule",{value:!0});Pa.Wordlist=Pa.logger=void 0;var SA=!1,TA=Cs(),Gm=$r(),EA=Ct(),_A=qm();Pa.logger=new EA.Logger(_A.version);var BA=function(){function t(e){var r=this.constructor;Pa.logger.checkAbstract(r,t),(0,Gm.defineReadOnly)(this,"locale",e)}return t.prototype.split=function(e){return e.toLowerCase().split(/ +/g)},t.prototype.join=function(e){return e.join(" ")},t.check=function(e){for(var r=[],n=0;n<2048;n++){var i=e.getWord(n);if(n!==e.getWordIndex(i))return"0x";r.push(i)}return(0,TA.id)(r.join(`
8
+ `,d=Buffer.alloc(0);r?(e.version="two-prime",d=ob.encode(e,"der")):d=nb.encode(e,"der");var v=d.toString("base64").match(/.{1,64}/g).join(`
9
+ `);return i+v+a}});var pb=V((GC,t0)=>{var XC=A(M());(function(){"use strict";var t="input is invalid type",e="finalize already called",r=typeof window=="object",n=r?window:{};n.JS_SHA3_NO_WINDOW&&(r=!1);var i=!r&&typeof self=="object",a=!n.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;a?n=global:i&&(n=self);var d=!n.JS_SHA3_NO_COMMON_JS&&typeof t0=="object"&&t0.exports,v=typeof define=="function"&&define.amd,y=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",x="0123456789abcdef".split(""),B=[31,7936,2031616,520093696],C=[4,1024,262144,67108864],D=[1,256,65536,16777216],F=[6,1536,393216,100663296],P=[0,8,16,24],X=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],W=[224,256,384,512],K=[128,256],ie=["hex","buffer","arrayBuffer","array","digest"],ee={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(S){return Object.prototype.toString.call(S)==="[object Array]"}),y&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(S){return typeof S=="object"&&S.buffer&&S.buffer.constructor===ArrayBuffer});for(var ae=function(S,N,G){return function(Z){return new b(S,N,S).update(Z)[G]()}},ne=function(S,N,G){return function(Z,_){return new b(S,N,_).update(Z)[G]()}},$=function(S,N,G){return function(Z,_,R,L){return f["cshake"+S].update(Z,_,R,L)[G]()}},fe=function(S,N,G){return function(Z,_,R,L){return f["kmac"+S].update(Z,_,R,L)[G]()}},te=function(S,N,G,Z){for(var _=0;_<ie.length;++_){var R=ie[_];S[R]=N(G,Z,R)}return S},Y=function(S,N){var G=ae(S,N,"hex");return G.create=function(){return new b(S,N,S)},G.update=function(Z){return G.create().update(Z)},te(G,ae,S,N)},T=function(S,N){var G=ne(S,N,"hex");return G.create=function(Z){return new b(S,N,Z)},G.update=function(Z,_){return G.create(_).update(Z)},te(G,ne,S,N)},s=function(S,N){var G=ee[S],Z=$(S,N,"hex");return Z.create=function(_,R,L){return!R&&!L?f["shake"+S].create(_):new b(S,N,_).bytepad([R,L],G)},Z.update=function(_,R,L,O){return Z.create(R,L,O).update(_)},te(Z,$,S,N)},u=function(S,N){var G=ee[S],Z=fe(S,N,"hex");return Z.create=function(_,R,L){return new w(S,N,R).bytepad(["KMAC",L],G).bytepad([_],G)},Z.update=function(_,R,L,O){return Z.create(_,L,O).update(R)},te(Z,fe,S,N)},l=[{name:"keccak",padding:D,bits:W,createMethod:Y},{name:"sha3",padding:F,bits:W,createMethod:Y},{name:"shake",padding:B,bits:K,createMethod:T},{name:"cshake",padding:C,bits:K,createMethod:s},{name:"kmac",padding:C,bits:K,createMethod:u}],f={},c=[],g=0;g<l.length;++g)for(var m=l[g],h=m.bits,o=0;o<h.length;++o){var p=m.name+"_"+h[o];if(c.push(p),f[p]=m.createMethod(h[o],m.padding),m.name!=="sha3"){var E=m.name+h[o];c.push(E),f[E]=f[p]}}function b(S,N,G){this.blocks=[],this.s=[],this.padding=N,this.outputBits=G,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(S<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=G>>5,this.extraBytes=(G&31)>>3;for(var Z=0;Z<50;++Z)this.s[Z]=0}b.prototype.update=function(S){if(this.finalized)throw new Error(e);var N,G=typeof S;if(G!=="string"){if(G==="object"){if(S===null)throw new Error(t);if(y&&S.constructor===ArrayBuffer)S=new Uint8Array(S);else if(!Array.isArray(S)&&(!y||!ArrayBuffer.isView(S)))throw new Error(t)}else throw new Error(t);N=!0}for(var Z=this.blocks,_=this.byteCount,R=S.length,L=this.blockCount,O=0,q=this.s,I,J;O<R;){if(this.reset)for(this.reset=!1,Z[0]=this.block,I=1;I<L+1;++I)Z[I]=0;if(N)for(I=this.start;O<R&&I<_;++O)Z[I>>2]|=S[O]<<P[I++&3];else for(I=this.start;O<R&&I<_;++O)J=S.charCodeAt(O),J<128?Z[I>>2]|=J<<P[I++&3]:J<2048?(Z[I>>2]|=(192|J>>6)<<P[I++&3],Z[I>>2]|=(128|J&63)<<P[I++&3]):J<55296||J>=57344?(Z[I>>2]|=(224|J>>12)<<P[I++&3],Z[I>>2]|=(128|J>>6&63)<<P[I++&3],Z[I>>2]|=(128|J&63)<<P[I++&3]):(J=65536+((J&1023)<<10|S.charCodeAt(++O)&1023),Z[I>>2]|=(240|J>>18)<<P[I++&3],Z[I>>2]|=(128|J>>12&63)<<P[I++&3],Z[I>>2]|=(128|J>>6&63)<<P[I++&3],Z[I>>2]|=(128|J&63)<<P[I++&3]);if(this.lastByteIndex=I,I>=_){for(this.start=I-_,this.block=Z[L],I=0;I<L;++I)q[I]^=Z[I];U(q),this.reset=!0}else this.start=I}return this},b.prototype.encode=function(S,N){var G=S&255,Z=1,_=[G];for(S=S>>8,G=S&255;G>0;)_.unshift(G),S=S>>8,G=S&255,++Z;return N?_.push(Z):_.unshift(Z),this.update(_),_.length},b.prototype.encodeString=function(S){var N,G=typeof S;if(G!=="string"){if(G==="object"){if(S===null)throw new Error(t);if(y&&S.constructor===ArrayBuffer)S=new Uint8Array(S);else if(!Array.isArray(S)&&(!y||!ArrayBuffer.isView(S)))throw new Error(t)}else throw new Error(t);N=!0}var Z=0,_=S.length;if(N)Z=_;else for(var R=0;R<S.length;++R){var L=S.charCodeAt(R);L<128?Z+=1:L<2048?Z+=2:L<55296||L>=57344?Z+=3:(L=65536+((L&1023)<<10|S.charCodeAt(++R)&1023),Z+=4)}return Z+=this.encode(Z*8),this.update(S),Z},b.prototype.bytepad=function(S,N){for(var G=this.encode(N),Z=0;Z<S.length;++Z)G+=this.encodeString(S[Z]);var _=N-G%N,R=[];return R.length=_,this.update(R),this},b.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var S=this.blocks,N=this.lastByteIndex,G=this.blockCount,Z=this.s;if(S[N>>2]|=this.padding[N&3],this.lastByteIndex===this.byteCount)for(S[0]=S[G],N=1;N<G+1;++N)S[N]=0;for(S[G-1]|=2147483648,N=0;N<G;++N)Z[N]^=S[N];U(Z)}},b.prototype.toString=b.prototype.hex=function(){this.finalize();for(var S=this.blockCount,N=this.s,G=this.outputBlocks,Z=this.extraBytes,_=0,R=0,L="",O;R<G;){for(_=0;_<S&&R<G;++_,++R)O=N[_],L+=x[O>>4&15]+x[O&15]+x[O>>12&15]+x[O>>8&15]+x[O>>20&15]+x[O>>16&15]+x[O>>28&15]+x[O>>24&15];R%S===0&&(U(N),_=0)}return Z&&(O=N[_],L+=x[O>>4&15]+x[O&15],Z>1&&(L+=x[O>>12&15]+x[O>>8&15]),Z>2&&(L+=x[O>>20&15]+x[O>>16&15])),L},b.prototype.arrayBuffer=function(){this.finalize();var S=this.blockCount,N=this.s,G=this.outputBlocks,Z=this.extraBytes,_=0,R=0,L=this.outputBits>>3,O;Z?O=new ArrayBuffer(G+1<<2):O=new ArrayBuffer(L);for(var q=new Uint32Array(O);R<G;){for(_=0;_<S&&R<G;++_,++R)q[R]=N[_];R%S===0&&U(N)}return Z&&(q[_]=N[_],O=O.slice(0,L)),O},b.prototype.buffer=b.prototype.arrayBuffer,b.prototype.digest=b.prototype.array=function(){this.finalize();for(var S=this.blockCount,N=this.s,G=this.outputBlocks,Z=this.extraBytes,_=0,R=0,L=[],O,q;R<G;){for(_=0;_<S&&R<G;++_,++R)O=R<<2,q=N[_],L[O]=q&255,L[O+1]=q>>8&255,L[O+2]=q>>16&255,L[O+3]=q>>24&255;R%S===0&&U(N)}return Z&&(O=R<<2,q=N[_],L[O]=q&255,Z>1&&(L[O+1]=q>>8&255),Z>2&&(L[O+2]=q>>16&255)),L};function w(S,N,G){b.call(this,S,N,G)}w.prototype=new b,w.prototype.finalize=function(){return this.encode(this.outputBits,!0),b.prototype.finalize.call(this)};var U=function(S){var N,G,Z,_,R,L,O,q,I,J,z,k,H,Q,j,re,De,se,le,Ue,oe,ce,Xe,ge,ve,vt,pe,be,Ye,de,ue,Kt,me,xe,Zt,ye,we,Vt,Ae,Me,jt,Se,Te,Qt,Ee,_e,Wt,Be,Ce,Yt,Pe,Le,$t,Re,Fe,Dt,Ne,ke,St,Tt,Et,_t,Bt;for(Z=0;Z<48;Z+=2)_=S[0]^S[10]^S[20]^S[30]^S[40],R=S[1]^S[11]^S[21]^S[31]^S[41],L=S[2]^S[12]^S[22]^S[32]^S[42],O=S[3]^S[13]^S[23]^S[33]^S[43],q=S[4]^S[14]^S[24]^S[34]^S[44],I=S[5]^S[15]^S[25]^S[35]^S[45],J=S[6]^S[16]^S[26]^S[36]^S[46],z=S[7]^S[17]^S[27]^S[37]^S[47],k=S[8]^S[18]^S[28]^S[38]^S[48],H=S[9]^S[19]^S[29]^S[39]^S[49],N=k^(L<<1|O>>>31),G=H^(O<<1|L>>>31),S[0]^=N,S[1]^=G,S[10]^=N,S[11]^=G,S[20]^=N,S[21]^=G,S[30]^=N,S[31]^=G,S[40]^=N,S[41]^=G,N=_^(q<<1|I>>>31),G=R^(I<<1|q>>>31),S[2]^=N,S[3]^=G,S[12]^=N,S[13]^=G,S[22]^=N,S[23]^=G,S[32]^=N,S[33]^=G,S[42]^=N,S[43]^=G,N=L^(J<<1|z>>>31),G=O^(z<<1|J>>>31),S[4]^=N,S[5]^=G,S[14]^=N,S[15]^=G,S[24]^=N,S[25]^=G,S[34]^=N,S[35]^=G,S[44]^=N,S[45]^=G,N=q^(k<<1|H>>>31),G=I^(H<<1|k>>>31),S[6]^=N,S[7]^=G,S[16]^=N,S[17]^=G,S[26]^=N,S[27]^=G,S[36]^=N,S[37]^=G,S[46]^=N,S[47]^=G,N=J^(_<<1|R>>>31),G=z^(R<<1|_>>>31),S[8]^=N,S[9]^=G,S[18]^=N,S[19]^=G,S[28]^=N,S[29]^=G,S[38]^=N,S[39]^=G,S[48]^=N,S[49]^=G,Q=S[0],j=S[1],_e=S[11]<<4|S[10]>>>28,Wt=S[10]<<4|S[11]>>>28,be=S[20]<<3|S[21]>>>29,Ye=S[21]<<3|S[20]>>>29,Tt=S[31]<<9|S[30]>>>23,Et=S[30]<<9|S[31]>>>23,Se=S[40]<<18|S[41]>>>14,Te=S[41]<<18|S[40]>>>14,xe=S[2]<<1|S[3]>>>31,Zt=S[3]<<1|S[2]>>>31,re=S[13]<<12|S[12]>>>20,De=S[12]<<12|S[13]>>>20,Be=S[22]<<10|S[23]>>>22,Ce=S[23]<<10|S[22]>>>22,de=S[33]<<13|S[32]>>>19,ue=S[32]<<13|S[33]>>>19,_t=S[42]<<2|S[43]>>>30,Bt=S[43]<<2|S[42]>>>30,Re=S[5]<<30|S[4]>>>2,Fe=S[4]<<30|S[5]>>>2,ye=S[14]<<6|S[15]>>>26,we=S[15]<<6|S[14]>>>26,se=S[25]<<11|S[24]>>>21,le=S[24]<<11|S[25]>>>21,Yt=S[34]<<15|S[35]>>>17,Pe=S[35]<<15|S[34]>>>17,Kt=S[45]<<29|S[44]>>>3,me=S[44]<<29|S[45]>>>3,ge=S[6]<<28|S[7]>>>4,ve=S[7]<<28|S[6]>>>4,Dt=S[17]<<23|S[16]>>>9,Ne=S[16]<<23|S[17]>>>9,Vt=S[26]<<25|S[27]>>>7,Ae=S[27]<<25|S[26]>>>7,Ue=S[36]<<21|S[37]>>>11,oe=S[37]<<21|S[36]>>>11,Le=S[47]<<24|S[46]>>>8,$t=S[46]<<24|S[47]>>>8,Qt=S[8]<<27|S[9]>>>5,Ee=S[9]<<27|S[8]>>>5,vt=S[18]<<20|S[19]>>>12,pe=S[19]<<20|S[18]>>>12,ke=S[29]<<7|S[28]>>>25,St=S[28]<<7|S[29]>>>25,Me=S[38]<<8|S[39]>>>24,jt=S[39]<<8|S[38]>>>24,ce=S[48]<<14|S[49]>>>18,Xe=S[49]<<14|S[48]>>>18,S[0]=Q^~re&se,S[1]=j^~De&le,S[10]=ge^~vt&be,S[11]=ve^~pe&Ye,S[20]=xe^~ye&Vt,S[21]=Zt^~we&Ae,S[30]=Qt^~_e&Be,S[31]=Ee^~Wt&Ce,S[40]=Re^~Dt&ke,S[41]=Fe^~Ne&St,S[2]=re^~se&Ue,S[3]=De^~le&oe,S[12]=vt^~be&de,S[13]=pe^~Ye&ue,S[22]=ye^~Vt&Me,S[23]=we^~Ae&jt,S[32]=_e^~Be&Yt,S[33]=Wt^~Ce&Pe,S[42]=Dt^~ke&Tt,S[43]=Ne^~St&Et,S[4]=se^~Ue&ce,S[5]=le^~oe&Xe,S[14]=be^~de&Kt,S[15]=Ye^~ue&me,S[24]=Vt^~Me&Se,S[25]=Ae^~jt&Te,S[34]=Be^~Yt&Le,S[35]=Ce^~Pe&$t,S[44]=ke^~Tt&_t,S[45]=St^~Et&Bt,S[6]=Ue^~ce&Q,S[7]=oe^~Xe&j,S[16]=de^~Kt&ge,S[17]=ue^~me&ve,S[26]=Me^~Se&xe,S[27]=jt^~Te&Zt,S[36]=Yt^~Le&Qt,S[37]=Pe^~$t&Ee,S[46]=Tt^~_t&Re,S[47]=Et^~Bt&Fe,S[8]=ce^~Q&re,S[9]=Xe^~j&De,S[18]=Kt^~ge&vt,S[19]=me^~ve&pe,S[28]=Se^~xe&ye,S[29]=Te^~Zt&we,S[38]=Le^~Qt&_e,S[39]=$t^~Ee&Wt,S[48]=_t^~Re&Dt,S[49]=Bt^~Fe&Ne,S[0]^=X[Z],S[1]^=X[Z+1]};if(d)t0.exports=f;else{for(g=0;g<c.length;++g)n[c[g]]=f[c[g]];v&&define(function(){return f})}})()});var bb=V(r0=>{"use strict";var KC=A(M());Object.defineProperty(r0,"__esModule",{value:!0});r0.version=void 0;r0.version="logger/5.8.0"});var Ct=V(In=>{"use strict";var VC=A(M());Object.defineProperty(In,"__esModule",{value:!0});In.Logger=In.ErrorCode=In.LogLevel=void 0;var gb=!1,vb=!1,n0={debug:1,default:2,info:2,warning:3,error:4,off:5},mb=n0.default,c4=bb(),Al=null;function u4(){try{var t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(function(e){try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if("\xE9".normalize("NFD")!=="e\u0301")throw new Error("broken implementation")}catch(e){return e.message}return null}var xb=u4(),wb;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(wb=In.LogLevel||(In.LogLevel={}));var On;(function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"})(On=In.ErrorCode||(In.ErrorCode={}));var yb="0123456789abcdef",l4=function(){function t(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}return t.prototype._log=function(e,r){var n=e.toLowerCase();n0[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(mb>n0[n])&&console.log.apply(console,r)},t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._log(t.levels.DEBUG,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._log(t.levels.INFO,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._log(t.levels.WARNING,e)},t.prototype.makeError=function(e,r,n){if(vb)return this.makeError("censored error",r,{});r||(r=t.errors.UNKNOWN_ERROR),n||(n={});var i=[];Object.keys(n).forEach(function(x){var B=n[x];try{if(B instanceof Uint8Array){for(var C="",D=0;D<B.length;D++)C+=yb[B[D]>>4],C+=yb[B[D]&15];i.push(x+"=Uint8Array(0x"+C+")")}else i.push(x+"="+JSON.stringify(B))}catch{i.push(x+"="+JSON.stringify(n[x].toString()))}}),i.push("code="+r),i.push("version="+this.version);var a=e,d="";switch(r){case On.NUMERIC_FAULT:{d="NUMERIC_FAULT";var v=e;switch(v){case"overflow":case"underflow":case"division-by-zero":d+="-"+v;break;case"negative-power":case"negative-width":d+="-unsupported";break;case"unbound-bitwise-result":d+="-unbound-result";break}break}case On.CALL_EXCEPTION:case On.INSUFFICIENT_FUNDS:case On.MISSING_NEW:case On.NONCE_EXPIRED:case On.REPLACEMENT_UNDERPRICED:case On.TRANSACTION_REPLACED:case On.UNPREDICTABLE_GAS_LIMIT:d=r;break}d&&(e+=" [ See: https://links.ethers.org/v5-errors-"+d+" ]"),i.length&&(e+=" ("+i.join(", ")+")");var y=new Error(e);return y.reason=a,y.code=r,Object.keys(n).forEach(function(x){y[x]=n[x]}),y},t.prototype.throwError=function(e,r,n){throw this.makeError(e,r,n)},t.prototype.throwArgumentError=function(e,r,n){return this.throwError(e,t.errors.INVALID_ARGUMENT,{argument:r,value:n})},t.prototype.assert=function(e,r,n,i){e||this.throwError(r,n,i)},t.prototype.assertArgument=function(e,r,n,i){e||this.throwArgumentError(r,n,i)},t.prototype.checkNormalize=function(e){e==null&&(e="platform missing String.prototype.normalize"),xb&&this.throwError("platform missing String.prototype.normalize",t.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:xb})},t.prototype.checkSafeUint53=function(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))},t.prototype.checkArgumentCount=function(e,r,n){n?n=": "+n:n="",e<r&&this.throwError("missing argument"+n,t.errors.MISSING_ARGUMENT,{count:e,expectedCount:r}),e>r&&this.throwError("too many arguments"+n,t.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})},t.prototype.checkNew=function(e,r){(e===Object||e==null)&&this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name})},t.prototype.checkAbstract=function(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",t.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name})},t.globalLogger=function(){return Al||(Al=new t(c4.version)),Al},t.setCensorship=function(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),gb){if(!e)return;this.globalLogger().throwError("error censorship permanent",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}vb=!!e,gb=!!r},t.setLogLevel=function(e){var r=n0[e.toLowerCase()];if(r==null){t.globalLogger().warn("invalid log level - "+e);return}mb=r},t.from=function(e){return new t(e)},t.errors=On,t.levels=wb,t}();In.Logger=l4});var Ab=V(i0=>{"use strict";var QC=A(M());Object.defineProperty(i0,"__esModule",{value:!0});i0.version=void 0;i0.version="bytes/5.8.0"});var nt=V(Ke=>{"use strict";var YC=A(M());Object.defineProperty(Ke,"__esModule",{value:!0});Ke.joinSignature=Ke.splitSignature=Ke.hexZeroPad=Ke.hexStripZeros=Ke.hexValue=Ke.hexConcat=Ke.hexDataSlice=Ke.hexDataLength=Ke.hexlify=Ke.isHexString=Ke.zeroPad=Ke.stripZeros=Ke.concat=Ke.arrayify=Ke.isBytes=Ke.isBytesLike=void 0;var d4=Ct(),h4=Ab(),dt=new d4.Logger(h4.version);function Sb(t){return!!t.toHexString}function ho(t){return t.slice||(t.slice=function(){var e=Array.prototype.slice.call(arguments);return ho(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function Tb(t){return mn(t)&&!(t.length%2)||o0(t)}Ke.isBytesLike=Tb;function Mb(t){return typeof t=="number"&&t==t&&t%1===0}function o0(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;if(typeof t=="string"||!Mb(t.length)||t.length<0)return!1;for(var e=0;e<t.length;e++){var r=t[e];if(!Mb(r)||r<0||r>=256)return!1}return!0}Ke.isBytes=o0;function ba(t,e){if(e||(e={}),typeof t=="number"){dt.checkSafeUint53(t,"invalid arrayify value");for(var r=[];t;)r.unshift(t&255),t=parseInt(String(t/256));return r.length===0&&r.push(0),ho(new Uint8Array(r))}if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),Sb(t)&&(t=t.toHexString()),mn(t)){var n=t.substring(2);n.length%2&&(e.hexPad==="left"?n="0"+n:e.hexPad==="right"?n+="0":dt.throwArgumentError("hex data is odd-length","value",t));for(var r=[],i=0;i<n.length;i+=2)r.push(parseInt(n.substring(i,i+2),16));return ho(new Uint8Array(r))}return o0(t)?ho(new Uint8Array(t)):dt.throwArgumentError("invalid arrayify value","value",t)}Ke.arrayify=ba;function Eb(t){var e=t.map(function(i){return ba(i)}),r=e.reduce(function(i,a){return i+a.length},0),n=new Uint8Array(r);return e.reduce(function(i,a){return n.set(a,i),i+a.length},0),ho(n)}Ke.concat=Eb;function p4(t){var e=ba(t);if(e.length===0)return e;for(var r=0;r<e.length&&e[r]===0;)r++;return r&&(e=e.slice(r)),e}Ke.stripZeros=p4;function _b(t,e){t=ba(t),t.length>e&&dt.throwArgumentError("value out of range","value",arguments[0]);var r=new Uint8Array(e);return r.set(t,e-t.length),ho(r)}Ke.zeroPad=_b;function mn(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}Ke.isHexString=mn;var Ml="0123456789abcdef";function or(t,e){if(e||(e={}),typeof t=="number"){dt.checkSafeUint53(t,"invalid hexlify value");for(var r="";t;)r=Ml[t&15]+r,t=Math.floor(t/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof t=="bigint")return t=t.toString(16),t.length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),Sb(t))return t.toHexString();if(mn(t))return t.length%2&&(e.hexPad==="left"?t="0x0"+t.substring(2):e.hexPad==="right"?t+="0":dt.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(o0(t)){for(var n="0x",i=0;i<t.length;i++){var a=t[i];n+=Ml[(a&240)>>4]+Ml[a&15]}return n}return dt.throwArgumentError("invalid hexlify value","value",t)}Ke.hexlify=or;function b4(t){if(typeof t!="string")t=or(t);else if(!mn(t)||t.length%2)return null;return(t.length-2)/2}Ke.hexDataLength=b4;function g4(t,e,r){return typeof t!="string"?t=or(t):(!mn(t)||t.length%2)&&dt.throwArgumentError("invalid hexData","value",t),e=2+2*e,r!=null?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}Ke.hexDataSlice=g4;function v4(t){var e="0x";return t.forEach(function(r){e+=or(r).substring(2)}),e}Ke.hexConcat=v4;function m4(t){var e=Bb(or(t,{hexPad:"left"}));return e==="0x"?"0x0":e}Ke.hexValue=m4;function Bb(t){typeof t!="string"&&(t=or(t)),mn(t)||dt.throwArgumentError("invalid hex string","value",t),t=t.substring(2);for(var e=0;e<t.length&&t[e]==="0";)e++;return"0x"+t.substring(e)}Ke.hexStripZeros=Bb;function a0(t,e){for(typeof t!="string"?t=or(t):mn(t)||dt.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&dt.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}Ke.hexZeroPad=a0;function Cb(t){var e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(Tb(t)){var r=ba(t);r.length===64?(e.v=27+(r[32]>>7),r[32]&=127,e.r=or(r.slice(0,32)),e.s=or(r.slice(32,64))):r.length===65?(e.r=or(r.slice(0,32)),e.s=or(r.slice(32,64)),e.v=r[64]):dt.throwArgumentError("invalid signature string","signature",t),e.v<27&&(e.v===0||e.v===1?e.v+=27:dt.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=or(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,e._vs!=null){var n=_b(ba(e._vs),32);e._vs=or(n);var i=n[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=i:e.recoveryParam!==i&&dt.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),n[0]&=127;var a=or(n);e.s==null?e.s=a:e.s!==a&&dt.throwArgumentError("signature v mismatch _vs","signature",t)}if(e.recoveryParam==null)e.v==null?dt.throwArgumentError("signature missing v and recoveryParam","signature",t):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{var d=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==d&&dt.throwArgumentError("signature recoveryParam mismatch v","signature",t)}e.r==null||!mn(e.r)?dt.throwArgumentError("signature missing or invalid r","signature",t):e.r=a0(e.r,32),e.s==null||!mn(e.s)?dt.throwArgumentError("signature missing or invalid s","signature",t):e.s=a0(e.s,32);var v=ba(e.s);v[0]>=128&&dt.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(v[0]|=128);var y=or(v);e._vs&&(mn(e._vs)||dt.throwArgumentError("signature invalid _vs","signature",t),e._vs=a0(e._vs,32)),e._vs==null?e._vs=y:e._vs!==y&&dt.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}Ke.splitSignature=Cb;function x4(t){return t=Cb(t),or(Eb([t.r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}Ke.joinSignature=x4});var Nn=V(po=>{"use strict";var eP=A(M()),y4=po&&po.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(po,"__esModule",{value:!0});po.keccak256=void 0;var w4=y4(pb()),A4=nt();function M4(t){return"0x"+w4.default.keccak_256((0,A4.arrayify)(t))}po.keccak256=M4});var Pb=V(s0=>{"use strict";var rP=A(M());Object.defineProperty(s0,"__esModule",{value:!0});s0.AddressZero=void 0;s0.AddressZero="0x0000000000000000000000000000000000000000"});var Rb=V((Lb,Sl)=>{var nP=A(M());(function(t,e){"use strict";function r(l,f){if(!l)throw new Error(f||"Assertion failed")}function n(l,f){l.super_=f;var c=function(){};c.prototype=f.prototype,l.prototype=new c,l.prototype.constructor=l}function i(l,f,c){if(i.isBN(l))return l;this.negative=0,this.words=null,this.length=0,this.red=null,l!==null&&((f==="le"||f==="be")&&(c=f,f=10),this._init(l||0,f||10,c||"be"))}typeof t=="object"?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=rt("buffer").Buffer}catch{}i.isBN=function(f){return f instanceof i?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===i.wordSize&&Array.isArray(f.words)},i.max=function(f,c){return f.cmp(c)>0?f:c},i.min=function(f,c){return f.cmp(c)<0?f:c},i.prototype._init=function(f,c,g){if(typeof f=="number")return this._initNumber(f,c,g);if(typeof f=="object")return this._initArray(f,c,g);c==="hex"&&(c=16),r(c===(c|0)&&c>=2&&c<=36),f=f.toString().replace(/\s+/g,"");var m=0;f[0]==="-"&&(m++,this.negative=1),m<f.length&&(c===16?this._parseHex(f,m,g):(this._parseBase(f,c,m),g==="le"&&this._initArray(this.toArray(),c,g)))},i.prototype._initNumber=function(f,c,g){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(r(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),c,g)},i.prototype._initArray=function(f,c,g){if(r(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var h,o,p=0;if(g==="be")for(m=f.length-1,h=0;m>=0;m-=3)o=f[m]|f[m-1]<<8|f[m-2]<<16,this.words[h]|=o<<p&67108863,this.words[h+1]=o>>>26-p&67108863,p+=24,p>=26&&(p-=26,h++);else if(g==="le")for(m=0,h=0;m<f.length;m+=3)o=f[m]|f[m+1]<<8|f[m+2]<<16,this.words[h]|=o<<p&67108863,this.words[h+1]=o>>>26-p&67108863,p+=24,p>=26&&(p-=26,h++);return this._strip()};function d(l,f){var c=l.charCodeAt(f);if(c>=48&&c<=57)return c-48;if(c>=65&&c<=70)return c-55;if(c>=97&&c<=102)return c-87;r(!1,"Invalid character in "+l)}function v(l,f,c){var g=d(l,c);return c-1>=f&&(g|=d(l,c-1)<<4),g}i.prototype._parseHex=function(f,c,g){this.length=Math.ceil((f.length-c)/6),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var h=0,o=0,p;if(g==="be")for(m=f.length-1;m>=c;m-=2)p=v(f,c,m)<<h,this.words[o]|=p&67108863,h>=18?(h-=18,o+=1,this.words[o]|=p>>>26):h+=8;else{var E=f.length-c;for(m=E%2===0?c+1:c;m<f.length;m+=2)p=v(f,c,m)<<h,this.words[o]|=p&67108863,h>=18?(h-=18,o+=1,this.words[o]|=p>>>26):h+=8}this._strip()};function y(l,f,c,g){for(var m=0,h=0,o=Math.min(l.length,c),p=f;p<o;p++){var E=l.charCodeAt(p)-48;m*=g,E>=49?h=E-49+10:E>=17?h=E-17+10:h=E,r(E>=0&&h<g,"Invalid character"),m+=h}return m}i.prototype._parseBase=function(f,c,g){this.words=[0],this.length=1;for(var m=0,h=1;h<=67108863;h*=c)m++;m--,h=h/c|0;for(var o=f.length-g,p=o%m,E=Math.min(o,o-p)+g,b=0,w=g;w<E;w+=m)b=y(f,w,w+m,c),this.imuln(h),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b);if(p!==0){var U=1;for(b=y(f,w,f.length,c),w=0;w<p;w++)U*=c;this.imuln(U),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b)}this._strip()},i.prototype.copy=function(f){f.words=new Array(this.length);for(var c=0;c<this.length;c++)f.words[c]=this.words[c];f.length=this.length,f.negative=this.negative,f.red=this.red};function x(l,f){l.words=f.words,l.length=f.length,l.negative=f.negative,l.red=f.red}if(i.prototype._move=function(f){x(f,this)},i.prototype.clone=function(){var f=new i(null);return this.copy(f),f},i.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=B}catch{i.prototype.inspect=B}else i.prototype.inspect=B;function B(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var C=["","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"],D=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(f,c){f=f||10,c=c|0||1;var g;if(f===16||f==="hex"){g="";for(var m=0,h=0,o=0;o<this.length;o++){var p=this.words[o],E=((p<<m|h)&16777215).toString(16);h=p>>>24-m&16777215,m+=2,m>=26&&(m-=26,o--),h!==0||o!==this.length-1?g=C[6-E.length]+E+g:g=E+g}for(h!==0&&(g=h.toString(16)+g);g.length%c!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(f===(f|0)&&f>=2&&f<=36){var b=D[f],w=F[f];g="";var U=this.clone();for(U.negative=0;!U.isZero();){var S=U.modrn(w).toString(f);U=U.idivn(w),U.isZero()?g=S+g:g=C[b-S.length]+S+g}for(this.isZero()&&(g="0"+g);g.length%c!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},i.prototype.toJSON=function(){return this.toString(16,2)},a&&(i.prototype.toBuffer=function(f,c){return this.toArrayLike(a,f,c)}),i.prototype.toArray=function(f,c){return this.toArrayLike(Array,f,c)};var P=function(f,c){return f.allocUnsafe?f.allocUnsafe(c):new f(c)};i.prototype.toArrayLike=function(f,c,g){this._strip();var m=this.byteLength(),h=g||Math.max(1,m);r(m<=h,"byte array longer than desired length"),r(h>0,"Requested array length <= 0");var o=P(f,h),p=c==="le"?"LE":"BE";return this["_toArrayLike"+p](o,m),o},i.prototype._toArrayLikeLE=function(f,c){for(var g=0,m=0,h=0,o=0;h<this.length;h++){var p=this.words[h]<<o|m;f[g++]=p&255,g<f.length&&(f[g++]=p>>8&255),g<f.length&&(f[g++]=p>>16&255),o===6?(g<f.length&&(f[g++]=p>>24&255),m=0,o=0):(m=p>>>24,o+=2)}if(g<f.length)for(f[g++]=m;g<f.length;)f[g++]=0},i.prototype._toArrayLikeBE=function(f,c){for(var g=f.length-1,m=0,h=0,o=0;h<this.length;h++){var p=this.words[h]<<o|m;f[g--]=p&255,g>=0&&(f[g--]=p>>8&255),g>=0&&(f[g--]=p>>16&255),o===6?(g>=0&&(f[g--]=p>>24&255),m=0,o=0):(m=p>>>24,o+=2)}if(g>=0)for(f[g--]=m;g>=0;)f[g--]=0},Math.clz32?i.prototype._countBits=function(f){return 32-Math.clz32(f)}:i.prototype._countBits=function(f){var c=f,g=0;return c>=4096&&(g+=13,c>>>=13),c>=64&&(g+=7,c>>>=7),c>=8&&(g+=4,c>>>=4),c>=2&&(g+=2,c>>>=2),g+c},i.prototype._zeroBits=function(f){if(f===0)return 26;var c=f,g=0;return c&8191||(g+=13,c>>>=13),c&127||(g+=7,c>>>=7),c&15||(g+=4,c>>>=4),c&3||(g+=2,c>>>=2),c&1||g++,g},i.prototype.bitLength=function(){var f=this.words[this.length-1],c=this._countBits(f);return(this.length-1)*26+c};function X(l){for(var f=new Array(l.bitLength()),c=0;c<f.length;c++){var g=c/26|0,m=c%26;f[c]=l.words[g]>>>m&1}return f}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,c=0;c<this.length;c++){var g=this._zeroBits(this.words[c]);if(f+=g,g!==26)break}return f},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},i.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var c=0;c<f.length;c++)this.words[c]=this.words[c]|f.words[c];return this._strip()},i.prototype.ior=function(f){return r((this.negative|f.negative)===0),this.iuor(f)},i.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},i.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},i.prototype.iuand=function(f){var c;this.length>f.length?c=f:c=this;for(var g=0;g<c.length;g++)this.words[g]=this.words[g]&f.words[g];return this.length=c.length,this._strip()},i.prototype.iand=function(f){return r((this.negative|f.negative)===0),this.iuand(f)},i.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},i.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},i.prototype.iuxor=function(f){var c,g;this.length>f.length?(c=this,g=f):(c=f,g=this);for(var m=0;m<g.length;m++)this.words[m]=c.words[m]^g.words[m];if(this!==c)for(;m<c.length;m++)this.words[m]=c.words[m];return this.length=c.length,this._strip()},i.prototype.ixor=function(f){return r((this.negative|f.negative)===0),this.iuxor(f)},i.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},i.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},i.prototype.inotn=function(f){r(typeof f=="number"&&f>=0);var c=Math.ceil(f/26)|0,g=f%26;this._expand(c),g>0&&c--;for(var m=0;m<c;m++)this.words[m]=~this.words[m]&67108863;return g>0&&(this.words[m]=~this.words[m]&67108863>>26-g),this._strip()},i.prototype.notn=function(f){return this.clone().inotn(f)},i.prototype.setn=function(f,c){r(typeof f=="number"&&f>=0);var g=f/26|0,m=f%26;return this._expand(g+1),c?this.words[g]=this.words[g]|1<<m:this.words[g]=this.words[g]&~(1<<m),this._strip()},i.prototype.iadd=function(f){var c;if(this.negative!==0&&f.negative===0)return this.negative=0,c=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,c=this.isub(f),f.negative=1,c._normSign();var g,m;this.length>f.length?(g=this,m=f):(g=f,m=this);for(var h=0,o=0;o<m.length;o++)c=(g.words[o]|0)+(m.words[o]|0)+h,this.words[o]=c&67108863,h=c>>>26;for(;h!==0&&o<g.length;o++)c=(g.words[o]|0)+h,this.words[o]=c&67108863,h=c>>>26;if(this.length=g.length,h!==0)this.words[this.length]=h,this.length++;else if(g!==this)for(;o<g.length;o++)this.words[o]=g.words[o];return this},i.prototype.add=function(f){var c;return f.negative!==0&&this.negative===0?(f.negative=0,c=this.sub(f),f.negative^=1,c):f.negative===0&&this.negative!==0?(this.negative=0,c=f.sub(this),this.negative=1,c):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},i.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var c=this.iadd(f);return f.negative=1,c._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var g=this.cmp(f);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var m,h;g>0?(m=this,h=f):(m=f,h=this);for(var o=0,p=0;p<h.length;p++)c=(m.words[p]|0)-(h.words[p]|0)+o,o=c>>26,this.words[p]=c&67108863;for(;o!==0&&p<m.length;p++)c=(m.words[p]|0)+o,o=c>>26,this.words[p]=c&67108863;if(o===0&&p<m.length&&m!==this)for(;p<m.length;p++)this.words[p]=m.words[p];return this.length=Math.max(this.length,p),m!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(f){return this.clone().isub(f)};function W(l,f,c){c.negative=f.negative^l.negative;var g=l.length+f.length|0;c.length=g,g=g-1|0;var m=l.words[0]|0,h=f.words[0]|0,o=m*h,p=o&67108863,E=o/67108864|0;c.words[0]=p;for(var b=1;b<g;b++){for(var w=E>>>26,U=E&67108863,S=Math.min(b,f.length-1),N=Math.max(0,b-l.length+1);N<=S;N++){var G=b-N|0;m=l.words[G]|0,h=f.words[N]|0,o=m*h+U,w+=o/67108864|0,U=o&67108863}c.words[b]=U|0,E=w|0}return E!==0?c.words[b]=E|0:c.length--,c._strip()}var K=function(f,c,g){var m=f.words,h=c.words,o=g.words,p=0,E,b,w,U=m[0]|0,S=U&8191,N=U>>>13,G=m[1]|0,Z=G&8191,_=G>>>13,R=m[2]|0,L=R&8191,O=R>>>13,q=m[3]|0,I=q&8191,J=q>>>13,z=m[4]|0,k=z&8191,H=z>>>13,Q=m[5]|0,j=Q&8191,re=Q>>>13,De=m[6]|0,se=De&8191,le=De>>>13,Ue=m[7]|0,oe=Ue&8191,ce=Ue>>>13,Xe=m[8]|0,ge=Xe&8191,ve=Xe>>>13,vt=m[9]|0,pe=vt&8191,be=vt>>>13,Ye=h[0]|0,de=Ye&8191,ue=Ye>>>13,Kt=h[1]|0,me=Kt&8191,xe=Kt>>>13,Zt=h[2]|0,ye=Zt&8191,we=Zt>>>13,Vt=h[3]|0,Ae=Vt&8191,Me=Vt>>>13,jt=h[4]|0,Se=jt&8191,Te=jt>>>13,Qt=h[5]|0,Ee=Qt&8191,_e=Qt>>>13,Wt=h[6]|0,Be=Wt&8191,Ce=Wt>>>13,Yt=h[7]|0,Pe=Yt&8191,Le=Yt>>>13,$t=h[8]|0,Re=$t&8191,Fe=$t>>>13,Dt=h[9]|0,Ne=Dt&8191,ke=Dt>>>13;g.negative=f.negative^c.negative,g.length=19,E=Math.imul(S,de),b=Math.imul(S,ue),b=b+Math.imul(N,de)|0,w=Math.imul(N,ue);var St=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(St>>>26)|0,St&=67108863,E=Math.imul(Z,de),b=Math.imul(Z,ue),b=b+Math.imul(_,de)|0,w=Math.imul(_,ue),E=E+Math.imul(S,me)|0,b=b+Math.imul(S,xe)|0,b=b+Math.imul(N,me)|0,w=w+Math.imul(N,xe)|0;var Tt=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,E=Math.imul(L,de),b=Math.imul(L,ue),b=b+Math.imul(O,de)|0,w=Math.imul(O,ue),E=E+Math.imul(Z,me)|0,b=b+Math.imul(Z,xe)|0,b=b+Math.imul(_,me)|0,w=w+Math.imul(_,xe)|0,E=E+Math.imul(S,ye)|0,b=b+Math.imul(S,we)|0,b=b+Math.imul(N,ye)|0,w=w+Math.imul(N,we)|0;var Et=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(Et>>>26)|0,Et&=67108863,E=Math.imul(I,de),b=Math.imul(I,ue),b=b+Math.imul(J,de)|0,w=Math.imul(J,ue),E=E+Math.imul(L,me)|0,b=b+Math.imul(L,xe)|0,b=b+Math.imul(O,me)|0,w=w+Math.imul(O,xe)|0,E=E+Math.imul(Z,ye)|0,b=b+Math.imul(Z,we)|0,b=b+Math.imul(_,ye)|0,w=w+Math.imul(_,we)|0,E=E+Math.imul(S,Ae)|0,b=b+Math.imul(S,Me)|0,b=b+Math.imul(N,Ae)|0,w=w+Math.imul(N,Me)|0;var _t=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(_t>>>26)|0,_t&=67108863,E=Math.imul(k,de),b=Math.imul(k,ue),b=b+Math.imul(H,de)|0,w=Math.imul(H,ue),E=E+Math.imul(I,me)|0,b=b+Math.imul(I,xe)|0,b=b+Math.imul(J,me)|0,w=w+Math.imul(J,xe)|0,E=E+Math.imul(L,ye)|0,b=b+Math.imul(L,we)|0,b=b+Math.imul(O,ye)|0,w=w+Math.imul(O,we)|0,E=E+Math.imul(Z,Ae)|0,b=b+Math.imul(Z,Me)|0,b=b+Math.imul(_,Ae)|0,w=w+Math.imul(_,Me)|0,E=E+Math.imul(S,Se)|0,b=b+Math.imul(S,Te)|0,b=b+Math.imul(N,Se)|0,w=w+Math.imul(N,Te)|0;var Bt=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,E=Math.imul(j,de),b=Math.imul(j,ue),b=b+Math.imul(re,de)|0,w=Math.imul(re,ue),E=E+Math.imul(k,me)|0,b=b+Math.imul(k,xe)|0,b=b+Math.imul(H,me)|0,w=w+Math.imul(H,xe)|0,E=E+Math.imul(I,ye)|0,b=b+Math.imul(I,we)|0,b=b+Math.imul(J,ye)|0,w=w+Math.imul(J,we)|0,E=E+Math.imul(L,Ae)|0,b=b+Math.imul(L,Me)|0,b=b+Math.imul(O,Ae)|0,w=w+Math.imul(O,Me)|0,E=E+Math.imul(Z,Se)|0,b=b+Math.imul(Z,Te)|0,b=b+Math.imul(_,Se)|0,w=w+Math.imul(_,Te)|0,E=E+Math.imul(S,Ee)|0,b=b+Math.imul(S,_e)|0,b=b+Math.imul(N,Ee)|0,w=w+Math.imul(N,_e)|0;var hr=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(hr>>>26)|0,hr&=67108863,E=Math.imul(se,de),b=Math.imul(se,ue),b=b+Math.imul(le,de)|0,w=Math.imul(le,ue),E=E+Math.imul(j,me)|0,b=b+Math.imul(j,xe)|0,b=b+Math.imul(re,me)|0,w=w+Math.imul(re,xe)|0,E=E+Math.imul(k,ye)|0,b=b+Math.imul(k,we)|0,b=b+Math.imul(H,ye)|0,w=w+Math.imul(H,we)|0,E=E+Math.imul(I,Ae)|0,b=b+Math.imul(I,Me)|0,b=b+Math.imul(J,Ae)|0,w=w+Math.imul(J,Me)|0,E=E+Math.imul(L,Se)|0,b=b+Math.imul(L,Te)|0,b=b+Math.imul(O,Se)|0,w=w+Math.imul(O,Te)|0,E=E+Math.imul(Z,Ee)|0,b=b+Math.imul(Z,_e)|0,b=b+Math.imul(_,Ee)|0,w=w+Math.imul(_,_e)|0,E=E+Math.imul(S,Be)|0,b=b+Math.imul(S,Ce)|0,b=b+Math.imul(N,Be)|0,w=w+Math.imul(N,Ce)|0;var pr=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(pr>>>26)|0,pr&=67108863,E=Math.imul(oe,de),b=Math.imul(oe,ue),b=b+Math.imul(ce,de)|0,w=Math.imul(ce,ue),E=E+Math.imul(se,me)|0,b=b+Math.imul(se,xe)|0,b=b+Math.imul(le,me)|0,w=w+Math.imul(le,xe)|0,E=E+Math.imul(j,ye)|0,b=b+Math.imul(j,we)|0,b=b+Math.imul(re,ye)|0,w=w+Math.imul(re,we)|0,E=E+Math.imul(k,Ae)|0,b=b+Math.imul(k,Me)|0,b=b+Math.imul(H,Ae)|0,w=w+Math.imul(H,Me)|0,E=E+Math.imul(I,Se)|0,b=b+Math.imul(I,Te)|0,b=b+Math.imul(J,Se)|0,w=w+Math.imul(J,Te)|0,E=E+Math.imul(L,Ee)|0,b=b+Math.imul(L,_e)|0,b=b+Math.imul(O,Ee)|0,w=w+Math.imul(O,_e)|0,E=E+Math.imul(Z,Be)|0,b=b+Math.imul(Z,Ce)|0,b=b+Math.imul(_,Be)|0,w=w+Math.imul(_,Ce)|0,E=E+Math.imul(S,Pe)|0,b=b+Math.imul(S,Le)|0,b=b+Math.imul(N,Pe)|0,w=w+Math.imul(N,Le)|0;var br=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(br>>>26)|0,br&=67108863,E=Math.imul(ge,de),b=Math.imul(ge,ue),b=b+Math.imul(ve,de)|0,w=Math.imul(ve,ue),E=E+Math.imul(oe,me)|0,b=b+Math.imul(oe,xe)|0,b=b+Math.imul(ce,me)|0,w=w+Math.imul(ce,xe)|0,E=E+Math.imul(se,ye)|0,b=b+Math.imul(se,we)|0,b=b+Math.imul(le,ye)|0,w=w+Math.imul(le,we)|0,E=E+Math.imul(j,Ae)|0,b=b+Math.imul(j,Me)|0,b=b+Math.imul(re,Ae)|0,w=w+Math.imul(re,Me)|0,E=E+Math.imul(k,Se)|0,b=b+Math.imul(k,Te)|0,b=b+Math.imul(H,Se)|0,w=w+Math.imul(H,Te)|0,E=E+Math.imul(I,Ee)|0,b=b+Math.imul(I,_e)|0,b=b+Math.imul(J,Ee)|0,w=w+Math.imul(J,_e)|0,E=E+Math.imul(L,Be)|0,b=b+Math.imul(L,Ce)|0,b=b+Math.imul(O,Be)|0,w=w+Math.imul(O,Ce)|0,E=E+Math.imul(Z,Pe)|0,b=b+Math.imul(Z,Le)|0,b=b+Math.imul(_,Pe)|0,w=w+Math.imul(_,Le)|0,E=E+Math.imul(S,Re)|0,b=b+Math.imul(S,Fe)|0,b=b+Math.imul(N,Re)|0,w=w+Math.imul(N,Fe)|0;var gr=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(gr>>>26)|0,gr&=67108863,E=Math.imul(pe,de),b=Math.imul(pe,ue),b=b+Math.imul(be,de)|0,w=Math.imul(be,ue),E=E+Math.imul(ge,me)|0,b=b+Math.imul(ge,xe)|0,b=b+Math.imul(ve,me)|0,w=w+Math.imul(ve,xe)|0,E=E+Math.imul(oe,ye)|0,b=b+Math.imul(oe,we)|0,b=b+Math.imul(ce,ye)|0,w=w+Math.imul(ce,we)|0,E=E+Math.imul(se,Ae)|0,b=b+Math.imul(se,Me)|0,b=b+Math.imul(le,Ae)|0,w=w+Math.imul(le,Me)|0,E=E+Math.imul(j,Se)|0,b=b+Math.imul(j,Te)|0,b=b+Math.imul(re,Se)|0,w=w+Math.imul(re,Te)|0,E=E+Math.imul(k,Ee)|0,b=b+Math.imul(k,_e)|0,b=b+Math.imul(H,Ee)|0,w=w+Math.imul(H,_e)|0,E=E+Math.imul(I,Be)|0,b=b+Math.imul(I,Ce)|0,b=b+Math.imul(J,Be)|0,w=w+Math.imul(J,Ce)|0,E=E+Math.imul(L,Pe)|0,b=b+Math.imul(L,Le)|0,b=b+Math.imul(O,Pe)|0,w=w+Math.imul(O,Le)|0,E=E+Math.imul(Z,Re)|0,b=b+Math.imul(Z,Fe)|0,b=b+Math.imul(_,Re)|0,w=w+Math.imul(_,Fe)|0,E=E+Math.imul(S,Ne)|0,b=b+Math.imul(S,ke)|0,b=b+Math.imul(N,Ne)|0,w=w+Math.imul(N,ke)|0;var vr=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(vr>>>26)|0,vr&=67108863,E=Math.imul(pe,me),b=Math.imul(pe,xe),b=b+Math.imul(be,me)|0,w=Math.imul(be,xe),E=E+Math.imul(ge,ye)|0,b=b+Math.imul(ge,we)|0,b=b+Math.imul(ve,ye)|0,w=w+Math.imul(ve,we)|0,E=E+Math.imul(oe,Ae)|0,b=b+Math.imul(oe,Me)|0,b=b+Math.imul(ce,Ae)|0,w=w+Math.imul(ce,Me)|0,E=E+Math.imul(se,Se)|0,b=b+Math.imul(se,Te)|0,b=b+Math.imul(le,Se)|0,w=w+Math.imul(le,Te)|0,E=E+Math.imul(j,Ee)|0,b=b+Math.imul(j,_e)|0,b=b+Math.imul(re,Ee)|0,w=w+Math.imul(re,_e)|0,E=E+Math.imul(k,Be)|0,b=b+Math.imul(k,Ce)|0,b=b+Math.imul(H,Be)|0,w=w+Math.imul(H,Ce)|0,E=E+Math.imul(I,Pe)|0,b=b+Math.imul(I,Le)|0,b=b+Math.imul(J,Pe)|0,w=w+Math.imul(J,Le)|0,E=E+Math.imul(L,Re)|0,b=b+Math.imul(L,Fe)|0,b=b+Math.imul(O,Re)|0,w=w+Math.imul(O,Fe)|0,E=E+Math.imul(Z,Ne)|0,b=b+Math.imul(Z,ke)|0,b=b+Math.imul(_,Ne)|0,w=w+Math.imul(_,ke)|0;var mr=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(mr>>>26)|0,mr&=67108863,E=Math.imul(pe,ye),b=Math.imul(pe,we),b=b+Math.imul(be,ye)|0,w=Math.imul(be,we),E=E+Math.imul(ge,Ae)|0,b=b+Math.imul(ge,Me)|0,b=b+Math.imul(ve,Ae)|0,w=w+Math.imul(ve,Me)|0,E=E+Math.imul(oe,Se)|0,b=b+Math.imul(oe,Te)|0,b=b+Math.imul(ce,Se)|0,w=w+Math.imul(ce,Te)|0,E=E+Math.imul(se,Ee)|0,b=b+Math.imul(se,_e)|0,b=b+Math.imul(le,Ee)|0,w=w+Math.imul(le,_e)|0,E=E+Math.imul(j,Be)|0,b=b+Math.imul(j,Ce)|0,b=b+Math.imul(re,Be)|0,w=w+Math.imul(re,Ce)|0,E=E+Math.imul(k,Pe)|0,b=b+Math.imul(k,Le)|0,b=b+Math.imul(H,Pe)|0,w=w+Math.imul(H,Le)|0,E=E+Math.imul(I,Re)|0,b=b+Math.imul(I,Fe)|0,b=b+Math.imul(J,Re)|0,w=w+Math.imul(J,Fe)|0,E=E+Math.imul(L,Ne)|0,b=b+Math.imul(L,ke)|0,b=b+Math.imul(O,Ne)|0,w=w+Math.imul(O,ke)|0;var xr=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(xr>>>26)|0,xr&=67108863,E=Math.imul(pe,Ae),b=Math.imul(pe,Me),b=b+Math.imul(be,Ae)|0,w=Math.imul(be,Me),E=E+Math.imul(ge,Se)|0,b=b+Math.imul(ge,Te)|0,b=b+Math.imul(ve,Se)|0,w=w+Math.imul(ve,Te)|0,E=E+Math.imul(oe,Ee)|0,b=b+Math.imul(oe,_e)|0,b=b+Math.imul(ce,Ee)|0,w=w+Math.imul(ce,_e)|0,E=E+Math.imul(se,Be)|0,b=b+Math.imul(se,Ce)|0,b=b+Math.imul(le,Be)|0,w=w+Math.imul(le,Ce)|0,E=E+Math.imul(j,Pe)|0,b=b+Math.imul(j,Le)|0,b=b+Math.imul(re,Pe)|0,w=w+Math.imul(re,Le)|0,E=E+Math.imul(k,Re)|0,b=b+Math.imul(k,Fe)|0,b=b+Math.imul(H,Re)|0,w=w+Math.imul(H,Fe)|0,E=E+Math.imul(I,Ne)|0,b=b+Math.imul(I,ke)|0,b=b+Math.imul(J,Ne)|0,w=w+Math.imul(J,ke)|0;var yr=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(yr>>>26)|0,yr&=67108863,E=Math.imul(pe,Se),b=Math.imul(pe,Te),b=b+Math.imul(be,Se)|0,w=Math.imul(be,Te),E=E+Math.imul(ge,Ee)|0,b=b+Math.imul(ge,_e)|0,b=b+Math.imul(ve,Ee)|0,w=w+Math.imul(ve,_e)|0,E=E+Math.imul(oe,Be)|0,b=b+Math.imul(oe,Ce)|0,b=b+Math.imul(ce,Be)|0,w=w+Math.imul(ce,Ce)|0,E=E+Math.imul(se,Pe)|0,b=b+Math.imul(se,Le)|0,b=b+Math.imul(le,Pe)|0,w=w+Math.imul(le,Le)|0,E=E+Math.imul(j,Re)|0,b=b+Math.imul(j,Fe)|0,b=b+Math.imul(re,Re)|0,w=w+Math.imul(re,Fe)|0,E=E+Math.imul(k,Ne)|0,b=b+Math.imul(k,ke)|0,b=b+Math.imul(H,Ne)|0,w=w+Math.imul(H,ke)|0;var wr=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(wr>>>26)|0,wr&=67108863,E=Math.imul(pe,Ee),b=Math.imul(pe,_e),b=b+Math.imul(be,Ee)|0,w=Math.imul(be,_e),E=E+Math.imul(ge,Be)|0,b=b+Math.imul(ge,Ce)|0,b=b+Math.imul(ve,Be)|0,w=w+Math.imul(ve,Ce)|0,E=E+Math.imul(oe,Pe)|0,b=b+Math.imul(oe,Le)|0,b=b+Math.imul(ce,Pe)|0,w=w+Math.imul(ce,Le)|0,E=E+Math.imul(se,Re)|0,b=b+Math.imul(se,Fe)|0,b=b+Math.imul(le,Re)|0,w=w+Math.imul(le,Fe)|0,E=E+Math.imul(j,Ne)|0,b=b+Math.imul(j,ke)|0,b=b+Math.imul(re,Ne)|0,w=w+Math.imul(re,ke)|0;var pn=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(pn>>>26)|0,pn&=67108863,E=Math.imul(pe,Be),b=Math.imul(pe,Ce),b=b+Math.imul(be,Be)|0,w=Math.imul(be,Ce),E=E+Math.imul(ge,Pe)|0,b=b+Math.imul(ge,Le)|0,b=b+Math.imul(ve,Pe)|0,w=w+Math.imul(ve,Le)|0,E=E+Math.imul(oe,Re)|0,b=b+Math.imul(oe,Fe)|0,b=b+Math.imul(ce,Re)|0,w=w+Math.imul(ce,Fe)|0,E=E+Math.imul(se,Ne)|0,b=b+Math.imul(se,ke)|0,b=b+Math.imul(le,Ne)|0,w=w+Math.imul(le,ke)|0;var bn=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(bn>>>26)|0,bn&=67108863,E=Math.imul(pe,Pe),b=Math.imul(pe,Le),b=b+Math.imul(be,Pe)|0,w=Math.imul(be,Le),E=E+Math.imul(ge,Re)|0,b=b+Math.imul(ge,Fe)|0,b=b+Math.imul(ve,Re)|0,w=w+Math.imul(ve,Fe)|0,E=E+Math.imul(oe,Ne)|0,b=b+Math.imul(oe,ke)|0,b=b+Math.imul(ce,Ne)|0,w=w+Math.imul(ce,ke)|0;var tu=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(tu>>>26)|0,tu&=67108863,E=Math.imul(pe,Re),b=Math.imul(pe,Fe),b=b+Math.imul(be,Re)|0,w=Math.imul(be,Fe),E=E+Math.imul(ge,Ne)|0,b=b+Math.imul(ge,ke)|0,b=b+Math.imul(ve,Ne)|0,w=w+Math.imul(ve,ke)|0;var ru=(p+E|0)+((b&8191)<<13)|0;p=(w+(b>>>13)|0)+(ru>>>26)|0,ru&=67108863,E=Math.imul(pe,Ne),b=Math.imul(pe,ke),b=b+Math.imul(be,Ne)|0,w=Math.imul(be,ke);var nu=(p+E|0)+((b&8191)<<13)|0;return p=(w+(b>>>13)|0)+(nu>>>26)|0,nu&=67108863,o[0]=St,o[1]=Tt,o[2]=Et,o[3]=_t,o[4]=Bt,o[5]=hr,o[6]=pr,o[7]=br,o[8]=gr,o[9]=vr,o[10]=mr,o[11]=xr,o[12]=yr,o[13]=wr,o[14]=pn,o[15]=bn,o[16]=tu,o[17]=ru,o[18]=nu,p!==0&&(o[19]=p,g.length++),g};Math.imul||(K=W);function ie(l,f,c){c.negative=f.negative^l.negative,c.length=l.length+f.length;for(var g=0,m=0,h=0;h<c.length-1;h++){var o=m;m=0;for(var p=g&67108863,E=Math.min(h,f.length-1),b=Math.max(0,h-l.length+1);b<=E;b++){var w=h-b,U=l.words[w]|0,S=f.words[b]|0,N=U*S,G=N&67108863;o=o+(N/67108864|0)|0,G=G+p|0,p=G&67108863,o=o+(G>>>26)|0,m+=o>>>26,o&=67108863}c.words[h]=p,g=o,o=m}return g!==0?c.words[h]=g:c.length--,c._strip()}function ee(l,f,c){return ie(l,f,c)}i.prototype.mulTo=function(f,c){var g,m=this.length+f.length;return this.length===10&&f.length===10?g=K(this,f,c):m<63?g=W(this,f,c):m<1024?g=ie(this,f,c):g=ee(this,f,c),g};function ae(l,f){this.x=l,this.y=f}ae.prototype.makeRBT=function(f){for(var c=new Array(f),g=i.prototype._countBits(f)-1,m=0;m<f;m++)c[m]=this.revBin(m,g,f);return c},ae.prototype.revBin=function(f,c,g){if(f===0||f===g-1)return f;for(var m=0,h=0;h<c;h++)m|=(f&1)<<c-h-1,f>>=1;return m},ae.prototype.permute=function(f,c,g,m,h,o){for(var p=0;p<o;p++)m[p]=c[f[p]],h[p]=g[f[p]]},ae.prototype.transform=function(f,c,g,m,h,o){this.permute(o,f,c,g,m,h);for(var p=1;p<h;p<<=1)for(var E=p<<1,b=Math.cos(2*Math.PI/E),w=Math.sin(2*Math.PI/E),U=0;U<h;U+=E)for(var S=b,N=w,G=0;G<p;G++){var Z=g[U+G],_=m[U+G],R=g[U+G+p],L=m[U+G+p],O=S*R-N*L;L=S*L+N*R,R=O,g[U+G]=Z+R,m[U+G]=_+L,g[U+G+p]=Z-R,m[U+G+p]=_-L,G!==E&&(O=b*S-w*N,N=b*N+w*S,S=O)}},ae.prototype.guessLen13b=function(f,c){var g=Math.max(c,f)|1,m=g&1,h=0;for(g=g/2|0;g;g=g>>>1)h++;return 1<<h+1+m},ae.prototype.conjugate=function(f,c,g){if(!(g<=1))for(var m=0;m<g/2;m++){var h=f[m];f[m]=f[g-m-1],f[g-m-1]=h,h=c[m],c[m]=-c[g-m-1],c[g-m-1]=-h}},ae.prototype.normalize13b=function(f,c){for(var g=0,m=0;m<c/2;m++){var h=Math.round(f[2*m+1]/c)*8192+Math.round(f[2*m]/c)+g;f[m]=h&67108863,h<67108864?g=0:g=h/67108864|0}return f},ae.prototype.convert13b=function(f,c,g,m){for(var h=0,o=0;o<c;o++)h=h+(f[o]|0),g[2*o]=h&8191,h=h>>>13,g[2*o+1]=h&8191,h=h>>>13;for(o=2*c;o<m;++o)g[o]=0;r(h===0),r((h&-8192)===0)},ae.prototype.stub=function(f){for(var c=new Array(f),g=0;g<f;g++)c[g]=0;return c},ae.prototype.mulp=function(f,c,g){var m=2*this.guessLen13b(f.length,c.length),h=this.makeRBT(m),o=this.stub(m),p=new Array(m),E=new Array(m),b=new Array(m),w=new Array(m),U=new Array(m),S=new Array(m),N=g.words;N.length=m,this.convert13b(f.words,f.length,p,m),this.convert13b(c.words,c.length,w,m),this.transform(p,o,E,b,m,h),this.transform(w,o,U,S,m,h);for(var G=0;G<m;G++){var Z=E[G]*U[G]-b[G]*S[G];b[G]=E[G]*S[G]+b[G]*U[G],E[G]=Z}return this.conjugate(E,b,m),this.transform(E,b,N,o,m,h),this.conjugate(N,o,m),this.normalize13b(N,m),g.negative=f.negative^c.negative,g.length=f.length+c.length,g._strip()},i.prototype.mul=function(f){var c=new i(null);return c.words=new Array(this.length+f.length),this.mulTo(f,c)},i.prototype.mulf=function(f){var c=new i(null);return c.words=new Array(this.length+f.length),ee(this,f,c)},i.prototype.imul=function(f){return this.clone().mulTo(f,this)},i.prototype.imuln=function(f){var c=f<0;c&&(f=-f),r(typeof f=="number"),r(f<67108864);for(var g=0,m=0;m<this.length;m++){var h=(this.words[m]|0)*f,o=(h&67108863)+(g&67108863);g>>=26,g+=h/67108864|0,g+=o>>>26,this.words[m]=o&67108863}return g!==0&&(this.words[m]=g,this.length++),this.length=f===0?1:this.length,c?this.ineg():this},i.prototype.muln=function(f){return this.clone().imuln(f)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(f){var c=X(f);if(c.length===0)return new i(1);for(var g=this,m=0;m<c.length&&c[m]===0;m++,g=g.sqr());if(++m<c.length)for(var h=g.sqr();m<c.length;m++,h=h.sqr())c[m]!==0&&(g=g.mul(h));return g},i.prototype.iushln=function(f){r(typeof f=="number"&&f>=0);var c=f%26,g=(f-c)/26,m=67108863>>>26-c<<26-c,h;if(c!==0){var o=0;for(h=0;h<this.length;h++){var p=this.words[h]&m,E=(this.words[h]|0)-p<<c;this.words[h]=E|o,o=p>>>26-c}o&&(this.words[h]=o,this.length++)}if(g!==0){for(h=this.length-1;h>=0;h--)this.words[h+g]=this.words[h];for(h=0;h<g;h++)this.words[h]=0;this.length+=g}return this._strip()},i.prototype.ishln=function(f){return r(this.negative===0),this.iushln(f)},i.prototype.iushrn=function(f,c,g){r(typeof f=="number"&&f>=0);var m;c?m=(c-c%26)/26:m=0;var h=f%26,o=Math.min((f-h)/26,this.length),p=67108863^67108863>>>h<<h,E=g;if(m-=o,m=Math.max(0,m),E){for(var b=0;b<o;b++)E.words[b]=this.words[b];E.length=o}if(o!==0)if(this.length>o)for(this.length-=o,b=0;b<this.length;b++)this.words[b]=this.words[b+o];else this.words[0]=0,this.length=1;var w=0;for(b=this.length-1;b>=0&&(w!==0||b>=m);b--){var U=this.words[b]|0;this.words[b]=w<<26-h|U>>>h,w=U&p}return E&&w!==0&&(E.words[E.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(f,c,g){return r(this.negative===0),this.iushrn(f,c,g)},i.prototype.shln=function(f){return this.clone().ishln(f)},i.prototype.ushln=function(f){return this.clone().iushln(f)},i.prototype.shrn=function(f){return this.clone().ishrn(f)},i.prototype.ushrn=function(f){return this.clone().iushrn(f)},i.prototype.testn=function(f){r(typeof f=="number"&&f>=0);var c=f%26,g=(f-c)/26,m=1<<c;if(this.length<=g)return!1;var h=this.words[g];return!!(h&m)},i.prototype.imaskn=function(f){r(typeof f=="number"&&f>=0);var c=f%26,g=(f-c)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(c!==0&&g++,this.length=Math.min(g,this.length),c!==0){var m=67108863^67108863>>>c<<c;this.words[this.length-1]&=m}return this._strip()},i.prototype.maskn=function(f){return this.clone().imaskn(f)},i.prototype.iaddn=function(f){return r(typeof f=="number"),r(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<=f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},i.prototype._iaddn=function(f){this.words[0]+=f;for(var c=0;c<this.length&&this.words[c]>=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},i.prototype.isubn=function(f){if(r(typeof f=="number"),r(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c<this.length&&this.words[c]<0;c++)this.words[c]+=67108864,this.words[c+1]-=1;return this._strip()},i.prototype.addn=function(f){return this.clone().iaddn(f)},i.prototype.subn=function(f){return this.clone().isubn(f)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(f,c,g){var m=f.length+g,h;this._expand(m);var o,p=0;for(h=0;h<f.length;h++){o=(this.words[h+g]|0)+p;var E=(f.words[h]|0)*c;o-=E&67108863,p=(o>>26)-(E/67108864|0),this.words[h+g]=o&67108863}for(;h<this.length-g;h++)o=(this.words[h+g]|0)+p,p=o>>26,this.words[h+g]=o&67108863;if(p===0)return this._strip();for(r(p===-1),p=0,h=0;h<this.length;h++)o=-(this.words[h]|0)+p,p=o>>26,this.words[h]=o&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(f,c){var g=this.length-f.length,m=this.clone(),h=f,o=h.words[h.length-1]|0,p=this._countBits(o);g=26-p,g!==0&&(h=h.ushln(g),m.iushln(g),o=h.words[h.length-1]|0);var E=m.length-h.length,b;if(c!=="mod"){b=new i(null),b.length=E+1,b.words=new Array(b.length);for(var w=0;w<b.length;w++)b.words[w]=0}var U=m.clone()._ishlnsubmul(h,1,E);U.negative===0&&(m=U,b&&(b.words[E]=1));for(var S=E-1;S>=0;S--){var N=(m.words[h.length+S]|0)*67108864+(m.words[h.length+S-1]|0);for(N=Math.min(N/o|0,67108863),m._ishlnsubmul(h,N,S);m.negative!==0;)N--,m.negative=0,m._ishlnsubmul(h,1,S),m.isZero()||(m.negative^=1);b&&(b.words[S]=N)}return b&&b._strip(),m._strip(),c!=="div"&&g!==0&&m.iushrn(g),{div:b||null,mod:m}},i.prototype.divmod=function(f,c,g){if(r(!f.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var m,h,o;return this.negative!==0&&f.negative===0?(o=this.neg().divmod(f,c),c!=="mod"&&(m=o.div.neg()),c!=="div"&&(h=o.mod.neg(),g&&h.negative!==0&&h.iadd(f)),{div:m,mod:h}):this.negative===0&&f.negative!==0?(o=this.divmod(f.neg(),c),c!=="mod"&&(m=o.div.neg()),{div:m,mod:o.mod}):this.negative&f.negative?(o=this.neg().divmod(f.neg(),c),c!=="div"&&(h=o.mod.neg(),g&&h.negative!==0&&h.isub(f)),{div:o.div,mod:h}):f.length>this.length||this.cmp(f)<0?{div:new i(0),mod:this}:f.length===1?c==="div"?{div:this.divn(f.words[0]),mod:null}:c==="mod"?{div:null,mod:new i(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new i(this.modrn(f.words[0]))}:this._wordDiv(f,c)},i.prototype.div=function(f){return this.divmod(f,"div",!1).div},i.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},i.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},i.prototype.divRound=function(f){var c=this.divmod(f);if(c.mod.isZero())return c.div;var g=c.div.negative!==0?c.mod.isub(f):c.mod,m=f.ushrn(1),h=f.andln(1),o=g.cmp(m);return o<0||h===1&&o===0?c.div:c.div.negative!==0?c.div.isubn(1):c.div.iaddn(1)},i.prototype.modrn=function(f){var c=f<0;c&&(f=-f),r(f<=67108863);for(var g=(1<<26)%f,m=0,h=this.length-1;h>=0;h--)m=(g*m+(this.words[h]|0))%f;return c?-m:m},i.prototype.modn=function(f){return this.modrn(f)},i.prototype.idivn=function(f){var c=f<0;c&&(f=-f),r(f<=67108863);for(var g=0,m=this.length-1;m>=0;m--){var h=(this.words[m]|0)+g*67108864;this.words[m]=h/f|0,g=h%f}return this._strip(),c?this.ineg():this},i.prototype.divn=function(f){return this.clone().idivn(f)},i.prototype.egcd=function(f){r(f.negative===0),r(!f.isZero());var c=this,g=f.clone();c.negative!==0?c=c.umod(f):c=c.clone();for(var m=new i(1),h=new i(0),o=new i(0),p=new i(1),E=0;c.isEven()&&g.isEven();)c.iushrn(1),g.iushrn(1),++E;for(var b=g.clone(),w=c.clone();!c.isZero();){for(var U=0,S=1;!(c.words[0]&S)&&U<26;++U,S<<=1);if(U>0)for(c.iushrn(U);U-- >0;)(m.isOdd()||h.isOdd())&&(m.iadd(b),h.isub(w)),m.iushrn(1),h.iushrn(1);for(var N=0,G=1;!(g.words[0]&G)&&N<26;++N,G<<=1);if(N>0)for(g.iushrn(N);N-- >0;)(o.isOdd()||p.isOdd())&&(o.iadd(b),p.isub(w)),o.iushrn(1),p.iushrn(1);c.cmp(g)>=0?(c.isub(g),m.isub(o),h.isub(p)):(g.isub(c),o.isub(m),p.isub(h))}return{a:o,b:p,gcd:g.iushln(E)}},i.prototype._invmp=function(f){r(f.negative===0),r(!f.isZero());var c=this,g=f.clone();c.negative!==0?c=c.umod(f):c=c.clone();for(var m=new i(1),h=new i(0),o=g.clone();c.cmpn(1)>0&&g.cmpn(1)>0;){for(var p=0,E=1;!(c.words[0]&E)&&p<26;++p,E<<=1);if(p>0)for(c.iushrn(p);p-- >0;)m.isOdd()&&m.iadd(o),m.iushrn(1);for(var b=0,w=1;!(g.words[0]&w)&&b<26;++b,w<<=1);if(b>0)for(g.iushrn(b);b-- >0;)h.isOdd()&&h.iadd(o),h.iushrn(1);c.cmp(g)>=0?(c.isub(g),m.isub(h)):(g.isub(c),h.isub(m))}var U;return c.cmpn(1)===0?U=m:U=h,U.cmpn(0)<0&&U.iadd(f),U},i.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var c=this.clone(),g=f.clone();c.negative=0,g.negative=0;for(var m=0;c.isEven()&&g.isEven();m++)c.iushrn(1),g.iushrn(1);do{for(;c.isEven();)c.iushrn(1);for(;g.isEven();)g.iushrn(1);var h=c.cmp(g);if(h<0){var o=c;c=g,g=o}else if(h===0||g.cmpn(1)===0)break;c.isub(g)}while(!0);return g.iushln(m)},i.prototype.invm=function(f){return this.egcd(f).a.umod(f)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(f){return this.words[0]&f},i.prototype.bincn=function(f){r(typeof f=="number");var c=f%26,g=(f-c)/26,m=1<<c;if(this.length<=g)return this._expand(g+1),this.words[g]|=m,this;for(var h=m,o=g;h!==0&&o<this.length;o++){var p=this.words[o]|0;p+=h,h=p>>>26,p&=67108863,this.words[o]=p}return h!==0&&(this.words[o]=h,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(f){var c=f<0;if(this.negative!==0&&!c)return-1;if(this.negative===0&&c)return 1;this._strip();var g;if(this.length>1)g=1;else{c&&(f=-f),r(f<=67108863,"Number is too big");var m=this.words[0]|0;g=m===f?0:m<f?-1:1}return this.negative!==0?-g|0:g},i.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var c=this.ucmp(f);return this.negative!==0?-c|0:c},i.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var c=0,g=this.length-1;g>=0;g--){var m=this.words[g]|0,h=f.words[g]|0;if(m!==h){m<h?c=-1:m>h&&(c=1);break}}return c},i.prototype.gtn=function(f){return this.cmpn(f)===1},i.prototype.gt=function(f){return this.cmp(f)===1},i.prototype.gten=function(f){return this.cmpn(f)>=0},i.prototype.gte=function(f){return this.cmp(f)>=0},i.prototype.ltn=function(f){return this.cmpn(f)===-1},i.prototype.lt=function(f){return this.cmp(f)===-1},i.prototype.lten=function(f){return this.cmpn(f)<=0},i.prototype.lte=function(f){return this.cmp(f)<=0},i.prototype.eqn=function(f){return this.cmpn(f)===0},i.prototype.eq=function(f){return this.cmp(f)===0},i.red=function(f){return new s(f)},i.prototype.toRed=function(f){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(f){return this.red=f,this},i.prototype.forceRed=function(f){return r(!this.red,"Already a number in reduction context"),this._forceRed(f)},i.prototype.redAdd=function(f){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},i.prototype.redIAdd=function(f){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},i.prototype.redSub=function(f){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},i.prototype.redISub=function(f){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},i.prototype.redShl=function(f){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},i.prototype.redMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},i.prototype.redIMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(f){return r(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var ne={k256:null,p224:null,p192:null,p25519:null};function $(l,f){this.name=l,this.p=new i(f,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}$.prototype._tmp=function(){var f=new i(null);return f.words=new Array(Math.ceil(this.n/13)),f},$.prototype.ireduce=function(f){var c=f,g;do this.split(c,this.tmp),c=this.imulK(c),c=c.iadd(this.tmp),g=c.bitLength();while(g>this.n);var m=g<this.n?-1:c.ucmp(this.p);return m===0?(c.words[0]=0,c.length=1):m>0?c.isub(this.p):c.strip!==void 0?c.strip():c._strip(),c},$.prototype.split=function(f,c){f.iushrn(this.n,0,c)},$.prototype.imulK=function(f){return f.imul(this.k)};function fe(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(fe,$),fe.prototype.split=function(f,c){for(var g=4194303,m=Math.min(f.length,9),h=0;h<m;h++)c.words[h]=f.words[h];if(c.length=m,f.length<=9){f.words[0]=0,f.length=1;return}var o=f.words[9];for(c.words[c.length++]=o&g,h=10;h<f.length;h++){var p=f.words[h]|0;f.words[h-10]=(p&g)<<4|o>>>22,o=p}o>>>=22,f.words[h-10]=o,o===0&&f.length>10?f.length-=10:f.length-=9},fe.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var c=0,g=0;g<f.length;g++){var m=f.words[g]|0;c+=m*977,f.words[g]=c&67108863,c=m*64+(c/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function te(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(te,$);function Y(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(Y,$);function T(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(T,$),T.prototype.imulK=function(f){for(var c=0,g=0;g<f.length;g++){var m=(f.words[g]|0)*19+c,h=m&67108863;m>>>=26,f.words[g]=h,c=m}return c!==0&&(f.words[f.length++]=c),f},i._prime=function(f){if(ne[f])return ne[f];var c;if(f==="k256")c=new fe;else if(f==="p224")c=new te;else if(f==="p192")c=new Y;else if(f==="p25519")c=new T;else throw new Error("Unknown prime "+f);return ne[f]=c,c};function s(l){if(typeof l=="string"){var f=i._prime(l);this.m=f.p,this.prime=f}else r(l.gtn(1),"modulus must be greater than 1"),this.m=l,this.prime=null}s.prototype._verify1=function(f){r(f.negative===0,"red works only with positives"),r(f.red,"red works only with red numbers")},s.prototype._verify2=function(f,c){r((f.negative|c.negative)===0,"red works only with positives"),r(f.red&&f.red===c.red,"red works only with red numbers")},s.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(x(f,f.umod(this.m)._forceRed(this)),f)},s.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},s.prototype.add=function(f,c){this._verify2(f,c);var g=f.add(c);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},s.prototype.iadd=function(f,c){this._verify2(f,c);var g=f.iadd(c);return g.cmp(this.m)>=0&&g.isub(this.m),g},s.prototype.sub=function(f,c){this._verify2(f,c);var g=f.sub(c);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},s.prototype.isub=function(f,c){this._verify2(f,c);var g=f.isub(c);return g.cmpn(0)<0&&g.iadd(this.m),g},s.prototype.shl=function(f,c){return this._verify1(f),this.imod(f.ushln(c))},s.prototype.imul=function(f,c){return this._verify2(f,c),this.imod(f.imul(c))},s.prototype.mul=function(f,c){return this._verify2(f,c),this.imod(f.mul(c))},s.prototype.isqr=function(f){return this.imul(f,f.clone())},s.prototype.sqr=function(f){return this.mul(f,f)},s.prototype.sqrt=function(f){if(f.isZero())return f.clone();var c=this.m.andln(3);if(r(c%2===1),c===3){var g=this.m.add(new i(1)).iushrn(2);return this.pow(f,g)}for(var m=this.m.subn(1),h=0;!m.isZero()&&m.andln(1)===0;)h++,m.iushrn(1);r(!m.isZero());var o=new i(1).toRed(this),p=o.redNeg(),E=this.m.subn(1).iushrn(1),b=this.m.bitLength();for(b=new i(2*b*b).toRed(this);this.pow(b,E).cmp(p)!==0;)b.redIAdd(p);for(var w=this.pow(b,m),U=this.pow(f,m.addn(1).iushrn(1)),S=this.pow(f,m),N=h;S.cmp(o)!==0;){for(var G=S,Z=0;G.cmp(o)!==0;Z++)G=G.redSqr();r(Z<N);var _=this.pow(w,new i(1).iushln(N-Z-1));U=U.redMul(_),w=_.redSqr(),S=S.redMul(w),N=Z}return U},s.prototype.invm=function(f){var c=f._invmp(this.m);return c.negative!==0?(c.negative=0,this.imod(c).redNeg()):this.imod(c)},s.prototype.pow=function(f,c){if(c.isZero())return new i(1).toRed(this);if(c.cmpn(1)===0)return f.clone();var g=4,m=new Array(1<<g);m[0]=new i(1).toRed(this),m[1]=f;for(var h=2;h<m.length;h++)m[h]=this.mul(m[h-1],f);var o=m[0],p=0,E=0,b=c.bitLength()%26;for(b===0&&(b=26),h=c.length-1;h>=0;h--){for(var w=c.words[h],U=b-1;U>=0;U--){var S=w>>U&1;if(o!==m[0]&&(o=this.sqr(o)),S===0&&p===0){E=0;continue}p<<=1,p|=S,E++,!(E!==g&&(h!==0||U!==0))&&(o=this.mul(o,m[p]),E=0,p=0)}b=26}return o},s.prototype.convertTo=function(f){var c=f.umod(this.m);return c===f?c.clone():c},s.prototype.convertFrom=function(f){var c=f.clone();return c.red=null,c},i.mont=function(f){return new u(f)};function u(l){s.call(this,l),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}n(u,s),u.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},u.prototype.convertFrom=function(f){var c=this.imod(f.mul(this.rinv));return c.red=null,c},u.prototype.imul=function(f,c){if(f.isZero()||c.isZero())return f.words[0]=0,f.length=1,f;var g=f.imul(c),m=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=g.isub(m).iushrn(this.shift),o=h;return h.cmp(this.m)>=0?o=h.isub(this.m):h.cmpn(0)<0&&(o=h.iadd(this.m)),o._forceRed(this)},u.prototype.mul=function(f,c){if(f.isZero()||c.isZero())return new i(0)._forceRed(this);var g=f.mul(c),m=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=g.isub(m).iushrn(this.shift),o=h;return h.cmp(this.m)>=0?o=h.isub(this.m):h.cmpn(0)<0&&(o=h.iadd(this.m)),o._forceRed(this)},u.prototype.invm=function(f){var c=this.imod(f._invmp(this.m).mul(this.r2));return c._forceRed(this)}})(typeof Sl>"u"||Sl,Lb)});var Tl=V(f0=>{"use strict";var aP=A(M());Object.defineProperty(f0,"__esModule",{value:!0});f0.version=void 0;f0.version="bignumber/5.8.0"});var u0=V(Qr=>{"use strict";var sP=A(M()),S4=Qr&&Qr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qr,"__esModule",{value:!0});Qr._base16To36=Qr._base36To16=Qr.BigNumber=Qr.isBigNumberish=void 0;var T4=S4(Rb()),Ms=T4.default.BN,bo=nt(),go=Ct(),E4=Tl(),pi=new go.Logger(E4.version),El={},Fb=9007199254740991;function _4(t){return t!=null&&(c0.isBigNumber(t)||typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||(0,bo.isHexString)(t)||typeof t=="bigint"||(0,bo.isBytes)(t))}Qr.isBigNumberish=_4;var Db=!1,c0=function(){function t(e,r){e!==El&&pi.throwError("cannot call constructor directly; use BigNumber.from",go.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}return t.prototype.fromTwos=function(e){return Br(He(this).fromTwos(e))},t.prototype.toTwos=function(e){return Br(He(this).toTwos(e))},t.prototype.abs=function(){return this._hex[0]==="-"?t.from(this._hex.substring(1)):this},t.prototype.add=function(e){return Br(He(this).add(He(e)))},t.prototype.sub=function(e){return Br(He(this).sub(He(e)))},t.prototype.div=function(e){var r=t.from(e);return r.isZero()&&jr("division-by-zero","div"),Br(He(this).div(He(e)))},t.prototype.mul=function(e){return Br(He(this).mul(He(e)))},t.prototype.mod=function(e){var r=He(e);return r.isNeg()&&jr("division-by-zero","mod"),Br(He(this).umod(r))},t.prototype.pow=function(e){var r=He(e);return r.isNeg()&&jr("negative-power","pow"),Br(He(this).pow(r))},t.prototype.and=function(e){var r=He(e);return(this.isNegative()||r.isNeg())&&jr("unbound-bitwise-result","and"),Br(He(this).and(r))},t.prototype.or=function(e){var r=He(e);return(this.isNegative()||r.isNeg())&&jr("unbound-bitwise-result","or"),Br(He(this).or(r))},t.prototype.xor=function(e){var r=He(e);return(this.isNegative()||r.isNeg())&&jr("unbound-bitwise-result","xor"),Br(He(this).xor(r))},t.prototype.mask=function(e){return(this.isNegative()||e<0)&&jr("negative-width","mask"),Br(He(this).maskn(e))},t.prototype.shl=function(e){return(this.isNegative()||e<0)&&jr("negative-width","shl"),Br(He(this).shln(e))},t.prototype.shr=function(e){return(this.isNegative()||e<0)&&jr("negative-width","shr"),Br(He(this).shrn(e))},t.prototype.eq=function(e){return He(this).eq(He(e))},t.prototype.lt=function(e){return He(this).lt(He(e))},t.prototype.lte=function(e){return He(this).lte(He(e))},t.prototype.gt=function(e){return He(this).gt(He(e))},t.prototype.gte=function(e){return He(this).gte(He(e))},t.prototype.isNegative=function(){return this._hex[0]==="-"},t.prototype.isZero=function(){return He(this).isZero()},t.prototype.toNumber=function(){try{return He(this).toNumber()}catch{jr("overflow","toNumber",this.toString())}return null},t.prototype.toBigInt=function(){try{return BigInt(this.toString())}catch{}return pi.throwError("this platform does not support BigInt",go.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})},t.prototype.toString=function(){return arguments.length>0&&(arguments[0]===10?Db||(Db=!0,pi.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?pi.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",go.Logger.errors.UNEXPECTED_ARGUMENT,{}):pi.throwError("BigNumber.toString does not accept parameters",go.Logger.errors.UNEXPECTED_ARGUMENT,{})),He(this).toString(10)},t.prototype.toHexString=function(){return this._hex},t.prototype.toJSON=function(e){return{type:"BigNumber",hex:this.toHexString()}},t.from=function(e){if(e instanceof t)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new t(El,Ss(e)):e.match(/^-?[0-9]+$/)?new t(El,Ss(new Ms(e))):pi.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&jr("underflow","BigNumber.from",e),(e>=Fb||e<=-Fb)&&jr("overflow","BigNumber.from",e),t.from(String(e));var r=e;if(typeof r=="bigint")return t.from(r.toString());if((0,bo.isBytes)(r))return t.from((0,bo.hexlify)(r));if(r)if(r.toHexString){var n=r.toHexString();if(typeof n=="string")return t.from(n)}else{var n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&((0,bo.isHexString)(n)||n[0]==="-"&&(0,bo.isHexString)(n.substring(1))))return t.from(n)}return pi.throwArgumentError("invalid BigNumber value","value",e)},t.isBigNumber=function(e){return!!(e&&e._isBigNumber)},t}();Qr.BigNumber=c0;function Ss(t){if(typeof t!="string")return Ss(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&pi.throwArgumentError("invalid hex","value",t),t=Ss(t),t==="0x00"?t:"-"+t;if(t.substring(0,2)!=="0x"&&(t="0x"+t),t==="0x")return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&t.substring(0,4)==="0x00";)t="0x"+t.substring(4);return t}function Br(t){return c0.from(Ss(t))}function He(t){var e=c0.from(t).toHexString();return e[0]==="-"?new Ms("-"+e.substring(3),16):new Ms(e.substring(2),16)}function jr(t,e,r){var n={fault:t,operation:e};return r!=null&&(n.value=r),pi.throwError(t,go.Logger.errors.NUMERIC_FAULT,n)}function B4(t){return new Ms(t,36).toString(16)}Qr._base36To16=B4;function C4(t){return new Ms(t,16).toString(36)}Qr._base16To36=C4});var Jb=V(Jn=>{"use strict";var cP=A(M());Object.defineProperty(Jn,"__esModule",{value:!0});Jn.FixedNumber=Jn.FixedFormat=Jn.parseFixed=Jn.formatFixed=void 0;var l0=nt(),_s=Ct(),P4=Tl(),Sr=new _s.Logger(P4.version),bi=u0(),Ts={},Ib=bi.BigNumber.from(0),Nb=bi.BigNumber.from(-1);function kb(t,e,r,n){var i={fault:e,operation:r};return n!==void 0&&(i.value=n),Sr.throwError(t,_s.Logger.errors.NUMERIC_FAULT,i)}var Es="0";for(;Es.length<256;)Es+=Es;function _l(t){if(typeof t!="number")try{t=bi.BigNumber.from(t).toNumber()}catch{}return typeof t=="number"&&t>=0&&t<=256&&!(t%1)?"1"+Es.substring(0,t):Sr.throwArgumentError("invalid decimal size","decimals",t)}function d0(t,e){e==null&&(e=0);var r=_l(e);t=bi.BigNumber.from(t);var n=t.lt(Ib);n&&(t=t.mul(Nb));for(var i=t.mod(r).toString();i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];var a=t.div(r).toString();return r.length===1?t=a:t=a+"."+i,n&&(t="-"+t),t}Jn.formatFixed=d0;function kn(t,e){e==null&&(e=0);var r=_l(e);(typeof t!="string"||!t.match(/^-?[0-9.]+$/))&&Sr.throwArgumentError("invalid decimal value","value",t);var n=t.substring(0,1)==="-";n&&(t=t.substring(1)),t==="."&&Sr.throwArgumentError("missing value","value",t);var i=t.split(".");i.length>2&&Sr.throwArgumentError("too many decimal points","value",t);var a=i[0],d=i[1];for(a||(a="0"),d||(d="0");d[d.length-1]==="0";)d=d.substring(0,d.length-1);for(d.length>r.length-1&&kb("fractional component exceeds decimals","underflow","parseFixed"),d===""&&(d="0");d.length<r.length-1;)d+="0";var v=bi.BigNumber.from(a),y=bi.BigNumber.from(d),x=v.mul(r).add(y);return n&&(x=x.mul(Nb)),x}Jn.parseFixed=kn;var h0=function(){function t(e,r,n,i){e!==Ts&&Sr.throwError("cannot use FixedFormat constructor; use FixedFormat.from",_s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=r,this.width=n,this.decimals=i,this.name=(r?"":"u")+"fixed"+String(n)+"x"+String(i),this._multiplier=_l(i),Object.freeze(this)}return t.from=function(e){if(e instanceof t)return e;typeof e=="number"&&(e="fixed128x"+e);var r=!0,n=128,i=18;if(typeof e=="string"){if(e!=="fixed")if(e==="ufixed")r=!1;else{var a=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);a||Sr.throwArgumentError("invalid fixed format","format",e),r=a[1]!=="u",n=parseInt(a[2]),i=parseInt(a[3])}}else if(e){var d=function(v,y,x){return e[v]==null?x:(typeof e[v]!==y&&Sr.throwArgumentError("invalid fixed format ("+v+" not "+y+")","format."+v,e[v]),e[v])};r=d("signed","boolean",r),n=d("width","number",n),i=d("decimals","number",i)}return n%8&&Sr.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&Sr.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new t(Ts,r,n,i)},t}();Jn.FixedFormat=h0;var Bl=function(){function t(e,r,n,i){e!==Ts&&Sr.throwError("cannot use FixedNumber constructor; use FixedNumber.from",_s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return t.prototype._checkFormat=function(e){this.format.name!==e.format.name&&Sr.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)},t.prototype.addUnsafe=function(e){this._checkFormat(e);var r=kn(this._value,this.format.decimals),n=kn(e._value,e.format.decimals);return t.fromValue(r.add(n),this.format.decimals,this.format)},t.prototype.subUnsafe=function(e){this._checkFormat(e);var r=kn(this._value,this.format.decimals),n=kn(e._value,e.format.decimals);return t.fromValue(r.sub(n),this.format.decimals,this.format)},t.prototype.mulUnsafe=function(e){this._checkFormat(e);var r=kn(this._value,this.format.decimals),n=kn(e._value,e.format.decimals);return t.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)},t.prototype.divUnsafe=function(e){this._checkFormat(e);var r=kn(this._value,this.format.decimals),n=kn(e._value,e.format.decimals);return t.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)},t.prototype.floor=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var r=t.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(Ob.toFormat(r.format))),r},t.prototype.ceiling=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var r=t.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(Ob.toFormat(r.format))),r},t.prototype.round=function(e){e==null&&(e=0);var r=this.toString().split(".");if(r.length===1&&r.push("0"),(e<0||e>80||e%1)&&Sr.throwArgumentError("invalid decimal count","decimals",e),r[1].length<=e)return this;var n=t.from("1"+Es.substring(0,e),this.format),i=L4.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)},t.prototype.isZero=function(){return this._value==="0.0"||this._value==="0"},t.prototype.isNegative=function(){return this._value[0]==="-"},t.prototype.toString=function(){return this._value},t.prototype.toHexString=function(e){if(e==null)return this._hex;e%8&&Sr.throwArgumentError("invalid byte width","width",e);var r=bi.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,l0.hexZeroPad)(r,e/8)},t.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())},t.prototype.toFormat=function(e){return t.fromString(this._value,e)},t.fromValue=function(e,r,n){return n==null&&r!=null&&!(0,bi.isBigNumberish)(r)&&(n=r,r=null),r==null&&(r=0),n==null&&(n="fixed"),t.fromString(d0(e,r),h0.from(n))},t.fromString=function(e,r){r==null&&(r="fixed");var n=h0.from(r),i=kn(e,n.decimals);!n.signed&&i.lt(Ib)&&kb("unsigned value cannot be negative","overflow","value",e);var a=null;n.signed?a=i.toTwos(n.width).toHexString():(a=i.toHexString(),a=(0,l0.hexZeroPad)(a,n.width/8));var d=d0(i,n.decimals);return new t(Ts,a,d,n)},t.fromBytes=function(e,r){r==null&&(r="fixed");var n=h0.from(r);if((0,l0.arrayify)(e).length>n.width/8)throw new Error("overflow");var i=bi.BigNumber.from(e);n.signed&&(i=i.fromTwos(n.width));var a=i.toTwos((n.signed?0:1)+n.width).toHexString(),d=d0(i,n.decimals);return new t(Ts,a,d,n)},t.from=function(e,r){if(typeof e=="string")return t.fromString(e,r);if((0,l0.isBytes)(e))return t.fromBytes(e,r);try{return t.fromValue(e,0,r)}catch(n){if(n.code!==_s.Logger.errors.INVALID_ARGUMENT)throw n}return Sr.throwArgumentError("invalid FixedNumber value","value",e)},t.isFixedNumber=function(e){return!!(e&&e._isFixedNumber)},t}();Jn.FixedNumber=Bl;var Ob=Bl.from(1),L4=Bl.from("0.5")});var ga=V(sr=>{"use strict";var lP=A(M());Object.defineProperty(sr,"__esModule",{value:!0});sr._base36To16=sr._base16To36=sr.parseFixed=sr.FixedNumber=sr.FixedFormat=sr.formatFixed=sr.BigNumber=void 0;var R4=u0();Object.defineProperty(sr,"BigNumber",{enumerable:!0,get:function(){return R4.BigNumber}});var p0=Jb();Object.defineProperty(sr,"formatFixed",{enumerable:!0,get:function(){return p0.formatFixed}});Object.defineProperty(sr,"FixedFormat",{enumerable:!0,get:function(){return p0.FixedFormat}});Object.defineProperty(sr,"FixedNumber",{enumerable:!0,get:function(){return p0.FixedNumber}});Object.defineProperty(sr,"parseFixed",{enumerable:!0,get:function(){return p0.parseFixed}});var Ub=u0();Object.defineProperty(sr,"_base16To36",{enumerable:!0,get:function(){return Ub._base16To36}});Object.defineProperty(sr,"_base36To16",{enumerable:!0,get:function(){return Ub._base36To16}})});var Hb=V(kt=>{"use strict";var hP=A(M());Object.defineProperty(kt,"__esModule",{value:!0});kt.MaxInt256=kt.MinInt256=kt.MaxUint256=kt.WeiPerEther=kt.Two=kt.One=kt.Zero=kt.NegativeOne=void 0;var Ni=ga(),F4=Ni.BigNumber.from(-1);kt.NegativeOne=F4;var D4=Ni.BigNumber.from(0);kt.Zero=D4;var O4=Ni.BigNumber.from(1);kt.One=O4;var I4=Ni.BigNumber.from(2);kt.Two=I4;var N4=Ni.BigNumber.from("1000000000000000000");kt.WeiPerEther=N4;var k4=Ni.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");kt.MaxUint256=k4;var J4=Ni.BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000");kt.MinInt256=J4;var U4=Ni.BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");kt.MaxInt256=U4});var qb=V(b0=>{"use strict";var bP=A(M());Object.defineProperty(b0,"__esModule",{value:!0});b0.HashZero=void 0;b0.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000"});var Gb=V(g0=>{"use strict";var vP=A(M());Object.defineProperty(g0,"__esModule",{value:!0});g0.EtherSymbol=void 0;g0.EtherSymbol="\u039E"});var Cl=V(ut=>{"use strict";var xP=A(M());Object.defineProperty(ut,"__esModule",{value:!0});ut.EtherSymbol=ut.HashZero=ut.MaxInt256=ut.MinInt256=ut.MaxUint256=ut.WeiPerEther=ut.Two=ut.One=ut.Zero=ut.NegativeOne=ut.AddressZero=void 0;var H4=Pb();Object.defineProperty(ut,"AddressZero",{enumerable:!0,get:function(){return H4.AddressZero}});var ki=Hb();Object.defineProperty(ut,"NegativeOne",{enumerable:!0,get:function(){return ki.NegativeOne}});Object.defineProperty(ut,"Zero",{enumerable:!0,get:function(){return ki.Zero}});Object.defineProperty(ut,"One",{enumerable:!0,get:function(){return ki.One}});Object.defineProperty(ut,"Two",{enumerable:!0,get:function(){return ki.Two}});Object.defineProperty(ut,"WeiPerEther",{enumerable:!0,get:function(){return ki.WeiPerEther}});Object.defineProperty(ut,"MaxUint256",{enumerable:!0,get:function(){return ki.MaxUint256}});Object.defineProperty(ut,"MinInt256",{enumerable:!0,get:function(){return ki.MinInt256}});Object.defineProperty(ut,"MaxInt256",{enumerable:!0,get:function(){return ki.MaxInt256}});var q4=qb();Object.defineProperty(ut,"HashZero",{enumerable:!0,get:function(){return q4.HashZero}});var G4=Gb();Object.defineProperty(ut,"EtherSymbol",{enumerable:!0,get:function(){return G4.EtherSymbol}})});var Xb=V(v0=>{"use strict";var wP=A(M());Object.defineProperty(v0,"__esModule",{value:!0});v0.version=void 0;v0.version="strings/5.8.0"});var x0=V(At=>{"use strict";var MP=A(M());Object.defineProperty(At,"__esModule",{value:!0});At.toUtf8CodePoints=At.toUtf8String=At._toUtf8String=At._toEscapedUtf8String=At.toUtf8Bytes=At.Utf8ErrorFuncs=At.Utf8ErrorReason=At.UnicodeNormalizationForm=void 0;var zb=nt(),X4=Ct(),z4=Xb(),Kb=new X4.Logger(z4.version),m0;(function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"})(m0=At.UnicodeNormalizationForm||(At.UnicodeNormalizationForm={}));var Wr;(function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"})(Wr=At.Utf8ErrorReason||(At.Utf8ErrorReason={}));function K4(t,e,r,n,i){return Kb.throwArgumentError("invalid codepoint at offset "+e+"; "+t,"bytes",r)}function Zb(t,e,r,n,i){if(t===Wr.BAD_PREFIX||t===Wr.UNEXPECTED_CONTINUE){for(var a=0,d=e+1;d<r.length&&r[d]>>6===2;d++)a++;return a}return t===Wr.OVERRUN?r.length-e-1:0}function Z4(t,e,r,n,i){return t===Wr.OVERLONG?(n.push(i),0):(n.push(65533),Zb(t,e,r,n,i))}At.Utf8ErrorFuncs=Object.freeze({error:K4,ignore:Zb,replace:Z4});function Ll(t,e){e==null&&(e=At.Utf8ErrorFuncs.error),t=(0,zb.arrayify)(t);for(var r=[],n=0;n<t.length;){var i=t[n++];if(!(i>>7)){r.push(i);continue}var a=null,d=null;if((i&224)===192)a=1,d=127;else if((i&240)===224)a=2,d=2047;else if((i&248)===240)a=3,d=65535;else{(i&192)===128?n+=e(Wr.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(Wr.BAD_PREFIX,n-1,t,r);continue}if(n-1+a>=t.length){n+=e(Wr.OVERRUN,n-1,t,r);continue}for(var v=i&(1<<8-a-1)-1,y=0;y<a;y++){var x=t[n];if((x&192)!=128){n+=e(Wr.MISSING_CONTINUE,n,t,r),v=null;break}v=v<<6|x&63,n++}if(v!==null){if(v>1114111){n+=e(Wr.OUT_OF_RANGE,n-1-a,t,r,v);continue}if(v>=55296&&v<=57343){n+=e(Wr.UTF16_SURROGATE,n-1-a,t,r,v);continue}if(v<=d){n+=e(Wr.OVERLONG,n-1-a,t,r,v);continue}r.push(v)}}return r}function Vb(t,e){e===void 0&&(e=m0.current),e!=m0.current&&(Kb.checkNormalize(),t=t.normalize(e));for(var r=[],n=0;n<t.length;n++){var i=t.charCodeAt(n);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;var a=t.charCodeAt(n);if(n>=t.length||(a&64512)!==56320)throw new Error("invalid utf-8 string");var d=65536+((i&1023)<<10)+(a&1023);r.push(d>>18|240),r.push(d>>12&63|128),r.push(d>>6&63|128),r.push(d&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return(0,zb.arrayify)(r)}At.toUtf8Bytes=Vb;function Pl(t){var e="0000"+t.toString(16);return"\\u"+e.substring(e.length-4)}function V4(t,e){return'"'+Ll(t,e).map(function(r){if(r<256){switch(r){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(r>=32&&r<127)return String.fromCharCode(r)}return r<=65535?Pl(r):(r-=65536,Pl((r>>10&1023)+55296)+Pl((r&1023)+56320))}).join("")+'"'}At._toEscapedUtf8String=V4;function jb(t){return t.map(function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))}).join("")}At._toUtf8String=jb;function j4(t,e){return jb(Ll(t,e))}At.toUtf8String=j4;function Q4(t,e){return e===void 0&&(e=m0.current),Ll(Vb(t,e))}At.toUtf8CodePoints=Q4});var Wb=V(vo=>{"use strict";var TP=A(M());Object.defineProperty(vo,"__esModule",{value:!0});vo.parseBytes32String=vo.formatBytes32String=void 0;var W4=Cl(),Rl=nt(),Qb=x0();function Y4(t){var e=(0,Qb.toUtf8Bytes)(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,Rl.hexlify)((0,Rl.concat)([e,W4.HashZero]).slice(0,32))}vo.formatBytes32String=Y4;function $4(t){var e=(0,Rl.arrayify)(t);if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");for(var r=31;e[r-1]===0;)r--;return(0,Qb.toUtf8String)(e.slice(0,r))}vo.parseBytes32String=$4});var rg=V(Un=>{"use strict";var _P=A(M());Object.defineProperty(Un,"__esModule",{value:!0});Un.nameprep=Un._nameprepTableC=Un._nameprepTableB2=Un._nameprepTableA1=void 0;var Bs=x0();function e5(t){if(t.length%4!==0)throw new Error("bad data");for(var e=[],r=0;r<t.length;r+=4)e.push(parseInt(t.substring(r,r+4),16));return e}function Fl(t,e){e||(e=function(i){return[parseInt(i,16)]});var r=0,n={};return t.split(",").forEach(function(i){var a=i.split(":");r+=parseInt(a[0],16),n[r]=e(a[1])}),n}function Yb(t){var e=0;return t.split(",").map(function(r){var n=r.split("-");n.length===1?n[1]="0":n[1]===""&&(n[1]="1");var i=e+parseInt(n[0],16);return e=parseInt(n[1],16),{l:i,h:e}})}function Dl(t,e){for(var r=0,n=0;n<e.length;n++){var i=e[n];if(r+=i.l,t>=r&&t<=r+i.h&&(t-r)%(i.d||1)===0){if(i.e&&i.e.indexOf(t-r)!==-1)continue;return i}}return null}var t5=Yb("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),r5="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(function(t){return parseInt(t,16)}),n5=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],i5=Fl("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),a5=Fl("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),o5=Fl("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",e5),s5=Yb("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function f5(t){return t.reduce(function(e,r){return r.forEach(function(n){e.push(n)}),e},[])}function $b(t){return!!Dl(t,t5)}Un._nameprepTableA1=$b;function eg(t){var e=Dl(t,n5);if(e)return[t+e.s];var r=i5[t];if(r)return r;var n=a5[t];if(n)return[t+n[0]];var i=o5[t];return i||null}Un._nameprepTableB2=eg;function tg(t){return!!Dl(t,s5)}Un._nameprepTableC=tg;function c5(t){if(t.match(/^[a-z0-9-]*$/i)&&t.length<=59)return t.toLowerCase();var e=(0,Bs.toUtf8CodePoints)(t);e=f5(e.map(function(n){if(r5.indexOf(n)>=0)return[];if(n>=65024&&n<=65039)return[];var i=eg(n);return i||[n]})),e=(0,Bs.toUtf8CodePoints)((0,Bs._toUtf8String)(e),Bs.UnicodeNormalizationForm.NFKC),e.forEach(function(n){if(tg(n))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(function(n){if($b(n))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});var r=(0,Bs._toUtf8String)(e);if(r.substring(0,1)==="-"||r.substring(2,4)==="--"||r.substring(r.length-1)==="-")throw new Error("invalid hyphen");return r}Un.nameprep=c5});var Or=V(ht=>{"use strict";var CP=A(M());Object.defineProperty(ht,"__esModule",{value:!0});ht.nameprep=ht.parseBytes32String=ht.formatBytes32String=ht.UnicodeNormalizationForm=ht.Utf8ErrorReason=ht.Utf8ErrorFuncs=ht.toUtf8String=ht.toUtf8CodePoints=ht.toUtf8Bytes=ht._toEscapedUtf8String=void 0;var ng=Wb();Object.defineProperty(ht,"formatBytes32String",{enumerable:!0,get:function(){return ng.formatBytes32String}});Object.defineProperty(ht,"parseBytes32String",{enumerable:!0,get:function(){return ng.parseBytes32String}});var u5=rg();Object.defineProperty(ht,"nameprep",{enumerable:!0,get:function(){return u5.nameprep}});var va=x0();Object.defineProperty(ht,"_toEscapedUtf8String",{enumerable:!0,get:function(){return va._toEscapedUtf8String}});Object.defineProperty(ht,"toUtf8Bytes",{enumerable:!0,get:function(){return va.toUtf8Bytes}});Object.defineProperty(ht,"toUtf8CodePoints",{enumerable:!0,get:function(){return va.toUtf8CodePoints}});Object.defineProperty(ht,"toUtf8String",{enumerable:!0,get:function(){return va.toUtf8String}});Object.defineProperty(ht,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return va.UnicodeNormalizationForm}});Object.defineProperty(ht,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return va.Utf8ErrorFuncs}});Object.defineProperty(ht,"Utf8ErrorReason",{enumerable:!0,get:function(){return va.Utf8ErrorReason}})});var Ol=V(y0=>{"use strict";var LP=A(M());Object.defineProperty(y0,"__esModule",{value:!0});y0.id=void 0;var l5=Nn(),d5=Or();function h5(t){return(0,l5.keccak256)((0,d5.toUtf8Bytes)(t))}y0.id=h5});var Il=V(w0=>{"use strict";var FP=A(M());Object.defineProperty(w0,"__esModule",{value:!0});w0.version=void 0;w0.version="hash/5.8.0"});var ag=V(mo=>{"use strict";var OP=A(M());Object.defineProperty(mo,"__esModule",{value:!0});mo.encode=mo.decode=void 0;var ig=nt();function p5(t){return(0,ig.arrayify)(new Uint8Array(Buffer.from(t,"base64")))}mo.decode=p5;function b5(t){return Buffer.from((0,ig.arrayify)(t)).toString("base64")}mo.encode=b5});var sg=V(xo=>{"use strict";var NP=A(M());Object.defineProperty(xo,"__esModule",{value:!0});xo.encode=xo.decode=void 0;var og=ag();Object.defineProperty(xo,"decode",{enumerable:!0,get:function(){return og.decode}});Object.defineProperty(xo,"encode",{enumerable:!0,get:function(){return og.encode}})});var kl=V(Jt=>{"use strict";var JP=A(M());Object.defineProperty(Jt,"__esModule",{value:!0});Jt.read_emoji_trie=Jt.read_zero_terminated_array=Jt.read_mapped_map=Jt.read_member_array=Jt.signed=Jt.read_compressed_payload=Jt.read_payload=Jt.decode_arithmetic=void 0;function cg(t,e){e==null&&(e=1);var r=[],n=r.forEach,i=function(a,d){n.call(a,function(v){d>0&&Array.isArray(v)?i(v,d-1):r.push(v)})};return i(t,e),r}function g5(t){for(var e={},r=0;r<t.length;r++){var n=t[r];e[n[0]]=n[1]}return e}function ug(t){var e=0;function r(){return t[e++]<<8|t[e++]}for(var n=r(),i=1,a=[0,1],d=1;d<n;d++)a.push(i+=r());var v=r(),y=e;e+=v;var x=0,B=0;function C(){return x==0&&(B=B<<8|t[e++],x=8),B>>--x&1}for(var D=31,F=Math.pow(2,D),P=F>>>1,X=P>>1,W=F-1,K=0,d=0;d<D;d++)K=K<<1|C();for(var ie=[],ee=0,ae=F;;){for(var ne=Math.floor(((K-ee+1)*i-1)/ae),$=0,fe=n;fe-$>1;){var te=$+fe>>>1;ne<a[te]?fe=te:$=te}if($==0)break;ie.push($);for(var Y=ee+Math.floor(ae*a[$]/i),T=ee+Math.floor(ae*a[$+1]/i)-1;!((Y^T)&P);)K=K<<1&W|C(),Y=Y<<1&W,T=T<<1&W|1;for(;Y&~T&X;)K=K&P|K<<1&W>>>1|C(),Y=Y<<1^P,T=(T^P)<<1|P|1;ee=Y,ae=1+T-Y}var s=n-4;return ie.map(function(u){switch(u-s){case 3:return s+65792+(t[y++]<<16|t[y++]<<8|t[y++]);case 2:return s+256+(t[y++]<<8|t[y++]);case 1:return s+t[y++];default:return u-1}})}Jt.decode_arithmetic=ug;function lg(t){var e=0;return function(){return t[e++]}}Jt.read_payload=lg;function v5(t){return lg(ug(t))}Jt.read_compressed_payload=v5;function dg(t){return t&1?~t>>1:t>>1}Jt.signed=dg;function m5(t,e){for(var r=Array(t),n=0;n<t;n++)r[n]=1+e();return r}function fg(t,e){for(var r=Array(t),n=0,i=-1;n<t;n++)r[n]=i+=1+e();return r}function x5(t,e){for(var r=Array(t),n=0,i=0;n<t;n++)r[n]=i+=dg(e());return r}function Nl(t,e){for(var r=fg(t(),t),n=t(),i=fg(n,t),a=m5(n,t),d=0;d<n;d++)for(var v=0;v<a[d];v++)r.push(i[d]+v);return e?r.map(function(y){return e[y]}):r}Jt.read_member_array=Nl;function y5(t){for(var e=[];;){var r=t();if(r==0)break;e.push(w5(r,t))}for(;;){var r=t()-1;if(r<0)break;e.push(A5(r,t))}return g5(cg(e))}Jt.read_mapped_map=y5;function hg(t){for(var e=[];;){var r=t();if(r==0)break;e.push(r)}return e}Jt.read_zero_terminated_array=hg;function pg(t,e,r){for(var n=Array(t).fill(void 0).map(function(){return[]}),i=0;i<e;i++)x5(t,r).forEach(function(a,d){return n[d].push(a)});return n}function w5(t,e){var r=1+e(),n=e(),i=hg(e),a=pg(i.length,1+t,e);return cg(a.map(function(d,v){var y=d[0],x=d.slice(1);return Array(i[v]).fill(void 0).map(function(B,C){var D=C*n;return[y+C*r,x.map(function(F){return F+D})]})}))}function A5(t,e){var r=1+e(),n=pg(r,1+t,e);return n.map(function(i){return[i[0],i.slice(1)]})}function M5(t){var e=Nl(t).sort(function(n,i){return n-i});return r();function r(){for(var n=[];;){var i=Nl(t,e);if(i.length==0)break;n.push({set:new Set(i),node:r()})}n.sort(function(B,C){return C.set.size-B.set.size});var a=t(),d=a%3;a=a/3|0;var v=!!(a&1);a>>=1;var y=a==1,x=a==2;return{branches:n,valid:d,fe0f:v,save:y,check:x}}}Jt.read_emoji_trie=M5});var bg=V(A0=>{"use strict";var HP=A(M());Object.defineProperty(A0,"__esModule",{value:!0});A0.getData=void 0;var S5=sg(),T5=kl();function E5(){return(0,T5.read_compressed_payload)((0,S5.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}A0.getData=E5});var xg=V(yo=>{"use strict";var GP=A(M());Object.defineProperty(yo,"__esModule",{value:!0});yo.ens_normalize=yo.ens_normalize_post_check=void 0;var _5=Or(),B5=bg(),M0=(0,B5.getData)(),S0=kl(),C5=new Set((0,S0.read_member_array)(M0)),P5=new Set((0,S0.read_member_array)(M0)),L5=(0,S0.read_mapped_map)(M0),R5=(0,S0.read_emoji_trie)(M0),gg=45,vg=95;function mg(t){return(0,_5.toUtf8CodePoints)(t)}function F5(t){return t.filter(function(e){return e!=65039})}function Jl(t){for(var e=0,r=t.split(".");e<r.length;e++){var n=r[e],i=mg(n);try{for(var a=i.lastIndexOf(vg)-1;a>=0;a--)if(i[a]!==vg)throw new Error("underscore only allowed at start");if(i.length>=4&&i.every(function(d){return d<128})&&i[2]===gg&&i[3]===gg)throw new Error("invalid label extension")}catch(d){throw new Error('Invalid label "'+n+'": '+d.message)}}return t}yo.ens_normalize_post_check=Jl;function D5(t){return Jl(O5(t,F5))}yo.ens_normalize=D5;function O5(t,e){for(var r=mg(t).reverse(),n=[];r.length;){var i=N5(r);if(i){n.push.apply(n,e(i));continue}var a=r.pop();if(C5.has(a)){n.push(a);continue}if(!P5.has(a)){var d=L5[a];if(d){n.push.apply(n,d);continue}throw new Error("Disallowed codepoint: 0x"+a.toString(16).toUpperCase())}}return Jl(I5(String.fromCodePoint.apply(String,n)))}function I5(t){return t.normalize("NFC")}function N5(t,e){var r,n=R5,i,a,d=[],v=t.length;e&&(e.length=0);for(var y=function(){var B=t[--v];if(n=(r=n.branches.find(function(C){return C.set.has(B)}))===null||r===void 0?void 0:r.node,!n)return"break";if(n.save)a=B;else if(n.check&&B===a)return"break";d.push(B),n.fe0f&&(d.push(65039),v>0&&t[v-1]==65039&&v--),n.valid&&(i=d.slice(),n.valid==2&&i.splice(1,1),e&&e.push.apply(e,t.slice(v).reverse()),t.length=v)};v;){var x=y();if(x==="break")break}return i}});var Ul=V(Hn=>{"use strict";var zP=A(M());Object.defineProperty(Hn,"__esModule",{value:!0});Hn.dnsEncode=Hn.namehash=Hn.isValidName=Hn.ensNormalize=void 0;var T0=nt(),Ag=Or(),yg=Nn(),k5=Ct(),J5=Il(),U5=new k5.Logger(J5.version),H5=xg(),Mg=new Uint8Array(32);Mg.fill(0);function wg(t){if(t.length===0)throw new Error("invalid ENS name; empty component");return t}function E0(t){var e=(0,Ag.toUtf8Bytes)((0,H5.ens_normalize)(t)),r=[];if(t.length===0)return r;for(var n=0,i=0;i<e.length;i++){var a=e[i];a===46&&(r.push(wg(e.slice(n,i))),n=i+1)}if(n>=e.length)throw new Error("invalid ENS name; empty component");return r.push(wg(e.slice(n))),r}function q5(t){return E0(t).map(function(e){return(0,Ag.toUtf8String)(e)}).join(".")}Hn.ensNormalize=q5;function G5(t){try{return E0(t).length!==0}catch{}return!1}Hn.isValidName=G5;function X5(t){typeof t!="string"&&U5.throwArgumentError("invalid ENS name; not a string","name",t);for(var e=Mg,r=E0(t);r.length;)e=(0,yg.keccak256)((0,T0.concat)([e,(0,yg.keccak256)(r.pop())]));return(0,T0.hexlify)(e)}Hn.namehash=X5;function z5(t){return(0,T0.hexlify)((0,T0.concat)(E0(t).map(function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var r=new Uint8Array(e.length+1);return r.set(e,1),r[0]=r.length-1,r})))+"00"}Hn.dnsEncode=z5});var Sg=V(ma=>{"use strict";var ZP=A(M());Object.defineProperty(ma,"__esModule",{value:!0});ma.hashMessage=ma.messagePrefix=void 0;var K5=nt(),Z5=Nn(),Hl=Or();ma.messagePrefix=`Ethereum Signed Message:
10
+ `;function V5(t){return typeof t=="string"&&(t=(0,Hl.toUtf8Bytes)(t)),(0,Z5.keccak256)((0,K5.concat)([(0,Hl.toUtf8Bytes)(ma.messagePrefix),(0,Hl.toUtf8Bytes)(String(t.length)),t]))}ma.hashMessage=V5});var Tg=V(_0=>{"use strict";var jP=A(M());Object.defineProperty(_0,"__esModule",{value:!0});_0.version=void 0;_0.version="rlp/5.8.0"});var ql=V(wo=>{"use strict";var WP=A(M());Object.defineProperty(wo,"__esModule",{value:!0});wo.decode=wo.encode=void 0;var xa=nt(),gi=Ct(),j5=Tg(),qn=new gi.Logger(j5.version);function Eg(t){for(var e=[];t;)e.unshift(t&255),t>>=8;return e}function _g(t,e,r){for(var n=0,i=0;i<r;i++)n=n*256+t[e+i];return n}function Cg(t){if(Array.isArray(t)){var e=[];if(t.forEach(function(a){e=e.concat(Cg(a))}),e.length<=55)return e.unshift(192+e.length),e;var r=Eg(e.length);return r.unshift(247+r.length),r.concat(e)}(0,xa.isBytesLike)(t)||qn.throwArgumentError("RLP object must be BytesLike","object",t);var n=Array.prototype.slice.call((0,xa.arrayify)(t));if(n.length===1&&n[0]<=127)return n;if(n.length<=55)return n.unshift(128+n.length),n;var i=Eg(n.length);return i.unshift(183+i.length),i.concat(n)}function Q5(t){return(0,xa.hexlify)(Cg(t))}wo.encode=Q5;function Bg(t,e,r,n){for(var i=[];r<e+1+n;){var a=Pg(t,r);i.push(a.result),r+=a.consumed,r>e+1+n&&qn.throwError("child data too short",gi.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function Pg(t,e){if(t.length===0&&qn.throwError("data too short",gi.Logger.errors.BUFFER_OVERRUN,{}),t[e]>=248){var r=t[e]-247;e+1+r>t.length&&qn.throwError("data short segment too short",gi.Logger.errors.BUFFER_OVERRUN,{});var n=_g(t,e+1,r);return e+1+r+n>t.length&&qn.throwError("data long segment too short",gi.Logger.errors.BUFFER_OVERRUN,{}),Bg(t,e,e+1+r,r+n)}else if(t[e]>=192){var i=t[e]-192;return e+1+i>t.length&&qn.throwError("data array too short",gi.Logger.errors.BUFFER_OVERRUN,{}),Bg(t,e,e+1,i)}else if(t[e]>=184){var r=t[e]-183;e+1+r>t.length&&qn.throwError("data array too short",gi.Logger.errors.BUFFER_OVERRUN,{});var a=_g(t,e+1,r);e+1+r+a>t.length&&qn.throwError("data array too short",gi.Logger.errors.BUFFER_OVERRUN,{});var d=(0,xa.hexlify)(t.slice(e+1+r,e+1+r+a));return{consumed:1+r+a,result:d}}else if(t[e]>=128){var v=t[e]-128;e+1+v>t.length&&qn.throwError("data too short",gi.Logger.errors.BUFFER_OVERRUN,{});var d=(0,xa.hexlify)(t.slice(e+1,e+1+v));return{consumed:1+v,result:d}}return{consumed:1,result:(0,xa.hexlify)(t[e])}}function W5(t){var e=(0,xa.arrayify)(t),r=Pg(e,0);return r.consumed!==e.length&&qn.throwArgumentError("invalid rlp data","data",t),r.result}wo.decode=W5});var Lg=V(B0=>{"use strict";var $P=A(M());Object.defineProperty(B0,"__esModule",{value:!0});B0.version=void 0;B0.version="address/5.8.0"});var wa=V(Yr=>{"use strict";var tL=A(M());Object.defineProperty(Yr,"__esModule",{value:!0});Yr.getCreate2Address=Yr.getContractAddress=Yr.getIcapAddress=Yr.isAddress=Yr.getAddress=void 0;var vi=nt(),Gl=ga(),Xl=Nn(),Y5=ql(),$5=Ct(),e7=Lg(),Ji=new $5.Logger(e7.version);function Rg(t){(0,vi.isHexString)(t,20)||Ji.throwArgumentError("invalid address","address",t),t=t.toLowerCase();for(var e=t.substring(2).split(""),r=new Uint8Array(40),n=0;n<40;n++)r[n]=e[n].charCodeAt(0);for(var i=(0,vi.arrayify)((0,Xl.keccak256)(r)),n=0;n<40;n+=2)i[n>>1]>>4>=8&&(e[n]=e[n].toUpperCase()),(i[n>>1]&15)>=8&&(e[n+1]=e[n+1].toUpperCase());return"0x"+e.join("")}var t7=9007199254740991;function r7(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}var zl={};for(xn=0;xn<10;xn++)zl[String(xn)]=String(xn);var xn;for(xn=0;xn<26;xn++)zl[String.fromCharCode(65+xn)]=String(10+xn);var xn,Fg=Math.floor(r7(t7));function Dg(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";for(var e=t.split("").map(function(i){return zl[i]}).join("");e.length>=Fg;){var r=e.substring(0,Fg);e=parseInt(r,10)%97+e.substring(r.length)}for(var n=String(98-parseInt(e,10)%97);n.length<2;)n="0"+n;return n}function ya(t){var e=null;if(typeof t!="string"&&Ji.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=Rg(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&Ji.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==Dg(t)&&Ji.throwArgumentError("bad icap checksum","address",t),e=(0,Gl._base36To16)(t.substring(4));e.length<40;)e="0"+e;e=Rg("0x"+e)}else Ji.throwArgumentError("invalid address","address",t);return e}Yr.getAddress=ya;function n7(t){try{return ya(t),!0}catch{}return!1}Yr.isAddress=n7;function i7(t){for(var e=(0,Gl._base16To36)(ya(t).substring(2)).toUpperCase();e.length<30;)e="0"+e;return"XE"+Dg("XE00"+e)+e}Yr.getIcapAddress=i7;function a7(t){var e=null;try{e=ya(t.from)}catch{Ji.throwArgumentError("missing from address","transaction",t)}var r=(0,vi.stripZeros)((0,vi.arrayify)(Gl.BigNumber.from(t.nonce).toHexString()));return ya((0,vi.hexDataSlice)((0,Xl.keccak256)((0,Y5.encode)([e,r])),12))}Yr.getContractAddress=a7;function o7(t,e,r){return(0,vi.hexDataLength)(e)!==32&&Ji.throwArgumentError("salt must be 32 bytes","salt",e),(0,vi.hexDataLength)(r)!==32&&Ji.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),ya((0,vi.hexDataSlice)((0,Xl.keccak256)((0,vi.concat)(["0xff",ya(t),e,r])),12))}Yr.getCreate2Address=o7});var Og=V(C0=>{"use strict";var nL=A(M());Object.defineProperty(C0,"__esModule",{value:!0});C0.version=void 0;C0.version="properties/5.8.0"});var $r=V(Pt=>{"use strict";var aL=A(M()),s7=Pt&&Pt.__awaiter||function(t,e,r,n){function i(a){return a instanceof r?a:new r(function(d){d(a)})}return new(r||(r=Promise))(function(a,d){function v(B){try{x(n.next(B))}catch(C){d(C)}}function y(B){try{x(n.throw(B))}catch(C){d(C)}}function x(B){B.done?a(B.value):i(B.value).then(v,y)}x((n=n.apply(t,e||[])).next())})},f7=Pt&&Pt.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,d;return d={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(x){return function(B){return y([x,B])}}function y(x){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=x[0]&2?i.return:x[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,x[1])).done)return a;switch(i=0,a&&(x=[x[0]&2,a.value]),x[0]){case 0:case 1:a=x;break;case 4:return r.label++,{value:x[1],done:!1};case 5:r.label++,i=x[1],x=[0];continue;case 7:x=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(x[0]===6||x[0]===2)){r=0;continue}if(x[0]===3&&(!a||x[1]>a[0]&&x[1]<a[3])){r.label=x[1];break}if(x[0]===6&&r.label<a[1]){r.label=a[1],a=x;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(x);break}a[2]&&r.ops.pop(),r.trys.pop();continue}x=e.call(t,r)}catch(B){x=[6,B],i=0}finally{n=a=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.Description=Pt.deepCopy=Pt.shallowCopy=Pt.checkProperties=Pt.resolveProperties=Pt.getStatic=Pt.defineReadOnly=void 0;var c7=Ct(),u7=Og(),P0=new c7.Logger(u7.version);function Ig(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}Pt.defineReadOnly=Ig;function l7(t,e){for(var r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||typeof t.prototype!="object")break;t=Object.getPrototypeOf(t.prototype).constructor}return null}Pt.getStatic=l7;function d7(t){return s7(this,void 0,void 0,function(){var e,r;return f7(this,function(n){switch(n.label){case 0:return e=Object.keys(t).map(function(i){var a=t[i];return Promise.resolve(a).then(function(d){return{key:i,value:d}})}),[4,Promise.all(e)];case 1:return r=n.sent(),[2,r.reduce(function(i,a){return i[a.key]=a.value,i},{})]}})})}Pt.resolveProperties=d7;function h7(t,e){(!t||typeof t!="object")&&P0.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(function(r){e[r]||P0.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}Pt.checkProperties=h7;function p7(t){var e={};for(var r in t)e[r]=t[r];return e}Pt.shallowCopy=p7;var b7={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function Ng(t){if(t==null||b7[typeof t])return!0;if(Array.isArray(t)||typeof t=="object"){if(!Object.isFrozen(t))return!1;for(var e=Object.keys(t),r=0;r<e.length;r++){var n=null;try{n=t[e[r]]}catch{continue}if(!Ng(n))return!1}return!0}return P0.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}function g7(t){if(Ng(t))return t;if(Array.isArray(t))return Object.freeze(t.map(function(i){return L0(i)}));if(typeof t=="object"){var e={};for(var r in t){var n=t[r];n!==void 0&&Ig(e,r,L0(n))}return e}return P0.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}function L0(t){return g7(t)}Pt.deepCopy=L0;var v7=function(){function t(e){for(var r in e)this[r]=L0(e[r])}return t}();Pt.Description=v7});var Kg=V(Ui=>{"use strict";var sL=A(M()),m7=Ui&&Ui.__awaiter||function(t,e,r,n){function i(a){return a instanceof r?a:new r(function(d){d(a)})}return new(r||(r=Promise))(function(a,d){function v(B){try{x(n.next(B))}catch(C){d(C)}}function y(B){try{x(n.throw(B))}catch(C){d(C)}}function x(B){B.done?a(B.value):i(B.value).then(v,y)}x((n=n.apply(t,e||[])).next())})},x7=Ui&&Ui.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,d;return d={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(x){return function(B){return y([x,B])}}function y(x){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=x[0]&2?i.return:x[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,x[1])).done)return a;switch(i=0,a&&(x=[x[0]&2,a.value]),x[0]){case 0:case 1:a=x;break;case 4:return r.label++,{value:x[1],done:!1};case 5:r.label++,i=x[1],x=[0];continue;case 7:x=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(x[0]===6||x[0]===2)){r=0;continue}if(x[0]===3&&(!a||x[1]>a[0]&&x[1]<a[3])){r.label=x[1];break}if(x[0]===6&&r.label<a[1]){r.label=a[1],a=x;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(x);break}a[2]&&r.ops.pop(),r.trys.pop();continue}x=e.call(t,r)}catch(B){x=[6,B],i=0}finally{n=a=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}};Object.defineProperty(Ui,"__esModule",{value:!0});Ui.TypedDataEncoder=void 0;var Hg=wa(),Ma=ga(),rr=nt(),Ao=Nn(),Aa=$r(),y7=Ct(),w7=Il(),lt=new y7.Logger(w7.version),qg=Ol(),Gg=new Uint8Array(32);Gg.fill(0);var A7=Ma.BigNumber.from(-1),Xg=Ma.BigNumber.from(0),zg=Ma.BigNumber.from(1),M7=Ma.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function S7(t){var e=(0,rr.arrayify)(t),r=e.length%32;return r?(0,rr.hexConcat)([e,Gg.slice(r)]):(0,rr.hexlify)(e)}var T7=(0,rr.hexZeroPad)(zg.toHexString(),32),E7=(0,rr.hexZeroPad)(Xg.toHexString(),32),kg={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Kl=["name","version","chainId","verifyingContract","salt"];function Jg(t){return function(e){return typeof e!="string"&&lt.throwArgumentError("invalid domain value for "+JSON.stringify(t),"domain."+t,e),e}}var _7={name:Jg("name"),version:Jg("version"),chainId:function(t){try{return Ma.BigNumber.from(t).toString()}catch{}return lt.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return(0,Hg.getAddress)(t).toLowerCase()}catch{}return lt.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{var e=(0,rr.arrayify)(t);if(e.length!==32)throw new Error("bad length");return(0,rr.hexlify)(e)}catch{}return lt.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function Zl(t){{var e=t.match(/^(u?)int(\d*)$/);if(e){var r=e[1]==="",n=parseInt(e[2]||"256");(n%8!==0||n>256||e[2]&&e[2]!==String(n))&&lt.throwArgumentError("invalid numeric width","type",t);var i=M7.mask(r?n-1:n),a=r?i.add(zg).mul(A7):Xg;return function(v){var y=Ma.BigNumber.from(v);return(y.lt(a)||y.gt(i))&&lt.throwArgumentError("value out-of-bounds for "+t,"value",v),(0,rr.hexZeroPad)(y.toTwos(256).toHexString(),32)}}}{var e=t.match(/^bytes(\d+)$/);if(e){var d=parseInt(e[1]);return(d===0||d>32||e[1]!==String(d))&&lt.throwArgumentError("invalid bytes width","type",t),function(y){var x=(0,rr.arrayify)(y);return x.length!==d&&lt.throwArgumentError("invalid length for "+t,"value",y),S7(y)}}}switch(t){case"address":return function(v){return(0,rr.hexZeroPad)((0,Hg.getAddress)(v),32)};case"bool":return function(v){return v?T7:E7};case"bytes":return function(v){return(0,Ao.keccak256)(v)};case"string":return function(v){return(0,qg.id)(v)}}return null}function Ug(t,e){return t+"("+e.map(function(r){var n=r.name,i=r.type;return i+" "+n}).join(",")+")"}var B7=function(){function t(e){(0,Aa.defineReadOnly)(this,"types",Object.freeze((0,Aa.deepCopy)(e))),(0,Aa.defineReadOnly)(this,"_encoderCache",{}),(0,Aa.defineReadOnly)(this,"_types",{});var r={},n={},i={};Object.keys(e).forEach(function(C){r[C]={},n[C]=[],i[C]={}});var a=function(C){var D={};e[C].forEach(function(F){D[F.name]&&lt.throwArgumentError("duplicate variable name "+JSON.stringify(F.name)+" in "+JSON.stringify(C),"types",e),D[F.name]=!0;var P=F.type.match(/^([^\x5b]*)(\x5b|$)/)[1];P===C&&lt.throwArgumentError("circular type reference to "+JSON.stringify(P),"types",e);var X=Zl(P);X||(n[P]||lt.throwArgumentError("unknown type "+JSON.stringify(P),"types",e),n[P].push(C),r[C][P]=!0)})};for(var d in e)a(d);var v=Object.keys(n).filter(function(C){return n[C].length===0});v.length===0?lt.throwArgumentError("missing primary type","types",e):v.length>1&&lt.throwArgumentError("ambiguous primary types or unused types: "+v.map(function(C){return JSON.stringify(C)}).join(", "),"types",e),(0,Aa.defineReadOnly)(this,"primaryType",v[0]);function y(C,D){D[C]&&lt.throwArgumentError("circular type reference to "+JSON.stringify(C),"types",e),D[C]=!0,Object.keys(r[C]).forEach(function(F){n[F]&&(y(F,D),Object.keys(D).forEach(function(P){i[P][F]=!0}))}),delete D[C]}y(this.primaryType,{});for(var x in i){var B=Object.keys(i[x]);B.sort(),this._types[x]=Ug(x,e[x])+B.map(function(C){return Ug(C,e[C])}).join("")}}return t.prototype.getEncoder=function(e){var r=this._encoderCache[e];return r||(r=this._encoderCache[e]=this._getEncoder(e)),r},t.prototype._getEncoder=function(e){var r=this;{var n=Zl(e);if(n)return n}var i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){var a=i[1],d=this.getEncoder(a),v=parseInt(i[3]);return function(B){v>=0&&B.length!==v&&lt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",B);var C=B.map(d);return r._types[a]&&(C=C.map(Ao.keccak256)),(0,Ao.keccak256)((0,rr.hexConcat)(C))}}var y=this.types[e];if(y){var x=(0,qg.id)(this._types[e]);return function(B){var C=y.map(function(D){var F=D.name,P=D.type,X=r.getEncoder(P)(B[F]);return r._types[P]?(0,Ao.keccak256)(X):X});return C.unshift(x),(0,rr.hexConcat)(C)}}return lt.throwArgumentError("unknown type: "+e,"type",e)},t.prototype.encodeType=function(e){var r=this._types[e];return r||lt.throwArgumentError("unknown type: "+JSON.stringify(e),"name",e),r},t.prototype.encodeData=function(e,r){return this.getEncoder(e)(r)},t.prototype.hashStruct=function(e,r){return(0,Ao.keccak256)(this.encodeData(e,r))},t.prototype.encode=function(e){return this.encodeData(this.primaryType,e)},t.prototype.hash=function(e){return this.hashStruct(this.primaryType,e)},t.prototype._visit=function(e,r,n){var i=this;{var a=Zl(e);if(a)return n(e,r)}var d=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(d){var v=d[1],y=parseInt(d[3]);return y>=0&&r.length!==y&&lt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",r),r.map(function(B){return i._visit(v,B,n)})}var x=this.types[e];return x?x.reduce(function(B,C){var D=C.name,F=C.type;return B[D]=i._visit(F,r[D],n),B},{}):lt.throwArgumentError("unknown type: "+e,"type",e)},t.prototype.visit=function(e,r){return this._visit(this.primaryType,e,r)},t.from=function(e){return new t(e)},t.getPrimaryType=function(e){return t.from(e).primaryType},t.hashStruct=function(e,r,n){return t.from(r).hashStruct(e,n)},t.hashDomain=function(e){var r=[];for(var n in e){var i=kg[n];i||lt.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(n),"domain",e),r.push({name:n,type:i})}return r.sort(function(a,d){return Kl.indexOf(a.name)-Kl.indexOf(d.name)}),t.hashStruct("EIP712Domain",{EIP712Domain:r},e)},t.encode=function(e,r,n){return(0,rr.hexConcat)(["0x1901",t.hashDomain(e),t.from(r).hash(n)])},t.hash=function(e,r,n){return(0,Ao.keccak256)(t.encode(e,r,n))},t.resolveNames=function(e,r,n,i){return m7(this,void 0,void 0,function(){var a,d,v,y,x,B,C,D;return x7(this,function(F){switch(F.label){case 0:e=(0,Aa.shallowCopy)(e),a={},e.verifyingContract&&!(0,rr.isHexString)(e.verifyingContract,20)&&(a[e.verifyingContract]="0x"),d=t.from(r),d.visit(n,function(P,X){return P==="address"&&!(0,rr.isHexString)(X,20)&&(a[X]="0x"),X}),v=[];for(y in a)v.push(y);x=0,F.label=1;case 1:return x<v.length?(B=v[x],C=a,D=B,[4,i(B)]):[3,4];case 2:C[D]=F.sent(),F.label=3;case 3:return x++,[3,1];case 4:return e.verifyingContract&&a[e.verifyingContract]&&(e.verifyingContract=a[e.verifyingContract]),n=d.visit(n,function(P,X){return P==="address"&&a[X]?a[X]:X}),[2,{domain:e,value:n}]}})})},t.getPayload=function(e,r,n){t.hashDomain(e);var i={},a=[];Kl.forEach(function(y){var x=e[y];x!=null&&(i[y]=_7[y](x),a.push({name:y,type:kg[y]}))});var d=t.from(r),v=(0,Aa.shallowCopy)(r);return v.EIP712Domain?lt.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):v.EIP712Domain=a,d.encode(n),{types:v,domain:i,primaryType:d.primaryType,message:d.visit(n,function(y,x){if(y.match(/^bytes(\d*)/))return(0,rr.hexlify)((0,rr.arrayify)(x));if(y.match(/^u?int/))return Ma.BigNumber.from(x).toString();switch(y){case"address":return x.toLowerCase();case"bool":return!!x;case"string":return typeof x!="string"&&lt.throwArgumentError("invalid string","value",x),x}return lt.throwArgumentError("unsupported type","type",y)})}},t}();Ui.TypedDataEncoder=B7});var Cs=V(Ut=>{"use strict";var cL=A(M());Object.defineProperty(Ut,"__esModule",{value:!0});Ut._TypedDataEncoder=Ut.hashMessage=Ut.messagePrefix=Ut.ensNormalize=Ut.isValidName=Ut.namehash=Ut.dnsEncode=Ut.id=void 0;var C7=Ol();Object.defineProperty(Ut,"id",{enumerable:!0,get:function(){return C7.id}});var Vl=Ul();Object.defineProperty(Ut,"dnsEncode",{enumerable:!0,get:function(){return Vl.dnsEncode}});Object.defineProperty(Ut,"isValidName",{enumerable:!0,get:function(){return Vl.isValidName}});Object.defineProperty(Ut,"namehash",{enumerable:!0,get:function(){return Vl.namehash}});var Zg=Sg();Object.defineProperty(Ut,"hashMessage",{enumerable:!0,get:function(){return Zg.hashMessage}});Object.defineProperty(Ut,"messagePrefix",{enumerable:!0,get:function(){return Zg.messagePrefix}});var P7=Ul();Object.defineProperty(Ut,"ensNormalize",{enumerable:!0,get:function(){return P7.ensNormalize}});var L7=Kg();Object.defineProperty(Ut,"_TypedDataEncoder",{enumerable:!0,get:function(){return L7.TypedDataEncoder}})});var Vg=V((uL,R7)=>{R7.exports={name:"elliptic",version:"6.6.1",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}});var Gn=V((jg,jl)=>{var lL=A(M());(function(t,e){"use strict";function r(T,s){if(!T)throw new Error(s||"Assertion failed")}function n(T,s){T.super_=s;var u=function(){};u.prototype=s.prototype,T.prototype=new u,T.prototype.constructor=T}function i(T,s,u){if(i.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&((s==="le"||s==="be")&&(u=s,s=10),this._init(T||0,s||10,u||"be"))}typeof t=="object"?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=rt("buffer").Buffer}catch{}i.isBN=function(s){return s instanceof i?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===i.wordSize&&Array.isArray(s.words)},i.max=function(s,u){return s.cmp(u)>0?s:u},i.min=function(s,u){return s.cmp(u)<0?s:u},i.prototype._init=function(s,u,l){if(typeof s=="number")return this._initNumber(s,u,l);if(typeof s=="object")return this._initArray(s,u,l);u==="hex"&&(u=16),r(u===(u|0)&&u>=2&&u<=36),s=s.toString().replace(/\s+/g,"");var f=0;s[0]==="-"&&(f++,this.negative=1),f<s.length&&(u===16?this._parseHex(s,f,l):(this._parseBase(s,u,f),l==="le"&&this._initArray(this.toArray(),u,l)))},i.prototype._initNumber=function(s,u,l){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(r(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),u,l)},i.prototype._initArray=function(s,u,l){if(r(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c,g,m=0;if(l==="be")for(f=s.length-1,c=0;f>=0;f-=3)g=s[f]|s[f-1]<<8|s[f-2]<<16,this.words[c]|=g<<m&67108863,this.words[c+1]=g>>>26-m&67108863,m+=24,m>=26&&(m-=26,c++);else if(l==="le")for(f=0,c=0;f<s.length;f+=3)g=s[f]|s[f+1]<<8|s[f+2]<<16,this.words[c]|=g<<m&67108863,this.words[c+1]=g>>>26-m&67108863,m+=24,m>=26&&(m-=26,c++);return this.strip()};function d(T,s){var u=T.charCodeAt(s);return u>=65&&u<=70?u-55:u>=97&&u<=102?u-87:u-48&15}function v(T,s,u){var l=d(T,u);return u-1>=s&&(l|=d(T,u-1)<<4),l}i.prototype._parseHex=function(s,u,l){this.length=Math.ceil((s.length-u)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var c=0,g=0,m;if(l==="be")for(f=s.length-1;f>=u;f-=2)m=v(s,u,f)<<c,this.words[g]|=m&67108863,c>=18?(c-=18,g+=1,this.words[g]|=m>>>26):c+=8;else{var h=s.length-u;for(f=h%2===0?u+1:u;f<s.length;f+=2)m=v(s,u,f)<<c,this.words[g]|=m&67108863,c>=18?(c-=18,g+=1,this.words[g]|=m>>>26):c+=8}this.strip()};function y(T,s,u,l){for(var f=0,c=Math.min(T.length,u),g=s;g<c;g++){var m=T.charCodeAt(g)-48;f*=l,m>=49?f+=m-49+10:m>=17?f+=m-17+10:f+=m}return f}i.prototype._parseBase=function(s,u,l){this.words=[0],this.length=1;for(var f=0,c=1;c<=67108863;c*=u)f++;f--,c=c/u|0;for(var g=s.length-l,m=g%f,h=Math.min(g,g-m)+l,o=0,p=l;p<h;p+=f)o=y(s,p,p+f,u),this.imuln(c),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(m!==0){var E=1;for(o=y(s,p,s.length,u),p=0;p<m;p++)E*=u;this.imuln(E),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},i.prototype.copy=function(s){s.words=new Array(this.length);for(var u=0;u<this.length;u++)s.words[u]=this.words[u];s.length=this.length,s.negative=this.negative,s.red=this.red},i.prototype.clone=function(){var s=new i(null);return this.copy(s),s},i.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],B=[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],C=[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];i.prototype.toString=function(s,u){s=s||10,u=u|0||1;var l;if(s===16||s==="hex"){l="";for(var f=0,c=0,g=0;g<this.length;g++){var m=this.words[g],h=((m<<f|c)&16777215).toString(16);c=m>>>24-f&16777215,f+=2,f>=26&&(f-=26,g--),c!==0||g!==this.length-1?l=x[6-h.length]+h+l:l=h+l}for(c!==0&&(l=c.toString(16)+l);l.length%u!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(s===(s|0)&&s>=2&&s<=36){var o=B[s],p=C[s];l="";var E=this.clone();for(E.negative=0;!E.isZero();){var b=E.modn(p).toString(s);E=E.idivn(p),E.isZero()?l=b+l:l=x[o-b.length]+b+l}for(this.isZero()&&(l="0"+l);l.length%u!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(s,u){return r(typeof a<"u"),this.toArrayLike(a,s,u)},i.prototype.toArray=function(s,u){return this.toArrayLike(Array,s,u)},i.prototype.toArrayLike=function(s,u,l){var f=this.byteLength(),c=l||Math.max(1,f);r(f<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var g=u==="le",m=new s(c),h,o,p=this.clone();if(g){for(o=0;!p.isZero();o++)h=p.andln(255),p.iushrn(8),m[o]=h;for(;o<c;o++)m[o]=0}else{for(o=0;o<c-f;o++)m[o]=0;for(o=0;!p.isZero();o++)h=p.andln(255),p.iushrn(8),m[c-o-1]=h}return m},Math.clz32?i.prototype._countBits=function(s){return 32-Math.clz32(s)}:i.prototype._countBits=function(s){var u=s,l=0;return u>=4096&&(l+=13,u>>>=13),u>=64&&(l+=7,u>>>=7),u>=8&&(l+=4,u>>>=4),u>=2&&(l+=2,u>>>=2),l+u},i.prototype._zeroBits=function(s){if(s===0)return 26;var u=s,l=0;return u&8191||(l+=13,u>>>=13),u&127||(l+=7,u>>>=7),u&15||(l+=4,u>>>=4),u&3||(l+=2,u>>>=2),u&1||l++,l},i.prototype.bitLength=function(){var s=this.words[this.length-1],u=this._countBits(s);return(this.length-1)*26+u};function D(T){for(var s=new Array(T.bitLength()),u=0;u<s.length;u++){var l=u/26|0,f=u%26;s[u]=(T.words[l]&1<<f)>>>f}return s}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,u=0;u<this.length;u++){var l=this._zeroBits(this.words[u]);if(s+=l,l!==26)break}return s},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},i.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var u=0;u<s.length;u++)this.words[u]=this.words[u]|s.words[u];return this.strip()},i.prototype.ior=function(s){return r((this.negative|s.negative)===0),this.iuor(s)},i.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},i.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},i.prototype.iuand=function(s){var u;this.length>s.length?u=s:u=this;for(var l=0;l<u.length;l++)this.words[l]=this.words[l]&s.words[l];return this.length=u.length,this.strip()},i.prototype.iand=function(s){return r((this.negative|s.negative)===0),this.iuand(s)},i.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},i.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},i.prototype.iuxor=function(s){var u,l;this.length>s.length?(u=this,l=s):(u=s,l=this);for(var f=0;f<l.length;f++)this.words[f]=u.words[f]^l.words[f];if(this!==u)for(;f<u.length;f++)this.words[f]=u.words[f];return this.length=u.length,this.strip()},i.prototype.ixor=function(s){return r((this.negative|s.negative)===0),this.iuxor(s)},i.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},i.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},i.prototype.inotn=function(s){r(typeof s=="number"&&s>=0);var u=Math.ceil(s/26)|0,l=s%26;this._expand(u),l>0&&u--;for(var f=0;f<u;f++)this.words[f]=~this.words[f]&67108863;return l>0&&(this.words[f]=~this.words[f]&67108863>>26-l),this.strip()},i.prototype.notn=function(s){return this.clone().inotn(s)},i.prototype.setn=function(s,u){r(typeof s=="number"&&s>=0);var l=s/26|0,f=s%26;return this._expand(l+1),u?this.words[l]=this.words[l]|1<<f:this.words[l]=this.words[l]&~(1<<f),this.strip()},i.prototype.iadd=function(s){var u;if(this.negative!==0&&s.negative===0)return this.negative=0,u=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,u=this.isub(s),s.negative=1,u._normSign();var l,f;this.length>s.length?(l=this,f=s):(l=s,f=this);for(var c=0,g=0;g<f.length;g++)u=(l.words[g]|0)+(f.words[g]|0)+c,this.words[g]=u&67108863,c=u>>>26;for(;c!==0&&g<l.length;g++)u=(l.words[g]|0)+c,this.words[g]=u&67108863,c=u>>>26;if(this.length=l.length,c!==0)this.words[this.length]=c,this.length++;else if(l!==this)for(;g<l.length;g++)this.words[g]=l.words[g];return this},i.prototype.add=function(s){var u;return s.negative!==0&&this.negative===0?(s.negative=0,u=this.sub(s),s.negative^=1,u):s.negative===0&&this.negative!==0?(this.negative=0,u=s.sub(this),this.negative=1,u):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},i.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var u=this.iadd(s);return s.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var l=this.cmp(s);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,c;l>0?(f=this,c=s):(f=s,c=this);for(var g=0,m=0;m<c.length;m++)u=(f.words[m]|0)-(c.words[m]|0)+g,g=u>>26,this.words[m]=u&67108863;for(;g!==0&&m<f.length;m++)u=(f.words[m]|0)+g,g=u>>26,this.words[m]=u&67108863;if(g===0&&m<f.length&&f!==this)for(;m<f.length;m++)this.words[m]=f.words[m];return this.length=Math.max(this.length,m),f!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(s){return this.clone().isub(s)};function F(T,s,u){u.negative=s.negative^T.negative;var l=T.length+s.length|0;u.length=l,l=l-1|0;var f=T.words[0]|0,c=s.words[0]|0,g=f*c,m=g&67108863,h=g/67108864|0;u.words[0]=m;for(var o=1;o<l;o++){for(var p=h>>>26,E=h&67108863,b=Math.min(o,s.length-1),w=Math.max(0,o-T.length+1);w<=b;w++){var U=o-w|0;f=T.words[U]|0,c=s.words[w]|0,g=f*c+E,p+=g/67108864|0,E=g&67108863}u.words[o]=E|0,h=p|0}return h!==0?u.words[o]=h|0:u.length--,u.strip()}var P=function(s,u,l){var f=s.words,c=u.words,g=l.words,m=0,h,o,p,E=f[0]|0,b=E&8191,w=E>>>13,U=f[1]|0,S=U&8191,N=U>>>13,G=f[2]|0,Z=G&8191,_=G>>>13,R=f[3]|0,L=R&8191,O=R>>>13,q=f[4]|0,I=q&8191,J=q>>>13,z=f[5]|0,k=z&8191,H=z>>>13,Q=f[6]|0,j=Q&8191,re=Q>>>13,De=f[7]|0,se=De&8191,le=De>>>13,Ue=f[8]|0,oe=Ue&8191,ce=Ue>>>13,Xe=f[9]|0,ge=Xe&8191,ve=Xe>>>13,vt=c[0]|0,pe=vt&8191,be=vt>>>13,Ye=c[1]|0,de=Ye&8191,ue=Ye>>>13,Kt=c[2]|0,me=Kt&8191,xe=Kt>>>13,Zt=c[3]|0,ye=Zt&8191,we=Zt>>>13,Vt=c[4]|0,Ae=Vt&8191,Me=Vt>>>13,jt=c[5]|0,Se=jt&8191,Te=jt>>>13,Qt=c[6]|0,Ee=Qt&8191,_e=Qt>>>13,Wt=c[7]|0,Be=Wt&8191,Ce=Wt>>>13,Yt=c[8]|0,Pe=Yt&8191,Le=Yt>>>13,$t=c[9]|0,Re=$t&8191,Fe=$t>>>13;l.negative=s.negative^u.negative,l.length=19,h=Math.imul(b,pe),o=Math.imul(b,be),o=o+Math.imul(w,pe)|0,p=Math.imul(w,be);var Dt=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,h=Math.imul(S,pe),o=Math.imul(S,be),o=o+Math.imul(N,pe)|0,p=Math.imul(N,be),h=h+Math.imul(b,de)|0,o=o+Math.imul(b,ue)|0,o=o+Math.imul(w,de)|0,p=p+Math.imul(w,ue)|0;var Ne=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,h=Math.imul(Z,pe),o=Math.imul(Z,be),o=o+Math.imul(_,pe)|0,p=Math.imul(_,be),h=h+Math.imul(S,de)|0,o=o+Math.imul(S,ue)|0,o=o+Math.imul(N,de)|0,p=p+Math.imul(N,ue)|0,h=h+Math.imul(b,me)|0,o=o+Math.imul(b,xe)|0,o=o+Math.imul(w,me)|0,p=p+Math.imul(w,xe)|0;var ke=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,h=Math.imul(L,pe),o=Math.imul(L,be),o=o+Math.imul(O,pe)|0,p=Math.imul(O,be),h=h+Math.imul(Z,de)|0,o=o+Math.imul(Z,ue)|0,o=o+Math.imul(_,de)|0,p=p+Math.imul(_,ue)|0,h=h+Math.imul(S,me)|0,o=o+Math.imul(S,xe)|0,o=o+Math.imul(N,me)|0,p=p+Math.imul(N,xe)|0,h=h+Math.imul(b,ye)|0,o=o+Math.imul(b,we)|0,o=o+Math.imul(w,ye)|0,p=p+Math.imul(w,we)|0;var St=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(St>>>26)|0,St&=67108863,h=Math.imul(I,pe),o=Math.imul(I,be),o=o+Math.imul(J,pe)|0,p=Math.imul(J,be),h=h+Math.imul(L,de)|0,o=o+Math.imul(L,ue)|0,o=o+Math.imul(O,de)|0,p=p+Math.imul(O,ue)|0,h=h+Math.imul(Z,me)|0,o=o+Math.imul(Z,xe)|0,o=o+Math.imul(_,me)|0,p=p+Math.imul(_,xe)|0,h=h+Math.imul(S,ye)|0,o=o+Math.imul(S,we)|0,o=o+Math.imul(N,ye)|0,p=p+Math.imul(N,we)|0,h=h+Math.imul(b,Ae)|0,o=o+Math.imul(b,Me)|0,o=o+Math.imul(w,Ae)|0,p=p+Math.imul(w,Me)|0;var Tt=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,h=Math.imul(k,pe),o=Math.imul(k,be),o=o+Math.imul(H,pe)|0,p=Math.imul(H,be),h=h+Math.imul(I,de)|0,o=o+Math.imul(I,ue)|0,o=o+Math.imul(J,de)|0,p=p+Math.imul(J,ue)|0,h=h+Math.imul(L,me)|0,o=o+Math.imul(L,xe)|0,o=o+Math.imul(O,me)|0,p=p+Math.imul(O,xe)|0,h=h+Math.imul(Z,ye)|0,o=o+Math.imul(Z,we)|0,o=o+Math.imul(_,ye)|0,p=p+Math.imul(_,we)|0,h=h+Math.imul(S,Ae)|0,o=o+Math.imul(S,Me)|0,o=o+Math.imul(N,Ae)|0,p=p+Math.imul(N,Me)|0,h=h+Math.imul(b,Se)|0,o=o+Math.imul(b,Te)|0,o=o+Math.imul(w,Se)|0,p=p+Math.imul(w,Te)|0;var Et=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,h=Math.imul(j,pe),o=Math.imul(j,be),o=o+Math.imul(re,pe)|0,p=Math.imul(re,be),h=h+Math.imul(k,de)|0,o=o+Math.imul(k,ue)|0,o=o+Math.imul(H,de)|0,p=p+Math.imul(H,ue)|0,h=h+Math.imul(I,me)|0,o=o+Math.imul(I,xe)|0,o=o+Math.imul(J,me)|0,p=p+Math.imul(J,xe)|0,h=h+Math.imul(L,ye)|0,o=o+Math.imul(L,we)|0,o=o+Math.imul(O,ye)|0,p=p+Math.imul(O,we)|0,h=h+Math.imul(Z,Ae)|0,o=o+Math.imul(Z,Me)|0,o=o+Math.imul(_,Ae)|0,p=p+Math.imul(_,Me)|0,h=h+Math.imul(S,Se)|0,o=o+Math.imul(S,Te)|0,o=o+Math.imul(N,Se)|0,p=p+Math.imul(N,Te)|0,h=h+Math.imul(b,Ee)|0,o=o+Math.imul(b,_e)|0,o=o+Math.imul(w,Ee)|0,p=p+Math.imul(w,_e)|0;var _t=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,h=Math.imul(se,pe),o=Math.imul(se,be),o=o+Math.imul(le,pe)|0,p=Math.imul(le,be),h=h+Math.imul(j,de)|0,o=o+Math.imul(j,ue)|0,o=o+Math.imul(re,de)|0,p=p+Math.imul(re,ue)|0,h=h+Math.imul(k,me)|0,o=o+Math.imul(k,xe)|0,o=o+Math.imul(H,me)|0,p=p+Math.imul(H,xe)|0,h=h+Math.imul(I,ye)|0,o=o+Math.imul(I,we)|0,o=o+Math.imul(J,ye)|0,p=p+Math.imul(J,we)|0,h=h+Math.imul(L,Ae)|0,o=o+Math.imul(L,Me)|0,o=o+Math.imul(O,Ae)|0,p=p+Math.imul(O,Me)|0,h=h+Math.imul(Z,Se)|0,o=o+Math.imul(Z,Te)|0,o=o+Math.imul(_,Se)|0,p=p+Math.imul(_,Te)|0,h=h+Math.imul(S,Ee)|0,o=o+Math.imul(S,_e)|0,o=o+Math.imul(N,Ee)|0,p=p+Math.imul(N,_e)|0,h=h+Math.imul(b,Be)|0,o=o+Math.imul(b,Ce)|0,o=o+Math.imul(w,Be)|0,p=p+Math.imul(w,Ce)|0;var Bt=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,h=Math.imul(oe,pe),o=Math.imul(oe,be),o=o+Math.imul(ce,pe)|0,p=Math.imul(ce,be),h=h+Math.imul(se,de)|0,o=o+Math.imul(se,ue)|0,o=o+Math.imul(le,de)|0,p=p+Math.imul(le,ue)|0,h=h+Math.imul(j,me)|0,o=o+Math.imul(j,xe)|0,o=o+Math.imul(re,me)|0,p=p+Math.imul(re,xe)|0,h=h+Math.imul(k,ye)|0,o=o+Math.imul(k,we)|0,o=o+Math.imul(H,ye)|0,p=p+Math.imul(H,we)|0,h=h+Math.imul(I,Ae)|0,o=o+Math.imul(I,Me)|0,o=o+Math.imul(J,Ae)|0,p=p+Math.imul(J,Me)|0,h=h+Math.imul(L,Se)|0,o=o+Math.imul(L,Te)|0,o=o+Math.imul(O,Se)|0,p=p+Math.imul(O,Te)|0,h=h+Math.imul(Z,Ee)|0,o=o+Math.imul(Z,_e)|0,o=o+Math.imul(_,Ee)|0,p=p+Math.imul(_,_e)|0,h=h+Math.imul(S,Be)|0,o=o+Math.imul(S,Ce)|0,o=o+Math.imul(N,Be)|0,p=p+Math.imul(N,Ce)|0,h=h+Math.imul(b,Pe)|0,o=o+Math.imul(b,Le)|0,o=o+Math.imul(w,Pe)|0,p=p+Math.imul(w,Le)|0;var hr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(hr>>>26)|0,hr&=67108863,h=Math.imul(ge,pe),o=Math.imul(ge,be),o=o+Math.imul(ve,pe)|0,p=Math.imul(ve,be),h=h+Math.imul(oe,de)|0,o=o+Math.imul(oe,ue)|0,o=o+Math.imul(ce,de)|0,p=p+Math.imul(ce,ue)|0,h=h+Math.imul(se,me)|0,o=o+Math.imul(se,xe)|0,o=o+Math.imul(le,me)|0,p=p+Math.imul(le,xe)|0,h=h+Math.imul(j,ye)|0,o=o+Math.imul(j,we)|0,o=o+Math.imul(re,ye)|0,p=p+Math.imul(re,we)|0,h=h+Math.imul(k,Ae)|0,o=o+Math.imul(k,Me)|0,o=o+Math.imul(H,Ae)|0,p=p+Math.imul(H,Me)|0,h=h+Math.imul(I,Se)|0,o=o+Math.imul(I,Te)|0,o=o+Math.imul(J,Se)|0,p=p+Math.imul(J,Te)|0,h=h+Math.imul(L,Ee)|0,o=o+Math.imul(L,_e)|0,o=o+Math.imul(O,Ee)|0,p=p+Math.imul(O,_e)|0,h=h+Math.imul(Z,Be)|0,o=o+Math.imul(Z,Ce)|0,o=o+Math.imul(_,Be)|0,p=p+Math.imul(_,Ce)|0,h=h+Math.imul(S,Pe)|0,o=o+Math.imul(S,Le)|0,o=o+Math.imul(N,Pe)|0,p=p+Math.imul(N,Le)|0,h=h+Math.imul(b,Re)|0,o=o+Math.imul(b,Fe)|0,o=o+Math.imul(w,Re)|0,p=p+Math.imul(w,Fe)|0;var pr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(pr>>>26)|0,pr&=67108863,h=Math.imul(ge,de),o=Math.imul(ge,ue),o=o+Math.imul(ve,de)|0,p=Math.imul(ve,ue),h=h+Math.imul(oe,me)|0,o=o+Math.imul(oe,xe)|0,o=o+Math.imul(ce,me)|0,p=p+Math.imul(ce,xe)|0,h=h+Math.imul(se,ye)|0,o=o+Math.imul(se,we)|0,o=o+Math.imul(le,ye)|0,p=p+Math.imul(le,we)|0,h=h+Math.imul(j,Ae)|0,o=o+Math.imul(j,Me)|0,o=o+Math.imul(re,Ae)|0,p=p+Math.imul(re,Me)|0,h=h+Math.imul(k,Se)|0,o=o+Math.imul(k,Te)|0,o=o+Math.imul(H,Se)|0,p=p+Math.imul(H,Te)|0,h=h+Math.imul(I,Ee)|0,o=o+Math.imul(I,_e)|0,o=o+Math.imul(J,Ee)|0,p=p+Math.imul(J,_e)|0,h=h+Math.imul(L,Be)|0,o=o+Math.imul(L,Ce)|0,o=o+Math.imul(O,Be)|0,p=p+Math.imul(O,Ce)|0,h=h+Math.imul(Z,Pe)|0,o=o+Math.imul(Z,Le)|0,o=o+Math.imul(_,Pe)|0,p=p+Math.imul(_,Le)|0,h=h+Math.imul(S,Re)|0,o=o+Math.imul(S,Fe)|0,o=o+Math.imul(N,Re)|0,p=p+Math.imul(N,Fe)|0;var br=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(br>>>26)|0,br&=67108863,h=Math.imul(ge,me),o=Math.imul(ge,xe),o=o+Math.imul(ve,me)|0,p=Math.imul(ve,xe),h=h+Math.imul(oe,ye)|0,o=o+Math.imul(oe,we)|0,o=o+Math.imul(ce,ye)|0,p=p+Math.imul(ce,we)|0,h=h+Math.imul(se,Ae)|0,o=o+Math.imul(se,Me)|0,o=o+Math.imul(le,Ae)|0,p=p+Math.imul(le,Me)|0,h=h+Math.imul(j,Se)|0,o=o+Math.imul(j,Te)|0,o=o+Math.imul(re,Se)|0,p=p+Math.imul(re,Te)|0,h=h+Math.imul(k,Ee)|0,o=o+Math.imul(k,_e)|0,o=o+Math.imul(H,Ee)|0,p=p+Math.imul(H,_e)|0,h=h+Math.imul(I,Be)|0,o=o+Math.imul(I,Ce)|0,o=o+Math.imul(J,Be)|0,p=p+Math.imul(J,Ce)|0,h=h+Math.imul(L,Pe)|0,o=o+Math.imul(L,Le)|0,o=o+Math.imul(O,Pe)|0,p=p+Math.imul(O,Le)|0,h=h+Math.imul(Z,Re)|0,o=o+Math.imul(Z,Fe)|0,o=o+Math.imul(_,Re)|0,p=p+Math.imul(_,Fe)|0;var gr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(gr>>>26)|0,gr&=67108863,h=Math.imul(ge,ye),o=Math.imul(ge,we),o=o+Math.imul(ve,ye)|0,p=Math.imul(ve,we),h=h+Math.imul(oe,Ae)|0,o=o+Math.imul(oe,Me)|0,o=o+Math.imul(ce,Ae)|0,p=p+Math.imul(ce,Me)|0,h=h+Math.imul(se,Se)|0,o=o+Math.imul(se,Te)|0,o=o+Math.imul(le,Se)|0,p=p+Math.imul(le,Te)|0,h=h+Math.imul(j,Ee)|0,o=o+Math.imul(j,_e)|0,o=o+Math.imul(re,Ee)|0,p=p+Math.imul(re,_e)|0,h=h+Math.imul(k,Be)|0,o=o+Math.imul(k,Ce)|0,o=o+Math.imul(H,Be)|0,p=p+Math.imul(H,Ce)|0,h=h+Math.imul(I,Pe)|0,o=o+Math.imul(I,Le)|0,o=o+Math.imul(J,Pe)|0,p=p+Math.imul(J,Le)|0,h=h+Math.imul(L,Re)|0,o=o+Math.imul(L,Fe)|0,o=o+Math.imul(O,Re)|0,p=p+Math.imul(O,Fe)|0;var vr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(vr>>>26)|0,vr&=67108863,h=Math.imul(ge,Ae),o=Math.imul(ge,Me),o=o+Math.imul(ve,Ae)|0,p=Math.imul(ve,Me),h=h+Math.imul(oe,Se)|0,o=o+Math.imul(oe,Te)|0,o=o+Math.imul(ce,Se)|0,p=p+Math.imul(ce,Te)|0,h=h+Math.imul(se,Ee)|0,o=o+Math.imul(se,_e)|0,o=o+Math.imul(le,Ee)|0,p=p+Math.imul(le,_e)|0,h=h+Math.imul(j,Be)|0,o=o+Math.imul(j,Ce)|0,o=o+Math.imul(re,Be)|0,p=p+Math.imul(re,Ce)|0,h=h+Math.imul(k,Pe)|0,o=o+Math.imul(k,Le)|0,o=o+Math.imul(H,Pe)|0,p=p+Math.imul(H,Le)|0,h=h+Math.imul(I,Re)|0,o=o+Math.imul(I,Fe)|0,o=o+Math.imul(J,Re)|0,p=p+Math.imul(J,Fe)|0;var mr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(mr>>>26)|0,mr&=67108863,h=Math.imul(ge,Se),o=Math.imul(ge,Te),o=o+Math.imul(ve,Se)|0,p=Math.imul(ve,Te),h=h+Math.imul(oe,Ee)|0,o=o+Math.imul(oe,_e)|0,o=o+Math.imul(ce,Ee)|0,p=p+Math.imul(ce,_e)|0,h=h+Math.imul(se,Be)|0,o=o+Math.imul(se,Ce)|0,o=o+Math.imul(le,Be)|0,p=p+Math.imul(le,Ce)|0,h=h+Math.imul(j,Pe)|0,o=o+Math.imul(j,Le)|0,o=o+Math.imul(re,Pe)|0,p=p+Math.imul(re,Le)|0,h=h+Math.imul(k,Re)|0,o=o+Math.imul(k,Fe)|0,o=o+Math.imul(H,Re)|0,p=p+Math.imul(H,Fe)|0;var xr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(xr>>>26)|0,xr&=67108863,h=Math.imul(ge,Ee),o=Math.imul(ge,_e),o=o+Math.imul(ve,Ee)|0,p=Math.imul(ve,_e),h=h+Math.imul(oe,Be)|0,o=o+Math.imul(oe,Ce)|0,o=o+Math.imul(ce,Be)|0,p=p+Math.imul(ce,Ce)|0,h=h+Math.imul(se,Pe)|0,o=o+Math.imul(se,Le)|0,o=o+Math.imul(le,Pe)|0,p=p+Math.imul(le,Le)|0,h=h+Math.imul(j,Re)|0,o=o+Math.imul(j,Fe)|0,o=o+Math.imul(re,Re)|0,p=p+Math.imul(re,Fe)|0;var yr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(yr>>>26)|0,yr&=67108863,h=Math.imul(ge,Be),o=Math.imul(ge,Ce),o=o+Math.imul(ve,Be)|0,p=Math.imul(ve,Ce),h=h+Math.imul(oe,Pe)|0,o=o+Math.imul(oe,Le)|0,o=o+Math.imul(ce,Pe)|0,p=p+Math.imul(ce,Le)|0,h=h+Math.imul(se,Re)|0,o=o+Math.imul(se,Fe)|0,o=o+Math.imul(le,Re)|0,p=p+Math.imul(le,Fe)|0;var wr=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(wr>>>26)|0,wr&=67108863,h=Math.imul(ge,Pe),o=Math.imul(ge,Le),o=o+Math.imul(ve,Pe)|0,p=Math.imul(ve,Le),h=h+Math.imul(oe,Re)|0,o=o+Math.imul(oe,Fe)|0,o=o+Math.imul(ce,Re)|0,p=p+Math.imul(ce,Fe)|0;var pn=(m+h|0)+((o&8191)<<13)|0;m=(p+(o>>>13)|0)+(pn>>>26)|0,pn&=67108863,h=Math.imul(ge,Re),o=Math.imul(ge,Fe),o=o+Math.imul(ve,Re)|0,p=Math.imul(ve,Fe);var bn=(m+h|0)+((o&8191)<<13)|0;return m=(p+(o>>>13)|0)+(bn>>>26)|0,bn&=67108863,g[0]=Dt,g[1]=Ne,g[2]=ke,g[3]=St,g[4]=Tt,g[5]=Et,g[6]=_t,g[7]=Bt,g[8]=hr,g[9]=pr,g[10]=br,g[11]=gr,g[12]=vr,g[13]=mr,g[14]=xr,g[15]=yr,g[16]=wr,g[17]=pn,g[18]=bn,m!==0&&(g[19]=m,l.length++),l};Math.imul||(P=F);function X(T,s,u){u.negative=s.negative^T.negative,u.length=T.length+s.length;for(var l=0,f=0,c=0;c<u.length-1;c++){var g=f;f=0;for(var m=l&67108863,h=Math.min(c,s.length-1),o=Math.max(0,c-T.length+1);o<=h;o++){var p=c-o,E=T.words[p]|0,b=s.words[o]|0,w=E*b,U=w&67108863;g=g+(w/67108864|0)|0,U=U+m|0,m=U&67108863,g=g+(U>>>26)|0,f+=g>>>26,g&=67108863}u.words[c]=m,l=g,g=f}return l!==0?u.words[c]=l:u.length--,u.strip()}function W(T,s,u){var l=new K;return l.mulp(T,s,u)}i.prototype.mulTo=function(s,u){var l,f=this.length+s.length;return this.length===10&&s.length===10?l=P(this,s,u):f<63?l=F(this,s,u):f<1024?l=X(this,s,u):l=W(this,s,u),l};function K(T,s){this.x=T,this.y=s}K.prototype.makeRBT=function(s){for(var u=new Array(s),l=i.prototype._countBits(s)-1,f=0;f<s;f++)u[f]=this.revBin(f,l,s);return u},K.prototype.revBin=function(s,u,l){if(s===0||s===l-1)return s;for(var f=0,c=0;c<u;c++)f|=(s&1)<<u-c-1,s>>=1;return f},K.prototype.permute=function(s,u,l,f,c,g){for(var m=0;m<g;m++)f[m]=u[s[m]],c[m]=l[s[m]]},K.prototype.transform=function(s,u,l,f,c,g){this.permute(g,s,u,l,f,c);for(var m=1;m<c;m<<=1)for(var h=m<<1,o=Math.cos(2*Math.PI/h),p=Math.sin(2*Math.PI/h),E=0;E<c;E+=h)for(var b=o,w=p,U=0;U<m;U++){var S=l[E+U],N=f[E+U],G=l[E+U+m],Z=f[E+U+m],_=b*G-w*Z;Z=b*Z+w*G,G=_,l[E+U]=S+G,f[E+U]=N+Z,l[E+U+m]=S-G,f[E+U+m]=N-Z,U!==h&&(_=o*b-p*w,w=o*w+p*b,b=_)}},K.prototype.guessLen13b=function(s,u){var l=Math.max(u,s)|1,f=l&1,c=0;for(l=l/2|0;l;l=l>>>1)c++;return 1<<c+1+f},K.prototype.conjugate=function(s,u,l){if(!(l<=1))for(var f=0;f<l/2;f++){var c=s[f];s[f]=s[l-f-1],s[l-f-1]=c,c=u[f],u[f]=-u[l-f-1],u[l-f-1]=-c}},K.prototype.normalize13b=function(s,u){for(var l=0,f=0;f<u/2;f++){var c=Math.round(s[2*f+1]/u)*8192+Math.round(s[2*f]/u)+l;s[f]=c&67108863,c<67108864?l=0:l=c/67108864|0}return s},K.prototype.convert13b=function(s,u,l,f){for(var c=0,g=0;g<u;g++)c=c+(s[g]|0),l[2*g]=c&8191,c=c>>>13,l[2*g+1]=c&8191,c=c>>>13;for(g=2*u;g<f;++g)l[g]=0;r(c===0),r((c&-8192)===0)},K.prototype.stub=function(s){for(var u=new Array(s),l=0;l<s;l++)u[l]=0;return u},K.prototype.mulp=function(s,u,l){var f=2*this.guessLen13b(s.length,u.length),c=this.makeRBT(f),g=this.stub(f),m=new Array(f),h=new Array(f),o=new Array(f),p=new Array(f),E=new Array(f),b=new Array(f),w=l.words;w.length=f,this.convert13b(s.words,s.length,m,f),this.convert13b(u.words,u.length,p,f),this.transform(m,g,h,o,f,c),this.transform(p,g,E,b,f,c);for(var U=0;U<f;U++){var S=h[U]*E[U]-o[U]*b[U];o[U]=h[U]*b[U]+o[U]*E[U],h[U]=S}return this.conjugate(h,o,f),this.transform(h,o,w,g,f,c),this.conjugate(w,g,f),this.normalize13b(w,f),l.negative=s.negative^u.negative,l.length=s.length+u.length,l.strip()},i.prototype.mul=function(s){var u=new i(null);return u.words=new Array(this.length+s.length),this.mulTo(s,u)},i.prototype.mulf=function(s){var u=new i(null);return u.words=new Array(this.length+s.length),W(this,s,u)},i.prototype.imul=function(s){return this.clone().mulTo(s,this)},i.prototype.imuln=function(s){r(typeof s=="number"),r(s<67108864);for(var u=0,l=0;l<this.length;l++){var f=(this.words[l]|0)*s,c=(f&67108863)+(u&67108863);u>>=26,u+=f/67108864|0,u+=c>>>26,this.words[l]=c&67108863}return u!==0&&(this.words[l]=u,this.length++),this.length=s===0?1:this.length,this},i.prototype.muln=function(s){return this.clone().imuln(s)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(s){var u=D(s);if(u.length===0)return new i(1);for(var l=this,f=0;f<u.length&&u[f]===0;f++,l=l.sqr());if(++f<u.length)for(var c=l.sqr();f<u.length;f++,c=c.sqr())u[f]!==0&&(l=l.mul(c));return l},i.prototype.iushln=function(s){r(typeof s=="number"&&s>=0);var u=s%26,l=(s-u)/26,f=67108863>>>26-u<<26-u,c;if(u!==0){var g=0;for(c=0;c<this.length;c++){var m=this.words[c]&f,h=(this.words[c]|0)-m<<u;this.words[c]=h|g,g=m>>>26-u}g&&(this.words[c]=g,this.length++)}if(l!==0){for(c=this.length-1;c>=0;c--)this.words[c+l]=this.words[c];for(c=0;c<l;c++)this.words[c]=0;this.length+=l}return this.strip()},i.prototype.ishln=function(s){return r(this.negative===0),this.iushln(s)},i.prototype.iushrn=function(s,u,l){r(typeof s=="number"&&s>=0);var f;u?f=(u-u%26)/26:f=0;var c=s%26,g=Math.min((s-c)/26,this.length),m=67108863^67108863>>>c<<c,h=l;if(f-=g,f=Math.max(0,f),h){for(var o=0;o<g;o++)h.words[o]=this.words[o];h.length=g}if(g!==0)if(this.length>g)for(this.length-=g,o=0;o<this.length;o++)this.words[o]=this.words[o+g];else this.words[0]=0,this.length=1;var p=0;for(o=this.length-1;o>=0&&(p!==0||o>=f);o--){var E=this.words[o]|0;this.words[o]=p<<26-c|E>>>c,p=E&m}return h&&p!==0&&(h.words[h.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(s,u,l){return r(this.negative===0),this.iushrn(s,u,l)},i.prototype.shln=function(s){return this.clone().ishln(s)},i.prototype.ushln=function(s){return this.clone().iushln(s)},i.prototype.shrn=function(s){return this.clone().ishrn(s)},i.prototype.ushrn=function(s){return this.clone().iushrn(s)},i.prototype.testn=function(s){r(typeof s=="number"&&s>=0);var u=s%26,l=(s-u)/26,f=1<<u;if(this.length<=l)return!1;var c=this.words[l];return!!(c&f)},i.prototype.imaskn=function(s){r(typeof s=="number"&&s>=0);var u=s%26,l=(s-u)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(u!==0&&l++,this.length=Math.min(l,this.length),u!==0){var f=67108863^67108863>>>u<<u;this.words[this.length-1]&=f}return this.strip()},i.prototype.maskn=function(s){return this.clone().imaskn(s)},i.prototype.iaddn=function(s){return r(typeof s=="number"),r(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},i.prototype._iaddn=function(s){this.words[0]+=s;for(var u=0;u<this.length&&this.words[u]>=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},i.prototype.isubn=function(s){if(r(typeof s=="number"),r(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u<this.length&&this.words[u]<0;u++)this.words[u]+=67108864,this.words[u+1]-=1;return this.strip()},i.prototype.addn=function(s){return this.clone().iaddn(s)},i.prototype.subn=function(s){return this.clone().isubn(s)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(s,u,l){var f=s.length+l,c;this._expand(f);var g,m=0;for(c=0;c<s.length;c++){g=(this.words[c+l]|0)+m;var h=(s.words[c]|0)*u;g-=h&67108863,m=(g>>26)-(h/67108864|0),this.words[c+l]=g&67108863}for(;c<this.length-l;c++)g=(this.words[c+l]|0)+m,m=g>>26,this.words[c+l]=g&67108863;if(m===0)return this.strip();for(r(m===-1),m=0,c=0;c<this.length;c++)g=-(this.words[c]|0)+m,m=g>>26,this.words[c]=g&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(s,u){var l=this.length-s.length,f=this.clone(),c=s,g=c.words[c.length-1]|0,m=this._countBits(g);l=26-m,l!==0&&(c=c.ushln(l),f.iushln(l),g=c.words[c.length-1]|0);var h=f.length-c.length,o;if(u!=="mod"){o=new i(null),o.length=h+1,o.words=new Array(o.length);for(var p=0;p<o.length;p++)o.words[p]=0}var E=f.clone()._ishlnsubmul(c,1,h);E.negative===0&&(f=E,o&&(o.words[h]=1));for(var b=h-1;b>=0;b--){var w=(f.words[c.length+b]|0)*67108864+(f.words[c.length+b-1]|0);for(w=Math.min(w/g|0,67108863),f._ishlnsubmul(c,w,b);f.negative!==0;)w--,f.negative=0,f._ishlnsubmul(c,1,b),f.isZero()||(f.negative^=1);o&&(o.words[b]=w)}return o&&o.strip(),f.strip(),u!=="div"&&l!==0&&f.iushrn(l),{div:o||null,mod:f}},i.prototype.divmod=function(s,u,l){if(r(!s.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var f,c,g;return this.negative!==0&&s.negative===0?(g=this.neg().divmod(s,u),u!=="mod"&&(f=g.div.neg()),u!=="div"&&(c=g.mod.neg(),l&&c.negative!==0&&c.iadd(s)),{div:f,mod:c}):this.negative===0&&s.negative!==0?(g=this.divmod(s.neg(),u),u!=="mod"&&(f=g.div.neg()),{div:f,mod:g.mod}):this.negative&s.negative?(g=this.neg().divmod(s.neg(),u),u!=="div"&&(c=g.mod.neg(),l&&c.negative!==0&&c.isub(s)),{div:g.div,mod:c}):s.length>this.length||this.cmp(s)<0?{div:new i(0),mod:this}:s.length===1?u==="div"?{div:this.divn(s.words[0]),mod:null}:u==="mod"?{div:null,mod:new i(this.modn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new i(this.modn(s.words[0]))}:this._wordDiv(s,u)},i.prototype.div=function(s){return this.divmod(s,"div",!1).div},i.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},i.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},i.prototype.divRound=function(s){var u=this.divmod(s);if(u.mod.isZero())return u.div;var l=u.div.negative!==0?u.mod.isub(s):u.mod,f=s.ushrn(1),c=s.andln(1),g=l.cmp(f);return g<0||c===1&&g===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},i.prototype.modn=function(s){r(s<=67108863);for(var u=(1<<26)%s,l=0,f=this.length-1;f>=0;f--)l=(u*l+(this.words[f]|0))%s;return l},i.prototype.idivn=function(s){r(s<=67108863);for(var u=0,l=this.length-1;l>=0;l--){var f=(this.words[l]|0)+u*67108864;this.words[l]=f/s|0,u=f%s}return this.strip()},i.prototype.divn=function(s){return this.clone().idivn(s)},i.prototype.egcd=function(s){r(s.negative===0),r(!s.isZero());var u=this,l=s.clone();u.negative!==0?u=u.umod(s):u=u.clone();for(var f=new i(1),c=new i(0),g=new i(0),m=new i(1),h=0;u.isEven()&&l.isEven();)u.iushrn(1),l.iushrn(1),++h;for(var o=l.clone(),p=u.clone();!u.isZero();){for(var E=0,b=1;!(u.words[0]&b)&&E<26;++E,b<<=1);if(E>0)for(u.iushrn(E);E-- >0;)(f.isOdd()||c.isOdd())&&(f.iadd(o),c.isub(p)),f.iushrn(1),c.iushrn(1);for(var w=0,U=1;!(l.words[0]&U)&&w<26;++w,U<<=1);if(w>0)for(l.iushrn(w);w-- >0;)(g.isOdd()||m.isOdd())&&(g.iadd(o),m.isub(p)),g.iushrn(1),m.iushrn(1);u.cmp(l)>=0?(u.isub(l),f.isub(g),c.isub(m)):(l.isub(u),g.isub(f),m.isub(c))}return{a:g,b:m,gcd:l.iushln(h)}},i.prototype._invmp=function(s){r(s.negative===0),r(!s.isZero());var u=this,l=s.clone();u.negative!==0?u=u.umod(s):u=u.clone();for(var f=new i(1),c=new i(0),g=l.clone();u.cmpn(1)>0&&l.cmpn(1)>0;){for(var m=0,h=1;!(u.words[0]&h)&&m<26;++m,h<<=1);if(m>0)for(u.iushrn(m);m-- >0;)f.isOdd()&&f.iadd(g),f.iushrn(1);for(var o=0,p=1;!(l.words[0]&p)&&o<26;++o,p<<=1);if(o>0)for(l.iushrn(o);o-- >0;)c.isOdd()&&c.iadd(g),c.iushrn(1);u.cmp(l)>=0?(u.isub(l),f.isub(c)):(l.isub(u),c.isub(f))}var E;return u.cmpn(1)===0?E=f:E=c,E.cmpn(0)<0&&E.iadd(s),E},i.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var u=this.clone(),l=s.clone();u.negative=0,l.negative=0;for(var f=0;u.isEven()&&l.isEven();f++)u.iushrn(1),l.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;l.isEven();)l.iushrn(1);var c=u.cmp(l);if(c<0){var g=u;u=l,l=g}else if(c===0||l.cmpn(1)===0)break;u.isub(l)}while(!0);return l.iushln(f)},i.prototype.invm=function(s){return this.egcd(s).a.umod(s)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(s){return this.words[0]&s},i.prototype.bincn=function(s){r(typeof s=="number");var u=s%26,l=(s-u)/26,f=1<<u;if(this.length<=l)return this._expand(l+1),this.words[l]|=f,this;for(var c=f,g=l;c!==0&&g<this.length;g++){var m=this.words[g]|0;m+=c,c=m>>>26,m&=67108863,this.words[g]=m}return c!==0&&(this.words[g]=c,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(s){var u=s<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this.strip();var l;if(this.length>1)l=1;else{u&&(s=-s),r(s<=67108863,"Number is too big");var f=this.words[0]|0;l=f===s?0:f<s?-1:1}return this.negative!==0?-l|0:l},i.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var u=this.ucmp(s);return this.negative!==0?-u|0:u},i.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var u=0,l=this.length-1;l>=0;l--){var f=this.words[l]|0,c=s.words[l]|0;if(f!==c){f<c?u=-1:f>c&&(u=1);break}}return u},i.prototype.gtn=function(s){return this.cmpn(s)===1},i.prototype.gt=function(s){return this.cmp(s)===1},i.prototype.gten=function(s){return this.cmpn(s)>=0},i.prototype.gte=function(s){return this.cmp(s)>=0},i.prototype.ltn=function(s){return this.cmpn(s)===-1},i.prototype.lt=function(s){return this.cmp(s)===-1},i.prototype.lten=function(s){return this.cmpn(s)<=0},i.prototype.lte=function(s){return this.cmp(s)<=0},i.prototype.eqn=function(s){return this.cmpn(s)===0},i.prototype.eq=function(s){return this.cmp(s)===0},i.red=function(s){return new te(s)},i.prototype.toRed=function(s){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(s){return this.red=s,this},i.prototype.forceRed=function(s){return r(!this.red,"Already a number in reduction context"),this._forceRed(s)},i.prototype.redAdd=function(s){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},i.prototype.redIAdd=function(s){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},i.prototype.redSub=function(s){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},i.prototype.redISub=function(s){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},i.prototype.redShl=function(s){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},i.prototype.redMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},i.prototype.redIMul=function(s){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(s){return r(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(T,s){this.name=T,this.p=new i(s,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ee.prototype._tmp=function(){var s=new i(null);return s.words=new Array(Math.ceil(this.n/13)),s},ee.prototype.ireduce=function(s){var u=s,l;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),l=u.bitLength();while(l>this.n);var f=l<this.n?-1:u.ucmp(this.p);return f===0?(u.words[0]=0,u.length=1):f>0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},ee.prototype.split=function(s,u){s.iushrn(this.n,0,u)},ee.prototype.imulK=function(s){return s.imul(this.k)};function ae(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(ae,ee),ae.prototype.split=function(s,u){for(var l=4194303,f=Math.min(s.length,9),c=0;c<f;c++)u.words[c]=s.words[c];if(u.length=f,s.length<=9){s.words[0]=0,s.length=1;return}var g=s.words[9];for(u.words[u.length++]=g&l,c=10;c<s.length;c++){var m=s.words[c]|0;s.words[c-10]=(m&l)<<4|g>>>22,g=m}g>>>=22,s.words[c-10]=g,g===0&&s.length>10?s.length-=10:s.length-=9},ae.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var u=0,l=0;l<s.length;l++){var f=s.words[l]|0;u+=f*977,s.words[l]=u&67108863,u=f*64+(u/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function ne(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(ne,ee);function $(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n($,ee);function fe(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(fe,ee),fe.prototype.imulK=function(s){for(var u=0,l=0;l<s.length;l++){var f=(s.words[l]|0)*19+u,c=f&67108863;f>>>=26,s.words[l]=c,u=f}return u!==0&&(s.words[s.length++]=u),s},i._prime=function(s){if(ie[s])return ie[s];var u;if(s==="k256")u=new ae;else if(s==="p224")u=new ne;else if(s==="p192")u=new $;else if(s==="p25519")u=new fe;else throw new Error("Unknown prime "+s);return ie[s]=u,u};function te(T){if(typeof T=="string"){var s=i._prime(T);this.m=s.p,this.prime=s}else r(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}te.prototype._verify1=function(s){r(s.negative===0,"red works only with positives"),r(s.red,"red works only with red numbers")},te.prototype._verify2=function(s,u){r((s.negative|u.negative)===0,"red works only with positives"),r(s.red&&s.red===u.red,"red works only with red numbers")},te.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):s.umod(this.m)._forceRed(this)},te.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},te.prototype.add=function(s,u){this._verify2(s,u);var l=s.add(u);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},te.prototype.iadd=function(s,u){this._verify2(s,u);var l=s.iadd(u);return l.cmp(this.m)>=0&&l.isub(this.m),l},te.prototype.sub=function(s,u){this._verify2(s,u);var l=s.sub(u);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},te.prototype.isub=function(s,u){this._verify2(s,u);var l=s.isub(u);return l.cmpn(0)<0&&l.iadd(this.m),l},te.prototype.shl=function(s,u){return this._verify1(s),this.imod(s.ushln(u))},te.prototype.imul=function(s,u){return this._verify2(s,u),this.imod(s.imul(u))},te.prototype.mul=function(s,u){return this._verify2(s,u),this.imod(s.mul(u))},te.prototype.isqr=function(s){return this.imul(s,s.clone())},te.prototype.sqr=function(s){return this.mul(s,s)},te.prototype.sqrt=function(s){if(s.isZero())return s.clone();var u=this.m.andln(3);if(r(u%2===1),u===3){var l=this.m.add(new i(1)).iushrn(2);return this.pow(s,l)}for(var f=this.m.subn(1),c=0;!f.isZero()&&f.andln(1)===0;)c++,f.iushrn(1);r(!f.isZero());var g=new i(1).toRed(this),m=g.redNeg(),h=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new i(2*o*o).toRed(this);this.pow(o,h).cmp(m)!==0;)o.redIAdd(m);for(var p=this.pow(o,f),E=this.pow(s,f.addn(1).iushrn(1)),b=this.pow(s,f),w=c;b.cmp(g)!==0;){for(var U=b,S=0;U.cmp(g)!==0;S++)U=U.redSqr();r(S<w);var N=this.pow(p,new i(1).iushln(w-S-1));E=E.redMul(N),p=N.redSqr(),b=b.redMul(p),w=S}return E},te.prototype.invm=function(s){var u=s._invmp(this.m);return u.negative!==0?(u.negative=0,this.imod(u).redNeg()):this.imod(u)},te.prototype.pow=function(s,u){if(u.isZero())return new i(1).toRed(this);if(u.cmpn(1)===0)return s.clone();var l=4,f=new Array(1<<l);f[0]=new i(1).toRed(this),f[1]=s;for(var c=2;c<f.length;c++)f[c]=this.mul(f[c-1],s);var g=f[0],m=0,h=0,o=u.bitLength()%26;for(o===0&&(o=26),c=u.length-1;c>=0;c--){for(var p=u.words[c],E=o-1;E>=0;E--){var b=p>>E&1;if(g!==f[0]&&(g=this.sqr(g)),b===0&&m===0){h=0;continue}m<<=1,m|=b,h++,!(h!==l&&(c!==0||E!==0))&&(g=this.mul(g,f[m]),h=0,m=0)}o=26}return g},te.prototype.convertTo=function(s){var u=s.umod(this.m);return u===s?u.clone():u},te.prototype.convertFrom=function(s){var u=s.clone();return u.red=null,u},i.mont=function(s){return new Y(s)};function Y(T){te.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}n(Y,te),Y.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},Y.prototype.convertFrom=function(s){var u=this.imod(s.mul(this.rinv));return u.red=null,u},Y.prototype.imul=function(s,u){if(s.isZero()||u.isZero())return s.words[0]=0,s.length=1,s;var l=s.imul(u),f=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=l.isub(f).iushrn(this.shift),g=c;return c.cmp(this.m)>=0?g=c.isub(this.m):c.cmpn(0)<0&&(g=c.iadd(this.m)),g._forceRed(this)},Y.prototype.mul=function(s,u){if(s.isZero()||u.isZero())return new i(0)._forceRed(this);var l=s.mul(u),f=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=l.isub(f).iushrn(this.shift),g=c;return c.cmp(this.m)>=0?g=c.isub(this.m):c.cmpn(0)<0&&(g=c.iadd(this.m)),g._forceRed(this)},Y.prototype.invm=function(s){var u=this.imod(s._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(typeof jl>"u"||jl,jg)});var Ql=V(Yg=>{"use strict";var hL=A(M()),R0=Yg;function F7(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t!="string"){for(var n=0;n<t.length;n++)r[n]=t[n]|0;return r}if(e==="hex"){t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t);for(var n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var n=0;n<t.length;n++){var i=t.charCodeAt(n),a=i>>8,d=i&255;a?r.push(a,d):r.push(d)}return r}R0.toArray=F7;function Qg(t){return t.length===1?"0"+t:t}R0.zero2=Qg;function Wg(t){for(var e="",r=0;r<t.length;r++)e+=Qg(t[r].toString(16));return e}R0.toHex=Wg;R0.encode=function(e,r){return r==="hex"?Wg(e):e}});var Ir=V($g=>{"use strict";var bL=A(M()),yn=$g,D7=Gn(),O7=li(),F0=Ql();yn.assert=O7;yn.toArray=F0.toArray;yn.zero2=F0.zero2;yn.toHex=F0.toHex;yn.encode=F0.encode;function I7(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1),i;for(i=0;i<n.length;i+=1)n[i]=0;var a=1<<e+1,d=t.clone();for(i=0;i<n.length;i++){var v,y=d.andln(a-1);d.isOdd()?(y>(a>>1)-1?v=(a>>1)-y:v=y,d.isubn(v)):v=0,n[i]=v,d.iushrn(1)}return n}yn.getNAF=I7;function N7(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n=0,i=0,a;t.cmpn(-n)>0||e.cmpn(-i)>0;){var d=t.andln(3)+n&3,v=e.andln(3)+i&3;d===3&&(d=-1),v===3&&(v=-1);var y;d&1?(a=t.andln(7)+n&7,(a===3||a===5)&&v===2?y=-d:y=d):y=0,r[0].push(y);var x;v&1?(a=e.andln(7)+i&7,(a===3||a===5)&&d===2?x=-v:x=v):x=0,r[1].push(x),2*n===y+1&&(n=1-n),2*i===x+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r}yn.getJSF=N7;function k7(t,e,r){var n="_"+e;t.prototype[e]=function(){return this[n]!==void 0?this[n]:this[n]=r.call(this)}}yn.cachedProperty=k7;function J7(t){return typeof t=="string"?yn.toArray(t,"hex"):t}yn.parseBytes=J7;function U7(t){return new D7(t,"hex","le")}yn.intFromLE=U7});var ed=V((gL,$l)=>{var vL=A(M()),Wl;$l.exports=function(e){return Wl||(Wl=new Hi(null)),Wl.generate(e)};function Hi(t){this.rand=t}$l.exports.Rand=Hi;Hi.prototype.generate=function(e){return this._rand(e)};Hi.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var r=new Uint8Array(e),n=0;n<r.length;n++)r[n]=this.rand.getByte();return r};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?Hi.prototype._rand=function(e){var r=new Uint8Array(e);return self.crypto.getRandomValues(r),r}:self.msCrypto&&self.msCrypto.getRandomValues?Hi.prototype._rand=function(e){var r=new Uint8Array(e);return self.msCrypto.getRandomValues(r),r}:typeof window=="object"&&(Hi.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(Yl=rt("crypto"),typeof Yl.randomBytes!="function")throw new Error("Not supported");Hi.prototype._rand=function(e){return Yl.randomBytes(e)}}catch{}var Yl});var Ls=V((mL,ev)=>{"use strict";var xL=A(M()),Sa=Gn(),Ps=Ir(),D0=Ps.getNAF,H7=Ps.getJSF,O0=Ps.assert;function qi(t,e){this.type=t,this.p=new Sa(e.p,16),this.red=e.prime?Sa.red(e.prime):Sa.mont(this.p),this.zero=new Sa(0).toRed(this.red),this.one=new Sa(1).toRed(this.red),this.two=new Sa(2).toRed(this.red),this.n=e.n&&new Sa(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}ev.exports=qi;qi.prototype.point=function(){throw new Error("Not implemented")};qi.prototype.validate=function(){throw new Error("Not implemented")};qi.prototype._fixedNafMul=function(e,r){O0(e.precomputed);var n=e._getDoubles(),i=D0(r,1,this._bitLength),a=(1<<n.step+1)-(n.step%2===0?2:1);a/=3;var d=[],v,y;for(v=0;v<i.length;v+=n.step){y=0;for(var x=v+n.step-1;x>=v;x--)y=(y<<1)+i[x];d.push(y)}for(var B=this.jpoint(null,null,null),C=this.jpoint(null,null,null),D=a;D>0;D--){for(v=0;v<d.length;v++)y=d[v],y===D?C=C.mixedAdd(n.points[v]):y===-D&&(C=C.mixedAdd(n.points[v].neg()));B=B.add(C)}return B.toP()};qi.prototype._wnafMul=function(e,r){var n=4,i=e._getNAFPoints(n);n=i.wnd;for(var a=i.points,d=D0(r,n,this._bitLength),v=this.jpoint(null,null,null),y=d.length-1;y>=0;y--){for(var x=0;y>=0&&d[y]===0;y--)x++;if(y>=0&&x++,v=v.dblp(x),y<0)break;var B=d[y];O0(B!==0),e.type==="affine"?B>0?v=v.mixedAdd(a[B-1>>1]):v=v.mixedAdd(a[-B-1>>1].neg()):B>0?v=v.add(a[B-1>>1]):v=v.add(a[-B-1>>1].neg())}return e.type==="affine"?v.toP():v};qi.prototype._wnafMulAdd=function(e,r,n,i,a){var d=this._wnafT1,v=this._wnafT2,y=this._wnafT3,x=0,B,C,D;for(B=0;B<i;B++){D=r[B];var F=D._getNAFPoints(e);d[B]=F.wnd,v[B]=F.points}for(B=i-1;B>=1;B-=2){var P=B-1,X=B;if(d[P]!==1||d[X]!==1){y[P]=D0(n[P],d[P],this._bitLength),y[X]=D0(n[X],d[X],this._bitLength),x=Math.max(y[P].length,x),x=Math.max(y[X].length,x);continue}var W=[r[P],null,null,r[X]];r[P].y.cmp(r[X].y)===0?(W[1]=r[P].add(r[X]),W[2]=r[P].toJ().mixedAdd(r[X].neg())):r[P].y.cmp(r[X].y.redNeg())===0?(W[1]=r[P].toJ().mixedAdd(r[X]),W[2]=r[P].add(r[X].neg())):(W[1]=r[P].toJ().mixedAdd(r[X]),W[2]=r[P].toJ().mixedAdd(r[X].neg()));var K=[-3,-1,-5,-7,0,7,5,1,3],ie=H7(n[P],n[X]);for(x=Math.max(ie[0].length,x),y[P]=new Array(x),y[X]=new Array(x),C=0;C<x;C++){var ee=ie[0][C]|0,ae=ie[1][C]|0;y[P][C]=K[(ee+1)*3+(ae+1)],y[X][C]=0,v[P]=W}}var ne=this.jpoint(null,null,null),$=this._wnafT4;for(B=x;B>=0;B--){for(var fe=0;B>=0;){var te=!0;for(C=0;C<i;C++)$[C]=y[C][B]|0,$[C]!==0&&(te=!1);if(!te)break;fe++,B--}if(B>=0&&fe++,ne=ne.dblp(fe),B<0)break;for(C=0;C<i;C++){var Y=$[C];Y!==0&&(Y>0?D=v[C][Y-1>>1]:Y<0&&(D=v[C][-Y-1>>1].neg()),D.type==="affine"?ne=ne.mixedAdd(D):ne=ne.add(D))}}for(B=0;B<i;B++)v[B]=null;return a?ne:ne.toP()};function en(t,e){this.curve=t,this.type=e,this.precomputed=null}qi.BasePoint=en;en.prototype.eq=function(){throw new Error("Not implemented")};en.prototype.validate=function(){return this.curve.validate(this)};qi.prototype.decodePoint=function(e,r){e=Ps.toArray(e,r);var n=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*n){e[0]===6?O0(e[e.length-1]%2===0):e[0]===7&&O0(e[e.length-1]%2===1);var i=this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));return i}else if((e[0]===2||e[0]===3)&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),e[0]===3);throw new Error("Unknown point format")};en.prototype.encodeCompressed=function(e){return this.encode(e,!0)};en.prototype._encode=function(e){var r=this.curve.p.byteLength(),n=this.getX().toArray("be",r);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",r))};en.prototype.encode=function(e,r){return Ps.encode(this._encode(r),e)};en.prototype.precompute=function(e){if(this.precomputed)return this;var r={doubles:null,naf:null,beta:null};return r.naf=this._getNAFPoints(8),r.doubles=this._getDoubles(4,e),r.beta=this._getBeta(),this.precomputed=r,this};en.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var r=this.precomputed.doubles;return r?r.points.length>=Math.ceil((e.bitLength()+1)/r.step):!1};en.prototype._getDoubles=function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,a=0;a<r;a+=e){for(var d=0;d<e;d++)i=i.dbl();n.push(i)}return{step:e,points:n}};en.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var r=[this],n=(1<<e)-1,i=n===1?null:this.dbl(),a=1;a<n;a++)r[a]=r[a-1].add(i);return{wnd:e,points:r}};en.prototype._getBeta=function(){return null};en.prototype.dblp=function(e){for(var r=this,n=0;n<e;n++)r=r.dbl();return r}});var rv=V((yL,tv)=>{"use strict";var wL=A(M()),q7=Ir(),pt=Gn(),td=tr(),Mo=Ls(),G7=q7.assert;function tn(t){Mo.call(this,"short",t),this.a=new pt(t.a,16).toRed(this.red),this.b=new pt(t.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(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}td(tn,Mo);tv.exports=tn;tn.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var r,n;if(e.beta)r=new pt(e.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);r=i[0].cmp(i[1])<0?i[0]:i[1],r=r.toRed(this.red)}if(e.lambda)n=new pt(e.lambda,16);else{var a=this._getEndoRoots(this.n);this.g.mul(a[0]).x.cmp(this.g.x.redMul(r))===0?n=a[0]:(n=a[1],G7(this.g.mul(n).x.cmp(this.g.x.redMul(r))===0))}var d;return e.basis?d=e.basis.map(function(v){return{a:new pt(v.a,16),b:new pt(v.b,16)}}):d=this._getEndoBasis(n),{beta:r,lambda:n,basis:d}}};tn.prototype._getEndoRoots=function(e){var r=e===this.p?this.red:pt.mont(e),n=new pt(2).toRed(r).redInvm(),i=n.redNeg(),a=new pt(3).toRed(r).redNeg().redSqrt().redMul(n),d=i.redAdd(a).fromRed(),v=i.redSub(a).fromRed();return[d,v]};tn.prototype._getEndoBasis=function(e){for(var r=this.n.ushrn(Math.floor(this.n.bitLength()/2)),n=e,i=this.n.clone(),a=new pt(1),d=new pt(0),v=new pt(0),y=new pt(1),x,B,C,D,F,P,X,W=0,K,ie;n.cmpn(0)!==0;){var ee=i.div(n);K=i.sub(ee.mul(n)),ie=v.sub(ee.mul(a));var ae=y.sub(ee.mul(d));if(!C&&K.cmp(r)<0)x=X.neg(),B=a,C=K.neg(),D=ie;else if(C&&++W===2)break;X=K,i=n,n=K,v=a,a=ie,y=d,d=ae}F=K.neg(),P=ie;var ne=C.sqr().add(D.sqr()),$=F.sqr().add(P.sqr());return $.cmp(ne)>=0&&(F=x,P=B),C.negative&&(C=C.neg(),D=D.neg()),F.negative&&(F=F.neg(),P=P.neg()),[{a:C,b:D},{a:F,b:P}]};tn.prototype._endoSplit=function(e){var r=this.endo.basis,n=r[0],i=r[1],a=i.b.mul(e).divRound(this.n),d=n.b.neg().mul(e).divRound(this.n),v=a.mul(n.a),y=d.mul(i.a),x=a.mul(n.b),B=d.mul(i.b),C=e.sub(v).sub(y),D=x.add(B).neg();return{k1:C,k2:D}};tn.prototype.pointFromX=function(e,r){e=new pt(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var a=i.fromRed().isOdd();return(r&&!a||!r&&a)&&(i=i.redNeg()),this.point(e,i)};tn.prototype.validate=function(e){if(e.inf)return!0;var r=e.x,n=e.y,i=this.a.redMul(r),a=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(a).cmpn(0)===0};tn.prototype._endoWnafMulAdd=function(e,r,n){for(var i=this._endoWnafT1,a=this._endoWnafT2,d=0;d<e.length;d++){var v=this._endoSplit(r[d]),y=e[d],x=y._getBeta();v.k1.negative&&(v.k1.ineg(),y=y.neg(!0)),v.k2.negative&&(v.k2.ineg(),x=x.neg(!0)),i[d*2]=y,i[d*2+1]=x,a[d*2]=v.k1,a[d*2+1]=v.k2}for(var B=this._wnafMulAdd(1,i,a,d*2,n),C=0;C<d*2;C++)i[C]=null,a[C]=null;return B};function Ht(t,e,r,n){Mo.BasePoint.call(this,t,"affine"),e===null&&r===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new pt(e,16),this.y=new pt(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}td(Ht,Mo.BasePoint);tn.prototype.point=function(e,r,n){return new Ht(this,e,r,n)};tn.prototype.pointFromJSON=function(e,r){return Ht.fromJSON(this,e,r)};Ht.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var r=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,i=function(a){return n.point(a.x.redMul(n.endo.beta),a.y)};e.beta=r,r.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(i)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(i)}}}return r}};Ht.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]};Ht.fromJSON=function(e,r,n){typeof r=="string"&&(r=JSON.parse(r));var i=e.point(r[0],r[1],n);if(!r[2])return i;function a(v){return e.point(v[0],v[1],n)}var d=r[2];return i.precomputed={beta:null,doubles:d.doubles&&{step:d.doubles.step,points:[i].concat(d.doubles.points.map(a))},naf:d.naf&&{wnd:d.naf.wnd,points:[i].concat(d.naf.points.map(a))}},i};Ht.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};Ht.prototype.isInfinity=function(){return this.inf};Ht.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(e.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};Ht.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),i=e.redInvm(),a=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),d=a.redSqr().redISub(this.x.redAdd(this.x)),v=a.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,v)};Ht.prototype.getX=function(){return this.x.fromRed()};Ht.prototype.getY=function(){return this.y.fromRed()};Ht.prototype.mul=function(e){return e=new pt(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};Ht.prototype.mulAdd=function(e,r,n){var i=[this,r],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,a):this.curve._wnafMulAdd(1,i,a,2)};Ht.prototype.jmulAdd=function(e,r,n){var i=[this,r],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,a,!0):this.curve._wnafMulAdd(1,i,a,2,!0)};Ht.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};Ht.prototype.neg=function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,i=function(a){return a.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};Ht.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function nr(t,e,r,n){Mo.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new pt(0)):(this.x=new pt(e,16),this.y=new pt(r,16),this.z=new pt(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}td(nr,Mo.BasePoint);tn.prototype.jpoint=function(e,r,n){return new nr(this,e,r,n)};nr.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(e);return this.curve.point(n,i)};nr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};nr.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),a=e.x.redMul(n),d=this.y.redMul(r.redMul(e.z)),v=e.y.redMul(n.redMul(this.z)),y=i.redSub(a),x=d.redSub(v);if(y.cmpn(0)===0)return x.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var B=y.redSqr(),C=B.redMul(y),D=i.redMul(B),F=x.redSqr().redIAdd(C).redISub(D).redISub(D),P=x.redMul(D.redISub(F)).redISub(d.redMul(C)),X=this.z.redMul(e.z).redMul(y);return this.curve.jpoint(F,P,X)};nr.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=e.x.redMul(r),a=this.y,d=e.y.redMul(r).redMul(this.z),v=n.redSub(i),y=a.redSub(d);if(v.cmpn(0)===0)return y.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var x=v.redSqr(),B=x.redMul(v),C=n.redMul(x),D=y.redSqr().redIAdd(B).redISub(C).redISub(C),F=y.redMul(C.redISub(D)).redISub(a.redMul(B)),P=this.z.redMul(v);return this.curve.jpoint(D,F,P)};nr.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r<e;r++)n=n.dbl();return n}var i=this.curve.a,a=this.curve.tinv,d=this.x,v=this.y,y=this.z,x=y.redSqr().redSqr(),B=v.redAdd(v);for(r=0;r<e;r++){var C=d.redSqr(),D=B.redSqr(),F=D.redSqr(),P=C.redAdd(C).redIAdd(C).redIAdd(i.redMul(x)),X=d.redMul(D),W=P.redSqr().redISub(X.redAdd(X)),K=X.redISub(W),ie=P.redMul(K);ie=ie.redIAdd(ie).redISub(F);var ee=B.redMul(y);r+1<e&&(x=x.redMul(F)),d=W,y=ee,B=ie}return this.curve.jpoint(d,B.redMul(a),y)};nr.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};nr.prototype._zeroDbl=function(){var e,r,n;if(this.zOne){var i=this.x.redSqr(),a=this.y.redSqr(),d=a.redSqr(),v=this.x.redAdd(a).redSqr().redISub(i).redISub(d);v=v.redIAdd(v);var y=i.redAdd(i).redIAdd(i),x=y.redSqr().redISub(v).redISub(v),B=d.redIAdd(d);B=B.redIAdd(B),B=B.redIAdd(B),e=x,r=y.redMul(v.redISub(x)).redISub(B),n=this.y.redAdd(this.y)}else{var C=this.x.redSqr(),D=this.y.redSqr(),F=D.redSqr(),P=this.x.redAdd(D).redSqr().redISub(C).redISub(F);P=P.redIAdd(P);var X=C.redAdd(C).redIAdd(C),W=X.redSqr(),K=F.redIAdd(F);K=K.redIAdd(K),K=K.redIAdd(K),e=W.redISub(P).redISub(P),r=X.redMul(P.redISub(e)).redISub(K),n=this.y.redMul(this.z),n=n.redIAdd(n)}return this.curve.jpoint(e,r,n)};nr.prototype._threeDbl=function(){var e,r,n;if(this.zOne){var i=this.x.redSqr(),a=this.y.redSqr(),d=a.redSqr(),v=this.x.redAdd(a).redSqr().redISub(i).redISub(d);v=v.redIAdd(v);var y=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),x=y.redSqr().redISub(v).redISub(v);e=x;var B=d.redIAdd(d);B=B.redIAdd(B),B=B.redIAdd(B),r=y.redMul(v.redISub(x)).redISub(B),n=this.y.redAdd(this.y)}else{var C=this.z.redSqr(),D=this.y.redSqr(),F=this.x.redMul(D),P=this.x.redSub(C).redMul(this.x.redAdd(C));P=P.redAdd(P).redIAdd(P);var X=F.redIAdd(F);X=X.redIAdd(X);var W=X.redAdd(X);e=P.redSqr().redISub(W),n=this.y.redAdd(this.z).redSqr().redISub(D).redISub(C);var K=D.redSqr();K=K.redIAdd(K),K=K.redIAdd(K),K=K.redIAdd(K),r=P.redMul(X.redISub(e)).redISub(K)}return this.curve.jpoint(e,r,n)};nr.prototype._dbl=function(){var e=this.curve.a,r=this.x,n=this.y,i=this.z,a=i.redSqr().redSqr(),d=r.redSqr(),v=n.redSqr(),y=d.redAdd(d).redIAdd(d).redIAdd(e.redMul(a)),x=r.redAdd(r);x=x.redIAdd(x);var B=x.redMul(v),C=y.redSqr().redISub(B.redAdd(B)),D=B.redISub(C),F=v.redSqr();F=F.redIAdd(F),F=F.redIAdd(F),F=F.redIAdd(F);var P=y.redMul(D).redISub(F),X=n.redAdd(n).redMul(i);return this.curve.jpoint(C,P,X)};nr.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr(),i=r.redSqr(),a=e.redAdd(e).redIAdd(e),d=a.redSqr(),v=this.x.redAdd(r).redSqr().redISub(e).redISub(i);v=v.redIAdd(v),v=v.redAdd(v).redIAdd(v),v=v.redISub(d);var y=v.redSqr(),x=i.redIAdd(i);x=x.redIAdd(x),x=x.redIAdd(x),x=x.redIAdd(x);var B=a.redIAdd(v).redSqr().redISub(d).redISub(y).redISub(x),C=r.redMul(B);C=C.redIAdd(C),C=C.redIAdd(C);var D=this.x.redMul(y).redISub(C);D=D.redIAdd(D),D=D.redIAdd(D);var F=this.y.redMul(B.redMul(x.redISub(B)).redISub(v.redMul(y)));F=F.redIAdd(F),F=F.redIAdd(F),F=F.redIAdd(F);var P=this.z.redAdd(v).redSqr().redISub(n).redISub(y);return this.curve.jpoint(D,F,P)};nr.prototype.mul=function(e,r){return e=new pt(e,r),this.curve._wnafMul(this,e)};nr.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var r=this.z.redSqr(),n=e.z.redSqr();if(this.x.redMul(n).redISub(e.x.redMul(r)).cmpn(0)!==0)return!1;var i=r.redMul(this.z),a=n.redMul(e.z);return this.y.redMul(a).redISub(e.y.redMul(i)).cmpn(0)===0};nr.prototype.eqXToP=function(e){var r=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(r);if(this.x.cmp(n)===0)return!0;for(var i=e.clone(),a=this.curve.redN.redMul(r);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(a),this.x.cmp(n)===0)return!0}};nr.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};nr.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var av=V((AL,iv)=>{"use strict";var ML=A(M()),So=Gn(),nv=tr(),I0=Ls(),X7=Ir();function To(t){I0.call(this,"mont",t),this.a=new So(t.a,16).toRed(this.red),this.b=new So(t.b,16).toRed(this.red),this.i4=new So(4).toRed(this.red).redInvm(),this.two=new So(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}nv(To,I0);iv.exports=To;To.prototype.validate=function(e){var r=e.normalize().x,n=r.redSqr(),i=n.redMul(r).redAdd(n.redMul(this.a)).redAdd(r),a=i.redSqrt();return a.redSqr().cmp(i)===0};function qt(t,e,r){I0.BasePoint.call(this,t,"projective"),e===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new So(e,16),this.z=new So(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}nv(qt,I0.BasePoint);To.prototype.decodePoint=function(e,r){return this.point(X7.toArray(e,r),1)};To.prototype.point=function(e,r){return new qt(this,e,r)};To.prototype.pointFromJSON=function(e){return qt.fromJSON(this,e)};qt.prototype.precompute=function(){};qt.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};qt.fromJSON=function(e,r){return new qt(e,r[0],r[1]||e.one)};qt.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};qt.prototype.isInfinity=function(){return this.z.cmpn(0)===0};qt.prototype.dbl=function(){var e=this.x.redAdd(this.z),r=e.redSqr(),n=this.x.redSub(this.z),i=n.redSqr(),a=r.redSub(i),d=r.redMul(i),v=a.redMul(i.redAdd(this.curve.a24.redMul(a)));return this.curve.point(d,v)};qt.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};qt.prototype.diffAdd=function(e,r){var n=this.x.redAdd(this.z),i=this.x.redSub(this.z),a=e.x.redAdd(e.z),d=e.x.redSub(e.z),v=d.redMul(n),y=a.redMul(i),x=r.z.redMul(v.redAdd(y).redSqr()),B=r.x.redMul(v.redISub(y).redSqr());return this.curve.point(x,B)};qt.prototype.mul=function(e){for(var r=e.clone(),n=this,i=this.curve.point(null,null),a=this,d=[];r.cmpn(0)!==0;r.iushrn(1))d.push(r.andln(1));for(var v=d.length-1;v>=0;v--)d[v]===0?(n=n.diffAdd(i,a),i=i.dbl()):(i=n.diffAdd(i,a),n=n.dbl());return i};qt.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};qt.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};qt.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};qt.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};qt.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var fv=V((SL,sv)=>{"use strict";var TL=A(M()),z7=Ir(),mi=Gn(),ov=tr(),N0=Ls(),K7=z7.assert;function Xn(t){this.twisted=(t.a|0)!==1,this.mOneA=this.twisted&&(t.a|0)===-1,this.extended=this.mOneA,N0.call(this,"edwards",t),this.a=new mi(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new mi(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new mi(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),K7(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(t.c|0)===1}ov(Xn,N0);sv.exports=Xn;Xn.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};Xn.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};Xn.prototype.jpoint=function(e,r,n,i){return this.point(e,r,n,i)};Xn.prototype.pointFromX=function(e,r){e=new mi(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),i=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),d=i.redMul(a.redInvm()),v=d.redSqrt();if(v.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");var y=v.fromRed().isOdd();return(r&&!y||!r&&y)&&(v=v.redNeg()),this.point(e,v)};Xn.prototype.pointFromY=function(e,r){e=new mi(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),i=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),d=i.redMul(a.redInvm());if(d.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,e)}var v=d.redSqrt();if(v.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");return v.fromRed().isOdd()!==r&&(v=v.redNeg()),this.point(v,e)};Xn.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var r=e.x.redSqr(),n=e.y.redSqr(),i=r.redMul(this.a).redAdd(n),a=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(n)));return i.cmp(a)===0};function ct(t,e,r,n,i){N0.BasePoint.call(this,t,"projective"),e===null&&r===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new mi(e,16),this.y=new mi(r,16),this.z=n?new mi(n,16):this.curve.one,this.t=i&&new mi(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}ov(ct,N0.BasePoint);Xn.prototype.pointFromJSON=function(e){return ct.fromJSON(this,e)};Xn.prototype.point=function(e,r,n,i){return new ct(this,e,r,n,i)};ct.fromJSON=function(e,r){return new ct(e,r[0],r[1],r[2])};ct.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};ct.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};ct.prototype._extDbl=function(){var e=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var i=this.curve._mulA(e),a=this.x.redAdd(this.y).redSqr().redISub(e).redISub(r),d=i.redAdd(r),v=d.redSub(n),y=i.redSub(r),x=a.redMul(v),B=d.redMul(y),C=a.redMul(y),D=v.redMul(d);return this.curve.point(x,B,D,C)};ct.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),n=this.y.redSqr(),i,a,d,v,y,x;if(this.curve.twisted){v=this.curve._mulA(r);var B=v.redAdd(n);this.zOne?(i=e.redSub(r).redSub(n).redMul(B.redSub(this.curve.two)),a=B.redMul(v.redSub(n)),d=B.redSqr().redSub(B).redSub(B)):(y=this.z.redSqr(),x=B.redSub(y).redISub(y),i=e.redSub(r).redISub(n).redMul(x),a=B.redMul(v.redSub(n)),d=B.redMul(x))}else v=r.redAdd(n),y=this.curve._mulC(this.z).redSqr(),x=v.redSub(y).redSub(y),i=this.curve._mulC(e.redISub(v)).redMul(x),a=this.curve._mulC(v).redMul(r.redISub(n)),d=v.redMul(x);return this.curve.point(i,a,d)};ct.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};ct.prototype._extAdd=function(e){var r=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),a=this.z.redMul(e.z.redAdd(e.z)),d=n.redSub(r),v=a.redSub(i),y=a.redAdd(i),x=n.redAdd(r),B=d.redMul(v),C=y.redMul(x),D=d.redMul(x),F=v.redMul(y);return this.curve.point(B,C,F,D)};ct.prototype._projAdd=function(e){var r=this.z.redMul(e.z),n=r.redSqr(),i=this.x.redMul(e.x),a=this.y.redMul(e.y),d=this.curve.d.redMul(i).redMul(a),v=n.redSub(d),y=n.redAdd(d),x=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(a),B=r.redMul(v).redMul(x),C,D;return this.curve.twisted?(C=r.redMul(y).redMul(a.redSub(this.curve._mulA(i))),D=v.redMul(y)):(C=r.redMul(y).redMul(a.redSub(i)),D=this.curve._mulC(v).redMul(y)),this.curve.point(B,C,D)};ct.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};ct.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};ct.prototype.mulAdd=function(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,!1)};ct.prototype.jmulAdd=function(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,!0)};ct.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this};ct.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};ct.prototype.getX=function(){return this.normalize(),this.x.fromRed()};ct.prototype.getY=function(){return this.normalize(),this.y.fromRed()};ct.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};ct.prototype.eqXToP=function(e){var r=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var n=e.clone(),i=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),this.x.cmp(r)===0)return!0}};ct.prototype.toP=ct.prototype.normalize;ct.prototype.mixedAdd=ct.prototype.add});var rd=V(cv=>{"use strict";var _L=A(M()),k0=cv;k0.base=Ls();k0.short=rv();k0.mont=av();k0.edwards=fv()});var wn=V(it=>{"use strict";var CL=A(M()),Z7=li(),V7=tr();it.inherits=V7;function j7(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function Q7(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var n=0,i=0;i<t.length;i++){var a=t.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=a&63|128):j7(t,i)?(a=65536+((a&1023)<<10)+(t.charCodeAt(++i)&1023),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=a&63|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=a&63|128)}else for(i=0;i<t.length;i++)r[i]=t[i]|0;return r}it.toArray=Q7;function W7(t){for(var e="",r=0;r<t.length;r++)e+=lv(t[r].toString(16));return e}it.toHex=W7;function uv(t){var e=t>>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}it.htonl=uv;function Y7(t,e){for(var r="",n=0;n<t.length;n++){var i=t[n];e==="little"&&(i=uv(i)),r+=dv(i.toString(16))}return r}it.toHex32=Y7;function lv(t){return t.length===1?"0"+t:t}it.zero2=lv;function dv(t){return t.length===7?"0"+t:t.length===6?"00"+t:t.length===5?"000"+t:t.length===4?"0000"+t:t.length===3?"00000"+t:t.length===2?"000000"+t:t.length===1?"0000000"+t:t}it.zero8=dv;function $7(t,e,r,n){var i=r-e;Z7(i%4===0);for(var a=new Array(i/4),d=0,v=e;d<a.length;d++,v+=4){var y;n==="big"?y=t[v]<<24|t[v+1]<<16|t[v+2]<<8|t[v+3]:y=t[v+3]<<24|t[v+2]<<16|t[v+1]<<8|t[v],a[d]=y>>>0}return a}it.join32=$7;function ew(t,e){for(var r=new Array(t.length*4),n=0,i=0;n<t.length;n++,i+=4){var a=t[n];e==="big"?(r[i]=a>>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=a&255):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=a&255)}return r}it.split32=ew;function tw(t,e){return t>>>e|t<<32-e}it.rotr32=tw;function rw(t,e){return t<<e|t>>>32-e}it.rotl32=rw;function nw(t,e){return t+e>>>0}it.sum32=nw;function iw(t,e,r){return t+e+r>>>0}it.sum32_3=iw;function aw(t,e,r,n){return t+e+r+n>>>0}it.sum32_4=aw;function ow(t,e,r,n,i){return t+e+r+n+i>>>0}it.sum32_5=ow;function sw(t,e,r,n){var i=t[e],a=t[e+1],d=n+a>>>0,v=(d<n?1:0)+r+i;t[e]=v>>>0,t[e+1]=d}it.sum64=sw;function fw(t,e,r,n){var i=e+n>>>0,a=(i<e?1:0)+t+r;return a>>>0}it.sum64_hi=fw;function cw(t,e,r,n){var i=e+n;return i>>>0}it.sum64_lo=cw;function uw(t,e,r,n,i,a,d,v){var y=0,x=e;x=x+n>>>0,y+=x<e?1:0,x=x+a>>>0,y+=x<a?1:0,x=x+v>>>0,y+=x<v?1:0;var B=t+r+i+d+y;return B>>>0}it.sum64_4_hi=uw;function lw(t,e,r,n,i,a,d,v){var y=e+n+a+v;return y>>>0}it.sum64_4_lo=lw;function dw(t,e,r,n,i,a,d,v,y,x){var B=0,C=e;C=C+n>>>0,B+=C<e?1:0,C=C+a>>>0,B+=C<a?1:0,C=C+v>>>0,B+=C<v?1:0,C=C+x>>>0,B+=C<x?1:0;var D=t+r+i+d+y+B;return D>>>0}it.sum64_5_hi=dw;function hw(t,e,r,n,i,a,d,v,y,x){var B=e+n+a+v+x;return B>>>0}it.sum64_5_lo=hw;function pw(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}it.rotr64_hi=pw;function bw(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}it.rotr64_lo=bw;function gw(t,e,r){return t>>>r}it.shr64_hi=gw;function vw(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}it.shr64_lo=vw});var Eo=V(pv=>{"use strict";var LL=A(M()),hv=wn(),mw=li();function J0(){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}pv.BlockHash=J0;J0.prototype.update=function(e,r){if(e=hv.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=hv.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this};J0.prototype.digest=function(e){return this.update(this._pad()),mw(this.pending===null),this._digest(e)};J0.prototype._pad=function(){var e=this.pendingTotal,r=this._delta8,n=r-(e+this.padLength)%r,i=new Array(n+this.padLength);i[0]=128;for(var a=1;a<n;a++)i[a]=0;if(e<<=3,this.endian==="big"){for(var d=8;d<this.padLength;d++)i[a++]=0;i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=e>>>24&255,i[a++]=e>>>16&255,i[a++]=e>>>8&255,i[a++]=e&255}else for(i[a++]=e&255,i[a++]=e>>>8&255,i[a++]=e>>>16&255,i[a++]=e>>>24&255,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0,d=8;d<this.padLength;d++)i[a++]=0;return i}});var nd=V(xi=>{"use strict";var FL=A(M()),xw=wn(),zn=xw.rotr32;function yw(t,e,r,n){if(t===0)return bv(e,r,n);if(t===1||t===3)return vv(e,r,n);if(t===2)return gv(e,r,n)}xi.ft_1=yw;function bv(t,e,r){return t&e^~t&r}xi.ch32=bv;function gv(t,e,r){return t&e^t&r^e&r}xi.maj32=gv;function vv(t,e,r){return t^e^r}xi.p32=vv;function ww(t){return zn(t,2)^zn(t,13)^zn(t,22)}xi.s0_256=ww;function Aw(t){return zn(t,6)^zn(t,11)^zn(t,25)}xi.s1_256=Aw;function Mw(t){return zn(t,7)^zn(t,18)^t>>>3}xi.g0_256=Mw;function Sw(t){return zn(t,17)^zn(t,19)^t>>>10}xi.g1_256=Sw});var yv=V((DL,xv)=>{"use strict";var OL=A(M()),_o=wn(),Tw=Eo(),Ew=nd(),id=_o.rotl32,Rs=_o.sum32,_w=_o.sum32_5,Bw=Ew.ft_1,mv=Tw.BlockHash,Cw=[1518500249,1859775393,2400959708,3395469782];function Kn(){if(!(this instanceof Kn))return new Kn;mv.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}_o.inherits(Kn,mv);xv.exports=Kn;Kn.blockSize=512;Kn.outSize=160;Kn.hmacStrength=80;Kn.padLength=64;Kn.prototype._update=function(e,r){for(var n=this.W,i=0;i<16;i++)n[i]=e[r+i];for(;i<n.length;i++)n[i]=id(n[i-3]^n[i-8]^n[i-14]^n[i-16],1);var a=this.h[0],d=this.h[1],v=this.h[2],y=this.h[3],x=this.h[4];for(i=0;i<n.length;i++){var B=~~(i/20),C=_w(id(a,5),Bw(B,d,v,y),x,n[i],Cw[B]);x=y,y=v,v=id(d,30),d=a,a=C}this.h[0]=Rs(this.h[0],a),this.h[1]=Rs(this.h[1],d),this.h[2]=Rs(this.h[2],v),this.h[3]=Rs(this.h[3],y),this.h[4]=Rs(this.h[4],x)};Kn.prototype._digest=function(e){return e==="hex"?_o.toHex32(this.h,"big"):_o.split32(this.h,"big")}});var ad=V((IL,Av)=>{"use strict";var NL=A(M()),Bo=wn(),Pw=Eo(),Co=nd(),Lw=li(),An=Bo.sum32,Rw=Bo.sum32_4,Fw=Bo.sum32_5,Dw=Co.ch32,Ow=Co.maj32,Iw=Co.s0_256,Nw=Co.s1_256,kw=Co.g0_256,Jw=Co.g1_256,wv=Pw.BlockHash,Uw=[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 Zn(){if(!(this instanceof Zn))return new Zn;wv.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Uw,this.W=new Array(64)}Bo.inherits(Zn,wv);Av.exports=Zn;Zn.blockSize=512;Zn.outSize=256;Zn.hmacStrength=192;Zn.padLength=64;Zn.prototype._update=function(e,r){for(var n=this.W,i=0;i<16;i++)n[i]=e[r+i];for(;i<n.length;i++)n[i]=Rw(Jw(n[i-2]),n[i-7],kw(n[i-15]),n[i-16]);var a=this.h[0],d=this.h[1],v=this.h[2],y=this.h[3],x=this.h[4],B=this.h[5],C=this.h[6],D=this.h[7];for(Lw(this.k.length===n.length),i=0;i<n.length;i++){var F=Fw(D,Nw(x),Dw(x,B,C),this.k[i],n[i]),P=An(Iw(a),Ow(a,d,v));D=C,C=B,B=x,x=An(y,F),y=v,v=d,d=a,a=An(F,P)}this.h[0]=An(this.h[0],a),this.h[1]=An(this.h[1],d),this.h[2]=An(this.h[2],v),this.h[3]=An(this.h[3],y),this.h[4]=An(this.h[4],x),this.h[5]=An(this.h[5],B),this.h[6]=An(this.h[6],C),this.h[7]=An(this.h[7],D)};Zn.prototype._digest=function(e){return e==="hex"?Bo.toHex32(this.h,"big"):Bo.split32(this.h,"big")}});var Tv=V((kL,Sv)=>{"use strict";var JL=A(M()),od=wn(),Mv=ad();function yi(){if(!(this instanceof yi))return new yi;Mv.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}od.inherits(yi,Mv);Sv.exports=yi;yi.blockSize=512;yi.outSize=224;yi.hmacStrength=192;yi.padLength=64;yi.prototype._digest=function(e){return e==="hex"?od.toHex32(this.h.slice(0,7),"big"):od.split32(this.h.slice(0,7),"big")}});var cd=V((UL,Cv)=>{"use strict";var HL=A(M()),Cr=wn(),Hw=Eo(),qw=li(),Vn=Cr.rotr64_hi,jn=Cr.rotr64_lo,Ev=Cr.shr64_hi,_v=Cr.shr64_lo,Gi=Cr.sum64,sd=Cr.sum64_hi,fd=Cr.sum64_lo,Gw=Cr.sum64_4_hi,Xw=Cr.sum64_4_lo,zw=Cr.sum64_5_hi,Kw=Cr.sum64_5_lo,Bv=Hw.BlockHash,Zw=[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 Mn(){if(!(this instanceof Mn))return new Mn;Bv.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Zw,this.W=new Array(160)}Cr.inherits(Mn,Bv);Cv.exports=Mn;Mn.blockSize=1024;Mn.outSize=512;Mn.hmacStrength=192;Mn.padLength=128;Mn.prototype._prepareBlock=function(e,r){for(var n=this.W,i=0;i<32;i++)n[i]=e[r+i];for(;i<n.length;i+=2){var a=i9(n[i-4],n[i-3]),d=a9(n[i-4],n[i-3]),v=n[i-14],y=n[i-13],x=r9(n[i-30],n[i-29]),B=n9(n[i-30],n[i-29]),C=n[i-32],D=n[i-31];n[i]=Gw(a,d,v,y,x,B,C,D),n[i+1]=Xw(a,d,v,y,x,B,C,D)}};Mn.prototype._update=function(e,r){this._prepareBlock(e,r);var n=this.W,i=this.h[0],a=this.h[1],d=this.h[2],v=this.h[3],y=this.h[4],x=this.h[5],B=this.h[6],C=this.h[7],D=this.h[8],F=this.h[9],P=this.h[10],X=this.h[11],W=this.h[12],K=this.h[13],ie=this.h[14],ee=this.h[15];qw(this.k.length===n.length);for(var ae=0;ae<n.length;ae+=2){var ne=ie,$=ee,fe=e9(D,F),te=t9(D,F),Y=Vw(D,F,P,X,W,K),T=jw(D,F,P,X,W,K),s=this.k[ae],u=this.k[ae+1],l=n[ae],f=n[ae+1],c=zw(ne,$,fe,te,Y,T,s,u,l,f),g=Kw(ne,$,fe,te,Y,T,s,u,l,f);ne=Yw(i,a),$=$w(i,a),fe=Qw(i,a,d,v,y,x),te=Ww(i,a,d,v,y,x);var m=sd(ne,$,fe,te),h=fd(ne,$,fe,te);ie=W,ee=K,W=P,K=X,P=D,X=F,D=sd(B,C,c,g),F=fd(C,C,c,g),B=y,C=x,y=d,x=v,d=i,v=a,i=sd(c,g,m,h),a=fd(c,g,m,h)}Gi(this.h,0,i,a),Gi(this.h,2,d,v),Gi(this.h,4,y,x),Gi(this.h,6,B,C),Gi(this.h,8,D,F),Gi(this.h,10,P,X),Gi(this.h,12,W,K),Gi(this.h,14,ie,ee)};Mn.prototype._digest=function(e){return e==="hex"?Cr.toHex32(this.h,"big"):Cr.split32(this.h,"big")};function Vw(t,e,r,n,i){var a=t&r^~t&i;return a<0&&(a+=4294967296),a}function jw(t,e,r,n,i,a){var d=e&n^~e&a;return d<0&&(d+=4294967296),d}function Qw(t,e,r,n,i){var a=t&r^t&i^r&i;return a<0&&(a+=4294967296),a}function Ww(t,e,r,n,i,a){var d=e&n^e&a^n&a;return d<0&&(d+=4294967296),d}function Yw(t,e){var r=Vn(t,e,28),n=Vn(e,t,2),i=Vn(e,t,7),a=r^n^i;return a<0&&(a+=4294967296),a}function $w(t,e){var r=jn(t,e,28),n=jn(e,t,2),i=jn(e,t,7),a=r^n^i;return a<0&&(a+=4294967296),a}function e9(t,e){var r=Vn(t,e,14),n=Vn(t,e,18),i=Vn(e,t,9),a=r^n^i;return a<0&&(a+=4294967296),a}function t9(t,e){var r=jn(t,e,14),n=jn(t,e,18),i=jn(e,t,9),a=r^n^i;return a<0&&(a+=4294967296),a}function r9(t,e){var r=Vn(t,e,1),n=Vn(t,e,8),i=Ev(t,e,7),a=r^n^i;return a<0&&(a+=4294967296),a}function n9(t,e){var r=jn(t,e,1),n=jn(t,e,8),i=_v(t,e,7),a=r^n^i;return a<0&&(a+=4294967296),a}function i9(t,e){var r=Vn(t,e,19),n=Vn(e,t,29),i=Ev(t,e,6),a=r^n^i;return a<0&&(a+=4294967296),a}function a9(t,e){var r=jn(t,e,19),n=jn(e,t,29),i=_v(t,e,6),a=r^n^i;return a<0&&(a+=4294967296),a}});var Rv=V((qL,Lv)=>{"use strict";var GL=A(M()),ud=wn(),Pv=cd();function wi(){if(!(this instanceof wi))return new wi;Pv.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}ud.inherits(wi,Pv);Lv.exports=wi;wi.blockSize=1024;wi.outSize=384;wi.hmacStrength=192;wi.padLength=128;wi.prototype._digest=function(e){return e==="hex"?ud.toHex32(this.h.slice(0,12),"big"):ud.split32(this.h.slice(0,12),"big")}});var Fv=V(Po=>{"use strict";var zL=A(M());Po.sha1=yv();Po.sha224=Tv();Po.sha256=ad();Po.sha384=Rv();Po.sha512=cd()});var Jv=V(kv=>{"use strict";var ZL=A(M()),Ta=wn(),o9=Eo(),U0=Ta.rotl32,Dv=Ta.sum32,Fs=Ta.sum32_3,Ov=Ta.sum32_4,Nv=o9.BlockHash;function Qn(){if(!(this instanceof Qn))return new Qn;Nv.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Ta.inherits(Qn,Nv);kv.ripemd160=Qn;Qn.blockSize=512;Qn.outSize=160;Qn.hmacStrength=192;Qn.padLength=64;Qn.prototype._update=function(e,r){for(var n=this.h[0],i=this.h[1],a=this.h[2],d=this.h[3],v=this.h[4],y=n,x=i,B=a,C=d,D=v,F=0;F<80;F++){var P=Dv(U0(Ov(n,Iv(F,i,a,d),e[c9[F]+r],s9(F)),l9[F]),v);n=v,v=d,d=U0(a,10),a=i,i=P,P=Dv(U0(Ov(y,Iv(79-F,x,B,C),e[u9[F]+r],f9(F)),d9[F]),D),y=D,D=C,C=U0(B,10),B=x,x=P}P=Fs(this.h[1],a,C),this.h[1]=Fs(this.h[2],d,D),this.h[2]=Fs(this.h[3],v,y),this.h[3]=Fs(this.h[4],n,x),this.h[4]=Fs(this.h[0],i,B),this.h[0]=P};Qn.prototype._digest=function(e){return e==="hex"?Ta.toHex32(this.h,"little"):Ta.split32(this.h,"little")};function Iv(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function s9(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function f9(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}var c9=[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],u9=[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],l9=[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],d9=[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]});var Hv=V((VL,Uv)=>{"use strict";var jL=A(M()),h9=wn(),p9=li();function Lo(t,e,r){if(!(this instanceof Lo))return new Lo(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(h9.toArray(e,r))}Uv.exports=Lo;Lo.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),p9(e.length<=this.blockSize);for(var r=e.length;r<this.blockSize;r++)e.push(0);for(r=0;r<e.length;r++)e[r]^=54;for(this.inner=new this.Hash().update(e),r=0;r<e.length;r++)e[r]^=106;this.outer=new this.Hash().update(e)};Lo.prototype.update=function(e,r){return this.inner.update(e,r),this};Lo.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}});var Ds=V(qv=>{var WL=A(M()),ir=qv;ir.utils=wn();ir.common=Eo();ir.sha=Fv();ir.ripemd=Jv();ir.hmac=Hv();ir.sha1=ir.sha.sha1;ir.sha256=ir.sha.sha256;ir.sha224=ir.sha.sha224;ir.sha384=ir.sha.sha384;ir.sha512=ir.sha.sha512;ir.ripemd160=ir.ripemd.ripemd160});var Xv=V((YL,Gv)=>{var $L=A(M());Gv.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"]]}}});var H0=V(Zv=>{"use strict";var tR=A(M()),dd=Zv,Xi=Ds(),ld=rd(),b9=Ir(),zv=b9.assert;function Kv(t){t.type==="short"?this.curve=new ld.short(t):t.type==="edwards"?this.curve=new ld.edwards(t):this.curve=new ld.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,zv(this.g.validate(),"Invalid curve"),zv(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}dd.PresetCurve=Kv;function zi(t,e){Object.defineProperty(dd,t,{configurable:!0,enumerable:!0,get:function(){var r=new Kv(e);return Object.defineProperty(dd,t,{configurable:!0,enumerable:!0,value:r}),r}})}zi("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Xi.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});zi("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Xi.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});zi("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Xi.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});zi("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Xi.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]});zi("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Xi.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]});zi("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Xi.sha256,gRed:!1,g:["9"]});zi("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Xi.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var hd;try{hd=Xv()}catch{hd=void 0}zi("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:Xi.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",hd]})});var Qv=V((rR,jv)=>{"use strict";var nR=A(M()),g9=Ds(),Ea=Ql(),Vv=li();function Ki(t){if(!(this instanceof Ki))return new Ki(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Ea.toArray(t.entropy,t.entropyEnc||"hex"),r=Ea.toArray(t.nonce,t.nonceEnc||"hex"),n=Ea.toArray(t.pers,t.persEnc||"hex");Vv(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}jv.exports=Ki;Ki.prototype._init=function(e,r,n){var i=e.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a<this.V.length;a++)this.K[a]=0,this.V[a]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656};Ki.prototype._hmac=function(){return new g9.hmac(this.hash,this.K)};Ki.prototype._update=function(e){var r=this._hmac().update(this.V).update([0]);e&&(r=r.update(e)),this.K=r.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())};Ki.prototype.reseed=function(e,r,n,i){typeof r!="string"&&(i=n,n=r,r=null),e=Ea.toArray(e,r),n=Ea.toArray(n,i),Vv(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};Ki.prototype.generate=function(e,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=Ea.toArray(n,i||"hex"),this._update(n));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var d=a.slice(0,e);return this._update(n),this._reseed++,Ea.encode(d,r)}});var Yv=V((iR,Wv)=>{"use strict";var aR=A(M()),v9=Gn(),m9=Ir(),pd=m9.assert;function fr(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}Wv.exports=fr;fr.fromPublic=function(e,r,n){return r instanceof fr?r:new fr(e,{pub:r,pubEnc:n})};fr.fromPrivate=function(e,r,n){return r instanceof fr?r:new fr(e,{priv:r,privEnc:n})};fr.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.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"}};fr.prototype.getPublic=function(e,r){return typeof e=="string"&&(r=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),r?this.pub.encode(r,e):this.pub};fr.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};fr.prototype._importPrivate=function(e,r){this.priv=new v9(e,r||16),this.priv=this.priv.umod(this.ec.curve.n)};fr.prototype._importPublic=function(e,r){if(e.x||e.y){this.ec.curve.type==="mont"?pd(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&pd(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,r)};fr.prototype.derive=function(e){return e.validate()||pd(e.validate(),"public point not validated"),e.mul(this.priv).getX()};fr.prototype.sign=function(e,r,n){return this.ec.sign(e,this,r,n)};fr.prototype.verify=function(e,r,n){return this.ec.verify(e,r,this,void 0,n)};fr.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}});var tm=V((oR,em)=>{"use strict";var sR=A(M()),q0=Gn(),vd=Ir(),x9=vd.assert;function G0(t,e){if(t instanceof G0)return t;this._importDER(t,e)||(x9(t.r&&t.s,"Signature without r or s"),this.r=new q0(t.r,16),this.s=new q0(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}em.exports=G0;function y9(){this.place=0}function bd(t,e){var r=t[e.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4||t[e.place]===0)return!1;for(var i=0,a=0,d=e.place;a<n;a++,d++)i<<=8,i|=t[d],i>>>=0;return i<=127?!1:(e.place=d,i)}function $v(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e<r;)e++;return e===0?t:t.slice(e)}G0.prototype._importDER=function(e,r){e=vd.toArray(e,r);var n=new y9;if(e[n.place++]!==48)return!1;var i=bd(e,n);if(i===!1||i+n.place!==e.length||e[n.place++]!==2)return!1;var a=bd(e,n);if(a===!1||e[n.place]&128)return!1;var d=e.slice(n.place,a+n.place);if(n.place+=a,e[n.place++]!==2)return!1;var v=bd(e,n);if(v===!1||e.length!==v+n.place||e[n.place]&128)return!1;var y=e.slice(n.place,v+n.place);if(d[0]===0)if(d[1]&128)d=d.slice(1);else return!1;if(y[0]===0)if(y[1]&128)y=y.slice(1);else return!1;return this.r=new q0(d),this.s=new q0(y),this.recoveryParam=null,!0};function gd(t,e){if(e<128){t.push(e);return}var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}G0.prototype.toDER=function(e){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=$v(r),n=$v(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];gd(i,r.length),i=i.concat(r),i.push(2),gd(i,n.length);var a=i.concat(n),d=[48];return gd(d,a.length),d=d.concat(a),vd.encode(d,e)}});var im=V((fR,nm)=>{"use strict";var cR=A(M()),Sn=Gn(),rm=Qv(),w9=Ir(),md=H0(),A9=ed(),_a=w9.assert,xd=Yv(),X0=tm();function rn(t){if(!(this instanceof rn))return new rn(t);typeof t=="string"&&(_a(Object.prototype.hasOwnProperty.call(md,t),"Unknown curve "+t),t=md[t]),t instanceof md.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}nm.exports=rn;rn.prototype.keyPair=function(e){return new xd(this,e)};rn.prototype.keyFromPrivate=function(e,r){return xd.fromPrivate(this,e,r)};rn.prototype.keyFromPublic=function(e,r){return xd.fromPublic(this,e,r)};rn.prototype.genKeyPair=function(e){e||(e={});for(var r=new rm({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||A9(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new Sn(2));;){var a=new Sn(r.generate(n));if(!(a.cmp(i)>0))return a.iaddn(1),this.keyFromPrivate(a)}};rn.prototype._truncateToN=function(e,r,n){var i;if(Sn.isBN(e)||typeof e=="number")e=new Sn(e,16),i=e.byteLength();else if(typeof e=="object")i=e.length,e=new Sn(e,16);else{var a=e.toString();i=a.length+1>>>1,e=new Sn(a,16)}typeof n!="number"&&(n=i*8);var d=n-this.n.bitLength();return d>0&&(e=e.ushrn(d)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e};rn.prototype.sign=function(e,r,n,i){if(typeof n=="object"&&(i=n,n=null),i||(i={}),typeof e!="string"&&typeof e!="number"&&!Sn.isBN(e)){_a(typeof e=="object"&&e&&typeof e.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),_a(e.length>>>0===e.length);for(var a=0;a<e.length;a++)_a((e[a]&255)===e[a])}r=this.keyFromPrivate(r,n),e=this._truncateToN(e,!1,i.msgBitLength),_a(!e.isNeg(),"Can not sign a negative message");var d=this.n.byteLength(),v=r.getPrivate().toArray("be",d),y=e.toArray("be",d);_a(new Sn(y).eq(e),"Can not sign message");for(var x=new rm({hash:this.hash,entropy:v,nonce:y,pers:i.pers,persEnc:i.persEnc||"utf8"}),B=this.n.sub(new Sn(1)),C=0;;C++){var D=i.k?i.k(C):new Sn(x.generate(this.n.byteLength()));if(D=this._truncateToN(D,!0),!(D.cmpn(1)<=0||D.cmp(B)>=0)){var F=this.g.mul(D);if(!F.isInfinity()){var P=F.getX(),X=P.umod(this.n);if(X.cmpn(0)!==0){var W=D.invm(this.n).mul(X.mul(r.getPrivate()).iadd(e));if(W=W.umod(this.n),W.cmpn(0)!==0){var K=(F.getY().isOdd()?1:0)|(P.cmp(X)!==0?2:0);return i.canonical&&W.cmp(this.nh)>0&&(W=this.n.sub(W),K^=1),new X0({r:X,s:W,recoveryParam:K})}}}}}};rn.prototype.verify=function(e,r,n,i,a){a||(a={}),e=this._truncateToN(e,!1,a.msgBitLength),n=this.keyFromPublic(n,i),r=new X0(r,"hex");var d=r.r,v=r.s;if(d.cmpn(1)<0||d.cmp(this.n)>=0||v.cmpn(1)<0||v.cmp(this.n)>=0)return!1;var y=v.invm(this.n),x=y.mul(e).umod(this.n),B=y.mul(d).umod(this.n),C;return this.curve._maxwellTrick?(C=this.g.jmulAdd(x,n.getPublic(),B),C.isInfinity()?!1:C.eqXToP(d)):(C=this.g.mulAdd(x,n.getPublic(),B),C.isInfinity()?!1:C.getX().umod(this.n).cmp(d)===0)};rn.prototype.recoverPubKey=function(t,e,r,n){_a((3&r)===r,"The recovery param is more than two bits"),e=new X0(e,n);var i=this.n,a=new Sn(t),d=e.r,v=e.s,y=r&1,x=r>>1;if(d.cmp(this.curve.p.umod(this.curve.n))>=0&&x)throw new Error("Unable to find sencond key candinate");x?d=this.curve.pointFromX(d.add(this.curve.n),y):d=this.curve.pointFromX(d,y);var B=e.r.invm(i),C=i.sub(a).mul(B).umod(i),D=v.mul(B).umod(i);return this.g.mulAdd(C,d,D)};rn.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new X0(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(t,e,i)}catch{continue}if(a.eq(r))return i}throw new Error("Unable to find valid recovery factor")}});var fm=V((uR,sm)=>{"use strict";var lR=A(M()),Os=Ir(),om=Os.assert,am=Os.parseBytes,Ro=Os.cachedProperty;function Gt(t,e){this.eddsa=t,this._secret=am(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=am(e.pub)}Gt.fromPublic=function(e,r){return r instanceof Gt?r:new Gt(e,{pub:r})};Gt.fromSecret=function(e,r){return r instanceof Gt?r:new Gt(e,{secret:r})};Gt.prototype.secret=function(){return this._secret};Ro(Gt,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});Ro(Gt,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});Ro(Gt,"privBytes",function(){var e=this.eddsa,r=this.hash(),n=e.encodingLength-1,i=r.slice(0,e.encodingLength);return i[0]&=248,i[n]&=127,i[n]|=64,i});Ro(Gt,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});Ro(Gt,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});Ro(Gt,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Gt.prototype.sign=function(e){return om(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};Gt.prototype.verify=function(e,r){return this.eddsa.verify(e,r,this)};Gt.prototype.getSecret=function(e){return om(this._secret,"KeyPair is public only"),Os.encode(this.secret(),e)};Gt.prototype.getPublic=function(e){return Os.encode(this.pubBytes(),e)};sm.exports=Gt});var lm=V((dR,um)=>{"use strict";var hR=A(M()),M9=Gn(),z0=Ir(),cm=z0.assert,K0=z0.cachedProperty,S9=z0.parseBytes;function Ba(t,e){this.eddsa=t,typeof e!="object"&&(e=S9(e)),Array.isArray(e)&&(cm(e.length===t.encodingLength*2,"Signature has invalid size"),e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),cm(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof M9&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}K0(Ba,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});K0(Ba,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});K0(Ba,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});K0(Ba,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Ba.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Ba.prototype.toHex=function(){return z0.encode(this.toBytes(),"hex").toUpperCase()};um.exports=Ba});var gm=V((pR,bm)=>{"use strict";var bR=A(M()),T9=Ds(),E9=H0(),Fo=Ir(),_9=Fo.assert,hm=Fo.parseBytes,pm=fm(),dm=lm();function Pr(t){if(_9(t==="ed25519","only tested with ed25519 so far"),!(this instanceof Pr))return new Pr(t);t=E9[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=T9.sha512}bm.exports=Pr;Pr.prototype.sign=function(e,r){e=hm(e);var n=this.keyFromSecret(r),i=this.hashInt(n.messagePrefix(),e),a=this.g.mul(i),d=this.encodePoint(a),v=this.hashInt(d,n.pubBytes(),e).mul(n.priv()),y=i.add(v).umod(this.curve.n);return this.makeSignature({R:a,S:y,Rencoded:d})};Pr.prototype.verify=function(e,r,n){if(e=hm(e),r=this.makeSignature(r),r.S().gte(r.eddsa.curve.n)||r.S().isNeg())return!1;var i=this.keyFromPublic(n),a=this.hashInt(r.Rencoded(),i.pubBytes(),e),d=this.g.mul(r.S()),v=r.R().add(i.pub().mul(a));return v.eq(d)};Pr.prototype.hashInt=function(){for(var e=this.hash(),r=0;r<arguments.length;r++)e.update(arguments[r]);return Fo.intFromLE(e.digest()).umod(this.curve.n)};Pr.prototype.keyFromPublic=function(e){return pm.fromPublic(this,e)};Pr.prototype.keyFromSecret=function(e){return pm.fromSecret(this,e)};Pr.prototype.makeSignature=function(e){return e instanceof dm?e:new dm(this,e)};Pr.prototype.encodePoint=function(e){var r=e.getY().toArray("le",this.encodingLength);return r[this.encodingLength-1]|=e.getX().isOdd()?128:0,r};Pr.prototype.decodePoint=function(e){e=Fo.parseBytes(e);var r=e.length-1,n=e.slice(0,r).concat(e[r]&-129),i=(e[r]&128)!==0,a=Fo.intFromLE(n);return this.curve.pointFromY(a,i)};Pr.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)};Pr.prototype.decodeInt=function(e){return Fo.intFromLE(e)};Pr.prototype.isPoint=function(e){return e instanceof this.pointClass}});var yd=V(vm=>{"use strict";var vR=A(M()),Ca=vm;Ca.version=Vg().version;Ca.utils=Ir();Ca.rand=ed();Ca.curve=rd();Ca.curves=H0();Ca.ec=im();Ca.eddsa=gm()});var mm=V(Do=>{"use strict";var xR=A(M()),B9=Do&&Do.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Do,"__esModule",{value:!0});Do.EC=void 0;var C9=B9(yd()),P9=C9.default.ec;Do.EC=P9});var xm=V(Z0=>{"use strict";var wR=A(M());Object.defineProperty(Z0,"__esModule",{value:!0});Z0.version=void 0;Z0.version="signing-key/5.8.0"});var Ns=V(Zi=>{"use strict";var MR=A(M());Object.defineProperty(Zi,"__esModule",{value:!0});Zi.computePublicKey=Zi.recoverPublicKey=Zi.SigningKey=void 0;var L9=mm(),Lt=nt(),Is=$r(),R9=Ct(),F9=xm(),Ad=new R9.Logger(F9.version),wd=null;function Wn(){return wd||(wd=new L9.EC("secp256k1")),wd}var ym=function(){function t(e){(0,Is.defineReadOnly)(this,"curve","secp256k1"),(0,Is.defineReadOnly)(this,"privateKey",(0,Lt.hexlify)(e)),(0,Lt.hexDataLength)(this.privateKey)!==32&&Ad.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var r=Wn().keyFromPrivate((0,Lt.arrayify)(this.privateKey));(0,Is.defineReadOnly)(this,"publicKey","0x"+r.getPublic(!1,"hex")),(0,Is.defineReadOnly)(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),(0,Is.defineReadOnly)(this,"_isSigningKey",!0)}return t.prototype._addPoint=function(e){var r=Wn().keyFromPublic((0,Lt.arrayify)(this.publicKey)),n=Wn().keyFromPublic((0,Lt.arrayify)(e));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")},t.prototype.signDigest=function(e){var r=Wn().keyFromPrivate((0,Lt.arrayify)(this.privateKey)),n=(0,Lt.arrayify)(e);n.length!==32&&Ad.throwArgumentError("bad digest length","digest",e);var i=r.sign(n,{canonical:!0});return(0,Lt.splitSignature)({recoveryParam:i.recoveryParam,r:(0,Lt.hexZeroPad)("0x"+i.r.toString(16),32),s:(0,Lt.hexZeroPad)("0x"+i.s.toString(16),32)})},t.prototype.computeSharedSecret=function(e){var r=Wn().keyFromPrivate((0,Lt.arrayify)(this.privateKey)),n=Wn().keyFromPublic((0,Lt.arrayify)(wm(e)));return(0,Lt.hexZeroPad)("0x"+r.derive(n.getPublic()).toString(16),32)},t.isSigningKey=function(e){return!!(e&&e._isSigningKey)},t}();Zi.SigningKey=ym;function D9(t,e){var r=(0,Lt.splitSignature)(e),n={r:(0,Lt.arrayify)(r.r),s:(0,Lt.arrayify)(r.s)};return"0x"+Wn().recoverPubKey((0,Lt.arrayify)(t),n,r.recoveryParam).encode("hex",!1)}Zi.recoverPublicKey=D9;function wm(t,e){var r=(0,Lt.arrayify)(t);if(r.length===32){var n=new ym(r);return e?"0x"+Wn().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return e?(0,Lt.hexlify)(r):"0x"+Wn().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return e?"0x"+Wn().keyFromPublic(r).getPublic(!0,"hex"):(0,Lt.hexlify)(r)}return Ad.throwArgumentError("invalid public or private key","key","[REDACTED]")}Zi.computePublicKey=wm});var Am=V(V0=>{"use strict";var TR=A(M());Object.defineProperty(V0,"__esModule",{value:!0});V0.version=void 0;V0.version="transactions/5.8.0"});var Js=V(Mt=>{"use strict";var _R=A(M()),O9=Mt&&Mt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),I9=Mt&&Mt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),N9=Mt&&Mt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&O9(e,t,r);return I9(e,t),e};Object.defineProperty(Mt,"__esModule",{value:!0});Mt.parse=Mt.serialize=Mt.accessListify=Mt.recoverAddress=Mt.computeAddress=Mt.TransactionTypes=void 0;var ks=wa(),Pa=ga(),Ge=nt(),k9=Cl(),Oo=Nn(),J9=$r(),Vi=N9(ql()),Mm=Ns(),Sd=Ct(),U9=Am(),ur=new Sd.Logger(U9.version),H9;(function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"})(H9=Mt.TransactionTypes||(Mt.TransactionTypes={}));function Td(t){return t==="0x"?null:(0,ks.getAddress)(t)}function cr(t){return t==="0x"?k9.Zero:Pa.BigNumber.from(t)}var q9=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],G9={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function Sm(t){var e=(0,Mm.computePublicKey)(t);return(0,ks.getAddress)((0,Ge.hexDataSlice)((0,Oo.keccak256)((0,Ge.hexDataSlice)(e,1)),12))}Mt.computeAddress=Sm;function Ed(t,e){return Sm((0,Mm.recoverPublicKey)((0,Ge.arrayify)(t),e))}Mt.recoverAddress=Ed;function Nr(t,e){var r=(0,Ge.stripZeros)(Pa.BigNumber.from(t).toHexString());return r.length>32&&ur.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function Md(t,e){return{address:(0,ks.getAddress)(t),storageKeys:(e||[]).map(function(r,n){return(0,Ge.hexDataLength)(r)!==32&&ur.throwArgumentError("invalid access list storageKey","accessList["+t+":"+n+"]",r),r.toLowerCase()})}}function j0(t){if(Array.isArray(t))return t.map(function(r,n){return Array.isArray(r)?(r.length>2&&ur.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value["+n+"]",r),Md(r[0],r[1])):Md(r.address,r.storageKeys)});var e=Object.keys(t).map(function(r){var n=t[r].reduce(function(i,a){return i[a]=!0,i},{});return Md(r,Object.keys(n).sort())});return e.sort(function(r,n){return r.address.localeCompare(n.address)}),e}Mt.accessListify=j0;function Tm(t){return j0(t).map(function(e){return[e.address,e.storageKeys]})}function Em(t,e){if(t.gasPrice!=null){var r=Pa.BigNumber.from(t.gasPrice),n=Pa.BigNumber.from(t.maxFeePerGas||0);r.eq(n)||ur.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:n})}var i=[Nr(t.chainId||0,"chainId"),Nr(t.nonce||0,"nonce"),Nr(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Nr(t.maxFeePerGas||0,"maxFeePerGas"),Nr(t.gasLimit||0,"gasLimit"),t.to!=null?(0,ks.getAddress)(t.to):"0x",Nr(t.value||0,"value"),t.data||"0x",Tm(t.accessList||[])];if(e){var a=(0,Ge.splitSignature)(e);i.push(Nr(a.recoveryParam,"recoveryParam")),i.push((0,Ge.stripZeros)(a.r)),i.push((0,Ge.stripZeros)(a.s))}return(0,Ge.hexConcat)(["0x02",Vi.encode(i)])}function _m(t,e){var r=[Nr(t.chainId||0,"chainId"),Nr(t.nonce||0,"nonce"),Nr(t.gasPrice||0,"gasPrice"),Nr(t.gasLimit||0,"gasLimit"),t.to!=null?(0,ks.getAddress)(t.to):"0x",Nr(t.value||0,"value"),t.data||"0x",Tm(t.accessList||[])];if(e){var n=(0,Ge.splitSignature)(e);r.push(Nr(n.recoveryParam,"recoveryParam")),r.push((0,Ge.stripZeros)(n.r)),r.push((0,Ge.stripZeros)(n.s))}return(0,Ge.hexConcat)(["0x01",Vi.encode(r)])}function X9(t,e){(0,J9.checkProperties)(t,G9);var r=[];q9.forEach(function(d){var v=t[d.name]||[],y={};d.numeric&&(y.hexPad="left"),v=(0,Ge.arrayify)((0,Ge.hexlify)(v,y)),d.length&&v.length!==d.length&&v.length>0&&ur.throwArgumentError("invalid length for "+d.name,"transaction:"+d.name,v),d.maxLength&&(v=(0,Ge.stripZeros)(v),v.length>d.maxLength&&ur.throwArgumentError("invalid length for "+d.name,"transaction:"+d.name,v)),r.push((0,Ge.hexlify)(v))});var n=0;if(t.chainId!=null?(n=t.chainId,typeof n!="number"&&ur.throwArgumentError("invalid transaction.chainId","transaction",t)):e&&!(0,Ge.isBytesLike)(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(r.push((0,Ge.hexlify)(n)),r.push("0x"),r.push("0x")),!e)return Vi.encode(r);var i=(0,Ge.splitSignature)(e),a=27+i.recoveryParam;return n!==0?(r.pop(),r.pop(),r.pop(),a+=n*2+8,i.v>28&&i.v!==a&&ur.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==a&&ur.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push((0,Ge.hexlify)(a)),r.push((0,Ge.stripZeros)((0,Ge.arrayify)(i.r))),r.push((0,Ge.stripZeros)((0,Ge.arrayify)(i.s))),Vi.encode(r)}function z9(t,e){if(t.type==null||t.type===0)return t.accessList!=null&&ur.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),X9(t,e);switch(t.type){case 1:return _m(t,e);case 2:return Em(t,e);default:break}return ur.throwError("unsupported transaction type: "+t.type,Sd.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})}Mt.serialize=z9;function Bm(t,e,r){try{var n=cr(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");t.v=n}catch{ur.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=(0,Ge.hexZeroPad)(e[1],32),t.s=(0,Ge.hexZeroPad)(e[2],32);try{var i=(0,Oo.keccak256)(r(t));t.from=Ed(i,{r:t.r,s:t.s,recoveryParam:t.v})}catch{}}function K9(t){var e=Vi.decode(t.slice(1));e.length!==9&&e.length!==12&&ur.throwArgumentError("invalid component count for transaction type: 2","payload",(0,Ge.hexlify)(t));var r=cr(e[2]),n=cr(e[3]),i={type:2,chainId:cr(e[0]).toNumber(),nonce:cr(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:cr(e[4]),to:Td(e[5]),value:cr(e[6]),data:e[7],accessList:j0(e[8])};return e.length===9||(i.hash=(0,Oo.keccak256)(t),Bm(i,e.slice(9),Em)),i}function Z9(t){var e=Vi.decode(t.slice(1));e.length!==8&&e.length!==11&&ur.throwArgumentError("invalid component count for transaction type: 1","payload",(0,Ge.hexlify)(t));var r={type:1,chainId:cr(e[0]).toNumber(),nonce:cr(e[1]).toNumber(),gasPrice:cr(e[2]),gasLimit:cr(e[3]),to:Td(e[4]),value:cr(e[5]),data:e[6],accessList:j0(e[7])};return e.length===8||(r.hash=(0,Oo.keccak256)(t),Bm(r,e.slice(8),_m)),r}function V9(t){var e=Vi.decode(t);e.length!==9&&e.length!==6&&ur.throwArgumentError("invalid raw transaction","rawTransaction",t);var r={nonce:cr(e[0]).toNumber(),gasPrice:cr(e[1]),gasLimit:cr(e[2]),to:Td(e[3]),value:cr(e[4]),data:e[5],chainId:0};if(e.length===6)return r;try{r.v=Pa.BigNumber.from(e[6]).toNumber()}catch{return r}if(r.r=(0,Ge.hexZeroPad)(e[7],32),r.s=(0,Ge.hexZeroPad)(e[8],32),Pa.BigNumber.from(r.r).isZero()&&Pa.BigNumber.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);var n=r.v-27,i=e.slice(0,6);r.chainId!==0&&(i.push((0,Ge.hexlify)(r.chainId)),i.push("0x"),i.push("0x"),n-=r.chainId*2+8);var a=(0,Oo.keccak256)(Vi.encode(i));try{r.from=Ed(a,{r:(0,Ge.hexlify)(r.r),s:(0,Ge.hexlify)(r.s),recoveryParam:n})}catch{}r.hash=(0,Oo.keccak256)(t)}return r.type=null,r}function j9(t){var e=(0,Ge.arrayify)(t);if(e[0]>127)return V9(e);switch(e[0]){case 1:return Z9(e);case 2:return K9(e);default:break}return ur.throwError("unsupported transaction type: "+e[0],Sd.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}Mt.parse=j9});var Cm=V(Q0=>{"use strict";var CR=A(M());Object.defineProperty(Q0,"__esModule",{value:!0});Q0.version=void 0;Q0.version="abstract-provider/5.8.0"});var Pm=V(Xt=>{"use strict";var LR=A(M()),Y0=Xt&&Xt.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Q9=Xt&&Xt.__awaiter||function(t,e,r,n){function i(a){return a instanceof r?a:new r(function(d){d(a)})}return new(r||(r=Promise))(function(a,d){function v(B){try{x(n.next(B))}catch(C){d(C)}}function y(B){try{x(n.throw(B))}catch(C){d(C)}}function x(B){B.done?a(B.value):i(B.value).then(v,y)}x((n=n.apply(t,e||[])).next())})},W9=Xt&&Xt.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,d;return d={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(x){return function(B){return y([x,B])}}function y(x){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=x[0]&2?i.return:x[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,x[1])).done)return a;switch(i=0,a&&(x=[x[0]&2,a.value]),x[0]){case 0:case 1:a=x;break;case 4:return r.label++,{value:x[1],done:!1};case 5:r.label++,i=x[1],x=[0];continue;case 7:x=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(x[0]===6||x[0]===2)){r=0;continue}if(x[0]===3&&(!a||x[1]>a[0]&&x[1]<a[3])){r.label=x[1];break}if(x[0]===6&&r.label<a[1]){r.label=a[1],a=x;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(x);break}a[2]&&r.ops.pop(),r.trys.pop();continue}x=e.call(t,r)}catch(B){x=[6,B],i=0}finally{n=a=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.Provider=Xt.TransactionOrderForkEvent=Xt.TransactionForkEvent=Xt.BlockForkEvent=Xt.ForkEvent=void 0;var Y9=ga(),W0=nt(),_d=$r(),$9=Ct(),eA=Cm(),Us=new $9.Logger(eA.version),$0=function(t){Y0(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.isForkEvent=function(r){return!!(r&&r._isForkEvent)},e}(_d.Description);Xt.ForkEvent=$0;var tA=function(t){Y0(e,t);function e(r,n){var i=this;return(0,W0.isHexString)(r,32)||Us.throwArgumentError("invalid blockHash","blockHash",r),i=t.call(this,{_isForkEvent:!0,_isBlockForkEvent:!0,expiry:n||0,blockHash:r})||this,i}return e}($0);Xt.BlockForkEvent=tA;var rA=function(t){Y0(e,t);function e(r,n){var i=this;return(0,W0.isHexString)(r,32)||Us.throwArgumentError("invalid transaction hash","hash",r),i=t.call(this,{_isForkEvent:!0,_isTransactionForkEvent:!0,expiry:n||0,hash:r})||this,i}return e}($0);Xt.TransactionForkEvent=rA;var nA=function(t){Y0(e,t);function e(r,n,i){var a=this;return(0,W0.isHexString)(r,32)||Us.throwArgumentError("invalid transaction hash","beforeHash",r),(0,W0.isHexString)(n,32)||Us.throwArgumentError("invalid transaction hash","afterHash",n),a=t.call(this,{_isForkEvent:!0,_isTransactionOrderForkEvent:!0,expiry:i||0,beforeHash:r,afterHash:n})||this,a}return e}($0);Xt.TransactionOrderForkEvent=nA;var iA=function(){function t(){var e=this.constructor;Us.checkAbstract(e,t),(0,_d.defineReadOnly)(this,"_isProvider",!0)}return t.prototype.getFeeData=function(){return Q9(this,void 0,void 0,function(){var e,r,n,i,a,d;return W9(this,function(v){switch(v.label){case 0:return[4,(0,_d.resolveProperties)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(function(y){return null})})];case 1:return e=v.sent(),r=e.block,n=e.gasPrice,i=null,a=null,d=null,r&&r.baseFeePerGas&&(i=r.baseFeePerGas,d=Y9.BigNumber.from("1500000000"),a=r.baseFeePerGas.mul(2).add(d)),[2,{lastBaseFeePerGas:i,maxFeePerGas:a,maxPriorityFeePerGas:d,gasPrice:n}]}})})},t.prototype.addListener=function(e,r){return this.on(e,r)},t.prototype.removeListener=function(e,r){return this.off(e,r)},t.isProvider=function(e){return!!(e&&e._isProvider)},t}();Xt.Provider=iA});var Lm=V(ec=>{"use strict";var FR=A(M());Object.defineProperty(ec,"__esModule",{value:!0});ec.version=void 0;ec.version="abstract-signer/5.8.0"});var Fm=V(an=>{"use strict";var OR=A(M()),aA=an&&an.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Tn=an&&an.__awaiter||function(t,e,r,n){function i(a){return a instanceof r?a:new r(function(d){d(a)})}return new(r||(r=Promise))(function(a,d){function v(B){try{x(n.next(B))}catch(C){d(C)}}function y(B){try{x(n.throw(B))}catch(C){d(C)}}function x(B){B.done?a(B.value):i(B.value).then(v,y)}x((n=n.apply(t,e||[])).next())})},En=an&&an.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,d;return d={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(x){return function(B){return y([x,B])}}function y(x){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=x[0]&2?i.return:x[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,x[1])).done)return a;switch(i=0,a&&(x=[x[0]&2,a.value]),x[0]){case 0:case 1:a=x;break;case 4:return r.label++,{value:x[1],done:!1};case 5:r.label++,i=x[1],x=[0];continue;case 7:x=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(x[0]===6||x[0]===2)){r=0;continue}if(x[0]===3&&(!a||x[1]>a[0]&&x[1]<a[3])){r.label=x[1];break}if(x[0]===6&&r.label<a[1]){r.label=a[1],a=x;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(x);break}a[2]&&r.ops.pop(),r.trys.pop();continue}x=e.call(t,r)}catch(B){x=[6,B],i=0}finally{n=a=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}};Object.defineProperty(an,"__esModule",{value:!0});an.VoidSigner=an.Signer=void 0;var ji=$r(),Ai=Ct(),oA=Lm(),nn=new Ai.Logger(oA.version),sA=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],fA=[Ai.Logger.errors.INSUFFICIENT_FUNDS,Ai.Logger.errors.NONCE_EXPIRED,Ai.Logger.errors.REPLACEMENT_UNDERPRICED],Rm=function(){function t(){var e=this.constructor;nn.checkAbstract(e,t),(0,ji.defineReadOnly)(this,"_isSigner",!0)}return t.prototype.getBalance=function(e){return Tn(this,void 0,void 0,function(){return En(this,function(r){switch(r.label){case 0:return this._checkProvider("getBalance"),[4,this.provider.getBalance(this.getAddress(),e)];case 1:return[2,r.sent()]}})})},t.prototype.getTransactionCount=function(e){return Tn(this,void 0,void 0,function(){return En(this,function(r){switch(r.label){case 0:return this._checkProvider("getTransactionCount"),[4,this.provider.getTransactionCount(this.getAddress(),e)];case 1:return[2,r.sent()]}})})},t.prototype.estimateGas=function(e){return Tn(this,void 0,void 0,function(){var r;return En(this,function(n){switch(n.label){case 0:return this._checkProvider("estimateGas"),[4,(0,ji.resolveProperties)(this.checkTransaction(e))];case 1:return r=n.sent(),[4,this.provider.estimateGas(r)];case 2:return[2,n.sent()]}})})},t.prototype.call=function(e,r){return Tn(this,void 0,void 0,function(){var n;return En(this,function(i){switch(i.label){case 0:return this._checkProvider("call"),[4,(0,ji.resolveProperties)(this.checkTransaction(e))];case 1:return n=i.sent(),[4,this.provider.call(n,r)];case 2:return[2,i.sent()]}})})},t.prototype.sendTransaction=function(e){return Tn(this,void 0,void 0,function(){var r,n;return En(this,function(i){switch(i.label){case 0:return this._checkProvider("sendTransaction"),[4,this.populateTransaction(e)];case 1:return r=i.sent(),[4,this.signTransaction(r)];case 2:return n=i.sent(),[4,this.provider.sendTransaction(n)];case 3:return[2,i.sent()]}})})},t.prototype.getChainId=function(){return Tn(this,void 0,void 0,function(){var e;return En(this,function(r){switch(r.label){case 0:return this._checkProvider("getChainId"),[4,this.provider.getNetwork()];case 1:return e=r.sent(),[2,e.chainId]}})})},t.prototype.getGasPrice=function(){return Tn(this,void 0,void 0,function(){return En(this,function(e){switch(e.label){case 0:return this._checkProvider("getGasPrice"),[4,this.provider.getGasPrice()];case 1:return[2,e.sent()]}})})},t.prototype.getFeeData=function(){return Tn(this,void 0,void 0,function(){return En(this,function(e){switch(e.label){case 0:return this._checkProvider("getFeeData"),[4,this.provider.getFeeData()];case 1:return[2,e.sent()]}})})},t.prototype.resolveName=function(e){return Tn(this,void 0,void 0,function(){return En(this,function(r){switch(r.label){case 0:return this._checkProvider("resolveName"),[4,this.provider.resolveName(e)];case 1:return[2,r.sent()]}})})},t.prototype.checkTransaction=function(e){for(var r in e)sA.indexOf(r)===-1&&nn.throwArgumentError("invalid transaction key: "+r,"transaction",e);var n=(0,ji.shallowCopy)(e);return n.from==null?n.from=this.getAddress():n.from=Promise.all([Promise.resolve(n.from),this.getAddress()]).then(function(i){return i[0].toLowerCase()!==i[1].toLowerCase()&&nn.throwArgumentError("from address mismatch","transaction",e),i[0]}),n},t.prototype.populateTransaction=function(e){return Tn(this,void 0,void 0,function(){var r,n,i,a,d=this;return En(this,function(v){switch(v.label){case 0:return[4,(0,ji.resolveProperties)(this.checkTransaction(e))];case 1:return r=v.sent(),r.to!=null&&(r.to=Promise.resolve(r.to).then(function(y){return Tn(d,void 0,void 0,function(){var x;return En(this,function(B){switch(B.label){case 0:return y==null?[2,null]:[4,this.resolveName(y)];case 1:return x=B.sent(),x==null&&nn.throwArgumentError("provided ENS name resolves to null","tx.to",y),[2,x]}})})}),r.to.catch(function(y){})),n=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null,r.gasPrice!=null&&(r.type===2||n)?nn.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(r.type===0||r.type===1)&&n&&nn.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null?(r.type=2,[3,5]):[3,2];case 2:return r.type===0||r.type===1?(r.gasPrice==null&&(r.gasPrice=this.getGasPrice()),[3,5]):[3,3];case 3:return[4,this.getFeeData()];case 4:i=v.sent(),r.type==null?i.maxFeePerGas!=null&&i.maxPriorityFeePerGas!=null?(r.type=2,r.gasPrice!=null?(a=r.gasPrice,delete r.gasPrice,r.maxFeePerGas=a,r.maxPriorityFeePerGas=a):(r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas))):i.gasPrice!=null?(n&&nn.throwError("network does not support EIP-1559",Ai.Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=i.gasPrice),r.type=0):nn.throwError("failed to get consistent fee data",Ai.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"}):r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas)),v.label=5;case 5:return r.nonce==null&&(r.nonce=this.getTransactionCount("pending")),r.gasLimit==null&&(r.gasLimit=this.estimateGas(r).catch(function(y){if(fA.indexOf(y.code)>=0)throw y;return nn.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Ai.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:y,tx:r})})),r.chainId==null?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then(function(y){return y[1]!==0&&y[0]!==y[1]&&nn.throwArgumentError("chainId address mismatch","transaction",e),y[0]}),[4,(0,ji.resolveProperties)(r)];case 6:return[2,v.sent()]}})})},t.prototype._checkProvider=function(e){this.provider||nn.throwError("missing provider",Ai.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})},t.isSigner=function(e){return!!(e&&e._isSigner)},t}();an.Signer=Rm;var cA=function(t){aA(e,t);function e(r,n){var i=t.call(this)||this;return(0,ji.defineReadOnly)(i,"address",r),(0,ji.defineReadOnly)(i,"provider",n||null),i}return e.prototype.getAddress=function(){return Promise.resolve(this.address)},e.prototype._fail=function(r,n){return Promise.resolve().then(function(){nn.throwError(r,Ai.Logger.errors.UNSUPPORTED_OPERATION,{operation:n})})},e.prototype.signMessage=function(r){return this._fail("VoidSigner cannot sign messages","signMessage")},e.prototype.signTransaction=function(r){return this._fail("VoidSigner cannot sign transactions","signTransaction")},e.prototype._signTypedData=function(r,n,i){return this._fail("VoidSigner cannot sign typed data","signTypedData")},e.prototype.connect=function(r){return new e(this.address,r)},e}(Rm);an.VoidSigner=cA});var Om=V(Qi=>{"use strict";var NR=A(M());Object.defineProperty(Qi,"__esModule",{value:!0});Qi.Base58=Qi.Base32=Qi.BaseX=void 0;var Dm=nt(),tc=$r(),Bd=function(){function t(e){(0,tc.defineReadOnly)(this,"alphabet",e),(0,tc.defineReadOnly)(this,"base",e.length),(0,tc.defineReadOnly)(this,"_alphabetMap",{}),(0,tc.defineReadOnly)(this,"_leader",e.charAt(0));for(var r=0;r<e.length;r++)this._alphabetMap[e.charAt(r)]=r}return t.prototype.encode=function(e){var r=(0,Dm.arrayify)(e);if(r.length===0)return"";for(var n=[0],i=0;i<r.length;++i){for(var a=r[i],d=0;d<n.length;++d)a+=n[d]<<8,n[d]=a%this.base,a=a/this.base|0;for(;a>0;)n.push(a%this.base),a=a/this.base|0}for(var v="",y=0;r[y]===0&&y<r.length-1;++y)v+=this._leader;for(var x=n.length-1;x>=0;--x)v+=this.alphabet[n[x]];return v},t.prototype.decode=function(e){if(typeof e!="string")throw new TypeError("Expected String");var r=[];if(e.length===0)return new Uint8Array(r);r.push(0);for(var n=0;n<e.length;n++){var i=this._alphabetMap[e[n]];if(i===void 0)throw new Error("Non-base"+this.base+" character");for(var a=i,d=0;d<r.length;++d)a+=r[d]*this.base,r[d]=a&255,a>>=8;for(;a>0;)r.push(a&255),a>>=8}for(var v=0;e[v]===this._leader&&v<e.length-1;++v)r.push(0);return(0,Dm.arrayify)(new Uint8Array(r.reverse()))},t}();Qi.BaseX=Bd;var uA=new Bd("abcdefghijklmnopqrstuvwxyz234567");Qi.Base32=uA;var lA=new Bd("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");Qi.Base58=lA});var km=V(rc=>{"use strict";var JR=A(M());Object.defineProperty(rc,"__esModule",{value:!0});rc.pbkdf2=void 0;var dA=rt("crypto"),Nm=nt();function Im(t){return Buffer.from((0,Nm.arrayify)(t))}function hA(t,e,r,n,i){return(0,Nm.hexlify)((0,dA.pbkdf2Sync)(Im(t),Im(e),r,n,i))}rc.pbkdf2=hA});var ic=V(nc=>{"use strict";var HR=A(M());Object.defineProperty(nc,"__esModule",{value:!0});nc.pbkdf2=void 0;var pA=km();Object.defineProperty(nc,"pbkdf2",{enumerable:!0,get:function(){return pA.pbkdf2}})});var Cd=V(Hs=>{"use strict";var GR=A(M());Object.defineProperty(Hs,"__esModule",{value:!0});Hs.SupportedAlgorithm=void 0;var bA;(function(t){t.sha256="sha256",t.sha512="sha512"})(bA=Hs.SupportedAlgorithm||(Hs.SupportedAlgorithm={}))});var Jm=V(ac=>{"use strict";var zR=A(M());Object.defineProperty(ac,"__esModule",{value:!0});ac.version=void 0;ac.version="sha2/5.8.0"});var Hm=V(on=>{"use strict";var ZR=A(M()),gA=on&&on.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(on,"__esModule",{value:!0});on.computeHmac=on.sha512=on.sha256=on.ripemd160=void 0;var Pd=rt("crypto"),vA=gA(Ds()),qs=nt(),mA=Cd(),Um=Ct(),xA=Jm(),yA=new Um.Logger(xA.version);function wA(t){return"0x"+vA.default.ripemd160().update((0,qs.arrayify)(t)).digest("hex")}on.ripemd160=wA;function AA(t){return"0x"+(0,Pd.createHash)("sha256").update(Buffer.from((0,qs.arrayify)(t))).digest("hex")}on.sha256=AA;function MA(t){return"0x"+(0,Pd.createHash)("sha512").update(Buffer.from((0,qs.arrayify)(t))).digest("hex")}on.sha512=MA;function SA(t,e,r){return mA.SupportedAlgorithm[t]||yA.throwError("unsupported algorithm - "+t,Um.Logger.errors.UNSUPPORTED_OPERATION,{operation:"computeHmac",algorithm:t}),"0x"+(0,Pd.createHmac)(t,Buffer.from((0,qs.arrayify)(e))).update(Buffer.from((0,qs.arrayify)(r))).digest("hex")}on.computeHmac=SA});var qm=V(sn=>{"use strict";var jR=A(M());Object.defineProperty(sn,"__esModule",{value:!0});sn.SupportedAlgorithm=sn.sha512=sn.sha256=sn.ripemd160=sn.computeHmac=void 0;var oc=Hm();Object.defineProperty(sn,"computeHmac",{enumerable:!0,get:function(){return oc.computeHmac}});Object.defineProperty(sn,"ripemd160",{enumerable:!0,get:function(){return oc.ripemd160}});Object.defineProperty(sn,"sha256",{enumerable:!0,get:function(){return oc.sha256}});Object.defineProperty(sn,"sha512",{enumerable:!0,get:function(){return oc.sha512}});var TA=Cd();Object.defineProperty(sn,"SupportedAlgorithm",{enumerable:!0,get:function(){return TA.SupportedAlgorithm}})});var Gm=V(sc=>{"use strict";var WR=A(M());Object.defineProperty(sc,"__esModule",{value:!0});sc.version=void 0;sc.version="wordlists/5.8.0"});var Yn=V(La=>{"use strict";var $R=A(M());Object.defineProperty(La,"__esModule",{value:!0});La.Wordlist=La.logger=void 0;var EA=!1,_A=Cs(),Xm=$r(),BA=Ct(),CA=Gm();La.logger=new BA.Logger(CA.version);var PA=function(){function t(e){var r=this.constructor;La.logger.checkAbstract(r,t),(0,Xm.defineReadOnly)(this,"locale",e)}return t.prototype.split=function(e){return e.toLowerCase().split(/ +/g)},t.prototype.join=function(e){return e.join(" ")},t.check=function(e){for(var r=[],n=0;n<2048;n++){var i=e.getWord(n);if(n!==e.getWordIndex(i))return"0x";r.push(i)}return(0,_A.id)(r.join(`
11
11
  `)+`
12
- `)},t.register=function(e,r){if(r||(r=e.locale),SA)try{var n=window;n._ethers&&n._ethers.wordlists&&(n._ethers.wordlists[r]||(0,Gm.defineReadOnly)(n._ethers.wordlists,r,e))}catch{}},t}();Pa.Wordlist=BA});var Km=V(Io=>{"use strict";var $R=A(S()),CA=Io&&Io.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Io,"__esModule",{value:!0});Io.langCz=void 0;var Pd=Yn(),PA="AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenochodLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTahounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZpravaZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk",Gs=null;function Xm(t){if(Gs==null&&(Gs=PA.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),Pd.Wordlist.check(t)!=="0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a"))throw Gs=null,new Error("BIP39 Wordlist for en (English) FAILED")}var LA=function(t){CA(e,t);function e(){return t.call(this,"cz")||this}return e.prototype.getWord=function(r){return Xm(this),Gs[r]},e.prototype.getWordIndex=function(r){return Xm(this),Gs.indexOf(r)},e}(Pd.Wordlist),zm=new LA;Io.langCz=zm;Pd.Wordlist.register(zm)});var jm=V(No=>{"use strict";var tF=A(S()),RA=No&&No.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(No,"__esModule",{value:!0});No.langEn=void 0;var Ld=Yn(),FA="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo",Xs=null;function Zm(t){if(Xs==null&&(Xs=FA.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),Ld.Wordlist.check(t)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw Xs=null,new Error("BIP39 Wordlist for en (English) FAILED")}var DA=function(t){RA(e,t);function e(){return t.call(this,"en")||this}return e.prototype.getWord=function(r){return Zm(this),Xs[r]},e.prototype.getWordIndex=function(r){return Zm(this),Xs.indexOf(r)},e}(Ld.Wordlist),Vm=new DA;No.langEn=Vm;Ld.Wordlist.register(Vm)});var ex=V(ko=>{"use strict";var nF=A(S()),OA=ko&&ko.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(ko,"__esModule",{value:!0});ko.langEs=void 0;var fc=Dr(),cc=Yn(),IA="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo",Wm={},zs=null;function Ym(t){return cc.logger.checkNormalize(),(0,fc.toUtf8String)(Array.prototype.filter.call((0,fc.toUtf8Bytes)(t.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function NA(t){var e=[];return Array.prototype.forEach.call((0,fc.toUtf8Bytes)(t),function(r){r===47?(e.push(204),e.push(129)):r===126?(e.push(110),e.push(204),e.push(131)):e.push(r)}),(0,fc.toUtf8String)(e)}function Qm(t){if(zs==null&&(zs=IA.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return NA(e)}),zs.forEach(function(e,r){Wm[Ym(e)]=r}),cc.Wordlist.check(t)!=="0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"))throw zs=null,new Error("BIP39 Wordlist for es (Spanish) FAILED")}var kA=function(t){OA(e,t);function e(){return t.call(this,"es")||this}return e.prototype.getWord=function(r){return Qm(this),zs[r]},e.prototype.getWordIndex=function(r){return Qm(this),Wm[Ym(r)]},e}(cc.Wordlist),$m=new kA;ko.langEs=$m;cc.Wordlist.register($m)});var ax=V(Jo=>{"use strict";var aF=A(S()),JA=Jo&&Jo.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Jo,"__esModule",{value:!0});Jo.langFr=void 0;var uc=Dr(),lc=Yn(),UA="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie",Ks=null,rx={};function nx(t){return lc.logger.checkNormalize(),(0,uc.toUtf8String)(Array.prototype.filter.call((0,uc.toUtf8Bytes)(t.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function HA(t){var e=[];return Array.prototype.forEach.call((0,uc.toUtf8Bytes)(t),function(r){r===47?(e.push(204),e.push(129)):r===45?(e.push(204),e.push(128)):e.push(r)}),(0,uc.toUtf8String)(e)}function tx(t){if(Ks==null&&(Ks=UA.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return HA(e)}),Ks.forEach(function(e,r){rx[nx(e)]=r}),lc.Wordlist.check(t)!=="0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"))throw Ks=null,new Error("BIP39 Wordlist for fr (French) FAILED")}var qA=function(t){JA(e,t);function e(){return t.call(this,"fr")||this}return e.prototype.getWord=function(r){return tx(this),Ks[r]},e.prototype.getWordIndex=function(r){return tx(this),rx[nx(r)]},e}(lc.Wordlist),ix=new qA;Jo.langFr=ix;lc.Wordlist.register(ix)});var cx=V(Uo=>{"use strict";var sF=A(S()),GA=Uo&&Uo.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Uo,"__esModule",{value:!0});Uo.langJa=void 0;var XA=nt(),fn=Dr(),dc=Yn(),zA=["AQRASRAGBAGUAIRAHBAghAURAdBAdcAnoAMEAFBAFCBKFBQRBSFBCXBCDBCHBGFBEQBpBBpQBIkBHNBeOBgFBVCBhBBhNBmOBmRBiHBiFBUFBZDBvFBsXBkFBlcBjYBwDBMBBTBBTRBWBBWXXaQXaRXQWXSRXCFXYBXpHXOQXHRXhRXuRXmXXbRXlXXwDXTRXrCXWQXWGaBWaKcaYgasFadQalmaMBacAKaRKKBKKXKKjKQRKDRKCYKCRKIDKeVKHcKlXKjHKrYNAHNBWNaRNKcNIBNIONmXNsXNdXNnBNMBNRBNrXNWDNWMNFOQABQAHQBrQXBQXFQaRQKXQKDQKOQKFQNBQNDQQgQCXQCDQGBQGDQGdQYXQpBQpQQpHQLXQHuQgBQhBQhCQuFQmXQiDQUFQZDQsFQdRQkHQbRQlOQlmQPDQjDQwXQMBQMDQcFQTBQTHQrDDXQDNFDGBDGQDGRDpFDhFDmXDZXDbRDMYDRdDTRDrXSAhSBCSBrSGQSEQSHBSVRShYShkSyQSuFSiBSdcSoESocSlmSMBSFBSFKSFNSFdSFcCByCaRCKcCSBCSRCCrCGbCEHCYXCpBCpQCIBCIHCeNCgBCgFCVECVcCmkCmwCZXCZFCdRClOClmClFCjDCjdCnXCwBCwXCcRCFQCFjGXhGNhGDEGDMGCDGCHGIFGgBGVXGVEGVRGmXGsXGdYGoSGbRGnXGwXGwDGWRGFNGFLGFOGFdGFkEABEBDEBFEXOEaBEKSENBENDEYXEIgEIkEgBEgQEgHEhFEudEuFEiBEiHEiFEZDEvBEsXEsFEdXEdREkFEbBEbRElFEPCEfkEFNYAEYAhYBNYQdYDXYSRYCEYYoYgQYgRYuRYmCYZTYdBYbEYlXYjQYRbYWRpKXpQopQnpSFpCXpIBpISphNpdBpdRpbRpcZpFBpFNpFDpFopFrLADLBuLXQLXcLaFLCXLEhLpBLpFLHXLeVLhILdHLdRLoDLbRLrXIABIBQIBCIBsIBoIBMIBRIXaIaRIKYIKRINBINuICDIGBIIDIIkIgRIxFIyQIiHIdRIbYIbRIlHIwRIMYIcRIRVITRIFBIFNIFQOABOAFOBQOaFONBONMOQFOSFOCDOGBOEQOpBOLXOIBOIFOgQOgFOyQOycOmXOsXOdIOkHOMEOMkOWWHBNHXNHXWHNXHDuHDRHSuHSRHHoHhkHmRHdRHkQHlcHlRHwBHWcgAEgAggAkgBNgBQgBEgXOgYcgLXgHjgyQgiBgsFgdagMYgWSgFQgFEVBTVXEVKBVKNVKDVKYVKRVNBVNYVDBVDxVSBVSRVCjVGNVLXVIFVhBVhcVsXVdRVbRVlRhBYhKYhDYhGShxWhmNhdahdkhbRhjohMXhTRxAXxXSxKBxNBxEQxeNxeQxhXxsFxdbxlHxjcxFBxFNxFQxFOxFoyNYyYoybcyMYuBQuBRuBruDMuCouHBudQukkuoBulVuMXuFEmCYmCRmpRmeDmiMmjdmTFmFQiADiBOiaRiKRiNBiNRiSFiGkiGFiERipRiLFiIFihYibHijBijEiMXiWBiFBiFCUBQUXFUaRUNDUNcUNRUNFUDBUSHUCDUGBUGFUEqULNULoUIRUeEUeYUgBUhFUuRUiFUsXUdFUkHUbBUjSUjYUwXUMDUcHURdUTBUrBUrXUrQZAFZXZZaRZKFZNBZQFZCXZGBZYdZpBZLDZIFZHXZHNZeQZVRZVFZmXZiBZvFZdFZkFZbHZbFZwXZcCZcRZRBvBQvBGvBLvBWvCovMYsAFsBDsaRsKFsNFsDrsSHsSFsCXsCRsEBsEHsEfspBsLBsLDsIgsIRseGsbRsFBsFQsFSdNBdSRdCVdGHdYDdHcdVbdySduDdsXdlRdwXdWYdWcdWRkBMkXOkaRkNIkNFkSFkCFkYBkpRkeNkgBkhVkmXksFklVkMBkWDkFNoBNoaQoaFoNBoNXoNaoNEoSRoEroYXoYCoYbopRopFomXojkowXorFbBEbEIbdBbjYlaRlDElMXlFDjKjjSRjGBjYBjYkjpRjLXjIBjOFjeVjbRjwBnXQnSHnpFnLXnINnMBnTRwXBwXNwXYwNFwQFwSBwGFwLXwLDweNwgBwuHwjDwnXMBXMpFMIBMeNMTHcaQcNBcDHcSFcCXcpBcLXcLDcgFcuFcnXcwXccDcTQcrFTQErXNrCHrpFrgFrbFrTHrFcWNYWNbWEHWMXWTR","ABGHABIJAEAVAYJQALZJAIaRAHNXAHdcAHbRAZJMAZJRAZTRAdVJAklmAbcNAjdRAMnRAMWYAWpRAWgRAFgBAFhBAFdcBNJBBNJDBQKBBQhcBQlmBDEJBYJkBYJTBpNBBpJFBIJBBIJDBIcABOKXBOEJBOVJBOiJBOZJBepBBeLXBeIFBegBBgGJBVJXBuocBiJRBUJQBlXVBlITBwNFBMYVBcqXBTlmBWNFBWiJBWnRBFGHBFwXXKGJXNJBXNZJXDTTXSHSXSVRXSlHXCJDXGQJXEhXXYQJXYbRXOfXXeNcXVJFXhQJXhEJXdTRXjdXXMhBXcQTXRGBXTEBXTnQXFCXXFOFXFgFaBaFaBNJaBCJaBpBaBwXaNJKaNJDaQIBaDpRaEPDaHMFamDJalEJaMZJaFaFaFNBaFQJaFLDaFVHKBCYKBEBKBHDKXaFKXGdKXEJKXpHKXIBKXZDKXwXKKwLKNacKNYJKNJoKNWcKDGdKDTRKChXKGaRKGhBKGbRKEBTKEaRKEPTKLMDKLWRKOHDKVJcKdBcKlIBKlOPKFSBKFEPKFpFNBNJNJBQNBGHNBEPNBHXNBgFNBVXNBZDNBsXNBwXNNaRNNJDNNJENNJkNDCJNDVDNGJRNJiDNZJNNsCJNJFNNFSBNFCXNFEPNFLXNFIFQJBFQCaRQJEQQLJDQLJFQIaRQOqXQHaFQHHQQVJXQVJDQhNJQmEIQZJFQsJXQJrFQWbRDJABDBYJDXNFDXCXDXLXDXZDDXsJDQqXDSJFDJCXDEPkDEqXDYmQDpSJDOCkDOGQDHEIDVJDDuDuDWEBDJFgSBNDSBSFSBGHSBIBSBTQSKVYSJQNSJQiSJCXSEqXSJYVSIiJSOMYSHAHSHaQSeCFSepQSegBSHdHSHrFShSJSJuHSJUFSkNRSrSrSWEBSFaHSJFQSFCXSFGDSFYXSFODSFgBSFVXSFhBSFxFSFkFSFbBSFMFCADdCJXBCXaFCXKFCXNFCXCXCXGBCXEJCXYBCXLDCXIBCXOPCXHXCXgBCXhBCXiBCXlDCXcHCJNBCJNFCDCJCDGBCDVXCDhBCDiDCDJdCCmNCpJFCIaRCOqXCHCHCHZJCViJCuCuCmddCJiFCdNBCdHhClEJCnUJCreSCWlgCWTRCFBFCFNBCFYBCFVFCFhFCFdSCFTBCFWDGBNBGBQFGJBCGBEqGBpBGBgQGNBEGNJYGNkOGNJRGDUFGJpQGHaBGJeNGJeEGVBlGVKjGiJDGvJHGsVJGkEBGMIJGWjNGFBFGFCXGFGBGFYXGFpBGFMFEASJEAWpEJNFECJVEIXSEIQJEOqXEOcFEeNcEHEJEHlFEJgFEhlmEmDJEmZJEiMBEUqXEoSREPBFEPXFEPKFEPSFEPEFEPpFEPLXEPIBEJPdEPcFEPTBEJnXEqlHEMpREFCXEFODEFcFYASJYJAFYBaBYBVXYXpFYDhBYCJBYJGFYYbRYeNcYJeVYiIJYZJcYvJgYvJRYJsXYsJFYMYMYreVpBNHpBEJpBwXpQxFpYEJpeNDpJeDpeSFpeCHpHUJpHbBpHcHpmUJpiiJpUJrpsJuplITpFaBpFQqpFGBpFEfpFYBpFpBpFLJpFIDpFgBpFVXpFyQpFuFpFlFpFjDpFnXpFwXpJFMpFTBLXCJLXEFLXhFLXUJLXbFLalmLNJBLSJQLCLCLGJBLLDJLHaFLeNFLeSHLeCXLepFLhaRLZsJLsJDLsJrLocaLlLlLMdbLFNBLFSBLFEHLFkFIBBFIBXFIBaQIBKXIBSFIBpHIBLXIBgBIBhBIBuHIBmXIBiFIBZXIBvFIBbFIBjQIBwXIBWFIKTRIQUJIDGFICjQIYSRIINXIJeCIVaRImEkIZJFIvJRIsJXIdCJIJoRIbBQIjYBIcqXITFVIreVIFKFIFSFIFCJIFGFIFLDIFIBIJFOIFgBIFVXIJFhIFxFIFmXIFdHIFbBIJFrIJFWOBGBOQfXOOKjOUqXOfXBOqXEOcqXORVJOFIBOFlDHBIOHXiFHNTRHCJXHIaRHHJDHHEJHVbRHZJYHbIBHRsJHRkDHWlmgBKFgBSBgBCDgBGHgBpBgBIBgBVJgBuBgBvFgKDTgQVXgDUJgGSJgOqXgmUMgZIJgTUJgWIEgFBFgFNBgFDJgFSFgFGBgFYXgJFOgFgQgFVXgFhBgFbHgJFWVJABVQKcVDgFVOfXVeDFVhaRVmGdViJYVMaRVFNHhBNDhBCXhBEqhBpFhBLXhNJBhSJRheVXhhKEhxlmhZIJhdBQhkIJhbMNhMUJhMZJxNJgxQUJxDEkxDdFxSJRxplmxeSBxeCXxeGFxeYXxepQxegBxWVcxFEQxFLXxFIBxFgBxFxDxFZtxFdcxFbBxFwXyDJXyDlcuASJuDJpuDIBuCpJuGSJuIJFueEFuZIJusJXudWEuoIBuWGJuFBcuFKEuFNFuFQFuFDJuFGJuFVJuFUtuFdHuFTBmBYJmNJYmQhkmLJDmLJomIdXmiJYmvJRmsJRmklmmMBymMuCmclmmcnQiJABiJBNiJBDiBSFiBCJiBEFiBYBiBpFiBLXiBTHiJNciDEfiCZJiECJiJEqiOkHiHKFieNDiHJQieQcieDHieSFieCXieGFieEFieIHiegFihUJixNoioNXiFaBiFKFiFNDiFEPiFYXitFOitFHiFgBiFVEiFmXiFitiFbBiFMFiFrFUCXQUIoQUIJcUHQJUeCEUHwXUUJDUUqXUdWcUcqXUrnQUFNDUFSHUFCFUFEfUFLXUtFOZBXOZXSBZXpFZXVXZEQJZEJkZpDJZOqXZeNHZeCDZUqXZFBQZFEHZFLXvBAFvBKFvBCXvBEPvBpHvBIDvBgFvBuHvQNJvFNFvFGBvFIBvJFcsXCDsXLXsXsXsXlFsXcHsQqXsJQFsEqXseIFsFEHsFjDdBxOdNpRdNJRdEJbdpJRdhZJdnSJdrjNdFNJdFQHdFhNkNJDkYaRkHNRkHSRkVbRkuMRkjSJkcqDoSJFoEiJoYZJoOfXohEBoMGQocqXbBAFbBXFbBaFbBNDbBGBbBLXbBTBbBWDbGJYbIJHbFQqbFpQlDgQlOrFlVJRjGEBjZJRnXvJnXbBnEfHnOPDngJRnxfXnUJWwXEJwNpJwDpBwEfXwrEBMDCJMDGHMDIJMLJDcQGDcQpHcqXccqNFcqCXcFCJRBSBRBGBRBEJRBpQTBNFTBQJTBpBTBVXTFABTFSBTFCFTFGBTFMDrXCJrXLDrDNJrEfHrFQJrFitWNjdWNTR","AKLJMANOPFASNJIAEJWXAYJNRAIIbRAIcdaAeEfDAgidRAdjNYAMYEJAMIbRAFNJBAFpJFBBIJYBDZJFBSiJhBGdEBBEJfXBEJqXBEJWRBpaUJBLXrXBIYJMBOcfXBeEfFBestXBjNJRBcDJOBFEqXXNvJRXDMBhXCJNYXOAWpXONJWXHDEBXeIaRXhYJDXZJSJXMDJOXcASJXFVJXaBQqXaBZJFasXdQaFSJQaFEfXaFpJHaFOqXKBNSRKXvJBKQJhXKEJQJKEJGFKINJBKIJjNKgJNSKVElmKVhEBKiJGFKlBgJKjnUJKwsJYKMFIJKFNJDKFIJFKFOfXNJBSFNJBCXNBpJFNJBvQNJBMBNJLJXNJOqXNJeCXNJeGFNdsJCNbTKFNwXUJQNFEPQDiJcQDMSJQSFpBQGMQJQJeOcQyCJEQUJEBQJFBrQFEJqDXDJFDJXpBDJXIMDGiJhDIJGRDJeYcDHrDJDVXgFDkAWpDkIgRDjDEqDMvJRDJFNFDJFIBSKclmSJQOFSJQVHSJQjDSJGJBSJGJFSECJoSHEJqSJHTBSJVJDSViJYSZJNBSJsJDSFSJFSFEfXSJFLXCBUJVCJXSBCJXpBCXVJXCJXsXCJXdFCJNJHCLIJgCHiJFCVNJMChCJhCUHEJCsJTRCJdYcCoQJCCFEfXCFIJgCFUJxCFstFGJBaQGJBIDGQJqXGYJNRGJHKFGeQqDGHEJFGJeLXGHIiJGHdBlGUJEBGkIJTGFQPDGJFEqEAGegEJIJBEJVJXEhQJTEiJNcEJZJFEJoEqEjDEqEPDsXEPGJBEPOqXEPeQFEfDiDEJfEFEfepQEfMiJEqXNBEqDIDEqeSFEqVJXEMvJRYXNJDYXEJHYKVJcYYJEBYJeEcYJUqXYFpJFYFstXpAZJMpBSJFpNBNFpeQPDpHLJDpHIJFpHgJFpeitFpHZJFpJFADpFSJFpJFCJpFOqXpFitBpJFZJLXIJFLIJgRLVNJWLVHJMLwNpJLFGJBLFLJDLFOqXLJFUJIBDJXIBGJBIJBYQIJBIBIBOqXIBcqDIEGJFILNJTIIJEBIOiJhIJeNBIJeIBIhiJIIWoTRIJFAHIJFpBIJFuHIFUtFIJFTHOSBYJOEcqXOHEJqOvBpFOkVJrObBVJOncqDOcNJkHhNJRHuHJuHdMhBgBUqXgBsJXgONJBgHNJDgHHJQgJeitgHsJXgJyNagyDJBgZJDrgsVJQgkEJNgkjSJgJFAHgFCJDgFZtMVJXNFVXQfXVJXDJVXoQJVQVJQVDEfXVDvJHVEqNFVeQfXVHpJFVHxfXVVJSRVVmaRVlIJOhCXVJhHjYkhxCJVhWVUJhWiJcxBNJIxeEqDxfXBFxcFEPxFSJFxFYJXyBDQJydaUJyFOPDuYCJYuLvJRuHLJXuZJLDuFOPDuFZJHuFcqXmKHJdmCQJcmOsVJiJAGFitLCFieOfXiestXiZJMEikNJQirXzFiFQqXiFIJFiFZJFiFvtFUHpJFUteIcUteOcUVCJkUhdHcUbEJEUJqXQUMNJhURjYkUFitFZDGJHZJIxDZJVJXZJFDJZJFpQvBNJBvBSJFvJxBrseQqDsVFVJdFLJDkEJNBkmNJYkFLJDoQJOPoGsJRoEAHBoEJfFbBQqDbBZJHbFVJXlFIJBjYIrXjeitcjjCEBjWMNBwXQfXwXOaFwDsJXwCJTRwrCZJMDNJQcDDJFcqDOPRYiJFTBsJXTQIJBTFEfXTFLJDrXEJFrEJXMrFZJFWEJdEWYTlm","ABCDEFACNJTRAMBDJdAcNJVXBLNJEBXSIdWRXErNJkXYDJMBXZJCJaXMNJaYKKVJKcKDEJqXKDcNJhKVJrNYKbgJVXKFVJSBNBYBwDNJeQfXNJeEqXNhGJWENJFiJRQlIJbEQJfXxDQqXcfXQFNDEJQFwXUJDYcnUJDJIBgQDIUJTRDJFEqDSJQSJFSJQIJFSOPeZtSJFZJHCJXQfXCTDEqFGJBSJFGJBOfXGJBcqXGJHNJDGJRLiJEJfXEqEJFEJPEFpBEJYJBZJFYBwXUJYiJMEBYJZJyTYTONJXpQMFXFpeGIDdpJFstXpJFcPDLBVSJRLHQJqXLJFZJFIJBNJDIJBUqXIBkFDJIJEJPTIYJGWRIJeQPDIJeEfHIJFsJXOqGDSFHXEJqXgJCsJCgGQJqXgdQYJEgFMFNBgJFcqDVJwXUJVJFZJchIgJCCxOEJqXxOwXUJyDJBVRuscisciJBiJBieUtqXiJFDJkiFsJXQUGEZJcUJFsJXZtXIrXZDZJDrZJFNJDZJFstXvJFQqXvJFCJEsJXQJqkhkNGBbDJdTRbYJMEBlDwXUJMEFiJFcfXNJDRcNJWMTBLJXC","BraFUtHBFSJFdbNBLJXVJQoYJNEBSJBEJfHSJHwXUJCJdAZJMGjaFVJXEJPNJBlEJfFiJFpFbFEJqIJBVJCrIBdHiJhOPFChvJVJZJNJWxGFNIFLueIBQJqUHEJfUFstOZJDrlXEASJRlXVJXSFwVJNJWD","QJEJNNJDQJEJIBSFQJEJxegBQJEJfHEPSJBmXEJFSJCDEJqXLXNJFQqXIcQsFNJFIFEJqXUJgFsJXIJBUJEJfHNFvJxEqXNJnXUJFQqD","IJBEJqXZJ"],KA="~~AzB~X~a~KN~Q~D~S~C~G~E~Y~p~L~I~O~eH~g~V~hxyumi~~U~~Z~~v~~s~~dkoblPjfnqwMcRTr~W~~~F~~~~~Jt",Nr=null;function ox(t){return(0,XA.hexlify)((0,fn.toUtf8Bytes)(t))}var ZA="0xe3818de38284e3818f",VA="0xe3818de38283e3818f";function sx(t){if(Nr!==null)return;Nr=[];var e={};e[(0,fn.toUtf8String)([227,130,154])]=!1,e[(0,fn.toUtf8String)([227,130,153])]=!1,e[(0,fn.toUtf8String)([227,130,133])]=(0,fn.toUtf8String)([227,130,134]),e[(0,fn.toUtf8String)([227,129,163])]=(0,fn.toUtf8String)([227,129,164]),e[(0,fn.toUtf8String)([227,130,131])]=(0,fn.toUtf8String)([227,130,132]),e[(0,fn.toUtf8String)([227,130,135])]=(0,fn.toUtf8String)([227,130,136]);function r(C){for(var D="",F=0;F<C.length;F++){var P=C[F],q=e[P];q!==!1&&(q&&(P=q),D+=P)}return D}function n(C,D){return C=r(C),D=r(D),C<D?-1:C>D?1:0}for(var i=3;i<=9;i++)for(var a=zA[i-3],d=0;d<a.length;d+=i){for(var v=[],y=0;y<i;y++){var x=KA.indexOf(a[d+y]);v.push(227),v.push(x&64?130:129),v.push((x&63)+128)}Nr.push((0,fn.toUtf8String)(v))}if(Nr.sort(n),ox(Nr[442])===ZA&&ox(Nr[443])===VA){var B=Nr[442];Nr[442]=Nr[443],Nr[443]=B}if(dc.Wordlist.check(t)!=="0xcb36b09e6baa935787fd762ce65e80b0c6a8dabdfbc3a7f86ac0e2c4fd111600")throw Nr=null,new Error("BIP39 Wordlist for ja (Japanese) FAILED")}var jA=function(t){GA(e,t);function e(){return t.call(this,"ja")||this}return e.prototype.getWord=function(r){return sx(this),Nr[r]},e.prototype.getWordIndex=function(r){return sx(this),Nr.indexOf(r)},e.prototype.split=function(r){return dc.logger.checkNormalize(),r.split(/(?:\u3000| )+/g)},e.prototype.join=function(r){return r.join("\u3000")},e}(dc.Wordlist),fx=new jA;Uo.langJa=fx;dc.Wordlist.register(fx)});var dx=V(Ho=>{"use strict";var cF=A(S()),QA=Ho&&Ho.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ho,"__esModule",{value:!0});Ho.langKo=void 0;var WA=Dr(),Rd=Yn(),YA=["OYAa","ATAZoATBl3ATCTrATCl8ATDloATGg3ATHT8ATJT8ATJl3ATLlvATLn4ATMT8ATMX8ATMboATMgoAToLbAToMTATrHgATvHnAT3AnAT3JbAT3MTAT8DbAT8JTAT8LmAT8MYAT8MbAT#LnAUHT8AUHZvAUJXrAUJX8AULnrAXJnvAXLUoAXLgvAXMn6AXRg3AXrMbAX3JTAX3QbAYLn3AZLgvAZrSUAZvAcAZ8AaAZ8AbAZ8AnAZ8HnAZ8LgAZ8MYAZ8MgAZ8OnAaAboAaDTrAaFTrAaJTrAaJboAaLVoAaMXvAaOl8AaSeoAbAUoAbAg8AbAl4AbGnrAbMT8AbMXrAbMn4AbQb8AbSV8AbvRlAb8AUAb8AnAb8HgAb8JTAb8NTAb8RbAcGboAcLnvAcMT8AcMX8AcSToAcrAaAcrFnAc8AbAc8MgAfGgrAfHboAfJnvAfLV8AfLkoAfMT8AfMnoAfQb8AfScrAfSgrAgAZ8AgFl3AgGX8AgHZvAgHgrAgJXoAgJX8AgJboAgLZoAgLn4AgOX8AgoATAgoAnAgoCUAgoJgAgoLXAgoMYAgoSeAgrDUAgrJTAhrFnAhrLjAhrQgAjAgoAjJnrAkMX8AkOnoAlCTvAlCV8AlClvAlFg4AlFl6AlFn3AloSnAlrAXAlrAfAlrFUAlrFbAlrGgAlrOXAlvKnAlvMTAl3AbAl3MnAnATrAnAcrAnCZ3AnCl8AnDg8AnFboAnFl3AnHX4AnHbrAnHgrAnIl3AnJgvAnLXoAnLX4AnLbrAnLgrAnLhrAnMXoAnMgrAnOn3AnSbrAnSeoAnvLnAn3OnCTGgvCTSlvCTvAUCTvKnCTvNTCT3CZCT3GUCT3MTCT8HnCUCZrCULf8CULnvCU3HnCU3JUCY6NUCbDb8CbFZoCbLnrCboOTCboScCbrFnCbvLnCb8AgCb8HgCb$LnCkLfoClBn3CloDUDTHT8DTLl3DTSU8DTrAaDTrLXDTrLjDTrOYDTrOgDTvFXDTvFnDT3HUDT3LfDUCT9DUDT4DUFVoDUFV8DUFkoDUGgrDUJnrDULl8DUMT8DUMXrDUMX4DUMg8DUOUoDUOgvDUOg8DUSToDUSZ8DbDXoDbDgoDbGT8DbJn3DbLg3DbLn4DbMXrDbMg8DbOToDboJXGTClvGTDT8GTFZrGTLVoGTLlvGTLl3GTMg8GTOTvGTSlrGToCUGTrDgGTrJYGTrScGTtLnGTvAnGTvQgGUCZrGUDTvGUFZoGUHXrGULnvGUMT8GUoMgGXoLnGXrMXGXrMnGXvFnGYLnvGZOnvGZvOnGZ8LaGZ8LmGbAl3GbDYvGbDlrGbHX3GbJl4GbLV8GbLn3GbMn4GboJTGboRfGbvFUGb3GUGb4JnGgDX3GgFl$GgJlrGgLX6GgLZoGgLf8GgOXoGgrAgGgrJXGgrMYGgrScGgvATGgvOYGnAgoGnJgvGnLZoGnLg3GnLnrGnQn8GnSbrGnrMgHTClvHTDToHTFT3HTQT8HToJTHToJgHTrDUHTrMnHTvFYHTvRfHT8MnHT8SUHUAZ8HUBb4HUDTvHUoMYHXFl6HXJX6HXQlrHXrAUHXrMnHXrSbHXvFYHXvKXHX3LjHX3MeHYvQlHZrScHZvDbHbAcrHbFT3HbFl3HbJT8HbLTrHbMT8HbMXrHbMbrHbQb8HbSX3HboDbHboJTHbrFUHbrHgHbrJTHb8JTHb8MnHb8QgHgAlrHgDT3HgGgrHgHgrHgJTrHgJT8HgLX@HgLnrHgMT8HgMX8HgMboHgOnrHgQToHgRg3HgoHgHgrCbHgrFnHgrLVHgvAcHgvAfHnAloHnCTrHnCnvHnGTrHnGZ8HnGnvHnJT8HnLf8HnLkvHnMg8HnRTrITvFUITvFnJTAXrJTCV8JTFT3JTFT8JTFn4JTGgvJTHT8JTJT8JTJXvJTJl3JTJnvJTLX4JTLf8JTLhvJTMT8JTMXrJTMnrJTObrJTQT8JTSlvJT8DUJT8FkJT8MTJT8OXJT8OgJT8QUJT8RfJUHZoJXFT4JXFlrJXGZ8JXGnrJXLV8JXLgvJXMXoJXMX3JXNboJXPlvJXoJTJXoLkJXrAXJXrHUJXrJgJXvJTJXvOnJX4KnJYAl3JYJT8JYLhvJYQToJYrQXJY6NUJbAl3JbCZrJbDloJbGT8JbGgrJbJXvJbJboJbLf8JbLhrJbLl3JbMnvJbRg8JbSZ8JboDbJbrCZJbrSUJb3KnJb8LnJfRn8JgAXrJgCZrJgDTrJgGZrJgGZ8JgHToJgJT8JgJXoJgJgvJgLX4JgLZ3JgLZ8JgLn4JgMgrJgMn4JgOgvJgPX6JgRnvJgSToJgoCZJgoJbJgoMYJgrJXJgrJgJgrLjJg6MTJlCn3JlGgvJlJl8Jl4AnJl8FnJl8HgJnAToJnATrJnAbvJnDUoJnGnrJnJXrJnJXvJnLhvJnLnrJnLnvJnMToJnMT8JnMXvJnMX3JnMg8JnMlrJnMn4JnOX8JnST4JnSX3JnoAgJnoAnJnoJTJnoObJnrAbJnrAkJnrHnJnrJTJnrJYJnrOYJnrScJnvCUJnvFaJnvJgJnvJnJnvOYJnvQUJnvRUJn3FnJn3JTKnFl3KnLT6LTDlvLTMnoLTOn3LTRl3LTSb4LTSlrLToAnLToJgLTrAULTrAcLTrCULTrHgLTrMgLT3JnLULnrLUMX8LUoJgLVATrLVDTrLVLb8LVoJgLV8MgLV8RTLXDg3LXFlrLXrCnLXrLXLX3GTLX4GgLX4OYLZAXrLZAcrLZAgrLZAhrLZDXyLZDlrLZFbrLZFl3LZJX6LZJX8LZLc8LZLnrLZSU8LZoJTLZoJnLZrAgLZrAnLZrJYLZrLULZrMgLZrSkLZvAnLZvGULZvJeLZvOTLZ3FZLZ4JXLZ8STLZ8ScLaAT3LaAl3LaHT8LaJTrLaJT8LaJXrLaJgvLaJl4LaLVoLaMXrLaMXvLaMX8LbClvLbFToLbHlrLbJn4LbLZ3LbLhvLbMXrLbMnoLbvSULcLnrLc8HnLc8MTLdrMnLeAgoLeOgvLeOn3LfAl3LfLnvLfMl3LfOX8Lf8AnLf8JXLf8LXLgJTrLgJXrLgJl8LgMX8LgRZrLhCToLhrAbLhrFULhrJXLhvJYLjHTrLjHX4LjJX8LjLhrLjSX3LjSZ4LkFX4LkGZ8LkGgvLkJTrLkMXoLkSToLkSU8LkSZ8LkoOYLl3FfLl3MgLmAZrLmCbrLmGgrLmHboLmJnoLmJn3LmLfoLmLhrLmSToLnAX6LnAb6LnCZ3LnCb3LnDTvLnDb8LnFl3LnGnrLnHZvLnHgvLnITvLnJT8LnJX8LnJlvLnLf8LnLg6LnLhvLnLnoLnMXrLnMg8LnQlvLnSbrLnrAgLnrAnLnrDbLnrFkLnrJdLnrMULnrOYLnrSTLnvAnLnvDULnvHgLnvOYLnvOnLn3GgLn4DULn4JTLn4JnMTAZoMTAloMTDb8MTFT8MTJnoMTJnrMTLZrMTLhrMTLkvMTMX8MTRTrMToATMTrDnMTrOnMT3JnMT4MnMT8FUMT8FaMT8FlMT8GTMT8GbMT8GnMT8HnMT8JTMT8JbMT8OTMUCl8MUJTrMUJU8MUMX8MURTrMUSToMXAX6MXAb6MXCZoMXFXrMXHXrMXLgvMXOgoMXrAUMXrAnMXrHgMXrJYMXrJnMXrMTMXrMgMXrOYMXrSZMXrSgMXvDUMXvOTMX3JgMX3OTMX4JnMX8DbMX8FnMX8HbMX8HgMX8HnMX8LbMX8MnMX8OnMYAb8MYGboMYHTvMYHX4MYLTrMYLnvMYMToMYOgvMYRg3MYSTrMbAToMbAXrMbAl3MbAn8MbGZ8MbJT8MbJXrMbMXvMbMX8MbMnoMbrMUMb8AfMb8FbMb8FkMcJXoMeLnrMgFl3MgGTvMgGXoMgGgrMgGnrMgHT8MgHZrMgJnoMgLnrMgLnvMgMT8MgQUoMgrHnMgvAnMg8HgMg8JYMg8LfMloJnMl8ATMl8AXMl8JYMnAToMnAT4MnAZ8MnAl3MnAl4MnCl8MnHT8MnHg8MnJnoMnLZoMnLhrMnMXoMnMX3MnMnrMnOgvMnrFbMnrFfMnrFnMnrNTMnvJXNTMl8OTCT3OTFV8OTFn3OTHZvOTJXrOTOl3OT3ATOT3JUOT3LZOT3LeOT3MbOT8ATOT8AbOT8AgOT8MbOUCXvOUMX3OXHXvOXLl3OXrMUOXvDbOX6NUOX8JbOYFZoOYLbrOYLkoOYMg8OYSX3ObHTrObHT4ObJgrObLhrObMX3ObOX8Ob8FnOeAlrOeJT8OeJXrOeJnrOeLToOeMb8OgJXoOgLXoOgMnrOgOXrOgOloOgoAgOgoJbOgoMYOgoSTOg8AbOjLX4OjMnoOjSV8OnLVoOnrAgOn3DUPXQlrPXvFXPbvFTPdAT3PlFn3PnvFbQTLn4QToAgQToMTQULV8QURg8QUoJnQXCXvQbFbrQb8AaQb8AcQb8FbQb8MYQb8ScQeAlrQeLhrQjAn3QlFXoQloJgQloSnRTLnvRTrGURTrJTRUJZrRUoJlRUrQnRZrLmRZrMnRZrSnRZ8ATRZ8JbRZ8ScRbMT8RbST3RfGZrRfMX8RfMgrRfSZrRnAbrRnGT8RnvJgRnvLfRnvMTRn8AaSTClvSTJgrSTOXrSTRg3STRnvSToAcSToAfSToAnSToHnSToLjSToMTSTrAaSTrEUST3BYST8AgST8LmSUAZvSUAgrSUDT4SUDT8SUGgvSUJXoSUJXvSULTrSU8JTSU8LjSV8AnSV8JgSXFToSXLf8SYvAnSZrDUSZrMUSZrMnSZ8HgSZ8JTSZ8JgSZ8MYSZ8QUSaQUoSbCT3SbHToSbQYvSbSl4SboJnSbvFbSb8HbSb8JgSb8OTScGZrScHgrScJTvScMT8ScSToScoHbScrMTScvAnSeAZrSeAcrSeHboSeJUoSeLhrSeMT8SeMXrSe6JgSgHTrSkJnoSkLnvSk8CUSlFl3SlrSnSl8GnSmAboSmGT8SmJU8","ATLnDlATrAZoATrJX4ATrMT8ATrMX4ATrRTrATvDl8ATvJUoATvMl8AT3AToAT3MX8AT8CT3AT8DT8AT8HZrAT8HgoAUAgFnAUCTFnAXoMX8AXrAT8AXrGgvAXrJXvAXrOgoAXvLl3AZvAgoAZvFbrAZvJXoAZvJl8AZvJn3AZvMX8AZvSbrAZ8FZoAZ8LZ8AZ8MU8AZ8OTvAZ8SV8AZ8SX3AbAgFZAboJnoAbvGboAb8ATrAb8AZoAb8AgrAb8Al4Ab8Db8Ab8JnoAb8LX4Ab8LZrAb8LhrAb8MT8Ab8OUoAb8Qb8Ab8ST8AcrAUoAcrAc8AcrCZ3AcrFT3AcrFZrAcrJl4AcrJn3AcrMX3AcrOTvAc8AZ8Ac8MT8AfAcJXAgoFn4AgoGgvAgoGnrAgoLc8AgoMXoAgrLnrAkrSZ8AlFXCTAloHboAlrHbrAlrLhrAlrLkoAl3CZrAl3LUoAl3LZrAnrAl4AnrMT8An3HT4BT3IToBX4MnvBb!Ln$CTGXMnCToLZ4CTrHT8CT3JTrCT3RZrCT#GTvCU6GgvCU8Db8CU8GZrCU8HT8CboLl3CbrGgrCbrMU8Cb8DT3Cb8GnrCb8LX4Cb8MT8Cb8ObrCgrGgvCgrKX4Cl8FZoDTrAbvDTrDboDTrGT6DTrJgrDTrMX3DTrRZrDTrRg8DTvAVvDTvFZoDT3DT8DT3Ln3DT4HZrDT4MT8DT8AlrDT8MT8DUAkGbDUDbJnDYLnQlDbDUOYDbMTAnDbMXSnDboAT3DboFn4DboLnvDj6JTrGTCgFTGTGgFnGTJTMnGTLnPlGToJT8GTrCT3GTrLVoGTrLnvGTrMX3GTrMboGTvKl3GZClFnGZrDT3GZ8DTrGZ8FZ8GZ8MXvGZ8On8GZ8ST3GbCnQXGbMbFnGboFboGboJg3GboMXoGb3JTvGb3JboGb3Mn6Gb3Qb8GgDXLjGgMnAUGgrDloGgrHX4GgrSToGgvAXrGgvAZvGgvFbrGgvLl3GgvMnvGnDnLXGnrATrGnrMboGnuLl3HTATMnHTAgCnHTCTCTHTrGTvHTrHTvHTrJX8HTrLl8HTrMT8HTrMgoHTrOTrHTuOn3HTvAZrHTvDTvHTvGboHTvJU8HTvLl3HTvMXrHTvQb4HT4GT6HT4JT8HT4Jb#HT8Al3HT8GZrHT8GgrHT8HX4HT8Jb8HT8JnoHT8LTrHT8LgvHT8SToHT8SV8HUoJUoHUoJX8HUoLnrHXrLZoHXvAl3HX3LnrHX4FkvHX4LhrHX4MXoHX4OnoHZrAZ8HZrDb8HZrGZ8HZrJnrHZvGZ8HZvLnvHZ8JnvHZ8LhrHbCXJlHbMTAnHboJl4HbpLl3HbrJX8HbrLnrHbrMnvHbvRYrHgoSTrHgrFV8HgrGZ8HgrJXoHgrRnvHgvBb!HgvGTrHgvHX4HgvHn!HgvLTrHgvSU8HnDnLbHnFbJbHnvDn8Hn6GgvHn!BTvJTCTLnJTQgFnJTrAnvJTrLX4JTrOUoJTvFn3JTvLnrJTvNToJT3AgoJT3Jn4JT3LhvJT3ObrJT8AcrJT8Al3JT8JT8JT8JnoJT8LX4JT8LnrJT8MX3JT8Rg3JT8Sc8JUoBTvJU8AToJU8GZ8JU8GgvJU8JTrJU8JXrJU8JnrJU8LnvJU8ScvJXHnJlJXrGgvJXrJU8JXrLhrJXrMT8JXrMXrJXrQUoJXvCTvJXvGZ8JXvGgrJXvQT8JX8Ab8JX8DT8JX8GZ8JX8HZvJX8LnrJX8MT8JX8MXoJX8MnvJX8ST3JYGnCTJbAkGbJbCTAnJbLTAcJboDT3JboLb6JbrAnvJbrCn3JbrDl8JbrGboJbrIZoJbrJnvJbrMnvJbrQb4Jb8RZrJeAbAnJgJnFbJgScAnJgrATrJgvHZ8JgvMn4JlJlFbJlLiQXJlLjOnJlRbOlJlvNXoJlvRl3Jl4AcrJl8AUoJl8MnrJnFnMlJnHgGbJnoDT8JnoFV8JnoGgvJnoIT8JnoQToJnoRg3JnrCZ3JnrGgrJnrHTvJnrLf8JnrOX8JnvAT3JnvFZoJnvGT8JnvJl4JnvMT8JnvMX8JnvOXrJnvPX6JnvSX3JnvSZrJn3MT8Jn3MX8Jn3RTrLTATKnLTJnLTLTMXKnLTRTQlLToGb8LTrAZ8LTrCZ8LTrDb8LTrHT8LT3PX6LT4FZoLT$CTvLT$GgrLUvHX3LVoATrLVoAgoLVoJboLVoMX3LVoRg3LV8CZ3LV8FZoLV8GTvLXrDXoLXrFbrLXvAgvLXvFlrLXvLl3LXvRn6LX4Mb8LX8GT8LYCXMnLYrMnrLZoSTvLZrAZvLZrAloLZrFToLZrJXvLZrJboLZrJl4LZrLnrLZrMT8LZrOgvLZrRnvLZrST4LZvMX8LZvSlvLZ8AgoLZ8CT3LZ8JT8LZ8LV8LZ8LZoLZ8Lg8LZ8SV8LZ8SbrLZ$HT8LZ$Mn4La6CTvLbFbMnLbRYFTLbSnFZLboJT8LbrAT9LbrGb3LbrQb8LcrJX8LcrMXrLerHTvLerJbrLerNboLgrDb8LgrGZ8LgrHTrLgrMXrLgrSU8LgvJTrLgvLl3Lg6Ll3LhrLnrLhrMT8LhvAl4LiLnQXLkoAgrLkoJT8LkoJn4LlrSU8Ll3FZoLl3HTrLl3JX8Ll3JnoLl3LToLmLeFbLnDUFbLnLVAnLnrATrLnrAZoLnrAb8LnrAlrLnrGgvLnrJU8LnrLZrLnrLhrLnrMb8LnrOXrLnrSZ8LnvAb4LnvDTrLnvDl8LnvHTrLnvHbrLnvJT8LnvJU8LnvJbrLnvLhvLnvMX8LnvMb8LnvNnoLnvSU8Ln3Al3Ln4FZoLn4GT6Ln4JgvLn4LhrLn4MT8Ln4SToMToCZrMToJX8MToLX4MToLf8MToRg3MTrEloMTvGb6MT3BTrMT3Lb6MT8AcrMT8AgrMT8GZrMT8JnoMT8LnrMT8MX3MUOUAnMXAbFnMXoAloMXoJX8MXoLf8MXoLl8MXrAb8MXrDTvMXrGT8MXrGgrMXrHTrMXrLf8MXrMU8MXrOXvMXrQb8MXvGT8MXvHTrMXvLVoMX3AX3MX3Jn3MX3LhrMX3MX3MX4AlrMX4OboMX8GTvMX8GZrMX8GgrMX8JT8MX8JX8MX8LhrMX8MT8MYDUFbMYMgDbMbGnFfMbvLX4MbvLl3Mb8Mb8Mb8ST4MgGXCnMg8ATrMg8AgoMg8CZrMg8DTrMg8DboMg8HTrMg8JgrMg8LT8MloJXoMl8AhrMl8JT8MnLgAUMnoJXrMnoLX4MnoLhrMnoMT8MnrAl4MnrDb8MnrOTvMnrOgvMnrQb8MnrSU8MnvGgrMnvHZ8Mn3MToMn4DTrMn4LTrMn4Mg8NnBXAnOTFTFnOToAToOTrGgvOTrJX8OT3JXoOT6MTrOT8GgrOT8HTpOT8MToOUoHT8OUoJT8OUoLn3OXrAgoOXrDg8OXrMT8OXvSToOX6CTvOX8CZrOX8OgrOb6HgvOb8AToOb8MT8OcvLZ8OgvAlrOgvHTvOgvJTrOgvJnrOgvLZrOgvLn4OgvMT8OgvRTrOg8AZoOg8DbvOnrOXoOnvJn4OnvLhvOnvRTrOn3GgoOn3JnvOn6JbvOn8OTrPTGYFTPbBnFnPbGnDnPgDYQTPlrAnvPlrETvPlrLnvPlrMXvPlvFX4QTMTAnQTrJU8QYCnJlQYJlQlQbGTQbQb8JnrQb8LZoQb8LnvQb8MT8Qb8Ml8Qb8ST4QloAl4QloHZvQloJX8QloMn8QnJZOlRTrAZvRTrDTrRTvJn4RTvLhvRT4Jb8RZrAZrRZ8AkrRZ8JU8RZ8LV8RZ8LnvRbJlQXRg3GboRg3MnvRg8AZ8Rg8JboRg8Jl4RnLTCbRnvFl3RnvQb8SToAl4SToCZrSToFZoSToHXrSToJU8SToJgvSToJl4SToLhrSToMX3STrAlvSTrCT9STrCgrSTrGgrSTrHXrSTrHboSTrJnoSTrNboSTvLnrST4AZoST8Ab8ST8JT8SUoJn3SU6HZ#SU6JTvSU8Db8SU8HboSU8LgrSV8JT8SZrAcrSZrAl3SZrJT8SZrJnvSZrMT8SZvLUoSZ4FZoSZ8JnoSZ8RZrScoLnrScoMT8ScoMX8ScrAT4ScrAZ8ScrLZ8ScrLkvScvDb8ScvLf8ScvNToSgrFZrShvKnrSloHUoSloLnrSlrMXoSl8HgrSmrJUoSn3BX6","ATFlOn3ATLgrDYAT4MTAnAT8LTMnAYJnRTrAbGgJnrAbLV8LnAbvNTAnAeFbLg3AgOYMXoAlQbFboAnDboAfAnJgoJTBToDgAnBUJbAl3BboDUAnCTDlvLnCTFTrSnCYoQTLnDTwAbAnDUDTrSnDUHgHgrDX8LXFnDbJXAcrETvLTLnGTFTQbrGTMnGToGT3DUFbGUJlPX3GbQg8LnGboJbFnGb3GgAYGgAg8ScGgMbAXrGgvAbAnGnJTLnvGnvATFgHTDT6ATHTrDlJnHYLnMn8HZrSbJTHZ8LTFnHbFTJUoHgSeMT8HgrLjAnHgvAbAnHlFUrDlHnDgvAnHnHTFT3HnQTGnrJTAaMXvJTGbCn3JTOgrAnJXvAXMnJbMg8SnJbMnRg3Jb8LTMnJnAl3OnJnGYrQlJnJlQY3LTDlCn3LTJjLg3LTLgvFXLTMg3GTLV8HUOgLXFZLg3LXNXrMnLX8QXFnLX9AlMYLYLXPXrLZAbJU8LZDUJU8LZMXrSnLZ$AgFnLaPXrDULbFYrMnLbMn8LXLboJgJgLeFbLg3LgLZrSnLgOYAgoLhrRnJlLkCTrSnLkOnLhrLnFX%AYLnFZoJXLnHTvJbLnLloAbMTATLf8MTHgJn3MTMXrAXMT3MTFnMUITvFnMXFX%AYMXMXvFbMXrFTDbMYAcMX3MbLf8SnMb8JbFnMgMXrMTMgvAXFnMgvGgCmMnAloSnMnFnJTrOXvMXSnOX8HTMnObJT8ScObLZFl3ObMXCZoPTLgrQXPUFnoQXPU3RXJlPX3RkQXPbrJXQlPlrJbFnQUAhrDbQXGnCXvQYLnHlvQbLfLnvRTOgvJbRXJYrQlRYLnrQlRbLnrQlRlFT8JlRlFnrQXSTClCn3STHTrAnSTLZQlrSTMnGTrSToHgGbSTrGTDnSTvGXCnST3HgFbSU3HXAXSbAnJn3SbFT8LnScLfLnv","AT3JgJX8AT8FZoSnAT8JgFV8AT8LhrDbAZ8JT8DbAb8GgLhrAb8SkLnvAe8MT8SnAlMYJXLVAl3GYDTvAl3LfLnvBUDTvLl3CTOn3HTrCT3DUGgrCU8MT8AbCbFTrJUoCgrDb8MTDTLV8JX8DTLnLXQlDT8LZrSnDUQb8FZ8DUST4JnvDb8ScOUoDj6GbJl4GTLfCYMlGToAXvFnGboAXvLnGgAcrJn3GgvFnSToGnLf8JnvGn#HTDToHTLnFXJlHTvATFToHTvHTDToHTvMTAgoHT3STClvHT4AlFl6HT8HTDToHUoDgJTrHUoScMX3HbRZrMXoHboJg8LTHgDb8JTrHgMToLf8HgvLnLnoHnHn3HT4Hn6MgvAnJTJU8ScvJT3AaQT8JT8HTrAnJXrRg8AnJbAloMXoJbrATFToJbvMnoSnJgDb6GgvJgDb8MXoJgSX3JU8JguATFToJlPYLnQlJlQkDnLbJlQlFYJlJl8Lf8OTJnCTFnLbJnLTHXMnJnLXGXCnJnoFfRg3JnrMYRg3Jn3HgFl3KT8Dg8LnLTRlFnPTLTvPbLbvLVoSbrCZLXMY6HT3LXNU7DlrLXNXDTATLX8DX8LnLZDb8JU8LZMnoLhrLZSToJU8LZrLaLnrLZvJn3SnLZ8LhrSnLaJnoMT8LbFlrHTvLbrFTLnrLbvATLlvLb6OTFn3LcLnJZOlLeAT6Mn4LeJT3ObrLg6LXFlrLhrJg8LnLhvDlPX4LhvLfLnvLj6JTFT3LnFbrMXoLnQluCTvLnrQXCY6LnvLfLnvLnvMgLnvLnvSeLf8MTMbrJn3MT3JgST3MT8AnATrMT8LULnrMUMToCZrMUScvLf8MXoDT8SnMX6ATFToMX8AXMT8MX8FkMT8MX8HTrDUMX8ScoSnMYJT6CTvMgAcrMXoMg8SToAfMlvAXLg3MnFl3AnvOT3AnFl3OUoATHT8OU3RnLXrOXrOXrSnObPbvFn6Og8HgrSnOg8OX8DbPTvAgoJgPU3RYLnrPXrDnJZrPb8CTGgvPlrLTDlvPlvFUJnoQUvFXrQlQeMnoAl3QlrQlrSnRTFTrJUoSTDlLiLXSTFg6HT3STJgoMn4STrFTJTrSTrLZFl3ST4FnMXoSUrDlHUoScvHTvSnSfLkvMXo","AUoAcrMXoAZ8HboAg8AbOg6ATFgAg8AloMXoAl3AT8JTrAl8MX8MXoCT3SToJU8Cl8Db8MXoDT8HgrATrDboOT8MXoGTOTrATMnGT8LhrAZ8GnvFnGnQXHToGgvAcrHTvAXvLl3HbrAZoMXoHgBlFXLg3HgMnFXrSnHgrSb8JUoHn6HT8LgvITvATrJUoJUoLZrRnvJU8HT8Jb8JXvFX8QT8JXvLToJTrJYrQnGnQXJgrJnoATrJnoJU8ScvJnvMnvMXoLTCTLgrJXLTJlRTvQlLbRnJlQYvLbrMb8LnvLbvFn3RnoLdCVSTGZrLeSTvGXCnLg3MnoLn3MToLlrETvMT8SToAl3MbrDU6GTvMb8LX4LhrPlrLXGXCnSToLf8Rg3STrDb8LTrSTvLTHXMnSb3RYLnMnSgOg6ATFg","HUDlGnrQXrJTrHgLnrAcJYMb8DULc8LTvFgGnCk3Mg8JbAnLX4QYvFYHnMXrRUoJnGnvFnRlvFTJlQnoSTrBXHXrLYSUJgLfoMT8Se8DTrHbDb","AbDl8SToJU8An3RbAb8ST8DUSTrGnrAgoLbFU6Db8LTrMg8AaHT8Jb8ObDl8SToJU8Pb3RlvFYoJl"],$A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*";function eM(t){return t>=40?t=t+168-40:t>=19&&(t=t+97-19),(0,WA.toUtf8String)([225,(t>>6)+132,(t&63)+128])}var La=null;function ux(t){if(La==null&&(La=[],YA.forEach(function(e,r){r+=4;for(var n=0;n<e.length;n+=r){for(var i="",a=0;a<r;a++)i+=eM($A.indexOf(e[n+a]));La.push(i)}}),La.sort(),Rd.Wordlist.check(t)!=="0xf9eddeace9c5d3da9c93cf7d3cd38f6a13ed3affb933259ae865714e8a3ae71a"))throw La=null,new Error("BIP39 Wordlist for ko (Korean) FAILED")}var tM=function(t){QA(e,t);function e(){return t.call(this,"ko")||this}return e.prototype.getWord=function(r){return ux(this),La[r]},e.prototype.getWordIndex=function(r){return ux(this),La.indexOf(r)},e}(Rd.Wordlist),lx=new tM;Ho.langKo=lx;Rd.Wordlist.register(lx)});var bx=V(qo=>{"use strict";var lF=A(S()),rM=qo&&qo.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(qo,"__esModule",{value:!0});qo.langIt=void 0;var Fd=Yn(),nM="AbacoAbbaglioAbbinatoAbeteAbissoAbolireAbrasivoAbrogatoAccadereAccennoAccusatoAcetoneAchilleAcidoAcquaAcreAcrilicoAcrobataAcutoAdagioAddebitoAddomeAdeguatoAderireAdipeAdottareAdulareAffabileAffettoAffissoAffrantoAforismaAfosoAfricanoAgaveAgenteAgevoleAggancioAgireAgitareAgonismoAgricoloAgrumetoAguzzoAlabardaAlatoAlbatroAlberatoAlboAlbumeAlceAlcolicoAlettoneAlfaAlgebraAlianteAlibiAlimentoAllagatoAllegroAllievoAllodolaAllusivoAlmenoAlogenoAlpacaAlpestreAltalenaAlternoAlticcioAltroveAlunnoAlveoloAlzareAmalgamaAmanitaAmarenaAmbitoAmbratoAmebaAmericaAmetistaAmicoAmmassoAmmendaAmmirareAmmonitoAmoreAmpioAmpliareAmuletoAnacardoAnagrafeAnalistaAnarchiaAnatraAncaAncellaAncoraAndareAndreaAnelloAngeloAngolareAngustoAnimaAnnegareAnnidatoAnnoAnnuncioAnonimoAnticipoAnziApaticoAperturaApodeApparireAppetitoAppoggioApprodoAppuntoAprileArabicaArachideAragostaAraldicaArancioAraturaArazzoArbitroArchivioArditoArenileArgentoArgineArgutoAriaArmoniaArneseArredatoArringaArrostoArsenicoArsoArteficeArzilloAsciuttoAscoltoAsepsiAsetticoAsfaltoAsinoAsolaAspiratoAsproAssaggioAsseAssolutoAssurdoAstaAstenutoAsticeAstrattoAtavicoAteismoAtomicoAtonoAttesaAttivareAttornoAttritoAttualeAusilioAustriaAutistaAutonomoAutunnoAvanzatoAvereAvvenireAvvisoAvvolgereAzioneAzotoAzzimoAzzurroBabeleBaccanoBacinoBacoBadessaBadilataBagnatoBaitaBalconeBaldoBalenaBallataBalzanoBambinoBandireBaraondaBarbaroBarcaBaritonoBarlumeBaroccoBasilicoBassoBatostaBattutoBauleBavaBavosaBeccoBeffaBelgioBelvaBendaBenevoleBenignoBenzinaBereBerlinaBetaBibitaBiciBidoneBifidoBigaBilanciaBimboBinocoloBiologoBipedeBipolareBirbanteBirraBiscottoBisestoBisnonnoBisonteBisturiBizzarroBlandoBlattaBollitoBonificoBordoBoscoBotanicoBottinoBozzoloBraccioBradipoBramaBrancaBravuraBretellaBrevettoBrezzaBrigliaBrillanteBrindareBroccoloBrodoBronzinaBrulloBrunoBubboneBucaBudinoBuffoneBuioBulboBuonoBurloneBurrascaBussolaBustaCadettoCaducoCalamaroCalcoloCalesseCalibroCalmoCaloriaCambusaCamerataCamiciaCamminoCamolaCampaleCanapaCandelaCaneCaninoCanottoCantinaCapaceCapelloCapitoloCapogiroCapperoCapraCapsulaCarapaceCarcassaCardoCarismaCarovanaCarrettoCartolinaCasaccioCascataCasermaCasoCassoneCastelloCasualeCatastaCatenaCatrameCautoCavilloCedibileCedrataCefaloCelebreCellulareCenaCenoneCentesimoCeramicaCercareCertoCerumeCervelloCesoiaCespoCetoChelaChiaroChiccaChiedereChimeraChinaChirurgoChitarraCiaoCiclismoCifrareCignoCilindroCiottoloCircaCirrosiCitricoCittadinoCiuffoCivettaCivileClassicoClinicaCloroCoccoCodardoCodiceCoerenteCognomeCollareColmatoColoreColposoColtivatoColzaComaCometaCommandoComodoComputerComuneConcisoCondurreConfermaCongelareConiugeConnessoConoscereConsumoContinuoConvegnoCopertoCopioneCoppiaCopricapoCorazzaCordataCoricatoCorniceCorollaCorpoCorredoCorsiaCorteseCosmicoCostanteCotturaCovatoCratereCravattaCreatoCredereCremosoCrescitaCretaCricetoCrinaleCrisiCriticoCroceCronacaCrostataCrucialeCruscaCucireCuculoCuginoCullatoCupolaCuratoreCursoreCurvoCuscinoCustodeDadoDainoDalmataDamerinoDanielaDannosoDanzareDatatoDavantiDavveroDebuttoDecennioDecisoDeclinoDecolloDecretoDedicatoDefinitoDeformeDegnoDelegareDelfinoDelirioDeltaDemenzaDenotatoDentroDepositoDerapataDerivareDerogaDescrittoDesertoDesiderioDesumereDetersivoDevotoDiametroDicembreDiedroDifesoDiffusoDigerireDigitaleDiluvioDinamicoDinnanziDipintoDiplomaDipoloDiradareDireDirottoDirupoDisagioDiscretoDisfareDisgeloDispostoDistanzaDisumanoDitoDivanoDiveltoDividereDivoratoDobloneDocenteDoganaleDogmaDolceDomatoDomenicaDominareDondoloDonoDormireDoteDottoreDovutoDozzinaDragoDruidoDubbioDubitareDucaleDunaDuomoDupliceDuraturoEbanoEccessoEccoEclissiEconomiaEderaEdicolaEdileEditoriaEducareEgemoniaEgliEgoismoEgregioElaboratoElargireEleganteElencatoElettoElevareElficoElicaElmoElsaElusoEmanatoEmblemaEmessoEmiroEmotivoEmozioneEmpiricoEmuloEndemicoEnduroEnergiaEnfasiEnotecaEntrareEnzimaEpatiteEpilogoEpisodioEpocaleEppureEquatoreErarioErbaErbosoEredeEremitaErigereErmeticoEroeErosivoErranteEsagonoEsameEsanimeEsaudireEscaEsempioEsercitoEsibitoEsigenteEsistereEsitoEsofagoEsortatoEsosoEspansoEspressoEssenzaEssoEstesoEstimareEstoniaEstrosoEsultareEtilicoEtnicoEtruscoEttoEuclideoEuropaEvasoEvidenzaEvitatoEvolutoEvvivaFabbricaFaccendaFachiroFalcoFamigliaFanaleFanfaraFangoFantasmaFareFarfallaFarinosoFarmacoFasciaFastosoFasulloFaticareFatoFavolosoFebbreFecolaFedeFegatoFelpaFeltroFemminaFendereFenomenoFermentoFerroFertileFessuraFestivoFettaFeudoFiabaFiduciaFifaFiguratoFiloFinanzaFinestraFinireFioreFiscaleFisicoFiumeFlaconeFlamencoFleboFlemmaFloridoFluenteFluoroFobicoFocacciaFocosoFoderatoFoglioFolataFolcloreFolgoreFondenteFoneticoFoniaFontanaForbitoForchettaForestaFormicaFornaioForoFortezzaForzareFosfatoFossoFracassoFranaFrassinoFratelloFreccettaFrenataFrescoFrigoFrollinoFrondeFrugaleFruttaFucilataFucsiaFuggenteFulmineFulvoFumanteFumettoFumosoFuneFunzioneFuocoFurboFurgoneFuroreFusoFutileGabbianoGaffeGalateoGallinaGaloppoGamberoGammaGaranziaGarboGarofanoGarzoneGasdottoGasolioGastricoGattoGaudioGazeboGazzellaGecoGelatinaGelsoGemelloGemmatoGeneGenitoreGennaioGenotipoGergoGhepardoGhiaccioGhisaGialloGildaGineproGiocareGioielloGiornoGioveGiratoGironeGittataGiudizioGiuratoGiustoGlobuloGlutineGnomoGobbaGolfGomitoGommoneGonfioGonnaGovernoGracileGradoGraficoGrammoGrandeGrattareGravosoGraziaGrecaGreggeGrifoneGrigioGrinzaGrottaGruppoGuadagnoGuaioGuantoGuardareGufoGuidareIbernatoIconaIdenticoIdillioIdoloIdraIdricoIdrogenoIgieneIgnaroIgnoratoIlareIllesoIllogicoIlludereImballoImbevutoImboccoImbutoImmaneImmersoImmolatoImpaccoImpetoImpiegoImportoImprontaInalareInarcareInattivoIncantoIncendioInchinoIncisivoInclusoIncontroIncrocioIncuboIndagineIndiaIndoleIneditoInfattiInfilareInflittoIngaggioIngegnoIngleseIngordoIngrossoInnescoInodoreInoltrareInondatoInsanoInsettoInsiemeInsonniaInsulinaIntasatoInteroIntonacoIntuitoInumidireInvalidoInveceInvitoIperboleIpnoticoIpotesiIppicaIrideIrlandaIronicoIrrigatoIrrorareIsolatoIsotopoIstericoIstitutoIstriceItaliaIterareLabbroLabirintoLaccaLaceratoLacrimaLacunaLaddoveLagoLampoLancettaLanternaLardosoLargaLaringeLastraLatenzaLatinoLattugaLavagnaLavoroLegaleLeggeroLemboLentezzaLenzaLeoneLepreLesivoLessatoLestoLetteraleLevaLevigatoLiberoLidoLievitoLillaLimaturaLimitareLimpidoLineareLinguaLiquidoLiraLiricaLiscaLiteLitigioLivreaLocandaLodeLogicaLombareLondraLongevoLoquaceLorenzoLotoLotteriaLuceLucidatoLumacaLuminosoLungoLupoLuppoloLusingaLussoLuttoMacabroMacchinaMaceroMacinatoMadamaMagicoMagliaMagneteMagroMaiolicaMalafedeMalgradoMalintesoMalsanoMaltoMalumoreManaManciaMandorlaMangiareManifestoMannaroManovraMansardaMantideManubrioMappaMaratonaMarcireMarettaMarmoMarsupioMascheraMassaiaMastinoMaterassoMatricolaMattoneMaturoMazurcaMeandroMeccanicoMecenateMedesimoMeditareMegaMelassaMelisMelodiaMeningeMenoMensolaMercurioMerendaMerloMeschinoMeseMessereMestoloMetalloMetodoMettereMiagolareMicaMicelioMicheleMicroboMidolloMieleMiglioreMilanoMiliteMimosaMineraleMiniMinoreMirinoMirtilloMiscelaMissivaMistoMisurareMitezzaMitigareMitraMittenteMnemonicoModelloModificaModuloMoganoMogioMoleMolossoMonasteroMoncoMondinaMonetarioMonileMonotonoMonsoneMontatoMonvisoMoraMordereMorsicatoMostroMotivatoMotosegaMottoMovenzaMovimentoMozzoMuccaMucosaMuffaMughettoMugnaioMulattoMulinelloMultiploMummiaMuntoMuovereMuraleMusaMuscoloMusicaMutevoleMutoNababboNaftaNanometroNarcisoNariceNarratoNascereNastrareNaturaleNauticaNaviglioNebulosaNecrosiNegativoNegozioNemmenoNeofitaNerettoNervoNessunoNettunoNeutraleNeveNevroticoNicchiaNinfaNitidoNobileNocivoNodoNomeNominaNordicoNormaleNorvegeseNostranoNotareNotiziaNotturnoNovellaNucleoNullaNumeroNuovoNutrireNuvolaNuzialeOasiObbedireObbligoObeliscoOblioOboloObsoletoOccasioneOcchioOccidenteOccorrereOccultareOcraOculatoOdiernoOdorareOffertaOffrireOffuscatoOggettoOggiOgnunoOlandeseOlfattoOliatoOlivaOlogrammaOltreOmaggioOmbelicoOmbraOmegaOmissioneOndosoOnereOniceOnnivoroOnorevoleOntaOperatoOpinioneOppostoOracoloOrafoOrdineOrecchinoOreficeOrfanoOrganicoOrigineOrizzonteOrmaOrmeggioOrnativoOrologioOrrendoOrribileOrtensiaOrticaOrzataOrzoOsareOscurareOsmosiOspedaleOspiteOssaOssidareOstacoloOsteOtiteOtreOttagonoOttimoOttobreOvaleOvestOvinoOviparoOvocitoOvunqueOvviareOzioPacchettoPacePacificoPadellaPadronePaesePagaPaginaPalazzinaPalesarePallidoPaloPaludePandoroPannelloPaoloPaonazzoPapricaParabolaParcellaParerePargoloPariParlatoParolaPartireParvenzaParzialePassivoPasticcaPataccaPatologiaPattumePavonePeccatoPedalarePedonalePeggioPelosoPenarePendicePenisolaPennutoPenombraPensarePentolaPepePepitaPerbenePercorsoPerdonatoPerforarePergamenaPeriodoPermessoPernoPerplessoPersuasoPertugioPervasoPesatorePesistaPesoPestiferoPetaloPettinePetulantePezzoPiacerePiantaPiattinoPiccinoPicozzaPiegaPietraPifferoPigiamaPigolioPigroPilaPiliferoPillolaPilotaPimpantePinetaPinnaPinoloPioggiaPiomboPiramidePireticoPiritePirolisiPitonePizzicoPlaceboPlanarePlasmaPlatanoPlenarioPochezzaPoderosoPodismoPoesiaPoggiarePolentaPoligonoPollicePolmonitePolpettaPolsoPoltronaPolverePomicePomodoroPontePopolosoPorfidoPorosoPorporaPorrePortataPosaPositivoPossessoPostulatoPotassioPoterePranzoPrassiPraticaPreclusoPredicaPrefissoPregiatoPrelievoPremerePrenotarePreparatoPresenzaPretestoPrevalsoPrimaPrincipePrivatoProblemaProcuraProdurreProfumoProgettoProlungaPromessaPronomePropostaProrogaProtesoProvaPrudentePrugnaPruritoPsichePubblicoPudicaPugilatoPugnoPulcePulitoPulsantePuntarePupazzoPupillaPuroQuadroQualcosaQuasiQuerelaQuotaRaccoltoRaddoppioRadicaleRadunatoRafficaRagazzoRagioneRagnoRamarroRamingoRamoRandagioRantolareRapatoRapinaRappresoRasaturaRaschiatoRasenteRassegnaRastrelloRataRavvedutoRealeRecepireRecintoReclutaReconditoRecuperoRedditoRedimereRegalatoRegistroRegolaRegressoRelazioneRemareRemotoRennaReplicaReprimereReputareResaResidenteResponsoRestauroReteRetinaRetoricaRettificaRevocatoRiassuntoRibadireRibelleRibrezzoRicaricaRiccoRicevereRiciclatoRicordoRicredutoRidicoloRidurreRifasareRiflessoRiformaRifugioRigareRigettatoRighelloRilassatoRilevatoRimanereRimbalzoRimedioRimorchioRinascitaRincaroRinforzoRinnovoRinomatoRinsavitoRintoccoRinunciaRinvenireRiparatoRipetutoRipienoRiportareRipresaRipulireRisataRischioRiservaRisibileRisoRispettoRistoroRisultatoRisvoltoRitardoRitegnoRitmicoRitrovoRiunioneRivaRiversoRivincitaRivoltoRizomaRobaRoboticoRobustoRocciaRocoRodaggioRodereRoditoreRogitoRollioRomanticoRompereRonzioRosolareRospoRotanteRotondoRotulaRovescioRubizzoRubricaRugaRullinoRumineRumorosoRuoloRupeRussareRusticoSabatoSabbiareSabotatoSagomaSalassoSaldaturaSalgemmaSalivareSalmoneSaloneSaltareSalutoSalvoSapereSapidoSaporitoSaracenoSarcasmoSartoSassosoSatelliteSatiraSatolloSaturnoSavanaSavioSaziatoSbadiglioSbalzoSbancatoSbarraSbattereSbavareSbendareSbirciareSbloccatoSbocciatoSbrinareSbruffoneSbuffareScabrosoScadenzaScalaScambiareScandaloScapolaScarsoScatenareScavatoSceltoScenicoScettroSchedaSchienaSciarpaScienzaScindereScippoSciroppoScivoloSclerareScodellaScolpitoScompartoSconfortoScoprireScortaScossoneScozzeseScribaScrollareScrutinioScuderiaScultoreScuolaScuroScusareSdebitareSdoganareSeccaturaSecondoSedanoSeggiolaSegnalatoSegregatoSeguitoSelciatoSelettivoSellaSelvaggioSemaforoSembrareSemeSeminatoSempreSensoSentireSepoltoSequenzaSerataSerbatoSerenoSerioSerpenteSerraglioServireSestinaSetolaSettimanaSfaceloSfaldareSfamatoSfarzosoSfaticatoSferaSfidaSfilatoSfingeSfocatoSfoderareSfogoSfoltireSforzatoSfrattoSfruttatoSfuggitoSfumareSfusoSgabelloSgarbatoSgonfiareSgorbioSgrassatoSguardoSibiloSiccomeSierraSiglaSignoreSilenzioSillabaSimboloSimpaticoSimulatoSinfoniaSingoloSinistroSinoSintesiSinusoideSiparioSismaSistoleSituatoSlittaSlogaturaSlovenoSmarritoSmemoratoSmentitoSmeraldoSmilzoSmontareSmottatoSmussatoSnellireSnervatoSnodoSobbalzoSobrioSoccorsoSocialeSodaleSoffittoSognoSoldatoSolenneSolidoSollazzoSoloSolubileSolventeSomaticoSommaSondaSonettoSonniferoSopireSoppesoSopraSorgereSorpassoSorrisoSorsoSorteggioSorvolatoSospiroSostaSottileSpadaSpallaSpargereSpatolaSpaventoSpazzolaSpecieSpedireSpegnereSpelaturaSperanzaSpessoreSpettraleSpezzatoSpiaSpigolosoSpillatoSpinosoSpiraleSplendidoSportivoSposoSprangaSprecareSpronatoSpruzzoSpuntinoSquilloSradicareSrotolatoStabileStaccoStaffaStagnareStampatoStantioStarnutoStaseraStatutoSteloSteppaSterzoStilettoStimaStirpeStivaleStizzosoStonatoStoricoStrappoStregatoStriduloStrozzareStruttoStuccareStufoStupendoSubentroSuccosoSudoreSuggeritoSugoSultanoSuonareSuperboSupportoSurgelatoSurrogatoSussurroSuturaSvagareSvedeseSveglioSvelareSvenutoSveziaSviluppoSvistaSvizzeraSvoltaSvuotareTabaccoTabulatoTacciareTaciturnoTaleTalismanoTamponeTanninoTaraTardivoTargatoTariffaTarpareTartarugaTastoTatticoTavernaTavolataTazzaTecaTecnicoTelefonoTemerarioTempoTemutoTendoneTeneroTensioneTentacoloTeoremaTermeTerrazzoTerzettoTesiTesseratoTestatoTetroTettoiaTifareTigellaTimbroTintoTipicoTipografoTiraggioTiroTitanioTitoloTitubanteTizioTizzoneToccareTollerareToltoTombolaTomoTonfoTonsillaTopazioTopologiaToppaTorbaTornareTorroneTortoraToscanoTossireTostaturaTotanoTraboccoTracheaTrafilaTragediaTralcioTramontoTransitoTrapanoTrarreTraslocoTrattatoTraveTrecciaTremolioTrespoloTributoTrichecoTrifoglioTrilloTrinceaTrioTristezzaTrituratoTrivellaTrombaTronoTroppoTrottolaTrovareTruccatoTubaturaTuffatoTulipanoTumultoTunisiaTurbareTurchinoTutaTutelaUbicatoUccelloUccisoreUdireUditivoUffaUfficioUgualeUlisseUltimatoUmanoUmileUmorismoUncinettoUngereUnghereseUnicornoUnificatoUnisonoUnitarioUnteUovoUpupaUraganoUrgenzaUrloUsanzaUsatoUscitoUsignoloUsuraioUtensileUtilizzoUtopiaVacanteVaccinatoVagabondoVagliatoValangaValgoValicoVallettaValorosoValutareValvolaVampataVangareVanitosoVanoVantaggioVanveraVaporeVaranoVarcatoVarianteVascaVedettaVedovaVedutoVegetaleVeicoloVelcroVelinaVellutoVeloceVenatoVendemmiaVentoVeraceVerbaleVergognaVerificaVeroVerrucaVerticaleVescicaVessilloVestaleVeteranoVetrinaVetustoViandanteVibranteVicendaVichingoVicinanzaVidimareVigiliaVignetoVigoreVileVillanoViminiVincitoreViolaViperaVirgolaVirologoVirulentoViscosoVisioneVispoVissutoVisuraVitaVitelloVittimaVivandaVividoViziareVoceVogaVolatileVolereVolpeVoragineVulcanoZampognaZannaZappatoZatteraZavorraZefiroZelanteZeloZenzeroZerbinoZibettoZincoZirconeZittoZollaZoticoZuccheroZufoloZuluZuppa",Zs=null;function hx(t){if(Zs==null&&(Zs=nM.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),Fd.Wordlist.check(t)!=="0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620"))throw Zs=null,new Error("BIP39 Wordlist for it (Italian) FAILED")}var iM=function(t){rM(e,t);function e(){return t.call(this,"it")||this}return e.prototype.getWord=function(r){return hx(this),Zs[r]},e.prototype.getWordIndex=function(r){return hx(this),Zs.indexOf(r)},e}(Fd.Wordlist),px=new iM;qo.langIt=px;Fd.Wordlist.register(px)});var xx=V(Wi=>{"use strict";var hF=A(S()),aM=Wi&&Wi.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Wi,"__esModule",{value:!0});Wi.langZhTw=Wi.langZhCn=void 0;var oM=Dr(),Vs=Yn(),Dd="}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN<di,AM=W5%QO&ka&ua,hM^tm=zV=JA=wR&+X]7P&NB#4J#5L|/b[dA}tJ<Do&6m&u2[U1&Kb.HM&mC=w0&MW<rY,Hq#6M}QG,13&wP}Jp]Ow%ue&Kg<HP<D9~4k~9T&I2_c6$9T#9/[C5~7O~4a=cs&O7=KK=An&l9$6U$8A&uD&QI|/Y&bg}Ux&F2#6b}E2&JN&kW&kp=U/&bb=Xl<Cj}k+~5J#6L&5z&9i}b4&Fo,ho(X0_g3~4O$Fz&QE<HN=Ww]6/%GF-Vw=tj&/D&PN#9g=YO}cL&Of&PI~5I&Ip=vU=IW#9G;0o-wU}ss&QR<BT&R9=tk$PY_dh&Pq-yh]7T,nj.Xu=EP&76=cI&Fs*Xg}z7$Gb&+I=DF,AF=cA}rL#7j=Dz&3y<Aa$52=PQ}b0(iY$Fa}oL&xV#6U=ec=WZ,xh%RY<dp#9N&Fl&44=WH*A7=sh&TB&8P=07;u+&PK}uh}J5#72)V/=xC,AB$k0&f6;1E|+5=1B,3v]6n&wR%b+&xx]7f=Ol}fl;+D^wG]7E;nB;uh^Ir&l5=JL,nS=cf=g5;u6|/Q$Gc=MH%Hg#5d%M6^86=U+$Gz,l/,ir^5y&Ba&/F-IY&FI&be%IZ#77&PW_Nu$kE(Yf&NX]7Z,Jy&FJ(Xo&Nz#/d=y7&MX<Ag}Z+;nE]Dt(iG#4D=13&Pj~4c%v8&Zo%OL&/X#4W<HR&ie~6J_1O(Y2=y5=Ad*cv_eB#6k&PX:BU#7A;uk&Ft&Fx_dD=U2;vB=U5=4F}+O&GN.HH:9s=b0%NV(jO&IH=JT}Z9=VZ<Af,Kx^4m&uJ%c6,6r;9m#+L}cf%Kh&F3~4H=vP}bu,Hz|++,1w]nv}k6;uu$jw*Kl*WX&uM[x7&Fr[m7$NO&QN]hu=JN}nR^8g#/h(ps|KC;vd}xz=V0}p6&FD$G1#7K<bG_4p~8g&cf;u4=tl}+k%5/}fz;uw<cA=u1}gU}VM=LJ=eX&+L&Pr#4U}p2:nC,2K]7H:jF&9x}uX#9O=MB<fz~8X~5m&4D&kN&u5%E/(h7(ZF&VG<de(qM|/e-Wt=3x(a+,/R]f/&ND$Ro&nU}0g=KA%kH&NK$Ke<dS}cB&IX~5g$TN]6m=Uv,Is&Py=Ef%Kz#+/%bi&+A<F4$OG&4C&FL#9V<Zk=2I_eE&6c]nw&kq$HG}y+&A8$P3}OH=XP]70%IS(AJ_gH%GZ&tY&AZ=vb~6y&/r=VI=Wv<Zi=fl=xf&eL}c8}OL=MJ=g8$F7=YT}9u=0+^xC}JH&nL^N0~4T]K2,Cy%OC#6s;vG(AC^xe^cG&MF}Br#9P;wD-7h$O/&xA}Fn^PC]6i]7G&8V$Qs;vl(TB~73~4l<mW&6V=2y&uY&+3)aP}XF;LP&kx$wU=t7;uy<FN&lz)7E=Oo*Y+;wI}9q}le;J6&Ri&4t&Qr#8B=cb&vG=J5|Ql(h5<Yy~4+}QD,Lx=wn%K/&RK=dO&Pw,Q9=co%4u;9u}g0@6a^4I%b0=zo|/c&tX=dQ=OS#+b=yz_AB&wB&Pm=W9$HP_gR=62=AO=ti=hI,oA&jr&dH=tm&b6$P2(x8=zi;nG~7F;05]0n[Ix&3m}rg=Xp=cd&uz]7t;97=cN;vV<jf&FF&F1=6Q&Ik*Kk&P4,2z=fQ]7D&3u,H0=d/}Uw<ZN<7R}Kv;0f$H7,MD]7n$F0#88~9Z%da=by;+T#/u=VF&fO&kr^kf<AB]sU,I5$Ng&Pz;0i&QD&vM=Yl:BM;nJ_xJ]U7&Kf&30,3f|Z9*dC)je_jA&Q4&Kp$NH(Yz#6S&Id%Ib=KX,AD=KV%dP}tW&Pk^+E_Ni=cq,3R}VZ(Si=b+}rv;0j}rZ]uA,/w(Sx&Jv$w9&4d&wE,NJ$Gy=J/]Ls#7k<ZQ<Y/&uj]Ov$PM;v3,2F&+u:up=On&3e,Jv;90=J+&Qm]6q}bK#+d~8Y(h2]hA;99&AS=I/}qB&dQ}yJ-VM}Vl&ui,iB&G3|Dc]7d=eQ%dX%JC_1L~4d^NP;vJ&/1)ZI#7N]9X[bQ&PL=0L(UZ,Lm&kc&IR}n7(iR<AQ<dg=33=vN}ft}au]7I,Ba=x9=dR~6R&Tq=Xi,3d$Nr&Bc}DI&ku&vf]Dn,/F&iD,Ll&Nw=0y&I7=Ls=/A&tU=Qe}Ua&uk&+F=g4=gh=Vj#+1&Qn}Uy*44#5F,Pc&Rz*Xn=oh=5W;0n_Nf(iE<Y7=vr=Zu]oz#5Z%mI=kN=Bv_Jp(T2;vt_Ml<FS&uI=L/&6P]64$M7}86<bo%QX(SI%IY&VK=Al&Ux;vv;ut*E/%uh<ZE|O3,M2(yc]yu=Wk&tp:Ex}hr,Cl&WE)+Z=8U}I2_4Q,hA_si=iw=OM=tM=yZ%Ia=U7;wT}b+;uo=Za}yS!5x}HD}fb#5O_dA;Nv%uB(yB;01(Sf}Fk;v7}Pt#8v<mZ#7L,/r&Pl~4w&f5=Ph$Fw_LF&8m,bL=yJ&BH}p/*Jn}tU~5Q;wB(h6]Df]8p^+B;E4&Wc=d+;Ea&bw$8C&FN,DM=Yf}mP~5w=fT#6V=mC=Fi=AV}jB&AN}lW}aH#/D)dZ;hl;vE}/7,CJ;31&w8,hj%u9_Js=jJ&4M~8k=TN&eC}nL&uc-wi&lX}dj=Mv=e2#6u=cr$uq$6G]8W}Jb:nm=Yg<b3(UA;vX&6n&xF=KT,jC,De&R8&oY=Zv&oB]7/=Z2&Oa}bf,hh(4h^tZ&72&Nx;D2&xL~5h~40)ZG)h+=OJ&RA]Bv$yB=Oq=df,AQ%Jn}OJ;11,3z&Tl&tj;v+^Hv,Dh(id=s+]7N&N3)9Q~8f,S4=uW=w4&uX,LX&3d]CJ&yp&8x<b2_do&lP=y/<cy_dG=Oi=7R(VH(lt_1T,Iq_AA;12^6T%k6#8K[B1{oO<AU[Bt;1b$9S&Ps<8T=St{bY,jB(Zp&63&Uv$9V,PM]6v&Af}zW[bW_oq}sm}nB&Kq&gC&ff_eq_2m&5F&TI}rf}Gf;Zr_z9;ER&jk}iz_sn<BN~+n&vo=Vi%97|ZR=Wc,WE&6t]6z%85(ly#84=KY)6m_5/=aX,N3}Tm&he&6K]tR_B2-I3;u/&hU&lH<AP=iB&IA=XL;/5&Nh=wv<BH#79=vS=zl<AA=0X_RG}Bw&9p$NW,AX&kP_Lp&/Z(Tc]Mu}hs#6I}5B&cI<bq&H9#6m=K9}vH(Y1(Y0#4B&w6,/9&gG<bE,/O=zb}I4_l8<B/;wL%Qo<HO[Mq=XX}0v&BP&F4(mG}0i}nm,EC=9u{I3,xG&/9=JY*DK&hR)BX=EI=cx=b/{6k}yX%A+&wa}Xb=la;wi^lL;0t}jo&Qb=xg=XB}iO<qo{bR=NV&8f=a0&Jy;0v=uK)HK;vN#6h&jB(h/%ud&NI%wY.X7=Pt}Cu-uL&Gs_hl%mH,tm]78=Lb^Q0#7Y=1u<Bt&+Q=Co_RH,w3;1e}ux<aU;ui}U3&Q5%bt]63&UQ|0l&uL}O7&3o,AV&dm|Nj(Xt*5+(Uu&Hh(p7(UF=VR=Bp^Jl&Hd[ix)9/=Iq]C8<67]66}mB%6f}bb}JI]8T$HA}db=YM&pa=2J}tS&Y0=PS&y4=cX$6E,hX,XP&nR;04,FQ&l0&Vm_Dv#5Y~8Z=Bi%MA]6x=JO:+p,Az&9q,Hj~6/}SD=K1:EJ}nA;Qo#/E]9R,Ie&6X%W3]61&v4=xX_MC=0q;06(Xq=fs}IG}Dv=0l}o7$iZ;9v&LH&DP-7a&OY,SZ,Kz,Cv&dh=fx|Nh,F/~7q=XF&w+;9n&Gw;0h}Z7<7O&JK(S7&LS<AD<ac=wo<Dt&zw%4B=4v#8P;9o~6p*vV=Tm,Or&I6=1q}nY=P0=gq&Bl&Uu,Ch%yb}UY=zh}dh}rl(T4_xk(YA#8R*xH,IN}Jn]7V}C4&Ty}j3]7p=cL=3h&wW%Qv<Z3=f0&RI&+S(ic_zq}oN&/Y=z1;Td=LW=0e=OI(Vc,+b^ju(UL;0r:Za%8v=Rp=zw&58&73&wK}qX]6y&8E)a2}WR=wP^ur&nQ<cH}Re=Aq&wk}Q0&+q=PP,Gc|/d^k5,Fw]8Y}Pg]p3=ju=ed}r5_yf&Cs]7z$/G<Cm&Jp&54_1G_gP_Ll}JZ;0u]k8_7k(Sg]65{9i=LN&Sx&WK,iW&fD&Lk{9a}Em-9c#8N&io=sy]8d&nT&IK(lx#7/$lW(Td<s8~49,3o<7Y=MW(T+_Jr&Wd,iL}Ct=xh&5V;v4&8n%Kx=iF&l2_0B{B+,If(J0,Lv;u8=Kx-vB=HC&vS=Z6&fU&vE^xK;3D=4h=MR#45:Jw;0d}iw=LU}I5=I0]gB*im,K9}GU,1k_4U&Tt=Vs(iX&lU(TF#7y,ZO}oA&m5#5P}PN}Uz=hM<B1&FB<aG,e6~7T<tP(UQ_ZT=wu&F8)aQ]iN,1r_Lo&/g:CD}84{J1_Ki&Na&3n$jz&FE=dc;uv;va}in}ll=fv(h1&3h}fp=Cy}BM(+E~8m}lo%v7=hC(T6$cj=BQ=Bw(DR,2j=Ks,NS|F+;00=fU=70}Mb(YU;+G&m7&hr=Sk%Co]t+(X5_Jw}0r}gC(AS-IP&QK<Z2#8Q$WC]WX}T2&pG_Ka,HC=R4&/N;Z+;ch(C7,D4$3p_Mk&B2$8D=n9%Ky#5z(CT&QJ#7B]DC]gW}nf~5M;Iw#80}Tc_1F#4Z-aC}Hl=ph=fz,/3=aW}JM}nn;DG;vm}wn,4P}T3;wx&RG$u+}zK=0b;+J_Ek{re<aZ=AS}yY#5D]7q,Cp}xN=VP*2C}GZ}aG~+m_Cs=OY#6r]6g<GS}LC(UB=3A=Bo}Jy<c4}Is;1P<AG}Op<Z1}ld}nS=1Z,yM&95&98=CJ(4t:2L$Hk=Zo}Vc;+I}np&N1}9y=iv}CO*7p=jL)px]tb^zh&GS&Vl%v/;vR=14=zJ&49|/f]hF}WG;03=8P}o/&Gg&rp;DB,Kv}Ji&Pb;aA^ll(4j%yt}+K$Ht#4y&hY]7Y<F1,eN}bG(Uh%6Z]t5%G7;+F_RE;it}tL=LS&Da=Xx(S+(4f=8G=yI}cJ}WP=37=jS}pX}hd)fp<A8=Jt~+o$HJ=M6}iX=g9}CS=dv=Cj(mP%Kd,xq|+9&LD(4/=Xm&QP=Lc}LX&fL;+K=Op(lu=Qs.qC:+e&L+=Jj#8w;SL]7S(b+#4I=c1&nG_Lf&uH;+R)ZV<bV%B/,TE&0H&Jq&Ah%OF&Ss(p2,Wv&I3=Wl}Vq;1L&lJ#9b_1H=8r=b8=JH(SZ=hD=J2#7U,/U#/X~6P,FU<eL=jx,mG=hG=CE&PU=Se(qX&LY=X6=y4&tk&QQ&tf=4g&xI}W+&mZ=Dc#7w}Lg;DA;wQ_Kb(cJ=hR%yX&Yb,hw{bX_4X;EP;1W_2M}Uc=b5(YF,CM&Tp^OJ{DD]6s=vF=Yo~8q}XH}Fu%P5(SJ=Qt;MO]s8<F3&B3&8T(Ul-BS*dw&dR<87}/8]62$PZ]Lx<Au}9Q]7c=ja=KR,Go,Us&v6(qk}pG&G2=ev^GM%w4&H4]7F&dv]J6}Ew:9w=sj-ZL}Ym$+h(Ut(Um~4n=Xs(U7%eE=Qc_JR<CA#6t<Fv|/I,IS,EG<F2(Xy$/n<Fa(h9}+9_2o&N4#7X<Zq|+f_Dp=dt&na,Ca=NJ)jY=8C=YG=s6&Q+<DO}D3=xB&R1(lw;Qn<bF(Cu|/B}HV=SS&n7,10&u0]Dm%A6^4Q=WR(TD=Xo<GH,Rj(l8)bP&n/=LM&CF,F5&ml=PJ;0k=LG=tq,Rh,D6@4i=1p&+9=YC%er_Mh;nI;0q=Fw]80=xq=FM$Gv;v6&nc;wK%H2&Kj;vs,AA=YP,66}bI(qR~5U=6q~4b$Ni=K5.X3$So&Iu(p+]8G=Cf=RY(TS_O3(iH&57=fE=Dg_Do#9z#7H;FK{qd_2k%JR}en&gh_z8;Rx}9p<cN_Ne,DO;LN_7o~/p=NF=5Y}gN<ce<C1,QE]Wv=3u<BC}GK]yq}DY&u/_hj=II(pz&rC,jV&+Z}ut=NQ;Cg-SR_ZS,+o=u/;Oy_RK_QF(Fx&xP}Wr&TA,Uh&g1=yr{ax[VF$Pg(YB;Ox=Vy;+W(Sp}XV%dd&33(l/]l4#4Y}OE=6c=bw(A7&9t%wd&N/&mo,JH&Qe)fm=Ao}fu=tH",sM="FAZDC6BALcLZCA+GBARCW8wNCcDDZ8LVFBOqqDUiou+M42TFAyERXFb7EjhP+vmBFpFrUpfDV2F7eB+eCltCHJFWLFCED+pWTojEIHFXc3aFn4F68zqjEuKidS1QBVPDEhE7NA4mhMF7oThD49ot3FgtzHFCK0acW1x8DH1EmLoIlrWFBLE+y5+NA3Cx65wJHTaEZVaK1mWAmPGxgYCdxwOjTDIt/faOEhTl1vqNsKtJCOhJWuio2g07KLZEQsFBUpNtwEByBgxFslFheFbiEPvi61msDvApxCzB6rBCzox7joYA5UdDc+Cb4FSgIabpXFAj3bjkmFAxCZE+mD/SFf/0ELecYCt3nLoxC6WEZf2tKDB4oZvrEmqFkKk7BwILA7gtYBpsTq//D4jD0F0wEB9pyQ1BD5Ba0oYHDI+sbDFhvrHXdDHfgFEIJLi5r8qercNFBgFLC4bo5ERJtamWBDFy73KCEb6M8VpmEt330ygCTK58EIIFkYgF84gtGA9Uyh3m68iVrFbWFbcbqiCYHZ9J1jeRPbL8yswhMiDbhEhdNoSwFbZrLT740ABEqgCkO8J1BLd1VhKKR4sD1yUo0z+FF59Mvg71CFbyEhbHSFBKEIKyoQNgQppq9T0KAqePu0ZFGrXOHdKJqkoTFhYvpDNyuuznrN84thJbsCoO6Cu6Xlvntvy0QYuAExQEYtTUBf3CoCqwgGFZ4u1HJFzDVwEy3cjcpV4QvsPaBC3rCGyCF23o4K3pp2gberGgFEJEHo4nHICtyKH2ZqyxhN05KBBJIQlKh/Oujv/DH32VrlqFdIFC7Fz9Ct4kaqFME0UETLprnN9kfy+kFmtQBB0+5CFu0N9Ij8l/VvJDh2oq3hT6EzjTHKFN7ZjZwoTsAZ4Exsko6Fpa6WC+sduz8jyrLpegTv2h1EBeYpLpm2czQW0KoCcS0bCVXCmuWJDBjN1nQNLdF58SFJ0h7i3pC3oEOKy/FjBklL70XvBEEIWp2yZ04xObzAWDDJG7f+DbqBEA7LyiR95j7MDVdDViz2RE5vWlBMv5e4+VfhP3aXNPhvLSynb9O2x4uFBV+3jqu6d5pCG28/sETByvmu/+IJ0L3wb4rj9DNOLBF6XPIODr4L19U9RRofAG6Nxydi8Bki8BhGJbBAJKzbJxkZSlF9Q2Cu8oKqggB9hBArwLLqEBWEtFowy8XK8bEyw9snT+BeyFk1ZCSrdmgfEwFePTgCjELBEnIbjaDDPJm36rG9pztcEzT8dGk23SBhXBB1H4z+OWze0ooFzz8pDBYFvp9j9tvFByf9y4EFdVnz026CGR5qMr7fxMHN8UUdlyJAzlTBDRC28k+L4FB8078ljyD91tUj1ocnTs8vdEf7znbzm+GIjEZnoZE5rnLL700Xc7yHfz05nWxy03vBB9YGHYOWxgMQGBCR24CVYNE1hpfKxN0zKnfJDmmMgMmBWqNbjfSyFCBWSCGCgR8yFXiHyEj+VtD1FB3FpC1zI0kFbzifiKTLm9yq5zFmur+q8FHqjoOBWsBPiDbnCC2ErunV6cJ6TygXFYHYp7MKN9RUlSIS8/xBAGYLzeqUnBF4QbsTuUkUqGs6CaiDWKWjQK9EJkjpkTmNCPYXL",Go={zh_cn:null,zh_tw:null},fM={zh_cn:"0x17bcc4d8547e5a7135e365d1ab443aaae95e76d8230c2782c67305d4f21497a1",zh_tw:"0x51e720e90c7b87bec1d70eb6e74a21a449bd3ec9c020b01d3a40ed991b60ce5d"},Od="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cM="~!@#$%^&*_-=[]{}|;:,.()<>?";function gx(t){if(Go[t.locale]===null){Go[t.locale]=[];for(var e=0,r=0;r<2048;r++){var n=cM.indexOf(Dd[r*3]),i=[228+(n>>2),128+Od.indexOf(Dd[r*3+1]),128+Od.indexOf(Dd[r*3+2])];if(t.locale==="zh_tw")for(var a=n%4,d=a;d<3;d++)i[d]=Od.indexOf(sM[e++])+(d==0?228:128);Go[t.locale].push((0,oM.toUtf8String)(i))}if(Vs.Wordlist.check(t)!==fM[t.locale])throw Go[t.locale]=null,new Error("BIP39 Wordlist for "+t.locale+" (Chinese) FAILED")}}var vx=function(t){aM(e,t);function e(r){return t.call(this,"zh_"+r)||this}return e.prototype.getWord=function(r){return gx(this),Go[this.locale][r]},e.prototype.getWordIndex=function(r){return gx(this),Go[this.locale].indexOf(r)},e.prototype.split=function(r){return r=r.replace(/(?:\u3000| )+/g,""),r.split("")},e}(Vs.Wordlist),Id=new vx("cn");Wi.langZhCn=Id;Vs.Wordlist.register(Id);Vs.Wordlist.register(Id,"zh");var mx=new vx("tw");Wi.langZhTw=mx;Vs.Wordlist.register(mx)});var yx=V(hc=>{"use strict";var bF=A(S());Object.defineProperty(hc,"__esModule",{value:!0});hc.wordlists=void 0;var uM=Km(),lM=jm(),dM=ex(),hM=ax(),pM=cx(),bM=dx(),gM=bx(),Nd=xx();hc.wordlists={cz:uM.langCz,en:lM.langEn,es:dM.langEs,fr:hM.langFr,it:gM.langIt,ja:pM.langJa,ko:bM.langKo,zh:Nd.langZhCn,zh_cn:Nd.langZhCn,zh_tw:Nd.langZhTw}});var Ax=V(Yi=>{"use strict";var vF=A(S());Object.defineProperty(Yi,"__esModule",{value:!0});Yi.wordlists=Yi.Wordlist=Yi.logger=void 0;var wx=Yn();Object.defineProperty(Yi,"logger",{enumerable:!0,get:function(){return wx.logger}});Object.defineProperty(Yi,"Wordlist",{enumerable:!0,get:function(){return wx.Wordlist}});var vM=yx();Object.defineProperty(Yi,"wordlists",{enumerable:!0,get:function(){return vM.wordlists}})});var Mx=V(pc=>{"use strict";var xF=A(S());Object.defineProperty(pc,"__esModule",{value:!0});pc.version=void 0;pc.version="hdnode/5.8.0"});var Ud=V(dr=>{"use strict";var wF=A(S());Object.defineProperty(dr,"__esModule",{value:!0});dr.getAccountPath=dr.isValidMnemonic=dr.entropyToMnemonic=dr.mnemonicToEntropy=dr.mnemonicToSeed=dr.HDNode=dr.defaultPath=void 0;var _x=Dm(),tt=nt(),Bx=ba(),js=Dr(),mM=ic(),lr=$r(),Sx=Ns(),$n=Hm(),xM=Js(),Tx=Ax(),yM=Ct(),wM=Mx(),Qs=new yM.Logger(wM.version),AM=Bx.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),MM=(0,js.toUtf8Bytes)("Bitcoin seed"),zo=2147483648;function Cx(t){return(1<<t)-1<<8-t}function SM(t){return(1<<t)-1}function bc(t){return(0,tt.hexZeroPad)((0,tt.hexlify)(t),32)}function Ex(t){return _x.Base58.encode((0,tt.concat)([t,(0,tt.hexDataSlice)((0,$n.sha256)((0,$n.sha256)(t)),0,4)]))}function kd(t){if(t==null)return Tx.wordlists.en;if(typeof t=="string"){var e=Tx.wordlists[t];return e==null&&Qs.throwArgumentError("unknown locale","wordlist",t),e}return t}var Xo={};dr.defaultPath="m/44'/60'/0'/0/0";var TM=function(){function t(e,r,n,i,a,d,v,y){if(e!==Xo)throw new Error("HDNode constructor cannot be called directly");if(r){var x=new Sx.SigningKey(r);(0,lr.defineReadOnly)(this,"privateKey",x.privateKey),(0,lr.defineReadOnly)(this,"publicKey",x.compressedPublicKey)}else(0,lr.defineReadOnly)(this,"privateKey",null),(0,lr.defineReadOnly)(this,"publicKey",(0,tt.hexlify)(n));(0,lr.defineReadOnly)(this,"parentFingerprint",i),(0,lr.defineReadOnly)(this,"fingerprint",(0,tt.hexDataSlice)((0,$n.ripemd160)((0,$n.sha256)(this.publicKey)),0,4)),(0,lr.defineReadOnly)(this,"address",(0,xM.computeAddress)(this.publicKey)),(0,lr.defineReadOnly)(this,"chainCode",a),(0,lr.defineReadOnly)(this,"index",d),(0,lr.defineReadOnly)(this,"depth",v),y==null?((0,lr.defineReadOnly)(this,"mnemonic",null),(0,lr.defineReadOnly)(this,"path",null)):typeof y=="string"?((0,lr.defineReadOnly)(this,"mnemonic",null),(0,lr.defineReadOnly)(this,"path",y)):((0,lr.defineReadOnly)(this,"mnemonic",y),(0,lr.defineReadOnly)(this,"path",y.path))}return Object.defineProperty(t.prototype,"extendedKey",{get:function(){if(this.depth>=256)throw new Error("Depth too large!");return Ex((0,tt.concat)([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",(0,tt.hexlify)(this.depth),this.parentFingerprint,(0,tt.hexZeroPad)((0,tt.hexlify)(this.index),4),this.chainCode,this.privateKey!=null?(0,tt.concat)(["0x00",this.privateKey]):this.publicKey]))},enumerable:!1,configurable:!0}),t.prototype.neuter=function(){return new t(Xo,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)},t.prototype._derive=function(e){if(e>4294967295)throw new Error("invalid index - "+String(e));var r=this.path;r&&(r+="/"+(e&~zo));var n=new Uint8Array(37);if(e&zo){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set((0,tt.arrayify)(this.privateKey),1),r&&(r+="'")}else n.set((0,tt.arrayify)(this.publicKey));for(var i=24;i>=0;i-=8)n[33+(i>>3)]=e>>24-i&255;var a=(0,tt.arrayify)((0,$n.computeHmac)($n.SupportedAlgorithm.sha512,this.chainCode,n)),d=a.slice(0,32),v=a.slice(32),y=null,x=null;if(this.privateKey)y=bc(Bx.BigNumber.from(d).add(this.privateKey).mod(AM));else{var B=new Sx.SigningKey((0,tt.hexlify)(d));x=B._addPoint(this.publicKey)}var C=r,D=this.mnemonic;return D&&(C=Object.freeze({phrase:D.phrase,path:r,locale:D.locale||"en"})),new t(Xo,y,x,this.fingerprint,bc(v),e,this.depth+1,C)},t.prototype.derivePath=function(e){var r=e.split("/");if(r.length===0||r[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);r[0]==="m"&&r.shift();for(var n=this,i=0;i<r.length;i++){var a=r[i];if(a.match(/^[0-9]+'$/)){var d=parseInt(a.substring(0,a.length-1));if(d>=zo)throw new Error("invalid path index - "+a);n=n._derive(zo+d)}else if(a.match(/^[0-9]+$/)){var d=parseInt(a);if(d>=zo)throw new Error("invalid path index - "+a);n=n._derive(d)}else throw new Error("invalid path component - "+a)}return n},t._fromSeed=function(e,r){var n=(0,tt.arrayify)(e);if(n.length<16||n.length>64)throw new Error("invalid seed");var i=(0,tt.arrayify)((0,$n.computeHmac)($n.SupportedAlgorithm.sha512,MM,n));return new t(Xo,bc(i.slice(0,32)),null,"0x00000000",bc(i.slice(32)),0,0,r)},t.fromMnemonic=function(e,r,n){return n=kd(n),e=Lx(Jd(e,n),n),t._fromSeed(Px(e,r),{phrase:e,path:"m",locale:n.locale})},t.fromSeed=function(e){return t._fromSeed(e,null)},t.fromExtendedKey=function(e){var r=_x.Base58.decode(e);(r.length!==82||Ex(r.slice(0,78))!==e)&&Qs.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var n=r[4],i=(0,tt.hexlify)(r.slice(5,9)),a=parseInt((0,tt.hexlify)(r.slice(9,13)).substring(2),16),d=(0,tt.hexlify)(r.slice(13,45)),v=r.slice(45,78);switch((0,tt.hexlify)(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new t(Xo,null,(0,tt.hexlify)(v),i,d,a,n,null);case"0x0488ade4":case"0x04358394 ":if(v[0]!==0)break;return new t(Xo,(0,tt.hexlify)(v.slice(1)),null,i,d,a,n,null)}return Qs.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")},t}();dr.HDNode=TM;function Px(t,e){e||(e="");var r=(0,js.toUtf8Bytes)("mnemonic"+e,js.UnicodeNormalizationForm.NFKD);return(0,mM.pbkdf2)((0,js.toUtf8Bytes)(t,js.UnicodeNormalizationForm.NFKD),r,2048,64,"sha512")}dr.mnemonicToSeed=Px;function Jd(t,e){e=kd(e),Qs.checkNormalize();var r=e.split(t);if(r.length%3!==0)throw new Error("invalid mnemonic");for(var n=(0,tt.arrayify)(new Uint8Array(Math.ceil(11*r.length/8))),i=0,a=0;a<r.length;a++){var d=e.getWordIndex(r[a].normalize("NFKD"));if(d===-1)throw new Error("invalid mnemonic");for(var v=0;v<11;v++)d&1<<10-v&&(n[i>>3]|=1<<7-i%8),i++}var y=32*r.length/3,x=r.length/3,B=Cx(x),C=(0,tt.arrayify)((0,$n.sha256)(n.slice(0,y/8)))[0]&B;if(C!==(n[n.length-1]&B))throw new Error("invalid checksum");return(0,tt.hexlify)(n.slice(0,y/8))}dr.mnemonicToEntropy=Jd;function Lx(t,e){if(e=kd(e),t=(0,tt.arrayify)(t),t.length%4!==0||t.length<16||t.length>32)throw new Error("invalid entropy");for(var r=[0],n=11,i=0;i<t.length;i++)n>8?(r[r.length-1]<<=8,r[r.length-1]|=t[i],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[i]>>8-n,r.push(t[i]&SM(8-n)),n+=3);var a=t.length/4,d=(0,tt.arrayify)((0,$n.sha256)(t))[0]&Cx(a);return r[r.length-1]<<=a,r[r.length-1]|=d>>8-a,e.join(r.map(function(v){return e.getWord(v)}))}dr.entropyToMnemonic=Lx;function EM(t,e){try{return Jd(t,e),!0}catch{}return!1}dr.isValidMnemonic=EM;function _M(t){return(typeof t!="number"||t<0||t>=zo||t%1)&&Qs.throwArgumentError("invalid account index","index",t),"m/44'/60'/"+t+"'/0/0"}dr.getAccountPath=_M});var Rx=V(gc=>{"use strict";var MF=A(S());Object.defineProperty(gc,"__esModule",{value:!0});gc.randomBytes=void 0;var BM=rt("crypto"),CM=nt();function PM(t){return(0,CM.arrayify)((0,BM.randomBytes)(t))}gc.randomBytes=PM});var Fx=V(vc=>{"use strict";var TF=A(S());Object.defineProperty(vc,"__esModule",{value:!0});vc.shuffled=void 0;function LM(t){t=t.slice();for(var e=t.length-1;e>0;e--){var r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}return t}vc.shuffled=LM});var Hd=V(Ko=>{"use strict";var _F=A(S());Object.defineProperty(Ko,"__esModule",{value:!0});Ko.shuffled=Ko.randomBytes=void 0;var RM=Rx();Object.defineProperty(Ko,"randomBytes",{enumerable:!0,get:function(){return RM.randomBytes}});var FM=Fx();Object.defineProperty(Ko,"shuffled",{enumerable:!0,get:function(){return FM.shuffled}})});var Gd=V((qd,Dx)=>{"use strict";var BF=A(S());(function(t){function e(o){return parseInt(o)===o}function r(o){if(!e(o.length))return!1;for(var p=0;p<o.length;p++)if(!e(o[p])||o[p]<0||o[p]>255)return!1;return!0}function n(o,p){if(o.buffer&&ArrayBuffer.isView(o)&&o.name==="Uint8Array")return p&&(o.slice?o=o.slice():o=Array.prototype.slice.call(o)),o;if(Array.isArray(o)){if(!r(o))throw new Error("Array contains invalid value: "+o);return new Uint8Array(o)}if(e(o.length)&&r(o))return new Uint8Array(o);throw new Error("unsupported array-like object")}function i(o){return new Uint8Array(o)}function a(o,p,E,b,w){(b!=null||w!=null)&&(o.slice?o=o.slice(b,w):o=Array.prototype.slice.call(o,b,w)),p.set(o,E)}var d=function(){function o(E){var b=[],w=0;for(E=encodeURI(E);w<E.length;){var H=E.charCodeAt(w++);H===37?(b.push(parseInt(E.substr(w,2),16)),w+=2):b.push(H)}return n(b)}function p(E){for(var b=[],w=0;w<E.length;){var H=E[w];H<128?(b.push(String.fromCharCode(H)),w++):H>191&&H<224?(b.push(String.fromCharCode((H&31)<<6|E[w+1]&63)),w+=2):(b.push(String.fromCharCode((H&15)<<12|(E[w+1]&63)<<6|E[w+2]&63)),w+=3)}return b.join("")}return{toBytes:o,fromBytes:p}}(),v=function(){function o(b){for(var w=[],H=0;H<b.length;H+=2)w.push(parseInt(b.substr(H,2),16));return w}var p="0123456789abcdef";function E(b){for(var w=[],H=0;H<b.length;H++){var T=b[H];w.push(p[(T&240)>>4]+p[T&15])}return w.join("")}return{toBytes:o,fromBytes:E}}(),y={16:10,24:12,32:14},x=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],B=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],C=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],D=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],F=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],P=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],q=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],W=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],K=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],ne=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],$=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],ae=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],ie=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],ee=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],ce=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function te(o){for(var p=[],E=0;E<o.length;E+=4)p.push(o[E]<<24|o[E+1]<<16|o[E+2]<<8|o[E+3]);return p}var Y=function(o){if(!(this instanceof Y))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:n(o,!0)}),this._prepare()};Y.prototype._prepare=function(){var o=y[this.key.length];if(o==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var p=0;p<=o;p++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var E=(o+1)*4,b=this.key.length/4,w=te(this.key),H,p=0;p<b;p++)H=p>>2,this._Ke[H][p%4]=w[p],this._Kd[o-H][p%4]=w[p];for(var T=0,N=b,X;N<E;){if(X=w[b-1],w[0]^=B[X>>16&255]<<24^B[X>>8&255]<<16^B[X&255]<<8^B[X>>24&255]^x[T]<<24,T+=1,b!=8)for(var p=1;p<b;p++)w[p]^=w[p-1];else{for(var p=1;p<b/2;p++)w[p]^=w[p-1];X=w[b/2-1],w[b/2]^=B[X&255]^B[X>>8&255]<<8^B[X>>16&255]<<16^B[X>>24&255]<<24;for(var p=b/2+1;p<b;p++)w[p]^=w[p-1]}for(var p=0,Z,_;p<b&&N<E;)Z=N>>2,_=N%4,this._Ke[Z][_]=w[p],this._Kd[o-Z][_]=w[p++],N++}for(var Z=1;Z<o;Z++)for(var _=0;_<4;_++)X=this._Kd[Z][_],this._Kd[Z][_]=ae[X>>24&255]^ie[X>>16&255]^ee[X>>8&255]^ce[X&255]},Y.prototype.encrypt=function(o){if(o.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var p=this._Ke.length-1,E=[0,0,0,0],b=te(o),w=0;w<4;w++)b[w]^=this._Ke[0][w];for(var H=1;H<p;H++){for(var w=0;w<4;w++)E[w]=D[b[w]>>24&255]^F[b[(w+1)%4]>>16&255]^P[b[(w+2)%4]>>8&255]^q[b[(w+3)%4]&255]^this._Ke[H][w];b=E.slice()}for(var T=i(16),N,w=0;w<4;w++)N=this._Ke[p][w],T[4*w]=(B[b[w]>>24&255]^N>>24)&255,T[4*w+1]=(B[b[(w+1)%4]>>16&255]^N>>16)&255,T[4*w+2]=(B[b[(w+2)%4]>>8&255]^N>>8)&255,T[4*w+3]=(B[b[(w+3)%4]&255]^N)&255;return T},Y.prototype.decrypt=function(o){if(o.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var p=this._Kd.length-1,E=[0,0,0,0],b=te(o),w=0;w<4;w++)b[w]^=this._Kd[0][w];for(var H=1;H<p;H++){for(var w=0;w<4;w++)E[w]=W[b[w]>>24&255]^K[b[(w+3)%4]>>16&255]^ne[b[(w+2)%4]>>8&255]^$[b[(w+1)%4]&255]^this._Kd[H][w];b=E.slice()}for(var T=i(16),N,w=0;w<4;w++)N=this._Kd[p][w],T[4*w]=(C[b[w]>>24&255]^N>>24)&255,T[4*w+1]=(C[b[(w+3)%4]>>16&255]^N>>16)&255,T[4*w+2]=(C[b[(w+2)%4]>>8&255]^N>>8)&255,T[4*w+3]=(C[b[(w+1)%4]&255]^N)&255;return T};var M=function(o){if(!(this instanceof M))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new Y(o)};M.prototype.encrypt=function(o){if(o=n(o),o.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var p=i(o.length),E=i(16),b=0;b<o.length;b+=16)a(o,E,0,b,b+16),E=this._aes.encrypt(E),a(E,p,b);return p},M.prototype.decrypt=function(o){if(o=n(o),o.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var p=i(o.length),E=i(16),b=0;b<o.length;b+=16)a(o,E,0,b,b+16),E=this._aes.decrypt(E),a(E,p,b);return p};var s=function(o,p){if(!(this instanceof s))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",!p)p=i(16);else if(p.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=n(p,!0),this._aes=new Y(o)};s.prototype.encrypt=function(o){if(o=n(o),o.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var p=i(o.length),E=i(16),b=0;b<o.length;b+=16){a(o,E,0,b,b+16);for(var w=0;w<16;w++)E[w]^=this._lastCipherblock[w];this._lastCipherblock=this._aes.encrypt(E),a(this._lastCipherblock,p,b)}return p},s.prototype.decrypt=function(o){if(o=n(o),o.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var p=i(o.length),E=i(16),b=0;b<o.length;b+=16){a(o,E,0,b,b+16),E=this._aes.decrypt(E);for(var w=0;w<16;w++)p[b+w]=E[w]^this._lastCipherblock[w];a(o,this._lastCipherblock,0,b,b+16)}return p};var u=function(o,p,E){if(!(this instanceof u))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",!p)p=i(16);else if(p.length!=16)throw new Error("invalid initialation vector size (must be 16 size)");E||(E=1),this.segmentSize=E,this._shiftRegister=n(p,!0),this._aes=new Y(o)};u.prototype.encrypt=function(o){if(o.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var p=n(o,!0),E,b=0;b<p.length;b+=this.segmentSize){E=this._aes.encrypt(this._shiftRegister);for(var w=0;w<this.segmentSize;w++)p[b+w]^=E[w];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(p,this._shiftRegister,16-this.segmentSize,b,b+this.segmentSize)}return p},u.prototype.decrypt=function(o){if(o.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var p=n(o,!0),E,b=0;b<p.length;b+=this.segmentSize){E=this._aes.encrypt(this._shiftRegister);for(var w=0;w<this.segmentSize;w++)p[b+w]^=E[w];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(o,this._shiftRegister,16-this.segmentSize,b,b+this.segmentSize)}return p};var l=function(o,p){if(!(this instanceof l))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",!p)p=i(16);else if(p.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastPrecipher=n(p,!0),this._lastPrecipherIndex=16,this._aes=new Y(o)};l.prototype.encrypt=function(o){for(var p=n(o,!0),E=0;E<p.length;E++)this._lastPrecipherIndex===16&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),p[E]^=this._lastPrecipher[this._lastPrecipherIndex++];return p},l.prototype.decrypt=l.prototype.encrypt;var f=function(o){if(!(this instanceof f))throw Error("Counter must be instanitated with `new`");o!==0&&!o&&(o=1),typeof o=="number"?(this._counter=i(16),this.setValue(o)):this.setBytes(o)};f.prototype.setValue=function(o){if(typeof o!="number"||parseInt(o)!=o)throw new Error("invalid counter value (must be an integer)");for(var p=15;p>=0;--p)this._counter[p]=o%256,o=o>>8},f.prototype.setBytes=function(o){if(o=n(o,!0),o.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=o},f.prototype.increment=function(){for(var o=15;o>=0;o--)if(this._counter[o]===255)this._counter[o]=0;else{this._counter[o]++;break}};var c=function(o,p){if(!(this instanceof c))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",p instanceof f||(p=new f(p)),this._counter=p,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new Y(o)};c.prototype.encrypt=function(o){for(var p=n(o,!0),E=0;E<p.length;E++)this._remainingCounterIndex===16&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),p[E]^=this._remainingCounter[this._remainingCounterIndex++];return p},c.prototype.decrypt=c.prototype.encrypt;function g(o){o=n(o,!0);var p=16-o.length%16,E=i(o.length+p);a(o,E);for(var b=o.length;b<E.length;b++)E[b]=p;return E}function m(o){if(o=n(o,!0),o.length<16)throw new Error("PKCS#7 invalid length");var p=o[o.length-1];if(p>16)throw new Error("PKCS#7 padding byte out of range");for(var E=o.length-p,b=0;b<p;b++)if(o[E+b]!==p)throw new Error("PKCS#7 invalid padding byte");var w=i(E);return a(o,w,0,0,E),w}var h={AES:Y,Counter:f,ModeOfOperation:{ecb:M,cbc:s,cfb:u,ofb:l,ctr:c},utils:{hex:v,utf8:d},padding:{pkcs7:{pad:g,strip:m}},_arrayTest:{coerceArray:n,createArray:i,copyArray:a}};typeof qd<"u"?Dx.exports=h:typeof define=="function"&&define.amd?define(h):(t.aesjs&&(h._aesjs=t.aesjs),t.aesjs=h)})(qd)});var Xd=V(mc=>{"use strict";var PF=A(S());Object.defineProperty(mc,"__esModule",{value:!0});mc.version=void 0;mc.version="json-wallets/5.8.0"});var zd=V(cn=>{"use strict";var RF=A(S());Object.defineProperty(cn,"__esModule",{value:!0});cn.uuidV4=cn.searchPath=cn.getPassword=cn.zpad=cn.looseArrayify=void 0;var xc=nt(),Ox=Dr();function DM(t){return typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),(0,xc.arrayify)(t)}cn.looseArrayify=DM;function OM(t,e){for(t=String(t);t.length<e;)t="0"+t;return t}cn.zpad=OM;function IM(t){return typeof t=="string"?(0,Ox.toUtf8Bytes)(t,Ox.UnicodeNormalizationForm.NFKC):(0,xc.arrayify)(t)}cn.getPassword=IM;function NM(t,e){for(var r=t,n=e.toLowerCase().split("/"),i=0;i<n.length;i++){var a=null;for(var d in r)if(d.toLowerCase()===n[i]){a=r[d];break}if(a===null)return null;r=a}return r}cn.searchPath=NM;function kM(t){var e=(0,xc.arrayify)(t);e[6]=e[6]&15|64,e[8]=e[8]&63|128;var r=(0,xc.hexlify)(e);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}cn.uuidV4=kM});var Jx=V(ei=>{"use strict";var DF=A(S()),JM=ei&&ei.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),UM=ei&&ei.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ei,"__esModule",{value:!0});ei.decrypt=ei.CrowdsaleAccount=void 0;var Ix=UM(Gd()),HM=ya(),Nx=nt(),qM=Nn(),GM=ic(),XM=Dr(),zM=$r(),KM=Ct(),ZM=Xd(),VM=new KM.Logger(ZM.version),yc=zd(),kx=function(t){JM(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.isCrowdsaleAccount=function(r){return!!(r&&r._isCrowdsaleAccount)},e}(zM.Description);ei.CrowdsaleAccount=kx;function jM(t,e){var r=JSON.parse(t);e=(0,yc.getPassword)(e);var n=(0,HM.getAddress)((0,yc.searchPath)(r,"ethaddr")),i=(0,yc.looseArrayify)((0,yc.searchPath)(r,"encseed"));(!i||i.length%16!==0)&&VM.throwArgumentError("invalid encseed","json",t);for(var a=(0,Nx.arrayify)((0,GM.pbkdf2)(e,e,2e3,32,"sha256")).slice(0,16),d=i.slice(0,16),v=i.slice(16),y=new Ix.default.ModeOfOperation.cbc(a,d),x=Ix.default.padding.pkcs7.strip((0,Nx.arrayify)(y.decrypt(v))),B="",C=0;C<x.length;C++)B+=String.fromCharCode(x[C]);var D=(0,XM.toUtf8Bytes)(B),F=(0,qM.keccak256)(D);return new kx({_isCrowdsaleAccount:!0,address:n,privateKey:F})}ei.decrypt=jM});var Gx=V($i=>{"use strict";var IF=A(S());Object.defineProperty($i,"__esModule",{value:!0});$i.getJsonWalletAddress=$i.isKeystoreWallet=$i.isCrowdsaleWallet=void 0;var Ux=ya();function Hx(t){var e=null;try{e=JSON.parse(t)}catch{return!1}return e.encseed&&e.ethaddr}$i.isCrowdsaleWallet=Hx;function qx(t){var e=null;try{e=JSON.parse(t)}catch{return!1}return!(!e.version||parseInt(e.version)!==e.version||parseInt(e.version)!==3)}$i.isKeystoreWallet=qx;function QM(t){if(Hx(t))try{return(0,Ux.getAddress)(JSON.parse(t).ethaddr)}catch{return null}if(qx(t))try{return(0,Ux.getAddress)(JSON.parse(t).address)}catch{return null}return null}$i.getJsonWalletAddress=QM});var zx=V((Kd,Xx)=>{"use strict";var NF=A(S());(function(t){function r(F){let P=new Uint32Array([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]),q=1779033703,W=3144134277,K=1013904242,ne=2773480762,$=1359893119,ae=2600822924,ie=528734635,ee=1541459225,ce=new Uint32Array(64);function te(c){let g=0,m=c.length;for(;m>=64;){let h=q,o=W,p=K,E=ne,b=$,w=ae,H=ie,T=ee,N,X,Z,_,R;for(X=0;X<16;X++)Z=g+X*4,ce[X]=(c[Z]&255)<<24|(c[Z+1]&255)<<16|(c[Z+2]&255)<<8|c[Z+3]&255;for(X=16;X<64;X++)N=ce[X-2],_=(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10,N=ce[X-15],R=(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3,ce[X]=(_+ce[X-7]|0)+(R+ce[X-16]|0)|0;for(X=0;X<64;X++)_=(((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&w^~b&H)|0)+(T+(P[X]+ce[X]|0)|0)|0,R=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&o^h&p^o&p)|0,T=H,H=w,w=b,b=E+_|0,E=p,p=o,o=h,h=_+R|0;q=q+h|0,W=W+o|0,K=K+p|0,ne=ne+E|0,$=$+b|0,ae=ae+w|0,ie=ie+H|0,ee=ee+T|0,g+=64,m-=64}}te(F);let Y,M=F.length%64,s=F.length/536870912|0,u=F.length<<3,l=M<56?56:120,f=F.slice(F.length-M,F.length);for(f.push(128),Y=M+1;Y<l;Y++)f.push(0);return f.push(s>>>24&255),f.push(s>>>16&255),f.push(s>>>8&255),f.push(s>>>0&255),f.push(u>>>24&255),f.push(u>>>16&255),f.push(u>>>8&255),f.push(u>>>0&255),te(f),[q>>>24&255,q>>>16&255,q>>>8&255,q>>>0&255,W>>>24&255,W>>>16&255,W>>>8&255,W>>>0&255,K>>>24&255,K>>>16&255,K>>>8&255,K>>>0&255,ne>>>24&255,ne>>>16&255,ne>>>8&255,ne>>>0&255,$>>>24&255,$>>>16&255,$>>>8&255,$>>>0&255,ae>>>24&255,ae>>>16&255,ae>>>8&255,ae>>>0&255,ie>>>24&255,ie>>>16&255,ie>>>8&255,ie>>>0&255,ee>>>24&255,ee>>>16&255,ee>>>8&255,ee>>>0&255]}function n(F,P,q){F=F.length<=64?F:r(F);let W=64+P.length+4,K=new Array(W),ne=new Array(64),$,ae=[];for($=0;$<64;$++)K[$]=54;for($=0;$<F.length;$++)K[$]^=F[$];for($=0;$<P.length;$++)K[64+$]=P[$];for($=W-4;$<W;$++)K[$]=0;for($=0;$<64;$++)ne[$]=92;for($=0;$<F.length;$++)ne[$]^=F[$];function ie(){for(let ee=W-1;ee>=W-4;ee--){if(K[ee]++,K[ee]<=255)return;K[ee]=0}}for(;q>=32;)ie(),ae=ae.concat(r(ne.concat(r(K)))),q-=32;return q>0&&(ie(),ae=ae.concat(r(ne.concat(r(K))).slice(0,q))),ae}function i(F,P,q,W,K){let ne;for(y(F,(2*q-1)*16,K,0,16),ne=0;ne<2*q;ne++)v(F,ne*16,K,16),d(K,W),y(K,0,F,P+ne*16,16);for(ne=0;ne<q;ne++)y(F,P+ne*2*16,F,ne*16,16);for(ne=0;ne<q;ne++)y(F,P+(ne*2+1)*16,F,(ne+q)*16,16)}function a(F,P){return F<<P|F>>>32-P}function d(F,P){y(F,0,P,0,16);for(let q=8;q>0;q-=2)P[4]^=a(P[0]+P[12],7),P[8]^=a(P[4]+P[0],9),P[12]^=a(P[8]+P[4],13),P[0]^=a(P[12]+P[8],18),P[9]^=a(P[5]+P[1],7),P[13]^=a(P[9]+P[5],9),P[1]^=a(P[13]+P[9],13),P[5]^=a(P[1]+P[13],18),P[14]^=a(P[10]+P[6],7),P[2]^=a(P[14]+P[10],9),P[6]^=a(P[2]+P[14],13),P[10]^=a(P[6]+P[2],18),P[3]^=a(P[15]+P[11],7),P[7]^=a(P[3]+P[15],9),P[11]^=a(P[7]+P[3],13),P[15]^=a(P[11]+P[7],18),P[1]^=a(P[0]+P[3],7),P[2]^=a(P[1]+P[0],9),P[3]^=a(P[2]+P[1],13),P[0]^=a(P[3]+P[2],18),P[6]^=a(P[5]+P[4],7),P[7]^=a(P[6]+P[5],9),P[4]^=a(P[7]+P[6],13),P[5]^=a(P[4]+P[7],18),P[11]^=a(P[10]+P[9],7),P[8]^=a(P[11]+P[10],9),P[9]^=a(P[8]+P[11],13),P[10]^=a(P[9]+P[8],18),P[12]^=a(P[15]+P[14],7),P[13]^=a(P[12]+P[15],9),P[14]^=a(P[13]+P[12],13),P[15]^=a(P[14]+P[13],18);for(let q=0;q<16;++q)F[q]+=P[q]}function v(F,P,q,W){for(let K=0;K<W;K++)q[K]^=F[P+K]}function y(F,P,q,W,K){for(;K--;)q[W++]=F[P++]}function x(F){if(!F||typeof F.length!="number")return!1;for(let P=0;P<F.length;P++){let q=F[P];if(typeof q!="number"||q%1||q<0||q>=256)return!1}return!0}function B(F,P){if(typeof F!="number"||F%1)throw new Error("invalid "+P);return F}function C(F,P,q,W,K,ne,$){if(q=B(q,"N"),W=B(W,"r"),K=B(K,"p"),ne=B(ne,"dkLen"),q===0||q&q-1)throw new Error("N must be power of 2");if(q>2147483647/128/W)throw new Error("N too large");if(W>2147483647/128/K)throw new Error("r too large");if(!x(F))throw new Error("password must be an array or buffer");if(F=Array.prototype.slice.call(F),!x(P))throw new Error("salt must be an array or buffer");P=Array.prototype.slice.call(P);let ae=n(F,P,K*128*W),ie=new Uint32Array(K*32*W);for(let b=0;b<ie.length;b++){let w=b*4;ie[b]=(ae[w+3]&255)<<24|(ae[w+2]&255)<<16|(ae[w+1]&255)<<8|(ae[w+0]&255)<<0}let ee=new Uint32Array(64*W),ce=new Uint32Array(32*W*q),te=32*W,Y=new Uint32Array(16),M=new Uint32Array(16),s=K*q*2,u=0,l=null,f=!1,c=0,g=0,m,h,o=$?parseInt(1e3/W):4294967295,p=typeof setImmediate<"u"?setImmediate:setTimeout,E=function(){if(f)return $(new Error("cancelled"),u/s);let b;switch(c){case 0:h=g*32*W,y(ie,h,ee,0,te),c=1,m=0;case 1:b=q-m,b>o&&(b=o);for(let H=0;H<b;H++)y(ee,0,ce,(m+H)*te,te),i(ee,te,W,Y,M);if(m+=b,u+=b,$){let H=parseInt(1e3*u/s);if(H!==l){if(f=$(null,u/s),f)break;l=H}}if(m<q)break;m=0,c=2;case 2:b=q-m,b>o&&(b=o);for(let H=0;H<b;H++){let T=(2*W-1)*16,N=ee[T]&q-1;v(ce,N*te,ee,te),i(ee,te,W,Y,M)}if(m+=b,u+=b,$){let H=parseInt(1e3*u/s);if(H!==l){if(f=$(null,u/s),f)break;l=H}}if(m<q)break;if(y(ee,0,ie,h,te),g++,g<K){c=0;break}ae=[];for(let H=0;H<ie.length;H++)ae.push(ie[H]>>0&255),ae.push(ie[H]>>8&255),ae.push(ie[H]>>16&255),ae.push(ie[H]>>24&255);let w=n(F,ae,ne);return $&&$(null,1,w),w}$&&p(E)};if(!$)for(;;){let b=E();if(b!=null)return b}E()}let D={scrypt:function(F,P,q,W,K,ne,$){return new Promise(function(ae,ie){let ee=0;$&&$(0),C(F,P,q,W,K,ne,function(ce,te,Y){if(ce)ie(ce);else if(Y)$&&ee!==1&&$(1),ae(new Uint8Array(Y));else if($&&te!==ee)return ee=te,$(te)})})},syncScrypt:function(F,P,q,W,K,ne){return new Uint8Array(C(F,P,q,W,K,ne))}};typeof Kd<"u"?Xx.exports=D:typeof define=="function"&&define.amd?define(D):t&&(t.scrypt&&(t._scrypt=t.scrypt),t.scrypt=D)})(Kd)});var t2=V(zt=>{"use strict";var JF=A(S()),WM=zt&&zt.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),YM=zt&&zt.__awaiter||function(t,e,r,n){function i(a){return a instanceof r?a:new r(function(d){d(a)})}return new(r||(r=Promise))(function(a,d){function v(B){try{x(n.next(B))}catch(C){d(C)}}function y(B){try{x(n.throw(B))}catch(C){d(C)}}function x(B){B.done?a(B.value):i(B.value).then(v,y)}x((n=n.apply(t,e||[])).next())})},$M=zt&&zt.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,d;return d={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(x){return function(B){return y([x,B])}}function y(x){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=x[0]&2?i.return:x[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,x[1])).done)return a;switch(i=0,a&&(x=[x[0]&2,a.value]),x[0]){case 0:case 1:a=x;break;case 4:return r.label++,{value:x[1],done:!1};case 5:r.label++,i=x[1],x=[0];continue;case 7:x=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(x[0]===6||x[0]===2)){r=0;continue}if(x[0]===3&&(!a||x[1]>a[0]&&x[1]<a[3])){r.label=x[1];break}if(x[0]===6&&r.label<a[1]){r.label=a[1],a=x;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(x);break}a[2]&&r.ops.pop(),r.trys.pop();continue}x=e.call(t,r)}catch(B){x=[6,B],i=0}finally{n=a=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}},Zx=zt&&zt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zt,"__esModule",{value:!0});zt.encrypt=zt.decrypt=zt.decryptSync=zt.KeystoreAccount=void 0;var ea=Zx(Gd()),jd=Zx(zx()),Vx=ya(),Rt=nt(),Ra=Ud(),jx=Nn(),eS=ic(),wc=Hd(),tS=$r(),Qx=Js(),je=zd(),Zd=Ct(),rS=Xd(),Vd=new Zd.Logger(rS.version);function Kx(t){return t!=null&&t.mnemonic&&t.mnemonic.phrase}var Wx=function(t){WM(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.isKeystoreAccount=function(r){return!!(r&&r._isKeystoreAccount)},e}(tS.Description);zt.KeystoreAccount=Wx;function nS(t,e,r){var n=(0,je.searchPath)(t,"crypto/cipher");if(n==="aes-128-ctr"){var i=(0,je.looseArrayify)((0,je.searchPath)(t,"crypto/cipherparams/iv")),a=new ea.default.Counter(i),d=new ea.default.ModeOfOperation.ctr(e,a);return(0,Rt.arrayify)(d.decrypt(r))}return null}function Yx(t,e){var r=(0,je.looseArrayify)((0,je.searchPath)(t,"crypto/ciphertext")),n=(0,Rt.hexlify)((0,jx.keccak256)((0,Rt.concat)([e.slice(16,32),r]))).substring(2);if(n!==(0,je.searchPath)(t,"crypto/mac").toLowerCase())throw new Error("invalid password");var i=nS(t,e.slice(0,16),r);i||Vd.throwError("unsupported cipher",Zd.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});var a=e.slice(32,64),d=(0,Qx.computeAddress)(i);if(t.address){var v=t.address.toLowerCase();if(v.substring(0,2)!=="0x"&&(v="0x"+v),(0,Vx.getAddress)(v)!==d)throw new Error("address mismatch")}var y={_isKeystoreAccount:!0,address:d,privateKey:(0,Rt.hexlify)(i)};if((0,je.searchPath)(t,"x-ethers/version")==="0.1"){var x=(0,je.looseArrayify)((0,je.searchPath)(t,"x-ethers/mnemonicCiphertext")),B=(0,je.looseArrayify)((0,je.searchPath)(t,"x-ethers/mnemonicCounter")),C=new ea.default.Counter(B),D=new ea.default.ModeOfOperation.ctr(a,C),F=(0,je.searchPath)(t,"x-ethers/path")||Ra.defaultPath,P=(0,je.searchPath)(t,"x-ethers/locale")||"en",q=(0,Rt.arrayify)(D.decrypt(x));try{var W=(0,Ra.entropyToMnemonic)(q,P),K=Ra.HDNode.fromMnemonic(W,null,P).derivePath(F);if(K.privateKey!=y.privateKey)throw new Error("mnemonic mismatch");y.mnemonic=K.mnemonic}catch(ne){if(ne.code!==Zd.Logger.errors.INVALID_ARGUMENT||ne.argument!=="wordlist")throw ne}}return new Wx(y)}function $x(t,e,r,n,i){return(0,Rt.arrayify)((0,eS.pbkdf2)(t,e,r,n,i))}function iS(t,e,r,n,i){return Promise.resolve($x(t,e,r,n,i))}function e2(t,e,r,n,i){var a=(0,je.getPassword)(e),d=(0,je.searchPath)(t,"crypto/kdf");if(d&&typeof d=="string"){var v=function(W,K){return Vd.throwArgumentError("invalid key-derivation function parameters",W,K)};if(d.toLowerCase()==="scrypt"){var y=(0,je.looseArrayify)((0,je.searchPath)(t,"crypto/kdfparams/salt")),x=parseInt((0,je.searchPath)(t,"crypto/kdfparams/n")),B=parseInt((0,je.searchPath)(t,"crypto/kdfparams/r")),C=parseInt((0,je.searchPath)(t,"crypto/kdfparams/p"));(!x||!B||!C)&&v("kdf",d),x&x-1&&v("N",x);var D=parseInt((0,je.searchPath)(t,"crypto/kdfparams/dklen"));return D!==32&&v("dklen",D),n(a,y,x,B,C,64,i)}else if(d.toLowerCase()==="pbkdf2"){var y=(0,je.looseArrayify)((0,je.searchPath)(t,"crypto/kdfparams/salt")),F=null,P=(0,je.searchPath)(t,"crypto/kdfparams/prf");P==="hmac-sha256"?F="sha256":P==="hmac-sha512"?F="sha512":v("prf",P);var q=parseInt((0,je.searchPath)(t,"crypto/kdfparams/c")),D=parseInt((0,je.searchPath)(t,"crypto/kdfparams/dklen"));return D!==32&&v("dklen",D),r(a,y,q,D,F)}}return Vd.throwArgumentError("unsupported key-derivation function","kdf",d)}function aS(t,e){var r=JSON.parse(t),n=e2(r,e,$x,jd.default.syncScrypt);return Yx(r,n)}zt.decryptSync=aS;function oS(t,e,r){return YM(this,void 0,void 0,function(){var n,i;return $M(this,function(a){switch(a.label){case 0:return n=JSON.parse(t),[4,e2(n,e,iS,jd.default.scrypt,r)];case 1:return i=a.sent(),[2,Yx(n,i)]}})})}zt.decrypt=oS;function sS(t,e,r,n){try{if((0,Vx.getAddress)(t.address)!==(0,Qx.computeAddress)(t.privateKey))throw new Error("address/privateKey mismatch");if(Kx(t)){var i=t.mnemonic,a=Ra.HDNode.fromMnemonic(i.phrase,null,i.locale).derivePath(i.path||Ra.defaultPath);if(a.privateKey!=t.privateKey)throw new Error("mnemonic mismatch")}}catch($){return Promise.reject($)}typeof r=="function"&&!n&&(n=r,r={}),r||(r={});var d=(0,Rt.arrayify)(t.privateKey),v=(0,je.getPassword)(e),y=null,x=null,B=null;if(Kx(t)){var C=t.mnemonic;y=(0,Rt.arrayify)((0,Ra.mnemonicToEntropy)(C.phrase,C.locale||"en")),x=C.path||Ra.defaultPath,B=C.locale||"en"}var D=r.client;D||(D="ethers.js");var F=null;r.salt?F=(0,Rt.arrayify)(r.salt):F=(0,wc.randomBytes)(32);var P=null;if(r.iv){if(P=(0,Rt.arrayify)(r.iv),P.length!==16)throw new Error("invalid iv")}else P=(0,wc.randomBytes)(16);var q=null;if(r.uuid){if(q=(0,Rt.arrayify)(r.uuid),q.length!==16)throw new Error("invalid uuid")}else q=(0,wc.randomBytes)(16);var W=1<<17,K=8,ne=1;return r.scrypt&&(r.scrypt.N&&(W=r.scrypt.N),r.scrypt.r&&(K=r.scrypt.r),r.scrypt.p&&(ne=r.scrypt.p)),jd.default.scrypt(v,F,W,K,ne,64,n).then(function($){$=(0,Rt.arrayify)($);var ae=$.slice(0,16),ie=$.slice(16,32),ee=$.slice(32,64),ce=new ea.default.Counter(P),te=new ea.default.ModeOfOperation.ctr(ae,ce),Y=(0,Rt.arrayify)(te.encrypt(d)),M=(0,jx.keccak256)((0,Rt.concat)([ie,Y])),s={address:t.address.substring(2).toLowerCase(),id:(0,je.uuidV4)(q),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,Rt.hexlify)(P).substring(2)},ciphertext:(0,Rt.hexlify)(Y).substring(2),kdf:"scrypt",kdfparams:{salt:(0,Rt.hexlify)(F).substring(2),n:W,dklen:32,p:ne,r:K},mac:M.substring(2)}};if(y){var u=(0,wc.randomBytes)(16),l=new ea.default.Counter(u),f=new ea.default.ModeOfOperation.ctr(ee,l),c=(0,Rt.arrayify)(f.encrypt(y)),g=new Date,m=g.getUTCFullYear()+"-"+(0,je.zpad)(g.getUTCMonth()+1,2)+"-"+(0,je.zpad)(g.getUTCDate(),2)+"T"+(0,je.zpad)(g.getUTCHours(),2)+"-"+(0,je.zpad)(g.getUTCMinutes(),2)+"-"+(0,je.zpad)(g.getUTCSeconds(),2)+".0Z";s["x-ethers"]={client:D,gethFilename:"UTC--"+m+"--"+s.address,mnemonicCounter:(0,Rt.hexlify)(u).substring(2),mnemonicCiphertext:(0,Rt.hexlify)(c).substring(2),path:x,locale:B,version:"0.1"}}return JSON.stringify(s)})}zt.encrypt=sS});var r2=V(Ft=>{"use strict";var HF=A(S());Object.defineProperty(Ft,"__esModule",{value:!0});Ft.decryptJsonWalletSync=Ft.decryptJsonWallet=Ft.getJsonWalletAddress=Ft.isKeystoreWallet=Ft.isCrowdsaleWallet=Ft.encryptKeystore=Ft.decryptKeystoreSync=Ft.decryptKeystore=Ft.decryptCrowdsale=void 0;var Qd=Jx();Object.defineProperty(Ft,"decryptCrowdsale",{enumerable:!0,get:function(){return Qd.decrypt}});var Fa=Gx();Object.defineProperty(Ft,"getJsonWalletAddress",{enumerable:!0,get:function(){return Fa.getJsonWalletAddress}});Object.defineProperty(Ft,"isCrowdsaleWallet",{enumerable:!0,get:function(){return Fa.isCrowdsaleWallet}});Object.defineProperty(Ft,"isKeystoreWallet",{enumerable:!0,get:function(){return Fa.isKeystoreWallet}});var Ws=t2();Object.defineProperty(Ft,"decryptKeystore",{enumerable:!0,get:function(){return Ws.decrypt}});Object.defineProperty(Ft,"decryptKeystoreSync",{enumerable:!0,get:function(){return Ws.decryptSync}});Object.defineProperty(Ft,"encryptKeystore",{enumerable:!0,get:function(){return Ws.encrypt}});function fS(t,e,r){if((0,Fa.isCrowdsaleWallet)(t)){r&&r(0);var n=(0,Qd.decrypt)(t,e);return r&&r(1),Promise.resolve(n)}return(0,Fa.isKeystoreWallet)(t)?(0,Ws.decrypt)(t,e,r):Promise.reject(new Error("invalid JSON wallet"))}Ft.decryptJsonWallet=fS;function cS(t,e){if((0,Fa.isCrowdsaleWallet)(t))return(0,Qd.decrypt)(t,e);if((0,Fa.isKeystoreWallet)(t))return(0,Ws.decryptSync)(t,e);throw new Error("invalid JSON wallet")}Ft.decryptJsonWalletSync=cS});var n2=V(Ac=>{"use strict";var GF=A(S());Object.defineProperty(Ac,"__esModule",{value:!0});Ac.version=void 0;Ac.version="wallet/5.8.0"});var ef=V(Pr=>{"use strict";var zF=A(S()),uS=Pr&&Pr.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),i2=Pr&&Pr.__awaiter||function(t,e,r,n){function i(a){return a instanceof r?a:new r(function(d){d(a)})}return new(r||(r=Promise))(function(a,d){function v(B){try{x(n.next(B))}catch(C){d(C)}}function y(B){try{x(n.throw(B))}catch(C){d(C)}}function x(B){B.done?a(B.value):i(B.value).then(v,y)}x((n=n.apply(t,e||[])).next())})},a2=Pr&&Pr.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,d;return d={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(x){return function(B){return y([x,B])}}function y(x){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=x[0]&2?i.return:x[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,x[1])).done)return a;switch(i=0,a&&(x=[x[0]&2,a.value]),x[0]){case 0:case 1:a=x;break;case 4:return r.label++,{value:x[1],done:!1};case 5:r.label++,i=x[1],x=[0];continue;case 7:x=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(x[0]===6||x[0]===2)){r=0;continue}if(x[0]===3&&(!a||x[1]>a[0]&&x[1]<a[3])){r.label=x[1];break}if(x[0]===6&&r.label<a[1]){r.label=a[1],a=x;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(x);break}a[2]&&r.ops.pop(),r.trys.pop();continue}x=e.call(t,r)}catch(B){x=[6,B],i=0}finally{n=a=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.verifyTypedData=Pr.verifyMessage=Pr.Wallet=void 0;var o2=ya(),lS=Cm(),dS=Rm(),Vo=nt(),$s=Cs(),Ys=Ud(),s2=Nn(),ti=$r(),hS=Hd(),Wd=Ns(),Yd=r2(),Da=Js(),f2=Ct(),pS=n2(),Zo=new f2.Logger(pS.version);function bS(t){return t!=null&&(0,Vo.isHexString)(t.privateKey,32)&&t.address!=null}function gS(t){var e=t.mnemonic;return e&&e.phrase}var vS=function(t){uS(e,t);function e(r,n){var i=t.call(this)||this;if(bS(r)){var a=new Wd.SigningKey(r.privateKey);if((0,ti.defineReadOnly)(i,"_signingKey",function(){return a}),(0,ti.defineReadOnly)(i,"address",(0,Da.computeAddress)(i.publicKey)),i.address!==(0,o2.getAddress)(r.address)&&Zo.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),gS(r)){var d=r.mnemonic;(0,ti.defineReadOnly)(i,"_mnemonic",function(){return{phrase:d.phrase,path:d.path||Ys.defaultPath,locale:d.locale||"en"}});var v=i.mnemonic,y=Ys.HDNode.fromMnemonic(v.phrase,null,v.locale).derivePath(v.path);(0,Da.computeAddress)(y.privateKey)!==i.address&&Zo.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,ti.defineReadOnly)(i,"_mnemonic",function(){return null})}else{if(Wd.SigningKey.isSigningKey(r))r.curve!=="secp256k1"&&Zo.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,ti.defineReadOnly)(i,"_signingKey",function(){return r});else{typeof r=="string"&&r.match(/^[0-9a-f]*$/i)&&r.length===64&&(r="0x"+r);var x=new Wd.SigningKey(r);(0,ti.defineReadOnly)(i,"_signingKey",function(){return x})}(0,ti.defineReadOnly)(i,"_mnemonic",function(){return null}),(0,ti.defineReadOnly)(i,"address",(0,Da.computeAddress)(i.publicKey))}return n&&!lS.Provider.isProvider(n)&&Zo.throwArgumentError("invalid provider","provider",n),(0,ti.defineReadOnly)(i,"provider",n||null),i}return Object.defineProperty(e.prototype,"mnemonic",{get:function(){return this._mnemonic()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"privateKey",{get:function(){return this._signingKey().privateKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"publicKey",{get:function(){return this._signingKey().publicKey},enumerable:!1,configurable:!0}),e.prototype.getAddress=function(){return Promise.resolve(this.address)},e.prototype.connect=function(r){return new e(this,r)},e.prototype.signTransaction=function(r){var n=this;return(0,ti.resolveProperties)(r).then(function(i){i.from!=null&&((0,o2.getAddress)(i.from)!==n.address&&Zo.throwArgumentError("transaction from address mismatch","transaction.from",r.from),delete i.from);var a=n._signingKey().signDigest((0,s2.keccak256)((0,Da.serialize)(i)));return(0,Da.serialize)(i,a)})},e.prototype.signMessage=function(r){return i2(this,void 0,void 0,function(){return a2(this,function(n){return[2,(0,Vo.joinSignature)(this._signingKey().signDigest((0,$s.hashMessage)(r)))]})})},e.prototype._signTypedData=function(r,n,i){return i2(this,void 0,void 0,function(){var a,d=this;return a2(this,function(v){switch(v.label){case 0:return[4,$s._TypedDataEncoder.resolveNames(r,n,i,function(y){return d.provider==null&&Zo.throwError("cannot resolve ENS names without a provider",f2.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:y}),d.provider.resolveName(y)})];case 1:return a=v.sent(),[2,(0,Vo.joinSignature)(this._signingKey().signDigest($s._TypedDataEncoder.hash(a.domain,n,a.value)))]}})})},e.prototype.encrypt=function(r,n,i){if(typeof n=="function"&&!i&&(i=n,n={}),i&&typeof i!="function")throw new Error("invalid callback");return n||(n={}),(0,Yd.encryptKeystore)(this,r,n,i)},e.createRandom=function(r){var n=(0,hS.randomBytes)(16);r||(r={}),r.extraEntropy&&(n=(0,Vo.arrayify)((0,Vo.hexDataSlice)((0,s2.keccak256)((0,Vo.concat)([n,r.extraEntropy])),0,16)));var i=(0,Ys.entropyToMnemonic)(n,r.locale);return e.fromMnemonic(i,r.path,r.locale)},e.fromEncryptedJson=function(r,n,i){return(0,Yd.decryptJsonWallet)(r,n,i).then(function(a){return new e(a)})},e.fromEncryptedJsonSync=function(r,n){return new e((0,Yd.decryptJsonWalletSync)(r,n))},e.fromMnemonic=function(r,n,i){return n||(n=Ys.defaultPath),new e(Ys.HDNode.fromMnemonic(r,null,i).derivePath(n))},e}(dS.Signer);Pr.Wallet=vS;function mS(t,e){return(0,Da.recoverAddress)((0,$s.hashMessage)(t),e)}Pr.verifyMessage=mS;function xS(t,e,r,n){return(0,Da.recoverAddress)($s._TypedDataEncoder.hash(t,e,r),n)}Pr.verifyTypedData=xS});var b2=V((th,p2)=>{var jF=A(S());var Mc=rt("buffer"),ri=Mc.Buffer;function h2(t,e){for(var r in t)e[r]=t[r]}ri.from&&ri.alloc&&ri.allocUnsafe&&ri.allocUnsafeSlow?p2.exports=Mc:(h2(Mc,th),th.Buffer=Oa);function Oa(t,e,r){return ri(t,e,r)}Oa.prototype=Object.create(ri.prototype);h2(ri,Oa);Oa.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ri(t,e,r)};Oa.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=ri(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};Oa.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ri(t)};Oa.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Mc.SlowBuffer(t)}});var v2=V((QF,g2)=>{"use strict";var WF=A(S()),Sc=b2().Buffer;function yS(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var n=0;n<t.length;n++){var i=t.charAt(n),a=i.charCodeAt(0);if(e[a]!==255)throw new TypeError(i+" is ambiguous");e[a]=n}var d=t.length,v=t.charAt(0),y=Math.log(d)/Math.log(256),x=Math.log(256)/Math.log(d);function B(F){if((Array.isArray(F)||F instanceof Uint8Array)&&(F=Sc.from(F)),!Sc.isBuffer(F))throw new TypeError("Expected Buffer");if(F.length===0)return"";for(var P=0,q=0,W=0,K=F.length;W!==K&&F[W]===0;)W++,P++;for(var ne=(K-W)*x+1>>>0,$=new Uint8Array(ne);W!==K;){for(var ae=F[W],ie=0,ee=ne-1;(ae!==0||ie<q)&&ee!==-1;ee--,ie++)ae+=256*$[ee]>>>0,$[ee]=ae%d>>>0,ae=ae/d>>>0;if(ae!==0)throw new Error("Non-zero carry");q=ie,W++}for(var ce=ne-q;ce!==ne&&$[ce]===0;)ce++;for(var te=v.repeat(P);ce<ne;++ce)te+=t.charAt($[ce]);return te}function C(F){if(typeof F!="string")throw new TypeError("Expected String");if(F.length===0)return Sc.alloc(0);for(var P=0,q=0,W=0;F[P]===v;)q++,P++;for(var K=(F.length-P)*y+1>>>0,ne=new Uint8Array(K);P<F.length;){var $=F.charCodeAt(P);if($>255)return;var ae=e[$];if(ae===255)return;for(var ie=0,ee=K-1;(ae!==0||ie<W)&&ee!==-1;ee--,ie++)ae+=d*ne[ee]>>>0,ne[ee]=ae%256>>>0,ae=ae/256>>>0;if(ae!==0)throw new Error("Non-zero carry");W=ie,P++}for(var ce=K-W;ce!==K&&ne[ce]===0;)ce++;var te=Sc.allocUnsafe(q+(K-ce));te.fill(0,0,q);for(var Y=q;ce!==K;)te[Y++]=ne[ce++];return te}function D(F){var P=C(F);if(P)return P;throw new Error("Non-base"+d+" character")}return{encode:B,decodeUnsafe:C,decode:D}}g2.exports=yS});var x2=V((YF,m2)=>{var $F=A(S()),wS=v2(),AS="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";m2.exports=wS(AS)});var O2=V((nD,D2)=>{var iD=A(S()),M2=rt("fs"),Si=rt("path"),S2=rt("os"),T2=typeof __webpack_require__=="function"?__non_webpack_require__:rt,MS=process.config&&process.config.variables||{},SS=!!process.env.PREBUILDS_ONLY,y2=process.versions.modules,rh=_S()?"electron":ES()?"node-webkit":"node",nh=process.env.npm_config_arch||S2.arch(),ih=process.env.npm_config_platform||S2.platform(),E2=process.env.LIBC||(BS(ih)?"musl":"glibc"),ah=process.env.ARM_VERSION||(nh==="arm64"?"8":MS.arm_version)||"",_2=(process.versions.uv||"").split(".")[0];D2.exports=ni;function ni(t){return T2(ni.resolve(t))}ni.resolve=ni.path=function(t){t=Si.resolve(t||".");try{var e=T2(Si.join(t,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[e+"_PREBUILD"]&&(t=process.env[e+"_PREBUILD"])}catch{}if(!SS){var r=w2(Si.join(t,"build/Release"),A2);if(r)return r;var n=w2(Si.join(t,"build/Debug"),A2);if(n)return n}var i=v(t);if(i)return i;var a=v(Si.dirname(process.execPath));if(a)return a;var d=["platform="+ih,"arch="+nh,"runtime="+rh,"abi="+y2,"uv="+_2,ah?"armv="+ah:"","libc="+E2,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"",typeof __webpack_require__=="function"?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+d+`
12
+ `)},t.register=function(e,r){if(r||(r=e.locale),EA)try{var n=window;n._ethers&&n._ethers.wordlists&&(n._ethers.wordlists[r]||(0,Xm.defineReadOnly)(n._ethers.wordlists,r,e))}catch{}},t}();La.Wordlist=PA});var Zm=V(Io=>{"use strict";var tF=A(M()),LA=Io&&Io.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Io,"__esModule",{value:!0});Io.langCz=void 0;var Ld=Yn(),RA="AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenochodLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTahounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZpravaZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk",Gs=null;function zm(t){if(Gs==null&&(Gs=RA.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),Ld.Wordlist.check(t)!=="0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a"))throw Gs=null,new Error("BIP39 Wordlist for en (English) FAILED")}var FA=function(t){LA(e,t);function e(){return t.call(this,"cz")||this}return e.prototype.getWord=function(r){return zm(this),Gs[r]},e.prototype.getWordIndex=function(r){return zm(this),Gs.indexOf(r)},e}(Ld.Wordlist),Km=new FA;Io.langCz=Km;Ld.Wordlist.register(Km)});var Qm=V(No=>{"use strict";var nF=A(M()),DA=No&&No.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(No,"__esModule",{value:!0});No.langEn=void 0;var Rd=Yn(),OA="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo",Xs=null;function Vm(t){if(Xs==null&&(Xs=OA.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),Rd.Wordlist.check(t)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw Xs=null,new Error("BIP39 Wordlist for en (English) FAILED")}var IA=function(t){DA(e,t);function e(){return t.call(this,"en")||this}return e.prototype.getWord=function(r){return Vm(this),Xs[r]},e.prototype.getWordIndex=function(r){return Vm(this),Xs.indexOf(r)},e}(Rd.Wordlist),jm=new IA;No.langEn=jm;Rd.Wordlist.register(jm)});var tx=V(ko=>{"use strict";var aF=A(M()),NA=ko&&ko.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(ko,"__esModule",{value:!0});ko.langEs=void 0;var fc=Or(),cc=Yn(),kA="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo",Ym={},zs=null;function $m(t){return cc.logger.checkNormalize(),(0,fc.toUtf8String)(Array.prototype.filter.call((0,fc.toUtf8Bytes)(t.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function JA(t){var e=[];return Array.prototype.forEach.call((0,fc.toUtf8Bytes)(t),function(r){r===47?(e.push(204),e.push(129)):r===126?(e.push(110),e.push(204),e.push(131)):e.push(r)}),(0,fc.toUtf8String)(e)}function Wm(t){if(zs==null&&(zs=kA.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return JA(e)}),zs.forEach(function(e,r){Ym[$m(e)]=r}),cc.Wordlist.check(t)!=="0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"))throw zs=null,new Error("BIP39 Wordlist for es (Spanish) FAILED")}var UA=function(t){NA(e,t);function e(){return t.call(this,"es")||this}return e.prototype.getWord=function(r){return Wm(this),zs[r]},e.prototype.getWordIndex=function(r){return Wm(this),Ym[$m(r)]},e}(cc.Wordlist),ex=new UA;ko.langEs=ex;cc.Wordlist.register(ex)});var ox=V(Jo=>{"use strict";var sF=A(M()),HA=Jo&&Jo.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Jo,"__esModule",{value:!0});Jo.langFr=void 0;var uc=Or(),lc=Yn(),qA="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie",Ks=null,nx={};function ix(t){return lc.logger.checkNormalize(),(0,uc.toUtf8String)(Array.prototype.filter.call((0,uc.toUtf8Bytes)(t.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function GA(t){var e=[];return Array.prototype.forEach.call((0,uc.toUtf8Bytes)(t),function(r){r===47?(e.push(204),e.push(129)):r===45?(e.push(204),e.push(128)):e.push(r)}),(0,uc.toUtf8String)(e)}function rx(t){if(Ks==null&&(Ks=qA.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return GA(e)}),Ks.forEach(function(e,r){nx[ix(e)]=r}),lc.Wordlist.check(t)!=="0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"))throw Ks=null,new Error("BIP39 Wordlist for fr (French) FAILED")}var XA=function(t){HA(e,t);function e(){return t.call(this,"fr")||this}return e.prototype.getWord=function(r){return rx(this),Ks[r]},e.prototype.getWordIndex=function(r){return rx(this),nx[ix(r)]},e}(lc.Wordlist),ax=new XA;Jo.langFr=ax;lc.Wordlist.register(ax)});var ux=V(Uo=>{"use strict";var cF=A(M()),zA=Uo&&Uo.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Uo,"__esModule",{value:!0});Uo.langJa=void 0;var KA=nt(),fn=Or(),dc=Yn(),ZA=["AQRASRAGBAGUAIRAHBAghAURAdBAdcAnoAMEAFBAFCBKFBQRBSFBCXBCDBCHBGFBEQBpBBpQBIkBHNBeOBgFBVCBhBBhNBmOBmRBiHBiFBUFBZDBvFBsXBkFBlcBjYBwDBMBBTBBTRBWBBWXXaQXaRXQWXSRXCFXYBXpHXOQXHRXhRXuRXmXXbRXlXXwDXTRXrCXWQXWGaBWaKcaYgasFadQalmaMBacAKaRKKBKKXKKjKQRKDRKCYKCRKIDKeVKHcKlXKjHKrYNAHNBWNaRNKcNIBNIONmXNsXNdXNnBNMBNRBNrXNWDNWMNFOQABQAHQBrQXBQXFQaRQKXQKDQKOQKFQNBQNDQQgQCXQCDQGBQGDQGdQYXQpBQpQQpHQLXQHuQgBQhBQhCQuFQmXQiDQUFQZDQsFQdRQkHQbRQlOQlmQPDQjDQwXQMBQMDQcFQTBQTHQrDDXQDNFDGBDGQDGRDpFDhFDmXDZXDbRDMYDRdDTRDrXSAhSBCSBrSGQSEQSHBSVRShYShkSyQSuFSiBSdcSoESocSlmSMBSFBSFKSFNSFdSFcCByCaRCKcCSBCSRCCrCGbCEHCYXCpBCpQCIBCIHCeNCgBCgFCVECVcCmkCmwCZXCZFCdRClOClmClFCjDCjdCnXCwBCwXCcRCFQCFjGXhGNhGDEGDMGCDGCHGIFGgBGVXGVEGVRGmXGsXGdYGoSGbRGnXGwXGwDGWRGFNGFLGFOGFdGFkEABEBDEBFEXOEaBEKSENBENDEYXEIgEIkEgBEgQEgHEhFEudEuFEiBEiHEiFEZDEvBEsXEsFEdXEdREkFEbBEbRElFEPCEfkEFNYAEYAhYBNYQdYDXYSRYCEYYoYgQYgRYuRYmCYZTYdBYbEYlXYjQYRbYWRpKXpQopQnpSFpCXpIBpISphNpdBpdRpbRpcZpFBpFNpFDpFopFrLADLBuLXQLXcLaFLCXLEhLpBLpFLHXLeVLhILdHLdRLoDLbRLrXIABIBQIBCIBsIBoIBMIBRIXaIaRIKYIKRINBINuICDIGBIIDIIkIgRIxFIyQIiHIdRIbYIbRIlHIwRIMYIcRIRVITRIFBIFNIFQOABOAFOBQOaFONBONMOQFOSFOCDOGBOEQOpBOLXOIBOIFOgQOgFOyQOycOmXOsXOdIOkHOMEOMkOWWHBNHXNHXWHNXHDuHDRHSuHSRHHoHhkHmRHdRHkQHlcHlRHwBHWcgAEgAggAkgBNgBQgBEgXOgYcgLXgHjgyQgiBgsFgdagMYgWSgFQgFEVBTVXEVKBVKNVKDVKYVKRVNBVNYVDBVDxVSBVSRVCjVGNVLXVIFVhBVhcVsXVdRVbRVlRhBYhKYhDYhGShxWhmNhdahdkhbRhjohMXhTRxAXxXSxKBxNBxEQxeNxeQxhXxsFxdbxlHxjcxFBxFNxFQxFOxFoyNYyYoybcyMYuBQuBRuBruDMuCouHBudQukkuoBulVuMXuFEmCYmCRmpRmeDmiMmjdmTFmFQiADiBOiaRiKRiNBiNRiSFiGkiGFiERipRiLFiIFihYibHijBijEiMXiWBiFBiFCUBQUXFUaRUNDUNcUNRUNFUDBUSHUCDUGBUGFUEqULNULoUIRUeEUeYUgBUhFUuRUiFUsXUdFUkHUbBUjSUjYUwXUMDUcHURdUTBUrBUrXUrQZAFZXZZaRZKFZNBZQFZCXZGBZYdZpBZLDZIFZHXZHNZeQZVRZVFZmXZiBZvFZdFZkFZbHZbFZwXZcCZcRZRBvBQvBGvBLvBWvCovMYsAFsBDsaRsKFsNFsDrsSHsSFsCXsCRsEBsEHsEfspBsLBsLDsIgsIRseGsbRsFBsFQsFSdNBdSRdCVdGHdYDdHcdVbdySduDdsXdlRdwXdWYdWcdWRkBMkXOkaRkNIkNFkSFkCFkYBkpRkeNkgBkhVkmXksFklVkMBkWDkFNoBNoaQoaFoNBoNXoNaoNEoSRoEroYXoYCoYbopRopFomXojkowXorFbBEbEIbdBbjYlaRlDElMXlFDjKjjSRjGBjYBjYkjpRjLXjIBjOFjeVjbRjwBnXQnSHnpFnLXnINnMBnTRwXBwXNwXYwNFwQFwSBwGFwLXwLDweNwgBwuHwjDwnXMBXMpFMIBMeNMTHcaQcNBcDHcSFcCXcpBcLXcLDcgFcuFcnXcwXccDcTQcrFTQErXNrCHrpFrgFrbFrTHrFcWNYWNbWEHWMXWTR","ABGHABIJAEAVAYJQALZJAIaRAHNXAHdcAHbRAZJMAZJRAZTRAdVJAklmAbcNAjdRAMnRAMWYAWpRAWgRAFgBAFhBAFdcBNJBBNJDBQKBBQhcBQlmBDEJBYJkBYJTBpNBBpJFBIJBBIJDBIcABOKXBOEJBOVJBOiJBOZJBepBBeLXBeIFBegBBgGJBVJXBuocBiJRBUJQBlXVBlITBwNFBMYVBcqXBTlmBWNFBWiJBWnRBFGHBFwXXKGJXNJBXNZJXDTTXSHSXSVRXSlHXCJDXGQJXEhXXYQJXYbRXOfXXeNcXVJFXhQJXhEJXdTRXjdXXMhBXcQTXRGBXTEBXTnQXFCXXFOFXFgFaBaFaBNJaBCJaBpBaBwXaNJKaNJDaQIBaDpRaEPDaHMFamDJalEJaMZJaFaFaFNBaFQJaFLDaFVHKBCYKBEBKBHDKXaFKXGdKXEJKXpHKXIBKXZDKXwXKKwLKNacKNYJKNJoKNWcKDGdKDTRKChXKGaRKGhBKGbRKEBTKEaRKEPTKLMDKLWRKOHDKVJcKdBcKlIBKlOPKFSBKFEPKFpFNBNJNJBQNBGHNBEPNBHXNBgFNBVXNBZDNBsXNBwXNNaRNNJDNNJENNJkNDCJNDVDNGJRNJiDNZJNNsCJNJFNNFSBNFCXNFEPNFLXNFIFQJBFQCaRQJEQQLJDQLJFQIaRQOqXQHaFQHHQQVJXQVJDQhNJQmEIQZJFQsJXQJrFQWbRDJABDBYJDXNFDXCXDXLXDXZDDXsJDQqXDSJFDJCXDEPkDEqXDYmQDpSJDOCkDOGQDHEIDVJDDuDuDWEBDJFgSBNDSBSFSBGHSBIBSBTQSKVYSJQNSJQiSJCXSEqXSJYVSIiJSOMYSHAHSHaQSeCFSepQSegBSHdHSHrFShSJSJuHSJUFSkNRSrSrSWEBSFaHSJFQSFCXSFGDSFYXSFODSFgBSFVXSFhBSFxFSFkFSFbBSFMFCADdCJXBCXaFCXKFCXNFCXCXCXGBCXEJCXYBCXLDCXIBCXOPCXHXCXgBCXhBCXiBCXlDCXcHCJNBCJNFCDCJCDGBCDVXCDhBCDiDCDJdCCmNCpJFCIaRCOqXCHCHCHZJCViJCuCuCmddCJiFCdNBCdHhClEJCnUJCreSCWlgCWTRCFBFCFNBCFYBCFVFCFhFCFdSCFTBCFWDGBNBGBQFGJBCGBEqGBpBGBgQGNBEGNJYGNkOGNJRGDUFGJpQGHaBGJeNGJeEGVBlGVKjGiJDGvJHGsVJGkEBGMIJGWjNGFBFGFCXGFGBGFYXGFpBGFMFEASJEAWpEJNFECJVEIXSEIQJEOqXEOcFEeNcEHEJEHlFEJgFEhlmEmDJEmZJEiMBEUqXEoSREPBFEPXFEPKFEPSFEPEFEPpFEPLXEPIBEJPdEPcFEPTBEJnXEqlHEMpREFCXEFODEFcFYASJYJAFYBaBYBVXYXpFYDhBYCJBYJGFYYbRYeNcYJeVYiIJYZJcYvJgYvJRYJsXYsJFYMYMYreVpBNHpBEJpBwXpQxFpYEJpeNDpJeDpeSFpeCHpHUJpHbBpHcHpmUJpiiJpUJrpsJuplITpFaBpFQqpFGBpFEfpFYBpFpBpFLJpFIDpFgBpFVXpFyQpFuFpFlFpFjDpFnXpFwXpJFMpFTBLXCJLXEFLXhFLXUJLXbFLalmLNJBLSJQLCLCLGJBLLDJLHaFLeNFLeSHLeCXLepFLhaRLZsJLsJDLsJrLocaLlLlLMdbLFNBLFSBLFEHLFkFIBBFIBXFIBaQIBKXIBSFIBpHIBLXIBgBIBhBIBuHIBmXIBiFIBZXIBvFIBbFIBjQIBwXIBWFIKTRIQUJIDGFICjQIYSRIINXIJeCIVaRImEkIZJFIvJRIsJXIdCJIJoRIbBQIjYBIcqXITFVIreVIFKFIFSFIFCJIFGFIFLDIFIBIJFOIFgBIFVXIJFhIFxFIFmXIFdHIFbBIJFrIJFWOBGBOQfXOOKjOUqXOfXBOqXEOcqXORVJOFIBOFlDHBIOHXiFHNTRHCJXHIaRHHJDHHEJHVbRHZJYHbIBHRsJHRkDHWlmgBKFgBSBgBCDgBGHgBpBgBIBgBVJgBuBgBvFgKDTgQVXgDUJgGSJgOqXgmUMgZIJgTUJgWIEgFBFgFNBgFDJgFSFgFGBgFYXgJFOgFgQgFVXgFhBgFbHgJFWVJABVQKcVDgFVOfXVeDFVhaRVmGdViJYVMaRVFNHhBNDhBCXhBEqhBpFhBLXhNJBhSJRheVXhhKEhxlmhZIJhdBQhkIJhbMNhMUJhMZJxNJgxQUJxDEkxDdFxSJRxplmxeSBxeCXxeGFxeYXxepQxegBxWVcxFEQxFLXxFIBxFgBxFxDxFZtxFdcxFbBxFwXyDJXyDlcuASJuDJpuDIBuCpJuGSJuIJFueEFuZIJusJXudWEuoIBuWGJuFBcuFKEuFNFuFQFuFDJuFGJuFVJuFUtuFdHuFTBmBYJmNJYmQhkmLJDmLJomIdXmiJYmvJRmsJRmklmmMBymMuCmclmmcnQiJABiJBNiJBDiBSFiBCJiBEFiBYBiBpFiBLXiBTHiJNciDEfiCZJiECJiJEqiOkHiHKFieNDiHJQieQcieDHieSFieCXieGFieEFieIHiegFihUJixNoioNXiFaBiFKFiFNDiFEPiFYXitFOitFHiFgBiFVEiFmXiFitiFbBiFMFiFrFUCXQUIoQUIJcUHQJUeCEUHwXUUJDUUqXUdWcUcqXUrnQUFNDUFSHUFCFUFEfUFLXUtFOZBXOZXSBZXpFZXVXZEQJZEJkZpDJZOqXZeNHZeCDZUqXZFBQZFEHZFLXvBAFvBKFvBCXvBEPvBpHvBIDvBgFvBuHvQNJvFNFvFGBvFIBvJFcsXCDsXLXsXsXsXlFsXcHsQqXsJQFsEqXseIFsFEHsFjDdBxOdNpRdNJRdEJbdpJRdhZJdnSJdrjNdFNJdFQHdFhNkNJDkYaRkHNRkHSRkVbRkuMRkjSJkcqDoSJFoEiJoYZJoOfXohEBoMGQocqXbBAFbBXFbBaFbBNDbBGBbBLXbBTBbBWDbGJYbIJHbFQqbFpQlDgQlOrFlVJRjGEBjZJRnXvJnXbBnEfHnOPDngJRnxfXnUJWwXEJwNpJwDpBwEfXwrEBMDCJMDGHMDIJMLJDcQGDcQpHcqXccqNFcqCXcFCJRBSBRBGBRBEJRBpQTBNFTBQJTBpBTBVXTFABTFSBTFCFTFGBTFMDrXCJrXLDrDNJrEfHrFQJrFitWNjdWNTR","AKLJMANOPFASNJIAEJWXAYJNRAIIbRAIcdaAeEfDAgidRAdjNYAMYEJAMIbRAFNJBAFpJFBBIJYBDZJFBSiJhBGdEBBEJfXBEJqXBEJWRBpaUJBLXrXBIYJMBOcfXBeEfFBestXBjNJRBcDJOBFEqXXNvJRXDMBhXCJNYXOAWpXONJWXHDEBXeIaRXhYJDXZJSJXMDJOXcASJXFVJXaBQqXaBZJFasXdQaFSJQaFEfXaFpJHaFOqXKBNSRKXvJBKQJhXKEJQJKEJGFKINJBKIJjNKgJNSKVElmKVhEBKiJGFKlBgJKjnUJKwsJYKMFIJKFNJDKFIJFKFOfXNJBSFNJBCXNBpJFNJBvQNJBMBNJLJXNJOqXNJeCXNJeGFNdsJCNbTKFNwXUJQNFEPQDiJcQDMSJQSFpBQGMQJQJeOcQyCJEQUJEBQJFBrQFEJqDXDJFDJXpBDJXIMDGiJhDIJGRDJeYcDHrDJDVXgFDkAWpDkIgRDjDEqDMvJRDJFNFDJFIBSKclmSJQOFSJQVHSJQjDSJGJBSJGJFSECJoSHEJqSJHTBSJVJDSViJYSZJNBSJsJDSFSJFSFEfXSJFLXCBUJVCJXSBCJXpBCXVJXCJXsXCJXdFCJNJHCLIJgCHiJFCVNJMChCJhCUHEJCsJTRCJdYcCoQJCCFEfXCFIJgCFUJxCFstFGJBaQGJBIDGQJqXGYJNRGJHKFGeQqDGHEJFGJeLXGHIiJGHdBlGUJEBGkIJTGFQPDGJFEqEAGegEJIJBEJVJXEhQJTEiJNcEJZJFEJoEqEjDEqEPDsXEPGJBEPOqXEPeQFEfDiDEJfEFEfepQEfMiJEqXNBEqDIDEqeSFEqVJXEMvJRYXNJDYXEJHYKVJcYYJEBYJeEcYJUqXYFpJFYFstXpAZJMpBSJFpNBNFpeQPDpHLJDpHIJFpHgJFpeitFpHZJFpJFADpFSJFpJFCJpFOqXpFitBpJFZJLXIJFLIJgRLVNJWLVHJMLwNpJLFGJBLFLJDLFOqXLJFUJIBDJXIBGJBIJBYQIJBIBIBOqXIBcqDIEGJFILNJTIIJEBIOiJhIJeNBIJeIBIhiJIIWoTRIJFAHIJFpBIJFuHIFUtFIJFTHOSBYJOEcqXOHEJqOvBpFOkVJrObBVJOncqDOcNJkHhNJRHuHJuHdMhBgBUqXgBsJXgONJBgHNJDgHHJQgJeitgHsJXgJyNagyDJBgZJDrgsVJQgkEJNgkjSJgJFAHgFCJDgFZtMVJXNFVXQfXVJXDJVXoQJVQVJQVDEfXVDvJHVEqNFVeQfXVHpJFVHxfXVVJSRVVmaRVlIJOhCXVJhHjYkhxCJVhWVUJhWiJcxBNJIxeEqDxfXBFxcFEPxFSJFxFYJXyBDQJydaUJyFOPDuYCJYuLvJRuHLJXuZJLDuFOPDuFZJHuFcqXmKHJdmCQJcmOsVJiJAGFitLCFieOfXiestXiZJMEikNJQirXzFiFQqXiFIJFiFZJFiFvtFUHpJFUteIcUteOcUVCJkUhdHcUbEJEUJqXQUMNJhURjYkUFitFZDGJHZJIxDZJVJXZJFDJZJFpQvBNJBvBSJFvJxBrseQqDsVFVJdFLJDkEJNBkmNJYkFLJDoQJOPoGsJRoEAHBoEJfFbBQqDbBZJHbFVJXlFIJBjYIrXjeitcjjCEBjWMNBwXQfXwXOaFwDsJXwCJTRwrCZJMDNJQcDDJFcqDOPRYiJFTBsJXTQIJBTFEfXTFLJDrXEJFrEJXMrFZJFWEJdEWYTlm","ABCDEFACNJTRAMBDJdAcNJVXBLNJEBXSIdWRXErNJkXYDJMBXZJCJaXMNJaYKKVJKcKDEJqXKDcNJhKVJrNYKbgJVXKFVJSBNBYBwDNJeQfXNJeEqXNhGJWENJFiJRQlIJbEQJfXxDQqXcfXQFNDEJQFwXUJDYcnUJDJIBgQDIUJTRDJFEqDSJQSJFSJQIJFSOPeZtSJFZJHCJXQfXCTDEqFGJBSJFGJBOfXGJBcqXGJHNJDGJRLiJEJfXEqEJFEJPEFpBEJYJBZJFYBwXUJYiJMEBYJZJyTYTONJXpQMFXFpeGIDdpJFstXpJFcPDLBVSJRLHQJqXLJFZJFIJBNJDIJBUqXIBkFDJIJEJPTIYJGWRIJeQPDIJeEfHIJFsJXOqGDSFHXEJqXgJCsJCgGQJqXgdQYJEgFMFNBgJFcqDVJwXUJVJFZJchIgJCCxOEJqXxOwXUJyDJBVRuscisciJBiJBieUtqXiJFDJkiFsJXQUGEZJcUJFsJXZtXIrXZDZJDrZJFNJDZJFstXvJFQqXvJFCJEsJXQJqkhkNGBbDJdTRbYJMEBlDwXUJMEFiJFcfXNJDRcNJWMTBLJXC","BraFUtHBFSJFdbNBLJXVJQoYJNEBSJBEJfHSJHwXUJCJdAZJMGjaFVJXEJPNJBlEJfFiJFpFbFEJqIJBVJCrIBdHiJhOPFChvJVJZJNJWxGFNIFLueIBQJqUHEJfUFstOZJDrlXEASJRlXVJXSFwVJNJWD","QJEJNNJDQJEJIBSFQJEJxegBQJEJfHEPSJBmXEJFSJCDEJqXLXNJFQqXIcQsFNJFIFEJqXUJgFsJXIJBUJEJfHNFvJxEqXNJnXUJFQqD","IJBEJqXZJ"],VA="~~AzB~X~a~KN~Q~D~S~C~G~E~Y~p~L~I~O~eH~g~V~hxyumi~~U~~Z~~v~~s~~dkoblPjfnqwMcRTr~W~~~F~~~~~Jt",kr=null;function sx(t){return(0,KA.hexlify)((0,fn.toUtf8Bytes)(t))}var jA="0xe3818de38284e3818f",QA="0xe3818de38283e3818f";function fx(t){if(kr!==null)return;kr=[];var e={};e[(0,fn.toUtf8String)([227,130,154])]=!1,e[(0,fn.toUtf8String)([227,130,153])]=!1,e[(0,fn.toUtf8String)([227,130,133])]=(0,fn.toUtf8String)([227,130,134]),e[(0,fn.toUtf8String)([227,129,163])]=(0,fn.toUtf8String)([227,129,164]),e[(0,fn.toUtf8String)([227,130,131])]=(0,fn.toUtf8String)([227,130,132]),e[(0,fn.toUtf8String)([227,130,135])]=(0,fn.toUtf8String)([227,130,136]);function r(C){for(var D="",F=0;F<C.length;F++){var P=C[F],X=e[P];X!==!1&&(X&&(P=X),D+=P)}return D}function n(C,D){return C=r(C),D=r(D),C<D?-1:C>D?1:0}for(var i=3;i<=9;i++)for(var a=ZA[i-3],d=0;d<a.length;d+=i){for(var v=[],y=0;y<i;y++){var x=VA.indexOf(a[d+y]);v.push(227),v.push(x&64?130:129),v.push((x&63)+128)}kr.push((0,fn.toUtf8String)(v))}if(kr.sort(n),sx(kr[442])===jA&&sx(kr[443])===QA){var B=kr[442];kr[442]=kr[443],kr[443]=B}if(dc.Wordlist.check(t)!=="0xcb36b09e6baa935787fd762ce65e80b0c6a8dabdfbc3a7f86ac0e2c4fd111600")throw kr=null,new Error("BIP39 Wordlist for ja (Japanese) FAILED")}var WA=function(t){zA(e,t);function e(){return t.call(this,"ja")||this}return e.prototype.getWord=function(r){return fx(this),kr[r]},e.prototype.getWordIndex=function(r){return fx(this),kr.indexOf(r)},e.prototype.split=function(r){return dc.logger.checkNormalize(),r.split(/(?:\u3000| )+/g)},e.prototype.join=function(r){return r.join("\u3000")},e}(dc.Wordlist),cx=new WA;Uo.langJa=cx;dc.Wordlist.register(cx)});var hx=V(Ho=>{"use strict";var lF=A(M()),YA=Ho&&Ho.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ho,"__esModule",{value:!0});Ho.langKo=void 0;var $A=Or(),Fd=Yn(),eM=["OYAa","ATAZoATBl3ATCTrATCl8ATDloATGg3ATHT8ATJT8ATJl3ATLlvATLn4ATMT8ATMX8ATMboATMgoAToLbAToMTATrHgATvHnAT3AnAT3JbAT3MTAT8DbAT8JTAT8LmAT8MYAT8MbAT#LnAUHT8AUHZvAUJXrAUJX8AULnrAXJnvAXLUoAXLgvAXMn6AXRg3AXrMbAX3JTAX3QbAYLn3AZLgvAZrSUAZvAcAZ8AaAZ8AbAZ8AnAZ8HnAZ8LgAZ8MYAZ8MgAZ8OnAaAboAaDTrAaFTrAaJTrAaJboAaLVoAaMXvAaOl8AaSeoAbAUoAbAg8AbAl4AbGnrAbMT8AbMXrAbMn4AbQb8AbSV8AbvRlAb8AUAb8AnAb8HgAb8JTAb8NTAb8RbAcGboAcLnvAcMT8AcMX8AcSToAcrAaAcrFnAc8AbAc8MgAfGgrAfHboAfJnvAfLV8AfLkoAfMT8AfMnoAfQb8AfScrAfSgrAgAZ8AgFl3AgGX8AgHZvAgHgrAgJXoAgJX8AgJboAgLZoAgLn4AgOX8AgoATAgoAnAgoCUAgoJgAgoLXAgoMYAgoSeAgrDUAgrJTAhrFnAhrLjAhrQgAjAgoAjJnrAkMX8AkOnoAlCTvAlCV8AlClvAlFg4AlFl6AlFn3AloSnAlrAXAlrAfAlrFUAlrFbAlrGgAlrOXAlvKnAlvMTAl3AbAl3MnAnATrAnAcrAnCZ3AnCl8AnDg8AnFboAnFl3AnHX4AnHbrAnHgrAnIl3AnJgvAnLXoAnLX4AnLbrAnLgrAnLhrAnMXoAnMgrAnOn3AnSbrAnSeoAnvLnAn3OnCTGgvCTSlvCTvAUCTvKnCTvNTCT3CZCT3GUCT3MTCT8HnCUCZrCULf8CULnvCU3HnCU3JUCY6NUCbDb8CbFZoCbLnrCboOTCboScCbrFnCbvLnCb8AgCb8HgCb$LnCkLfoClBn3CloDUDTHT8DTLl3DTSU8DTrAaDTrLXDTrLjDTrOYDTrOgDTvFXDTvFnDT3HUDT3LfDUCT9DUDT4DUFVoDUFV8DUFkoDUGgrDUJnrDULl8DUMT8DUMXrDUMX4DUMg8DUOUoDUOgvDUOg8DUSToDUSZ8DbDXoDbDgoDbGT8DbJn3DbLg3DbLn4DbMXrDbMg8DbOToDboJXGTClvGTDT8GTFZrGTLVoGTLlvGTLl3GTMg8GTOTvGTSlrGToCUGTrDgGTrJYGTrScGTtLnGTvAnGTvQgGUCZrGUDTvGUFZoGUHXrGULnvGUMT8GUoMgGXoLnGXrMXGXrMnGXvFnGYLnvGZOnvGZvOnGZ8LaGZ8LmGbAl3GbDYvGbDlrGbHX3GbJl4GbLV8GbLn3GbMn4GboJTGboRfGbvFUGb3GUGb4JnGgDX3GgFl$GgJlrGgLX6GgLZoGgLf8GgOXoGgrAgGgrJXGgrMYGgrScGgvATGgvOYGnAgoGnJgvGnLZoGnLg3GnLnrGnQn8GnSbrGnrMgHTClvHTDToHTFT3HTQT8HToJTHToJgHTrDUHTrMnHTvFYHTvRfHT8MnHT8SUHUAZ8HUBb4HUDTvHUoMYHXFl6HXJX6HXQlrHXrAUHXrMnHXrSbHXvFYHXvKXHX3LjHX3MeHYvQlHZrScHZvDbHbAcrHbFT3HbFl3HbJT8HbLTrHbMT8HbMXrHbMbrHbQb8HbSX3HboDbHboJTHbrFUHbrHgHbrJTHb8JTHb8MnHb8QgHgAlrHgDT3HgGgrHgHgrHgJTrHgJT8HgLX@HgLnrHgMT8HgMX8HgMboHgOnrHgQToHgRg3HgoHgHgrCbHgrFnHgrLVHgvAcHgvAfHnAloHnCTrHnCnvHnGTrHnGZ8HnGnvHnJT8HnLf8HnLkvHnMg8HnRTrITvFUITvFnJTAXrJTCV8JTFT3JTFT8JTFn4JTGgvJTHT8JTJT8JTJXvJTJl3JTJnvJTLX4JTLf8JTLhvJTMT8JTMXrJTMnrJTObrJTQT8JTSlvJT8DUJT8FkJT8MTJT8OXJT8OgJT8QUJT8RfJUHZoJXFT4JXFlrJXGZ8JXGnrJXLV8JXLgvJXMXoJXMX3JXNboJXPlvJXoJTJXoLkJXrAXJXrHUJXrJgJXvJTJXvOnJX4KnJYAl3JYJT8JYLhvJYQToJYrQXJY6NUJbAl3JbCZrJbDloJbGT8JbGgrJbJXvJbJboJbLf8JbLhrJbLl3JbMnvJbRg8JbSZ8JboDbJbrCZJbrSUJb3KnJb8LnJfRn8JgAXrJgCZrJgDTrJgGZrJgGZ8JgHToJgJT8JgJXoJgJgvJgLX4JgLZ3JgLZ8JgLn4JgMgrJgMn4JgOgvJgPX6JgRnvJgSToJgoCZJgoJbJgoMYJgrJXJgrJgJgrLjJg6MTJlCn3JlGgvJlJl8Jl4AnJl8FnJl8HgJnAToJnATrJnAbvJnDUoJnGnrJnJXrJnJXvJnLhvJnLnrJnLnvJnMToJnMT8JnMXvJnMX3JnMg8JnMlrJnMn4JnOX8JnST4JnSX3JnoAgJnoAnJnoJTJnoObJnrAbJnrAkJnrHnJnrJTJnrJYJnrOYJnrScJnvCUJnvFaJnvJgJnvJnJnvOYJnvQUJnvRUJn3FnJn3JTKnFl3KnLT6LTDlvLTMnoLTOn3LTRl3LTSb4LTSlrLToAnLToJgLTrAULTrAcLTrCULTrHgLTrMgLT3JnLULnrLUMX8LUoJgLVATrLVDTrLVLb8LVoJgLV8MgLV8RTLXDg3LXFlrLXrCnLXrLXLX3GTLX4GgLX4OYLZAXrLZAcrLZAgrLZAhrLZDXyLZDlrLZFbrLZFl3LZJX6LZJX8LZLc8LZLnrLZSU8LZoJTLZoJnLZrAgLZrAnLZrJYLZrLULZrMgLZrSkLZvAnLZvGULZvJeLZvOTLZ3FZLZ4JXLZ8STLZ8ScLaAT3LaAl3LaHT8LaJTrLaJT8LaJXrLaJgvLaJl4LaLVoLaMXrLaMXvLaMX8LbClvLbFToLbHlrLbJn4LbLZ3LbLhvLbMXrLbMnoLbvSULcLnrLc8HnLc8MTLdrMnLeAgoLeOgvLeOn3LfAl3LfLnvLfMl3LfOX8Lf8AnLf8JXLf8LXLgJTrLgJXrLgJl8LgMX8LgRZrLhCToLhrAbLhrFULhrJXLhvJYLjHTrLjHX4LjJX8LjLhrLjSX3LjSZ4LkFX4LkGZ8LkGgvLkJTrLkMXoLkSToLkSU8LkSZ8LkoOYLl3FfLl3MgLmAZrLmCbrLmGgrLmHboLmJnoLmJn3LmLfoLmLhrLmSToLnAX6LnAb6LnCZ3LnCb3LnDTvLnDb8LnFl3LnGnrLnHZvLnHgvLnITvLnJT8LnJX8LnJlvLnLf8LnLg6LnLhvLnLnoLnMXrLnMg8LnQlvLnSbrLnrAgLnrAnLnrDbLnrFkLnrJdLnrMULnrOYLnrSTLnvAnLnvDULnvHgLnvOYLnvOnLn3GgLn4DULn4JTLn4JnMTAZoMTAloMTDb8MTFT8MTJnoMTJnrMTLZrMTLhrMTLkvMTMX8MTRTrMToATMTrDnMTrOnMT3JnMT4MnMT8FUMT8FaMT8FlMT8GTMT8GbMT8GnMT8HnMT8JTMT8JbMT8OTMUCl8MUJTrMUJU8MUMX8MURTrMUSToMXAX6MXAb6MXCZoMXFXrMXHXrMXLgvMXOgoMXrAUMXrAnMXrHgMXrJYMXrJnMXrMTMXrMgMXrOYMXrSZMXrSgMXvDUMXvOTMX3JgMX3OTMX4JnMX8DbMX8FnMX8HbMX8HgMX8HnMX8LbMX8MnMX8OnMYAb8MYGboMYHTvMYHX4MYLTrMYLnvMYMToMYOgvMYRg3MYSTrMbAToMbAXrMbAl3MbAn8MbGZ8MbJT8MbJXrMbMXvMbMX8MbMnoMbrMUMb8AfMb8FbMb8FkMcJXoMeLnrMgFl3MgGTvMgGXoMgGgrMgGnrMgHT8MgHZrMgJnoMgLnrMgLnvMgMT8MgQUoMgrHnMgvAnMg8HgMg8JYMg8LfMloJnMl8ATMl8AXMl8JYMnAToMnAT4MnAZ8MnAl3MnAl4MnCl8MnHT8MnHg8MnJnoMnLZoMnLhrMnMXoMnMX3MnMnrMnOgvMnrFbMnrFfMnrFnMnrNTMnvJXNTMl8OTCT3OTFV8OTFn3OTHZvOTJXrOTOl3OT3ATOT3JUOT3LZOT3LeOT3MbOT8ATOT8AbOT8AgOT8MbOUCXvOUMX3OXHXvOXLl3OXrMUOXvDbOX6NUOX8JbOYFZoOYLbrOYLkoOYMg8OYSX3ObHTrObHT4ObJgrObLhrObMX3ObOX8Ob8FnOeAlrOeJT8OeJXrOeJnrOeLToOeMb8OgJXoOgLXoOgMnrOgOXrOgOloOgoAgOgoJbOgoMYOgoSTOg8AbOjLX4OjMnoOjSV8OnLVoOnrAgOn3DUPXQlrPXvFXPbvFTPdAT3PlFn3PnvFbQTLn4QToAgQToMTQULV8QURg8QUoJnQXCXvQbFbrQb8AaQb8AcQb8FbQb8MYQb8ScQeAlrQeLhrQjAn3QlFXoQloJgQloSnRTLnvRTrGURTrJTRUJZrRUoJlRUrQnRZrLmRZrMnRZrSnRZ8ATRZ8JbRZ8ScRbMT8RbST3RfGZrRfMX8RfMgrRfSZrRnAbrRnGT8RnvJgRnvLfRnvMTRn8AaSTClvSTJgrSTOXrSTRg3STRnvSToAcSToAfSToAnSToHnSToLjSToMTSTrAaSTrEUST3BYST8AgST8LmSUAZvSUAgrSUDT4SUDT8SUGgvSUJXoSUJXvSULTrSU8JTSU8LjSV8AnSV8JgSXFToSXLf8SYvAnSZrDUSZrMUSZrMnSZ8HgSZ8JTSZ8JgSZ8MYSZ8QUSaQUoSbCT3SbHToSbQYvSbSl4SboJnSbvFbSb8HbSb8JgSb8OTScGZrScHgrScJTvScMT8ScSToScoHbScrMTScvAnSeAZrSeAcrSeHboSeJUoSeLhrSeMT8SeMXrSe6JgSgHTrSkJnoSkLnvSk8CUSlFl3SlrSnSl8GnSmAboSmGT8SmJU8","ATLnDlATrAZoATrJX4ATrMT8ATrMX4ATrRTrATvDl8ATvJUoATvMl8AT3AToAT3MX8AT8CT3AT8DT8AT8HZrAT8HgoAUAgFnAUCTFnAXoMX8AXrAT8AXrGgvAXrJXvAXrOgoAXvLl3AZvAgoAZvFbrAZvJXoAZvJl8AZvJn3AZvMX8AZvSbrAZ8FZoAZ8LZ8AZ8MU8AZ8OTvAZ8SV8AZ8SX3AbAgFZAboJnoAbvGboAb8ATrAb8AZoAb8AgrAb8Al4Ab8Db8Ab8JnoAb8LX4Ab8LZrAb8LhrAb8MT8Ab8OUoAb8Qb8Ab8ST8AcrAUoAcrAc8AcrCZ3AcrFT3AcrFZrAcrJl4AcrJn3AcrMX3AcrOTvAc8AZ8Ac8MT8AfAcJXAgoFn4AgoGgvAgoGnrAgoLc8AgoMXoAgrLnrAkrSZ8AlFXCTAloHboAlrHbrAlrLhrAlrLkoAl3CZrAl3LUoAl3LZrAnrAl4AnrMT8An3HT4BT3IToBX4MnvBb!Ln$CTGXMnCToLZ4CTrHT8CT3JTrCT3RZrCT#GTvCU6GgvCU8Db8CU8GZrCU8HT8CboLl3CbrGgrCbrMU8Cb8DT3Cb8GnrCb8LX4Cb8MT8Cb8ObrCgrGgvCgrKX4Cl8FZoDTrAbvDTrDboDTrGT6DTrJgrDTrMX3DTrRZrDTrRg8DTvAVvDTvFZoDT3DT8DT3Ln3DT4HZrDT4MT8DT8AlrDT8MT8DUAkGbDUDbJnDYLnQlDbDUOYDbMTAnDbMXSnDboAT3DboFn4DboLnvDj6JTrGTCgFTGTGgFnGTJTMnGTLnPlGToJT8GTrCT3GTrLVoGTrLnvGTrMX3GTrMboGTvKl3GZClFnGZrDT3GZ8DTrGZ8FZ8GZ8MXvGZ8On8GZ8ST3GbCnQXGbMbFnGboFboGboJg3GboMXoGb3JTvGb3JboGb3Mn6Gb3Qb8GgDXLjGgMnAUGgrDloGgrHX4GgrSToGgvAXrGgvAZvGgvFbrGgvLl3GgvMnvGnDnLXGnrATrGnrMboGnuLl3HTATMnHTAgCnHTCTCTHTrGTvHTrHTvHTrJX8HTrLl8HTrMT8HTrMgoHTrOTrHTuOn3HTvAZrHTvDTvHTvGboHTvJU8HTvLl3HTvMXrHTvQb4HT4GT6HT4JT8HT4Jb#HT8Al3HT8GZrHT8GgrHT8HX4HT8Jb8HT8JnoHT8LTrHT8LgvHT8SToHT8SV8HUoJUoHUoJX8HUoLnrHXrLZoHXvAl3HX3LnrHX4FkvHX4LhrHX4MXoHX4OnoHZrAZ8HZrDb8HZrGZ8HZrJnrHZvGZ8HZvLnvHZ8JnvHZ8LhrHbCXJlHbMTAnHboJl4HbpLl3HbrJX8HbrLnrHbrMnvHbvRYrHgoSTrHgrFV8HgrGZ8HgrJXoHgrRnvHgvBb!HgvGTrHgvHX4HgvHn!HgvLTrHgvSU8HnDnLbHnFbJbHnvDn8Hn6GgvHn!BTvJTCTLnJTQgFnJTrAnvJTrLX4JTrOUoJTvFn3JTvLnrJTvNToJT3AgoJT3Jn4JT3LhvJT3ObrJT8AcrJT8Al3JT8JT8JT8JnoJT8LX4JT8LnrJT8MX3JT8Rg3JT8Sc8JUoBTvJU8AToJU8GZ8JU8GgvJU8JTrJU8JXrJU8JnrJU8LnvJU8ScvJXHnJlJXrGgvJXrJU8JXrLhrJXrMT8JXrMXrJXrQUoJXvCTvJXvGZ8JXvGgrJXvQT8JX8Ab8JX8DT8JX8GZ8JX8HZvJX8LnrJX8MT8JX8MXoJX8MnvJX8ST3JYGnCTJbAkGbJbCTAnJbLTAcJboDT3JboLb6JbrAnvJbrCn3JbrDl8JbrGboJbrIZoJbrJnvJbrMnvJbrQb4Jb8RZrJeAbAnJgJnFbJgScAnJgrATrJgvHZ8JgvMn4JlJlFbJlLiQXJlLjOnJlRbOlJlvNXoJlvRl3Jl4AcrJl8AUoJl8MnrJnFnMlJnHgGbJnoDT8JnoFV8JnoGgvJnoIT8JnoQToJnoRg3JnrCZ3JnrGgrJnrHTvJnrLf8JnrOX8JnvAT3JnvFZoJnvGT8JnvJl4JnvMT8JnvMX8JnvOXrJnvPX6JnvSX3JnvSZrJn3MT8Jn3MX8Jn3RTrLTATKnLTJnLTLTMXKnLTRTQlLToGb8LTrAZ8LTrCZ8LTrDb8LTrHT8LT3PX6LT4FZoLT$CTvLT$GgrLUvHX3LVoATrLVoAgoLVoJboLVoMX3LVoRg3LV8CZ3LV8FZoLV8GTvLXrDXoLXrFbrLXvAgvLXvFlrLXvLl3LXvRn6LX4Mb8LX8GT8LYCXMnLYrMnrLZoSTvLZrAZvLZrAloLZrFToLZrJXvLZrJboLZrJl4LZrLnrLZrMT8LZrOgvLZrRnvLZrST4LZvMX8LZvSlvLZ8AgoLZ8CT3LZ8JT8LZ8LV8LZ8LZoLZ8Lg8LZ8SV8LZ8SbrLZ$HT8LZ$Mn4La6CTvLbFbMnLbRYFTLbSnFZLboJT8LbrAT9LbrGb3LbrQb8LcrJX8LcrMXrLerHTvLerJbrLerNboLgrDb8LgrGZ8LgrHTrLgrMXrLgrSU8LgvJTrLgvLl3Lg6Ll3LhrLnrLhrMT8LhvAl4LiLnQXLkoAgrLkoJT8LkoJn4LlrSU8Ll3FZoLl3HTrLl3JX8Ll3JnoLl3LToLmLeFbLnDUFbLnLVAnLnrATrLnrAZoLnrAb8LnrAlrLnrGgvLnrJU8LnrLZrLnrLhrLnrMb8LnrOXrLnrSZ8LnvAb4LnvDTrLnvDl8LnvHTrLnvHbrLnvJT8LnvJU8LnvJbrLnvLhvLnvMX8LnvMb8LnvNnoLnvSU8Ln3Al3Ln4FZoLn4GT6Ln4JgvLn4LhrLn4MT8Ln4SToMToCZrMToJX8MToLX4MToLf8MToRg3MTrEloMTvGb6MT3BTrMT3Lb6MT8AcrMT8AgrMT8GZrMT8JnoMT8LnrMT8MX3MUOUAnMXAbFnMXoAloMXoJX8MXoLf8MXoLl8MXrAb8MXrDTvMXrGT8MXrGgrMXrHTrMXrLf8MXrMU8MXrOXvMXrQb8MXvGT8MXvHTrMXvLVoMX3AX3MX3Jn3MX3LhrMX3MX3MX4AlrMX4OboMX8GTvMX8GZrMX8GgrMX8JT8MX8JX8MX8LhrMX8MT8MYDUFbMYMgDbMbGnFfMbvLX4MbvLl3Mb8Mb8Mb8ST4MgGXCnMg8ATrMg8AgoMg8CZrMg8DTrMg8DboMg8HTrMg8JgrMg8LT8MloJXoMl8AhrMl8JT8MnLgAUMnoJXrMnoLX4MnoLhrMnoMT8MnrAl4MnrDb8MnrOTvMnrOgvMnrQb8MnrSU8MnvGgrMnvHZ8Mn3MToMn4DTrMn4LTrMn4Mg8NnBXAnOTFTFnOToAToOTrGgvOTrJX8OT3JXoOT6MTrOT8GgrOT8HTpOT8MToOUoHT8OUoJT8OUoLn3OXrAgoOXrDg8OXrMT8OXvSToOX6CTvOX8CZrOX8OgrOb6HgvOb8AToOb8MT8OcvLZ8OgvAlrOgvHTvOgvJTrOgvJnrOgvLZrOgvLn4OgvMT8OgvRTrOg8AZoOg8DbvOnrOXoOnvJn4OnvLhvOnvRTrOn3GgoOn3JnvOn6JbvOn8OTrPTGYFTPbBnFnPbGnDnPgDYQTPlrAnvPlrETvPlrLnvPlrMXvPlvFX4QTMTAnQTrJU8QYCnJlQYJlQlQbGTQbQb8JnrQb8LZoQb8LnvQb8MT8Qb8Ml8Qb8ST4QloAl4QloHZvQloJX8QloMn8QnJZOlRTrAZvRTrDTrRTvJn4RTvLhvRT4Jb8RZrAZrRZ8AkrRZ8JU8RZ8LV8RZ8LnvRbJlQXRg3GboRg3MnvRg8AZ8Rg8JboRg8Jl4RnLTCbRnvFl3RnvQb8SToAl4SToCZrSToFZoSToHXrSToJU8SToJgvSToJl4SToLhrSToMX3STrAlvSTrCT9STrCgrSTrGgrSTrHXrSTrHboSTrJnoSTrNboSTvLnrST4AZoST8Ab8ST8JT8SUoJn3SU6HZ#SU6JTvSU8Db8SU8HboSU8LgrSV8JT8SZrAcrSZrAl3SZrJT8SZrJnvSZrMT8SZvLUoSZ4FZoSZ8JnoSZ8RZrScoLnrScoMT8ScoMX8ScrAT4ScrAZ8ScrLZ8ScrLkvScvDb8ScvLf8ScvNToSgrFZrShvKnrSloHUoSloLnrSlrMXoSl8HgrSmrJUoSn3BX6","ATFlOn3ATLgrDYAT4MTAnAT8LTMnAYJnRTrAbGgJnrAbLV8LnAbvNTAnAeFbLg3AgOYMXoAlQbFboAnDboAfAnJgoJTBToDgAnBUJbAl3BboDUAnCTDlvLnCTFTrSnCYoQTLnDTwAbAnDUDTrSnDUHgHgrDX8LXFnDbJXAcrETvLTLnGTFTQbrGTMnGToGT3DUFbGUJlPX3GbQg8LnGboJbFnGb3GgAYGgAg8ScGgMbAXrGgvAbAnGnJTLnvGnvATFgHTDT6ATHTrDlJnHYLnMn8HZrSbJTHZ8LTFnHbFTJUoHgSeMT8HgrLjAnHgvAbAnHlFUrDlHnDgvAnHnHTFT3HnQTGnrJTAaMXvJTGbCn3JTOgrAnJXvAXMnJbMg8SnJbMnRg3Jb8LTMnJnAl3OnJnGYrQlJnJlQY3LTDlCn3LTJjLg3LTLgvFXLTMg3GTLV8HUOgLXFZLg3LXNXrMnLX8QXFnLX9AlMYLYLXPXrLZAbJU8LZDUJU8LZMXrSnLZ$AgFnLaPXrDULbFYrMnLbMn8LXLboJgJgLeFbLg3LgLZrSnLgOYAgoLhrRnJlLkCTrSnLkOnLhrLnFX%AYLnFZoJXLnHTvJbLnLloAbMTATLf8MTHgJn3MTMXrAXMT3MTFnMUITvFnMXFX%AYMXMXvFbMXrFTDbMYAcMX3MbLf8SnMb8JbFnMgMXrMTMgvAXFnMgvGgCmMnAloSnMnFnJTrOXvMXSnOX8HTMnObJT8ScObLZFl3ObMXCZoPTLgrQXPUFnoQXPU3RXJlPX3RkQXPbrJXQlPlrJbFnQUAhrDbQXGnCXvQYLnHlvQbLfLnvRTOgvJbRXJYrQlRYLnrQlRbLnrQlRlFT8JlRlFnrQXSTClCn3STHTrAnSTLZQlrSTMnGTrSToHgGbSTrGTDnSTvGXCnST3HgFbSU3HXAXSbAnJn3SbFT8LnScLfLnv","AT3JgJX8AT8FZoSnAT8JgFV8AT8LhrDbAZ8JT8DbAb8GgLhrAb8SkLnvAe8MT8SnAlMYJXLVAl3GYDTvAl3LfLnvBUDTvLl3CTOn3HTrCT3DUGgrCU8MT8AbCbFTrJUoCgrDb8MTDTLV8JX8DTLnLXQlDT8LZrSnDUQb8FZ8DUST4JnvDb8ScOUoDj6GbJl4GTLfCYMlGToAXvFnGboAXvLnGgAcrJn3GgvFnSToGnLf8JnvGn#HTDToHTLnFXJlHTvATFToHTvHTDToHTvMTAgoHT3STClvHT4AlFl6HT8HTDToHUoDgJTrHUoScMX3HbRZrMXoHboJg8LTHgDb8JTrHgMToLf8HgvLnLnoHnHn3HT4Hn6MgvAnJTJU8ScvJT3AaQT8JT8HTrAnJXrRg8AnJbAloMXoJbrATFToJbvMnoSnJgDb6GgvJgDb8MXoJgSX3JU8JguATFToJlPYLnQlJlQkDnLbJlQlFYJlJl8Lf8OTJnCTFnLbJnLTHXMnJnLXGXCnJnoFfRg3JnrMYRg3Jn3HgFl3KT8Dg8LnLTRlFnPTLTvPbLbvLVoSbrCZLXMY6HT3LXNU7DlrLXNXDTATLX8DX8LnLZDb8JU8LZMnoLhrLZSToJU8LZrLaLnrLZvJn3SnLZ8LhrSnLaJnoMT8LbFlrHTvLbrFTLnrLbvATLlvLb6OTFn3LcLnJZOlLeAT6Mn4LeJT3ObrLg6LXFlrLhrJg8LnLhvDlPX4LhvLfLnvLj6JTFT3LnFbrMXoLnQluCTvLnrQXCY6LnvLfLnvLnvMgLnvLnvSeLf8MTMbrJn3MT3JgST3MT8AnATrMT8LULnrMUMToCZrMUScvLf8MXoDT8SnMX6ATFToMX8AXMT8MX8FkMT8MX8HTrDUMX8ScoSnMYJT6CTvMgAcrMXoMg8SToAfMlvAXLg3MnFl3AnvOT3AnFl3OUoATHT8OU3RnLXrOXrOXrSnObPbvFn6Og8HgrSnOg8OX8DbPTvAgoJgPU3RYLnrPXrDnJZrPb8CTGgvPlrLTDlvPlvFUJnoQUvFXrQlQeMnoAl3QlrQlrSnRTFTrJUoSTDlLiLXSTFg6HT3STJgoMn4STrFTJTrSTrLZFl3ST4FnMXoSUrDlHUoScvHTvSnSfLkvMXo","AUoAcrMXoAZ8HboAg8AbOg6ATFgAg8AloMXoAl3AT8JTrAl8MX8MXoCT3SToJU8Cl8Db8MXoDT8HgrATrDboOT8MXoGTOTrATMnGT8LhrAZ8GnvFnGnQXHToGgvAcrHTvAXvLl3HbrAZoMXoHgBlFXLg3HgMnFXrSnHgrSb8JUoHn6HT8LgvITvATrJUoJUoLZrRnvJU8HT8Jb8JXvFX8QT8JXvLToJTrJYrQnGnQXJgrJnoATrJnoJU8ScvJnvMnvMXoLTCTLgrJXLTJlRTvQlLbRnJlQYvLbrMb8LnvLbvFn3RnoLdCVSTGZrLeSTvGXCnLg3MnoLn3MToLlrETvMT8SToAl3MbrDU6GTvMb8LX4LhrPlrLXGXCnSToLf8Rg3STrDb8LTrSTvLTHXMnSb3RYLnMnSgOg6ATFg","HUDlGnrQXrJTrHgLnrAcJYMb8DULc8LTvFgGnCk3Mg8JbAnLX4QYvFYHnMXrRUoJnGnvFnRlvFTJlQnoSTrBXHXrLYSUJgLfoMT8Se8DTrHbDb","AbDl8SToJU8An3RbAb8ST8DUSTrGnrAgoLbFU6Db8LTrMg8AaHT8Jb8ObDl8SToJU8Pb3RlvFYoJl"],tM="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*";function rM(t){return t>=40?t=t+168-40:t>=19&&(t=t+97-19),(0,$A.toUtf8String)([225,(t>>6)+132,(t&63)+128])}var Ra=null;function lx(t){if(Ra==null&&(Ra=[],eM.forEach(function(e,r){r+=4;for(var n=0;n<e.length;n+=r){for(var i="",a=0;a<r;a++)i+=rM(tM.indexOf(e[n+a]));Ra.push(i)}}),Ra.sort(),Fd.Wordlist.check(t)!=="0xf9eddeace9c5d3da9c93cf7d3cd38f6a13ed3affb933259ae865714e8a3ae71a"))throw Ra=null,new Error("BIP39 Wordlist for ko (Korean) FAILED")}var nM=function(t){YA(e,t);function e(){return t.call(this,"ko")||this}return e.prototype.getWord=function(r){return lx(this),Ra[r]},e.prototype.getWordIndex=function(r){return lx(this),Ra.indexOf(r)},e}(Fd.Wordlist),dx=new nM;Ho.langKo=dx;Fd.Wordlist.register(dx)});var gx=V(qo=>{"use strict";var hF=A(M()),iM=qo&&qo.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(qo,"__esModule",{value:!0});qo.langIt=void 0;var Dd=Yn(),aM="AbacoAbbaglioAbbinatoAbeteAbissoAbolireAbrasivoAbrogatoAccadereAccennoAccusatoAcetoneAchilleAcidoAcquaAcreAcrilicoAcrobataAcutoAdagioAddebitoAddomeAdeguatoAderireAdipeAdottareAdulareAffabileAffettoAffissoAffrantoAforismaAfosoAfricanoAgaveAgenteAgevoleAggancioAgireAgitareAgonismoAgricoloAgrumetoAguzzoAlabardaAlatoAlbatroAlberatoAlboAlbumeAlceAlcolicoAlettoneAlfaAlgebraAlianteAlibiAlimentoAllagatoAllegroAllievoAllodolaAllusivoAlmenoAlogenoAlpacaAlpestreAltalenaAlternoAlticcioAltroveAlunnoAlveoloAlzareAmalgamaAmanitaAmarenaAmbitoAmbratoAmebaAmericaAmetistaAmicoAmmassoAmmendaAmmirareAmmonitoAmoreAmpioAmpliareAmuletoAnacardoAnagrafeAnalistaAnarchiaAnatraAncaAncellaAncoraAndareAndreaAnelloAngeloAngolareAngustoAnimaAnnegareAnnidatoAnnoAnnuncioAnonimoAnticipoAnziApaticoAperturaApodeApparireAppetitoAppoggioApprodoAppuntoAprileArabicaArachideAragostaAraldicaArancioAraturaArazzoArbitroArchivioArditoArenileArgentoArgineArgutoAriaArmoniaArneseArredatoArringaArrostoArsenicoArsoArteficeArzilloAsciuttoAscoltoAsepsiAsetticoAsfaltoAsinoAsolaAspiratoAsproAssaggioAsseAssolutoAssurdoAstaAstenutoAsticeAstrattoAtavicoAteismoAtomicoAtonoAttesaAttivareAttornoAttritoAttualeAusilioAustriaAutistaAutonomoAutunnoAvanzatoAvereAvvenireAvvisoAvvolgereAzioneAzotoAzzimoAzzurroBabeleBaccanoBacinoBacoBadessaBadilataBagnatoBaitaBalconeBaldoBalenaBallataBalzanoBambinoBandireBaraondaBarbaroBarcaBaritonoBarlumeBaroccoBasilicoBassoBatostaBattutoBauleBavaBavosaBeccoBeffaBelgioBelvaBendaBenevoleBenignoBenzinaBereBerlinaBetaBibitaBiciBidoneBifidoBigaBilanciaBimboBinocoloBiologoBipedeBipolareBirbanteBirraBiscottoBisestoBisnonnoBisonteBisturiBizzarroBlandoBlattaBollitoBonificoBordoBoscoBotanicoBottinoBozzoloBraccioBradipoBramaBrancaBravuraBretellaBrevettoBrezzaBrigliaBrillanteBrindareBroccoloBrodoBronzinaBrulloBrunoBubboneBucaBudinoBuffoneBuioBulboBuonoBurloneBurrascaBussolaBustaCadettoCaducoCalamaroCalcoloCalesseCalibroCalmoCaloriaCambusaCamerataCamiciaCamminoCamolaCampaleCanapaCandelaCaneCaninoCanottoCantinaCapaceCapelloCapitoloCapogiroCapperoCapraCapsulaCarapaceCarcassaCardoCarismaCarovanaCarrettoCartolinaCasaccioCascataCasermaCasoCassoneCastelloCasualeCatastaCatenaCatrameCautoCavilloCedibileCedrataCefaloCelebreCellulareCenaCenoneCentesimoCeramicaCercareCertoCerumeCervelloCesoiaCespoCetoChelaChiaroChiccaChiedereChimeraChinaChirurgoChitarraCiaoCiclismoCifrareCignoCilindroCiottoloCircaCirrosiCitricoCittadinoCiuffoCivettaCivileClassicoClinicaCloroCoccoCodardoCodiceCoerenteCognomeCollareColmatoColoreColposoColtivatoColzaComaCometaCommandoComodoComputerComuneConcisoCondurreConfermaCongelareConiugeConnessoConoscereConsumoContinuoConvegnoCopertoCopioneCoppiaCopricapoCorazzaCordataCoricatoCorniceCorollaCorpoCorredoCorsiaCorteseCosmicoCostanteCotturaCovatoCratereCravattaCreatoCredereCremosoCrescitaCretaCricetoCrinaleCrisiCriticoCroceCronacaCrostataCrucialeCruscaCucireCuculoCuginoCullatoCupolaCuratoreCursoreCurvoCuscinoCustodeDadoDainoDalmataDamerinoDanielaDannosoDanzareDatatoDavantiDavveroDebuttoDecennioDecisoDeclinoDecolloDecretoDedicatoDefinitoDeformeDegnoDelegareDelfinoDelirioDeltaDemenzaDenotatoDentroDepositoDerapataDerivareDerogaDescrittoDesertoDesiderioDesumereDetersivoDevotoDiametroDicembreDiedroDifesoDiffusoDigerireDigitaleDiluvioDinamicoDinnanziDipintoDiplomaDipoloDiradareDireDirottoDirupoDisagioDiscretoDisfareDisgeloDispostoDistanzaDisumanoDitoDivanoDiveltoDividereDivoratoDobloneDocenteDoganaleDogmaDolceDomatoDomenicaDominareDondoloDonoDormireDoteDottoreDovutoDozzinaDragoDruidoDubbioDubitareDucaleDunaDuomoDupliceDuraturoEbanoEccessoEccoEclissiEconomiaEderaEdicolaEdileEditoriaEducareEgemoniaEgliEgoismoEgregioElaboratoElargireEleganteElencatoElettoElevareElficoElicaElmoElsaElusoEmanatoEmblemaEmessoEmiroEmotivoEmozioneEmpiricoEmuloEndemicoEnduroEnergiaEnfasiEnotecaEntrareEnzimaEpatiteEpilogoEpisodioEpocaleEppureEquatoreErarioErbaErbosoEredeEremitaErigereErmeticoEroeErosivoErranteEsagonoEsameEsanimeEsaudireEscaEsempioEsercitoEsibitoEsigenteEsistereEsitoEsofagoEsortatoEsosoEspansoEspressoEssenzaEssoEstesoEstimareEstoniaEstrosoEsultareEtilicoEtnicoEtruscoEttoEuclideoEuropaEvasoEvidenzaEvitatoEvolutoEvvivaFabbricaFaccendaFachiroFalcoFamigliaFanaleFanfaraFangoFantasmaFareFarfallaFarinosoFarmacoFasciaFastosoFasulloFaticareFatoFavolosoFebbreFecolaFedeFegatoFelpaFeltroFemminaFendereFenomenoFermentoFerroFertileFessuraFestivoFettaFeudoFiabaFiduciaFifaFiguratoFiloFinanzaFinestraFinireFioreFiscaleFisicoFiumeFlaconeFlamencoFleboFlemmaFloridoFluenteFluoroFobicoFocacciaFocosoFoderatoFoglioFolataFolcloreFolgoreFondenteFoneticoFoniaFontanaForbitoForchettaForestaFormicaFornaioForoFortezzaForzareFosfatoFossoFracassoFranaFrassinoFratelloFreccettaFrenataFrescoFrigoFrollinoFrondeFrugaleFruttaFucilataFucsiaFuggenteFulmineFulvoFumanteFumettoFumosoFuneFunzioneFuocoFurboFurgoneFuroreFusoFutileGabbianoGaffeGalateoGallinaGaloppoGamberoGammaGaranziaGarboGarofanoGarzoneGasdottoGasolioGastricoGattoGaudioGazeboGazzellaGecoGelatinaGelsoGemelloGemmatoGeneGenitoreGennaioGenotipoGergoGhepardoGhiaccioGhisaGialloGildaGineproGiocareGioielloGiornoGioveGiratoGironeGittataGiudizioGiuratoGiustoGlobuloGlutineGnomoGobbaGolfGomitoGommoneGonfioGonnaGovernoGracileGradoGraficoGrammoGrandeGrattareGravosoGraziaGrecaGreggeGrifoneGrigioGrinzaGrottaGruppoGuadagnoGuaioGuantoGuardareGufoGuidareIbernatoIconaIdenticoIdillioIdoloIdraIdricoIdrogenoIgieneIgnaroIgnoratoIlareIllesoIllogicoIlludereImballoImbevutoImboccoImbutoImmaneImmersoImmolatoImpaccoImpetoImpiegoImportoImprontaInalareInarcareInattivoIncantoIncendioInchinoIncisivoInclusoIncontroIncrocioIncuboIndagineIndiaIndoleIneditoInfattiInfilareInflittoIngaggioIngegnoIngleseIngordoIngrossoInnescoInodoreInoltrareInondatoInsanoInsettoInsiemeInsonniaInsulinaIntasatoInteroIntonacoIntuitoInumidireInvalidoInveceInvitoIperboleIpnoticoIpotesiIppicaIrideIrlandaIronicoIrrigatoIrrorareIsolatoIsotopoIstericoIstitutoIstriceItaliaIterareLabbroLabirintoLaccaLaceratoLacrimaLacunaLaddoveLagoLampoLancettaLanternaLardosoLargaLaringeLastraLatenzaLatinoLattugaLavagnaLavoroLegaleLeggeroLemboLentezzaLenzaLeoneLepreLesivoLessatoLestoLetteraleLevaLevigatoLiberoLidoLievitoLillaLimaturaLimitareLimpidoLineareLinguaLiquidoLiraLiricaLiscaLiteLitigioLivreaLocandaLodeLogicaLombareLondraLongevoLoquaceLorenzoLotoLotteriaLuceLucidatoLumacaLuminosoLungoLupoLuppoloLusingaLussoLuttoMacabroMacchinaMaceroMacinatoMadamaMagicoMagliaMagneteMagroMaiolicaMalafedeMalgradoMalintesoMalsanoMaltoMalumoreManaManciaMandorlaMangiareManifestoMannaroManovraMansardaMantideManubrioMappaMaratonaMarcireMarettaMarmoMarsupioMascheraMassaiaMastinoMaterassoMatricolaMattoneMaturoMazurcaMeandroMeccanicoMecenateMedesimoMeditareMegaMelassaMelisMelodiaMeningeMenoMensolaMercurioMerendaMerloMeschinoMeseMessereMestoloMetalloMetodoMettereMiagolareMicaMicelioMicheleMicroboMidolloMieleMiglioreMilanoMiliteMimosaMineraleMiniMinoreMirinoMirtilloMiscelaMissivaMistoMisurareMitezzaMitigareMitraMittenteMnemonicoModelloModificaModuloMoganoMogioMoleMolossoMonasteroMoncoMondinaMonetarioMonileMonotonoMonsoneMontatoMonvisoMoraMordereMorsicatoMostroMotivatoMotosegaMottoMovenzaMovimentoMozzoMuccaMucosaMuffaMughettoMugnaioMulattoMulinelloMultiploMummiaMuntoMuovereMuraleMusaMuscoloMusicaMutevoleMutoNababboNaftaNanometroNarcisoNariceNarratoNascereNastrareNaturaleNauticaNaviglioNebulosaNecrosiNegativoNegozioNemmenoNeofitaNerettoNervoNessunoNettunoNeutraleNeveNevroticoNicchiaNinfaNitidoNobileNocivoNodoNomeNominaNordicoNormaleNorvegeseNostranoNotareNotiziaNotturnoNovellaNucleoNullaNumeroNuovoNutrireNuvolaNuzialeOasiObbedireObbligoObeliscoOblioOboloObsoletoOccasioneOcchioOccidenteOccorrereOccultareOcraOculatoOdiernoOdorareOffertaOffrireOffuscatoOggettoOggiOgnunoOlandeseOlfattoOliatoOlivaOlogrammaOltreOmaggioOmbelicoOmbraOmegaOmissioneOndosoOnereOniceOnnivoroOnorevoleOntaOperatoOpinioneOppostoOracoloOrafoOrdineOrecchinoOreficeOrfanoOrganicoOrigineOrizzonteOrmaOrmeggioOrnativoOrologioOrrendoOrribileOrtensiaOrticaOrzataOrzoOsareOscurareOsmosiOspedaleOspiteOssaOssidareOstacoloOsteOtiteOtreOttagonoOttimoOttobreOvaleOvestOvinoOviparoOvocitoOvunqueOvviareOzioPacchettoPacePacificoPadellaPadronePaesePagaPaginaPalazzinaPalesarePallidoPaloPaludePandoroPannelloPaoloPaonazzoPapricaParabolaParcellaParerePargoloPariParlatoParolaPartireParvenzaParzialePassivoPasticcaPataccaPatologiaPattumePavonePeccatoPedalarePedonalePeggioPelosoPenarePendicePenisolaPennutoPenombraPensarePentolaPepePepitaPerbenePercorsoPerdonatoPerforarePergamenaPeriodoPermessoPernoPerplessoPersuasoPertugioPervasoPesatorePesistaPesoPestiferoPetaloPettinePetulantePezzoPiacerePiantaPiattinoPiccinoPicozzaPiegaPietraPifferoPigiamaPigolioPigroPilaPiliferoPillolaPilotaPimpantePinetaPinnaPinoloPioggiaPiomboPiramidePireticoPiritePirolisiPitonePizzicoPlaceboPlanarePlasmaPlatanoPlenarioPochezzaPoderosoPodismoPoesiaPoggiarePolentaPoligonoPollicePolmonitePolpettaPolsoPoltronaPolverePomicePomodoroPontePopolosoPorfidoPorosoPorporaPorrePortataPosaPositivoPossessoPostulatoPotassioPoterePranzoPrassiPraticaPreclusoPredicaPrefissoPregiatoPrelievoPremerePrenotarePreparatoPresenzaPretestoPrevalsoPrimaPrincipePrivatoProblemaProcuraProdurreProfumoProgettoProlungaPromessaPronomePropostaProrogaProtesoProvaPrudentePrugnaPruritoPsichePubblicoPudicaPugilatoPugnoPulcePulitoPulsantePuntarePupazzoPupillaPuroQuadroQualcosaQuasiQuerelaQuotaRaccoltoRaddoppioRadicaleRadunatoRafficaRagazzoRagioneRagnoRamarroRamingoRamoRandagioRantolareRapatoRapinaRappresoRasaturaRaschiatoRasenteRassegnaRastrelloRataRavvedutoRealeRecepireRecintoReclutaReconditoRecuperoRedditoRedimereRegalatoRegistroRegolaRegressoRelazioneRemareRemotoRennaReplicaReprimereReputareResaResidenteResponsoRestauroReteRetinaRetoricaRettificaRevocatoRiassuntoRibadireRibelleRibrezzoRicaricaRiccoRicevereRiciclatoRicordoRicredutoRidicoloRidurreRifasareRiflessoRiformaRifugioRigareRigettatoRighelloRilassatoRilevatoRimanereRimbalzoRimedioRimorchioRinascitaRincaroRinforzoRinnovoRinomatoRinsavitoRintoccoRinunciaRinvenireRiparatoRipetutoRipienoRiportareRipresaRipulireRisataRischioRiservaRisibileRisoRispettoRistoroRisultatoRisvoltoRitardoRitegnoRitmicoRitrovoRiunioneRivaRiversoRivincitaRivoltoRizomaRobaRoboticoRobustoRocciaRocoRodaggioRodereRoditoreRogitoRollioRomanticoRompereRonzioRosolareRospoRotanteRotondoRotulaRovescioRubizzoRubricaRugaRullinoRumineRumorosoRuoloRupeRussareRusticoSabatoSabbiareSabotatoSagomaSalassoSaldaturaSalgemmaSalivareSalmoneSaloneSaltareSalutoSalvoSapereSapidoSaporitoSaracenoSarcasmoSartoSassosoSatelliteSatiraSatolloSaturnoSavanaSavioSaziatoSbadiglioSbalzoSbancatoSbarraSbattereSbavareSbendareSbirciareSbloccatoSbocciatoSbrinareSbruffoneSbuffareScabrosoScadenzaScalaScambiareScandaloScapolaScarsoScatenareScavatoSceltoScenicoScettroSchedaSchienaSciarpaScienzaScindereScippoSciroppoScivoloSclerareScodellaScolpitoScompartoSconfortoScoprireScortaScossoneScozzeseScribaScrollareScrutinioScuderiaScultoreScuolaScuroScusareSdebitareSdoganareSeccaturaSecondoSedanoSeggiolaSegnalatoSegregatoSeguitoSelciatoSelettivoSellaSelvaggioSemaforoSembrareSemeSeminatoSempreSensoSentireSepoltoSequenzaSerataSerbatoSerenoSerioSerpenteSerraglioServireSestinaSetolaSettimanaSfaceloSfaldareSfamatoSfarzosoSfaticatoSferaSfidaSfilatoSfingeSfocatoSfoderareSfogoSfoltireSforzatoSfrattoSfruttatoSfuggitoSfumareSfusoSgabelloSgarbatoSgonfiareSgorbioSgrassatoSguardoSibiloSiccomeSierraSiglaSignoreSilenzioSillabaSimboloSimpaticoSimulatoSinfoniaSingoloSinistroSinoSintesiSinusoideSiparioSismaSistoleSituatoSlittaSlogaturaSlovenoSmarritoSmemoratoSmentitoSmeraldoSmilzoSmontareSmottatoSmussatoSnellireSnervatoSnodoSobbalzoSobrioSoccorsoSocialeSodaleSoffittoSognoSoldatoSolenneSolidoSollazzoSoloSolubileSolventeSomaticoSommaSondaSonettoSonniferoSopireSoppesoSopraSorgereSorpassoSorrisoSorsoSorteggioSorvolatoSospiroSostaSottileSpadaSpallaSpargereSpatolaSpaventoSpazzolaSpecieSpedireSpegnereSpelaturaSperanzaSpessoreSpettraleSpezzatoSpiaSpigolosoSpillatoSpinosoSpiraleSplendidoSportivoSposoSprangaSprecareSpronatoSpruzzoSpuntinoSquilloSradicareSrotolatoStabileStaccoStaffaStagnareStampatoStantioStarnutoStaseraStatutoSteloSteppaSterzoStilettoStimaStirpeStivaleStizzosoStonatoStoricoStrappoStregatoStriduloStrozzareStruttoStuccareStufoStupendoSubentroSuccosoSudoreSuggeritoSugoSultanoSuonareSuperboSupportoSurgelatoSurrogatoSussurroSuturaSvagareSvedeseSveglioSvelareSvenutoSveziaSviluppoSvistaSvizzeraSvoltaSvuotareTabaccoTabulatoTacciareTaciturnoTaleTalismanoTamponeTanninoTaraTardivoTargatoTariffaTarpareTartarugaTastoTatticoTavernaTavolataTazzaTecaTecnicoTelefonoTemerarioTempoTemutoTendoneTeneroTensioneTentacoloTeoremaTermeTerrazzoTerzettoTesiTesseratoTestatoTetroTettoiaTifareTigellaTimbroTintoTipicoTipografoTiraggioTiroTitanioTitoloTitubanteTizioTizzoneToccareTollerareToltoTombolaTomoTonfoTonsillaTopazioTopologiaToppaTorbaTornareTorroneTortoraToscanoTossireTostaturaTotanoTraboccoTracheaTrafilaTragediaTralcioTramontoTransitoTrapanoTrarreTraslocoTrattatoTraveTrecciaTremolioTrespoloTributoTrichecoTrifoglioTrilloTrinceaTrioTristezzaTrituratoTrivellaTrombaTronoTroppoTrottolaTrovareTruccatoTubaturaTuffatoTulipanoTumultoTunisiaTurbareTurchinoTutaTutelaUbicatoUccelloUccisoreUdireUditivoUffaUfficioUgualeUlisseUltimatoUmanoUmileUmorismoUncinettoUngereUnghereseUnicornoUnificatoUnisonoUnitarioUnteUovoUpupaUraganoUrgenzaUrloUsanzaUsatoUscitoUsignoloUsuraioUtensileUtilizzoUtopiaVacanteVaccinatoVagabondoVagliatoValangaValgoValicoVallettaValorosoValutareValvolaVampataVangareVanitosoVanoVantaggioVanveraVaporeVaranoVarcatoVarianteVascaVedettaVedovaVedutoVegetaleVeicoloVelcroVelinaVellutoVeloceVenatoVendemmiaVentoVeraceVerbaleVergognaVerificaVeroVerrucaVerticaleVescicaVessilloVestaleVeteranoVetrinaVetustoViandanteVibranteVicendaVichingoVicinanzaVidimareVigiliaVignetoVigoreVileVillanoViminiVincitoreViolaViperaVirgolaVirologoVirulentoViscosoVisioneVispoVissutoVisuraVitaVitelloVittimaVivandaVividoViziareVoceVogaVolatileVolereVolpeVoragineVulcanoZampognaZannaZappatoZatteraZavorraZefiroZelanteZeloZenzeroZerbinoZibettoZincoZirconeZittoZollaZoticoZuccheroZufoloZuluZuppa",Zs=null;function px(t){if(Zs==null&&(Zs=aM.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),Dd.Wordlist.check(t)!=="0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620"))throw Zs=null,new Error("BIP39 Wordlist for it (Italian) FAILED")}var oM=function(t){iM(e,t);function e(){return t.call(this,"it")||this}return e.prototype.getWord=function(r){return px(this),Zs[r]},e.prototype.getWordIndex=function(r){return px(this),Zs.indexOf(r)},e}(Dd.Wordlist),bx=new oM;qo.langIt=bx;Dd.Wordlist.register(bx)});var yx=V(Wi=>{"use strict";var bF=A(M()),sM=Wi&&Wi.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Wi,"__esModule",{value:!0});Wi.langZhTw=Wi.langZhCn=void 0;var fM=Or(),Vs=Yn(),Od="}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN<di,AM=W5%QO&ka&ua,hM^tm=zV=JA=wR&+X]7P&NB#4J#5L|/b[dA}tJ<Do&6m&u2[U1&Kb.HM&mC=w0&MW<rY,Hq#6M}QG,13&wP}Jp]Ow%ue&Kg<HP<D9~4k~9T&I2_c6$9T#9/[C5~7O~4a=cs&O7=KK=An&l9$6U$8A&uD&QI|/Y&bg}Ux&F2#6b}E2&JN&kW&kp=U/&bb=Xl<Cj}k+~5J#6L&5z&9i}b4&Fo,ho(X0_g3~4O$Fz&QE<HN=Ww]6/%GF-Vw=tj&/D&PN#9g=YO}cL&Of&PI~5I&Ip=vU=IW#9G;0o-wU}ss&QR<BT&R9=tk$PY_dh&Pq-yh]7T,nj.Xu=EP&76=cI&Fs*Xg}z7$Gb&+I=DF,AF=cA}rL#7j=Dz&3y<Aa$52=PQ}b0(iY$Fa}oL&xV#6U=ec=WZ,xh%RY<dp#9N&Fl&44=WH*A7=sh&TB&8P=07;u+&PK}uh}J5#72)V/=xC,AB$k0&f6;1E|+5=1B,3v]6n&wR%b+&xx]7f=Ol}fl;+D^wG]7E;nB;uh^Ir&l5=JL,nS=cf=g5;u6|/Q$Gc=MH%Hg#5d%M6^86=U+$Gz,l/,ir^5y&Ba&/F-IY&FI&be%IZ#77&PW_Nu$kE(Yf&NX]7Z,Jy&FJ(Xo&Nz#/d=y7&MX<Ag}Z+;nE]Dt(iG#4D=13&Pj~4c%v8&Zo%OL&/X#4W<HR&ie~6J_1O(Y2=y5=Ad*cv_eB#6k&PX:BU#7A;uk&Ft&Fx_dD=U2;vB=U5=4F}+O&GN.HH:9s=b0%NV(jO&IH=JT}Z9=VZ<Af,Kx^4m&uJ%c6,6r;9m#+L}cf%Kh&F3~4H=vP}bu,Hz|++,1w]nv}k6;uu$jw*Kl*WX&uM[x7&Fr[m7$NO&QN]hu=JN}nR^8g#/h(ps|KC;vd}xz=V0}p6&FD$G1#7K<bG_4p~8g&cf;u4=tl}+k%5/}fz;uw<cA=u1}gU}VM=LJ=eX&+L&Pr#4U}p2:nC,2K]7H:jF&9x}uX#9O=MB<fz~8X~5m&4D&kN&u5%E/(h7(ZF&VG<de(qM|/e-Wt=3x(a+,/R]f/&ND$Ro&nU}0g=KA%kH&NK$Ke<dS}cB&IX~5g$TN]6m=Uv,Is&Py=Ef%Kz#+/%bi&+A<F4$OG&4C&FL#9V<Zk=2I_eE&6c]nw&kq$HG}y+&A8$P3}OH=XP]70%IS(AJ_gH%GZ&tY&AZ=vb~6y&/r=VI=Wv<Zi=fl=xf&eL}c8}OL=MJ=g8$F7=YT}9u=0+^xC}JH&nL^N0~4T]K2,Cy%OC#6s;vG(AC^xe^cG&MF}Br#9P;wD-7h$O/&xA}Fn^PC]6i]7G&8V$Qs;vl(TB~73~4l<mW&6V=2y&uY&+3)aP}XF;LP&kx$wU=t7;uy<FN&lz)7E=Oo*Y+;wI}9q}le;J6&Ri&4t&Qr#8B=cb&vG=J5|Ql(h5<Yy~4+}QD,Lx=wn%K/&RK=dO&Pw,Q9=co%4u;9u}g0@6a^4I%b0=zo|/c&tX=dQ=OS#+b=yz_AB&wB&Pm=W9$HP_gR=62=AO=ti=hI,oA&jr&dH=tm&b6$P2(x8=zi;nG~7F;05]0n[Ix&3m}rg=Xp=cd&uz]7t;97=cN;vV<jf&FF&F1=6Q&Ik*Kk&P4,2z=fQ]7D&3u,H0=d/}Uw<ZN<7R}Kv;0f$H7,MD]7n$F0#88~9Z%da=by;+T#/u=VF&fO&kr^kf<AB]sU,I5$Ng&Pz;0i&QD&vM=Yl:BM;nJ_xJ]U7&Kf&30,3f|Z9*dC)je_jA&Q4&Kp$NH(Yz#6S&Id%Ib=KX,AD=KV%dP}tW&Pk^+E_Ni=cq,3R}VZ(Si=b+}rv;0j}rZ]uA,/w(Sx&Jv$w9&4d&wE,NJ$Gy=J/]Ls#7k<ZQ<Y/&uj]Ov$PM;v3,2F&+u:up=On&3e,Jv;90=J+&Qm]6q}bK#+d~8Y(h2]hA;99&AS=I/}qB&dQ}yJ-VM}Vl&ui,iB&G3|Dc]7d=eQ%dX%JC_1L~4d^NP;vJ&/1)ZI#7N]9X[bQ&PL=0L(UZ,Lm&kc&IR}n7(iR<AQ<dg=33=vN}ft}au]7I,Ba=x9=dR~6R&Tq=Xi,3d$Nr&Bc}DI&ku&vf]Dn,/F&iD,Ll&Nw=0y&I7=Ls=/A&tU=Qe}Ua&uk&+F=g4=gh=Vj#+1&Qn}Uy*44#5F,Pc&Rz*Xn=oh=5W;0n_Nf(iE<Y7=vr=Zu]oz#5Z%mI=kN=Bv_Jp(T2;vt_Ml<FS&uI=L/&6P]64$M7}86<bo%QX(SI%IY&VK=Al&Ux;vv;ut*E/%uh<ZE|O3,M2(yc]yu=Wk&tp:Ex}hr,Cl&WE)+Z=8U}I2_4Q,hA_si=iw=OM=tM=yZ%Ia=U7;wT}b+;uo=Za}yS!5x}HD}fb#5O_dA;Nv%uB(yB;01(Sf}Fk;v7}Pt#8v<mZ#7L,/r&Pl~4w&f5=Ph$Fw_LF&8m,bL=yJ&BH}p/*Jn}tU~5Q;wB(h6]Df]8p^+B;E4&Wc=d+;Ea&bw$8C&FN,DM=Yf}mP~5w=fT#6V=mC=Fi=AV}jB&AN}lW}aH#/D)dZ;hl;vE}/7,CJ;31&w8,hj%u9_Js=jJ&4M~8k=TN&eC}nL&uc-wi&lX}dj=Mv=e2#6u=cr$uq$6G]8W}Jb:nm=Yg<b3(UA;vX&6n&xF=KT,jC,De&R8&oY=Zv&oB]7/=Z2&Oa}bf,hh(4h^tZ&72&Nx;D2&xL~5h~40)ZG)h+=OJ&RA]Bv$yB=Oq=df,AQ%Jn}OJ;11,3z&Tl&tj;v+^Hv,Dh(id=s+]7N&N3)9Q~8f,S4=uW=w4&uX,LX&3d]CJ&yp&8x<b2_do&lP=y/<cy_dG=Oi=7R(VH(lt_1T,Iq_AA;12^6T%k6#8K[B1{oO<AU[Bt;1b$9S&Ps<8T=St{bY,jB(Zp&63&Uv$9V,PM]6v&Af}zW[bW_oq}sm}nB&Kq&gC&ff_eq_2m&5F&TI}rf}Gf;Zr_z9;ER&jk}iz_sn<BN~+n&vo=Vi%97|ZR=Wc,WE&6t]6z%85(ly#84=KY)6m_5/=aX,N3}Tm&he&6K]tR_B2-I3;u/&hU&lH<AP=iB&IA=XL;/5&Nh=wv<BH#79=vS=zl<AA=0X_RG}Bw&9p$NW,AX&kP_Lp&/Z(Tc]Mu}hs#6I}5B&cI<bq&H9#6m=K9}vH(Y1(Y0#4B&w6,/9&gG<bE,/O=zb}I4_l8<B/;wL%Qo<HO[Mq=XX}0v&BP&F4(mG}0i}nm,EC=9u{I3,xG&/9=JY*DK&hR)BX=EI=cx=b/{6k}yX%A+&wa}Xb=la;wi^lL;0t}jo&Qb=xg=XB}iO<qo{bR=NV&8f=a0&Jy;0v=uK)HK;vN#6h&jB(h/%ud&NI%wY.X7=Pt}Cu-uL&Gs_hl%mH,tm]78=Lb^Q0#7Y=1u<Bt&+Q=Co_RH,w3;1e}ux<aU;ui}U3&Q5%bt]63&UQ|0l&uL}O7&3o,AV&dm|Nj(Xt*5+(Uu&Hh(p7(UF=VR=Bp^Jl&Hd[ix)9/=Iq]C8<67]66}mB%6f}bb}JI]8T$HA}db=YM&pa=2J}tS&Y0=PS&y4=cX$6E,hX,XP&nR;04,FQ&l0&Vm_Dv#5Y~8Z=Bi%MA]6x=JO:+p,Az&9q,Hj~6/}SD=K1:EJ}nA;Qo#/E]9R,Ie&6X%W3]61&v4=xX_MC=0q;06(Xq=fs}IG}Dv=0l}o7$iZ;9v&LH&DP-7a&OY,SZ,Kz,Cv&dh=fx|Nh,F/~7q=XF&w+;9n&Gw;0h}Z7<7O&JK(S7&LS<AD<ac=wo<Dt&zw%4B=4v#8P;9o~6p*vV=Tm,Or&I6=1q}nY=P0=gq&Bl&Uu,Ch%yb}UY=zh}dh}rl(T4_xk(YA#8R*xH,IN}Jn]7V}C4&Ty}j3]7p=cL=3h&wW%Qv<Z3=f0&RI&+S(ic_zq}oN&/Y=z1;Td=LW=0e=OI(Vc,+b^ju(UL;0r:Za%8v=Rp=zw&58&73&wK}qX]6y&8E)a2}WR=wP^ur&nQ<cH}Re=Aq&wk}Q0&+q=PP,Gc|/d^k5,Fw]8Y}Pg]p3=ju=ed}r5_yf&Cs]7z$/G<Cm&Jp&54_1G_gP_Ll}JZ;0u]k8_7k(Sg]65{9i=LN&Sx&WK,iW&fD&Lk{9a}Em-9c#8N&io=sy]8d&nT&IK(lx#7/$lW(Td<s8~49,3o<7Y=MW(T+_Jr&Wd,iL}Ct=xh&5V;v4&8n%Kx=iF&l2_0B{B+,If(J0,Lv;u8=Kx-vB=HC&vS=Z6&fU&vE^xK;3D=4h=MR#45:Jw;0d}iw=LU}I5=I0]gB*im,K9}GU,1k_4U&Tt=Vs(iX&lU(TF#7y,ZO}oA&m5#5P}PN}Uz=hM<B1&FB<aG,e6~7T<tP(UQ_ZT=wu&F8)aQ]iN,1r_Lo&/g:CD}84{J1_Ki&Na&3n$jz&FE=dc;uv;va}in}ll=fv(h1&3h}fp=Cy}BM(+E~8m}lo%v7=hC(T6$cj=BQ=Bw(DR,2j=Ks,NS|F+;00=fU=70}Mb(YU;+G&m7&hr=Sk%Co]t+(X5_Jw}0r}gC(AS-IP&QK<Z2#8Q$WC]WX}T2&pG_Ka,HC=R4&/N;Z+;ch(C7,D4$3p_Mk&B2$8D=n9%Ky#5z(CT&QJ#7B]DC]gW}nf~5M;Iw#80}Tc_1F#4Z-aC}Hl=ph=fz,/3=aW}JM}nn;DG;vm}wn,4P}T3;wx&RG$u+}zK=0b;+J_Ek{re<aZ=AS}yY#5D]7q,Cp}xN=VP*2C}GZ}aG~+m_Cs=OY#6r]6g<GS}LC(UB=3A=Bo}Jy<c4}Is;1P<AG}Op<Z1}ld}nS=1Z,yM&95&98=CJ(4t:2L$Hk=Zo}Vc;+I}np&N1}9y=iv}CO*7p=jL)px]tb^zh&GS&Vl%v/;vR=14=zJ&49|/f]hF}WG;03=8P}o/&Gg&rp;DB,Kv}Ji&Pb;aA^ll(4j%yt}+K$Ht#4y&hY]7Y<F1,eN}bG(Uh%6Z]t5%G7;+F_RE;it}tL=LS&Da=Xx(S+(4f=8G=yI}cJ}WP=37=jS}pX}hd)fp<A8=Jt~+o$HJ=M6}iX=g9}CS=dv=Cj(mP%Kd,xq|+9&LD(4/=Xm&QP=Lc}LX&fL;+K=Op(lu=Qs.qC:+e&L+=Jj#8w;SL]7S(b+#4I=c1&nG_Lf&uH;+R)ZV<bV%B/,TE&0H&Jq&Ah%OF&Ss(p2,Wv&I3=Wl}Vq;1L&lJ#9b_1H=8r=b8=JH(SZ=hD=J2#7U,/U#/X~6P,FU<eL=jx,mG=hG=CE&PU=Se(qX&LY=X6=y4&tk&QQ&tf=4g&xI}W+&mZ=Dc#7w}Lg;DA;wQ_Kb(cJ=hR%yX&Yb,hw{bX_4X;EP;1W_2M}Uc=b5(YF,CM&Tp^OJ{DD]6s=vF=Yo~8q}XH}Fu%P5(SJ=Qt;MO]s8<F3&B3&8T(Ul-BS*dw&dR<87}/8]62$PZ]Lx<Au}9Q]7c=ja=KR,Go,Us&v6(qk}pG&G2=ev^GM%w4&H4]7F&dv]J6}Ew:9w=sj-ZL}Ym$+h(Ut(Um~4n=Xs(U7%eE=Qc_JR<CA#6t<Fv|/I,IS,EG<F2(Xy$/n<Fa(h9}+9_2o&N4#7X<Zq|+f_Dp=dt&na,Ca=NJ)jY=8C=YG=s6&Q+<DO}D3=xB&R1(lw;Qn<bF(Cu|/B}HV=SS&n7,10&u0]Dm%A6^4Q=WR(TD=Xo<GH,Rj(l8)bP&n/=LM&CF,F5&ml=PJ;0k=LG=tq,Rh,D6@4i=1p&+9=YC%er_Mh;nI;0q=Fw]80=xq=FM$Gv;v6&nc;wK%H2&Kj;vs,AA=YP,66}bI(qR~5U=6q~4b$Ni=K5.X3$So&Iu(p+]8G=Cf=RY(TS_O3(iH&57=fE=Dg_Do#9z#7H;FK{qd_2k%JR}en&gh_z8;Rx}9p<cN_Ne,DO;LN_7o~/p=NF=5Y}gN<ce<C1,QE]Wv=3u<BC}GK]yq}DY&u/_hj=II(pz&rC,jV&+Z}ut=NQ;Cg-SR_ZS,+o=u/;Oy_RK_QF(Fx&xP}Wr&TA,Uh&g1=yr{ax[VF$Pg(YB;Ox=Vy;+W(Sp}XV%dd&33(l/]l4#4Y}OE=6c=bw(A7&9t%wd&N/&mo,JH&Qe)fm=Ao}fu=tH",cM="FAZDC6BALcLZCA+GBARCW8wNCcDDZ8LVFBOqqDUiou+M42TFAyERXFb7EjhP+vmBFpFrUpfDV2F7eB+eCltCHJFWLFCED+pWTojEIHFXc3aFn4F68zqjEuKidS1QBVPDEhE7NA4mhMF7oThD49ot3FgtzHFCK0acW1x8DH1EmLoIlrWFBLE+y5+NA3Cx65wJHTaEZVaK1mWAmPGxgYCdxwOjTDIt/faOEhTl1vqNsKtJCOhJWuio2g07KLZEQsFBUpNtwEByBgxFslFheFbiEPvi61msDvApxCzB6rBCzox7joYA5UdDc+Cb4FSgIabpXFAj3bjkmFAxCZE+mD/SFf/0ELecYCt3nLoxC6WEZf2tKDB4oZvrEmqFkKk7BwILA7gtYBpsTq//D4jD0F0wEB9pyQ1BD5Ba0oYHDI+sbDFhvrHXdDHfgFEIJLi5r8qercNFBgFLC4bo5ERJtamWBDFy73KCEb6M8VpmEt330ygCTK58EIIFkYgF84gtGA9Uyh3m68iVrFbWFbcbqiCYHZ9J1jeRPbL8yswhMiDbhEhdNoSwFbZrLT740ABEqgCkO8J1BLd1VhKKR4sD1yUo0z+FF59Mvg71CFbyEhbHSFBKEIKyoQNgQppq9T0KAqePu0ZFGrXOHdKJqkoTFhYvpDNyuuznrN84thJbsCoO6Cu6Xlvntvy0QYuAExQEYtTUBf3CoCqwgGFZ4u1HJFzDVwEy3cjcpV4QvsPaBC3rCGyCF23o4K3pp2gberGgFEJEHo4nHICtyKH2ZqyxhN05KBBJIQlKh/Oujv/DH32VrlqFdIFC7Fz9Ct4kaqFME0UETLprnN9kfy+kFmtQBB0+5CFu0N9Ij8l/VvJDh2oq3hT6EzjTHKFN7ZjZwoTsAZ4Exsko6Fpa6WC+sduz8jyrLpegTv2h1EBeYpLpm2czQW0KoCcS0bCVXCmuWJDBjN1nQNLdF58SFJ0h7i3pC3oEOKy/FjBklL70XvBEEIWp2yZ04xObzAWDDJG7f+DbqBEA7LyiR95j7MDVdDViz2RE5vWlBMv5e4+VfhP3aXNPhvLSynb9O2x4uFBV+3jqu6d5pCG28/sETByvmu/+IJ0L3wb4rj9DNOLBF6XPIODr4L19U9RRofAG6Nxydi8Bki8BhGJbBAJKzbJxkZSlF9Q2Cu8oKqggB9hBArwLLqEBWEtFowy8XK8bEyw9snT+BeyFk1ZCSrdmgfEwFePTgCjELBEnIbjaDDPJm36rG9pztcEzT8dGk23SBhXBB1H4z+OWze0ooFzz8pDBYFvp9j9tvFByf9y4EFdVnz026CGR5qMr7fxMHN8UUdlyJAzlTBDRC28k+L4FB8078ljyD91tUj1ocnTs8vdEf7znbzm+GIjEZnoZE5rnLL700Xc7yHfz05nWxy03vBB9YGHYOWxgMQGBCR24CVYNE1hpfKxN0zKnfJDmmMgMmBWqNbjfSyFCBWSCGCgR8yFXiHyEj+VtD1FB3FpC1zI0kFbzifiKTLm9yq5zFmur+q8FHqjoOBWsBPiDbnCC2ErunV6cJ6TygXFYHYp7MKN9RUlSIS8/xBAGYLzeqUnBF4QbsTuUkUqGs6CaiDWKWjQK9EJkjpkTmNCPYXL",Go={zh_cn:null,zh_tw:null},uM={zh_cn:"0x17bcc4d8547e5a7135e365d1ab443aaae95e76d8230c2782c67305d4f21497a1",zh_tw:"0x51e720e90c7b87bec1d70eb6e74a21a449bd3ec9c020b01d3a40ed991b60ce5d"},Id="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lM="~!@#$%^&*_-=[]{}|;:,.()<>?";function vx(t){if(Go[t.locale]===null){Go[t.locale]=[];for(var e=0,r=0;r<2048;r++){var n=lM.indexOf(Od[r*3]),i=[228+(n>>2),128+Id.indexOf(Od[r*3+1]),128+Id.indexOf(Od[r*3+2])];if(t.locale==="zh_tw")for(var a=n%4,d=a;d<3;d++)i[d]=Id.indexOf(cM[e++])+(d==0?228:128);Go[t.locale].push((0,fM.toUtf8String)(i))}if(Vs.Wordlist.check(t)!==uM[t.locale])throw Go[t.locale]=null,new Error("BIP39 Wordlist for "+t.locale+" (Chinese) FAILED")}}var mx=function(t){sM(e,t);function e(r){return t.call(this,"zh_"+r)||this}return e.prototype.getWord=function(r){return vx(this),Go[this.locale][r]},e.prototype.getWordIndex=function(r){return vx(this),Go[this.locale].indexOf(r)},e.prototype.split=function(r){return r=r.replace(/(?:\u3000| )+/g,""),r.split("")},e}(Vs.Wordlist),Nd=new mx("cn");Wi.langZhCn=Nd;Vs.Wordlist.register(Nd);Vs.Wordlist.register(Nd,"zh");var xx=new mx("tw");Wi.langZhTw=xx;Vs.Wordlist.register(xx)});var wx=V(hc=>{"use strict";var vF=A(M());Object.defineProperty(hc,"__esModule",{value:!0});hc.wordlists=void 0;var dM=Zm(),hM=Qm(),pM=tx(),bM=ox(),gM=ux(),vM=hx(),mM=gx(),kd=yx();hc.wordlists={cz:dM.langCz,en:hM.langEn,es:pM.langEs,fr:bM.langFr,it:mM.langIt,ja:gM.langJa,ko:vM.langKo,zh:kd.langZhCn,zh_cn:kd.langZhCn,zh_tw:kd.langZhTw}});var Mx=V(Yi=>{"use strict";var xF=A(M());Object.defineProperty(Yi,"__esModule",{value:!0});Yi.wordlists=Yi.Wordlist=Yi.logger=void 0;var Ax=Yn();Object.defineProperty(Yi,"logger",{enumerable:!0,get:function(){return Ax.logger}});Object.defineProperty(Yi,"Wordlist",{enumerable:!0,get:function(){return Ax.Wordlist}});var xM=wx();Object.defineProperty(Yi,"wordlists",{enumerable:!0,get:function(){return xM.wordlists}})});var Sx=V(pc=>{"use strict";var wF=A(M());Object.defineProperty(pc,"__esModule",{value:!0});pc.version=void 0;pc.version="hdnode/5.8.0"});var Hd=V(dr=>{"use strict";var MF=A(M());Object.defineProperty(dr,"__esModule",{value:!0});dr.getAccountPath=dr.isValidMnemonic=dr.entropyToMnemonic=dr.mnemonicToEntropy=dr.mnemonicToSeed=dr.HDNode=dr.defaultPath=void 0;var Bx=Om(),tt=nt(),Cx=ga(),js=Or(),yM=ic(),lr=$r(),Tx=Ns(),$n=qm(),wM=Js(),Ex=Mx(),AM=Ct(),MM=Sx(),Qs=new AM.Logger(MM.version),SM=Cx.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),TM=(0,js.toUtf8Bytes)("Bitcoin seed"),zo=2147483648;function Px(t){return(1<<t)-1<<8-t}function EM(t){return(1<<t)-1}function bc(t){return(0,tt.hexZeroPad)((0,tt.hexlify)(t),32)}function _x(t){return Bx.Base58.encode((0,tt.concat)([t,(0,tt.hexDataSlice)((0,$n.sha256)((0,$n.sha256)(t)),0,4)]))}function Jd(t){if(t==null)return Ex.wordlists.en;if(typeof t=="string"){var e=Ex.wordlists[t];return e==null&&Qs.throwArgumentError("unknown locale","wordlist",t),e}return t}var Xo={};dr.defaultPath="m/44'/60'/0'/0/0";var _M=function(){function t(e,r,n,i,a,d,v,y){if(e!==Xo)throw new Error("HDNode constructor cannot be called directly");if(r){var x=new Tx.SigningKey(r);(0,lr.defineReadOnly)(this,"privateKey",x.privateKey),(0,lr.defineReadOnly)(this,"publicKey",x.compressedPublicKey)}else(0,lr.defineReadOnly)(this,"privateKey",null),(0,lr.defineReadOnly)(this,"publicKey",(0,tt.hexlify)(n));(0,lr.defineReadOnly)(this,"parentFingerprint",i),(0,lr.defineReadOnly)(this,"fingerprint",(0,tt.hexDataSlice)((0,$n.ripemd160)((0,$n.sha256)(this.publicKey)),0,4)),(0,lr.defineReadOnly)(this,"address",(0,wM.computeAddress)(this.publicKey)),(0,lr.defineReadOnly)(this,"chainCode",a),(0,lr.defineReadOnly)(this,"index",d),(0,lr.defineReadOnly)(this,"depth",v),y==null?((0,lr.defineReadOnly)(this,"mnemonic",null),(0,lr.defineReadOnly)(this,"path",null)):typeof y=="string"?((0,lr.defineReadOnly)(this,"mnemonic",null),(0,lr.defineReadOnly)(this,"path",y)):((0,lr.defineReadOnly)(this,"mnemonic",y),(0,lr.defineReadOnly)(this,"path",y.path))}return Object.defineProperty(t.prototype,"extendedKey",{get:function(){if(this.depth>=256)throw new Error("Depth too large!");return _x((0,tt.concat)([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",(0,tt.hexlify)(this.depth),this.parentFingerprint,(0,tt.hexZeroPad)((0,tt.hexlify)(this.index),4),this.chainCode,this.privateKey!=null?(0,tt.concat)(["0x00",this.privateKey]):this.publicKey]))},enumerable:!1,configurable:!0}),t.prototype.neuter=function(){return new t(Xo,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)},t.prototype._derive=function(e){if(e>4294967295)throw new Error("invalid index - "+String(e));var r=this.path;r&&(r+="/"+(e&~zo));var n=new Uint8Array(37);if(e&zo){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set((0,tt.arrayify)(this.privateKey),1),r&&(r+="'")}else n.set((0,tt.arrayify)(this.publicKey));for(var i=24;i>=0;i-=8)n[33+(i>>3)]=e>>24-i&255;var a=(0,tt.arrayify)((0,$n.computeHmac)($n.SupportedAlgorithm.sha512,this.chainCode,n)),d=a.slice(0,32),v=a.slice(32),y=null,x=null;if(this.privateKey)y=bc(Cx.BigNumber.from(d).add(this.privateKey).mod(SM));else{var B=new Tx.SigningKey((0,tt.hexlify)(d));x=B._addPoint(this.publicKey)}var C=r,D=this.mnemonic;return D&&(C=Object.freeze({phrase:D.phrase,path:r,locale:D.locale||"en"})),new t(Xo,y,x,this.fingerprint,bc(v),e,this.depth+1,C)},t.prototype.derivePath=function(e){var r=e.split("/");if(r.length===0||r[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);r[0]==="m"&&r.shift();for(var n=this,i=0;i<r.length;i++){var a=r[i];if(a.match(/^[0-9]+'$/)){var d=parseInt(a.substring(0,a.length-1));if(d>=zo)throw new Error("invalid path index - "+a);n=n._derive(zo+d)}else if(a.match(/^[0-9]+$/)){var d=parseInt(a);if(d>=zo)throw new Error("invalid path index - "+a);n=n._derive(d)}else throw new Error("invalid path component - "+a)}return n},t._fromSeed=function(e,r){var n=(0,tt.arrayify)(e);if(n.length<16||n.length>64)throw new Error("invalid seed");var i=(0,tt.arrayify)((0,$n.computeHmac)($n.SupportedAlgorithm.sha512,TM,n));return new t(Xo,bc(i.slice(0,32)),null,"0x00000000",bc(i.slice(32)),0,0,r)},t.fromMnemonic=function(e,r,n){return n=Jd(n),e=Rx(Ud(e,n),n),t._fromSeed(Lx(e,r),{phrase:e,path:"m",locale:n.locale})},t.fromSeed=function(e){return t._fromSeed(e,null)},t.fromExtendedKey=function(e){var r=Bx.Base58.decode(e);(r.length!==82||_x(r.slice(0,78))!==e)&&Qs.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var n=r[4],i=(0,tt.hexlify)(r.slice(5,9)),a=parseInt((0,tt.hexlify)(r.slice(9,13)).substring(2),16),d=(0,tt.hexlify)(r.slice(13,45)),v=r.slice(45,78);switch((0,tt.hexlify)(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new t(Xo,null,(0,tt.hexlify)(v),i,d,a,n,null);case"0x0488ade4":case"0x04358394 ":if(v[0]!==0)break;return new t(Xo,(0,tt.hexlify)(v.slice(1)),null,i,d,a,n,null)}return Qs.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")},t}();dr.HDNode=_M;function Lx(t,e){e||(e="");var r=(0,js.toUtf8Bytes)("mnemonic"+e,js.UnicodeNormalizationForm.NFKD);return(0,yM.pbkdf2)((0,js.toUtf8Bytes)(t,js.UnicodeNormalizationForm.NFKD),r,2048,64,"sha512")}dr.mnemonicToSeed=Lx;function Ud(t,e){e=Jd(e),Qs.checkNormalize();var r=e.split(t);if(r.length%3!==0)throw new Error("invalid mnemonic");for(var n=(0,tt.arrayify)(new Uint8Array(Math.ceil(11*r.length/8))),i=0,a=0;a<r.length;a++){var d=e.getWordIndex(r[a].normalize("NFKD"));if(d===-1)throw new Error("invalid mnemonic");for(var v=0;v<11;v++)d&1<<10-v&&(n[i>>3]|=1<<7-i%8),i++}var y=32*r.length/3,x=r.length/3,B=Px(x),C=(0,tt.arrayify)((0,$n.sha256)(n.slice(0,y/8)))[0]&B;if(C!==(n[n.length-1]&B))throw new Error("invalid checksum");return(0,tt.hexlify)(n.slice(0,y/8))}dr.mnemonicToEntropy=Ud;function Rx(t,e){if(e=Jd(e),t=(0,tt.arrayify)(t),t.length%4!==0||t.length<16||t.length>32)throw new Error("invalid entropy");for(var r=[0],n=11,i=0;i<t.length;i++)n>8?(r[r.length-1]<<=8,r[r.length-1]|=t[i],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[i]>>8-n,r.push(t[i]&EM(8-n)),n+=3);var a=t.length/4,d=(0,tt.arrayify)((0,$n.sha256)(t))[0]&Px(a);return r[r.length-1]<<=a,r[r.length-1]|=d>>8-a,e.join(r.map(function(v){return e.getWord(v)}))}dr.entropyToMnemonic=Rx;function BM(t,e){try{return Ud(t,e),!0}catch{}return!1}dr.isValidMnemonic=BM;function CM(t){return(typeof t!="number"||t<0||t>=zo||t%1)&&Qs.throwArgumentError("invalid account index","index",t),"m/44'/60'/"+t+"'/0/0"}dr.getAccountPath=CM});var Fx=V(gc=>{"use strict";var TF=A(M());Object.defineProperty(gc,"__esModule",{value:!0});gc.randomBytes=void 0;var PM=rt("crypto"),LM=nt();function RM(t){return(0,LM.arrayify)((0,PM.randomBytes)(t))}gc.randomBytes=RM});var Dx=V(vc=>{"use strict";var _F=A(M());Object.defineProperty(vc,"__esModule",{value:!0});vc.shuffled=void 0;function FM(t){t=t.slice();for(var e=t.length-1;e>0;e--){var r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}return t}vc.shuffled=FM});var qd=V(Ko=>{"use strict";var CF=A(M());Object.defineProperty(Ko,"__esModule",{value:!0});Ko.shuffled=Ko.randomBytes=void 0;var DM=Fx();Object.defineProperty(Ko,"randomBytes",{enumerable:!0,get:function(){return DM.randomBytes}});var OM=Dx();Object.defineProperty(Ko,"shuffled",{enumerable:!0,get:function(){return OM.shuffled}})});var Xd=V((Gd,Ox)=>{"use strict";var PF=A(M());(function(t){function e(o){return parseInt(o)===o}function r(o){if(!e(o.length))return!1;for(var p=0;p<o.length;p++)if(!e(o[p])||o[p]<0||o[p]>255)return!1;return!0}function n(o,p){if(o.buffer&&ArrayBuffer.isView(o)&&o.name==="Uint8Array")return p&&(o.slice?o=o.slice():o=Array.prototype.slice.call(o)),o;if(Array.isArray(o)){if(!r(o))throw new Error("Array contains invalid value: "+o);return new Uint8Array(o)}if(e(o.length)&&r(o))return new Uint8Array(o);throw new Error("unsupported array-like object")}function i(o){return new Uint8Array(o)}function a(o,p,E,b,w){(b!=null||w!=null)&&(o.slice?o=o.slice(b,w):o=Array.prototype.slice.call(o,b,w)),p.set(o,E)}var d=function(){function o(E){var b=[],w=0;for(E=encodeURI(E);w<E.length;){var U=E.charCodeAt(w++);U===37?(b.push(parseInt(E.substr(w,2),16)),w+=2):b.push(U)}return n(b)}function p(E){for(var b=[],w=0;w<E.length;){var U=E[w];U<128?(b.push(String.fromCharCode(U)),w++):U>191&&U<224?(b.push(String.fromCharCode((U&31)<<6|E[w+1]&63)),w+=2):(b.push(String.fromCharCode((U&15)<<12|(E[w+1]&63)<<6|E[w+2]&63)),w+=3)}return b.join("")}return{toBytes:o,fromBytes:p}}(),v=function(){function o(b){for(var w=[],U=0;U<b.length;U+=2)w.push(parseInt(b.substr(U,2),16));return w}var p="0123456789abcdef";function E(b){for(var w=[],U=0;U<b.length;U++){var S=b[U];w.push(p[(S&240)>>4]+p[S&15])}return w.join("")}return{toBytes:o,fromBytes:E}}(),y={16:10,24:12,32:14},x=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],B=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],C=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],D=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],F=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],P=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],X=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],W=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],K=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],ie=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],ee=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],ae=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],ne=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],$=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],fe=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function te(o){for(var p=[],E=0;E<o.length;E+=4)p.push(o[E]<<24|o[E+1]<<16|o[E+2]<<8|o[E+3]);return p}var Y=function(o){if(!(this instanceof Y))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:n(o,!0)}),this._prepare()};Y.prototype._prepare=function(){var o=y[this.key.length];if(o==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var p=0;p<=o;p++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var E=(o+1)*4,b=this.key.length/4,w=te(this.key),U,p=0;p<b;p++)U=p>>2,this._Ke[U][p%4]=w[p],this._Kd[o-U][p%4]=w[p];for(var S=0,N=b,G;N<E;){if(G=w[b-1],w[0]^=B[G>>16&255]<<24^B[G>>8&255]<<16^B[G&255]<<8^B[G>>24&255]^x[S]<<24,S+=1,b!=8)for(var p=1;p<b;p++)w[p]^=w[p-1];else{for(var p=1;p<b/2;p++)w[p]^=w[p-1];G=w[b/2-1],w[b/2]^=B[G&255]^B[G>>8&255]<<8^B[G>>16&255]<<16^B[G>>24&255]<<24;for(var p=b/2+1;p<b;p++)w[p]^=w[p-1]}for(var p=0,Z,_;p<b&&N<E;)Z=N>>2,_=N%4,this._Ke[Z][_]=w[p],this._Kd[o-Z][_]=w[p++],N++}for(var Z=1;Z<o;Z++)for(var _=0;_<4;_++)G=this._Kd[Z][_],this._Kd[Z][_]=ae[G>>24&255]^ne[G>>16&255]^$[G>>8&255]^fe[G&255]},Y.prototype.encrypt=function(o){if(o.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var p=this._Ke.length-1,E=[0,0,0,0],b=te(o),w=0;w<4;w++)b[w]^=this._Ke[0][w];for(var U=1;U<p;U++){for(var w=0;w<4;w++)E[w]=D[b[w]>>24&255]^F[b[(w+1)%4]>>16&255]^P[b[(w+2)%4]>>8&255]^X[b[(w+3)%4]&255]^this._Ke[U][w];b=E.slice()}for(var S=i(16),N,w=0;w<4;w++)N=this._Ke[p][w],S[4*w]=(B[b[w]>>24&255]^N>>24)&255,S[4*w+1]=(B[b[(w+1)%4]>>16&255]^N>>16)&255,S[4*w+2]=(B[b[(w+2)%4]>>8&255]^N>>8)&255,S[4*w+3]=(B[b[(w+3)%4]&255]^N)&255;return S},Y.prototype.decrypt=function(o){if(o.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var p=this._Kd.length-1,E=[0,0,0,0],b=te(o),w=0;w<4;w++)b[w]^=this._Kd[0][w];for(var U=1;U<p;U++){for(var w=0;w<4;w++)E[w]=W[b[w]>>24&255]^K[b[(w+3)%4]>>16&255]^ie[b[(w+2)%4]>>8&255]^ee[b[(w+1)%4]&255]^this._Kd[U][w];b=E.slice()}for(var S=i(16),N,w=0;w<4;w++)N=this._Kd[p][w],S[4*w]=(C[b[w]>>24&255]^N>>24)&255,S[4*w+1]=(C[b[(w+3)%4]>>16&255]^N>>16)&255,S[4*w+2]=(C[b[(w+2)%4]>>8&255]^N>>8)&255,S[4*w+3]=(C[b[(w+1)%4]&255]^N)&255;return S};var T=function(o){if(!(this instanceof T))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new Y(o)};T.prototype.encrypt=function(o){if(o=n(o),o.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var p=i(o.length),E=i(16),b=0;b<o.length;b+=16)a(o,E,0,b,b+16),E=this._aes.encrypt(E),a(E,p,b);return p},T.prototype.decrypt=function(o){if(o=n(o),o.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var p=i(o.length),E=i(16),b=0;b<o.length;b+=16)a(o,E,0,b,b+16),E=this._aes.decrypt(E),a(E,p,b);return p};var s=function(o,p){if(!(this instanceof s))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",!p)p=i(16);else if(p.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=n(p,!0),this._aes=new Y(o)};s.prototype.encrypt=function(o){if(o=n(o),o.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var p=i(o.length),E=i(16),b=0;b<o.length;b+=16){a(o,E,0,b,b+16);for(var w=0;w<16;w++)E[w]^=this._lastCipherblock[w];this._lastCipherblock=this._aes.encrypt(E),a(this._lastCipherblock,p,b)}return p},s.prototype.decrypt=function(o){if(o=n(o),o.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var p=i(o.length),E=i(16),b=0;b<o.length;b+=16){a(o,E,0,b,b+16),E=this._aes.decrypt(E);for(var w=0;w<16;w++)p[b+w]=E[w]^this._lastCipherblock[w];a(o,this._lastCipherblock,0,b,b+16)}return p};var u=function(o,p,E){if(!(this instanceof u))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",!p)p=i(16);else if(p.length!=16)throw new Error("invalid initialation vector size (must be 16 size)");E||(E=1),this.segmentSize=E,this._shiftRegister=n(p,!0),this._aes=new Y(o)};u.prototype.encrypt=function(o){if(o.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var p=n(o,!0),E,b=0;b<p.length;b+=this.segmentSize){E=this._aes.encrypt(this._shiftRegister);for(var w=0;w<this.segmentSize;w++)p[b+w]^=E[w];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(p,this._shiftRegister,16-this.segmentSize,b,b+this.segmentSize)}return p},u.prototype.decrypt=function(o){if(o.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var p=n(o,!0),E,b=0;b<p.length;b+=this.segmentSize){E=this._aes.encrypt(this._shiftRegister);for(var w=0;w<this.segmentSize;w++)p[b+w]^=E[w];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(o,this._shiftRegister,16-this.segmentSize,b,b+this.segmentSize)}return p};var l=function(o,p){if(!(this instanceof l))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",!p)p=i(16);else if(p.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastPrecipher=n(p,!0),this._lastPrecipherIndex=16,this._aes=new Y(o)};l.prototype.encrypt=function(o){for(var p=n(o,!0),E=0;E<p.length;E++)this._lastPrecipherIndex===16&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),p[E]^=this._lastPrecipher[this._lastPrecipherIndex++];return p},l.prototype.decrypt=l.prototype.encrypt;var f=function(o){if(!(this instanceof f))throw Error("Counter must be instanitated with `new`");o!==0&&!o&&(o=1),typeof o=="number"?(this._counter=i(16),this.setValue(o)):this.setBytes(o)};f.prototype.setValue=function(o){if(typeof o!="number"||parseInt(o)!=o)throw new Error("invalid counter value (must be an integer)");for(var p=15;p>=0;--p)this._counter[p]=o%256,o=o>>8},f.prototype.setBytes=function(o){if(o=n(o,!0),o.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=o},f.prototype.increment=function(){for(var o=15;o>=0;o--)if(this._counter[o]===255)this._counter[o]=0;else{this._counter[o]++;break}};var c=function(o,p){if(!(this instanceof c))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",p instanceof f||(p=new f(p)),this._counter=p,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new Y(o)};c.prototype.encrypt=function(o){for(var p=n(o,!0),E=0;E<p.length;E++)this._remainingCounterIndex===16&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),p[E]^=this._remainingCounter[this._remainingCounterIndex++];return p},c.prototype.decrypt=c.prototype.encrypt;function g(o){o=n(o,!0);var p=16-o.length%16,E=i(o.length+p);a(o,E);for(var b=o.length;b<E.length;b++)E[b]=p;return E}function m(o){if(o=n(o,!0),o.length<16)throw new Error("PKCS#7 invalid length");var p=o[o.length-1];if(p>16)throw new Error("PKCS#7 padding byte out of range");for(var E=o.length-p,b=0;b<p;b++)if(o[E+b]!==p)throw new Error("PKCS#7 invalid padding byte");var w=i(E);return a(o,w,0,0,E),w}var h={AES:Y,Counter:f,ModeOfOperation:{ecb:T,cbc:s,cfb:u,ofb:l,ctr:c},utils:{hex:v,utf8:d},padding:{pkcs7:{pad:g,strip:m}},_arrayTest:{coerceArray:n,createArray:i,copyArray:a}};typeof Gd<"u"?Ox.exports=h:typeof define=="function"&&define.amd?define(h):(t.aesjs&&(h._aesjs=t.aesjs),t.aesjs=h)})(Gd)});var zd=V(mc=>{"use strict";var RF=A(M());Object.defineProperty(mc,"__esModule",{value:!0});mc.version=void 0;mc.version="json-wallets/5.8.0"});var Kd=V(cn=>{"use strict";var DF=A(M());Object.defineProperty(cn,"__esModule",{value:!0});cn.uuidV4=cn.searchPath=cn.getPassword=cn.zpad=cn.looseArrayify=void 0;var xc=nt(),Ix=Or();function IM(t){return typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),(0,xc.arrayify)(t)}cn.looseArrayify=IM;function NM(t,e){for(t=String(t);t.length<e;)t="0"+t;return t}cn.zpad=NM;function kM(t){return typeof t=="string"?(0,Ix.toUtf8Bytes)(t,Ix.UnicodeNormalizationForm.NFKC):(0,xc.arrayify)(t)}cn.getPassword=kM;function JM(t,e){for(var r=t,n=e.toLowerCase().split("/"),i=0;i<n.length;i++){var a=null;for(var d in r)if(d.toLowerCase()===n[i]){a=r[d];break}if(a===null)return null;r=a}return r}cn.searchPath=JM;function UM(t){var e=(0,xc.arrayify)(t);e[6]=e[6]&15|64,e[8]=e[8]&63|128;var r=(0,xc.hexlify)(e);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}cn.uuidV4=UM});var Ux=V(ei=>{"use strict";var IF=A(M()),HM=ei&&ei.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),qM=ei&&ei.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ei,"__esModule",{value:!0});ei.decrypt=ei.CrowdsaleAccount=void 0;var Nx=qM(Xd()),GM=wa(),kx=nt(),XM=Nn(),zM=ic(),KM=Or(),ZM=$r(),VM=Ct(),jM=zd(),QM=new VM.Logger(jM.version),yc=Kd(),Jx=function(t){HM(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.isCrowdsaleAccount=function(r){return!!(r&&r._isCrowdsaleAccount)},e}(ZM.Description);ei.CrowdsaleAccount=Jx;function WM(t,e){var r=JSON.parse(t);e=(0,yc.getPassword)(e);var n=(0,GM.getAddress)((0,yc.searchPath)(r,"ethaddr")),i=(0,yc.looseArrayify)((0,yc.searchPath)(r,"encseed"));(!i||i.length%16!==0)&&QM.throwArgumentError("invalid encseed","json",t);for(var a=(0,kx.arrayify)((0,zM.pbkdf2)(e,e,2e3,32,"sha256")).slice(0,16),d=i.slice(0,16),v=i.slice(16),y=new Nx.default.ModeOfOperation.cbc(a,d),x=Nx.default.padding.pkcs7.strip((0,kx.arrayify)(y.decrypt(v))),B="",C=0;C<x.length;C++)B+=String.fromCharCode(x[C]);var D=(0,KM.toUtf8Bytes)(B),F=(0,XM.keccak256)(D);return new Jx({_isCrowdsaleAccount:!0,address:n,privateKey:F})}ei.decrypt=WM});var Xx=V($i=>{"use strict";var kF=A(M());Object.defineProperty($i,"__esModule",{value:!0});$i.getJsonWalletAddress=$i.isKeystoreWallet=$i.isCrowdsaleWallet=void 0;var Hx=wa();function qx(t){var e=null;try{e=JSON.parse(t)}catch{return!1}return e.encseed&&e.ethaddr}$i.isCrowdsaleWallet=qx;function Gx(t){var e=null;try{e=JSON.parse(t)}catch{return!1}return!(!e.version||parseInt(e.version)!==e.version||parseInt(e.version)!==3)}$i.isKeystoreWallet=Gx;function YM(t){if(qx(t))try{return(0,Hx.getAddress)(JSON.parse(t).ethaddr)}catch{return null}if(Gx(t))try{return(0,Hx.getAddress)(JSON.parse(t).address)}catch{return null}return null}$i.getJsonWalletAddress=YM});var Kx=V((Zd,zx)=>{"use strict";var JF=A(M());(function(t){function r(F){let P=new Uint32Array([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]),X=1779033703,W=3144134277,K=1013904242,ie=2773480762,ee=1359893119,ae=2600822924,ne=528734635,$=1541459225,fe=new Uint32Array(64);function te(c){let g=0,m=c.length;for(;m>=64;){let h=X,o=W,p=K,E=ie,b=ee,w=ae,U=ne,S=$,N,G,Z,_,R;for(G=0;G<16;G++)Z=g+G*4,fe[G]=(c[Z]&255)<<24|(c[Z+1]&255)<<16|(c[Z+2]&255)<<8|c[Z+3]&255;for(G=16;G<64;G++)N=fe[G-2],_=(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10,N=fe[G-15],R=(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3,fe[G]=(_+fe[G-7]|0)+(R+fe[G-16]|0)|0;for(G=0;G<64;G++)_=(((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&w^~b&U)|0)+(S+(P[G]+fe[G]|0)|0)|0,R=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&o^h&p^o&p)|0,S=U,U=w,w=b,b=E+_|0,E=p,p=o,o=h,h=_+R|0;X=X+h|0,W=W+o|0,K=K+p|0,ie=ie+E|0,ee=ee+b|0,ae=ae+w|0,ne=ne+U|0,$=$+S|0,g+=64,m-=64}}te(F);let Y,T=F.length%64,s=F.length/536870912|0,u=F.length<<3,l=T<56?56:120,f=F.slice(F.length-T,F.length);for(f.push(128),Y=T+1;Y<l;Y++)f.push(0);return f.push(s>>>24&255),f.push(s>>>16&255),f.push(s>>>8&255),f.push(s>>>0&255),f.push(u>>>24&255),f.push(u>>>16&255),f.push(u>>>8&255),f.push(u>>>0&255),te(f),[X>>>24&255,X>>>16&255,X>>>8&255,X>>>0&255,W>>>24&255,W>>>16&255,W>>>8&255,W>>>0&255,K>>>24&255,K>>>16&255,K>>>8&255,K>>>0&255,ie>>>24&255,ie>>>16&255,ie>>>8&255,ie>>>0&255,ee>>>24&255,ee>>>16&255,ee>>>8&255,ee>>>0&255,ae>>>24&255,ae>>>16&255,ae>>>8&255,ae>>>0&255,ne>>>24&255,ne>>>16&255,ne>>>8&255,ne>>>0&255,$>>>24&255,$>>>16&255,$>>>8&255,$>>>0&255]}function n(F,P,X){F=F.length<=64?F:r(F);let W=64+P.length+4,K=new Array(W),ie=new Array(64),ee,ae=[];for(ee=0;ee<64;ee++)K[ee]=54;for(ee=0;ee<F.length;ee++)K[ee]^=F[ee];for(ee=0;ee<P.length;ee++)K[64+ee]=P[ee];for(ee=W-4;ee<W;ee++)K[ee]=0;for(ee=0;ee<64;ee++)ie[ee]=92;for(ee=0;ee<F.length;ee++)ie[ee]^=F[ee];function ne(){for(let $=W-1;$>=W-4;$--){if(K[$]++,K[$]<=255)return;K[$]=0}}for(;X>=32;)ne(),ae=ae.concat(r(ie.concat(r(K)))),X-=32;return X>0&&(ne(),ae=ae.concat(r(ie.concat(r(K))).slice(0,X))),ae}function i(F,P,X,W,K){let ie;for(y(F,(2*X-1)*16,K,0,16),ie=0;ie<2*X;ie++)v(F,ie*16,K,16),d(K,W),y(K,0,F,P+ie*16,16);for(ie=0;ie<X;ie++)y(F,P+ie*2*16,F,ie*16,16);for(ie=0;ie<X;ie++)y(F,P+(ie*2+1)*16,F,(ie+X)*16,16)}function a(F,P){return F<<P|F>>>32-P}function d(F,P){y(F,0,P,0,16);for(let X=8;X>0;X-=2)P[4]^=a(P[0]+P[12],7),P[8]^=a(P[4]+P[0],9),P[12]^=a(P[8]+P[4],13),P[0]^=a(P[12]+P[8],18),P[9]^=a(P[5]+P[1],7),P[13]^=a(P[9]+P[5],9),P[1]^=a(P[13]+P[9],13),P[5]^=a(P[1]+P[13],18),P[14]^=a(P[10]+P[6],7),P[2]^=a(P[14]+P[10],9),P[6]^=a(P[2]+P[14],13),P[10]^=a(P[6]+P[2],18),P[3]^=a(P[15]+P[11],7),P[7]^=a(P[3]+P[15],9),P[11]^=a(P[7]+P[3],13),P[15]^=a(P[11]+P[7],18),P[1]^=a(P[0]+P[3],7),P[2]^=a(P[1]+P[0],9),P[3]^=a(P[2]+P[1],13),P[0]^=a(P[3]+P[2],18),P[6]^=a(P[5]+P[4],7),P[7]^=a(P[6]+P[5],9),P[4]^=a(P[7]+P[6],13),P[5]^=a(P[4]+P[7],18),P[11]^=a(P[10]+P[9],7),P[8]^=a(P[11]+P[10],9),P[9]^=a(P[8]+P[11],13),P[10]^=a(P[9]+P[8],18),P[12]^=a(P[15]+P[14],7),P[13]^=a(P[12]+P[15],9),P[14]^=a(P[13]+P[12],13),P[15]^=a(P[14]+P[13],18);for(let X=0;X<16;++X)F[X]+=P[X]}function v(F,P,X,W){for(let K=0;K<W;K++)X[K]^=F[P+K]}function y(F,P,X,W,K){for(;K--;)X[W++]=F[P++]}function x(F){if(!F||typeof F.length!="number")return!1;for(let P=0;P<F.length;P++){let X=F[P];if(typeof X!="number"||X%1||X<0||X>=256)return!1}return!0}function B(F,P){if(typeof F!="number"||F%1)throw new Error("invalid "+P);return F}function C(F,P,X,W,K,ie,ee){if(X=B(X,"N"),W=B(W,"r"),K=B(K,"p"),ie=B(ie,"dkLen"),X===0||X&X-1)throw new Error("N must be power of 2");if(X>2147483647/128/W)throw new Error("N too large");if(W>2147483647/128/K)throw new Error("r too large");if(!x(F))throw new Error("password must be an array or buffer");if(F=Array.prototype.slice.call(F),!x(P))throw new Error("salt must be an array or buffer");P=Array.prototype.slice.call(P);let ae=n(F,P,K*128*W),ne=new Uint32Array(K*32*W);for(let b=0;b<ne.length;b++){let w=b*4;ne[b]=(ae[w+3]&255)<<24|(ae[w+2]&255)<<16|(ae[w+1]&255)<<8|(ae[w+0]&255)<<0}let $=new Uint32Array(64*W),fe=new Uint32Array(32*W*X),te=32*W,Y=new Uint32Array(16),T=new Uint32Array(16),s=K*X*2,u=0,l=null,f=!1,c=0,g=0,m,h,o=ee?parseInt(1e3/W):4294967295,p=typeof setImmediate<"u"?setImmediate:setTimeout,E=function(){if(f)return ee(new Error("cancelled"),u/s);let b;switch(c){case 0:h=g*32*W,y(ne,h,$,0,te),c=1,m=0;case 1:b=X-m,b>o&&(b=o);for(let U=0;U<b;U++)y($,0,fe,(m+U)*te,te),i($,te,W,Y,T);if(m+=b,u+=b,ee){let U=parseInt(1e3*u/s);if(U!==l){if(f=ee(null,u/s),f)break;l=U}}if(m<X)break;m=0,c=2;case 2:b=X-m,b>o&&(b=o);for(let U=0;U<b;U++){let S=(2*W-1)*16,N=$[S]&X-1;v(fe,N*te,$,te),i($,te,W,Y,T)}if(m+=b,u+=b,ee){let U=parseInt(1e3*u/s);if(U!==l){if(f=ee(null,u/s),f)break;l=U}}if(m<X)break;if(y($,0,ne,h,te),g++,g<K){c=0;break}ae=[];for(let U=0;U<ne.length;U++)ae.push(ne[U]>>0&255),ae.push(ne[U]>>8&255),ae.push(ne[U]>>16&255),ae.push(ne[U]>>24&255);let w=n(F,ae,ie);return ee&&ee(null,1,w),w}ee&&p(E)};if(!ee)for(;;){let b=E();if(b!=null)return b}E()}let D={scrypt:function(F,P,X,W,K,ie,ee){return new Promise(function(ae,ne){let $=0;ee&&ee(0),C(F,P,X,W,K,ie,function(fe,te,Y){if(fe)ne(fe);else if(Y)ee&&$!==1&&ee(1),ae(new Uint8Array(Y));else if(ee&&te!==$)return $=te,ee(te)})})},syncScrypt:function(F,P,X,W,K,ie){return new Uint8Array(C(F,P,X,W,K,ie))}};typeof Zd<"u"?zx.exports=D:typeof define=="function"&&define.amd?define(D):t&&(t.scrypt&&(t._scrypt=t.scrypt),t.scrypt=D)})(Zd)});var r2=V(zt=>{"use strict";var HF=A(M()),$M=zt&&zt.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),eS=zt&&zt.__awaiter||function(t,e,r,n){function i(a){return a instanceof r?a:new r(function(d){d(a)})}return new(r||(r=Promise))(function(a,d){function v(B){try{x(n.next(B))}catch(C){d(C)}}function y(B){try{x(n.throw(B))}catch(C){d(C)}}function x(B){B.done?a(B.value):i(B.value).then(v,y)}x((n=n.apply(t,e||[])).next())})},tS=zt&&zt.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,d;return d={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(x){return function(B){return y([x,B])}}function y(x){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=x[0]&2?i.return:x[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,x[1])).done)return a;switch(i=0,a&&(x=[x[0]&2,a.value]),x[0]){case 0:case 1:a=x;break;case 4:return r.label++,{value:x[1],done:!1};case 5:r.label++,i=x[1],x=[0];continue;case 7:x=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(x[0]===6||x[0]===2)){r=0;continue}if(x[0]===3&&(!a||x[1]>a[0]&&x[1]<a[3])){r.label=x[1];break}if(x[0]===6&&r.label<a[1]){r.label=a[1],a=x;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(x);break}a[2]&&r.ops.pop(),r.trys.pop();continue}x=e.call(t,r)}catch(B){x=[6,B],i=0}finally{n=a=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}},Vx=zt&&zt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zt,"__esModule",{value:!0});zt.encrypt=zt.decrypt=zt.decryptSync=zt.KeystoreAccount=void 0;var ea=Vx(Xd()),Qd=Vx(Kx()),jx=wa(),Rt=nt(),Fa=Hd(),Qx=Nn(),rS=ic(),wc=qd(),nS=$r(),Wx=Js(),je=Kd(),Vd=Ct(),iS=zd(),jd=new Vd.Logger(iS.version);function Zx(t){return t!=null&&t.mnemonic&&t.mnemonic.phrase}var Yx=function(t){$M(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.isKeystoreAccount=function(r){return!!(r&&r._isKeystoreAccount)},e}(nS.Description);zt.KeystoreAccount=Yx;function aS(t,e,r){var n=(0,je.searchPath)(t,"crypto/cipher");if(n==="aes-128-ctr"){var i=(0,je.looseArrayify)((0,je.searchPath)(t,"crypto/cipherparams/iv")),a=new ea.default.Counter(i),d=new ea.default.ModeOfOperation.ctr(e,a);return(0,Rt.arrayify)(d.decrypt(r))}return null}function $x(t,e){var r=(0,je.looseArrayify)((0,je.searchPath)(t,"crypto/ciphertext")),n=(0,Rt.hexlify)((0,Qx.keccak256)((0,Rt.concat)([e.slice(16,32),r]))).substring(2);if(n!==(0,je.searchPath)(t,"crypto/mac").toLowerCase())throw new Error("invalid password");var i=aS(t,e.slice(0,16),r);i||jd.throwError("unsupported cipher",Vd.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});var a=e.slice(32,64),d=(0,Wx.computeAddress)(i);if(t.address){var v=t.address.toLowerCase();if(v.substring(0,2)!=="0x"&&(v="0x"+v),(0,jx.getAddress)(v)!==d)throw new Error("address mismatch")}var y={_isKeystoreAccount:!0,address:d,privateKey:(0,Rt.hexlify)(i)};if((0,je.searchPath)(t,"x-ethers/version")==="0.1"){var x=(0,je.looseArrayify)((0,je.searchPath)(t,"x-ethers/mnemonicCiphertext")),B=(0,je.looseArrayify)((0,je.searchPath)(t,"x-ethers/mnemonicCounter")),C=new ea.default.Counter(B),D=new ea.default.ModeOfOperation.ctr(a,C),F=(0,je.searchPath)(t,"x-ethers/path")||Fa.defaultPath,P=(0,je.searchPath)(t,"x-ethers/locale")||"en",X=(0,Rt.arrayify)(D.decrypt(x));try{var W=(0,Fa.entropyToMnemonic)(X,P),K=Fa.HDNode.fromMnemonic(W,null,P).derivePath(F);if(K.privateKey!=y.privateKey)throw new Error("mnemonic mismatch");y.mnemonic=K.mnemonic}catch(ie){if(ie.code!==Vd.Logger.errors.INVALID_ARGUMENT||ie.argument!=="wordlist")throw ie}}return new Yx(y)}function e2(t,e,r,n,i){return(0,Rt.arrayify)((0,rS.pbkdf2)(t,e,r,n,i))}function oS(t,e,r,n,i){return Promise.resolve(e2(t,e,r,n,i))}function t2(t,e,r,n,i){var a=(0,je.getPassword)(e),d=(0,je.searchPath)(t,"crypto/kdf");if(d&&typeof d=="string"){var v=function(W,K){return jd.throwArgumentError("invalid key-derivation function parameters",W,K)};if(d.toLowerCase()==="scrypt"){var y=(0,je.looseArrayify)((0,je.searchPath)(t,"crypto/kdfparams/salt")),x=parseInt((0,je.searchPath)(t,"crypto/kdfparams/n")),B=parseInt((0,je.searchPath)(t,"crypto/kdfparams/r")),C=parseInt((0,je.searchPath)(t,"crypto/kdfparams/p"));(!x||!B||!C)&&v("kdf",d),x&x-1&&v("N",x);var D=parseInt((0,je.searchPath)(t,"crypto/kdfparams/dklen"));return D!==32&&v("dklen",D),n(a,y,x,B,C,64,i)}else if(d.toLowerCase()==="pbkdf2"){var y=(0,je.looseArrayify)((0,je.searchPath)(t,"crypto/kdfparams/salt")),F=null,P=(0,je.searchPath)(t,"crypto/kdfparams/prf");P==="hmac-sha256"?F="sha256":P==="hmac-sha512"?F="sha512":v("prf",P);var X=parseInt((0,je.searchPath)(t,"crypto/kdfparams/c")),D=parseInt((0,je.searchPath)(t,"crypto/kdfparams/dklen"));return D!==32&&v("dklen",D),r(a,y,X,D,F)}}return jd.throwArgumentError("unsupported key-derivation function","kdf",d)}function sS(t,e){var r=JSON.parse(t),n=t2(r,e,e2,Qd.default.syncScrypt);return $x(r,n)}zt.decryptSync=sS;function fS(t,e,r){return eS(this,void 0,void 0,function(){var n,i;return tS(this,function(a){switch(a.label){case 0:return n=JSON.parse(t),[4,t2(n,e,oS,Qd.default.scrypt,r)];case 1:return i=a.sent(),[2,$x(n,i)]}})})}zt.decrypt=fS;function cS(t,e,r,n){try{if((0,jx.getAddress)(t.address)!==(0,Wx.computeAddress)(t.privateKey))throw new Error("address/privateKey mismatch");if(Zx(t)){var i=t.mnemonic,a=Fa.HDNode.fromMnemonic(i.phrase,null,i.locale).derivePath(i.path||Fa.defaultPath);if(a.privateKey!=t.privateKey)throw new Error("mnemonic mismatch")}}catch(ee){return Promise.reject(ee)}typeof r=="function"&&!n&&(n=r,r={}),r||(r={});var d=(0,Rt.arrayify)(t.privateKey),v=(0,je.getPassword)(e),y=null,x=null,B=null;if(Zx(t)){var C=t.mnemonic;y=(0,Rt.arrayify)((0,Fa.mnemonicToEntropy)(C.phrase,C.locale||"en")),x=C.path||Fa.defaultPath,B=C.locale||"en"}var D=r.client;D||(D="ethers.js");var F=null;r.salt?F=(0,Rt.arrayify)(r.salt):F=(0,wc.randomBytes)(32);var P=null;if(r.iv){if(P=(0,Rt.arrayify)(r.iv),P.length!==16)throw new Error("invalid iv")}else P=(0,wc.randomBytes)(16);var X=null;if(r.uuid){if(X=(0,Rt.arrayify)(r.uuid),X.length!==16)throw new Error("invalid uuid")}else X=(0,wc.randomBytes)(16);var W=1<<17,K=8,ie=1;return r.scrypt&&(r.scrypt.N&&(W=r.scrypt.N),r.scrypt.r&&(K=r.scrypt.r),r.scrypt.p&&(ie=r.scrypt.p)),Qd.default.scrypt(v,F,W,K,ie,64,n).then(function(ee){ee=(0,Rt.arrayify)(ee);var ae=ee.slice(0,16),ne=ee.slice(16,32),$=ee.slice(32,64),fe=new ea.default.Counter(P),te=new ea.default.ModeOfOperation.ctr(ae,fe),Y=(0,Rt.arrayify)(te.encrypt(d)),T=(0,Qx.keccak256)((0,Rt.concat)([ne,Y])),s={address:t.address.substring(2).toLowerCase(),id:(0,je.uuidV4)(X),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,Rt.hexlify)(P).substring(2)},ciphertext:(0,Rt.hexlify)(Y).substring(2),kdf:"scrypt",kdfparams:{salt:(0,Rt.hexlify)(F).substring(2),n:W,dklen:32,p:ie,r:K},mac:T.substring(2)}};if(y){var u=(0,wc.randomBytes)(16),l=new ea.default.Counter(u),f=new ea.default.ModeOfOperation.ctr($,l),c=(0,Rt.arrayify)(f.encrypt(y)),g=new Date,m=g.getUTCFullYear()+"-"+(0,je.zpad)(g.getUTCMonth()+1,2)+"-"+(0,je.zpad)(g.getUTCDate(),2)+"T"+(0,je.zpad)(g.getUTCHours(),2)+"-"+(0,je.zpad)(g.getUTCMinutes(),2)+"-"+(0,je.zpad)(g.getUTCSeconds(),2)+".0Z";s["x-ethers"]={client:D,gethFilename:"UTC--"+m+"--"+s.address,mnemonicCounter:(0,Rt.hexlify)(u).substring(2),mnemonicCiphertext:(0,Rt.hexlify)(c).substring(2),path:x,locale:B,version:"0.1"}}return JSON.stringify(s)})}zt.encrypt=cS});var n2=V(Ft=>{"use strict";var GF=A(M());Object.defineProperty(Ft,"__esModule",{value:!0});Ft.decryptJsonWalletSync=Ft.decryptJsonWallet=Ft.getJsonWalletAddress=Ft.isKeystoreWallet=Ft.isCrowdsaleWallet=Ft.encryptKeystore=Ft.decryptKeystoreSync=Ft.decryptKeystore=Ft.decryptCrowdsale=void 0;var Wd=Ux();Object.defineProperty(Ft,"decryptCrowdsale",{enumerable:!0,get:function(){return Wd.decrypt}});var Da=Xx();Object.defineProperty(Ft,"getJsonWalletAddress",{enumerable:!0,get:function(){return Da.getJsonWalletAddress}});Object.defineProperty(Ft,"isCrowdsaleWallet",{enumerable:!0,get:function(){return Da.isCrowdsaleWallet}});Object.defineProperty(Ft,"isKeystoreWallet",{enumerable:!0,get:function(){return Da.isKeystoreWallet}});var Ws=r2();Object.defineProperty(Ft,"decryptKeystore",{enumerable:!0,get:function(){return Ws.decrypt}});Object.defineProperty(Ft,"decryptKeystoreSync",{enumerable:!0,get:function(){return Ws.decryptSync}});Object.defineProperty(Ft,"encryptKeystore",{enumerable:!0,get:function(){return Ws.encrypt}});function uS(t,e,r){if((0,Da.isCrowdsaleWallet)(t)){r&&r(0);var n=(0,Wd.decrypt)(t,e);return r&&r(1),Promise.resolve(n)}return(0,Da.isKeystoreWallet)(t)?(0,Ws.decrypt)(t,e,r):Promise.reject(new Error("invalid JSON wallet"))}Ft.decryptJsonWallet=uS;function lS(t,e){if((0,Da.isCrowdsaleWallet)(t))return(0,Wd.decrypt)(t,e);if((0,Da.isKeystoreWallet)(t))return(0,Ws.decryptSync)(t,e);throw new Error("invalid JSON wallet")}Ft.decryptJsonWalletSync=lS});var i2=V(Ac=>{"use strict";var zF=A(M());Object.defineProperty(Ac,"__esModule",{value:!0});Ac.version=void 0;Ac.version="wallet/5.8.0"});var ef=V(Lr=>{"use strict";var ZF=A(M()),dS=Lr&&Lr.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),a2=Lr&&Lr.__awaiter||function(t,e,r,n){function i(a){return a instanceof r?a:new r(function(d){d(a)})}return new(r||(r=Promise))(function(a,d){function v(B){try{x(n.next(B))}catch(C){d(C)}}function y(B){try{x(n.throw(B))}catch(C){d(C)}}function x(B){B.done?a(B.value):i(B.value).then(v,y)}x((n=n.apply(t,e||[])).next())})},o2=Lr&&Lr.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,d;return d={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(x){return function(B){return y([x,B])}}function y(x){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=x[0]&2?i.return:x[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,x[1])).done)return a;switch(i=0,a&&(x=[x[0]&2,a.value]),x[0]){case 0:case 1:a=x;break;case 4:return r.label++,{value:x[1],done:!1};case 5:r.label++,i=x[1],x=[0];continue;case 7:x=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(x[0]===6||x[0]===2)){r=0;continue}if(x[0]===3&&(!a||x[1]>a[0]&&x[1]<a[3])){r.label=x[1];break}if(x[0]===6&&r.label<a[1]){r.label=a[1],a=x;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(x);break}a[2]&&r.ops.pop(),r.trys.pop();continue}x=e.call(t,r)}catch(B){x=[6,B],i=0}finally{n=a=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.verifyTypedData=Lr.verifyMessage=Lr.Wallet=void 0;var s2=wa(),hS=Pm(),pS=Fm(),Vo=nt(),$s=Cs(),Ys=Hd(),f2=Nn(),ti=$r(),bS=qd(),Yd=Ns(),$d=n2(),Oa=Js(),c2=Ct(),gS=i2(),Zo=new c2.Logger(gS.version);function vS(t){return t!=null&&(0,Vo.isHexString)(t.privateKey,32)&&t.address!=null}function mS(t){var e=t.mnemonic;return e&&e.phrase}var xS=function(t){dS(e,t);function e(r,n){var i=t.call(this)||this;if(vS(r)){var a=new Yd.SigningKey(r.privateKey);if((0,ti.defineReadOnly)(i,"_signingKey",function(){return a}),(0,ti.defineReadOnly)(i,"address",(0,Oa.computeAddress)(i.publicKey)),i.address!==(0,s2.getAddress)(r.address)&&Zo.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),mS(r)){var d=r.mnemonic;(0,ti.defineReadOnly)(i,"_mnemonic",function(){return{phrase:d.phrase,path:d.path||Ys.defaultPath,locale:d.locale||"en"}});var v=i.mnemonic,y=Ys.HDNode.fromMnemonic(v.phrase,null,v.locale).derivePath(v.path);(0,Oa.computeAddress)(y.privateKey)!==i.address&&Zo.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,ti.defineReadOnly)(i,"_mnemonic",function(){return null})}else{if(Yd.SigningKey.isSigningKey(r))r.curve!=="secp256k1"&&Zo.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,ti.defineReadOnly)(i,"_signingKey",function(){return r});else{typeof r=="string"&&r.match(/^[0-9a-f]*$/i)&&r.length===64&&(r="0x"+r);var x=new Yd.SigningKey(r);(0,ti.defineReadOnly)(i,"_signingKey",function(){return x})}(0,ti.defineReadOnly)(i,"_mnemonic",function(){return null}),(0,ti.defineReadOnly)(i,"address",(0,Oa.computeAddress)(i.publicKey))}return n&&!hS.Provider.isProvider(n)&&Zo.throwArgumentError("invalid provider","provider",n),(0,ti.defineReadOnly)(i,"provider",n||null),i}return Object.defineProperty(e.prototype,"mnemonic",{get:function(){return this._mnemonic()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"privateKey",{get:function(){return this._signingKey().privateKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"publicKey",{get:function(){return this._signingKey().publicKey},enumerable:!1,configurable:!0}),e.prototype.getAddress=function(){return Promise.resolve(this.address)},e.prototype.connect=function(r){return new e(this,r)},e.prototype.signTransaction=function(r){var n=this;return(0,ti.resolveProperties)(r).then(function(i){i.from!=null&&((0,s2.getAddress)(i.from)!==n.address&&Zo.throwArgumentError("transaction from address mismatch","transaction.from",r.from),delete i.from);var a=n._signingKey().signDigest((0,f2.keccak256)((0,Oa.serialize)(i)));return(0,Oa.serialize)(i,a)})},e.prototype.signMessage=function(r){return a2(this,void 0,void 0,function(){return o2(this,function(n){return[2,(0,Vo.joinSignature)(this._signingKey().signDigest((0,$s.hashMessage)(r)))]})})},e.prototype._signTypedData=function(r,n,i){return a2(this,void 0,void 0,function(){var a,d=this;return o2(this,function(v){switch(v.label){case 0:return[4,$s._TypedDataEncoder.resolveNames(r,n,i,function(y){return d.provider==null&&Zo.throwError("cannot resolve ENS names without a provider",c2.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:y}),d.provider.resolveName(y)})];case 1:return a=v.sent(),[2,(0,Vo.joinSignature)(this._signingKey().signDigest($s._TypedDataEncoder.hash(a.domain,n,a.value)))]}})})},e.prototype.encrypt=function(r,n,i){if(typeof n=="function"&&!i&&(i=n,n={}),i&&typeof i!="function")throw new Error("invalid callback");return n||(n={}),(0,$d.encryptKeystore)(this,r,n,i)},e.createRandom=function(r){var n=(0,bS.randomBytes)(16);r||(r={}),r.extraEntropy&&(n=(0,Vo.arrayify)((0,Vo.hexDataSlice)((0,f2.keccak256)((0,Vo.concat)([n,r.extraEntropy])),0,16)));var i=(0,Ys.entropyToMnemonic)(n,r.locale);return e.fromMnemonic(i,r.path,r.locale)},e.fromEncryptedJson=function(r,n,i){return(0,$d.decryptJsonWallet)(r,n,i).then(function(a){return new e(a)})},e.fromEncryptedJsonSync=function(r,n){return new e((0,$d.decryptJsonWalletSync)(r,n))},e.fromMnemonic=function(r,n,i){return n||(n=Ys.defaultPath),new e(Ys.HDNode.fromMnemonic(r,null,i).derivePath(n))},e}(pS.Signer);Lr.Wallet=xS;function yS(t,e){return(0,Oa.recoverAddress)((0,$s.hashMessage)(t),e)}Lr.verifyMessage=yS;function wS(t,e,r,n){return(0,Oa.recoverAddress)($s._TypedDataEncoder.hash(t,e,r),n)}Lr.verifyTypedData=wS});var g2=V((rh,b2)=>{var WF=A(M());var Mc=rt("buffer"),ri=Mc.Buffer;function p2(t,e){for(var r in t)e[r]=t[r]}ri.from&&ri.alloc&&ri.allocUnsafe&&ri.allocUnsafeSlow?b2.exports=Mc:(p2(Mc,rh),rh.Buffer=Ia);function Ia(t,e,r){return ri(t,e,r)}Ia.prototype=Object.create(ri.prototype);p2(ri,Ia);Ia.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ri(t,e,r)};Ia.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=ri(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};Ia.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ri(t)};Ia.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Mc.SlowBuffer(t)}});var m2=V((YF,v2)=>{"use strict";var $F=A(M()),Sc=g2().Buffer;function AS(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var n=0;n<t.length;n++){var i=t.charAt(n),a=i.charCodeAt(0);if(e[a]!==255)throw new TypeError(i+" is ambiguous");e[a]=n}var d=t.length,v=t.charAt(0),y=Math.log(d)/Math.log(256),x=Math.log(256)/Math.log(d);function B(F){if((Array.isArray(F)||F instanceof Uint8Array)&&(F=Sc.from(F)),!Sc.isBuffer(F))throw new TypeError("Expected Buffer");if(F.length===0)return"";for(var P=0,X=0,W=0,K=F.length;W!==K&&F[W]===0;)W++,P++;for(var ie=(K-W)*x+1>>>0,ee=new Uint8Array(ie);W!==K;){for(var ae=F[W],ne=0,$=ie-1;(ae!==0||ne<X)&&$!==-1;$--,ne++)ae+=256*ee[$]>>>0,ee[$]=ae%d>>>0,ae=ae/d>>>0;if(ae!==0)throw new Error("Non-zero carry");X=ne,W++}for(var fe=ie-X;fe!==ie&&ee[fe]===0;)fe++;for(var te=v.repeat(P);fe<ie;++fe)te+=t.charAt(ee[fe]);return te}function C(F){if(typeof F!="string")throw new TypeError("Expected String");if(F.length===0)return Sc.alloc(0);for(var P=0,X=0,W=0;F[P]===v;)X++,P++;for(var K=(F.length-P)*y+1>>>0,ie=new Uint8Array(K);P<F.length;){var ee=F.charCodeAt(P);if(ee>255)return;var ae=e[ee];if(ae===255)return;for(var ne=0,$=K-1;(ae!==0||ne<W)&&$!==-1;$--,ne++)ae+=d*ie[$]>>>0,ie[$]=ae%256>>>0,ae=ae/256>>>0;if(ae!==0)throw new Error("Non-zero carry");W=ne,P++}for(var fe=K-W;fe!==K&&ie[fe]===0;)fe++;var te=Sc.allocUnsafe(X+(K-fe));te.fill(0,0,X);for(var Y=X;fe!==K;)te[Y++]=ie[fe++];return te}function D(F){var P=C(F);if(P)return P;throw new Error("Non-base"+d+" character")}return{encode:B,decodeUnsafe:C,decode:D}}v2.exports=AS});var y2=V((eD,x2)=>{var tD=A(M()),MS=m2(),SS="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";x2.exports=MS(SS)});var I2=V((aD,O2)=>{var oD=A(M()),S2=rt("fs"),Si=rt("path"),T2=rt("os"),E2=typeof __webpack_require__=="function"?__non_webpack_require__:rt,TS=process.config&&process.config.variables||{},ES=!!process.env.PREBUILDS_ONLY,w2=process.versions.modules,nh=CS()?"electron":BS()?"node-webkit":"node",ih=process.env.npm_config_arch||T2.arch(),ah=process.env.npm_config_platform||T2.platform(),_2=process.env.LIBC||(PS(ah)?"musl":"glibc"),oh=process.env.ARM_VERSION||(ih==="arm64"?"8":TS.arm_version)||"",B2=(process.versions.uv||"").split(".")[0];O2.exports=ni;function ni(t){return E2(ni.resolve(t))}ni.resolve=ni.path=function(t){t=Si.resolve(t||".");try{var e=E2(Si.join(t,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[e+"_PREBUILD"]&&(t=process.env[e+"_PREBUILD"])}catch{}if(!ES){var r=A2(Si.join(t,"build/Release"),M2);if(r)return r;var n=A2(Si.join(t,"build/Debug"),M2);if(n)return n}var i=v(t);if(i)return i;var a=v(Si.dirname(process.execPath));if(a)return a;var d=["platform="+ah,"arch="+ih,"runtime="+nh,"abi="+w2,"uv="+B2,oh?"armv="+oh:"","libc="+_2,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"",typeof __webpack_require__=="function"?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+d+`
13
13
  loaded from: `+t+`
14
- `);function v(y){var x=oh(Si.join(y,"prebuilds")).map(B2),B=x.filter(C2(ih,nh)).sort(P2)[0];if(B){var C=Si.join(y,"prebuilds",B.name),D=oh(C).map(L2),F=D.filter(R2(rh,y2)),P=F.sort(F2(rh))[0];if(P)return Si.join(C,P.file)}}};function oh(t){try{return M2.readdirSync(t)}catch{return[]}}function w2(t,e){var r=oh(t).filter(e);return r[0]&&Si.join(t,r[0])}function A2(t){return/\.node$/.test(t)}function B2(t){var e=t.split("-");if(e.length===2){var r=e[0],n=e[1].split("+");if(r&&n.length&&n.every(Boolean))return{name:t,platform:r,architectures:n}}}function C2(t,e){return function(r){return r==null||r.platform!==t?!1:r.architectures.includes(e)}}function P2(t,e){return t.architectures.length-e.architectures.length}function L2(t){var e=t.split("."),r=e.pop(),n={file:t,specificity:0};if(r==="node"){for(var i=0;i<e.length;i++){var a=e[i];if(a==="node"||a==="electron"||a==="node-webkit")n.runtime=a;else if(a==="napi")n.napi=!0;else if(a.slice(0,3)==="abi")n.abi=a.slice(3);else if(a.slice(0,2)==="uv")n.uv=a.slice(2);else if(a.slice(0,4)==="armv")n.armv=a.slice(4);else if(a==="glibc"||a==="musl")n.libc=a;else continue;n.specificity++}return n}}function R2(t,e){return function(r){return!(r==null||r.runtime&&r.runtime!==t&&!TS(r)||r.abi&&r.abi!==e&&!r.napi||r.uv&&r.uv!==_2||r.armv&&r.armv!==ah||r.libc&&r.libc!==E2)}}function TS(t){return t.runtime==="node"&&t.napi}function F2(t){return function(e,r){return e.runtime!==r.runtime?e.runtime===t?-1:1:e.abi!==r.abi?e.abi?-1:1:e.specificity!==r.specificity?e.specificity>r.specificity?-1:1:0}}function ES(){return!!(process.versions&&process.versions.nw)}function _S(){return process.versions&&process.versions.electron||process.env.ELECTRON_RUN_AS_NODE?!0:typeof window<"u"&&window.process&&window.process.type==="renderer"}function BS(t){return t==="linux"&&M2.existsSync("/etc/alpine-release")}ni.parseTags=L2;ni.matchTags=R2;ni.compareTags=F2;ni.parseTuple=B2;ni.matchTuple=C2;ni.compareTuples=P2});var ch=V((oD,fh)=>{var sD=A(S()),sh=typeof __webpack_require__=="function"?__non_webpack_require__:rt;typeof sh.addon=="function"?fh.exports=sh.addon.bind(sh):fh.exports=O2()});var uh=V((cD,I2)=>{var uD=A(S()),We={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function un(t,e){if(!t)throw new Error(e)}function Ze(t,e,r){if(un(e instanceof Uint8Array,`Expected ${t} to be an Uint8Array`),r!==void 0)if(Array.isArray(r)){let n=r.join(", "),i=`Expected ${t} to be an Uint8Array with length [${n}]`;un(r.includes(e.length),i)}else{let n=`Expected ${t} to be an Uint8Array with length ${r}`;un(e.length===r,n)}}function Ia(t){un(Qo(t)==="Boolean","Expected compressed to be a Boolean")}function _n(t=r=>new Uint8Array(r),e){return typeof t=="function"&&(t=t(e)),Ze("output",t,e),t}function Qo(t){return Object.prototype.toString.call(t).slice(8,-1)}I2.exports=t=>({contextRandomize(e){switch(un(e===null||e instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),e!==null&&Ze("seed",e,32),t.contextRandomize(e)){case 1:throw new Error(We.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(e){return Ze("private key",e,32),t.privateKeyVerify(e)===0},privateKeyNegate(e){switch(Ze("private key",e,32),t.privateKeyNegate(e)){case 0:return e;case 1:throw new Error(We.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(e,r){switch(Ze("private key",e,32),Ze("tweak",r,32),t.privateKeyTweakAdd(e,r)){case 0:return e;case 1:throw new Error(We.TWEAK_ADD)}},privateKeyTweakMul(e,r){switch(Ze("private key",e,32),Ze("tweak",r,32),t.privateKeyTweakMul(e,r)){case 0:return e;case 1:throw new Error(We.TWEAK_MUL)}},publicKeyVerify(e){return Ze("public key",e,[33,65]),t.publicKeyVerify(e)===0},publicKeyCreate(e,r=!0,n){switch(Ze("private key",e,32),Ia(r),n=_n(n,r?33:65),t.publicKeyCreate(n,e)){case 0:return n;case 1:throw new Error(We.SECKEY_INVALID);case 2:throw new Error(We.PUBKEY_SERIALIZE)}},publicKeyConvert(e,r=!0,n){switch(Ze("public key",e,[33,65]),Ia(r),n=_n(n,r?33:65),t.publicKeyConvert(n,e)){case 0:return n;case 1:throw new Error(We.PUBKEY_PARSE);case 2:throw new Error(We.PUBKEY_SERIALIZE)}},publicKeyNegate(e,r=!0,n){switch(Ze("public key",e,[33,65]),Ia(r),n=_n(n,r?33:65),t.publicKeyNegate(n,e)){case 0:return n;case 1:throw new Error(We.PUBKEY_PARSE);case 2:throw new Error(We.IMPOSSIBLE_CASE);case 3:throw new Error(We.PUBKEY_SERIALIZE)}},publicKeyCombine(e,r=!0,n){un(Array.isArray(e),"Expected public keys to be an Array"),un(e.length>0,"Expected public keys array will have more than zero items");for(let i of e)Ze("public key",i,[33,65]);switch(Ia(r),n=_n(n,r?33:65),t.publicKeyCombine(n,e)){case 0:return n;case 1:throw new Error(We.PUBKEY_PARSE);case 2:throw new Error(We.PUBKEY_COMBINE);case 3:throw new Error(We.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(e,r,n=!0,i){switch(Ze("public key",e,[33,65]),Ze("tweak",r,32),Ia(n),i=_n(i,n?33:65),t.publicKeyTweakAdd(i,e,r)){case 0:return i;case 1:throw new Error(We.PUBKEY_PARSE);case 2:throw new Error(We.TWEAK_ADD)}},publicKeyTweakMul(e,r,n=!0,i){switch(Ze("public key",e,[33,65]),Ze("tweak",r,32),Ia(n),i=_n(i,n?33:65),t.publicKeyTweakMul(i,e,r)){case 0:return i;case 1:throw new Error(We.PUBKEY_PARSE);case 2:throw new Error(We.TWEAK_MUL)}},signatureNormalize(e){switch(Ze("signature",e,64),t.signatureNormalize(e)){case 0:return e;case 1:throw new Error(We.SIG_PARSE)}},signatureExport(e,r){Ze("signature",e,64),r=_n(r,72);let n={output:r,outputlen:72};switch(t.signatureExport(n,e)){case 0:return r.slice(0,n.outputlen);case 1:throw new Error(We.SIG_PARSE);case 2:throw new Error(We.IMPOSSIBLE_CASE)}},signatureImport(e,r){switch(Ze("signature",e),r=_n(r,64),t.signatureImport(r,e)){case 0:return r;case 1:throw new Error(We.SIG_PARSE);case 2:throw new Error(We.IMPOSSIBLE_CASE)}},ecdsaSign(e,r,n={},i){Ze("message",e,32),Ze("private key",r,32),un(Qo(n)==="Object","Expected options to be an Object"),n.data!==void 0&&Ze("options.data",n.data),n.noncefn!==void 0&&un(Qo(n.noncefn)==="Function","Expected options.noncefn to be a Function"),i=_n(i,64);let a={signature:i,recid:null};switch(t.ecdsaSign(a,e,r,n.data,n.noncefn)){case 0:return a;case 1:throw new Error(We.SIGN);case 2:throw new Error(We.IMPOSSIBLE_CASE)}},ecdsaVerify(e,r,n){switch(Ze("signature",e,64),Ze("message",r,32),Ze("public key",n,[33,65]),t.ecdsaVerify(e,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(We.SIG_PARSE);case 2:throw new Error(We.PUBKEY_PARSE)}},ecdsaRecover(e,r,n,i=!0,a){switch(Ze("signature",e,64),un(Qo(r)==="Number"&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),Ze("message",n,32),Ia(i),a=_n(a,i?33:65),t.ecdsaRecover(a,e,r,n)){case 0:return a;case 1:throw new Error(We.SIG_PARSE);case 2:throw new Error(We.RECOVER);case 3:throw new Error(We.IMPOSSIBLE_CASE)}},ecdh(e,r,n={},i){switch(Ze("public key",e,[33,65]),Ze("private key",r,32),un(Qo(n)==="Object","Expected options to be an Object"),n.data!==void 0&&Ze("options.data",n.data),n.hashfn!==void 0?(un(Qo(n.hashfn)==="Function","Expected options.hashfn to be a Function"),n.xbuf!==void 0&&Ze("options.xbuf",n.xbuf,32),n.ybuf!==void 0&&Ze("options.ybuf",n.ybuf,32),Ze("output",i)):i=_n(i,32),t.ecdh(i,e,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return i;case 1:throw new Error(We.PUBKEY_PARSE);case 2:throw new Error(We.ECDH)}}})});var k2=V((lD,N2)=>{var dD=A(S()),CS=ch()(__dirname);N2.exports=uh()(new CS.Secp256k1)});var U2=V((hD,J2)=>{var pD=A(S()),PS=xd().ec,ii=new PS("secp256k1"),qe=ii.curve,at=qe.n.constructor;function LS(t,e){let r=new at(e);if(r.cmp(qe.p)>=0)return null;r=r.toRed(qe.red);let n=r.redSqr().redIMul(r).redIAdd(qe.b).redSqrt();t===3!==n.isOdd()&&(n=n.redNeg());let i=r.redSqr().redIMul(r);return n.redSqr().redISub(i.redIAdd(qe.b)).isZero()?ii.keyPair({pub:{x:r,y:n}}):null}function RS(t,e,r){let n=new at(e),i=new at(r);if(n.cmp(qe.p)>=0||i.cmp(qe.p)>=0||(n=n.toRed(qe.red),i=i.toRed(qe.red),(t===6||t===7)&&i.isOdd()!==(t===7)))return null;let a=n.redSqr().redIMul(n);return i.redSqr().redISub(a.redIAdd(qe.b)).isZero()?ii.keyPair({pub:{x:n,y:i}}):null}function ta(t){let e=t[0];switch(e){case 2:case 3:return t.length!==33?null:LS(e,t.subarray(1,33));case 4:case 6:case 7:return t.length!==65?null:RS(e,t.subarray(1,33),t.subarray(33,65));default:return null}}function Na(t,e){let r=e.encode(null,t.length===33);for(let n=0;n<t.length;++n)t[n]=r[n]}J2.exports={contextRandomize(){return 0},privateKeyVerify(t){let e=new at(t);return e.cmp(qe.n)<0&&!e.isZero()?0:1},privateKeyNegate(t){let e=new at(t),r=qe.n.sub(e).umod(qe.n).toArrayLike(Uint8Array,"be",32);return t.set(r),0},privateKeyTweakAdd(t,e){let r=new at(e);if(r.cmp(qe.n)>=0||(r.iadd(new at(t)),r.cmp(qe.n)>=0&&r.isub(qe.n),r.isZero()))return 1;let n=r.toArrayLike(Uint8Array,"be",32);return t.set(n),0},privateKeyTweakMul(t,e){let r=new at(e);if(r.cmp(qe.n)>=0||r.isZero())return 1;r.imul(new at(t)),r.cmp(qe.n)>=0&&(r=r.umod(qe.n));let n=r.toArrayLike(Uint8Array,"be",32);return t.set(n),0},publicKeyVerify(t){return ta(t)===null?1:0},publicKeyCreate(t,e){let r=new at(e);if(r.cmp(qe.n)>=0||r.isZero())return 1;let n=ii.keyFromPrivate(e).getPublic();return Na(t,n),0},publicKeyConvert(t,e){let r=ta(e);if(r===null)return 1;let n=r.getPublic();return Na(t,n),0},publicKeyNegate(t,e){let r=ta(e);if(r===null)return 1;let n=r.getPublic();return n.y=n.y.redNeg(),Na(t,n),0},publicKeyCombine(t,e){let r=new Array(e.length);for(let i=0;i<e.length;++i)if(r[i]=ta(e[i]),r[i]===null)return 1;let n=r[0].getPublic();for(let i=1;i<r.length;++i)n=n.add(r[i].pub);return n.isInfinity()?2:(Na(t,n),0)},publicKeyTweakAdd(t,e,r){let n=ta(e);if(n===null)return 1;if(r=new at(r),r.cmp(qe.n)>=0)return 2;let i=n.getPublic().add(qe.g.mul(r));return i.isInfinity()?2:(Na(t,i),0)},publicKeyTweakMul(t,e,r){let n=ta(e);if(n===null)return 1;if(r=new at(r),r.cmp(qe.n)>=0||r.isZero())return 2;let i=n.getPublic().mul(r);return Na(t,i),0},signatureNormalize(t){let e=new at(t.subarray(0,32)),r=new at(t.subarray(32,64));return e.cmp(qe.n)>=0||r.cmp(qe.n)>=0?1:(r.cmp(ii.nh)===1&&t.set(qe.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(t,e){let r=e.subarray(0,32),n=e.subarray(32,64);if(new at(r).cmp(qe.n)>=0||new at(n).cmp(qe.n)>=0)return 1;let{output:i}=t,a=i.subarray(4,37);a[0]=0,a.set(r,1);let d=33,v=0;for(;d>1&&a[v]===0&&!(a[v+1]&128);--d,++v);if(a=a.subarray(v),a[0]&128||d>1&&a[0]===0&&!(a[1]&128))return 1;let y=i.subarray(39,72);y[0]=0,y.set(n,1);let x=33,B=0;for(;x>1&&y[B]===0&&!(y[B+1]&128);--x,++B);return y=y.subarray(B),y[0]&128||x>1&&y[0]===0&&!(y[1]&128)?1:(t.outputlen=6+d+x,i[0]=48,i[1]=t.outputlen-2,i[2]=2,i[3]=a.length,i.set(a,4),i[4+d]=2,i[5+d]=y.length,i.set(y,6+d),0)},signatureImport(t,e){if(e.length<8||e.length>72||e[0]!==48||e[1]!==e.length-2||e[2]!==2)return 1;let r=e[3];if(r===0||5+r>=e.length||e[4+r]!==2)return 1;let n=e[5+r];if(n===0||6+r+n!==e.length||e[4]&128||r>1&&e[4]===0&&!(e[5]&128)||e[r+6]&128||n>1&&e[r+6]===0&&!(e[r+7]&128))return 1;let i=e.subarray(4,4+r);if(i.length===33&&i[0]===0&&(i=i.subarray(1)),i.length>32)return 1;let a=e.subarray(6+r);if(a.length===33&&a[0]===0&&(a=a.slice(1)),a.length>32)throw new Error("S length is too long");let d=new at(i);d.cmp(qe.n)>=0&&(d=new at(0));let v=new at(e.subarray(6+r));return v.cmp(qe.n)>=0&&(v=new at(0)),t.set(d.toArrayLike(Uint8Array,"be",32),0),t.set(v.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(t,e,r,n,i){if(i){let v=i;i=y=>{let x=v(e,r,null,n,y);if(!(x instanceof Uint8Array&&x.length===32))throw new Error("This is the way");return new at(x)}}let a=new at(r);if(a.cmp(qe.n)>=0||a.isZero())return 1;let d;try{d=ii.sign(e,r,{canonical:!0,k:i,pers:n})}catch{return 1}return t.signature.set(d.r.toArrayLike(Uint8Array,"be",32),0),t.signature.set(d.s.toArrayLike(Uint8Array,"be",32),32),t.recid=d.recoveryParam,0},ecdsaVerify(t,e,r){let n={r:t.subarray(0,32),s:t.subarray(32,64)},i=new at(n.r),a=new at(n.s);if(i.cmp(qe.n)>=0||a.cmp(qe.n)>=0)return 1;if(a.cmp(ii.nh)===1||i.isZero()||a.isZero())return 3;let d=ta(r);if(d===null)return 2;let v=d.getPublic();return ii.verify(e,n,v)?0:3},ecdsaRecover(t,e,r,n){let i={r:e.slice(0,32),s:e.slice(32,64)},a=new at(i.r),d=new at(i.s);if(a.cmp(qe.n)>=0||d.cmp(qe.n)>=0)return 1;if(a.isZero()||d.isZero())return 2;let v;try{v=ii.recoverPubKey(n,i,r)}catch{return 2}return Na(t,v),0},ecdh(t,e,r,n,i,a,d){let v=ta(e);if(v===null)return 1;let y=new at(r);if(y.cmp(qe.n)>=0||y.isZero())return 2;let x=v.getPublic().mul(y);if(i===void 0){let B=x.encode(null,!0),C=ii.hash().update(B).digest();for(let D=0;D<32;++D)t[D]=C[D]}else{a||(a=new Uint8Array(32));let B=x.getX().toArray("be",32);for(let P=0;P<32;++P)a[P]=B[P];d||(d=new Uint8Array(32));let C=x.getY().toArray("be",32);for(let P=0;P<32;++P)d[P]=C[P];let D=i(a,d,n);if(!(D instanceof Uint8Array&&D.length===t.length))return 2;t.set(D)}return 0}}});var q2=V((bD,H2)=>{var gD=A(S());H2.exports=uh()(U2())});var dh=V((vD,lh)=>{var mD=A(S());try{lh.exports=k2()}catch{lh.exports=q2()}});var hh=V((xD,G2)=>{var yD=A(S());G2.exports=rt("stream")});var j2=V((wD,V2)=>{"use strict";var AD=A(S());function X2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function z2(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?X2(Object(r),!0).forEach(function(n){FS(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):X2(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function FS(t,e,r){return e=Z2(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function DS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K2(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Z2(n.key),n)}}function OS(t,e,r){return e&&K2(t.prototype,e),r&&K2(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Z2(t){var e=IS(t,"string");return typeof e=="symbol"?e:String(e)}function IS(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var NS=rt("buffer"),Tc=NS.Buffer,kS=rt("util"),ph=kS.inspect,JS=ph&&ph.custom||"inspect";function US(t,e,r){Tc.prototype.copy.call(t,e,r)}V2.exports=function(){function t(){DS(this,t),this.head=null,this.tail=null,this.length=0}return OS(t,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Tc.alloc(0);for(var n=Tc.allocUnsafe(r>>>0),i=this.head,a=0;i;)US(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,a=n.data;for(r-=a.length;n=n.next;){var d=n.data,v=r>d.length?d.length:r;if(v===d.length?a+=d:a+=d.slice(0,r),r-=v,r===0){v===d.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=d.slice(v));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=Tc.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var d=i.data,v=r>d.length?d.length:r;if(d.copy(n,n.length-r,0,v),r-=v,r===0){v===d.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=d.slice(v));break}++a}return this.length-=a,n}},{key:JS,value:function(r,n){return ph(this,z2(z2({},n),{},{depth:0,customInspect:!1}))}}]),t}()});var gh=V((MD,W2)=>{"use strict";var SD=A(S());function HS(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(bh,this,t)):process.nextTick(bh,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(a){!e&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(Ec,r):(r._writableState.errorEmitted=!0,process.nextTick(Q2,r,a)):process.nextTick(Q2,r,a):e?(process.nextTick(Ec,r),e(a)):process.nextTick(Ec,r)}),this)}function Q2(t,e){bh(t,e),Ec(t)}function Ec(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function qS(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function bh(t,e){t.emit("error",e)}function GS(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}W2.exports={destroy:HS,undestroy:qS,errorOrDestroy:GS}});var ra=V((TD,ey)=>{"use strict";var ED=A(S()),$2={};function ln(t,e,r){r||(r=Error);function n(a,d,v){return typeof e=="string"?e:e(a,d,v)}class i extends r{constructor(d,v,y){super(n(d,v,y))}}i.prototype.name=r.name,i.prototype.code=t,$2[t]=i}function Y2(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(n=>String(n)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function XS(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function zS(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function KS(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}ln("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);ln("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&XS(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(zS(t," argument"))i=`The ${t} ${n} ${Y2(e,"type")}`;else{let a=KS(t,".")?"property":"argument";i=`The "${t}" ${a} ${n} ${Y2(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);ln("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");ln("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});ln("ERR_STREAM_PREMATURE_CLOSE","Premature close");ln("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});ln("ERR_MULTIPLE_CALLBACK","Callback called multiple times");ln("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");ln("ERR_STREAM_WRITE_AFTER_END","write after end");ln("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ln("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);ln("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ey.exports.codes=$2});var vh=V((_D,ty)=>{"use strict";var BD=A(S()),ZS=ra().codes.ERR_INVALID_OPT_VALUE;function VS(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function jS(t,e,r,n){var i=VS(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new ZS(a,i)}return Math.floor(i)}return t.objectMode?16:16*1024}ty.exports={getHighWaterMark:jS}});var ny=V((CD,ry)=>{var PD=A(S());ry.exports=rt("util").deprecate});var yh=V((LD,cy)=>{"use strict";var RD=A(S());cy.exports=bt;function ay(t){var e=this;this.next=null,this.entry=null,this.finish=function(){AT(e,t)}}var Wo;bt.WritableState=rf;var QS={deprecate:ny()},oy=hh(),Bc=rt("buffer").Buffer,WS=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function YS(t){return Bc.from(t)}function $S(t){return Bc.isBuffer(t)||t instanceof WS}var xh=gh(),eT=vh(),tT=eT.getHighWaterMark,na=ra().codes,rT=na.ERR_INVALID_ARG_TYPE,nT=na.ERR_METHOD_NOT_IMPLEMENTED,iT=na.ERR_MULTIPLE_CALLBACK,aT=na.ERR_STREAM_CANNOT_PIPE,oT=na.ERR_STREAM_DESTROYED,sT=na.ERR_STREAM_NULL_VALUES,fT=na.ERR_STREAM_WRITE_AFTER_END,cT=na.ERR_UNKNOWN_ENCODING,Yo=xh.errorOrDestroy;tr()(bt,oy);function uT(){}function rf(t,e,r){Wo=Wo||ka(),t=t||{},typeof r!="boolean"&&(r=e instanceof Wo),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=tT(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){vT(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ay(this)}rf.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(rf.prototype,"buffer",{get:QS.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var _c;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(_c=Function.prototype[Symbol.hasInstance],Object.defineProperty(bt,Symbol.hasInstance,{value:function(e){return _c.call(this,e)?!0:this!==bt?!1:e&&e._writableState instanceof rf}})):_c=function(e){return e instanceof this};function bt(t){Wo=Wo||ka();var e=this instanceof Wo;if(!e&&!_c.call(bt,this))return new bt(t);this._writableState=new rf(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),oy.call(this)}bt.prototype.pipe=function(){Yo(this,new aT)};function lT(t,e){var r=new fT;Yo(t,r),process.nextTick(e,r)}function dT(t,e,r,n){var i;return r===null?i=new sT:typeof r!="string"&&!e.objectMode&&(i=new rT("chunk",["string","Buffer"],r)),i?(Yo(t,i),process.nextTick(n,i),!1):!0}bt.prototype.write=function(t,e,r){var n=this._writableState,i=!1,a=!n.objectMode&&$S(t);return a&&!Bc.isBuffer(t)&&(t=YS(t)),typeof e=="function"&&(r=e,e=null),a?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=uT),n.ending?lT(this,r):(a||dT(this,n,t,r))&&(n.pendingcb++,i=pT(this,n,a,t,e,r)),i};bt.prototype.cork=function(){this._writableState.corked++};bt.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&sy(this,t))};bt.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new cT(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(bt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function hT(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Bc.from(e,r)),e}Object.defineProperty(bt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function pT(t,e,r,n,i,a){if(!r){var d=hT(e,n,i);n!==d&&(r=!0,i="buffer",n=d)}var v=e.objectMode?1:n.length;e.length+=v;var y=e.length<e.highWaterMark;if(y||(e.needDrain=!0),e.writing||e.corked){var x=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},x?x.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else mh(t,e,!1,v,n,i,a);return y}function mh(t,e,r,n,i,a,d){e.writelen=n,e.writecb=d,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new oT("write")):r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function bT(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(tf,t,e),t._writableState.errorEmitted=!0,Yo(t,n)):(i(n),t._writableState.errorEmitted=!0,Yo(t,n),tf(t,e))}function gT(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function vT(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new iT;if(gT(r),e)bT(t,r,n,e,i);else{var a=fy(r)||t.destroyed;!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&sy(t,r),n?process.nextTick(iy,t,r,a,i):iy(t,r,a,i)}}function iy(t,e,r,n){r||mT(t,e),e.pendingcb--,n(),tf(t,e)}function mT(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function sy(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var d=0,v=!0;r;)i[d]=r,r.isBuf||(v=!1),r=r.next,d+=1;i.allBuffers=v,mh(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new ay(e),e.bufferedRequestCount=0}else{for(;r;){var y=r.chunk,x=r.encoding,B=r.callback,C=e.objectMode?1:y.length;if(mh(t,e,!1,C,y,x,B),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}bt.prototype._write=function(t,e,r){r(new nT("_write()"))};bt.prototype._writev=null;bt.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||wT(this,n,r),this};Object.defineProperty(bt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function fy(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function xT(t,e){t._final(function(r){e.pendingcb--,r&&Yo(t,r),e.prefinished=!0,t.emit("prefinish"),tf(t,e)})}function yT(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(xT,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function tf(t,e){var r=fy(e);if(r&&(yT(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function wT(t,e,r){e.ending=!0,tf(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function AT(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty(bt.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});bt.prototype.destroy=xh.destroy;bt.prototype._undestroy=xh.undestroy;bt.prototype._destroy=function(t,e){e(t)}});var ka=V((FD,ly)=>{"use strict";var DD=A(S()),MT=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};ly.exports=ai;var uy=Mh(),Ah=yh();tr()(ai,uy);for(wh=MT(Ah.prototype),Cc=0;Cc<wh.length;Cc++)Pc=wh[Cc],ai.prototype[Pc]||(ai.prototype[Pc]=Ah.prototype[Pc]);var wh,Pc,Cc;function ai(t){if(!(this instanceof ai))return new ai(t);uy.call(this,t),Ah.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",ST)))}Object.defineProperty(ai.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(ai.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(ai.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ST(){this._writableState.ended||process.nextTick(TT,this)}function TT(t){t.end()}Object.defineProperty(ai.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var py=V((Sh,hy)=>{var OD=A(S()),Lc=rt("buffer"),Ti=Lc.Buffer;function dy(t,e){for(var r in t)e[r]=t[r]}Ti.from&&Ti.alloc&&Ti.allocUnsafe&&Ti.allocUnsafeSlow?hy.exports=Lc:(dy(Lc,Sh),Sh.Buffer=$o);function $o(t,e,r){return Ti(t,e,r)}dy(Ti,$o);$o.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Ti(t,e,r)};$o.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Ti(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};$o.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ti(t)};$o.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Lc.SlowBuffer(t)}});var _h=V(gy=>{"use strict";var ND=A(S()),Eh=py().Buffer,by=Eh.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ET(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function _T(t){var e=ET(t);if(typeof e!="string"&&(Eh.isEncoding===by||!by(t)))throw new Error("Unknown encoding: "+t);return e||t}gy.StringDecoder=nf;function nf(t){this.encoding=_T(t);var e;switch(this.encoding){case"utf16le":this.text=FT,this.end=DT,e=4;break;case"utf8":this.fillLast=PT,e=4;break;case"base64":this.text=OT,this.end=IT,e=3;break;default:this.write=NT,this.end=kT;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Eh.allocUnsafe(e)}nf.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};nf.prototype.end=RT;nf.prototype.text=LT;nf.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Th(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function BT(t,e,r){var n=e.length-1;if(n<r)return 0;var i=Th(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=Th(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=Th(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function CT(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function PT(t){var e=this.lastTotal-this.lastNeed,r=CT(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function LT(t,e){var r=BT(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function RT(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function FT(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function DT(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function OT(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function IT(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function NT(t){return t.toString(this.encoding)}function kT(t){return t&&t.length?this.write(t):""}});var Rc=V((kD,xy)=>{"use strict";var JD=A(S()),vy=ra().codes.ERR_STREAM_PREMATURE_CLOSE;function JT(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function UT(){}function HT(t){return t.setHeader&&typeof t.abort=="function"}function my(t,e,r){if(typeof e=="function")return my(t,null,e);e||(e={}),r=JT(r||UT);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,a=function(){t.writable||v()},d=t._writableState&&t._writableState.finished,v=function(){i=!1,d=!0,n||r.call(t)},y=t._readableState&&t._readableState.endEmitted,x=function(){n=!1,y=!0,i||r.call(t)},B=function(P){r.call(t,P)},C=function(){var P;if(n&&!y)return(!t._readableState||!t._readableState.ended)&&(P=new vy),r.call(t,P);if(i&&!d)return(!t._writableState||!t._writableState.ended)&&(P=new vy),r.call(t,P)},D=function(){t.req.on("finish",v)};return HT(t)?(t.on("complete",v),t.on("abort",C),t.req?D():t.on("request",D)):i&&!t._writableState&&(t.on("end",a),t.on("close",a)),t.on("end",x),t.on("finish",v),e.error!==!1&&t.on("error",B),t.on("close",C),function(){t.removeListener("complete",v),t.removeListener("abort",C),t.removeListener("request",D),t.req&&t.req.removeListener("finish",v),t.removeListener("end",a),t.removeListener("close",a),t.removeListener("finish",v),t.removeListener("end",x),t.removeListener("error",B),t.removeListener("close",C)}}xy.exports=my});var wy=V((UD,yy)=>{"use strict";var HD=A(S()),Fc;function ia(t,e,r){return e=qT(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qT(t){var e=GT(t,"string");return typeof e=="symbol"?e:String(e)}function GT(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var XT=Rc(),aa=Symbol("lastResolve"),Ja=Symbol("lastReject"),af=Symbol("error"),Dc=Symbol("ended"),Ua=Symbol("lastPromise"),Bh=Symbol("handlePromise"),Ha=Symbol("stream");function oa(t,e){return{value:t,done:e}}function zT(t){var e=t[aa];if(e!==null){var r=t[Ha].read();r!==null&&(t[Ua]=null,t[aa]=null,t[Ja]=null,e(oa(r,!1)))}}function KT(t){process.nextTick(zT,t)}function ZT(t,e){return function(r,n){t.then(function(){if(e[Dc]){r(oa(void 0,!0));return}e[Bh](r,n)},n)}}var VT=Object.getPrototypeOf(function(){}),jT=Object.setPrototypeOf((Fc={get stream(){return this[Ha]},next:function(){var e=this,r=this[af];if(r!==null)return Promise.reject(r);if(this[Dc])return Promise.resolve(oa(void 0,!0));if(this[Ha].destroyed)return new Promise(function(d,v){process.nextTick(function(){e[af]?v(e[af]):d(oa(void 0,!0))})});var n=this[Ua],i;if(n)i=new Promise(ZT(n,this));else{var a=this[Ha].read();if(a!==null)return Promise.resolve(oa(a,!1));i=new Promise(this[Bh])}return this[Ua]=i,i}},ia(Fc,Symbol.asyncIterator,function(){return this}),ia(Fc,"return",function(){var e=this;return new Promise(function(r,n){e[Ha].destroy(null,function(i){if(i){n(i);return}r(oa(void 0,!0))})})}),Fc),VT),QT=function(e){var r,n=Object.create(jT,(r={},ia(r,Ha,{value:e,writable:!0}),ia(r,aa,{value:null,writable:!0}),ia(r,Ja,{value:null,writable:!0}),ia(r,af,{value:null,writable:!0}),ia(r,Dc,{value:e._readableState.endEmitted,writable:!0}),ia(r,Bh,{value:function(a,d){var v=n[Ha].read();v?(n[Ua]=null,n[aa]=null,n[Ja]=null,a(oa(v,!1))):(n[aa]=a,n[Ja]=d)},writable:!0}),r));return n[Ua]=null,XT(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[Ja];a!==null&&(n[Ua]=null,n[aa]=null,n[Ja]=null,a(i)),n[af]=i;return}var d=n[aa];d!==null&&(n[Ua]=null,n[aa]=null,n[Ja]=null,d(oa(void 0,!0))),n[Dc]=!0}),e.on("readable",KT.bind(null,n)),n};yy.exports=QT});var Ty=V((qD,Sy)=>{"use strict";var GD=A(S());function Ay(t,e,r,n,i,a,d){try{var v=t[a](d),y=v.value}catch(x){r(x);return}v.done?e(y):Promise.resolve(y).then(n,i)}function WT(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function d(y){Ay(a,n,i,d,v,"next",y)}function v(y){Ay(a,n,i,d,v,"throw",y)}d(void 0)})}}function My(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function YT(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?My(Object(r),!0).forEach(function(n){$T(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):My(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function $T(t,e,r){return e=eE(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eE(t){var e=tE(t,"string");return typeof e=="symbol"?e:String(e)}function tE(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var rE=ra().codes.ERR_INVALID_ARG_TYPE;function nE(t,e,r){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new rE("iterable",["Iterable"],e);var i=new t(YT({objectMode:!0},r)),a=!1;i._read=function(){a||(a=!0,d())};function d(){return v.apply(this,arguments)}function v(){return v=WT(function*(){try{var y=yield n.next(),x=y.value,B=y.done;B?i.push(null):i.push(yield x)?d():a=!1}catch(C){i.destroy(C)}}),v.apply(this,arguments)}return i}Sy.exports=nE});var Mh=V((zD,Oy)=>{"use strict";var KD=A(S());Oy.exports=Qe;var es;Qe.ReadableState=Cy;var XD=rt("events").EventEmitter,By=function(e,r){return e.listeners(r).length},sf=hh(),Oc=rt("buffer").Buffer,iE=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function aE(t){return Oc.from(t)}function oE(t){return Oc.isBuffer(t)||t instanceof iE}var Ch=rt("util"),Ie;Ch&&Ch.debuglog?Ie=Ch.debuglog("stream"):Ie=function(){};var sE=j2(),Ih=gh(),fE=vh(),cE=fE.getHighWaterMark,Ic=ra().codes,uE=Ic.ERR_INVALID_ARG_TYPE,lE=Ic.ERR_STREAM_PUSH_AFTER_EOF,dE=Ic.ERR_METHOD_NOT_IMPLEMENTED,hE=Ic.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ts,Ph,Lh;tr()(Qe,sf);var of=Ih.errorOrDestroy,Rh=["error","close","destroy","pause","resume"];function pE(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Cy(t,e,r){es=es||ka(),t=t||{},typeof r!="boolean"&&(r=e instanceof es),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=cE(this,t,"readableHighWaterMark",r),this.buffer=new sE,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(ts||(ts=_h().StringDecoder),this.decoder=new ts(t.encoding),this.encoding=t.encoding)}function Qe(t){if(es=es||ka(),!(this instanceof Qe))return new Qe(t);var e=this instanceof es;this._readableState=new Cy(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),sf.call(this)}Object.defineProperty(Qe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});Qe.prototype.destroy=Ih.destroy;Qe.prototype._undestroy=Ih.undestroy;Qe.prototype._destroy=function(t,e){e(t)};Qe.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Oc.from(t,e),e=""),n=!0),Py(this,t,e,!1,n)};Qe.prototype.unshift=function(t){return Py(this,t,null,!0,!1)};function Py(t,e,r,n,i){Ie("readableAddChunk",e);var a=t._readableState;if(e===null)a.reading=!1,vE(t,a);else{var d;if(i||(d=bE(a,e)),d)of(t,d);else if(a.objectMode||e&&e.length>0)if(typeof e!="string"&&!a.objectMode&&Object.getPrototypeOf(e)!==Oc.prototype&&(e=aE(e)),n)a.endEmitted?of(t,new hE):Fh(t,a,e,!0);else if(a.ended)of(t,new lE);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||e.length!==0?Fh(t,a,e,!1):Oh(t,a)):Fh(t,a,e,!1)}else n||(a.reading=!1,Oh(t,a))}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function Fh(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Nc(t)),Oh(t,e)}function bE(t,e){var r;return!oE(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new uE("chunk",["string","Buffer","Uint8Array"],e)),r}Qe.prototype.isPaused=function(){return this._readableState.flowing===!1};Qe.prototype.setEncoding=function(t){ts||(ts=_h().StringDecoder);var e=new ts(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Ey=1073741824;function gE(t){return t>=Ey?t=Ey:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function _y(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=gE(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Qe.prototype.read=function(t){Ie("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Ie("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Dh(this):Nc(this),null;if(t=_y(t,e),t===0&&e.ended)return e.length===0&&Dh(this),null;var n=e.needReadable;Ie("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,Ie("length less than watermark",n)),e.ended||e.reading?(n=!1,Ie("reading or ended",n)):n&&(Ie("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=_y(r,e)));var i;return t>0?i=Fy(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Dh(this)),i!==null&&this.emit("data",i),i};function vE(t,e){if(Ie("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Nc(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Ly(t)))}}function Nc(t){var e=t._readableState;Ie("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Ie("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Ly,t))}function Ly(t){var e=t._readableState;Ie("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Nh(t)}function Oh(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(mE,t,e))}function mE(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(Ie("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}Qe.prototype._read=function(t){of(this,new dE("_read()"))};Qe.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,Ie("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,a=i?v:q;n.endEmitted?process.nextTick(a):r.once("end",a),t.on("unpipe",d);function d(W,K){Ie("onunpipe"),W===r&&K&&K.hasUnpiped===!1&&(K.hasUnpiped=!0,B())}function v(){Ie("onend"),t.end()}var y=xE(r);t.on("drain",y);var x=!1;function B(){Ie("cleanup"),t.removeListener("close",F),t.removeListener("finish",P),t.removeListener("drain",y),t.removeListener("error",D),t.removeListener("unpipe",d),r.removeListener("end",v),r.removeListener("end",q),r.removeListener("data",C),x=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&y()}r.on("data",C);function C(W){Ie("ondata");var K=t.write(W);Ie("dest.write",K),K===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&Dy(n.pipes,t)!==-1)&&!x&&(Ie("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function D(W){Ie("onerror",W),q(),t.removeListener("error",D),By(t,"error")===0&&of(t,W)}pE(t,"error",D);function F(){t.removeListener("finish",P),q()}t.once("close",F);function P(){Ie("onfinish"),t.removeListener("close",F),q()}t.once("finish",P);function q(){Ie("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(Ie("pipe resume"),r.resume()),t};function xE(t){return function(){var r=t._readableState;Ie("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&By(t,"data")&&(r.flowing=!0,Nh(t))}}Qe.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var d=Dy(e.pipes,t);return d===-1?this:(e.pipes.splice(d,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Qe.prototype.on=function(t,e){var r=sf.prototype.on.call(this,t,e),n=this._readableState;return t==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,Ie("on readable",n.length,n.reading),n.length?Nc(this):n.reading||process.nextTick(yE,this)),r};Qe.prototype.addListener=Qe.prototype.on;Qe.prototype.removeListener=function(t,e){var r=sf.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Ry,this),r};Qe.prototype.removeAllListeners=function(t){var e=sf.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Ry,this),e};function Ry(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function yE(t){Ie("readable nexttick read 0"),t.read(0)}Qe.prototype.resume=function(){var t=this._readableState;return t.flowing||(Ie("resume"),t.flowing=!t.readableListening,wE(this,t)),t.paused=!1,this};function wE(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(AE,t,e))}function AE(t,e){Ie("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Nh(t),e.flowing&&!e.reading&&t.read(0)}Qe.prototype.pause=function(){return Ie("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ie("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Nh(t){var e=t._readableState;for(Ie("flow",e.flowing);e.flowing&&t.read()!==null;);}Qe.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(Ie("wrapped end"),r.decoder&&!r.ended){var d=r.decoder.end();d&&d.length&&e.push(d)}e.push(null)}),t.on("data",function(d){if(Ie("wrapped data"),r.decoder&&(d=r.decoder.write(d)),!(r.objectMode&&d==null)&&!(!r.objectMode&&(!d||!d.length))){var v=e.push(d);v||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=function(v){return function(){return t[v].apply(t,arguments)}}(i));for(var a=0;a<Rh.length;a++)t.on(Rh[a],this.emit.bind(this,Rh[a]));return this._read=function(d){Ie("wrapped _read",d),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(Qe.prototype[Symbol.asyncIterator]=function(){return Ph===void 0&&(Ph=wy()),Ph(this)});Object.defineProperty(Qe.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(Qe.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Qe.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});Qe._fromList=Fy;Object.defineProperty(Qe.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Fy(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Dh(t){var e=t._readableState;Ie("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(ME,e,t))}function ME(t,e){if(Ie("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(Qe.from=function(t,e){return Lh===void 0&&(Lh=Ty()),Lh(Qe,t,e)});function Dy(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var kh=V((ZD,Ny)=>{"use strict";var VD=A(S());Ny.exports=Ei;var kc=ra().codes,SE=kc.ERR_METHOD_NOT_IMPLEMENTED,TE=kc.ERR_MULTIPLE_CALLBACK,EE=kc.ERR_TRANSFORM_ALREADY_TRANSFORMING,_E=kc.ERR_TRANSFORM_WITH_LENGTH_0,Jc=ka();tr()(Ei,Jc);function BE(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new TE);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function Ei(t){if(!(this instanceof Ei))return new Ei(t);Jc.call(this,t),this._transformState={afterTransform:BE.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",CE)}function CE(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Iy(t,e,r)}):Iy(this,null,null)}Ei.prototype.push=function(t,e){return this._transformState.needTransform=!1,Jc.prototype.push.call(this,t,e)};Ei.prototype._transform=function(t,e,r){r(new SE("_transform()"))};Ei.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};Ei.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Ei.prototype._destroy=function(t,e){Jc.prototype._destroy.call(this,t,function(r){e(r)})};function Iy(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new _E;if(t._transformState.transforming)throw new EE;return t.push(null)}});var Uy=V((jD,Jy)=>{"use strict";var QD=A(S());Jy.exports=ff;var ky=kh();tr()(ff,ky);function ff(t){if(!(this instanceof ff))return new ff(t);ky.call(this,t)}ff.prototype._transform=function(t,e,r){r(null,t)}});var zy=V((WD,Xy)=>{"use strict";var YD=A(S()),Jh;function PE(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Gy=ra().codes,LE=Gy.ERR_MISSING_ARGS,RE=Gy.ERR_STREAM_DESTROYED;function Hy(t){if(t)throw t}function FE(t){return t.setHeader&&typeof t.abort=="function"}function DE(t,e,r,n){n=PE(n);var i=!1;t.on("close",function(){i=!0}),Jh===void 0&&(Jh=Rc()),Jh(t,{readable:e,writable:r},function(d){if(d)return n(d);i=!0,n()});var a=!1;return function(d){if(!i&&!a){if(a=!0,FE(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(d||new RE("pipe"))}}}function qy(t){t()}function OE(t,e){return t.pipe(e)}function IE(t){return!t.length||typeof t[t.length-1]!="function"?Hy:t.pop()}function NE(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=IE(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new LE("streams");var i,a=e.map(function(d,v){var y=v<e.length-1,x=v>0;return DE(d,y,x,function(B){i||(i=B),B&&a.forEach(qy),!y&&(a.forEach(qy),n(i))})});return e.reduce(OE)}Xy.exports=NE});var Uh=V((dn,uf)=>{var $D=A(S()),cf=rt("stream");process.env.READABLE_STREAM==="disable"&&cf?(uf.exports=cf.Readable,Object.assign(uf.exports,cf),uf.exports.Stream=cf):(dn=uf.exports=Mh(),dn.Stream=cf||dn,dn.Readable=dn,dn.Writable=yh(),dn.Duplex=ka(),dn.Transform=kh(),dn.PassThrough=Uy(),dn.finished=Rc(),dn.pipeline=zy())});var Vy=V((eO,Zy)=>{var tO=A(S()),{Transform:kE}=Uh();Zy.exports=t=>class Ky extends kE{constructor(r,n,i,a,d){super(d),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._hashBitLength=a,this._options=d,this._state=new t,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let a=null;try{this.update(r,n)}catch(d){a=d}i(a)}_flush(r){let n=null;try{this.push(this.digest())}catch(i){n=i}r(n)}update(r,n){if(!Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(r)||(r=Buffer.from(r,n)),this._state.absorb(r),this}digest(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return r!==void 0&&(n=n.toString(r)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let r=new Ky(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}}});var Wy=V((rO,Qy)=>{var nO=A(S()),{Transform:JE}=Uh();Qy.exports=t=>class jy extends JE{constructor(r,n,i,a){super(a),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._options=a,this._state=new t,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let a=null;try{this.update(r,n)}catch(d){a=d}i(a)}_flush(){}_read(r){this.push(this.squeeze(r))}update(r,n){if(!Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(r)||(r=Buffer.from(r,n)),this._state.absorb(r),this}squeeze(r,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let i=this._state.squeeze(r);return n!==void 0&&(i=i.toString(n)),i}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let r=new jy(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}}});var Hh=V((iO,Yy)=>{var aO=A(S()),UE=Vy(),HE=Wy();Yy.exports=function(t){let e=UE(t),r=HE(t);return function(n,i){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new e(1152,448,null,224,i);case"keccak256":return new e(1088,512,null,256,i);case"keccak384":return new e(832,768,null,384,i);case"keccak512":return new e(576,1024,null,512,i);case"sha3-224":return new e(1152,448,6,224,i);case"sha3-256":return new e(1088,512,6,256,i);case"sha3-384":return new e(832,768,6,384,i);case"sha3-512":return new e(576,1024,6,512,i);case"shake128":return new r(1344,256,31,i);case"shake256":return new r(1088,512,31,i);default:throw new Error("Invald algorithm: "+n)}}}});var t3=V((oO,e3)=>{var sO=A(S()),$y=ch()(__dirname);if(typeof $y!="function")throw new Error("Native add-on failed to load");e3.exports=Hh()($y)});var i3=V(n3=>{var cO=A(S()),r3=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];n3.p1600=function(t){for(let e=0;e<24;++e){let r=t[0]^t[10]^t[20]^t[30]^t[40],n=t[1]^t[11]^t[21]^t[31]^t[41],i=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],d=t[4]^t[14]^t[24]^t[34]^t[44],v=t[5]^t[15]^t[25]^t[35]^t[45],y=t[6]^t[16]^t[26]^t[36]^t[46],x=t[7]^t[17]^t[27]^t[37]^t[47],B=t[8]^t[18]^t[28]^t[38]^t[48],C=t[9]^t[19]^t[29]^t[39]^t[49],D=B^(i<<1|a>>>31),F=C^(a<<1|i>>>31),P=t[0]^D,q=t[1]^F,W=t[10]^D,K=t[11]^F,ne=t[20]^D,$=t[21]^F,ae=t[30]^D,ie=t[31]^F,ee=t[40]^D,ce=t[41]^F;D=r^(d<<1|v>>>31),F=n^(v<<1|d>>>31);let te=t[2]^D,Y=t[3]^F,M=t[12]^D,s=t[13]^F,u=t[22]^D,l=t[23]^F,f=t[32]^D,c=t[33]^F,g=t[42]^D,m=t[43]^F;D=i^(y<<1|x>>>31),F=a^(x<<1|y>>>31);let h=t[4]^D,o=t[5]^F,p=t[14]^D,E=t[15]^F,b=t[24]^D,w=t[25]^F,H=t[34]^D,T=t[35]^F,N=t[44]^D,X=t[45]^F;D=d^(B<<1|C>>>31),F=v^(C<<1|B>>>31);let Z=t[6]^D,_=t[7]^F,R=t[16]^D,L=t[17]^F,O=t[26]^D,G=t[27]^F,I=t[36]^D,J=t[37]^F,z=t[46]^D,k=t[47]^F;D=y^(r<<1|n>>>31),F=x^(n<<1|r>>>31);let U=t[8]^D,Q=t[9]^F,j=t[18]^D,re=t[19]^F,De=t[28]^D,se=t[29]^F,le=t[38]^D,Ue=t[39]^F,oe=t[48]^D,fe=t[49]^F,Xe=P,ge=q,ve=K<<4|W>>>28,vt=W<<4|K>>>28,pe=ne<<3|$>>>29,be=$<<3|ne>>>29,Ye=ie<<9|ae>>>23,de=ae<<9|ie>>>23,ue=ee<<18|ce>>>14,Kt=ce<<18|ee>>>14,me=te<<1|Y>>>31,xe=Y<<1|te>>>31,Zt=s<<12|M>>>20,ye=M<<12|s>>>20,we=u<<10|l>>>22,Vt=l<<10|u>>>22,Ae=c<<13|f>>>19,Me=f<<13|c>>>19,jt=g<<2|m>>>30,Se=m<<2|g>>>30,Te=o<<30|h>>>2,Qt=h<<30|o>>>2,Ee=p<<6|E>>>26,_e=E<<6|p>>>26,Wt=w<<11|b>>>21,Be=b<<11|w>>>21,Ce=H<<15|T>>>17,Yt=T<<15|H>>>17,Pe=X<<29|N>>>3,Le=N<<29|X>>>3,$t=Z<<28|_>>>4,Re=_<<28|Z>>>4,Fe=L<<23|R>>>9,Dt=R<<23|L>>>9,Ne=O<<25|G>>>7,ke=G<<25|O>>>7,St=I<<21|J>>>11,Tt=J<<21|I>>>11,Et=k<<24|z>>>8,_t=z<<24|k>>>8,Bt=U<<27|Q>>>5,hr=Q<<27|U>>>5,pr=j<<20|re>>>12,br=re<<20|j>>>12,gr=se<<7|De>>>25,vr=De<<7|se>>>25,mr=le<<8|Ue>>>24,xr=Ue<<8|le>>>24,yr=oe<<14|fe>>>18,wr=fe<<14|oe>>>18;t[0]=Xe^~Zt&Wt,t[1]=ge^~ye&Be,t[10]=$t^~pr&pe,t[11]=Re^~br&be,t[20]=me^~Ee&Ne,t[21]=xe^~_e&ke,t[30]=Bt^~ve&we,t[31]=hr^~vt&Vt,t[40]=Te^~Fe&gr,t[41]=Qt^~Dt&vr,t[2]=Zt^~Wt&St,t[3]=ye^~Be&Tt,t[12]=pr^~pe&Ae,t[13]=br^~be&Me,t[22]=Ee^~Ne&mr,t[23]=_e^~ke&xr,t[32]=ve^~we&Ce,t[33]=vt^~Vt&Yt,t[42]=Fe^~gr&Ye,t[43]=Dt^~vr&de,t[4]=Wt^~St&yr,t[5]=Be^~Tt&wr,t[14]=pe^~Ae&Pe,t[15]=be^~Me&Le,t[24]=Ne^~mr&ue,t[25]=ke^~xr&Kt,t[34]=we^~Ce&Et,t[35]=Vt^~Yt&_t,t[44]=gr^~Ye&jt,t[45]=vr^~de&Se,t[6]=St^~yr&Xe,t[7]=Tt^~wr&ge,t[16]=Ae^~Pe&$t,t[17]=Me^~Le&Re,t[26]=mr^~ue&me,t[27]=xr^~Kt&xe,t[36]=Ce^~Et&Bt,t[37]=Yt^~_t&hr,t[46]=Ye^~jt&Te,t[47]=de^~Se&Qt,t[8]=yr^~Xe&Zt,t[9]=wr^~ge&ye,t[18]=Pe^~$t&pr,t[19]=Le^~Re&br,t[28]=ue^~me&Ee,t[29]=Kt^~xe&_e,t[38]=Et^~Bt&ve,t[39]=_t^~hr&vt,t[48]=jt^~Te&Fe,t[49]=Se^~Qt&Dt,t[0]^=r3[e*2],t[1]^=r3[e*2+1]}}});var o3=V((uO,a3)=>{var lO=A(S()),Uc=i3();function rs(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}rs.prototype.initialize=function(t,e){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1};rs.prototype.absorb=function(t){for(let e=0;e<t.length;++e)this.state[~~(this.count/4)]^=t[e]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(Uc.p1600(this.state),this.count=0)};rs.prototype.absorbLastFewBits=function(t){this.state[~~(this.count/4)]^=t<<8*(this.count%4),t&128&&this.count===this.blockSize-1&&Uc.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),Uc.p1600(this.state),this.count=0,this.squeezing=!0};rs.prototype.squeeze=function(t){this.squeezing||this.absorbLastFewBits(1);let e=Buffer.alloc(t);for(let r=0;r<t;++r)e[r]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(Uc.p1600(this.state),this.count=0);return e};rs.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing};a3.exports=rs});var f3=V((dO,s3)=>{var hO=A(S());s3.exports=Hh()(o3())});var c3=V((pO,qh)=>{var bO=A(S());try{qh.exports=t3()}catch{qh.exports=f3()}});var yJ=A(S(),1);var yk=A(S(),1);var L_=A(S(),1);var y_=A(S(),1),xt={module:"ISShJH1ij-hPPt9St5UFFr_8Ys3Kj5cyg7zrMGt7H9s",scheduler:"_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA",mu:"fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY",src:{asset:"LlyF5s11sJIWvfNbkH-tavR-P7IJfTvkHHOdlwtGIJM",collection:"EmeE2B70hVDdhr9fWou3i_nKARSb_6LXvxRFTH67qvU",collectionActivity:"8cQtC9TsWURFzboq1aozm8VbzRBc5GGVt7yB80kapfc",comments:"RvozS-4Mbcmq66gPapsNOyERkg3LrpR0vSRKz8wIi4k",moderation:"-33uBfOgyXkQIwIv-XbfP-Bx74KYl--h2Cnk4TTiiLA",zone:{id:"eDZu7f4RKNT0TawGluj0Uo-qN-rQqleWR-rIgF26A5A",version:"0.0.4"}},collectionRegistry:"zwKi27GuKS3GOlwL3EhNGH02SJDDAO5Uy43ZJwomhZ4"},cp={defaultNode:"https://forward.computer"},up={"application/json":{type:"application/json",serialize:t=>JSON.stringify(t)}},Pn={arweave:"arweave.net",ao:"ao-search-gateway.goldsky.com"};var Ve={keys:{access:"Access-Fee",ans110:{title:"Title",description:"Description",topic:"Topic:*",type:"Type",implements:"Implements",license:"License"},assetType:"Asset-Type",banner:"Banner",bootloader:"Bootloader",collectionId:"Collection-Id",collectionName:"Collection-Name",commericalUse:"Commercial-Use",contentType:"Content-Type",creator:"Creator",currency:"Currency",dataModelTraining:"Data-Model-Training",dataProtocol:"Data-Protocol",dateCreated:"Date-Created",derivations:"Derivations",description:"Description",displayName:"Display-Name",handle:"Handle",implements:"Implements",initialOwner:"Initial-Owner",license:"License",name:"Name",onBoot:"On-Boot",paymentAddress:"Payment-Address",paymentMode:"Payment-Mode",profileCreator:"Profile-Creator",profileIndex:"Profile-Index",protocolName:"Protocol-Name",renderWith:"Render-With",thumbnail:"Thumbnail",title:"Title",topic:"Topic",type:"Type",zoneType:"Zone-Type"},values:{dataProtocol:"ao",document:"Document",user:"User"}},su={node1:"https://turbo.ardrive.io",batchSize:1,chunkSize:75e5,dispatchUploadSize:100*1024};var E_=A(S(),1);var M_=A(S(),1);function Jr(t){return t?/^[a-z0-9_-]{43}$/i.test(t):!1}function Bf(t,e){for(let r=0;r<t.length;r++)if(t[r]&&t[r].name===e)return t[r].value;return null}function lp(t){let e=t.match(/^data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+);base64,/);return e?e[1]:null}function dp(t){return t.split(",")[1]}function hp(t){let e;if(Buffer.isBuffer(t))e=t.length;else if(typeof t=="string")e=Buffer.byteLength(t,"utf-8");else throw new Error("Input must be a string or a Buffer");return e}function fu(t){let e;return e=t.replace(/\[|\]/g,""),`[[${e}]]`}function as(t){let e;return e=t.replace(/\[|\]/g,""),e}var Ar=(...t)=>{console.log("[@permaweb/libs]",...t)};function h8(t){return t.replace(/^[a-z]/,e=>e.toUpperCase())}function Ya(t){return Array.isArray(t)?t.map(Ya):t&&typeof t=="object"?Object.entries(t).reduce((e,[r,n])=>{let i=h8(r);return e[i]=Jr(n)?n:Ya(n),e},{}):t}function p8(t){return t.charAt(0).toLowerCase()+t.slice(1)}function Er(t){return Array.isArray(t)?t.map(Er):t&&typeof t=="object"?Object.entries(t).reduce((e,[r,n])=>{let i=Jr(r)||r.includes("-")?r:p8(r);return e[i]=Jr(n)?n:Er(n),e},{}):t}function ar(t,e){let r=t.charAt(0).toUpperCase()+t.slice(1);return{name:`${Ve.keys.bootloader}-${r}`,value:e}}function Cf(t){return Jr(t)||t.startsWith("data")}var b8="https://arweave.net";function Pf(t){return`${b8}/${t}`}async function g8(t,e){let r=[{name:"Authority",value:t.node?.authority??xt.mu}];e.tags&&e.tags.length>0&&e.tags.forEach(n=>r.push(n));try{let n=await t.ao.spawn({module:e.module,scheduler:t.node?.scheduler||e.scheduler,signer:t.signer,tags:r,data:e.data});return Ar(`Process ID: ${n}`),Ar("Sending initial message..."),await ct(t,{processId:n,action:"Init"}),n}catch(n){throw console.log(n),new Error(n.message??"Error spawning process")}}function pp(t){return async e=>await ct(t,e)}async function ct(t,e){try{let r=[{name:"Action",value:e.action},{name:"Message-Timestamp",value:new Date().getTime().toString()}];e.tags&&r.push(...e.tags);let n=e.useRawData?e.data:JSON.stringify(e.data);return await t.ao.message({process:e.processId,signer:t.signer,tags:r,data:n})}catch(r){throw new Error(r)}}function bp(t){return async e=>await Ur(t,e)}async function Ur(t,e){let n=`${t.node?.url??cp.defaultNode}/${e.processId}~process@1.0/now/${e.path}`;e.serialize&&(n+="/serialize~json@1.0");try{let i=await fetch(n);if(i.ok)return i.json();throw new Error("Error getting state from HyperBEAM.")}catch(i){if(e.fallbackAction)return await Lf(t,{processId:e.processId,action:e.fallbackAction,tags:e.tags});throw i}}function gp(t){return async e=>await Lf(t,e)}async function Lf(t,e){try{let r=[{name:"Action",value:e.action}];e.tags&&r.push(...e.tags);let n;if(typeof e.data=="object")n=JSON.stringify(e.data||{});else if(typeof e.data=="string"){try{JSON.parse(e.data)}catch(a){throw console.error(a),new Error("Invalid JSON data")}n=e.data}let i=await t.ao.dryrun({process:e.processId,tags:r,data:n});if(i.Messages&&i.Messages.length){if(i.Messages[0].Data)return JSON.parse(i.Messages[0].Data);if(i.Messages[0].Tags)return i.Messages[0].Tags.reduce((a,d)=>(a[d.name]=d.value,a),{})}}catch(r){throw new Error(r.message??"Error dryrunning process")}}async function v8(t,e){try{let{Messages:r}=await t.ao.result({message:e.messageId,process:e.processId});if(r&&r.length){let n={};return r.forEach(i=>{let a=Bf(i.Tags,"Action")||e.action,d=null,v=i.Data;if(v)try{d=JSON.parse(v)}catch{d=v}let y=Bf(i.Tags,"Status"),x=Bf(i.Tags,"Message");n[a]={id:e.messageId,status:y,message:x,data:d}}),n}else return null}catch(r){console.error(r)}}async function os(t,e){let r=null;if(e.evalSrc)r=e.evalSrc;else if(e.evalTxId)try{r=await(await fetch(Pf(e.evalTxId))).text()}catch(n){throw new Error(n)}if(r)try{let n=await ct(t,{processId:e.processId,action:"Eval",data:r,tags:e.evalTags||null,useRawData:!0});return Ar(`Eval: ${n}`),await v8(t,{processId:e.processId,messageId:n,action:"Eval"})}catch(n){throw new Error(n.message??"Error sending process eval")}return null}function Ln(t){return async(e,r)=>{try{let n={module:e.module||xt.module,scheduler:t.node?.scheduler||xt.scheduler};e.data&&(n.data=e.data),e.tags&&(n.tags=e.tags),r&&r("Spawning process...");let i=await g8(t,n);if(e.evalTxId||e.evalSrc){r&&r("Process retrieved!"),r&&r("Sending eval...");try{await os(t,{processId:i,evalTxId:e.evalTxId||null,evalSrc:e.evalSrc||null,evalTags:e.evalTags})&&r&&r("Eval complete")}catch(a){throw new Error(a.message??"Error creating process")}}return i}catch(n){throw new Error(n.message??"Error creating process")}}}var gk=A(S(),1);var ck=A(S(),1);var Wh={};ip(Wh,{AVSCTap:()=>Mf,AlgorandSigner:()=>pf,AptosSigner:()=>gf,ArconnectSigner:()=>Va,Arweave:()=>x1.default,ArweaveSigner:()=>da,Bundle:()=>jc,BundleItem:()=>Qh,CryptoDriver:()=>Zf,Curve25519:()=>Lr,DataItem:()=>Kc,EthereumSigner:()=>kr,HexInjectedSolanaSigner:()=>Xa,HexSolanaSigner:()=>bf,InjectedAptosSigner:()=>za,InjectedEthereumSigner:()=>eh,InjectedSolanaSigner:()=>ha,InjectedTypedEthereumSigner:()=>Kh,KyveSigner:()=>xf,MAX_TAG_BYTES:()=>zc,MIN_BINARY_SIZE:()=>Zc,MultiSignatureAptosSigner:()=>Ka,NearSigner:()=>hf,PolygonSigner:()=>df,Rsa4096:()=>ua,SIG_CONFIG:()=>Je,SignatureConfig:()=>Oe,Signer:()=>cu,SolanaSigner:()=>Mi,Transaction:()=>m1.default,TypedEthereumSigner:()=>Za,bundleAndSignData:()=>jE,byteArrayToLong:()=>gt,concatBuffers:()=>$e.concatBuffers,createData:()=>Ef,deepHash:()=>Ri,deserializeTags:()=>ns,exportForTesting:()=>GE,getCryptoDriver:()=>wt,getSignatureAndId:()=>S3,indexToType:()=>yf,keccak256:()=>Gh,longTo16ByteArray:()=>zE,longTo32ByteArray:()=>Xc,longTo8ByteArray:()=>Gc,longToNByteArray:()=>Af,secp256k1:()=>Ga,serializeTags:()=>Vh,shortTo2ByteArray:()=>Zh,sign:()=>Vc,stringToBuffer:()=>$e.stringToBuffer,unbundleData:()=>VE});var NN=A(S(),1);var XI=A(S(),1);var F_=A(S(),1),cu=class{publicKey;signatureType;signatureLength;ownerLength;pem;static verify(e,r,n,i){throw new Error("You must implement verify method on child")}};var NI=A(S(),1);var V_=A(S(),1),Pp=A(Hr(),1);var H_=A(S(),1),Oe;(function(t){t[t.ARWEAVE=1]="ARWEAVE",t[t.ED25519=2]="ED25519",t[t.ETHEREUM=3]="ETHEREUM",t[t.SOLANA=4]="SOLANA",t[t.INJECTEDAPTOS=5]="INJECTEDAPTOS",t[t.MULTIAPTOS=6]="MULTIAPTOS",t[t.TYPEDETHEREUM=7]="TYPEDETHEREUM",t[t.KYVE=101]="KYVE"})(Oe||(Oe={}));var Je={[Oe.ARWEAVE]:{sigLength:512,pubLength:512,sigName:"arweave"},[Oe.ED25519]:{sigLength:64,pubLength:32,sigName:"ed25519"},[Oe.ETHEREUM]:{sigLength:65,pubLength:65,sigName:"ethereum"},[Oe.SOLANA]:{sigLength:64,pubLength:32,sigName:"solana"},[Oe.INJECTEDAPTOS]:{sigLength:64,pubLength:32,sigName:"injectedAptos"},[Oe.MULTIAPTOS]:{sigLength:64*32+4,pubLength:32*32+1,sigName:"multiAptos"},[Oe.TYPEDETHEREUM]:{sigLength:65,pubLength:42,sigName:"typedEthereum"},[Oe.KYVE]:{sigLength:65,pubLength:65,sigName:"kyve"}};var X_=A(S(),1);import*as A8 from"crypto";var er=BigInt(0),ze=BigInt(1),eo=BigInt(2),M8=BigInt(8),yp=BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),ot=Object.freeze({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),l:yp,n:yp,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")});var Ep=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),ss=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),q_=BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742"),S8=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),T8=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),E8=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),_8=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),Ot=class t{constructor(e,r,n,i){this.x=e,this.y=r,this.z=n,this.t=i}static fromAffine(e){if(!(e instanceof yt))throw new TypeError("ExtendedPoint#fromAffine: expected Point");return e.equals(yt.ZERO)?t.ZERO:new t(e.x,e.y,ze,he(e.x*e.y))}static toAffineBatch(e){let r=P8(e.map(n=>n.z));return e.map((n,i)=>n.toAffine(r[i]))}static normalizeZ(e){return this.toAffineBatch(e).map(this.fromAffine)}equals(e){Ap(e);let{x:r,y:n,z:i}=this,{x:a,y:d,z:v}=e,y=he(r*v),x=he(a*i),B=he(n*v),C=he(d*i);return y===x&&B===C}negate(){return new t(he(-this.x),this.y,this.z,he(-this.t))}double(){let{x:e,y:r,z:n}=this,{a:i}=ot,a=he,d=a(e*e),v=a(r*r),y=a(eo*a(n*n)),x=a(i*d),B=e+r,C=a(a(B*B)-d-v),D=x+v,F=D-y,P=x-v,q=a(C*F),W=a(D*P),K=a(C*P),ne=a(F*D);return new t(q,W,ne,K)}add(e){let{x:r,y:n,z:i,t:a}=this;Ap(e);let{x:d,y:v,z:y,t:x}=e,{a:B,d:C}=ot,D=he,F=D(r*d),P=D(n*v),q=D(a*C*x),W=D(i*y),K=D((r+n)*(d+v)-F-P),ne=D(W-q),$=D(W+q),ae=D(P-B*F),ie=D(K*ne),ee=D($*ae),ce=D(K*ae),te=D(ne*$);return new t(ie,ee,te,ce)}subtract(e){return this.add(e.negate())}precomputeWindow(e){let r=1+256/e,n=[],i=this,a=i;for(let d=0;d<r;d++){a=i,n.push(a);for(let v=1;v<2**(e-1);v++)a=a.add(i),n.push(a);i=a.double()}return n}wNAF(e,r){!r&&this.equals(t.BASE)&&(r=yt.BASE);let n=r&&r._WINDOW_SIZE||1;if(256%n)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let i=r&&mu.get(r);i||(i=this.precomputeWindow(n),r&&n!==1&&(i=t.normalizeZ(i),mu.set(r,i)));let a=t.ZERO,d=t.BASE,v=1+256/n,y=2**(n-1),x=BigInt(2**n-1),B=2**n,C=BigInt(n);for(let D=0;D<v;D++){let F=D*y,P=Number(e&x);e>>=C,P>y&&(P-=B,e+=ze);let q=F,W=F+Math.abs(P)-1,K=D%2!==0,ne=P<0;P===0?d=d.add(wp(K,i[q])):a=a.add(wp(ne,i[W]))}return t.normalizeZ([a,d])[0]}multiply(e,r){return this.wNAF(Df(e,ot.l),r)}multiplyUnsafe(e){let r=Df(e,ot.l,!1),n=t.BASE,i=t.ZERO;if(r===er)return i;if(this.equals(i)||r===ze)return this;if(this.equals(n))return this.wNAF(r);let a=i,d=this;for(;r>er;)r&ze&&(a=a.add(d)),d=d.double(),r>>=ze;return a}isSmallOrder(){return this.multiplyUnsafe(ot.h).equals(t.ZERO)}isTorsionFree(){let e=this.multiplyUnsafe(ot.l/eo).double();return ot.l%eo&&(e=e.add(this)),e.equals(t.ZERO)}toAffine(e){let{x:r,y:n,z:i}=this,a=this.equals(t.ZERO);e==null&&(e=a?M8:Of(i));let d=he(r*e),v=he(n*e),y=he(i*e);if(a)return yt.ZERO;if(y!==ze)throw new Error("invZ was invalid");return new yt(d,v)}fromRistrettoBytes(){bu()}toRistrettoBytes(){bu()}fromRistrettoHash(){bu()}};Ot.BASE=new Ot(ot.Gx,ot.Gy,ze,he(ot.Gx*ot.Gy));Ot.ZERO=new Ot(er,ze,ze,er);function wp(t,e){let r=e.negate();return t?r:e}function Ap(t){if(!(t instanceof Ot))throw new TypeError("ExtendedPoint expected")}function pu(t){if(!(t instanceof fa))throw new TypeError("RistrettoPoint expected")}function bu(){throw new Error("Legacy method: switch to RistrettoPoint")}var fa=class t{constructor(e){this.ep=e}static calcElligatorRistrettoMap(e){let{d:r}=ot,n=he(ss*e*e),i=he((n+ze)*E8),a=BigInt(-1),d=he((a-r*n)*he(n+r)),{isValid:v,value:y}=wu(i,d),x=he(y*e);Ci(x)||(x=he(-x)),v||(y=x),v||(a=n);let B=he(a*(n-ze)*_8-d),C=y*y,D=he((y+y)*d),F=he(B*S8),P=he(ze-C),q=he(ze+C);return new Ot(he(D*q),he(P*F),he(F*q),he(D*P))}static hashToCurve(e){e=Pi(e,64);let r=gu(e.slice(0,32)),n=this.calcElligatorRistrettoMap(r),i=gu(e.slice(32,64)),a=this.calcElligatorRistrettoMap(i);return new t(n.add(a))}static fromHex(e){e=Pi(e,32);let{a:r,d:n}=ot,i="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",a=gu(e);if(!R8(cs(a),e)||Ci(a))throw new Error(i);let d=he(a*a),v=he(ze+r*d),y=he(ze-r*d),x=he(v*v),B=he(y*y),C=he(r*n*x-B),{isValid:D,value:F}=Tp(he(C*B)),P=he(F*y),q=he(F*P*C),W=he((a+a)*P);Ci(W)&&(W=he(-W));let K=he(v*q),ne=he(W*K);if(!D||Ci(ne)||K===er)throw new Error(i);return new t(new Ot(W,K,ze,ne))}toRawBytes(){let{x:e,y:r,z:n,t:i}=this.ep,a=he(he(n+r)*he(n-r)),d=he(e*r),v=he(d*d),{value:y}=Tp(he(a*v)),x=he(y*a),B=he(y*d),C=he(x*B*i),D;if(Ci(i*C)){let P=he(r*ss),q=he(e*ss);e=P,r=q,D=he(x*T8)}else D=B;Ci(e*C)&&(r=he(-r));let F=he((n-r)*D);return Ci(F)&&(F=he(-F)),cs(F)}toHex(){return us(this.toRawBytes())}toString(){return this.toHex()}equals(e){pu(e);let r=this.ep,n=e.ep,i=he(r.x*n.y)===he(r.y*n.x),a=he(r.y*n.y)===he(r.x*n.x);return i||a}add(e){return pu(e),new t(this.ep.add(e.ep))}subtract(e){return pu(e),new t(this.ep.subtract(e.ep))}multiply(e){return new t(this.ep.multiply(e))}multiplyUnsafe(e){return new t(this.ep.multiplyUnsafe(e))}};fa.BASE=new fa(Ot.BASE);fa.ZERO=new fa(Ot.ZERO);var mu=new WeakMap,yt=class t{constructor(e,r){this.x=e,this.y=r}_setWindowSize(e){this._WINDOW_SIZE=e,mu.delete(this)}static fromHex(e,r=!0){let{d:n,P:i}=ot;e=Pi(e,32);let a=e.slice();a[31]=e[31]&-129;let d=ls(a);if(r&&d>=i)throw new Error("Expected 0 < hex < P");if(!r&&d>=Ep)throw new Error("Expected 0 < hex < 2**256");let v=he(d*d),y=he(v-ze),x=he(n*v+ze),{isValid:B,value:C}=wu(y,x);if(!B)throw new Error("Point.fromHex: invalid y coordinate");let D=(C&ze)===ze;return(e[31]&128)!==0!==D&&(C=he(-C)),new t(C,d)}static async fromPrivateKey(e){return(await Au(e)).point}toRawBytes(){let e=cs(this.y);return e[31]|=this.x&ze?128:0,e}toHex(){return us(this.toRawBytes())}toX25519(){let{y:e}=this,r=he((ze+e)*Of(ze-e));return cs(r)}isTorsionFree(){return Ot.fromAffine(this).isTorsionFree()}equals(e){return this.x===e.x&&this.y===e.y}negate(){return new t(he(-this.x),this.y)}add(e){return Ot.fromAffine(this).add(Ot.fromAffine(e)).toAffine()}subtract(e){return this.add(e.negate())}multiply(e){return Ot.fromAffine(this).multiply(e,this).toAffine()}};yt.BASE=new yt(ot.Gx,ot.Gy);yt.ZERO=new yt(er,ze);var fs=class t{constructor(e,r){this.r=e,this.s=r,this.assertValidity()}static fromHex(e){let r=Pi(e,64),n=yt.fromHex(r.slice(0,32),!1),i=ls(r.slice(32,64));return new t(n,i)}assertValidity(){let{r:e,s:r}=this;if(!(e instanceof yt))throw new Error("Expected Point instance");return Df(r,ot.l,!1),this}toRawBytes(){let e=new Uint8Array(64);return e.set(this.r.toRawBytes()),e.set(cs(this.s),32),e}toHex(){return us(this.toRawBytes())}};function _p(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function xu(t){if(!_p(t))throw new Error("Uint8Array expected")}function Mp(...t){if(t.every(xu),t.length===1)return t[0];let e=t.reduce((n,i)=>n+i.length,0),r=new Uint8Array(e);for(let n=0,i=0;n<t.length;n++){let a=t[n];r.set(a,i),i+=a.length}return r}var B8=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function us(t){xu(t);let e="";for(let r=0;r<t.length;r++)e+=B8[t[r]];return e}var ci={_0:48,_9:57,A:65,F:70,a:97,f:102};function Sp(t){if(t>=ci._0&&t<=ci._9)return t-ci._0;if(t>=ci.A&&t<=ci.F)return t-(ci.A-10);if(t>=ci.a&&t<=ci.f)return t-(ci.a-10)}function yu(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);let e=t.length,r=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);let n=new Uint8Array(r);for(let i=0,a=0;i<r;i++,a+=2){let d=Sp(t.charCodeAt(a)),v=Sp(t.charCodeAt(a+1));if(d===void 0||v===void 0){let y=t[a]+t[a+1];throw new Error('hex string expected, got non-hex character "'+y+'" at index '+a)}n[i]=d*16+v}return n}function Bp(t){let r=t.toString(16).padStart(64,"0");return yu(r)}function cs(t){return Bp(t).reverse()}function Ci(t){return(he(t)&ze)===ze}function ls(t){return xu(t),BigInt("0x"+us(Uint8Array.from(t).reverse()))}var C8=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function gu(t){return he(ls(t)&C8)}function he(t,e=ot.P){let r=t%e;return r>=er?r:e+r}function Of(t,e=ot.P){if(t===er||e<=er)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=he(t,e),n=e,i=er,a=ze,d=ze,v=er;for(;r!==er;){let x=n/r,B=n%r,C=i-d*x,D=a-v*x;n=r,r=B,i=d,a=v,d=C,v=D}if(n!==ze)throw new Error("invert: does not exist");return he(i,e)}function P8(t,e=ot.P){let r=new Array(t.length),n=t.reduce((a,d,v)=>d===er?a:(r[v]=a,he(a*d,e)),ze),i=Of(n,e);return t.reduceRight((a,d,v)=>d===er?a:(r[v]=he(a*r[v],e),he(a*d,e)),i),r}function Rn(t,e){let{P:r}=ot,n=t;for(;e-- >er;)n*=n,n%=r;return n}function L8(t){let{P:e}=ot,r=BigInt(5),n=BigInt(10),i=BigInt(20),a=BigInt(40),d=BigInt(80),y=t*t%e*t%e,x=Rn(y,eo)*y%e,B=Rn(x,ze)*t%e,C=Rn(B,r)*B%e,D=Rn(C,n)*C%e,F=Rn(D,i)*D%e,P=Rn(F,a)*F%e,q=Rn(P,d)*P%e,W=Rn(q,d)*P%e,K=Rn(W,n)*C%e;return{pow_p_5_8:Rn(K,eo)*t%e,b2:y}}function wu(t,e){let r=he(e*e*e),n=he(r*r*e),i=L8(t*n).pow_p_5_8,a=he(t*r*i),d=he(e*a*a),v=a,y=he(a*ss),x=d===t,B=d===he(-t),C=d===he(-t*ss);return x&&(a=v),(B||C)&&(a=y),Ci(a)&&(a=he(-a)),{isValid:x||B,value:a}}function Tp(t){return wu(ze,t)}function Ff(t){return he(ls(t),ot.l)}function R8(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function Pi(t,e){let r=_p(t)?Uint8Array.from(t):yu(t);if(typeof e=="number"&&r.length!==e)throw new Error(`Expected ${e} bytes`);return r}function Df(t,e,r=!0){if(!e)throw new TypeError("Specify max value");if(typeof t=="number"&&Number.isSafeInteger(t)&&(t=BigInt(t)),typeof t=="bigint"&&t<e){if(r){if(er<t)return t}else if(er<=t)return t}throw new TypeError("Expected valid scalar: 0 < scalar < max")}function F8(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function D8(t){if(t=typeof t=="bigint"||typeof t=="number"?Bp(Df(t,Ep)):Pi(t),t.length!==32)throw new Error("Expected 32 bytes");return t}function O8(t){let e=F8(t.slice(0,32)),r=t.slice(32,64),n=Ff(e),i=yt.BASE.multiply(n),a=i.toRawBytes();return{head:e,prefix:r,scalar:n,point:i,pointBytes:a}}var vu;async function Au(t){return O8(await to.sha512(D8(t)))}async function Cp(t,e){t=Pi(t);let{prefix:r,scalar:n,pointBytes:i}=await Au(e),a=Ff(await to.sha512(r,t)),d=yt.BASE.multiply(a),v=Ff(await to.sha512(d.toRawBytes(),i,t)),y=he(a+v*n,ot.l);return new fs(d,y).toRawBytes()}function I8(t,e,r){e=Pi(e),r instanceof yt||(r=yt.fromHex(r,!1));let{r:n,s:i}=t instanceof fs?t.assertValidity():fs.fromHex(t),a=Ot.BASE.multiplyUnsafe(i);return{r:n,s:i,SB:a,pub:r,msg:e}}function N8(t,e,r,n){let i=Ff(n),a=Ot.fromAffine(t).multiplyUnsafe(i);return Ot.fromAffine(e).add(a).subtract(r).multiplyUnsafe(ot.h).equals(Ot.ZERO)}async function Li(t,e,r){let{r:n,SB:i,msg:a,pub:d}=I8(t,e,r),v=await to.sha512(n.toRawBytes(),d.toRawBytes(),a);return N8(d,n,i,v)}yt.BASE._setWindowSize(8);var Bi={node:A8,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0},to={bytesToHex:us,hexToBytes:yu,concatBytes:Mp,getExtendedPublicKey:Au,mod:he,invert:Of,TORSION_SUBGROUP:["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"],hashToPrivateScalar:t=>{if(t=Pi(t),t.length<40||t.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return he(ls(t),ot.l-ze)+ze},randomBytes:(t=32)=>{if(Bi.web)return Bi.web.getRandomValues(new Uint8Array(t));if(Bi.node){let{randomBytes:e}=Bi.node;return new Uint8Array(e(t).buffer)}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>to.randomBytes(32),sha512:async(...t)=>{let e=Mp(...t);if(Bi.web){let r=await Bi.web.subtle.digest("SHA-512",e.buffer);return new Uint8Array(r)}else{if(Bi.node)return Uint8Array.from(Bi.node.createHash("sha512").update(e).digest());throw new Error("The environment doesn't have sha512 function")}},precompute(t=8,e=yt.BASE){let r=e.equals(yt.BASE)?e:new yt(e.x,e.y);return r._setWindowSize(t),r.multiply(eo),r},sha512Sync:void 0};Object.defineProperties(to,{sha512Sync:{configurable:!1,get(){return vu},set(t){vu||(vu=t)}}});var Lr=class{_key;pk;ownerLength=Je[2].pubLength;signatureLength=Je[2].sigLength;_publicKey;get publicKey(){return this._publicKey}signatureType=2;constructor(e,r){this._key=e,this.pk=r}get key(){throw new Error("You must implement `key`")}sign(e){return Cp(Buffer.from(e),Buffer.from(this.key))}static async verify(e,r,n){let i=e;return typeof e=="string"&&(i=Pp.default.toBuffer(e)),Li(Buffer.from(n),Buffer.from(r),Buffer.from(i))}};var gI=A(S(),1);var IC=A(S(),1);var ZB=A(S(),1);var HB=A(S(),1),$e=A(gn(),1);var rB=A(S(),1);import{createHash as V8}from"crypto";async function Ri(t){if(typeof t[Symbol.asyncIterator]=="function"){let i=t,a=V8("sha384"),d=0;for await(let x of i)d+=x.byteLength,a.update(x);let v=(0,$e.concatBuffers)([(0,$e.stringToBuffer)("blob"),(0,$e.stringToBuffer)(d.toString())]),y=(0,$e.concatBuffers)([await wt().hash(v,"SHA-384"),a.digest()]);return await wt().hash(y,"SHA-384")}else if(Array.isArray(t)){let i=(0,$e.concatBuffers)([(0,$e.stringToBuffer)("list"),(0,$e.stringToBuffer)(t.length.toString())]);return await qp(t,await wt().hash(i,"SHA-384"))}let e=t,r=(0,$e.concatBuffers)([(0,$e.stringToBuffer)("blob"),(0,$e.stringToBuffer)(e.byteLength.toString())]),n=(0,$e.concatBuffers)([await wt().hash(r,"SHA-384"),await wt().hash(e,"SHA-384")]);return await wt().hash(n,"SHA-384")}async function qp(t,e){if(t.length<1)return e;let r=(0,$e.concatBuffers)([e,await Ri(t[0])]),n=await wt().hash(r,"SHA-384");return await qp(t.slice(1),n)}var Kf=A(Eu(),1),m1=A(vs(),1),x1=A(v1(),1),S6=Kf.default.default?Kf.default.default:Kf.default,Zf=class extends S6{getPublicKey(e){throw new Error("Unimplemented")}},T6;function wt(){return T6??=new Zf}var y1=A(Hr(),1);import{constants as E6,createSign as _6}from"crypto";var ua=class{_key;pk;signatureType=1;ownerLength=Je[1].pubLength;signatureLength=Je[1].sigLength;_publicKey;get publicKey(){return this._publicKey}constructor(e,r){this._key=e,this.pk=r,r||(this.pk=wt().getPublicKey(JSON.parse(e)))}sign(e){return _6("sha256").update(e).sign({key:this._key,padding:E6.RSA_PKCS1_PSS_PADDING})}static async verify(e,r,n){return await wt().verify(Buffer.isBuffer(e)?y1.default.encode(e):e,r,n)}};var ub=A(cb(),1),lb=A(Hr(),1);var da=class extends ua{jwk;constructor(e){super((0,ub.jwkTopem)(e),e.n),this.jwk=e}get publicKey(){if(!this.pk)throw new Error("ArweaveSigner - pk is undefined");return lb.default.toBuffer(this.pk)}sign(e){return wt().sign(this.jwk,e)}static async verify(e,r,n){return await wt().verify(e,r,n)}};var UC=A(S(),1),db=A(Hr(),1);var ha=class{_publicKey;ownerLength=Je[2].pubLength;signatureLength=Je[2].sigLength;signatureType=2;pem;provider;constructor(e){if(this.provider=e,!this.provider.publicKey)throw new Error("InjectedSolanaSigner - provider.publicKey is undefined");this._publicKey=this.provider.publicKey.toBuffer()}get publicKey(){return this._publicKey}async sign(e){if(!this.provider.signMessage)throw new Error("Selected Wallet does not support message signing");return await this.provider.signMessage(e)}static async verify(e,r,n){let i=e;return typeof e=="string"&&(i=db.default.toBuffer(e)),Li(Buffer.from(n),Buffer.from(r),Buffer.from(i))}};var VF=A(S(),1),c2=A(Cs(),1),u2=A(Ns(),1);var $d=A(nt(),1),l2=A(Js(),1),d2=A(ef(),1),eh=class{signer;publicKey;ownerLength=Je[Oe.ETHEREUM].pubLength;signatureLength=Je[Oe.ETHEREUM].sigLength;signatureType=Oe.ETHEREUM;constructor(e){this.signer=e.getSigner()}async setPublicKey(){let e="sign this message to connect to Bundlr.Network",r=await this.signer.signMessage(e),n=await(0,c2.hashMessage)(e),i=(0,u2.recoverPublicKey)((0,$d.arrayify)(n),r);this.publicKey=Buffer.from((0,$d.arrayify)(i))}async sign(e){this.publicKey||await this.setPublicKey();let r=await this.signer.signMessage(e);return Buffer.from(r.slice(2),"hex")}static verify(e,r,n){let i=(0,l2.computeAddress)(e);return(0,d2.verifyMessage)(r,n)===i}};var rD=A(S(),1);var jo=A(x2(),1),Mi=class extends Lr{get publicKey(){return jo.default.decode(this.pk)}get key(){return jo.default.decode(this._key)}constructor(e){let r=jo.default.decode(e);super(jo.default.encode(r.subarray(0,32)),jo.default.encode(r.subarray(32,64)))}};var BO=A(S(),1);var TO=A(S(),1);var AO=A(S(),1),v3=A(Hr(),1),Xh=A(dh(),1);var mO=A(S(),1),u3=A(c3(),1);import{Buffer as qa}from"buffer";function Gh(t){return t=l3(t),(0,u3.default)("keccak256").update(t).digest()}function l3(t){if(!qa.isBuffer(t))if(Array.isArray(t))t=qa.from(t);else if(typeof t=="string")d3(t)?t=qa.from(Hc(h3(t)),"hex"):t=qa.from(t);else if(typeof t=="number")t=b3(t);else if(typeof t=="bigint")t=qE(t);else if(t==null)t=qa.allocUnsafe(0);else throw new Error("invalid type");return t}function d3(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}function Hc(t){if(typeof t!="string")throw new Error(`while padding to even, value must be string, is currently ${typeof t}, while padToEven.`);return t.length%2&&(t=`0${t}`),t}function h3(t){return typeof t!="string"?t:p3(t)?t.slice(2):t}function p3(t){if(typeof t!="string")throw new Error("value must be type 'string', is currently type "+typeof t+", while checking isHexPrefixed.");return t.startsWith("0x")}function b3(t){let e=g3(t);return qa.from(Hc(e.slice(2)),"hex")}function g3(t){return`0x${t.toString(16)}`}function qE(t){let e=t.toString(16);return qa.from(Hc(e),"hex")}typeof window<"u"&&(window.keccak256=Gh);var lf=Gh,GE={intToBuffer:b3,intToHex:g3,isHexPrefixed:p3,stripHexPrefix:h3,padToEven:Hc,isHexString:d3,toBuffer:l3};var Ga=class{_key;ownerLength=Je[Oe.ETHEREUM].pubLength;signatureLength=Je[Oe.ETHEREUM].sigLength;signatureType=Oe.ETHEREUM;pk;constructor(e,r){this._key=e,this.pk=r.toString("hex")}get publicKey(){throw new Error("You must implement `publicKey`")}get key(){return Buffer.from(this._key,"hex")}static async verify(e,r,n){let i=e;typeof e=="string"&&(i=v3.default.toBuffer(e));let a=!1;try{a=Xh.default.ecdsaVerify(n,lf(Buffer.from(r)),i)}catch{}return a}async sign(e){return Xh.default.ecdsaSign(lf(Buffer.from(e)),Buffer.from(this.key)).signature}};var zh=A(dh(),1),m3=A(Hr(),1),x3=A(nt(),1),y3=A(ef(),1),w3=A(Cs(),1),kr=class extends Ga{get publicKey(){return Buffer.from(this.pk,"hex")}constructor(e){e.startsWith("0x")&&(e=e.slice(2));let r=Buffer.from(e,"hex"),n=zh.default.publicKeyCreate(r,!1);super(e,Buffer.from(n))}async sign(e){return new y3.Wallet(this._key).signMessage(e).then(n=>Buffer.from(n.slice(2),"hex"))}static async verify(e,r,n){return zh.default.ecdsaVerify(n.length===65?n.slice(0,-1):n,(0,x3.arrayify)((0,w3.hashMessage)(r)),typeof e=="string"?m3.default.toBuffer(e):e)}};var df=class extends kr{};var LO=A(S(),1);var hf=class extends Mi{constructor(e){super(e.replace("ed25519:",""))}};var DO=A(S(),1);var pf=class extends Lr{get publicKey(){return Buffer.from(this.pk)}get key(){return Buffer.from(this._key)}constructor(e,r){super(e.subarray(0,32),r)}};var NO=A(S(),1);var Xa=class extends ha{signatureType=4;constructor(e){super(e)}async sign(e){return super.sign(Buffer.from(Buffer.from(e).toString("hex")))}static async verify(e,r,n){return super.verify(e,Buffer.from(Buffer.from(r).toString("hex")),n)}};var UO=A(S(),1);var bf=class extends Mi{signatureType=4;constructor(e){super(e)}async sign(e){return super.sign(Buffer.from(Buffer.from(e).toString("hex")))}static async verify(e,r,n){return super.verify(e,Buffer.from(Buffer.from(r).toString("hex")),n)}};var GO=A(S(),1);var gf=class extends Lr{constructor(e,r){super(e,r)}get publicKey(){return Buffer.from(this.pk.slice(2),"hex")}get key(){return Buffer.from(this._key.slice(2),"hex")}};var ZO=A(S(),1);var za=class{_publicKey;ownerLength=Je[Oe.INJECTEDAPTOS].pubLength;signatureLength=Je[Oe.INJECTEDAPTOS].sigLength;signatureType=Oe.INJECTEDAPTOS;pem;provider;constructor(e,r){this.provider=e,this._publicKey=r}get publicKey(){return this._publicKey}async sign(e){if(!this.provider.signMessage)throw new Error("Selected Wallet does not support message signing");let n=(await this.provider.signMessage({message:Buffer.from(e).toString("hex"),nonce:"bundlr"})).signature;return typeof n=="string"?Buffer.from(n,"hex"):n.data.toUint8Array()}static async verify(e,r,n){let i=e;return Li(Buffer.from(n),Buffer.from(`APTOS
14
+ `);function v(y){var x=sh(Si.join(y,"prebuilds")).map(C2),B=x.filter(P2(ah,ih)).sort(L2)[0];if(B){var C=Si.join(y,"prebuilds",B.name),D=sh(C).map(R2),F=D.filter(F2(nh,w2)),P=F.sort(D2(nh))[0];if(P)return Si.join(C,P.file)}}};function sh(t){try{return S2.readdirSync(t)}catch{return[]}}function A2(t,e){var r=sh(t).filter(e);return r[0]&&Si.join(t,r[0])}function M2(t){return/\.node$/.test(t)}function C2(t){var e=t.split("-");if(e.length===2){var r=e[0],n=e[1].split("+");if(r&&n.length&&n.every(Boolean))return{name:t,platform:r,architectures:n}}}function P2(t,e){return function(r){return r==null||r.platform!==t?!1:r.architectures.includes(e)}}function L2(t,e){return t.architectures.length-e.architectures.length}function R2(t){var e=t.split("."),r=e.pop(),n={file:t,specificity:0};if(r==="node"){for(var i=0;i<e.length;i++){var a=e[i];if(a==="node"||a==="electron"||a==="node-webkit")n.runtime=a;else if(a==="napi")n.napi=!0;else if(a.slice(0,3)==="abi")n.abi=a.slice(3);else if(a.slice(0,2)==="uv")n.uv=a.slice(2);else if(a.slice(0,4)==="armv")n.armv=a.slice(4);else if(a==="glibc"||a==="musl")n.libc=a;else continue;n.specificity++}return n}}function F2(t,e){return function(r){return!(r==null||r.runtime&&r.runtime!==t&&!_S(r)||r.abi&&r.abi!==e&&!r.napi||r.uv&&r.uv!==B2||r.armv&&r.armv!==oh||r.libc&&r.libc!==_2)}}function _S(t){return t.runtime==="node"&&t.napi}function D2(t){return function(e,r){return e.runtime!==r.runtime?e.runtime===t?-1:1:e.abi!==r.abi?e.abi?-1:1:e.specificity!==r.specificity?e.specificity>r.specificity?-1:1:0}}function BS(){return!!(process.versions&&process.versions.nw)}function CS(){return process.versions&&process.versions.electron||process.env.ELECTRON_RUN_AS_NODE?!0:typeof window<"u"&&window.process&&window.process.type==="renderer"}function PS(t){return t==="linux"&&S2.existsSync("/etc/alpine-release")}ni.parseTags=R2;ni.matchTags=F2;ni.compareTags=D2;ni.parseTuple=C2;ni.matchTuple=P2;ni.compareTuples=L2});var uh=V((fD,ch)=>{var cD=A(M()),fh=typeof __webpack_require__=="function"?__non_webpack_require__:rt;typeof fh.addon=="function"?ch.exports=fh.addon.bind(fh):ch.exports=I2()});var lh=V((lD,N2)=>{var dD=A(M()),We={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function un(t,e){if(!t)throw new Error(e)}function Ze(t,e,r){if(un(e instanceof Uint8Array,`Expected ${t} to be an Uint8Array`),r!==void 0)if(Array.isArray(r)){let n=r.join(", "),i=`Expected ${t} to be an Uint8Array with length [${n}]`;un(r.includes(e.length),i)}else{let n=`Expected ${t} to be an Uint8Array with length ${r}`;un(e.length===r,n)}}function Na(t){un(Qo(t)==="Boolean","Expected compressed to be a Boolean")}function _n(t=r=>new Uint8Array(r),e){return typeof t=="function"&&(t=t(e)),Ze("output",t,e),t}function Qo(t){return Object.prototype.toString.call(t).slice(8,-1)}N2.exports=t=>({contextRandomize(e){switch(un(e===null||e instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),e!==null&&Ze("seed",e,32),t.contextRandomize(e)){case 1:throw new Error(We.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(e){return Ze("private key",e,32),t.privateKeyVerify(e)===0},privateKeyNegate(e){switch(Ze("private key",e,32),t.privateKeyNegate(e)){case 0:return e;case 1:throw new Error(We.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(e,r){switch(Ze("private key",e,32),Ze("tweak",r,32),t.privateKeyTweakAdd(e,r)){case 0:return e;case 1:throw new Error(We.TWEAK_ADD)}},privateKeyTweakMul(e,r){switch(Ze("private key",e,32),Ze("tweak",r,32),t.privateKeyTweakMul(e,r)){case 0:return e;case 1:throw new Error(We.TWEAK_MUL)}},publicKeyVerify(e){return Ze("public key",e,[33,65]),t.publicKeyVerify(e)===0},publicKeyCreate(e,r=!0,n){switch(Ze("private key",e,32),Na(r),n=_n(n,r?33:65),t.publicKeyCreate(n,e)){case 0:return n;case 1:throw new Error(We.SECKEY_INVALID);case 2:throw new Error(We.PUBKEY_SERIALIZE)}},publicKeyConvert(e,r=!0,n){switch(Ze("public key",e,[33,65]),Na(r),n=_n(n,r?33:65),t.publicKeyConvert(n,e)){case 0:return n;case 1:throw new Error(We.PUBKEY_PARSE);case 2:throw new Error(We.PUBKEY_SERIALIZE)}},publicKeyNegate(e,r=!0,n){switch(Ze("public key",e,[33,65]),Na(r),n=_n(n,r?33:65),t.publicKeyNegate(n,e)){case 0:return n;case 1:throw new Error(We.PUBKEY_PARSE);case 2:throw new Error(We.IMPOSSIBLE_CASE);case 3:throw new Error(We.PUBKEY_SERIALIZE)}},publicKeyCombine(e,r=!0,n){un(Array.isArray(e),"Expected public keys to be an Array"),un(e.length>0,"Expected public keys array will have more than zero items");for(let i of e)Ze("public key",i,[33,65]);switch(Na(r),n=_n(n,r?33:65),t.publicKeyCombine(n,e)){case 0:return n;case 1:throw new Error(We.PUBKEY_PARSE);case 2:throw new Error(We.PUBKEY_COMBINE);case 3:throw new Error(We.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(e,r,n=!0,i){switch(Ze("public key",e,[33,65]),Ze("tweak",r,32),Na(n),i=_n(i,n?33:65),t.publicKeyTweakAdd(i,e,r)){case 0:return i;case 1:throw new Error(We.PUBKEY_PARSE);case 2:throw new Error(We.TWEAK_ADD)}},publicKeyTweakMul(e,r,n=!0,i){switch(Ze("public key",e,[33,65]),Ze("tweak",r,32),Na(n),i=_n(i,n?33:65),t.publicKeyTweakMul(i,e,r)){case 0:return i;case 1:throw new Error(We.PUBKEY_PARSE);case 2:throw new Error(We.TWEAK_MUL)}},signatureNormalize(e){switch(Ze("signature",e,64),t.signatureNormalize(e)){case 0:return e;case 1:throw new Error(We.SIG_PARSE)}},signatureExport(e,r){Ze("signature",e,64),r=_n(r,72);let n={output:r,outputlen:72};switch(t.signatureExport(n,e)){case 0:return r.slice(0,n.outputlen);case 1:throw new Error(We.SIG_PARSE);case 2:throw new Error(We.IMPOSSIBLE_CASE)}},signatureImport(e,r){switch(Ze("signature",e),r=_n(r,64),t.signatureImport(r,e)){case 0:return r;case 1:throw new Error(We.SIG_PARSE);case 2:throw new Error(We.IMPOSSIBLE_CASE)}},ecdsaSign(e,r,n={},i){Ze("message",e,32),Ze("private key",r,32),un(Qo(n)==="Object","Expected options to be an Object"),n.data!==void 0&&Ze("options.data",n.data),n.noncefn!==void 0&&un(Qo(n.noncefn)==="Function","Expected options.noncefn to be a Function"),i=_n(i,64);let a={signature:i,recid:null};switch(t.ecdsaSign(a,e,r,n.data,n.noncefn)){case 0:return a;case 1:throw new Error(We.SIGN);case 2:throw new Error(We.IMPOSSIBLE_CASE)}},ecdsaVerify(e,r,n){switch(Ze("signature",e,64),Ze("message",r,32),Ze("public key",n,[33,65]),t.ecdsaVerify(e,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(We.SIG_PARSE);case 2:throw new Error(We.PUBKEY_PARSE)}},ecdsaRecover(e,r,n,i=!0,a){switch(Ze("signature",e,64),un(Qo(r)==="Number"&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),Ze("message",n,32),Na(i),a=_n(a,i?33:65),t.ecdsaRecover(a,e,r,n)){case 0:return a;case 1:throw new Error(We.SIG_PARSE);case 2:throw new Error(We.RECOVER);case 3:throw new Error(We.IMPOSSIBLE_CASE)}},ecdh(e,r,n={},i){switch(Ze("public key",e,[33,65]),Ze("private key",r,32),un(Qo(n)==="Object","Expected options to be an Object"),n.data!==void 0&&Ze("options.data",n.data),n.hashfn!==void 0?(un(Qo(n.hashfn)==="Function","Expected options.hashfn to be a Function"),n.xbuf!==void 0&&Ze("options.xbuf",n.xbuf,32),n.ybuf!==void 0&&Ze("options.ybuf",n.ybuf,32),Ze("output",i)):i=_n(i,32),t.ecdh(i,e,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return i;case 1:throw new Error(We.PUBKEY_PARSE);case 2:throw new Error(We.ECDH)}}})});var J2=V((hD,k2)=>{var pD=A(M()),LS=uh()(__dirname);k2.exports=lh()(new LS.Secp256k1)});var H2=V((bD,U2)=>{var gD=A(M()),RS=yd().ec,ii=new RS("secp256k1"),qe=ii.curve,at=qe.n.constructor;function FS(t,e){let r=new at(e);if(r.cmp(qe.p)>=0)return null;r=r.toRed(qe.red);let n=r.redSqr().redIMul(r).redIAdd(qe.b).redSqrt();t===3!==n.isOdd()&&(n=n.redNeg());let i=r.redSqr().redIMul(r);return n.redSqr().redISub(i.redIAdd(qe.b)).isZero()?ii.keyPair({pub:{x:r,y:n}}):null}function DS(t,e,r){let n=new at(e),i=new at(r);if(n.cmp(qe.p)>=0||i.cmp(qe.p)>=0||(n=n.toRed(qe.red),i=i.toRed(qe.red),(t===6||t===7)&&i.isOdd()!==(t===7)))return null;let a=n.redSqr().redIMul(n);return i.redSqr().redISub(a.redIAdd(qe.b)).isZero()?ii.keyPair({pub:{x:n,y:i}}):null}function ta(t){let e=t[0];switch(e){case 2:case 3:return t.length!==33?null:FS(e,t.subarray(1,33));case 4:case 6:case 7:return t.length!==65?null:DS(e,t.subarray(1,33),t.subarray(33,65));default:return null}}function ka(t,e){let r=e.encode(null,t.length===33);for(let n=0;n<t.length;++n)t[n]=r[n]}U2.exports={contextRandomize(){return 0},privateKeyVerify(t){let e=new at(t);return e.cmp(qe.n)<0&&!e.isZero()?0:1},privateKeyNegate(t){let e=new at(t),r=qe.n.sub(e).umod(qe.n).toArrayLike(Uint8Array,"be",32);return t.set(r),0},privateKeyTweakAdd(t,e){let r=new at(e);if(r.cmp(qe.n)>=0||(r.iadd(new at(t)),r.cmp(qe.n)>=0&&r.isub(qe.n),r.isZero()))return 1;let n=r.toArrayLike(Uint8Array,"be",32);return t.set(n),0},privateKeyTweakMul(t,e){let r=new at(e);if(r.cmp(qe.n)>=0||r.isZero())return 1;r.imul(new at(t)),r.cmp(qe.n)>=0&&(r=r.umod(qe.n));let n=r.toArrayLike(Uint8Array,"be",32);return t.set(n),0},publicKeyVerify(t){return ta(t)===null?1:0},publicKeyCreate(t,e){let r=new at(e);if(r.cmp(qe.n)>=0||r.isZero())return 1;let n=ii.keyFromPrivate(e).getPublic();return ka(t,n),0},publicKeyConvert(t,e){let r=ta(e);if(r===null)return 1;let n=r.getPublic();return ka(t,n),0},publicKeyNegate(t,e){let r=ta(e);if(r===null)return 1;let n=r.getPublic();return n.y=n.y.redNeg(),ka(t,n),0},publicKeyCombine(t,e){let r=new Array(e.length);for(let i=0;i<e.length;++i)if(r[i]=ta(e[i]),r[i]===null)return 1;let n=r[0].getPublic();for(let i=1;i<r.length;++i)n=n.add(r[i].pub);return n.isInfinity()?2:(ka(t,n),0)},publicKeyTweakAdd(t,e,r){let n=ta(e);if(n===null)return 1;if(r=new at(r),r.cmp(qe.n)>=0)return 2;let i=n.getPublic().add(qe.g.mul(r));return i.isInfinity()?2:(ka(t,i),0)},publicKeyTweakMul(t,e,r){let n=ta(e);if(n===null)return 1;if(r=new at(r),r.cmp(qe.n)>=0||r.isZero())return 2;let i=n.getPublic().mul(r);return ka(t,i),0},signatureNormalize(t){let e=new at(t.subarray(0,32)),r=new at(t.subarray(32,64));return e.cmp(qe.n)>=0||r.cmp(qe.n)>=0?1:(r.cmp(ii.nh)===1&&t.set(qe.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(t,e){let r=e.subarray(0,32),n=e.subarray(32,64);if(new at(r).cmp(qe.n)>=0||new at(n).cmp(qe.n)>=0)return 1;let{output:i}=t,a=i.subarray(4,37);a[0]=0,a.set(r,1);let d=33,v=0;for(;d>1&&a[v]===0&&!(a[v+1]&128);--d,++v);if(a=a.subarray(v),a[0]&128||d>1&&a[0]===0&&!(a[1]&128))return 1;let y=i.subarray(39,72);y[0]=0,y.set(n,1);let x=33,B=0;for(;x>1&&y[B]===0&&!(y[B+1]&128);--x,++B);return y=y.subarray(B),y[0]&128||x>1&&y[0]===0&&!(y[1]&128)?1:(t.outputlen=6+d+x,i[0]=48,i[1]=t.outputlen-2,i[2]=2,i[3]=a.length,i.set(a,4),i[4+d]=2,i[5+d]=y.length,i.set(y,6+d),0)},signatureImport(t,e){if(e.length<8||e.length>72||e[0]!==48||e[1]!==e.length-2||e[2]!==2)return 1;let r=e[3];if(r===0||5+r>=e.length||e[4+r]!==2)return 1;let n=e[5+r];if(n===0||6+r+n!==e.length||e[4]&128||r>1&&e[4]===0&&!(e[5]&128)||e[r+6]&128||n>1&&e[r+6]===0&&!(e[r+7]&128))return 1;let i=e.subarray(4,4+r);if(i.length===33&&i[0]===0&&(i=i.subarray(1)),i.length>32)return 1;let a=e.subarray(6+r);if(a.length===33&&a[0]===0&&(a=a.slice(1)),a.length>32)throw new Error("S length is too long");let d=new at(i);d.cmp(qe.n)>=0&&(d=new at(0));let v=new at(e.subarray(6+r));return v.cmp(qe.n)>=0&&(v=new at(0)),t.set(d.toArrayLike(Uint8Array,"be",32),0),t.set(v.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(t,e,r,n,i){if(i){let v=i;i=y=>{let x=v(e,r,null,n,y);if(!(x instanceof Uint8Array&&x.length===32))throw new Error("This is the way");return new at(x)}}let a=new at(r);if(a.cmp(qe.n)>=0||a.isZero())return 1;let d;try{d=ii.sign(e,r,{canonical:!0,k:i,pers:n})}catch{return 1}return t.signature.set(d.r.toArrayLike(Uint8Array,"be",32),0),t.signature.set(d.s.toArrayLike(Uint8Array,"be",32),32),t.recid=d.recoveryParam,0},ecdsaVerify(t,e,r){let n={r:t.subarray(0,32),s:t.subarray(32,64)},i=new at(n.r),a=new at(n.s);if(i.cmp(qe.n)>=0||a.cmp(qe.n)>=0)return 1;if(a.cmp(ii.nh)===1||i.isZero()||a.isZero())return 3;let d=ta(r);if(d===null)return 2;let v=d.getPublic();return ii.verify(e,n,v)?0:3},ecdsaRecover(t,e,r,n){let i={r:e.slice(0,32),s:e.slice(32,64)},a=new at(i.r),d=new at(i.s);if(a.cmp(qe.n)>=0||d.cmp(qe.n)>=0)return 1;if(a.isZero()||d.isZero())return 2;let v;try{v=ii.recoverPubKey(n,i,r)}catch{return 2}return ka(t,v),0},ecdh(t,e,r,n,i,a,d){let v=ta(e);if(v===null)return 1;let y=new at(r);if(y.cmp(qe.n)>=0||y.isZero())return 2;let x=v.getPublic().mul(y);if(i===void 0){let B=x.encode(null,!0),C=ii.hash().update(B).digest();for(let D=0;D<32;++D)t[D]=C[D]}else{a||(a=new Uint8Array(32));let B=x.getX().toArray("be",32);for(let P=0;P<32;++P)a[P]=B[P];d||(d=new Uint8Array(32));let C=x.getY().toArray("be",32);for(let P=0;P<32;++P)d[P]=C[P];let D=i(a,d,n);if(!(D instanceof Uint8Array&&D.length===t.length))return 2;t.set(D)}return 0}}});var G2=V((vD,q2)=>{var mD=A(M());q2.exports=lh()(H2())});var hh=V((xD,dh)=>{var yD=A(M());try{dh.exports=J2()}catch{dh.exports=G2()}});var ph=V((wD,X2)=>{var AD=A(M());X2.exports=rt("stream")});var Q2=V((MD,j2)=>{"use strict";var SD=A(M());function z2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function K2(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?z2(Object(r),!0).forEach(function(n){OS(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z2(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function OS(t,e,r){return e=V2(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function IS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Z2(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,V2(n.key),n)}}function NS(t,e,r){return e&&Z2(t.prototype,e),r&&Z2(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function V2(t){var e=kS(t,"string");return typeof e=="symbol"?e:String(e)}function kS(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var JS=rt("buffer"),Tc=JS.Buffer,US=rt("util"),bh=US.inspect,HS=bh&&bh.custom||"inspect";function qS(t,e,r){Tc.prototype.copy.call(t,e,r)}j2.exports=function(){function t(){IS(this,t),this.head=null,this.tail=null,this.length=0}return NS(t,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Tc.alloc(0);for(var n=Tc.allocUnsafe(r>>>0),i=this.head,a=0;i;)qS(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,a=n.data;for(r-=a.length;n=n.next;){var d=n.data,v=r>d.length?d.length:r;if(v===d.length?a+=d:a+=d.slice(0,r),r-=v,r===0){v===d.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=d.slice(v));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=Tc.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var d=i.data,v=r>d.length?d.length:r;if(d.copy(n,n.length-r,0,v),r-=v,r===0){v===d.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=d.slice(v));break}++a}return this.length-=a,n}},{key:HS,value:function(r,n){return bh(this,K2(K2({},n),{},{depth:0,customInspect:!1}))}}]),t}()});var vh=V((TD,Y2)=>{"use strict";var ED=A(M());function GS(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(gh,this,t)):process.nextTick(gh,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(a){!e&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(Ec,r):(r._writableState.errorEmitted=!0,process.nextTick(W2,r,a)):process.nextTick(W2,r,a):e?(process.nextTick(Ec,r),e(a)):process.nextTick(Ec,r)}),this)}function W2(t,e){gh(t,e),Ec(t)}function Ec(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function XS(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function gh(t,e){t.emit("error",e)}function zS(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}Y2.exports={destroy:GS,undestroy:XS,errorOrDestroy:zS}});var ra=V((_D,ty)=>{"use strict";var BD=A(M()),ey={};function ln(t,e,r){r||(r=Error);function n(a,d,v){return typeof e=="string"?e:e(a,d,v)}class i extends r{constructor(d,v,y){super(n(d,v,y))}}i.prototype.name=r.name,i.prototype.code=t,ey[t]=i}function $2(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(n=>String(n)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function KS(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function ZS(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function VS(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}ln("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);ln("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&KS(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(ZS(t," argument"))i=`The ${t} ${n} ${$2(e,"type")}`;else{let a=VS(t,".")?"property":"argument";i=`The "${t}" ${a} ${n} ${$2(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);ln("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");ln("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});ln("ERR_STREAM_PREMATURE_CLOSE","Premature close");ln("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});ln("ERR_MULTIPLE_CALLBACK","Callback called multiple times");ln("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");ln("ERR_STREAM_WRITE_AFTER_END","write after end");ln("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ln("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);ln("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ty.exports.codes=ey});var mh=V((CD,ry)=>{"use strict";var PD=A(M()),jS=ra().codes.ERR_INVALID_OPT_VALUE;function QS(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function WS(t,e,r,n){var i=QS(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new jS(a,i)}return Math.floor(i)}return t.objectMode?16:16*1024}ry.exports={getHighWaterMark:WS}});var iy=V((LD,ny)=>{var RD=A(M());ny.exports=rt("util").deprecate});var wh=V((FD,uy)=>{"use strict";var DD=A(M());uy.exports=bt;function oy(t){var e=this;this.next=null,this.entry=null,this.finish=function(){ST(e,t)}}var Wo;bt.WritableState=rf;var YS={deprecate:iy()},sy=ph(),Bc=rt("buffer").Buffer,$S=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function eT(t){return Bc.from(t)}function tT(t){return Bc.isBuffer(t)||t instanceof $S}var yh=vh(),rT=mh(),nT=rT.getHighWaterMark,na=ra().codes,iT=na.ERR_INVALID_ARG_TYPE,aT=na.ERR_METHOD_NOT_IMPLEMENTED,oT=na.ERR_MULTIPLE_CALLBACK,sT=na.ERR_STREAM_CANNOT_PIPE,fT=na.ERR_STREAM_DESTROYED,cT=na.ERR_STREAM_NULL_VALUES,uT=na.ERR_STREAM_WRITE_AFTER_END,lT=na.ERR_UNKNOWN_ENCODING,Yo=yh.errorOrDestroy;tr()(bt,sy);function dT(){}function rf(t,e,r){Wo=Wo||Ja(),t=t||{},typeof r!="boolean"&&(r=e instanceof Wo),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=nT(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){xT(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new oy(this)}rf.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(rf.prototype,"buffer",{get:YS.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var _c;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(_c=Function.prototype[Symbol.hasInstance],Object.defineProperty(bt,Symbol.hasInstance,{value:function(e){return _c.call(this,e)?!0:this!==bt?!1:e&&e._writableState instanceof rf}})):_c=function(e){return e instanceof this};function bt(t){Wo=Wo||Ja();var e=this instanceof Wo;if(!e&&!_c.call(bt,this))return new bt(t);this._writableState=new rf(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),sy.call(this)}bt.prototype.pipe=function(){Yo(this,new sT)};function hT(t,e){var r=new uT;Yo(t,r),process.nextTick(e,r)}function pT(t,e,r,n){var i;return r===null?i=new cT:typeof r!="string"&&!e.objectMode&&(i=new iT("chunk",["string","Buffer"],r)),i?(Yo(t,i),process.nextTick(n,i),!1):!0}bt.prototype.write=function(t,e,r){var n=this._writableState,i=!1,a=!n.objectMode&&tT(t);return a&&!Bc.isBuffer(t)&&(t=eT(t)),typeof e=="function"&&(r=e,e=null),a?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=dT),n.ending?hT(this,r):(a||pT(this,n,t,r))&&(n.pendingcb++,i=gT(this,n,a,t,e,r)),i};bt.prototype.cork=function(){this._writableState.corked++};bt.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&fy(this,t))};bt.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new lT(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(bt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function bT(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Bc.from(e,r)),e}Object.defineProperty(bt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function gT(t,e,r,n,i,a){if(!r){var d=bT(e,n,i);n!==d&&(r=!0,i="buffer",n=d)}var v=e.objectMode?1:n.length;e.length+=v;var y=e.length<e.highWaterMark;if(y||(e.needDrain=!0),e.writing||e.corked){var x=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},x?x.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else xh(t,e,!1,v,n,i,a);return y}function xh(t,e,r,n,i,a,d){e.writelen=n,e.writecb=d,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new fT("write")):r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function vT(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(tf,t,e),t._writableState.errorEmitted=!0,Yo(t,n)):(i(n),t._writableState.errorEmitted=!0,Yo(t,n),tf(t,e))}function mT(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function xT(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new oT;if(mT(r),e)vT(t,r,n,e,i);else{var a=cy(r)||t.destroyed;!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&fy(t,r),n?process.nextTick(ay,t,r,a,i):ay(t,r,a,i)}}function ay(t,e,r,n){r||yT(t,e),e.pendingcb--,n(),tf(t,e)}function yT(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function fy(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var d=0,v=!0;r;)i[d]=r,r.isBuf||(v=!1),r=r.next,d+=1;i.allBuffers=v,xh(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new oy(e),e.bufferedRequestCount=0}else{for(;r;){var y=r.chunk,x=r.encoding,B=r.callback,C=e.objectMode?1:y.length;if(xh(t,e,!1,C,y,x,B),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}bt.prototype._write=function(t,e,r){r(new aT("_write()"))};bt.prototype._writev=null;bt.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||MT(this,n,r),this};Object.defineProperty(bt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function cy(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function wT(t,e){t._final(function(r){e.pendingcb--,r&&Yo(t,r),e.prefinished=!0,t.emit("prefinish"),tf(t,e)})}function AT(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(wT,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function tf(t,e){var r=cy(e);if(r&&(AT(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function MT(t,e,r){e.ending=!0,tf(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function ST(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty(bt.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});bt.prototype.destroy=yh.destroy;bt.prototype._undestroy=yh.undestroy;bt.prototype._destroy=function(t,e){e(t)}});var Ja=V((OD,dy)=>{"use strict";var ID=A(M()),TT=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};dy.exports=ai;var ly=Sh(),Mh=wh();tr()(ai,ly);for(Ah=TT(Mh.prototype),Cc=0;Cc<Ah.length;Cc++)Pc=Ah[Cc],ai.prototype[Pc]||(ai.prototype[Pc]=Mh.prototype[Pc]);var Ah,Pc,Cc;function ai(t){if(!(this instanceof ai))return new ai(t);ly.call(this,t),Mh.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",ET)))}Object.defineProperty(ai.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(ai.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(ai.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ET(){this._writableState.ended||process.nextTick(_T,this)}function _T(t){t.end()}Object.defineProperty(ai.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var by=V((Th,py)=>{var ND=A(M()),Lc=rt("buffer"),Ti=Lc.Buffer;function hy(t,e){for(var r in t)e[r]=t[r]}Ti.from&&Ti.alloc&&Ti.allocUnsafe&&Ti.allocUnsafeSlow?py.exports=Lc:(hy(Lc,Th),Th.Buffer=$o);function $o(t,e,r){return Ti(t,e,r)}hy(Ti,$o);$o.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Ti(t,e,r)};$o.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Ti(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};$o.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ti(t)};$o.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Lc.SlowBuffer(t)}});var Bh=V(vy=>{"use strict";var JD=A(M()),_h=by().Buffer,gy=_h.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function BT(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function CT(t){var e=BT(t);if(typeof e!="string"&&(_h.isEncoding===gy||!gy(t)))throw new Error("Unknown encoding: "+t);return e||t}vy.StringDecoder=nf;function nf(t){this.encoding=CT(t);var e;switch(this.encoding){case"utf16le":this.text=OT,this.end=IT,e=4;break;case"utf8":this.fillLast=RT,e=4;break;case"base64":this.text=NT,this.end=kT,e=3;break;default:this.write=JT,this.end=UT;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=_h.allocUnsafe(e)}nf.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};nf.prototype.end=DT;nf.prototype.text=FT;nf.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Eh(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function PT(t,e,r){var n=e.length-1;if(n<r)return 0;var i=Eh(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=Eh(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=Eh(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function LT(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function RT(t){var e=this.lastTotal-this.lastNeed,r=LT(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function FT(t,e){var r=PT(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function DT(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function OT(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function IT(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function NT(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function kT(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function JT(t){return t.toString(this.encoding)}function UT(t){return t&&t.length?this.write(t):""}});var Rc=V((UD,yy)=>{"use strict";var HD=A(M()),my=ra().codes.ERR_STREAM_PREMATURE_CLOSE;function HT(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function qT(){}function GT(t){return t.setHeader&&typeof t.abort=="function"}function xy(t,e,r){if(typeof e=="function")return xy(t,null,e);e||(e={}),r=HT(r||qT);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,a=function(){t.writable||v()},d=t._writableState&&t._writableState.finished,v=function(){i=!1,d=!0,n||r.call(t)},y=t._readableState&&t._readableState.endEmitted,x=function(){n=!1,y=!0,i||r.call(t)},B=function(P){r.call(t,P)},C=function(){var P;if(n&&!y)return(!t._readableState||!t._readableState.ended)&&(P=new my),r.call(t,P);if(i&&!d)return(!t._writableState||!t._writableState.ended)&&(P=new my),r.call(t,P)},D=function(){t.req.on("finish",v)};return GT(t)?(t.on("complete",v),t.on("abort",C),t.req?D():t.on("request",D)):i&&!t._writableState&&(t.on("end",a),t.on("close",a)),t.on("end",x),t.on("finish",v),e.error!==!1&&t.on("error",B),t.on("close",C),function(){t.removeListener("complete",v),t.removeListener("abort",C),t.removeListener("request",D),t.req&&t.req.removeListener("finish",v),t.removeListener("end",a),t.removeListener("close",a),t.removeListener("finish",v),t.removeListener("end",x),t.removeListener("error",B),t.removeListener("close",C)}}yy.exports=xy});var Ay=V((qD,wy)=>{"use strict";var GD=A(M()),Fc;function ia(t,e,r){return e=XT(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XT(t){var e=zT(t,"string");return typeof e=="symbol"?e:String(e)}function zT(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var KT=Rc(),aa=Symbol("lastResolve"),Ua=Symbol("lastReject"),af=Symbol("error"),Dc=Symbol("ended"),Ha=Symbol("lastPromise"),Ch=Symbol("handlePromise"),qa=Symbol("stream");function oa(t,e){return{value:t,done:e}}function ZT(t){var e=t[aa];if(e!==null){var r=t[qa].read();r!==null&&(t[Ha]=null,t[aa]=null,t[Ua]=null,e(oa(r,!1)))}}function VT(t){process.nextTick(ZT,t)}function jT(t,e){return function(r,n){t.then(function(){if(e[Dc]){r(oa(void 0,!0));return}e[Ch](r,n)},n)}}var QT=Object.getPrototypeOf(function(){}),WT=Object.setPrototypeOf((Fc={get stream(){return this[qa]},next:function(){var e=this,r=this[af];if(r!==null)return Promise.reject(r);if(this[Dc])return Promise.resolve(oa(void 0,!0));if(this[qa].destroyed)return new Promise(function(d,v){process.nextTick(function(){e[af]?v(e[af]):d(oa(void 0,!0))})});var n=this[Ha],i;if(n)i=new Promise(jT(n,this));else{var a=this[qa].read();if(a!==null)return Promise.resolve(oa(a,!1));i=new Promise(this[Ch])}return this[Ha]=i,i}},ia(Fc,Symbol.asyncIterator,function(){return this}),ia(Fc,"return",function(){var e=this;return new Promise(function(r,n){e[qa].destroy(null,function(i){if(i){n(i);return}r(oa(void 0,!0))})})}),Fc),QT),YT=function(e){var r,n=Object.create(WT,(r={},ia(r,qa,{value:e,writable:!0}),ia(r,aa,{value:null,writable:!0}),ia(r,Ua,{value:null,writable:!0}),ia(r,af,{value:null,writable:!0}),ia(r,Dc,{value:e._readableState.endEmitted,writable:!0}),ia(r,Ch,{value:function(a,d){var v=n[qa].read();v?(n[Ha]=null,n[aa]=null,n[Ua]=null,a(oa(v,!1))):(n[aa]=a,n[Ua]=d)},writable:!0}),r));return n[Ha]=null,KT(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[Ua];a!==null&&(n[Ha]=null,n[aa]=null,n[Ua]=null,a(i)),n[af]=i;return}var d=n[aa];d!==null&&(n[Ha]=null,n[aa]=null,n[Ua]=null,d(oa(void 0,!0))),n[Dc]=!0}),e.on("readable",VT.bind(null,n)),n};wy.exports=YT});var Ey=V((XD,Ty)=>{"use strict";var zD=A(M());function My(t,e,r,n,i,a,d){try{var v=t[a](d),y=v.value}catch(x){r(x);return}v.done?e(y):Promise.resolve(y).then(n,i)}function $T(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function d(y){My(a,n,i,d,v,"next",y)}function v(y){My(a,n,i,d,v,"throw",y)}d(void 0)})}}function Sy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function eE(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Sy(Object(r),!0).forEach(function(n){tE(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sy(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function tE(t,e,r){return e=rE(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rE(t){var e=nE(t,"string");return typeof e=="symbol"?e:String(e)}function nE(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var iE=ra().codes.ERR_INVALID_ARG_TYPE;function aE(t,e,r){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new iE("iterable",["Iterable"],e);var i=new t(eE({objectMode:!0},r)),a=!1;i._read=function(){a||(a=!0,d())};function d(){return v.apply(this,arguments)}function v(){return v=$T(function*(){try{var y=yield n.next(),x=y.value,B=y.done;B?i.push(null):i.push(yield x)?d():a=!1}catch(C){i.destroy(C)}}),v.apply(this,arguments)}return i}Ty.exports=aE});var Sh=V((ZD,Iy)=>{"use strict";var VD=A(M());Iy.exports=Qe;var es;Qe.ReadableState=Py;var KD=rt("events").EventEmitter,Cy=function(e,r){return e.listeners(r).length},sf=ph(),Oc=rt("buffer").Buffer,oE=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function sE(t){return Oc.from(t)}function fE(t){return Oc.isBuffer(t)||t instanceof oE}var Ph=rt("util"),Ie;Ph&&Ph.debuglog?Ie=Ph.debuglog("stream"):Ie=function(){};var cE=Q2(),Nh=vh(),uE=mh(),lE=uE.getHighWaterMark,Ic=ra().codes,dE=Ic.ERR_INVALID_ARG_TYPE,hE=Ic.ERR_STREAM_PUSH_AFTER_EOF,pE=Ic.ERR_METHOD_NOT_IMPLEMENTED,bE=Ic.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ts,Lh,Rh;tr()(Qe,sf);var of=Nh.errorOrDestroy,Fh=["error","close","destroy","pause","resume"];function gE(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Py(t,e,r){es=es||Ja(),t=t||{},typeof r!="boolean"&&(r=e instanceof es),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=lE(this,t,"readableHighWaterMark",r),this.buffer=new cE,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(ts||(ts=Bh().StringDecoder),this.decoder=new ts(t.encoding),this.encoding=t.encoding)}function Qe(t){if(es=es||Ja(),!(this instanceof Qe))return new Qe(t);var e=this instanceof es;this._readableState=new Py(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),sf.call(this)}Object.defineProperty(Qe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});Qe.prototype.destroy=Nh.destroy;Qe.prototype._undestroy=Nh.undestroy;Qe.prototype._destroy=function(t,e){e(t)};Qe.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Oc.from(t,e),e=""),n=!0),Ly(this,t,e,!1,n)};Qe.prototype.unshift=function(t){return Ly(this,t,null,!0,!1)};function Ly(t,e,r,n,i){Ie("readableAddChunk",e);var a=t._readableState;if(e===null)a.reading=!1,xE(t,a);else{var d;if(i||(d=vE(a,e)),d)of(t,d);else if(a.objectMode||e&&e.length>0)if(typeof e!="string"&&!a.objectMode&&Object.getPrototypeOf(e)!==Oc.prototype&&(e=sE(e)),n)a.endEmitted?of(t,new bE):Dh(t,a,e,!0);else if(a.ended)of(t,new hE);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||e.length!==0?Dh(t,a,e,!1):Ih(t,a)):Dh(t,a,e,!1)}else n||(a.reading=!1,Ih(t,a))}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function Dh(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Nc(t)),Ih(t,e)}function vE(t,e){var r;return!fE(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new dE("chunk",["string","Buffer","Uint8Array"],e)),r}Qe.prototype.isPaused=function(){return this._readableState.flowing===!1};Qe.prototype.setEncoding=function(t){ts||(ts=Bh().StringDecoder);var e=new ts(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var _y=1073741824;function mE(t){return t>=_y?t=_y:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function By(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=mE(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Qe.prototype.read=function(t){Ie("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Ie("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Oh(this):Nc(this),null;if(t=By(t,e),t===0&&e.ended)return e.length===0&&Oh(this),null;var n=e.needReadable;Ie("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,Ie("length less than watermark",n)),e.ended||e.reading?(n=!1,Ie("reading or ended",n)):n&&(Ie("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=By(r,e)));var i;return t>0?i=Dy(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Oh(this)),i!==null&&this.emit("data",i),i};function xE(t,e){if(Ie("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Nc(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Ry(t)))}}function Nc(t){var e=t._readableState;Ie("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Ie("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Ry,t))}function Ry(t){var e=t._readableState;Ie("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,kh(t)}function Ih(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(yE,t,e))}function yE(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(Ie("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}Qe.prototype._read=function(t){of(this,new pE("_read()"))};Qe.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,Ie("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,a=i?v:X;n.endEmitted?process.nextTick(a):r.once("end",a),t.on("unpipe",d);function d(W,K){Ie("onunpipe"),W===r&&K&&K.hasUnpiped===!1&&(K.hasUnpiped=!0,B())}function v(){Ie("onend"),t.end()}var y=wE(r);t.on("drain",y);var x=!1;function B(){Ie("cleanup"),t.removeListener("close",F),t.removeListener("finish",P),t.removeListener("drain",y),t.removeListener("error",D),t.removeListener("unpipe",d),r.removeListener("end",v),r.removeListener("end",X),r.removeListener("data",C),x=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&y()}r.on("data",C);function C(W){Ie("ondata");var K=t.write(W);Ie("dest.write",K),K===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&Oy(n.pipes,t)!==-1)&&!x&&(Ie("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function D(W){Ie("onerror",W),X(),t.removeListener("error",D),Cy(t,"error")===0&&of(t,W)}gE(t,"error",D);function F(){t.removeListener("finish",P),X()}t.once("close",F);function P(){Ie("onfinish"),t.removeListener("close",F),X()}t.once("finish",P);function X(){Ie("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(Ie("pipe resume"),r.resume()),t};function wE(t){return function(){var r=t._readableState;Ie("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Cy(t,"data")&&(r.flowing=!0,kh(t))}}Qe.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var d=Oy(e.pipes,t);return d===-1?this:(e.pipes.splice(d,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Qe.prototype.on=function(t,e){var r=sf.prototype.on.call(this,t,e),n=this._readableState;return t==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,Ie("on readable",n.length,n.reading),n.length?Nc(this):n.reading||process.nextTick(AE,this)),r};Qe.prototype.addListener=Qe.prototype.on;Qe.prototype.removeListener=function(t,e){var r=sf.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Fy,this),r};Qe.prototype.removeAllListeners=function(t){var e=sf.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Fy,this),e};function Fy(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function AE(t){Ie("readable nexttick read 0"),t.read(0)}Qe.prototype.resume=function(){var t=this._readableState;return t.flowing||(Ie("resume"),t.flowing=!t.readableListening,ME(this,t)),t.paused=!1,this};function ME(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(SE,t,e))}function SE(t,e){Ie("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),kh(t),e.flowing&&!e.reading&&t.read(0)}Qe.prototype.pause=function(){return Ie("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ie("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function kh(t){var e=t._readableState;for(Ie("flow",e.flowing);e.flowing&&t.read()!==null;);}Qe.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(Ie("wrapped end"),r.decoder&&!r.ended){var d=r.decoder.end();d&&d.length&&e.push(d)}e.push(null)}),t.on("data",function(d){if(Ie("wrapped data"),r.decoder&&(d=r.decoder.write(d)),!(r.objectMode&&d==null)&&!(!r.objectMode&&(!d||!d.length))){var v=e.push(d);v||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=function(v){return function(){return t[v].apply(t,arguments)}}(i));for(var a=0;a<Fh.length;a++)t.on(Fh[a],this.emit.bind(this,Fh[a]));return this._read=function(d){Ie("wrapped _read",d),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(Qe.prototype[Symbol.asyncIterator]=function(){return Lh===void 0&&(Lh=Ay()),Lh(this)});Object.defineProperty(Qe.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(Qe.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Qe.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});Qe._fromList=Dy;Object.defineProperty(Qe.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Dy(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Oh(t){var e=t._readableState;Ie("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(TE,e,t))}function TE(t,e){if(Ie("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(Qe.from=function(t,e){return Rh===void 0&&(Rh=Ey()),Rh(Qe,t,e)});function Oy(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var Jh=V((jD,ky)=>{"use strict";var QD=A(M());ky.exports=Ei;var kc=ra().codes,EE=kc.ERR_METHOD_NOT_IMPLEMENTED,_E=kc.ERR_MULTIPLE_CALLBACK,BE=kc.ERR_TRANSFORM_ALREADY_TRANSFORMING,CE=kc.ERR_TRANSFORM_WITH_LENGTH_0,Jc=Ja();tr()(Ei,Jc);function PE(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new _E);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function Ei(t){if(!(this instanceof Ei))return new Ei(t);Jc.call(this,t),this._transformState={afterTransform:PE.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",LE)}function LE(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Ny(t,e,r)}):Ny(this,null,null)}Ei.prototype.push=function(t,e){return this._transformState.needTransform=!1,Jc.prototype.push.call(this,t,e)};Ei.prototype._transform=function(t,e,r){r(new EE("_transform()"))};Ei.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};Ei.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Ei.prototype._destroy=function(t,e){Jc.prototype._destroy.call(this,t,function(r){e(r)})};function Ny(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new CE;if(t._transformState.transforming)throw new BE;return t.push(null)}});var Hy=V((WD,Uy)=>{"use strict";var YD=A(M());Uy.exports=ff;var Jy=Jh();tr()(ff,Jy);function ff(t){if(!(this instanceof ff))return new ff(t);Jy.call(this,t)}ff.prototype._transform=function(t,e,r){r(null,t)}});var Ky=V(($D,zy)=>{"use strict";var eO=A(M()),Uh;function RE(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Xy=ra().codes,FE=Xy.ERR_MISSING_ARGS,DE=Xy.ERR_STREAM_DESTROYED;function qy(t){if(t)throw t}function OE(t){return t.setHeader&&typeof t.abort=="function"}function IE(t,e,r,n){n=RE(n);var i=!1;t.on("close",function(){i=!0}),Uh===void 0&&(Uh=Rc()),Uh(t,{readable:e,writable:r},function(d){if(d)return n(d);i=!0,n()});var a=!1;return function(d){if(!i&&!a){if(a=!0,OE(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(d||new DE("pipe"))}}}function Gy(t){t()}function NE(t,e){return t.pipe(e)}function kE(t){return!t.length||typeof t[t.length-1]!="function"?qy:t.pop()}function JE(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=kE(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new FE("streams");var i,a=e.map(function(d,v){var y=v<e.length-1,x=v>0;return IE(d,y,x,function(B){i||(i=B),B&&a.forEach(Gy),!y&&(a.forEach(Gy),n(i))})});return e.reduce(NE)}zy.exports=JE});var Hh=V((dn,uf)=>{var tO=A(M()),cf=rt("stream");process.env.READABLE_STREAM==="disable"&&cf?(uf.exports=cf.Readable,Object.assign(uf.exports,cf),uf.exports.Stream=cf):(dn=uf.exports=Sh(),dn.Stream=cf||dn,dn.Readable=dn,dn.Writable=wh(),dn.Duplex=Ja(),dn.Transform=Jh(),dn.PassThrough=Hy(),dn.finished=Rc(),dn.pipeline=Ky())});var jy=V((rO,Vy)=>{var nO=A(M()),{Transform:UE}=Hh();Vy.exports=t=>class Zy extends UE{constructor(r,n,i,a,d){super(d),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._hashBitLength=a,this._options=d,this._state=new t,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let a=null;try{this.update(r,n)}catch(d){a=d}i(a)}_flush(r){let n=null;try{this.push(this.digest())}catch(i){n=i}r(n)}update(r,n){if(!Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(r)||(r=Buffer.from(r,n)),this._state.absorb(r),this}digest(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return r!==void 0&&(n=n.toString(r)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let r=new Zy(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}}});var Yy=V((iO,Wy)=>{var aO=A(M()),{Transform:HE}=Hh();Wy.exports=t=>class Qy extends HE{constructor(r,n,i,a){super(a),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._options=a,this._state=new t,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let a=null;try{this.update(r,n)}catch(d){a=d}i(a)}_flush(){}_read(r){this.push(this.squeeze(r))}update(r,n){if(!Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(r)||(r=Buffer.from(r,n)),this._state.absorb(r),this}squeeze(r,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let i=this._state.squeeze(r);return n!==void 0&&(i=i.toString(n)),i}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let r=new Qy(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}}});var qh=V((oO,$y)=>{var sO=A(M()),qE=jy(),GE=Yy();$y.exports=function(t){let e=qE(t),r=GE(t);return function(n,i){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new e(1152,448,null,224,i);case"keccak256":return new e(1088,512,null,256,i);case"keccak384":return new e(832,768,null,384,i);case"keccak512":return new e(576,1024,null,512,i);case"sha3-224":return new e(1152,448,6,224,i);case"sha3-256":return new e(1088,512,6,256,i);case"sha3-384":return new e(832,768,6,384,i);case"sha3-512":return new e(576,1024,6,512,i);case"shake128":return new r(1344,256,31,i);case"shake256":return new r(1088,512,31,i);default:throw new Error("Invald algorithm: "+n)}}}});var r3=V((fO,t3)=>{var cO=A(M()),e3=uh()(__dirname);if(typeof e3!="function")throw new Error("Native add-on failed to load");t3.exports=qh()(e3)});var a3=V(i3=>{var lO=A(M()),n3=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];i3.p1600=function(t){for(let e=0;e<24;++e){let r=t[0]^t[10]^t[20]^t[30]^t[40],n=t[1]^t[11]^t[21]^t[31]^t[41],i=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],d=t[4]^t[14]^t[24]^t[34]^t[44],v=t[5]^t[15]^t[25]^t[35]^t[45],y=t[6]^t[16]^t[26]^t[36]^t[46],x=t[7]^t[17]^t[27]^t[37]^t[47],B=t[8]^t[18]^t[28]^t[38]^t[48],C=t[9]^t[19]^t[29]^t[39]^t[49],D=B^(i<<1|a>>>31),F=C^(a<<1|i>>>31),P=t[0]^D,X=t[1]^F,W=t[10]^D,K=t[11]^F,ie=t[20]^D,ee=t[21]^F,ae=t[30]^D,ne=t[31]^F,$=t[40]^D,fe=t[41]^F;D=r^(d<<1|v>>>31),F=n^(v<<1|d>>>31);let te=t[2]^D,Y=t[3]^F,T=t[12]^D,s=t[13]^F,u=t[22]^D,l=t[23]^F,f=t[32]^D,c=t[33]^F,g=t[42]^D,m=t[43]^F;D=i^(y<<1|x>>>31),F=a^(x<<1|y>>>31);let h=t[4]^D,o=t[5]^F,p=t[14]^D,E=t[15]^F,b=t[24]^D,w=t[25]^F,U=t[34]^D,S=t[35]^F,N=t[44]^D,G=t[45]^F;D=d^(B<<1|C>>>31),F=v^(C<<1|B>>>31);let Z=t[6]^D,_=t[7]^F,R=t[16]^D,L=t[17]^F,O=t[26]^D,q=t[27]^F,I=t[36]^D,J=t[37]^F,z=t[46]^D,k=t[47]^F;D=y^(r<<1|n>>>31),F=x^(n<<1|r>>>31);let H=t[8]^D,Q=t[9]^F,j=t[18]^D,re=t[19]^F,De=t[28]^D,se=t[29]^F,le=t[38]^D,Ue=t[39]^F,oe=t[48]^D,ce=t[49]^F,Xe=P,ge=X,ve=K<<4|W>>>28,vt=W<<4|K>>>28,pe=ie<<3|ee>>>29,be=ee<<3|ie>>>29,Ye=ne<<9|ae>>>23,de=ae<<9|ne>>>23,ue=$<<18|fe>>>14,Kt=fe<<18|$>>>14,me=te<<1|Y>>>31,xe=Y<<1|te>>>31,Zt=s<<12|T>>>20,ye=T<<12|s>>>20,we=u<<10|l>>>22,Vt=l<<10|u>>>22,Ae=c<<13|f>>>19,Me=f<<13|c>>>19,jt=g<<2|m>>>30,Se=m<<2|g>>>30,Te=o<<30|h>>>2,Qt=h<<30|o>>>2,Ee=p<<6|E>>>26,_e=E<<6|p>>>26,Wt=w<<11|b>>>21,Be=b<<11|w>>>21,Ce=U<<15|S>>>17,Yt=S<<15|U>>>17,Pe=G<<29|N>>>3,Le=N<<29|G>>>3,$t=Z<<28|_>>>4,Re=_<<28|Z>>>4,Fe=L<<23|R>>>9,Dt=R<<23|L>>>9,Ne=O<<25|q>>>7,ke=q<<25|O>>>7,St=I<<21|J>>>11,Tt=J<<21|I>>>11,Et=k<<24|z>>>8,_t=z<<24|k>>>8,Bt=H<<27|Q>>>5,hr=Q<<27|H>>>5,pr=j<<20|re>>>12,br=re<<20|j>>>12,gr=se<<7|De>>>25,vr=De<<7|se>>>25,mr=le<<8|Ue>>>24,xr=Ue<<8|le>>>24,yr=oe<<14|ce>>>18,wr=ce<<14|oe>>>18;t[0]=Xe^~Zt&Wt,t[1]=ge^~ye&Be,t[10]=$t^~pr&pe,t[11]=Re^~br&be,t[20]=me^~Ee&Ne,t[21]=xe^~_e&ke,t[30]=Bt^~ve&we,t[31]=hr^~vt&Vt,t[40]=Te^~Fe&gr,t[41]=Qt^~Dt&vr,t[2]=Zt^~Wt&St,t[3]=ye^~Be&Tt,t[12]=pr^~pe&Ae,t[13]=br^~be&Me,t[22]=Ee^~Ne&mr,t[23]=_e^~ke&xr,t[32]=ve^~we&Ce,t[33]=vt^~Vt&Yt,t[42]=Fe^~gr&Ye,t[43]=Dt^~vr&de,t[4]=Wt^~St&yr,t[5]=Be^~Tt&wr,t[14]=pe^~Ae&Pe,t[15]=be^~Me&Le,t[24]=Ne^~mr&ue,t[25]=ke^~xr&Kt,t[34]=we^~Ce&Et,t[35]=Vt^~Yt&_t,t[44]=gr^~Ye&jt,t[45]=vr^~de&Se,t[6]=St^~yr&Xe,t[7]=Tt^~wr&ge,t[16]=Ae^~Pe&$t,t[17]=Me^~Le&Re,t[26]=mr^~ue&me,t[27]=xr^~Kt&xe,t[36]=Ce^~Et&Bt,t[37]=Yt^~_t&hr,t[46]=Ye^~jt&Te,t[47]=de^~Se&Qt,t[8]=yr^~Xe&Zt,t[9]=wr^~ge&ye,t[18]=Pe^~$t&pr,t[19]=Le^~Re&br,t[28]=ue^~me&Ee,t[29]=Kt^~xe&_e,t[38]=Et^~Bt&ve,t[39]=_t^~hr&vt,t[48]=jt^~Te&Fe,t[49]=Se^~Qt&Dt,t[0]^=n3[e*2],t[1]^=n3[e*2+1]}}});var s3=V((dO,o3)=>{var hO=A(M()),Uc=a3();function rs(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}rs.prototype.initialize=function(t,e){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1};rs.prototype.absorb=function(t){for(let e=0;e<t.length;++e)this.state[~~(this.count/4)]^=t[e]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(Uc.p1600(this.state),this.count=0)};rs.prototype.absorbLastFewBits=function(t){this.state[~~(this.count/4)]^=t<<8*(this.count%4),t&128&&this.count===this.blockSize-1&&Uc.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),Uc.p1600(this.state),this.count=0,this.squeezing=!0};rs.prototype.squeeze=function(t){this.squeezing||this.absorbLastFewBits(1);let e=Buffer.alloc(t);for(let r=0;r<t;++r)e[r]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(Uc.p1600(this.state),this.count=0);return e};rs.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing};o3.exports=rs});var c3=V((pO,f3)=>{var bO=A(M());f3.exports=qh()(s3())});var u3=V((gO,Gh)=>{var vO=A(M());try{Gh.exports=r3()}catch{Gh.exports=c3()}});var AJ=A(M(),1);var Ak=A(M(),1);var F_=A(M(),1);var A_=A(M(),1),xt={module:"ISShJH1ij-hPPt9St5UFFr_8Ys3Kj5cyg7zrMGt7H9s",scheduler:"_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA",mu:"fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY",src:{asset:"LlyF5s11sJIWvfNbkH-tavR-P7IJfTvkHHOdlwtGIJM",collection:"EmeE2B70hVDdhr9fWou3i_nKARSb_6LXvxRFTH67qvU",collectionActivity:"8cQtC9TsWURFzboq1aozm8VbzRBc5GGVt7yB80kapfc",comments:"RvozS-4Mbcmq66gPapsNOyERkg3LrpR0vSRKz8wIi4k",moderation:"-33uBfOgyXkQIwIv-XbfP-Bx74KYl--h2Cnk4TTiiLA",zone:{id:"7LOQqqyUKjWAls-VvuqbUMYHBFIjhwX8BNXWUhXNDVI",version:"0.0.5"}},collectionRegistry:"zwKi27GuKS3GOlwL3EhNGH02SJDDAO5Uy43ZJwomhZ4"},up={defaultNode:"https://forward.computer"},lp={"application/json":{type:"application/json",serialize:t=>JSON.stringify(t)}},Pn={arweave:"arweave.net",ao:"ao-search-gateway.goldsky.com"};var Ve={keys:{access:"Access-Fee",ans110:{title:"Title",description:"Description",topic:"Topic:*",type:"Type",implements:"Implements",license:"License"},assetType:"Asset-Type",banner:"Banner",bootloader:"Bootloader",collectionId:"Collection-Id",collectionName:"Collection-Name",commericalUse:"Commercial-Use",contentType:"Content-Type",creator:"Creator",currency:"Currency",dataModelTraining:"Data-Model-Training",dataProtocol:"Data-Protocol",dateCreated:"Date-Created",derivations:"Derivations",description:"Description",displayName:"Display-Name",handle:"Handle",implements:"Implements",initialOwner:"Initial-Owner",license:"License",name:"Name",onBoot:"On-Boot",paymentAddress:"Payment-Address",paymentMode:"Payment-Mode",profileCreator:"Profile-Creator",profileIndex:"Profile-Index",protocolName:"Protocol-Name",renderWith:"Render-With",thumbnail:"Thumbnail",title:"Title",topic:"Topic",type:"Type",zoneType:"Zone-Type"},values:{dataProtocol:"ao",document:"Document",user:"User"}},su={node1:"https://turbo.ardrive.io",batchSize:1,chunkSize:75e5,dispatchUploadSize:100*1024};var B_=A(M(),1);var T_=A(M(),1);function Er(t){return t?/^[a-z0-9_-]{43}$/i.test(t):!1}function Bf(t,e){for(let r=0;r<t.length;r++)if(t[r]&&t[r].name===e)return t[r].value;return null}function dp(t){let e=t.match(/^data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+);base64,/);return e?e[1]:null}function hp(t){return t.split(",")[1]}function pp(t){let e;if(Buffer.isBuffer(t))e=t.length;else if(typeof t=="string")e=Buffer.byteLength(t,"utf-8");else throw new Error("Input must be a string or a Buffer");return e}function fu(t){let e;return e=t.replace(/\[|\]/g,""),`[[${e}]]`}function as(t){let e;return e=t.replace(/\[|\]/g,""),e}var Ar=(...t)=>{console.log("[@permaweb/libs]",...t)};function b8(t){return t.replace(/^[a-z]/,e=>e.toUpperCase())}function Ya(t){return Array.isArray(t)?t.map(Ya):t&&typeof t=="object"?Object.entries(t).reduce((e,[r,n])=>{let i=b8(r);return e[i]=Er(n)?n:Ya(n),e},{}):t}function g8(t){return t.charAt(0).toLowerCase()+t.slice(1)}function _r(t){return Array.isArray(t)?t.map(_r):t&&typeof t=="object"?Object.entries(t).reduce((e,[r,n])=>{let i=Er(r)||r.includes("-")?r:g8(r);return e[i]=Er(n)?n:_r(n),e},{}):t}function ar(t,e){let r=t.charAt(0).toUpperCase()+t.slice(1);return{name:`${Ve.keys.bootloader}-${r}`,value:e}}function Cf(t){return Er(t)||t.startsWith("data")}function cu(t){return t.map(e=>({...e,value:e.value.replace(/\r?\n/g," ")}))}var v8="https://arweave.net";function Pf(t){return`${v8}/${t}`}async function m8(t,e){let r=[{name:"Authority",value:t.node?.authority??xt.mu},{name:"Process-Timestamp",value:new Date().getTime().toString()}];e.tags&&e.tags.length>0&&e.tags.forEach(n=>r.push(n));try{let n=await t.ao.spawn({module:e.module,scheduler:t.node?.scheduler||e.scheduler,signer:t.signer,tags:cu(r),data:e.data});return Ar(`Process ID: ${n}`),Ar("Sending initial message..."),await ot(t,{processId:n,action:"Init"}),n}catch(n){throw console.log(n),new Error(n.message??"Error spawning process")}}function bp(t){return async e=>await ot(t,e)}async function ot(t,e){try{let r=[{name:"Action",value:e.action},{name:"Message-Timestamp",value:new Date().getTime().toString()}];e.tags&&r.push(...e.tags);let n=e.useRawData?e.data:JSON.stringify(e.data);return await t.ao.message({process:e.processId,signer:t.signer,tags:cu(r),data:n})}catch(r){throw new Error(r)}}function gp(t){return async e=>await Ur(t,e)}async function Ur(t,e){let n=`${t.node?.url??up.defaultNode}/${e.processId}~process@1.0/now`;e.path&&(n+=`/${e.path}`);try{let i={};e.path||(i["require-codec"]="application/json",i["accept-bundle"]="true");let a=await fetch(n,{headers:i});if(a.ok)return a.json();throw new Error("Error getting state from HyperBEAM.")}catch(i){if(e.fallbackAction)return await Lf(t,{processId:e.processId,action:e.fallbackAction,tags:e.tags});throw i}}function vp(t){return async e=>await Lf(t,e)}async function Lf(t,e){try{let r=[{name:"Action",value:e.action}];e.tags&&r.push(...e.tags);let n;if(typeof e.data=="object")n=JSON.stringify(e.data||{});else if(typeof e.data=="string"){try{JSON.parse(e.data)}catch(a){throw console.error(a),new Error("Invalid JSON data")}n=e.data}let i=await t.ao.dryrun({process:e.processId,tags:r,data:n});if(i.Messages&&i.Messages.length){if(i.Messages[0].Data)return JSON.parse(i.Messages[0].Data);if(i.Messages[0].Tags)return i.Messages[0].Tags.reduce((a,d)=>(a[d.name]=d.value,a),{})}}catch(r){throw new Error(r.message??"Error dryrunning process")}}async function x8(t,e){try{let{Messages:r}=await t.ao.result({message:e.messageId,process:e.processId});if(r&&r.length){let n={};return r.forEach(i=>{let a=Bf(i.Tags,"Action")||e.action,d=null,v=i.Data;if(v)try{d=JSON.parse(v)}catch{d=v}let y=Bf(i.Tags,"Status"),x=Bf(i.Tags,"Message");n[a]={id:e.messageId,status:y,message:x,data:d}}),n}else return null}catch(r){console.error(r)}}async function os(t,e){let r=null;if(e.evalSrc)r=e.evalSrc;else if(e.evalTxId)try{r=await(await fetch(Pf(e.evalTxId))).text()}catch(n){throw new Error(n)}if(r)try{let n=await ot(t,{processId:e.processId,action:"Eval",data:r,tags:e.evalTags||null,useRawData:!0});return Ar(`Eval: ${n}`),await x8(t,{processId:e.processId,messageId:n,action:"Eval"})}catch(n){throw new Error(n.message??"Error sending process eval")}return null}function Ln(t){return async(e,r)=>{try{let n={module:e.module||xt.module,scheduler:t.node?.scheduler||xt.scheduler};e.data&&(n.data=e.data),e.tags&&(n.tags=e.tags),r&&r("Spawning process...");let i=await m8(t,n);if(e.evalTxId||e.evalSrc){r&&r("Process retrieved!"),r&&r("Sending eval...");try{await os(t,{processId:i,evalTxId:e.evalTxId||null,evalSrc:e.evalSrc||null,evalTags:e.evalTags})&&r&&r("Eval complete")}catch(a){throw new Error(a.message??"Error creating process")}}return i}catch(n){throw new Error(n.message??"Error creating process")}}}var mk=A(M(),1);var lk=A(M(),1);var Yh={};ap(Yh,{AVSCTap:()=>Mf,AlgorandSigner:()=>pf,AptosSigner:()=>gf,ArconnectSigner:()=>sa,Arweave:()=>y1.default,ArweaveSigner:()=>ha,Bundle:()=>jc,BundleItem:()=>Wh,CryptoDriver:()=>Zf,Curve25519:()=>Rr,DataItem:()=>Kc,EthereumSigner:()=>Jr,HexInjectedSolanaSigner:()=>za,HexSolanaSigner:()=>bf,InjectedAptosSigner:()=>Ka,InjectedEthereumSigner:()=>th,InjectedSolanaSigner:()=>pa,InjectedTypedEthereumSigner:()=>Zh,KyveSigner:()=>xf,MAX_TAG_BYTES:()=>zc,MIN_BINARY_SIZE:()=>Zc,MultiSignatureAptosSigner:()=>Za,NearSigner:()=>hf,PolygonSigner:()=>df,Rsa4096:()=>la,SIG_CONFIG:()=>Je,SignatureConfig:()=>Oe,Signer:()=>uu,SolanaSigner:()=>Mi,Transaction:()=>x1.default,TypedEthereumSigner:()=>Va,bundleAndSignData:()=>WE,byteArrayToLong:()=>gt,concatBuffers:()=>$e.concatBuffers,createData:()=>Ef,deepHash:()=>Ri,deserializeTags:()=>ns,exportForTesting:()=>zE,getCryptoDriver:()=>wt,getSignatureAndId:()=>T3,indexToType:()=>yf,keccak256:()=>Xh,longTo16ByteArray:()=>ZE,longTo32ByteArray:()=>Xc,longTo8ByteArray:()=>Gc,longToNByteArray:()=>Af,secp256k1:()=>Xa,serializeTags:()=>jh,shortTo2ByteArray:()=>Vh,sign:()=>Vc,stringToBuffer:()=>$e.stringToBuffer,unbundleData:()=>QE});var JN=A(M(),1);var KI=A(M(),1);var O_=A(M(),1),uu=class{publicKey;signatureType;signatureLength;ownerLength;pem;static verify(e,r,n,i){throw new Error("You must implement verify method on child")}};var JI=A(M(),1);var Q_=A(M(),1),Lp=A(Hr(),1);var G_=A(M(),1),Oe;(function(t){t[t.ARWEAVE=1]="ARWEAVE",t[t.ED25519=2]="ED25519",t[t.ETHEREUM=3]="ETHEREUM",t[t.SOLANA=4]="SOLANA",t[t.INJECTEDAPTOS=5]="INJECTEDAPTOS",t[t.MULTIAPTOS=6]="MULTIAPTOS",t[t.TYPEDETHEREUM=7]="TYPEDETHEREUM",t[t.KYVE=101]="KYVE"})(Oe||(Oe={}));var Je={[Oe.ARWEAVE]:{sigLength:512,pubLength:512,sigName:"arweave"},[Oe.ED25519]:{sigLength:64,pubLength:32,sigName:"ed25519"},[Oe.ETHEREUM]:{sigLength:65,pubLength:65,sigName:"ethereum"},[Oe.SOLANA]:{sigLength:64,pubLength:32,sigName:"solana"},[Oe.INJECTEDAPTOS]:{sigLength:64,pubLength:32,sigName:"injectedAptos"},[Oe.MULTIAPTOS]:{sigLength:64*32+4,pubLength:32*32+1,sigName:"multiAptos"},[Oe.TYPEDETHEREUM]:{sigLength:65,pubLength:42,sigName:"typedEthereum"},[Oe.KYVE]:{sigLength:65,pubLength:65,sigName:"kyve"}};var K_=A(M(),1);import*as S8 from"crypto";var er=BigInt(0),ze=BigInt(1),eo=BigInt(2),T8=BigInt(8),wp=BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),st=Object.freeze({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),l:wp,n:wp,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")});var _p=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),ss=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),X_=BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742"),E8=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),_8=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),B8=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),C8=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),Ot=class t{constructor(e,r,n,i){this.x=e,this.y=r,this.z=n,this.t=i}static fromAffine(e){if(!(e instanceof yt))throw new TypeError("ExtendedPoint#fromAffine: expected Point");return e.equals(yt.ZERO)?t.ZERO:new t(e.x,e.y,ze,he(e.x*e.y))}static toAffineBatch(e){let r=R8(e.map(n=>n.z));return e.map((n,i)=>n.toAffine(r[i]))}static normalizeZ(e){return this.toAffineBatch(e).map(this.fromAffine)}equals(e){Mp(e);let{x:r,y:n,z:i}=this,{x:a,y:d,z:v}=e,y=he(r*v),x=he(a*i),B=he(n*v),C=he(d*i);return y===x&&B===C}negate(){return new t(he(-this.x),this.y,this.z,he(-this.t))}double(){let{x:e,y:r,z:n}=this,{a:i}=st,a=he,d=a(e*e),v=a(r*r),y=a(eo*a(n*n)),x=a(i*d),B=e+r,C=a(a(B*B)-d-v),D=x+v,F=D-y,P=x-v,X=a(C*F),W=a(D*P),K=a(C*P),ie=a(F*D);return new t(X,W,ie,K)}add(e){let{x:r,y:n,z:i,t:a}=this;Mp(e);let{x:d,y:v,z:y,t:x}=e,{a:B,d:C}=st,D=he,F=D(r*d),P=D(n*v),X=D(a*C*x),W=D(i*y),K=D((r+n)*(d+v)-F-P),ie=D(W-X),ee=D(W+X),ae=D(P-B*F),ne=D(K*ie),$=D(ee*ae),fe=D(K*ae),te=D(ie*ee);return new t(ne,$,te,fe)}subtract(e){return this.add(e.negate())}precomputeWindow(e){let r=1+256/e,n=[],i=this,a=i;for(let d=0;d<r;d++){a=i,n.push(a);for(let v=1;v<2**(e-1);v++)a=a.add(i),n.push(a);i=a.double()}return n}wNAF(e,r){!r&&this.equals(t.BASE)&&(r=yt.BASE);let n=r&&r._WINDOW_SIZE||1;if(256%n)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let i=r&&xu.get(r);i||(i=this.precomputeWindow(n),r&&n!==1&&(i=t.normalizeZ(i),xu.set(r,i)));let a=t.ZERO,d=t.BASE,v=1+256/n,y=2**(n-1),x=BigInt(2**n-1),B=2**n,C=BigInt(n);for(let D=0;D<v;D++){let F=D*y,P=Number(e&x);e>>=C,P>y&&(P-=B,e+=ze);let X=F,W=F+Math.abs(P)-1,K=D%2!==0,ie=P<0;P===0?d=d.add(Ap(K,i[X])):a=a.add(Ap(ie,i[W]))}return t.normalizeZ([a,d])[0]}multiply(e,r){return this.wNAF(Df(e,st.l),r)}multiplyUnsafe(e){let r=Df(e,st.l,!1),n=t.BASE,i=t.ZERO;if(r===er)return i;if(this.equals(i)||r===ze)return this;if(this.equals(n))return this.wNAF(r);let a=i,d=this;for(;r>er;)r&ze&&(a=a.add(d)),d=d.double(),r>>=ze;return a}isSmallOrder(){return this.multiplyUnsafe(st.h).equals(t.ZERO)}isTorsionFree(){let e=this.multiplyUnsafe(st.l/eo).double();return st.l%eo&&(e=e.add(this)),e.equals(t.ZERO)}toAffine(e){let{x:r,y:n,z:i}=this,a=this.equals(t.ZERO);e==null&&(e=a?T8:Of(i));let d=he(r*e),v=he(n*e),y=he(i*e);if(a)return yt.ZERO;if(y!==ze)throw new Error("invZ was invalid");return new yt(d,v)}fromRistrettoBytes(){gu()}toRistrettoBytes(){gu()}fromRistrettoHash(){gu()}};Ot.BASE=new Ot(st.Gx,st.Gy,ze,he(st.Gx*st.Gy));Ot.ZERO=new Ot(er,ze,ze,er);function Ap(t,e){let r=e.negate();return t?r:e}function Mp(t){if(!(t instanceof Ot))throw new TypeError("ExtendedPoint expected")}function bu(t){if(!(t instanceof ca))throw new TypeError("RistrettoPoint expected")}function gu(){throw new Error("Legacy method: switch to RistrettoPoint")}var ca=class t{constructor(e){this.ep=e}static calcElligatorRistrettoMap(e){let{d:r}=st,n=he(ss*e*e),i=he((n+ze)*B8),a=BigInt(-1),d=he((a-r*n)*he(n+r)),{isValid:v,value:y}=Au(i,d),x=he(y*e);Ci(x)||(x=he(-x)),v||(y=x),v||(a=n);let B=he(a*(n-ze)*C8-d),C=y*y,D=he((y+y)*d),F=he(B*E8),P=he(ze-C),X=he(ze+C);return new Ot(he(D*X),he(P*F),he(F*X),he(D*P))}static hashToCurve(e){e=Pi(e,64);let r=vu(e.slice(0,32)),n=this.calcElligatorRistrettoMap(r),i=vu(e.slice(32,64)),a=this.calcElligatorRistrettoMap(i);return new t(n.add(a))}static fromHex(e){e=Pi(e,32);let{a:r,d:n}=st,i="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",a=vu(e);if(!D8(cs(a),e)||Ci(a))throw new Error(i);let d=he(a*a),v=he(ze+r*d),y=he(ze-r*d),x=he(v*v),B=he(y*y),C=he(r*n*x-B),{isValid:D,value:F}=Ep(he(C*B)),P=he(F*y),X=he(F*P*C),W=he((a+a)*P);Ci(W)&&(W=he(-W));let K=he(v*X),ie=he(W*K);if(!D||Ci(ie)||K===er)throw new Error(i);return new t(new Ot(W,K,ze,ie))}toRawBytes(){let{x:e,y:r,z:n,t:i}=this.ep,a=he(he(n+r)*he(n-r)),d=he(e*r),v=he(d*d),{value:y}=Ep(he(a*v)),x=he(y*a),B=he(y*d),C=he(x*B*i),D;if(Ci(i*C)){let P=he(r*ss),X=he(e*ss);e=P,r=X,D=he(x*_8)}else D=B;Ci(e*C)&&(r=he(-r));let F=he((n-r)*D);return Ci(F)&&(F=he(-F)),cs(F)}toHex(){return us(this.toRawBytes())}toString(){return this.toHex()}equals(e){bu(e);let r=this.ep,n=e.ep,i=he(r.x*n.y)===he(r.y*n.x),a=he(r.y*n.y)===he(r.x*n.x);return i||a}add(e){return bu(e),new t(this.ep.add(e.ep))}subtract(e){return bu(e),new t(this.ep.subtract(e.ep))}multiply(e){return new t(this.ep.multiply(e))}multiplyUnsafe(e){return new t(this.ep.multiplyUnsafe(e))}};ca.BASE=new ca(Ot.BASE);ca.ZERO=new ca(Ot.ZERO);var xu=new WeakMap,yt=class t{constructor(e,r){this.x=e,this.y=r}_setWindowSize(e){this._WINDOW_SIZE=e,xu.delete(this)}static fromHex(e,r=!0){let{d:n,P:i}=st;e=Pi(e,32);let a=e.slice();a[31]=e[31]&-129;let d=ls(a);if(r&&d>=i)throw new Error("Expected 0 < hex < P");if(!r&&d>=_p)throw new Error("Expected 0 < hex < 2**256");let v=he(d*d),y=he(v-ze),x=he(n*v+ze),{isValid:B,value:C}=Au(y,x);if(!B)throw new Error("Point.fromHex: invalid y coordinate");let D=(C&ze)===ze;return(e[31]&128)!==0!==D&&(C=he(-C)),new t(C,d)}static async fromPrivateKey(e){return(await Mu(e)).point}toRawBytes(){let e=cs(this.y);return e[31]|=this.x&ze?128:0,e}toHex(){return us(this.toRawBytes())}toX25519(){let{y:e}=this,r=he((ze+e)*Of(ze-e));return cs(r)}isTorsionFree(){return Ot.fromAffine(this).isTorsionFree()}equals(e){return this.x===e.x&&this.y===e.y}negate(){return new t(he(-this.x),this.y)}add(e){return Ot.fromAffine(this).add(Ot.fromAffine(e)).toAffine()}subtract(e){return this.add(e.negate())}multiply(e){return Ot.fromAffine(this).multiply(e,this).toAffine()}};yt.BASE=new yt(st.Gx,st.Gy);yt.ZERO=new yt(er,ze);var fs=class t{constructor(e,r){this.r=e,this.s=r,this.assertValidity()}static fromHex(e){let r=Pi(e,64),n=yt.fromHex(r.slice(0,32),!1),i=ls(r.slice(32,64));return new t(n,i)}assertValidity(){let{r:e,s:r}=this;if(!(e instanceof yt))throw new Error("Expected Point instance");return Df(r,st.l,!1),this}toRawBytes(){let e=new Uint8Array(64);return e.set(this.r.toRawBytes()),e.set(cs(this.s),32),e}toHex(){return us(this.toRawBytes())}};function Bp(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function yu(t){if(!Bp(t))throw new Error("Uint8Array expected")}function Sp(...t){if(t.every(yu),t.length===1)return t[0];let e=t.reduce((n,i)=>n+i.length,0),r=new Uint8Array(e);for(let n=0,i=0;n<t.length;n++){let a=t[n];r.set(a,i),i+=a.length}return r}var P8=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function us(t){yu(t);let e="";for(let r=0;r<t.length;r++)e+=P8[t[r]];return e}var ci={_0:48,_9:57,A:65,F:70,a:97,f:102};function Tp(t){if(t>=ci._0&&t<=ci._9)return t-ci._0;if(t>=ci.A&&t<=ci.F)return t-(ci.A-10);if(t>=ci.a&&t<=ci.f)return t-(ci.a-10)}function wu(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);let e=t.length,r=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);let n=new Uint8Array(r);for(let i=0,a=0;i<r;i++,a+=2){let d=Tp(t.charCodeAt(a)),v=Tp(t.charCodeAt(a+1));if(d===void 0||v===void 0){let y=t[a]+t[a+1];throw new Error('hex string expected, got non-hex character "'+y+'" at index '+a)}n[i]=d*16+v}return n}function Cp(t){let r=t.toString(16).padStart(64,"0");return wu(r)}function cs(t){return Cp(t).reverse()}function Ci(t){return(he(t)&ze)===ze}function ls(t){return yu(t),BigInt("0x"+us(Uint8Array.from(t).reverse()))}var L8=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function vu(t){return he(ls(t)&L8)}function he(t,e=st.P){let r=t%e;return r>=er?r:e+r}function Of(t,e=st.P){if(t===er||e<=er)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=he(t,e),n=e,i=er,a=ze,d=ze,v=er;for(;r!==er;){let x=n/r,B=n%r,C=i-d*x,D=a-v*x;n=r,r=B,i=d,a=v,d=C,v=D}if(n!==ze)throw new Error("invert: does not exist");return he(i,e)}function R8(t,e=st.P){let r=new Array(t.length),n=t.reduce((a,d,v)=>d===er?a:(r[v]=a,he(a*d,e)),ze),i=Of(n,e);return t.reduceRight((a,d,v)=>d===er?a:(r[v]=he(a*r[v],e),he(a*d,e)),i),r}function Rn(t,e){let{P:r}=st,n=t;for(;e-- >er;)n*=n,n%=r;return n}function F8(t){let{P:e}=st,r=BigInt(5),n=BigInt(10),i=BigInt(20),a=BigInt(40),d=BigInt(80),y=t*t%e*t%e,x=Rn(y,eo)*y%e,B=Rn(x,ze)*t%e,C=Rn(B,r)*B%e,D=Rn(C,n)*C%e,F=Rn(D,i)*D%e,P=Rn(F,a)*F%e,X=Rn(P,d)*P%e,W=Rn(X,d)*P%e,K=Rn(W,n)*C%e;return{pow_p_5_8:Rn(K,eo)*t%e,b2:y}}function Au(t,e){let r=he(e*e*e),n=he(r*r*e),i=F8(t*n).pow_p_5_8,a=he(t*r*i),d=he(e*a*a),v=a,y=he(a*ss),x=d===t,B=d===he(-t),C=d===he(-t*ss);return x&&(a=v),(B||C)&&(a=y),Ci(a)&&(a=he(-a)),{isValid:x||B,value:a}}function Ep(t){return Au(ze,t)}function Ff(t){return he(ls(t),st.l)}function D8(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function Pi(t,e){let r=Bp(t)?Uint8Array.from(t):wu(t);if(typeof e=="number"&&r.length!==e)throw new Error(`Expected ${e} bytes`);return r}function Df(t,e,r=!0){if(!e)throw new TypeError("Specify max value");if(typeof t=="number"&&Number.isSafeInteger(t)&&(t=BigInt(t)),typeof t=="bigint"&&t<e){if(r){if(er<t)return t}else if(er<=t)return t}throw new TypeError("Expected valid scalar: 0 < scalar < max")}function O8(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function I8(t){if(t=typeof t=="bigint"||typeof t=="number"?Cp(Df(t,_p)):Pi(t),t.length!==32)throw new Error("Expected 32 bytes");return t}function N8(t){let e=O8(t.slice(0,32)),r=t.slice(32,64),n=Ff(e),i=yt.BASE.multiply(n),a=i.toRawBytes();return{head:e,prefix:r,scalar:n,point:i,pointBytes:a}}var mu;async function Mu(t){return N8(await to.sha512(I8(t)))}async function Pp(t,e){t=Pi(t);let{prefix:r,scalar:n,pointBytes:i}=await Mu(e),a=Ff(await to.sha512(r,t)),d=yt.BASE.multiply(a),v=Ff(await to.sha512(d.toRawBytes(),i,t)),y=he(a+v*n,st.l);return new fs(d,y).toRawBytes()}function k8(t,e,r){e=Pi(e),r instanceof yt||(r=yt.fromHex(r,!1));let{r:n,s:i}=t instanceof fs?t.assertValidity():fs.fromHex(t),a=Ot.BASE.multiplyUnsafe(i);return{r:n,s:i,SB:a,pub:r,msg:e}}function J8(t,e,r,n){let i=Ff(n),a=Ot.fromAffine(t).multiplyUnsafe(i);return Ot.fromAffine(e).add(a).subtract(r).multiplyUnsafe(st.h).equals(Ot.ZERO)}async function Li(t,e,r){let{r:n,SB:i,msg:a,pub:d}=k8(t,e,r),v=await to.sha512(n.toRawBytes(),d.toRawBytes(),a);return J8(d,n,i,v)}yt.BASE._setWindowSize(8);var Bi={node:S8,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0},to={bytesToHex:us,hexToBytes:wu,concatBytes:Sp,getExtendedPublicKey:Mu,mod:he,invert:Of,TORSION_SUBGROUP:["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"],hashToPrivateScalar:t=>{if(t=Pi(t),t.length<40||t.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return he(ls(t),st.l-ze)+ze},randomBytes:(t=32)=>{if(Bi.web)return Bi.web.getRandomValues(new Uint8Array(t));if(Bi.node){let{randomBytes:e}=Bi.node;return new Uint8Array(e(t).buffer)}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>to.randomBytes(32),sha512:async(...t)=>{let e=Sp(...t);if(Bi.web){let r=await Bi.web.subtle.digest("SHA-512",e.buffer);return new Uint8Array(r)}else{if(Bi.node)return Uint8Array.from(Bi.node.createHash("sha512").update(e).digest());throw new Error("The environment doesn't have sha512 function")}},precompute(t=8,e=yt.BASE){let r=e.equals(yt.BASE)?e:new yt(e.x,e.y);return r._setWindowSize(t),r.multiply(eo),r},sha512Sync:void 0};Object.defineProperties(to,{sha512Sync:{configurable:!1,get(){return mu},set(t){mu||(mu=t)}}});var Rr=class{_key;pk;ownerLength=Je[2].pubLength;signatureLength=Je[2].sigLength;_publicKey;get publicKey(){return this._publicKey}signatureType=2;constructor(e,r){this._key=e,this.pk=r}get key(){throw new Error("You must implement `key`")}sign(e){return Pp(Buffer.from(e),Buffer.from(this.key))}static async verify(e,r,n){let i=e;return typeof e=="string"&&(i=Lp.default.toBuffer(e)),Li(Buffer.from(n),Buffer.from(r),Buffer.from(i))}};var mI=A(M(),1);var kC=A(M(),1);var jB=A(M(),1);var GB=A(M(),1),$e=A(gn(),1);var iB=A(M(),1);import{createHash as Q8}from"crypto";async function Ri(t){if(typeof t[Symbol.asyncIterator]=="function"){let i=t,a=Q8("sha384"),d=0;for await(let x of i)d+=x.byteLength,a.update(x);let v=(0,$e.concatBuffers)([(0,$e.stringToBuffer)("blob"),(0,$e.stringToBuffer)(d.toString())]),y=(0,$e.concatBuffers)([await wt().hash(v,"SHA-384"),a.digest()]);return await wt().hash(y,"SHA-384")}else if(Array.isArray(t)){let i=(0,$e.concatBuffers)([(0,$e.stringToBuffer)("list"),(0,$e.stringToBuffer)(t.length.toString())]);return await Gp(t,await wt().hash(i,"SHA-384"))}let e=t,r=(0,$e.concatBuffers)([(0,$e.stringToBuffer)("blob"),(0,$e.stringToBuffer)(e.byteLength.toString())]),n=(0,$e.concatBuffers)([await wt().hash(r,"SHA-384"),await wt().hash(e,"SHA-384")]);return await wt().hash(n,"SHA-384")}async function Gp(t,e){if(t.length<1)return e;let r=(0,$e.concatBuffers)([e,await Ri(t[0])]),n=await wt().hash(r,"SHA-384");return await Gp(t.slice(1),n)}var Kf=A(_u(),1),x1=A(vs(),1),y1=A(m1(),1),E6=Kf.default.default?Kf.default.default:Kf.default,Zf=class extends E6{getPublicKey(e){throw new Error("Unimplemented")}},_6;function wt(){return _6??=new Zf}var w1=A(Hr(),1);import{constants as B6,createSign as C6}from"crypto";var la=class{_key;pk;signatureType=1;ownerLength=Je[1].pubLength;signatureLength=Je[1].sigLength;_publicKey;get publicKey(){return this._publicKey}constructor(e,r){this._key=e,this.pk=r,r||(this.pk=wt().getPublicKey(JSON.parse(e)))}sign(e){return C6("sha256").update(e).sign({key:this._key,padding:B6.RSA_PKCS1_PSS_PADDING})}static async verify(e,r,n){return await wt().verify(Buffer.isBuffer(e)?w1.default.encode(e):e,r,n)}};var lb=A(ub(),1),db=A(Hr(),1);var ha=class extends la{jwk;constructor(e){super((0,lb.jwkTopem)(e),e.n),this.jwk=e}get publicKey(){if(!this.pk)throw new Error("ArweaveSigner - pk is undefined");return db.default.toBuffer(this.pk)}sign(e){return wt().sign(this.jwk,e)}static async verify(e,r,n){return await wt().verify(e,r,n)}};var qC=A(M(),1),hb=A(Hr(),1);var pa=class{_publicKey;ownerLength=Je[2].pubLength;signatureLength=Je[2].sigLength;signatureType=2;pem;provider;constructor(e){if(this.provider=e,!this.provider.publicKey)throw new Error("InjectedSolanaSigner - provider.publicKey is undefined");this._publicKey=this.provider.publicKey.toBuffer()}get publicKey(){return this._publicKey}async sign(e){if(!this.provider.signMessage)throw new Error("Selected Wallet does not support message signing");return await this.provider.signMessage(e)}static async verify(e,r,n){let i=e;return typeof e=="string"&&(i=hb.default.toBuffer(e)),Li(Buffer.from(n),Buffer.from(r),Buffer.from(i))}};var QF=A(M(),1),u2=A(Cs(),1),l2=A(Ns(),1);var eh=A(nt(),1),d2=A(Js(),1),h2=A(ef(),1),th=class{signer;publicKey;ownerLength=Je[Oe.ETHEREUM].pubLength;signatureLength=Je[Oe.ETHEREUM].sigLength;signatureType=Oe.ETHEREUM;constructor(e){this.signer=e.getSigner()}async setPublicKey(){let e="sign this message to connect to Bundlr.Network",r=await this.signer.signMessage(e),n=await(0,u2.hashMessage)(e),i=(0,l2.recoverPublicKey)((0,eh.arrayify)(n),r);this.publicKey=Buffer.from((0,eh.arrayify)(i))}async sign(e){this.publicKey||await this.setPublicKey();let r=await this.signer.signMessage(e);return Buffer.from(r.slice(2),"hex")}static verify(e,r,n){let i=(0,d2.computeAddress)(e);return(0,h2.verifyMessage)(r,n)===i}};var iD=A(M(),1);var jo=A(y2(),1),Mi=class extends Rr{get publicKey(){return jo.default.decode(this.pk)}get key(){return jo.default.decode(this._key)}constructor(e){let r=jo.default.decode(e);super(jo.default.encode(r.subarray(0,32)),jo.default.encode(r.subarray(32,64)))}};var PO=A(M(),1);var _O=A(M(),1);var SO=A(M(),1),m3=A(Hr(),1),zh=A(hh(),1);var yO=A(M(),1),l3=A(u3(),1);import{Buffer as Ga}from"buffer";function Xh(t){return t=d3(t),(0,l3.default)("keccak256").update(t).digest()}function d3(t){if(!Ga.isBuffer(t))if(Array.isArray(t))t=Ga.from(t);else if(typeof t=="string")h3(t)?t=Ga.from(Hc(p3(t)),"hex"):t=Ga.from(t);else if(typeof t=="number")t=g3(t);else if(typeof t=="bigint")t=XE(t);else if(t==null)t=Ga.allocUnsafe(0);else throw new Error("invalid type");return t}function h3(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}function Hc(t){if(typeof t!="string")throw new Error(`while padding to even, value must be string, is currently ${typeof t}, while padToEven.`);return t.length%2&&(t=`0${t}`),t}function p3(t){return typeof t!="string"?t:b3(t)?t.slice(2):t}function b3(t){if(typeof t!="string")throw new Error("value must be type 'string', is currently type "+typeof t+", while checking isHexPrefixed.");return t.startsWith("0x")}function g3(t){let e=v3(t);return Ga.from(Hc(e.slice(2)),"hex")}function v3(t){return`0x${t.toString(16)}`}function XE(t){let e=t.toString(16);return Ga.from(Hc(e),"hex")}typeof window<"u"&&(window.keccak256=Xh);var lf=Xh,zE={intToBuffer:g3,intToHex:v3,isHexPrefixed:b3,stripHexPrefix:p3,padToEven:Hc,isHexString:h3,toBuffer:d3};var Xa=class{_key;ownerLength=Je[Oe.ETHEREUM].pubLength;signatureLength=Je[Oe.ETHEREUM].sigLength;signatureType=Oe.ETHEREUM;pk;constructor(e,r){this._key=e,this.pk=r.toString("hex")}get publicKey(){throw new Error("You must implement `publicKey`")}get key(){return Buffer.from(this._key,"hex")}static async verify(e,r,n){let i=e;typeof e=="string"&&(i=m3.default.toBuffer(e));let a=!1;try{a=zh.default.ecdsaVerify(n,lf(Buffer.from(r)),i)}catch{}return a}async sign(e){return zh.default.ecdsaSign(lf(Buffer.from(e)),Buffer.from(this.key)).signature}};var Kh=A(hh(),1),x3=A(Hr(),1),y3=A(nt(),1),w3=A(ef(),1),A3=A(Cs(),1),Jr=class extends Xa{get publicKey(){return Buffer.from(this.pk,"hex")}constructor(e){e.startsWith("0x")&&(e=e.slice(2));let r=Buffer.from(e,"hex"),n=Kh.default.publicKeyCreate(r,!1);super(e,Buffer.from(n))}async sign(e){return new w3.Wallet(this._key).signMessage(e).then(n=>Buffer.from(n.slice(2),"hex"))}static async verify(e,r,n){return Kh.default.ecdsaVerify(n.length===65?n.slice(0,-1):n,(0,y3.arrayify)((0,A3.hashMessage)(r)),typeof e=="string"?x3.default.toBuffer(e):e)}};var df=class extends Jr{};var FO=A(M(),1);var hf=class extends Mi{constructor(e){super(e.replace("ed25519:",""))}};var IO=A(M(),1);var pf=class extends Rr{get publicKey(){return Buffer.from(this.pk)}get key(){return Buffer.from(this._key)}constructor(e,r){super(e.subarray(0,32),r)}};var JO=A(M(),1);var za=class extends pa{signatureType=4;constructor(e){super(e)}async sign(e){return super.sign(Buffer.from(Buffer.from(e).toString("hex")))}static async verify(e,r,n){return super.verify(e,Buffer.from(Buffer.from(r).toString("hex")),n)}};var qO=A(M(),1);var bf=class extends Mi{signatureType=4;constructor(e){super(e)}async sign(e){return super.sign(Buffer.from(Buffer.from(e).toString("hex")))}static async verify(e,r,n){return super.verify(e,Buffer.from(Buffer.from(r).toString("hex")),n)}};var zO=A(M(),1);var gf=class extends Rr{constructor(e,r){super(e,r)}get publicKey(){return Buffer.from(this.pk.slice(2),"hex")}get key(){return Buffer.from(this._key.slice(2),"hex")}};var jO=A(M(),1);var Ka=class{_publicKey;ownerLength=Je[Oe.INJECTEDAPTOS].pubLength;signatureLength=Je[Oe.INJECTEDAPTOS].sigLength;signatureType=Oe.INJECTEDAPTOS;pem;provider;constructor(e,r){this.provider=e,this._publicKey=r}get publicKey(){return this._publicKey}async sign(e){if(!this.provider.signMessage)throw new Error("Selected Wallet does not support message signing");let n=(await this.provider.signMessage({message:Buffer.from(e).toString("hex"),nonce:"bundlr"})).signature;return typeof n=="string"?Buffer.from(n,"hex"):n.data.toUint8Array()}static async verify(e,r,n){let i=e;return Li(Buffer.from(n),Buffer.from(`APTOS
15
15
  message: ${Buffer.from(r).toString("hex")}
16
- nonce: bundlr`),Buffer.from(i))}};var WO=A(S(),1);var Ka=class{_publicKey;ownerLength=Je[Oe.MULTIAPTOS].pubLength;signatureLength=Je[Oe.MULTIAPTOS].sigLength;signatureType=Oe.MULTIAPTOS;collectSignatures;provider;constructor(e,r){this._publicKey=e,this.collectSignatures=r}get publicKey(){return this._publicKey}async sign(e){let{signatures:r,bitmap:n}=await this.collectSignatures(e),i=128,a=new Uint8Array([0,0,0,0]),d=new Set;n.forEach(x=>{if(x>=32)throw new Error(`Invalid bit value ${x}.`);if(d.has(x))throw new Error("Duplicated bits detected.");d.add(x);let B=Math.floor(x/8),C=a[B];C|=i>>x%8,a[B]=C});let v=Buffer.alloc(this.signatureLength),y=0;for(let x=0;x<32;x++)n.includes(x)&&v.set(r[y++],x*64);return v.set(a,this.signatureLength-4),v}static async verify(e,r,n){let a=Je[Oe.MULTIAPTOS].sigLength-4,d=n.slice(0,a),v=n.slice(a),y=!1;for(let x=0;x<32;x++){let B=Math.floor(x/8),C=x-B*8;if((v[B]&128>>C)!==0){let F=d.slice(x*64,(x+1)*64),P=e.slice(x*32,(x+1)*32);await Li(Buffer.from(F),Buffer.from(r),Buffer.from(P))||(y=!0)}}return!y}};var rI=A(S(),1),qc=A(ef(),1);var Za=class extends kr{ownerLength=Je[Oe.TYPEDETHEREUM].pubLength;signatureLength=Je[Oe.TYPEDETHEREUM].sigLength;signatureType=Oe.TYPEDETHEREUM;address;signer;constructor(e){super(e),this.address="0x"+lf(super.publicKey.slice(1)).slice(-20).toString("hex"),this.signer=new qc.Wallet(e)}get publicKey(){return Buffer.from(this.address)}async sign(e){let r=await this.signer._signTypedData(vf,mf,{address:this.address,"Transaction hash":e});return Buffer.from(r.slice(2),"hex")}static async verify(e,r,n){let i=e.toString(),a=(0,qc.verifyTypedData)(vf,mf,{address:i,"Transaction hash":r},n);return i.toLowerCase()===a.toLowerCase()}},vf={name:"Bundlr",version:"1"},mf={Bundlr:[{name:"Transaction hash",type:"bytes"},{name:"address",type:"address"}]};var oI=A(S(),1);var A3=A(ef(),1);var Kh=class{ownerLength=Je[Oe.TYPEDETHEREUM].pubLength;signatureLength=Je[Oe.TYPEDETHEREUM].sigLength;signatureType=Oe.TYPEDETHEREUM;address;signer;publicKey;constructor(e){this.signer=e.getSigner()}async ready(){this.address=(await this.signer.getAddress()).toString().toLowerCase(),this.publicKey=Buffer.from(this.address)}async sign(e){let r=await this.signer._signTypedData(vf,mf,{address:this.address,"Transaction hash":e});return Buffer.from(r.slice(2),"hex")}static verify(e,r,n){let i=e.toString(),a=(0,A3.verifyTypedData)(vf,mf,{address:i,"Transaction hash":r},n);return i.toLowerCase()===a.toLowerCase()}};var uI=A(S(),1);var M3=A(Hr(),1);var Va=class{signer;publicKey;ownerLength=Je[Oe.ARWEAVE].pubLength;signatureLength=Je[Oe.ARWEAVE].sigLength;signatureType=Oe.ARWEAVE;constructor(e){this.signer=e}async setPublicKey(){let e=await this.signer.getActivePublicKey();this.publicKey=M3.default.toBuffer(e)}async sign(e){this.publicKey||await this.setPublicKey();let r={name:"RSA-PSS",saltLength:32},n=await this.signer.signature(e,r);return new Uint8Array(Object.values(n).map(a=>+a))}static async verify(e,r,n){return await wt().verify(e,r,n)}};var pI=A(S(),1);var xf=class extends kr{signatureType=Oe.KYVE};var yf={1:da,2:Lr,3:kr,4:Xa,5:za,6:Ka,7:Za};var JI=A(S(),1);var YI=A(S(),1);async function XE(t){return Ri([(0,$e.stringToBuffer)("dataitem"),(0,$e.stringToBuffer)("1"),(0,$e.stringToBuffer)(t.signatureType.toString()),t.rawOwner,t.rawTarget,t.rawAnchor,t.rawTags,t.rawData])}var wf=XE;var TN=A(S(),1);var eN=A(S(),1);function Af(t,e){let r=new Uint8Array(t);if(e<0)throw new Error("Array is unsigned, cannot represent -ve numbers");if(e>2**(t*8)-1)throw new Error(`Number ${e} is too large for an array of ${t} bytes`);for(let n=0;n<r.length;n++){let i=e&255;r[n]=i,e=(e-i)/256}return r}function Gc(t){return Af(8,t)}function Zh(t){return Af(2,t)}function zE(t){return Af(16,t)}function Xc(t){return Af(32,t)}function gt(t){let e=0;for(let r=t.length-1;r>=0;r--)e=e*256+t[r];return e}var xN=A(S(),1),Tf=A(Hr(),1);var pN=A(S(),1);var hn=A(Hr(),1);import{Buffer as Sf}from"buffer";var nN=A(S(),1);var Mf=class{buf;pos;constructor(e=Buffer.alloc(zc),r=0){this.buf=e,this.pos=r}writeTags(e){if(!Array.isArray(e))throw new Error("input must be array");let r=e.length,n;if(r)for(this.writeLong(r),n=0;n<r;n++){let i=e[n];if(typeof i?.name!="string"||typeof i?.value!="string")throw new Error(`Invalid tag format for ${i}, expected {name:string, value: string}`);this.writeString(i.name),this.writeString(i.value)}this.writeLong(0)}toBuffer(){let e=Buffer.alloc(this.pos);if(this.pos>this.buf.length)throw new Error(`Too many tag bytes (${this.pos} > ${this.buf.length})`);return this.buf.copy(e,0,0,this.pos),e}writeLong(e){let r=this.buf,n,i;if(e>=-1073741824&&e<1073741824){i=e>=0?e<<1:~e<<1|1;do r[this.pos]=i&127,i>>=7;while(i&&(r[this.pos++]|=128))}else{n=e>=0?e*2:-e*2-1;do r[this.pos]=n&127,n/=128;while(n>=1&&(r[this.pos++]|=128))}this.pos++,this.buf=r}writeString(e){let r=Buffer.byteLength(e),n=this.buf;this.writeLong(r);let i=this.pos;if(this.pos+=r,!(this.pos>n.length)){if(r>64)this.buf.write(e,this.pos-r,r,"utf8");else{let a,d,v,y;for(a=0,d=r;a<d;a++)v=e.charCodeAt(a),v<128?n[i++]=v:v<2048?(n[i++]=v>>6|192,n[i++]=v&63|128):(v&64512)===55296&&((y=e.charCodeAt(a+1))&64512)===56320?(v=65536+((v&1023)<<10)+(y&1023),a++,n[i++]=v>>18|240,n[i++]=v>>12&63|128,n[i++]=v>>6&63|128,n[i++]=v&63|128):(n[i++]=v>>12|224,n[i++]=v>>6&63|128,n[i++]=v&63|128)}this.buf=n}}readLong(){let e=0,r=0,n=this.buf,i,a,d,v;do i=n[this.pos++],a=i&128,e|=(i&127)<<r,r+=7;while(a&&r<28);if(a){d=e,v=268435456;do i=n[this.pos++],d+=(i&127)*v,v*=128;while(i&128);return(d%2?-(d+1):d)/2}return e>>1^-(e&1)}skipLong(){let e=this.buf;for(;e[this.pos++]&128;);}readTags(){let e=[],r;for(;r=this.readLong();)for(r<0&&(r=-r,this.skipLong());r--;){let n=this.readString(),i=this.readString();e.push({name:n,value:i})}return e}readString(){let e=this.readLong(),r=this.pos,n=this.buf;if(this.pos+=e,this.pos>n.length)throw new Error("TAP Position out of range");return this.buf.slice(r,r+e).toString()}};function Vh(t){if(t?.length===0)return Buffer.allocUnsafe(0);let e=new Mf;return e.writeTags(t),e.toBuffer()}function ns(t){return new Mf(t).readTags()}import{createHash as KE}from"crypto";var Zc=80,zc=4096,Kc=class t{binary;_id;constructor(e){this.binary=e}static isDataItem(e){return e.binary!==void 0}get signatureType(){let e=gt(this.binary.subarray(0,2));if(Oe?.[e]!==void 0)return e;throw new Error("Unknown signature type: "+e)}async isValid(){return t.verify(this.binary)}get id(){return hn.default.encode(this.rawId)}set id(e){this._id=hn.default.toBuffer(e)}get rawId(){return KE("sha256").update(this.rawSignature).digest()}set rawId(e){this._id=e}get rawSignature(){return this.binary.subarray(2,2+this.signatureLength)}get signature(){return hn.default.encode(this.rawSignature)}set rawOwner(e){if(e.byteLength!=this.ownerLength)throw new Error(`Expected raw owner (pubkey) to be ${this.ownerLength} bytes, got ${e.byteLength} bytes.`);this.binary.set(e,2+this.signatureLength)}get rawOwner(){return this.binary.subarray(2+this.signatureLength,2+this.signatureLength+this.ownerLength)}get signatureLength(){return Je[this.signatureType].sigLength}get owner(){return hn.default.encode(this.rawOwner)}get ownerLength(){return Je[this.signatureType].pubLength}get rawTarget(){let e=this.getTargetStart();return this.binary[e]==1?this.binary.subarray(e+1,e+33):Sf.alloc(0)}get target(){return hn.default.encode(this.rawTarget)}get rawAnchor(){let e=this.getAnchorStart();return this.binary[e]==1?this.binary.subarray(e+1,e+33):Sf.alloc(0)}get anchor(){return hn.default.encode(this.rawAnchor)}get rawTags(){let e=this.getTagsStart(),r=gt(this.binary.subarray(e+8,e+16));return this.binary.subarray(e+16,e+16+r)}get tags(){let e=this.getTagsStart();if(gt(this.binary.subarray(e,e+8))==0)return[];let n=gt(this.binary.subarray(e+8,e+16));return ns(Sf.from(this.binary.subarray(e+16,e+16+n)))}get tagsB64Url(){return this.tags.map(r=>({name:hn.default.encode(r.name),value:hn.default.encode(r.value)}))}getStartOfData(){let e=this.getTagsStart(),r=this.binary.subarray(e+8,e+16),n=gt(r);return e+16+n}get rawData(){let e=this.getTagsStart(),r=this.binary.subarray(e+8,e+16),n=gt(r),i=e+16+n;return this.binary.subarray(i,this.binary.length)}get data(){return hn.default.encode(this.rawData)}getRaw(){return this.binary}async sign(e){return this._id=await Vc(this,e),this.rawId}async setSignature(e){this.binary.set(e,2),this._id=Sf.from(await wt().hash(e))}isSigned(){return(this._id?.length??0)>0}toJSON(){return{signature:this.signature,owner:this.owner,target:this.target,tags:this.tags.map(e=>({name:hn.default.encode(e.name),value:hn.default.encode(e.value)})),data:this.data}}static async verify(e){if(e.byteLength<Zc)return!1;let r=new t(e),n=r.signatureType,i=r.getTagsStart(),a=gt(e.subarray(i,i+8)),d=e.subarray(i+8,i+16),v=gt(d);if(v>zc)return!1;if(a>0)try{if(ns(Sf.from(e.subarray(i+16,i+16+v))).length!==a)return!1}catch{return!1}let y=yf[n],x=await wf(r);return await y.verify(r.rawOwner,x,r.rawSignature)}async getSignatureData(){return wf(this)}getTagsStart(){let e=this.getTargetStart(),r=this.binary[e]==1,n=e+(r?33:1),i=this.binary[n]==1;return n+=i?33:1,n}getTargetStart(){return 2+this.signatureLength+this.ownerLength}getAnchorStart(){let e=this.getTargetStart()+1,r=this.binary[this.getTargetStart()]==1;return e+=r?32:0,e}},is=Kc;import{createHash as ZE}from"crypto";var oi=32,jc=class{length;items;binary;constructor(e){this.binary=e,this.length=this.getDataItemCount(),this.items=this.getItems()}getRaw(){return this.binary}get(e){if(typeof e=="number"){if(e>=this.length)throw new RangeError("Index out of range");return this.getByIndex(e)}else return this.getById(e)}getSizes(){let e=[];for(let r=oi;r<oi+64*this.length;r+=64)e.push(gt(this.binary.subarray(r,r+32)));return e}getIds(){let e=[];for(let r=oi;r<oi+64*this.length;r+=64){let n=this.binary.subarray(r+32,r+64);if(n.length===0)throw new Error("Invalid bundle, id specified in headers doesn't exist");e.push(Tf.default.encode(n))}return e}getIdBy(e){if(e>this.length-1)throw new RangeError("Index of bundle out of range");let r=64+64*e;return Tf.default.encode(this.binary.subarray(r,r+32))}async toTransaction(e,r,n){let i=await r.createTransaction({data:this.binary,...e},n);return i.addTag("Bundle-Format","binary"),i.addTag("Bundle-Version","2.0.0"),i}async verify(){for(let e of this.items){let r=await e.isValid(),n=(0,Tf.default)(ZE("sha256").update(e.rawSignature).digest());if(!(r&&e.id===n))return!1}return!0}getOffset(e){let r=0;for(let n=oi;n<oi+64*this.length;n+=64){let i=gt(this.binary.subarray(n,n+32));r+=i;let a=this.binary.subarray(n+32,n+64);if(Buffer.compare(a,e)===0)return{startOffset:r,size:i}}return{startOffset:-1,size:-1}}getByIndex(e){let r=0,n=this.getBundleStart(),i=0,a,d;for(let B=oi;B<oi+64*this.length;B+=64){if(a=gt(this.binary.subarray(B,B+32)),i++===e){d=this.binary.subarray(B+32,B+64);break}r+=a}let v=n+r,y=this.binary.subarray(v,v+a),x=new is(y);return x.rawId=d,x}getById(e){let r=Tf.default.toBuffer(e),n=this.getOffset(r);if(n.startOffset===-1)throw new Error("Transaction not found");let a=this.getBundleStart()+n.startOffset;return new is(this.binary.subarray(a,a+n.size))}getDataItemCount(){return gt(this.binary.subarray(0,32))}getBundleStart(){return 32+64*this.length}getItems(){let e=new Array(this.length),r=0,n=this.getBundleStart(),i=0;for(let a=oi;a<oi+64*this.length;a+=64){let d=gt(this.binary.subarray(a,a+32)),v=this.binary.subarray(a+32,a+64);if(v.length===0)throw new Error("Invalid bundle, id specified in headers doesn't exist");let y=n+r,x=this.binary.subarray(y,y+d);r+=d;let B=new is(x);B.rawId=v,e[i]=B,i++}return e}},jh=jc;function VE(t){return new jh(t)}async function jE(t,e){let r=new Uint8Array(64*t.length),n=await Promise.all(t.map(async(a,d)=>{let v=a.isSigned()?a.rawId:await Vc(a,e),y=new Uint8Array(64);return y.set(Xc(a.getRaw().byteLength),0),y.set(v,32),r.set(y,64*d),a.getRaw()})).then(a=>Buffer.concat(a)),i=Buffer.concat([Buffer.from(Xc(t.length)),Buffer.from(r),n]);return new jh(i)}async function S3(t,e){let r=await wf(t),n=await e.sign(r),i=await wt().hash(n);return{signature:Buffer.from(n),id:Buffer.from(i)}}async function Vc(t,e){let{signature:r,id:n}=await S3(t,e);return t.getRaw().set(r,2),n}var PN=A(S(),1),T3=A(Hr(),1);function Ef(t,e,r){let n=e.publicKey,i=r?.target?T3.default.toBuffer(r.target):null,a=1+(i?.byteLength??0),d=r?.anchor?Buffer.from(r.anchor):null,v=1+(d?.byteLength??0),y=(r?.tags?.length??0)>0?Vh(r?.tags):null,x=16+(y?y.byteLength:0),B=Buffer.from(t),C=B.byteLength,D=2+e.signatureLength+e.ownerLength+a+v+x+C,F=Buffer.alloc(D);if(F.set(Zh(e.signatureType),0),F.set(new Uint8Array(e.signatureLength).fill(0),2),n.byteLength!==e.ownerLength)throw new Error(`Owner must be ${e.ownerLength} bytes, but was incorrectly ${n.byteLength}`);F.set(n,2+e.signatureLength);let P=2+e.signatureLength+e.ownerLength;if(F[P]=i?1:0,i){if(i.byteLength!==32)throw new Error(`Target must be 32 bytes but was incorrectly ${i.byteLength}`);F.set(i,P+1)}let q=P+a,W=q+1;if(F[q]=d?1:0,d){if(W+=d.byteLength,d.byteLength!==32)throw new Error("Anchor must be 32 bytes");F.set(d,q+1)}F.set(Gc(r?.tags?.length??0),W);let K=Gc(y?.byteLength??0);F.set(K,W+8),y&&F.set(y,W+16);let ne=W+x;return F.set(B,ne),new is(F)}var LN=A(S(),1);var FN=A(S(),1),Qh=class{signatureType;rawSignature;signature;signatureLength;rawOwner;owner;ownerLength;rawTarget;target;rawAnchor;anchor;rawTags;tags;rawData;data;static async verify(...e){throw new Error("You must implement `verify`")}};var ON=A(S(),1);var IN=A(S(),1);var Yh={};ip(Yh,{default:()=>e_,processStream:()=>E3,streamExportForTesting:()=>t_,streamSigner:()=>$E});var sk=A(S(),1);import{PassThrough as QE,Transform as WE}from"stream";var ja=A(Hr(),1);import{createHash as YE}from"crypto";async function E3(t){let e=_3(t),r=(await e.next()).value;r=await Tr(e,r,32);let n=gt(r.subarray(0,32));r=r.subarray(32);let i=64*n;r=await Tr(e,r,i);let a=new Array(n);for(let y=0;y<i;y+=64)a[y/64]=[gt(r.subarray(y,y+32)),(0,ja.default)(Buffer.from(r.subarray(y+32,y+64)))];r=r.subarray(i);let d=32+i,v=[];for(let[y,x]of a){r=await Tr(e,r,Zc),r=await Tr(e,r,2);let B=gt(r.subarray(0,2));r=r.subarray(2);let{sigLength:C,pubLength:D,sigName:F}=Je[B];r=await Tr(e,r,C);let P=r.subarray(0,C);r=r.subarray(C),r=await Tr(e,r,D);let q=r.subarray(0,D);r=r.subarray(D),r=await Tr(e,r,1);let W=r[0]===1;W&&(r=await Tr(e,r,33));let K=W?r.subarray(1,33):Buffer.allocUnsafe(0);r=r.subarray(W?33:1),r=await Tr(e,r,1);let ne=r[0]===1;ne&&(r=await Tr(e,r,33));let $=ne?r.subarray(1,33):Buffer.allocUnsafe(0);r=r.subarray(ne?33:1),r=await Tr(e,r,8);let ae=gt(r.subarray(0,8));r=r.subarray(8),r=await Tr(e,r,8);let ie=gt(r.subarray(0,8));r=r.subarray(8),r=await Tr(e,r,ie);let ee=r.subarray(0,ie),ce=ae!==0&&ie!==0?ns(Buffer.from(ee)):[];if(ce.length!==ae)throw new Error("Tags lengths don't match");r=r.subarray(ie);let te=new WE;te._transform=function(l,f,c){this.push(l),c()};let Y=Ri([(0,$e.stringToBuffer)("dataitem"),(0,$e.stringToBuffer)("1"),(0,$e.stringToBuffer)(B.toString()),q,K,$,ee,te]),M=2+C+D+(W?33:1)+(ne?33:1)+16+ie,s=y-M;if(r.byteLength>s)te.write(r.subarray(0,s)),r=r.subarray(s);else{let l=r.byteLength;for(te.write(r);s>l;){if(r=(await e.next()).value,!r)throw new Error(`Not enough data bytes expected: ${s} received: ${l}`);l+=r.byteLength,l>s?te.write(r.subarray(0,r.byteLength-(l-s))):te.write(r)}r=r.subarray(r.byteLength-(l-s))}if(te.end(),x!==(0,ja.default)(YE("sha256").update(P).digest()))throw new Error("ID doesn't match signature");if(!await yf[B].verify(q,await Y,P))throw new Error("Invalid signature");v.push({id:x,sigName:F,signature:(0,ja.default)(Buffer.from(P)),target:(0,ja.default)(Buffer.from(K)),anchor:(0,ja.default)(Buffer.from($)),owner:(0,ja.default)(Buffer.from(q)),tags:ce,dataOffset:d+M,dataSize:s}),d+=M+s}return v}async function $E(t,e,r,n){let i=Ef("",r,n),a=new QE,d=[(0,$e.stringToBuffer)("dataitem"),(0,$e.stringToBuffer)("1"),(0,$e.stringToBuffer)(i.signatureType.toString()),i.rawOwner,i.rawTarget,i.rawAnchor,i.rawTags,t],v=await Ri(d),y=Buffer.from(await r.sign(v));return i.setSignature(y),a.write(i.getRaw()),e.pipe(a)}async function Tr(t,e,r){if(e.byteLength>=r)return e;let{done:n,value:i}=await t.next();if(n&&!i)throw new Error("Invalid buffer");return Tr(t,Buffer.concat([Buffer.from(e),Buffer.from(i)]),r)}async function*_3(t){for await(let e of t)yield e}var e_=E3,t_={readBytes:Tr,getReader:_3};var r_={...Wh,stream:Yh};globalThis.arbundles??=r_;function Qa(t){return async e=>{if(Jr(e))return e;if(!t.arweave)throw new Error("Must initialize with Arweave in order to create transactions");try{return await n_(t,{data:e})}catch(r){throw new Error(r.message??"Error resolving transaction")}}}async function n_(t,e){let r=null,n=null,i=null;if(typeof e.data=="string"&&(r=Buffer.from(dp(e.data),"base64"),n=lp(e.data),i=hp(r)),e.data instanceof File&&(r=new Uint8Array(await e.data.arrayBuffer()),n=e.data.type,i=e.data.size),r&&n&&i)if(i<Number(su.dispatchUploadSize))try{let a=await t.arweave.createTransaction({data:r},"use_wallet");return a.addTag(Ve.keys.contentType,n),e.tags&&e.tags.length>0&&e.tags.forEach(v=>a.addTag(v.name,v.value)),(await global.window.arweaveWallet.dispatch(a)).id}catch(a){throw new Error(a.message??"Error dispatching transaction")}else try{let a=await i_(e.data,{tags:[{name:"Content-Type",value:n},{name:"App-Name",value:"@permaweb/libs"}]},{apiUrl:su.node1,token:"arweave",chunkSize:5242880,batchSize:3});return console.log(a),console.log("Uploaded dataItem ID:",a.id),a.id}catch(a){throw new Error(a.message??"Error uploading transaction")}else throw new Error("Error preparing transaction data")}async function i_(t,e,r){let{apiUrl:n,token:i,chunkSize:a,batchSize:d=3}=r,v=new Va(window.arweaveWallet),y=await v.signer.getActivePublicKey();v.publicKey=Buffer.from(y,"base64");let x=new Uint8Array(await t.arrayBuffer()),B=Ef(x,v,{...e,anchor:e.anchor||(()=>{let M=new Uint8Array(32);return crypto.getRandomValues(M),btoa(String.fromCharCode(...M)).replace(/\+/g,"-").replace(/\//g,"_").slice(0,32)})()});await B.sign(v);let C=B.getRaw(),D=new Blob([new Uint8Array(C)],{type:"application/octet-stream"}),F={"x-chunking-version":"2"},P=await fetch(`${n}/chunks/${i}/-1/-1`,{headers:F});if(!P.ok)throw new Error(`Failed to get upload ID: ${P.status} ${await P.text()}`);let q=await P.json(),W=q.id;if(a<q.min||a>q.max)throw new Error(`Configured chunkSize ${a} is out of allowed range ${q.min}-${q.max}`);let K=D.size,ne=[];for(let M=0;M<K;M+=a)ne.push(M);let $=new Set;(q.chunks??[]).forEach(([M])=>$.add(Number(M)));let ae=ne.filter(M=>M>0&&!$.has(M)),ie=$.has(0)?[]:[0],ee=ae.concat(ie),ce=M=>new Promise(s=>setTimeout(s,M));for(let M=0;M<ee.length;M+=d){let s=ee.slice(M,M+d);await Promise.all(s.map(async u=>{let f=await D.slice(u,u+a).arrayBuffer(),c=null;for(let g=1;g<=3;g++)try{let m=await fetch(`${n}/chunks/${i}/${W}/${u}`,{method:"POST",headers:{"Content-Type":"application/octet-stream",...F},body:f});if(!m.ok){let h=await m.text();throw m.status===402?new Error(`402 payment required: ${h}`):new Error(`Chunk upload error ${m.status}: ${h}`)}return}catch(m){if(c=m,g<3){await ce(1e3*g);continue}}throw c}))}let te={"Content-Type":"application/octet-stream",...F},Y=await fetch(`${n}/chunks/${i}/${W}/-1`,{method:"POST",headers:te});if(!Y.ok){let M=await Y.text();throw new Error(`Finalizing upload failed ${Y.status}: ${M}`)}return Y.json()}var xk=A(S(),1);var $h={p1:"P1",end:"END"},ep={default:100};async function _i(t){let e=t.paginator?t.paginator:ep.default,r=[],n=0,i=null;if(t.ids&&!t.ids.length)return{data:r,count:n,nextCursor:i,previousCursor:null};try{let a=o_(t),d=await s_({gateway:t.gateway??Pn.ao,query:a_(a)});return d?.data?.transactions?.edges?.length?(r=[...d.data.transactions.edges],n=d.data.transactions.count??0,r.length<e||!d.data.transactions.pageInfo.hasNextPage?i=$h.end:i=r[r.length-1].cursor,{data:r,count:n,nextCursor:i,previousCursor:null}):{data:r,count:n,nextCursor:i,previousCursor:null}}catch(a){return console.error(a),{data:r,count:n,nextCursor:i,previousCursor:null}}}async function B3(t,e){let r=1,n=await _i(t);if(n&&n.data.length){let i=n.data;for(e&&e(`Count: ${n.count}`),e&&e(`Pages to fetch: ${Math.ceil(n.count/(t.paginator??ep.default))}`),e&&e(`Page ${r} fetched`);n.nextCursor&&n.nextCursor!==$h.end;)r+=1,e&&e(`Fetching page ${r}...`),n=await _i({...t,cursor:n.nextCursor}),n&&n.data.length&&(i=i.concat(n.data));return e&&e("All pages fetched!"),i}else e&&e("No data found");return null}function a_(t){let e={query:`query { ${t} }`};return JSON.stringify(e)}function o_(t){let e=t.paginator?t.paginator:ep.default,r=t.ids?JSON.stringify(t.ids):null,n=null;t.minBlock!==void 0&&t.minBlock!==null&&(n={},n.min=t.minBlock);let i=n?JSON.stringify(n).replace(/"([^"]+)":/g,"$1:"):null,a=t.tags?JSON.stringify(t.tags).replace(/"(name)":/g,"$1:").replace(/"(values)":/g,"$1:").replace(/"match"/g,"match").replace(/"FUZZY_OR"/g,"FUZZY_OR").replace(/"WILDCARD"/g,"WILDCARD"):null,d=t.owners?JSON.stringify(t.owners):null,v=t.recipients?JSON.stringify(t.recipients):null,y=t.cursor&&t.cursor!==$h.end?`"${t.cursor}"`:null,x="";if(t.sort)switch(x+="sort: ",t.sort){case"ascending":x+="HEIGHT_ASC";break;case"descending":x+="HEIGHT_DESC";break}let B=`first: ${e}`,C="",D="data { size type } owner { address } block { height timestamp }",F="";switch(t.gateway??Pn.ao){case Pn.arweave:break;case Pn.ao:y||(C="count"),v&&(F=`recipients: ${v}`),D+=" recipient";break}let q=`
16
+ nonce: bundlr`),Buffer.from(i))}};var $O=A(M(),1);var Za=class{_publicKey;ownerLength=Je[Oe.MULTIAPTOS].pubLength;signatureLength=Je[Oe.MULTIAPTOS].sigLength;signatureType=Oe.MULTIAPTOS;collectSignatures;provider;constructor(e,r){this._publicKey=e,this.collectSignatures=r}get publicKey(){return this._publicKey}async sign(e){let{signatures:r,bitmap:n}=await this.collectSignatures(e),i=128,a=new Uint8Array([0,0,0,0]),d=new Set;n.forEach(x=>{if(x>=32)throw new Error(`Invalid bit value ${x}.`);if(d.has(x))throw new Error("Duplicated bits detected.");d.add(x);let B=Math.floor(x/8),C=a[B];C|=i>>x%8,a[B]=C});let v=Buffer.alloc(this.signatureLength),y=0;for(let x=0;x<32;x++)n.includes(x)&&v.set(r[y++],x*64);return v.set(a,this.signatureLength-4),v}static async verify(e,r,n){let a=Je[Oe.MULTIAPTOS].sigLength-4,d=n.slice(0,a),v=n.slice(a),y=!1;for(let x=0;x<32;x++){let B=Math.floor(x/8),C=x-B*8;if((v[B]&128>>C)!==0){let F=d.slice(x*64,(x+1)*64),P=e.slice(x*32,(x+1)*32);await Li(Buffer.from(F),Buffer.from(r),Buffer.from(P))||(y=!0)}}return!y}};var iI=A(M(),1),qc=A(ef(),1);var Va=class extends Jr{ownerLength=Je[Oe.TYPEDETHEREUM].pubLength;signatureLength=Je[Oe.TYPEDETHEREUM].sigLength;signatureType=Oe.TYPEDETHEREUM;address;signer;constructor(e){super(e),this.address="0x"+lf(super.publicKey.slice(1)).slice(-20).toString("hex"),this.signer=new qc.Wallet(e)}get publicKey(){return Buffer.from(this.address)}async sign(e){let r=await this.signer._signTypedData(vf,mf,{address:this.address,"Transaction hash":e});return Buffer.from(r.slice(2),"hex")}static async verify(e,r,n){let i=e.toString(),a=(0,qc.verifyTypedData)(vf,mf,{address:i,"Transaction hash":r},n);return i.toLowerCase()===a.toLowerCase()}},vf={name:"Bundlr",version:"1"},mf={Bundlr:[{name:"Transaction hash",type:"bytes"},{name:"address",type:"address"}]};var fI=A(M(),1);var M3=A(ef(),1);var Zh=class{ownerLength=Je[Oe.TYPEDETHEREUM].pubLength;signatureLength=Je[Oe.TYPEDETHEREUM].sigLength;signatureType=Oe.TYPEDETHEREUM;address;signer;publicKey;constructor(e){this.signer=e.getSigner()}async ready(){this.address=(await this.signer.getAddress()).toString().toLowerCase(),this.publicKey=Buffer.from(this.address)}async sign(e){let r=await this.signer._signTypedData(vf,mf,{address:this.address,"Transaction hash":e});return Buffer.from(r.slice(2),"hex")}static verify(e,r,n){let i=e.toString(),a=(0,M3.verifyTypedData)(vf,mf,{address:i,"Transaction hash":r},n);return i.toLowerCase()===a.toLowerCase()}};var dI=A(M(),1);var S3=A(Hr(),1);var sa=class{signer;publicKey;ownerLength=Je[Oe.ARWEAVE].pubLength;signatureLength=Je[Oe.ARWEAVE].sigLength;signatureType=Oe.ARWEAVE;constructor(e){this.signer=e}async setPublicKey(){let e=await this.signer.getActivePublicKey();this.publicKey=S3.default.toBuffer(e)}async sign(e){this.publicKey||await this.setPublicKey();let r={name:"RSA-PSS",saltLength:32},n=await this.signer.signature(e,r);return new Uint8Array(Object.values(n).map(a=>+a))}static async verify(e,r,n){return await wt().verify(e,r,n)}};var gI=A(M(),1);var xf=class extends Jr{signatureType=Oe.KYVE};var yf={1:ha,2:Rr,3:Jr,4:za,5:Ka,6:Za,7:Va};var HI=A(M(),1);var eN=A(M(),1);async function KE(t){return Ri([(0,$e.stringToBuffer)("dataitem"),(0,$e.stringToBuffer)("1"),(0,$e.stringToBuffer)(t.signatureType.toString()),t.rawOwner,t.rawTarget,t.rawAnchor,t.rawTags,t.rawData])}var wf=KE;var _N=A(M(),1);var rN=A(M(),1);function Af(t,e){let r=new Uint8Array(t);if(e<0)throw new Error("Array is unsigned, cannot represent -ve numbers");if(e>2**(t*8)-1)throw new Error(`Number ${e} is too large for an array of ${t} bytes`);for(let n=0;n<r.length;n++){let i=e&255;r[n]=i,e=(e-i)/256}return r}function Gc(t){return Af(8,t)}function Vh(t){return Af(2,t)}function ZE(t){return Af(16,t)}function Xc(t){return Af(32,t)}function gt(t){let e=0;for(let r=t.length-1;r>=0;r--)e=e*256+t[r];return e}var wN=A(M(),1),Tf=A(Hr(),1);var gN=A(M(),1);var hn=A(Hr(),1);import{Buffer as Sf}from"buffer";var aN=A(M(),1);var Mf=class{buf;pos;constructor(e=Buffer.alloc(zc),r=0){this.buf=e,this.pos=r}writeTags(e){if(!Array.isArray(e))throw new Error("input must be array");let r=e.length,n;if(r)for(this.writeLong(r),n=0;n<r;n++){let i=e[n];if(typeof i?.name!="string"||typeof i?.value!="string")throw new Error(`Invalid tag format for ${i}, expected {name:string, value: string}`);this.writeString(i.name),this.writeString(i.value)}this.writeLong(0)}toBuffer(){let e=Buffer.alloc(this.pos);if(this.pos>this.buf.length)throw new Error(`Too many tag bytes (${this.pos} > ${this.buf.length})`);return this.buf.copy(e,0,0,this.pos),e}writeLong(e){let r=this.buf,n,i;if(e>=-1073741824&&e<1073741824){i=e>=0?e<<1:~e<<1|1;do r[this.pos]=i&127,i>>=7;while(i&&(r[this.pos++]|=128))}else{n=e>=0?e*2:-e*2-1;do r[this.pos]=n&127,n/=128;while(n>=1&&(r[this.pos++]|=128))}this.pos++,this.buf=r}writeString(e){let r=Buffer.byteLength(e),n=this.buf;this.writeLong(r);let i=this.pos;if(this.pos+=r,!(this.pos>n.length)){if(r>64)this.buf.write(e,this.pos-r,r,"utf8");else{let a,d,v,y;for(a=0,d=r;a<d;a++)v=e.charCodeAt(a),v<128?n[i++]=v:v<2048?(n[i++]=v>>6|192,n[i++]=v&63|128):(v&64512)===55296&&((y=e.charCodeAt(a+1))&64512)===56320?(v=65536+((v&1023)<<10)+(y&1023),a++,n[i++]=v>>18|240,n[i++]=v>>12&63|128,n[i++]=v>>6&63|128,n[i++]=v&63|128):(n[i++]=v>>12|224,n[i++]=v>>6&63|128,n[i++]=v&63|128)}this.buf=n}}readLong(){let e=0,r=0,n=this.buf,i,a,d,v;do i=n[this.pos++],a=i&128,e|=(i&127)<<r,r+=7;while(a&&r<28);if(a){d=e,v=268435456;do i=n[this.pos++],d+=(i&127)*v,v*=128;while(i&128);return(d%2?-(d+1):d)/2}return e>>1^-(e&1)}skipLong(){let e=this.buf;for(;e[this.pos++]&128;);}readTags(){let e=[],r;for(;r=this.readLong();)for(r<0&&(r=-r,this.skipLong());r--;){let n=this.readString(),i=this.readString();e.push({name:n,value:i})}return e}readString(){let e=this.readLong(),r=this.pos,n=this.buf;if(this.pos+=e,this.pos>n.length)throw new Error("TAP Position out of range");return this.buf.slice(r,r+e).toString()}};function jh(t){if(t?.length===0)return Buffer.allocUnsafe(0);let e=new Mf;return e.writeTags(t),e.toBuffer()}function ns(t){return new Mf(t).readTags()}import{createHash as VE}from"crypto";var Zc=80,zc=4096,Kc=class t{binary;_id;constructor(e){this.binary=e}static isDataItem(e){return e.binary!==void 0}get signatureType(){let e=gt(this.binary.subarray(0,2));if(Oe?.[e]!==void 0)return e;throw new Error("Unknown signature type: "+e)}async isValid(){return t.verify(this.binary)}get id(){return hn.default.encode(this.rawId)}set id(e){this._id=hn.default.toBuffer(e)}get rawId(){return VE("sha256").update(this.rawSignature).digest()}set rawId(e){this._id=e}get rawSignature(){return this.binary.subarray(2,2+this.signatureLength)}get signature(){return hn.default.encode(this.rawSignature)}set rawOwner(e){if(e.byteLength!=this.ownerLength)throw new Error(`Expected raw owner (pubkey) to be ${this.ownerLength} bytes, got ${e.byteLength} bytes.`);this.binary.set(e,2+this.signatureLength)}get rawOwner(){return this.binary.subarray(2+this.signatureLength,2+this.signatureLength+this.ownerLength)}get signatureLength(){return Je[this.signatureType].sigLength}get owner(){return hn.default.encode(this.rawOwner)}get ownerLength(){return Je[this.signatureType].pubLength}get rawTarget(){let e=this.getTargetStart();return this.binary[e]==1?this.binary.subarray(e+1,e+33):Sf.alloc(0)}get target(){return hn.default.encode(this.rawTarget)}get rawAnchor(){let e=this.getAnchorStart();return this.binary[e]==1?this.binary.subarray(e+1,e+33):Sf.alloc(0)}get anchor(){return hn.default.encode(this.rawAnchor)}get rawTags(){let e=this.getTagsStart(),r=gt(this.binary.subarray(e+8,e+16));return this.binary.subarray(e+16,e+16+r)}get tags(){let e=this.getTagsStart();if(gt(this.binary.subarray(e,e+8))==0)return[];let n=gt(this.binary.subarray(e+8,e+16));return ns(Sf.from(this.binary.subarray(e+16,e+16+n)))}get tagsB64Url(){return this.tags.map(r=>({name:hn.default.encode(r.name),value:hn.default.encode(r.value)}))}getStartOfData(){let e=this.getTagsStart(),r=this.binary.subarray(e+8,e+16),n=gt(r);return e+16+n}get rawData(){let e=this.getTagsStart(),r=this.binary.subarray(e+8,e+16),n=gt(r),i=e+16+n;return this.binary.subarray(i,this.binary.length)}get data(){return hn.default.encode(this.rawData)}getRaw(){return this.binary}async sign(e){return this._id=await Vc(this,e),this.rawId}async setSignature(e){this.binary.set(e,2),this._id=Sf.from(await wt().hash(e))}isSigned(){return(this._id?.length??0)>0}toJSON(){return{signature:this.signature,owner:this.owner,target:this.target,tags:this.tags.map(e=>({name:hn.default.encode(e.name),value:hn.default.encode(e.value)})),data:this.data}}static async verify(e){if(e.byteLength<Zc)return!1;let r=new t(e),n=r.signatureType,i=r.getTagsStart(),a=gt(e.subarray(i,i+8)),d=e.subarray(i+8,i+16),v=gt(d);if(v>zc)return!1;if(a>0)try{if(ns(Sf.from(e.subarray(i+16,i+16+v))).length!==a)return!1}catch{return!1}let y=yf[n],x=await wf(r);return await y.verify(r.rawOwner,x,r.rawSignature)}async getSignatureData(){return wf(this)}getTagsStart(){let e=this.getTargetStart(),r=this.binary[e]==1,n=e+(r?33:1),i=this.binary[n]==1;return n+=i?33:1,n}getTargetStart(){return 2+this.signatureLength+this.ownerLength}getAnchorStart(){let e=this.getTargetStart()+1,r=this.binary[this.getTargetStart()]==1;return e+=r?32:0,e}},is=Kc;import{createHash as jE}from"crypto";var oi=32,jc=class{length;items;binary;constructor(e){this.binary=e,this.length=this.getDataItemCount(),this.items=this.getItems()}getRaw(){return this.binary}get(e){if(typeof e=="number"){if(e>=this.length)throw new RangeError("Index out of range");return this.getByIndex(e)}else return this.getById(e)}getSizes(){let e=[];for(let r=oi;r<oi+64*this.length;r+=64)e.push(gt(this.binary.subarray(r,r+32)));return e}getIds(){let e=[];for(let r=oi;r<oi+64*this.length;r+=64){let n=this.binary.subarray(r+32,r+64);if(n.length===0)throw new Error("Invalid bundle, id specified in headers doesn't exist");e.push(Tf.default.encode(n))}return e}getIdBy(e){if(e>this.length-1)throw new RangeError("Index of bundle out of range");let r=64+64*e;return Tf.default.encode(this.binary.subarray(r,r+32))}async toTransaction(e,r,n){let i=await r.createTransaction({data:this.binary,...e},n);return i.addTag("Bundle-Format","binary"),i.addTag("Bundle-Version","2.0.0"),i}async verify(){for(let e of this.items){let r=await e.isValid(),n=(0,Tf.default)(jE("sha256").update(e.rawSignature).digest());if(!(r&&e.id===n))return!1}return!0}getOffset(e){let r=0;for(let n=oi;n<oi+64*this.length;n+=64){let i=gt(this.binary.subarray(n,n+32));r+=i;let a=this.binary.subarray(n+32,n+64);if(Buffer.compare(a,e)===0)return{startOffset:r,size:i}}return{startOffset:-1,size:-1}}getByIndex(e){let r=0,n=this.getBundleStart(),i=0,a,d;for(let B=oi;B<oi+64*this.length;B+=64){if(a=gt(this.binary.subarray(B,B+32)),i++===e){d=this.binary.subarray(B+32,B+64);break}r+=a}let v=n+r,y=this.binary.subarray(v,v+a),x=new is(y);return x.rawId=d,x}getById(e){let r=Tf.default.toBuffer(e),n=this.getOffset(r);if(n.startOffset===-1)throw new Error("Transaction not found");let a=this.getBundleStart()+n.startOffset;return new is(this.binary.subarray(a,a+n.size))}getDataItemCount(){return gt(this.binary.subarray(0,32))}getBundleStart(){return 32+64*this.length}getItems(){let e=new Array(this.length),r=0,n=this.getBundleStart(),i=0;for(let a=oi;a<oi+64*this.length;a+=64){let d=gt(this.binary.subarray(a,a+32)),v=this.binary.subarray(a+32,a+64);if(v.length===0)throw new Error("Invalid bundle, id specified in headers doesn't exist");let y=n+r,x=this.binary.subarray(y,y+d);r+=d;let B=new is(x);B.rawId=v,e[i]=B,i++}return e}},Qh=jc;function QE(t){return new Qh(t)}async function WE(t,e){let r=new Uint8Array(64*t.length),n=await Promise.all(t.map(async(a,d)=>{let v=a.isSigned()?a.rawId:await Vc(a,e),y=new Uint8Array(64);return y.set(Xc(a.getRaw().byteLength),0),y.set(v,32),r.set(y,64*d),a.getRaw()})).then(a=>Buffer.concat(a)),i=Buffer.concat([Buffer.from(Xc(t.length)),Buffer.from(r),n]);return new Qh(i)}async function T3(t,e){let r=await wf(t),n=await e.sign(r),i=await wt().hash(n);return{signature:Buffer.from(n),id:Buffer.from(i)}}async function Vc(t,e){let{signature:r,id:n}=await T3(t,e);return t.getRaw().set(r,2),n}var RN=A(M(),1),E3=A(Hr(),1);function Ef(t,e,r){let n=e.publicKey,i=r?.target?E3.default.toBuffer(r.target):null,a=1+(i?.byteLength??0),d=r?.anchor?Buffer.from(r.anchor):null,v=1+(d?.byteLength??0),y=(r?.tags?.length??0)>0?jh(r?.tags):null,x=16+(y?y.byteLength:0),B=Buffer.from(t),C=B.byteLength,D=2+e.signatureLength+e.ownerLength+a+v+x+C,F=Buffer.alloc(D);if(F.set(Vh(e.signatureType),0),F.set(new Uint8Array(e.signatureLength).fill(0),2),n.byteLength!==e.ownerLength)throw new Error(`Owner must be ${e.ownerLength} bytes, but was incorrectly ${n.byteLength}`);F.set(n,2+e.signatureLength);let P=2+e.signatureLength+e.ownerLength;if(F[P]=i?1:0,i){if(i.byteLength!==32)throw new Error(`Target must be 32 bytes but was incorrectly ${i.byteLength}`);F.set(i,P+1)}let X=P+a,W=X+1;if(F[X]=d?1:0,d){if(W+=d.byteLength,d.byteLength!==32)throw new Error("Anchor must be 32 bytes");F.set(d,X+1)}F.set(Gc(r?.tags?.length??0),W);let K=Gc(y?.byteLength??0);F.set(K,W+8),y&&F.set(y,W+16);let ie=W+x;return F.set(B,ie),new is(F)}var FN=A(M(),1);var ON=A(M(),1),Wh=class{signatureType;rawSignature;signature;signatureLength;rawOwner;owner;ownerLength;rawTarget;target;rawAnchor;anchor;rawTags;tags;rawData;data;static async verify(...e){throw new Error("You must implement `verify`")}};var NN=A(M(),1);var kN=A(M(),1);var $h={};ap($h,{default:()=>r_,processStream:()=>_3,streamExportForTesting:()=>n_,streamSigner:()=>t_});var ck=A(M(),1);import{PassThrough as YE,Transform as $E}from"stream";var ja=A(Hr(),1);import{createHash as e_}from"crypto";async function _3(t){let e=B3(t),r=(await e.next()).value;r=await Tr(e,r,32);let n=gt(r.subarray(0,32));r=r.subarray(32);let i=64*n;r=await Tr(e,r,i);let a=new Array(n);for(let y=0;y<i;y+=64)a[y/64]=[gt(r.subarray(y,y+32)),(0,ja.default)(Buffer.from(r.subarray(y+32,y+64)))];r=r.subarray(i);let d=32+i,v=[];for(let[y,x]of a){r=await Tr(e,r,Zc),r=await Tr(e,r,2);let B=gt(r.subarray(0,2));r=r.subarray(2);let{sigLength:C,pubLength:D,sigName:F}=Je[B];r=await Tr(e,r,C);let P=r.subarray(0,C);r=r.subarray(C),r=await Tr(e,r,D);let X=r.subarray(0,D);r=r.subarray(D),r=await Tr(e,r,1);let W=r[0]===1;W&&(r=await Tr(e,r,33));let K=W?r.subarray(1,33):Buffer.allocUnsafe(0);r=r.subarray(W?33:1),r=await Tr(e,r,1);let ie=r[0]===1;ie&&(r=await Tr(e,r,33));let ee=ie?r.subarray(1,33):Buffer.allocUnsafe(0);r=r.subarray(ie?33:1),r=await Tr(e,r,8);let ae=gt(r.subarray(0,8));r=r.subarray(8),r=await Tr(e,r,8);let ne=gt(r.subarray(0,8));r=r.subarray(8),r=await Tr(e,r,ne);let $=r.subarray(0,ne),fe=ae!==0&&ne!==0?ns(Buffer.from($)):[];if(fe.length!==ae)throw new Error("Tags lengths don't match");r=r.subarray(ne);let te=new $E;te._transform=function(l,f,c){this.push(l),c()};let Y=Ri([(0,$e.stringToBuffer)("dataitem"),(0,$e.stringToBuffer)("1"),(0,$e.stringToBuffer)(B.toString()),X,K,ee,$,te]),T=2+C+D+(W?33:1)+(ie?33:1)+16+ne,s=y-T;if(r.byteLength>s)te.write(r.subarray(0,s)),r=r.subarray(s);else{let l=r.byteLength;for(te.write(r);s>l;){if(r=(await e.next()).value,!r)throw new Error(`Not enough data bytes expected: ${s} received: ${l}`);l+=r.byteLength,l>s?te.write(r.subarray(0,r.byteLength-(l-s))):te.write(r)}r=r.subarray(r.byteLength-(l-s))}if(te.end(),x!==(0,ja.default)(e_("sha256").update(P).digest()))throw new Error("ID doesn't match signature");if(!await yf[B].verify(X,await Y,P))throw new Error("Invalid signature");v.push({id:x,sigName:F,signature:(0,ja.default)(Buffer.from(P)),target:(0,ja.default)(Buffer.from(K)),anchor:(0,ja.default)(Buffer.from(ee)),owner:(0,ja.default)(Buffer.from(X)),tags:fe,dataOffset:d+T,dataSize:s}),d+=T+s}return v}async function t_(t,e,r,n){let i=Ef("",r,n),a=new YE,d=[(0,$e.stringToBuffer)("dataitem"),(0,$e.stringToBuffer)("1"),(0,$e.stringToBuffer)(i.signatureType.toString()),i.rawOwner,i.rawTarget,i.rawAnchor,i.rawTags,t],v=await Ri(d),y=Buffer.from(await r.sign(v));return i.setSignature(y),a.write(i.getRaw()),e.pipe(a)}async function Tr(t,e,r){if(e.byteLength>=r)return e;let{done:n,value:i}=await t.next();if(n&&!i)throw new Error("Invalid buffer");return Tr(t,Buffer.concat([Buffer.from(e),Buffer.from(i)]),r)}async function*B3(t){for await(let e of t)yield e}var r_=_3,n_={readBytes:Tr,getReader:B3};var i_={...Yh,stream:$h};globalThis.arbundles??=i_;function Qa(t){return async e=>{if(Er(e))return e;if(!t.arweave)throw new Error("Must initialize with Arweave in order to create transactions");try{return await a_(t,{data:e})}catch(r){throw new Error(r.message??"Error resolving transaction")}}}async function a_(t,e){let r=null,n=null,i=null;if(typeof e.data=="string"&&(r=Buffer.from(hp(e.data),"base64"),n=dp(e.data),i=pp(r)),e.data instanceof File&&(r=new Uint8Array(await e.data.arrayBuffer()),n=e.data.type,i=e.data.size),r&&n&&i)if(i<Number(su.dispatchUploadSize))try{let a=await t.arweave.createTransaction({data:r},"use_wallet");return a.addTag(Ve.keys.contentType,n),e.tags&&e.tags.length>0&&e.tags.forEach(v=>a.addTag(v.name,v.value)),(await global.window.arweaveWallet.dispatch(a)).id}catch(a){throw new Error(a.message??"Error dispatching transaction")}else try{let a=await o_(e.data,{tags:[{name:"Content-Type",value:n},{name:"App-Name",value:"@permaweb/libs"}]},{apiUrl:su.node1,token:"arweave",chunkSize:5242880,batchSize:3});return console.log(a),console.log("Uploaded dataItem ID:",a.id),a.id}catch(a){throw new Error(a.message??"Error uploading transaction")}else throw new Error("Error preparing transaction data")}async function o_(t,e,r){let{apiUrl:n,token:i,chunkSize:a,batchSize:d=3}=r,v=crypto.randomUUID(),y=new TextEncoder().encode(v),x=new sa(window.arweaveWallet),B=await x.signer.getActivePublicKey();x.publicKey=Buffer.from(B,"base64");let C=await new sa(window.arweaveWallet).sign(y),F=(h=>btoa(String.fromCharCode(...new Uint8Array(h))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""))(C),W=((await(await fetch("https://payment.ardrive.io/v1/balance",{headers:{"x-nonce":v,"x-signature":F,"x-public-key":B}})).json()).receivedApprovals||[]).map(h=>h.payingAddress),K=new Uint8Array(await t.arrayBuffer()),ie=Ef(K,x,{...e,anchor:e.anchor||(()=>{let h=new Uint8Array(32);return crypto.getRandomValues(h),btoa(String.fromCharCode(...h)).replace(/\+/g,"-").replace(/\//g,"_").slice(0,32)})()});await ie.sign(x);let ee=ie.getRaw(),ae=new Blob([new Uint8Array(ee)],{type:"application/octet-stream"}),ne={"x-chunking-version":"2","x-paid-by":W.join(",")},$=await fetch(`${n}/chunks/${i}/-1/-1`,{headers:ne});if(!$.ok)throw new Error(`Failed to get upload ID: ${$.status} ${await $.text()}`);let fe=await $.json(),te=fe.id;if(a<fe.min||a>fe.max)throw new Error(`Configured chunkSize ${a} is out of allowed range ${fe.min}-${fe.max}`);let Y=ae.size,T=[];for(let h=0;h<Y;h+=a)T.push(h);let s=new Set;(fe.chunks??[]).forEach(([h])=>s.add(Number(h)));let u=T.filter(h=>h>0&&!s.has(h)),l=s.has(0)?[]:[0],f=u.concat(l),c=h=>new Promise(o=>setTimeout(o,h));for(let h=0;h<f.length;h+=d){let o=f.slice(h,h+d);await Promise.all(o.map(async p=>{let b=await ae.slice(p,p+a).arrayBuffer(),w=null;for(let U=1;U<=3;U++)try{let S=await fetch(`${n}/chunks/${i}/${te}/${p}`,{method:"POST",headers:{"Content-Type":"application/octet-stream",...ne},body:b});if(!S.ok){let N=await S.text();throw S.status===402?new Error(`402 payment required: ${N}`):new Error(`Chunk upload error ${S.status}: ${N}`)}return}catch(S){if(w=S,U<3){await c(1e3*U);continue}}throw w}))}let g={"Content-Type":"application/octet-stream",...ne},m=await fetch(`${n}/chunks/${i}/${te}/-1`,{method:"POST",headers:g});if(!m.ok){let h=await m.text();throw new Error(`Finalizing upload failed ${m.status}: ${h}`)}return m.json()}var wk=A(M(),1);var ep={p1:"P1",end:"END"},tp={default:100};async function _i(t){let e=t.paginator?t.paginator:tp.default,r=[],n=0,i=null;if(t.ids&&!t.ids.length)return{data:r,count:n,nextCursor:i,previousCursor:null};try{let a=f_(t),d=await c_({gateway:t.gateway??Pn.ao,query:s_(a)});return d?.data?.transactions?.edges?.length?(r=[...d.data.transactions.edges],n=d.data.transactions.count??0,r.length<e||!d.data.transactions.pageInfo.hasNextPage?i=ep.end:i=r[r.length-1].cursor,{data:r,count:n,nextCursor:i,previousCursor:null}):{data:r,count:n,nextCursor:i,previousCursor:null}}catch(a){return console.error(a),{data:r,count:n,nextCursor:i,previousCursor:null}}}async function C3(t,e){let r=1,n=await _i(t);if(n&&n.data.length){let i=n.data;for(e&&e(`Count: ${n.count}`),e&&e(`Pages to fetch: ${Math.ceil(n.count/(t.paginator??tp.default))}`),e&&e(`Page ${r} fetched`);n.nextCursor&&n.nextCursor!==ep.end;)r+=1,e&&e(`Fetching page ${r}...`),n=await _i({...t,cursor:n.nextCursor}),n&&n.data.length&&(i=i.concat(n.data));return e&&e("All pages fetched!"),i}else e&&e("No data found");return null}function s_(t){let e={query:`query { ${t} }`};return JSON.stringify(e)}function f_(t){let e=t.paginator?t.paginator:tp.default,r=t.ids?JSON.stringify(t.ids):null,n=null;t.minBlock!==void 0&&t.minBlock!==null&&(n={},n.min=t.minBlock);let i=n?JSON.stringify(n).replace(/"([^"]+)":/g,"$1:"):null,a=t.tags?JSON.stringify(t.tags).replace(/"(name)":/g,"$1:").replace(/"(values)":/g,"$1:").replace(/"match"/g,"match").replace(/"FUZZY_OR"/g,"FUZZY_OR").replace(/"WILDCARD"/g,"WILDCARD"):null,d=t.owners?JSON.stringify(t.owners):null,v=t.recipients?JSON.stringify(t.recipients):null,y=t.cursor&&t.cursor!==ep.end?`"${t.cursor}"`:null,x="";if(t.sort)switch(x+="sort: ",t.sort){case"ascending":x+="HEIGHT_ASC";break;case"descending":x+="HEIGHT_DESC";break}let B=`first: ${e}`,C="",D="data { size type } owner { address } block { height timestamp }",F="";switch(t.gateway??Pn.ao){case Pn.arweave:break;case Pn.ao:y||(C="count"),v&&(F=`recipients: ${v}`),D+=" recipient";break}let X=`
17
17
  transactions(
18
18
  ids: ${r},
19
19
  tags: ${a},
@@ -39,7 +39,7 @@ nonce: bundlr`),Buffer.from(i))}};var WO=A(S(),1);var Ka=class{_publicKey;ownerL
39
39
  ${D}
40
40
  }
41
41
  }
42
- }`;return t.queryKey&&(q=`${t.queryKey}: ${q}`),q}async function s_(t){try{return await(await fetch(`https://${t.gateway}/graphql`,{method:"POST",headers:{"Content-Type":"application/json"},body:t.query})).json()}catch(e){throw e}}var Tk=A(S(),1);var c_={},Sk=A(S(),1);var uJ=A(S(),1);var Ik=A(S(),1);function C3(t){return async(e,r)=>{let n=h_(e);if(n)throw new Error(n);let i=null;if(e.spawnComments)try{let y=[{name:Ve.keys.onBoot,value:xt.src.comments},{name:Ve.keys.dateCreated,value:new Date().getTime().toString()}];e.users&&y.push({name:"Auth-Users",value:JSON.stringify(e.users)}),i=await Ln(t)({tags:y},r?B=>r(B):void 0),Ar(`Comments ID: ${i}`),await new Promise(B=>setTimeout(B,500))}catch(y){console.error(y)}let a=up[e.contentType]?.serialize(e.data)??e.data,d={...e};i&&(d.commentsId=i);let v=d_(d);try{return await Ln(t)({tags:v,data:a},r?B=>r(B):void 0)}catch(y){throw new Error(y.message??"Error creating asset")}}}async function l_(t,e,r){try{let n=Er(await Ur(t,{processId:e,path:"asset",fallbackAction:"Info"}));if(r?.useGateway){let i=await _i({gateway:Pn.ao,ids:[e],tags:null,owners:null,cursor:null});return{...i?.data?.[0]?R3(i.data[0]):{},...n}}return{id:e,...n}}catch(n){throw new Error(n.message||"Error fetching atomic asset")}}function P3(t){return async(e,r)=>await l_(t,e,r)}async function L3(t){try{let e=await _i({gateway:Pn.arweave,ids:t??null,tags:null,owners:null,cursor:null});return e&&e.data.length?e.data.map(r=>R3(r)):null}catch(e){throw new Error(e)}}function R3(t){let e={id:t.node.id,owner:t.node.owner.address};for(let r of t.node.tags){let n=r.name,a=(n.startsWith(`${Ve.keys.bootloader}-`)?n.slice(`${Ve.keys.bootloader}-`.length):n).split("-").map((v,y)=>y===0?v.toLowerCase():v.charAt(0).toUpperCase()+v.slice(1).toLowerCase()).join(""),d;try{d=JSON.parse(r.value)}catch{d=r.value.toString()}e[a]=d}return e}function d_(t){let e=[{name:Ve.keys.onBoot,value:t.src??xt.src.asset},{name:Ve.keys.creator,value:t.creator},{name:Ve.keys.assetType,value:t.assetType},{name:Ve.keys.contentType,value:t.contentType},{name:Ve.keys.implements,value:"ANS-110"},{name:Ve.keys.dateCreated,value:new Date().getTime().toString()},ar("Name",t.name),ar("Description",t.description),ar("Topics",JSON.stringify(t.topics)),ar("Ticker","ATOMIC"),ar("Denomination",t.denomination?.toString()??"1"),ar("TotalSupply",t.supply?.toString()??"1"),ar("Transferable",t.transferable?.toString()??"true"),ar("Creator",t.creator)];if(t.metadata)for(let r in t.metadata)e.push(ar(Ya(r),t.metadata[r].toString()));return t.users&&e.push({name:"Auth-Users",value:JSON.stringify(t.users)}),t.commentsId&&e.push(ar("Comments",t.commentsId)),t.tags&&t.tags.forEach(r=>e.push(r)),e}function h_(t){if(typeof t!="object"||t===null)return"The provided arguments are invalid or empty.";let e=["name","description","topics","creator","data","contentType","assetType"];for(let r of e)if(!(r in t))return`Missing field '${r}'`;return typeof t.name!="string"||t.name.trim()===""?"Name is required":typeof t.description!="string"?"The description must be a valid string":!Array.isArray(t.topics)||t.topics.length===0?"Topics are required":typeof t.creator!="string"||t.creator.trim()===""?"Creator is required":t.data===void 0||t.data===null?"Data field is required":typeof t.contentType!="string"||t.contentType.trim()===""?"Content type must be a non-empty string":typeof t.assetType!="string"||t.assetType.trim()===""?"Type must be a non-empty string":"supply"in t&&(typeof t.supply!="number"||t.supply<=0)?"Supply must be a positive number":"denomination"in t&&(typeof t.denomination!="number"||t.denomination<=0)?"Denomination must be a positive number":"transferable"in t&&typeof t.transferable!="boolean"?"Transferable must be a boolean value":"metadata"in t&&typeof t.metadata!="object"?"Metadata must be an object":"tags"in t&&(!Array.isArray(t.tags)||t.tags.some(r=>typeof r!="object"))?"Tags must be an array of objects":"src"in t&&typeof t.src!="string"?"Source must be a valid string":null}var Gk=A(S(),1);var p_="eXCtpVbcd_jZ0dmU2PZ8focaKxBGECBQ8wMib7sIVPo",tp="lJovHqM9hwNjHV5JoY9NGWtt0WD-5D4gOqNL2VWW5jk";function F3(t){return async(e,r)=>{if(!t.signer)throw new Error("No signer provided");let n=Qa(t),i=new Date().getTime().toString(),a=[{name:Ve.keys.creator,value:e.creator},{name:Ve.keys.ans110.title,value:as(e.title)},{name:Ve.keys.name,value:as(e.title)},{name:Ve.keys.ans110.description,value:as(e.description)}],d=null,v=null;try{d=e.banner?await n(e.thumbnail):tp,v=e.banner?await n(e.banner):p_,e.thumbnail&&a.push({name:Ve.keys.thumbnail,value:d}),e.banner&&a.push({name:Ve.keys.banner,value:v})}catch(B){console.error(B)}let y=await fetch(Pf(xt.src.collection));if(!y.ok)throw new Error("Unable to fetch process src");let x=await y.text();x=x.replace(/'<NAME>'/g,fu(e.title)),x=x.replace(/'<DESCRIPTION>'/g,fu(e.description)),x=x.replace(/<CREATOR>/g,e.creator),x=x.replace(/<THUMBNAIL>/g,d||tp),x=x.replace(/<BANNER>/g,v||tp),x=x.replace(/<DATECREATED>/g,i),x=x.replace(/<LASTUPDATE>/g,i);try{let B=Ln(t),C=await B({tags:a},r?D=>r(D):void 0);if(Ar("Sending eval message to collection..."),r&&r("Sending eval message to collection..."),await t.ao.message({process:C,signer:t.signer,tags:[{name:"Action",value:"Eval"}],data:x}),!e.skipRegistry){Ar("Sending collection to registry..."),r&&r("Sending collection to registry...");let D=[{name:"Action",value:"Add-Collection"},{name:"CollectionId",value:C},{name:"Name",value:as(e.title)},{name:"Creator",value:e.creator},{name:"DateCreated",value:i}];v&&D.push({name:"Banner",value:v}),d&&D.push({name:"Thumbnail",value:d}),await t.ao.message({process:xt.collectionRegistry,signer:t.signer,tags:D})}if(!e.skipActivity){Ar("Creating collection activity process..."),r&&r("Creating collection activity process...");let D=[{name:"CollectionId",value:C},{name:"DateCreated",value:i},{name:"UCM-Process",value:"Collection-Activity"},{name:"On-Boot",value:xt.src.collectionActivity}],F=await B({tags:D},r?P=>r(P):void 0);Ar("Adding activity to collection process..."),r&&r("Adding activity to collection process..."),await t.ao.message({process:C,signer:t.signer,tags:[{name:"Action",value:"Eval"}],data:`ActivityProcess = '${F}'`})}return C}catch(B){throw new Error(B.message??"Error creating collection")}}}function D3(t){return async e=>await ct(t,{processId:e.creator,action:"Run-Action",tags:[{name:"Forward-To",value:e.collectionId},{name:"Forward-Action",value:"Update-Assets"}],data:{Target:e.collectionId,Action:"Update-Assets",Input:{AssetIds:e.assetIds,UpdateType:e.updateType}}})}function O3(t){return async e=>{let r=await Ur(t,{processId:e,path:"collection",fallbackAction:"Info"});return r?Er(r):null}}function I3(t){return async e=>{let r=e.creator?"Get-Collections-By-User":"Get-Collections",n=await Lf(t,{processId:xt.collectionRegistry,action:r,tags:e.creator?[{name:"Creator",value:e.creator}]:null});return n&&n.Collections&&n.Collections.length?n.Collections.map(a=>({id:a.Id,title:a.Name.replace(/\[|\]/g,""),description:a.Description,creator:a.Creator,dateCreated:a.DateCreated,banner:a.Banner,thumbnail:a.Thumbnail})):null}}var Zk=A(S(),1);function N3(t){return async e=>{try{if(!e.commentsId)throw new Error("Must provide commentsId");if(!e.content)throw new Error("Content cannot be empty");let r=[];return e.parentId&&r.push({name:"Parent-Id",value:e.parentId}),e.metadata&&r.push({name:"Metadata",value:JSON.stringify(e.metadata)}),await ct(t,{processId:e.commentsId,action:"Add-Comment",tags:r,data:e.content,useRawData:!0})}catch(r){throw new Error(r.message??"Error creating comment")}}}function k3(t){return async e=>{try{if(!e.commentsId)throw new Error("Must provide commentsId");return Er(await Ur(t,{processId:e.commentsId,path:"comments",fallbackAction:"Get-Comments"}))}catch(r){throw new Error(r.message??"Error getting comments")}}}function J3(t){return async e=>{try{if(!e.commentsId)throw new Error("Must provide commentsId");if(!e.commentId)throw new Error("Must provide commentId");return await ct(t,{processId:e.commentsId,action:"Update-Comment-Status",tags:[{name:"Comment-Id",value:e.commentId},{name:"Status",value:e.status}]})}catch(r){throw new Error(r.message??"Error updating comment status")}}}function U3(t){return async e=>{try{if(!e.commentsId)throw new Error("Must provide commentsId");if(!e.commentId)throw new Error("Must provide commentId");if(!e.content)throw new Error("Content cannot be empty");return await ct(t,{processId:e.commentsId,action:"Update-Comment-Content",tags:[{name:"Comment-Id",value:e.commentId}],data:e.content,useRawData:!0})}catch(r){throw new Error(`Error at 'updateCommentContentWith' doing 'Update-Comment-Content': ${r?.message??String(r)}`)}}}function H3(t){return async e=>{try{if(!e.commentsId)throw new Error("Must provide commentsId");if(!e.commentId)throw new Error("Must provide commentId");return await ct(t,{processId:e.commentsId,action:"Remove-Comment",tags:[{name:"Comment-Id",value:e.commentId}]})}catch(r){throw new Error(`Error at 'removeCommentWith' doing 'Remove-Comment': ${r?.message??String(r)}`)}}}function q3(t){return async e=>{try{if(!e.commentsId)throw new Error("Must provide commentsId");if(!e.commentId)throw new Error("Must provide commentId");return await ct(t,{processId:e.commentsId,action:"Remove-Own-Comment",tags:[{name:"Comment-Id",value:e.commentId}]})}catch(r){throw new Error(`Error at 'removeUserCommentWith' doing 'Remove-Own-Comment': ${r?.message??String(r)}`)}}}function G3(t){return async e=>{try{if(!e.commentsId)throw new Error("Must provide commentsId");if(!e.commentId)throw new Error("Must provide commentId");return await ct(t,{processId:e.commentsId,action:"Pin-Comment",tags:[{name:"Comment-Id",value:e.commentId}]})}catch(r){throw new Error(`Error at 'pinCommentWith' doing 'Pin-Comment': ${r?.message??String(r)}`)}}}function X3(t){return async e=>{try{if(!e.commentsId)throw new Error("Must provide commentsId");if(!e.commentId)throw new Error("Must provide commentId");return await ct(t,{processId:e.commentsId,action:"Unpin-Comment",tags:[{name:"Comment-Id",value:e.commentId}]})}catch(r){throw new Error(`Error at 'unpinCommentWith' doing 'Unpin-Comment': ${r?.message??String(r)}`)}}}var Wk=A(S(),1);function rp(t){return async e=>{try{if(!e.moderationId)throw new Error("Must provide moderationId");if(!e.targetId)throw new Error("Must provide targetId");if(!e.status)throw new Error("Must provide status");if(!e.moderator)throw new Error("Must provide moderator");let r=[{name:"Target-Type",value:e.targetType},{name:"Target-Id",value:e.targetId},{name:"Status",value:e.status},{name:"Moderator",value:e.moderator}];e.targetContext&&r.push({name:"Target-Context",value:e.targetContext}),e.reason&&r.push({name:"Reason",value:e.reason});let n=e.metadata?JSON.stringify(e.metadata):void 0;return await ct(t,{processId:e.moderationId,action:"Add-Moderation-Entry",tags:r,data:n})}catch(r){throw new Error(r.message??"Error adding moderation entry")}}}function Qc(t){return async e=>{try{if(!e.moderationId)throw new Error("Must provide moderationId");if(!e.targetType)throw new Error("Must provide targetType");let r=[{name:"Target-Type",value:e.targetType}];e.targetId&&r.push({name:"Target-Id",value:e.targetId}),e.status&&r.push({name:"Status",value:e.status}),e.targetContext&&r.push({name:"Target-Context",value:e.targetContext}),e.moderator&&r.push({name:"Moderator",value:e.moderator});let n=await Ur(t,{processId:e.moderationId,path:"moderation/entries",fallbackAction:"Get-Moderation-Entries",tags:r});return n?Er(n):[]}catch(r){throw new Error(r.message??"Error getting moderation entries")}}}function z3(t){return async e=>{try{if(!e.moderationId)throw new Error("Must provide moderationId");if(!e.targetId)throw new Error("Must provide targetId");if(!e.status)throw new Error("Must provide status");if(!e.moderator)throw new Error("Must provide moderator");let n=await Qc(t)({moderationId:e.moderationId,targetType:e.targetType,targetId:e.targetId});if(!n||n.length===0)return await rp(t)({moderationId:e.moderationId,targetType:e.targetType,targetId:e.targetId,status:e.status,moderator:e.moderator,reason:e.reason});let a=[{name:"Entry-Id",value:n[0].id},{name:"Status",value:e.status},{name:"Moderator",value:e.moderator}];return e.reason&&a.push({name:"Reason",value:e.reason}),await ct(t,{processId:e.moderationId,action:"Update-Moderation-Entry",tags:a})}catch(r){throw new Error(r.message??"Error updating moderation entry")}}}function K3(t){return async e=>{try{if(!e.moderationId)throw new Error("Must provide moderationId");if(!e.targetId)throw new Error("Must provide targetId");let n=await Qc(t)({moderationId:e.moderationId,targetType:e.targetType,targetId:e.targetId});if(!n||n.length===0)throw new Error("Moderation entry not found");let i=n[0].id;return await ct(t,{processId:e.moderationId,action:"Remove-Moderation-Entry",tags:[{name:"Entry-Id",value:i}]})}catch(r){throw new Error(r.message??"Error removing moderation entry")}}}function Z3(t){return async e=>{try{if(!e.moderationId)throw new Error("Must provide moderationId");if(!e.originPortal)throw new Error("Must provide originPortal");let r=[{name:"Zone-Id",value:e.originPortal},{name:"Moderation-Process-Id",value:e.moderationId}];return e.subscriptionType&&r.push({name:"Subscription-Type",value:e.subscriptionType}),await ct(t,{processId:e.moderationId,action:"Add-Moderation-Subscription",tags:r})}catch(r){throw new Error(r.message??"Error adding moderation subscription")}}}function V3(t){return async e=>{try{if(!e.moderationId)throw new Error("Must provide moderationId");if(!e.originPortal)throw new Error("Must provide originPortal");return await ct(t,{processId:e.moderationId,action:"Remove-Moderation-Subscription",tags:[{name:"Zone-Id",value:e.originPortal}]})}catch(r){throw new Error(r.message??"Error removing moderation subscription")}}}function j3(t){return async e=>{try{if(!e.moderationId)throw new Error("Must provide moderationId");let r=await Ur(t,{processId:e.moderationId,path:"moderation/subscriptions",fallbackAction:"Get-Moderation-Subscriptions"});if(!r)return[];if(typeof r=="string")try{return JSON.parse(r)}catch{return[]}return r}catch(r){throw new Error(r.message??"Error getting moderation subscriptions")}}}var cJ=A(S(),1);var rJ=A(S(),1);function Wc(t){return async(e,r)=>{try{let n=null;if(e.spawnModeration)try{let v=[{name:Ve.keys.onBoot,value:xt.src.moderation},{name:Ve.keys.dateCreated,value:new Date().getTime().toString()}];e.authUsers&&v.push({name:"Auth-Users",value:JSON.stringify(e.authUsers)}),n=await Ln(t)({tags:v},r?x=>r(x):void 0),Ar(`Moderation Process ID: ${n}`),await new Promise(x=>setTimeout(x,500))}catch(v){console.error("Error creating moderation process:",v)}let i=[{name:Ve.keys.onBoot,value:xt.src.zone.id}];return n&&i.push({name:"Bootloader-Moderation",value:n}),e.tags&&e.tags.length&&e.tags.forEach(v=>i.push(v)),await Ln(t)({data:e.data,tags:i},r?v=>r(v):void 0)}catch(n){throw new Error(n.message??"Error creating zone")}}}function Yc(t){return async(e,r)=>{try{let n=Object.entries(e).map(([a,d])=>({key:a,value:d}));return await ct(t,{processId:r,action:"Zone-Update",data:n})}catch(n){throw new Error(n)}}}function Q3(t){return async(e,r)=>{try{return await ct(t,{processId:r,action:"Zone-Append",tags:[{name:"Path",value:e.path}],data:e.data})}catch(n){throw new Error(n)}}}function W3(t){return async(e,r)=>{try{return await ct(t,{processId:r,action:"Zone-Update-Patch-Map",data:e})}catch(n){throw new Error(n)}}}function Y3(t){return async(e,r)=>{if(!Jr(r))throw new Error("Invalid zone address");let i=[];for(let a of e){if(!Jr(a.granteeId))throw new Error("Invalid granteeId address");if(a.type!=="wallet"&&a.type!=="process")throw new Error("Invalid role type");i.push({Id:a.granteeId,Roles:a.roles,Type:a.type,SendInvite:a.sendInvite})}try{return await ct(t,{processId:r,action:"Role-Set",tags:[],data:i})}catch(a){throw new Error(a)}}}function $3(t){return async(e,r)=>{if(!(Jr(r)&&Jr(e.zoneToJoinId)))throw new Error("Invalid zone address");let i=[{name:"Zone-Id",value:e.zoneToJoinId}];e.storePath&&i.push({name:"Store-Path",value:e.storePath});try{return await ct(t,{processId:r,action:"Zone-Join",tags:i})}catch(a){throw new Error(a)}}}function $c(t){return async e=>{try{return Ar(`Updating zone to version ${xt.src.zone.version} with source ${xt.src.zone.id}`),await os(t,{processId:e.zoneId,evalTxId:xt.src.zone.id}),await os(t,{processId:e.zoneId,evalSrc:`
42
+ }`;return t.queryKey&&(X=`${t.queryKey}: ${X}`),X}async function c_(t){try{return await(await fetch(`https://${t.gateway}/graphql`,{method:"POST",headers:{"Content-Type":"application/json"},body:t.query})).json()}catch(e){throw e}}var _k=A(M(),1);var l_={},Ek=A(M(),1);var dJ=A(M(),1);var kk=A(M(),1);function P3(t){return async(e,r)=>{let n=b_(e);if(n)throw new Error(n);let i=null;if(e.spawnComments)try{let y=[{name:Ve.keys.onBoot,value:xt.src.comments},{name:Ve.keys.dateCreated,value:new Date().getTime().toString()}];e.users&&y.push({name:"Auth-Users",value:JSON.stringify(e.users)}),i=await Ln(t)({tags:y},r?B=>r(B):void 0),Ar(`Comments ID: ${i}`),await new Promise(B=>setTimeout(B,500))}catch(y){console.error(y)}let a=lp[e.contentType]?.serialize(e.data)??e.data,d={...e};i&&(d.commentsId=i);let v=p_(d);try{return await Ln(t)({tags:v,data:a},r?B=>r(B):void 0)}catch(y){throw new Error(y.message??"Error creating asset")}}}async function h_(t,e,r){try{let n=_r(await Ur(t,{processId:e,path:"asset",fallbackAction:"Info"}));if(r?.useGateway){let i=await _i({gateway:Pn.ao,ids:[e],tags:null,owners:null,cursor:null});return{...i?.data?.[0]?F3(i.data[0]):{},...n}}return{id:e,...n}}catch(n){throw new Error(n.message||"Error fetching atomic asset")}}function L3(t){return async(e,r)=>await h_(t,e,r)}async function R3(t){try{let e=await _i({gateway:Pn.arweave,ids:t??null,tags:null,owners:null,cursor:null});return e&&e.data.length?e.data.map(r=>F3(r)):null}catch(e){throw new Error(e)}}function F3(t){let e={id:t.node.id,owner:t.node.owner.address};for(let r of t.node.tags){let n=r.name,a=(n.startsWith(`${Ve.keys.bootloader}-`)?n.slice(`${Ve.keys.bootloader}-`.length):n).split("-").map((v,y)=>y===0?v.toLowerCase():v.charAt(0).toUpperCase()+v.slice(1).toLowerCase()).join(""),d;try{d=JSON.parse(r.value)}catch{d=r.value.toString()}e[a]=d}return e}function p_(t){let e=[{name:Ve.keys.onBoot,value:t.src??xt.src.asset},{name:Ve.keys.creator,value:t.creator},{name:Ve.keys.assetType,value:t.assetType},{name:Ve.keys.contentType,value:t.contentType},{name:Ve.keys.implements,value:"ANS-110"},{name:Ve.keys.dateCreated,value:new Date().getTime().toString()},ar("Name",t.name),ar("Description",t.description),ar("Topics",JSON.stringify(t.topics)),ar("Ticker","ATOMIC"),ar("Denomination",t.denomination?.toString()??"1"),ar("TotalSupply",t.supply?.toString()??"1"),ar("Transferable",t.transferable?.toString()??"true"),ar("Creator",t.creator)];if(t.metadata)for(let r in t.metadata)e.push(ar(Ya(r),t.metadata[r].toString()));return t.users&&e.push({name:"Auth-Users",value:JSON.stringify(t.users)}),t.commentsId&&e.push(ar("Comments",t.commentsId)),t.tags&&t.tags.forEach(r=>e.push(r)),e}function b_(t){if(typeof t!="object"||t===null)return"The provided arguments are invalid or empty.";let e=["name","description","topics","creator","data","contentType","assetType"];for(let r of e)if(!(r in t))return`Missing field '${r}'`;return typeof t.name!="string"||t.name.trim()===""?"Name is required":typeof t.description!="string"?"The description must be a valid string":!Array.isArray(t.topics)||t.topics.length===0?"Topics are required":typeof t.creator!="string"||t.creator.trim()===""?"Creator is required":t.data===void 0||t.data===null?"Data field is required":typeof t.contentType!="string"||t.contentType.trim()===""?"Content type must be a non-empty string":typeof t.assetType!="string"||t.assetType.trim()===""?"Type must be a non-empty string":"supply"in t&&(typeof t.supply!="number"||t.supply<=0)?"Supply must be a positive number":"denomination"in t&&(typeof t.denomination!="number"||t.denomination<=0)?"Denomination must be a positive number":"transferable"in t&&typeof t.transferable!="boolean"?"Transferable must be a boolean value":"metadata"in t&&typeof t.metadata!="object"?"Metadata must be an object":"tags"in t&&(!Array.isArray(t.tags)||t.tags.some(r=>typeof r!="object"))?"Tags must be an array of objects":"src"in t&&typeof t.src!="string"?"Source must be a valid string":null}var zk=A(M(),1);var g_="eXCtpVbcd_jZ0dmU2PZ8focaKxBGECBQ8wMib7sIVPo",rp="lJovHqM9hwNjHV5JoY9NGWtt0WD-5D4gOqNL2VWW5jk";function D3(t){return async(e,r)=>{if(!t.signer)throw new Error("No signer provided");let n=Qa(t),i=new Date().getTime().toString(),a=[{name:Ve.keys.creator,value:e.creator},{name:Ve.keys.ans110.title,value:as(e.title)},{name:Ve.keys.name,value:as(e.title)},{name:Ve.keys.ans110.description,value:as(e.description)}],d=null,v=null;try{d=e.banner?await n(e.thumbnail):rp,v=e.banner?await n(e.banner):g_,e.thumbnail&&a.push({name:Ve.keys.thumbnail,value:d}),e.banner&&a.push({name:Ve.keys.banner,value:v})}catch(B){console.error(B)}let y=await fetch(Pf(xt.src.collection));if(!y.ok)throw new Error("Unable to fetch process src");let x=await y.text();x=x.replace(/'<NAME>'/g,fu(e.title)),x=x.replace(/'<DESCRIPTION>'/g,fu(e.description)),x=x.replace(/<CREATOR>/g,e.creator),x=x.replace(/<THUMBNAIL>/g,d||rp),x=x.replace(/<BANNER>/g,v||rp),x=x.replace(/<DATECREATED>/g,i),x=x.replace(/<LASTUPDATE>/g,i);try{let B=Ln(t),C=await B({tags:a},r?D=>r(D):void 0);if(Ar("Sending eval message to collection..."),r&&r("Sending eval message to collection..."),await t.ao.message({process:C,signer:t.signer,tags:[{name:"Action",value:"Eval"}],data:x}),!e.skipRegistry){Ar("Sending collection to registry..."),r&&r("Sending collection to registry...");let D=[{name:"Action",value:"Add-Collection"},{name:"CollectionId",value:C},{name:"Name",value:as(e.title)},{name:"Creator",value:e.creator},{name:"DateCreated",value:i}];v&&D.push({name:"Banner",value:v}),d&&D.push({name:"Thumbnail",value:d}),await t.ao.message({process:xt.collectionRegistry,signer:t.signer,tags:D})}if(!e.skipActivity){Ar("Creating collection activity process..."),r&&r("Creating collection activity process...");let D=[{name:"CollectionId",value:C},{name:"DateCreated",value:i},{name:"UCM-Process",value:"Collection-Activity"},{name:"On-Boot",value:xt.src.collectionActivity}],F=await B({tags:D},r?P=>r(P):void 0);Ar("Adding activity to collection process..."),r&&r("Adding activity to collection process..."),await t.ao.message({process:C,signer:t.signer,tags:[{name:"Action",value:"Eval"}],data:`ActivityProcess = '${F}'`})}return C}catch(B){throw new Error(B.message??"Error creating collection")}}}function O3(t){return async e=>await ot(t,{processId:e.creator,action:"Run-Action",tags:[{name:"Forward-To",value:e.collectionId},{name:"Forward-Action",value:"Update-Assets"}],data:{Target:e.collectionId,Action:"Update-Assets",Input:{AssetIds:e.assetIds,UpdateType:e.updateType}}})}function I3(t){return async e=>{let r=await Ur(t,{processId:e,path:"collection",fallbackAction:"Info"});return r?_r(r):null}}function N3(t){return async e=>{let r=e.creator?"Get-Collections-By-User":"Get-Collections",n=await Lf(t,{processId:xt.collectionRegistry,action:r,tags:e.creator?[{name:"Creator",value:e.creator}]:null});return n&&n.Collections&&n.Collections.length?n.Collections.map(a=>({id:a.Id,title:a.Name.replace(/\[|\]/g,""),description:a.Description,creator:a.Creator,dateCreated:a.DateCreated,banner:a.Banner,thumbnail:a.Thumbnail})):null}}var jk=A(M(),1);function k3(t){return async e=>{try{if(!e.commentsId)throw new Error("Must provide commentsId");if(!e.content)throw new Error("Content cannot be empty");let r=[];return e.parentId&&r.push({name:"Parent-Id",value:e.parentId}),e.metadata&&r.push({name:"Metadata",value:JSON.stringify(e.metadata)}),await ot(t,{processId:e.commentsId,action:"Add-Comment",tags:r,data:e.content,useRawData:!0})}catch(r){throw new Error(r.message??"Error creating comment")}}}function J3(t){return async e=>{try{if(!e.commentsId)throw new Error("Must provide commentsId");return _r(await Ur(t,{processId:e.commentsId,path:"comments",fallbackAction:"Get-Comments"}))}catch(r){throw new Error(r.message??"Error getting comments")}}}function U3(t){return async e=>{try{if(!e.commentsId)throw new Error("Must provide commentsId");if(!e.commentId)throw new Error("Must provide commentId");return await ot(t,{processId:e.commentsId,action:"Update-Comment-Status",tags:[{name:"Comment-Id",value:e.commentId},{name:"Status",value:e.status}]})}catch(r){throw new Error(r.message??"Error updating comment status")}}}function H3(t){return async e=>{try{if(!e.commentsId)throw new Error("Must provide commentsId");if(!e.commentId)throw new Error("Must provide commentId");if(!e.content)throw new Error("Content cannot be empty");return await ot(t,{processId:e.commentsId,action:"Update-Comment-Content",tags:[{name:"Comment-Id",value:e.commentId}],data:e.content,useRawData:!0})}catch(r){throw new Error(`Error at 'updateCommentContentWith' doing 'Update-Comment-Content': ${r?.message??String(r)}`)}}}function q3(t){return async e=>{try{if(!e.commentsId)throw new Error("Must provide commentsId");if(!e.commentId)throw new Error("Must provide commentId");return await ot(t,{processId:e.commentsId,action:"Remove-Comment",tags:[{name:"Comment-Id",value:e.commentId}]})}catch(r){throw new Error(`Error at 'removeCommentWith' doing 'Remove-Comment': ${r?.message??String(r)}`)}}}function G3(t){return async e=>{try{if(!e.commentsId)throw new Error("Must provide commentsId");if(!e.commentId)throw new Error("Must provide commentId");return await ot(t,{processId:e.commentsId,action:"Remove-Own-Comment",tags:[{name:"Comment-Id",value:e.commentId}]})}catch(r){throw new Error(`Error at 'removeUserCommentWith' doing 'Remove-Own-Comment': ${r?.message??String(r)}`)}}}function X3(t){return async e=>{try{if(!e.commentsId)throw new Error("Must provide commentsId");if(!e.commentId)throw new Error("Must provide commentId");return await ot(t,{processId:e.commentsId,action:"Pin-Comment",tags:[{name:"Comment-Id",value:e.commentId}]})}catch(r){throw new Error(`Error at 'pinCommentWith' doing 'Pin-Comment': ${r?.message??String(r)}`)}}}function z3(t){return async e=>{try{if(!e.commentsId)throw new Error("Must provide commentsId");if(!e.commentId)throw new Error("Must provide commentId");return await ot(t,{processId:e.commentsId,action:"Unpin-Comment",tags:[{name:"Comment-Id",value:e.commentId}]})}catch(r){throw new Error(`Error at 'unpinCommentWith' doing 'Unpin-Comment': ${r?.message??String(r)}`)}}}var $k=A(M(),1);function np(t){return async e=>{try{if(!e.moderationId)throw new Error("Must provide moderationId");if(!e.targetId)throw new Error("Must provide targetId");if(!e.status)throw new Error("Must provide status");if(!e.moderator)throw new Error("Must provide moderator");let r=[{name:"Target-Type",value:e.targetType},{name:"Target-Id",value:e.targetId},{name:"Status",value:e.status},{name:"Moderator",value:e.moderator}];e.targetContext&&r.push({name:"Target-Context",value:e.targetContext}),e.reason&&r.push({name:"Reason",value:e.reason});let n=e.metadata?JSON.stringify(e.metadata):void 0;return await ot(t,{processId:e.moderationId,action:"Add-Moderation-Entry",tags:r,data:n})}catch(r){throw new Error(r.message??"Error adding moderation entry")}}}function Qc(t){return async e=>{try{if(!e.moderationId)throw new Error("Must provide moderationId");if(!e.targetType)throw new Error("Must provide targetType");let r=[{name:"Target-Type",value:e.targetType}];e.targetId&&r.push({name:"Target-Id",value:e.targetId}),e.status&&r.push({name:"Status",value:e.status}),e.targetContext&&r.push({name:"Target-Context",value:e.targetContext}),e.moderator&&r.push({name:"Moderator",value:e.moderator});let n=await Ur(t,{processId:e.moderationId,path:"moderation/entries",fallbackAction:"Get-Moderation-Entries",tags:r});return n?_r(n):[]}catch(r){throw new Error(r.message??"Error getting moderation entries")}}}function K3(t){return async e=>{try{if(!e.moderationId)throw new Error("Must provide moderationId");if(!e.targetId)throw new Error("Must provide targetId");if(!e.status)throw new Error("Must provide status");if(!e.moderator)throw new Error("Must provide moderator");let n=await Qc(t)({moderationId:e.moderationId,targetType:e.targetType,targetId:e.targetId});if(!n||n.length===0)return await np(t)({moderationId:e.moderationId,targetType:e.targetType,targetId:e.targetId,status:e.status,moderator:e.moderator,reason:e.reason});let a=[{name:"Entry-Id",value:n[0].id},{name:"Status",value:e.status},{name:"Moderator",value:e.moderator}];return e.reason&&a.push({name:"Reason",value:e.reason}),await ot(t,{processId:e.moderationId,action:"Update-Moderation-Entry",tags:a})}catch(r){throw new Error(r.message??"Error updating moderation entry")}}}function Z3(t){return async e=>{try{if(!e.moderationId)throw new Error("Must provide moderationId");if(!e.targetId)throw new Error("Must provide targetId");let n=await Qc(t)({moderationId:e.moderationId,targetType:e.targetType,targetId:e.targetId});if(!n||n.length===0)throw new Error("Moderation entry not found");let i=n[0].id;return await ot(t,{processId:e.moderationId,action:"Remove-Moderation-Entry",tags:[{name:"Entry-Id",value:i}]})}catch(r){throw new Error(r.message??"Error removing moderation entry")}}}function V3(t){return async e=>{try{if(!e.moderationId)throw new Error("Must provide moderationId");if(!e.originPortal)throw new Error("Must provide originPortal");let r=[{name:"Zone-Id",value:e.originPortal},{name:"Moderation-Process-Id",value:e.moderationId}];return e.subscriptionType&&r.push({name:"Subscription-Type",value:e.subscriptionType}),await ot(t,{processId:e.moderationId,action:"Add-Moderation-Subscription",tags:r})}catch(r){throw new Error(r.message??"Error adding moderation subscription")}}}function j3(t){return async e=>{try{if(!e.moderationId)throw new Error("Must provide moderationId");if(!e.originPortal)throw new Error("Must provide originPortal");return await ot(t,{processId:e.moderationId,action:"Remove-Moderation-Subscription",tags:[{name:"Zone-Id",value:e.originPortal}]})}catch(r){throw new Error(r.message??"Error removing moderation subscription")}}}function Q3(t){return async e=>{try{if(!e.moderationId)throw new Error("Must provide moderationId");let r=await Ur(t,{processId:e.moderationId,path:"moderation/subscriptions",fallbackAction:"Get-Moderation-Subscriptions"});if(!r)return[];if(typeof r=="string")try{return JSON.parse(r)}catch{return[]}return r}catch(r){throw new Error(r.message??"Error getting moderation subscriptions")}}}var lJ=A(M(),1);var iJ=A(M(),1);function Wc(t){return async(e,r)=>{try{let n=null;try{let v=[{name:Ve.keys.onBoot,value:xt.src.moderation},{name:Ve.keys.dateCreated,value:new Date().getTime().toString()}];e.authUsers&&v.push({name:"Auth-Users",value:JSON.stringify(e.authUsers)}),n=await Ln(t)({tags:v},r?x=>r(x):void 0),Ar(`Moderation Process ID: ${n}`),await new Promise(x=>setTimeout(x,500))}catch(v){throw console.error("Error creating moderation process:",v),new Error(`Failed to create mandatory moderation process: ${v.message}`)}let i=[{name:Ve.keys.onBoot,value:xt.src.zone.id}];return n&&i.push({name:"Bootloader-Moderation",value:n}),e.tags&&e.tags.length&&e.tags.forEach(v=>i.push(v)),await Ln(t)({data:e.data,tags:i},r?v=>r(v):void 0)}catch(n){throw new Error(n.message??"Error creating zone")}}}function Yc(t){return async(e,r)=>{try{let n=Object.entries(e).map(([a,d])=>({key:a,value:d}));return await ot(t,{processId:r,action:"Zone-Update",data:n})}catch(n){throw new Error(n)}}}function W3(t){return async(e,r)=>{try{return await ot(t,{processId:r,action:"Zone-Append",tags:[{name:"Path",value:e.path}],data:e.data})}catch(n){throw new Error(n)}}}function Y3(t){return async(e,r)=>{try{return await ot(t,{processId:r,action:"Zone-Update-Patch-Map",data:e})}catch(n){throw new Error(n)}}}function $3(t){return async(e,r)=>{if(!Er(r))throw new Error("Invalid zone address");let i=[];for(let a of e){if(!Er(a.granteeId))throw new Error("Invalid granteeId address");if(a.type!=="wallet"&&a.type!=="process")throw new Error("Invalid role type");i.push({Id:a.granteeId,Roles:a.roles,Type:a.type,SendInvite:a.sendInvite})}try{return await ot(t,{processId:r,action:"Role-Set",tags:[],data:i})}catch(a){throw new Error(a)}}}function e8(t){return async(e,r)=>{if(!(Er(r)&&Er(e.zoneToJoinId)))throw new Error("Invalid zone address");let i=[{name:"Zone-Id",value:e.zoneToJoinId}];e.storePath&&i.push({name:"Store-Path",value:e.storePath});try{return await ot(t,{processId:r,action:"Zone-Join",tags:i})}catch(a){throw new Error(a)}}}function $c(t){return async e=>{try{return Ar(`Updating zone to version ${xt.src.zone.version} with source ${xt.src.zone.id}`),await os(t,{processId:e.zoneId,evalTxId:xt.src.zone.id}),await os(t,{processId:e.zoneId,evalSrc:`
43
43
  Zone.Version = '${xt.src.zone.version}'
44
44
  local patchMapLength = Zone.Functions.tableLength(Zone.PatchMap)
45
45
  if patchMapLength > 0 then
@@ -49,7 +49,7 @@ nonce: bundlr`),Buffer.from(i))}};var WO=A(S(),1);var Ka=class{_publicKey;ownerL
49
49
  local json = require('json')
50
50
  SyncState(nil)
51
51
  end
52
- `})}catch(r){throw new Error(r)}}}function e8(t){return async e=>{try{return Ar(`Adding authority ${e.authorityId} to process ${e.zoneId}`),await os(t,{processId:e.zoneId,evalSrc:`table.insert(ao.authorities, '${e.authorityId}'); SyncState(nil)`})}catch(r){throw new Error(r)}}}function eu(t){return async e=>{try{let r=await Ur(t,{processId:e,path:"zone",fallbackAction:"Info"});return Er(r)}catch(r){throw new Error(r.message??"Error getting zone")}}}function t8(t){let e=Wc(t),r=Qa(t);return async(n,i)=>{let a=null,d=[{name:Ve.keys.zoneType,value:Ve.values.user}],v=async y=>{let x=y.toLowerCase(),B=n[x];if(B&&Cf(B))try{let C=await r(n[x]);d.push(ar(y,C))}catch(C){i?i(`Failed to resolve ${y}: ${C.message}`):console.error(C)}};n.username&&d.push(ar("Username",n.username)),n.displayName&&d.push(ar("DisplayName",n.displayName)),n.description&&d.push(ar("Description",n.description)),await Promise.all([v("Thumbnail"),v("Banner")]);try{a=await e({tags:d},i)}catch(y){throw new Error(y.message??"Error creating profile")}return a}}function r8(t){let e=Yc(t),r=Qa(t);return async(n,i,a)=>{if(i){let d={Username:n.username,DisplayName:n.displayName,Description:n.description};if(n.thumbnail&&Cf(n.thumbnail))try{d.Thumbnail=await r(n.thumbnail)}catch(v){a&&a(`Failed to resolve thumbnail: ${v.message}`)}else d.Thumbnail="None";if(n.banner&&Cf(n.banner))try{d.Banner=await r(n.banner)}catch(v){a&&a(`Failed to resolve banner: ${v.message}`)}else d.Banner="None";try{return await e(d,i)}catch(v){throw new Error(v.message??"Error creating profile")}}else throw new Error("No profile provided")}}function n8(t){let e=$c(t);return async r=>{try{return await e({zoneId:r.profileId})}catch(n){throw new Error(n)}}}function np(t){let e=eu(t);return async r=>{try{let n=await e(r);if(!n)throw new Error("Error fetching profile - Not found");return{id:r,owner:n.owner,assets:n.assets,roles:n.roles,invites:n.invites,version:n.version,authorities:n.authorities,...n.store}}catch(n){throw new Error(n.message??"Error fetching profile")}}}function i8(t){let e=np(t);return async r=>{try{let n=await _i({gateway:Pn.ao,tags:[{name:Ve.keys.dataProtocol,values:[Ve.values.dataProtocol]},{name:Ve.keys.zoneType,values:[Ve.values.user]}],owners:[r]});return n?.data?.length>0?(n.data.sort((i,a)=>{let d=i.node.block?.timestamp??0;return(a.node.block?.timestamp??0)-d}),await e(n.data[0].node.id)):{id:null}}catch(n){throw new Error(n.message??"Error fetching profile")}}}var vJ=xt.src.zone.version;function g_(t){return{createZone:Wc(t),updateZone:Yc(t),addToZone:Q3(t),getZone:eu(t),setZoneRoles:Y3(t),joinZone:$3(t),updateZonePatchMap:W3(t),updateZoneVersion:$c(t),updateZoneAuthorities:e8(t),createProfile:t8(t),updateProfile:r8(t),updateProfileVersion:n8(t),getProfileById:np(t),getProfileByWalletAddress:i8(t),createAtomicAsset:C3(t),getAtomicAsset:P3(t),getAtomicAssets:L3,createComment:N3(t),getComments:k3(t),updateCommentStatus:J3(t),removeComment:H3(t),updateCommentContent:U3(t),userRemoveComment:q3(t),pinComment:G3(t),unpinComment:X3(t),createCollection:F3(t),updateCollectionAssets:D3(t),getCollection:O3(t),getCollections:I3(t),addModerationEntry:rp(t),getModerationEntries:Qc(t),updateModerationEntry:z3(t),removeModerationEntry:K3(t),addModerationSubscription:Z3(t),removeModerationSubscription:V3(t),getModerationSubscriptions:j3(t),resolveTransaction:Qa(t),getGQLData:_i,getAggregatedGQLData:B3,createProcess:Ln(t),readProcess:gp(t),readState:bp(t),sendMessage:pp(t),mapFromProcessCase:Er,mapToProcessCase:Ya}}var mJ={init:g_};export{vJ as CurrentZoneVersion,c_ as Types,mJ as default};
52
+ `})}catch(r){throw new Error(r)}}}function t8(t){return async e=>{try{return Ar(`Adding authority ${e.authorityId} to process ${e.zoneId}`),await os(t,{processId:e.zoneId,evalSrc:`table.insert(ao.authorities, '${e.authorityId}'); SyncState(nil)`})}catch(r){throw new Error(r)}}}function eu(t){return async e=>{try{let r=await Ur(t,{processId:e,path:"zone",fallbackAction:"Info"});return _r(r)}catch(r){throw new Error(r.message??"Error getting zone")}}}function r8(t){return async e=>{let{zoneId:r,op:n,to:i}=e;if(!Er(r))throw new Error("Invalid zone address");if((n==="Invite"||n==="Cancel")&&(!i||!Er(i)))throw new Error('Invalid or missing "to" address');try{let a=[{name:"Update-Type",value:n}];return i&&a.push({name:"To",value:i}),await ot(t,{processId:r,action:"Zone-Transfer-Ownership",tags:a})}catch(a){throw new Error(a?.message??a??"Error sending transfer ownership request")}}}function n8(t){let e=Wc(t),r=Qa(t);return async(n,i)=>{let a=null,d=[{name:Ve.keys.zoneType,value:Ve.values.user}],v=async y=>{let x=y.toLowerCase(),B=n[x];if(B&&Cf(B))try{let C=await r(n[x]);d.push(ar(y,C))}catch(C){i?i(`Failed to resolve ${y}: ${C.message}`):console.error(C)}};n.username&&d.push(ar("Username",n.username)),n.displayName&&d.push(ar("DisplayName",n.displayName)),n.description&&d.push(ar("Description",n.description)),await Promise.all([v("Thumbnail"),v("Banner")]);try{a=await e({tags:d},i)}catch(y){throw new Error(y.message??"Error creating profile")}return a}}function i8(t){let e=Yc(t),r=Qa(t);return async(n,i,a)=>{if(i){let d={Username:n.username,DisplayName:n.displayName,Description:n.description};if(n.thumbnail&&Cf(n.thumbnail))try{d.Thumbnail=await r(n.thumbnail)}catch(v){a&&a(`Failed to resolve thumbnail: ${v.message}`)}else d.Thumbnail="None";if(n.banner&&Cf(n.banner))try{d.Banner=await r(n.banner)}catch(v){a&&a(`Failed to resolve banner: ${v.message}`)}else d.Banner="None";try{return await e(d,i)}catch(v){throw new Error(v.message??"Error creating profile")}}else throw new Error("No profile provided")}}function a8(t){let e=$c(t);return async r=>{try{return await e({zoneId:r.profileId})}catch(n){throw new Error(n)}}}function ip(t){let e=eu(t);return async r=>{try{let n=await e(r);if(!n)throw new Error("Error fetching profile - Not found");return{id:r,owner:n.owner,assets:n.assets,roles:n.roles,invites:n.invites,version:n.version,authorities:n.authorities,...n.store}}catch(n){throw new Error(n.message??"Error fetching profile")}}}function o8(t){let e=ip(t);return async r=>{try{let n=await _i({gateway:Pn.ao,tags:[{name:Ve.keys.dataProtocol,values:[Ve.values.dataProtocol]},{name:Ve.keys.zoneType,values:[Ve.values.user]}],owners:[r]});return n?.data?.length>0?(n.data.sort((i,a)=>{let d=i.node.block?.timestamp??0;return(a.node.block?.timestamp??0)-d}),await e(n.data[0].node.id)):{id:null}}catch(n){throw new Error(n.message??"Error fetching profile")}}}var xJ=xt.src.zone.version;function m_(t){return{createZone:Wc(t),updateZone:Yc(t),addToZone:W3(t),getZone:eu(t),setZoneRoles:$3(t),joinZone:e8(t),updateZonePatchMap:Y3(t),updateZoneVersion:$c(t),updateZoneAuthorities:t8(t),transferZoneOwnership:r8(t),createProfile:n8(t),updateProfile:i8(t),updateProfileVersion:a8(t),getProfileById:ip(t),getProfileByWalletAddress:o8(t),createAtomicAsset:P3(t),getAtomicAsset:L3(t),getAtomicAssets:R3,createComment:k3(t),getComments:J3(t),updateCommentStatus:U3(t),removeComment:q3(t),updateCommentContent:H3(t),userRemoveComment:G3(t),pinComment:X3(t),unpinComment:z3(t),createCollection:D3(t),updateCollectionAssets:O3(t),getCollection:I3(t),getCollections:N3(t),addModerationEntry:np(t),getModerationEntries:Qc(t),updateModerationEntry:K3(t),removeModerationEntry:Z3(t),addModerationSubscription:V3(t),removeModerationSubscription:j3(t),getModerationSubscriptions:Q3(t),resolveTransaction:Qa(t),getGQLData:_i,getAggregatedGQLData:C3,createProcess:Ln(t),readProcess:vp(t),readState:gp(t),sendMessage:bp(t),mapFromProcessCase:_r,mapToProcessCase:Ya}}var yJ={init:m_};export{xJ as CurrentZoneVersion,l_ as Types,yJ as default};
53
53
  /*! Bundled license information:
54
54
 
55
55
  js-sha3/src/sha3.js: