diff --git a/docs/bundle.js b/docs/bundle.js index bcfced7..77f3e0f 100644 --- a/docs/bundle.js +++ b/docs/bundle.js @@ -1,2 +1,2 @@ /*! For license information please see bundle.js.LICENSE.txt */ -(()=>{"use strict";var e={7749:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createCurve=t.getHash=void 0;const r=n(4542),f=n(4224),a=n(7292);function s(e){return{hash:e,hmac:(t,...n)=>(0,r.hmac)(e,t,(0,f.concatBytes)(...n)),randomBytes:f.randomBytes}}t.getHash=s,t.createCurve=function(e,t){const n=t=>(0,a.weierstrass)({...e,...s(t)});return Object.freeze({...n(t),create:n})}},6023:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateBasic=t.wNAF=void 0;const r=n(5646),f=n(8421),a=BigInt(0),s=BigInt(1);t.wNAF=function(e,t){const n=(e,t)=>{const n=t.negate();return e?n:t},r=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:n,unsafeLadder(t,n){let r=e.ZERO,f=t;for(;n>a;)n&s&&(r=r.add(f)),f=f.double(),n>>=s;return r},precomputeWindow(e,t){const{windows:n,windowSize:f}=r(t),a=[];let s=e,i=s;for(let e=0;e>=p,r>o&&(r-=d,a+=s);const i=t,h=t+Math.abs(r)-1,b=e%2!=0,g=r<0;0===r?c=c.add(n(b,f[i])):l=l.add(n(g,f[h]))}return{p:l,f:c}},wNAFCached(e,t,n,r){const f=e._WINDOW_SIZE||1;let a=t.get(e);return a||(a=this.precomputeWindow(e,f),1!==f&&t.set(e,r(a))),this.wNAF(f,a,n)}}},t.validateBasic=function(e){return(0,r.validateField)(e.Fp),(0,f.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,r.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}},2124:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createHasher=t.isogenyMap=t.hash_to_field=t.expand_message_xof=t.expand_message_xmd=void 0;const r=n(5646),f=n(8421),a=f.bytesToNumberBE;function s(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const n=Array.from({length:t}).fill(0);for(let r=t-1;r>=0;r--)n[r]=255&e,e>>>=8;return new Uint8Array(n)}function i(e,t){const n=new Uint8Array(e.length);for(let r=0;r255&&(t=r((0,f.concatBytes)((0,f.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:a,blockLen:c}=r,u=Math.ceil(n/a);if(u>255)throw new Error("Invalid xmd length");const d=(0,f.concatBytes)(t,s(t.length,1)),p=s(0,c),h=s(n,2),b=new Array(u),g=r((0,f.concatBytes)(p,e,h,s(0,1),d));b[0]=r((0,f.concatBytes)(g,s(1,1),d));for(let e=1;e<=u;e++){const t=[i(g,b[e-1]),s(e+1,1),d];b[e]=r((0,f.concatBytes)(...t))}return(0,f.concatBytes)(...b).slice(0,n)}function u(e,t,n,r,a){if(o(e),o(t),l(n),t.length>255){const e=Math.ceil(2*r/8);t=a.create({dkLen:e}).update((0,f.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(n>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return a.create({dkLen:n}).update(e).update(s(n,2)).update(t).update(s(t.length,1)).digest()}function d(e,t,n){(0,f.validateObject)(n,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:s,k:i,m:d,hash:p,expand:h,DST:b}=n;o(e),l(t);const g=function(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return(0,f.utf8ToBytes)(e);throw new Error("DST must be Uint8Array or string")}(b),m=s.toString(2).length,y=Math.ceil((m+i)/8),v=t*d*y;let w;if("xmd"===h)w=c(e,g,v,p);else if("xof"===h)w=u(e,g,v,i,p);else{if("_internal_pass"!==h)throw new Error('expand must be "xmd" or "xof"');w=e}const A=new Array(t);for(let e=0;eArray.from(e).reverse()));return(t,r)=>{const[f,a,s,i]=n.map((n=>n.reduce(((n,r)=>e.add(e.mul(n,t),r)))));return t=e.div(f,a),r=e.mul(r,e.div(s,i)),{x:t,y:r}}},t.createHasher=function(e,t,n){if("function"!=typeof t)throw new Error("mapToCurve() must be defined");return{hashToCurve(r,f){const a=d(r,2,{...n,DST:n.DST,...f}),s=e.fromAffine(t(a[0])),i=e.fromAffine(t(a[1])),o=s.add(i).clearCofactor();return o.assertValidity(),o},encodeToCurve(r,f){const a=d(r,1,{...n,DST:n.encodeDST,...f}),s=e.fromAffine(t(a[0])).clearCofactor();return s.assertValidity(),s}}}},5646:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mapHashToField=t.getMinHashLength=t.getFieldBytesLength=t.hashToPrivateScalar=t.FpSqrtEven=t.FpSqrtOdd=t.Field=t.nLength=t.FpIsSquare=t.FpDiv=t.FpInvertBatch=t.FpPow=t.validateField=t.isNegativeLE=t.FpSqrt=t.tonelliShanks=t.invert=t.pow2=t.pow=t.mod=void 0;const r=n(8421),f=BigInt(0),a=BigInt(1),s=BigInt(2),i=BigInt(3),o=BigInt(4),l=BigInt(5),c=BigInt(8);function u(e,t){const n=e%t;return n>=f?n:t+n}function d(e,t,n){if(n<=f||t 0");if(n===a)return f;let r=a;for(;t>f;)t&a&&(r=r*e%n),e=e*e%n,t>>=a;return r}function p(e,t){if(e===f||t<=f)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=u(e,t),r=t,s=f,i=a,o=a,l=f;for(;n!==f;){const e=r/n,t=r%n,f=s-o*e,a=i-l*e;r=n,n=t,s=o,i=l,o=f,l=a}if(r!==a)throw new Error("invert: does not exist");return u(s,t)}function h(e){const t=(e-a)/s;let n,r,i;for(n=e-a,r=0;n%s===f;n/=s,r++);for(i=s;if;)r*=r,r%=n;return r},t.invert=p,t.tonelliShanks=h,t.FpSqrt=b,t.isNegativeLE=(e,t)=>(u(e,t)&a)===a;const g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function m(e,t,n){if(n 0");if(n===f)return e.ONE;if(n===a)return t;let r=e.ONE,s=t;for(;n>f;)n&a&&(r=e.mul(r,s)),s=e.sqr(s),n>>=a;return r}function y(e,t){const n=new Array(t.length),r=t.reduce(((t,r,f)=>e.is0(r)?t:(n[f]=t,e.mul(t,r))),e.ONE),f=e.inv(r);return t.reduceRight(((t,r,f)=>e.is0(r)?t:(n[f]=e.mul(t,n[f]),e.mul(t,r))),f),n}function v(e,t){const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function w(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function A(e){const t=w(e);return t+Math.ceil(t/2)}t.validateField=function(e){const t=g.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,r.validateObject)(e,t)},t.FpPow=m,t.FpInvertBatch=y,t.FpDiv=function(e,t,n){return e.mul(t,"bigint"==typeof n?p(n,e.ORDER):e.inv(n))},t.FpIsSquare=function(e){const t=(e.ORDER-a)/s;return n=>{const r=e.pow(n,t);return e.eql(r,e.ZERO)||e.eql(r,e.ONE)}},t.nLength=v,t.Field=function(e,t,n=!1,s={}){if(e<=f)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:i,nByteLength:o}=v(e,t);if(o>2048)throw new Error("Field lengths over 2048 bytes are not supported");const l=b(e),c=Object.freeze({ORDER:e,BITS:i,BYTES:o,MASK:(0,r.bitMask)(i),ZERO:f,ONE:a,create:t=>u(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("Invalid field element: expected bigint, got "+typeof t);return f<=t&&te===f,isOdd:e=>(e&a)===a,neg:t=>u(-t,e),eql:(e,t)=>e===t,sqr:t=>u(t*t,e),add:(t,n)=>u(t+n,e),sub:(t,n)=>u(t-n,e),mul:(t,n)=>u(t*n,e),pow:(e,t)=>m(c,e,t),div:(t,n)=>u(t*p(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>p(t,e),sqrt:s.sqrt||(e=>l(c,e)),invertBatch:e=>y(c,e),cmov:(e,t,n)=>n?t:e,toBytes:e=>n?(0,r.numberToBytesLE)(e,o):(0,r.numberToBytesBE)(e,o),fromBytes:e=>{if(e.length!==o)throw new Error(`Fp.fromBytes: expected ${o}, got ${e.length}`);return n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e)}});return Object.freeze(c)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?n:e.neg(n)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?e.neg(n):n},t.hashToPrivateScalar=function(e,t,n=!1){const f=(e=(0,r.ensureBytes)("privateHash",e)).length,s=v(t).nByteLength+8;if(s<24||f1024)throw new Error(`hashToPrivateScalar: expected ${s}-1024 bytes of input, got ${f}`);return u(n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e),t-a)+a},t.getFieldBytesLength=w,t.getMinHashLength=A,t.mapHashToField=function(e,t,n=!1){const f=e.length,s=w(t),i=A(t);if(f<16||f1024)throw new Error(`expected ${i}-1024 bytes of input, got ${f}`);const o=u(n?(0,r.bytesToNumberBE)(e):(0,r.bytesToNumberLE)(e),t-a)+a;return n?(0,r.numberToBytesLE)(o,s):(0,r.numberToBytesBE)(o,s)}},8421:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateObject=t.createHmacDrbg=t.bitMask=t.bitSet=t.bitGet=t.bitLen=t.utf8ToBytes=t.equalBytes=t.concatBytes=t.ensureBytes=t.numberToVarBytesBE=t.numberToBytesLE=t.numberToBytesBE=t.bytesToNumberLE=t.bytesToNumberBE=t.hexToBytes=t.hexToNumber=t.numberToHexUnpadded=t.bytesToHex=void 0;const n=BigInt(0),r=BigInt(1),f=BigInt(2),a=e=>e instanceof Uint8Array,s=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function i(e){if(!a(e))throw new Error("Uint8Array expected");let t="";for(let n=0;ne+t.length),0));let n=0;return e.forEach((e=>{if(!a(e))throw new Error("Uint8Array expected");t.set(e,n),n+=e.length})),t}t.bytesToHex=i,t.numberToHexUnpadded=o,t.hexToNumber=l,t.hexToBytes=c,t.bytesToNumberBE=function(e){return l(i(e))},t.bytesToNumberLE=function(e){if(!a(e))throw new Error("Uint8Array expected");return l(i(Uint8Array.from(e).reverse()))},t.numberToBytesBE=u,t.numberToBytesLE=function(e,t){return u(e,t).reverse()},t.numberToVarBytesBE=function(e){return c(o(e))},t.ensureBytes=function(e,t,n){let r;if("string"==typeof t)try{r=c(t)}catch(n){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${n}`)}else{if(!a(t))throw new Error(`${e} must be hex string or Uint8Array`);r=Uint8Array.from(t)}const f=r.length;if("number"==typeof n&&f!==n)throw new Error(`${e} expected ${n} bytes, got ${f}`);return r},t.concatBytes=d,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;for(let n=0;nn;e>>=r,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&r},t.bitSet=(e,t,f)=>e|(f?r:n)<(f<new Uint8Array(e),h=e=>Uint8Array.from(e);t.createHmacDrbg=function(e,t,n){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");let r=p(e),f=p(e),a=0;const s=()=>{r.fill(1),f.fill(0),a=0},i=(...e)=>n(f,r,...e),o=(e=p())=>{f=i(h([0]),e),r=i(),0!==e.length&&(f=i(h([1]),e),r=i())},l=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e{let n;for(s(),o(e);!(n=t(l()));)o();return s(),n}};const b={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.validateObject=function(e,t,n={}){const r=(t,n,r)=>{const f=b[n];if("function"!=typeof f)throw new Error(`Invalid validator "${n}", expected function`);const a=e[t];if(!(r&&void 0===a||f(a,e)))throw new Error(`Invalid param ${String(t)}=${a} (${typeof a}), expected ${n}`)};for(const[e,n]of Object.entries(t))r(e,n,!1);for(const[e,t]of Object.entries(n))r(e,t,!0);return e}},7292:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;const r=n(5646),f=n(8421),a=n(8421),s=n(6023),{bytesToNumberBE:i,hexToBytes:o}=f;t.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){const{Err:n}=t.DER;if(e.length<2||2!==e[0])throw new n("Invalid signature integer tag");const r=e[1],f=e.subarray(2,r+2);if(!r||f.length!==r)throw new n("Invalid signature integer: wrong length");if(128&f[0])throw new n("Invalid signature integer: negative");if(0===f[0]&&!(128&f[1]))throw new n("Invalid signature integer: unnecessary leading zero");return{d:i(f),l:e.subarray(r+2)}},toSig(e){const{Err:n}=t.DER,r="string"==typeof e?o(e):e;if(!(r instanceof Uint8Array))throw new Error("ui8a expected");let f=r.length;if(f<2||48!=r[0])throw new n("Invalid signature tag");if(r[1]!==f-2)throw new n("Invalid signature: incorrect length");const{d:a,l:s}=t.DER._parseInt(r.subarray(2)),{d:i,l}=t.DER._parseInt(s);if(l.length)throw new n("Invalid signature: left bytes after parsing");return{r:a,s:i}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,n=e=>{const t=e.toString(16);return 1&t.length?`0${t}`:t},r=t(n(e.s)),f=t(n(e.r)),a=r.length/2,s=f.length/2,i=n(a),o=n(s);return`30${n(s+a+4)}02${o}${f}02${i}${r}`}};const l=BigInt(0),c=BigInt(1),u=BigInt(2),d=BigInt(3),p=BigInt(4);function h(e){const t=function(e){const t=(0,s.validateBasic)(e);f.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a}=t;if(n){if(!r.eql(a,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:n}=t,i=t.toBytes||((e,t,r)=>{const a=t.toAffine();return f.concatBytes(Uint8Array.from([4]),n.toBytes(a.x),n.toBytes(a.y))}),o=t.fromBytes||(e=>{const t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function u(e){const{a:r,b:f}=t,a=n.sqr(e),s=n.mul(a,e);return n.add(n.add(s,n.mul(e,r)),f)}if(!n.eql(n.sqr(t.Gy),u(t.Gx)))throw new Error("bad generator point: equation left != right");function p(e){return"bigint"==typeof e&&ln.eql(e,n.ZERO);return f(t)&&f(r)?y.ZERO:new y(t,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(y.fromAffine)}static fromHex(e){const t=y.fromAffine(o((0,a.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return y.BASE.multiply(b(e))}_setWindowSize(e){this._WINDOW_SIZE=e,g.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:e,y:r}=this.toAffine();if(!n.isValid(e)||!n.isValid(r))throw new Error("bad point: x or y not FE");const f=n.sqr(r),a=u(e);if(!n.eql(f,a))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){m(e);const{px:t,py:r,pz:f}=this,{px:a,py:s,pz:i}=e,o=n.eql(n.mul(t,i),n.mul(a,f)),l=n.eql(n.mul(r,i),n.mul(s,f));return o&&l}negate(){return new y(this.px,n.neg(this.py),this.pz)}double(){const{a:e,b:r}=t,f=n.mul(r,d),{px:a,py:s,pz:i}=this;let o=n.ZERO,l=n.ZERO,c=n.ZERO,u=n.mul(a,a),p=n.mul(s,s),h=n.mul(i,i),b=n.mul(a,s);return b=n.add(b,b),c=n.mul(a,i),c=n.add(c,c),o=n.mul(e,c),l=n.mul(f,h),l=n.add(o,l),o=n.sub(p,l),l=n.add(p,l),l=n.mul(o,l),o=n.mul(b,o),c=n.mul(f,c),h=n.mul(e,h),b=n.sub(u,h),b=n.mul(e,b),b=n.add(b,c),c=n.add(u,u),u=n.add(c,u),u=n.add(u,h),u=n.mul(u,b),l=n.add(l,u),h=n.mul(s,i),h=n.add(h,h),u=n.mul(h,b),o=n.sub(o,u),c=n.mul(h,p),c=n.add(c,c),c=n.add(c,c),new y(o,l,c)}add(e){m(e);const{px:r,py:f,pz:a}=this,{px:s,py:i,pz:o}=e;let l=n.ZERO,c=n.ZERO,u=n.ZERO;const p=t.a,h=n.mul(t.b,d);let b=n.mul(r,s),g=n.mul(f,i),v=n.mul(a,o),w=n.add(r,f),A=n.add(s,i);w=n.mul(w,A),A=n.add(b,g),w=n.sub(w,A),A=n.add(r,a);let k=n.add(s,o);return A=n.mul(A,k),k=n.add(b,v),A=n.sub(A,k),k=n.add(f,a),l=n.add(i,o),k=n.mul(k,l),l=n.add(g,v),k=n.sub(k,l),u=n.mul(p,A),l=n.mul(h,v),u=n.add(l,u),l=n.sub(g,u),u=n.add(g,u),c=n.mul(l,u),g=n.add(b,b),g=n.add(g,b),v=n.mul(p,v),A=n.mul(h,A),g=n.add(g,v),v=n.sub(b,v),v=n.mul(p,v),A=n.add(A,v),b=n.mul(g,A),c=n.add(c,b),b=n.mul(k,A),l=n.mul(w,l),l=n.sub(l,b),b=n.mul(w,g),u=n.mul(k,u),u=n.add(u,b),new y(l,c,u)}subtract(e){return this.add(e.negate())}is0(){return this.equals(y.ZERO)}wNAF(e){return w.wNAFCached(this,g,e,(e=>{const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(y.fromAffine)}))}multiplyUnsafe(e){const r=y.ZERO;if(e===l)return r;if(h(e),e===c)return this;const{endo:f}=t;if(!f)return w.unsafeLadder(this,e);let{k1neg:a,k1:s,k2neg:i,k2:o}=f.splitScalar(e),u=r,d=r,p=this;for(;s>l||o>l;)s&c&&(u=u.add(p)),o&c&&(d=d.add(p)),p=p.double(),s>>=c,o>>=c;return a&&(u=u.negate()),i&&(d=d.negate()),d=new y(n.mul(d.px,f.beta),d.py,d.pz),u.add(d)}multiply(e){h(e);let r,f,a=e;const{endo:s}=t;if(s){const{k1neg:e,k1:t,k2neg:i,k2:o}=s.splitScalar(a);let{p:l,f:c}=this.wNAF(t),{p:u,f:d}=this.wNAF(o);l=w.constTimeNegate(e,l),u=w.constTimeNegate(i,u),u=new y(n.mul(u.px,s.beta),u.py,u.pz),r=l.add(u),f=c.add(d)}else{const{p:e,f:t}=this.wNAF(a);r=e,f=t}return y.normalizeZ([r,f])[0]}multiplyAndAddUnsafe(e,t,n){const r=y.BASE,f=(e,t)=>t!==l&&t!==c&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),a=f(this,t).add(f(e,n));return a.is0()?void 0:a}toAffine(e){const{px:t,py:r,pz:f}=this,a=this.is0();null==e&&(e=a?n.ONE:n.inv(f));const s=n.mul(t,e),i=n.mul(r,e),o=n.mul(f,e);if(a)return{x:n.ZERO,y:n.ZERO};if(!n.eql(o,n.ONE))throw new Error("invZ was invalid");return{x:s,y:i}}isTorsionFree(){const{h:e,isTorsionFree:n}=t;if(e===c)return!0;if(n)return n(y,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:n}=t;return e===c?this:n?n(y,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),i(y,this,e)}toHex(e=!0){return f.bytesToHex(this.toRawBytes(e))}}y.BASE=new y(t.Gx,t.Gy,n.ONE),y.ZERO=new y(n.ZERO,n.ONE,n.ZERO);const v=t.nBitLength,w=(0,s.wNAF)(y,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:y,normPrivateKeyToScalar:b,weierstrassEquation:u,isWithinCurveOrder:p}}function b(e,t){const n=e.ORDER;let r=l;for(let e=n-c;e%u===l;e/=u)r+=c;const f=r,a=u<{let r=g,a=e.pow(n,h),s=e.sqr(a);s=e.mul(s,n);let i=e.mul(t,s);i=e.pow(i,o),i=e.mul(i,a),a=e.mul(i,n),s=e.mul(i,t);let l=e.mul(s,a);i=e.pow(l,b);let d=e.eql(i,e.ONE);a=e.mul(s,m),i=e.mul(l,r),s=e.cmov(a,s,d),l=e.cmov(i,l,d);for(let t=f;t>c;t--){let n=t-u;n=u<{let a=e.sqr(f);const s=e.mul(t,f);a=e.mul(a,s);let i=e.pow(a,n);i=e.mul(i,s);const o=e.mul(i,r),l=e.mul(e.sqr(i),f),c=e.eql(l,t);return{isValid:c,value:e.cmov(o,i,c)}}}return y}t.weierstrassPoints=h,t.weierstrass=function(e){const n=function(e){const t=(0,s.validateBasic)(e);return f.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:i,n:o}=n,u=i.BYTES+1,d=2*i.BYTES+1;function p(e){return r.mod(e,o)}function b(e){return r.invert(e,o)}const{ProjectivePoint:g,normPrivateKeyToScalar:m,weierstrassEquation:y,isWithinCurveOrder:v}=h({...n,toBytes(e,t,n){const r=t.toAffine(),a=i.toBytes(r.x),s=f.concatBytes;return n?s(Uint8Array.from([t.hasEvenY()?2:3]),a):s(Uint8Array.from([4]),a,i.toBytes(r.y))},fromBytes(e){const t=e.length,n=e[0],r=e.subarray(1);if(t!==u||2!==n&&3!==n){if(t===d&&4===n)return{x:i.fromBytes(r.subarray(0,i.BYTES)),y:i.fromBytes(r.subarray(i.BYTES,2*i.BYTES))};throw new Error(`Point of length ${t} was invalid. Expected ${u} compressed bytes or ${d} uncompressed bytes`)}{const e=f.bytesToNumberBE(r);if(!(l<(a=e)&&af.bytesToHex(f.numberToBytesBE(e,n.nByteLength));function A(e){return e>o>>c}const k=(e,t,n)=>f.bytesToNumberBE(e.slice(t,n));class P{constructor(e,t,n){this.r=e,this.s=t,this.recovery=n,this.assertValidity()}static fromCompact(e){const t=n.nByteLength;return e=(0,a.ensureBytes)("compactSignature",e,2*t),new P(k(e,0,t),k(e,t,2*t))}static fromDER(e){const{r:n,s:r}=t.DER.toSig((0,a.ensureBytes)("DER",e));return new P(n,r)}assertValidity(){if(!v(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new P(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:r,recovery:f}=this,s=x((0,a.ensureBytes)("msgHash",e));if(null==f||![0,1,2,3].includes(f))throw new Error("recovery id invalid");const o=2===f||3===f?t+n.n:t;if(o>=i.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=1&f?"03":"02",c=g.fromHex(l+w(o)),u=b(o),d=p(-s*u),h=p(r*u),m=g.BASE.multiplyAndAddUnsafe(c,d,h);if(!m)throw new Error("point at infinify");return m.assertValidity(),m}hasHighS(){return A(this.s)}normalizeS(){return this.hasHighS()?new P(this.r,p(-this.s),this.recovery):this}toDERRawBytes(){return f.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return f.hexToBytes(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}const E={isValidPrivateKey(e){try{return m(e),!0}catch(e){return!1}},normPrivateKeyToScalar:m,randomPrivateKey:()=>{const e=r.getMinHashLength(n.n);return r.mapHashToField(n.randomBytes(e),n.n)},precompute:(e=8,t=g.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function S(e){const t=e instanceof Uint8Array,n="string"==typeof e,r=(t||n)&&e.length;return t?r===u||r===d:n?r===2*u||r===2*d:e instanceof g}const O=n.bits2int||function(e){const t=f.bytesToNumberBE(e),r=8*e.length-n.nBitLength;return r>0?t>>BigInt(r):t},x=n.bits2int_modN||function(e){return p(O(e))},T=f.bitMask(n.nBitLength);function C(e){if("bigint"!=typeof e)throw new Error("bigint expected");if(!(l<=e&&ee in r)))throw new Error("sign() legacy options not supported");const{hash:s,randomBytes:o}=n;let{lowS:u,prehash:d,extraEntropy:h}=r;null==u&&(u=!0),e=(0,a.ensureBytes)("msgHash",e),d&&(e=(0,a.ensureBytes)("prehashed msgHash",s(e)));const y=x(e),w=m(t),k=[C(w),C(y)];if(null!=h){const e=!0===h?o(i.BYTES):h;k.push((0,a.ensureBytes)("extraEntropy",e))}const E=f.concatBytes(...k),S=y;return{seed:E,k2sig:function(e){const t=O(e);if(!v(t))return;const n=b(t),r=g.BASE.multiply(t).toAffine(),f=p(r.x);if(f===l)return;const a=p(n*p(S+f*w));if(a===l)return;let s=(r.x===f?0:2)|Number(r.y&c),i=a;return u&&A(a)&&(i=function(e){return A(e)?p(-e):e}(a),s^=1),new P(f,i,s)}}}(e,t,r),u=n;return f.createHmacDrbg(u.hash.outputLen,u.nByteLength,u.hmac)(s,o)},verify:function(e,r,f,s=R){const i=e;if(r=(0,a.ensureBytes)("msgHash",r),f=(0,a.ensureBytes)("publicKey",f),"strict"in s)throw new Error("options.strict was renamed to lowS");const{lowS:o,prehash:l}=s;let c,u;try{if("string"==typeof i||i instanceof Uint8Array)try{c=P.fromDER(i)}catch(e){if(!(e instanceof t.DER.Err))throw e;c=P.fromCompact(i)}else{if("object"!=typeof i||"bigint"!=typeof i.r||"bigint"!=typeof i.s)throw new Error("PARSE");{const{r:e,s:t}=i;c=new P(e,t)}}u=g.fromHex(f)}catch(e){if("PARSE"===e.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(o&&c.hasHighS())return!1;l&&(r=n.hash(r));const{r:d,s:h}=c,m=x(r),y=b(h),v=p(m*y),w=p(d*y),A=g.BASE.multiplyAndAddUnsafe(u,v,w)?.toAffine();return!!A&&p(A.x)===d},ProjectivePoint:g,Signature:P,utils:E}},t.SWUFpSqrtRatio=b,t.mapToCurveSimpleSWU=function(e,t){if(r.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const n=b(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return r=>{let f,a,s,i,o,l,c,u;f=e.sqr(r),f=e.mul(f,t.Z),a=e.sqr(f),a=e.add(a,f),s=e.add(a,e.ONE),s=e.mul(s,t.B),i=e.cmov(t.Z,e.neg(a),!e.eql(a,e.ZERO)),i=e.mul(i,t.A),a=e.sqr(s),l=e.sqr(i),o=e.mul(l,t.A),a=e.add(a,o),a=e.mul(a,s),l=e.mul(l,i),o=e.mul(l,t.B),a=e.add(a,o),c=e.mul(f,s);const{isValid:d,value:p}=n(a,l);u=e.mul(f,r),u=e.mul(u,p),c=e.cmov(c,s,d),u=e.cmov(u,p,d);const h=e.isOdd(r)===e.isOdd(u);return u=e.cmov(e.neg(u),u,h),c=e.div(c,i),{x:c,y:u}}}},985:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;const r=n(6978),f=n(4224),a=n(5646),s=n(7292),i=n(8421),o=n(2124),l=n(7749),c=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),u=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),d=BigInt(1),p=BigInt(2),h=(e,t)=>(e+t/p)/t;function b(e){const t=c,n=BigInt(3),r=BigInt(6),f=BigInt(11),s=BigInt(22),i=BigInt(23),o=BigInt(44),l=BigInt(88),u=e*e*e%t,d=u*u*e%t,h=(0,a.pow2)(d,n,t)*d%t,b=(0,a.pow2)(h,n,t)*d%t,m=(0,a.pow2)(b,p,t)*u%t,y=(0,a.pow2)(m,f,t)*m%t,v=(0,a.pow2)(y,s,t)*y%t,w=(0,a.pow2)(v,o,t)*v%t,A=(0,a.pow2)(w,l,t)*w%t,k=(0,a.pow2)(A,o,t)*v%t,P=(0,a.pow2)(k,n,t)*d%t,E=(0,a.pow2)(P,i,t)*y%t,S=(0,a.pow2)(E,r,t)*u%t,O=(0,a.pow2)(S,p,t);if(!g.eql(g.sqr(O),e))throw new Error("Cannot find square root");return O}const g=(0,a.Field)(c,void 0,void 0,{sqrt:b});t.secp256k1=(0,l.createCurve)({a:BigInt(0),b:BigInt(7),Fp:g,n:u,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=u,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-d*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),f=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=n,i=BigInt("0x100000000000000000000000000000000"),o=h(s*e,t),l=h(-r*e,t);let c=(0,a.mod)(e-o*n-l*f,t),p=(0,a.mod)(-o*r-l*s,t);const b=c>i,g=p>i;if(b&&(c=t-c),g&&(p=t-p),c>i||p>i)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:b,k1:c,k2neg:g,k2:p}}}},r.sha256);const m=BigInt(0),y=e=>"bigint"==typeof e&&me.charCodeAt(0))));n=(0,i.concatBytes)(t,t),v[e]=n}return(0,r.sha256)((0,i.concatBytes)(n,...t))}const A=e=>e.toRawBytes(!0).slice(1),k=e=>(0,i.numberToBytesBE)(e,32),P=e=>(0,a.mod)(e,c),E=e=>(0,a.mod)(e,u),S=t.secp256k1.ProjectivePoint;function O(e){let n=t.secp256k1.utils.normPrivateKeyToScalar(e),r=S.fromPrivateKey(n);return{scalar:r.hasEvenY()?n:E(-n),bytes:A(r)}}function x(e){if(!y(e))throw new Error("bad x: need 0 < x < p");const t=P(e*e);let n=b(P(t*e+BigInt(7)));n%p!==m&&(n=P(-n));const r=new S(e,n,d);return r.assertValidity(),r}function T(...e){return E((0,i.bytesToNumberBE)(w("BIP0340/challenge",...e)))}function C(e,t,n){const r=(0,i.ensureBytes)("signature",e,64),f=(0,i.ensureBytes)("message",t),a=(0,i.ensureBytes)("publicKey",n,32);try{const e=x((0,i.bytesToNumberBE)(a)),t=(0,i.bytesToNumberBE)(r.subarray(0,32));if(!y(t))return!1;const n=(0,i.bytesToNumberBE)(r.subarray(32,64));if(!("bigint"==typeof(c=n)&&m(0,o.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((e=>e.map((e=>BigInt(e)))))))(),R=(()=>(0,s.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}))(),B=(()=>(0,o.createHasher)(t.secp256k1.ProjectivePoint,(e=>{const{x:t,y:n}=R(g.create(e[0]));return N(t,n)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:r.sha256}))();t.hashToCurve=B.hashToCurve,t.encodeToCurve=B.encodeToCurve},7302:(e,t)=>{function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function r(e){if("boolean"!=typeof e)throw new Error(`Expected boolean, not ${e}`)}function f(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function a(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function s(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function i(e,t){f(e);const n=t.outputLen;if(e.length{Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const r=n(7302),f=n(4224);class a extends f.Hash{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,f.createView)(this.buffer)}update(e){(0,r.exists)(this);const{view:t,buffer:n,blockLen:a}=this,s=(e=(0,f.toBytes)(e)).length;for(let r=0;ra-i&&(this.process(n,0),i=0);for(let e=i;e>f&a),i=Number(n&a),o=r?4:0,l=r?0:4;e.setUint32(t+o,s,r),e.setUint32(t+l,i,r)}(n,a-8,BigInt(8*this.length),s),this.process(n,0);const o=(0,f.createView)(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=l/4,u=this.get();if(c>u.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;const n=BigInt(2**32-1),r=BigInt(32);function f(e,t=!1){return t?{h:Number(e&n),l:Number(e>>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}function a(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let a=0;aBigInt(e>>>0)<>>0);t.toBig=s;const i=(e,t,n)=>e>>>n;t.shrSH=i;const o=(e,t,n)=>e<<32-n|t>>>n;t.shrSL=o;const l=(e,t,n)=>e>>>n|t<<32-n;t.rotrSH=l;const c=(e,t,n)=>e<<32-n|t>>>n;t.rotrSL=c;const u=(e,t,n)=>e<<64-n|t>>>n-32;t.rotrBH=u;const d=(e,t,n)=>e>>>n-32|t<<64-n;t.rotrBL=d;const p=(e,t)=>t;t.rotr32H=p;const h=(e,t)=>e;t.rotr32L=h;const b=(e,t,n)=>e<>>32-n;t.rotlSH=b;const g=(e,t,n)=>t<>>32-n;t.rotlSL=g;const m=(e,t,n)=>t<>>64-n;t.rotlBH=m;const y=(e,t,n)=>e<>>64-n;function v(e,t,n,r){const f=(t>>>0)+(r>>>0);return{h:e+n+(f/2**32|0)|0,l:0|f}}t.rotlBL=y,t.add=v;const w=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);t.add3L=w;const A=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;t.add3H=A;const k=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);t.add4L=k;const P=(e,t,n,r,f)=>t+n+r+f+(e/2**32|0)|0;t.add4H=P;const E=(e,t,n,r,f)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(f>>>0);t.add5L=E;const S=(e,t,n,r,f,a)=>t+n+r+f+a+(e/2**32|0)|0;t.add5H=S;const O={fromBig:f,split:a,toBig:s,shrSH:i,shrSL:o,rotrSH:l,rotrSL:c,rotrBH:u,rotrBL:d,rotr32H:p,rotr32L:h,rotlSH:b,rotlSL:g,rotlBH:m,rotlBL:y,add:v,add3L:w,add3H:A,add4L:k,add4H:P,add5H:S,add5L:E};t.default=O},1760:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},4542:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const r=n(7302),f=n(4224);class a extends f.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,r.hash)(e);const n=(0,f.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,s=new Uint8Array(a);s.set(n.length>a?e.create().update(n).digest():n);for(let e=0;enew a(e,t).update(n).digest(),t.hmac.create=(e,t)=>new a(e,t)},9e3:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const r=n(7302),f=n(4542),a=n(4224);function s(e,t,n,s){(0,r.hash)(e);const i=(0,a.checkOpts)({dkLen:32,asyncTick:10},s),{c:o,dkLen:l,asyncTick:c}=i;if((0,r.number)(o),(0,r.number)(l),(0,r.number)(c),o<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const u=(0,a.toBytes)(t),d=(0,a.toBytes)(n),p=new Uint8Array(l),h=f.hmac.create(e,u),b=h._cloneInto().update(d);return{c:o,dkLen:l,asyncTick:c,DK:p,PRF:h,PRFSalt:b}}function i(e,t,n,r,f){return e.destroy(),t.destroy(),r&&r.destroy(),f.fill(0),n}t.pbkdf2=function(e,t,n,r){const{c:f,dkLen:o,DK:l,PRF:c,PRFSalt:u}=s(e,t,n,r);let d;const p=new Uint8Array(4),h=(0,a.createView)(p),b=new Uint8Array(c.outputLen);for(let e=1,t=0;t{u._cloneInto(p).update(g).digestInto(g);for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;const r=n(5184),f=n(4224),a=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),s=Uint8Array.from({length:16},((e,t)=>t));let i=[s],o=[s.map((e=>(9*e+5)%16))];for(let e=0;e<4;e++)for(let t of[i,o])t.push(t[e].map((e=>a[e])));const l=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map((e=>new Uint8Array(e))),c=i.map(((e,t)=>e.map((e=>l[t][e])))),u=o.map(((e,t)=>e.map((e=>l[t][e])))),d=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),p=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),h=(e,t)=>e<>>32-t;function b(e,t,n,r){return 0===e?t^n^r:1===e?t&n|~t&r:2===e?(t|~n)^r:3===e?t&r|n&~r:t^(n|~r)}const g=new Uint32Array(16);class m extends r.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:n,h3:r,h4:f}=this;return[e,t,n,r,f]}set(e,t,n,r,f){this.h0=0|e,this.h1=0|t,this.h2=0|n,this.h3=0|r,this.h4=0|f}process(e,t){for(let n=0;n<16;n++,t+=4)g[n]=e.getUint32(t,!0);let n=0|this.h0,r=n,f=0|this.h1,a=f,s=0|this.h2,l=s,m=0|this.h3,y=m,v=0|this.h4,w=v;for(let e=0;e<5;e++){const t=4-e,A=d[e],k=p[e],P=i[e],E=o[e],S=c[e],O=u[e];for(let t=0;t<16;t++){const r=h(n+b(e,f,s,m)+g[P[t]]+A,S[t])+v|0;n=v,v=m,m=0|h(s,10),s=f,f=r}for(let e=0;e<16;e++){const n=h(r+b(t,a,l,y)+g[E[e]]+k,O[e])+w|0;r=w,w=y,y=0|h(l,10),l=a,a=n}}this.set(this.h1+s+y|0,this.h2+m+w|0,this.h3+v+r|0,this.h4+n+a|0,this.h0+f+l|0)}roundClean(){g.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}t.RIPEMD160=m,t.ripemd160=(0,f.wrapConstructor)((()=>new m))},9462:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.scryptAsync=t.scrypt=void 0;const r=n(7302),f=n(6978),a=n(9e3),s=n(4224),i=(e,t)=>e<>>32-t;function o(e,t,n,r,f,a){let s=e[t++]^n[r++],o=e[t++]^n[r++],l=e[t++]^n[r++],c=e[t++]^n[r++],u=e[t++]^n[r++],d=e[t++]^n[r++],p=e[t++]^n[r++],h=e[t++]^n[r++],b=e[t++]^n[r++],g=e[t++]^n[r++],m=e[t++]^n[r++],y=e[t++]^n[r++],v=e[t++]^n[r++],w=e[t++]^n[r++],A=e[t++]^n[r++],k=e[t++]^n[r++],P=s,E=o,S=l,O=c,x=u,T=d,C=p,N=h,R=b,B=g,I=m,_=y,F=v,L=w,j=A,U=k;for(let e=0;e<8;e+=2)x^=i(P+F|0,7),R^=i(x+P|0,9),F^=i(R+x|0,13),P^=i(F+R|0,18),B^=i(T+E|0,7),L^=i(B+T|0,9),E^=i(L+B|0,13),T^=i(E+L|0,18),j^=i(I+C|0,7),S^=i(j+I|0,9),C^=i(S+j|0,13),I^=i(C+S|0,18),O^=i(U+_|0,7),N^=i(O+U|0,9),_^=i(N+O|0,13),U^=i(_+N|0,18),E^=i(P+O|0,7),S^=i(E+P|0,9),O^=i(S+E|0,13),P^=i(O+S|0,18),C^=i(T+x|0,7),N^=i(C+T|0,9),x^=i(N+C|0,13),T^=i(x+N|0,18),_^=i(I+B|0,7),R^=i(_+I|0,9),B^=i(R+_|0,13),I^=i(B+R|0,18),F^=i(U+j|0,7),L^=i(F+U|0,9),j^=i(L+F|0,13),U^=i(j+L|0,18);f[a++]=s+P|0,f[a++]=o+E|0,f[a++]=l+S|0,f[a++]=c+O|0,f[a++]=u+x|0,f[a++]=d+T|0,f[a++]=p+C|0,f[a++]=h+N|0,f[a++]=b+R|0,f[a++]=g+B|0,f[a++]=m+I|0,f[a++]=y+_|0,f[a++]=v+F|0,f[a++]=w+L|0,f[a++]=A+j|0,f[a++]=k+U|0}function l(e,t,n,r,f){let a=r+0,s=r+16*f;for(let r=0;r<16;r++)n[s+r]=e[t+16*(2*f-1)+r];for(let r=0;r0&&(s+=16),o(n,a,e,t+=16,n,s)}function c(e,t,n){const i=(0,s.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:o,r:l,p:c,dkLen:u,asyncTick:d,maxmem:p,onProgress:h}=i;if((0,r.number)(o),(0,r.number)(l),(0,r.number)(c),(0,r.number)(u),(0,r.number)(d),(0,r.number)(p),void 0!==h&&"function"!=typeof h)throw new Error("progressCb should be function");const b=128*l,g=b/4;if(o<=1||o&o-1||o>=2**(b/8)||o>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(c<0||c>137438953440/b)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(u<0||u>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const m=b*(o+c);if(m>p)throw new Error(`Scrypt: parameters too large, ${m} (128 * r * (N + p)) > ${p} (maxmem)`);const y=(0,a.pbkdf2)(f.sha256,e,t,{c:1,dkLen:b*c}),v=(0,s.u32)(y),w=(0,s.u32)(new Uint8Array(b*o)),A=(0,s.u32)(new Uint8Array(b));let k=()=>{};if(h){const e=2*o*c,t=Math.max(Math.floor(e/1e4),1);let n=0;k=()=>{n++,!h||n%t&&n!==e||h(n/e)}}return{N:o,r:l,p:c,dkLen:u,blockSize32:g,V:w,B32:v,B:y,tmp:A,blockMixCb:k,asyncTick:d}}function u(e,t,n,r,s){const i=(0,a.pbkdf2)(f.sha256,e,n,{c:1,dkLen:t});return n.fill(0),r.fill(0),s.fill(0),i}t.scrypt=function(e,t,n){const{N:r,r:f,p:a,dkLen:s,blockSize32:i,V:o,B32:d,B:p,tmp:h,blockMixCb:b}=c(e,t,n);for(let e=0;e{l(d,n,d,n+=o,f),g()})),l(d,(r-1)*o,p,t,f),g(),await(0,s.asyncLoop)(r,m,(()=>{const e=p[t+o-16]%r;for(let n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const r=n(5184),f=n(4224),a=(e,t,n)=>e&t^e&n^t&n,s=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]),i=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),o=new Uint32Array(64);class l extends r.SHA2{constructor(){super(64,32,8,!1),this.A=0|i[0],this.B=0|i[1],this.C=0|i[2],this.D=0|i[3],this.E=0|i[4],this.F=0|i[5],this.G=0|i[6],this.H=0|i[7]}get(){const{A:e,B:t,C:n,D:r,E:f,F:a,G:s,H:i}=this;return[e,t,n,r,f,a,s,i]}set(e,t,n,r,f,a,s,i){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|f,this.F=0|a,this.G=0|s,this.H=0|i}process(e,t){for(let n=0;n<16;n++,t+=4)o[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=o[e-15],n=o[e-2],r=(0,f.rotr)(t,7)^(0,f.rotr)(t,18)^t>>>3,a=(0,f.rotr)(n,17)^(0,f.rotr)(n,19)^n>>>10;o[e]=a+o[e-7]+r+o[e-16]|0}let{A:n,B:r,C:i,D:l,E:c,F:u,G:d,H:p}=this;for(let e=0;e<64;e++){const t=p+((0,f.rotr)(c,6)^(0,f.rotr)(c,11)^(0,f.rotr)(c,25))+((h=c)&u^~h&d)+s[e]+o[e]|0,b=((0,f.rotr)(n,2)^(0,f.rotr)(n,13)^(0,f.rotr)(n,22))+a(n,r,i)|0;p=d,d=u,u=c,c=l+t|0,l=i,i=r,r=n,n=t+b|0}var h;n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,l=l+this.D|0,c=c+this.E|0,u=u+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(n,r,i,l,c,u,d,p)}roundClean(){o.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class c extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,f.wrapConstructor)((()=>new l)),t.sha224=(0,f.wrapConstructor)((()=>new c))},6534:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const r=n(7302),f=n(9975),a=n(4224),[s,i,o]=[[],[],[]],l=BigInt(0),c=BigInt(1),u=BigInt(2),d=BigInt(7),p=BigInt(256),h=BigInt(113);for(let e=0,t=c,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],s.push(2*(5*r+n)),i.push((e+1)*(e+2)/2%64);let f=l;for(let e=0;e<7;e++)t=(t<>d)*h)%p,t&u&&(f^=c<<(c<n>32?(0,f.rotlBH)(e,t,n):(0,f.rotlSH)(e,t,n),y=(e,t,n)=>n>32?(0,f.rotlBL)(e,t,n):(0,f.rotlSL)(e,t,n);function v(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const r=(t+8)%10,f=(t+2)%10,a=n[f],s=n[f+1],i=m(a,s,1)^n[r],o=y(a,s,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=i,e[t+n+1]^=o}let t=e[2],f=e[3];for(let n=0;n<24;n++){const r=i[n],a=m(t,f,r),o=y(t,f,r),l=s[n];t=e[l],f=e[l+1],e[l]=a,e[l+1]=o}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=b[r],e[1]^=g[r]}n.fill(0)}t.keccakP=v;class w extends a.Hash{constructor(e,t,n,f=!1,s=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=f,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,r.number)(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,a.u32)(this.state)}keccak(){v(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,r.exists)(this);const{blockLen:t,state:n}=this,f=(e=(0,a.toBytes)(e)).length;for(let r=0;r=n&&this.keccak();const a=Math.min(n-this.posOut,f-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,r.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,r.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:f,enableXOF:a}=this;return e||(e=new w(t,n,r,a,f)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=f,e.suffix=n,e.outputLen=r,e.enableXOF=a,e.destroyed=this.destroyed,e}}t.Keccak=w;const A=(e,t,n)=>(0,a.wrapConstructor)((()=>new w(t,e,n)));t.sha3_224=A(6,144,28),t.sha3_256=A(6,136,32),t.sha3_384=A(6,104,48),t.sha3_512=A(6,72,64),t.keccak_224=A(1,144,28),t.keccak_256=A(1,136,32),t.keccak_384=A(1,104,48),t.keccak_512=A(1,72,64);const k=(e,t,n)=>(0,a.wrapXOFConstructorWithOpts)(((r={})=>new w(t,e,void 0===r.dkLen?n:r.dkLen,!0)));t.shake128=k(31,168,16),t.shake256=k(31,136,32)},9483:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const r=n(5184),f=n(9975),a=n(4224),[s,i]=(()=>f.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))))(),o=new Uint32Array(80),l=new Uint32Array(80);class c extends r.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:f,Cl:a,Dh:s,Dl:i,Eh:o,El:l,Fh:c,Fl:u,Gh:d,Gl:p,Hh:h,Hl:b}=this;return[e,t,n,r,f,a,s,i,o,l,c,u,d,p,h,b]}set(e,t,n,r,f,a,s,i,o,l,c,u,d,p,h,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|f,this.Cl=0|a,this.Dh=0|s,this.Dl=0|i,this.Eh=0|o,this.El=0|l,this.Fh=0|c,this.Fl=0|u,this.Gh=0|d,this.Gl=0|p,this.Hh=0|h,this.Hl=0|b}process(e,t){for(let n=0;n<16;n++,t+=4)o[n]=e.getUint32(t),l[n]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|o[e-15],n=0|l[e-15],r=f.default.rotrSH(t,n,1)^f.default.rotrSH(t,n,8)^f.default.shrSH(t,n,7),a=f.default.rotrSL(t,n,1)^f.default.rotrSL(t,n,8)^f.default.shrSL(t,n,7),s=0|o[e-2],i=0|l[e-2],c=f.default.rotrSH(s,i,19)^f.default.rotrBH(s,i,61)^f.default.shrSH(s,i,6),u=f.default.rotrSL(s,i,19)^f.default.rotrBL(s,i,61)^f.default.shrSL(s,i,6),d=f.default.add4L(a,u,l[e-7],l[e-16]),p=f.default.add4H(d,r,c,o[e-7],o[e-16]);o[e]=0|p,l[e]=0|d}let{Ah:n,Al:r,Bh:a,Bl:c,Ch:u,Cl:d,Dh:p,Dl:h,Eh:b,El:g,Fh:m,Fl:y,Gh:v,Gl:w,Hh:A,Hl:k}=this;for(let e=0;e<80;e++){const t=f.default.rotrSH(b,g,14)^f.default.rotrSH(b,g,18)^f.default.rotrBH(b,g,41),P=f.default.rotrSL(b,g,14)^f.default.rotrSL(b,g,18)^f.default.rotrBL(b,g,41),E=b&m^~b&v,S=g&y^~g&w,O=f.default.add5L(k,P,S,i[e],l[e]),x=f.default.add5H(O,A,t,E,s[e],o[e]),T=0|O,C=f.default.rotrSH(n,r,28)^f.default.rotrBH(n,r,34)^f.default.rotrBH(n,r,39),N=f.default.rotrSL(n,r,28)^f.default.rotrBL(n,r,34)^f.default.rotrBL(n,r,39),R=n&a^n&u^a&u,B=r&c^r&d^c&d;A=0|v,k=0|w,v=0|m,w=0|y,m=0|b,y=0|g,({h:b,l:g}=f.default.add(0|p,0|h,0|x,0|T)),p=0|u,h=0|d,u=0|a,d=0|c,a=0|n,c=0|r;const I=f.default.add3L(T,N,B);n=f.default.add3H(I,x,C,R),r=0|I}({h:n,l:r}=f.default.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:a,l:c}=f.default.add(0|this.Bh,0|this.Bl,0|a,0|c)),({h:u,l:d}=f.default.add(0|this.Ch,0|this.Cl,0|u,0|d)),({h:p,l:h}=f.default.add(0|this.Dh,0|this.Dl,0|p,0|h)),({h:b,l:g}=f.default.add(0|this.Eh,0|this.El,0|b,0|g)),({h:m,l:y}=f.default.add(0|this.Fh,0|this.Fl,0|m,0|y)),({h:v,l:w}=f.default.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:A,l:k}=f.default.add(0|this.Hh,0|this.Hl,0|A,0|k)),this.set(n,r,a,c,u,d,p,h,b,g,m,y,v,w,A,k)}roundClean(){o.fill(0),l.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=c;class u extends c{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class d extends c{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class p extends c{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.sha512=(0,a.wrapConstructor)((()=>new c)),t.sha512_224=(0,a.wrapConstructor)((()=>new u)),t.sha512_256=(0,a.wrapConstructor)((()=>new d)),t.sha384=(0,a.wrapConstructor)((()=>new p))},4224:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const r=n(1760),f=e=>e instanceof Uint8Array;if(t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const a=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function i(e){if("string"==typeof e&&(e=s(e)),!f(e))throw new Error("expected Uint8Array, got "+typeof e);return e}t.bytesToHex=function(e){if(!f(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n{},t.asyncLoop=async function(e,n,r){let f=Date.now();for(let a=0;a=0&&ee+t.length),0));let n=0;return e.forEach((e=>{if(!f(e))throw new Error("Uint8Array expected");t.set(e,n),n+=e.length})),t},t.Hash=class{clone(){return this._cloneInto()}};const o={}.toString;t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==o.call(t))throw new Error("Options should be object or undefined");return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(i(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(i(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(i(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},1247:(e,t,n)=>{var r=n(9982),f=n(6540),a=n(961);function s(e){var t="https://react.dev/errors/"+e;if(1)":-1--f||o[r]!==l[f]){var c="\n"+o[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}}while(1<=r&&0<=f);break}}}finally{I=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?B(n):""}function F(e){switch(e.tag){case 26:case 27:case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 15:return _(e.type,!1);case 11:return _(e.type.render,!1);case 1:return _(e.type,!0);default:return""}}function L(e){try{var t="";do{t+=F(e),e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function j(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function U(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function M(e){if(j(e)!==e)throw Error(s(188))}function D(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=D(e)))return t;e=e.sibling}return null}var z=Array.isArray,H=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},V=[],K=-1;function q(e){return{current:e}}function Q(e){0>K||(e.current=V[K],V[K]=null,K--)}function J(e,t){K++,V[K]=e.current,e.current=t}var W=q(null),$=q(null),Z=q(null),Y=q(null);function X(e,t){switch(J(Z,t),J($,e),J(W,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Zc(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=Yc(e=Zc(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(W),J(W,t)}function ee(){Q(W),Q($),Q(Z)}function te(e){null!==e.memoizedState&&J(Y,e);var t=W.current,n=Yc(t,e.type);t!==n&&(J($,e),J(W,n))}function ne(e){$.current===e&&(Q(W),Q($)),Y.current===e&&(Q(Y),ju._currentValue=G)}var re=Object.prototype.hasOwnProperty,fe=r.unstable_scheduleCallback,ae=r.unstable_cancelCallback,se=r.unstable_shouldYield,ie=r.unstable_requestPaint,oe=r.unstable_now,le=r.unstable_getCurrentPriorityLevel,ce=r.unstable_ImmediatePriority,ue=r.unstable_UserBlockingPriority,de=r.unstable_NormalPriority,pe=r.unstable_LowPriority,he=r.unstable_IdlePriority,be=r.log,ge=r.unstable_setDisableYieldValue,me=null,ye=null;function ve(e){if("function"==typeof be&&ge(e),ye&&"function"==typeof ye.setStrictMode)try{ye.setStrictMode(me,e)}catch(e){}}var we=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(Ae(e)/ke|0)|0},Ae=Math.log,ke=Math.LN2,Pe=128,Ee=4194304;function Se(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Oe(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,f=e.suspendedLanes,a=e.pingedLanes,s=e.warmLanes;e=0!==e.finishedLanes;var i=134217727&n;return 0!==i?0!=(n=i&~f)?r=Se(n):0!=(a&=i)?r=Se(a):e||0!=(s=i&~s)&&(r=Se(s)):0!=(i=n&~f)?r=Se(i):0!==a?r=Se(a):e||0!=(s=n&~s)&&(r=Se(s)),0===r?0:0===t||t===r||t&f||!((f=r&-r)>=(s=t&-t)||32===f&&4194176&s)?r:t}function xe(e,t){return!(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Te(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ce(){var e=Pe;return!(4194176&(Pe<<=1))&&(Pe=128),e}function Ne(){var e=Ee;return!(62914560&(Ee<<=1))&&(Ee=4194304),e}function Re(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Be(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ie(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-we(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function _e(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-we(n),f=1<=kn),Sn=String.fromCharCode(32),On=!1;function xn(e,t){switch(e){case"keyup":return-1!==wn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Cn=!1,Nn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Rn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Nn[e.type]:"textarea"===t}function Bn(e,t,n,r){Bt?It?It.push(r):It=[r]:Bt=r,0<(t=jc(t,"onChange")).length&&(n=new Yt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var In=null,_n=null;function Fn(e){Cc(e,0)}function Ln(e){if(dt(We(e)))return e}function jn(e,t){if("change"===e)return t}var Un=!1;if(nt){var Mn;if(nt){var Dn="oninput"in document;if(!Dn){var zn=document.createElement("div");zn.setAttribute("oninput","return;"),Dn="function"==typeof zn.oninput}Mn=Dn}else Mn=!1;Un=Mn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=$n(r)}}function Yn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Yn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Xn(e){for(var t=pt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=pt((e=t.contentWindow).document)}return t}function er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function tr(e,t){var n=Xn(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Yn(t.ownerDocument.documentElement,t)){if(null!==r&&er(t))if(e=r.start,void 0===(n=r.end)&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if((n=(e=t.ownerDocument||document)&&e.defaultView||window).getSelection){n=n.getSelection();var f=t.textContent.length,a=Math.min(r.start,f);r=void 0===r.end?a:Math.min(r.end,f),!n.extend&&a>r&&(f=r,r=a,a=f),f=Zn(t,a);var s=Zn(t,r);f&&s&&(1!==n.rangeCount||n.anchorNode!==f.node||n.anchorOffset!==f.offset||n.focusNode!==s.node||n.focusOffset!==s.offset)&&((e=e.createRange()).setStart(f.node,f.offset),n.removeAllRanges(),a>r?(n.addRange(e),n.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),n.addRange(e)))}for(e=[],n=t;n=n.parentNode;)1===n.nodeType&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for("function"==typeof t.focus&&t.focus(),t=0;t=document.documentMode,rr=null,fr=null,ar=null,sr=!1;function ir(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sr||null==rr||rr!==pt(r)||(r="selectionStart"in(r=rr)&&er(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ar&&Wn(ar,r)||(ar=r,0<(r=jc(fr,"onSelect")).length&&(t=new Yt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rr)))}function or(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var lr={animationend:or("Animation","AnimationEnd"),animationiteration:or("Animation","AnimationIteration"),animationstart:or("Animation","AnimationStart"),transitionrun:or("Transition","TransitionRun"),transitionstart:or("Transition","TransitionStart"),transitioncancel:or("Transition","TransitionCancel"),transitionend:or("Transition","TransitionEnd")},cr={},ur={};function dr(e){if(cr[e])return cr[e];if(!lr[e])return e;var t,n=lr[e];for(t in n)if(n.hasOwnProperty(t)&&t in ur)return cr[e]=n[t];return e}nt&&(ur=document.createElement("div").style,"AnimationEvent"in window||(delete lr.animationend.animation,delete lr.animationiteration.animation,delete lr.animationstart.animation),"TransitionEvent"in window||delete lr.transitionend.transition);var pr=dr("animationend"),hr=dr("animationiteration"),br=dr("animationstart"),gr=dr("transitionrun"),mr=dr("transitionstart"),yr=dr("transitioncancel"),vr=dr("transitionend"),wr=new Map,Ar="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function kr(e,t){wr.set(e,t),et(t,[e])}var Pr=[],Er=0,Sr=0;function Or(){for(var e=Er,t=Sr=Er=0;t>=s,f-=s,Hr=1<<32-we(t)+f|n<d?(p=u,u=null):p=u.sibling;var h=m(f,u,i[d],o);if(null===h){null===u&&(u=p);break}e&&u&&null===h.alternate&&t(f,u),s=a(h,s,d),null===c?l=h:c.sibling=h,c=h,u=p}if(d===i.length)return n(f,u),$r&&Vr(f,d),l;if(null===u){for(;dp?(h=d,d=null):h=d.sibling;var v=m(f,d,g.value,l);if(null===v){null===d&&(d=h);break}e&&d&&null===v.alternate&&t(f,d),i=a(v,i,p),null===u?c=v:u.sibling=v,u=v,d=h}if(g.done)return n(f,d),$r&&Vr(f,p),c;if(null===d){for(;!g.done;p++,g=o.next())null!==(g=b(f,g.value,l))&&(i=a(g,i,p),null===u?c=g:u.sibling=g,u=g);return $r&&Vr(f,p),c}for(d=r(d);!g.done;p++,g=o.next())null!==(g=y(d,f,p,g.value,l))&&(e&&null!==g.alternate&&d.delete(null===g.key?p:g.key),i=a(g,i,p),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(f,e)})),$r&&Vr(f,p),c}(o,d,p=w.call(p),h)}if("function"==typeof p.then)return v(o,d,mf(p),h);if(p.$$typeof===g)return v(o,d,Oi(o,p),h);vf(o,p)}return"string"==typeof p&&""!==p||"number"==typeof p||"bigint"==typeof p?(p=""+p,null!==d&&6===d.tag?(n(o,d.sibling),(h=f(d,p)).return=o,o=h):(n(o,d),(h=Go(p,o.mode,h)).return=o,o=h),i(o)):n(o,d)}return function(e,t,n,r){try{gf=0;var f=v(e,t,n,r);return bf=null,f}catch(t){if(t===sf)throw t;var a=Lo(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var kf=Af(!0),Pf=Af(!1),Ef=q(null),Sf=q(0);function Of(e,t){J(Sf,e=cl),J(Ef,t),cl=e|t.baseLanes}function xf(){J(Sf,cl),J(Ef,Ef.current)}function Tf(){cl=Sf.current,Q(Ef),Q(Sf)}var Cf=q(null),Nf=null;function Rf(e){var t=e.alternate;J(Ff,1&Ff.current),J(Cf,e),null===Nf&&(null===t||null!==Ef.current||null!==t.memoizedState)&&(Nf=e)}function Bf(e){if(22===e.tag){if(J(Ff,Ff.current),J(Cf,e),null===Nf){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Nf=e)}}else If()}function If(){J(Ff,Ff.current),J(Cf,Cf.current)}function _f(e){Q(Cf),Nf===e&&(Nf=null),Q(Ff)}var Ff=q(0);function Lf(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jf="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach((function(e){return e()}))}},Uf=r.unstable_scheduleCallback,Mf=r.unstable_NormalPriority,Df={$$typeof:g,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zf(){return{controller:new jf,data:new Map,refCount:0}}function Hf(e){e.refCount--,0===e.refCount&&Uf(Mf,(function(){e.controller.abort()}))}var Gf=null,Vf=0,Kf=0,qf=null;function Qf(){if(0==--Vf&&null!==Gf){null!==qf&&(qf.status="fulfilled");var e=Gf;Gf=null,Kf=0,qf=null;for(var t=0;ta?a:8;var s,i,o,l=N.T,c={};N.T=c,As(e,!1,t,n);try{var u=f(),d=N.S;null!==d&&d(c,u),null!==u&&"object"==typeof u&&"function"==typeof u.then?ws(e,t,(s=r,i=[],o={status:"pending",value:null,reason:null,then:function(e){i.push(e)}},u.then((function(){o.status="fulfilled",o.value=s;for(var e=0;e title"))),Qc(a,r,n),a[Ue]=e,Ze(a),r=a;break e;case"link":var i=Tu("link","href",f).get(r+(n.href||""));if(i)for(var o=0;o<\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?f.createElement("select",{is:r.is}):f.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?f.createElement(n,{is:r.is}):f.createElement(n)}}e[Ue]=t,e[Me]=r;e:for(f=t.child;null!==f;){if(5===f.tag||6===f.tag)e.appendChild(f.stateNode);else if(4!==f.tag&&27!==f.tag&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;null===f.sibling;){if(null===f.return||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=e;e:switch(Qc(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Ko(t)}}return Wo(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&Ko(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));if(e=Z.current,rf(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(f=Jr))switch(f.tag){case 27:case 5:r=f.memoizedProps}e[Ue]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||Gc(e.nodeValue,n)))||ef(t)}else(e=$c(e).createTextNode(r))[Ue]=t,t.stateNode=e}return Wo(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(f=rf(t),null!==r&&null!==r.dehydrated){if(null===e){if(!f)throw Error(s(318));if(!(f=null!==(f=t.memoizedState)?f.dehydrated:null))throw Error(s(317));f[Ue]=t}else ff(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Wo(t),f=!1}else null!==Zr&&(Fl(Zr),Zr=null),f=!0;if(!f)return 256&t.flags?(_f(t),t):(_f(t),null)}if(_f(t),128&t.flags)return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){f=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(f=r.alternate.memoizedState.cachePool.pool);var a=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==f&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Qo(t,t.updateQueue),Wo(t),null;case 4:return ee(),null===e&&Ic(t.stateNode.containerInfo),Wo(t),null;case 10:return vi(t.type),Wo(t),null;case 19:if(Q(Ff),null===(f=t.memoizedState))return Wo(t),null;if(r=!!(128&t.flags),null===(a=f.rendering))if(r)Jo(f,!1);else{if(0!==ul||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=Lf(e))){for(t.flags|=128,Jo(f,!1),e=a.updateQueue,t.updateQueue=e,Qo(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Mo(n,e),n=n.sibling;return J(Ff,1&Ff.current|2),t.child}e=e.sibling}null!==f.tail&&oe()>Al&&(t.flags|=128,r=!0,Jo(f,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Lf(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Qo(t,e),Jo(f,!0),null===f.tail&&"hidden"===f.tailMode&&!a.alternate&&!$r)return Wo(t),null}else 2*oe()-f.renderingStartTime>Al&&536870912!==n&&(t.flags|=128,r=!0,Jo(f,!1),t.lanes=4194304);f.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=f.last)?e.sibling=a:t.child=a,f.last=a)}return null!==f.tail?(t=f.tail,f.rendering=t,f.tail=t.sibling,f.renderingStartTime=oe(),t.sibling=null,e=Ff.current,J(Ff,r?1&e|2:1&e),t):(Wo(t),null);case 22:case 23:return _f(t),Tf(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(Wo(t),6&t.subtreeFlags&&(t.flags|=8192)):Wo(t),null!==(n=t.updateQueue)&&Qo(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&Q(Wf),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),vi(Df),Wo(t),null;case 25:return null}throw Error(s(156,t.tag))}function Zo(e,t){switch(Qr(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return vi(Df),ee(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ne(t),null;case 13:if(_f(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(s(340));ff()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Q(Ff),null;case 4:return ee(),null;case 10:return vi(t.type),null;case 22:case 23:return _f(t),Tf(),null!==e&&Q(Wf),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return vi(Df),null;default:return null}}function Yo(e,t){switch(Qr(t),t.tag){case 3:vi(Df),ee();break;case 26:case 27:case 5:ne(t);break;case 4:ee();break;case 13:_f(t);break;case 19:Q(Ff);break;case 10:vi(t.type);break;case 22:case 23:_f(t),Tf(),null!==e&&Q(Wf);break;case 24:vi(Df)}}var Xo={getCacheForType:function(e){var t=Si(Df),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},el="function"==typeof WeakMap?WeakMap:Map,tl=0,nl=null,rl=null,fl=0,al=0,sl=null,il=!1,ol=!1,ll=!1,cl=0,ul=0,dl=0,pl=0,hl=0,bl=0,gl=0,ml=null,yl=null,vl=!1,wl=0,Al=1/0,kl=null,Pl=null,El=!1,Sl=null,Ol=0,xl=0,Tl=null,Cl=0,Nl=null;function Rl(){return 2&tl&&0!==fl?fl&-fl:null!==N.T?0!==Kf?Kf:kc():Le()}function Bl(){0===bl&&(bl=536870912&fl&&!$r?536870912:Ce());var e=Cf.current;return null!==e&&(e.flags|=32),bl}function Il(e,t,n){(e===nl&&2===al||null!==e.cancelPendingCommit)&&(zl(e,0),Ul(e,fl,bl,!1)),Be(e,n),2&tl&&e===nl||(e===nl&&(!(2&tl)&&(pl|=n),4===ul&&Ul(e,fl,bl,!1)),gc(e))}function _l(e,t,n){if(6&tl)throw Error(s(327));for(var r=!n&&!(60&t)&&!(t&e.expiredLanes)||xe(e,t),f=r?function(e,t){var n=tl;tl|=2;var r=Gl(),f=Vl();nl!==e||fl!==t?(kl=null,Al=oe()+500,zl(e,t)):ol=xe(e,t);e:for(;;)try{if(0!==al&&null!==rl){t=rl;var a=sl;t:switch(al){case 1:al=0,sl=null,Zl(e,t,a,1);break;case 2:if(cf(a)){al=0,sl=null,$l(t);break}t=function(){2===al&&nl===e&&(al=7),gc(e)},a.then(t,t);break e;case 3:al=7;break e;case 4:al=5;break e;case 7:cf(a)?(al=0,sl=null,$l(t)):(al=0,sl=null,Zl(e,t,a,7));break;case 5:var i=null;switch(rl.tag){case 26:i=rl.memoizedState;case 5:case 27:var o=rl;if(!i||Nu(i)){al=0,sl=null;var l=o.sibling;if(null!==l)rl=l;else{var c=o.return;null!==c?(rl=c,Yl(c)):rl=null}break t}}al=0,sl=null,Zl(e,t,a,5);break;case 6:al=0,sl=null,Zl(e,t,a,6);break;case 8:Dl(),ul=6;break e;default:throw Error(s(462))}}Jl();break}catch(t){Hl(e,t)}return mi=gi=null,N.H=r,N.A=f,tl=n,null!==rl?0:(nl=null,fl=0,Or(),ul)}(e,t):ql(e,t,!0),a=r;;){if(0===f){ol&&!r&&Ul(e,t,0,!1);break}if(6===f)Ul(e,t,0,!il);else{if(n=e.current.alternate,a&&!jl(n)){f=ql(e,t,!1),a=!1;continue}if(2===f){if(a=t,e.errorRecoveryDisabledLanes&a)var i=0;else i=0!=(i=-536870913&e.pendingLanes)?i:536870912&i?536870912:0;if(0!==i){t=i;e:{var o=e;f=ml;var l=o.current.memoizedState.isDehydrated;if(l&&(zl(o,i).flags|=256),2!==(i=ql(o,i,!1))){if(ll&&!l){o.errorRecoveryDisabledLanes|=a,pl|=a,f=4;break e}a=yl,yl=f,null!==a&&Fl(a)}f=i}if(a=!1,2!==f)continue}}if(1===f){zl(e,0),Ul(e,t,0,!0);break}e:{switch(r=e,f){case 0:case 1:throw Error(s(345));case 4:if((4194176&t)===t){Ul(r,t,bl,!il);break e}break;case 2:yl=null;break;case 3:case 5:break;default:throw Error(s(329))}if(r.finishedWork=n,r.finishedLanes=t,(62914560&t)===t&&10<(a=wl+300-oe())){if(Ul(r,t,bl,!il),0!==Oe(r,0))break e;r.timeoutHandle=tu(Ll.bind(null,r,n,yl,kl,vl,t,bl,pl,gl,il,2,-0,0),a)}else Ll(r,n,yl,kl,vl,t,bl,pl,gl,il,0,-0,0)}}break}gc(e)}function Fl(e){null===yl?yl=e:yl.push.apply(yl,e)}function Ll(e,t,n,r,f,a,i,o,l,c,u,d,p){var h=t.subtreeFlags;if((8192&h||!(16785408&~h))&&(Ru={stylesheets:null,count:0,unsuspend:Bu},Co(t),null!==(t=function(){if(null===Ru)throw Error(s(475));var e=Ru;return e.stylesheets&&0===e.count&&Fu(e,e.stylesheets),0n?32:n,N.T=null,null===Sl)var a=!1;else{n=Tl,Tl=null;var i=Sl,o=Ol;if(Sl=null,Ol=0,6&tl)throw Error(s(331));var l=tl;if(tl|=4,Bo(i.current),Eo(i,i.current,o,n),tl=l,mc(0,!1),ye&&"function"==typeof ye.onPostCommitFiberRoot)try{ye.onPostCommitFiberRoot(me,i)}catch(e){}a=!0}return a}finally{H.p=f,N.T=r,tc(e,t)}}return!1}function rc(e,t,n){t=_r(n,t),null!==(e=Bi(e,t=Ds(e.stateNode,t,2),2))&&(Be(e,2),gc(e))}function fc(e,t,n){if(3===e.tag)rc(e,e,n);else for(;null!==t;){if(3===t.tag){rc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Pl||!Pl.has(r))){e=_r(n,e),null!==(r=Bi(t,n=zs(2),2))&&(Hs(n,r,t,e),Be(r,2),gc(r));break}}t=t.return}}function ac(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new el;var f=new Set;r.set(t,f)}else void 0===(f=r.get(t))&&(f=new Set,r.set(t,f));f.has(n)||(ll=!0,f.add(n),e=sc.bind(null,e,t,n),t.then(e,e))}function sc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,nl===e&&(fl&n)===n&&(4===ul||3===ul&&(62914560&fl)===fl&&300>oe()-wl?!(2&tl)&&zl(e,0):hl|=n,gl===fl&&(gl=0)),gc(e)}function ic(e,t){0===t&&(t=Ne()),null!==(e=Cr(e,t))&&(Be(e,t),gc(e))}function oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ic(e,n)}function lc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,f=e.memoizedState;null!==f&&(n=f.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}null!==r&&r.delete(t),ic(e,n)}var cc=null,uc=null,dc=!1,pc=!1,hc=!1,bc=0;function gc(e){var t;e!==uc&&null===e.next&&(null===uc?cc=uc=e:uc=uc.next=e),pc=!0,dc||(dc=!0,t=yc,fu((function(){6&tl?fe(ce,t):t()})))}function mc(e,t){if(!hc&&pc){hc=!0;do{for(var n=!1,r=cc;null!==r;){if(!t)if(0!==e){var f=r.pendingLanes;if(0===f)var a=0;else{var s=r.suspendedLanes,i=r.pingedLanes;a=(1<<31-we(42|e)+1)-1,a=201326677&(a&=f&~(s&~i))?201326677&a|1:a?2|a:0}0!==a&&(n=!0,Ac(r,a))}else a=fl,!(3&(a=Oe(r,r===nl?a:0)))||xe(r,a)||(n=!0,Ac(r,a));r=r.next}}while(n);hc=!1}}function yc(){pc=dc=!1;var e,t=0;0!==bc&&(((e=window.event)&&"popstate"===e.type?e!==eu&&(eu=e,!0):(eu=null,!1))&&(t=bc),bc=0);for(var n=oe(),r=null,f=cc;null!==f;){var a=f.next,s=vc(f,n);0===s?(f.next=null,null===r?cc=a:r.next=a,null===a&&(uc=r)):(r=f,(0!==t||3&s)&&(pc=!0)),f=a}mc(t,!1)}function vc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,f=e.expirationTimes,a=-62914561&e.pendingLanes;0 title"):null)}function Nu(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Ru=null;function Bu(){}function Iu(){if(this.count--,0===this.count)if(this.stylesheets)Fu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var _u=null;function Fu(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,_u=new Map,t.forEach(Lu,e),_u=null,Iu.call(e))}function Lu(e,t){if(!(4&t.state.loading)){var n=_u.get(e);if(n)var r=n.get(null);else{n=new Map,_u.set(e,n);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a{var r=n(6540);function f(e){var t="https://react.dev/errors/"+e;if(1{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(1247)},961:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(6221)},9869:(e,t)=>{var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var w=v.prototype=new y;w.constructor=v,b(w,m.prototype),w.isPureReactComponent=!0;var A=Array.isArray,k={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function E(e,t,r,f,a,s){return r=s.ref,{$$typeof:n,type:e,key:t,ref:void 0!==r?r:null,props:s}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function x(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function T(){}function C(e,t,f,a,s){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var o,l,c=!1;if(null===e)c=!0;else switch(i){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0;break;case d:return C((c=e._init)(e._payload),t,f,a,s)}}if(c)return s=s(e),c=""===a?"."+x(e,0):a,A(s)?(f="",null!=c&&(f=c.replace(O,"$&/")+"/"),C(s,t,f,"",(function(e){return e}))):null!=s&&(S(s)&&(o=s,l=f+(null==s.key||e&&e.key===s.key?"":(""+s.key).replace(O,"$&/")+"/")+c,s=E(o.type,l,void 0,0,0,o.props)),t.push(s)),1;c=0;var u,h=""===a?".":a+":";if(A(e))for(var b=0;b{e.exports=n(9869)},4477:(e,t)=>{function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,f=e[r];if(!(0>>1;ra(o,n))la(c,o)?(e[r]=c,e[l]=n,r=l):(e[r]=o,e[i]=n,r=i);else{if(!(la(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var i=Date,o=i.now();t.unstable_now=function(){return i.now()-o}}var l=[],c=[],u=1,d=null,p=3,h=!1,b=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)f(c);else{if(!(t.startTime<=e))break;f(c),t.sortIndex=t.expirationTime,n(l,t)}t=r(c)}}function A(e){if(g=!1,w(e),!b)if(null!==r(l))b=!0,R();else{var t=r(c);null!==t&&B(A,t.startTime-e)}}var k,P=!1,E=-1,S=5,O=-1;function x(){return!(t.unstable_now()-Oe&&x());){var s=d.callback;if("function"==typeof s){d.callback=null,p=d.priorityLevel;var i=s(d.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){d.callback=i,w(e),n=!0;break t}d===r(l)&&f(l),w(e)}else f(l);d=r(l)}if(null!==d)n=!0;else{var o=r(c);null!==o&&B(A,o.startTime-e),n=!1}}break e}finally{d=null,p=a,h=!1}n=void 0}}finally{n?k():P=!1}}}if("function"==typeof v)k=function(){v(T)};else if("undefined"!=typeof MessageChannel){var C=new MessageChannel,N=C.port2;C.port1.onmessage=T,k=function(){N.postMessage(null)}}else k=function(){m(T,0)};function R(){P||(P=!0,k())}function B(e,n){E=m((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){b||h||(b=!0,R())},t.unstable_forceFrameRate=function(e){0>e||125s?(e.sortIndex=a,n(c,e),null===r(l)&&e===r(c)&&(g?(y(E),E=-1):g=!0,B(A,a-s))):(e.sortIndex=i,n(l,e),b||h||(b=!0,R())),e},t.unstable_shouldYield=x,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},9982:(e,t,n)=>{e.exports=n(4477)},5802:function(e,t,n){var r,f=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var f=Object.getOwnPropertyDescriptor(t,n);f&&!("get"in f?!t.__esModule:f.writable||f.configurable)||(f={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,f)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s{const[e,t]=(0,o.useState)("circle"),[n,r]=(0,o.useState)(70),[f,a]=(0,o.useState)("#cccccc"),[s,i]=(0,o.useState)(""),[m,y]=(0,o.useState)(""),{uploadToServer:v,uploading:w,uploadError:A}=(0,g.default)(),{mintNFT:k,transactionHash:P,transactionReceipt:E,errorMessage:S,loading:O,account:x}=(0,b.default)();return o.default.createElement(o.default.Fragment,null,o.default.createElement(c.default,null),o.default.createElement(l.default,{shape:e,size:n,color:f,setSvgString:y}),o.default.createElement("section",{className:"controls"},o.default.createElement(u.default,{shape:e,setShape:t,size:n,setSize:r,color:f,setColor:a}),o.default.createElement(d.default,{title:s,setTitle:i}),o.default.createElement(p.default,{handleUpload:async()=>{if(!m)return!1;const e=await v(m,s);return e?(await k(`ipfs://${e}`),!0):void 0},loading:O,uploading:w}),o.default.createElement(h.default,{account:x,uploading:w,loading:O,transactionHash:P,transactionReceipt:E,errorMessage:S,uploadError:A})))}},6179:function(e,t,n){var r,f=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var f=Object.getOwnPropertyDescriptor(t,n);f&&!("get"in f?!t.__esModule:f.writable||f.configurable)||(f={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,f)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s{const[f,a]=(0,i.useState)([]);return(0,i.useEffect)((()=>{const e=document.getElementsByTagName("svg")[0],t=new XMLSerializer;e&&r(t.serializeToString(e))}),[f,r]),i.default.createElement("svg",{width:"500",height:"500",version:"1.1",xmlns:"http://www.w3.org/2000/svg",onClick:r=>{const f=Date.now().toString();let s=null;const o=r.currentTarget.getBoundingClientRect(),l=r.clientX-o.left,c=r.clientY-o.top;if("erase"!==e){var u;"circle"===e?s=i.default.createElement("circle",{cx:l,cy:c,r:t/2,fill:n,id:f}):"square"===e&&(s=i.default.createElement("rect",{x:l-t/2,y:c-t/2,fill:n,width:t,height:t,id:f})),null!==s&&a((e=>[...e,s]))}else{const e=r.target;e.id&&(u=e.id,a((e=>e.filter((e=>e.props.id!==u)))))}}},i.default.createElement("rect",{width:"100%",height:"100%",fill:"white"}),f.map((e=>e)))}},9988:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const f=r(n(6540));t.default=({shape:e,setShape:t,size:n,setSize:r,color:a,setColor:s})=>f.default.createElement("section",null,f.default.createElement("section",null,f.default.createElement("label",null,"Circle",f.default.createElement("input",{type:"radio",name:"shape",value:"circle",checked:"circle"===e,onChange:({target:e})=>t(e.value)})),f.default.createElement("label",null,"Square",f.default.createElement("input",{type:"radio",name:"shape",value:"square",checked:"square"===e,onChange:({target:e})=>t(e.value)})),f.default.createElement("label",null,"Erase",f.default.createElement("input",{type:"radio",name:"shape",value:"erase",checked:"erase"===e,onChange:({target:e})=>t(e.value)}))),f.default.createElement("section",null,f.default.createElement("label",null,"Size",f.default.createElement("input",{type:"range",value:n,min:"10",max:"300",onChange:({target:e})=>r(Number(e.value))}))),f.default.createElement("section",null,f.default.createElement("label",null,"Color",f.default.createElement("input",{type:"color",value:a,onChange:({target:e})=>s(e.value)}))))},1800:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const f=r(n(6540));t.default=()=>f.default.createElement("header",null,f.default.createElement("h1",null,"Aaarto:",f.default.createElement("a",{href:"http://goatstone.com",target:"_blank",rel:"noopener noreferrer"},"goatstone")))},6302:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const f=r(n(6540));t.default=({account:e,uploading:t,loading:n,transactionHash:r,transactionReceipt:a,errorMessage:s,uploadError:i})=>f.default.createElement("section",null,f.default.createElement("section",null,f.default.createElement("h3",null,e?`Connected Account : ${e}`:"No account connected")),f.default.createElement("section",null,t&&f.default.createElement("p",null,"Status: Uploading"),n&&f.default.createElement("p",null,"Status: Minting"),r&&f.default.createElement("p",{className:"success_message"},"Minting Success! Transaction Hash:",f.default.createElement("a",{href:`https://sepolia.etherscan.io/tx/${r}`,target:"_blank",rel:"noopener noreferrer"},r))),f.default.createElement("section",null,s&&f.default.createElement("p",null,s),i&&f.default.createElement("p",null,i)))},3472:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const f=r(n(6540));t.default=({handleUpload:e,uploading:t,loading:n})=>f.default.createElement("section",{className:"mint_control"},f.default.createElement("section",null,f.default.createElement("button",{onClick:e,disabled:t||n},t||n?"Minting, Please Wait...":"Mint The Aaarto")))},9818:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const f=r(n(6540));t.default=({title:e,setTitle:t})=>f.default.createElement("section",null,f.default.createElement("section",null,f.default.createElement("label",null,"Title",f.default.createElement("input",{type:"text",value:e,onChange:({target:e})=>t(e.value),placeholder:"Title",maxLength:32,size:32}))))},3030:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const f=n(6540),a=n(4193),s=r(n(5069)),i=a.ethers.parseEther("0.001");t.default=()=>{const[e,t]=(0,f.useState)(null),[n,r]=(0,f.useState)(null),[o,l]=(0,f.useState)(null),[c,u]=(0,f.useState)(null),[d,p]=(0,f.useState)(!1);return{mintNFT:async e=>{try{if(p(!0),void 0===window.ethereum)throw new Error("MetaMask is not installed. Please install it to use this app.");u("Connect MetaMask account with this site.");const n=await window.ethereum.request({method:"eth_requestAccounts"});t(n),u("");const f=new a.ethers.BrowserProvider(window.ethereum),o=await f.getSigner(),{chainId:c}=await f.getNetwork();if(11155111n!==c)try{u("Please switch to the Sepolia network."),await window.ethereum.request({method:"wallet_switchEthereumChain",params:[{chainId:"0xaa36a7"}]}),u("")}catch(e){if(4902!==e.code)throw e;await window.ethereum.request({method:"wallet_addEthereumChain",params:[{chainId:"0xaa36a7",chainName:"Sepolia Testnet",rpcUrls:["https://rpc.sepolia.org"],nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},blockExplorerUrls:["https://sepolia.etherscan.io"]}]})}const d=new a.ethers.Contract("0x92128cD1BCA8cc406d2223Dcf1558E4d926Dd68f",s.default.abi,o),h=await o.getAddress(),b=await d.preSafeMint(h,e,{value:i});r(b.hash);const g=await b.wait();l(g)}catch(e){e.message.includes("user rejected action")?u("The request has been cancelled."):u("An error occured during minting.")}finally{p(!1)}},transactionHash:n,transactionReceipt:o,errorMessage:c,loading:d,account:e}}},6421:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const f=n(6540),a=r(n(6425)),s=r(n(1219));t.default=()=>{const[e,t]=(0,f.useState)(!1),[n,r]=(0,f.useState)(null);return{uploadToServer:async(e,n)=>{t(!0);const f={title:n,svgString:e};try{return(await a.default.post(`${s.default.serverHost}/server`,f)).data.ipfsHashMD}catch(e){let t="Error: An error occured while trying to upload the assest";return e.message.includes("Network Error")&&(t="Error: Could not access network"),r(t),null}finally{t(!1)}},uploading:e,uploadError:n}}},3900:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const f=r(n(6540)),a=r(n(5338)),s=r(n(5802)),i=document.getElementById("root");i&&a.default.createRoot(i).render(f.default.createElement(s.default,null))},3514:(e,t)=>{const n=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function r(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),f=1,a=[0,1];for(let e=1;e>--o&1}const u=2**31,d=u>>>1,p=d>>1,h=u-1;let b=0;for(let e=0;e<31;e++)b=b<<1|c();let g=[],m=0,y=u;for(;;){let e=Math.floor(((b-m+1)*f-1)/y),t=0,n=r;for(;n-t>1;){let r=t+n>>>1;e>>1|c(),s=s<<1^d,i=(i^d)<<1|d|1;m=s,y=1+i-s}let v=r-4;return g.map((t=>{switch(t-v){case 3:return v+65792+(e[i++]<<16|e[i++]<<8|e[i++]);case 2:return v+256+(e[i++]<<8|e[i++]);case 1:return v+e[i++];default:return t-1}}))}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach(((e,n)=>t[e.charCodeAt(0)]=n));let n=e.length,r=new Uint8Array(6*n>>3);for(let f=0,a=0,s=0,i=0;f=8&&(r[a++]=i>>(s-=8));return r}(e)))}function f(e){return 1&e?~e>>1:e>>1}function a(e,t){let n=Array(e);for(let r=0,a=0;r{let t=s(e);if(t.length)return t}))}function o(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(u(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(d(n,e))}return t.flat()}function l(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function c(e,t,n){let r=Array(e).fill().map((()=>[]));for(let f=0;fr[t].push(e)));return r}function u(e,t){let n=1+t(),r=t(),f=l(t);return c(f.length,1+e,t).flatMap(((e,t)=>{let[a,...s]=e;return Array(f[t]).fill().map(((e,t)=>{let f=t*r;return[a+t*n,s.map((e=>e+f))]}))}))}function d(e,t){return c(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}function p(e){return`{${function(e){return e.toString(16).toUpperCase().padStart(2,"0")}(e)}}`}function h(e){let t=[];for(let n=0,r=e.length;n>24&255}function k(e){return 16777215&e}let P,E,S,O;function x(e){return e>=m&&e<55204}function T(e,t){if(e>=y&&e<4371&&t>=v&&t<4470)return m+588*(e-y)+28*(t-v);if(x(e)&&t>w&&t<4547&&(e-m)%28==0)return e+(t-w);{let n=O.get(e);return n&&(n=n.get(t),n)?n:-1}}function C(e){P||function(){let e=r("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");P=new Map(i(e).flatMap(((e,t)=>e.map((e=>[e,t+1<<24]))))),E=new Set(s(e)),S=new Map,O=new Map;for(let[t,n]of o(e)){if(!E.has(t)&&2==n.length){let[e,r]=n,f=O.get(e);f||(f=new Map,O.set(e,f)),f.set(r,t)}S.set(t,n.reverse())}}();let t=[],n=[],f=!1;function a(e){let n=P.get(e);n&&(f=!0,e|=n),t.push(e)}for(let r of e)for(;;){if(r<128)t.push(r);else if(x(r)){let e=r-m,t=e%588/28|0,n=e%28;a(y+(e/588|0)),a(v+t),n>0&&a(w+n)}else{let e=S.get(r);e?n.push(...e):a(r)}if(!n.length)break;r=n.pop()}if(f&&t.length>1){let e=A(t[0]);for(let n=1;n0&&f>=e)0==e?(t.push(r,...n),n.length=0,r=s):n.push(s),f=e;else{let a=T(r,s);a>=0?r=a:0==f&&0==e?(t.push(r),r=s):(n.push(s),f=e)}}return r>=0&&t.push(r,...n),t}(C(e))}const B=".",I=e=>Array.from(e);function _(e,t){return e.P.has(t)||e.Q.has(t)}class F extends Array{get is_emoji(){return!0}}let L,j,U,M,D,z,H,G,V,K,q,Q;function J(){if(L)return;let e=r("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");const t=()=>s(e),n=()=>new Set(t()),f=(e,t)=>t.forEach((t=>e.add(t)));L=new Map(o(e)),j=n(),U=t(),M=new Set(t().map((e=>U[e]))),U=new Set(U),D=n(),z=n();let a=i(e),c=e();const u=()=>{let e=new Set;return t().forEach((t=>f(e,a[t]))),f(e,t()),e};H=l((t=>{let n=l(e).map((e=>e+96));if(n.length){let r=t>=c;return n[0]-=32,n=b(n),r&&(n=`Restricted[${n}]`),{N:n,P:u(),Q:u(),M:!e(),R:r}}})),G=n(),V=new Map;let d=t().concat(I(G)).sort(((e,t)=>e-t));d.forEach(((t,n)=>{let r=e(),f=d[n]=r?d[n-r]:{V:[],M:new Map};f.V.push(t),G.has(t)||V.set(t,f)}));for(let{V:e,M:t}of new Set(V.values())){let n=[];for(let t of e){let e=H.filter((e=>_(e,t))),r=n.find((({G:t})=>e.some((e=>t.has(e)))));r||(r={G:new Set,V:[]},n.push(r)),r.V.push(t),f(r.G,e)}let r=n.flatMap((e=>I(e.G)));for(let{G:e,V:f}of n){let n=new Set(r.filter((t=>!e.has(t))));for(let e of f)t.set(e,n)}}K=new Set;let p=new Set;const h=e=>K.has(e)?p.add(e):K.add(e);for(let e of H){for(let t of e.P)h(t);for(let t of e.Q)h(t)}for(let e of K)V.has(e)||p.has(e)||V.set(e,1);f(K,N(K)),q=function(e){let t=[],n=s(e);return function e({S:n,B:r},f,a){if(!(4&n&&a===f[f.length-1])){2&n&&(a=f[f.length-1]),1&n&&t.push(f);for(let t of r)for(let n of t.Q)e(t,[...f,n],a)}}(function t(r){return{S:e(),B:l((()=>{let r=s(e).map((e=>n[e]));if(r.length)return t(r)})),Q:r}}([]),[]),t}(e).map((e=>F.from(e))).sort(g),Q=new Map;for(let e of q){let t=[Q];for(let n of e){let e=t.map((e=>{let t=e.get(n);return t||(t=new Map,e.set(n,t)),t}));65039===n?t.push(...e):t=e}for(let n of t)n.V=e}}function W(e){return(X(e)?"":`${$(Z([e]))} `)+p(e)}function $(e){return`"${e}"‎`}function Z(e,t=1/0,n=p){let r=[];Y(e[0])&&r.push("◌"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let f=0,a=e.length;for(let t=0;t{let a=h(e),s={input:a,offset:f};f+=a.length+1;try{let e,f=s.tokens=se(a,t,r),i=f.length;if(!i)throw new Error("empty label");let o=s.output=f.flat();if(function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw new Error("underscore allowed only at start")}(o),!(s.emoji=i>1||f[0].is_emoji)&&o.every((e=>e<128)))!function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw new Error(`invalid label extension: "${b(e.slice(0,4))}"`)}(o),e="ASCII";else{let t=f.flatMap((e=>e.is_emoji?[]:e));if(t.length){if(U.has(o[0]))throw ae("leading combining mark");for(let e=1;e_(e,n)));if(!e.length)throw H.some((e=>_(e,n)))?fe(t[0],n):re(n);if(t=e,1==e.length)break}return t}(r);!function(e,t){for(let n of t)if(!_(e,n))throw fe(e,n);if(e.M){let e=N(t);for(let t=1,n=e.length;t4)throw new Error(`excessive non-spacing marks: ${$(Z(e.slice(t-1,r)))} (${r-t}/4)`);t=r}}}(a,t),function(e,t){let n,r=[];for(let e of t){let t=V.get(e);if(1===t)return;if(t){let r=t.M.get(e);if(n=n?n.filter((e=>r.has(e))):I(r),!n.length)return}else r.push(e)}if(n)for(let t of n)if(r.every((e=>_(t,e))))throw new Error(`whole-script confusable: ${e.N}/${t.N}`)}(a,r),e=a.N}else e="Emoji"}s.type=e}catch(e){s.error=e}return s}))}function ne(e){return e.map((({input:t,error:n,output:r})=>{if(n){let r=n.message;throw new Error(1==e.length?r:`Invalid label ${$(Z(t,63))}: ${r}`)}return b(r)})).join(B)}function re(e){return new Error(`disallowed character: ${W(e)}`)}function fe(e,t){let n=W(t),r=H.find((e=>e.P.has(t)));return r&&(n=`${r.N} ${n}`),new Error(`illegal mixture: ${e.N} + ${n}`)}function ae(e){return new Error(`illegal placement: ${e}`)}function se(e,t,n){let r=[],f=[];for(e=e.slice().reverse();e.length;){let a=oe(e);if(a)f.length&&(r.push(t(f)),f=[]),r.push(n(a));else{let t=e.pop();if(K.has(t))f.push(t);else{let e=L.get(t);if(e)f.push(...e);else if(!j.has(t))throw re(t)}}}return f.length&&r.push(t(f)),r}function ie(e){return e.filter((e=>65039!=e))}function oe(e,t){let n,r=Q,f=e.length;for(;f&&(r=r.get(e[--f]),r);){let{V:a}=r;a&&(n=a,t&&t.push(...e.slice(f).reverse()),e.length=f)}return n}const le="valid",ce="mapped",ue="ignored";function de(e){return e==le||e==ce}function pe(e){return e.some((e=>z.has(e)))}function he(e){for(let t=0;te.cps))})}return e}t.ens_beautify=function(e){let t=te(e,R,(e=>e));for(let{type:e,output:n,error:r}of t){if(r)break;"Greek"!==e&&ee(n,958,926)}return ne(t)},t.ens_emoji=function(){return J(),q.map((e=>e.slice()))},t.ens_normalize=function(e){return ne(te(e,R,ie))},t.ens_normalize_fragment=function(e,t){J();let n=t?N:R;return e.split(B).map((e=>b(se(h(e),n,ie).flat()))).join(B)},t.ens_split=function(e,t){return te(e,R,t?e=>e.slice():ie)},t.ens_tokenize=function e(t,{nf:n=!0}={}){J();let r=h(t).reverse(),f=[],a=[];for(;r.length;){let e=oe(r,f);if(e)a.push({type:"emoji",emoji:e.slice(),input:f,cps:ie(e)}),f=[];else{let e=r.pop();if(46==e)a.push({type:"stop",cp:e});else if(K.has(e))a.push({type:le,cps:[e]});else if(j.has(e))a.push({type:ue,cp:e});else{let t=L.get(e);t?a.push({type:ce,cp:e,cps:t.slice()}):a.push({type:"disallowed",cp:e})}}}if(n)for(let t=0,n=-1;tde(e.type)?e.cps:[])),i=R(s);g(i,s)?(a.splice(n,r-n,{type:"nfc",input:s,cps:i,tokens0:he(f),tokens:e(b(i),{nf:!1})}),t=n):t=r-1,n=-1}else n=t;else r.type!==ue&&(n=-1)}return he(a)},t.is_combining_mark=Y,t.nfc=R,t.nfd=N,t.safe_str_from_cps=Z,t.should_escape=X},6013:function(e,t){var n,r,f,a=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},s=this&&this.__classPrivateFieldSet||function(e,t,n,r,f){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!f)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!f:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?f.call(e,n):f?f.value=n:t.set(e,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.AES=void 0;const i={16:10,24:12,32:14},o=[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],l=[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],u=[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],d=[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],h=[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],b=[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],g=[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],m=[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],y=[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],v=[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],w=[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],A=[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],k=[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 P(e){const t=[];for(let n=0;n>2,a(this,f,"f")[p][e%4]=d[e],a(this,r,"f")[t-p][e%4]=d[e];let h,b=0,g=u;for(;g>16&255]<<24^l[h>>8&255]<<16^l[255&h]<<8^l[h>>24&255]^o[b]<<24,b+=1,8!=u)for(let e=1;e>8&255]<<8^l[h>>16&255]<<16^l[h>>24&255]<<24;for(let e=u/2+1;e>2,n=g%4,a(this,f,"f")[e][n]=d[s],a(this,r,"f")[t-e][n]=d[s++],g++}for(let e=1;e>24&255]^w[h>>16&255]^A[h>>8&255]^k[255&h]}encrypt(e){if(16!=e.length)throw new TypeError("invalid plaintext size (must be 16 bytes)");const t=a(this,f,"f").length-1,n=[0,0,0,0];let r=P(e);for(let e=0;e<4;e++)r[e]^=a(this,f,"f")[0][e];for(let e=1;e>24&255]^d[r[(t+1)%4]>>16&255]^p[r[(t+2)%4]>>8&255]^h[255&r[(t+3)%4]]^a(this,f,"f")[e][t];r=n.slice()}const s=new Uint8Array(16);let i=0;for(let e=0;e<4;e++)i=a(this,f,"f")[t][e],s[4*e]=255&(l[r[e]>>24&255]^i>>24),s[4*e+1]=255&(l[r[(e+1)%4]>>16&255]^i>>16),s[4*e+2]=255&(l[r[(e+2)%4]>>8&255]^i>>8),s[4*e+3]=255&(l[255&r[(e+3)%4]]^i);return s}decrypt(e){if(16!=e.length)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const t=a(this,r,"f").length-1,n=[0,0,0,0];let f=P(e);for(let e=0;e<4;e++)f[e]^=a(this,r,"f")[0][e];for(let e=1;e>24&255]^g[f[(t+3)%4]>>16&255]^m[f[(t+2)%4]>>8&255]^y[255&f[(t+1)%4]]^a(this,r,"f")[e][t];f=n.slice()}const s=new Uint8Array(16);let i=0;for(let e=0;e<4;e++)i=a(this,r,"f")[t][e],s[4*e]=255&(c[f[e]>>24&255]^i>>24),s[4*e+1]=255&(c[f[(e+3)%4]>>16&255]^i>>16),s[4*e+2]=255&(c[f[(e+2)%4]>>8&255]^i>>8),s[4*e+3]=255&(c[255&f[(e+1)%4]]^i);return s}}t.AES=E,n=new WeakMap,r=new WeakMap,f=new WeakMap},8165:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.pkcs7Strip=t.pkcs7Pad=t.OFB=t.ECB=t.CTR=t.CFB=t.CBC=t.ModeOfOperation=t.AES=void 0;var r=n(6013);Object.defineProperty(t,"AES",{enumerable:!0,get:function(){return r.AES}});var f=n(6342);Object.defineProperty(t,"ModeOfOperation",{enumerable:!0,get:function(){return f.ModeOfOperation}});var a=n(2977);Object.defineProperty(t,"CBC",{enumerable:!0,get:function(){return a.CBC}});var s=n(7609);Object.defineProperty(t,"CFB",{enumerable:!0,get:function(){return s.CFB}});var i=n(4164);Object.defineProperty(t,"CTR",{enumerable:!0,get:function(){return i.CTR}});var o=n(1485);Object.defineProperty(t,"ECB",{enumerable:!0,get:function(){return o.ECB}});var l=n(226);Object.defineProperty(t,"OFB",{enumerable:!0,get:function(){return l.OFB}});var c=n(8420);Object.defineProperty(t,"pkcs7Pad",{enumerable:!0,get:function(){return c.pkcs7Pad}}),Object.defineProperty(t,"pkcs7Strip",{enumerable:!0,get:function(){return c.pkcs7Strip}})},2977:function(e,t,n){var r,f,a=this&&this.__classPrivateFieldSet||function(e,t,n,r,f){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!f)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!f:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?f.call(e,n):f?f.value=n:t.set(e,n),n},s=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.CBC=void 0;const i=n(6342);class o extends i.ModeOfOperation{constructor(e,t){if(super("ECC",e,o),r.set(this,void 0),f.set(this,void 0),t){if(t.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");a(this,r,new Uint8Array(t),"f")}else a(this,r,new Uint8Array(16),"f");a(this,f,this.iv,"f")}get iv(){return new Uint8Array(s(this,r,"f"))}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const t=new Uint8Array(e.length);for(let n=0;nNumber.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let t=15;t>=0;--t)i(this,a,"f")[t]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(16!==e.length)throw new TypeError("invalid counter initial Uint8Array value length");i(this,a,"f").set(e)}increment(){for(let e=15;e>=0;e--){if(255!==i(this,a,"f")[e]){i(this,a,"f")[e]++;break}i(this,a,"f")[e]=0}}encrypt(e){var t,n;const o=new Uint8Array(e);for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.ECB=void 0;const r=n(6342);class f extends r.ModeOfOperation{constructor(e){super("ECB",e,f)}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const t=new Uint8Array(e.length);for(let n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.ModeOfOperation=void 0;const r=n(6013);t.ModeOfOperation=class{constructor(e,t,n){if(n&&!(this instanceof n))throw new Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new r.AES(t)},name:{enumerable:!0,value:e}})}}},8420:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.pkcs7Strip=t.pkcs7Pad=void 0,t.pkcs7Pad=function(e){const t=16-e.length%16,n=new Uint8Array(e.length+t);n.set(e);for(let r=e.length;r16)throw new TypeError("PKCS#7 padding byte out of range");const n=e.length-t;for(let r=0;r{function r(e,t){return function(){return e.apply(t,arguments)}}const{toString:f}=Object.prototype,{getPrototypeOf:a}=Object,s=(i=Object.create(null),e=>{const t=f.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});var i;const o=e=>(e=e.toLowerCase(),t=>s(t)===e),l=e=>t=>typeof t===e,{isArray:c}=Array,u=l("undefined"),d=o("ArrayBuffer"),p=l("string"),h=l("function"),b=l("number"),g=e=>null!==e&&"object"==typeof e,m=e=>{if("object"!==s(e))return!1;const t=a(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},y=o("Date"),v=o("File"),w=o("Blob"),A=o("FileList"),k=o("URLSearchParams"),[P,E,S,O]=["ReadableStream","Request","Response","Headers"].map(o);function x(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,f;if("object"!=typeof e&&(e=[e]),c(e))for(r=0,f=e.length;r0;)if(r=n[f],t===r.toLowerCase())return r;return null}const C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,N=e=>!u(e)&&e!==C,R=(B="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>B&&e instanceof B);var B;const I=o("HTMLFormElement"),_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),F=o("RegExp"),L=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};x(n,((n,f)=>{let a;!1!==(a=t(n,f,e))&&(r[f]=a||n)})),Object.defineProperties(e,r)},j="abcdefghijklmnopqrstuvwxyz",U="0123456789",M={DIGIT:U,ALPHA:j,ALPHA_DIGIT:j+j.toUpperCase()+U},D=o("AsyncFunction"),z=(H="function"==typeof setImmediate,G=h(C.postMessage),H?setImmediate:G?(V=`axios@${Math.random()}`,K=[],C.addEventListener("message",(({source:e,data:t})=>{e===C&&t===V&&K.length&&K.shift()()}),!1),e=>{K.push(e),C.postMessage(V,"*")}):e=>setTimeout(e));var H,G,V,K;const q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(C):"undefined"!=typeof process&&process.nextTick||z;var Q={isArray:c,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||h(e.append)&&("formdata"===(t=s(e))||"object"===t&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:p,isNumber:b,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:m,isReadableStream:P,isRequest:E,isResponse:S,isHeaders:O,isUndefined:u,isDate:y,isFile:v,isBlob:w,isRegExp:F,isFunction:h,isStream:e=>g(e)&&h(e.pipe),isURLSearchParams:k,isTypedArray:R,isFileList:A,forEach:x,merge:function e(){const{caseless:t}=N(this)&&this||{},n={},r=(r,f)=>{const a=t&&T(n,f)||f;m(n[a])&&m(r)?n[a]=e(n[a],r):m(r)?n[a]=e({},r):c(r)?n[a]=r.slice():n[a]=r};for(let e=0,t=arguments.length;e(x(t,((t,f)=>{n&&h(t)?e[f]=r(t,n):e[f]=t}),{allOwnKeys:f}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let f,s,i;const o={};if(t=t||{},null==e)return t;do{for(f=Object.getOwnPropertyNames(e),s=f.length;s-- >0;)i=f[s],r&&!r(i,e,t)||o[i]||(t[i]=e[i],o[i]=!0);e=!1!==n&&a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:o,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(c(e))return e;let t=e.length;if(!b(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:I,hasOwnProperty:_,hasOwnProp:_,reduceDescriptors:L,freezeMethods:e=>{L(e,((t,n)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];h(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return c(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:T,global:C,isContextDefined:N,ALPHABET:M,generateString:(e=16,t=M.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const f=c(e)?[]:{};return x(e,((e,t)=>{const a=n(e,r+1);!u(a)&&(f[t]=a)})),t[r]=void 0,f}}return e};return n(e,0)},isAsyncFn:D,isThenable:e=>e&&(g(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:z,asap:q};function J(e,t,n,r,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),f&&(this.response=f,this.status=f.status?f.status:null)}Q.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.status}}});const W=J.prototype,$={};function Z(e){return Q.isPlainObject(e)||Q.isArray(e)}function Y(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,n){return e?e.concat(t).map((function(e,t){return e=Y(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{$[e]={value:e}})),Object.defineProperties(J,$),Object.defineProperty(W,"isAxiosError",{value:!0}),J.from=(e,t,n,r,f,a)=>{const s=Object.create(W);return Q.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),J.call(s,e.message,t,n,r,f),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const ee=Q.toFlatObject(Q,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Q.isUndefined(t[e])}))).metaTokens,f=n.visitor||l,a=n.dots,s=n.indexes,i=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(f))throw new TypeError("visitor must be a function");function o(e){if(null===e)return"";if(Q.isDate(e))return e.toISOString();if(!i&&Q.isBlob(e))throw new J("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(e)||Q.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,f){let i=e;if(e&&!f&&"object"==typeof e)if(Q.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Q.isArray(e)&&function(e){return Q.isArray(e)&&!e.some(Z)}(e)||(Q.isFileList(e)||Q.endsWith(n,"[]"))&&(i=Q.toArray(e)))return n=Y(n),i.forEach((function(e,r){!Q.isUndefined(e)&&null!==e&&t.append(!0===s?X([n],r,a):null===s?n:n+"[]",o(e))})),!1;return!!Z(e)||(t.append(X(f,n,a),o(e)),!1)}const c=[],u=Object.assign(ee,{defaultVisitor:l,convertValue:o,isVisitable:Z});if(!Q.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Q.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),Q.forEach(n,(function(n,a){!0===(!(Q.isUndefined(n)||null===n)&&f.call(t,n,Q.isString(a)?a.trim():a,r,u))&&e(n,r?r.concat(a):[a])})),c.pop()}}(e),t}function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function re(e,t){this._pairs=[],e&&te(e,this,t)}const fe=re.prototype;function ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function se(e,t,n){if(!t)return e;const r=n&&n.encode||ae;Q.isFunction(n)&&(n={serialize:n});const f=n&&n.serialize;let a;if(a=f?f(t,n):Q.isURLSearchParams(t)?t.toString():new re(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}fe.append=function(e,t){this._pairs.push([e,t])},fe.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ie=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Q.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},oe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},le={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:re,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ce="undefined"!=typeof window&&"undefined"!=typeof document,ue="object"==typeof navigator&&navigator||void 0,de=ce&&(!ue||["ReactNative","NativeScript","NS"].indexOf(ue.product)<0),pe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,he=ce&&window.location.href||"http://localhost";var be={...Object.freeze({__proto__:null,hasBrowserEnv:ce,hasStandardBrowserWebWorkerEnv:pe,hasStandardBrowserEnv:de,navigator:ue,origin:he}),...le};function ge(e){function t(e,n,r,f){let a=e[f++];if("__proto__"===a)return!0;const s=Number.isFinite(+a),i=f>=e.length;return a=!a&&Q.isArray(r)?r.length:a,i?(Q.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!s):(r[a]&&Q.isObject(r[a])||(r[a]=[]),t(e,n,r[a],f)&&Q.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const f=n.length;let a;for(r=0;r{t(function(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const me={transitional:oe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,f=Q.isObject(e);if(f&&Q.isHTMLForm(e)&&(e=new FormData(e)),Q.isFormData(e))return r?JSON.stringify(ge(e)):e;if(Q.isArrayBuffer(e)||Q.isBuffer(e)||Q.isStream(e)||Q.isFile(e)||Q.isBlob(e)||Q.isReadableStream(e))return e;if(Q.isArrayBufferView(e))return e.buffer;if(Q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(f){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new be.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return be.isNode&&Q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=Q.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),function(e){if(Q.isString(e))try{return(0,JSON.parse)(e),Q.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||me.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Q.isResponse(e)||Q.isReadableStream(e))return e;if(e&&Q.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw J.from(e,J.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:be.classes.FormData,Blob:be.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],(e=>{me.headers[e]={}}));var ye=me;const ve=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),we=Symbol("internals");function Ae(e){return e&&String(e).trim().toLowerCase()}function ke(e){return!1===e||null==e?e:Q.isArray(e)?e.map(ke):String(e)}function Pe(e,t,n,r,f){return Q.isFunction(r)?r.call(this,t,n):(f&&(t=n),Q.isString(t)?Q.isString(r)?-1!==t.indexOf(r):Q.isRegExp(r)?r.test(t):void 0:void 0)}class Ee{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function f(e,t,n){const f=Ae(t);if(!f)throw new Error("header name must be a non-empty string");const a=Q.findKey(r,f);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=ke(e))}const a=(e,t)=>Q.forEach(e,((e,n)=>f(e,n,t)));if(Q.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Q.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,f;return e&&e.split("\n").forEach((function(e){f=e.indexOf(":"),n=e.substring(0,f).trim().toLowerCase(),r=e.substring(f+1).trim(),!n||t[n]&&ve[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Q.isHeaders(e))for(const[t,r]of e.entries())f(r,t,n);else null!=e&&f(t,e,n);return this}get(e,t){if(e=Ae(e)){const n=Q.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Q.isFunction(t))return t.call(this,e,n);if(Q.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ae(e)){const n=Q.findKey(this,e);return!(!n||void 0===this[n]||t&&!Pe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function f(e){if(e=Ae(e)){const f=Q.findKey(n,e);!f||t&&!Pe(0,n[f],f,t)||(delete n[f],r=!0)}}return Q.isArray(e)?e.forEach(f):f(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const f=t[n];e&&!Pe(0,this[f],f,e,!0)||(delete this[f],r=!0)}return r}normalize(e){const t=this,n={};return Q.forEach(this,((r,f)=>{const a=Q.findKey(n,f);if(a)return t[a]=ke(r),void delete t[f];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(f):String(f).trim();s!==f&&delete t[f],t[s]=ke(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Q.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Q.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[we]=this[we]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ae(e);t[r]||(function(e,t){const n=Q.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,f){return this[r].call(this,t,e,n,f)},configurable:!0})}))}(n,e),t[r]=!0)}return Q.isArray(e)?e.forEach(r):r(e),this}}Ee.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(Ee.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Q.freezeMethods(Ee);var Se=Ee;function Oe(e,t){const n=this||ye,r=t||n,f=Se.from(r.headers);let a=r.data;return Q.forEach(e,(function(e){a=e.call(n,a,f.normalize(),t?t.status:void 0)})),f.normalize(),a}function xe(e){return!(!e||!e.__CANCEL__)}function Te(e,t,n){J.call(this,null==e?"canceled":e,J.ERR_CANCELED,t,n),this.name="CanceledError"}function Ce(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Q.inherits(Te,J,{__CANCEL__:!0});const Ne=(e,t,n=3)=>{let r=0;const f=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let f,a=0,s=0;return t=void 0!==t?t:1e3,function(i){const o=Date.now(),l=r[s];f||(f=o),n[a]=i,r[a]=o;let c=s,u=0;for(;c!==a;)u+=n[c++],c%=e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),o-f{f=a,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),i=t-f;i>=a?s(e,t):(n=e,r||(r=setTimeout((()=>{r=null,s(n)}),a-i)))},()=>n&&s(n)]}((n=>{const a=n.loaded,s=n.lengthComputable?n.total:void 0,i=a-r,o=f(i);r=a,e({loaded:a,total:s,progress:s?a/s:void 0,bytes:i,rate:o||void 0,estimated:o&&s&&a<=s?(s-a)/o:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),n)},Re=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Be=e=>(...t)=>Q.asap((()=>e(...t)));var Ie=be.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,be.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(be.origin),be.navigator&&/(msie|trident)/i.test(be.navigator.userAgent)):()=>!0,_e=be.hasStandardBrowserEnv?{write(e,t,n,r,f,a){const s=[e+"="+encodeURIComponent(t)];Q.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Q.isString(r)&&s.push("path="+r),Q.isString(f)&&s.push("domain="+f),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Fe(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Le=e=>e instanceof Se?{...e}:e;function je(e,t){t=t||{};const n={};function r(e,t,n,r){return Q.isPlainObject(e)&&Q.isPlainObject(t)?Q.merge.call({caseless:r},e,t):Q.isPlainObject(t)?Q.merge({},t):Q.isArray(t)?t.slice():t}function f(e,t,n,f){return Q.isUndefined(t)?Q.isUndefined(e)?void 0:r(void 0,e,0,f):r(e,t,0,f)}function a(e,t){if(!Q.isUndefined(t))return r(void 0,t)}function s(e,t){return Q.isUndefined(t)?Q.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function i(n,f,a){return a in t?r(n,f):a in e?r(void 0,n):void 0}const o={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(e,t,n)=>f(Le(e),Le(t),0,!0)};return Q.forEach(Object.keys(Object.assign({},e,t)),(function(r){const a=o[r]||f,s=a(e[r],t[r],r);Q.isUndefined(s)&&a!==i||(n[r]=s)})),n}var Ue=e=>{const t=je({},e);let n,{data:r,withXSRFToken:f,xsrfHeaderName:a,xsrfCookieName:s,headers:i,auth:o}=t;if(t.headers=i=Se.from(i),t.url=se(Fe(t.baseURL,t.url),e.params,e.paramsSerializer),o&&i.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),Q.isFormData(r))if(be.hasStandardBrowserEnv||be.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(!1!==(n=i.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}if(be.hasStandardBrowserEnv&&(f&&Q.isFunction(f)&&(f=f(t)),f||!1!==f&&Ie(t.url))){const e=a&&s&&_e.read(s);e&&i.set(a,e)}return t},Me="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Ue(e);let f=r.data;const a=Se.from(r.headers).normalize();let s,i,o,l,c,{responseType:u,onUploadProgress:d,onDownloadProgress:p}=r;function h(){l&&l(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let b=new XMLHttpRequest;function g(){if(!b)return;const r=Se.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());Ce((function(e){t(e),h()}),(function(e){n(e),h()}),{data:u&&"text"!==u&&"json"!==u?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b}),b=null}b.open(r.method.toUpperCase(),r.url,!0),b.timeout=r.timeout,"onloadend"in b?b.onloadend=g:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(g)},b.onabort=function(){b&&(n(new J("Request aborted",J.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const f=r.transitional||oe;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new J(t,f.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,b)),b=null},void 0===f&&a.setContentType(null),"setRequestHeader"in b&&Q.forEach(a.toJSON(),(function(e,t){b.setRequestHeader(t,e)})),Q.isUndefined(r.withCredentials)||(b.withCredentials=!!r.withCredentials),u&&"json"!==u&&(b.responseType=r.responseType),p&&([o,c]=Ne(p,!0),b.addEventListener("progress",o)),d&&b.upload&&([i,l]=Ne(d),b.upload.addEventListener("progress",i),b.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(s=t=>{b&&(n(!t||t.type?new Te(null,e,b):t),b.abort(),b=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);m&&-1===be.protocols.indexOf(m)?n(new J("Unsupported protocol "+m+":",J.ERR_BAD_REQUEST,e)):b.send(f||null)}))},De=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const f=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof J?t:new Te(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{a=null,f(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))}),t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(f):e.removeEventListener("abort",f)})),e=null)};e.forEach((e=>e.addEventListener("abort",f)));const{signal:i}=r;return i.unsubscribe=()=>Q.asap(s),i}};const ze=function*(e,t){let n=e.byteLength;if(!t||n{const f=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*ze(n,t)}(e,t);let a,s=0,i=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await f.next();if(t)return i(),void e.close();let a=r.byteLength;if(n){let e=s+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw i(e),e}},cancel:e=>(i(e),f.return())},{highWaterMark:2})},Ge="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ve=Ge&&"function"==typeof ReadableStream,Ke=Ge&&("function"==typeof TextEncoder?(qe=new TextEncoder,e=>qe.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var qe;const Qe=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Je=Ve&&Qe((()=>{let e=!1;const t=new Request(be.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),We=Ve&&Qe((()=>Q.isReadableStream(new Response("").body))),$e={stream:We&&(e=>e.body)};var Ze;Ge&&(Ze=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!$e[e]&&($e[e]=Q.isFunction(Ze[e])?t=>t[e]():(t,n)=>{throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,n)})})));const Ye={http:null,xhr:Me,fetch:Ge&&(async e=>{let{url:t,method:n,data:r,signal:f,cancelToken:a,timeout:s,onDownloadProgress:i,onUploadProgress:o,responseType:l,headers:c,withCredentials:u="same-origin",fetchOptions:d}=Ue(e);l=l?(l+"").toLowerCase():"text";let p,h=De([f,a&&a.toAbortSignal()],s);const b=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(o&&Je&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=Q.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e)){const t=new Request(be.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Q.isArrayBufferView(e)||Q.isArrayBuffer(e)?e.byteLength:(Q.isURLSearchParams(e)&&(e+=""),Q.isString(e)?(await Ke(e)).byteLength:void 0)})(t):n})(c,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Q.isFormData(r)&&(e=n.headers.get("content-type"))&&c.setContentType(e),n.body){const[e,t]=Re(g,Ne(Be(o)));r=He(n.body,65536,e,t)}}Q.isString(u)||(u=u?"include":"omit");const f="credentials"in Request.prototype;p=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:f?u:void 0});let a=await fetch(p);const s=We&&("stream"===l||"response"===l);if(We&&(i||s&&b)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=a[t]}));const t=Q.toFiniteNumber(a.headers.get("content-length")),[n,r]=i&&Re(t,Ne(Be(i),!0))||[];a=new Response(He(a.body,65536,n,(()=>{r&&r(),b&&b()})),e)}l=l||"text";let m=await $e[Q.findKey($e,l)||"text"](a,e);return!s&&b&&b(),await new Promise(((t,n)=>{Ce(t,n,{data:m,headers:Se.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:p})}))}catch(t){if(b&&b(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,e,p),{cause:t.cause||t});throw J.from(t,t&&t.code,e,p)}})};Q.forEach(Ye,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Xe=e=>`- ${e}`,et=e=>Q.isFunction(e)||null===e||!1===e;var tt=e=>{e=Q.isArray(e)?e:[e];const{length:t}=e;let n,r;const f={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new J("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Xe).join("\n"):" "+Xe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function nt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Te(null,e)}function rt(e){return nt(e),e.headers=Se.from(e.headers),e.data=Oe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||ye.adapter)(e).then((function(t){return nt(e),t.data=Oe.call(e,e.transformResponse,t),t.headers=Se.from(t.headers),t}),(function(t){return xe(t)||(nt(e),t&&t.response&&(t.response.data=Oe.call(e,e.transformResponse,t.response),t.response.headers=Se.from(t.response.headers))),Promise.reject(t)}))}const ft={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ft[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const at={};ft.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,f,a)=>{if(!1===e)throw new J(r(f," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!at[f]&&(at[f]=!0,console.warn(r(f," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,f,a)}},ft.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var st={assertOptions:function(e,t,n){if("object"!=typeof e)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let f=r.length;for(;f-- >0;){const a=r[f],s=t[a];if(s){const t=e[a],n=void 0===t||s(t,a,e);if(!0!==n)throw new J("option "+a+" must be "+n,J.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new J("Unknown option "+a,J.ERR_BAD_OPTION)}},validators:ft};const it=st.validators;class ot{constructor(e){this.defaults=e,this.interceptors={request:new ie,response:new ie}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=je(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:f}=t;void 0!==n&&st.assertOptions(n,{silentJSONParsing:it.transitional(it.boolean),forcedJSONParsing:it.transitional(it.boolean),clarifyTimeoutError:it.transitional(it.boolean)},!1),null!=r&&(Q.isFunction(r)?t.paramsSerializer={serialize:r}:st.assertOptions(r,{encode:it.function,serialize:it.function},!0)),st.assertOptions(t,{baseUrl:it.spelling("baseURL"),withXsrfToken:it.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=f&&Q.merge(f.common,f[t.method]);f&&Q.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete f[e]})),t.headers=Se.concat(a,f);const s=[];let i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const o=[];let l;this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)}));let c,u=0;if(!i){const e=[rt.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,o),c=e.length,l=Promise.resolve(t);u{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,f){n.reason||(n.reason=new Te(e,r,f),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ct((function(t){e=t})),cancel:e}}}var ut=ct;const dt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(dt).forEach((([e,t])=>{dt[t]=e}));var pt=dt;const ht=function e(t){const n=new lt(t),f=r(lt.prototype.request,n);return Q.extend(f,lt.prototype,n,{allOwnKeys:!0}),Q.extend(f,n,null,{allOwnKeys:!0}),f.create=function(n){return e(je(t,n))},f}(ye);ht.Axios=lt,ht.CanceledError=Te,ht.CancelToken=ut,ht.isCancel=xe,ht.VERSION="1.7.9",ht.toFormData=te,ht.AxiosError=J,ht.Cancel=ht.CanceledError,ht.all=function(e){return Promise.all(e)},ht.spread=function(e){return function(t){return e.apply(null,t)}},ht.isAxiosError=function(e){return Q.isObject(e)&&!0===e.isAxiosError},ht.mergeConfig=je,ht.AxiosHeaders=Se,ht.formToJSON=e=>ge(Q.isHTMLForm(e)?new FormData(e):e),ht.getAdapter=tt,ht.HttpStatusCode=pt,ht.default=ht,e.exports=ht},4586:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="6.13.5"},954:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbiCoder=void 0;const r=n(5347),f=n(8869),a=n(1355),s=n(3178),i=n(8719),o=n(2348),l=n(9095),c=n(8026),u=n(7398),d=n(8766),p=n(1693),h=n(189),b=n(646),g=n(5347),m=new Map;m.set(0,"GENERIC_PANIC"),m.set(1,"ASSERT_FALSE"),m.set(17,"OVERFLOW"),m.set(18,"DIVIDE_BY_ZERO"),m.set(33,"ENUM_RANGE_ERROR"),m.set(34,"BAD_STORAGE_DATA"),m.set(49,"STACK_UNDERFLOW"),m.set(50,"ARRAY_RANGE_ERROR"),m.set(65,"OUT_OF_MEMORY"),m.set(81,"UNINITIALIZED_FUNCTION_CALL");const y=new RegExp(/^bytes([0-9]*)$/),v=new RegExp(/^(u?int)([0-9]*)$/);let w=null,A=1024;class k{#e(e){if(e.isArray())return new s.ArrayCoder(this.#e(e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new p.TupleCoder(e.components.map((e=>this.#e(e))),e.name);switch(e.baseType){case"address":return new a.AddressCoder(e.name);case"bool":return new i.BooleanCoder(e.name);case"string":return new d.StringCoder(e.name);case"bytes":return new o.BytesCoder(e.name);case"":return new c.NullCoder(e.name)}let t=e.type.match(v);if(t){let n=parseInt(t[2]||"256");return(0,r.assertArgument)(0!==n&&n<=256&&n%8==0,"invalid "+t[1]+" bit length","param",e),new u.NumberCoder(n/8,"int"===t[1],e.name)}if(t=e.type.match(y),t){let n=parseInt(t[1]);return(0,r.assertArgument)(0!==n&&n<=32,"invalid bytes length","param",e),new l.FixedBytesCoder(n,e.name)}(0,r.assertArgument)(!1,"invalid type","type",e.type)}getDefaultValue(e){const t=e.map((e=>this.#e(h.ParamType.from(e))));return new p.TupleCoder(t,"_").defaultValue()}encode(e,t){(0,r.assertArgumentCount)(t.length,e.length,"types/values length mismatch");const n=e.map((e=>this.#e(h.ParamType.from(e)))),a=new p.TupleCoder(n,"_"),s=new f.Writer;return a.encode(s,t),s.data}decode(e,t,n){const r=e.map((e=>this.#e(h.ParamType.from(e))));return new p.TupleCoder(r,"_").decode(new f.Reader(t,n,A))}static _setDefaultMaxInflation(e){(0,r.assertArgument)("number"==typeof e&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),A=e}static defaultAbiCoder(){return null==w&&(w=new k),w}static getBuiltinCallException(e,t,n){return function(e,t,n,r){let f="missing revert data",a=null,s=null;if(n){f="execution reverted";const e=(0,g.getBytes)(n);if(n=(0,g.hexlify)(n),0===e.length)f+=" (no data present; likely require(false) occurred",a="require(false)";else if(e.length%32!=4)f+=" (could not decode reason; invalid data length)";else if("0x08c379a0"===(0,g.hexlify)(e.slice(0,4)))try{a=r.decode(["string"],e.slice(4))[0],s={signature:"Error(string)",name:"Error",args:[a]},f+=`: ${JSON.stringify(a)}`}catch(e){f+=" (could not decode reason; invalid string data)"}else if("0x4e487b71"===(0,g.hexlify)(e.slice(0,4)))try{const t=Number(r.decode(["uint256"],e.slice(4))[0]);s={signature:"Panic(uint256)",name:"Panic",args:[t]},a=`Panic due to ${m.get(t)||"UNKNOWN"}(${t})`,f+=`: ${a}`}catch(e){f+=" (could not decode panic code)"}else f+=" (unknown custom error)"}const i={to:t.to?(0,b.getAddress)(t.to):null,data:t.data||"0x"};return t.from&&(i.from=(0,b.getAddress)(t.from)),(0,g.makeError)(f,"CALL_EXCEPTION",{action:e,data:n,reason:a,transaction:i,invocation:null,revert:s})}(e,t,n,k.defaultAbiCoder())}}t.AbiCoder=k},9414:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBytes32String=t.encodeBytes32String=void 0;const r=n(5347);t.encodeBytes32String=function(e){const t=(0,r.toUtf8Bytes)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,r.zeroPadBytes)(t,32)},t.decodeBytes32String=function(e){const t=(0,r.getBytes)(e,"bytes");if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");let n=31;for(;0===t[n-1];)n--;return(0,r.toUtf8String)(t.slice(0,n))}},8869:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Reader=t.Writer=t.Coder=t.checkResultErrors=t.Result=t.WordSize=void 0;const r=n(5347);t.WordSize=32;const f=new Uint8Array(t.WordSize),a=["then"],s={},i=new WeakMap;function o(e){return i.get(e)}function l(e,t){i.set(e,t)}function c(e,t){const n=new Error(`deferred error during ABI decoding triggered accessing ${e}`);throw n.error=t,n}function u(e,t,n){return e.indexOf(null)>=0?t.map(((e,t)=>e instanceof d?u(o(e),e,n):e)):e.reduce(((e,r,f)=>{let a=t.getValue(r);return r in e||(n&&a instanceof d&&(a=u(o(a),a,n)),e[r]=a),e}),{})}class d extends Array{#t;constructor(...e){const t=e[0];let n=e[1],f=(e[2]||[]).slice(),i=!0;t!==s&&(n=e,f=[],i=!1),super(n.length),n.forEach(((e,t)=>{this[t]=e}));const u=f.reduce(((e,t)=>("string"==typeof t&&e.set(t,(e.get(t)||0)+1),e)),new Map);if(l(this,Object.freeze(n.map(((e,t)=>{const n=f[t];return null!=n&&1===u.get(n)?n:null})))),this.#t=[],null==this.#t&&this.#t,!i)return;Object.freeze(this);const d=new Proxy(this,{get:(e,t,n)=>{if("string"==typeof t){if(t.match(/^[0-9]+$/)){const n=(0,r.getNumber)(t,"%index");if(n<0||n>=this.length)throw new RangeError("out of result range");const f=e[n];return f instanceof Error&&c(`index ${n}`,f),f}if(a.indexOf(t)>=0)return Reflect.get(e,t,n);const f=e[t];if(f instanceof Function)return function(...t){return f.apply(this===n?e:this,t)};if(!(t in e))return e.getValue.apply(this===n?e:this,[t])}return Reflect.get(e,t,n)}});return l(d,o(this)),d}toArray(e){const t=[];return this.forEach(((n,r)=>{n instanceof Error&&c(`index ${r}`,n),e&&n instanceof d&&(n=n.toArray(e)),t.push(n)})),t}toObject(e){const t=o(this);return t.reduce(((n,f,a)=>((0,r.assert)(null!=f,`value at index ${a} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),u(t,this,e))),{})}slice(e,t){null==e&&(e=0),e<0&&(e+=this.length)<0&&(e=0),null==t&&(t=this.length),t<0&&(t+=this.length)<0&&(t=0),t>this.length&&(t=this.length);const n=o(this),r=[],f=[];for(let a=e;a{this.#n[e]=p(t)}}};class h{allowLoose;#n;#a;#s;#i;#o;constructor(e,t,n){(0,r.defineProperties)(this,{allowLoose:!!t}),this.#n=(0,r.getBytesCopy)(e),this.#s=0,this.#i=null,this.#o=null!=n?n:1024,this.#a=0}get data(){return(0,r.hexlify)(this.#n)}get dataLength(){return this.#n.length}get consumed(){return this.#a}get bytes(){return new Uint8Array(this.#n)}#l(e){if(this.#i)return this.#i.#l(e);this.#s+=e,(0,r.assert)(this.#o<1||this.#s<=this.#o*this.dataLength,`compressed ABI data exceeds inflation ratio of ${this.#o} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:(0,r.getBytesCopy)(this.#n),offset:this.#a,length:e,info:{bytesRead:this.#s,dataLength:this.dataLength}})}#c(e,n,f){let a=Math.ceil(n/t.WordSize)*t.WordSize;return this.#a+a>this.#n.length&&(this.allowLoose&&f&&this.#a+n<=this.#n.length?a=n:(0,r.assert)(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:(0,r.getBytesCopy)(this.#n),length:this.#n.length,offset:this.#a+a})),this.#n.slice(this.#a,this.#a+a)}subReader(e){const t=new h(this.#n.slice(this.#a+e),this.allowLoose,this.#o);return t.#i=this,t}readBytes(e,t){let n=this.#c(0,e,!!t);return this.#l(e),this.#a+=n.length,n.slice(0,e)}readValue(){return(0,r.toBigInt)(this.readBytes(t.WordSize))}readIndex(){return(0,r.toNumber)(this.readBytes(t.WordSize))}}t.Reader=h},1355:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddressCoder=void 0;const r=n(646),f=n(6508),a=n(9976),s=n(8869);class i extends s.Coder{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let n=a.Typed.dereference(t,"string");try{n=(0,r.getAddress)(n)}catch(e){return this._throwError(e.message,t)}return e.writeValue(n)}decode(e){return(0,r.getAddress)((0,f.toBeHex)(e.readValue(),20))}}t.AddressCoder=i},5754:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousCoder=void 0;const r=n(8869);class f extends r.Coder{coder;constructor(e){super(e.name,e.type,"_",e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}t.AnonymousCoder=f},3178:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayCoder=t.unpack=t.pack=void 0;const r=n(5347),f=n(9976),a=n(8869),s=n(5754);function i(e,t,n){let f=[];if(Array.isArray(n))f=n;else if(n&&"object"==typeof n){let e={};f=t.map((t=>{const f=t.localName;return(0,r.assert)(f,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:n}),(0,r.assert)(!e[f],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:n}),e[f]=!0,n[f]}))}else(0,r.assertArgument)(!1,"invalid tuple value","tuple",n);(0,r.assertArgument)(t.length===f.length,"types/value length mismatch","tuple",n);let s=new a.Writer,i=new a.Writer,o=[];t.forEach(((e,t)=>{let n=f[t];if(e.dynamic){let t=i.length;e.encode(i,n);let r=s.writeUpdatableValue();o.push((e=>{r(e+t)}))}else e.encode(s,n)})),o.forEach((e=>{e(s.length)}));let l=e.appendWriter(s);return l+=e.appendWriter(i),l}function o(e,t){let n=[],f=[],s=e.subReader(0);return t.forEach((t=>{let a=null;if(t.dynamic){let n=e.readIndex(),f=s.subReader(n);try{a=t.decode(f)}catch(e){if((0,r.isError)(e,"BUFFER_OVERRUN"))throw e;a=e,a.baseType=t.name,a.name=t.localName,a.type=t.type}}else try{a=t.decode(e)}catch(e){if((0,r.isError)(e,"BUFFER_OVERRUN"))throw e;a=e,a.baseType=t.name,a.name=t.localName,a.type=t.type}if(null==a)throw new Error("investigate");n.push(a),f.push(t.localName||null)})),a.Result.fromItems(n,f)}t.pack=i,t.unpack=o;class l extends a.Coder{coder;length;constructor(e,t,n){super("array",e.type+"["+(t>=0?t:"")+"]",n,-1===t||e.dynamic),(0,r.defineProperties)(this,{coder:e,length:t})}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanCoder=void 0;const r=n(9976),f=n(8869);class a extends f.Coder{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){const n=r.Typed.dereference(t,"bool");return e.writeValue(n?1:0)}decode(e){return!!e.readValue()}}t.BooleanCoder=a},2348:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BytesCoder=t.DynamicBytesCoder=void 0;const r=n(5347),f=n(8869);class a extends f.Coder{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=(0,r.getBytesCopy)(t);let n=e.writeValue(t.length);return n+=e.writeBytes(t),n}decode(e){return e.readBytes(e.readIndex(),!0)}}t.DynamicBytesCoder=a,t.BytesCoder=class extends a{constructor(e){super("bytes",e)}decode(e){return(0,r.hexlify)(super.decode(e))}}},9095:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FixedBytesCoder=void 0;const r=n(5347),f=n(9976),a=n(8869);class s extends a.Coder{size;constructor(e,t){let n="bytes"+String(e);super(n,n,t,!1),(0,r.defineProperties)(this,{size:e},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let n=(0,r.getBytesCopy)(f.Typed.dereference(t,this.type));return n.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(n)}decode(e){return(0,r.hexlify)(e.readBytes(this.size))}}t.FixedBytesCoder=s},8026:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NullCoder=void 0;const r=n(8869),f=new Uint8Array([]);class a extends r.Coder{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes(f)}decode(e){return e.readBytes(0),null}}t.NullCoder=a},7398:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NumberCoder=void 0;const r=n(5347),f=n(9976),a=n(8869),s=BigInt(0),i=BigInt(1),o=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class l extends a.Coder{size;signed;constructor(e,t,n){const f=(t?"int":"uint")+8*e;super(f,f,n,!1),(0,r.defineProperties)(this,{size:e,signed:t},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(e,t){let n=(0,r.getBigInt)(f.Typed.dereference(t,this.type)),l=(0,r.mask)(o,8*a.WordSize);if(this.signed){let e=(0,r.mask)(l,8*this.size-1);(n>e||n<-(e+i))&&this._throwError("value out-of-bounds",t),n=(0,r.toTwos)(n,8*a.WordSize)}else(n(0,r.mask)(l,8*this.size))&&this._throwError("value out-of-bounds",t);return e.writeValue(n)}decode(e){let t=(0,r.mask)(e.readValue(),8*this.size);return this.signed&&(t=(0,r.fromTwos)(t,8*this.size)),t}}t.NumberCoder=l},8766:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringCoder=void 0;const r=n(3948),f=n(9976),a=n(2348);class s extends a.DynamicBytesCoder{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,r.toUtf8Bytes)(f.Typed.dereference(t,"string")))}decode(e){return(0,r.toUtf8String)(super.decode(e))}}t.StringCoder=s},1693:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TupleCoder=void 0;const r=n(8166),f=n(9976),a=n(8869),s=n(3178);class i extends a.Coder{coders;constructor(e,t){let n=!1;const f=[];e.forEach((e=>{e.dynamic&&(n=!0),f.push(e.type)})),super("tuple","tuple("+f.join(",")+")",t,n),(0,r.defineProperties)(this,{coders:Object.freeze(e.slice())})}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});return this.coders.forEach(((n,r)=>{let f=n.localName;f&&1===t[f]&&("length"===f&&(f="_length"),null==e[f]&&(e[f]=e[r]))})),Object.freeze(e)}encode(e,t){const n=f.Typed.dereference(t,"tuple");return(0,s.pack)(e,this.coders,n)}decode(e){return(0,s.unpack)(e,this.coders)}}t.TupleCoder=i},189:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StructFragment=t.FunctionFragment=t.FallbackFragment=t.ConstructorFragment=t.EventFragment=t.ErrorFragment=t.NamedFragment=t.Fragment=t.ParamType=void 0;const r=n(5347),f=n(3562);function a(e){const t=new Set;return e.forEach((e=>t.add(e))),Object.freeze(t)}const s=a("external public payable override".split(" ")),i="constant external internal payable private public pure view override",o=a(i.split(" ")),l="constructor error event fallback function receive struct",c=a(l.split(" ")),u="calldata memory storage payable indexed",d=a(u.split(" ")),p=a([l,u,"tuple returns",i].join(" ").split(" ")),h={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},b=new RegExp("^(\\s*)"),g=new RegExp("^([0-9]+)"),m=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),y=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),v=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");class w{#a;#u;get offset(){return this.#a}get length(){return this.#u.length-this.#a}constructor(e){this.#a=0,this.#u=e.slice()}clone(){return new w(this.#u)}reset(){this.#a=0}#d(e=0,t=0){return new w(this.#u.slice(e,t).map((t=>Object.freeze(Object.assign({},t,{match:t.match-e,linkBack:t.linkBack-e,linkNext:t.linkNext-e})))))}popKeyword(e){const t=this.peek();if("KEYWORD"!==t.type||!e.has(t.text))throw new Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){const t=this.peek();throw new Error(`expected ${e}; got ${t.type} ${JSON.stringify(t.text)}`)}return this.pop().text}popParen(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=this.#d(this.#a+1,e.match+1);return this.#a=e.match+1,t}popParams(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=[];for(;this.#a=this.#u.length)throw new Error("out-of-bounds");return this.#u[this.#a]}peekKeyword(e){const t=this.peekType("KEYWORD");return null!=t&&e.has(t)?t:null}peekType(e){if(0===this.length)return null;const t=this.peek();return t.type===e?t.text:null}pop(){const e=this.peek();return this.#a++,e}toString(){const e=[];for(let t=this.#a;t`}}function A(e){const t=[],n=t=>{const n=s0&&"NUMBER"===t[t.length-1].type){const n=t.pop().text;e=n+e,t[t.length-1].value=(0,r.getNumber)(n)}if(0===t.length||"BRACKET"!==t[t.length-1].type)throw new Error("missing opening bracket");t[t.length-1].text+=e}}else if(o=i.match(m),o){if(l.text=o[1],s+=l.text.length,p.has(l.text)){l.type="KEYWORD";continue}if(l.text.match(v)){l.type="TYPE";continue}l.type="ID"}else{if(o=i.match(g),!o)throw new Error(`unexpected token ${JSON.stringify(i[0])} at position ${s}`);l.text=o[1],l.type="NUMBER",s+=l.text.length}}return new w(t.map((e=>Object.freeze(e))))}function k(e,t){let n=[];for(const r in t.keys())e.has(r)&&n.push(r);if(n.length>1)throw new Error(`conflicting types: ${n.join(", ")}`)}function P(e,t){if(t.peekKeyword(c)){const n=t.pop().text;if(n!==e)throw new Error(`expected ${e}, got ${n}`)}return t.popType("ID")}function E(e,t){const n=new Set;for(;;){const r=e.peekType("KEYWORD");if(null==r||t&&!t.has(r))break;if(e.pop(),n.has(r))throw new Error(`duplicate keywords: ${JSON.stringify(r)}`);n.add(r)}return Object.freeze(n)}function S(e){let t=E(e,o);return k(t,a("constant payable nonpayable".split(" "))),k(t,a("pure view payable nonpayable".split(" "))),t.has("view")?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function O(e,t){return e.popParams().map((e=>D.from(e,t)))}function x(e){if(e.peekType("AT")){if(e.pop(),e.peekType("NUMBER"))return(0,r.getBigInt)(e.pop().text);throw new Error("invalid gas")}return null}function T(e){if(e.length)throw new Error(`unexpected tokens at offset ${e.offset}: ${e.toString()}`)}const C=new RegExp(/^(.*)\[([0-9]*)\]$/);function N(e){const t=e.match(v);if((0,r.assertArgument)(t,"invalid type","type",e),"uint"===e)return"uint256";if("int"===e)return"int256";if(t[2]){const n=parseInt(t[2]);(0,r.assertArgument)(0!==n&&n<=32,"invalid bytes length","type",e)}else if(t[3]){const n=parseInt(t[3]);(0,r.assertArgument)(0!==n&&n<=256&&n%8==0,"invalid numeric width","type",e)}return e}const R={},B=Symbol.for("_ethers_internal"),I="_ParamTypeInternal",_="_ErrorInternal",F="_EventInternal",L="_ConstructorInternal",j="_FallbackInternal",U="_FunctionInternal",M="_StructInternal";class D{name;type;baseType;indexed;components;arrayLength;arrayChildren;constructor(e,t,n,f,a,s,i,o){if((0,r.assertPrivate)(e,R,"ParamType"),Object.defineProperty(this,B,{value:I}),s&&(s=Object.freeze(s.slice())),"array"===f){if(null==i||null==o)throw new Error("")}else if(null!=i||null!=o)throw new Error("");if("tuple"===f){if(null==s)throw new Error("")}else if(null!=s)throw new Error("");(0,r.defineProperties)(this,{name:t,type:n,baseType:f,indexed:a,components:s,arrayLength:i,arrayChildren:o})}format(e){if(null==e&&(e="sighash"),"json"===e){const t=this.name||"";if(this.isArray()){const e=JSON.parse(this.arrayChildren.format("json"));return e.name=t,e.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(e)}const n={type:"tuple"===this.baseType?"tuple":this.type,name:t};return"boolean"==typeof this.indexed&&(n.indexed=this.indexed),this.isTuple()&&(n.components=this.components.map((t=>JSON.parse(t.format(e))))),JSON.stringify(n)}let t="";return this.isArray()?(t+=this.arrayChildren.format(e),t+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?t+="("+this.components.map((t=>t.format(e))).join("full"===e?", ":",")+")":t+=this.type,"sighash"!==e&&(!0===this.indexed&&(t+=" indexed"),"full"===e&&this.name&&(t+=" "+this.name)),t}isArray(){return"array"===this.baseType}isTuple(){return"tuple"===this.baseType}isIndexable(){return null!=this.indexed}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(-1!==this.arrayLength&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map((e=>n.arrayChildren.walk(e,t)))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map(((e,r)=>n.components[r].walk(e,t)))}return t(this.type,e)}#p(e,t,n,r){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(-1!==this.arrayLength&&t.length!==this.arrayLength)throw new Error("array is wrong length");const f=this.arrayChildren,a=t.slice();return a.forEach(((t,r)=>{f.#p(e,t,n,(e=>{a[r]=e}))})),void r(a)}if(this.isTuple()){const f=this.components;let a;if(Array.isArray(t))a=t.slice();else{if(null==t||"object"!=typeof t)throw new Error("invalid tuple value");a=f.map((e=>{if(!e.name)throw new Error("cannot use object value with unnamed components");if(!(e.name in t))throw new Error(`missing value for component ${e.name}`);return t[e.name]}))}if(a.length!==this.components.length)throw new Error("array is wrong length");return a.forEach(((t,r)=>{f[r].#p(e,t,n,(e=>{a[r]=e}))})),void r(a)}const f=n(this.type,t);f.then?e.push(async function(){r(await f)}()):r(f)}async walkAsync(e,t){const n=[],r=[e];return this.#p(n,e,t,(e=>{r[0]=e})),n.length&&await Promise.all(n),r[0]}static from(e,t){if(D.isParamType(e))return e;if("string"==typeof e)try{return D.from(A(e),t)}catch(t){(0,r.assertArgument)(!1,"invalid param type","obj",e)}else if(e instanceof w){let n="",r="",f=null;E(e,a(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(r="tuple",f=e.popParams().map((e=>D.from(e))),n=`tuple(${f.map((e=>e.format())).join(",")})`):(n=N(e.popType("TYPE")),r=n);let s=null,i=null;for(;e.length&&e.peekType("BRACKET");){const t=e.pop();s=new D(R,"",n,r,null,f,i,s),i=t.value,n+=t.text,r="array",f=null}let o=null;if(E(e,d).has("indexed")){if(!t)throw new Error("");o=!0}const l=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new D(R,l,n,r,o,f,i,s)}const n=e.name;(0,r.assertArgument)(!n||"string"==typeof n&&n.match(y),"invalid name","obj.name",n);let f=e.indexed;null!=f&&((0,r.assertArgument)(t,"parameter cannot be indexed","obj.indexed",e.indexed),f=!!f);let s=e.type,i=s.match(C);if(i){const t=parseInt(i[2]||"-1"),r=D.from({type:i[1],components:e.components});return new D(R,n||"",s,"array",f,null,t,r)}if("tuple"===s||s.startsWith("tuple(")||s.startsWith("(")){const t=null!=e.components?e.components.map((e=>D.from(e))):null;return new D(R,n||"",s,"tuple",f,t,null,null)}return s=N(e.type),new D(R,n||"",s,s,f,null,null,null)}static isParamType(e){return e&&e[B]===I}}t.ParamType=D;class z{type;inputs;constructor(e,t,n){(0,r.assertPrivate)(e,R,"Fragment"),n=Object.freeze(n.slice()),(0,r.defineProperties)(this,{type:t,inputs:n})}static from(e){if("string"==typeof e){try{z.from(JSON.parse(e))}catch(e){}return z.from(A(e))}if(e instanceof w)switch(e.peekKeyword(c)){case"constructor":return q.from(e);case"error":return V.from(e);case"event":return K.from(e);case"fallback":case"receive":return Q.from(e);case"function":return J.from(e);case"struct":return W.from(e)}else if("object"==typeof e){switch(e.type){case"constructor":return q.from(e);case"error":return V.from(e);case"event":return K.from(e);case"fallback":case"receive":return Q.from(e);case"function":return J.from(e);case"struct":return W.from(e)}(0,r.assert)(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}(0,r.assertArgument)(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return q.isFragment(e)}static isError(e){return V.isFragment(e)}static isEvent(e){return K.isFragment(e)}static isFunction(e){return J.isFragment(e)}static isStruct(e){return W.isFragment(e)}}t.Fragment=z;class H extends z{name;constructor(e,t,n,f){super(e,t,f),(0,r.assertArgument)("string"==typeof n&&n.match(y),"invalid identifier","name",n),f=Object.freeze(f.slice()),(0,r.defineProperties)(this,{name:n})}}function G(e,t){return"("+t.map((t=>t.format(e))).join("full"===e?", ":",")+")"}t.NamedFragment=H;class V extends H{constructor(e,t,n){super(e,"error",t,n),Object.defineProperty(this,B,{value:_})}get selector(){return(0,f.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("error"),t.push(this.name+G(e,this.inputs)),t.join(" ")}static from(e){if(V.isFragment(e))return e;if("string"==typeof e)return V.from(A(e));if(e instanceof w){const t=P("error",e),n=O(e);return T(e),new V(R,t,n)}return new V(R,e.name,e.inputs?e.inputs.map(D.from):[])}static isFragment(e){return e&&e[B]===_}}t.ErrorFragment=V;class K extends H{anonymous;constructor(e,t,n,f){super(e,"event",t,n),Object.defineProperty(this,B,{value:F}),(0,r.defineProperties)(this,{anonymous:f})}get topicHash(){return(0,f.id)(this.format("sighash"))}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("event"),t.push(this.name+G(e,this.inputs)),"sighash"!==e&&this.anonymous&&t.push("anonymous"),t.join(" ")}static getTopicHash(e,t){return t=(t||[]).map((e=>D.from(e))),new K(R,e,t,!1).topicHash}static from(e){if(K.isFragment(e))return e;if("string"==typeof e)try{return K.from(A(e))}catch(t){(0,r.assertArgument)(!1,"invalid event fragment","obj",e)}else if(e instanceof w){const t=P("event",e),n=O(e,!0),r=!!E(e,a(["anonymous"])).has("anonymous");return T(e),new K(R,t,n,r)}return new K(R,e.name,e.inputs?e.inputs.map((e=>D.from(e,!0))):[],!!e.anonymous)}static isFragment(e){return e&&e[B]===F}}t.EventFragment=K;class q extends z{payable;gas;constructor(e,t,n,f,a){super(e,t,n),Object.defineProperty(this,B,{value:L}),(0,r.defineProperties)(this,{payable:f,gas:a})}format(e){if((0,r.assert)(null!=e&&"sighash"!==e,"cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),"json"===e)return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[`constructor${G(e,this.inputs)}`];return this.payable&&t.push("payable"),null!=this.gas&&t.push(`@${this.gas.toString()}`),t.join(" ")}static from(e){if(q.isFragment(e))return e;if("string"==typeof e)try{return q.from(A(e))}catch(t){(0,r.assertArgument)(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof w){E(e,a(["constructor"]));const t=O(e),n=!!E(e,s).has("payable"),r=x(e);return T(e),new q(R,"constructor",t,n,r)}return new q(R,"constructor",e.inputs?e.inputs.map(D.from):[],!!e.payable,null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[B]===L}}t.ConstructorFragment=q;class Q extends z{payable;constructor(e,t,n){super(e,"fallback",t),Object.defineProperty(this,B,{value:j}),(0,r.defineProperties)(this,{payable:n})}format(e){const t=0===this.inputs.length?"receive":"fallback";if("json"===e){const e=this.payable?"payable":"nonpayable";return JSON.stringify({type:t,stateMutability:e})}return`${t}()${this.payable?" payable":""}`}static from(e){if(Q.isFragment(e))return e;if("string"==typeof e)try{return Q.from(A(e))}catch(t){(0,r.assertArgument)(!1,"invalid fallback fragment","obj",e)}else if(e instanceof w){const t=e.toString(),n=e.peekKeyword(a(["fallback","receive"]));if((0,r.assertArgument)(n,"type must be fallback or receive","obj",t),"receive"===e.popKeyword(a(["fallback","receive"]))){const t=O(e);return(0,r.assertArgument)(0===t.length,"receive cannot have arguments","obj.inputs",t),E(e,a(["payable"])),T(e),new Q(R,[],!0)}let f=O(e);f.length?(0,r.assertArgument)(1===f.length&&"bytes"===f[0].type,"invalid fallback inputs","obj.inputs",f.map((e=>e.format("minimal"))).join(", ")):f=[D.from("bytes")];const s=S(e);if((0,r.assertArgument)("nonpayable"===s||"payable"===s,"fallback cannot be constants","obj.stateMutability",s),E(e,a(["returns"])).has("returns")){const t=O(e);(0,r.assertArgument)(1===t.length&&"bytes"===t[0].type,"invalid fallback outputs","obj.outputs",t.map((e=>e.format("minimal"))).join(", "))}return T(e),new Q(R,f,"payable"===s)}if("receive"===e.type)return new Q(R,[],!0);if("fallback"===e.type){const t=[D.from("bytes")],n="payable"===e.stateMutability;return new Q(R,t,n)}(0,r.assertArgument)(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[B]===j}}t.FallbackFragment=Q;class J extends H{constant;outputs;stateMutability;payable;gas;constructor(e,t,n,f,a,s){super(e,"function",t,f),Object.defineProperty(this,B,{value:U}),a=Object.freeze(a.slice());const i="view"===n||"pure"===n,o="payable"===n;(0,r.defineProperties)(this,{constant:i,gas:s,outputs:a,payable:o,stateMutability:n})}get selector(){return(0,f.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e)))),outputs:this.outputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("function"),t.push(this.name+G(e,this.inputs)),"sighash"!==e&&("nonpayable"!==this.stateMutability&&t.push(this.stateMutability),this.outputs&&this.outputs.length&&(t.push("returns"),t.push(G(e,this.outputs))),null!=this.gas&&t.push(`@${this.gas.toString()}`)),t.join(" ")}static getSelector(e,t){return t=(t||[]).map((e=>D.from(e))),new J(R,e,"view",t,[],null).selector}static from(e){if(J.isFragment(e))return e;if("string"==typeof e)try{return J.from(A(e))}catch(t){(0,r.assertArgument)(!1,"invalid function fragment","obj",e)}else if(e instanceof w){const t=P("function",e),n=O(e),r=S(e);let f=[];E(e,a(["returns"])).has("returns")&&(f=O(e));const s=x(e);return T(e),new J(R,t,r,n,f,s)}let t=e.stateMutability;return null==t&&(t="payable","boolean"==typeof e.constant?(t="view",e.constant||(t="payable","boolean"!=typeof e.payable||e.payable||(t="nonpayable"))):"boolean"!=typeof e.payable||e.payable||(t="nonpayable")),new J(R,e.name,t,e.inputs?e.inputs.map(D.from):[],e.outputs?e.outputs.map(D.from):[],null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[B]===U}}t.FunctionFragment=J;class W extends H{constructor(e,t,n){super(e,"struct",t,n),Object.defineProperty(this,B,{value:M})}format(){throw new Error("@TODO")}static from(e){if("string"==typeof e)try{return W.from(A(e))}catch(t){(0,r.assertArgument)(!1,"invalid struct fragment","obj",e)}else if(e instanceof w){const t=P("struct",e),n=O(e);return T(e),new W(R,t,n)}return new W(R,e.name,e.inputs?e.inputs.map(D.from):[])}static isFragment(e){return e&&e[B]===M}}t.StructFragment=W},8456:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Typed=t.Result=t.TransactionDescription=t.LogDescription=t.ErrorDescription=t.Interface=t.Indexed=t.checkResultErrors=t.StructFragment=t.ParamType=t.NamedFragment=t.FunctionFragment=t.Fragment=t.FallbackFragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.encodeBytes32String=t.decodeBytes32String=t.AbiCoder=void 0;var r=n(954);Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return r.AbiCoder}});var f=n(9414);Object.defineProperty(t,"decodeBytes32String",{enumerable:!0,get:function(){return f.decodeBytes32String}}),Object.defineProperty(t,"encodeBytes32String",{enumerable:!0,get:function(){return f.encodeBytes32String}});var a=n(189);Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return a.ConstructorFragment}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return a.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return a.EventFragment}}),Object.defineProperty(t,"FallbackFragment",{enumerable:!0,get:function(){return a.FallbackFragment}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return a.Fragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return a.FunctionFragment}}),Object.defineProperty(t,"NamedFragment",{enumerable:!0,get:function(){return a.NamedFragment}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return a.ParamType}}),Object.defineProperty(t,"StructFragment",{enumerable:!0,get:function(){return a.StructFragment}});var s=n(5863);Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return s.checkResultErrors}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return s.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return s.Interface}}),Object.defineProperty(t,"ErrorDescription",{enumerable:!0,get:function(){return s.ErrorDescription}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return s.LogDescription}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return s.TransactionDescription}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return s.Result}});var i=n(9976);Object.defineProperty(t,"Typed",{enumerable:!0,get:function(){return i.Typed}})},5863:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Interface=t.Indexed=t.ErrorDescription=t.TransactionDescription=t.LogDescription=t.Result=t.checkResultErrors=void 0;const r=n(2291),f=n(3562),a=n(5347),s=n(954),i=n(8869);Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return i.checkResultErrors}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return i.Result}});const o=n(189),l=n(9976);class c{fragment;name;signature;topic;args;constructor(e,t,n){const r=e.name,f=e.format();(0,a.defineProperties)(this,{fragment:e,name:r,signature:f,topic:t,args:n})}}t.LogDescription=c;class u{fragment;name;args;signature;selector;value;constructor(e,t,n,r){const f=e.name,s=e.format();(0,a.defineProperties)(this,{fragment:e,name:f,args:n,signature:s,selector:t,value:r})}}t.TransactionDescription=u;class d{fragment;name;args;signature;selector;constructor(e,t,n){const r=e.name,f=e.format();(0,a.defineProperties)(this,{fragment:e,name:r,args:n,signature:f,selector:t})}}t.ErrorDescription=d;class p{hash;_isIndexed;static isIndexed(e){return!(!e||!e._isIndexed)}constructor(e){(0,a.defineProperties)(this,{hash:e,_isIndexed:!0})}}t.Indexed=p;const h={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},b={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:e=>`reverted with reason string ${JSON.stringify(e)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:e=>{let t="unknown panic code";return e>=0&&e<=255&&h[e.toString()]&&(t=h[e.toString()]),`reverted with panic code 0x${e.toString(16)} (${t})`}}};class g{fragments;deploy;fallback;receive;#h;#b;#g;#m;constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,this.#g=new Map,this.#h=new Map,this.#b=new Map;const n=[];for(const e of t)try{n.push(o.Fragment.from(e))}catch(t){console.log(`[Warning] Invalid Fragment ${JSON.stringify(e)}:`,t.message)}(0,a.defineProperties)(this,{fragments:Object.freeze(n)});let r=null,f=!1;this.#m=this.getAbiCoder(),this.fragments.forEach(((e,t)=>{let n;switch(e.type){case"constructor":return this.deploy?void console.log("duplicate definition - constructor"):void(0,a.defineProperties)(this,{deploy:e});case"fallback":return void(0===e.inputs.length?f=!0:((0,a.assertArgument)(!r||e.payable!==r.payable,"conflicting fallback fragments",`fragments[${t}]`,e),r=e,f=r.payable));case"function":n=this.#g;break;case"event":n=this.#b;break;case"error":n=this.#h;break;default:return}const s=e.format();n.has(s)||n.set(s,e)})),this.deploy||(0,a.defineProperties)(this,{deploy:o.ConstructorFragment.from("constructor()")}),(0,a.defineProperties)(this,{fallback:r,receive:f})}format(e){const t=e?"minimal":"full";return this.fragments.map((e=>e.format(t)))}formatJson(){const e=this.fragments.map((e=>e.format("json")));return JSON.stringify(e.map((e=>JSON.parse(e))))}getAbiCoder(){return s.AbiCoder.defaultAbiCoder()}#y(e,t,n){if((0,a.isHexString)(e)){const t=e.toLowerCase();for(const e of this.#g.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){const r=[];for(const[t,n]of this.#g)t.split("(")[0]===e&&r.push(n);if(t){const e=t.length>0?t[t.length-1]:null;let n=t.length,f=!0;l.Typed.isTyped(e)&&"overrides"===e.type&&(f=!1,n--);for(let e=r.length-1;e>=0;e--){const t=r[e].inputs.length;t===n||f&&t===n-1||r.splice(e,1)}for(let e=r.length-1;e>=0;e--){const n=r[e].inputs;for(let f=0;f=n.length){if("overrides"===t[f].type)continue;r.splice(e,1);break}if(t[f].type!==n[f].baseType){r.splice(e,1);break}}}}if(1===r.length&&t&&t.length!==r[0].inputs.length){const e=t[t.length-1];(null==e||Array.isArray(e)||"object"!=typeof e)&&r.splice(0,1)}if(0===r.length)return null;if(r.length>1&&n){const t=r.map((e=>JSON.stringify(e.format()))).join(", ");(0,a.assertArgument)(!1,`ambiguous function description (i.e. matches ${t})`,"key",e)}return r[0]}return this.#g.get(o.FunctionFragment.from(e).format())||null}getFunctionName(e){const t=this.#y(e,null,!1);return(0,a.assertArgument)(t,"no matching function","key",e),t.name}hasFunction(e){return!!this.#y(e,null,!1)}getFunction(e,t){return this.#y(e,t||null,!0)}forEachFunction(e){const t=Array.from(this.#g.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n=0;e--)r[e].inputs.length=0;e--){const n=r[e].inputs;for(let f=0;f1&&n){const t=r.map((e=>JSON.stringify(e.format()))).join(", ");(0,a.assertArgument)(!1,`ambiguous event description (i.e. matches ${t})`,"key",e)}return r[0]}return this.#b.get(o.EventFragment.from(e).format())||null}getEventName(e){const t=this.#v(e,null,!1);return(0,a.assertArgument)(t,"no matching event","key",e),t.name}hasEvent(e){return!!this.#v(e,null,!1)}getEvent(e,t){return this.#v(e,t||null,!0)}forEachEvent(e){const t=Array.from(this.#b.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n1){const n=t.map((e=>JSON.stringify(e.format()))).join(", ");(0,a.assertArgument)(!1,`ambiguous error description (i.e. ${n})`,"name",e)}return t[0]}if("Error(string)"===(e=o.ErrorFragment.from(e).format()))return o.ErrorFragment.from("error Error(string)");if("Panic(uint256)"===e)return o.ErrorFragment.from("error Panic(uint256)");return this.#h.get(e)||null}forEachError(e){const t=Array.from(this.#h.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n"string"===e.type?(0,f.id)(t):"bytes"===e.type?(0,r.keccak256)((0,a.hexlify)(t)):("bool"===e.type&&"boolean"==typeof t?t=t?"0x01":"0x00":e.type.match(/^u?int/)?t=(0,a.toBeHex)(t):e.type.match(/^bytes/)?t=(0,a.zeroPadBytes)(t,32):"address"===e.type&&this.#m.encode(["address"],[t]),(0,a.zeroPadValue)((0,a.hexlify)(t),32));for(t.forEach(((t,r)=>{const f=e.inputs[r];f.indexed?null==t?n.push(null):"array"===f.baseType||"tuple"===f.baseType?(0,a.assertArgument)(!1,"filtering with tuples or arrays not supported","contract."+f.name,t):Array.isArray(t)?n.push(t.map((e=>s(f,e)))):n.push(s(f,t)):(0,a.assertArgument)(null==t,"cannot filter non-indexed parameters; must be null","contract."+f.name,t)}));n.length&&null===n[n.length-1];)n.pop();return n}encodeEventLog(e,t){if("string"==typeof e){const t=this.getEvent(e);(0,a.assertArgument)(t,"unknown event","eventFragment",e),e=t}const n=[],s=[],i=[];return e.anonymous||n.push(e.topicHash),(0,a.assertArgument)(t.length===e.inputs.length,"event arguments/values mismatch","values",t),e.inputs.forEach(((e,a)=>{const o=t[a];if(e.indexed)if("string"===e.type)n.push((0,f.id)(o));else if("bytes"===e.type)n.push((0,r.keccak256)(o));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(this.#m.encode([e.type],[o]))}else s.push(e),i.push(o)})),{data:this.#m.encode(s,i),topics:n}}decodeEventLog(e,t,n){if("string"==typeof e){const t=this.getEvent(e);(0,a.assertArgument)(t,"unknown event","eventFragment",e),e=t}if(null!=n&&!e.anonymous){const t=e.topicHash;(0,a.assertArgument)((0,a.isHexString)(n[0],32)&&n[0].toLowerCase()===t,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const r=[],f=[],s=[];e.inputs.forEach(((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(r.push(o.ParamType.from({type:"bytes32",name:e.name})),s.push(!0)):(r.push(e),s.push(!1)):(f.push(e),s.push(!1))}));const l=null!=n?this.#m.decode(r,(0,a.concat)(n)):null,c=this.#m.decode(f,t,!0),u=[],d=[];let h=0,b=0;return e.inputs.forEach(((e,t)=>{let n=null;if(e.indexed)if(null==l)n=new p(null);else if(s[t])n=new p(l[b++]);else try{n=l[b++]}catch(e){n=e}else try{n=c[h++]}catch(e){n=e}u.push(n),d.push(e.name||null)})),i.Result.fromItems(u,d)}parseTransaction(e){const t=(0,a.getBytes)(e.data,"tx.data"),n=(0,a.getBigInt)(null!=e.value?e.value:0,"tx.value"),r=this.getFunction((0,a.hexlify)(t.slice(0,4)));if(!r)return null;const f=this.#m.decode(r.inputs,t.slice(4));return new u(r,r.selector,f,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new c(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){const t=(0,a.hexlify)(e),n=this.getError((0,a.dataSlice)(t,0,4));if(!n)return null;const r=this.#m.decode(n.inputs,(0,a.dataSlice)(t,4));return new d(n,n.selector,r)}static from(e){return e instanceof g?e:"string"==typeof e?new g(JSON.parse(e)):"function"==typeof e.formatJson?new g(e.formatJson()):"function"==typeof e.format?new g(e.format("json")):new g(e)}}t.Interface=g},9976:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Typed=void 0;const r=n(5347),f={};function a(e,t){let n=!1;return t<0&&(n=!0,t*=-1),new o(f,`${n?"":"u"}int${t}`,e,{signed:n,width:t})}function s(e,t){return new o(f,`bytes${t||""}`,e,{size:t})}const i=Symbol.for("_ethers_typed");class o{type;value;#w;_typedSymbol;constructor(e,t,n,a){null==a&&(a=null),(0,r.assertPrivate)(f,e,"Typed"),(0,r.defineProperties)(this,{_typedSymbol:i,type:t,value:n}),this.#w=a,this.format()}format(){if("array"===this.type)throw new Error("");if("dynamicArray"===this.type)throw new Error("");return"tuple"===this.type?`tuple(${this.value.map((e=>e.format())).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return"string"===this.type}get tupleName(){if("tuple"!==this.type)throw TypeError("not a tuple");return this.#w}get arrayLength(){if("array"!==this.type)throw TypeError("not an array");return!0===this.#w?-1:!1===this.#w?this.value.length:null}static from(e,t){return new o(f,e,t)}static uint8(e){return a(e,8)}static uint16(e){return a(e,16)}static uint24(e){return a(e,24)}static uint32(e){return a(e,32)}static uint40(e){return a(e,40)}static uint48(e){return a(e,48)}static uint56(e){return a(e,56)}static uint64(e){return a(e,64)}static uint72(e){return a(e,72)}static uint80(e){return a(e,80)}static uint88(e){return a(e,88)}static uint96(e){return a(e,96)}static uint104(e){return a(e,104)}static uint112(e){return a(e,112)}static uint120(e){return a(e,120)}static uint128(e){return a(e,128)}static uint136(e){return a(e,136)}static uint144(e){return a(e,144)}static uint152(e){return a(e,152)}static uint160(e){return a(e,160)}static uint168(e){return a(e,168)}static uint176(e){return a(e,176)}static uint184(e){return a(e,184)}static uint192(e){return a(e,192)}static uint200(e){return a(e,200)}static uint208(e){return a(e,208)}static uint216(e){return a(e,216)}static uint224(e){return a(e,224)}static uint232(e){return a(e,232)}static uint240(e){return a(e,240)}static uint248(e){return a(e,248)}static uint256(e){return a(e,256)}static uint(e){return a(e,256)}static int8(e){return a(e,-8)}static int16(e){return a(e,-16)}static int24(e){return a(e,-24)}static int32(e){return a(e,-32)}static int40(e){return a(e,-40)}static int48(e){return a(e,-48)}static int56(e){return a(e,-56)}static int64(e){return a(e,-64)}static int72(e){return a(e,-72)}static int80(e){return a(e,-80)}static int88(e){return a(e,-88)}static int96(e){return a(e,-96)}static int104(e){return a(e,-104)}static int112(e){return a(e,-112)}static int120(e){return a(e,-120)}static int128(e){return a(e,-128)}static int136(e){return a(e,-136)}static int144(e){return a(e,-144)}static int152(e){return a(e,-152)}static int160(e){return a(e,-160)}static int168(e){return a(e,-168)}static int176(e){return a(e,-176)}static int184(e){return a(e,-184)}static int192(e){return a(e,-192)}static int200(e){return a(e,-200)}static int208(e){return a(e,-208)}static int216(e){return a(e,-216)}static int224(e){return a(e,-224)}static int232(e){return a(e,-232)}static int240(e){return a(e,-240)}static int248(e){return a(e,-248)}static int256(e){return a(e,-256)}static int(e){return a(e,-256)}static bytes1(e){return s(e,1)}static bytes2(e){return s(e,2)}static bytes3(e){return s(e,3)}static bytes4(e){return s(e,4)}static bytes5(e){return s(e,5)}static bytes6(e){return s(e,6)}static bytes7(e){return s(e,7)}static bytes8(e){return s(e,8)}static bytes9(e){return s(e,9)}static bytes10(e){return s(e,10)}static bytes11(e){return s(e,11)}static bytes12(e){return s(e,12)}static bytes13(e){return s(e,13)}static bytes14(e){return s(e,14)}static bytes15(e){return s(e,15)}static bytes16(e){return s(e,16)}static bytes17(e){return s(e,17)}static bytes18(e){return s(e,18)}static bytes19(e){return s(e,19)}static bytes20(e){return s(e,20)}static bytes21(e){return s(e,21)}static bytes22(e){return s(e,22)}static bytes23(e){return s(e,23)}static bytes24(e){return s(e,24)}static bytes25(e){return s(e,25)}static bytes26(e){return s(e,26)}static bytes27(e){return s(e,27)}static bytes28(e){return s(e,28)}static bytes29(e){return s(e,29)}static bytes30(e){return s(e,30)}static bytes31(e){return s(e,31)}static bytes32(e){return s(e,32)}static address(e){return new o(f,"address",e)}static bool(e){return new o(f,"bool",!!e)}static bytes(e){return new o(f,"bytes",e)}static string(e){return new o(f,"string",e)}static array(e,t){throw new Error("not implemented yet")}static tuple(e,t){throw new Error("not implemented yet")}static overrides(e){return new o(f,"overrides",Object.assign({},e))}static isTyped(e){return e&&"object"==typeof e&&"_typedSymbol"in e&&e._typedSymbol===i}static dereference(e,t){if(o.isTyped(e)){if(e.type!==t)throw new Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}}t.Typed=o},7262:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getIcapAddress=t.getAddress=void 0;const r=n(2291),f=n(5347),a=BigInt(0),s=BigInt(36);function i(e){const t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let e=0;e<40;e++)n[e]=t[e].charCodeAt(0);const a=(0,f.getBytes)((0,r.keccak256)(n));for(let e=0;e<40;e+=2)a[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&a[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}const o={};for(let e=0;e<10;e++)o[String(e)]=String(e);for(let e=0;e<26;e++)o[String.fromCharCode(65+e)]=String(10+e);function l(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>o[e])).join("");for(;t.length>=15;){let e=t.substring(0,15);t=parseInt(e,10)%97+t.substring(e.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n="0"+n;return n}const c=function(){const e={};for(let t=0;t<36;t++)e["0123456789abcdefghijklmnopqrstuvwxyz"[t]]=BigInt(t);return e}();function u(e){if((0,f.assertArgument)("string"==typeof e,"invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);const t=i(e);return(0,f.assertArgument)(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,f.assertArgument)(e.substring(2,4)===l(e),"bad icap checksum","address",e);let t=function(e){e=e.toLowerCase();let t=a;for(let n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=void 0;const r=n(5347),f=n(7262);function a(e){return e&&"function"==typeof e.getAddress}async function s(e,t){const n=await t;return null!=n&&"0x0000000000000000000000000000000000000000"!==n||((0,r.assert)("string"!=typeof e,"unconfigured name","UNCONFIGURED_NAME",{value:e}),(0,r.assertArgument)(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),(0,f.getAddress)(n)}t.isAddressable=a,t.isAddress=function(e){try{return(0,f.getAddress)(e),!0}catch(e){}return!1},t.resolveAddress=function(e,t){return"string"==typeof e?e.match(/^0x[0-9a-f]{40}$/i)?(0,f.getAddress)(e):((0,r.assert)(null!=t,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),s(e,t.resolveName(e))):a(e)?s(e,e.getAddress()):e&&"function"==typeof e.then?s(e,e):void(0,r.assertArgument)(!1,"unsupported addressable value","target",e)}},1891:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCreate2Address=t.getCreateAddress=void 0;const r=n(2291),f=n(5347),a=n(7262);t.getCreateAddress=function(e){const t=(0,a.getAddress)(e.from);let n=(0,f.getBigInt)(e.nonce,"tx.nonce").toString(16);return n="0"===n?"0x":n.length%2?"0x0"+n:"0x"+n,(0,a.getAddress)((0,f.dataSlice)((0,r.keccak256)((0,f.encodeRlp)([t,n])),12))},t.getCreate2Address=function(e,t,n){const s=(0,a.getAddress)(e),i=(0,f.getBytes)(t,"salt"),o=(0,f.getBytes)(n,"initCodeHash");return(0,f.assertArgument)(32===i.length,"salt must be 32 bytes","salt",t),(0,f.assertArgument)(32===o.length,"initCodeHash must be 32 bytes","initCodeHash",n),(0,a.getAddress)((0,f.dataSlice)((0,r.keccak256)((0,f.concat)(["0xff",s,i,o])),12))}},646:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=void 0;var r=n(7262);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return r.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return r.getIcapAddress}});var f=n(1891);Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return f.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return f.getCreate2Address}});var a=n(345);Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return a.isAddressable}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return a.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return a.resolveAddress}})},5239:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroAddress=void 0,t.ZeroAddress="0x0000000000000000000000000000000000000000"},5255:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroHash=void 0,t.ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},1295:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=t.ZeroHash=t.ZeroAddress=void 0;var r=n(5239);Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return r.ZeroAddress}});var f=n(5255);Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return f.ZeroHash}});var a=n(9197);Object.defineProperty(t,"N",{enumerable:!0,get:function(){return a.N}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return a.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return a.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return a.MinInt256}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return a.MaxInt256}});var s=n(6245);Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return s.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return s.MessagePrefix}})},9197:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=void 0,t.N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),t.WeiPerEther=BigInt("1000000000000000000"),t.MaxUint256=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),t.MinInt256=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),t.MaxInt256=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},6245:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=void 0,t.EtherSymbol="Ξ",t.MessagePrefix="Ethereum Signed Message:\n"},1008:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Contract=t.BaseContract=t.resolveArgs=t.copyOverrides=void 0;const r=n(8456),f=n(646),a=n(3807),s=n(5347),i=n(6526),o=BigInt(0);function l(e){return e&&"function"==typeof e.call}function c(e){return e&&"function"==typeof e.estimateGas}function u(e){return e&&"function"==typeof e.resolveName}function d(e){return e&&"function"==typeof e.sendTransaction}function p(e){if(null!=e){if(u(e))return e;if(e.provider)return e.provider}}class h{#A;fragment;constructor(e,t,n){if((0,s.defineProperties)(this,{fragment:t}),t.inputs.lengthnull==n[t]?null:e.walkAsync(n[t],((e,t)=>"address"===e?Array.isArray(t)?Promise.all(t.map((e=>(0,f.resolveAddress)(e,a)))):(0,f.resolveAddress)(t,a):t)))));return e.interface.encodeFilterTopics(t,r)}()}getTopicFilter(){return this.#A}}function b(e,t){return null==e?null:"function"==typeof e[t]?e:e.provider&&"function"==typeof e.provider[t]?e.provider:null}function g(e){return null==e?null:e.provider||null}async function m(e,t){const n=r.Typed.dereference(e,"overrides");(0,s.assertArgument)("object"==typeof n,"invalid overrides parameter","overrides",e);const f=(0,a.copyRequest)(n);return(0,s.assertArgument)(null==f.to||(t||[]).indexOf("to")>=0,"cannot override to","overrides.to",f.to),(0,s.assertArgument)(null==f.data||(t||[]).indexOf("data")>=0,"cannot override data","overrides.data",f.data),f.from&&(f.from=f.from),f}async function y(e,t,n){const a=b(e,"resolveName"),s=u(a)?a:null;return await Promise.all(t.map(((e,t)=>e.walkAsync(n[t],((e,t)=>(t=r.Typed.dereference(t,e),"address"===e?(0,f.resolveAddress)(t,s):t))))))}function v(e){const t=async function(t){const n=await m(t,["data"]);n.to=await e.getAddress(),n.from&&(n.from=await(0,f.resolveAddress)(n.from,p(e.runner)));const r=e.interface,a=(0,s.getBigInt)(n.value||o,"overrides.value")===o,i="0x"===(n.data||"0x");!r.fallback||r.fallback.payable||!r.receive||i||a||(0,s.assertArgument)(!1,"cannot send data to receive or send value to non-payable fallback","overrides",t),(0,s.assertArgument)(r.fallback||i,"cannot send data to receive-only contract","overrides.data",n.data);const l=r.receive||r.fallback&&r.fallback.payable;return(0,s.assertArgument)(l||a,"cannot send value to non-payable fallback","overrides.value",n.value),(0,s.assertArgument)(r.fallback||i,"cannot send data to receive-only contract","overrides.data",n.data),n},n=async function(n){const r=e.runner;(0,s.assert)(d(r),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const f=await r.sendTransaction(await t(n)),a=g(e.runner);return new i.ContractTransactionResponse(e.interface,a,f)},r=async e=>await n(e);return(0,s.defineProperties)(r,{_contract:e,estimateGas:async function(n){const r=b(e.runner,"estimateGas");return(0,s.assert)(c(r),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await r.estimateGas(await t(n))},populateTransaction:t,send:n,staticCall:async function(n){const r=b(e.runner,"call");(0,s.assert)(l(r),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const f=await t(n);try{return await r.call(f)}catch(t){if((0,s.isCallException)(t)&&t.data)throw e.interface.makeError(t.data,f);throw t}}}),r}t.copyOverrides=m,t.resolveArgs=y;const w=Symbol.for("_ethersInternal_contract"),A=new WeakMap;function k(e){return A.get(e[w])}async function P(e,t){let n,r=null;if(Array.isArray(t)){const r=function(t){if((0,s.isHexString)(t,32))return t;const n=e.interface.getEvent(t);return(0,s.assertArgument)(n,"unknown fragment","name",t),n.topicHash};n=t.map((e=>null==e?null:Array.isArray(e)?e.map(r):r(e)))}else"*"===t?n=[null]:"string"==typeof t?(0,s.isHexString)(t,32)?n=[t]:(r=e.interface.getEvent(t),(0,s.assertArgument)(r,"unknown fragment","event",t),n=[r.topicHash]):(f=t)&&"object"==typeof f&&"getTopicFilter"in f&&"function"==typeof f.getTopicFilter&&f.fragment?n=await t.getTopicFilter():"fragment"in t?(r=t.fragment,n=[r.topicHash]):(0,s.assertArgument)(!1,"unknown event name","event",t);var f;return n=n.map((e=>{if(null==e)return null;if(Array.isArray(e)){const t=Array.from(new Set(e.map((e=>e.toLowerCase()))).values());return 1===t.length?t[0]:(t.sort(),t)}return e.toLowerCase()})),{fragment:r,tag:n.map((e=>null==e?"null":Array.isArray(e)?e.join("|"):e)).join("&"),topics:n}}async function E(e,t){const{subs:n}=k(e);return n.get((await P(e,t)).tag)||null}async function S(e,t,n){const r=g(e.runner);(0,s.assert)(r,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});const{fragment:f,tag:a,topics:o}=await P(e,n),{addr:l,subs:c}=k(e);let u=c.get(a);if(!u){const t={address:l||e,topics:o},s=t=>{let r=f;if(null==r)try{r=e.interface.getEvent(t.topics[0])}catch(e){}if(r){const a=r,s=f?e.interface.decodeEventLog(f,t.data,t.topics):[];x(e,n,s,(r=>new i.ContractEventPayload(e,r,n,a,t)))}else x(e,n,[],(r=>new i.ContractUnknownEventPayload(e,r,n,t)))};let d=[];u={tag:a,listeners:[],start:()=>{d.length||d.push(r.on(t,s))},stop:async()=>{if(0==d.length)return;let e=d;d=[],await Promise.all(e),r.off(t,s)}},c.set(a,u)}return u}let O=Promise.resolve();async function x(e,t,n,r){try{await O}catch(e){}const f=async function(e,t,n,r){await O;const f=await E(e,t);if(!f)return!1;const a=f.listeners.length;return f.listeners=f.listeners.filter((({listener:t,once:f})=>{const a=Array.from(n);r&&a.push(r(f?null:t));try{t.call(e,...a)}catch(e){}return!f})),0===f.listeners.length&&(f.stop(),k(e).subs.delete(f.tag)),a>0}(e,t,n,r);return O=f,await f}const T=["then"];class C{target;interface;runner;filters;[w];fallback;constructor(e,t,n,a){(0,s.assertArgument)("string"==typeof e||(0,f.isAddressable)(e),"invalid value for Contract target","target",e),null==n&&(n=null);const o=r.Interface.from(t);let l;(0,s.defineProperties)(this,{target:e,runner:n,interface:o}),Object.defineProperty(this,w,{value:{}});let c=null,d=null;if(a){const e=g(n);d=new i.ContractTransactionResponse(this.interface,e,a)}let p=new Map;if("string"==typeof e)if((0,s.isHexString)(e))c=e,l=Promise.resolve(e);else{const t=b(n,"resolveName");if(!u(t))throw(0,s.makeError)("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});l=t.resolveName(e).then((t=>{if(null==t)throw(0,s.makeError)("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return k(this).addr=t,t}))}else l=e.getAddress().then((e=>{if(null==e)throw new Error("TODO");return k(this).addr=e,e}));var h;h={addrPromise:l,addr:c,deployTx:d,subs:p},A.set(this[w],h);const m=new Proxy({},{get:(e,t,n)=>{if("symbol"==typeof t||T.indexOf(t)>=0)return Reflect.get(e,t,n);try{return this.getEvent(t)}catch(e){if(!(0,s.isError)(e,"INVALID_ARGUMENT")||"key"!==e.argument)throw e}},has:(e,t)=>T.indexOf(t)>=0?Reflect.has(e,t):Reflect.has(e,t)||this.interface.hasEvent(String(t))});return(0,s.defineProperties)(this,{filters:m}),(0,s.defineProperties)(this,{fallback:o.receive||o.fallback?v(this):null}),new Proxy(this,{get:(e,t,n)=>{if("symbol"==typeof t||t in e||T.indexOf(t)>=0)return Reflect.get(e,t,n);try{return e.getFunction(t)}catch(e){if(!(0,s.isError)(e,"INVALID_ARGUMENT")||"key"!==e.argument)throw e}},has:(e,t)=>"symbol"==typeof t||t in e||T.indexOf(t)>=0?Reflect.has(e,t):e.interface.hasFunction(t)})}connect(e){return new C(this.target,this.interface,e)}attach(e){return new C(e,this.interface,this.runner)}async getAddress(){return await k(this).addrPromise}async getDeployedCode(){const e=g(this.runner);(0,s.assert)(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const t=await e.getCode(await this.getAddress());return"0x"===t?null:t}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(null!=await this.getDeployedCode())return this;const t=g(this.runner);return(0,s.assert)(null!=t,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise(((e,n)=>{const r=async()=>{try{if(null!=await this.getDeployedCode())return e(this);t.once("block",r)}catch(e){n(e)}};r()}))}deploymentTransaction(){return k(this).deployTx}getFunction(e){"string"!=typeof e&&(e=e.format());const t=function(e,t){const n=function(...n){const r=e.interface.getFunction(t,n);return(0,s.assert)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:n}}),r},r=async function(...t){const r=n(...t);let a={};if(r.inputs.length+1===t.length&&(a=await m(t.pop()),a.from&&(a.from=await(0,f.resolveAddress)(a.from,p(e.runner)))),r.inputs.length!==t.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const i=await y(e.runner,r.inputs,t);return Object.assign({},a,await(0,s.resolveProperties)({to:e.getAddress(),data:e.interface.encodeFunctionData(r,i)}))},a=async function(...e){const t=await u(...e);return 1===t.length?t[0]:t},o=async function(...t){const n=e.runner;(0,s.assert)(d(n),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const f=await n.sendTransaction(await r(...t)),a=g(e.runner);return new i.ContractTransactionResponse(e.interface,a,f)},u=async function(...t){const f=b(e.runner,"call");(0,s.assert)(l(f),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const a=await r(...t);let i="0x";try{i=await f.call(a)}catch(t){if((0,s.isCallException)(t)&&t.data)throw e.interface.makeError(t.data,a);throw t}const o=n(...t);return e.interface.decodeFunctionResult(o,i)},h=async(...e)=>n(...e).constant?await a(...e):await o(...e);return(0,s.defineProperties)(h,{name:e.interface.getFunctionName(t),_contract:e,_key:t,getFragment:n,estimateGas:async function(...t){const n=b(e.runner,"estimateGas");return(0,s.assert)(c(n),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await n.estimateGas(await r(...t))},populateTransaction:r,send:o,staticCall:a,staticCallResult:u}),Object.defineProperty(h,"fragment",{configurable:!1,enumerable:!0,get:()=>{const n=e.interface.getFunction(t);return(0,s.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),n}}),h}(this,e);return t}getEvent(e){return"string"!=typeof e&&(e=e.format()),function(e,t){const n=function(...n){const r=e.interface.getEvent(t,n);return(0,s.assert)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:n}}),r},r=function(...t){return new h(e,n(...t),t)};return(0,s.defineProperties)(r,{name:e.interface.getEventName(t),_contract:e,_key:t,getFragment:n}),Object.defineProperty(r,"fragment",{configurable:!1,enumerable:!0,get:()=>{const n=e.interface.getEvent(t);return(0,s.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),n}}),r}(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,t,n){null==t&&(t=0),null==n&&(n="latest");const{addr:r,addrPromise:f}=k(this),o=r||await f,{fragment:l,topics:c}=await P(this,e),u={address:o,topics:c,fromBlock:t,toBlock:n},d=g(this.runner);return(0,s.assert)(d,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await d.getLogs(u)).map((e=>{let t=l;if(null==t)try{t=this.interface.getEvent(e.topics[0])}catch(e){}if(t)try{return new i.EventLog(e,this.interface,t)}catch(t){return new i.UndecodedEventLog(e,t)}return new a.Log(e,d)}))}async on(e,t){const n=await S(this,"on",e);return n.listeners.push({listener:t,once:!1}),n.start(),this}async once(e,t){const n=await S(this,"once",e);return n.listeners.push({listener:t,once:!0}),n.start(),this}async emit(e,...t){return await x(this,e,t,null)}async listenerCount(e){if(e){const t=await E(this,e);return t?t.listeners.length:0}const{subs:t}=k(this);let n=0;for(const{listeners:e}of t.values())n+=e.length;return n}async listeners(e){if(e){const t=await E(this,e);return t?t.listeners.map((({listener:e})=>e)):[]}const{subs:t}=k(this);let n=[];for(const{listeners:e}of t.values())n=n.concat(e.map((({listener:e})=>e)));return n}async off(e,t){const n=await E(this,e);if(!n)return this;if(t){const e=n.listeners.map((({listener:e})=>e)).indexOf(t);e>=0&&n.listeners.splice(e,1)}return null!=t&&0!==n.listeners.length||(n.stop(),k(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const t=await E(this,e);if(!t)return this;t.stop(),k(this).subs.delete(t.tag)}else{const{subs:e}=k(this);for(const{tag:t,stop:n}of e.values())n(),e.delete(t)}return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return await this.off(e,t)}static buildClass(e){return class extends C{constructor(t,n=null){super(t,e,n)}}}static from(e,t,n){return null==n&&(n=null),new this(e,t,n)}}t.BaseContract=C;class N extends(function(){return C}()){}t.Contract=N},406:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContractFactory=void 0;const r=n(8456),f=n(646),a=n(5347),s=n(1008);class i{interface;bytecode;runner;constructor(e,t,n){const f=r.Interface.from(e);t instanceof Uint8Array||("object"==typeof t&&(t=t.object),t.startsWith("0x")||(t="0x"+t)),t=(0,a.hexlify)((0,a.getBytes)(t)),(0,a.defineProperties)(this,{bytecode:t,interface:f,runner:n||null})}attach(e){return new s.BaseContract(e,this.interface,this.runner)}async getDeployTransaction(...e){let t={};const n=this.interface.deploy;if(n.inputs.length+1===e.length&&(t=await(0,s.copyOverrides)(e.pop())),n.inputs.length!==e.length)throw new Error("incorrect number of arguments to constructor");const r=await(0,s.resolveArgs)(this.runner,n.inputs,e),f=(0,a.concat)([this.bytecode,this.interface.encodeDeploy(r)]);return Object.assign({},t,{data:f})}async deploy(...e){const t=await this.getDeployTransaction(...e);(0,a.assert)(this.runner&&"function"==typeof this.runner.sendTransaction,"factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const n=await this.runner.sendTransaction(t),r=(0,f.getCreateAddress)(n);return new s.BaseContract(r,this.interface,this.runner,n)}connect(e){return new i(this.interface,this.bytecode,e)}static fromSolidity(e,t){(0,a.assertArgument)(null!=e,"bad compiler output","output",e),"string"==typeof e&&(e=JSON.parse(e));const n=e.abi;let r="";return e.bytecode?r=e.bytecode:e.evm&&e.evm.bytecode&&(r=e.evm.bytecode),new this(n,r,t)}}t.ContractFactory=i},9288:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UndecodedEventLog=t.EventLog=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.ContractUnknownEventPayload=t.ContractEventPayload=t.ContractFactory=t.Contract=t.BaseContract=void 0;var r=n(1008);Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return r.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return r.Contract}});var f=n(406);Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return f.ContractFactory}});var a=n(6526);Object.defineProperty(t,"ContractEventPayload",{enumerable:!0,get:function(){return a.ContractEventPayload}}),Object.defineProperty(t,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return a.ContractUnknownEventPayload}}),Object.defineProperty(t,"ContractTransactionReceipt",{enumerable:!0,get:function(){return a.ContractTransactionReceipt}}),Object.defineProperty(t,"ContractTransactionResponse",{enumerable:!0,get:function(){return a.ContractTransactionResponse}}),Object.defineProperty(t,"EventLog",{enumerable:!0,get:function(){return a.EventLog}}),Object.defineProperty(t,"UndecodedEventLog",{enumerable:!0,get:function(){return a.UndecodedEventLog}})},6526:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContractEventPayload=t.ContractUnknownEventPayload=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.UndecodedEventLog=t.EventLog=void 0;const r=n(3807),f=n(5347);class a extends r.Log{interface;fragment;args;constructor(e,t,n){super(e,e.provider);const r=t.decodeEventLog(n,e.data,e.topics);(0,f.defineProperties)(this,{args:r,fragment:n,interface:t})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}t.EventLog=a;class s extends r.Log{error;constructor(e,t){super(e,e.provider),(0,f.defineProperties)(this,{error:t})}}t.UndecodedEventLog=s;class i extends r.TransactionReceipt{#k;constructor(e,t,n){super(n,t),this.#k=e}get logs(){return super.logs.map((e=>{const t=e.topics.length?this.#k.getEvent(e.topics[0]):null;if(t)try{return new a(e,this.#k,t)}catch(t){return new s(e,t)}return e}))}}t.ContractTransactionReceipt=i;class o extends r.TransactionResponse{#k;constructor(e,t,n){super(n,t),this.#k=e}async wait(e,t){const n=await super.wait(e,t);return null==n?null:new i(this.#k,this.provider,n)}}t.ContractTransactionResponse=o;class l extends f.EventPayload{log;constructor(e,t,n,r){super(e,t,n),(0,f.defineProperties)(this,{log:r})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}t.ContractUnknownEventPayload=l,t.ContractEventPayload=class extends l{constructor(e,t,n,r,s){super(e,t,n,new a(s,e.interface,r));const i=e.interface.decodeEventLog(r,this.log.data,this.log.topics);(0,f.defineProperties)(this,{args:i,fragment:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}},7155:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.pbkdf2Sync=t.createHmac=t.createHash=void 0;const r=n(4542),f=n(9e3),a=n(6978),s=n(9483),i=n(5347),o=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("unable to locate global object")}(),l=o.crypto||o.msCrypto;t.createHash=function(e){switch(e){case"sha256":return a.sha256.create();case"sha512":return s.sha512.create()}(0,i.assertArgument)(!1,"invalid hashing algorithm name","algorithm",e)},t.createHmac=function(e,t){const n={sha256:a.sha256,sha512:s.sha512}[e];return(0,i.assertArgument)(null!=n,"invalid hmac algorithm","algorithm",e),r.hmac.create(n,t)},t.pbkdf2Sync=function(e,t,n,r,o){const l={sha256:a.sha256,sha512:s.sha512}[o];return(0,i.assertArgument)(null!=l,"invalid pbkdf2 algorithm","algorithm",o),(0,f.pbkdf2)(l,e,t,{c:n,dkLen:r})},t.randomBytes=function(e){(0,i.assert)(null!=l,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),(0,i.assertArgument)(Number.isInteger(e)&&e>0&&e<=1024,"invalid length","length",e);const t=new Uint8Array(e);return l.getRandomValues(t),t}},3192:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.computeHmac=void 0;const r=n(7155),f=n(5347);let a=!1;const s=function(e,t,n){return(0,r.createHmac)(e,t).update(n).digest()};let i=s;function o(e,t,n){const r=(0,f.getBytes)(t,"key"),a=(0,f.getBytes)(n,"data");return(0,f.hexlify)(i(e,r,a))}t.computeHmac=o,o._=s,o.lock=function(){a=!0},o.register=function(e){if(a)throw new Error("computeHmac is locked");i=e},Object.freeze(o)},2291:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.lock=t.Signature=t.SigningKey=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=void 0;const r=n(3192);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return r.computeHmac}});const f=n(3905);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return f.keccak256}});const a=n(7307);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return a.ripemd160}});const s=n(2862);Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return s.pbkdf2}});const i=n(8964);Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return i.randomBytes}});const o=n(5456);Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return o.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return o.scryptSync}});const l=n(5059);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return l.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return l.sha512}});var c=n(4534);Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return c.SigningKey}});var u=n(7005);Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return u.Signature}}),t.lock=function(){r.computeHmac.lock(),f.keccak256.lock(),s.pbkdf2.lock(),i.randomBytes.lock(),a.ripemd160.lock(),o.scrypt.lock(),o.scryptSync.lock(),l.sha256.lock(),l.sha512.lock(),i.randomBytes.lock()}},3905:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=void 0;const r=n(6534),f=n(5347);let a=!1;const s=function(e){return(0,r.keccak_256)(e)};let i=s;function o(e){const t=(0,f.getBytes)(e,"data");return(0,f.hexlify)(i(t))}t.keccak256=o,o._=s,o.lock=function(){a=!0},o.register=function(e){if(a)throw new TypeError("keccak256 is locked");i=e},Object.freeze(o)},2862:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2=void 0;const r=n(7155),f=n(5347);let a=!1;const s=function(e,t,n,f,a){return(0,r.pbkdf2Sync)(e,t,n,f,a)};let i=s;function o(e,t,n,r,a){const s=(0,f.getBytes)(e,"password"),o=(0,f.getBytes)(t,"salt");return(0,f.hexlify)(i(s,o,n,r,a))}t.pbkdf2=o,o._=s,o.lock=function(){a=!0},o.register=function(e){if(a)throw new Error("pbkdf2 is locked");i=e},Object.freeze(o)},8964:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=void 0;const r=n(7155);let f=!1;const a=function(e){return new Uint8Array((0,r.randomBytes)(e))};let s=a;function i(e){return s(e)}t.randomBytes=i,i._=a,i.lock=function(){f=!0},i.register=function(e){if(f)throw new Error("randomBytes is locked");s=e},Object.freeze(i)},7307:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=void 0;const r=n(6481),f=n(5347);let a=!1;const s=function(e){return(0,r.ripemd160)(e)};let i=s;function o(e){const t=(0,f.getBytes)(e,"data");return(0,f.hexlify)(i(t))}t.ripemd160=o,o._=s,o.lock=function(){a=!0},o.register=function(e){if(a)throw new TypeError("ripemd160 is locked");i=e},Object.freeze(o)},5456:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.scryptSync=t.scrypt=void 0;const r=n(9462),f=n(5347);let a=!1,s=!1;const i=async function(e,t,n,f,a,s,i){return await(0,r.scryptAsync)(e,t,{N:n,r:f,p:a,dkLen:s,onProgress:i})},o=function(e,t,n,f,a,s){return(0,r.scrypt)(e,t,{N:n,r:f,p:a,dkLen:s})};let l=i,c=o;async function u(e,t,n,r,a,s,i){const o=(0,f.getBytes)(e,"passwd"),c=(0,f.getBytes)(t,"salt");return(0,f.hexlify)(await l(o,c,n,r,a,s,i))}function d(e,t,n,r,a,s){const i=(0,f.getBytes)(e,"passwd"),o=(0,f.getBytes)(t,"salt");return(0,f.hexlify)(c(i,o,n,r,a,s))}t.scrypt=u,u._=i,u.lock=function(){s=!0},u.register=function(e){if(s)throw new Error("scrypt is locked");l=e},Object.freeze(u),t.scryptSync=d,d._=o,d.lock=function(){a=!0},d.register=function(e){if(a)throw new Error("scryptSync is locked");c=e},Object.freeze(d)},5059:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=t.sha256=void 0;const r=n(7155),f=n(5347),a=function(e){return(0,r.createHash)("sha256").update(e).digest()},s=function(e){return(0,r.createHash)("sha512").update(e).digest()};let i=a,o=s,l=!1,c=!1;function u(e){const t=(0,f.getBytes)(e,"data");return(0,f.hexlify)(i(t))}function d(e){const t=(0,f.getBytes)(e,"data");return(0,f.hexlify)(o(t))}t.sha256=u,u._=a,u.lock=function(){l=!0},u.register=function(e){if(l)throw new Error("sha256 is locked");i=e},Object.freeze(u),t.sha512=d,d._=s,d.lock=function(){c=!0},d.register=function(e){if(c)throw new Error("sha512 is locked");o=e},Object.freeze(u)},7005:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Signature=void 0;const r=n(1295),f=n(5347),a=BigInt(0),s=BigInt(1),i=BigInt(2),o=BigInt(27),l=BigInt(28),c=BigInt(35),u={};function d(e){return(0,f.zeroPadValue)((0,f.toBeArray)(e),32)}class p{#P;#E;#S;#O;get r(){return this.#P}set r(e){(0,f.assertArgument)(32===(0,f.dataLength)(e),"invalid r","value",e),this.#P=(0,f.hexlify)(e)}get s(){return this.#E}set s(e){(0,f.assertArgument)(32===(0,f.dataLength)(e),"invalid s","value",e);const t=(0,f.hexlify)(e);(0,f.assertArgument)(parseInt(t.substring(0,3))<8,"non-canonical s","value",t),this.#E=t}get v(){return this.#S}set v(e){const t=(0,f.getNumber)(e,"value");(0,f.assertArgument)(27===t||28===t,"invalid v","v",e),this.#S=t}get networkV(){return this.#O}get legacyChainId(){const e=this.networkV;return null==e?null:p.getChainId(e)}get yParity(){return 27===this.v?0:1}get yParityAndS(){const e=(0,f.getBytes)(this.s);return this.yParity&&(e[0]|=128),(0,f.hexlify)(e)}get compactSerialized(){return(0,f.concat)([this.r,this.yParityAndS])}get serialized(){return(0,f.concat)([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(e,t,n,r){(0,f.assertPrivate)(e,u,"Signature"),this.#P=t,this.#E=n,this.#S=r,this.#O=null}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const e=new p(u,this.r,this.s,this.v);return this.networkV&&(e.#O=this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:null!=e?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){const t=(0,f.getBigInt)(e,"v");return t==o||t==l?a:((0,f.assertArgument)(t>=c,"invalid EIP-155 v","v",e),(t-c)/i)}static getChainIdV(e,t){return(0,f.getBigInt)(e)*i+BigInt(35+t-27)}static getNormalizedV(e){const t=(0,f.getBigInt)(e);return t===a||t===o?27:t===s||t===l?28:((0,f.assertArgument)(t>=c,"invalid v","v",e),t&s?27:28)}static from(e){function t(t,n){(0,f.assertArgument)(t,n,"signature",e)}if(null==e)return new p(u,r.ZeroHash,r.ZeroHash,27);if("string"==typeof e){const n=(0,f.getBytes)(e,"signature");if(64===n.length){const e=(0,f.hexlify)(n.slice(0,32)),t=n.slice(32,64),r=128&t[0]?28:27;return t[0]&=127,new p(u,e,(0,f.hexlify)(t),r)}if(65===n.length){const e=(0,f.hexlify)(n.slice(0,32)),r=n.slice(32,64);t(!(128&r[0]),"non-canonical s");const a=p.getNormalizedV(n[64]);return new p(u,e,(0,f.hexlify)(r),a)}t(!1,"invalid raw signature length")}if(e instanceof p)return e.clone();const n=e.r;t(null!=n,"missing r");const a=d(n),s=function(e,n){if(null!=e)return d(e);if(null!=n){t((0,f.isHexString)(n,32),"invalid yParityAndS");const e=(0,f.getBytes)(n);return e[0]&=127,(0,f.hexlify)(e)}t(!1,"missing s")}(e.s,e.yParityAndS);t(!(128&(0,f.getBytes)(s)[0]),"non-canonical s");const{networkV:i,v:o}=function(e,n,r){if(null!=e){const t=(0,f.getBigInt)(e);return{networkV:t>=c?t:void 0,v:p.getNormalizedV(t)}}if(null!=n)return t((0,f.isHexString)(n,32),"invalid yParityAndS"),{v:128&(0,f.getBytes)(n)[0]?28:27};if(null!=r){switch((0,f.getNumber)(r,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),l=new p(u,a,s,o);return i&&(l.#O=i),t(null==e.yParity||(0,f.getNumber)(e.yParity,"sig.yParity")===l.yParity,"yParity mismatch"),t(null==e.yParityAndS||e.yParityAndS===l.yParityAndS,"yParityAndS mismatch"),l}}t.Signature=p},4534:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SigningKey=void 0;const r=n(985),f=n(5347),a=n(7005);class s{#x;constructor(e){(0,f.assertArgument)(32===(0,f.dataLength)(e),"invalid private key","privateKey","[REDACTED]"),this.#x=(0,f.hexlify)(e)}get privateKey(){return this.#x}get publicKey(){return s.computePublicKey(this.#x)}get compressedPublicKey(){return s.computePublicKey(this.#x,!0)}sign(e){(0,f.assertArgument)(32===(0,f.dataLength)(e),"invalid digest length","digest",e);const t=r.secp256k1.sign((0,f.getBytesCopy)(e),(0,f.getBytesCopy)(this.#x),{lowS:!0});return a.Signature.from({r:(0,f.toBeHex)(t.r,32),s:(0,f.toBeHex)(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){const t=s.computePublicKey(e);return(0,f.hexlify)(r.secp256k1.getSharedSecret((0,f.getBytesCopy)(this.#x),(0,f.getBytes)(t),!1))}static computePublicKey(e,t){let n=(0,f.getBytes)(e,"key");if(32===n.length){const e=r.secp256k1.getPublicKey(n,!!t);return(0,f.hexlify)(e)}if(64===n.length){const e=new Uint8Array(65);e[0]=4,e.set(n,1),n=e}const a=r.secp256k1.ProjectivePoint.fromHex(n);return(0,f.hexlify)(a.toRawBytes(t))}static recoverPublicKey(e,t){(0,f.assertArgument)(32===(0,f.dataLength)(e),"invalid digest length","digest",e);const n=a.Signature.from(t);let s=r.secp256k1.Signature.fromCompact((0,f.getBytesCopy)((0,f.concat)([n.r,n.s])));s=s.addRecoveryBit(n.yParity);const i=s.recoverPublicKey((0,f.getBytesCopy)(e));return(0,f.assertArgument)(null!=i,"invalid signautre for digest","signature",t),"0x"+i.toHex(!1)}static addPoints(e,t,n){const f=r.secp256k1.ProjectivePoint.fromHex(s.computePublicKey(e).substring(2)),a=r.secp256k1.ProjectivePoint.fromHex(s.computePublicKey(t).substring(2));return"0x"+f.add(a).toHex(!!n)}}t.SigningKey=s},1752:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=t.UndecodedEventLog=t.EventLog=t.ContractUnknownEventPayload=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.ContractEventPayload=t.ContractFactory=t.Contract=t.BaseContract=t.MessagePrefix=t.EtherSymbol=t.ZeroHash=t.N=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.ZeroAddress=t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=t.Typed=t.TransactionDescription=t.Result=t.LogDescription=t.Interface=t.Indexed=t.ErrorDescription=t.checkResultErrors=t.StructFragment=t.ParamType=t.NamedFragment=t.FunctionFragment=t.FallbackFragment=t.Fragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.AbiCoder=t.encodeBytes32String=t.decodeBytes32String=t.version=void 0,t.EnsPlugin=t.Network=t.EnsResolver=t.WebSocketProvider=t.SocketProvider=t.IpcSocketProvider=t.QuickNodeProvider=t.PocketProvider=t.InfuraWebSocketProvider=t.InfuraProvider=t.EtherscanProvider=t.CloudflareProvider=t.ChainstackProvider=t.AnkrProvider=t.AlchemyProvider=t.BrowserProvider=t.JsonRpcSigner=t.JsonRpcProvider=t.JsonRpcApiProvider=t.FallbackProvider=t.AbstractProvider=t.VoidSigner=t.NonceManager=t.AbstractSigner=t.TransactionResponse=t.TransactionReceipt=t.Log=t.FeeData=t.Block=t.getDefaultProvider=t.verifyTypedData=t.TypedDataEncoder=t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=t.verifyMessage=t.hashMessage=t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=t.id=t.SigningKey=t.Signature=t.lock=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=void 0,t.getUint=t.getNumber=t.getBigInt=t.FixedNumber=t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.isError=t.isCallException=t.makeError=t.assertPrivate=t.assertNormalize=t.assertArgumentCount=t.assertArgument=t.assert=t.resolveProperties=t.defineProperties=t.zeroPadValue=t.zeroPadBytes=t.stripZerosLeft=t.isBytesLike=t.isHexString=t.hexlify=t.getBytesCopy=t.getBytes=t.dataSlice=t.dataLength=t.concat=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=t.Transaction=t.recoverAddress=t.computeAddress=t.accessListify=t.showThrottleMessage=t.copyRequest=t.UnmanagedSubscriber=t.SocketSubscriber=t.SocketPendingSubscriber=t.SocketEventSubscriber=t.SocketBlockSubscriber=t.MulticoinProviderPlugin=t.NetworkPlugin=t.GasCostPlugin=t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EtherscanPlugin=void 0,t.wordlists=t.WordlistOwlA=t.WordlistOwl=t.LangEn=t.Wordlist=t.encryptKeystoreJsonSync=t.encryptKeystoreJson=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.decryptCrowdsaleJson=t.isKeystoreJson=t.isCrowdsaleJson=t.getIndexedAccountPath=t.getAccountPath=t.defaultPath=t.Wallet=t.HDNodeVoidWallet=t.HDNodeWallet=t.BaseWallet=t.Mnemonic=t.uuidV4=t.encodeRlp=t.decodeRlp=t.Utf8ErrorFuncs=t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.mask=t.toTwos=t.fromTwos=t.toQuantity=t.toNumber=t.toBeHex=t.toBigInt=t.toBeArray=void 0;var r=n(4586);Object.defineProperty(t,"version",{enumerable:!0,get:function(){return r.version}});var f=n(8456);Object.defineProperty(t,"decodeBytes32String",{enumerable:!0,get:function(){return f.decodeBytes32String}}),Object.defineProperty(t,"encodeBytes32String",{enumerable:!0,get:function(){return f.encodeBytes32String}}),Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return f.AbiCoder}}),Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return f.ConstructorFragment}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return f.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return f.EventFragment}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return f.Fragment}}),Object.defineProperty(t,"FallbackFragment",{enumerable:!0,get:function(){return f.FallbackFragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return f.FunctionFragment}}),Object.defineProperty(t,"NamedFragment",{enumerable:!0,get:function(){return f.NamedFragment}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return f.ParamType}}),Object.defineProperty(t,"StructFragment",{enumerable:!0,get:function(){return f.StructFragment}}),Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return f.checkResultErrors}}),Object.defineProperty(t,"ErrorDescription",{enumerable:!0,get:function(){return f.ErrorDescription}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return f.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return f.Interface}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return f.LogDescription}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return f.Result}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return f.TransactionDescription}}),Object.defineProperty(t,"Typed",{enumerable:!0,get:function(){return f.Typed}});var a=n(646);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return a.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return a.getIcapAddress}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return a.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return a.getCreate2Address}}),Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return a.isAddressable}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return a.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return a.resolveAddress}});var s=n(1295);Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return s.ZeroAddress}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return s.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return s.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return s.MinInt256}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return s.MaxInt256}}),Object.defineProperty(t,"N",{enumerable:!0,get:function(){return s.N}}),Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return s.ZeroHash}}),Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return s.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return s.MessagePrefix}});var i=n(9288);Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return i.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return i.Contract}}),Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return i.ContractFactory}}),Object.defineProperty(t,"ContractEventPayload",{enumerable:!0,get:function(){return i.ContractEventPayload}}),Object.defineProperty(t,"ContractTransactionReceipt",{enumerable:!0,get:function(){return i.ContractTransactionReceipt}}),Object.defineProperty(t,"ContractTransactionResponse",{enumerable:!0,get:function(){return i.ContractTransactionResponse}}),Object.defineProperty(t,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return i.ContractUnknownEventPayload}}),Object.defineProperty(t,"EventLog",{enumerable:!0,get:function(){return i.EventLog}}),Object.defineProperty(t,"UndecodedEventLog",{enumerable:!0,get:function(){return i.UndecodedEventLog}});var o=n(2291);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return o.computeHmac}}),Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return o.randomBytes}}),Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return o.keccak256}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return o.ripemd160}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return o.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return o.sha512}}),Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return o.pbkdf2}}),Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return o.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return o.scryptSync}}),Object.defineProperty(t,"lock",{enumerable:!0,get:function(){return o.lock}}),Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return o.Signature}}),Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return o.SigningKey}});var l=n(3562);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return l.id}}),Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return l.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return l.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return l.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return l.dnsEncode}}),Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return l.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return l.verifyMessage}}),Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return l.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return l.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return l.solidityPackedSha256}}),Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return l.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return l.verifyTypedData}});var c=n(3996);Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return c.getDefaultProvider}}),Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return c.Block}}),Object.defineProperty(t,"FeeData",{enumerable:!0,get:function(){return c.FeeData}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return c.Log}}),Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return c.TransactionReceipt}}),Object.defineProperty(t,"TransactionResponse",{enumerable:!0,get:function(){return c.TransactionResponse}}),Object.defineProperty(t,"AbstractSigner",{enumerable:!0,get:function(){return c.AbstractSigner}}),Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return c.NonceManager}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return c.VoidSigner}}),Object.defineProperty(t,"AbstractProvider",{enumerable:!0,get:function(){return c.AbstractProvider}}),Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return c.FallbackProvider}}),Object.defineProperty(t,"JsonRpcApiProvider",{enumerable:!0,get:function(){return c.JsonRpcApiProvider}}),Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return c.JsonRpcProvider}}),Object.defineProperty(t,"JsonRpcSigner",{enumerable:!0,get:function(){return c.JsonRpcSigner}}),Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return c.BrowserProvider}}),Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return c.AlchemyProvider}}),Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return c.AnkrProvider}}),Object.defineProperty(t,"ChainstackProvider",{enumerable:!0,get:function(){return c.ChainstackProvider}}),Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return c.CloudflareProvider}}),Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return c.EtherscanProvider}}),Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return c.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return c.InfuraWebSocketProvider}}),Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return c.PocketProvider}}),Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return c.QuickNodeProvider}}),Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return c.IpcSocketProvider}}),Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return c.SocketProvider}}),Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return c.WebSocketProvider}}),Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return c.EnsResolver}}),Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return c.Network}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return c.EnsPlugin}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return c.EtherscanPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return c.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return c.FetchUrlFeeDataNetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return c.GasCostPlugin}}),Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return c.NetworkPlugin}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return c.MulticoinProviderPlugin}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return c.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return c.SocketEventSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return c.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return c.SocketSubscriber}}),Object.defineProperty(t,"UnmanagedSubscriber",{enumerable:!0,get:function(){return c.UnmanagedSubscriber}}),Object.defineProperty(t,"copyRequest",{enumerable:!0,get:function(){return c.copyRequest}}),Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return c.showThrottleMessage}});var u=n(7778);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return u.accessListify}}),Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return u.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return u.recoverAddress}}),Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return u.Transaction}});var d=n(5347);Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return d.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return d.encodeBase58}}),Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return d.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return d.encodeBase64}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return d.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return d.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return d.dataSlice}}),Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return d.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return d.getBytesCopy}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return d.hexlify}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return d.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return d.isBytesLike}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return d.stripZerosLeft}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return d.zeroPadBytes}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return d.zeroPadValue}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return d.defineProperties}}),Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return d.resolveProperties}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return d.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return d.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return d.assertArgumentCount}}),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return d.assertNormalize}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return d.assertPrivate}}),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return d.makeError}}),Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return d.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return d.isError}}),Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return d.EventPayload}}),Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return d.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return d.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return d.FetchCancelSignal}}),Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return d.FixedNumber}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return d.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return d.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return d.getUint}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return d.toBeArray}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return d.toBigInt}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return d.toBeHex}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return d.toNumber}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return d.toQuantity}}),Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return d.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return d.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return d.mask}}),Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return d.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return d.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return d.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return d.parseUnits}}),Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return d.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return d.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return d.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return d.Utf8ErrorFuncs}}),Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return d.decodeRlp}}),Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return d.encodeRlp}}),Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return d.uuidV4}});var p=n(3279);Object.defineProperty(t,"Mnemonic",{enumerable:!0,get:function(){return p.Mnemonic}}),Object.defineProperty(t,"BaseWallet",{enumerable:!0,get:function(){return p.BaseWallet}}),Object.defineProperty(t,"HDNodeWallet",{enumerable:!0,get:function(){return p.HDNodeWallet}}),Object.defineProperty(t,"HDNodeVoidWallet",{enumerable:!0,get:function(){return p.HDNodeVoidWallet}}),Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return p.Wallet}}),Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return p.defaultPath}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return p.getAccountPath}}),Object.defineProperty(t,"getIndexedAccountPath",{enumerable:!0,get:function(){return p.getIndexedAccountPath}}),Object.defineProperty(t,"isCrowdsaleJson",{enumerable:!0,get:function(){return p.isCrowdsaleJson}}),Object.defineProperty(t,"isKeystoreJson",{enumerable:!0,get:function(){return p.isKeystoreJson}}),Object.defineProperty(t,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return p.decryptCrowdsaleJson}}),Object.defineProperty(t,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return p.decryptKeystoreJsonSync}}),Object.defineProperty(t,"decryptKeystoreJson",{enumerable:!0,get:function(){return p.decryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJson",{enumerable:!0,get:function(){return p.encryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return p.encryptKeystoreJsonSync}});var h=n(6591);Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return h.Wordlist}}),Object.defineProperty(t,"LangEn",{enumerable:!0,get:function(){return h.LangEn}}),Object.defineProperty(t,"WordlistOwl",{enumerable:!0,get:function(){return h.WordlistOwl}}),Object.defineProperty(t,"WordlistOwlA",{enumerable:!0,get:function(){return h.WordlistOwlA}}),Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return h.wordlists}})},1993:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.id=void 0;const r=n(2291),f=n(5347);t.id=function(e){return(0,r.keccak256)((0,f.toUtf8Bytes)(e))}},3562:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=t.TypedDataEncoder=t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=t.verifyMessage=t.hashMessage=t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=t.id=void 0;var r=n(1993);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return r.id}});var f=n(3239);Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return f.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return f.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return f.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return f.dnsEncode}});var a=n(8717);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return a.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return a.verifyMessage}});var s=n(6065);Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return s.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return s.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return s.solidityPackedSha256}});var i=n(7215);Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return i.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return i.verifyTypedData}})},8717:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=t.hashMessage=void 0;const r=n(2291),f=n(1295),a=n(7778),s=n(5347);function i(e){return"string"==typeof e&&(e=(0,s.toUtf8Bytes)(e)),(0,r.keccak256)((0,s.concat)([(0,s.toUtf8Bytes)(f.MessagePrefix),(0,s.toUtf8Bytes)(String(e.length)),e]))}t.hashMessage=i,t.verifyMessage=function(e,t){const n=i(e);return(0,a.recoverAddress)(n,t)}},3239:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=void 0;const r=n(2291),f=n(5347),a=n(3514),s=new Uint8Array(32);function i(e){return(0,f.assertArgument)(0!==e.length,"invalid ENS name; empty component","comp",e),e}function o(e){const t=(0,f.toUtf8Bytes)(l(e)),n=[];if(0===e.length)return n;let r=0;for(let e=0;e{(0,f.assertArgument)(t.length<=n,`label ${JSON.stringify(e)} exceeds ${n} bytes`,"name",e);const r=new Uint8Array(t.length+1);return r.set(t,1),r[0]=r.length-1,r}))))+"00"}},6065:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=void 0;const r=n(646),f=n(2291),a=n(5347),s=new RegExp("^bytes([0-9]+)$"),i=new RegExp("^(u?int)([0-9]*)$"),o=new RegExp("^(.*)\\[([0-9]*)\\]$");function l(e,t,n){switch(e){case"address":return n?(0,a.getBytes)((0,a.zeroPadValue)(t,32)):(0,a.getBytes)((0,r.getAddress)(t));case"string":return(0,a.toUtf8Bytes)(t);case"bytes":return(0,a.getBytes)(t);case"bool":return t=t?"0x01":"0x00",n?(0,a.getBytes)((0,a.zeroPadValue)(t,32)):(0,a.getBytes)(t)}let f=e.match(i);if(f){let r="int"===f[1],s=parseInt(f[2]||"256");return(0,a.assertArgument)((!f[2]||f[2]===String(s))&&s%8==0&&0!==s&&s<=256,"invalid number type","type",e),n&&(s=256),r&&(t=(0,a.toTwos)(t,s)),(0,a.getBytes)((0,a.zeroPadValue)((0,a.toBeArray)(t),s/8))}if(f=e.match(s),f){const r=parseInt(f[1]);return(0,a.assertArgument)(String(r)===f[1]&&0!==r&&r<=32,"invalid bytes type","type",e),(0,a.assertArgument)((0,a.dataLength)(t)===r,`invalid value for ${e}`,"value",t),n?(0,a.getBytes)((0,a.zeroPadBytes)(t,32)):t}if(f=e.match(o),f&&Array.isArray(t)){const n=f[1],r=parseInt(f[2]||String(t.length));(0,a.assertArgument)(r===t.length,`invalid array length for ${e}`,"value",t);const s=[];return t.forEach((function(e){s.push(l(n,e,!0))})),(0,a.getBytes)((0,a.concat)(s))}(0,a.assertArgument)(!1,"invalid type","type",e)}function c(e,t){(0,a.assertArgument)(e.length===t.length,"wrong number of values; expected ${ types.length }","values",t);const n=[];return e.forEach((function(e,r){n.push(l(e,t[r]))})),(0,a.hexlify)((0,a.concat)(n))}t.solidityPacked=c,t.solidityPackedKeccak256=function(e,t){return(0,f.keccak256)(c(e,t))},t.solidityPackedSha256=function(e,t){return(0,f.sha256)(c(e,t))}},7215:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=t.TypedDataEncoder=void 0;const r=n(646),f=n(2291),a=n(7778),s=n(5347),i=n(1993),o=new Uint8Array(32);o.fill(0);const l=BigInt(-1),c=BigInt(0),u=BigInt(1),d=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),p=(0,s.toBeHex)(u,32),h=(0,s.toBeHex)(c,32),b={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},g=["name","version","chainId","verifyingContract","salt"];function m(e){return function(t){return(0,s.assertArgument)("string"==typeof t,`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const y={name:m("name"),version:m("version"),chainId:function(e){const t=(0,s.getBigInt)(e,"domain.chainId");return(0,s.assertArgument)(t>=0,"invalid chain ID","domain.chainId",e),Number.isSafeInteger(t)?Number(t):(0,s.toQuantity)(t)},verifyingContract:function(e){try{return(0,r.getAddress)(e).toLowerCase()}catch(e){}(0,s.assertArgument)(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){const t=(0,s.getBytes)(e,"domain.salt");return(0,s.assertArgument)(32===t.length,'invalid domain value "salt"',"domain.salt",e),(0,s.hexlify)(t)}};function v(e){{const t=e.match(/^(u?)int(\d+)$/);if(t){const n=""===t[1],r=parseInt(t[2]);(0,s.assertArgument)(r%8==0&&0!==r&&r<=256&&t[2]===String(r),"invalid numeric width","type",e);const f=(0,s.mask)(d,n?r-1:r),a=n?(f+u)*l:c;return function(t){const r=(0,s.getBigInt)(t,"value");return(0,s.assertArgument)(r>=a&&r<=f,`value out-of-bounds for ${e}`,"value",r),(0,s.toBeHex)(n?(0,s.toTwos)(r,256):r,32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const n=parseInt(t[1]);return(0,s.assertArgument)(0!==n&&n<=32&&t[1]===String(n),"invalid bytes width","type",e),function(t){const r=(0,s.getBytes)(t);return(0,s.assertArgument)(r.length===n,`invalid length for ${e}`,"value",t),function(e){const t=(0,s.getBytes)(e),n=t.length%32;return n?(0,s.concat)([t,o.slice(n)]):(0,s.hexlify)(t)}(t)}}}switch(e){case"address":return function(e){return(0,s.zeroPadValue)((0,r.getAddress)(e),32)};case"bool":return function(e){return e?p:h};case"bytes":return function(e){return(0,f.keccak256)(e)};case"string":return function(e){return(0,i.id)(e)}}return null}function w(e,t){return`${e}(${t.map((({name:e,type:t})=>t+" "+e)).join(",")})`}function A(e){const t=e.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return t?{base:t[1],index:t[2]+t[4],array:{base:t[1],prefix:t[1]+t[2],count:t[5]?parseInt(t[5]):-1}}:{base:e}}class k{primaryType;#T;get types(){return JSON.parse(this.#T)}#C;#N;constructor(e){this.#C=new Map,this.#N=new Map;const t=new Map,n=new Map,r=new Map,f={};Object.keys(e).forEach((a=>{f[a]=e[a].map((({name:t,type:n})=>{let{base:r,index:f}=A(n);return"int"!==r||e.int||(r="int256"),"uint"!==r||e.uint||(r="uint256"),{name:t,type:r+(f||"")}})),t.set(a,new Set),n.set(a,[]),r.set(a,new Set)})),this.#T=JSON.stringify(f);for(const r in f){const a=new Set;for(const i of f[r]){(0,s.assertArgument)(!a.has(i.name),`duplicate variable name ${JSON.stringify(i.name)} in ${JSON.stringify(r)}`,"types",e),a.add(i.name);const f=A(i.type).base;(0,s.assertArgument)(f!==r,`circular type reference to ${JSON.stringify(f)}`,"types",e),v(f)||((0,s.assertArgument)(n.has(f),`unknown type ${JSON.stringify(f)}`,"types",e),n.get(f).push(r),t.get(r).add(f))}}const a=Array.from(n.keys()).filter((e=>0===n.get(e).length));(0,s.assertArgument)(0!==a.length,"missing primary type","types",e),(0,s.assertArgument)(1===a.length,`ambiguous primary types or unused types: ${a.map((e=>JSON.stringify(e))).join(", ")}`,"types",e),(0,s.defineProperties)(this,{primaryType:a[0]}),function f(a,i){(0,s.assertArgument)(!i.has(a),`circular type reference to ${JSON.stringify(a)}`,"types",e),i.add(a);for(const e of t.get(a))if(n.has(e)){f(e,i);for(const t of i)r.get(t).add(e)}i.delete(a)}(this.primaryType,new Set);for(const[e,t]of r){const n=Array.from(t);n.sort(),this.#C.set(e,w(e,f[e])+n.map((e=>w(e,f[e]))).join(""))}}getEncoder(e){let t=this.#N.get(e);return t||(t=this.#R(e),this.#N.set(e,t)),t}#R(e){{const t=v(e);if(t)return t}const t=A(e).array;if(t){const e=t.prefix,n=this.getEncoder(e);return r=>{(0,s.assertArgument)(-1===t.count||t.count===r.length,`array length mismatch; expected length ${t.count}`,"value",r);let a=r.map(n);return this.#C.has(e)&&(a=a.map(f.keccak256)),(0,f.keccak256)((0,s.concat)(a))}}const n=this.types[e];if(n){const t=(0,i.id)(this.#C.get(e));return e=>{const r=n.map((({name:t,type:n})=>{const r=this.getEncoder(n)(e[t]);return this.#C.has(n)?(0,f.keccak256)(r):r}));return r.unshift(t),(0,s.concat)(r)}}(0,s.assertArgument)(!1,`unknown type: ${e}`,"type",e)}encodeType(e){const t=this.#C.get(e);return(0,s.assertArgument)(t,`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,f.keccak256)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,n){if(v(e))return n(e,t);const r=A(e).array;if(r)return(0,s.assertArgument)(-1===r.count||r.count===t.length,`array length mismatch; expected length ${r.count}`,"value",t),t.map((e=>this._visit(r.prefix,e,n)));const f=this.types[e];if(f)return f.reduce(((e,{name:r,type:f})=>(e[r]=this._visit(f,t[r],n),e)),{});(0,s.assertArgument)(!1,`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new k(e)}static getPrimaryType(e){return k.from(e).primaryType}static hashStruct(e,t,n){return k.from(t).hashStruct(e,n)}static hashDomain(e){const t=[];for(const n in e){if(null==e[n])continue;const r=b[n];(0,s.assertArgument)(r,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),t.push({name:n,type:r})}return t.sort(((e,t)=>g.indexOf(e.name)-g.indexOf(t.name))),k.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,n){return(0,s.concat)(["0x1901",k.hashDomain(e),k.from(t).hash(n)])}static hash(e,t,n){return(0,f.keccak256)(k.encode(e,t,n))}static async resolveNames(e,t,n,r){e=Object.assign({},e);for(const t in e)null==e[t]&&delete e[t];const f={};e.verifyingContract&&!(0,s.isHexString)(e.verifyingContract,20)&&(f[e.verifyingContract]="0x");const a=k.from(t);a.visit(n,((e,t)=>("address"!==e||(0,s.isHexString)(t,20)||(f[t]="0x"),t)));for(const e in f)f[e]=await r(e);return e.verifyingContract&&f[e.verifyingContract]&&(e.verifyingContract=f[e.verifyingContract]),{domain:e,value:n=a.visit(n,((e,t)=>"address"===e&&f[t]?f[t]:t))}}static getPayload(e,t,n){k.hashDomain(e);const r={},f=[];g.forEach((t=>{const n=e[t];null!=n&&(r[t]=y[t](n),f.push({name:t,type:b[t]}))}));const a=k.from(t);t=a.types;const i=Object.assign({},t);return(0,s.assertArgument)(null==i.EIP712Domain,"types must not contain EIP712Domain type","types.EIP712Domain",t),i.EIP712Domain=f,a.encode(n),{types:i,domain:r,primaryType:a.primaryType,message:a.visit(n,((e,t)=>{if(e.match(/^bytes(\d*)/))return(0,s.hexlify)((0,s.getBytes)(t));if(e.match(/^u?int/))return(0,s.getBigInt)(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return(0,s.assertArgument)("string"==typeof t,"invalid string","value",t),t}(0,s.assertArgument)(!1,"unsupported type","type",e)}))}}}t.TypedDataEncoder=k,t.verifyTypedData=function(e,t,n,r){return(0,a.recoverAddress)(k.hash(e,t,n),r)}},4193:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ethers=void 0;const r=n(9990),f=r.__importStar(n(1752));t.ethers=f,r.__exportStar(n(1752),t)},8672:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractProvider=t.UnmanagedSubscriber=void 0;const r=n(646),f=n(1295),a=n(9288),s=n(3562),i=n(7778),o=n(5347),l=n(1691),c=n(5601),u=n(5317),d=n(3807),p=n(4338),h=BigInt(2);function b(e){return e&&"function"==typeof e.then}function g(e,t){return e+":"+JSON.stringify(t,((e,t)=>{if(null==t)return"null";if("bigint"==typeof t)return`bigint:${t.toString()}`;if("string"==typeof t)return t.toLowerCase();if("object"==typeof t&&!Array.isArray(t)){const e=Object.keys(t);return e.sort(),e.reduce(((e,n)=>(e[n]=t[n],e)),{})}return t}))}class m{name;constructor(e){(0,o.defineProperties)(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function y(e){return(e=Array.from(new Set(e).values())).sort(),e}async function v(e,t){if(null==e)throw new Error("invalid event");if(Array.isArray(e)&&(e={topics:e}),"string"==typeof e)switch(e){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:e,tag:e}}if((0,o.isHexString)(e,32)){const t=e.toLowerCase();return{type:"transaction",tag:g("tx",{hash:t}),hash:t}}if(e.orphan){const t=e;return{type:"orphan",tag:g("orphan",t),filter:(n=t,JSON.parse(JSON.stringify(n)))}}var n;if(e.address||e.topics){const n=e,f={topics:(n.topics||[]).map((e=>null==e?null:Array.isArray(e)?y(e.map((e=>e.toLowerCase()))):e.toLowerCase()))};if(n.address){const e=[],a=[],s=n=>{(0,o.isHexString)(n)?e.push(n):a.push((async()=>{e.push(await(0,r.resolveAddress)(n,t))})())};Array.isArray(n.address)?n.address.forEach(s):s(n.address),a.length&&await Promise.all(a),f.address=y(e.map((e=>e.toLowerCase())))}return{filter:f,tag:g("event",f),type:"event"}}(0,o.assertArgument)(!1,"unknown ProviderEvent","event",e)}function w(){return(new Date).getTime()}t.UnmanagedSubscriber=m;const A={cacheTimeout:250,pollingInterval:4e3};function k(e,t){try{const n=P(e,t);if(n)return(0,o.toUtf8String)(n)}catch(e){}return null}function P(e,t){if("0x"===e)return null;try{const n=(0,o.getNumber)((0,o.dataSlice)(e,t,t+32)),r=(0,o.getNumber)((0,o.dataSlice)(e,n,n+32));return(0,o.dataSlice)(e,n+32,n+32+r)}catch(e){}return null}function E(e){const t=(0,o.toBeArray)(e);if(t.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(t,32-t.length),n}function S(e){if(e.length%32==0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}t.AbstractProvider=class{#B;#I;#_;#F;#L;#j;#U;#M;#D;#z;#H;#w;constructor(e,t){if(this.#w=Object.assign({},A,t||{}),"any"===e)this.#j=!0,this.#L=null;else if(e){const t=u.Network.from(e);this.#j=!1,this.#L=Promise.resolve(t),setTimeout((()=>{this.emit("network",t,null)}),0)}else this.#j=!1,this.#L=null;this.#M=-1,this.#U=new Map,this.#B=new Map,this.#I=new Map,this.#_=null,this.#F=!1,this.#D=1,this.#z=new Map,this.#H=!1}get pollingInterval(){return this.#w.pollingInterval}get provider(){return this}get plugins(){return Array.from(this.#I.values())}attachPlugin(e){if(this.#I.get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return this.#I.set(e.name,e.connect(this)),this}getPlugin(e){return this.#I.get(e)||null}get disableCcipRead(){return this.#H}set disableCcipRead(e){this.#H=!!e}async#G(e){const t=this.#w.cacheTimeout;if(t<0)return await this._perform(e);const n=g(e.method,e);let r=this.#U.get(n);return r||(r=this._perform(e),this.#U.set(n,r),setTimeout((()=>{this.#U.get(n)===r&&this.#U.delete(n)}),t)),await r}async ccipReadFetch(e,t,n){if(this.disableCcipRead||0===n.length||null==e.to)return null;const r=e.to.toLowerCase(),f=t.toLowerCase(),a=[];for(let t=0;t=500,`response not found during CCIP fetch: ${u}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:s,errorMessage:u}}),a.push(u)}(0,o.assert)(!1,`error encountered during CCIP fetch: ${a.map((e=>JSON.stringify(e))).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:n,errorMessages:a}})}_wrapBlock(e,t){return new d.Block((0,c.formatBlock)(e),this)}_wrapLog(e,t){return new d.Log((0,c.formatLog)(e),this)}_wrapTransactionReceipt(e,t){return new d.TransactionReceipt((0,c.formatTransactionReceipt)(e),this)}_wrapTransactionResponse(e,t){return new d.TransactionResponse((0,c.formatTransactionResponse)(e),this)}_detectNetwork(){(0,o.assert)(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){(0,o.assert)(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=(0,o.getNumber)(await this.#G({method:"getBlockNumber"}),"%response");return this.#M>=0&&(this.#M=e),e}_getAddress(e){return(0,r.resolveAddress)(e,this)}_getBlockTag(e){if(null==e)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}return(0,o.isHexString)(e)?(0,o.isHexString)(e,32)?e:(0,o.toQuantity)(e):("bigint"==typeof e&&(e=(0,o.getNumber)(e,"blockTag")),"number"==typeof e?e>=0?(0,o.toQuantity)(e):this.#M>=0?(0,o.toQuantity)(this.#M+e):this.getBlockNumber().then((t=>(0,o.toQuantity)(t+e))):void(0,o.assertArgument)(!1,"invalid blockTag","blockTag",e))}_getFilter(e){const t=(e.topics||[]).map((e=>null==e?null:Array.isArray(e)?y(e.map((e=>e.toLowerCase()))):e.toLowerCase())),n="blockHash"in e?e.blockHash:void 0,r=(e,r,f)=>{let a;switch(e.length){case 0:break;case 1:a=e[0];break;default:e.sort(),a=e}if(n&&(null!=r||null!=f))throw new Error("invalid filter");const s={};return a&&(s.address=a),t.length&&(s.topics=t),r&&(s.fromBlock=r),f&&(s.toBlock=f),n&&(s.blockHash=n),s};let f,a,s=[];if(e.address)if(Array.isArray(e.address))for(const t of e.address)s.push(this._getAddress(t));else s.push(this._getAddress(e.address));return"fromBlock"in e&&(f=this._getBlockTag(e.fromBlock)),"toBlock"in e&&(a=this._getBlockTag(e.toBlock)),s.filter((e=>"string"!=typeof e)).length||null!=f&&"string"!=typeof f||null!=a&&"string"!=typeof a?Promise.all([Promise.all(s),f,a]).then((e=>r(e[0],e[1],e[2]))):r(s,f,a)}_getTransactionRequest(e){const t=(0,d.copyRequest)(e),n=[];if(["to","from"].forEach((e=>{if(null==t[e])return;const f=(0,r.resolveAddress)(t[e],this);b(f)?n.push(async function(){t[e]=await f}()):t[e]=f})),null!=t.blockTag){const e=this._getBlockTag(t.blockTag);b(e)?n.push(async function(){t.blockTag=await e}()):t.blockTag=e}return n.length?async function(){return await Promise.all(n),t}():t}async getNetwork(){if(null==this.#L){const e=(async()=>{try{const e=await this._detectNetwork();return this.emit("network",e,null),e}catch(t){throw this.#L===e&&(this.#L=null),t}})();return this.#L=e,(await e).clone()}const e=this.#L,[t,n]=await Promise.all([e,this._detectNetwork()]);return t.chainId!==n.chainId&&(this.#j?(this.emit("network",n,t),this.#L===e&&(this.#L=Promise.resolve(n))):(0,o.assert)(!1,`network changed: ${t.chainId} => ${n.chainId} `,"NETWORK_ERROR",{event:"changed"})),t.clone()}async getFeeData(){const e=await this.getNetwork(),t=async()=>{const{_block:t,gasPrice:n,priorityFee:r}=await(0,o.resolveProperties)({_block:this.#V("latest",!1),gasPrice:(async()=>{try{const e=await this.#G({method:"getGasPrice"});return(0,o.getBigInt)(e,"%response")}catch(e){}return null})(),priorityFee:(async()=>{try{const e=await this.#G({method:"getPriorityFee"});return(0,o.getBigInt)(e,"%response")}catch(e){}return null})()});let f=null,a=null;const s=this._wrapBlock(t,e);return s&&s.baseFeePerGas&&(a=null!=r?r:BigInt("1000000000"),f=s.baseFeePerGas*h+a),new d.FeeData(n,f,a)},n=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(n){const e=new o.FetchRequest(n.url),r=await n.processFunc(t,this,e);return new d.FeeData(r.gasPrice,r.maxFeePerGas,r.maxPriorityFeePerGas)}return await t()}async estimateGas(e){let t=this._getTransactionRequest(e);return b(t)&&(t=await t),(0,o.getBigInt)(await this.#G({method:"estimateGas",transaction:t}),"%response")}async#K(e,t,n){(0,o.assert)(n<10,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},e,{blockTag:t,enableCcipRead:!0})});const f=(0,d.copyRequest)(e);try{return(0,o.hexlify)(await this._perform({method:"call",transaction:f,blockTag:t}))}catch(e){if(!this.disableCcipRead&&(0,o.isCallException)(e)&&e.data&&n>=0&&"latest"===t&&null!=f.to&&"0x556f1830"===(0,o.dataSlice)(e.data,0,4)){const a=e.data,s=await(0,r.resolveAddress)(f.to,this);let i;try{i=function(e){const t={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};(0,o.assert)((0,o.dataLength)(e)>=160,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const n=(0,o.dataSlice)(e,0,32);(0,o.assert)((0,o.dataSlice)(n,0,12)===(0,o.dataSlice)(T,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),t.sender=(0,o.dataSlice)(n,12);try{const n=[],r=(0,o.getNumber)((0,o.dataSlice)(e,32,64)),f=(0,o.getNumber)((0,o.dataSlice)(e,r,r+32)),a=(0,o.dataSlice)(e,r+32);for(let e=0;et[e])),t}((0,o.dataSlice)(e.data,4))}catch(e){(0,o.assert)(!1,e.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:f,info:{data:a}})}(0,o.assert)(i.sender.toLowerCase()===s.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:a,reason:"OffchainLookup",transaction:f,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:i.errorArgs}});const l=await this.ccipReadFetch(f,i.calldata,i.urls);(0,o.assert)(null!=l,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:f,info:{data:e.data,errorArgs:i.errorArgs}});const c={to:s,data:(0,o.concat)([i.selector,x([l,i.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:c});try{const e=await this.#K(c,t,n+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},c),result:e}),e}catch(e){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},c),error:e}),e}}throw e}}async#q(e){const{value:t}=await(0,o.resolveProperties)({network:this.getNetwork(),value:e});return t}async call(e){const{tx:t,blockTag:n}=await(0,o.resolveProperties)({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await this.#q(this.#K(t,n,e.enableCcipRead?0:-1))}async#Q(e,t,n){let r=this._getAddress(t),f=this._getBlockTag(n);return"string"==typeof r&&"string"==typeof f||([r,f]=await Promise.all([r,f])),await this.#q(this.#G(Object.assign(e,{address:r,blockTag:f})))}async getBalance(e,t){return(0,o.getBigInt)(await this.#Q({method:"getBalance"},e,t),"%response")}async getTransactionCount(e,t){return(0,o.getNumber)(await this.#Q({method:"getTransactionCount"},e,t),"%response")}async getCode(e,t){return(0,o.hexlify)(await this.#Q({method:"getCode"},e,t))}async getStorage(e,t,n){const r=(0,o.getBigInt)(t,"position");return(0,o.hexlify)(await this.#Q({method:"getStorage",position:r},e,n))}async broadcastTransaction(e){const{blockNumber:t,hash:n,network:r}=await(0,o.resolveProperties)({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),f=i.Transaction.from(e);if(f.hash!==n)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(f,r).replaceableTransaction(t)}async#V(e,t){if((0,o.isHexString)(e,32))return await this.#G({method:"getBlock",blockHash:e,includeTransactions:t});let n=this._getBlockTag(e);return"string"!=typeof n&&(n=await n),await this.#G({method:"getBlock",blockTag:n,includeTransactions:t})}async getBlock(e,t){const{network:n,params:r}=await(0,o.resolveProperties)({network:this.getNetwork(),params:this.#V(e,!!t)});return null==r?null:this._wrapBlock(r,n)}async getTransaction(e){const{network:t,params:n}=await(0,o.resolveProperties)({network:this.getNetwork(),params:this.#G({method:"getTransaction",hash:e})});return null==n?null:this._wrapTransactionResponse(n,t)}async getTransactionReceipt(e){const{network:t,params:n}=await(0,o.resolveProperties)({network:this.getNetwork(),params:this.#G({method:"getTransactionReceipt",hash:e})});if(null==n)return null;if(null==n.gasPrice&&null==n.effectiveGasPrice){const t=await this.#G({method:"getTransaction",hash:e});if(null==t)throw new Error("report this; could not find tx or effectiveGasPrice");n.effectiveGasPrice=t.gasPrice}return this._wrapTransactionReceipt(n,t)}async getTransactionResult(e){const{result:t}=await(0,o.resolveProperties)({network:this.getNetwork(),result:this.#G({method:"getTransactionResult",hash:e})});return null==t?null:(0,o.hexlify)(t)}async getLogs(e){let t=this._getFilter(e);b(t)&&(t=await t);const{network:n,params:r}=await(0,o.resolveProperties)({network:this.getNetwork(),params:this.#G({method:"getLogs",filter:t})});return r.map((e=>this._wrapLog(e,n)))}_getProvider(e){(0,o.assert)(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await l.EnsResolver.fromName(this,e)}async getAvatar(e){const t=await this.getResolver(e);return t?await t.getAvatar():null}async resolveName(e){const t=await this.getResolver(e);return t?await t.getAddress():null}async lookupAddress(e){e=(0,r.getAddress)(e);const t=(0,s.namehash)(e.substring(2).toLowerCase()+".addr.reverse");try{const n=await l.EnsResolver.getEnsAddress(this),r=new a.Contract(n,["function resolver(bytes32) view returns (address)"],this),s=await r.resolver(t);if(null==s||s===f.ZeroAddress)return null;const i=new a.Contract(s,["function name(bytes32) view returns (string)"],this),o=await i.name(t);return await this.resolveName(o)!==e?null:o}catch(e){if((0,o.isError)(e,"BAD_DATA")&&"0x"===e.value)return null;if((0,o.isError)(e,"CALL_EXCEPTION"))return null;throw e}return null}async waitForTransaction(e,t,n){const r=null!=t?t:1;return 0===r?this.getTransactionReceipt(e):new Promise((async(t,f)=>{let a=null;const s=async n=>{try{const f=await this.getTransactionReceipt(e);if(null!=f&&n-f.blockNumber+1>=r)return t(f),void(a&&(clearTimeout(a),a=null))}catch(e){console.log("EEE",e)}this.once("block",s)};null!=n&&(a=setTimeout((()=>{null!=a&&(a=null,this.off("block",s),f((0,o.makeError)("timeout","TIMEOUT",{reason:"timeout"})))}),n)),s(await this.getBlockNumber())}))}async waitForBlock(e){(0,o.assert)(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const t=this.#z.get(e);t&&(t.timer&&clearTimeout(t.timer),this.#z.delete(e))}_setTimeout(e,t){null==t&&(t=0);const n=this.#D++,r=()=>{this.#z.delete(n),e()};if(this.paused)this.#z.set(n,{timer:null,func:r,time:t});else{const e=setTimeout(r,t);this.#z.set(n,{timer:e,func:r,time:w()})}return n}_forEachSubscriber(e){for(const t of this.#B.values())e(t.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new m(e.type);case"block":{const e=new p.PollingBlockSubscriber(this);return e.pollingInterval=this.pollingInterval,e}case"safe":case"finalized":return new p.PollingBlockTagSubscriber(this,e.type);case"event":return new p.PollingEventSubscriber(this,e.filter);case"transaction":return new p.PollingTransactionSubscriber(this,e.hash);case"orphan":return new p.PollingOrphanSubscriber(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,t){for(const n of this.#B.values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=t,n.started&&t.start(),null!=this.#_&&t.pause(this.#_);break}}async#J(e,t){let n=await v(e,this);return"event"===n.type&&t&&t.length>0&&!0===t[0].removed&&(n=await v({orphan:"drop-log",log:t[0]},this)),this.#B.get(n.tag)||null}async#W(e){const t=await v(e,this),n=t.tag;let r=this.#B.get(n);return r||(r={subscriber:this._getSubscriber(t),tag:n,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},this.#B.set(n,r)),r}async on(e,t){const n=await this.#W(e);return n.listeners.push({listener:t,once:!1}),n.started||(n.subscriber.start(),n.started=!0,null!=this.#_&&n.subscriber.pause(this.#_)),this}async once(e,t){const n=await this.#W(e);return n.listeners.push({listener:t,once:!0}),n.started||(n.subscriber.start(),n.started=!0,null!=this.#_&&n.subscriber.pause(this.#_)),this}async emit(e,...t){const n=await this.#J(e,t);if(!n||0===n.listeners.length)return!1;const r=n.listeners.length;return n.listeners=n.listeners.filter((({listener:n,once:r})=>{const f=new o.EventPayload(this,r?null:n,e);try{n.call(this,...t,f)}catch(e){}return!r})),0===n.listeners.length&&(n.started&&n.subscriber.stop(),this.#B.delete(n.tag)),r>0}async listenerCount(e){if(e){const t=await this.#J(e);return t?t.listeners.length:0}let t=0;for(const{listeners:e}of this.#B.values())t+=e.length;return t}async listeners(e){if(e){const t=await this.#J(e);return t?t.listeners.map((({listener:e})=>e)):[]}let t=[];for(const{listeners:e}of this.#B.values())t=t.concat(e.map((({listener:e})=>e)));return t}async off(e,t){const n=await this.#J(e);if(!n)return this;if(t){const e=n.listeners.map((({listener:e})=>e)).indexOf(t);e>=0&&n.listeners.splice(e,1)}return t&&0!==n.listeners.length||(n.started&&n.subscriber.stop(),this.#B.delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:t,started:n,subscriber:r}=await this.#W(e);n&&r.stop(),this.#B.delete(t)}else for(const[e,{started:t,subscriber:n}]of this.#B)t&&n.stop(),this.#B.delete(e);return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return this.off(e,t)}get destroyed(){return this.#F}destroy(){this.removeAllListeners();for(const e of this.#z.keys())this._clearTimeout(e);this.#F=!0}get paused(){return null!=this.#_}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(this.#M=-1,null!=this.#_){if(this.#_==!!e)return;(0,o.assert)(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber((t=>t.pause(e))),this.#_=!!e;for(const e of this.#z.values())e.timer&&clearTimeout(e.timer),e.time=w()-e.time}resume(){if(null!=this.#_){this._forEachSubscriber((e=>e.resume())),this.#_=null;for(const e of this.#z.values()){let t=e.time;t<0&&(t=0),e.time=w(),setTimeout(e.func,t)}}}};const O=new Uint8Array([]);function x(e){const t=[];let n=0;for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.VoidSigner=t.AbstractSigner=void 0;const r=n(646),f=n(7778),a=n(5347),s=n(3807);function i(e,t){if(e.provider)return e.provider;(0,a.assert)(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function o(e,t){let n=(0,s.copyRequest)(t);if(null!=n.to&&(n.to=(0,r.resolveAddress)(n.to,e)),null!=n.from){const t=n.from;n.from=Promise.all([e.getAddress(),(0,r.resolveAddress)(t,e)]).then((([e,t])=>((0,a.assertArgument)(e.toLowerCase()===t.toLowerCase(),"transaction from mismatch","tx.from",t),e)))}else n.from=e.getAddress();return await(0,a.resolveProperties)(n)}class l{provider;constructor(e){(0,a.defineProperties)(this,{provider:e||null})}async getNonce(e){return i(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await o(this,e)}async populateTransaction(e){const t=i(this,"populateTransaction"),n=await o(this,e);null==n.nonce&&(n.nonce=await this.getNonce("pending")),null==n.gasLimit&&(n.gasLimit=await this.estimateGas(n));const r=await this.provider.getNetwork();if(null!=n.chainId){const t=(0,a.getBigInt)(n.chainId);(0,a.assertArgument)(t===r.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else n.chainId=r.chainId;const f=null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas;if(null==n.gasPrice||2!==n.type&&!f?0!==n.type&&1!==n.type||!f||(0,a.assertArgument)(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e):(0,a.assertArgument)(!1,"eip-1559 transaction do not support gasPrice","tx",e),2!==n.type&&null!=n.type||null==n.maxFeePerGas||null==n.maxPriorityFeePerGas)if(0===n.type||1===n.type){const e=await t.getFeeData();(0,a.assert)(null!=e.gasPrice,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),null==n.gasPrice&&(n.gasPrice=e.gasPrice)}else{const e=await t.getFeeData();if(null==n.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(n.type=2,null!=n.gasPrice){const e=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=e,n.maxPriorityFeePerGas=e}else null==n.maxFeePerGas&&(n.maxFeePerGas=e.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?((0,a.assert)(!f,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),null==n.gasPrice&&(n.gasPrice=e.gasPrice),n.type=0):(0,a.assert)(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else 2!==n.type&&3!==n.type||(null==n.maxFeePerGas&&(n.maxFeePerGas=e.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else n.type=2;return await(0,a.resolveProperties)(n)}async estimateGas(e){return i(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return i(this,"call").call(await this.populateCall(e))}async resolveName(e){const t=i(this,"resolveName");return await t.resolveName(e)}async sendTransaction(e){const t=i(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const r=f.Transaction.from(n);return await t.broadcastTransaction(await this.signTransaction(r))}}t.AbstractSigner=l;class c extends l{address;constructor(e,t){super(t),(0,a.defineProperties)(this,{address:e})}async getAddress(){return this.address}connect(e){return new c(this.address,e)}#$(e,t){(0,a.assert)(!1,`VoidSigner cannot sign ${e}`,"UNSUPPORTED_OPERATION",{operation:t})}async signTransaction(e){this.#$("transactions","signTransaction")}async signMessage(e){this.#$("messages","signMessage")}async signTypedData(e,t,n){this.#$("typed-data","signTypedData")}}t.VoidSigner=c},9973:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.showThrottleMessage=void 0;const n=new Set;t.showThrottleMessage=function(e){n.has(e)||(n.add(e),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${e} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}},2347:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultProvider=void 0;const r=n(5347),f=n(6806),a=n(7841),s=n(8907),i=n(2271),o=n(5047),l=n(5855),c=n(8817),u=n(9902),d=n(2371),p=n(5317),h=n(873),b="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");t.getDefaultProvider=function(e,t){null==t&&(t={});const n=e=>"-"!==t[e]&&("string"==typeof t.exclusive?e===t.exclusive:!Array.isArray(t.exclusive)||-1!==t.exclusive.indexOf(e));if("string"==typeof e&&e.match(/^https?:/))return new d.JsonRpcProvider(e);if("string"==typeof e&&e.match(/^wss?:/)||(g=e)&&"function"==typeof g.send&&"function"==typeof g.close)return new h.WebSocketProvider(e);var g;let m=null;try{m=p.Network.from(e)}catch(e){}const y=[];if(n("publicPolygon")&&m&&("matic"===m.name?y.push(new d.JsonRpcProvider("https://polygon-rpc.com/",m,{staticNetwork:m})):"matic-amoy"===m.name&&y.push(new d.JsonRpcProvider("https://rpc-amoy.polygon.technology/",m,{staticNetwork:m}))),n("alchemy"))try{y.push(new a.AlchemyProvider(e,t.alchemy))}catch(e){}if(n("ankr")&&null!=t.ankr)try{y.push(new f.AnkrProvider(e,t.ankr))}catch(e){}if(n("chainstack"))try{y.push(new s.ChainstackProvider(e,t.chainstack))}catch(e){}if(n("cloudflare"))try{y.push(new i.CloudflareProvider(e))}catch(e){}if(n("etherscan"))try{y.push(new o.EtherscanProvider(e,t.etherscan))}catch(e){}if(n("infura"))try{let n,r=t.infura;"object"==typeof r&&(n=r.projectSecret,r=r.projectId),y.push(new l.InfuraProvider(e,r,n))}catch(e){}if(n("quicknode"))try{let n=t.quicknode;y.push(new c.QuickNodeProvider(e,n))}catch(e){}if((0,r.assert)(y.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),1===y.length)return y[0];let v=Math.floor(y.length/2);return v>2&&(v=2),m&&-1!==b.indexOf(m.name)&&(v=1),t&&t.quorum&&(v=t.quorum),new u.FallbackProvider(y,void 0,{quorum:v})}},1691:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EnsResolver=t.BasicMulticoinProviderPlugin=t.MulticoinProviderPlugin=void 0;const r=n(646),f=n(1295),a=n(9288),s=n(3562),i=n(5347);function o(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):(0,i.assertArgument)(!1,"unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}class l{name;constructor(e){(0,i.defineProperties)(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,t){throw new Error("unsupported coin")}async decodeAddress(e,t){throw new Error("unsupported coin")}}t.MulticoinProviderPlugin=l,t.BasicMulticoinProviderPlugin=class extends l{constructor(){super("org.ethers.plugins.provider.BasicMulticoin")}};const c=new RegExp("^(ipfs)://(.*)$","i"),u=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),c,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];class d{provider;address;name;#Z;#Y;constructor(e,t,n){(0,i.defineProperties)(this,{provider:e,address:t,name:n}),this.#Z=null,this.#Y=new a.Contract(t,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e)}async supportsWildcard(){return null==this.#Z&&(this.#Z=(async()=>{try{return await this.#Y.supportsInterface("0x9061b923")}catch(e){if((0,i.isError)(e,"CALL_EXCEPTION"))return!1;throw this.#Z=null,e}})()),await this.#Z}async#X(e,t){t=(t||[]).slice();const n=this.#Y.interface;t.unshift((0,s.namehash)(this.name));let r=null;await this.supportsWildcard()&&(r=n.getFunction(e),(0,i.assert)(r,"missing fragment","UNKNOWN_ERROR",{info:{funcName:e}}),t=[(0,s.dnsEncode)(this.name,255),n.encodeFunctionData(r,t)],e="resolve(bytes,bytes)"),t.push({enableCcipRead:!0});try{const f=await this.#Y[e](...t);return r?n.decodeFunctionResult(r,f)[0]:f}catch(e){if(!(0,i.isError)(e,"CALL_EXCEPTION"))throw e}return null}async getAddress(e){if(null==e&&(e=60),60===e)try{const e=await this.#X("addr(bytes32)");return null==e||e===f.ZeroAddress?null:e}catch(e){if((0,i.isError)(e,"CALL_EXCEPTION"))return null;throw e}if(e>=0&&e<2147483648){let t=e+2147483648;const n=await this.#X("addr(bytes32,uint)",[t]);if((0,i.isHexString)(n,20))return(0,r.getAddress)(n)}let t=null;for(const n of this.provider.plugins)if(n instanceof l&&n.supportsCoinType(e)){t=n;break}if(null==t)return null;const n=await this.#X("addr(bytes32,uint)",[e]);if(null==n||"0x"===n)return null;const a=await t.decodeAddress(e,n);if(null!=a)return a;(0,i.assert)(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:n}})}async getText(e){const t=await this.#X("text(bytes32,string)",[e]);return null==t||"0x"===t?null:t}async getContentHash(){const e=await this.#X("contenthash(bytes32)");if(null==e||"0x"===e)return null;const t=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){const e="e3010170"===t[1]?"ipfs":"ipns",n=parseInt(t[4],16);if(t[5].length===2*n)return`${e}://${(0,i.encodeBase58)("0x"+t[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&64===n[1].length)return`bzz://${n[1]}`;(0,i.assert)(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const t=await this.getText("avatar");if(null==t)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:t});for(let n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.formatTransactionResponse=t.formatTransactionReceipt=t.formatReceiptLog=t.formatBlock=t.formatLog=t.formatUint256=t.formatHash=t.formatData=t.formatBoolean=t.object=t.arrayOf=t.allowNull=void 0;const r=n(646),f=n(2291),a=n(7778),s=n(5347),i=BigInt(0);function o(e,t){return function(n){return null==n?t:e(n)}}function l(e,t){return n=>{if(t&&null==n)return null;if(!Array.isArray(n))throw new Error("not an array");return n.map((t=>e(t)))}}function c(e,t){return n=>{const r={};for(const f in e){let a=f;if(t&&f in t&&!(a in n))for(const e of t[f])if(e in n){a=e;break}try{const t=e[f](n[a]);void 0!==t&&(r[f]=t)}catch(e){const t=e instanceof Error?e.message:"not-an-error";(0,s.assert)(!1,`invalid value for value.${f} (${t})`,"BAD_DATA",{value:n})}}return r}}function u(e){switch(e){case!0:case"true":return!0;case!1:case"false":return!1}(0,s.assertArgument)(!1,`invalid boolean; ${JSON.stringify(e)}`,"value",e)}function d(e){return(0,s.assertArgument)((0,s.isHexString)(e,!0),"invalid data","value",e),e}function p(e){return(0,s.assertArgument)((0,s.isHexString)(e,32),"invalid hash","value",e),e}t.allowNull=o,t.arrayOf=l,t.object=c,t.formatBoolean=u,t.formatData=d,t.formatHash=p,t.formatUint256=function(e){if(!(0,s.isHexString)(e))throw new Error("invalid uint256");return(0,s.zeroPadValue)(e,32)};const h=c({address:r.getAddress,blockHash:p,blockNumber:s.getNumber,data:d,index:s.getNumber,removed:o(u,!1),topics:l(p),transactionHash:p,transactionIndex:s.getNumber},{index:["logIndex"]});t.formatLog=function(e){return h(e)};const b=c({hash:o(p),parentHash:p,parentBeaconBlockRoot:o(p,null),number:s.getNumber,timestamp:s.getNumber,nonce:o(d),difficulty:s.getBigInt,gasLimit:s.getBigInt,gasUsed:s.getBigInt,stateRoot:o(p,null),receiptsRoot:o(p,null),blobGasUsed:o(s.getBigInt,null),excessBlobGas:o(s.getBigInt,null),miner:o(r.getAddress),prevRandao:o(p,null),extraData:d,baseFeePerGas:o(s.getBigInt)},{prevRandao:["mixHash"]});t.formatBlock=function(e){const t=b(e);return t.transactions=e.transactions.map((e=>"string"==typeof e?e:v(e))),t};const g=c({transactionIndex:s.getNumber,blockNumber:s.getNumber,transactionHash:p,address:r.getAddress,topics:l(p),data:d,index:s.getNumber,blockHash:p},{index:["logIndex"]});function m(e){return g(e)}t.formatReceiptLog=m;const y=c({to:o(r.getAddress,null),from:o(r.getAddress,null),contractAddress:o(r.getAddress,null),index:s.getNumber,root:o(s.hexlify),gasUsed:s.getBigInt,blobGasUsed:o(s.getBigInt,null),logsBloom:o(d),blockHash:p,hash:p,logs:l(m),blockNumber:s.getNumber,cumulativeGasUsed:s.getBigInt,effectiveGasPrice:o(s.getBigInt),blobGasPrice:o(s.getBigInt,null),status:o(s.getNumber),type:o(s.getNumber,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function v(e){e.to&&(0,s.getBigInt)(e.to)===i&&(e.to="0x0000000000000000000000000000000000000000");const t=c({hash:p,index:o(s.getNumber,void 0),type:e=>"0x"===e||null==e?0:(0,s.getNumber)(e),accessList:o(a.accessListify,null),blobVersionedHashes:o(l(p,!0),null),blockHash:o(p,null),blockNumber:o(s.getNumber,null),transactionIndex:o(s.getNumber,null),from:r.getAddress,gasPrice:o(s.getBigInt),maxPriorityFeePerGas:o(s.getBigInt),maxFeePerGas:o(s.getBigInt),maxFeePerBlobGas:o(s.getBigInt,null),gasLimit:s.getBigInt,to:o(r.getAddress,null),value:s.getBigInt,nonce:s.getNumber,data:d,creates:o(r.getAddress,null),chainId:o(s.getBigInt,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(e);if(null==t.to&&null==t.creates&&(t.creates=(0,r.getCreateAddress)(t)),1!==e.type&&2!==e.type||null!=e.accessList||(t.accessList=[]),e.signature?t.signature=f.Signature.from(e.signature):t.signature=f.Signature.from(e),null==t.chainId){const e=t.signature.legacyChainId;null!=e&&(t.chainId=e)}return t.blockHash&&(0,s.getBigInt)(t.blockHash)===i&&(t.blockHash=null),t}t.formatTransactionReceipt=function(e){return y(e)},t.formatTransactionResponse=v},3996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SocketEventSubscriber=t.SocketPendingSubscriber=t.SocketBlockSubscriber=t.SocketSubscriber=t.WebSocketProvider=t.SocketProvider=t.IpcSocketProvider=t.QuickNodeProvider=t.PocketProvider=t.InfuraWebSocketProvider=t.InfuraProvider=t.EtherscanPlugin=t.EtherscanProvider=t.ChainstackProvider=t.CloudflareProvider=t.AnkrProvider=t.AlchemyProvider=t.BrowserProvider=t.JsonRpcSigner=t.JsonRpcProvider=t.JsonRpcApiProvider=t.FallbackProvider=t.copyRequest=t.TransactionResponse=t.TransactionReceipt=t.Log=t.FeeData=t.Block=t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EnsPlugin=t.GasCostPlugin=t.NetworkPlugin=t.NonceManager=t.Network=t.MulticoinProviderPlugin=t.EnsResolver=t.getDefaultProvider=t.showThrottleMessage=t.VoidSigner=t.AbstractSigner=t.UnmanagedSubscriber=t.AbstractProvider=void 0;var r=n(8672);Object.defineProperty(t,"AbstractProvider",{enumerable:!0,get:function(){return r.AbstractProvider}}),Object.defineProperty(t,"UnmanagedSubscriber",{enumerable:!0,get:function(){return r.UnmanagedSubscriber}});var f=n(3071);Object.defineProperty(t,"AbstractSigner",{enumerable:!0,get:function(){return f.AbstractSigner}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return f.VoidSigner}});var a=n(9973);Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return a.showThrottleMessage}});var s=n(2347);Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return s.getDefaultProvider}});var i=n(1691);Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return i.EnsResolver}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return i.MulticoinProviderPlugin}});var o=n(5317);Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return o.Network}});var l=n(9596);Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return l.NonceManager}});var c=n(4491);Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return c.NetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return c.GasCostPlugin}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return c.EnsPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return c.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return c.FetchUrlFeeDataNetworkPlugin}});var u=n(3807);Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return u.Block}}),Object.defineProperty(t,"FeeData",{enumerable:!0,get:function(){return u.FeeData}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return u.Log}}),Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return u.TransactionReceipt}}),Object.defineProperty(t,"TransactionResponse",{enumerable:!0,get:function(){return u.TransactionResponse}}),Object.defineProperty(t,"copyRequest",{enumerable:!0,get:function(){return u.copyRequest}});var d=n(9902);Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return d.FallbackProvider}});var p=n(2371);Object.defineProperty(t,"JsonRpcApiProvider",{enumerable:!0,get:function(){return p.JsonRpcApiProvider}}),Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return p.JsonRpcProvider}}),Object.defineProperty(t,"JsonRpcSigner",{enumerable:!0,get:function(){return p.JsonRpcSigner}});var h=n(254);Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return h.BrowserProvider}});var b=n(7841);Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return b.AlchemyProvider}});var g=n(6806);Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return g.AnkrProvider}});var m=n(2271);Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return m.CloudflareProvider}});var y=n(8907);Object.defineProperty(t,"ChainstackProvider",{enumerable:!0,get:function(){return y.ChainstackProvider}});var v=n(5047);Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return v.EtherscanProvider}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return v.EtherscanPlugin}});var w=n(5855);Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return w.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return w.InfuraWebSocketProvider}});var A=n(2398);Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return A.PocketProvider}});var k=n(8817);Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return k.QuickNodeProvider}});const P=n(4584);Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return P.IpcSocketProvider}});var E=n(4945);Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return E.SocketProvider}});var S=n(873);Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return S.WebSocketProvider}});var O=n(4945);Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return O.SocketSubscriber}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return O.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return O.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return O.SocketEventSubscriber}})},5317:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Network=void 0;const r=n(7778),f=n(5347),a=n(4491),s=new Map;class i{#te;#ne;#I;constructor(e,t){this.#te=e,this.#ne=(0,f.getBigInt)(t),this.#I=new Map}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return this.#te}set name(e){this.#te=e}get chainId(){return this.#ne}set chainId(e){this.#ne=(0,f.getBigInt)(e,"chainId")}matches(e){if(null==e)return!1;if("string"==typeof e){try{return this.chainId===(0,f.getBigInt)(e)}catch(e){}return this.name===e}if("number"==typeof e||"bigint"==typeof e){try{return this.chainId===(0,f.getBigInt)(e)}catch(e){}return!1}if("object"==typeof e){if(null!=e.chainId){try{return this.chainId===(0,f.getBigInt)(e.chainId)}catch(e){}return!1}return null!=e.name&&this.name===e.name}return!1}get plugins(){return Array.from(this.#I.values())}attachPlugin(e){if(this.#I.get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return this.#I.set(e.name,e.clone()),this}getPlugin(e){return this.#I.get(e)||null}getPlugins(e){return this.plugins.filter((t=>t.name.split("#")[0]===e))}clone(){const e=new i(this.name,this.chainId);return this.plugins.forEach((t=>{e.attachPlugin(t.clone())})),e}computeIntrinsicGas(e){const t=this.getPlugin("org.ethers.plugins.network.GasCost")||new a.GasCostPlugin;let n=t.txBase;if(null==e.to&&(n+=t.txCreate),e.data)for(let r=2;r{r.attachPlugin(e)})),r};i.register(e,r),i.register(t,r),n.altNames&&n.altNames.forEach((e=>{i.register(e,r)}))}c||(c=!0,e("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),e("ropsten",3,{ensNetwork:3}),e("rinkeby",4,{ensNetwork:4}),e("goerli",5,{ensNetwork:5}),e("kovan",42,{ensNetwork:42}),e("sepolia",11155111,{ensNetwork:11155111}),e("holesky",17e3,{ensNetwork:17e3}),e("classic",61,{}),e("classicKotti",6,{}),e("arbitrum",42161,{ensNetwork:1}),e("arbitrum-goerli",421613,{}),e("arbitrum-sepolia",421614,{}),e("base",8453,{ensNetwork:1}),e("base-goerli",84531,{}),e("base-sepolia",84532,{}),e("bnb",56,{ensNetwork:1}),e("bnbt",97,{}),e("linea",59144,{ensNetwork:1}),e("linea-goerli",59140,{}),e("linea-sepolia",59141,{}),e("matic",137,{ensNetwork:1,plugins:[l("https://gasstation.polygon.technology/v2")]}),e("matic-amoy",80002,{}),e("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[l("https://gasstation-testnet.polygon.technology/v2")]}),e("optimism",10,{ensNetwork:1,plugins:[]}),e("optimism-goerli",420,{}),e("optimism-sepolia",11155420,{}),e("xdai",100,{ensNetwork:1}))}(),null==e)return i.from("mainnet");if("number"==typeof e&&(e=BigInt(e)),"string"==typeof e||"bigint"==typeof e){const t=s.get(e);if(t)return t();if("bigint"==typeof e)return new i("unknown",e);(0,f.assertArgument)(!1,"unknown network","network",e)}if("function"==typeof e.clone)return e.clone();if("object"==typeof e){(0,f.assertArgument)("string"==typeof e.name&&"number"==typeof e.chainId,"invalid network object name or chainId","network",e);const t=new i(e.name,e.chainId);return(e.ensAddress||null!=e.ensNetwork)&&t.attachPlugin(new a.EnsPlugin(e.ensAddress,e.ensNetwork)),t}(0,f.assertArgument)(!1,"invalid network","network",e)}static register(e,t){"number"==typeof e&&(e=BigInt(e));const n=s.get(e);n&&(0,f.assertArgument)(!1,`conflicting network for ${JSON.stringify(n.name)}`,"nameOrChainId",e),s.set(e,t)}}function o(e,t){const n=String(e);if(!n.match(/^[0-9.]+$/))throw new Error(`invalid gwei value: ${e}`);const r=n.split(".");if(1===r.length&&r.push(""),2!==r.length)throw new Error(`invalid gwei value: ${e}`);for(;r[1].length9){let e=BigInt(r[1].substring(0,9));r[1].substring(9).match(/^0+$/)||e++,r[1]=e.toString()}return BigInt(r[0]+r[1])}function l(e){return new a.FetchUrlFeeDataNetworkPlugin(e,(async(e,t,n)=>{let r;n.setHeader("User-Agent","ethers");try{const[t,f]=await Promise.all([n.send(),e()]);r=t;const a=r.bodyJson.standard;return{gasPrice:f.gasPrice,maxFeePerGas:o(a.maxFee,9),maxPriorityFeePerGas:o(a.maxPriorityFee,9)}}catch(e){(0,f.assert)(!1,`error encountered with polygon gas station (${JSON.stringify(n.url)})`,"SERVER_ERROR",{request:n,response:r,error:e})}}))}t.Network=i;let c=!1},4491:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EnsPlugin=t.GasCostPlugin=t.NetworkPlugin=void 0;const r=n(8166),f=n(5347);class a{name;constructor(e){(0,r.defineProperties)(this,{name:e})}clone(){return new a(this.name)}}t.NetworkPlugin=a;class s extends a{effectiveBlock;txBase;txCreate;txDataZero;txDataNonzero;txAccessListStorageKey;txAccessListAddress;constructor(e,t){null==e&&(e=0),super(`org.ethers.network.plugins.GasCost#${e||0}`);const n={effectiveBlock:e};function a(e,r){let a=(t||{})[e];null==a&&(a=r),(0,f.assertArgument)("number"==typeof a,`invalud value for ${e}`,"costs",t),n[e]=a}a("txBase",21e3),a("txCreate",32e3),a("txDataZero",4),a("txDataNonzero",16),a("txAccessListStorageKey",1900),a("txAccessListAddress",2400),(0,r.defineProperties)(this,n)}clone(){return new s(this.effectiveBlock,this)}}t.GasCostPlugin=s;class i extends a{address;targetNetwork;constructor(e,t){super("org.ethers.plugins.network.Ens"),(0,r.defineProperties)(this,{address:e||"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",targetNetwork:null==t?1:t})}clone(){return new i(this.address,this.targetNetwork)}}t.EnsPlugin=i;class o extends a{#re;get feeDataFunc(){return this.#re}constructor(e){super("org.ethers.plugins.network.FeeData"),this.#re=e}async getFeeData(e){return await this.#re(e)}clone(){return new o(this.#re)}}t.FeeDataNetworkPlugin=o,t.FetchUrlFeeDataNetworkPlugin=class extends a{#fe;#ae;get url(){return this.#fe}get processFunc(){return this.#ae}constructor(e,t){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin"),this.#fe=e,this.#ae=t}clone(){return this}}},7841:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AlchemyProvider=void 0;const r=n(5347),f=n(9973),a=n(5317),s=n(2371),i="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class o extends s.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");const n=a.Network.from(e);null==t&&(t=i),super(o.getRequest(n,t),n,{staticNetwork:n}),(0,r.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new o(e,this.apiKey)}catch(e){}return super._getProvider(e)}async _perform(e){if("getTransactionResult"===e.method){const{trace:t,tx:n}=await(0,r.resolveProperties)({trace:this.send("trace_transaction",[e.hash]),tx:this.getTransaction(e.hash)});if(null==t||null==n)return null;let f,a=!1;try{f=t[0].result.output,a="Reverted"===t[0].error}catch(e){}if(f)return(0,r.assert)(!a,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:f,reason:null,transaction:n,invocation:null,revert:null}),f;(0,r.assert)(!1,"could not parse trace result","BAD_DATA",{value:t})}return await super._perform(e)}isCommunityResource(){return this.apiKey===i}static getRequest(e,t){null==t&&(t=i);const n=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"eth-mainnet.alchemyapi.io";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"arbitrum-sepolia":return"arb-sepolia.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"base-sepolia":return"base-sepolia.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-amoy":return"polygon-amoy.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com";case"optimism-sepolia":return"opt-sepolia.g.alchemy.com"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v2/${t}`);return n.allowGzip=!0,t===i&&(n.retryFunc=async(e,t,n)=>((0,f.showThrottleMessage)("alchemy"),!0)),n}}t.AlchemyProvider=o},6806:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnkrProvider=void 0;const r=n(5347),f=n(9973),a=n(5317),s=n(2371),i="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class o extends s.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");const n=a.Network.from(e);null==t&&(t=i);const f={polling:!0,staticNetwork:n};super(o.getRequest(n,t),n,f),(0,r.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new o(e,this.apiKey)}catch(e){}return super._getProvider(e)}static getRequest(e,t){null==t&&(t=i);const n=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"sepolia":return"rpc.ankr.com/eth_sepolia";case"arbitrum":return"rpc.ankr.com/arbitrum";case"base":return"rpc.ankr.com/base";case"base-goerli":return"rpc.ankr.com/base_goerli";case"base-sepolia":return"rpc.ankr.com/base_sepolia";case"bnb":return"rpc.ankr.com/bsc";case"bnbt":return"rpc.ankr.com/bsc_testnet_chapel";case"matic":return"rpc.ankr.com/polygon";case"matic-mumbai":return"rpc.ankr.com/polygon_mumbai";case"optimism":return"rpc.ankr.com/optimism";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===i&&(n.retryFunc=async(e,t,n)=>((0,f.showThrottleMessage)("AnkrProvider"),!0)),n}getRpcError(e,t){return"eth_sendRawTransaction"===e.method&&t&&t.error&&"INTERNAL_ERROR: could not replace existing tx"===t.error.message&&(t.error.message="replacement transaction underpriced"),super.getRpcError(e,t)}isCommunityResource(){return this.apiKey===i}}t.AnkrProvider=o},254:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserProvider=void 0;const r=n(5347),f=n(2371);class a extends f.JsonRpcApiPollingProvider{#se;constructor(e,t,n){const f=Object.assign({},null!=n?n:{},{batchMaxCount:1});(0,r.assertArgument)(e&&e.request,"invalid EIP-1193 provider","ethereum",e),super(t,f),this.#se=async(t,n)=>{const r={method:t,params:n};this.emit("debug",{action:"sendEip1193Request",payload:r});try{const t=await e.request(r);return this.emit("debug",{action:"receiveEip1193Result",result:t}),t}catch(e){const t=new Error(e.message);throw t.code=e.code,t.data=e.data,t.payload=r,this.emit("debug",{action:"receiveEip1193Error",error:t}),t}}}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){(0,r.assertArgument)(!Array.isArray(e),"EIP-1193 does not support batch request","payload",e);try{const t=await this.#se(e.method,e.params||[]);return[{id:e.id,result:t}]}catch(t){return[{id:e.id,error:{code:t.code,data:t.data,message:t.message}}]}}getRpcError(e,t){switch((t=JSON.parse(JSON.stringify(t))).error.code||-1){case 4001:t.error.message=`ethers-user-denied: ${t.error.message}`;break;case 4200:t.error.message=`ethers-unsupported: ${t.error.message}`}return super.getRpcError(e,t)}async hasSigner(e){null==e&&(e=0);const t=await this.send("eth_accounts",[]);return"number"==typeof e?t.length>e:(e=e.toLowerCase(),0!==t.filter((t=>t.toLowerCase()===e)).length)}async getSigner(e){if(null==e&&(e=0),!await this.hasSigner(e))try{await this.#se("eth_requestAccounts",[])}catch(e){const t=e.payload;throw this.getRpcError(t,{id:t.id,error:e})}return await super.getSigner(e)}}t.BrowserProvider=a},8907:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChainstackProvider=void 0;const r=n(5347),f=n(9973),a=n(5317),s=n(2371);function i(e){switch(e){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}(0,r.assertArgument)(!1,"unsupported network","network",e)}class o extends s.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");const n=a.Network.from(e);null==t&&(t=i(n.name)),super(o.getRequest(n,t),n,{staticNetwork:n}),(0,r.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new o(e,this.apiKey)}catch(e){}return super._getProvider(e)}isCommunityResource(){return this.apiKey===i(this._network.name)}static getRequest(e,t){null==t&&(t=i(e.name));const n=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"ethereum-mainnet.core.chainstack.com";case"arbitrum":return"arbitrum-mainnet.core.chainstack.com";case"bnb":return"bsc-mainnet.core.chainstack.com";case"matic":return"polygon-mainnet.core.chainstack.com"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===i(e.name)&&(n.retryFunc=async(e,t,n)=>((0,f.showThrottleMessage)("ChainstackProvider"),!0)),n}}t.ChainstackProvider=o},2271:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CloudflareProvider=void 0;const r=n(5347),f=n(5317),a=n(2371);class s extends a.JsonRpcProvider{constructor(e){null==e&&(e="mainnet");const t=f.Network.from(e);(0,r.assertArgument)("mainnet"===t.name,"unsupported network","network",e),super("https://cloudflare-eth.com/",t,{staticNetwork:t})}}t.CloudflareProvider=s},5047:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EtherscanProvider=t.EtherscanPlugin=void 0;const r=n(8456),f=n(9288),a=n(7778),s=n(5347),i=n(8672),o=n(5317),l=n(4491),c=n(9973),u="org.ethers.plugins.provider.Etherscan";class d extends l.NetworkPlugin{baseUrl;constructor(e){super(u),(0,s.defineProperties)(this,{baseUrl:e})}clone(){return new d(this.baseUrl)}}t.EtherscanPlugin=d;const p=["enableCcipRead"];let h=1;class b extends i.AbstractProvider{network;apiKey;#ie;constructor(e,t){const n=null!=t?t:null;super();const r=o.Network.from(e);this.#ie=r.getPlugin(u),(0,s.defineProperties)(this,{apiKey:n,network:r}),this.getBaseUrl()}getBaseUrl(){if(this.#ie)return this.#ie.baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"holesky":return"https://api-holesky.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"base":return"https://api.basescan.org";case"base-sepolia":return"https://api-sepolia.basescan.org";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-amoy":return"https://api-amoy.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}(0,s.assertArgument)(!1,"unsupported network","network",this.network)}getUrl(e,t){const n=Object.keys(t).reduce(((e,n)=>{const r=t[n];return null!=r&&(e+=`&${n}=${r}`),e}),""),r=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${e}${n}${r}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}async detectNetwork(){return this.network}async fetch(e,t,n){const r=h++,f=n?this.getPostUrl():this.getUrl(e,t),a=n?this.getPostData(e,t):null;this.emit("debug",{action:"sendRequest",id:r,url:f,payload:a});const i=new s.FetchRequest(f);i.setThrottleParams({slotInterval:1e3}),i.retryFunc=(e,t,n)=>(this.isCommunityResource()&&(0,c.showThrottleMessage)("Etherscan"),Promise.resolve(!0)),i.processFunc=async(t,n)=>{const f=n.hasBody()?JSON.parse((0,s.toUtf8String)(n.body)):{},a=("string"==typeof f.result?f.result:"").toLowerCase().indexOf("rate limit")>=0;return"proxy"===e?f&&0==f.status&&"NOTOK"==f.message&&a&&(this.emit("debug",{action:"receiveError",id:r,reason:"proxy-NOTOK",error:f}),n.throwThrottleError(f.result,2e3)):a&&(this.emit("debug",{action:"receiveError",id:r,reason:"null result",error:f.result}),n.throwThrottleError(f.result,2e3)),n},a&&(i.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),i.body=Object.keys(a).map((e=>`${e}=${a[e]}`)).join("&"));const o=await i.send();try{o.assertOk()}catch(e){this.emit("debug",{action:"receiveError",id:r,error:e,reason:"assertOk"}),(0,s.assert)(!1,"response error","SERVER_ERROR",{request:i,response:o})}o.hasBody()||(this.emit("debug",{action:"receiveError",id:r,error:"missing body",reason:"null body"}),(0,s.assert)(!1,"missing response","SERVER_ERROR",{request:i,response:o}));const l=JSON.parse((0,s.toUtf8String)(o.body));return"proxy"===e?("2.0"!=l.jsonrpc&&(this.emit("debug",{action:"receiveError",id:r,result:l,reason:"invalid JSON-RPC"}),(0,s.assert)(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:i,response:o,info:{result:l}})),l.error&&(this.emit("debug",{action:"receiveError",id:r,result:l,reason:"JSON-RPC error"}),(0,s.assert)(!1,"error response","SERVER_ERROR",{request:i,response:o,info:{result:l}})),this.emit("debug",{action:"receiveRequest",id:r,result:l}),l.result):0!=l.status||"No records found"!==l.message&&"No transactions found"!==l.message?((1!=l.status||"string"==typeof l.message&&!l.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:r,result:l}),(0,s.assert)(!1,"error response","SERVER_ERROR",{request:i,response:o,info:{result:l}})),this.emit("debug",{action:"receiveRequest",id:r,result:l}),l.result):(this.emit("debug",{action:"receiveRequest",id:r,result:l}),l.result)}_getTransactionPostData(e){const t={};for(let n in e){if(p.indexOf(n)>=0)continue;if(null==e[n])continue;let r=e[n];if(!("type"===n&&0===r||"blockTag"===n&&"latest"===r)){if({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[n])r=(0,s.toQuantity)(r);else if("accessList"===n)r="["+(0,a.accessListify)(r).map((e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`)).join(",")+"]";else if("blobVersionedHashes"===n){if(0===r.length)continue;(0,s.assert)(!1,"Etherscan API does not support blobVersionedHashes","UNSUPPORTED_OPERATION",{operation:"_getTransactionPostData",info:{transaction:e}})}else r=(0,s.hexlify)(r);t[n]=r}}return t}_checkError(e,t,n){let f="";if((0,s.isError)(t,"SERVER_ERROR")){try{f=t.info.result.error.message}catch(e){}if(!f)try{f=t.info.message}catch(e){}}if("estimateGas"===e.method&&!f.match(/revert/i)&&f.match(/insufficient funds/i)&&(0,s.assert)(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.transaction}),("call"===e.method||"estimateGas"===e.method)&&f.match(/execution reverted/i)){let n="";try{n=t.info.result.error.data}catch(t){}const f=r.AbiCoder.getBuiltinCallException(e.method,e.transaction,n);throw f.info={request:e,error:t},f}if(f&&"broadcastTransaction"===e.method){const t=a.Transaction.from(e.signedTransaction);f.match(/replacement/i)&&f.match(/underpriced/i)&&(0,s.assert)(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t}),f.match(/insufficient funds/)&&(0,s.assert)(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t}),f.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&(0,s.assert)(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:t})}throw t}async _detectNetwork(){return this.network}async _perform(e){switch(e.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if("mainnet"===this.network.name)return"1000000000";if("optimism"===this.network.name)return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:e.address,tag:e.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:e.address,tag:e.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:e.address,tag:e.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:e.address,position:e.position,tag:e.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:e.signedTransaction},!0).catch((t=>this._checkError(e,t,e.signedTransaction)));case"getBlock":if("blockTag"in e)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:e.blockTag,boolean:e.includeTransactions?"true":"false"});(0,s.assert)(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:e.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:e.hash});case"call":{if("latest"!==e.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const t=this._getTransactionPostData(e.transaction);t.module="proxy",t.action="eth_call";try{return await this.fetch("proxy",t,!0)}catch(t){return this._checkError(e,t,e.transaction)}}case"estimateGas":{const t=this._getTransactionPostData(e.transaction);t.module="proxy",t.action="eth_estimateGas";try{return await this.fetch("proxy",t,!0)}catch(t){return this._checkError(e,t,e.transaction)}}}return super._perform(e)}async getNetwork(){return this.network}async getEtherPrice(){return"mainnet"!==this.network.name?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(e){let t=this._getAddress(e);var n;(n=t)&&"function"==typeof n.then&&(t=await t);try{const e=await this.fetch("contract",{action:"getabi",address:t}),n=JSON.parse(e);return new f.Contract(t,n,this)}catch(e){return null}}isCommunityResource(){return null==this.apiKey}}t.EtherscanProvider=b},9902:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FallbackProvider=void 0;const r=n(5347),f=n(8672),a=n(5317),s=BigInt("1"),i=BigInt("2");function o(){return(new Date).getTime()}function l(e){return JSON.stringify(e,((e,t)=>"bigint"==typeof t?{type:"bigint",value:t.toString()}:t))}const c={stallTimeout:400,priority:1,weight:1},u={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};function d(e){if(null==e)return"null";if(Array.isArray(e))return"["+e.map(d).join(",")+"]";if("object"==typeof e&&"function"==typeof e.toJSON)return d(e.toJSON());switch(typeof e){case"boolean":case"symbol":return e.toString();case"bigint":case"number":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{const t=Object.keys(e);return t.sort(),"{"+t.map((t=>`${JSON.stringify(t)}:${d(e[t])}`)).join(",")+"}"}}throw console.log("Could not serialize",e),new Error("Hmm...")}function p(e){if("error"in e){const t=e.error;return{tag:d(t),value:t}}const t=e.result;return{tag:d(t),value:t}}function h(e,t){const n=new Map;for(const{value:e,tag:r,weight:f}of t){const t=n.get(r)||{value:e,weight:0};t.weight+=f,n.set(r,t)}let r=null;for(const t of n.values())t.weight>=e&&(!r||t.weight>r.weight)&&(r=t);if(r)return r.value}function b(e,t){let n=0;const r=new Map;let f=null;const a=[];for(const{value:e,tag:s,weight:i}of t)if(e instanceof Error){const t=r.get(s)||{value:e,weight:0};t.weight+=i,r.set(s,t),(null==f||t.weight>f.weight)&&(f=t)}else a.push(BigInt(e)),n+=i;if(n=e?f.value:void 0;a.sort(((e,t)=>ee?1:0));const o=Math.floor(a.length/2);return a.length%2?a[o]:(a[o-1]+a[o]+s)/i}function g(e,t){const n=h(e,t);if(void 0!==n)return n;for(const e of t)if(e.value)return e.value}class m extends f.AbstractProvider{quorum;eventQuorum;eventWorkers;#oe;#le;#ce;constructor(e,t,n){super(t,n),this.#oe=e.map((e=>e instanceof f.AbstractProvider?Object.assign({provider:e},c,u):Object.assign({},c,e,u))),this.#le=-2,this.#ce=null,n&&null!=n.quorum?this.quorum=n.quorum:this.quorum=Math.ceil(this.#oe.reduce(((e,t)=>e+t.weight),0)/2),this.eventQuorum=1,this.eventWorkers=1,(0,r.assertArgument)(this.quorum<=this.#oe.reduce(((e,t)=>e+t.weight),0),"quorum exceed provider weight","quorum",this.quorum)}get providerConfigs(){return this.#oe.map((e=>{const t=Object.assign({},e);for(const e in t)"_"===e[0]&&delete t[e];return t}))}async _detectNetwork(){return a.Network.from((0,r.getBigInt)(await this._perform({method:"chainId"})))}async _translatePerform(e,t){switch(t.method){case"broadcastTransaction":return await e.broadcastTransaction(t.signedTransaction);case"call":return await e.call(Object.assign({},t.transaction,{blockTag:t.blockTag}));case"chainId":return(await e.getNetwork()).chainId;case"estimateGas":return await e.estimateGas(t.transaction);case"getBalance":return await e.getBalance(t.address,t.blockTag);case"getBlock":{const n="blockHash"in t?t.blockHash:t.blockTag;return await e.getBlock(n,t.includeTransactions)}case"getBlockNumber":return await e.getBlockNumber();case"getCode":return await e.getCode(t.address,t.blockTag);case"getGasPrice":return(await e.getFeeData()).gasPrice;case"getPriorityFee":return(await e.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await e.getLogs(t.filter);case"getStorage":return await e.getStorage(t.address,t.position,t.blockTag);case"getTransaction":return await e.getTransaction(t.hash);case"getTransactionCount":return await e.getTransactionCount(t.address,t.blockTag);case"getTransactionReceipt":return await e.getTransactionReceipt(t.hash);case"getTransactionResult":return await e.getTransactionResult(t.hash)}}#ue(e){const t=Array.from(e).map((e=>e.config)),n=this.#oe.slice();!function(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}}(n),n.sort(((e,t)=>e.priority-t.priority));for(const e of n)if(!e._lastFatalError&&-1===t.indexOf(e))return e;return null}#de(e,t){const n=this.#ue(e);if(null==n)return null;const r={config:n,result:null,didBump:!1,perform:null,staller:null},f=o();return r.perform=(async()=>{try{n.requests++;const e=await this._translatePerform(n.provider,t);r.result={result:e}}catch(e){n.errorResponses++,r.result={error:e}}const e=o()-f;n._totalTime+=e,n.rollingDuration=.95*n.rollingDuration+.05*e,r.perform=null})(),r.staller=(async()=>{var e;await(e=n.stallTimeout,new Promise((t=>{setTimeout(t,e)}))),r.staller=null})(),e.add(r),r}async#pe(){let e=this.#ce;if(!e){const t=[];this.#oe.forEach((e=>{t.push((async()=>{await async function(e){for(;(e.blockNumber<0||e.blockNumber<0)&&(e._updateNumber||(e._updateNumber=(async()=>{try{const t=await e.provider.getBlockNumber();t>e.blockNumber&&(e.blockNumber=t)}catch(t){e.blockNumber=-2,e._lastFatalError=t,e._lastFatalErrorTimestamp=o()}e._updateNumber=null})()),await e._updateNumber,e.outOfSync++,!e._lastFatalError););}(e),e._lastFatalError||(e._network=await e.provider.getNetwork())})())})),this.#ce=e=(async()=>{await Promise.all(t);let e=null;for(const t of this.#oe){if(t._lastFatalError)continue;const n=t._network;null==e?e=n.chainId:n.chainId!==e&&(0,r.assert)(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})()}await e}async#he(e,t){const n=[];for(const t of e)if(null!=t.result){const{tag:e,value:r}=p(t.result);n.push({tag:e,value:r,weight:t.config.weight})}if(!(n.reduce(((e,t)=>e+t.weight),0)!e._lastFatalError)).map((e=>({value:e.blockNumber,tag:(0,r.getNumber)(e.blockNumber).toString(),weight:e.weight})))))));const e=function(e,t){if(1===e)return(0,r.getNumber)(b(e,t),"%internal");const n=new Map,f=(e,t)=>{const r=n.get(e)||{result:e,weight:0};r.weight+=t,n.set(e,r)};for(const{weight:e,value:n}of t){const t=(0,r.getNumber)(n);f(t-1,e),f(t,e),f(t+1,e)}let a,s=0;for(const{weight:t,result:r}of n.values())t>=e&&(t>s||null!=a&&t===s&&r>a)&&(s=t,a=r);return a}(this.quorum,n);if(void 0===e)return;return e>this.#le&&(this.#le=e),this.#le}case"getGasPrice":case"getPriorityFee":case"estimateGas":return b(this.quorum,n);case"getBlock":return"blockTag"in t&&"pending"===t.blockTag?g(this.quorum,n):h(this.quorum,n);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return h(this.quorum,n);case"broadcastTransaction":return g(this.quorum,n)}(0,r.assert)(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${l(t.method)})`})}}async#be(e,t){if(0===e.size)throw new Error("no runners?!");const n=[];let f=0;for(const t of e)t.perform&&n.push(t.perform),t.staller?n.push(t.staller):t.didBump||(t.didBump=!0,f++);const a=await this.#he(e,t);if(void 0!==a){if(a instanceof Error)throw a;return a}for(let n=0;n0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:t,results:Array.from(e).map((e=>l(e.result)))}}),await Promise.race(n),await this.#be(e,t)}async _perform(e){if("broadcastTransaction"===e.method){const t=this.#oe.map((e=>null)),n=this.#oe.map((async({provider:n,weight:r},f)=>{try{const a=await n._perform(e);t[f]=Object.assign(p({result:a}),{weight:r})}catch(e){t[f]=Object.assign(p({error:e}),{weight:r})}}));for(;;){const e=t.filter((e=>null!=e));for(const{value:t}of e)if(!(t instanceof Error))return t;const f=h(this.quorum,t.filter((e=>null!=e)));if((0,r.isError)(f,"INSUFFICIENT_FUNDS"))throw f;const a=n.filter(((e,n)=>null==t[n]));if(0===a.length)break;await Promise.race(a)}const f=g(this.quorum,t);if((0,r.assert)(void 0!==f,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:e,results:t.map(l)}}),f instanceof Error)throw f;return f}await this.#pe();const t=new Set;let n=0;for(;;){const r=this.#de(t,e);if(null==r)break;if(n+=r.config.weight,n>=this.quorum)break}const f=await this.#be(t,e);for(const e of t)e.perform&&null==e.result&&e.config.lateResponses++;return f}async destroy(){for(const{provider:e}of this.#oe)e.destroy();super.destroy()}}t.FallbackProvider=m},5855:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InfuraProvider=t.InfuraWebSocketProvider=void 0;const r=n(5347),f=n(9973),a=n(5317),s=n(2371),i=n(873),o="84842078b09946638c03157f83405213";class l extends i.WebSocketProvider{projectId;projectSecret;constructor(e,t){const n=new c(e,t),f=n._getConnection();(0,r.assert)(!f.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"}),super(f.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),n._network),(0,r.defineProperties)(this,{projectId:n.projectId,projectSecret:n.projectSecret})}isCommunityResource(){return this.projectId===o}}t.InfuraWebSocketProvider=l;class c extends s.JsonRpcProvider{projectId;projectSecret;constructor(e,t,n){null==e&&(e="mainnet");const f=a.Network.from(e);null==t&&(t=o),null==n&&(n=null),super(c.getRequest(f,t,n),f,{staticNetwork:f}),(0,r.defineProperties)(this,{projectId:t,projectSecret:n})}_getProvider(e){try{return new c(e,this.projectId,this.projectSecret)}catch(e){}return super._getProvider(e)}isCommunityResource(){return this.projectId===o}static getWebSocketProvider(e,t){return new l(e,t)}static getRequest(e,t,n){null==t&&(t=o),null==n&&(n=null);const a=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"arbitrum-sepolia":return"arbitrum-sepolia.infura.io";case"base":return"base-mainnet.infura.io";case"base-goerlia":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bnbsmartchain-mainnet.infura.io";case"bnbt":return"bnbsmartchain-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"linea-sepolia":return"linea-sepolia.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-amoy":return"polygon-amoy.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io";case"optimism-sepolia":return"optimism-sepolia.infura.io"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v3/${t}`);return a.allowGzip=!0,n&&a.setCredentials("",n),t===o&&(a.retryFunc=async(e,t,n)=>((0,f.showThrottleMessage)("InfuraProvider"),!0)),a}}t.InfuraProvider=c},4584:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IpcSocketProvider=void 0,t.IpcSocketProvider=void 0},2371:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JsonRpcProvider=t.JsonRpcApiPollingProvider=t.JsonRpcApiProvider=t.JsonRpcSigner=void 0;const r=n(8456),f=n(646),a=n(3562),s=n(7778),i=n(5347),o=n(8672),l=n(3071),c=n(5317),u=n(7966),d=n(4338),p="bigint,boolean,function,number,string,symbol".split(/,/g);function h(e){if(null==e||p.indexOf(typeof e)>=0)return e;if("function"==typeof e.getAddress)return e;if(Array.isArray(e))return e.map(h);if("object"==typeof e)return Object.keys(e).reduce(((t,n)=>(t[n]=e[n],t)),{});throw new Error(`should not happen: ${e} (${typeof e})`)}function b(e){return new Promise((t=>{setTimeout(t,e)}))}function g(e){return e?e.toLowerCase():e}function m(e){return e&&"number"==typeof e.pollingInterval}const y={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class v extends l.AbstractSigner{address;constructor(e,t){super(e),t=(0,f.getAddress)(t),(0,i.defineProperties)(this,{address:t})}connect(e){(0,i.assert)(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(e){return await this.populateCall(e)}async sendUncheckedTransaction(e){const t=h(e),n=[];if(t.from){const r=t.from;n.push((async()=>{const n=await(0,f.resolveAddress)(r,this.provider);(0,i.assertArgument)(null!=n&&n.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=n})())}else t.from=this.address;if(null==t.gasLimit&&n.push((async()=>{t.gasLimit=await this.provider.estimateGas({...t,from:this.address})})()),null!=t.to){const e=t.to;n.push((async()=>{t.to=await(0,f.resolveAddress)(e,this.provider)})())}n.length&&await Promise.all(n);const r=this.provider.getRpcTransaction(t);return this.provider.send("eth_sendTransaction",[r])}async sendTransaction(e){const t=await this.provider.getBlockNumber(),n=await this.sendUncheckedTransaction(e);return await new Promise(((e,r)=>{const f=[1e3,100];let a=0;const s=async()=>{try{const r=await this.provider.getTransaction(n);if(null!=r)return void e(r.replaceableTransaction(t))}catch(e){if((0,i.isError)(e,"CANCELLED")||(0,i.isError)(e,"BAD_DATA")||(0,i.isError)(e,"NETWORK_ERROR")||(0,i.isError)(e,"UNSUPPORTED_OPERATION"))return null==e.info&&(e.info={}),e.info.sendTransactionHash=n,void r(e);if((0,i.isError)(e,"INVALID_ARGUMENT")&&(a++,null==e.info&&(e.info={}),e.info.sendTransactionHash=n,a>10))return void r(e);this.provider.emit("error",(0,i.makeError)("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:e}))}this.provider._setTimeout((()=>{s()}),f.pop()||4e3)};s()}))}async signTransaction(e){const t=h(e);if(t.from){const n=await(0,f.resolveAddress)(t.from,this.provider);(0,i.assertArgument)(null!=n&&n.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=n}else t.from=this.address;const n=this.provider.getRpcTransaction(t);return await this.provider.send("eth_signTransaction",[n])}async signMessage(e){const t="string"==typeof e?(0,i.toUtf8Bytes)(e):e;return await this.provider.send("personal_sign",[(0,i.hexlify)(t),this.address.toLowerCase()])}async signTypedData(e,t,n){const r=h(n),s=await a.TypedDataEncoder.resolveNames(e,t,r,(async e=>{const t=await(0,f.resolveAddress)(e);return(0,i.assertArgument)(null!=t,"TypedData does not support null address","value",e),t}));return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(a.TypedDataEncoder.getPayload(s.domain,t,s.value))])}async unlock(e){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),e,null])}async _legacySignMessage(e){const t="string"==typeof e?(0,i.toUtf8Bytes)(e):e;return await this.provider.send("eth_sign",[this.address.toLowerCase(),(0,i.hexlify)(t)])}}t.JsonRpcSigner=v;class w extends o.AbstractProvider{#w;#ge;#me;#ye;#ve;#we;#Ae;#ke(){if(this.#ye)return;const e=1===this._getOption("batchMaxCount")?0:this._getOption("batchStallTime");this.#ye=setTimeout((()=>{this.#ye=null;const e=this.#me;for(this.#me=[];e.length;){const t=[e.shift()];for(;e.length&&t.length!==this.#w.batchMaxCount;)if(t.push(e.shift()),JSON.stringify(t.map((e=>e.payload))).length>this.#w.batchMaxSize){e.unshift(t.pop());break}(async()=>{const e=1===t.length?t[0].payload:t.map((e=>e.payload));this.emit("debug",{action:"sendRpcPayload",payload:e});try{const n=await this._send(e);this.emit("debug",{action:"receiveRpcResult",result:n});for(const{resolve:e,reject:r,payload:f}of t){if(this.destroyed){r((0,i.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:f.method}));continue}const t=n.filter((e=>e.id===f.id))[0];if(null!=t)"error"in t?r(this.getRpcError(f,t)):e(t.result);else{const e=(0,i.makeError)("missing response for request","BAD_DATA",{value:n,info:{payload:f}});this.emit("error",e),r(e)}}}catch(e){this.emit("debug",{action:"receiveRpcError",error:e});for(const{reject:n}of t)n(e)}})()}}),e)}constructor(e,t){super(e,t),this.#ge=1,this.#w=Object.assign({},y,t||{}),this.#me=[],this.#ye=null,this.#we=null,this.#Ae=null;{let e=null;const t=new Promise((t=>{e=t}));this.#ve={promise:t,resolve:e}}const n=this._getOption("staticNetwork");"boolean"==typeof n?((0,i.assertArgument)(!n||"any"!==e,"staticNetwork cannot be used on special network 'any'","options",t),n&&null!=e&&(this.#we=c.Network.from(e))):n&&((0,i.assertArgument)(null==e||n.matches(e),"staticNetwork MUST match network object","options",t),this.#we=n)}_getOption(e){return this.#w[e]}get _network(){return(0,i.assert)(this.#we,"network is not available yet","NETWORK_ERROR"),this.#we}async _perform(e){if("call"===e.method||"estimateGas"===e.method){let t=e.transaction;if(t&&null!=t.type&&(0,i.getBigInt)(t.type)&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){const n=await this.getFeeData();null==n.maxFeePerGas&&null==n.maxPriorityFeePerGas&&(e=Object.assign({},e,{transaction:Object.assign({},t,{type:void 0})}))}}const t=this.getRpcRequest(e);return null!=t?await this.send(t.method,t.args):super._perform(e)}async _detectNetwork(){const e=this._getOption("staticNetwork");if(e){if(!0!==e)return e;if(this.#we)return this.#we}return this.#Ae?await this.#Ae:this.ready?(this.#Ae=(async()=>{try{const e=c.Network.from((0,i.getBigInt)(await this.send("eth_chainId",[])));return this.#Ae=null,e}catch(e){throw this.#Ae=null,e}})(),await this.#Ae):(this.#Ae=(async()=>{const e={id:this.#ge++,method:"eth_chainId",params:[],jsonrpc:"2.0"};let t;this.emit("debug",{action:"sendRpcPayload",payload:e});try{t=(await this._send(e))[0],this.#Ae=null}catch(e){throw this.#Ae=null,this.emit("debug",{action:"receiveRpcError",error:e}),e}if(this.emit("debug",{action:"receiveRpcResult",result:t}),"result"in t)return c.Network.from((0,i.getBigInt)(t.result));throw this.getRpcError(e,t)})(),await this.#Ae)}_start(){null!=this.#ve&&null!=this.#ve.resolve&&(this.#ve.resolve(),this.#ve=null,(async()=>{for(;null==this.#we&&!this.destroyed;)try{this.#we=await this._detectNetwork()}catch(e){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",(0,i.makeError)("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:e}})),await b(1e3)}this.#ke()})())}async _waitUntilReady(){if(null!=this.#ve)return await this.#ve.promise}_getSubscriber(e){return"pending"===e.type?new u.FilterIdPendingSubscriber(this):"event"===e.type?this._getOption("polling")?new d.PollingEventSubscriber(this,e.filter):new u.FilterIdEventSubscriber(this,e.filter):"orphan"===e.type&&"drop-log"===e.filter.orphan?new o.UnmanagedSubscriber("orphan"):super._getSubscriber(e)}get ready(){return null==this.#ve}getRpcTransaction(e){const t={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((n=>{if(null==e[n])return;let r=n;"gasLimit"===n&&(r="gas"),t[r]=(0,i.toQuantity)((0,i.getBigInt)(e[n],`tx.${n}`))})),["from","to","data"].forEach((n=>{null!=e[n]&&(t[n]=(0,i.hexlify)(e[n]))})),e.accessList&&(t.accessList=(0,s.accessListify)(e.accessList)),e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.map((e=>e.toLowerCase()))),t}getRpcRequest(e){switch(e.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[g(e.address),e.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[g(e.address),e.blockTag]};case"getCode":return{method:"eth_getCode",args:[g(e.address),e.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[g(e.address),"0x"+e.position.toString(16),e.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[e.signedTransaction]};case"getBlock":if("blockTag"in e)return{method:"eth_getBlockByNumber",args:[e.blockTag,!!e.includeTransactions]};if("blockHash"in e)return{method:"eth_getBlockByHash",args:[e.blockHash,!!e.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[e.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[e.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(e.transaction),e.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(e.transaction)]};case"getLogs":return e.filter&&null!=e.filter.address&&(Array.isArray(e.filter.address)?e.filter.address=e.filter.address.map(g):e.filter.address=g(e.filter.address)),{method:"eth_getLogs",args:[e.filter]}}return null}getRpcError(e,t){const{method:n}=e,{error:f}=t;if("eth_estimateGas"===n&&f.message){const t=f.message;if(!t.match(/revert/i)&&t.match(/insufficient funds/i))return(0,i.makeError)("insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.params[0],info:{payload:e,error:f}})}if("eth_call"===n||"eth_estimateGas"===n){const t=k(f),a=r.AbiCoder.getBuiltinCallException("eth_call"===n?"call":"estimateGas",e.params[0],t?t.data:null);return a.info={error:f,payload:e},a}const a=JSON.stringify(function(e){const t=[];return P(e,t),t}(f));if("string"==typeof f.message&&f.message.match(/user denied|ethers-user-denied/i)){const t={eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"};return(0,i.makeError)("user rejected action","ACTION_REJECTED",{action:t[n]||"unknown",reason:"rejected",info:{payload:e,error:f}})}if("eth_sendRawTransaction"===n||"eth_sendTransaction"===n){const t=e.params[0];if(a.match(/insufficient funds|base fee exceeds gas limit/i))return(0,i.makeError)("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t,info:{error:f}});if(a.match(/nonce/i)&&a.match(/too low/i))return(0,i.makeError)("nonce has already been used","NONCE_EXPIRED",{transaction:t,info:{error:f}});if(a.match(/replacement transaction/i)&&a.match(/underpriced/i))return(0,i.makeError)("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t,info:{error:f}});if(a.match(/only replay-protected/i))return(0,i.makeError)("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:n,info:{transaction:t,info:{error:f}}})}let s=!!a.match(/the method .* does not exist/i);return s||f&&f.details&&f.details.startsWith("Unauthorized method:")&&(s=!0),s?(0,i.makeError)("unsupported operation","UNSUPPORTED_OPERATION",{operation:e.method,info:{error:f,payload:e}}):(0,i.makeError)("could not coalesce error","UNKNOWN_ERROR",{error:f,payload:e})}send(e,t){if(this.destroyed)return Promise.reject((0,i.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e}));const n=this.#ge++,r=new Promise(((r,f)=>{this.#me.push({resolve:r,reject:f,payload:{method:e,params:t,id:n,jsonrpc:"2.0"}})}));return this.#ke(),r}async getSigner(e){null==e&&(e=0);const t=this.send("eth_accounts",[]);if("number"==typeof e){const n=await t;if(e>=n.length)throw new Error("no such account");return new v(this,n[e])}const{accounts:n}=await(0,i.resolveProperties)({network:this.getNetwork(),accounts:t});e=(0,f.getAddress)(e);for(const t of n)if((0,f.getAddress)(t)===e)return new v(this,e);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map((e=>new v(this,e)))}destroy(){this.#ye&&(clearTimeout(this.#ye),this.#ye=null);for(const{payload:e,reject:t}of this.#me)t((0,i.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e.method}));this.#me=[],super.destroy()}}t.JsonRpcApiProvider=w;class A extends w{#Pe;constructor(e,t){super(e,t);let n=this._getOption("pollingInterval");null==n&&(n=y.pollingInterval),this.#Pe=n}_getSubscriber(e){const t=super._getSubscriber(e);return m(t)&&(t.pollingInterval=this.#Pe),t}get pollingInterval(){return this.#Pe}set pollingInterval(e){if(!Number.isInteger(e)||e<0)throw new Error("invalid interval");this.#Pe=e,this._forEachSubscriber((e=>{m(e)&&(e.pollingInterval=this.#Pe)}))}}function k(e){if(null==e)return null;if("string"==typeof e.message&&e.message.match(/revert/i)&&(0,i.isHexString)(e.data))return{message:e.message,data:e.data};if("object"==typeof e){for(const t in e){const n=k(e[t]);if(n)return n}return null}if("string"==typeof e)try{return k(JSON.parse(e))}catch(e){}return null}function P(e,t){if(null!=e){if("string"==typeof e.message&&t.push(e.message),"object"==typeof e)for(const n in e)P(e[n],t);if("string"==typeof e)try{return P(JSON.parse(e),t)}catch(e){}}}t.JsonRpcApiPollingProvider=A,t.JsonRpcProvider=class extends A{#Ee;constructor(e,t,n){null==e&&(e="http://localhost:8545"),super(t,n),this.#Ee="string"==typeof e?new i.FetchRequest(e):e.clone()}_getConnection(){return this.#Ee.clone()}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){const t=this._getConnection();t.body=JSON.stringify(e),t.setHeader("content-type","application/json");const n=await t.send();n.assertOk();let r=n.bodyJson;return Array.isArray(r)||(r=[r]),r}}},2398:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PocketProvider=void 0;const r=n(5347),f=n(9973),a=n(5317),s=n(2371),i="62e1ad51b37b8e00394bda3b";class o extends s.JsonRpcProvider{applicationId;applicationSecret;constructor(e,t,n){null==e&&(e="mainnet");const f=a.Network.from(e);null==t&&(t=i),null==n&&(n=null);const s={staticNetwork:f};super(o.getRequest(f,t,n),f,s),(0,r.defineProperties)(this,{applicationId:t,applicationSecret:n})}_getProvider(e){try{return new o(e,this.applicationId,this.applicationSecret)}catch(e){}return super._getProvider(e)}static getRequest(e,t,n){null==t&&(t=i);const a=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v1/lb/${t}`);return a.allowGzip=!0,n&&a.setCredentials("",n),t===i&&(a.retryFunc=async(e,t,n)=>((0,f.showThrottleMessage)("PocketProvider"),!0)),a}isCommunityResource(){return this.applicationId===i}}t.PocketProvider=o},8817:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.QuickNodeProvider=void 0;const r=n(5347),f=n(9973),a=n(5317),s=n(2371),i="919b412a057b5e9c9b6dce193c5a60242d6efadb";class o extends s.JsonRpcProvider{token;constructor(e,t){null==e&&(e="mainnet");const n=a.Network.from(e);null==t&&(t=i),super(o.getRequest(n,t),n,{staticNetwork:n}),(0,r.defineProperties)(this,{token:t})}_getProvider(e){try{return new o(e,this.token)}catch(e){}return super._getProvider(e)}isCommunityResource(){return this.token===i}static getRequest(e,t){null==t&&(t=i);const n=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"sepolia":return"ethers.ethereum-sepolia.quiknode.pro";case"holesky":return"ethers.ethereum-holesky.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"arbitrum-sepolia":return"ethers.arbitrum-sepolia.quiknode.pro";case"base":return"ethers.base-mainnet.quiknode.pro";case"base-goerli":return"ethers.base-goerli.quiknode.pro";case"base-spolia":return"ethers.base-sepolia.quiknode.pro";case"bnb":return"ethers.bsc.quiknode.pro";case"bnbt":return"ethers.bsc-testnet.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro";case"optimism-sepolia":return"ethers.optimism-sepolia.quiknode.pro";case"xdai":return"ethers.xdai.quiknode.pro"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===i&&(n.retryFunc=async(e,t,n)=>((0,f.showThrottleMessage)("QuickNodeProvider"),!0)),n}}t.QuickNodeProvider=o},4945:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SocketProvider=t.SocketEventSubscriber=t.SocketPendingSubscriber=t.SocketBlockSubscriber=t.SocketSubscriber=void 0;const r=n(8672),f=n(5347),a=n(2371);class s{#Se;#A;get filter(){return JSON.parse(this.#A)}#Oe;#xe;#Te;constructor(e,t){this.#Se=e,this.#A=JSON.stringify(t),this.#Oe=null,this.#xe=null,this.#Te=null}start(){this.#Oe=this.#Se.send("eth_subscribe",this.filter).then((e=>(this.#Se._register(e,this),e)))}stop(){this.#Oe.then((e=>{this.#Se.destroyed||this.#Se.send("eth_unsubscribe",[e])})),this.#Oe=null}pause(e){(0,f.assert)(e,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),this.#xe=!!e}resume(){this.#xe=null}_handleMessage(e){if(null!=this.#Oe&&null===this.#xe){let t=this.#Te;t=null==t?this._emit(this.#Se,e):t.then((async()=>{await this._emit(this.#Se,e)})),this.#Te=t.then((()=>{this.#Te===t&&(this.#Te=null)}))}}async _emit(e,t){throw new Error("sub-classes must implemente this; _emit")}}t.SocketSubscriber=s;class i extends s{constructor(e){super(e,["newHeads"])}async _emit(e,t){e.emit("block",parseInt(t.number))}}t.SocketBlockSubscriber=i;class o extends s{constructor(e){super(e,["newPendingTransactions"])}async _emit(e,t){e.emit("pending",t)}}t.SocketPendingSubscriber=o;class l extends s{#Ce;get logFilter(){return JSON.parse(this.#Ce)}constructor(e,t){super(e,["logs",t]),this.#Ce=JSON.stringify(t)}async _emit(e,t){e.emit(this.logFilter,e._wrapLog(t,e._network))}}t.SocketEventSubscriber=l;class c extends a.JsonRpcApiProvider{#Ne;#B;#Re;constructor(e,t){const n=Object.assign({},null!=t?t:{});(0,f.assertArgument)(null==n.batchMaxCount||1===n.batchMaxCount,"sockets-based providers do not support batches","options.batchMaxCount",t),n.batchMaxCount=1,null==n.staticNetwork&&(n.staticNetwork=!0),super(e,n),this.#Ne=new Map,this.#B=new Map,this.#Re=new Map}_getSubscriber(e){switch(e.type){case"close":return new r.UnmanagedSubscriber("close");case"block":return new i(this);case"pending":return new o(this);case"event":return new l(this,e.filter);case"orphan":if("drop-log"===e.filter.orphan)return new r.UnmanagedSubscriber("drop-log")}return super._getSubscriber(e)}_register(e,t){this.#B.set(e,t);const n=this.#Re.get(e);if(n){for(const e of n)t._handleMessage(e);this.#Re.delete(e)}}async _send(e){(0,f.assertArgument)(!Array.isArray(e),"WebSocket does not support batch send","payload",e);const t=new Promise(((t,n)=>{this.#Ne.set(e.id,{payload:e,resolve:t,reject:n})}));return await this._waitUntilReady(),await this._write(JSON.stringify(e)),[await t]}async _processMessage(e){const t=JSON.parse(e);if(t&&"object"==typeof t&&"id"in t){const e=this.#Ne.get(t.id);if(null==e)return void this.emit("error",(0,f.makeError)("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:t}));this.#Ne.delete(t.id),e.resolve(t)}else{if(!t||"eth_subscription"!==t.method)return void this.emit("error",(0,f.makeError)("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:t}));{const e=t.params.subscription,n=this.#B.get(e);if(n)n._handleMessage(t.params.result);else{let n=this.#Re.get(e);null==n&&(n=[],this.#Re.set(e,n)),n.push(t.params.result)}}}}async _write(e){throw new Error("sub-classes must override this")}}t.SocketProvider=c},873:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocketProvider=void 0;const r=n(3913),f=n(4945);class a extends f.SocketProvider{#Ee;#Be;get websocket(){if(null==this.#Be)throw new Error("websocket closed");return this.#Be}constructor(e,t,n){super(t,n),"string"==typeof e?(this.#Ee=()=>new r.WebSocket(e),this.#Be=this.#Ee()):"function"==typeof e?(this.#Ee=e,this.#Be=e()):(this.#Ee=null,this.#Be=e),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(e){console.log("failed to start WebsocketProvider",e)}},this.websocket.onmessage=e=>{this._processMessage(e.data)}}async _write(e){this.websocket.send(e)}async destroy(){null!=this.#Be&&(this.#Be.close(),this.#Be=null),super.destroy()}}t.WebSocketProvider=a},3807:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionResponse=t.TransactionReceipt=t.Log=t.Block=t.copyRequest=t.FeeData=void 0;const r=n(5347),f=n(7778),a=BigInt(0);function s(e){return null==e?null:e}function i(e){return null==e?null:e.toString()}t.FeeData=class{gasPrice;maxFeePerGas;maxPriorityFeePerGas;constructor(e,t,n){(0,r.defineProperties)(this,{gasPrice:s(e),maxFeePerGas:s(t),maxPriorityFeePerGas:s(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:i(e),maxFeePerGas:i(t),maxPriorityFeePerGas:i(n)}}},t.copyRequest=function(e){const t={};e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=(0,r.hexlify)(e.data));const n="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const f of n)f in e&&null!=e[f]&&(t[f]=(0,r.getBigInt)(e[f],`request.${f}`));const a="type,nonce".split(/,/);for(const n of a)n in e&&null!=e[n]&&(t[n]=(0,r.getNumber)(e[n],`request.${n}`));return e.accessList&&(t.accessList=(0,f.accessListify)(e.accessList)),"blockTag"in e&&(t.blockTag=e.blockTag),"enableCcipRead"in e&&(t.enableCcipRead=!!e.enableCcipRead),"customData"in e&&(t.customData=e.customData),"blobVersionedHashes"in e&&e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.slice()),"kzg"in e&&(t.kzg=e.kzg),"blobs"in e&&e.blobs&&(t.blobs=e.blobs.map((e=>(0,r.isBytesLike)(e)?(0,r.hexlify)(e):Object.assign({},e)))),t};class o{provider;number;hash;timestamp;parentHash;parentBeaconBlockRoot;nonce;difficulty;gasLimit;gasUsed;stateRoot;receiptsRoot;blobGasUsed;excessBlobGas;miner;prevRandao;extraData;baseFeePerGas;#Ie;constructor(e,t){this.#Ie=e.transactions.map((e=>"string"!=typeof e?new u(e,t):e)),(0,r.defineProperties)(this,{provider:t,hash:s(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:s(e.prevRandao),extraData:e.extraData,baseFeePerGas:s(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return this.#Ie.map((e=>"string"==typeof e?e:e.hash))}get prefetchedTransactions(){const e=this.#Ie.slice();return 0===e.length?[]:((0,r.assert)("object"==typeof e[0],"transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:t,extraData:n,gasLimit:r,gasUsed:f,hash:a,miner:s,prevRandao:o,nonce:l,number:c,parentHash:u,parentBeaconBlockRoot:d,stateRoot:p,receiptsRoot:h,timestamp:b,transactions:g}=this;return{_type:"Block",baseFeePerGas:i(e),difficulty:i(t),extraData:n,gasLimit:i(r),gasUsed:i(f),blobGasUsed:i(this.blobGasUsed),excessBlobGas:i(this.excessBlobGas),hash:a,miner:s,prevRandao:o,nonce:l,number:c,parentHash:u,timestamp:b,parentBeaconBlockRoot:d,stateRoot:p,receiptsRoot:h,transactions:g}}[Symbol.iterator](){let e=0;const t=this.transactions;return{next:()=>enew l(e,t))));let n=a;null!=e.effectiveGasPrice?n=e.effectiveGasPrice:null!=e.gasPrice&&(n=e.gasPrice),(0,r.defineProperties)(this,{provider:t,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,blobGasUsed:e.blobGasUsed,gasPrice:n,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return this.#_e}toJSON(){const{to:e,from:t,contractAddress:n,hash:r,index:f,blockHash:a,blockNumber:s,logsBloom:o,logs:l,status:c,root:u}=this;return{_type:"TransactionReceipt",blockHash:a,blockNumber:s,contractAddress:n,cumulativeGasUsed:i(this.cumulativeGasUsed),from:t,gasPrice:i(this.gasPrice),blobGasUsed:i(this.blobGasUsed),blobGasPrice:i(this.blobGasPrice),gasUsed:i(this.gasUsed),hash:r,index:f,logs:l,logsBloom:o,root:u,status:c,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e{if(o)return null;const{blockNumber:e,nonce:t}=await(0,r.resolveProperties)({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(t{if(null==e||0!==e.status)return e;(0,r.assert)(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:e.to,from:e.from,data:""},receipt:e})},u=await this.provider.getTransactionReceipt(this.hash);if(0===n)return c(u);if(u){if(await u.confirmations()>=n)return c(u)}else if(await l(),0===n)return null;const d=new Promise(((e,t)=>{const a=[],i=()=>{a.forEach((e=>e()))};if(a.push((()=>{o=!0})),f>0){const e=setTimeout((()=>{i(),t((0,r.makeError)("wait for transaction timeout","TIMEOUT"))}),f);a.push((()=>{clearTimeout(e)}))}const u=async r=>{if(await r.confirmations()>=n){i();try{e(c(r))}catch(e){t(e)}}};if(a.push((()=>{this.provider.off(this.hash,u)})),this.provider.on(this.hash,u),s>=0){const e=async()=>{try{await l()}catch(e){if((0,r.isError)(e,"TRANSACTION_REPLACED"))return i(),void t(e)}o||this.provider.once("block",e)};a.push((()=>{this.provider.off("block",e)})),this.provider.once("block",e)}}));return await d}isMined(){return null!=this.blockHash}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}removedEvent(){return(0,r.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),p(this)}reorderedEvent(e){return(0,r.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),(0,r.assert)(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),d(this,e)}replaceableTransaction(e){(0,r.assertArgument)(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const t=new u(this,this.provider);return t.#Fe=e,t}}function d(e,t){return{orphan:"reorder-transaction",tx:e,other:t}}function p(e){return{orphan:"drop-transaction",tx:e}}t.TransactionResponse=u},9596:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NonceManager=void 0;const r=n(5347),f=n(3071);class a extends f.AbstractSigner{signer;#Le;#je;constructor(e){super(e.provider),(0,r.defineProperties)(this,{signer:e}),this.#Le=null,this.#je=0}async getAddress(){return this.signer.getAddress()}connect(e){return new a(this.signer.connect(e))}async getNonce(e){if("pending"===e){null==this.#Le&&(this.#Le=super.getNonce("pending"));const e=this.#je;return await this.#Le+e}return super.getNonce(e)}increment(){this.#je++}reset(){this.#je=0,this.#Le=null}async sendTransaction(e){const t=this.getNonce("pending");return this.increment(),(e=await this.signer.populateTransaction(e)).nonce=await t,await this.signer.sendTransaction(e)}signTransaction(e){return this.signer.signTransaction(e)}signMessage(e){return this.signer.signMessage(e)}signTypedData(e,t,n){return this.signer.signTypedData(e,t,n)}}t.NonceManager=a},7966:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FilterIdPendingSubscriber=t.FilterIdEventSubscriber=t.FilterIdSubscriber=void 0;const r=n(5347),f=n(4338);class a{#Se;#Ue;#Me;#De;#we;#ze;constructor(e){this.#Se=e,this.#Ue=null,this.#Me=this.#He.bind(this),this.#De=!1,this.#we=null,this.#ze=!1}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,t){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}async#He(e){try{null==this.#Ue&&(this.#Ue=this._subscribe(this.#Se));let e=null;try{e=await this.#Ue}catch(e){if(!(0,r.isError)(e,"UNSUPPORTED_OPERATION")||"eth_newFilter"!==e.operation)throw e}if(null==e)return this.#Ue=null,void this.#Se._recoverSubscriber(this,this._recover(this.#Se));const t=await this.#Se.getNetwork();if(this.#we||(this.#we=t),this.#we.chainId!==t.chainId)throw new Error("chaid changed");if(this.#ze)return;const n=await this.#Se.send("eth_getFilterChanges",[e]);await this._emitResults(this.#Se,n)}catch(e){console.log("@TODO",e)}this.#Se.once("block",this.#Me)}#Ge(){const e=this.#Ue;e&&(this.#Ue=null,e.then((e=>{this.#Se.destroyed||this.#Se.send("eth_uninstallFilter",[e])})))}start(){this.#De||(this.#De=!0,this.#He(-2))}stop(){this.#De&&(this.#De=!1,this.#ze=!0,this.#Ge(),this.#Se.off("block",this.#Me))}pause(e){e&&this.#Ge(),this.#Se.off("block",this.#Me)}resume(){this.start()}}t.FilterIdSubscriber=a,t.FilterIdEventSubscriber=class extends a{#Ve;constructor(e,t){var n;super(e),this.#Ve=(n=t,JSON.parse(JSON.stringify(n)))}_recover(e){return new f.PollingEventSubscriber(e,this.#Ve)}async _subscribe(e){return await e.send("eth_newFilter",[this.#Ve])}async _emitResults(e,t){for(const n of t)e.emit(this.#Ve,e._wrapLog(n,e._network))}},t.FilterIdPendingSubscriber=class extends a{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,t){for(const n of t)e.emit("pending",n)}}},4338:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PollingEventSubscriber=t.PollingTransactionSubscriber=t.PollingOrphanSubscriber=t.PollingBlockTagSubscriber=t.OnBlockSubscriber=t.PollingBlockSubscriber=t.getPollingSubscriber=void 0;const r=n(5347);function f(e){return JSON.parse(JSON.stringify(e))}t.getPollingSubscriber=function(e,t){return"block"===t?new a(e):(0,r.isHexString)(t,32)?new i(e,t):void(0,r.assert)(!1,"unsupported polling event","UNSUPPORTED_OPERATION",{operation:"getPollingSubscriber",info:{event:t}})};class a{#Se;#Me;#Ke;#qe;constructor(e){this.#Se=e,this.#Me=null,this.#Ke=4e3,this.#qe=-2}get pollingInterval(){return this.#Ke}set pollingInterval(e){this.#Ke=e}async#He(){try{const e=await this.#Se.getBlockNumber();if(-2===this.#qe)return void(this.#qe=e);if(e!==this.#qe){for(let t=this.#qe+1;t<=e;t++){if(null==this.#Me)return;await this.#Se.emit("block",t)}this.#qe=e}}catch(e){}null!=this.#Me&&(this.#Me=this.#Se._setTimeout(this.#He.bind(this),this.#Ke))}start(){this.#Me||(this.#Me=this.#Se._setTimeout(this.#He.bind(this),this.#Ke),this.#He())}stop(){this.#Me&&(this.#Se._clearTimeout(this.#Me),this.#Me=null)}pause(e){this.stop(),e&&(this.#qe=-2)}resume(){this.start()}}t.PollingBlockSubscriber=a;class s{#Se;#He;#De;constructor(e){this.#Se=e,this.#De=!1,this.#He=e=>{this._poll(e,this.#Se)}}async _poll(e,t){throw new Error("sub-classes must override this")}start(){this.#De||(this.#De=!0,this.#He(-2),this.#Se.on("block",this.#He))}stop(){this.#De&&(this.#De=!1,this.#Se.off("block",this.#He))}pause(e){this.stop()}resume(){this.start()}}t.OnBlockSubscriber=s,t.PollingBlockTagSubscriber=class extends s{#Qe;#Je;constructor(e,t){super(e),this.#Qe=t,this.#Je=-2}pause(e){e&&(this.#Je=-2),super.pause(e)}async _poll(e,t){const n=await t.getBlock(this.#Qe);null!=n&&(-2===this.#Je?this.#Je=n.number:n.number>this.#Je&&(t.emit(this.#Qe,n.number),this.#Je=n.number))}},t.PollingOrphanSubscriber=class extends s{#A;constructor(e,t){super(e),this.#A=f(t)}async _poll(e,t){throw new Error("@TODO")}};class i extends s{#We;constructor(e,t){super(e),this.#We=t}async _poll(e,t){const n=await t.getTransactionReceipt(this.#We);n&&t.emit(this.#We,n)}}t.PollingTransactionSubscriber=i,t.PollingEventSubscriber=class{#Se;#A;#Me;#De;#qe;constructor(e,t){this.#Se=e,this.#A=f(t),this.#Me=this.#He.bind(this),this.#De=!1,this.#qe=-2}async#He(e){if(-2===this.#qe)return;const t=f(this.#A);t.fromBlock=this.#qe+1,t.toBlock=e;const n=await this.#Se.getLogs(t);if(0!==n.length)for(const e of n)this.#Se.emit(this.#A,e),this.#qe=e.blockNumber;else this.#qe{this.#qe=e})),this.#Se.on("block",this.#Me))}stop(){this.#De&&(this.#De=!1,this.#Se.off("block",this.#Me))}pause(e){this.stop(),e&&(this.#qe=-2)}resume(){this.start()}}},3913:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocket=void 0;const r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("unable to locate global object")}().WebSocket;t.WebSocket=r},7918:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.accessListify=void 0;const r=n(646),f=n(5347);function a(e,t){return{address:(0,r.getAddress)(e),storageKeys:t.map(((e,t)=>((0,f.assertArgument)((0,f.isHexString)(e,32),"invalid slot",`storageKeys[${t}]`,e),e.toLowerCase())))}}t.accessListify=function(e){if(Array.isArray(e))return e.map(((t,n)=>Array.isArray(t)?((0,f.assertArgument)(2===t.length,"invalid slot set",`value[${n}]`,t),a(t[0],t[1])):((0,f.assertArgument)(null!=t&&"object"==typeof t,"invalid address-slot set","value",e),a(t.address,t.storageKeys))));(0,f.assertArgument)(null!=e&&"object"==typeof e,"invalid access list","value",e);const t=Object.keys(e).map((t=>{const n=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return a(t,Object.keys(n).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}},778:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=t.computeAddress=void 0;const r=n(646),f=n(2291);function a(e){let t;return t="string"==typeof e?f.SigningKey.computePublicKey(e,!1):e.publicKey,(0,r.getAddress)((0,f.keccak256)("0x"+t.substring(4)).substring(26))}t.computeAddress=a,t.recoverAddress=function(e,t){return a(f.SigningKey.recoverPublicKey(e,t))}},7778:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=t.recoverAddress=t.computeAddress=t.accessListify=void 0;var r=n(7918);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return r.accessListify}});var f=n(778);Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return f.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return f.recoverAddress}});var a=n(1398);Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return a.Transaction}})},1398:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=void 0;const r=n(646),f=n(5239),a=n(2291),s=n(5347),i=n(7918),o=n(778),l=BigInt(0),c=BigInt(2),u=BigInt(27),d=BigInt(28),p=BigInt(35),h=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),b=131072;function g(e,t){let n=e.toString(16);for(;n.length<2;)n="0"+n;return n+=(0,a.sha256)(t).substring(4),"0x"+n}function m(e){return"0x"===e?null:(0,r.getAddress)(e)}function y(e,t){try{return(0,i.accessListify)(e)}catch(n){(0,s.assertArgument)(!1,n.message,t,e)}}function v(e,t){return"0x"===e?0:(0,s.getNumber)(e,t)}function w(e,t){if("0x"===e)return l;const n=(0,s.getBigInt)(e,t);return(0,s.assertArgument)(n<=h,"value exceeds uint size",t,n),n}function A(e,t){const n=(0,s.getBigInt)(e,"value"),r=(0,s.toBeArray)(n);return(0,s.assertArgument)(r.length<=32,"value too large",`tx.${t}`,n),r}function k(e){return(0,i.accessListify)(e).map((e=>[e.address,e.storageKeys]))}function P(e,t){(0,s.assertArgument)(Array.isArray(e),`invalid ${t}`,"value",e);for(let t=0;tObject.assign({},e)))}set blobs(e){if(null==e)return void(this.#lt=null);const t=[],n=[];for(let r=0;re.data)),n.map((e=>e.commitment)),n.map((e=>e.proof))])]):(0,s.concat)(["0x03",(0,s.encodeRlp)(r)])}(this,n,t?this.blobs:null)}(0,s.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get serialized(){return this.#ct(!0,!0)}get unsignedSerialized(){return this.#ct(!1,!1)}inferType(){const e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){const e=null!=this.gasPrice,t=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,n=null!=this.accessList,r=null!=this.#st||this.#it;null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&&(0,s.assert)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,s.assert)(!t||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,s.assert)(0!==this.type||!n,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const f=[];return null!=this.type?f.push(this.type):t?f.push(2):e?(f.push(1),n||f.push(0)):n?(f.push(1),f.push(2)):(r&&this.to||(f.push(0),f.push(1),f.push(2)),f.push(3)),f.sort(),f}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}clone(){return S.from(this)}toJSON(){const e=e=>null==e?null:e.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(null==e)return new S;if("string"==typeof e){const t=(0,s.getBytes)(e);if(t[0]>=127)return S.from(function(e){const t=(0,s.decodeRlp)(e);(0,s.assertArgument)(Array.isArray(t)&&(9===t.length||6===t.length),"invalid field count for legacy transaction","data",e);const n={type:0,nonce:v(t[0],"nonce"),gasPrice:w(t[1],"gasPrice"),gasLimit:w(t[2],"gasLimit"),to:m(t[3]),value:w(t[4],"value"),data:(0,s.hexlify)(t[5]),chainId:l};if(6===t.length)return n;const r=w(t[6],"v"),f=w(t[7],"r"),i=w(t[8],"s");if(f===l&&i===l)n.chainId=r;else{let e=(r-p)/c;e{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBase58=t.encodeBase58=void 0;const r=n(7415),f=n(1500),a=n(6508),s="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";let i=null;function o(e){if(null==i){i={};for(let e=0;e<58;e++)i[s[e]]=BigInt(e)}const t=i[e];return(0,f.assertArgument)(null!=t,"invalid base58 value","letter",e),t}const l=BigInt(0),c=BigInt(58);t.encodeBase58=function(e){const t=(0,r.getBytes)(e);let n=(0,a.toBigInt)(t),f="";for(;n;)f=s[Number(n%c)]+f,n/=c;for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBase64=t.decodeBase64=void 0;const r=n(7415);t.decodeBase64=function(e){e=atob(e);const t=new Uint8Array(e.length);for(let n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=void 0;const r=n(1500);function f(e,t,n){if(e instanceof Uint8Array)return n?new Uint8Array(e):e;if("string"==typeof e&&e.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){const t=new Uint8Array((e.length-2)/2);let n=2;for(let r=0;r>4]+i[15&r]}return n}function l(e,t,n){const f=a(e);(0,r.assert)(t>=f.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(f),length:t,offset:t+1});const s=new Uint8Array(t);return s.fill(0),n?s.set(f,t-f.length):s.set(f,0),o(s)}t.hexlify=o,t.concat=function(e){return"0x"+e.map((e=>o(e).substring(2))).join("")},t.dataLength=function(e){return s(e,!0)?(e.length-2)/2:a(e).length},t.dataSlice=function(e,t,n){const f=a(e);return null!=n&&n>f.length&&(0,r.assert)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:f,length:f.length,offset:n}),o(f.slice(null==t?0:t,null==n?f.length:n))},t.stripZerosLeft=function(e){let t=o(e).substring(2);for(;t.startsWith("00");)t=t.substring(2);return"0x"+t},t.zeroPadValue=function(e,t){return l(e,t,!0)},t.zeroPadBytes=function(e,t){return l(e,t,!1)}},1500:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertPrivate=t.assertNormalize=t.assertArgumentCount=t.assertArgument=t.assert=t.makeError=t.isCallException=t.isError=void 0;const r=n(4586),f=n(8166);function a(e){if(null==e)return"null";if(Array.isArray(e))return"[ "+e.map(a).join(", ")+" ]";if(e instanceof Uint8Array){const t="0123456789abcdef";let n="0x";for(let r=0;r>4],n+=t[15&e[r]];return n}if("object"==typeof e&&"function"==typeof e.toJSON)return a(e.toJSON());switch(typeof e){case"boolean":case"symbol":case"number":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{const t=Object.keys(e);return t.sort(),"{ "+t.map((t=>`${a(t)}: ${a(e[t])}`)).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function s(e,t){return e&&e.code===t}function i(e,t,n){let s,i=e;{const f=[];if(n){if("message"in n||"code"in n||"name"in n)throw new Error(`value will overwrite populated values: ${a(n)}`);for(const e in n){if("shortMessage"===e)continue;const t=n[e];f.push(e+"="+a(t))}}f.push(`code=${t}`),f.push(`version=${r.version}`),f.length&&(e+=" ("+f.join(", ")+")")}switch(t){case"INVALID_ARGUMENT":s=new TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":s=new RangeError(e);break;default:s=new Error(e)}return(0,f.defineProperties)(s,{code:t}),n&&Object.assign(s,n),null==s.shortMessage&&(0,f.defineProperties)(s,{shortMessage:i}),s}function o(e,t,n,r){if(!e)throw i(t,n,r)}t.isError=s,t.isCallException=function(e){return s(e,"CALL_EXCEPTION")},t.makeError=i,t.assert=o,t.assertArgument=function(e,t,n,r){o(e,t,"INVALID_ARGUMENT",{argument:n,value:r})},t.assertArgumentCount=function(e,t,n){null==n&&(n=""),n&&(n=": "+n),o(e>=t,"missing argument"+n,"MISSING_ARGUMENT",{count:e,expectedCount:t}),o(e<=t,"too many arguments"+n,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})};const l=["NFD","NFC","NFKD","NFKC"].reduce(((e,t)=>{try{if("test"!=="test".normalize(t))throw new Error("bad");if("NFD"===t){if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken")}e.push(t)}catch(e){}return e}),[]);t.assertNormalize=function(e){o(l.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})},t.assertPrivate=function(e,t,n){if(null==n&&(n=""),e!==t){let e=n,t="new";n&&(e+=".",t+=" "+n),o(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}}},7698:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EventPayload=void 0;const r=n(8166);t.EventPayload=class{filter;emitter;#ut;constructor(e,t,n){this.#ut=t,(0,r.defineProperties)(this,{emitter:e,filter:n})}async removeListener(){null!=this.#ut&&await this.emitter.off(this.filter,this.#ut)}}},5191:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FetchResponse=t.FetchRequest=t.FetchCancelSignal=void 0;const r=n(1949),f=n(7415),a=n(1500),s=n(8166),i=n(3948),o=n(3271);let l=(0,o.createGetUrl)();const c=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),u=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let d=!1;async function p(e,t){try{const t=e.match(c);if(!t)throw new Error("invalid data");return new w(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?(0,r.decodeBase64)(t[3]):(n=t[3],(0,i.toUtf8Bytes)(n.replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16)))))))}catch(t){return new w(599,"BAD REQUEST (invalid data: URI)",{},null,new v(e))}var n}function h(e){return async function(t,n){try{const n=t.match(u);if(!n)throw new Error("invalid link");return new v(`${e}${n[2]}`)}catch(e){return new w(599,"BAD REQUEST (invalid IPFS URI)",{},null,new v(t))}}}const b={data:p,ipfs:h("https://gateway.ipfs.io/ipfs/")},g=new WeakMap;class m{#dt;#pt;constructor(e){this.#dt=[],this.#pt=!1,g.set(e,(()=>{if(!this.#pt){this.#pt=!0;for(const e of this.#dt)setTimeout((()=>{e()}),0);this.#dt=[]}}))}addListener(e){(0,a.assert)(!this.#pt,"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),this.#dt.push(e)}get cancelled(){return this.#pt}checkSignal(){(0,a.assert)(!this.cancelled,"cancelled","CANCELLED",{})}}function y(e){if(null==e)throw new Error("missing signal; should not happen");return e.checkSignal(),e}t.FetchCancelSignal=m;class v{#ht;#bt;#gt;#mt;#yt;#fe;#vt;#wt;#At;#kt;#Pt;#Et;#St;#Ot;#xt;get url(){return this.#fe}set url(e){this.#fe=String(e)}get body(){return null==this.#vt?null:new Uint8Array(this.#vt)}set body(e){if(null==e)this.#vt=void 0,this.#wt=void 0;else if("string"==typeof e)this.#vt=(0,i.toUtf8Bytes)(e),this.#wt="text/plain";else if(e instanceof Uint8Array)this.#vt=e,this.#wt="application/octet-stream";else{if("object"!=typeof e)throw new Error("invalid body");this.#vt=(0,i.toUtf8Bytes)(JSON.stringify(e)),this.#wt="application/json"}}hasBody(){return null!=this.#vt}get method(){return this.#mt?this.#mt:this.hasBody()?"POST":"GET"}set method(e){null==e&&(e=""),this.#mt=String(e).toUpperCase()}get headers(){const e=Object.assign({},this.#gt);return this.#At&&(e.authorization=`Basic ${(0,r.encodeBase64)((0,i.toUtf8Bytes)(this.#At))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),null==e["content-type"]&&this.#wt&&(e["content-type"]=this.#wt),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){this.#gt[String(e).toLowerCase()]=String(t)}clearHeaders(){this.#gt={}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n=0,"timeout must be non-zero","timeout",e),this.#yt=e}get preflightFunc(){return this.#kt||null}set preflightFunc(e){this.#kt=e}get processFunc(){return this.#Pt||null}set processFunc(e){this.#Pt=e}get retryFunc(){return this.#Et||null}set retryFunc(e){this.#Et=e}get getUrlFunc(){return this.#xt||l}set getUrlFunc(e){this.#xt=e}constructor(e){this.#fe=String(e),this.#ht=!1,this.#bt=!0,this.#gt={},this.#mt="",this.#yt=3e5,this.#Ot={slotInterval:250,maxAttempts:12},this.#xt=null}toString(){return``}setThrottleParams(e){null!=e.slotInterval&&(this.#Ot.slotInterval=e.slotInterval),null!=e.maxAttempts&&(this.#Ot.maxAttempts=e.maxAttempts)}async#Tt(e,t,n,r,f){if(e>=this.#Ot.maxAttempts)return f.makeServerError("exceeded maximum retry limit");(0,a.assert)(A()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:r}),n>0&&await function(e){return new Promise((t=>setTimeout(t,e)))}(n);let s=this.clone();const i=(s.url.split(":")[0]||"").toLowerCase();if(i in b){const e=await b[i](s.url,y(r.#St));if(e instanceof w){let t=e;if(this.processFunc){y(r.#St);try{t=await this.processFunc(s,t)}catch(e){null!=e.throttle&&"number"==typeof e.stall||t.makeServerError("error in post-processing function",e).assertOk()}}return t}s=e}this.preflightFunc&&(s=await this.preflightFunc(s));const o=await this.getUrlFunc(s,y(r.#St));let l=new w(o.statusCode,o.statusMessage,o.headers,o.body,r);if(301===l.statusCode||302===l.statusCode){try{const n=l.headers.location||"";return s.redirect(n).#Tt(e+1,t,0,r,l)}catch(e){}return l}if(429===l.statusCode&&(null==this.retryFunc||await this.retryFunc(s,l,e))){const n=l.headers["retry-after"];let f=this.#Ot.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return"string"==typeof n&&n.match(/^[1-9][0-9]*$/)&&(f=parseInt(n)),s.clone().#Tt(e+1,t,f,r,l)}if(this.processFunc){y(r.#St);try{l=await this.processFunc(s,l)}catch(n){null!=n.throttle&&"number"==typeof n.stall||l.makeServerError("error in post-processing function",n).assertOk();let f=this.#Ot.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return n.stall>=0&&(f=n.stall),s.clone().#Tt(e+1,t,f,r,l)}}return l}send(){return(0,a.assert)(null==this.#St,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),this.#St=new m(this),this.#Tt(0,A()+this.timeout,0,this,new w(0,"",{},null,this))}cancel(){(0,a.assert)(null!=this.#St,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=g.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const t=this.url.split(":")[0].toLowerCase(),n=e.split(":")[0].toLowerCase();(0,a.assert)("GET"===this.method&&("https"!==t||"http"!==n)&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const r=new v(e);return r.method="GET",r.allowGzip=this.allowGzip,r.timeout=this.timeout,r.#gt=Object.assign({},this.#gt),this.#vt&&(r.#vt=new Uint8Array(this.#vt)),r.#wt=this.#wt,r}clone(){const e=new v(this.url);return e.#mt=this.#mt,this.#vt&&(e.#vt=this.#vt),e.#wt=this.#wt,e.#gt=Object.assign({},this.#gt),e.#At=this.#At,this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),e.#kt=this.#kt,e.#Pt=this.#Pt,e.#Et=this.#Et,e.#Ot=Object.assign({},this.#Ot),e.#xt=this.#xt,e}static lockConfig(){d=!0}static getGateway(e){return b[e.toLowerCase()]||null}static registerGateway(e,t){if("http"===(e=e.toLowerCase())||"https"===e)throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(d)throw new Error("gateways locked");b[e]=t}static registerGetUrl(e){if(d)throw new Error("gateways locked");l=e}static createGetUrlFunc(e){return(0,o.createGetUrl)(e)}static createDataGateway(){return p}static createIpfsGatewayFunc(e){return h(e)}}t.FetchRequest=v;class w{#Ct;#Nt;#gt;#vt;#se;#Rt;toString(){return``}get statusCode(){return this.#Ct}get statusMessage(){return this.#Nt}get headers(){return Object.assign({},this.#gt)}get body(){return null==this.#vt?null:new Uint8Array(this.#vt)}get bodyText(){try{return null==this.#vt?"":(0,i.toUtf8String)(this.#vt)}catch(e){(0,a.assert)(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch(e){(0,a.assert)(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n(e[t.toLowerCase()]=String(n[t]),e)),{}),this.#vt=null==r?null:new Uint8Array(r),this.#se=f||null,this.#Rt={message:""}}makeServerError(e,t){let n;n=e?`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:`CLIENT ESCALATED SERVER ERROR (${e=`${this.statusCode} ${this.statusMessage}`})`;const r=new w(599,n,this.headers,this.body,this.#se||void 0);return r.#Rt={message:e,error:t},r}throwThrottleError(e,t){null==t?t=-1:(0,a.assertArgument)(Number.isInteger(t)&&t>=0,"invalid stall timeout","stall",t);const n=new Error(e||"throttling requests");throw(0,s.defineProperties)(n,{stall:t,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return null!=this.#vt}get request(){return this.#se}ok(){return""===this.#Rt.message&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=this.#Rt;""===e&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let n=null;this.request&&(n=this.request.url);let r=null;try{this.#vt&&(r=(0,i.toUtf8String)(this.#vt))}catch(e){}(0,a.assert)(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t,info:{requestUrl:n,responseBody:r,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}}function A(){return(new Date).getTime()}t.FetchResponse=w},9412:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FixedNumber=void 0;const r=n(7415),f=n(1500),a=n(6508),s=n(8166),i=BigInt(-1),o=BigInt(0),l=BigInt(1),c=BigInt(5),u={};let d="0000";for(;d.length<80;)d+=d;function p(e){let t=d;for(;t.length=-t&&eo?(0,a.fromTwos)((0,a.mask)(e,r),r):-(0,a.fromTwos)((0,a.mask)(-e,r),r)}else{const t=l<=0&&enull==a[e]?n:((0,f.assertArgument)(typeof a[e]===t,"invalid fixed format ("+e+" not "+t+")","format."+e,a[e]),a[e]);t=s("signed","boolean",t),n=s("width","number",n),r=s("decimals","number",r)}return(0,f.assertArgument)(n%8==0,"invalid FixedNumber width (not byte aligned)","format.width",n),(0,f.assertArgument)(r<=80,"invalid FixedNumber decimals (too large)","format.decimals",r),{signed:t,width:n,decimals:r,name:(t?"":"u")+"fixed"+String(n)+"x"+String(r)}}class g{format;#Bt;#It;#_t;_value;constructor(e,t,n){(0,f.assertPrivate)(e,u,"FixedNumber"),this.#It=t,this.#Bt=n;const r=function(e,t){let n="";e0?n*=p(r):r<0&&(t*=p(-r)),tn?1:0}eq(e){return 0===this.cmp(e)}lt(e){return this.cmp(e)<0}lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=this.#It;return this.#Ito&&(e+=this.#_t-l),e=this.#It/this.#_t*this.#_t,this.#Lt(e,"ceiling")}round(e){if(null==e&&(e=0),e>=this.decimals)return this;const t=this.decimals-e,n=c*p(t-1);let r=this.value+n;const f=p(t);return r=r/f*f,h(r,this.#Bt,"round"),new g(u,r,this.#Bt)}isZero(){return this.#It===o}isNegative(){return this.#It0){const t=p(l);(0,f.assert)(i%t===o,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),i/=t}else l<0&&(i*=p(-l));return h(i,s,"fromValue"),new g(u,i,s)}static fromString(e,t){const n=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);(0,f.assertArgument)(n&&n[2].length+n[3].length>0,"invalid FixedNumber string value","value",e);const r=b(t);let a=n[2]||"0",s=n[3]||"";for(;s.length{Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=t.createGetUrl=void 0;const r=n(1500);function f(e){return async function(e,t){(0,r.assert)(null==t||!t.cancelled,"request cancelled before sending","CANCELLED");const n=e.url.split(":")[0].toLowerCase();(0,r.assert)("http"===n||"https"===n,`unsupported protocol ${n}`,"UNSUPPORTED_OPERATION",{info:{protocol:n},operation:"request"}),(0,r.assert)("https"===n||!e.credentials||e.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let f=null;const a=new AbortController,s=setTimeout((()=>{f=(0,r.makeError)("request timeout","TIMEOUT"),a.abort()}),e.timeout);t&&t.addListener((()=>{f=(0,r.makeError)("request cancelled","CANCELLED"),a.abort()}));const i={method:e.method,headers:new Headers(Array.from(e)),body:e.body||void 0,signal:a.signal};let o;try{o=await fetch(e.url,i)}catch(e){if(clearTimeout(s),f)throw f;throw e}clearTimeout(s);const l={};o.headers.forEach(((e,t)=>{l[t.toLowerCase()]=e}));const c=await o.arrayBuffer(),u=null==c?null:new Uint8Array(c);return{statusCode:o.status,statusMessage:o.statusText,headers:l,body:u}}}t.createGetUrl=f;const a=f();t.getUrl=async function(e,t){return a(e,t)}},5347:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.encodeRlp=t.decodeRlp=t.defineProperties=t.resolveProperties=t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.toBigInt=t.getUint=t.getNumber=t.getBigInt=t.mask=t.toTwos=t.fromTwos=t.FixedNumber=t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.makeError=t.assertNormalize=t.assertPrivate=t.assertArgumentCount=t.assertArgument=t.assert=t.isError=t.isCallException=t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=void 0,t.uuidV4=t.Utf8ErrorFuncs=void 0;var r=n(8567);Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return r.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return r.encodeBase58}});var f=n(1949);Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return f.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return f.encodeBase64}});var a=n(7415);Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return a.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return a.getBytesCopy}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return a.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return a.isBytesLike}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return a.hexlify}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return a.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return a.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return a.dataSlice}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return a.stripZerosLeft}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return a.zeroPadValue}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return a.zeroPadBytes}});var s=n(1500);Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return s.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return s.isError}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return s.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return s.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return s.assertArgumentCount}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return s.assertPrivate}}),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return s.assertNormalize}}),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return s.makeError}});var i=n(7698);Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return i.EventPayload}});var o=n(5191);Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return o.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return o.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return o.FetchCancelSignal}});var l=n(9412);Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return l.FixedNumber}});var c=n(6508);Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return c.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return c.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return c.mask}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return c.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return c.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return c.getUint}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return c.toBigInt}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return c.toNumber}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return c.toBeHex}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return c.toBeArray}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return c.toQuantity}});var u=n(8166);Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return u.resolveProperties}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return u.defineProperties}});var d=n(7780);Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return d.decodeRlp}});var p=n(5212);Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return p.encodeRlp}});var h=n(436);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return h.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return h.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return h.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return h.parseUnits}});var b=n(3948);Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return b.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return b.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return b.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return b.Utf8ErrorFuncs}});var g=n(7744);Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return g.uuidV4}})},6508:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.getNumber=t.toBigInt=t.getUint=t.getBigInt=t.mask=t.toTwos=t.fromTwos=void 0;const r=n(7415),f=n(1500),a=BigInt(0),s=BigInt(1),i=9007199254740991;function o(e,t){switch(typeof e){case"bigint":return e;case"number":return(0,f.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,f.assertArgument)(e>=-i&&e<=i,"overflow",t||"value",e),BigInt(e);case"string":try{if(""===e)throw new Error("empty string");return"-"===e[0]&&"-"!==e[1]?-BigInt(e.substring(1)):BigInt(e)}catch(n){(0,f.assertArgument)(!1,`invalid BigNumberish string: ${n.message}`,t||"value",e)}}(0,f.assertArgument)(!1,"invalid BigNumberish value",t||"value",e)}function l(e,t){const n=o(e,t);return(0,f.assert)(n>=a,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),n}t.fromTwos=function(e,t){const n=l(e,"value"),r=BigInt(d(t,"width"));return(0,f.assert)(n>>r===a,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),n>>r-s?-((~n&(s<>4],t+=c[15&n];return BigInt(t)}return o(e)}function d(e,t){switch(typeof e){case"bigint":return(0,f.assertArgument)(e>=-i&&e<=i,"overflow",t||"value",e),Number(e);case"number":return(0,f.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,f.assertArgument)(e>=-i&&e<=i,"overflow",t||"value",e),e;case"string":try{if(""===e)throw new Error("empty string");return d(BigInt(e),t)}catch(n){(0,f.assertArgument)(!1,`invalid numeric string: ${n.message}`,t||"value",e)}}(0,f.assertArgument)(!1,"invalid numeric value",t||"value",e)}function p(e){const t=l(e,"value");if(t===a)return new Uint8Array([]);let n=t.toString(16);n.length%2&&(n="0"+n);const r=new Uint8Array(n.length/2);for(let e=0;e=n.length,`value exceeds width (${r} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});n.length<2*r;)n="0"+n}return"0x"+n},t.toBeArray=p,t.toQuantity=function(e){let t=(0,r.hexlify)((0,r.isBytesLike)(e)?e:p(e)).substring(2);for(;t.startsWith("0");)t=t.substring(1);return""===t&&(t="0"),"0x"+t}},8166:(e,t)=>{function n(e,t,n){const r=t.split("|").map((e=>e.trim()));for(let n=0;nPromise.resolve(e[t]))))).reduce(((e,n,r)=>(e[t[r]]=n,e)),{})},t.defineProperties=function(e,t,r){for(let f in t){let a=t[f];const s=r?r[f]:null;s&&n(a,s,f),Object.defineProperty(e,f,{enumerable:!0,value:a,writable:!1})}}},7780:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeRlp=void 0;const r=n(7415),f=n(1500),a=n(7415);function s(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}function i(e,t,n){let r=0;for(let f=0;f{(0,f.assert)(t<=e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:e,length:e.length,offset:t})};if(e[t]>=248){const r=e[t]-247;n(t+1+r);const f=i(e,t+1,r);return n(t+1+r+f),o(e,t,t+1+r,r+f)}if(e[t]>=192){const r=e[t]-192;return n(t+1+r),o(e,t,t+1,r)}if(e[t]>=184){const f=e[t]-183;n(t+1+f);const a=i(e,t+1,f);return n(t+1+f+a),{consumed:1+f+a,result:(0,r.hexlify)(e.slice(t+1+f,t+1+f+a))}}if(e[t]>=128){const f=e[t]-128;return n(t+1+f),{consumed:1+f,result:(0,r.hexlify)(e.slice(t+1,t+1+f))}}return{consumed:1,result:s(e[t])}}t.decodeRlp=function(e){const t=(0,a.getBytes)(e,"data"),n=l(t,0);return(0,f.assertArgument)(n.consumed===t.length,"unexpected junk after rlp payload","data",e),n.result}},5212:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeRlp=void 0;const r=n(7415);function f(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function a(e){if(Array.isArray(e)){let t=[];if(e.forEach((function(e){t=t.concat(a(e))})),t.length<=55)return t.unshift(192+t.length),t;const n=f(t.length);return n.unshift(247+n.length),n.concat(t)}const t=Array.prototype.slice.call((0,r.getBytes)(e,"object"));if(1===t.length&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const n=f(t.length);return n.unshift(183+n.length),n.concat(t)}const s="0123456789abcdef";t.encodeRlp=function(e){let t="0x";for(const n of a(e))t+=s[n>>4],t+=s[15&n];return t}},436:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=t.formatEther=t.parseUnits=t.formatUnits=void 0;const r=n(1500),f=n(9412),a=n(6508),s=["wei","kwei","mwei","gwei","szabo","finney","ether"];function i(e,t){let n=18;if("string"==typeof t){const e=s.indexOf(t);(0,r.assertArgument)(e>=0,"invalid unit","unit",t),n=3*e}else null!=t&&(n=(0,a.getNumber)(t,"unit"));return f.FixedNumber.fromValue(e,n,{decimals:n,width:512}).toString()}function o(e,t){(0,r.assertArgument)("string"==typeof e,"value must be a string","value",e);let n=18;if("string"==typeof t){const e=s.indexOf(t);(0,r.assertArgument)(e>=0,"invalid unit","unit",t),n=3*e}else null!=t&&(n=(0,a.getNumber)(t,"unit"));return f.FixedNumber.fromString(e,{decimals:n,width:512}).value}t.formatUnits=i,t.parseUnits=o,t.formatEther=function(e){return i(e,18)},t.parseEther=function(e){return o(e,18)}},3948:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8CodePoints=t.toUtf8String=t.toUtf8Bytes=t.Utf8ErrorFuncs=void 0;const r=n(7415),f=n(1500);function a(e,t,n,r,f){if("BAD_PREFIX"===e||"UNEXPECTED_CONTINUE"===e){let e=0;for(let r=t+1;r>6==2;r++)e++;return e}return"OVERRUN"===e?n.length-t-1:0}function s(e,n){null==n&&(n=t.Utf8ErrorFuncs.error);const f=(0,r.getBytes)(e,"bytes"),a=[];let s=0;for(;s>7)){a.push(e);continue}let t=null,r=null;if(192==(224&e))t=1,r=127;else if(224==(240&e))t=2,r=2047;else{if(240!=(248&e)){s+=n(128==(192&e)?"UNEXPECTED_CONTINUE":"BAD_PREFIX",s-1,f,a);continue}t=3,r=65535}if(s-1+t>=f.length){s+=n("OVERRUN",s-1,f,a);continue}let i=e&(1<<8-t-1)-1;for(let e=0;e1114111?s+=n("OUT_OF_RANGE",s-1-t,f,a,i):i>=55296&&i<=57343?s+=n("UTF16_SURROGATE",s-1-t,f,a,i):i<=r?s+=n("OVERLONG",s-1-t,f,a,i):a.push(i))}return a}function i(e,t){(0,f.assertArgument)("string"==typeof e,"invalid string value","str",e),null!=t&&((0,f.assertNormalize)(t),e=e.normalize(t));let n=[];for(let t=0;t>6|192),n.push(63&r|128);else if(55296==(64512&r)){t++;const a=e.charCodeAt(t);(0,f.assertArgument)(t>18|240),n.push(s>>12&63|128),n.push(s>>6&63|128),n.push(63&s|128)}else n.push(r>>12|224),n.push(r>>6&63|128),n.push(63&r|128)}return new Uint8Array(n)}t.Utf8ErrorFuncs=Object.freeze({error:function(e,t,n,r,a){(0,f.assertArgument)(!1,`invalid codepoint at offset ${t}; ${e}`,"bytes",n)},ignore:a,replace:function(e,t,n,r,s){return"OVERLONG"===e?((0,f.assertArgument)("number"==typeof s,"invalid bad code point for replacement","badCodepoint",s),r.push(s),0):(r.push(65533),a(e,t,n))}}),t.toUtf8Bytes=i,t.toUtf8String=function(e,t){return s(e,t).map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")},t.toUtf8CodePoints=function(e,t){return s(i(e,t))}},7744:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.uuidV4=void 0;const r=n(7415);t.uuidV4=function(e){const t=(0,r.getBytes)(e,"randomBytes");t[6]=15&t[6]|64,t[8]=63&t[8]|128;const n=(0,r.hexlify)(t);return[n.substring(2,10),n.substring(10,14),n.substring(14,18),n.substring(18,22),n.substring(22,34)].join("-")}},8394:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseWallet=void 0;const r=n(646),f=n(3562),a=n(3996),s=n(7778),i=n(5347);class o extends a.AbstractSigner{address;#zt;constructor(e,t){super(t),(0,i.assertArgument)(e&&"function"==typeof e.sign,"invalid private key","privateKey","[ REDACTED ]"),this.#zt=e;const n=(0,s.computeAddress)(this.signingKey.publicKey);(0,i.defineProperties)(this,{address:n})}get signingKey(){return this.#zt}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(e){return new o(this.#zt,e)}async signTransaction(e){e=(0,a.copyRequest)(e);const{to:t,from:n}=await(0,i.resolveProperties)({to:e.to?(0,r.resolveAddress)(e.to,this.provider):void 0,from:e.from?(0,r.resolveAddress)(e.from,this.provider):void 0});null!=t&&(e.to=t),null!=n&&(e.from=n),null!=e.from&&((0,i.assertArgument)((0,r.getAddress)(e.from)===this.address,"transaction from address mismatch","tx.from",e.from),delete e.from);const f=s.Transaction.from(e);return f.signature=this.signingKey.sign(f.unsignedHash),f.serialized}async signMessage(e){return this.signMessageSync(e)}signMessageSync(e){return this.signingKey.sign((0,f.hashMessage)(e)).serialized}async signTypedData(e,t,n){const r=await f.TypedDataEncoder.resolveNames(e,t,n,(async e=>{(0,i.assert)(null!=this.provider,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:e}});const t=await this.provider.resolveName(e);return(0,i.assert)(null!=t,"unconfigured ENS name","UNCONFIGURED_NAME",{value:e}),t}));return this.signingKey.sign(f.TypedDataEncoder.hash(r.domain,t,r.value)).serialized}}t.BaseWallet=o},22:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getIndexedAccountPath=t.getAccountPath=t.HDNodeVoidWallet=t.HDNodeWallet=t.defaultPath=void 0;const r=n(2291),f=n(3996),a=n(7778),s=n(5347),i=n(9943),o=n(8394),l=n(2931),c=n(1650);t.defaultPath="m/44'/60'/0'/0/0";const u=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),d=2147483648,p=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");function h(e,t){let n="";for(;e;)n="0123456789abcdef"[e%16]+n,e=Math.trunc(e/16);for(;n.length<2*t;)n="0"+n;return"0x"+n}function b(e){const t=(0,s.getBytes)(e),n=(0,s.dataSlice)((0,r.sha256)((0,r.sha256)(t)),0,4),f=(0,s.concat)([t,n]);return(0,s.encodeBase58)(f)}const g={};function m(e,t,n,f){const a=new Uint8Array(37);e&d?((0,s.assert)(null!=f,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),a.set((0,s.getBytes)(f),1)):a.set((0,s.getBytes)(n));for(let t=24;t>=0;t-=8)a[33+(t>>3)]=e>>24-t&255;const i=(0,s.getBytes)((0,r.computeHmac)("sha512",t,a));return{IL:i.slice(0,32),IR:i.slice(32)}}function y(e,t){const n=t.split("/");(0,s.assertArgument)(n.length>0,"invalid path","path",t),"m"===n[0]&&((0,s.assertArgument)(0===e.depth,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${e.depth}`,"path",t),n.shift());let r=e;for(let e=0;e=16&&n.length<=64,"invalid seed","seed","[REDACTED]");const f=(0,s.getBytes)((0,r.computeHmac)("sha512",u,n)),a=new r.SigningKey((0,s.hexlify)(f.slice(0,32)));return new v(g,a,"0x00000000",(0,s.hexlify)(f.slice(32)),"m",0,0,t,null)}static fromExtendedKey(e){const t=(0,s.toBeArray)((0,s.decodeBase58)(e));(0,s.assertArgument)(82===t.length||b(t.slice(0,78))===e,"invalid extended key","extendedKey","[ REDACTED ]");const n=t[4],f=(0,s.hexlify)(t.slice(5,9)),i=parseInt((0,s.hexlify)(t.slice(9,13)).substring(2),16),o=(0,s.hexlify)(t.slice(13,45)),l=t.slice(45,78);switch((0,s.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":{const e=(0,s.hexlify)(l);return new w(g,(0,a.computeAddress)(e),e,f,o,null,i,n,null)}case"0x0488ade4":case"0x04358394 ":if(0!==l[0])break;return new v(g,new r.SigningKey(l.slice(1)),f,o,null,i,n,null,null)}(0,s.assertArgument)(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(e,n,f){null==e&&(e=""),null==n&&(n=t.defaultPath),null==f&&(f=i.LangEn.wordlist());const a=l.Mnemonic.fromEntropy((0,r.randomBytes)(16),e,f);return v.#Gt(a.computeSeed(),a).derivePath(n)}static fromMnemonic(e,n){return n||(n=t.defaultPath),v.#Gt(e.computeSeed(),e).derivePath(n)}static fromPhrase(e,n,r,f){null==n&&(n=""),null==r&&(r=t.defaultPath),null==f&&(f=i.LangEn.wordlist());const a=l.Mnemonic.fromPhrase(e,n,f);return v.#Gt(a.computeSeed(),a).derivePath(r)}static fromSeed(e){return v.#Gt(e,null)}}t.HDNodeWallet=v;class w extends f.VoidSigner{publicKey;fingerprint;parentFingerprint;chainCode;path;index;depth;constructor(e,t,n,f,a,i,o,l,c){super(t,c),(0,s.assertPrivate)(e,g,"HDNodeVoidWallet"),(0,s.defineProperties)(this,{publicKey:n});const u=(0,s.dataSlice)((0,r.ripemd160)((0,r.sha256)(n)),0,4);(0,s.defineProperties)(this,{publicKey:n,fingerprint:u,parentFingerprint:f,chainCode:a,path:i,index:o,depth:l})}connect(e){return new w(g,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,e)}get extendedKey(){return(0,s.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),b((0,s.concat)(["0x0488B21E",h(this.depth,1),this.parentFingerprint,h(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return null!=this.path}deriveChild(e){const t=(0,s.getNumber)(e,"index");(0,s.assertArgument)(t<=4294967295,"invalid index","index",t);let n=this.path;n&&(n+="/"+(2147483647&t),t&d&&(n+="'"));const{IR:f,IL:i}=m(t,this.chainCode,this.publicKey,null),o=r.SigningKey.addPoints(i,this.publicKey,!0),l=(0,a.computeAddress)(o);return new w(g,l,o,this.fingerprint,(0,s.hexlify)(f),n,t,this.depth+1,this.provider)}derivePath(e){return y(this,e)}}t.HDNodeVoidWallet=w,t.getAccountPath=function(e){const t=(0,s.getNumber)(e,"index");return(0,s.assertArgument)(t>=0&&t=0&&t{Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=t.Mnemonic=t.encryptKeystoreJsonSync=t.encryptKeystoreJson=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.isKeystoreJson=t.decryptCrowdsaleJson=t.isCrowdsaleJson=t.HDNodeVoidWallet=t.HDNodeWallet=t.getIndexedAccountPath=t.getAccountPath=t.defaultPath=t.BaseWallet=void 0;var r=n(8394);Object.defineProperty(t,"BaseWallet",{enumerable:!0,get:function(){return r.BaseWallet}});var f=n(22);Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return f.defaultPath}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return f.getAccountPath}}),Object.defineProperty(t,"getIndexedAccountPath",{enumerable:!0,get:function(){return f.getIndexedAccountPath}}),Object.defineProperty(t,"HDNodeWallet",{enumerable:!0,get:function(){return f.HDNodeWallet}}),Object.defineProperty(t,"HDNodeVoidWallet",{enumerable:!0,get:function(){return f.HDNodeVoidWallet}});var a=n(7570);Object.defineProperty(t,"isCrowdsaleJson",{enumerable:!0,get:function(){return a.isCrowdsaleJson}}),Object.defineProperty(t,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return a.decryptCrowdsaleJson}});var s=n(1650);Object.defineProperty(t,"isKeystoreJson",{enumerable:!0,get:function(){return s.isKeystoreJson}}),Object.defineProperty(t,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return s.decryptKeystoreJsonSync}}),Object.defineProperty(t,"decryptKeystoreJson",{enumerable:!0,get:function(){return s.decryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJson",{enumerable:!0,get:function(){return s.encryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return s.encryptKeystoreJsonSync}});var i=n(2931);Object.defineProperty(t,"Mnemonic",{enumerable:!0,get:function(){return i.Mnemonic}});var o=n(6930);Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return o.Wallet}})},7570:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decryptCrowdsaleJson=t.isCrowdsaleJson=void 0;const r=n(8165),f=n(646),a=n(2291),s=n(3562),i=n(5347),o=n(8634);t.isCrowdsaleJson=function(e){try{if(JSON.parse(e).encseed)return!0}catch(e){}return!1},t.decryptCrowdsaleJson=function(e,t){const n=JSON.parse(e),l=(0,o.getPassword)(t),c=(0,f.getAddress)((0,o.spelunk)(n,"ethaddr:string!")),u=(0,o.looseArrayify)((0,o.spelunk)(n,"encseed:string!"));(0,i.assertArgument)(u&&u.length%16==0,"invalid encseed","json",e);const d=(0,i.getBytes)((0,a.pbkdf2)(l,l,2e3,32,"sha256")).slice(0,16),p=u.slice(0,16),h=u.slice(16),b=new r.CBC(d,p),g=(0,r.pkcs7Strip)((0,i.getBytes)(b.decrypt(h)));let m="";for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.encryptKeystoreJson=t.encryptKeystoreJsonSync=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.isKeystoreJson=void 0;const r=n(8165),f=n(646),a=n(2291),s=n(7778),i=n(5347),o=n(8634),l=n(4586),c="m/44'/60'/0'/0/0";function u(e,t){const n=(0,i.getBytes)(t),l=(0,o.spelunk)(e,"crypto.ciphertext:data!"),u=(0,i.hexlify)((0,a.keccak256)((0,i.concat)([n.slice(16,32),l]))).substring(2);(0,i.assertArgument)(u===(0,o.spelunk)(e,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");const d=function(e,t,n){if("aes-128-ctr"===(0,o.spelunk)(e,"crypto.cipher:string")){const f=(0,o.spelunk)(e,"crypto.cipherparams.iv:data!"),a=new r.CTR(t,f);return(0,i.hexlify)(a.decrypt(n))}(0,i.assert)(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}(e,n.slice(0,16),l),p=(0,s.computeAddress)(d);if(e.address){let t=e.address.toLowerCase();t.startsWith("0x")||(t="0x"+t),(0,i.assertArgument)((0,f.getAddress)(t)===p,"keystore address/privateKey mismatch","address",e.address)}const h={address:p,privateKey:d};if("0.1"===(0,o.spelunk)(e,"x-ethers.version:string")){const t=n.slice(32,64),f=(0,o.spelunk)(e,"x-ethers.mnemonicCiphertext:data!"),a=(0,o.spelunk)(e,"x-ethers.mnemonicCounter:data!"),s=new r.CTR(t,a);h.mnemonic={path:(0,o.spelunk)(e,"x-ethers.path:string")||c,locale:(0,o.spelunk)(e,"x-ethers.locale:string")||"en",entropy:(0,i.hexlify)((0,i.getBytes)(s.decrypt(f)))}}return h}function d(e){const t=(0,o.spelunk)(e,"crypto.kdf:string");if(t&&"string"==typeof t){if("scrypt"===t.toLowerCase()){const n=(0,o.spelunk)(e,"crypto.kdfparams.salt:data!"),r=(0,o.spelunk)(e,"crypto.kdfparams.n:int!"),f=(0,o.spelunk)(e,"crypto.kdfparams.r:int!"),a=(0,o.spelunk)(e,"crypto.kdfparams.p:int!");(0,i.assertArgument)(r>0&&!(r&r-1),"invalid kdf.N","kdf.N",r),(0,i.assertArgument)(f>0&&a>0,"invalid kdf","kdf",t);const s=(0,o.spelunk)(e,"crypto.kdfparams.dklen:int!");return(0,i.assertArgument)(32===s,"invalid kdf.dklen","kdf.dflen",s),{name:"scrypt",salt:n,N:r,r:f,p:a,dkLen:64}}if("pbkdf2"===t.toLowerCase()){const t=(0,o.spelunk)(e,"crypto.kdfparams.salt:data!"),n=(0,o.spelunk)(e,"crypto.kdfparams.prf:string!"),r=n.split("-").pop();(0,i.assertArgument)("sha256"===r||"sha512"===r,"invalid kdf.pdf","kdf.pdf",n);const f=(0,o.spelunk)(e,"crypto.kdfparams.c:int!"),a=(0,o.spelunk)(e,"crypto.kdfparams.dklen:int!");return(0,i.assertArgument)(32===a,"invalid kdf.dklen","kdf.dklen",a),{name:"pbkdf2",salt:t,count:f,dkLen:a,algorithm:r}}}(0,i.assertArgument)(!1,"unsupported key-derivation function","kdf",t)}function p(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}function h(e){const t=null!=e.salt?(0,i.getBytes)(e.salt,"options.salt"):(0,a.randomBytes)(32);let n=1<<17,r=8,f=1;return e.scrypt&&(e.scrypt.N&&(n=e.scrypt.N),e.scrypt.r&&(r=e.scrypt.r),e.scrypt.p&&(f=e.scrypt.p)),(0,i.assertArgument)("number"==typeof n&&n>0&&Number.isSafeInteger(n)&&(BigInt(n)&BigInt(n-1))===BigInt(0),"invalid scrypt N parameter","options.N",n),(0,i.assertArgument)("number"==typeof r&&r>0&&Number.isSafeInteger(r),"invalid scrypt r parameter","options.r",r),(0,i.assertArgument)("number"==typeof f&&f>0&&Number.isSafeInteger(f),"invalid scrypt p parameter","options.p",f),{name:"scrypt",dkLen:32,salt:t,N:n,r,p:f}}function b(e,t,n,f){const s=(0,i.getBytes)(n.privateKey,"privateKey"),u=null!=f.iv?(0,i.getBytes)(f.iv,"options.iv"):(0,a.randomBytes)(16);(0,i.assertArgument)(16===u.length,"invalid options.iv length","options.iv",f.iv);const d=null!=f.uuid?(0,i.getBytes)(f.uuid,"options.uuid"):(0,a.randomBytes)(16);(0,i.assertArgument)(16===d.length,"invalid options.uuid length","options.uuid",f.iv);const p=e.slice(0,16),h=e.slice(16,32),b=new r.CTR(p,u),g=(0,i.getBytes)(b.encrypt(s)),m=(0,a.keccak256)((0,i.concat)([h,g])),y={address:n.address.substring(2).toLowerCase(),id:(0,i.uuidV4)(d),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,i.hexlify)(u).substring(2)},ciphertext:(0,i.hexlify)(g).substring(2),kdf:"scrypt",kdfparams:{salt:(0,i.hexlify)(t.salt).substring(2),n:t.N,dklen:32,p:t.p,r:t.r},mac:m.substring(2)}};if(n.mnemonic){const t=null!=f.client?f.client:`ethers/${l.version}`,s=n.mnemonic.path||c,u=n.mnemonic.locale||"en",d=e.slice(32,64),p=(0,i.getBytes)(n.mnemonic.entropy,"account.mnemonic.entropy"),h=(0,a.randomBytes)(16),b=new r.CTR(d,h),g=(0,i.getBytes)(b.encrypt(p)),m=new Date,v="UTC--"+m.getUTCFullYear()+"-"+(0,o.zpad)(m.getUTCMonth()+1,2)+"-"+(0,o.zpad)(m.getUTCDate(),2)+"T"+(0,o.zpad)(m.getUTCHours(),2)+"-"+(0,o.zpad)(m.getUTCMinutes(),2)+"-"+(0,o.zpad)(m.getUTCSeconds(),2)+".0Z--"+y.address;y["x-ethers"]={client:t,gethFilename:v,path:s,locale:u,mnemonicCounter:(0,i.hexlify)(h).substring(2),mnemonicCiphertext:(0,i.hexlify)(g).substring(2),version:"0.1"}}return JSON.stringify(y)}t.isKeystoreJson=function(e){try{const t=JSON.parse(e);if(3===(null!=t.version?parseInt(t.version):0))return!0}catch(e){}return!1},t.decryptKeystoreJsonSync=function(e,t){const n=JSON.parse(e),r=(0,o.getPassword)(t),f=d(n);if("pbkdf2"===f.name){const{salt:e,count:t,dkLen:s,algorithm:i}=f;return u(n,(0,a.pbkdf2)(r,e,t,s,i))}(0,i.assert)("scrypt"===f.name,"cannot be reached","UNKNOWN_ERROR",{params:f});const{salt:s,N:l,r:c,p,dkLen:h}=f;return u(n,(0,a.scryptSync)(r,s,l,c,p,h))},t.decryptKeystoreJson=async function(e,t,n){const r=JSON.parse(e),f=(0,o.getPassword)(t),s=d(r);if("pbkdf2"===s.name){n&&(n(0),await p(0));const{salt:e,count:t,dkLen:i,algorithm:o}=s,l=(0,a.pbkdf2)(f,e,t,i,o);return n&&(n(1),await p(0)),u(r,l)}(0,i.assert)("scrypt"===s.name,"cannot be reached","UNKNOWN_ERROR",{params:s});const{salt:l,N:c,r:h,p:b,dkLen:g}=s;return u(r,await(0,a.scrypt)(f,l,c,h,b,g,n))},t.encryptKeystoreJsonSync=function(e,t,n){null==n&&(n={});const r=(0,o.getPassword)(t),f=h(n),s=(0,a.scryptSync)(r,f.salt,f.N,f.r,f.p,64);return b((0,i.getBytes)(s),f,e,n)},t.encryptKeystoreJson=async function(e,t,n){null==n&&(n={});const r=(0,o.getPassword)(t),f=h(n),s=await(0,a.scrypt)(r,f.salt,f.N,f.r,f.p,64,n.progressCallback);return b((0,i.getBytes)(s),f,e,n)}},2931:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Mnemonic=void 0;const r=n(2291),f=n(5347),a=n(9943);function s(e){return(1<=12&&n.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const i=new Uint8Array(Math.ceil(11*n.length/8));let o=0;for(let e=0;e=0,`invalid mnemonic word at index ${e}`,"mnemonic","[ REDACTED ]");for(let e=0;e<11;e++)r&1<<10-e&&(i[o>>3]|=1<<7-o%8),o++}const l=32*n.length/3,c=s(n.length/3),u=(0,f.getBytes)((0,r.sha256)(i.slice(0,l/8)))[0]&c;return(0,f.assertArgument)(u===(i[i.length-1]&c),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),(0,f.hexlify)(i.slice(0,l/8))}function o(e,t){(0,f.assertArgument)(e.length%4==0&&e.length>=16&&e.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),null==t&&(t=a.LangEn.wordlist());const n=[0];let i=11;for(let t=0;t8?(n[n.length-1]<<=8,n[n.length-1]|=e[t],i-=8):(n[n.length-1]<<=i,n[n.length-1]|=e[t]>>8-i,n.push(e[t]&(1<<8-i)-1&255),i+=3);const o=e.length/4,l=parseInt((0,r.sha256)(e).substring(2,4),16)&s(o);return n[n.length-1]<<=o,n[n.length-1]|=l>>8-o,t.join(n.map((e=>t.getWord(e))))}const l={};class c{phrase;password;wordlist;entropy;constructor(e,t,n,r,s){null==r&&(r=""),null==s&&(s=a.LangEn.wordlist()),(0,f.assertPrivate)(e,l,"Mnemonic"),(0,f.defineProperties)(this,{phrase:n,password:r,wordlist:s,entropy:t})}computeSeed(){const e=(0,f.toUtf8Bytes)("mnemonic"+this.password,"NFKD");return(0,r.pbkdf2)((0,f.toUtf8Bytes)(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(e,t,n){const r=i(e,n);return e=o((0,f.getBytes)(r),n),new c(l,r,e,t,n)}static fromEntropy(e,t,n){const r=(0,f.getBytes)(e,"entropy"),a=o(r,n);return new c(l,(0,f.hexlify)(r),a,t,n)}static entropyToPhrase(e,t){return o((0,f.getBytes)(e,"entropy"),t)}static phraseToEntropy(e,t){return i(e,t)}static isValidMnemonic(e,t){try{return i(e,t),!0}catch(e){}return!1}}t.Mnemonic=c},8634:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.spelunk=t.getPassword=t.zpad=t.looseArrayify=void 0;const r=n(5347);function f(e){return"string"!=typeof e||e.startsWith("0x")||(e="0x"+e),(0,r.getBytesCopy)(e)}t.looseArrayify=f,t.zpad=function(e,t){for(e=String(e);e.length{Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=void 0;const r=n(2291),f=n(5347),a=n(8394),s=n(22),i=n(7570),o=n(1650),l=n(2931);function c(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}class u extends a.BaseWallet{constructor(e,t){"string"!=typeof e||e.startsWith("0x")||(e="0x"+e),super("string"==typeof e?new r.SigningKey(e):e,t)}connect(e){return new u(this.signingKey,e)}async encrypt(e,t){const n={address:this.address,privateKey:this.privateKey};return await(0,o.encryptKeystoreJson)(n,e,{progressCallback:t})}encryptSync(e){const t={address:this.address,privateKey:this.privateKey};return(0,o.encryptKeystoreJsonSync)(t,e)}static#Vt(e){if((0,f.assertArgument)(e,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in e&&e.mnemonic&&"en"===e.mnemonic.locale){const t=l.Mnemonic.fromEntropy(e.mnemonic.entropy),n=s.HDNodeWallet.fromMnemonic(t,e.mnemonic.path);if(n.address===e.address&&n.privateKey===e.privateKey)return n;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const t=new u(e.privateKey);return(0,f.assertArgument)(t.address===e.address,"address/privateKey mismatch","json","[ REDACTED ]"),t}static async fromEncryptedJson(e,t,n){let r=null;return(0,o.isKeystoreJson)(e)?r=await(0,o.decryptKeystoreJson)(e,t,n):(0,i.isCrowdsaleJson)(e)&&(n&&(n(0),await c(0)),r=(0,i.decryptCrowdsaleJson)(e,t),n&&(n(1),await c(0))),u.#Vt(r)}static fromEncryptedJsonSync(e,t){let n=null;return(0,o.isKeystoreJson)(e)?n=(0,o.decryptKeystoreJsonSync)(e,t):(0,i.isCrowdsaleJson)(e)?n=(0,i.decryptCrowdsaleJson)(e,t):(0,f.assertArgument)(!1,"invalid JSON wallet","json","[ REDACTED ]"),u.#Vt(n)}static createRandom(e){const t=s.HDNodeWallet.createRandom();return e?t.connect(e):t}static fromPhrase(e,t){const n=s.HDNodeWallet.fromPhrase(e);return t?n.connect(t):n}}t.Wallet=u},9610:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBits=void 0,t.decodeBits=function(e,t){const n=(1<=e;){const t=f>>a-e;f&=(1<{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeOwl=t.decode=void 0;const r=n(5347),f=/^[a-z]*$/i;function a(e,t){let n=97;return e.reduce(((e,r)=>(r===t?n++:r.match(f)?e.push(String.fromCharCode(n)+r):(n=97,e.push(r)),e)),[])}function s(e,t){for(let n=28;n>=0;n--)e=e.split(" !#$%&'()*+,-./<=>?@[]^_`{|}~"[n]).join(t.substring(2*n,2*n+2));const n=[],r=e.replace(/(:|([0-9])|([A-Z][a-z]*))/g,((e,t,r,f)=>{if(r)for(let e=parseInt(r);e>=0;e--)n.push(";");else n.push(t.toLowerCase());return""}));if(r)throw new Error(`leftovers: ${JSON.stringify(r)}`);return a(a(n,";"),":")}t.decode=s,t.decodeOwl=function(e){return(0,r.assertArgument)("0"===e[0],"unsupported auwl data","data",e),s(e.substring(59),e.substring(1,59))}},7703:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeOwlA=void 0;const r=n(5347),f=n(9610),a=n(2426);t.decodeOwlA=function(e,t){let n=(0,a.decodeOwl)(e).join(",");return t.split(/,/g).forEach((e=>{const a=e.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);(0,r.assertArgument)(null!==a,"internal error parsing accents","accents",t);let s=0;const i=(0,f.decodeBits)(parseInt(a[3]),a[4]),o=parseInt(a[2]),l=new RegExp(`([${a[1]}])`,"g");n=n.replace(l,((e,t)=>(0==--i[s]&&(t=String.fromCharCode(t.charCodeAt(0),o),s++),t)))})),n.split(",")}},6591:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wordlists=t.WordlistOwlA=t.WordlistOwl=t.LangEn=t.Wordlist=void 0;var r=n(9011);Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return r.Wordlist}});var f=n(9943);Object.defineProperty(t,"LangEn",{enumerable:!0,get:function(){return f.LangEn}});var a=n(2684);Object.defineProperty(t,"WordlistOwl",{enumerable:!0,get:function(){return a.WordlistOwl}});var s=n(8725);Object.defineProperty(t,"WordlistOwlA",{enumerable:!0,get:function(){return s.WordlistOwlA}});var i=n(2431);Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return i.wordlists}})},9943:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LangEn=void 0;const r=n(2684);let f=null;class a extends r.WordlistOwl{constructor(){super("en","0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-EgSe0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-PM&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryFN Noc|PutQuirySSue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurEAyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOgAyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|UffUmb!Y!0Bje@Bm.BwayC)[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NNGradeHoldOnP Set1BOng::Rd3Ar~ow9UUngU`:3BraRo9NeO","0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60")}static wordlist(){return null==f&&(f=new a),f}}t.LangEn=a},2684:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WordlistOwl=void 0;const r=n(3562),f=n(5347),a=n(2426),s=n(9011);class i extends s.Wordlist{#n;#Kt;constructor(e,t,n){super(e),this.#n=t,this.#Kt=n,this.#qt=null}get _data(){return this.#n}_decodeWords(){return(0,a.decodeOwl)(this.#n)}#qt;#Qt(){if(null==this.#qt){const e=this._decodeWords();if((0,r.id)(e.join("\n")+"\n")!==this.#Kt)throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);this.#qt=e}return this.#qt}getWord(e){const t=this.#Qt();return(0,f.assertArgument)(e>=0&&e{Object.defineProperty(t,"__esModule",{value:!0}),t.WordlistOwlA=void 0;const r=n(2684),f=n(7703);class a extends r.WordlistOwl{#Jt;constructor(e,t,n,r){super(e,t,r),this.#Jt=n}get _accent(){return this.#Jt}_decodeWords(){return(0,f.decodeOwlA)(this._data,this._accent)}}t.WordlistOwlA=a},9011:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Wordlist=void 0;const r=n(5347);t.Wordlist=class{locale;constructor(e){(0,r.defineProperties)(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(" ")}}},2431:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wordlists=void 0;const r=n(9943);t.wordlists={en:r.LangEn.wordlist()}},9990:(e,t,n)=>{n.r(t),n.d(t,{__addDisposableResource:()=>_,__assign:()=>a,__asyncDelegator:()=>S,__asyncGenerator:()=>E,__asyncValues:()=>O,__await:()=>P,__awaiter:()=>h,__classPrivateFieldGet:()=>R,__classPrivateFieldIn:()=>I,__classPrivateFieldSet:()=>B,__createBinding:()=>g,__decorate:()=>i,__disposeResources:()=>L,__esDecorate:()=>l,__exportStar:()=>m,__extends:()=>f,__generator:()=>b,__importDefault:()=>N,__importStar:()=>C,__makeTemplateObject:()=>x,__metadata:()=>p,__param:()=>o,__propKey:()=>u,__read:()=>v,__rest:()=>s,__runInitializers:()=>c,__setFunctionName:()=>d,__spread:()=>w,__spreadArray:()=>k,__spreadArrays:()=>A,__values:()=>y,default:()=>j});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;i--)(f=e[i])&&(s=(a<3?f(s):a>3?f(t,n,s):f(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s}function o(e,t){return function(n,r){t(n,r,e)}}function l(e,t,n,r,f,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var i,o=r.kind,l="getter"===o?"get":"setter"===o?"set":"value",c=!t&&e?r.static?e:e.prototype:null,u=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d=!1,p=n.length-1;p>=0;p--){var h={};for(var b in r)h[b]="access"===b?{}:r[b];for(var b in r.access)h.access[b]=r.access[b];h.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var g=(0,n[p])("accessor"===o?{get:u.get,set:u.set}:u[l],h);if("accessor"===o){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(i=s(g.get))&&(u.get=i),(i=s(g.set))&&(u.set=i),(i=s(g.init))&&f.unshift(i)}else(i=s(g))&&("field"===o?f.unshift(i):u[l]=i)}c&&Object.defineProperty(c,r.name,u),d=!0}function c(e,t,n){for(var r=arguments.length>2,f=0;f0&&f[f.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!f||i[1]>f[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,f,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)s.push(r.value)}catch(e){f={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(f)throw f.error}}return s}function w(){for(var e=[],t=0;t1||i(e,t)}))},t&&(r[e]=t(r[e])))}function i(e,t){try{(n=f[e](t)).value instanceof P?Promise.resolve(n.value.v).then(o,l):c(a[0][2],n)}catch(e){c(a[0][3],e)}var n}function o(e){i("next",e)}function l(e){i("throw",e)}function c(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}}function S(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,f){t[r]=e[r]?function(t){return(n=!n)?{value:P(e[r](t)),done:!1}:f?f(t):t}:f}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,f){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,f,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&g(t,e,n);return T(t,e),t}function N(e){return e&&e.__esModule?e:{default:e}}function R(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function B(e,t,n,r,f){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!f)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!f:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?f.call(e,n):f?f.value=n:t.set(e,n),n}function I(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function _(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,f;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(f=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");f&&(r=function(){try{f.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var F="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function L(e){function t(t){e.error=e.hasError?new F(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function f(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(f);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(f,(function(e){return t(e),f()}))}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}const j={__extends:f,__assign:a,__rest:s,__decorate:i,__param:o,__metadata:p,__awaiter:h,__generator:b,__createBinding:g,__exportStar:m,__values:y,__read:v,__spread:w,__spreadArrays:A,__spreadArray:k,__await:P,__asyncGenerator:E,__asyncDelegator:S,__asyncValues:O,__makeTemplateObject:x,__importStar:C,__importDefault:N,__classPrivateFieldGet:R,__classPrivateFieldSet:B,__classPrivateFieldIn:I,__addDisposableResource:_,__disposeResources:L}},5069:e=>{e.exports=JSON.parse('{"_format":"hh-sol-artifact-1","contractName":"AaartoNFTV4","sourceName":"contracts/AaartoNFTV4.sol","abi":[{"inputs":[{"internalType":"uint256","name":"_platformFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ERC721EnumerableForbiddenBatchMint","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"ERC721OutOfBoundsIndex","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenID","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenURI","type":"string"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeRecipient","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"uri","type":"string"}],"name":"preSafeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_feeRecipient","type":"address"}],"name":"setFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_platformFee","type":"uint256"}],"name":"setPlatformFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b506040516142ad3803806142ad83398181016040528101906100329190610463565b336040518060400160405280600681526020017f41616172746f00000000000000000000000000000000000000000000000000008152506040518060400160405280600681526020017f41414152544f000000000000000000000000000000000000000000000000000081525081600090816100ae91906106d6565b5080600190816100be91906106d6565b505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036101335760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161012a91906107e9565b60405180910390fd5b610142816101f160201b60201c565b506101566000801b336102b760201b60201c565b506101877f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336102b760201b60201c565b5080600f8190555033601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600e60006101000a81548160ff02191690831515021790555050610804565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006102c983836103b560201b60201c565b6103aa576001600b600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061034761042060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4600190506103af565b600090505b92915050565b6000600b600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b600080fd5b6000819050919050565b6104408161042d565b811461044b57600080fd5b50565b60008151905061045d81610437565b92915050565b60006020828403121561047957610478610428565b5b60006104878482850161044e565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061051157607f821691505b602082108103610524576105236104ca565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261058c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261054f565b610596868361054f565b95508019841693508086168417925050509392505050565b6000819050919050565b60006105d36105ce6105c98461042d565b6105ae565b61042d565b9050919050565b6000819050919050565b6105ed836105b8565b6106016105f9826105da565b84845461055c565b825550505050565b600090565b610616610609565b6106218184846105e4565b505050565b5b818110156106455761063a60008261060e565b600181019050610627565b5050565b601f82111561068a5761065b8161052a565b6106648461053f565b81016020851015610673578190505b61068761067f8561053f565b830182610626565b50505b505050565b600082821c905092915050565b60006106ad6000198460080261068f565b1980831691505092915050565b60006106c6838361069c565b9150826002028217905092915050565b6106df82610490565b67ffffffffffffffff8111156106f8576106f761049b565b5b61070282546104f9565b61070d828285610649565b600060209050601f831160018114610740576000841561072e578287015190505b61073885826106ba565b8655506107a0565b601f19841661074e8661052a565b60005b8281101561077657848901518255600182019150602085019450602081019050610751565b86831015610793578489015161078f601f89168261069c565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006107d3826107a8565b9050919050565b6107e3816107c8565b82525050565b60006020820190506107fe60008301846107da565b92915050565b613a9a806108136000396000f3fe6080604052600436106101ee5760003560e01c80634f6ccce71161010d578063a22cb465116100a0578063d547741f1161006f578063d547741f14610714578063e74b981b1461073d578063e985e9c514610766578063f2fde38b146107a3578063f46a04eb146107cc576101ee565b8063a22cb4651461065a578063b88d4fde14610683578063c87b56dd146106ac578063d5391393146106e9576101ee565b80638da5cb5b116100dc5780638da5cb5b1461059c57806391d14854146105c757806395d89b4114610604578063a217fddf1461062f576101ee565b80634f6ccce7146104ce5780636352211e1461050b57806370a0823114610548578063715018a614610585576101ee565b8063248a9ca31161018557806336568abe1161015457806336568abe1461042857806342842e0e1461045157806342966c681461047a57806346904840146104a3576101ee565b8063248a9ca31461035a57806326232a2e146103975780632f2ff15d146103c25780632f745c59146103eb576101ee565b806312e8e2c3116101c157806312e8e2c3146102c157806318160ddd146102ea578063227b93761461031557806323b872dd14610331576101ee565b806301ffc9a7146101f357806306fdde0314610230578063081812fc1461025b578063095ea7b314610298575b600080fd5b3480156101ff57600080fd5b5061021a60048036038101906102159190612bd0565b6107f5565b6040516102279190612c18565b60405180910390f35b34801561023c57600080fd5b50610245610807565b6040516102529190612cc3565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d9190612d1b565b610899565b60405161028f9190612d89565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba9190612dd0565b6108b5565b005b3480156102cd57600080fd5b506102e860048036038101906102e39190612d1b565b6108cb565b005b3480156102f657600080fd5b506102ff6108dd565b60405161030c9190612e1f565b60405180910390f35b61032f600480360381019061032a9190612f6f565b6108ea565b005b34801561033d57600080fd5b5061035860048036038101906103539190612fcb565b610a5d565b005b34801561036657600080fd5b50610381600480360381019061037c9190613054565b610b5f565b60405161038e9190613090565b60405180910390f35b3480156103a357600080fd5b506103ac610b7f565b6040516103b99190612e1f565b60405180910390f35b3480156103ce57600080fd5b506103e960048036038101906103e491906130ab565b610b85565b005b3480156103f757600080fd5b50610412600480360381019061040d9190612dd0565b610ba7565b60405161041f9190612e1f565b60405180910390f35b34801561043457600080fd5b5061044f600480360381019061044a91906130ab565b610c50565b005b34801561045d57600080fd5b5061047860048036038101906104739190612fcb565b610ccb565b005b34801561048657600080fd5b506104a1600480360381019061049c9190612d1b565b610ceb565b005b3480156104af57600080fd5b506104b8610d02565b6040516104c5919061310c565b60405180910390f35b3480156104da57600080fd5b506104f560048036038101906104f09190612d1b565b610d28565b6040516105029190612e1f565b60405180910390f35b34801561051757600080fd5b50610532600480360381019061052d9190612d1b565b610d9e565b60405161053f9190612d89565b60405180910390f35b34801561055457600080fd5b5061056f600480360381019061056a9190613127565b610db0565b60405161057c9190612e1f565b60405180910390f35b34801561059157600080fd5b5061059a610e6a565b005b3480156105a857600080fd5b506105b1610e7e565b6040516105be9190612d89565b60405180910390f35b3480156105d357600080fd5b506105ee60048036038101906105e991906130ab565b610ea8565b6040516105fb9190612c18565b60405180910390f35b34801561061057600080fd5b50610619610f13565b6040516106269190612cc3565b60405180910390f35b34801561063b57600080fd5b50610644610fa5565b6040516106519190613090565b60405180910390f35b34801561066657600080fd5b50610681600480360381019061067c9190613180565b610fac565b005b34801561068f57600080fd5b506106aa60048036038101906106a59190613261565b610fc2565b005b3480156106b857600080fd5b506106d360048036038101906106ce9190612d1b565b610fe7565b6040516106e09190612cc3565b60405180910390f35b3480156106f557600080fd5b506106fe610ff9565b60405161070b9190613090565b60405180910390f35b34801561072057600080fd5b5061073b600480360381019061073691906130ab565b61101d565b005b34801561074957600080fd5b50610764600480360381019061075f9190613310565b61103f565b005b34801561077257600080fd5b5061078d6004803603810190610788919061333d565b61108b565b60405161079a9190612c18565b60405180910390f35b3480156107af57600080fd5b506107ca60048036038101906107c59190613127565b61111f565b005b3480156107d857600080fd5b506107f360048036038101906107ee919061337d565b6111a5565b005b6000610800826111d0565b9050919050565b606060008054610816906133d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610842906133d9565b801561088f5780601f106108645761010080835404028352916020019161088f565b820191906000526020600020905b81548152906001019060200180831161087257829003601f168201915b5050505050905090565b60006108a48261124a565b506108ae826112d2565b9050919050565b6108c782826108c261130f565b611317565b5050565b6108d3611329565b80600f8190555050565b6000600880549050905090565b600e60009054906101000a900460ff168061093757503373ffffffffffffffffffffffffffffffffffffffff1661091f610e7e565b73ffffffffffffffffffffffffffffffffffffffff16145b610976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096d90613456565b60405180910390fd5b600f543410156109bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b2906134c2565b60405180910390fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015610a23573d6000803e3d6000fd5b50610a4e7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336113b0565b50610a5982826114a2565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610acf5760006040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610ac69190612d89565b60405180910390fd5b6000610ae38383610ade61130f565b611550565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b59578382826040517f64283d7b000000000000000000000000000000000000000000000000000000008152600401610b50939291906134e2565b60405180910390fd5b50505050565b6000600b6000838152602001908152602001600020600101549050919050565b600f5481565b610b8e82610b5f565b610b9781611566565b610ba183836113b0565b50505050565b6000610bb283610db0565b8210610bf75782826040517fa57d13dc000000000000000000000000000000000000000000000000000000008152600401610bee929190613519565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c5861130f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cbc576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cc6828261157a565b505050565b610ce683838360405180602001604052806000815250610fc2565b505050565b610cfe600082610cf961130f565b611550565b5050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610d326108dd565b8210610d78576000826040517fa57d13dc000000000000000000000000000000000000000000000000000000008152600401610d6f929190613519565b60405180910390fd5b60088281548110610d8c57610d8b613542565b5b90600052602060002001549050919050565b6000610da98261124a565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e235760006040517f89c62b64000000000000000000000000000000000000000000000000000000008152600401610e1a9190612d89565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e72611329565b610e7c600061166d565b565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600b600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060018054610f22906133d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610f4e906133d9565b8015610f9b5780601f10610f7057610100808354040283529160200191610f9b565b820191906000526020600020905b815481529060010190602001808311610f7e57829003601f168201915b5050505050905090565b6000801b81565b610fbe610fb761130f565b8383611733565b5050565b610fcd848484610a5d565b610fe1610fd861130f565b858585856118a2565b50505050565b6060610ff282611a53565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61102682610b5f565b61102f81611566565b611039838361157a565b50505050565b611047611329565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611127611329565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111995760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016111909190612d89565b60405180910390fd5b6111a28161166d565b50565b6000801b6111b281611566565b81600e60006101000a81548160ff0219169083151502179055505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611243575061124282611b66565b5b9050919050565b60008061125683611bc7565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036112c957826040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016112c09190612e1f565b60405180910390fd5b80915050919050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600033905090565b6113248383836001611c04565b505050565b61133161130f565b73ffffffffffffffffffffffffffffffffffffffff1661134f610e7e565b73ffffffffffffffffffffffffffffffffffffffff16146113ae5761137261130f565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016113a59190612d89565b60405180910390fd5b565b60006113bc8383610ea8565b611497576001600b600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061143461130f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001905061149c565b600090505b92915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66114cc81611566565b6000600d60008154809291906114e1906135a0565b9190505590506114f18482611dc9565b6114fb8184611de7565b808473ffffffffffffffffffffffffffffffffffffffff167f85a66b9141978db9980f7e0ce3b468cebf4f7999f32b23091c5c03e798b1ba7a856040516115429190612cc3565b60405180910390a350505050565b600061155d848484611e43565b90509392505050565b6115778161157261130f565b611f60565b50565b60006115868383610ea8565b15611662576000600b600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506115ff61130f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050611667565b600090505b92915050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117a457816040517f5b08ba1800000000000000000000000000000000000000000000000000000000815260040161179b9190612d89565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118959190612c18565b60405180910390a3505050565b60008373ffffffffffffffffffffffffffffffffffffffff163b1115611a4c578273ffffffffffffffffffffffffffffffffffffffff1663150b7a02868685856040518563ffffffff1660e01b8152600401611901949392919061363d565b6020604051808303816000875af192505050801561193d57506040513d601f19601f8201168201806040525081019061193a919061369e565b60015b6119c1573d806000811461196d576040519150601f19603f3d011682016040523d82523d6000602084013e611972565b606091505b5060008151036119b957836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016119b09190612d89565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611a4a57836040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401611a419190612d89565b60405180910390fd5b505b5050505050565b6060611a5e8261124a565b506000600a60008481526020019081526020016000208054611a7f906133d9565b80601f0160208091040260200160405190810160405280929190818152602001828054611aab906133d9565b8015611af85780601f10611acd57610100808354040283529160200191611af8565b820191906000526020600020905b815481529060010190602001808311611adb57829003601f168201915b505050505090506000611b09611fb1565b90506000815103611b1e578192505050611b61565b600082511115611b53578082604051602001611b3b929190613707565b60405160208183030381529060405292505050611b61565b611b5c84611fc8565b925050505b919050565b6000634906490660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611bc05750611bbf82612031565b5b9050919050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8080611c3d5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611d71576000611c4d8461124a565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611cb857508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b8015611ccb5750611cc9818461108b565b155b15611d0d57826040517fa9fbf51f000000000000000000000000000000000000000000000000000000008152600401611d049190612d89565b60405180910390fd5b8115611d6f57838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b836004600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b611de38282604051806020016040528060008152506120ab565b5050565b80600a60008481526020019081526020016000209081611e0791906138d7565b507ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce782604051611e379190612e1f565b60405180910390a15050565b600080611e518585856120cf565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e9557611e90846122e9565b611ed4565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611ed357611ed28185612332565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611f1657611f118461241d565b611f55565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611f5457611f5385856124ee565b5b5b809150509392505050565b611f6a8282610ea8565b611fad5780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401611fa49291906139a9565b60405180910390fd5b5050565b606060405180602001604052806000815250905090565b6060611fd38261124a565b506000611fde611fb1565b90506000815111611ffe5760405180602001604052806000815250612029565b8061200884612579565b604051602001612019929190613707565b6040516020818303038152906040525b915050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806120a457506120a382612647565b5b9050919050565b6120b58383612729565b6120ca6120c061130f565b60008585856118a2565b505050565b6000806120db84611bc7565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461211d5761211c818486612822565b5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146121ae5761215f600085600080611c04565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612231576001600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b846002600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600061233d83610db0565b90506000600760008481526020019081526020016000205490506000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508282146123e95760008160008581526020019081526020016000205490508082600085815260200190815260200160002081905550826007600083815260200190815260200160002081905550505b6007600085815260200190815260200160002060009055806000848152602001908152602001600020600090555050505050565b6000600160088054905061243191906139d2565b905060006009600084815260200190815260200160002054905060006008838154811061246157612460613542565b5b90600052602060002001549050806008838154811061248357612482613542565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806124d2576124d1613a06565b5b6001900381819060005260206000200160009055905550505050565b600060016124fb84610db0565b61250591906139d2565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b606060006001612588846128e6565b01905060008167ffffffffffffffff8111156125a7576125a6612e44565b5b6040519080825280601f01601f1916602001820160405280156125d95781602001600182028036833780820191505090505b509050600082602001820190505b60011561263c578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816126305761262f613a35565b5b049450600085036125e7575b819350505050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061271257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612722575061272182612a39565b5b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361279b5760006040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016127929190612d89565b60405180910390fd5b60006127a983836000611550565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461281d5760006040517f73c6ac6e0000000000000000000000000000000000000000000000000000000081526004016128149190612d89565b60405180910390fd5b505050565b61282d838383612aa3565b6128e157600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036128a257806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016128999190612e1f565b60405180910390fd5b81816040517f177e802f0000000000000000000000000000000000000000000000000000000081526004016128d8929190613519565b60405180910390fd5b505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612944577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161293a57612939613a35565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612981576d04ee2d6d415b85acef8100000000838161297757612976613a35565b5b0492506020810190505b662386f26fc1000083106129b057662386f26fc1000083816129a6576129a5613a35565b5b0492506010810190505b6305f5e10083106129d9576305f5e10083816129cf576129ce613a35565b5b0492506008810190505b61271083106129fe5761271083816129f4576129f3613a35565b5b0492506004810190505b60648310612a215760648381612a1757612a16613a35565b5b0492506002810190505b600a8310612a30576001810190505b80915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612b5b57508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b1c5750612b1b848461108b565b5b80612b5a57508273ffffffffffffffffffffffffffffffffffffffff16612b42836112d2565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612bad81612b78565b8114612bb857600080fd5b50565b600081359050612bca81612ba4565b92915050565b600060208284031215612be657612be5612b6e565b5b6000612bf484828501612bbb565b91505092915050565b60008115159050919050565b612c1281612bfd565b82525050565b6000602082019050612c2d6000830184612c09565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612c6d578082015181840152602081019050612c52565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c9582612c33565b612c9f8185612c3e565b9350612caf818560208601612c4f565b612cb881612c79565b840191505092915050565b60006020820190508181036000830152612cdd8184612c8a565b905092915050565b6000819050919050565b612cf881612ce5565b8114612d0357600080fd5b50565b600081359050612d1581612cef565b92915050565b600060208284031215612d3157612d30612b6e565b5b6000612d3f84828501612d06565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612d7382612d48565b9050919050565b612d8381612d68565b82525050565b6000602082019050612d9e6000830184612d7a565b92915050565b612dad81612d68565b8114612db857600080fd5b50565b600081359050612dca81612da4565b92915050565b60008060408385031215612de757612de6612b6e565b5b6000612df585828601612dbb565b9250506020612e0685828601612d06565b9150509250929050565b612e1981612ce5565b82525050565b6000602082019050612e346000830184612e10565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612e7c82612c79565b810181811067ffffffffffffffff82111715612e9b57612e9a612e44565b5b80604052505050565b6000612eae612b64565b9050612eba8282612e73565b919050565b600067ffffffffffffffff821115612eda57612ed9612e44565b5b612ee382612c79565b9050602081019050919050565b82818337600083830152505050565b6000612f12612f0d84612ebf565b612ea4565b905082815260208101848484011115612f2e57612f2d612e3f565b5b612f39848285612ef0565b509392505050565b600082601f830112612f5657612f55612e3a565b5b8135612f66848260208601612eff565b91505092915050565b60008060408385031215612f8657612f85612b6e565b5b6000612f9485828601612dbb565b925050602083013567ffffffffffffffff811115612fb557612fb4612b73565b5b612fc185828601612f41565b9150509250929050565b600080600060608486031215612fe457612fe3612b6e565b5b6000612ff286828701612dbb565b935050602061300386828701612dbb565b925050604061301486828701612d06565b9150509250925092565b6000819050919050565b6130318161301e565b811461303c57600080fd5b50565b60008135905061304e81613028565b92915050565b60006020828403121561306a57613069612b6e565b5b60006130788482850161303f565b91505092915050565b61308a8161301e565b82525050565b60006020820190506130a56000830184613081565b92915050565b600080604083850312156130c2576130c1612b6e565b5b60006130d08582860161303f565b92505060206130e185828601612dbb565b9150509250929050565b60006130f682612d48565b9050919050565b613106816130eb565b82525050565b600060208201905061312160008301846130fd565b92915050565b60006020828403121561313d5761313c612b6e565b5b600061314b84828501612dbb565b91505092915050565b61315d81612bfd565b811461316857600080fd5b50565b60008135905061317a81613154565b92915050565b6000806040838503121561319757613196612b6e565b5b60006131a585828601612dbb565b92505060206131b68582860161316b565b9150509250929050565b600067ffffffffffffffff8211156131db576131da612e44565b5b6131e482612c79565b9050602081019050919050565b60006132046131ff846131c0565b612ea4565b9050828152602081018484840111156132205761321f612e3f565b5b61322b848285612ef0565b509392505050565b600082601f83011261324857613247612e3a565b5b81356132588482602086016131f1565b91505092915050565b6000806000806080858703121561327b5761327a612b6e565b5b600061328987828801612dbb565b945050602061329a87828801612dbb565b93505060406132ab87828801612d06565b925050606085013567ffffffffffffffff8111156132cc576132cb612b73565b5b6132d887828801613233565b91505092959194509250565b6132ed816130eb565b81146132f857600080fd5b50565b60008135905061330a816132e4565b92915050565b60006020828403121561332657613325612b6e565b5b6000613334848285016132fb565b91505092915050565b6000806040838503121561335457613353612b6e565b5b600061336285828601612dbb565b925050602061337385828601612dbb565b9150509250929050565b60006020828403121561339357613392612b6e565b5b60006133a18482850161316b565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806133f157607f821691505b602082108103613404576134036133aa565b5b50919050565b7f4d696e74696e67206e6f7420656e61626c65642063757272656e746c79000000600082015250565b6000613440601d83612c3e565b915061344b8261340a565b602082019050919050565b6000602082019050818103600083015261346f81613433565b9050919050565b7f496e73756666696369656e7420706c6174666f726d2066656500000000000000600082015250565b60006134ac601983612c3e565b91506134b782613476565b602082019050919050565b600060208201905081810360008301526134db8161349f565b9050919050565b60006060820190506134f76000830186612d7a565b6135046020830185612e10565b6135116040830184612d7a565b949350505050565b600060408201905061352e6000830185612d7a565b61353b6020830184612e10565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006135ab82612ce5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036135dd576135dc613571565b5b600182019050919050565b600081519050919050565b600082825260208201905092915050565b600061360f826135e8565b61361981856135f3565b9350613629818560208601612c4f565b61363281612c79565b840191505092915050565b60006080820190506136526000830187612d7a565b61365f6020830186612d7a565b61366c6040830185612e10565b818103606083015261367e8184613604565b905095945050505050565b60008151905061369881612ba4565b92915050565b6000602082840312156136b4576136b3612b6e565b5b60006136c284828501613689565b91505092915050565b600081905092915050565b60006136e182612c33565b6136eb81856136cb565b93506136fb818560208601612c4f565b80840191505092915050565b600061371382856136d6565b915061371f82846136d6565b91508190509392505050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261378d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613750565b6137978683613750565b95508019841693508086168417925050509392505050565b6000819050919050565b60006137d46137cf6137ca84612ce5565b6137af565b612ce5565b9050919050565b6000819050919050565b6137ee836137b9565b6138026137fa826137db565b84845461375d565b825550505050565b600090565b61381761380a565b6138228184846137e5565b505050565b5b818110156138465761383b60008261380f565b600181019050613828565b5050565b601f82111561388b5761385c8161372b565b61386584613740565b81016020851015613874578190505b61388861388085613740565b830182613827565b50505b505050565b600082821c905092915050565b60006138ae60001984600802613890565b1980831691505092915050565b60006138c7838361389d565b9150826002028217905092915050565b6138e082612c33565b67ffffffffffffffff8111156138f9576138f8612e44565b5b61390382546133d9565b61390e82828561384a565b600060209050601f831160018114613941576000841561392f578287015190505b61393985826138bb565b8655506139a1565b601f19841661394f8661372b565b60005b8281101561397757848901518255600182019150602085019450602081019050613952565b868310156139945784890151613990601f89168261389d565b8355505b6001600288020188555050505b505050505050565b60006040820190506139be6000830185612d7a565b6139cb6020830184613081565b9392505050565b60006139dd82612ce5565b91506139e883612ce5565b9250828203905081811115613a00576139ff613571565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fdfea26469706673582212207f2ffa6f0fc1be7c030bf112aab87f8de28ded019cb1e34499726386de7ef4e264736f6c634300081c0033","deployedBytecode":"0x6080604052600436106101ee5760003560e01c80634f6ccce71161010d578063a22cb465116100a0578063d547741f1161006f578063d547741f14610714578063e74b981b1461073d578063e985e9c514610766578063f2fde38b146107a3578063f46a04eb146107cc576101ee565b8063a22cb4651461065a578063b88d4fde14610683578063c87b56dd146106ac578063d5391393146106e9576101ee565b80638da5cb5b116100dc5780638da5cb5b1461059c57806391d14854146105c757806395d89b4114610604578063a217fddf1461062f576101ee565b80634f6ccce7146104ce5780636352211e1461050b57806370a0823114610548578063715018a614610585576101ee565b8063248a9ca31161018557806336568abe1161015457806336568abe1461042857806342842e0e1461045157806342966c681461047a57806346904840146104a3576101ee565b8063248a9ca31461035a57806326232a2e146103975780632f2ff15d146103c25780632f745c59146103eb576101ee565b806312e8e2c3116101c157806312e8e2c3146102c157806318160ddd146102ea578063227b93761461031557806323b872dd14610331576101ee565b806301ffc9a7146101f357806306fdde0314610230578063081812fc1461025b578063095ea7b314610298575b600080fd5b3480156101ff57600080fd5b5061021a60048036038101906102159190612bd0565b6107f5565b6040516102279190612c18565b60405180910390f35b34801561023c57600080fd5b50610245610807565b6040516102529190612cc3565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d9190612d1b565b610899565b60405161028f9190612d89565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba9190612dd0565b6108b5565b005b3480156102cd57600080fd5b506102e860048036038101906102e39190612d1b565b6108cb565b005b3480156102f657600080fd5b506102ff6108dd565b60405161030c9190612e1f565b60405180910390f35b61032f600480360381019061032a9190612f6f565b6108ea565b005b34801561033d57600080fd5b5061035860048036038101906103539190612fcb565b610a5d565b005b34801561036657600080fd5b50610381600480360381019061037c9190613054565b610b5f565b60405161038e9190613090565b60405180910390f35b3480156103a357600080fd5b506103ac610b7f565b6040516103b99190612e1f565b60405180910390f35b3480156103ce57600080fd5b506103e960048036038101906103e491906130ab565b610b85565b005b3480156103f757600080fd5b50610412600480360381019061040d9190612dd0565b610ba7565b60405161041f9190612e1f565b60405180910390f35b34801561043457600080fd5b5061044f600480360381019061044a91906130ab565b610c50565b005b34801561045d57600080fd5b5061047860048036038101906104739190612fcb565b610ccb565b005b34801561048657600080fd5b506104a1600480360381019061049c9190612d1b565b610ceb565b005b3480156104af57600080fd5b506104b8610d02565b6040516104c5919061310c565b60405180910390f35b3480156104da57600080fd5b506104f560048036038101906104f09190612d1b565b610d28565b6040516105029190612e1f565b60405180910390f35b34801561051757600080fd5b50610532600480360381019061052d9190612d1b565b610d9e565b60405161053f9190612d89565b60405180910390f35b34801561055457600080fd5b5061056f600480360381019061056a9190613127565b610db0565b60405161057c9190612e1f565b60405180910390f35b34801561059157600080fd5b5061059a610e6a565b005b3480156105a857600080fd5b506105b1610e7e565b6040516105be9190612d89565b60405180910390f35b3480156105d357600080fd5b506105ee60048036038101906105e991906130ab565b610ea8565b6040516105fb9190612c18565b60405180910390f35b34801561061057600080fd5b50610619610f13565b6040516106269190612cc3565b60405180910390f35b34801561063b57600080fd5b50610644610fa5565b6040516106519190613090565b60405180910390f35b34801561066657600080fd5b50610681600480360381019061067c9190613180565b610fac565b005b34801561068f57600080fd5b506106aa60048036038101906106a59190613261565b610fc2565b005b3480156106b857600080fd5b506106d360048036038101906106ce9190612d1b565b610fe7565b6040516106e09190612cc3565b60405180910390f35b3480156106f557600080fd5b506106fe610ff9565b60405161070b9190613090565b60405180910390f35b34801561072057600080fd5b5061073b600480360381019061073691906130ab565b61101d565b005b34801561074957600080fd5b50610764600480360381019061075f9190613310565b61103f565b005b34801561077257600080fd5b5061078d6004803603810190610788919061333d565b61108b565b60405161079a9190612c18565b60405180910390f35b3480156107af57600080fd5b506107ca60048036038101906107c59190613127565b61111f565b005b3480156107d857600080fd5b506107f360048036038101906107ee919061337d565b6111a5565b005b6000610800826111d0565b9050919050565b606060008054610816906133d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610842906133d9565b801561088f5780601f106108645761010080835404028352916020019161088f565b820191906000526020600020905b81548152906001019060200180831161087257829003601f168201915b5050505050905090565b60006108a48261124a565b506108ae826112d2565b9050919050565b6108c782826108c261130f565b611317565b5050565b6108d3611329565b80600f8190555050565b6000600880549050905090565b600e60009054906101000a900460ff168061093757503373ffffffffffffffffffffffffffffffffffffffff1661091f610e7e565b73ffffffffffffffffffffffffffffffffffffffff16145b610976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096d90613456565b60405180910390fd5b600f543410156109bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b2906134c2565b60405180910390fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015610a23573d6000803e3d6000fd5b50610a4e7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336113b0565b50610a5982826114a2565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610acf5760006040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610ac69190612d89565b60405180910390fd5b6000610ae38383610ade61130f565b611550565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b59578382826040517f64283d7b000000000000000000000000000000000000000000000000000000008152600401610b50939291906134e2565b60405180910390fd5b50505050565b6000600b6000838152602001908152602001600020600101549050919050565b600f5481565b610b8e82610b5f565b610b9781611566565b610ba183836113b0565b50505050565b6000610bb283610db0565b8210610bf75782826040517fa57d13dc000000000000000000000000000000000000000000000000000000008152600401610bee929190613519565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c5861130f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cbc576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cc6828261157a565b505050565b610ce683838360405180602001604052806000815250610fc2565b505050565b610cfe600082610cf961130f565b611550565b5050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610d326108dd565b8210610d78576000826040517fa57d13dc000000000000000000000000000000000000000000000000000000008152600401610d6f929190613519565b60405180910390fd5b60088281548110610d8c57610d8b613542565b5b90600052602060002001549050919050565b6000610da98261124a565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e235760006040517f89c62b64000000000000000000000000000000000000000000000000000000008152600401610e1a9190612d89565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e72611329565b610e7c600061166d565b565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600b600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060018054610f22906133d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610f4e906133d9565b8015610f9b5780601f10610f7057610100808354040283529160200191610f9b565b820191906000526020600020905b815481529060010190602001808311610f7e57829003601f168201915b5050505050905090565b6000801b81565b610fbe610fb761130f565b8383611733565b5050565b610fcd848484610a5d565b610fe1610fd861130f565b858585856118a2565b50505050565b6060610ff282611a53565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61102682610b5f565b61102f81611566565b611039838361157a565b50505050565b611047611329565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611127611329565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111995760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016111909190612d89565b60405180910390fd5b6111a28161166d565b50565b6000801b6111b281611566565b81600e60006101000a81548160ff0219169083151502179055505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611243575061124282611b66565b5b9050919050565b60008061125683611bc7565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036112c957826040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016112c09190612e1f565b60405180910390fd5b80915050919050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600033905090565b6113248383836001611c04565b505050565b61133161130f565b73ffffffffffffffffffffffffffffffffffffffff1661134f610e7e565b73ffffffffffffffffffffffffffffffffffffffff16146113ae5761137261130f565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016113a59190612d89565b60405180910390fd5b565b60006113bc8383610ea8565b611497576001600b600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061143461130f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001905061149c565b600090505b92915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66114cc81611566565b6000600d60008154809291906114e1906135a0565b9190505590506114f18482611dc9565b6114fb8184611de7565b808473ffffffffffffffffffffffffffffffffffffffff167f85a66b9141978db9980f7e0ce3b468cebf4f7999f32b23091c5c03e798b1ba7a856040516115429190612cc3565b60405180910390a350505050565b600061155d848484611e43565b90509392505050565b6115778161157261130f565b611f60565b50565b60006115868383610ea8565b15611662576000600b600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506115ff61130f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050611667565b600090505b92915050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117a457816040517f5b08ba1800000000000000000000000000000000000000000000000000000000815260040161179b9190612d89565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118959190612c18565b60405180910390a3505050565b60008373ffffffffffffffffffffffffffffffffffffffff163b1115611a4c578273ffffffffffffffffffffffffffffffffffffffff1663150b7a02868685856040518563ffffffff1660e01b8152600401611901949392919061363d565b6020604051808303816000875af192505050801561193d57506040513d601f19601f8201168201806040525081019061193a919061369e565b60015b6119c1573d806000811461196d576040519150601f19603f3d011682016040523d82523d6000602084013e611972565b606091505b5060008151036119b957836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016119b09190612d89565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611a4a57836040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401611a419190612d89565b60405180910390fd5b505b5050505050565b6060611a5e8261124a565b506000600a60008481526020019081526020016000208054611a7f906133d9565b80601f0160208091040260200160405190810160405280929190818152602001828054611aab906133d9565b8015611af85780601f10611acd57610100808354040283529160200191611af8565b820191906000526020600020905b815481529060010190602001808311611adb57829003601f168201915b505050505090506000611b09611fb1565b90506000815103611b1e578192505050611b61565b600082511115611b53578082604051602001611b3b929190613707565b60405160208183030381529060405292505050611b61565b611b5c84611fc8565b925050505b919050565b6000634906490660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611bc05750611bbf82612031565b5b9050919050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8080611c3d5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611d71576000611c4d8461124a565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611cb857508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b8015611ccb5750611cc9818461108b565b155b15611d0d57826040517fa9fbf51f000000000000000000000000000000000000000000000000000000008152600401611d049190612d89565b60405180910390fd5b8115611d6f57838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b836004600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b611de38282604051806020016040528060008152506120ab565b5050565b80600a60008481526020019081526020016000209081611e0791906138d7565b507ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce782604051611e379190612e1f565b60405180910390a15050565b600080611e518585856120cf565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e9557611e90846122e9565b611ed4565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611ed357611ed28185612332565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611f1657611f118461241d565b611f55565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611f5457611f5385856124ee565b5b5b809150509392505050565b611f6a8282610ea8565b611fad5780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401611fa49291906139a9565b60405180910390fd5b5050565b606060405180602001604052806000815250905090565b6060611fd38261124a565b506000611fde611fb1565b90506000815111611ffe5760405180602001604052806000815250612029565b8061200884612579565b604051602001612019929190613707565b6040516020818303038152906040525b915050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806120a457506120a382612647565b5b9050919050565b6120b58383612729565b6120ca6120c061130f565b60008585856118a2565b505050565b6000806120db84611bc7565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461211d5761211c818486612822565b5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146121ae5761215f600085600080611c04565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612231576001600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b846002600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600061233d83610db0565b90506000600760008481526020019081526020016000205490506000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508282146123e95760008160008581526020019081526020016000205490508082600085815260200190815260200160002081905550826007600083815260200190815260200160002081905550505b6007600085815260200190815260200160002060009055806000848152602001908152602001600020600090555050505050565b6000600160088054905061243191906139d2565b905060006009600084815260200190815260200160002054905060006008838154811061246157612460613542565b5b90600052602060002001549050806008838154811061248357612482613542565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806124d2576124d1613a06565b5b6001900381819060005260206000200160009055905550505050565b600060016124fb84610db0565b61250591906139d2565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b606060006001612588846128e6565b01905060008167ffffffffffffffff8111156125a7576125a6612e44565b5b6040519080825280601f01601f1916602001820160405280156125d95781602001600182028036833780820191505090505b509050600082602001820190505b60011561263c578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816126305761262f613a35565b5b049450600085036125e7575b819350505050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061271257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612722575061272182612a39565b5b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361279b5760006040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016127929190612d89565b60405180910390fd5b60006127a983836000611550565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461281d5760006040517f73c6ac6e0000000000000000000000000000000000000000000000000000000081526004016128149190612d89565b60405180910390fd5b505050565b61282d838383612aa3565b6128e157600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036128a257806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016128999190612e1f565b60405180910390fd5b81816040517f177e802f0000000000000000000000000000000000000000000000000000000081526004016128d8929190613519565b60405180910390fd5b505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612944577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161293a57612939613a35565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612981576d04ee2d6d415b85acef8100000000838161297757612976613a35565b5b0492506020810190505b662386f26fc1000083106129b057662386f26fc1000083816129a6576129a5613a35565b5b0492506010810190505b6305f5e10083106129d9576305f5e10083816129cf576129ce613a35565b5b0492506008810190505b61271083106129fe5761271083816129f4576129f3613a35565b5b0492506004810190505b60648310612a215760648381612a1757612a16613a35565b5b0492506002810190505b600a8310612a30576001810190505b80915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612b5b57508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b1c5750612b1b848461108b565b5b80612b5a57508273ffffffffffffffffffffffffffffffffffffffff16612b42836112d2565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612bad81612b78565b8114612bb857600080fd5b50565b600081359050612bca81612ba4565b92915050565b600060208284031215612be657612be5612b6e565b5b6000612bf484828501612bbb565b91505092915050565b60008115159050919050565b612c1281612bfd565b82525050565b6000602082019050612c2d6000830184612c09565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612c6d578082015181840152602081019050612c52565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c9582612c33565b612c9f8185612c3e565b9350612caf818560208601612c4f565b612cb881612c79565b840191505092915050565b60006020820190508181036000830152612cdd8184612c8a565b905092915050565b6000819050919050565b612cf881612ce5565b8114612d0357600080fd5b50565b600081359050612d1581612cef565b92915050565b600060208284031215612d3157612d30612b6e565b5b6000612d3f84828501612d06565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612d7382612d48565b9050919050565b612d8381612d68565b82525050565b6000602082019050612d9e6000830184612d7a565b92915050565b612dad81612d68565b8114612db857600080fd5b50565b600081359050612dca81612da4565b92915050565b60008060408385031215612de757612de6612b6e565b5b6000612df585828601612dbb565b9250506020612e0685828601612d06565b9150509250929050565b612e1981612ce5565b82525050565b6000602082019050612e346000830184612e10565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612e7c82612c79565b810181811067ffffffffffffffff82111715612e9b57612e9a612e44565b5b80604052505050565b6000612eae612b64565b9050612eba8282612e73565b919050565b600067ffffffffffffffff821115612eda57612ed9612e44565b5b612ee382612c79565b9050602081019050919050565b82818337600083830152505050565b6000612f12612f0d84612ebf565b612ea4565b905082815260208101848484011115612f2e57612f2d612e3f565b5b612f39848285612ef0565b509392505050565b600082601f830112612f5657612f55612e3a565b5b8135612f66848260208601612eff565b91505092915050565b60008060408385031215612f8657612f85612b6e565b5b6000612f9485828601612dbb565b925050602083013567ffffffffffffffff811115612fb557612fb4612b73565b5b612fc185828601612f41565b9150509250929050565b600080600060608486031215612fe457612fe3612b6e565b5b6000612ff286828701612dbb565b935050602061300386828701612dbb565b925050604061301486828701612d06565b9150509250925092565b6000819050919050565b6130318161301e565b811461303c57600080fd5b50565b60008135905061304e81613028565b92915050565b60006020828403121561306a57613069612b6e565b5b60006130788482850161303f565b91505092915050565b61308a8161301e565b82525050565b60006020820190506130a56000830184613081565b92915050565b600080604083850312156130c2576130c1612b6e565b5b60006130d08582860161303f565b92505060206130e185828601612dbb565b9150509250929050565b60006130f682612d48565b9050919050565b613106816130eb565b82525050565b600060208201905061312160008301846130fd565b92915050565b60006020828403121561313d5761313c612b6e565b5b600061314b84828501612dbb565b91505092915050565b61315d81612bfd565b811461316857600080fd5b50565b60008135905061317a81613154565b92915050565b6000806040838503121561319757613196612b6e565b5b60006131a585828601612dbb565b92505060206131b68582860161316b565b9150509250929050565b600067ffffffffffffffff8211156131db576131da612e44565b5b6131e482612c79565b9050602081019050919050565b60006132046131ff846131c0565b612ea4565b9050828152602081018484840111156132205761321f612e3f565b5b61322b848285612ef0565b509392505050565b600082601f83011261324857613247612e3a565b5b81356132588482602086016131f1565b91505092915050565b6000806000806080858703121561327b5761327a612b6e565b5b600061328987828801612dbb565b945050602061329a87828801612dbb565b93505060406132ab87828801612d06565b925050606085013567ffffffffffffffff8111156132cc576132cb612b73565b5b6132d887828801613233565b91505092959194509250565b6132ed816130eb565b81146132f857600080fd5b50565b60008135905061330a816132e4565b92915050565b60006020828403121561332657613325612b6e565b5b6000613334848285016132fb565b91505092915050565b6000806040838503121561335457613353612b6e565b5b600061336285828601612dbb565b925050602061337385828601612dbb565b9150509250929050565b60006020828403121561339357613392612b6e565b5b60006133a18482850161316b565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806133f157607f821691505b602082108103613404576134036133aa565b5b50919050565b7f4d696e74696e67206e6f7420656e61626c65642063757272656e746c79000000600082015250565b6000613440601d83612c3e565b915061344b8261340a565b602082019050919050565b6000602082019050818103600083015261346f81613433565b9050919050565b7f496e73756666696369656e7420706c6174666f726d2066656500000000000000600082015250565b60006134ac601983612c3e565b91506134b782613476565b602082019050919050565b600060208201905081810360008301526134db8161349f565b9050919050565b60006060820190506134f76000830186612d7a565b6135046020830185612e10565b6135116040830184612d7a565b949350505050565b600060408201905061352e6000830185612d7a565b61353b6020830184612e10565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006135ab82612ce5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036135dd576135dc613571565b5b600182019050919050565b600081519050919050565b600082825260208201905092915050565b600061360f826135e8565b61361981856135f3565b9350613629818560208601612c4f565b61363281612c79565b840191505092915050565b60006080820190506136526000830187612d7a565b61365f6020830186612d7a565b61366c6040830185612e10565b818103606083015261367e8184613604565b905095945050505050565b60008151905061369881612ba4565b92915050565b6000602082840312156136b4576136b3612b6e565b5b60006136c284828501613689565b91505092915050565b600081905092915050565b60006136e182612c33565b6136eb81856136cb565b93506136fb818560208601612c4f565b80840191505092915050565b600061371382856136d6565b915061371f82846136d6565b91508190509392505050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261378d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613750565b6137978683613750565b95508019841693508086168417925050509392505050565b6000819050919050565b60006137d46137cf6137ca84612ce5565b6137af565b612ce5565b9050919050565b6000819050919050565b6137ee836137b9565b6138026137fa826137db565b84845461375d565b825550505050565b600090565b61381761380a565b6138228184846137e5565b505050565b5b818110156138465761383b60008261380f565b600181019050613828565b5050565b601f82111561388b5761385c8161372b565b61386584613740565b81016020851015613874578190505b61388861388085613740565b830182613827565b50505b505050565b600082821c905092915050565b60006138ae60001984600802613890565b1980831691505092915050565b60006138c7838361389d565b9150826002028217905092915050565b6138e082612c33565b67ffffffffffffffff8111156138f9576138f8612e44565b5b61390382546133d9565b61390e82828561384a565b600060209050601f831160018114613941576000841561392f578287015190505b61393985826138bb565b8655506139a1565b601f19841661394f8661372b565b60005b8281101561397757848901518255600182019150602085019450602081019050613952565b868310156139945784890151613990601f89168261389d565b8355505b6001600288020188555050505b505050505050565b60006040820190506139be6000830185612d7a565b6139cb6020830184613081565b9392505050565b60006139dd82612ce5565b91506139e883612ce5565b9250828203905081811115613a00576139ff613571565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fdfea26469706673582212207f2ffa6f0fc1be7c030bf112aab87f8de28ded019cb1e34499726386de7ef4e264736f6c634300081c0033","linkReferences":{},"deployedLinkReferences":{}}')},1219:e=>{e.exports=JSON.parse('{"serverHost":"http://localhost:5000"}')}},t={};function n(r){var f=t[r];if(void 0!==f)return f.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(3900)})(); \ No newline at end of file +(()=>{"use strict";var e={7749:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createCurve=t.getHash=void 0;const r=n(4542),f=n(4224),a=n(7292);function s(e){return{hash:e,hmac:(t,...n)=>(0,r.hmac)(e,t,(0,f.concatBytes)(...n)),randomBytes:f.randomBytes}}t.getHash=s,t.createCurve=function(e,t){const n=t=>(0,a.weierstrass)({...e,...s(t)});return Object.freeze({...n(t),create:n})}},6023:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateBasic=t.wNAF=void 0;const r=n(5646),f=n(8421),a=BigInt(0),s=BigInt(1);t.wNAF=function(e,t){const n=(e,t)=>{const n=t.negate();return e?n:t},r=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:n,unsafeLadder(t,n){let r=e.ZERO,f=t;for(;n>a;)n&s&&(r=r.add(f)),f=f.double(),n>>=s;return r},precomputeWindow(e,t){const{windows:n,windowSize:f}=r(t),a=[];let s=e,i=s;for(let e=0;e>=p,r>o&&(r-=d,a+=s);const i=t,h=t+Math.abs(r)-1,b=e%2!=0,g=r<0;0===r?c=c.add(n(b,f[i])):l=l.add(n(g,f[h]))}return{p:l,f:c}},wNAFCached(e,t,n,r){const f=e._WINDOW_SIZE||1;let a=t.get(e);return a||(a=this.precomputeWindow(e,f),1!==f&&t.set(e,r(a))),this.wNAF(f,a,n)}}},t.validateBasic=function(e){return(0,r.validateField)(e.Fp),(0,f.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,r.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}},2124:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createHasher=t.isogenyMap=t.hash_to_field=t.expand_message_xof=t.expand_message_xmd=void 0;const r=n(5646),f=n(8421),a=f.bytesToNumberBE;function s(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const n=Array.from({length:t}).fill(0);for(let r=t-1;r>=0;r--)n[r]=255&e,e>>>=8;return new Uint8Array(n)}function i(e,t){const n=new Uint8Array(e.length);for(let r=0;r255&&(t=r((0,f.concatBytes)((0,f.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:a,blockLen:c}=r,u=Math.ceil(n/a);if(u>255)throw new Error("Invalid xmd length");const d=(0,f.concatBytes)(t,s(t.length,1)),p=s(0,c),h=s(n,2),b=new Array(u),g=r((0,f.concatBytes)(p,e,h,s(0,1),d));b[0]=r((0,f.concatBytes)(g,s(1,1),d));for(let e=1;e<=u;e++){const t=[i(g,b[e-1]),s(e+1,1),d];b[e]=r((0,f.concatBytes)(...t))}return(0,f.concatBytes)(...b).slice(0,n)}function u(e,t,n,r,a){if(o(e),o(t),l(n),t.length>255){const e=Math.ceil(2*r/8);t=a.create({dkLen:e}).update((0,f.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(n>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return a.create({dkLen:n}).update(e).update(s(n,2)).update(t).update(s(t.length,1)).digest()}function d(e,t,n){(0,f.validateObject)(n,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:s,k:i,m:d,hash:p,expand:h,DST:b}=n;o(e),l(t);const g=function(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return(0,f.utf8ToBytes)(e);throw new Error("DST must be Uint8Array or string")}(b),m=s.toString(2).length,y=Math.ceil((m+i)/8),v=t*d*y;let w;if("xmd"===h)w=c(e,g,v,p);else if("xof"===h)w=u(e,g,v,i,p);else{if("_internal_pass"!==h)throw new Error('expand must be "xmd" or "xof"');w=e}const A=new Array(t);for(let e=0;eArray.from(e).reverse()));return(t,r)=>{const[f,a,s,i]=n.map((n=>n.reduce(((n,r)=>e.add(e.mul(n,t),r)))));return t=e.div(f,a),r=e.mul(r,e.div(s,i)),{x:t,y:r}}},t.createHasher=function(e,t,n){if("function"!=typeof t)throw new Error("mapToCurve() must be defined");return{hashToCurve(r,f){const a=d(r,2,{...n,DST:n.DST,...f}),s=e.fromAffine(t(a[0])),i=e.fromAffine(t(a[1])),o=s.add(i).clearCofactor();return o.assertValidity(),o},encodeToCurve(r,f){const a=d(r,1,{...n,DST:n.encodeDST,...f}),s=e.fromAffine(t(a[0])).clearCofactor();return s.assertValidity(),s}}}},5646:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mapHashToField=t.getMinHashLength=t.getFieldBytesLength=t.hashToPrivateScalar=t.FpSqrtEven=t.FpSqrtOdd=t.Field=t.nLength=t.FpIsSquare=t.FpDiv=t.FpInvertBatch=t.FpPow=t.validateField=t.isNegativeLE=t.FpSqrt=t.tonelliShanks=t.invert=t.pow2=t.pow=t.mod=void 0;const r=n(8421),f=BigInt(0),a=BigInt(1),s=BigInt(2),i=BigInt(3),o=BigInt(4),l=BigInt(5),c=BigInt(8);function u(e,t){const n=e%t;return n>=f?n:t+n}function d(e,t,n){if(n<=f||t 0");if(n===a)return f;let r=a;for(;t>f;)t&a&&(r=r*e%n),e=e*e%n,t>>=a;return r}function p(e,t){if(e===f||t<=f)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=u(e,t),r=t,s=f,i=a,o=a,l=f;for(;n!==f;){const e=r/n,t=r%n,f=s-o*e,a=i-l*e;r=n,n=t,s=o,i=l,o=f,l=a}if(r!==a)throw new Error("invert: does not exist");return u(s,t)}function h(e){const t=(e-a)/s;let n,r,i;for(n=e-a,r=0;n%s===f;n/=s,r++);for(i=s;if;)r*=r,r%=n;return r},t.invert=p,t.tonelliShanks=h,t.FpSqrt=b,t.isNegativeLE=(e,t)=>(u(e,t)&a)===a;const g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function m(e,t,n){if(n 0");if(n===f)return e.ONE;if(n===a)return t;let r=e.ONE,s=t;for(;n>f;)n&a&&(r=e.mul(r,s)),s=e.sqr(s),n>>=a;return r}function y(e,t){const n=new Array(t.length),r=t.reduce(((t,r,f)=>e.is0(r)?t:(n[f]=t,e.mul(t,r))),e.ONE),f=e.inv(r);return t.reduceRight(((t,r,f)=>e.is0(r)?t:(n[f]=e.mul(t,n[f]),e.mul(t,r))),f),n}function v(e,t){const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function w(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function A(e){const t=w(e);return t+Math.ceil(t/2)}t.validateField=function(e){const t=g.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,r.validateObject)(e,t)},t.FpPow=m,t.FpInvertBatch=y,t.FpDiv=function(e,t,n){return e.mul(t,"bigint"==typeof n?p(n,e.ORDER):e.inv(n))},t.FpIsSquare=function(e){const t=(e.ORDER-a)/s;return n=>{const r=e.pow(n,t);return e.eql(r,e.ZERO)||e.eql(r,e.ONE)}},t.nLength=v,t.Field=function(e,t,n=!1,s={}){if(e<=f)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:i,nByteLength:o}=v(e,t);if(o>2048)throw new Error("Field lengths over 2048 bytes are not supported");const l=b(e),c=Object.freeze({ORDER:e,BITS:i,BYTES:o,MASK:(0,r.bitMask)(i),ZERO:f,ONE:a,create:t=>u(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("Invalid field element: expected bigint, got "+typeof t);return f<=t&&te===f,isOdd:e=>(e&a)===a,neg:t=>u(-t,e),eql:(e,t)=>e===t,sqr:t=>u(t*t,e),add:(t,n)=>u(t+n,e),sub:(t,n)=>u(t-n,e),mul:(t,n)=>u(t*n,e),pow:(e,t)=>m(c,e,t),div:(t,n)=>u(t*p(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>p(t,e),sqrt:s.sqrt||(e=>l(c,e)),invertBatch:e=>y(c,e),cmov:(e,t,n)=>n?t:e,toBytes:e=>n?(0,r.numberToBytesLE)(e,o):(0,r.numberToBytesBE)(e,o),fromBytes:e=>{if(e.length!==o)throw new Error(`Fp.fromBytes: expected ${o}, got ${e.length}`);return n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e)}});return Object.freeze(c)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?n:e.neg(n)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?e.neg(n):n},t.hashToPrivateScalar=function(e,t,n=!1){const f=(e=(0,r.ensureBytes)("privateHash",e)).length,s=v(t).nByteLength+8;if(s<24||f1024)throw new Error(`hashToPrivateScalar: expected ${s}-1024 bytes of input, got ${f}`);return u(n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e),t-a)+a},t.getFieldBytesLength=w,t.getMinHashLength=A,t.mapHashToField=function(e,t,n=!1){const f=e.length,s=w(t),i=A(t);if(f<16||f1024)throw new Error(`expected ${i}-1024 bytes of input, got ${f}`);const o=u(n?(0,r.bytesToNumberBE)(e):(0,r.bytesToNumberLE)(e),t-a)+a;return n?(0,r.numberToBytesLE)(o,s):(0,r.numberToBytesBE)(o,s)}},8421:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateObject=t.createHmacDrbg=t.bitMask=t.bitSet=t.bitGet=t.bitLen=t.utf8ToBytes=t.equalBytes=t.concatBytes=t.ensureBytes=t.numberToVarBytesBE=t.numberToBytesLE=t.numberToBytesBE=t.bytesToNumberLE=t.bytesToNumberBE=t.hexToBytes=t.hexToNumber=t.numberToHexUnpadded=t.bytesToHex=void 0;const n=BigInt(0),r=BigInt(1),f=BigInt(2),a=e=>e instanceof Uint8Array,s=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function i(e){if(!a(e))throw new Error("Uint8Array expected");let t="";for(let n=0;ne+t.length),0));let n=0;return e.forEach((e=>{if(!a(e))throw new Error("Uint8Array expected");t.set(e,n),n+=e.length})),t}t.bytesToHex=i,t.numberToHexUnpadded=o,t.hexToNumber=l,t.hexToBytes=c,t.bytesToNumberBE=function(e){return l(i(e))},t.bytesToNumberLE=function(e){if(!a(e))throw new Error("Uint8Array expected");return l(i(Uint8Array.from(e).reverse()))},t.numberToBytesBE=u,t.numberToBytesLE=function(e,t){return u(e,t).reverse()},t.numberToVarBytesBE=function(e){return c(o(e))},t.ensureBytes=function(e,t,n){let r;if("string"==typeof t)try{r=c(t)}catch(n){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${n}`)}else{if(!a(t))throw new Error(`${e} must be hex string or Uint8Array`);r=Uint8Array.from(t)}const f=r.length;if("number"==typeof n&&f!==n)throw new Error(`${e} expected ${n} bytes, got ${f}`);return r},t.concatBytes=d,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;for(let n=0;nn;e>>=r,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&r},t.bitSet=(e,t,f)=>e|(f?r:n)<(f<new Uint8Array(e),h=e=>Uint8Array.from(e);t.createHmacDrbg=function(e,t,n){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");let r=p(e),f=p(e),a=0;const s=()=>{r.fill(1),f.fill(0),a=0},i=(...e)=>n(f,r,...e),o=(e=p())=>{f=i(h([0]),e),r=i(),0!==e.length&&(f=i(h([1]),e),r=i())},l=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e{let n;for(s(),o(e);!(n=t(l()));)o();return s(),n}};const b={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.validateObject=function(e,t,n={}){const r=(t,n,r)=>{const f=b[n];if("function"!=typeof f)throw new Error(`Invalid validator "${n}", expected function`);const a=e[t];if(!(r&&void 0===a||f(a,e)))throw new Error(`Invalid param ${String(t)}=${a} (${typeof a}), expected ${n}`)};for(const[e,n]of Object.entries(t))r(e,n,!1);for(const[e,t]of Object.entries(n))r(e,t,!0);return e}},7292:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;const r=n(5646),f=n(8421),a=n(8421),s=n(6023),{bytesToNumberBE:i,hexToBytes:o}=f;t.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){const{Err:n}=t.DER;if(e.length<2||2!==e[0])throw new n("Invalid signature integer tag");const r=e[1],f=e.subarray(2,r+2);if(!r||f.length!==r)throw new n("Invalid signature integer: wrong length");if(128&f[0])throw new n("Invalid signature integer: negative");if(0===f[0]&&!(128&f[1]))throw new n("Invalid signature integer: unnecessary leading zero");return{d:i(f),l:e.subarray(r+2)}},toSig(e){const{Err:n}=t.DER,r="string"==typeof e?o(e):e;if(!(r instanceof Uint8Array))throw new Error("ui8a expected");let f=r.length;if(f<2||48!=r[0])throw new n("Invalid signature tag");if(r[1]!==f-2)throw new n("Invalid signature: incorrect length");const{d:a,l:s}=t.DER._parseInt(r.subarray(2)),{d:i,l}=t.DER._parseInt(s);if(l.length)throw new n("Invalid signature: left bytes after parsing");return{r:a,s:i}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,n=e=>{const t=e.toString(16);return 1&t.length?`0${t}`:t},r=t(n(e.s)),f=t(n(e.r)),a=r.length/2,s=f.length/2,i=n(a),o=n(s);return`30${n(s+a+4)}02${o}${f}02${i}${r}`}};const l=BigInt(0),c=BigInt(1),u=BigInt(2),d=BigInt(3),p=BigInt(4);function h(e){const t=function(e){const t=(0,s.validateBasic)(e);f.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a}=t;if(n){if(!r.eql(a,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:n}=t,i=t.toBytes||((e,t,r)=>{const a=t.toAffine();return f.concatBytes(Uint8Array.from([4]),n.toBytes(a.x),n.toBytes(a.y))}),o=t.fromBytes||(e=>{const t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function u(e){const{a:r,b:f}=t,a=n.sqr(e),s=n.mul(a,e);return n.add(n.add(s,n.mul(e,r)),f)}if(!n.eql(n.sqr(t.Gy),u(t.Gx)))throw new Error("bad generator point: equation left != right");function p(e){return"bigint"==typeof e&&ln.eql(e,n.ZERO);return f(t)&&f(r)?y.ZERO:new y(t,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(y.fromAffine)}static fromHex(e){const t=y.fromAffine(o((0,a.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return y.BASE.multiply(b(e))}_setWindowSize(e){this._WINDOW_SIZE=e,g.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:e,y:r}=this.toAffine();if(!n.isValid(e)||!n.isValid(r))throw new Error("bad point: x or y not FE");const f=n.sqr(r),a=u(e);if(!n.eql(f,a))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){m(e);const{px:t,py:r,pz:f}=this,{px:a,py:s,pz:i}=e,o=n.eql(n.mul(t,i),n.mul(a,f)),l=n.eql(n.mul(r,i),n.mul(s,f));return o&&l}negate(){return new y(this.px,n.neg(this.py),this.pz)}double(){const{a:e,b:r}=t,f=n.mul(r,d),{px:a,py:s,pz:i}=this;let o=n.ZERO,l=n.ZERO,c=n.ZERO,u=n.mul(a,a),p=n.mul(s,s),h=n.mul(i,i),b=n.mul(a,s);return b=n.add(b,b),c=n.mul(a,i),c=n.add(c,c),o=n.mul(e,c),l=n.mul(f,h),l=n.add(o,l),o=n.sub(p,l),l=n.add(p,l),l=n.mul(o,l),o=n.mul(b,o),c=n.mul(f,c),h=n.mul(e,h),b=n.sub(u,h),b=n.mul(e,b),b=n.add(b,c),c=n.add(u,u),u=n.add(c,u),u=n.add(u,h),u=n.mul(u,b),l=n.add(l,u),h=n.mul(s,i),h=n.add(h,h),u=n.mul(h,b),o=n.sub(o,u),c=n.mul(h,p),c=n.add(c,c),c=n.add(c,c),new y(o,l,c)}add(e){m(e);const{px:r,py:f,pz:a}=this,{px:s,py:i,pz:o}=e;let l=n.ZERO,c=n.ZERO,u=n.ZERO;const p=t.a,h=n.mul(t.b,d);let b=n.mul(r,s),g=n.mul(f,i),v=n.mul(a,o),w=n.add(r,f),A=n.add(s,i);w=n.mul(w,A),A=n.add(b,g),w=n.sub(w,A),A=n.add(r,a);let k=n.add(s,o);return A=n.mul(A,k),k=n.add(b,v),A=n.sub(A,k),k=n.add(f,a),l=n.add(i,o),k=n.mul(k,l),l=n.add(g,v),k=n.sub(k,l),u=n.mul(p,A),l=n.mul(h,v),u=n.add(l,u),l=n.sub(g,u),u=n.add(g,u),c=n.mul(l,u),g=n.add(b,b),g=n.add(g,b),v=n.mul(p,v),A=n.mul(h,A),g=n.add(g,v),v=n.sub(b,v),v=n.mul(p,v),A=n.add(A,v),b=n.mul(g,A),c=n.add(c,b),b=n.mul(k,A),l=n.mul(w,l),l=n.sub(l,b),b=n.mul(w,g),u=n.mul(k,u),u=n.add(u,b),new y(l,c,u)}subtract(e){return this.add(e.negate())}is0(){return this.equals(y.ZERO)}wNAF(e){return w.wNAFCached(this,g,e,(e=>{const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(y.fromAffine)}))}multiplyUnsafe(e){const r=y.ZERO;if(e===l)return r;if(h(e),e===c)return this;const{endo:f}=t;if(!f)return w.unsafeLadder(this,e);let{k1neg:a,k1:s,k2neg:i,k2:o}=f.splitScalar(e),u=r,d=r,p=this;for(;s>l||o>l;)s&c&&(u=u.add(p)),o&c&&(d=d.add(p)),p=p.double(),s>>=c,o>>=c;return a&&(u=u.negate()),i&&(d=d.negate()),d=new y(n.mul(d.px,f.beta),d.py,d.pz),u.add(d)}multiply(e){h(e);let r,f,a=e;const{endo:s}=t;if(s){const{k1neg:e,k1:t,k2neg:i,k2:o}=s.splitScalar(a);let{p:l,f:c}=this.wNAF(t),{p:u,f:d}=this.wNAF(o);l=w.constTimeNegate(e,l),u=w.constTimeNegate(i,u),u=new y(n.mul(u.px,s.beta),u.py,u.pz),r=l.add(u),f=c.add(d)}else{const{p:e,f:t}=this.wNAF(a);r=e,f=t}return y.normalizeZ([r,f])[0]}multiplyAndAddUnsafe(e,t,n){const r=y.BASE,f=(e,t)=>t!==l&&t!==c&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),a=f(this,t).add(f(e,n));return a.is0()?void 0:a}toAffine(e){const{px:t,py:r,pz:f}=this,a=this.is0();null==e&&(e=a?n.ONE:n.inv(f));const s=n.mul(t,e),i=n.mul(r,e),o=n.mul(f,e);if(a)return{x:n.ZERO,y:n.ZERO};if(!n.eql(o,n.ONE))throw new Error("invZ was invalid");return{x:s,y:i}}isTorsionFree(){const{h:e,isTorsionFree:n}=t;if(e===c)return!0;if(n)return n(y,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:n}=t;return e===c?this:n?n(y,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),i(y,this,e)}toHex(e=!0){return f.bytesToHex(this.toRawBytes(e))}}y.BASE=new y(t.Gx,t.Gy,n.ONE),y.ZERO=new y(n.ZERO,n.ONE,n.ZERO);const v=t.nBitLength,w=(0,s.wNAF)(y,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:y,normPrivateKeyToScalar:b,weierstrassEquation:u,isWithinCurveOrder:p}}function b(e,t){const n=e.ORDER;let r=l;for(let e=n-c;e%u===l;e/=u)r+=c;const f=r,a=u<{let r=g,a=e.pow(n,h),s=e.sqr(a);s=e.mul(s,n);let i=e.mul(t,s);i=e.pow(i,o),i=e.mul(i,a),a=e.mul(i,n),s=e.mul(i,t);let l=e.mul(s,a);i=e.pow(l,b);let d=e.eql(i,e.ONE);a=e.mul(s,m),i=e.mul(l,r),s=e.cmov(a,s,d),l=e.cmov(i,l,d);for(let t=f;t>c;t--){let n=t-u;n=u<{let a=e.sqr(f);const s=e.mul(t,f);a=e.mul(a,s);let i=e.pow(a,n);i=e.mul(i,s);const o=e.mul(i,r),l=e.mul(e.sqr(i),f),c=e.eql(l,t);return{isValid:c,value:e.cmov(o,i,c)}}}return y}t.weierstrassPoints=h,t.weierstrass=function(e){const n=function(e){const t=(0,s.validateBasic)(e);return f.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:i,n:o}=n,u=i.BYTES+1,d=2*i.BYTES+1;function p(e){return r.mod(e,o)}function b(e){return r.invert(e,o)}const{ProjectivePoint:g,normPrivateKeyToScalar:m,weierstrassEquation:y,isWithinCurveOrder:v}=h({...n,toBytes(e,t,n){const r=t.toAffine(),a=i.toBytes(r.x),s=f.concatBytes;return n?s(Uint8Array.from([t.hasEvenY()?2:3]),a):s(Uint8Array.from([4]),a,i.toBytes(r.y))},fromBytes(e){const t=e.length,n=e[0],r=e.subarray(1);if(t!==u||2!==n&&3!==n){if(t===d&&4===n)return{x:i.fromBytes(r.subarray(0,i.BYTES)),y:i.fromBytes(r.subarray(i.BYTES,2*i.BYTES))};throw new Error(`Point of length ${t} was invalid. Expected ${u} compressed bytes or ${d} uncompressed bytes`)}{const e=f.bytesToNumberBE(r);if(!(l<(a=e)&&af.bytesToHex(f.numberToBytesBE(e,n.nByteLength));function A(e){return e>o>>c}const k=(e,t,n)=>f.bytesToNumberBE(e.slice(t,n));class P{constructor(e,t,n){this.r=e,this.s=t,this.recovery=n,this.assertValidity()}static fromCompact(e){const t=n.nByteLength;return e=(0,a.ensureBytes)("compactSignature",e,2*t),new P(k(e,0,t),k(e,t,2*t))}static fromDER(e){const{r:n,s:r}=t.DER.toSig((0,a.ensureBytes)("DER",e));return new P(n,r)}assertValidity(){if(!v(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new P(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:r,recovery:f}=this,s=x((0,a.ensureBytes)("msgHash",e));if(null==f||![0,1,2,3].includes(f))throw new Error("recovery id invalid");const o=2===f||3===f?t+n.n:t;if(o>=i.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=1&f?"03":"02",c=g.fromHex(l+w(o)),u=b(o),d=p(-s*u),h=p(r*u),m=g.BASE.multiplyAndAddUnsafe(c,d,h);if(!m)throw new Error("point at infinify");return m.assertValidity(),m}hasHighS(){return A(this.s)}normalizeS(){return this.hasHighS()?new P(this.r,p(-this.s),this.recovery):this}toDERRawBytes(){return f.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return f.hexToBytes(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}const E={isValidPrivateKey(e){try{return m(e),!0}catch(e){return!1}},normPrivateKeyToScalar:m,randomPrivateKey:()=>{const e=r.getMinHashLength(n.n);return r.mapHashToField(n.randomBytes(e),n.n)},precompute:(e=8,t=g.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function S(e){const t=e instanceof Uint8Array,n="string"==typeof e,r=(t||n)&&e.length;return t?r===u||r===d:n?r===2*u||r===2*d:e instanceof g}const O=n.bits2int||function(e){const t=f.bytesToNumberBE(e),r=8*e.length-n.nBitLength;return r>0?t>>BigInt(r):t},x=n.bits2int_modN||function(e){return p(O(e))},T=f.bitMask(n.nBitLength);function C(e){if("bigint"!=typeof e)throw new Error("bigint expected");if(!(l<=e&&ee in r)))throw new Error("sign() legacy options not supported");const{hash:s,randomBytes:o}=n;let{lowS:u,prehash:d,extraEntropy:h}=r;null==u&&(u=!0),e=(0,a.ensureBytes)("msgHash",e),d&&(e=(0,a.ensureBytes)("prehashed msgHash",s(e)));const y=x(e),w=m(t),k=[C(w),C(y)];if(null!=h){const e=!0===h?o(i.BYTES):h;k.push((0,a.ensureBytes)("extraEntropy",e))}const E=f.concatBytes(...k),S=y;return{seed:E,k2sig:function(e){const t=O(e);if(!v(t))return;const n=b(t),r=g.BASE.multiply(t).toAffine(),f=p(r.x);if(f===l)return;const a=p(n*p(S+f*w));if(a===l)return;let s=(r.x===f?0:2)|Number(r.y&c),i=a;return u&&A(a)&&(i=function(e){return A(e)?p(-e):e}(a),s^=1),new P(f,i,s)}}}(e,t,r),u=n;return f.createHmacDrbg(u.hash.outputLen,u.nByteLength,u.hmac)(s,o)},verify:function(e,r,f,s=R){const i=e;if(r=(0,a.ensureBytes)("msgHash",r),f=(0,a.ensureBytes)("publicKey",f),"strict"in s)throw new Error("options.strict was renamed to lowS");const{lowS:o,prehash:l}=s;let c,u;try{if("string"==typeof i||i instanceof Uint8Array)try{c=P.fromDER(i)}catch(e){if(!(e instanceof t.DER.Err))throw e;c=P.fromCompact(i)}else{if("object"!=typeof i||"bigint"!=typeof i.r||"bigint"!=typeof i.s)throw new Error("PARSE");{const{r:e,s:t}=i;c=new P(e,t)}}u=g.fromHex(f)}catch(e){if("PARSE"===e.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(o&&c.hasHighS())return!1;l&&(r=n.hash(r));const{r:d,s:h}=c,m=x(r),y=b(h),v=p(m*y),w=p(d*y),A=g.BASE.multiplyAndAddUnsafe(u,v,w)?.toAffine();return!!A&&p(A.x)===d},ProjectivePoint:g,Signature:P,utils:E}},t.SWUFpSqrtRatio=b,t.mapToCurveSimpleSWU=function(e,t){if(r.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const n=b(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return r=>{let f,a,s,i,o,l,c,u;f=e.sqr(r),f=e.mul(f,t.Z),a=e.sqr(f),a=e.add(a,f),s=e.add(a,e.ONE),s=e.mul(s,t.B),i=e.cmov(t.Z,e.neg(a),!e.eql(a,e.ZERO)),i=e.mul(i,t.A),a=e.sqr(s),l=e.sqr(i),o=e.mul(l,t.A),a=e.add(a,o),a=e.mul(a,s),l=e.mul(l,i),o=e.mul(l,t.B),a=e.add(a,o),c=e.mul(f,s);const{isValid:d,value:p}=n(a,l);u=e.mul(f,r),u=e.mul(u,p),c=e.cmov(c,s,d),u=e.cmov(u,p,d);const h=e.isOdd(r)===e.isOdd(u);return u=e.cmov(e.neg(u),u,h),c=e.div(c,i),{x:c,y:u}}}},985:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;const r=n(6978),f=n(4224),a=n(5646),s=n(7292),i=n(8421),o=n(2124),l=n(7749),c=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),u=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),d=BigInt(1),p=BigInt(2),h=(e,t)=>(e+t/p)/t;function b(e){const t=c,n=BigInt(3),r=BigInt(6),f=BigInt(11),s=BigInt(22),i=BigInt(23),o=BigInt(44),l=BigInt(88),u=e*e*e%t,d=u*u*e%t,h=(0,a.pow2)(d,n,t)*d%t,b=(0,a.pow2)(h,n,t)*d%t,m=(0,a.pow2)(b,p,t)*u%t,y=(0,a.pow2)(m,f,t)*m%t,v=(0,a.pow2)(y,s,t)*y%t,w=(0,a.pow2)(v,o,t)*v%t,A=(0,a.pow2)(w,l,t)*w%t,k=(0,a.pow2)(A,o,t)*v%t,P=(0,a.pow2)(k,n,t)*d%t,E=(0,a.pow2)(P,i,t)*y%t,S=(0,a.pow2)(E,r,t)*u%t,O=(0,a.pow2)(S,p,t);if(!g.eql(g.sqr(O),e))throw new Error("Cannot find square root");return O}const g=(0,a.Field)(c,void 0,void 0,{sqrt:b});t.secp256k1=(0,l.createCurve)({a:BigInt(0),b:BigInt(7),Fp:g,n:u,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=u,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-d*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),f=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=n,i=BigInt("0x100000000000000000000000000000000"),o=h(s*e,t),l=h(-r*e,t);let c=(0,a.mod)(e-o*n-l*f,t),p=(0,a.mod)(-o*r-l*s,t);const b=c>i,g=p>i;if(b&&(c=t-c),g&&(p=t-p),c>i||p>i)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:b,k1:c,k2neg:g,k2:p}}}},r.sha256);const m=BigInt(0),y=e=>"bigint"==typeof e&&me.charCodeAt(0))));n=(0,i.concatBytes)(t,t),v[e]=n}return(0,r.sha256)((0,i.concatBytes)(n,...t))}const A=e=>e.toRawBytes(!0).slice(1),k=e=>(0,i.numberToBytesBE)(e,32),P=e=>(0,a.mod)(e,c),E=e=>(0,a.mod)(e,u),S=t.secp256k1.ProjectivePoint;function O(e){let n=t.secp256k1.utils.normPrivateKeyToScalar(e),r=S.fromPrivateKey(n);return{scalar:r.hasEvenY()?n:E(-n),bytes:A(r)}}function x(e){if(!y(e))throw new Error("bad x: need 0 < x < p");const t=P(e*e);let n=b(P(t*e+BigInt(7)));n%p!==m&&(n=P(-n));const r=new S(e,n,d);return r.assertValidity(),r}function T(...e){return E((0,i.bytesToNumberBE)(w("BIP0340/challenge",...e)))}function C(e,t,n){const r=(0,i.ensureBytes)("signature",e,64),f=(0,i.ensureBytes)("message",t),a=(0,i.ensureBytes)("publicKey",n,32);try{const e=x((0,i.bytesToNumberBE)(a)),t=(0,i.bytesToNumberBE)(r.subarray(0,32));if(!y(t))return!1;const n=(0,i.bytesToNumberBE)(r.subarray(32,64));if(!("bigint"==typeof(c=n)&&m(0,o.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((e=>e.map((e=>BigInt(e)))))))(),R=(()=>(0,s.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}))(),B=(()=>(0,o.createHasher)(t.secp256k1.ProjectivePoint,(e=>{const{x:t,y:n}=R(g.create(e[0]));return N(t,n)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:r.sha256}))();t.hashToCurve=B.hashToCurve,t.encodeToCurve=B.encodeToCurve},7302:(e,t)=>{function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function r(e){if("boolean"!=typeof e)throw new Error(`Expected boolean, not ${e}`)}function f(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function a(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function s(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function i(e,t){f(e);const n=t.outputLen;if(e.length{Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const r=n(7302),f=n(4224);class a extends f.Hash{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,f.createView)(this.buffer)}update(e){(0,r.exists)(this);const{view:t,buffer:n,blockLen:a}=this,s=(e=(0,f.toBytes)(e)).length;for(let r=0;ra-i&&(this.process(n,0),i=0);for(let e=i;e>f&a),i=Number(n&a),o=r?4:0,l=r?0:4;e.setUint32(t+o,s,r),e.setUint32(t+l,i,r)}(n,a-8,BigInt(8*this.length),s),this.process(n,0);const o=(0,f.createView)(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=l/4,u=this.get();if(c>u.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;const n=BigInt(2**32-1),r=BigInt(32);function f(e,t=!1){return t?{h:Number(e&n),l:Number(e>>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}function a(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let a=0;aBigInt(e>>>0)<>>0);t.toBig=s;const i=(e,t,n)=>e>>>n;t.shrSH=i;const o=(e,t,n)=>e<<32-n|t>>>n;t.shrSL=o;const l=(e,t,n)=>e>>>n|t<<32-n;t.rotrSH=l;const c=(e,t,n)=>e<<32-n|t>>>n;t.rotrSL=c;const u=(e,t,n)=>e<<64-n|t>>>n-32;t.rotrBH=u;const d=(e,t,n)=>e>>>n-32|t<<64-n;t.rotrBL=d;const p=(e,t)=>t;t.rotr32H=p;const h=(e,t)=>e;t.rotr32L=h;const b=(e,t,n)=>e<>>32-n;t.rotlSH=b;const g=(e,t,n)=>t<>>32-n;t.rotlSL=g;const m=(e,t,n)=>t<>>64-n;t.rotlBH=m;const y=(e,t,n)=>e<>>64-n;function v(e,t,n,r){const f=(t>>>0)+(r>>>0);return{h:e+n+(f/2**32|0)|0,l:0|f}}t.rotlBL=y,t.add=v;const w=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);t.add3L=w;const A=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;t.add3H=A;const k=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);t.add4L=k;const P=(e,t,n,r,f)=>t+n+r+f+(e/2**32|0)|0;t.add4H=P;const E=(e,t,n,r,f)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(f>>>0);t.add5L=E;const S=(e,t,n,r,f,a)=>t+n+r+f+a+(e/2**32|0)|0;t.add5H=S;const O={fromBig:f,split:a,toBig:s,shrSH:i,shrSL:o,rotrSH:l,rotrSL:c,rotrBH:u,rotrBL:d,rotr32H:p,rotr32L:h,rotlSH:b,rotlSL:g,rotlBH:m,rotlBL:y,add:v,add3L:w,add3H:A,add4L:k,add4H:P,add5H:S,add5L:E};t.default=O},1760:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},4542:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const r=n(7302),f=n(4224);class a extends f.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,r.hash)(e);const n=(0,f.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,s=new Uint8Array(a);s.set(n.length>a?e.create().update(n).digest():n);for(let e=0;enew a(e,t).update(n).digest(),t.hmac.create=(e,t)=>new a(e,t)},9e3:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const r=n(7302),f=n(4542),a=n(4224);function s(e,t,n,s){(0,r.hash)(e);const i=(0,a.checkOpts)({dkLen:32,asyncTick:10},s),{c:o,dkLen:l,asyncTick:c}=i;if((0,r.number)(o),(0,r.number)(l),(0,r.number)(c),o<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const u=(0,a.toBytes)(t),d=(0,a.toBytes)(n),p=new Uint8Array(l),h=f.hmac.create(e,u),b=h._cloneInto().update(d);return{c:o,dkLen:l,asyncTick:c,DK:p,PRF:h,PRFSalt:b}}function i(e,t,n,r,f){return e.destroy(),t.destroy(),r&&r.destroy(),f.fill(0),n}t.pbkdf2=function(e,t,n,r){const{c:f,dkLen:o,DK:l,PRF:c,PRFSalt:u}=s(e,t,n,r);let d;const p=new Uint8Array(4),h=(0,a.createView)(p),b=new Uint8Array(c.outputLen);for(let e=1,t=0;t{u._cloneInto(p).update(g).digestInto(g);for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;const r=n(5184),f=n(4224),a=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),s=Uint8Array.from({length:16},((e,t)=>t));let i=[s],o=[s.map((e=>(9*e+5)%16))];for(let e=0;e<4;e++)for(let t of[i,o])t.push(t[e].map((e=>a[e])));const l=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map((e=>new Uint8Array(e))),c=i.map(((e,t)=>e.map((e=>l[t][e])))),u=o.map(((e,t)=>e.map((e=>l[t][e])))),d=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),p=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),h=(e,t)=>e<>>32-t;function b(e,t,n,r){return 0===e?t^n^r:1===e?t&n|~t&r:2===e?(t|~n)^r:3===e?t&r|n&~r:t^(n|~r)}const g=new Uint32Array(16);class m extends r.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:n,h3:r,h4:f}=this;return[e,t,n,r,f]}set(e,t,n,r,f){this.h0=0|e,this.h1=0|t,this.h2=0|n,this.h3=0|r,this.h4=0|f}process(e,t){for(let n=0;n<16;n++,t+=4)g[n]=e.getUint32(t,!0);let n=0|this.h0,r=n,f=0|this.h1,a=f,s=0|this.h2,l=s,m=0|this.h3,y=m,v=0|this.h4,w=v;for(let e=0;e<5;e++){const t=4-e,A=d[e],k=p[e],P=i[e],E=o[e],S=c[e],O=u[e];for(let t=0;t<16;t++){const r=h(n+b(e,f,s,m)+g[P[t]]+A,S[t])+v|0;n=v,v=m,m=0|h(s,10),s=f,f=r}for(let e=0;e<16;e++){const n=h(r+b(t,a,l,y)+g[E[e]]+k,O[e])+w|0;r=w,w=y,y=0|h(l,10),l=a,a=n}}this.set(this.h1+s+y|0,this.h2+m+w|0,this.h3+v+r|0,this.h4+n+a|0,this.h0+f+l|0)}roundClean(){g.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}t.RIPEMD160=m,t.ripemd160=(0,f.wrapConstructor)((()=>new m))},9462:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.scryptAsync=t.scrypt=void 0;const r=n(7302),f=n(6978),a=n(9e3),s=n(4224),i=(e,t)=>e<>>32-t;function o(e,t,n,r,f,a){let s=e[t++]^n[r++],o=e[t++]^n[r++],l=e[t++]^n[r++],c=e[t++]^n[r++],u=e[t++]^n[r++],d=e[t++]^n[r++],p=e[t++]^n[r++],h=e[t++]^n[r++],b=e[t++]^n[r++],g=e[t++]^n[r++],m=e[t++]^n[r++],y=e[t++]^n[r++],v=e[t++]^n[r++],w=e[t++]^n[r++],A=e[t++]^n[r++],k=e[t++]^n[r++],P=s,E=o,S=l,O=c,x=u,T=d,C=p,N=h,R=b,B=g,I=m,_=y,F=v,L=w,j=A,U=k;for(let e=0;e<8;e+=2)x^=i(P+F|0,7),R^=i(x+P|0,9),F^=i(R+x|0,13),P^=i(F+R|0,18),B^=i(T+E|0,7),L^=i(B+T|0,9),E^=i(L+B|0,13),T^=i(E+L|0,18),j^=i(I+C|0,7),S^=i(j+I|0,9),C^=i(S+j|0,13),I^=i(C+S|0,18),O^=i(U+_|0,7),N^=i(O+U|0,9),_^=i(N+O|0,13),U^=i(_+N|0,18),E^=i(P+O|0,7),S^=i(E+P|0,9),O^=i(S+E|0,13),P^=i(O+S|0,18),C^=i(T+x|0,7),N^=i(C+T|0,9),x^=i(N+C|0,13),T^=i(x+N|0,18),_^=i(I+B|0,7),R^=i(_+I|0,9),B^=i(R+_|0,13),I^=i(B+R|0,18),F^=i(U+j|0,7),L^=i(F+U|0,9),j^=i(L+F|0,13),U^=i(j+L|0,18);f[a++]=s+P|0,f[a++]=o+E|0,f[a++]=l+S|0,f[a++]=c+O|0,f[a++]=u+x|0,f[a++]=d+T|0,f[a++]=p+C|0,f[a++]=h+N|0,f[a++]=b+R|0,f[a++]=g+B|0,f[a++]=m+I|0,f[a++]=y+_|0,f[a++]=v+F|0,f[a++]=w+L|0,f[a++]=A+j|0,f[a++]=k+U|0}function l(e,t,n,r,f){let a=r+0,s=r+16*f;for(let r=0;r<16;r++)n[s+r]=e[t+16*(2*f-1)+r];for(let r=0;r0&&(s+=16),o(n,a,e,t+=16,n,s)}function c(e,t,n){const i=(0,s.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:o,r:l,p:c,dkLen:u,asyncTick:d,maxmem:p,onProgress:h}=i;if((0,r.number)(o),(0,r.number)(l),(0,r.number)(c),(0,r.number)(u),(0,r.number)(d),(0,r.number)(p),void 0!==h&&"function"!=typeof h)throw new Error("progressCb should be function");const b=128*l,g=b/4;if(o<=1||o&o-1||o>=2**(b/8)||o>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(c<0||c>137438953440/b)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(u<0||u>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const m=b*(o+c);if(m>p)throw new Error(`Scrypt: parameters too large, ${m} (128 * r * (N + p)) > ${p} (maxmem)`);const y=(0,a.pbkdf2)(f.sha256,e,t,{c:1,dkLen:b*c}),v=(0,s.u32)(y),w=(0,s.u32)(new Uint8Array(b*o)),A=(0,s.u32)(new Uint8Array(b));let k=()=>{};if(h){const e=2*o*c,t=Math.max(Math.floor(e/1e4),1);let n=0;k=()=>{n++,!h||n%t&&n!==e||h(n/e)}}return{N:o,r:l,p:c,dkLen:u,blockSize32:g,V:w,B32:v,B:y,tmp:A,blockMixCb:k,asyncTick:d}}function u(e,t,n,r,s){const i=(0,a.pbkdf2)(f.sha256,e,n,{c:1,dkLen:t});return n.fill(0),r.fill(0),s.fill(0),i}t.scrypt=function(e,t,n){const{N:r,r:f,p:a,dkLen:s,blockSize32:i,V:o,B32:d,B:p,tmp:h,blockMixCb:b}=c(e,t,n);for(let e=0;e{l(d,n,d,n+=o,f),g()})),l(d,(r-1)*o,p,t,f),g(),await(0,s.asyncLoop)(r,m,(()=>{const e=p[t+o-16]%r;for(let n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const r=n(5184),f=n(4224),a=(e,t,n)=>e&t^e&n^t&n,s=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]),i=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),o=new Uint32Array(64);class l extends r.SHA2{constructor(){super(64,32,8,!1),this.A=0|i[0],this.B=0|i[1],this.C=0|i[2],this.D=0|i[3],this.E=0|i[4],this.F=0|i[5],this.G=0|i[6],this.H=0|i[7]}get(){const{A:e,B:t,C:n,D:r,E:f,F:a,G:s,H:i}=this;return[e,t,n,r,f,a,s,i]}set(e,t,n,r,f,a,s,i){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|f,this.F=0|a,this.G=0|s,this.H=0|i}process(e,t){for(let n=0;n<16;n++,t+=4)o[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=o[e-15],n=o[e-2],r=(0,f.rotr)(t,7)^(0,f.rotr)(t,18)^t>>>3,a=(0,f.rotr)(n,17)^(0,f.rotr)(n,19)^n>>>10;o[e]=a+o[e-7]+r+o[e-16]|0}let{A:n,B:r,C:i,D:l,E:c,F:u,G:d,H:p}=this;for(let e=0;e<64;e++){const t=p+((0,f.rotr)(c,6)^(0,f.rotr)(c,11)^(0,f.rotr)(c,25))+((h=c)&u^~h&d)+s[e]+o[e]|0,b=((0,f.rotr)(n,2)^(0,f.rotr)(n,13)^(0,f.rotr)(n,22))+a(n,r,i)|0;p=d,d=u,u=c,c=l+t|0,l=i,i=r,r=n,n=t+b|0}var h;n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,l=l+this.D|0,c=c+this.E|0,u=u+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(n,r,i,l,c,u,d,p)}roundClean(){o.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class c extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,f.wrapConstructor)((()=>new l)),t.sha224=(0,f.wrapConstructor)((()=>new c))},6534:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const r=n(7302),f=n(9975),a=n(4224),[s,i,o]=[[],[],[]],l=BigInt(0),c=BigInt(1),u=BigInt(2),d=BigInt(7),p=BigInt(256),h=BigInt(113);for(let e=0,t=c,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],s.push(2*(5*r+n)),i.push((e+1)*(e+2)/2%64);let f=l;for(let e=0;e<7;e++)t=(t<>d)*h)%p,t&u&&(f^=c<<(c<n>32?(0,f.rotlBH)(e,t,n):(0,f.rotlSH)(e,t,n),y=(e,t,n)=>n>32?(0,f.rotlBL)(e,t,n):(0,f.rotlSL)(e,t,n);function v(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const r=(t+8)%10,f=(t+2)%10,a=n[f],s=n[f+1],i=m(a,s,1)^n[r],o=y(a,s,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=i,e[t+n+1]^=o}let t=e[2],f=e[3];for(let n=0;n<24;n++){const r=i[n],a=m(t,f,r),o=y(t,f,r),l=s[n];t=e[l],f=e[l+1],e[l]=a,e[l+1]=o}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=b[r],e[1]^=g[r]}n.fill(0)}t.keccakP=v;class w extends a.Hash{constructor(e,t,n,f=!1,s=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=f,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,r.number)(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,a.u32)(this.state)}keccak(){v(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,r.exists)(this);const{blockLen:t,state:n}=this,f=(e=(0,a.toBytes)(e)).length;for(let r=0;r=n&&this.keccak();const a=Math.min(n-this.posOut,f-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,r.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,r.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:f,enableXOF:a}=this;return e||(e=new w(t,n,r,a,f)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=f,e.suffix=n,e.outputLen=r,e.enableXOF=a,e.destroyed=this.destroyed,e}}t.Keccak=w;const A=(e,t,n)=>(0,a.wrapConstructor)((()=>new w(t,e,n)));t.sha3_224=A(6,144,28),t.sha3_256=A(6,136,32),t.sha3_384=A(6,104,48),t.sha3_512=A(6,72,64),t.keccak_224=A(1,144,28),t.keccak_256=A(1,136,32),t.keccak_384=A(1,104,48),t.keccak_512=A(1,72,64);const k=(e,t,n)=>(0,a.wrapXOFConstructorWithOpts)(((r={})=>new w(t,e,void 0===r.dkLen?n:r.dkLen,!0)));t.shake128=k(31,168,16),t.shake256=k(31,136,32)},9483:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const r=n(5184),f=n(9975),a=n(4224),[s,i]=(()=>f.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))))(),o=new Uint32Array(80),l=new Uint32Array(80);class c extends r.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:f,Cl:a,Dh:s,Dl:i,Eh:o,El:l,Fh:c,Fl:u,Gh:d,Gl:p,Hh:h,Hl:b}=this;return[e,t,n,r,f,a,s,i,o,l,c,u,d,p,h,b]}set(e,t,n,r,f,a,s,i,o,l,c,u,d,p,h,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|f,this.Cl=0|a,this.Dh=0|s,this.Dl=0|i,this.Eh=0|o,this.El=0|l,this.Fh=0|c,this.Fl=0|u,this.Gh=0|d,this.Gl=0|p,this.Hh=0|h,this.Hl=0|b}process(e,t){for(let n=0;n<16;n++,t+=4)o[n]=e.getUint32(t),l[n]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|o[e-15],n=0|l[e-15],r=f.default.rotrSH(t,n,1)^f.default.rotrSH(t,n,8)^f.default.shrSH(t,n,7),a=f.default.rotrSL(t,n,1)^f.default.rotrSL(t,n,8)^f.default.shrSL(t,n,7),s=0|o[e-2],i=0|l[e-2],c=f.default.rotrSH(s,i,19)^f.default.rotrBH(s,i,61)^f.default.shrSH(s,i,6),u=f.default.rotrSL(s,i,19)^f.default.rotrBL(s,i,61)^f.default.shrSL(s,i,6),d=f.default.add4L(a,u,l[e-7],l[e-16]),p=f.default.add4H(d,r,c,o[e-7],o[e-16]);o[e]=0|p,l[e]=0|d}let{Ah:n,Al:r,Bh:a,Bl:c,Ch:u,Cl:d,Dh:p,Dl:h,Eh:b,El:g,Fh:m,Fl:y,Gh:v,Gl:w,Hh:A,Hl:k}=this;for(let e=0;e<80;e++){const t=f.default.rotrSH(b,g,14)^f.default.rotrSH(b,g,18)^f.default.rotrBH(b,g,41),P=f.default.rotrSL(b,g,14)^f.default.rotrSL(b,g,18)^f.default.rotrBL(b,g,41),E=b&m^~b&v,S=g&y^~g&w,O=f.default.add5L(k,P,S,i[e],l[e]),x=f.default.add5H(O,A,t,E,s[e],o[e]),T=0|O,C=f.default.rotrSH(n,r,28)^f.default.rotrBH(n,r,34)^f.default.rotrBH(n,r,39),N=f.default.rotrSL(n,r,28)^f.default.rotrBL(n,r,34)^f.default.rotrBL(n,r,39),R=n&a^n&u^a&u,B=r&c^r&d^c&d;A=0|v,k=0|w,v=0|m,w=0|y,m=0|b,y=0|g,({h:b,l:g}=f.default.add(0|p,0|h,0|x,0|T)),p=0|u,h=0|d,u=0|a,d=0|c,a=0|n,c=0|r;const I=f.default.add3L(T,N,B);n=f.default.add3H(I,x,C,R),r=0|I}({h:n,l:r}=f.default.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:a,l:c}=f.default.add(0|this.Bh,0|this.Bl,0|a,0|c)),({h:u,l:d}=f.default.add(0|this.Ch,0|this.Cl,0|u,0|d)),({h:p,l:h}=f.default.add(0|this.Dh,0|this.Dl,0|p,0|h)),({h:b,l:g}=f.default.add(0|this.Eh,0|this.El,0|b,0|g)),({h:m,l:y}=f.default.add(0|this.Fh,0|this.Fl,0|m,0|y)),({h:v,l:w}=f.default.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:A,l:k}=f.default.add(0|this.Hh,0|this.Hl,0|A,0|k)),this.set(n,r,a,c,u,d,p,h,b,g,m,y,v,w,A,k)}roundClean(){o.fill(0),l.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=c;class u extends c{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class d extends c{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class p extends c{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.sha512=(0,a.wrapConstructor)((()=>new c)),t.sha512_224=(0,a.wrapConstructor)((()=>new u)),t.sha512_256=(0,a.wrapConstructor)((()=>new d)),t.sha384=(0,a.wrapConstructor)((()=>new p))},4224:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const r=n(1760),f=e=>e instanceof Uint8Array;if(t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const a=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function i(e){if("string"==typeof e&&(e=s(e)),!f(e))throw new Error("expected Uint8Array, got "+typeof e);return e}t.bytesToHex=function(e){if(!f(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n{},t.asyncLoop=async function(e,n,r){let f=Date.now();for(let a=0;a=0&&ee+t.length),0));let n=0;return e.forEach((e=>{if(!f(e))throw new Error("Uint8Array expected");t.set(e,n),n+=e.length})),t},t.Hash=class{clone(){return this._cloneInto()}};const o={}.toString;t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==o.call(t))throw new Error("Options should be object or undefined");return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(i(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(i(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(i(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},1247:(e,t,n)=>{var r=n(9982),f=n(6540),a=n(961);function s(e){var t="https://react.dev/errors/"+e;if(1)":-1--f||o[r]!==l[f]){var c="\n"+o[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}}while(1<=r&&0<=f);break}}}finally{I=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?B(n):""}function F(e){switch(e.tag){case 26:case 27:case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 15:return _(e.type,!1);case 11:return _(e.type.render,!1);case 1:return _(e.type,!0);default:return""}}function L(e){try{var t="";do{t+=F(e),e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function j(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function U(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function M(e){if(j(e)!==e)throw Error(s(188))}function D(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=D(e)))return t;e=e.sibling}return null}var z=Array.isArray,H=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},V=[],K=-1;function q(e){return{current:e}}function Q(e){0>K||(e.current=V[K],V[K]=null,K--)}function J(e,t){K++,V[K]=e.current,e.current=t}var W=q(null),$=q(null),Z=q(null),Y=q(null);function X(e,t){switch(J(Z,t),J($,e),J(W,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Zc(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=Yc(e=Zc(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(W),J(W,t)}function ee(){Q(W),Q($),Q(Z)}function te(e){null!==e.memoizedState&&J(Y,e);var t=W.current,n=Yc(t,e.type);t!==n&&(J($,e),J(W,n))}function ne(e){$.current===e&&(Q(W),Q($)),Y.current===e&&(Q(Y),ju._currentValue=G)}var re=Object.prototype.hasOwnProperty,fe=r.unstable_scheduleCallback,ae=r.unstable_cancelCallback,se=r.unstable_shouldYield,ie=r.unstable_requestPaint,oe=r.unstable_now,le=r.unstable_getCurrentPriorityLevel,ce=r.unstable_ImmediatePriority,ue=r.unstable_UserBlockingPriority,de=r.unstable_NormalPriority,pe=r.unstable_LowPriority,he=r.unstable_IdlePriority,be=r.log,ge=r.unstable_setDisableYieldValue,me=null,ye=null;function ve(e){if("function"==typeof be&&ge(e),ye&&"function"==typeof ye.setStrictMode)try{ye.setStrictMode(me,e)}catch(e){}}var we=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(Ae(e)/ke|0)|0},Ae=Math.log,ke=Math.LN2,Pe=128,Ee=4194304;function Se(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Oe(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,f=e.suspendedLanes,a=e.pingedLanes,s=e.warmLanes;e=0!==e.finishedLanes;var i=134217727&n;return 0!==i?0!=(n=i&~f)?r=Se(n):0!=(a&=i)?r=Se(a):e||0!=(s=i&~s)&&(r=Se(s)):0!=(i=n&~f)?r=Se(i):0!==a?r=Se(a):e||0!=(s=n&~s)&&(r=Se(s)),0===r?0:0===t||t===r||t&f||!((f=r&-r)>=(s=t&-t)||32===f&&4194176&s)?r:t}function xe(e,t){return!(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Te(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ce(){var e=Pe;return!(4194176&(Pe<<=1))&&(Pe=128),e}function Ne(){var e=Ee;return!(62914560&(Ee<<=1))&&(Ee=4194304),e}function Re(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Be(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ie(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-we(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function _e(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-we(n),f=1<=kn),Sn=String.fromCharCode(32),On=!1;function xn(e,t){switch(e){case"keyup":return-1!==wn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Cn=!1,Nn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Rn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Nn[e.type]:"textarea"===t}function Bn(e,t,n,r){Bt?It?It.push(r):It=[r]:Bt=r,0<(t=jc(t,"onChange")).length&&(n=new Yt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var In=null,_n=null;function Fn(e){Cc(e,0)}function Ln(e){if(dt(We(e)))return e}function jn(e,t){if("change"===e)return t}var Un=!1;if(nt){var Mn;if(nt){var Dn="oninput"in document;if(!Dn){var zn=document.createElement("div");zn.setAttribute("oninput","return;"),Dn="function"==typeof zn.oninput}Mn=Dn}else Mn=!1;Un=Mn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=$n(r)}}function Yn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Yn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Xn(e){for(var t=pt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=pt((e=t.contentWindow).document)}return t}function er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function tr(e,t){var n=Xn(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Yn(t.ownerDocument.documentElement,t)){if(null!==r&&er(t))if(e=r.start,void 0===(n=r.end)&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if((n=(e=t.ownerDocument||document)&&e.defaultView||window).getSelection){n=n.getSelection();var f=t.textContent.length,a=Math.min(r.start,f);r=void 0===r.end?a:Math.min(r.end,f),!n.extend&&a>r&&(f=r,r=a,a=f),f=Zn(t,a);var s=Zn(t,r);f&&s&&(1!==n.rangeCount||n.anchorNode!==f.node||n.anchorOffset!==f.offset||n.focusNode!==s.node||n.focusOffset!==s.offset)&&((e=e.createRange()).setStart(f.node,f.offset),n.removeAllRanges(),a>r?(n.addRange(e),n.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),n.addRange(e)))}for(e=[],n=t;n=n.parentNode;)1===n.nodeType&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for("function"==typeof t.focus&&t.focus(),t=0;t=document.documentMode,rr=null,fr=null,ar=null,sr=!1;function ir(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sr||null==rr||rr!==pt(r)||(r="selectionStart"in(r=rr)&&er(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ar&&Wn(ar,r)||(ar=r,0<(r=jc(fr,"onSelect")).length&&(t=new Yt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rr)))}function or(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var lr={animationend:or("Animation","AnimationEnd"),animationiteration:or("Animation","AnimationIteration"),animationstart:or("Animation","AnimationStart"),transitionrun:or("Transition","TransitionRun"),transitionstart:or("Transition","TransitionStart"),transitioncancel:or("Transition","TransitionCancel"),transitionend:or("Transition","TransitionEnd")},cr={},ur={};function dr(e){if(cr[e])return cr[e];if(!lr[e])return e;var t,n=lr[e];for(t in n)if(n.hasOwnProperty(t)&&t in ur)return cr[e]=n[t];return e}nt&&(ur=document.createElement("div").style,"AnimationEvent"in window||(delete lr.animationend.animation,delete lr.animationiteration.animation,delete lr.animationstart.animation),"TransitionEvent"in window||delete lr.transitionend.transition);var pr=dr("animationend"),hr=dr("animationiteration"),br=dr("animationstart"),gr=dr("transitionrun"),mr=dr("transitionstart"),yr=dr("transitioncancel"),vr=dr("transitionend"),wr=new Map,Ar="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function kr(e,t){wr.set(e,t),et(t,[e])}var Pr=[],Er=0,Sr=0;function Or(){for(var e=Er,t=Sr=Er=0;t>=s,f-=s,Hr=1<<32-we(t)+f|n<d?(p=u,u=null):p=u.sibling;var h=m(f,u,i[d],o);if(null===h){null===u&&(u=p);break}e&&u&&null===h.alternate&&t(f,u),s=a(h,s,d),null===c?l=h:c.sibling=h,c=h,u=p}if(d===i.length)return n(f,u),$r&&Vr(f,d),l;if(null===u){for(;dp?(h=d,d=null):h=d.sibling;var v=m(f,d,g.value,l);if(null===v){null===d&&(d=h);break}e&&d&&null===v.alternate&&t(f,d),i=a(v,i,p),null===u?c=v:u.sibling=v,u=v,d=h}if(g.done)return n(f,d),$r&&Vr(f,p),c;if(null===d){for(;!g.done;p++,g=o.next())null!==(g=b(f,g.value,l))&&(i=a(g,i,p),null===u?c=g:u.sibling=g,u=g);return $r&&Vr(f,p),c}for(d=r(d);!g.done;p++,g=o.next())null!==(g=y(d,f,p,g.value,l))&&(e&&null!==g.alternate&&d.delete(null===g.key?p:g.key),i=a(g,i,p),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(f,e)})),$r&&Vr(f,p),c}(o,d,p=w.call(p),h)}if("function"==typeof p.then)return v(o,d,mf(p),h);if(p.$$typeof===g)return v(o,d,Oi(o,p),h);vf(o,p)}return"string"==typeof p&&""!==p||"number"==typeof p||"bigint"==typeof p?(p=""+p,null!==d&&6===d.tag?(n(o,d.sibling),(h=f(d,p)).return=o,o=h):(n(o,d),(h=Go(p,o.mode,h)).return=o,o=h),i(o)):n(o,d)}return function(e,t,n,r){try{gf=0;var f=v(e,t,n,r);return bf=null,f}catch(t){if(t===sf)throw t;var a=Lo(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var kf=Af(!0),Pf=Af(!1),Ef=q(null),Sf=q(0);function Of(e,t){J(Sf,e=cl),J(Ef,t),cl=e|t.baseLanes}function xf(){J(Sf,cl),J(Ef,Ef.current)}function Tf(){cl=Sf.current,Q(Ef),Q(Sf)}var Cf=q(null),Nf=null;function Rf(e){var t=e.alternate;J(Ff,1&Ff.current),J(Cf,e),null===Nf&&(null===t||null!==Ef.current||null!==t.memoizedState)&&(Nf=e)}function Bf(e){if(22===e.tag){if(J(Ff,Ff.current),J(Cf,e),null===Nf){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Nf=e)}}else If()}function If(){J(Ff,Ff.current),J(Cf,Cf.current)}function _f(e){Q(Cf),Nf===e&&(Nf=null),Q(Ff)}var Ff=q(0);function Lf(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jf="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach((function(e){return e()}))}},Uf=r.unstable_scheduleCallback,Mf=r.unstable_NormalPriority,Df={$$typeof:g,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zf(){return{controller:new jf,data:new Map,refCount:0}}function Hf(e){e.refCount--,0===e.refCount&&Uf(Mf,(function(){e.controller.abort()}))}var Gf=null,Vf=0,Kf=0,qf=null;function Qf(){if(0==--Vf&&null!==Gf){null!==qf&&(qf.status="fulfilled");var e=Gf;Gf=null,Kf=0,qf=null;for(var t=0;ta?a:8;var s,i,o,l=N.T,c={};N.T=c,As(e,!1,t,n);try{var u=f(),d=N.S;null!==d&&d(c,u),null!==u&&"object"==typeof u&&"function"==typeof u.then?ws(e,t,(s=r,i=[],o={status:"pending",value:null,reason:null,then:function(e){i.push(e)}},u.then((function(){o.status="fulfilled",o.value=s;for(var e=0;e title"))),Qc(a,r,n),a[Ue]=e,Ze(a),r=a;break e;case"link":var i=Tu("link","href",f).get(r+(n.href||""));if(i)for(var o=0;o<\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?f.createElement("select",{is:r.is}):f.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?f.createElement(n,{is:r.is}):f.createElement(n)}}e[Ue]=t,e[Me]=r;e:for(f=t.child;null!==f;){if(5===f.tag||6===f.tag)e.appendChild(f.stateNode);else if(4!==f.tag&&27!==f.tag&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;null===f.sibling;){if(null===f.return||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=e;e:switch(Qc(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Ko(t)}}return Wo(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&Ko(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));if(e=Z.current,rf(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(f=Jr))switch(f.tag){case 27:case 5:r=f.memoizedProps}e[Ue]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||Gc(e.nodeValue,n)))||ef(t)}else(e=$c(e).createTextNode(r))[Ue]=t,t.stateNode=e}return Wo(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(f=rf(t),null!==r&&null!==r.dehydrated){if(null===e){if(!f)throw Error(s(318));if(!(f=null!==(f=t.memoizedState)?f.dehydrated:null))throw Error(s(317));f[Ue]=t}else ff(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Wo(t),f=!1}else null!==Zr&&(Fl(Zr),Zr=null),f=!0;if(!f)return 256&t.flags?(_f(t),t):(_f(t),null)}if(_f(t),128&t.flags)return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){f=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(f=r.alternate.memoizedState.cachePool.pool);var a=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==f&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Qo(t,t.updateQueue),Wo(t),null;case 4:return ee(),null===e&&Ic(t.stateNode.containerInfo),Wo(t),null;case 10:return vi(t.type),Wo(t),null;case 19:if(Q(Ff),null===(f=t.memoizedState))return Wo(t),null;if(r=!!(128&t.flags),null===(a=f.rendering))if(r)Jo(f,!1);else{if(0!==ul||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=Lf(e))){for(t.flags|=128,Jo(f,!1),e=a.updateQueue,t.updateQueue=e,Qo(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Mo(n,e),n=n.sibling;return J(Ff,1&Ff.current|2),t.child}e=e.sibling}null!==f.tail&&oe()>Al&&(t.flags|=128,r=!0,Jo(f,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Lf(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Qo(t,e),Jo(f,!0),null===f.tail&&"hidden"===f.tailMode&&!a.alternate&&!$r)return Wo(t),null}else 2*oe()-f.renderingStartTime>Al&&536870912!==n&&(t.flags|=128,r=!0,Jo(f,!1),t.lanes=4194304);f.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=f.last)?e.sibling=a:t.child=a,f.last=a)}return null!==f.tail?(t=f.tail,f.rendering=t,f.tail=t.sibling,f.renderingStartTime=oe(),t.sibling=null,e=Ff.current,J(Ff,r?1&e|2:1&e),t):(Wo(t),null);case 22:case 23:return _f(t),Tf(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(Wo(t),6&t.subtreeFlags&&(t.flags|=8192)):Wo(t),null!==(n=t.updateQueue)&&Qo(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&Q(Wf),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),vi(Df),Wo(t),null;case 25:return null}throw Error(s(156,t.tag))}function Zo(e,t){switch(Qr(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return vi(Df),ee(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ne(t),null;case 13:if(_f(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(s(340));ff()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Q(Ff),null;case 4:return ee(),null;case 10:return vi(t.type),null;case 22:case 23:return _f(t),Tf(),null!==e&&Q(Wf),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return vi(Df),null;default:return null}}function Yo(e,t){switch(Qr(t),t.tag){case 3:vi(Df),ee();break;case 26:case 27:case 5:ne(t);break;case 4:ee();break;case 13:_f(t);break;case 19:Q(Ff);break;case 10:vi(t.type);break;case 22:case 23:_f(t),Tf(),null!==e&&Q(Wf);break;case 24:vi(Df)}}var Xo={getCacheForType:function(e){var t=Si(Df),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},el="function"==typeof WeakMap?WeakMap:Map,tl=0,nl=null,rl=null,fl=0,al=0,sl=null,il=!1,ol=!1,ll=!1,cl=0,ul=0,dl=0,pl=0,hl=0,bl=0,gl=0,ml=null,yl=null,vl=!1,wl=0,Al=1/0,kl=null,Pl=null,El=!1,Sl=null,Ol=0,xl=0,Tl=null,Cl=0,Nl=null;function Rl(){return 2&tl&&0!==fl?fl&-fl:null!==N.T?0!==Kf?Kf:kc():Le()}function Bl(){0===bl&&(bl=536870912&fl&&!$r?536870912:Ce());var e=Cf.current;return null!==e&&(e.flags|=32),bl}function Il(e,t,n){(e===nl&&2===al||null!==e.cancelPendingCommit)&&(zl(e,0),Ul(e,fl,bl,!1)),Be(e,n),2&tl&&e===nl||(e===nl&&(!(2&tl)&&(pl|=n),4===ul&&Ul(e,fl,bl,!1)),gc(e))}function _l(e,t,n){if(6&tl)throw Error(s(327));for(var r=!n&&!(60&t)&&!(t&e.expiredLanes)||xe(e,t),f=r?function(e,t){var n=tl;tl|=2;var r=Gl(),f=Vl();nl!==e||fl!==t?(kl=null,Al=oe()+500,zl(e,t)):ol=xe(e,t);e:for(;;)try{if(0!==al&&null!==rl){t=rl;var a=sl;t:switch(al){case 1:al=0,sl=null,Zl(e,t,a,1);break;case 2:if(cf(a)){al=0,sl=null,$l(t);break}t=function(){2===al&&nl===e&&(al=7),gc(e)},a.then(t,t);break e;case 3:al=7;break e;case 4:al=5;break e;case 7:cf(a)?(al=0,sl=null,$l(t)):(al=0,sl=null,Zl(e,t,a,7));break;case 5:var i=null;switch(rl.tag){case 26:i=rl.memoizedState;case 5:case 27:var o=rl;if(!i||Nu(i)){al=0,sl=null;var l=o.sibling;if(null!==l)rl=l;else{var c=o.return;null!==c?(rl=c,Yl(c)):rl=null}break t}}al=0,sl=null,Zl(e,t,a,5);break;case 6:al=0,sl=null,Zl(e,t,a,6);break;case 8:Dl(),ul=6;break e;default:throw Error(s(462))}}Jl();break}catch(t){Hl(e,t)}return mi=gi=null,N.H=r,N.A=f,tl=n,null!==rl?0:(nl=null,fl=0,Or(),ul)}(e,t):ql(e,t,!0),a=r;;){if(0===f){ol&&!r&&Ul(e,t,0,!1);break}if(6===f)Ul(e,t,0,!il);else{if(n=e.current.alternate,a&&!jl(n)){f=ql(e,t,!1),a=!1;continue}if(2===f){if(a=t,e.errorRecoveryDisabledLanes&a)var i=0;else i=0!=(i=-536870913&e.pendingLanes)?i:536870912&i?536870912:0;if(0!==i){t=i;e:{var o=e;f=ml;var l=o.current.memoizedState.isDehydrated;if(l&&(zl(o,i).flags|=256),2!==(i=ql(o,i,!1))){if(ll&&!l){o.errorRecoveryDisabledLanes|=a,pl|=a,f=4;break e}a=yl,yl=f,null!==a&&Fl(a)}f=i}if(a=!1,2!==f)continue}}if(1===f){zl(e,0),Ul(e,t,0,!0);break}e:{switch(r=e,f){case 0:case 1:throw Error(s(345));case 4:if((4194176&t)===t){Ul(r,t,bl,!il);break e}break;case 2:yl=null;break;case 3:case 5:break;default:throw Error(s(329))}if(r.finishedWork=n,r.finishedLanes=t,(62914560&t)===t&&10<(a=wl+300-oe())){if(Ul(r,t,bl,!il),0!==Oe(r,0))break e;r.timeoutHandle=tu(Ll.bind(null,r,n,yl,kl,vl,t,bl,pl,gl,il,2,-0,0),a)}else Ll(r,n,yl,kl,vl,t,bl,pl,gl,il,0,-0,0)}}break}gc(e)}function Fl(e){null===yl?yl=e:yl.push.apply(yl,e)}function Ll(e,t,n,r,f,a,i,o,l,c,u,d,p){var h=t.subtreeFlags;if((8192&h||!(16785408&~h))&&(Ru={stylesheets:null,count:0,unsuspend:Bu},Co(t),null!==(t=function(){if(null===Ru)throw Error(s(475));var e=Ru;return e.stylesheets&&0===e.count&&Fu(e,e.stylesheets),0n?32:n,N.T=null,null===Sl)var a=!1;else{n=Tl,Tl=null;var i=Sl,o=Ol;if(Sl=null,Ol=0,6&tl)throw Error(s(331));var l=tl;if(tl|=4,Bo(i.current),Eo(i,i.current,o,n),tl=l,mc(0,!1),ye&&"function"==typeof ye.onPostCommitFiberRoot)try{ye.onPostCommitFiberRoot(me,i)}catch(e){}a=!0}return a}finally{H.p=f,N.T=r,tc(e,t)}}return!1}function rc(e,t,n){t=_r(n,t),null!==(e=Bi(e,t=Ds(e.stateNode,t,2),2))&&(Be(e,2),gc(e))}function fc(e,t,n){if(3===e.tag)rc(e,e,n);else for(;null!==t;){if(3===t.tag){rc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Pl||!Pl.has(r))){e=_r(n,e),null!==(r=Bi(t,n=zs(2),2))&&(Hs(n,r,t,e),Be(r,2),gc(r));break}}t=t.return}}function ac(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new el;var f=new Set;r.set(t,f)}else void 0===(f=r.get(t))&&(f=new Set,r.set(t,f));f.has(n)||(ll=!0,f.add(n),e=sc.bind(null,e,t,n),t.then(e,e))}function sc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,nl===e&&(fl&n)===n&&(4===ul||3===ul&&(62914560&fl)===fl&&300>oe()-wl?!(2&tl)&&zl(e,0):hl|=n,gl===fl&&(gl=0)),gc(e)}function ic(e,t){0===t&&(t=Ne()),null!==(e=Cr(e,t))&&(Be(e,t),gc(e))}function oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ic(e,n)}function lc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,f=e.memoizedState;null!==f&&(n=f.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}null!==r&&r.delete(t),ic(e,n)}var cc=null,uc=null,dc=!1,pc=!1,hc=!1,bc=0;function gc(e){var t;e!==uc&&null===e.next&&(null===uc?cc=uc=e:uc=uc.next=e),pc=!0,dc||(dc=!0,t=yc,fu((function(){6&tl?fe(ce,t):t()})))}function mc(e,t){if(!hc&&pc){hc=!0;do{for(var n=!1,r=cc;null!==r;){if(!t)if(0!==e){var f=r.pendingLanes;if(0===f)var a=0;else{var s=r.suspendedLanes,i=r.pingedLanes;a=(1<<31-we(42|e)+1)-1,a=201326677&(a&=f&~(s&~i))?201326677&a|1:a?2|a:0}0!==a&&(n=!0,Ac(r,a))}else a=fl,!(3&(a=Oe(r,r===nl?a:0)))||xe(r,a)||(n=!0,Ac(r,a));r=r.next}}while(n);hc=!1}}function yc(){pc=dc=!1;var e,t=0;0!==bc&&(((e=window.event)&&"popstate"===e.type?e!==eu&&(eu=e,!0):(eu=null,!1))&&(t=bc),bc=0);for(var n=oe(),r=null,f=cc;null!==f;){var a=f.next,s=vc(f,n);0===s?(f.next=null,null===r?cc=a:r.next=a,null===a&&(uc=r)):(r=f,(0!==t||3&s)&&(pc=!0)),f=a}mc(t,!1)}function vc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,f=e.expirationTimes,a=-62914561&e.pendingLanes;0 title"):null)}function Nu(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Ru=null;function Bu(){}function Iu(){if(this.count--,0===this.count)if(this.stylesheets)Fu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var _u=null;function Fu(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,_u=new Map,t.forEach(Lu,e),_u=null,Iu.call(e))}function Lu(e,t){if(!(4&t.state.loading)){var n=_u.get(e);if(n)var r=n.get(null);else{n=new Map,_u.set(e,n);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a{var r=n(6540);function f(e){var t="https://react.dev/errors/"+e;if(1{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(1247)},961:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(6221)},9869:(e,t)=>{var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var w=v.prototype=new y;w.constructor=v,b(w,m.prototype),w.isPureReactComponent=!0;var A=Array.isArray,k={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function E(e,t,r,f,a,s){return r=s.ref,{$$typeof:n,type:e,key:t,ref:void 0!==r?r:null,props:s}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function x(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function T(){}function C(e,t,f,a,s){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var o,l,c=!1;if(null===e)c=!0;else switch(i){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0;break;case d:return C((c=e._init)(e._payload),t,f,a,s)}}if(c)return s=s(e),c=""===a?"."+x(e,0):a,A(s)?(f="",null!=c&&(f=c.replace(O,"$&/")+"/"),C(s,t,f,"",(function(e){return e}))):null!=s&&(S(s)&&(o=s,l=f+(null==s.key||e&&e.key===s.key?"":(""+s.key).replace(O,"$&/")+"/")+c,s=E(o.type,l,void 0,0,0,o.props)),t.push(s)),1;c=0;var u,h=""===a?".":a+":";if(A(e))for(var b=0;b{e.exports=n(9869)},4477:(e,t)=>{function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,f=e[r];if(!(0>>1;ra(o,n))la(c,o)?(e[r]=c,e[l]=n,r=l):(e[r]=o,e[i]=n,r=i);else{if(!(la(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var i=Date,o=i.now();t.unstable_now=function(){return i.now()-o}}var l=[],c=[],u=1,d=null,p=3,h=!1,b=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)f(c);else{if(!(t.startTime<=e))break;f(c),t.sortIndex=t.expirationTime,n(l,t)}t=r(c)}}function A(e){if(g=!1,w(e),!b)if(null!==r(l))b=!0,R();else{var t=r(c);null!==t&&B(A,t.startTime-e)}}var k,P=!1,E=-1,S=5,O=-1;function x(){return!(t.unstable_now()-Oe&&x());){var s=d.callback;if("function"==typeof s){d.callback=null,p=d.priorityLevel;var i=s(d.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){d.callback=i,w(e),n=!0;break t}d===r(l)&&f(l),w(e)}else f(l);d=r(l)}if(null!==d)n=!0;else{var o=r(c);null!==o&&B(A,o.startTime-e),n=!1}}break e}finally{d=null,p=a,h=!1}n=void 0}}finally{n?k():P=!1}}}if("function"==typeof v)k=function(){v(T)};else if("undefined"!=typeof MessageChannel){var C=new MessageChannel,N=C.port2;C.port1.onmessage=T,k=function(){N.postMessage(null)}}else k=function(){m(T,0)};function R(){P||(P=!0,k())}function B(e,n){E=m((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){b||h||(b=!0,R())},t.unstable_forceFrameRate=function(e){0>e||125s?(e.sortIndex=a,n(c,e),null===r(l)&&e===r(c)&&(g?(y(E),E=-1):g=!0,B(A,a-s))):(e.sortIndex=i,n(l,e),b||h||(b=!0,R())),e},t.unstable_shouldYield=x,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},9982:(e,t,n)=>{e.exports=n(4477)},5802:function(e,t,n){var r,f=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var f=Object.getOwnPropertyDescriptor(t,n);f&&!("get"in f?!t.__esModule:f.writable||f.configurable)||(f={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,f)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s{const[e,t]=(0,o.useState)("circle"),[n,r]=(0,o.useState)(70),[f,a]=(0,o.useState)("#cccccc"),[s,i]=(0,o.useState)(""),[m,y]=(0,o.useState)(""),{uploadToServer:v,uploading:w,uploadError:A}=(0,g.default)(),{mintNFT:k,transactionHash:P,transactionReceipt:E,errorMessage:S,loading:O,account:x}=(0,b.default)();return o.default.createElement(o.default.Fragment,null,o.default.createElement(c.default,null),o.default.createElement(l.default,{shape:e,size:n,color:f,setSvgString:y}),o.default.createElement("section",{className:"controls"},o.default.createElement(u.default,{shape:e,setShape:t,size:n,setSize:r,color:f,setColor:a}),o.default.createElement(d.default,{title:s,setTitle:i}),o.default.createElement(p.default,{handleUpload:async()=>{if(!m)return!1;const e=await v(m,s);return e?(await k(`ipfs://${e}`),!0):void 0},loading:O,uploading:w}),o.default.createElement(h.default,{account:x,uploading:w,loading:O,transactionHash:P,transactionReceipt:E,errorMessage:S,uploadError:A})))}},6179:function(e,t,n){var r,f=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var f=Object.getOwnPropertyDescriptor(t,n);f&&!("get"in f?!t.__esModule:f.writable||f.configurable)||(f={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,f)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s{const[f,a]=(0,i.useState)([]);return(0,i.useEffect)((()=>{const e=document.getElementsByTagName("svg")[0],t=new XMLSerializer;e&&r(t.serializeToString(e))}),[f,r]),i.default.createElement("svg",{width:"500",height:"500",version:"1.1",xmlns:"http://www.w3.org/2000/svg",onClick:r=>{const f=Date.now().toString();let s=null;const o=r.currentTarget.getBoundingClientRect(),l=r.clientX-o.left,c=r.clientY-o.top;if("erase"!==e){var u;"circle"===e?s=i.default.createElement("circle",{cx:l,cy:c,r:t/2,fill:n,id:f}):"square"===e&&(s=i.default.createElement("rect",{x:l-t/2,y:c-t/2,fill:n,width:t,height:t,id:f})),null!==s&&a((e=>[...e,s]))}else{const e=r.target;e.id&&(u=e.id,a((e=>e.filter((e=>e.props.id!==u)))))}}},i.default.createElement("rect",{width:"100%",height:"100%",fill:"white"}),f.map((e=>e)))}},9988:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const f=r(n(6540));t.default=({shape:e,setShape:t,size:n,setSize:r,color:a,setColor:s})=>f.default.createElement("section",null,f.default.createElement("section",null,f.default.createElement("label",null,"Circle",f.default.createElement("input",{type:"radio",name:"shape",value:"circle",checked:"circle"===e,onChange:({target:e})=>t(e.value)})),f.default.createElement("label",null,"Square",f.default.createElement("input",{type:"radio",name:"shape",value:"square",checked:"square"===e,onChange:({target:e})=>t(e.value)})),f.default.createElement("label",null,"Erase",f.default.createElement("input",{type:"radio",name:"shape",value:"erase",checked:"erase"===e,onChange:({target:e})=>t(e.value)}))),f.default.createElement("section",null,f.default.createElement("label",null,"Size",f.default.createElement("input",{type:"range",value:n,min:"10",max:"300",onChange:({target:e})=>r(Number(e.value))}))),f.default.createElement("section",null,f.default.createElement("label",null,"Color",f.default.createElement("input",{type:"color",value:a,onChange:({target:e})=>s(e.value)}))))},1800:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const f=r(n(6540));t.default=()=>f.default.createElement("header",null,f.default.createElement("h1",null,"Aaarto:",f.default.createElement("a",{href:"http://goatstone.com",target:"_blank",rel:"noopener noreferrer"},"goatstone")))},6302:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const f=r(n(6540));t.default=({account:e,uploading:t,loading:n,transactionHash:r,transactionReceipt:a,errorMessage:s,uploadError:i})=>f.default.createElement("section",null,f.default.createElement("section",null,f.default.createElement("h3",null,e?`Connected Account : ${e}`:"No account connected")),f.default.createElement("section",null,t&&f.default.createElement("p",null,"Status: Uploading"),n&&f.default.createElement("p",null,"Status: Minting"),r&&f.default.createElement("p",{className:"success_message"},"Minting Success! Transaction Hash:",f.default.createElement("a",{href:`https://sepolia.etherscan.io/tx/${r}`,target:"_blank",rel:"noopener noreferrer"},r))),f.default.createElement("section",null,s&&f.default.createElement("p",null,s),i&&f.default.createElement("p",null,i)))},3472:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const f=r(n(6540));t.default=({handleUpload:e,uploading:t,loading:n})=>f.default.createElement("section",{className:"mint_control"},f.default.createElement("section",null,f.default.createElement("button",{onClick:e,disabled:t||n},t||n?"Minting, Please Wait...":"Mint The Aaarto")))},9818:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const f=r(n(6540));t.default=({title:e,setTitle:t})=>f.default.createElement("section",null,f.default.createElement("section",null,f.default.createElement("label",null,"Title",f.default.createElement("input",{type:"text",value:e,onChange:({target:e})=>t(e.value),placeholder:"Title",maxLength:32,size:32}))))},3030:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const f=n(6540),a=n(4193),s=r(n(5069)),i=a.ethers.parseEther("0.001");t.default=()=>{const[e,t]=(0,f.useState)(null),[n,r]=(0,f.useState)(null),[o,l]=(0,f.useState)(null),[c,u]=(0,f.useState)(null),[d,p]=(0,f.useState)(!1);return{mintNFT:async e=>{try{if(p(!0),void 0===window.ethereum)throw new Error("MetaMask is not installed. Please install it to use this app.");u("Connect MetaMask account with this site.");const n=await window.ethereum.request({method:"eth_requestAccounts"});t(n),u("");const f=new a.ethers.BrowserProvider(window.ethereum),o=await f.getSigner(),{chainId:c}=await f.getNetwork();if(11155111n!==c)try{u("Please switch to the Sepolia network."),await window.ethereum.request({method:"wallet_switchEthereumChain",params:[{chainId:"0xaa36a7"}]}),u("")}catch(e){if(4902!==e.code)throw e;await window.ethereum.request({method:"wallet_addEthereumChain",params:[{chainId:"0xaa36a7",chainName:"Sepolia Testnet",rpcUrls:["https://rpc.sepolia.org"],nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},blockExplorerUrls:["https://sepolia.etherscan.io"]}]})}const d=new a.ethers.Contract("0x92128cD1BCA8cc406d2223Dcf1558E4d926Dd68f",s.default.abi,o),h=await o.getAddress(),b=await d.preSafeMint(h,e,{value:i});r(b.hash);const g=await b.wait();l(g)}catch(e){e.message.includes("user rejected action")?u("The request has been cancelled."):u("An error occured during minting.")}finally{p(!1)}},transactionHash:n,transactionReceipt:o,errorMessage:c,loading:d,account:e}}},6421:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const f=n(6540),a=r(n(6425)),s=r(n(1219));t.default=()=>{const[e,t]=(0,f.useState)(!1),[n,r]=(0,f.useState)(null);return{uploadToServer:async(e,n)=>{t(!0);const f={title:n,svgString:e};try{return(await a.default.post(`${s.default.serverHost}/server`,f)).data.ipfsHashMD}catch(e){let t="Error: An error occured while trying to upload the assest";return e.message.includes("Network Error")&&(t="Error: Could not access network"),r(t),null}finally{t(!1)}},uploading:e,uploadError:n}}},3900:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const f=r(n(6540)),a=r(n(5338)),s=r(n(5802)),i=document.getElementById("root");i&&a.default.createRoot(i).render(f.default.createElement(s.default,null))},3514:(e,t)=>{const n=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function r(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),f=1,a=[0,1];for(let e=1;e>--o&1}const u=2**31,d=u>>>1,p=d>>1,h=u-1;let b=0;for(let e=0;e<31;e++)b=b<<1|c();let g=[],m=0,y=u;for(;;){let e=Math.floor(((b-m+1)*f-1)/y),t=0,n=r;for(;n-t>1;){let r=t+n>>>1;e>>1|c(),s=s<<1^d,i=(i^d)<<1|d|1;m=s,y=1+i-s}let v=r-4;return g.map((t=>{switch(t-v){case 3:return v+65792+(e[i++]<<16|e[i++]<<8|e[i++]);case 2:return v+256+(e[i++]<<8|e[i++]);case 1:return v+e[i++];default:return t-1}}))}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach(((e,n)=>t[e.charCodeAt(0)]=n));let n=e.length,r=new Uint8Array(6*n>>3);for(let f=0,a=0,s=0,i=0;f=8&&(r[a++]=i>>(s-=8));return r}(e)))}function f(e){return 1&e?~e>>1:e>>1}function a(e,t){let n=Array(e);for(let r=0,a=0;r{let t=s(e);if(t.length)return t}))}function o(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(u(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(d(n,e))}return t.flat()}function l(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function c(e,t,n){let r=Array(e).fill().map((()=>[]));for(let f=0;fr[t].push(e)));return r}function u(e,t){let n=1+t(),r=t(),f=l(t);return c(f.length,1+e,t).flatMap(((e,t)=>{let[a,...s]=e;return Array(f[t]).fill().map(((e,t)=>{let f=t*r;return[a+t*n,s.map((e=>e+f))]}))}))}function d(e,t){return c(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}function p(e){return`{${function(e){return e.toString(16).toUpperCase().padStart(2,"0")}(e)}}`}function h(e){let t=[];for(let n=0,r=e.length;n>24&255}function k(e){return 16777215&e}let P,E,S,O;function x(e){return e>=m&&e<55204}function T(e,t){if(e>=y&&e<4371&&t>=v&&t<4470)return m+588*(e-y)+28*(t-v);if(x(e)&&t>w&&t<4547&&(e-m)%28==0)return e+(t-w);{let n=O.get(e);return n&&(n=n.get(t),n)?n:-1}}function C(e){P||function(){let e=r("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");P=new Map(i(e).flatMap(((e,t)=>e.map((e=>[e,t+1<<24]))))),E=new Set(s(e)),S=new Map,O=new Map;for(let[t,n]of o(e)){if(!E.has(t)&&2==n.length){let[e,r]=n,f=O.get(e);f||(f=new Map,O.set(e,f)),f.set(r,t)}S.set(t,n.reverse())}}();let t=[],n=[],f=!1;function a(e){let n=P.get(e);n&&(f=!0,e|=n),t.push(e)}for(let r of e)for(;;){if(r<128)t.push(r);else if(x(r)){let e=r-m,t=e%588/28|0,n=e%28;a(y+(e/588|0)),a(v+t),n>0&&a(w+n)}else{let e=S.get(r);e?n.push(...e):a(r)}if(!n.length)break;r=n.pop()}if(f&&t.length>1){let e=A(t[0]);for(let n=1;n0&&f>=e)0==e?(t.push(r,...n),n.length=0,r=s):n.push(s),f=e;else{let a=T(r,s);a>=0?r=a:0==f&&0==e?(t.push(r),r=s):(n.push(s),f=e)}}return r>=0&&t.push(r,...n),t}(C(e))}const B=".",I=e=>Array.from(e);function _(e,t){return e.P.has(t)||e.Q.has(t)}class F extends Array{get is_emoji(){return!0}}let L,j,U,M,D,z,H,G,V,K,q,Q;function J(){if(L)return;let e=r("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");const t=()=>s(e),n=()=>new Set(t()),f=(e,t)=>t.forEach((t=>e.add(t)));L=new Map(o(e)),j=n(),U=t(),M=new Set(t().map((e=>U[e]))),U=new Set(U),D=n(),z=n();let a=i(e),c=e();const u=()=>{let e=new Set;return t().forEach((t=>f(e,a[t]))),f(e,t()),e};H=l((t=>{let n=l(e).map((e=>e+96));if(n.length){let r=t>=c;return n[0]-=32,n=b(n),r&&(n=`Restricted[${n}]`),{N:n,P:u(),Q:u(),M:!e(),R:r}}})),G=n(),V=new Map;let d=t().concat(I(G)).sort(((e,t)=>e-t));d.forEach(((t,n)=>{let r=e(),f=d[n]=r?d[n-r]:{V:[],M:new Map};f.V.push(t),G.has(t)||V.set(t,f)}));for(let{V:e,M:t}of new Set(V.values())){let n=[];for(let t of e){let e=H.filter((e=>_(e,t))),r=n.find((({G:t})=>e.some((e=>t.has(e)))));r||(r={G:new Set,V:[]},n.push(r)),r.V.push(t),f(r.G,e)}let r=n.flatMap((e=>I(e.G)));for(let{G:e,V:f}of n){let n=new Set(r.filter((t=>!e.has(t))));for(let e of f)t.set(e,n)}}K=new Set;let p=new Set;const h=e=>K.has(e)?p.add(e):K.add(e);for(let e of H){for(let t of e.P)h(t);for(let t of e.Q)h(t)}for(let e of K)V.has(e)||p.has(e)||V.set(e,1);f(K,N(K)),q=function(e){let t=[],n=s(e);return function e({S:n,B:r},f,a){if(!(4&n&&a===f[f.length-1])){2&n&&(a=f[f.length-1]),1&n&&t.push(f);for(let t of r)for(let n of t.Q)e(t,[...f,n],a)}}(function t(r){return{S:e(),B:l((()=>{let r=s(e).map((e=>n[e]));if(r.length)return t(r)})),Q:r}}([]),[]),t}(e).map((e=>F.from(e))).sort(g),Q=new Map;for(let e of q){let t=[Q];for(let n of e){let e=t.map((e=>{let t=e.get(n);return t||(t=new Map,e.set(n,t)),t}));65039===n?t.push(...e):t=e}for(let n of t)n.V=e}}function W(e){return(X(e)?"":`${$(Z([e]))} `)+p(e)}function $(e){return`"${e}"‎`}function Z(e,t=1/0,n=p){let r=[];Y(e[0])&&r.push("◌"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let f=0,a=e.length;for(let t=0;t{let a=h(e),s={input:a,offset:f};f+=a.length+1;try{let e,f=s.tokens=se(a,t,r),i=f.length;if(!i)throw new Error("empty label");let o=s.output=f.flat();if(function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw new Error("underscore allowed only at start")}(o),!(s.emoji=i>1||f[0].is_emoji)&&o.every((e=>e<128)))!function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw new Error(`invalid label extension: "${b(e.slice(0,4))}"`)}(o),e="ASCII";else{let t=f.flatMap((e=>e.is_emoji?[]:e));if(t.length){if(U.has(o[0]))throw ae("leading combining mark");for(let e=1;e_(e,n)));if(!e.length)throw H.some((e=>_(e,n)))?fe(t[0],n):re(n);if(t=e,1==e.length)break}return t}(r);!function(e,t){for(let n of t)if(!_(e,n))throw fe(e,n);if(e.M){let e=N(t);for(let t=1,n=e.length;t4)throw new Error(`excessive non-spacing marks: ${$(Z(e.slice(t-1,r)))} (${r-t}/4)`);t=r}}}(a,t),function(e,t){let n,r=[];for(let e of t){let t=V.get(e);if(1===t)return;if(t){let r=t.M.get(e);if(n=n?n.filter((e=>r.has(e))):I(r),!n.length)return}else r.push(e)}if(n)for(let t of n)if(r.every((e=>_(t,e))))throw new Error(`whole-script confusable: ${e.N}/${t.N}`)}(a,r),e=a.N}else e="Emoji"}s.type=e}catch(e){s.error=e}return s}))}function ne(e){return e.map((({input:t,error:n,output:r})=>{if(n){let r=n.message;throw new Error(1==e.length?r:`Invalid label ${$(Z(t,63))}: ${r}`)}return b(r)})).join(B)}function re(e){return new Error(`disallowed character: ${W(e)}`)}function fe(e,t){let n=W(t),r=H.find((e=>e.P.has(t)));return r&&(n=`${r.N} ${n}`),new Error(`illegal mixture: ${e.N} + ${n}`)}function ae(e){return new Error(`illegal placement: ${e}`)}function se(e,t,n){let r=[],f=[];for(e=e.slice().reverse();e.length;){let a=oe(e);if(a)f.length&&(r.push(t(f)),f=[]),r.push(n(a));else{let t=e.pop();if(K.has(t))f.push(t);else{let e=L.get(t);if(e)f.push(...e);else if(!j.has(t))throw re(t)}}}return f.length&&r.push(t(f)),r}function ie(e){return e.filter((e=>65039!=e))}function oe(e,t){let n,r=Q,f=e.length;for(;f&&(r=r.get(e[--f]),r);){let{V:a}=r;a&&(n=a,t&&t.push(...e.slice(f).reverse()),e.length=f)}return n}const le="valid",ce="mapped",ue="ignored";function de(e){return e==le||e==ce}function pe(e){return e.some((e=>z.has(e)))}function he(e){for(let t=0;te.cps))})}return e}t.ens_beautify=function(e){let t=te(e,R,(e=>e));for(let{type:e,output:n,error:r}of t){if(r)break;"Greek"!==e&&ee(n,958,926)}return ne(t)},t.ens_emoji=function(){return J(),q.map((e=>e.slice()))},t.ens_normalize=function(e){return ne(te(e,R,ie))},t.ens_normalize_fragment=function(e,t){J();let n=t?N:R;return e.split(B).map((e=>b(se(h(e),n,ie).flat()))).join(B)},t.ens_split=function(e,t){return te(e,R,t?e=>e.slice():ie)},t.ens_tokenize=function e(t,{nf:n=!0}={}){J();let r=h(t).reverse(),f=[],a=[];for(;r.length;){let e=oe(r,f);if(e)a.push({type:"emoji",emoji:e.slice(),input:f,cps:ie(e)}),f=[];else{let e=r.pop();if(46==e)a.push({type:"stop",cp:e});else if(K.has(e))a.push({type:le,cps:[e]});else if(j.has(e))a.push({type:ue,cp:e});else{let t=L.get(e);t?a.push({type:ce,cp:e,cps:t.slice()}):a.push({type:"disallowed",cp:e})}}}if(n)for(let t=0,n=-1;tde(e.type)?e.cps:[])),i=R(s);g(i,s)?(a.splice(n,r-n,{type:"nfc",input:s,cps:i,tokens0:he(f),tokens:e(b(i),{nf:!1})}),t=n):t=r-1,n=-1}else n=t;else r.type!==ue&&(n=-1)}return he(a)},t.is_combining_mark=Y,t.nfc=R,t.nfd=N,t.safe_str_from_cps=Z,t.should_escape=X},6013:function(e,t){var n,r,f,a=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},s=this&&this.__classPrivateFieldSet||function(e,t,n,r,f){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!f)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!f:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?f.call(e,n):f?f.value=n:t.set(e,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.AES=void 0;const i={16:10,24:12,32:14},o=[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],l=[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],u=[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],d=[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],h=[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],b=[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],g=[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],m=[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],y=[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],v=[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],w=[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],A=[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],k=[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 P(e){const t=[];for(let n=0;n>2,a(this,f,"f")[p][e%4]=d[e],a(this,r,"f")[t-p][e%4]=d[e];let h,b=0,g=u;for(;g>16&255]<<24^l[h>>8&255]<<16^l[255&h]<<8^l[h>>24&255]^o[b]<<24,b+=1,8!=u)for(let e=1;e>8&255]<<8^l[h>>16&255]<<16^l[h>>24&255]<<24;for(let e=u/2+1;e>2,n=g%4,a(this,f,"f")[e][n]=d[s],a(this,r,"f")[t-e][n]=d[s++],g++}for(let e=1;e>24&255]^w[h>>16&255]^A[h>>8&255]^k[255&h]}encrypt(e){if(16!=e.length)throw new TypeError("invalid plaintext size (must be 16 bytes)");const t=a(this,f,"f").length-1,n=[0,0,0,0];let r=P(e);for(let e=0;e<4;e++)r[e]^=a(this,f,"f")[0][e];for(let e=1;e>24&255]^d[r[(t+1)%4]>>16&255]^p[r[(t+2)%4]>>8&255]^h[255&r[(t+3)%4]]^a(this,f,"f")[e][t];r=n.slice()}const s=new Uint8Array(16);let i=0;for(let e=0;e<4;e++)i=a(this,f,"f")[t][e],s[4*e]=255&(l[r[e]>>24&255]^i>>24),s[4*e+1]=255&(l[r[(e+1)%4]>>16&255]^i>>16),s[4*e+2]=255&(l[r[(e+2)%4]>>8&255]^i>>8),s[4*e+3]=255&(l[255&r[(e+3)%4]]^i);return s}decrypt(e){if(16!=e.length)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const t=a(this,r,"f").length-1,n=[0,0,0,0];let f=P(e);for(let e=0;e<4;e++)f[e]^=a(this,r,"f")[0][e];for(let e=1;e>24&255]^g[f[(t+3)%4]>>16&255]^m[f[(t+2)%4]>>8&255]^y[255&f[(t+1)%4]]^a(this,r,"f")[e][t];f=n.slice()}const s=new Uint8Array(16);let i=0;for(let e=0;e<4;e++)i=a(this,r,"f")[t][e],s[4*e]=255&(c[f[e]>>24&255]^i>>24),s[4*e+1]=255&(c[f[(e+3)%4]>>16&255]^i>>16),s[4*e+2]=255&(c[f[(e+2)%4]>>8&255]^i>>8),s[4*e+3]=255&(c[255&f[(e+1)%4]]^i);return s}}t.AES=E,n=new WeakMap,r=new WeakMap,f=new WeakMap},8165:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.pkcs7Strip=t.pkcs7Pad=t.OFB=t.ECB=t.CTR=t.CFB=t.CBC=t.ModeOfOperation=t.AES=void 0;var r=n(6013);Object.defineProperty(t,"AES",{enumerable:!0,get:function(){return r.AES}});var f=n(6342);Object.defineProperty(t,"ModeOfOperation",{enumerable:!0,get:function(){return f.ModeOfOperation}});var a=n(2977);Object.defineProperty(t,"CBC",{enumerable:!0,get:function(){return a.CBC}});var s=n(7609);Object.defineProperty(t,"CFB",{enumerable:!0,get:function(){return s.CFB}});var i=n(4164);Object.defineProperty(t,"CTR",{enumerable:!0,get:function(){return i.CTR}});var o=n(1485);Object.defineProperty(t,"ECB",{enumerable:!0,get:function(){return o.ECB}});var l=n(226);Object.defineProperty(t,"OFB",{enumerable:!0,get:function(){return l.OFB}});var c=n(8420);Object.defineProperty(t,"pkcs7Pad",{enumerable:!0,get:function(){return c.pkcs7Pad}}),Object.defineProperty(t,"pkcs7Strip",{enumerable:!0,get:function(){return c.pkcs7Strip}})},2977:function(e,t,n){var r,f,a=this&&this.__classPrivateFieldSet||function(e,t,n,r,f){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!f)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!f:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?f.call(e,n):f?f.value=n:t.set(e,n),n},s=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.CBC=void 0;const i=n(6342);class o extends i.ModeOfOperation{constructor(e,t){if(super("ECC",e,o),r.set(this,void 0),f.set(this,void 0),t){if(t.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");a(this,r,new Uint8Array(t),"f")}else a(this,r,new Uint8Array(16),"f");a(this,f,this.iv,"f")}get iv(){return new Uint8Array(s(this,r,"f"))}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const t=new Uint8Array(e.length);for(let n=0;nNumber.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let t=15;t>=0;--t)i(this,a,"f")[t]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(16!==e.length)throw new TypeError("invalid counter initial Uint8Array value length");i(this,a,"f").set(e)}increment(){for(let e=15;e>=0;e--){if(255!==i(this,a,"f")[e]){i(this,a,"f")[e]++;break}i(this,a,"f")[e]=0}}encrypt(e){var t,n;const o=new Uint8Array(e);for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.ECB=void 0;const r=n(6342);class f extends r.ModeOfOperation{constructor(e){super("ECB",e,f)}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const t=new Uint8Array(e.length);for(let n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.ModeOfOperation=void 0;const r=n(6013);t.ModeOfOperation=class{constructor(e,t,n){if(n&&!(this instanceof n))throw new Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new r.AES(t)},name:{enumerable:!0,value:e}})}}},8420:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.pkcs7Strip=t.pkcs7Pad=void 0,t.pkcs7Pad=function(e){const t=16-e.length%16,n=new Uint8Array(e.length+t);n.set(e);for(let r=e.length;r16)throw new TypeError("PKCS#7 padding byte out of range");const n=e.length-t;for(let r=0;r{function r(e,t){return function(){return e.apply(t,arguments)}}const{toString:f}=Object.prototype,{getPrototypeOf:a}=Object,s=(i=Object.create(null),e=>{const t=f.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});var i;const o=e=>(e=e.toLowerCase(),t=>s(t)===e),l=e=>t=>typeof t===e,{isArray:c}=Array,u=l("undefined"),d=o("ArrayBuffer"),p=l("string"),h=l("function"),b=l("number"),g=e=>null!==e&&"object"==typeof e,m=e=>{if("object"!==s(e))return!1;const t=a(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},y=o("Date"),v=o("File"),w=o("Blob"),A=o("FileList"),k=o("URLSearchParams"),[P,E,S,O]=["ReadableStream","Request","Response","Headers"].map(o);function x(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,f;if("object"!=typeof e&&(e=[e]),c(e))for(r=0,f=e.length;r0;)if(r=n[f],t===r.toLowerCase())return r;return null}const C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,N=e=>!u(e)&&e!==C,R=(B="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>B&&e instanceof B);var B;const I=o("HTMLFormElement"),_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),F=o("RegExp"),L=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};x(n,((n,f)=>{let a;!1!==(a=t(n,f,e))&&(r[f]=a||n)})),Object.defineProperties(e,r)},j="abcdefghijklmnopqrstuvwxyz",U="0123456789",M={DIGIT:U,ALPHA:j,ALPHA_DIGIT:j+j.toUpperCase()+U},D=o("AsyncFunction"),z=(H="function"==typeof setImmediate,G=h(C.postMessage),H?setImmediate:G?(V=`axios@${Math.random()}`,K=[],C.addEventListener("message",(({source:e,data:t})=>{e===C&&t===V&&K.length&&K.shift()()}),!1),e=>{K.push(e),C.postMessage(V,"*")}):e=>setTimeout(e));var H,G,V,K;const q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(C):"undefined"!=typeof process&&process.nextTick||z;var Q={isArray:c,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||h(e.append)&&("formdata"===(t=s(e))||"object"===t&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:p,isNumber:b,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:m,isReadableStream:P,isRequest:E,isResponse:S,isHeaders:O,isUndefined:u,isDate:y,isFile:v,isBlob:w,isRegExp:F,isFunction:h,isStream:e=>g(e)&&h(e.pipe),isURLSearchParams:k,isTypedArray:R,isFileList:A,forEach:x,merge:function e(){const{caseless:t}=N(this)&&this||{},n={},r=(r,f)=>{const a=t&&T(n,f)||f;m(n[a])&&m(r)?n[a]=e(n[a],r):m(r)?n[a]=e({},r):c(r)?n[a]=r.slice():n[a]=r};for(let e=0,t=arguments.length;e(x(t,((t,f)=>{n&&h(t)?e[f]=r(t,n):e[f]=t}),{allOwnKeys:f}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let f,s,i;const o={};if(t=t||{},null==e)return t;do{for(f=Object.getOwnPropertyNames(e),s=f.length;s-- >0;)i=f[s],r&&!r(i,e,t)||o[i]||(t[i]=e[i],o[i]=!0);e=!1!==n&&a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:o,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(c(e))return e;let t=e.length;if(!b(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:I,hasOwnProperty:_,hasOwnProp:_,reduceDescriptors:L,freezeMethods:e=>{L(e,((t,n)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];h(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return c(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:T,global:C,isContextDefined:N,ALPHABET:M,generateString:(e=16,t=M.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const f=c(e)?[]:{};return x(e,((e,t)=>{const a=n(e,r+1);!u(a)&&(f[t]=a)})),t[r]=void 0,f}}return e};return n(e,0)},isAsyncFn:D,isThenable:e=>e&&(g(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:z,asap:q};function J(e,t,n,r,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),f&&(this.response=f,this.status=f.status?f.status:null)}Q.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.status}}});const W=J.prototype,$={};function Z(e){return Q.isPlainObject(e)||Q.isArray(e)}function Y(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,n){return e?e.concat(t).map((function(e,t){return e=Y(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{$[e]={value:e}})),Object.defineProperties(J,$),Object.defineProperty(W,"isAxiosError",{value:!0}),J.from=(e,t,n,r,f,a)=>{const s=Object.create(W);return Q.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),J.call(s,e.message,t,n,r,f),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const ee=Q.toFlatObject(Q,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Q.isUndefined(t[e])}))).metaTokens,f=n.visitor||l,a=n.dots,s=n.indexes,i=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(f))throw new TypeError("visitor must be a function");function o(e){if(null===e)return"";if(Q.isDate(e))return e.toISOString();if(!i&&Q.isBlob(e))throw new J("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(e)||Q.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,f){let i=e;if(e&&!f&&"object"==typeof e)if(Q.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Q.isArray(e)&&function(e){return Q.isArray(e)&&!e.some(Z)}(e)||(Q.isFileList(e)||Q.endsWith(n,"[]"))&&(i=Q.toArray(e)))return n=Y(n),i.forEach((function(e,r){!Q.isUndefined(e)&&null!==e&&t.append(!0===s?X([n],r,a):null===s?n:n+"[]",o(e))})),!1;return!!Z(e)||(t.append(X(f,n,a),o(e)),!1)}const c=[],u=Object.assign(ee,{defaultVisitor:l,convertValue:o,isVisitable:Z});if(!Q.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Q.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),Q.forEach(n,(function(n,a){!0===(!(Q.isUndefined(n)||null===n)&&f.call(t,n,Q.isString(a)?a.trim():a,r,u))&&e(n,r?r.concat(a):[a])})),c.pop()}}(e),t}function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function re(e,t){this._pairs=[],e&&te(e,this,t)}const fe=re.prototype;function ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function se(e,t,n){if(!t)return e;const r=n&&n.encode||ae;Q.isFunction(n)&&(n={serialize:n});const f=n&&n.serialize;let a;if(a=f?f(t,n):Q.isURLSearchParams(t)?t.toString():new re(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}fe.append=function(e,t){this._pairs.push([e,t])},fe.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ie=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Q.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},oe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},le={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:re,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ce="undefined"!=typeof window&&"undefined"!=typeof document,ue="object"==typeof navigator&&navigator||void 0,de=ce&&(!ue||["ReactNative","NativeScript","NS"].indexOf(ue.product)<0),pe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,he=ce&&window.location.href||"http://localhost";var be={...Object.freeze({__proto__:null,hasBrowserEnv:ce,hasStandardBrowserWebWorkerEnv:pe,hasStandardBrowserEnv:de,navigator:ue,origin:he}),...le};function ge(e){function t(e,n,r,f){let a=e[f++];if("__proto__"===a)return!0;const s=Number.isFinite(+a),i=f>=e.length;return a=!a&&Q.isArray(r)?r.length:a,i?(Q.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!s):(r[a]&&Q.isObject(r[a])||(r[a]=[]),t(e,n,r[a],f)&&Q.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const f=n.length;let a;for(r=0;r{t(function(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const me={transitional:oe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,f=Q.isObject(e);if(f&&Q.isHTMLForm(e)&&(e=new FormData(e)),Q.isFormData(e))return r?JSON.stringify(ge(e)):e;if(Q.isArrayBuffer(e)||Q.isBuffer(e)||Q.isStream(e)||Q.isFile(e)||Q.isBlob(e)||Q.isReadableStream(e))return e;if(Q.isArrayBufferView(e))return e.buffer;if(Q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(f){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new be.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return be.isNode&&Q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=Q.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),function(e){if(Q.isString(e))try{return(0,JSON.parse)(e),Q.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||me.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Q.isResponse(e)||Q.isReadableStream(e))return e;if(e&&Q.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw J.from(e,J.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:be.classes.FormData,Blob:be.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],(e=>{me.headers[e]={}}));var ye=me;const ve=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),we=Symbol("internals");function Ae(e){return e&&String(e).trim().toLowerCase()}function ke(e){return!1===e||null==e?e:Q.isArray(e)?e.map(ke):String(e)}function Pe(e,t,n,r,f){return Q.isFunction(r)?r.call(this,t,n):(f&&(t=n),Q.isString(t)?Q.isString(r)?-1!==t.indexOf(r):Q.isRegExp(r)?r.test(t):void 0:void 0)}class Ee{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function f(e,t,n){const f=Ae(t);if(!f)throw new Error("header name must be a non-empty string");const a=Q.findKey(r,f);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=ke(e))}const a=(e,t)=>Q.forEach(e,((e,n)=>f(e,n,t)));if(Q.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Q.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,f;return e&&e.split("\n").forEach((function(e){f=e.indexOf(":"),n=e.substring(0,f).trim().toLowerCase(),r=e.substring(f+1).trim(),!n||t[n]&&ve[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Q.isHeaders(e))for(const[t,r]of e.entries())f(r,t,n);else null!=e&&f(t,e,n);return this}get(e,t){if(e=Ae(e)){const n=Q.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Q.isFunction(t))return t.call(this,e,n);if(Q.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ae(e)){const n=Q.findKey(this,e);return!(!n||void 0===this[n]||t&&!Pe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function f(e){if(e=Ae(e)){const f=Q.findKey(n,e);!f||t&&!Pe(0,n[f],f,t)||(delete n[f],r=!0)}}return Q.isArray(e)?e.forEach(f):f(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const f=t[n];e&&!Pe(0,this[f],f,e,!0)||(delete this[f],r=!0)}return r}normalize(e){const t=this,n={};return Q.forEach(this,((r,f)=>{const a=Q.findKey(n,f);if(a)return t[a]=ke(r),void delete t[f];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(f):String(f).trim();s!==f&&delete t[f],t[s]=ke(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Q.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Q.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[we]=this[we]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ae(e);t[r]||(function(e,t){const n=Q.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,f){return this[r].call(this,t,e,n,f)},configurable:!0})}))}(n,e),t[r]=!0)}return Q.isArray(e)?e.forEach(r):r(e),this}}Ee.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(Ee.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Q.freezeMethods(Ee);var Se=Ee;function Oe(e,t){const n=this||ye,r=t||n,f=Se.from(r.headers);let a=r.data;return Q.forEach(e,(function(e){a=e.call(n,a,f.normalize(),t?t.status:void 0)})),f.normalize(),a}function xe(e){return!(!e||!e.__CANCEL__)}function Te(e,t,n){J.call(this,null==e?"canceled":e,J.ERR_CANCELED,t,n),this.name="CanceledError"}function Ce(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Q.inherits(Te,J,{__CANCEL__:!0});const Ne=(e,t,n=3)=>{let r=0;const f=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let f,a=0,s=0;return t=void 0!==t?t:1e3,function(i){const o=Date.now(),l=r[s];f||(f=o),n[a]=i,r[a]=o;let c=s,u=0;for(;c!==a;)u+=n[c++],c%=e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),o-f{f=a,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),i=t-f;i>=a?s(e,t):(n=e,r||(r=setTimeout((()=>{r=null,s(n)}),a-i)))},()=>n&&s(n)]}((n=>{const a=n.loaded,s=n.lengthComputable?n.total:void 0,i=a-r,o=f(i);r=a,e({loaded:a,total:s,progress:s?a/s:void 0,bytes:i,rate:o||void 0,estimated:o&&s&&a<=s?(s-a)/o:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),n)},Re=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Be=e=>(...t)=>Q.asap((()=>e(...t)));var Ie=be.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,be.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(be.origin),be.navigator&&/(msie|trident)/i.test(be.navigator.userAgent)):()=>!0,_e=be.hasStandardBrowserEnv?{write(e,t,n,r,f,a){const s=[e+"="+encodeURIComponent(t)];Q.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Q.isString(r)&&s.push("path="+r),Q.isString(f)&&s.push("domain="+f),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Fe(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Le=e=>e instanceof Se?{...e}:e;function je(e,t){t=t||{};const n={};function r(e,t,n,r){return Q.isPlainObject(e)&&Q.isPlainObject(t)?Q.merge.call({caseless:r},e,t):Q.isPlainObject(t)?Q.merge({},t):Q.isArray(t)?t.slice():t}function f(e,t,n,f){return Q.isUndefined(t)?Q.isUndefined(e)?void 0:r(void 0,e,0,f):r(e,t,0,f)}function a(e,t){if(!Q.isUndefined(t))return r(void 0,t)}function s(e,t){return Q.isUndefined(t)?Q.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function i(n,f,a){return a in t?r(n,f):a in e?r(void 0,n):void 0}const o={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(e,t,n)=>f(Le(e),Le(t),0,!0)};return Q.forEach(Object.keys(Object.assign({},e,t)),(function(r){const a=o[r]||f,s=a(e[r],t[r],r);Q.isUndefined(s)&&a!==i||(n[r]=s)})),n}var Ue=e=>{const t=je({},e);let n,{data:r,withXSRFToken:f,xsrfHeaderName:a,xsrfCookieName:s,headers:i,auth:o}=t;if(t.headers=i=Se.from(i),t.url=se(Fe(t.baseURL,t.url),e.params,e.paramsSerializer),o&&i.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),Q.isFormData(r))if(be.hasStandardBrowserEnv||be.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(!1!==(n=i.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}if(be.hasStandardBrowserEnv&&(f&&Q.isFunction(f)&&(f=f(t)),f||!1!==f&&Ie(t.url))){const e=a&&s&&_e.read(s);e&&i.set(a,e)}return t},Me="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Ue(e);let f=r.data;const a=Se.from(r.headers).normalize();let s,i,o,l,c,{responseType:u,onUploadProgress:d,onDownloadProgress:p}=r;function h(){l&&l(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let b=new XMLHttpRequest;function g(){if(!b)return;const r=Se.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());Ce((function(e){t(e),h()}),(function(e){n(e),h()}),{data:u&&"text"!==u&&"json"!==u?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b}),b=null}b.open(r.method.toUpperCase(),r.url,!0),b.timeout=r.timeout,"onloadend"in b?b.onloadend=g:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(g)},b.onabort=function(){b&&(n(new J("Request aborted",J.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const f=r.transitional||oe;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new J(t,f.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,b)),b=null},void 0===f&&a.setContentType(null),"setRequestHeader"in b&&Q.forEach(a.toJSON(),(function(e,t){b.setRequestHeader(t,e)})),Q.isUndefined(r.withCredentials)||(b.withCredentials=!!r.withCredentials),u&&"json"!==u&&(b.responseType=r.responseType),p&&([o,c]=Ne(p,!0),b.addEventListener("progress",o)),d&&b.upload&&([i,l]=Ne(d),b.upload.addEventListener("progress",i),b.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(s=t=>{b&&(n(!t||t.type?new Te(null,e,b):t),b.abort(),b=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);m&&-1===be.protocols.indexOf(m)?n(new J("Unsupported protocol "+m+":",J.ERR_BAD_REQUEST,e)):b.send(f||null)}))},De=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const f=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof J?t:new Te(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{a=null,f(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))}),t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(f):e.removeEventListener("abort",f)})),e=null)};e.forEach((e=>e.addEventListener("abort",f)));const{signal:i}=r;return i.unsubscribe=()=>Q.asap(s),i}};const ze=function*(e,t){let n=e.byteLength;if(!t||n{const f=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*ze(n,t)}(e,t);let a,s=0,i=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await f.next();if(t)return i(),void e.close();let a=r.byteLength;if(n){let e=s+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw i(e),e}},cancel:e=>(i(e),f.return())},{highWaterMark:2})},Ge="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ve=Ge&&"function"==typeof ReadableStream,Ke=Ge&&("function"==typeof TextEncoder?(qe=new TextEncoder,e=>qe.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var qe;const Qe=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Je=Ve&&Qe((()=>{let e=!1;const t=new Request(be.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),We=Ve&&Qe((()=>Q.isReadableStream(new Response("").body))),$e={stream:We&&(e=>e.body)};var Ze;Ge&&(Ze=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!$e[e]&&($e[e]=Q.isFunction(Ze[e])?t=>t[e]():(t,n)=>{throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,n)})})));const Ye={http:null,xhr:Me,fetch:Ge&&(async e=>{let{url:t,method:n,data:r,signal:f,cancelToken:a,timeout:s,onDownloadProgress:i,onUploadProgress:o,responseType:l,headers:c,withCredentials:u="same-origin",fetchOptions:d}=Ue(e);l=l?(l+"").toLowerCase():"text";let p,h=De([f,a&&a.toAbortSignal()],s);const b=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(o&&Je&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=Q.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e)){const t=new Request(be.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Q.isArrayBufferView(e)||Q.isArrayBuffer(e)?e.byteLength:(Q.isURLSearchParams(e)&&(e+=""),Q.isString(e)?(await Ke(e)).byteLength:void 0)})(t):n})(c,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Q.isFormData(r)&&(e=n.headers.get("content-type"))&&c.setContentType(e),n.body){const[e,t]=Re(g,Ne(Be(o)));r=He(n.body,65536,e,t)}}Q.isString(u)||(u=u?"include":"omit");const f="credentials"in Request.prototype;p=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:f?u:void 0});let a=await fetch(p);const s=We&&("stream"===l||"response"===l);if(We&&(i||s&&b)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=a[t]}));const t=Q.toFiniteNumber(a.headers.get("content-length")),[n,r]=i&&Re(t,Ne(Be(i),!0))||[];a=new Response(He(a.body,65536,n,(()=>{r&&r(),b&&b()})),e)}l=l||"text";let m=await $e[Q.findKey($e,l)||"text"](a,e);return!s&&b&&b(),await new Promise(((t,n)=>{Ce(t,n,{data:m,headers:Se.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:p})}))}catch(t){if(b&&b(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,e,p),{cause:t.cause||t});throw J.from(t,t&&t.code,e,p)}})};Q.forEach(Ye,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Xe=e=>`- ${e}`,et=e=>Q.isFunction(e)||null===e||!1===e;var tt=e=>{e=Q.isArray(e)?e:[e];const{length:t}=e;let n,r;const f={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new J("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Xe).join("\n"):" "+Xe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function nt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Te(null,e)}function rt(e){return nt(e),e.headers=Se.from(e.headers),e.data=Oe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||ye.adapter)(e).then((function(t){return nt(e),t.data=Oe.call(e,e.transformResponse,t),t.headers=Se.from(t.headers),t}),(function(t){return xe(t)||(nt(e),t&&t.response&&(t.response.data=Oe.call(e,e.transformResponse,t.response),t.response.headers=Se.from(t.response.headers))),Promise.reject(t)}))}const ft={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ft[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const at={};ft.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,f,a)=>{if(!1===e)throw new J(r(f," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!at[f]&&(at[f]=!0,console.warn(r(f," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,f,a)}},ft.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var st={assertOptions:function(e,t,n){if("object"!=typeof e)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let f=r.length;for(;f-- >0;){const a=r[f],s=t[a];if(s){const t=e[a],n=void 0===t||s(t,a,e);if(!0!==n)throw new J("option "+a+" must be "+n,J.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new J("Unknown option "+a,J.ERR_BAD_OPTION)}},validators:ft};const it=st.validators;class ot{constructor(e){this.defaults=e,this.interceptors={request:new ie,response:new ie}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=je(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:f}=t;void 0!==n&&st.assertOptions(n,{silentJSONParsing:it.transitional(it.boolean),forcedJSONParsing:it.transitional(it.boolean),clarifyTimeoutError:it.transitional(it.boolean)},!1),null!=r&&(Q.isFunction(r)?t.paramsSerializer={serialize:r}:st.assertOptions(r,{encode:it.function,serialize:it.function},!0)),st.assertOptions(t,{baseUrl:it.spelling("baseURL"),withXsrfToken:it.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=f&&Q.merge(f.common,f[t.method]);f&&Q.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete f[e]})),t.headers=Se.concat(a,f);const s=[];let i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const o=[];let l;this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)}));let c,u=0;if(!i){const e=[rt.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,o),c=e.length,l=Promise.resolve(t);u{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,f){n.reason||(n.reason=new Te(e,r,f),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ct((function(t){e=t})),cancel:e}}}var ut=ct;const dt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(dt).forEach((([e,t])=>{dt[t]=e}));var pt=dt;const ht=function e(t){const n=new lt(t),f=r(lt.prototype.request,n);return Q.extend(f,lt.prototype,n,{allOwnKeys:!0}),Q.extend(f,n,null,{allOwnKeys:!0}),f.create=function(n){return e(je(t,n))},f}(ye);ht.Axios=lt,ht.CanceledError=Te,ht.CancelToken=ut,ht.isCancel=xe,ht.VERSION="1.7.9",ht.toFormData=te,ht.AxiosError=J,ht.Cancel=ht.CanceledError,ht.all=function(e){return Promise.all(e)},ht.spread=function(e){return function(t){return e.apply(null,t)}},ht.isAxiosError=function(e){return Q.isObject(e)&&!0===e.isAxiosError},ht.mergeConfig=je,ht.AxiosHeaders=Se,ht.formToJSON=e=>ge(Q.isHTMLForm(e)?new FormData(e):e),ht.getAdapter=tt,ht.HttpStatusCode=pt,ht.default=ht,e.exports=ht},4586:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="6.13.5"},954:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbiCoder=void 0;const r=n(5347),f=n(8869),a=n(1355),s=n(3178),i=n(8719),o=n(2348),l=n(9095),c=n(8026),u=n(7398),d=n(8766),p=n(1693),h=n(189),b=n(646),g=n(5347),m=new Map;m.set(0,"GENERIC_PANIC"),m.set(1,"ASSERT_FALSE"),m.set(17,"OVERFLOW"),m.set(18,"DIVIDE_BY_ZERO"),m.set(33,"ENUM_RANGE_ERROR"),m.set(34,"BAD_STORAGE_DATA"),m.set(49,"STACK_UNDERFLOW"),m.set(50,"ARRAY_RANGE_ERROR"),m.set(65,"OUT_OF_MEMORY"),m.set(81,"UNINITIALIZED_FUNCTION_CALL");const y=new RegExp(/^bytes([0-9]*)$/),v=new RegExp(/^(u?int)([0-9]*)$/);let w=null,A=1024;class k{#e(e){if(e.isArray())return new s.ArrayCoder(this.#e(e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new p.TupleCoder(e.components.map((e=>this.#e(e))),e.name);switch(e.baseType){case"address":return new a.AddressCoder(e.name);case"bool":return new i.BooleanCoder(e.name);case"string":return new d.StringCoder(e.name);case"bytes":return new o.BytesCoder(e.name);case"":return new c.NullCoder(e.name)}let t=e.type.match(v);if(t){let n=parseInt(t[2]||"256");return(0,r.assertArgument)(0!==n&&n<=256&&n%8==0,"invalid "+t[1]+" bit length","param",e),new u.NumberCoder(n/8,"int"===t[1],e.name)}if(t=e.type.match(y),t){let n=parseInt(t[1]);return(0,r.assertArgument)(0!==n&&n<=32,"invalid bytes length","param",e),new l.FixedBytesCoder(n,e.name)}(0,r.assertArgument)(!1,"invalid type","type",e.type)}getDefaultValue(e){const t=e.map((e=>this.#e(h.ParamType.from(e))));return new p.TupleCoder(t,"_").defaultValue()}encode(e,t){(0,r.assertArgumentCount)(t.length,e.length,"types/values length mismatch");const n=e.map((e=>this.#e(h.ParamType.from(e)))),a=new p.TupleCoder(n,"_"),s=new f.Writer;return a.encode(s,t),s.data}decode(e,t,n){const r=e.map((e=>this.#e(h.ParamType.from(e))));return new p.TupleCoder(r,"_").decode(new f.Reader(t,n,A))}static _setDefaultMaxInflation(e){(0,r.assertArgument)("number"==typeof e&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),A=e}static defaultAbiCoder(){return null==w&&(w=new k),w}static getBuiltinCallException(e,t,n){return function(e,t,n,r){let f="missing revert data",a=null,s=null;if(n){f="execution reverted";const e=(0,g.getBytes)(n);if(n=(0,g.hexlify)(n),0===e.length)f+=" (no data present; likely require(false) occurred",a="require(false)";else if(e.length%32!=4)f+=" (could not decode reason; invalid data length)";else if("0x08c379a0"===(0,g.hexlify)(e.slice(0,4)))try{a=r.decode(["string"],e.slice(4))[0],s={signature:"Error(string)",name:"Error",args:[a]},f+=`: ${JSON.stringify(a)}`}catch(e){f+=" (could not decode reason; invalid string data)"}else if("0x4e487b71"===(0,g.hexlify)(e.slice(0,4)))try{const t=Number(r.decode(["uint256"],e.slice(4))[0]);s={signature:"Panic(uint256)",name:"Panic",args:[t]},a=`Panic due to ${m.get(t)||"UNKNOWN"}(${t})`,f+=`: ${a}`}catch(e){f+=" (could not decode panic code)"}else f+=" (unknown custom error)"}const i={to:t.to?(0,b.getAddress)(t.to):null,data:t.data||"0x"};return t.from&&(i.from=(0,b.getAddress)(t.from)),(0,g.makeError)(f,"CALL_EXCEPTION",{action:e,data:n,reason:a,transaction:i,invocation:null,revert:s})}(e,t,n,k.defaultAbiCoder())}}t.AbiCoder=k},9414:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBytes32String=t.encodeBytes32String=void 0;const r=n(5347);t.encodeBytes32String=function(e){const t=(0,r.toUtf8Bytes)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,r.zeroPadBytes)(t,32)},t.decodeBytes32String=function(e){const t=(0,r.getBytes)(e,"bytes");if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");let n=31;for(;0===t[n-1];)n--;return(0,r.toUtf8String)(t.slice(0,n))}},8869:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Reader=t.Writer=t.Coder=t.checkResultErrors=t.Result=t.WordSize=void 0;const r=n(5347);t.WordSize=32;const f=new Uint8Array(t.WordSize),a=["then"],s={},i=new WeakMap;function o(e){return i.get(e)}function l(e,t){i.set(e,t)}function c(e,t){const n=new Error(`deferred error during ABI decoding triggered accessing ${e}`);throw n.error=t,n}function u(e,t,n){return e.indexOf(null)>=0?t.map(((e,t)=>e instanceof d?u(o(e),e,n):e)):e.reduce(((e,r,f)=>{let a=t.getValue(r);return r in e||(n&&a instanceof d&&(a=u(o(a),a,n)),e[r]=a),e}),{})}class d extends Array{#t;constructor(...e){const t=e[0];let n=e[1],f=(e[2]||[]).slice(),i=!0;t!==s&&(n=e,f=[],i=!1),super(n.length),n.forEach(((e,t)=>{this[t]=e}));const u=f.reduce(((e,t)=>("string"==typeof t&&e.set(t,(e.get(t)||0)+1),e)),new Map);if(l(this,Object.freeze(n.map(((e,t)=>{const n=f[t];return null!=n&&1===u.get(n)?n:null})))),this.#t=[],null==this.#t&&this.#t,!i)return;Object.freeze(this);const d=new Proxy(this,{get:(e,t,n)=>{if("string"==typeof t){if(t.match(/^[0-9]+$/)){const n=(0,r.getNumber)(t,"%index");if(n<0||n>=this.length)throw new RangeError("out of result range");const f=e[n];return f instanceof Error&&c(`index ${n}`,f),f}if(a.indexOf(t)>=0)return Reflect.get(e,t,n);const f=e[t];if(f instanceof Function)return function(...t){return f.apply(this===n?e:this,t)};if(!(t in e))return e.getValue.apply(this===n?e:this,[t])}return Reflect.get(e,t,n)}});return l(d,o(this)),d}toArray(e){const t=[];return this.forEach(((n,r)=>{n instanceof Error&&c(`index ${r}`,n),e&&n instanceof d&&(n=n.toArray(e)),t.push(n)})),t}toObject(e){const t=o(this);return t.reduce(((n,f,a)=>((0,r.assert)(null!=f,`value at index ${a} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),u(t,this,e))),{})}slice(e,t){null==e&&(e=0),e<0&&(e+=this.length)<0&&(e=0),null==t&&(t=this.length),t<0&&(t+=this.length)<0&&(t=0),t>this.length&&(t=this.length);const n=o(this),r=[],f=[];for(let a=e;a{this.#n[e]=p(t)}}};class h{allowLoose;#n;#a;#s;#i;#o;constructor(e,t,n){(0,r.defineProperties)(this,{allowLoose:!!t}),this.#n=(0,r.getBytesCopy)(e),this.#s=0,this.#i=null,this.#o=null!=n?n:1024,this.#a=0}get data(){return(0,r.hexlify)(this.#n)}get dataLength(){return this.#n.length}get consumed(){return this.#a}get bytes(){return new Uint8Array(this.#n)}#l(e){if(this.#i)return this.#i.#l(e);this.#s+=e,(0,r.assert)(this.#o<1||this.#s<=this.#o*this.dataLength,`compressed ABI data exceeds inflation ratio of ${this.#o} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:(0,r.getBytesCopy)(this.#n),offset:this.#a,length:e,info:{bytesRead:this.#s,dataLength:this.dataLength}})}#c(e,n,f){let a=Math.ceil(n/t.WordSize)*t.WordSize;return this.#a+a>this.#n.length&&(this.allowLoose&&f&&this.#a+n<=this.#n.length?a=n:(0,r.assert)(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:(0,r.getBytesCopy)(this.#n),length:this.#n.length,offset:this.#a+a})),this.#n.slice(this.#a,this.#a+a)}subReader(e){const t=new h(this.#n.slice(this.#a+e),this.allowLoose,this.#o);return t.#i=this,t}readBytes(e,t){let n=this.#c(0,e,!!t);return this.#l(e),this.#a+=n.length,n.slice(0,e)}readValue(){return(0,r.toBigInt)(this.readBytes(t.WordSize))}readIndex(){return(0,r.toNumber)(this.readBytes(t.WordSize))}}t.Reader=h},1355:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddressCoder=void 0;const r=n(646),f=n(6508),a=n(9976),s=n(8869);class i extends s.Coder{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let n=a.Typed.dereference(t,"string");try{n=(0,r.getAddress)(n)}catch(e){return this._throwError(e.message,t)}return e.writeValue(n)}decode(e){return(0,r.getAddress)((0,f.toBeHex)(e.readValue(),20))}}t.AddressCoder=i},5754:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousCoder=void 0;const r=n(8869);class f extends r.Coder{coder;constructor(e){super(e.name,e.type,"_",e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}t.AnonymousCoder=f},3178:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayCoder=t.unpack=t.pack=void 0;const r=n(5347),f=n(9976),a=n(8869),s=n(5754);function i(e,t,n){let f=[];if(Array.isArray(n))f=n;else if(n&&"object"==typeof n){let e={};f=t.map((t=>{const f=t.localName;return(0,r.assert)(f,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:n}),(0,r.assert)(!e[f],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:n}),e[f]=!0,n[f]}))}else(0,r.assertArgument)(!1,"invalid tuple value","tuple",n);(0,r.assertArgument)(t.length===f.length,"types/value length mismatch","tuple",n);let s=new a.Writer,i=new a.Writer,o=[];t.forEach(((e,t)=>{let n=f[t];if(e.dynamic){let t=i.length;e.encode(i,n);let r=s.writeUpdatableValue();o.push((e=>{r(e+t)}))}else e.encode(s,n)})),o.forEach((e=>{e(s.length)}));let l=e.appendWriter(s);return l+=e.appendWriter(i),l}function o(e,t){let n=[],f=[],s=e.subReader(0);return t.forEach((t=>{let a=null;if(t.dynamic){let n=e.readIndex(),f=s.subReader(n);try{a=t.decode(f)}catch(e){if((0,r.isError)(e,"BUFFER_OVERRUN"))throw e;a=e,a.baseType=t.name,a.name=t.localName,a.type=t.type}}else try{a=t.decode(e)}catch(e){if((0,r.isError)(e,"BUFFER_OVERRUN"))throw e;a=e,a.baseType=t.name,a.name=t.localName,a.type=t.type}if(null==a)throw new Error("investigate");n.push(a),f.push(t.localName||null)})),a.Result.fromItems(n,f)}t.pack=i,t.unpack=o;class l extends a.Coder{coder;length;constructor(e,t,n){super("array",e.type+"["+(t>=0?t:"")+"]",n,-1===t||e.dynamic),(0,r.defineProperties)(this,{coder:e,length:t})}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanCoder=void 0;const r=n(9976),f=n(8869);class a extends f.Coder{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){const n=r.Typed.dereference(t,"bool");return e.writeValue(n?1:0)}decode(e){return!!e.readValue()}}t.BooleanCoder=a},2348:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BytesCoder=t.DynamicBytesCoder=void 0;const r=n(5347),f=n(8869);class a extends f.Coder{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=(0,r.getBytesCopy)(t);let n=e.writeValue(t.length);return n+=e.writeBytes(t),n}decode(e){return e.readBytes(e.readIndex(),!0)}}t.DynamicBytesCoder=a,t.BytesCoder=class extends a{constructor(e){super("bytes",e)}decode(e){return(0,r.hexlify)(super.decode(e))}}},9095:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FixedBytesCoder=void 0;const r=n(5347),f=n(9976),a=n(8869);class s extends a.Coder{size;constructor(e,t){let n="bytes"+String(e);super(n,n,t,!1),(0,r.defineProperties)(this,{size:e},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let n=(0,r.getBytesCopy)(f.Typed.dereference(t,this.type));return n.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(n)}decode(e){return(0,r.hexlify)(e.readBytes(this.size))}}t.FixedBytesCoder=s},8026:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NullCoder=void 0;const r=n(8869),f=new Uint8Array([]);class a extends r.Coder{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes(f)}decode(e){return e.readBytes(0),null}}t.NullCoder=a},7398:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NumberCoder=void 0;const r=n(5347),f=n(9976),a=n(8869),s=BigInt(0),i=BigInt(1),o=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class l extends a.Coder{size;signed;constructor(e,t,n){const f=(t?"int":"uint")+8*e;super(f,f,n,!1),(0,r.defineProperties)(this,{size:e,signed:t},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(e,t){let n=(0,r.getBigInt)(f.Typed.dereference(t,this.type)),l=(0,r.mask)(o,8*a.WordSize);if(this.signed){let e=(0,r.mask)(l,8*this.size-1);(n>e||n<-(e+i))&&this._throwError("value out-of-bounds",t),n=(0,r.toTwos)(n,8*a.WordSize)}else(n(0,r.mask)(l,8*this.size))&&this._throwError("value out-of-bounds",t);return e.writeValue(n)}decode(e){let t=(0,r.mask)(e.readValue(),8*this.size);return this.signed&&(t=(0,r.fromTwos)(t,8*this.size)),t}}t.NumberCoder=l},8766:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringCoder=void 0;const r=n(3948),f=n(9976),a=n(2348);class s extends a.DynamicBytesCoder{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,r.toUtf8Bytes)(f.Typed.dereference(t,"string")))}decode(e){return(0,r.toUtf8String)(super.decode(e))}}t.StringCoder=s},1693:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TupleCoder=void 0;const r=n(8166),f=n(9976),a=n(8869),s=n(3178);class i extends a.Coder{coders;constructor(e,t){let n=!1;const f=[];e.forEach((e=>{e.dynamic&&(n=!0),f.push(e.type)})),super("tuple","tuple("+f.join(",")+")",t,n),(0,r.defineProperties)(this,{coders:Object.freeze(e.slice())})}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});return this.coders.forEach(((n,r)=>{let f=n.localName;f&&1===t[f]&&("length"===f&&(f="_length"),null==e[f]&&(e[f]=e[r]))})),Object.freeze(e)}encode(e,t){const n=f.Typed.dereference(t,"tuple");return(0,s.pack)(e,this.coders,n)}decode(e){return(0,s.unpack)(e,this.coders)}}t.TupleCoder=i},189:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StructFragment=t.FunctionFragment=t.FallbackFragment=t.ConstructorFragment=t.EventFragment=t.ErrorFragment=t.NamedFragment=t.Fragment=t.ParamType=void 0;const r=n(5347),f=n(3562);function a(e){const t=new Set;return e.forEach((e=>t.add(e))),Object.freeze(t)}const s=a("external public payable override".split(" ")),i="constant external internal payable private public pure view override",o=a(i.split(" ")),l="constructor error event fallback function receive struct",c=a(l.split(" ")),u="calldata memory storage payable indexed",d=a(u.split(" ")),p=a([l,u,"tuple returns",i].join(" ").split(" ")),h={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},b=new RegExp("^(\\s*)"),g=new RegExp("^([0-9]+)"),m=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),y=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),v=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");class w{#a;#u;get offset(){return this.#a}get length(){return this.#u.length-this.#a}constructor(e){this.#a=0,this.#u=e.slice()}clone(){return new w(this.#u)}reset(){this.#a=0}#d(e=0,t=0){return new w(this.#u.slice(e,t).map((t=>Object.freeze(Object.assign({},t,{match:t.match-e,linkBack:t.linkBack-e,linkNext:t.linkNext-e})))))}popKeyword(e){const t=this.peek();if("KEYWORD"!==t.type||!e.has(t.text))throw new Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){const t=this.peek();throw new Error(`expected ${e}; got ${t.type} ${JSON.stringify(t.text)}`)}return this.pop().text}popParen(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=this.#d(this.#a+1,e.match+1);return this.#a=e.match+1,t}popParams(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=[];for(;this.#a=this.#u.length)throw new Error("out-of-bounds");return this.#u[this.#a]}peekKeyword(e){const t=this.peekType("KEYWORD");return null!=t&&e.has(t)?t:null}peekType(e){if(0===this.length)return null;const t=this.peek();return t.type===e?t.text:null}pop(){const e=this.peek();return this.#a++,e}toString(){const e=[];for(let t=this.#a;t`}}function A(e){const t=[],n=t=>{const n=s0&&"NUMBER"===t[t.length-1].type){const n=t.pop().text;e=n+e,t[t.length-1].value=(0,r.getNumber)(n)}if(0===t.length||"BRACKET"!==t[t.length-1].type)throw new Error("missing opening bracket");t[t.length-1].text+=e}}else if(o=i.match(m),o){if(l.text=o[1],s+=l.text.length,p.has(l.text)){l.type="KEYWORD";continue}if(l.text.match(v)){l.type="TYPE";continue}l.type="ID"}else{if(o=i.match(g),!o)throw new Error(`unexpected token ${JSON.stringify(i[0])} at position ${s}`);l.text=o[1],l.type="NUMBER",s+=l.text.length}}return new w(t.map((e=>Object.freeze(e))))}function k(e,t){let n=[];for(const r in t.keys())e.has(r)&&n.push(r);if(n.length>1)throw new Error(`conflicting types: ${n.join(", ")}`)}function P(e,t){if(t.peekKeyword(c)){const n=t.pop().text;if(n!==e)throw new Error(`expected ${e}, got ${n}`)}return t.popType("ID")}function E(e,t){const n=new Set;for(;;){const r=e.peekType("KEYWORD");if(null==r||t&&!t.has(r))break;if(e.pop(),n.has(r))throw new Error(`duplicate keywords: ${JSON.stringify(r)}`);n.add(r)}return Object.freeze(n)}function S(e){let t=E(e,o);return k(t,a("constant payable nonpayable".split(" "))),k(t,a("pure view payable nonpayable".split(" "))),t.has("view")?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function O(e,t){return e.popParams().map((e=>D.from(e,t)))}function x(e){if(e.peekType("AT")){if(e.pop(),e.peekType("NUMBER"))return(0,r.getBigInt)(e.pop().text);throw new Error("invalid gas")}return null}function T(e){if(e.length)throw new Error(`unexpected tokens at offset ${e.offset}: ${e.toString()}`)}const C=new RegExp(/^(.*)\[([0-9]*)\]$/);function N(e){const t=e.match(v);if((0,r.assertArgument)(t,"invalid type","type",e),"uint"===e)return"uint256";if("int"===e)return"int256";if(t[2]){const n=parseInt(t[2]);(0,r.assertArgument)(0!==n&&n<=32,"invalid bytes length","type",e)}else if(t[3]){const n=parseInt(t[3]);(0,r.assertArgument)(0!==n&&n<=256&&n%8==0,"invalid numeric width","type",e)}return e}const R={},B=Symbol.for("_ethers_internal"),I="_ParamTypeInternal",_="_ErrorInternal",F="_EventInternal",L="_ConstructorInternal",j="_FallbackInternal",U="_FunctionInternal",M="_StructInternal";class D{name;type;baseType;indexed;components;arrayLength;arrayChildren;constructor(e,t,n,f,a,s,i,o){if((0,r.assertPrivate)(e,R,"ParamType"),Object.defineProperty(this,B,{value:I}),s&&(s=Object.freeze(s.slice())),"array"===f){if(null==i||null==o)throw new Error("")}else if(null!=i||null!=o)throw new Error("");if("tuple"===f){if(null==s)throw new Error("")}else if(null!=s)throw new Error("");(0,r.defineProperties)(this,{name:t,type:n,baseType:f,indexed:a,components:s,arrayLength:i,arrayChildren:o})}format(e){if(null==e&&(e="sighash"),"json"===e){const t=this.name||"";if(this.isArray()){const e=JSON.parse(this.arrayChildren.format("json"));return e.name=t,e.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(e)}const n={type:"tuple"===this.baseType?"tuple":this.type,name:t};return"boolean"==typeof this.indexed&&(n.indexed=this.indexed),this.isTuple()&&(n.components=this.components.map((t=>JSON.parse(t.format(e))))),JSON.stringify(n)}let t="";return this.isArray()?(t+=this.arrayChildren.format(e),t+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?t+="("+this.components.map((t=>t.format(e))).join("full"===e?", ":",")+")":t+=this.type,"sighash"!==e&&(!0===this.indexed&&(t+=" indexed"),"full"===e&&this.name&&(t+=" "+this.name)),t}isArray(){return"array"===this.baseType}isTuple(){return"tuple"===this.baseType}isIndexable(){return null!=this.indexed}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(-1!==this.arrayLength&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map((e=>n.arrayChildren.walk(e,t)))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map(((e,r)=>n.components[r].walk(e,t)))}return t(this.type,e)}#p(e,t,n,r){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(-1!==this.arrayLength&&t.length!==this.arrayLength)throw new Error("array is wrong length");const f=this.arrayChildren,a=t.slice();return a.forEach(((t,r)=>{f.#p(e,t,n,(e=>{a[r]=e}))})),void r(a)}if(this.isTuple()){const f=this.components;let a;if(Array.isArray(t))a=t.slice();else{if(null==t||"object"!=typeof t)throw new Error("invalid tuple value");a=f.map((e=>{if(!e.name)throw new Error("cannot use object value with unnamed components");if(!(e.name in t))throw new Error(`missing value for component ${e.name}`);return t[e.name]}))}if(a.length!==this.components.length)throw new Error("array is wrong length");return a.forEach(((t,r)=>{f[r].#p(e,t,n,(e=>{a[r]=e}))})),void r(a)}const f=n(this.type,t);f.then?e.push(async function(){r(await f)}()):r(f)}async walkAsync(e,t){const n=[],r=[e];return this.#p(n,e,t,(e=>{r[0]=e})),n.length&&await Promise.all(n),r[0]}static from(e,t){if(D.isParamType(e))return e;if("string"==typeof e)try{return D.from(A(e),t)}catch(t){(0,r.assertArgument)(!1,"invalid param type","obj",e)}else if(e instanceof w){let n="",r="",f=null;E(e,a(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(r="tuple",f=e.popParams().map((e=>D.from(e))),n=`tuple(${f.map((e=>e.format())).join(",")})`):(n=N(e.popType("TYPE")),r=n);let s=null,i=null;for(;e.length&&e.peekType("BRACKET");){const t=e.pop();s=new D(R,"",n,r,null,f,i,s),i=t.value,n+=t.text,r="array",f=null}let o=null;if(E(e,d).has("indexed")){if(!t)throw new Error("");o=!0}const l=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new D(R,l,n,r,o,f,i,s)}const n=e.name;(0,r.assertArgument)(!n||"string"==typeof n&&n.match(y),"invalid name","obj.name",n);let f=e.indexed;null!=f&&((0,r.assertArgument)(t,"parameter cannot be indexed","obj.indexed",e.indexed),f=!!f);let s=e.type,i=s.match(C);if(i){const t=parseInt(i[2]||"-1"),r=D.from({type:i[1],components:e.components});return new D(R,n||"",s,"array",f,null,t,r)}if("tuple"===s||s.startsWith("tuple(")||s.startsWith("(")){const t=null!=e.components?e.components.map((e=>D.from(e))):null;return new D(R,n||"",s,"tuple",f,t,null,null)}return s=N(e.type),new D(R,n||"",s,s,f,null,null,null)}static isParamType(e){return e&&e[B]===I}}t.ParamType=D;class z{type;inputs;constructor(e,t,n){(0,r.assertPrivate)(e,R,"Fragment"),n=Object.freeze(n.slice()),(0,r.defineProperties)(this,{type:t,inputs:n})}static from(e){if("string"==typeof e){try{z.from(JSON.parse(e))}catch(e){}return z.from(A(e))}if(e instanceof w)switch(e.peekKeyword(c)){case"constructor":return q.from(e);case"error":return V.from(e);case"event":return K.from(e);case"fallback":case"receive":return Q.from(e);case"function":return J.from(e);case"struct":return W.from(e)}else if("object"==typeof e){switch(e.type){case"constructor":return q.from(e);case"error":return V.from(e);case"event":return K.from(e);case"fallback":case"receive":return Q.from(e);case"function":return J.from(e);case"struct":return W.from(e)}(0,r.assert)(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}(0,r.assertArgument)(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return q.isFragment(e)}static isError(e){return V.isFragment(e)}static isEvent(e){return K.isFragment(e)}static isFunction(e){return J.isFragment(e)}static isStruct(e){return W.isFragment(e)}}t.Fragment=z;class H extends z{name;constructor(e,t,n,f){super(e,t,f),(0,r.assertArgument)("string"==typeof n&&n.match(y),"invalid identifier","name",n),f=Object.freeze(f.slice()),(0,r.defineProperties)(this,{name:n})}}function G(e,t){return"("+t.map((t=>t.format(e))).join("full"===e?", ":",")+")"}t.NamedFragment=H;class V extends H{constructor(e,t,n){super(e,"error",t,n),Object.defineProperty(this,B,{value:_})}get selector(){return(0,f.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("error"),t.push(this.name+G(e,this.inputs)),t.join(" ")}static from(e){if(V.isFragment(e))return e;if("string"==typeof e)return V.from(A(e));if(e instanceof w){const t=P("error",e),n=O(e);return T(e),new V(R,t,n)}return new V(R,e.name,e.inputs?e.inputs.map(D.from):[])}static isFragment(e){return e&&e[B]===_}}t.ErrorFragment=V;class K extends H{anonymous;constructor(e,t,n,f){super(e,"event",t,n),Object.defineProperty(this,B,{value:F}),(0,r.defineProperties)(this,{anonymous:f})}get topicHash(){return(0,f.id)(this.format("sighash"))}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("event"),t.push(this.name+G(e,this.inputs)),"sighash"!==e&&this.anonymous&&t.push("anonymous"),t.join(" ")}static getTopicHash(e,t){return t=(t||[]).map((e=>D.from(e))),new K(R,e,t,!1).topicHash}static from(e){if(K.isFragment(e))return e;if("string"==typeof e)try{return K.from(A(e))}catch(t){(0,r.assertArgument)(!1,"invalid event fragment","obj",e)}else if(e instanceof w){const t=P("event",e),n=O(e,!0),r=!!E(e,a(["anonymous"])).has("anonymous");return T(e),new K(R,t,n,r)}return new K(R,e.name,e.inputs?e.inputs.map((e=>D.from(e,!0))):[],!!e.anonymous)}static isFragment(e){return e&&e[B]===F}}t.EventFragment=K;class q extends z{payable;gas;constructor(e,t,n,f,a){super(e,t,n),Object.defineProperty(this,B,{value:L}),(0,r.defineProperties)(this,{payable:f,gas:a})}format(e){if((0,r.assert)(null!=e&&"sighash"!==e,"cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),"json"===e)return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[`constructor${G(e,this.inputs)}`];return this.payable&&t.push("payable"),null!=this.gas&&t.push(`@${this.gas.toString()}`),t.join(" ")}static from(e){if(q.isFragment(e))return e;if("string"==typeof e)try{return q.from(A(e))}catch(t){(0,r.assertArgument)(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof w){E(e,a(["constructor"]));const t=O(e),n=!!E(e,s).has("payable"),r=x(e);return T(e),new q(R,"constructor",t,n,r)}return new q(R,"constructor",e.inputs?e.inputs.map(D.from):[],!!e.payable,null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[B]===L}}t.ConstructorFragment=q;class Q extends z{payable;constructor(e,t,n){super(e,"fallback",t),Object.defineProperty(this,B,{value:j}),(0,r.defineProperties)(this,{payable:n})}format(e){const t=0===this.inputs.length?"receive":"fallback";if("json"===e){const e=this.payable?"payable":"nonpayable";return JSON.stringify({type:t,stateMutability:e})}return`${t}()${this.payable?" payable":""}`}static from(e){if(Q.isFragment(e))return e;if("string"==typeof e)try{return Q.from(A(e))}catch(t){(0,r.assertArgument)(!1,"invalid fallback fragment","obj",e)}else if(e instanceof w){const t=e.toString(),n=e.peekKeyword(a(["fallback","receive"]));if((0,r.assertArgument)(n,"type must be fallback or receive","obj",t),"receive"===e.popKeyword(a(["fallback","receive"]))){const t=O(e);return(0,r.assertArgument)(0===t.length,"receive cannot have arguments","obj.inputs",t),E(e,a(["payable"])),T(e),new Q(R,[],!0)}let f=O(e);f.length?(0,r.assertArgument)(1===f.length&&"bytes"===f[0].type,"invalid fallback inputs","obj.inputs",f.map((e=>e.format("minimal"))).join(", ")):f=[D.from("bytes")];const s=S(e);if((0,r.assertArgument)("nonpayable"===s||"payable"===s,"fallback cannot be constants","obj.stateMutability",s),E(e,a(["returns"])).has("returns")){const t=O(e);(0,r.assertArgument)(1===t.length&&"bytes"===t[0].type,"invalid fallback outputs","obj.outputs",t.map((e=>e.format("minimal"))).join(", "))}return T(e),new Q(R,f,"payable"===s)}if("receive"===e.type)return new Q(R,[],!0);if("fallback"===e.type){const t=[D.from("bytes")],n="payable"===e.stateMutability;return new Q(R,t,n)}(0,r.assertArgument)(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[B]===j}}t.FallbackFragment=Q;class J extends H{constant;outputs;stateMutability;payable;gas;constructor(e,t,n,f,a,s){super(e,"function",t,f),Object.defineProperty(this,B,{value:U}),a=Object.freeze(a.slice());const i="view"===n||"pure"===n,o="payable"===n;(0,r.defineProperties)(this,{constant:i,gas:s,outputs:a,payable:o,stateMutability:n})}get selector(){return(0,f.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e)))),outputs:this.outputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("function"),t.push(this.name+G(e,this.inputs)),"sighash"!==e&&("nonpayable"!==this.stateMutability&&t.push(this.stateMutability),this.outputs&&this.outputs.length&&(t.push("returns"),t.push(G(e,this.outputs))),null!=this.gas&&t.push(`@${this.gas.toString()}`)),t.join(" ")}static getSelector(e,t){return t=(t||[]).map((e=>D.from(e))),new J(R,e,"view",t,[],null).selector}static from(e){if(J.isFragment(e))return e;if("string"==typeof e)try{return J.from(A(e))}catch(t){(0,r.assertArgument)(!1,"invalid function fragment","obj",e)}else if(e instanceof w){const t=P("function",e),n=O(e),r=S(e);let f=[];E(e,a(["returns"])).has("returns")&&(f=O(e));const s=x(e);return T(e),new J(R,t,r,n,f,s)}let t=e.stateMutability;return null==t&&(t="payable","boolean"==typeof e.constant?(t="view",e.constant||(t="payable","boolean"!=typeof e.payable||e.payable||(t="nonpayable"))):"boolean"!=typeof e.payable||e.payable||(t="nonpayable")),new J(R,e.name,t,e.inputs?e.inputs.map(D.from):[],e.outputs?e.outputs.map(D.from):[],null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[B]===U}}t.FunctionFragment=J;class W extends H{constructor(e,t,n){super(e,"struct",t,n),Object.defineProperty(this,B,{value:M})}format(){throw new Error("@TODO")}static from(e){if("string"==typeof e)try{return W.from(A(e))}catch(t){(0,r.assertArgument)(!1,"invalid struct fragment","obj",e)}else if(e instanceof w){const t=P("struct",e),n=O(e);return T(e),new W(R,t,n)}return new W(R,e.name,e.inputs?e.inputs.map(D.from):[])}static isFragment(e){return e&&e[B]===M}}t.StructFragment=W},8456:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Typed=t.Result=t.TransactionDescription=t.LogDescription=t.ErrorDescription=t.Interface=t.Indexed=t.checkResultErrors=t.StructFragment=t.ParamType=t.NamedFragment=t.FunctionFragment=t.Fragment=t.FallbackFragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.encodeBytes32String=t.decodeBytes32String=t.AbiCoder=void 0;var r=n(954);Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return r.AbiCoder}});var f=n(9414);Object.defineProperty(t,"decodeBytes32String",{enumerable:!0,get:function(){return f.decodeBytes32String}}),Object.defineProperty(t,"encodeBytes32String",{enumerable:!0,get:function(){return f.encodeBytes32String}});var a=n(189);Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return a.ConstructorFragment}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return a.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return a.EventFragment}}),Object.defineProperty(t,"FallbackFragment",{enumerable:!0,get:function(){return a.FallbackFragment}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return a.Fragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return a.FunctionFragment}}),Object.defineProperty(t,"NamedFragment",{enumerable:!0,get:function(){return a.NamedFragment}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return a.ParamType}}),Object.defineProperty(t,"StructFragment",{enumerable:!0,get:function(){return a.StructFragment}});var s=n(5863);Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return s.checkResultErrors}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return s.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return s.Interface}}),Object.defineProperty(t,"ErrorDescription",{enumerable:!0,get:function(){return s.ErrorDescription}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return s.LogDescription}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return s.TransactionDescription}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return s.Result}});var i=n(9976);Object.defineProperty(t,"Typed",{enumerable:!0,get:function(){return i.Typed}})},5863:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Interface=t.Indexed=t.ErrorDescription=t.TransactionDescription=t.LogDescription=t.Result=t.checkResultErrors=void 0;const r=n(2291),f=n(3562),a=n(5347),s=n(954),i=n(8869);Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return i.checkResultErrors}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return i.Result}});const o=n(189),l=n(9976);class c{fragment;name;signature;topic;args;constructor(e,t,n){const r=e.name,f=e.format();(0,a.defineProperties)(this,{fragment:e,name:r,signature:f,topic:t,args:n})}}t.LogDescription=c;class u{fragment;name;args;signature;selector;value;constructor(e,t,n,r){const f=e.name,s=e.format();(0,a.defineProperties)(this,{fragment:e,name:f,args:n,signature:s,selector:t,value:r})}}t.TransactionDescription=u;class d{fragment;name;args;signature;selector;constructor(e,t,n){const r=e.name,f=e.format();(0,a.defineProperties)(this,{fragment:e,name:r,args:n,signature:f,selector:t})}}t.ErrorDescription=d;class p{hash;_isIndexed;static isIndexed(e){return!(!e||!e._isIndexed)}constructor(e){(0,a.defineProperties)(this,{hash:e,_isIndexed:!0})}}t.Indexed=p;const h={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},b={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:e=>`reverted with reason string ${JSON.stringify(e)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:e=>{let t="unknown panic code";return e>=0&&e<=255&&h[e.toString()]&&(t=h[e.toString()]),`reverted with panic code 0x${e.toString(16)} (${t})`}}};class g{fragments;deploy;fallback;receive;#h;#b;#g;#m;constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,this.#g=new Map,this.#h=new Map,this.#b=new Map;const n=[];for(const e of t)try{n.push(o.Fragment.from(e))}catch(t){console.log(`[Warning] Invalid Fragment ${JSON.stringify(e)}:`,t.message)}(0,a.defineProperties)(this,{fragments:Object.freeze(n)});let r=null,f=!1;this.#m=this.getAbiCoder(),this.fragments.forEach(((e,t)=>{let n;switch(e.type){case"constructor":return this.deploy?void console.log("duplicate definition - constructor"):void(0,a.defineProperties)(this,{deploy:e});case"fallback":return void(0===e.inputs.length?f=!0:((0,a.assertArgument)(!r||e.payable!==r.payable,"conflicting fallback fragments",`fragments[${t}]`,e),r=e,f=r.payable));case"function":n=this.#g;break;case"event":n=this.#b;break;case"error":n=this.#h;break;default:return}const s=e.format();n.has(s)||n.set(s,e)})),this.deploy||(0,a.defineProperties)(this,{deploy:o.ConstructorFragment.from("constructor()")}),(0,a.defineProperties)(this,{fallback:r,receive:f})}format(e){const t=e?"minimal":"full";return this.fragments.map((e=>e.format(t)))}formatJson(){const e=this.fragments.map((e=>e.format("json")));return JSON.stringify(e.map((e=>JSON.parse(e))))}getAbiCoder(){return s.AbiCoder.defaultAbiCoder()}#y(e,t,n){if((0,a.isHexString)(e)){const t=e.toLowerCase();for(const e of this.#g.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){const r=[];for(const[t,n]of this.#g)t.split("(")[0]===e&&r.push(n);if(t){const e=t.length>0?t[t.length-1]:null;let n=t.length,f=!0;l.Typed.isTyped(e)&&"overrides"===e.type&&(f=!1,n--);for(let e=r.length-1;e>=0;e--){const t=r[e].inputs.length;t===n||f&&t===n-1||r.splice(e,1)}for(let e=r.length-1;e>=0;e--){const n=r[e].inputs;for(let f=0;f=n.length){if("overrides"===t[f].type)continue;r.splice(e,1);break}if(t[f].type!==n[f].baseType){r.splice(e,1);break}}}}if(1===r.length&&t&&t.length!==r[0].inputs.length){const e=t[t.length-1];(null==e||Array.isArray(e)||"object"!=typeof e)&&r.splice(0,1)}if(0===r.length)return null;if(r.length>1&&n){const t=r.map((e=>JSON.stringify(e.format()))).join(", ");(0,a.assertArgument)(!1,`ambiguous function description (i.e. matches ${t})`,"key",e)}return r[0]}return this.#g.get(o.FunctionFragment.from(e).format())||null}getFunctionName(e){const t=this.#y(e,null,!1);return(0,a.assertArgument)(t,"no matching function","key",e),t.name}hasFunction(e){return!!this.#y(e,null,!1)}getFunction(e,t){return this.#y(e,t||null,!0)}forEachFunction(e){const t=Array.from(this.#g.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n=0;e--)r[e].inputs.length=0;e--){const n=r[e].inputs;for(let f=0;f1&&n){const t=r.map((e=>JSON.stringify(e.format()))).join(", ");(0,a.assertArgument)(!1,`ambiguous event description (i.e. matches ${t})`,"key",e)}return r[0]}return this.#b.get(o.EventFragment.from(e).format())||null}getEventName(e){const t=this.#v(e,null,!1);return(0,a.assertArgument)(t,"no matching event","key",e),t.name}hasEvent(e){return!!this.#v(e,null,!1)}getEvent(e,t){return this.#v(e,t||null,!0)}forEachEvent(e){const t=Array.from(this.#b.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n1){const n=t.map((e=>JSON.stringify(e.format()))).join(", ");(0,a.assertArgument)(!1,`ambiguous error description (i.e. ${n})`,"name",e)}return t[0]}if("Error(string)"===(e=o.ErrorFragment.from(e).format()))return o.ErrorFragment.from("error Error(string)");if("Panic(uint256)"===e)return o.ErrorFragment.from("error Panic(uint256)");return this.#h.get(e)||null}forEachError(e){const t=Array.from(this.#h.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n"string"===e.type?(0,f.id)(t):"bytes"===e.type?(0,r.keccak256)((0,a.hexlify)(t)):("bool"===e.type&&"boolean"==typeof t?t=t?"0x01":"0x00":e.type.match(/^u?int/)?t=(0,a.toBeHex)(t):e.type.match(/^bytes/)?t=(0,a.zeroPadBytes)(t,32):"address"===e.type&&this.#m.encode(["address"],[t]),(0,a.zeroPadValue)((0,a.hexlify)(t),32));for(t.forEach(((t,r)=>{const f=e.inputs[r];f.indexed?null==t?n.push(null):"array"===f.baseType||"tuple"===f.baseType?(0,a.assertArgument)(!1,"filtering with tuples or arrays not supported","contract."+f.name,t):Array.isArray(t)?n.push(t.map((e=>s(f,e)))):n.push(s(f,t)):(0,a.assertArgument)(null==t,"cannot filter non-indexed parameters; must be null","contract."+f.name,t)}));n.length&&null===n[n.length-1];)n.pop();return n}encodeEventLog(e,t){if("string"==typeof e){const t=this.getEvent(e);(0,a.assertArgument)(t,"unknown event","eventFragment",e),e=t}const n=[],s=[],i=[];return e.anonymous||n.push(e.topicHash),(0,a.assertArgument)(t.length===e.inputs.length,"event arguments/values mismatch","values",t),e.inputs.forEach(((e,a)=>{const o=t[a];if(e.indexed)if("string"===e.type)n.push((0,f.id)(o));else if("bytes"===e.type)n.push((0,r.keccak256)(o));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(this.#m.encode([e.type],[o]))}else s.push(e),i.push(o)})),{data:this.#m.encode(s,i),topics:n}}decodeEventLog(e,t,n){if("string"==typeof e){const t=this.getEvent(e);(0,a.assertArgument)(t,"unknown event","eventFragment",e),e=t}if(null!=n&&!e.anonymous){const t=e.topicHash;(0,a.assertArgument)((0,a.isHexString)(n[0],32)&&n[0].toLowerCase()===t,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const r=[],f=[],s=[];e.inputs.forEach(((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(r.push(o.ParamType.from({type:"bytes32",name:e.name})),s.push(!0)):(r.push(e),s.push(!1)):(f.push(e),s.push(!1))}));const l=null!=n?this.#m.decode(r,(0,a.concat)(n)):null,c=this.#m.decode(f,t,!0),u=[],d=[];let h=0,b=0;return e.inputs.forEach(((e,t)=>{let n=null;if(e.indexed)if(null==l)n=new p(null);else if(s[t])n=new p(l[b++]);else try{n=l[b++]}catch(e){n=e}else try{n=c[h++]}catch(e){n=e}u.push(n),d.push(e.name||null)})),i.Result.fromItems(u,d)}parseTransaction(e){const t=(0,a.getBytes)(e.data,"tx.data"),n=(0,a.getBigInt)(null!=e.value?e.value:0,"tx.value"),r=this.getFunction((0,a.hexlify)(t.slice(0,4)));if(!r)return null;const f=this.#m.decode(r.inputs,t.slice(4));return new u(r,r.selector,f,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new c(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){const t=(0,a.hexlify)(e),n=this.getError((0,a.dataSlice)(t,0,4));if(!n)return null;const r=this.#m.decode(n.inputs,(0,a.dataSlice)(t,4));return new d(n,n.selector,r)}static from(e){return e instanceof g?e:"string"==typeof e?new g(JSON.parse(e)):"function"==typeof e.formatJson?new g(e.formatJson()):"function"==typeof e.format?new g(e.format("json")):new g(e)}}t.Interface=g},9976:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Typed=void 0;const r=n(5347),f={};function a(e,t){let n=!1;return t<0&&(n=!0,t*=-1),new o(f,`${n?"":"u"}int${t}`,e,{signed:n,width:t})}function s(e,t){return new o(f,`bytes${t||""}`,e,{size:t})}const i=Symbol.for("_ethers_typed");class o{type;value;#w;_typedSymbol;constructor(e,t,n,a){null==a&&(a=null),(0,r.assertPrivate)(f,e,"Typed"),(0,r.defineProperties)(this,{_typedSymbol:i,type:t,value:n}),this.#w=a,this.format()}format(){if("array"===this.type)throw new Error("");if("dynamicArray"===this.type)throw new Error("");return"tuple"===this.type?`tuple(${this.value.map((e=>e.format())).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return"string"===this.type}get tupleName(){if("tuple"!==this.type)throw TypeError("not a tuple");return this.#w}get arrayLength(){if("array"!==this.type)throw TypeError("not an array");return!0===this.#w?-1:!1===this.#w?this.value.length:null}static from(e,t){return new o(f,e,t)}static uint8(e){return a(e,8)}static uint16(e){return a(e,16)}static uint24(e){return a(e,24)}static uint32(e){return a(e,32)}static uint40(e){return a(e,40)}static uint48(e){return a(e,48)}static uint56(e){return a(e,56)}static uint64(e){return a(e,64)}static uint72(e){return a(e,72)}static uint80(e){return a(e,80)}static uint88(e){return a(e,88)}static uint96(e){return a(e,96)}static uint104(e){return a(e,104)}static uint112(e){return a(e,112)}static uint120(e){return a(e,120)}static uint128(e){return a(e,128)}static uint136(e){return a(e,136)}static uint144(e){return a(e,144)}static uint152(e){return a(e,152)}static uint160(e){return a(e,160)}static uint168(e){return a(e,168)}static uint176(e){return a(e,176)}static uint184(e){return a(e,184)}static uint192(e){return a(e,192)}static uint200(e){return a(e,200)}static uint208(e){return a(e,208)}static uint216(e){return a(e,216)}static uint224(e){return a(e,224)}static uint232(e){return a(e,232)}static uint240(e){return a(e,240)}static uint248(e){return a(e,248)}static uint256(e){return a(e,256)}static uint(e){return a(e,256)}static int8(e){return a(e,-8)}static int16(e){return a(e,-16)}static int24(e){return a(e,-24)}static int32(e){return a(e,-32)}static int40(e){return a(e,-40)}static int48(e){return a(e,-48)}static int56(e){return a(e,-56)}static int64(e){return a(e,-64)}static int72(e){return a(e,-72)}static int80(e){return a(e,-80)}static int88(e){return a(e,-88)}static int96(e){return a(e,-96)}static int104(e){return a(e,-104)}static int112(e){return a(e,-112)}static int120(e){return a(e,-120)}static int128(e){return a(e,-128)}static int136(e){return a(e,-136)}static int144(e){return a(e,-144)}static int152(e){return a(e,-152)}static int160(e){return a(e,-160)}static int168(e){return a(e,-168)}static int176(e){return a(e,-176)}static int184(e){return a(e,-184)}static int192(e){return a(e,-192)}static int200(e){return a(e,-200)}static int208(e){return a(e,-208)}static int216(e){return a(e,-216)}static int224(e){return a(e,-224)}static int232(e){return a(e,-232)}static int240(e){return a(e,-240)}static int248(e){return a(e,-248)}static int256(e){return a(e,-256)}static int(e){return a(e,-256)}static bytes1(e){return s(e,1)}static bytes2(e){return s(e,2)}static bytes3(e){return s(e,3)}static bytes4(e){return s(e,4)}static bytes5(e){return s(e,5)}static bytes6(e){return s(e,6)}static bytes7(e){return s(e,7)}static bytes8(e){return s(e,8)}static bytes9(e){return s(e,9)}static bytes10(e){return s(e,10)}static bytes11(e){return s(e,11)}static bytes12(e){return s(e,12)}static bytes13(e){return s(e,13)}static bytes14(e){return s(e,14)}static bytes15(e){return s(e,15)}static bytes16(e){return s(e,16)}static bytes17(e){return s(e,17)}static bytes18(e){return s(e,18)}static bytes19(e){return s(e,19)}static bytes20(e){return s(e,20)}static bytes21(e){return s(e,21)}static bytes22(e){return s(e,22)}static bytes23(e){return s(e,23)}static bytes24(e){return s(e,24)}static bytes25(e){return s(e,25)}static bytes26(e){return s(e,26)}static bytes27(e){return s(e,27)}static bytes28(e){return s(e,28)}static bytes29(e){return s(e,29)}static bytes30(e){return s(e,30)}static bytes31(e){return s(e,31)}static bytes32(e){return s(e,32)}static address(e){return new o(f,"address",e)}static bool(e){return new o(f,"bool",!!e)}static bytes(e){return new o(f,"bytes",e)}static string(e){return new o(f,"string",e)}static array(e,t){throw new Error("not implemented yet")}static tuple(e,t){throw new Error("not implemented yet")}static overrides(e){return new o(f,"overrides",Object.assign({},e))}static isTyped(e){return e&&"object"==typeof e&&"_typedSymbol"in e&&e._typedSymbol===i}static dereference(e,t){if(o.isTyped(e)){if(e.type!==t)throw new Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}}t.Typed=o},7262:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getIcapAddress=t.getAddress=void 0;const r=n(2291),f=n(5347),a=BigInt(0),s=BigInt(36);function i(e){const t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let e=0;e<40;e++)n[e]=t[e].charCodeAt(0);const a=(0,f.getBytes)((0,r.keccak256)(n));for(let e=0;e<40;e+=2)a[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&a[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}const o={};for(let e=0;e<10;e++)o[String(e)]=String(e);for(let e=0;e<26;e++)o[String.fromCharCode(65+e)]=String(10+e);function l(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>o[e])).join("");for(;t.length>=15;){let e=t.substring(0,15);t=parseInt(e,10)%97+t.substring(e.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n="0"+n;return n}const c=function(){const e={};for(let t=0;t<36;t++)e["0123456789abcdefghijklmnopqrstuvwxyz"[t]]=BigInt(t);return e}();function u(e){if((0,f.assertArgument)("string"==typeof e,"invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);const t=i(e);return(0,f.assertArgument)(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,f.assertArgument)(e.substring(2,4)===l(e),"bad icap checksum","address",e);let t=function(e){e=e.toLowerCase();let t=a;for(let n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=void 0;const r=n(5347),f=n(7262);function a(e){return e&&"function"==typeof e.getAddress}async function s(e,t){const n=await t;return null!=n&&"0x0000000000000000000000000000000000000000"!==n||((0,r.assert)("string"!=typeof e,"unconfigured name","UNCONFIGURED_NAME",{value:e}),(0,r.assertArgument)(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),(0,f.getAddress)(n)}t.isAddressable=a,t.isAddress=function(e){try{return(0,f.getAddress)(e),!0}catch(e){}return!1},t.resolveAddress=function(e,t){return"string"==typeof e?e.match(/^0x[0-9a-f]{40}$/i)?(0,f.getAddress)(e):((0,r.assert)(null!=t,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),s(e,t.resolveName(e))):a(e)?s(e,e.getAddress()):e&&"function"==typeof e.then?s(e,e):void(0,r.assertArgument)(!1,"unsupported addressable value","target",e)}},1891:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCreate2Address=t.getCreateAddress=void 0;const r=n(2291),f=n(5347),a=n(7262);t.getCreateAddress=function(e){const t=(0,a.getAddress)(e.from);let n=(0,f.getBigInt)(e.nonce,"tx.nonce").toString(16);return n="0"===n?"0x":n.length%2?"0x0"+n:"0x"+n,(0,a.getAddress)((0,f.dataSlice)((0,r.keccak256)((0,f.encodeRlp)([t,n])),12))},t.getCreate2Address=function(e,t,n){const s=(0,a.getAddress)(e),i=(0,f.getBytes)(t,"salt"),o=(0,f.getBytes)(n,"initCodeHash");return(0,f.assertArgument)(32===i.length,"salt must be 32 bytes","salt",t),(0,f.assertArgument)(32===o.length,"initCodeHash must be 32 bytes","initCodeHash",n),(0,a.getAddress)((0,f.dataSlice)((0,r.keccak256)((0,f.concat)(["0xff",s,i,o])),12))}},646:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=void 0;var r=n(7262);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return r.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return r.getIcapAddress}});var f=n(1891);Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return f.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return f.getCreate2Address}});var a=n(345);Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return a.isAddressable}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return a.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return a.resolveAddress}})},5239:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroAddress=void 0,t.ZeroAddress="0x0000000000000000000000000000000000000000"},5255:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroHash=void 0,t.ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},1295:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=t.ZeroHash=t.ZeroAddress=void 0;var r=n(5239);Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return r.ZeroAddress}});var f=n(5255);Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return f.ZeroHash}});var a=n(9197);Object.defineProperty(t,"N",{enumerable:!0,get:function(){return a.N}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return a.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return a.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return a.MinInt256}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return a.MaxInt256}});var s=n(6245);Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return s.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return s.MessagePrefix}})},9197:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=void 0,t.N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),t.WeiPerEther=BigInt("1000000000000000000"),t.MaxUint256=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),t.MinInt256=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),t.MaxInt256=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},6245:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=void 0,t.EtherSymbol="Ξ",t.MessagePrefix="Ethereum Signed Message:\n"},1008:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Contract=t.BaseContract=t.resolveArgs=t.copyOverrides=void 0;const r=n(8456),f=n(646),a=n(3807),s=n(5347),i=n(6526),o=BigInt(0);function l(e){return e&&"function"==typeof e.call}function c(e){return e&&"function"==typeof e.estimateGas}function u(e){return e&&"function"==typeof e.resolveName}function d(e){return e&&"function"==typeof e.sendTransaction}function p(e){if(null!=e){if(u(e))return e;if(e.provider)return e.provider}}class h{#A;fragment;constructor(e,t,n){if((0,s.defineProperties)(this,{fragment:t}),t.inputs.lengthnull==n[t]?null:e.walkAsync(n[t],((e,t)=>"address"===e?Array.isArray(t)?Promise.all(t.map((e=>(0,f.resolveAddress)(e,a)))):(0,f.resolveAddress)(t,a):t)))));return e.interface.encodeFilterTopics(t,r)}()}getTopicFilter(){return this.#A}}function b(e,t){return null==e?null:"function"==typeof e[t]?e:e.provider&&"function"==typeof e.provider[t]?e.provider:null}function g(e){return null==e?null:e.provider||null}async function m(e,t){const n=r.Typed.dereference(e,"overrides");(0,s.assertArgument)("object"==typeof n,"invalid overrides parameter","overrides",e);const f=(0,a.copyRequest)(n);return(0,s.assertArgument)(null==f.to||(t||[]).indexOf("to")>=0,"cannot override to","overrides.to",f.to),(0,s.assertArgument)(null==f.data||(t||[]).indexOf("data")>=0,"cannot override data","overrides.data",f.data),f.from&&(f.from=f.from),f}async function y(e,t,n){const a=b(e,"resolveName"),s=u(a)?a:null;return await Promise.all(t.map(((e,t)=>e.walkAsync(n[t],((e,t)=>(t=r.Typed.dereference(t,e),"address"===e?(0,f.resolveAddress)(t,s):t))))))}function v(e){const t=async function(t){const n=await m(t,["data"]);n.to=await e.getAddress(),n.from&&(n.from=await(0,f.resolveAddress)(n.from,p(e.runner)));const r=e.interface,a=(0,s.getBigInt)(n.value||o,"overrides.value")===o,i="0x"===(n.data||"0x");!r.fallback||r.fallback.payable||!r.receive||i||a||(0,s.assertArgument)(!1,"cannot send data to receive or send value to non-payable fallback","overrides",t),(0,s.assertArgument)(r.fallback||i,"cannot send data to receive-only contract","overrides.data",n.data);const l=r.receive||r.fallback&&r.fallback.payable;return(0,s.assertArgument)(l||a,"cannot send value to non-payable fallback","overrides.value",n.value),(0,s.assertArgument)(r.fallback||i,"cannot send data to receive-only contract","overrides.data",n.data),n},n=async function(n){const r=e.runner;(0,s.assert)(d(r),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const f=await r.sendTransaction(await t(n)),a=g(e.runner);return new i.ContractTransactionResponse(e.interface,a,f)},r=async e=>await n(e);return(0,s.defineProperties)(r,{_contract:e,estimateGas:async function(n){const r=b(e.runner,"estimateGas");return(0,s.assert)(c(r),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await r.estimateGas(await t(n))},populateTransaction:t,send:n,staticCall:async function(n){const r=b(e.runner,"call");(0,s.assert)(l(r),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const f=await t(n);try{return await r.call(f)}catch(t){if((0,s.isCallException)(t)&&t.data)throw e.interface.makeError(t.data,f);throw t}}}),r}t.copyOverrides=m,t.resolveArgs=y;const w=Symbol.for("_ethersInternal_contract"),A=new WeakMap;function k(e){return A.get(e[w])}async function P(e,t){let n,r=null;if(Array.isArray(t)){const r=function(t){if((0,s.isHexString)(t,32))return t;const n=e.interface.getEvent(t);return(0,s.assertArgument)(n,"unknown fragment","name",t),n.topicHash};n=t.map((e=>null==e?null:Array.isArray(e)?e.map(r):r(e)))}else"*"===t?n=[null]:"string"==typeof t?(0,s.isHexString)(t,32)?n=[t]:(r=e.interface.getEvent(t),(0,s.assertArgument)(r,"unknown fragment","event",t),n=[r.topicHash]):(f=t)&&"object"==typeof f&&"getTopicFilter"in f&&"function"==typeof f.getTopicFilter&&f.fragment?n=await t.getTopicFilter():"fragment"in t?(r=t.fragment,n=[r.topicHash]):(0,s.assertArgument)(!1,"unknown event name","event",t);var f;return n=n.map((e=>{if(null==e)return null;if(Array.isArray(e)){const t=Array.from(new Set(e.map((e=>e.toLowerCase()))).values());return 1===t.length?t[0]:(t.sort(),t)}return e.toLowerCase()})),{fragment:r,tag:n.map((e=>null==e?"null":Array.isArray(e)?e.join("|"):e)).join("&"),topics:n}}async function E(e,t){const{subs:n}=k(e);return n.get((await P(e,t)).tag)||null}async function S(e,t,n){const r=g(e.runner);(0,s.assert)(r,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});const{fragment:f,tag:a,topics:o}=await P(e,n),{addr:l,subs:c}=k(e);let u=c.get(a);if(!u){const t={address:l||e,topics:o},s=t=>{let r=f;if(null==r)try{r=e.interface.getEvent(t.topics[0])}catch(e){}if(r){const a=r,s=f?e.interface.decodeEventLog(f,t.data,t.topics):[];x(e,n,s,(r=>new i.ContractEventPayload(e,r,n,a,t)))}else x(e,n,[],(r=>new i.ContractUnknownEventPayload(e,r,n,t)))};let d=[];u={tag:a,listeners:[],start:()=>{d.length||d.push(r.on(t,s))},stop:async()=>{if(0==d.length)return;let e=d;d=[],await Promise.all(e),r.off(t,s)}},c.set(a,u)}return u}let O=Promise.resolve();async function x(e,t,n,r){try{await O}catch(e){}const f=async function(e,t,n,r){await O;const f=await E(e,t);if(!f)return!1;const a=f.listeners.length;return f.listeners=f.listeners.filter((({listener:t,once:f})=>{const a=Array.from(n);r&&a.push(r(f?null:t));try{t.call(e,...a)}catch(e){}return!f})),0===f.listeners.length&&(f.stop(),k(e).subs.delete(f.tag)),a>0}(e,t,n,r);return O=f,await f}const T=["then"];class C{target;interface;runner;filters;[w];fallback;constructor(e,t,n,a){(0,s.assertArgument)("string"==typeof e||(0,f.isAddressable)(e),"invalid value for Contract target","target",e),null==n&&(n=null);const o=r.Interface.from(t);let l;(0,s.defineProperties)(this,{target:e,runner:n,interface:o}),Object.defineProperty(this,w,{value:{}});let c=null,d=null;if(a){const e=g(n);d=new i.ContractTransactionResponse(this.interface,e,a)}let p=new Map;if("string"==typeof e)if((0,s.isHexString)(e))c=e,l=Promise.resolve(e);else{const t=b(n,"resolveName");if(!u(t))throw(0,s.makeError)("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});l=t.resolveName(e).then((t=>{if(null==t)throw(0,s.makeError)("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return k(this).addr=t,t}))}else l=e.getAddress().then((e=>{if(null==e)throw new Error("TODO");return k(this).addr=e,e}));var h;h={addrPromise:l,addr:c,deployTx:d,subs:p},A.set(this[w],h);const m=new Proxy({},{get:(e,t,n)=>{if("symbol"==typeof t||T.indexOf(t)>=0)return Reflect.get(e,t,n);try{return this.getEvent(t)}catch(e){if(!(0,s.isError)(e,"INVALID_ARGUMENT")||"key"!==e.argument)throw e}},has:(e,t)=>T.indexOf(t)>=0?Reflect.has(e,t):Reflect.has(e,t)||this.interface.hasEvent(String(t))});return(0,s.defineProperties)(this,{filters:m}),(0,s.defineProperties)(this,{fallback:o.receive||o.fallback?v(this):null}),new Proxy(this,{get:(e,t,n)=>{if("symbol"==typeof t||t in e||T.indexOf(t)>=0)return Reflect.get(e,t,n);try{return e.getFunction(t)}catch(e){if(!(0,s.isError)(e,"INVALID_ARGUMENT")||"key"!==e.argument)throw e}},has:(e,t)=>"symbol"==typeof t||t in e||T.indexOf(t)>=0?Reflect.has(e,t):e.interface.hasFunction(t)})}connect(e){return new C(this.target,this.interface,e)}attach(e){return new C(e,this.interface,this.runner)}async getAddress(){return await k(this).addrPromise}async getDeployedCode(){const e=g(this.runner);(0,s.assert)(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const t=await e.getCode(await this.getAddress());return"0x"===t?null:t}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(null!=await this.getDeployedCode())return this;const t=g(this.runner);return(0,s.assert)(null!=t,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise(((e,n)=>{const r=async()=>{try{if(null!=await this.getDeployedCode())return e(this);t.once("block",r)}catch(e){n(e)}};r()}))}deploymentTransaction(){return k(this).deployTx}getFunction(e){"string"!=typeof e&&(e=e.format());const t=function(e,t){const n=function(...n){const r=e.interface.getFunction(t,n);return(0,s.assert)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:n}}),r},r=async function(...t){const r=n(...t);let a={};if(r.inputs.length+1===t.length&&(a=await m(t.pop()),a.from&&(a.from=await(0,f.resolveAddress)(a.from,p(e.runner)))),r.inputs.length!==t.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const i=await y(e.runner,r.inputs,t);return Object.assign({},a,await(0,s.resolveProperties)({to:e.getAddress(),data:e.interface.encodeFunctionData(r,i)}))},a=async function(...e){const t=await u(...e);return 1===t.length?t[0]:t},o=async function(...t){const n=e.runner;(0,s.assert)(d(n),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const f=await n.sendTransaction(await r(...t)),a=g(e.runner);return new i.ContractTransactionResponse(e.interface,a,f)},u=async function(...t){const f=b(e.runner,"call");(0,s.assert)(l(f),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const a=await r(...t);let i="0x";try{i=await f.call(a)}catch(t){if((0,s.isCallException)(t)&&t.data)throw e.interface.makeError(t.data,a);throw t}const o=n(...t);return e.interface.decodeFunctionResult(o,i)},h=async(...e)=>n(...e).constant?await a(...e):await o(...e);return(0,s.defineProperties)(h,{name:e.interface.getFunctionName(t),_contract:e,_key:t,getFragment:n,estimateGas:async function(...t){const n=b(e.runner,"estimateGas");return(0,s.assert)(c(n),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await n.estimateGas(await r(...t))},populateTransaction:r,send:o,staticCall:a,staticCallResult:u}),Object.defineProperty(h,"fragment",{configurable:!1,enumerable:!0,get:()=>{const n=e.interface.getFunction(t);return(0,s.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),n}}),h}(this,e);return t}getEvent(e){return"string"!=typeof e&&(e=e.format()),function(e,t){const n=function(...n){const r=e.interface.getEvent(t,n);return(0,s.assert)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:n}}),r},r=function(...t){return new h(e,n(...t),t)};return(0,s.defineProperties)(r,{name:e.interface.getEventName(t),_contract:e,_key:t,getFragment:n}),Object.defineProperty(r,"fragment",{configurable:!1,enumerable:!0,get:()=>{const n=e.interface.getEvent(t);return(0,s.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),n}}),r}(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,t,n){null==t&&(t=0),null==n&&(n="latest");const{addr:r,addrPromise:f}=k(this),o=r||await f,{fragment:l,topics:c}=await P(this,e),u={address:o,topics:c,fromBlock:t,toBlock:n},d=g(this.runner);return(0,s.assert)(d,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await d.getLogs(u)).map((e=>{let t=l;if(null==t)try{t=this.interface.getEvent(e.topics[0])}catch(e){}if(t)try{return new i.EventLog(e,this.interface,t)}catch(t){return new i.UndecodedEventLog(e,t)}return new a.Log(e,d)}))}async on(e,t){const n=await S(this,"on",e);return n.listeners.push({listener:t,once:!1}),n.start(),this}async once(e,t){const n=await S(this,"once",e);return n.listeners.push({listener:t,once:!0}),n.start(),this}async emit(e,...t){return await x(this,e,t,null)}async listenerCount(e){if(e){const t=await E(this,e);return t?t.listeners.length:0}const{subs:t}=k(this);let n=0;for(const{listeners:e}of t.values())n+=e.length;return n}async listeners(e){if(e){const t=await E(this,e);return t?t.listeners.map((({listener:e})=>e)):[]}const{subs:t}=k(this);let n=[];for(const{listeners:e}of t.values())n=n.concat(e.map((({listener:e})=>e)));return n}async off(e,t){const n=await E(this,e);if(!n)return this;if(t){const e=n.listeners.map((({listener:e})=>e)).indexOf(t);e>=0&&n.listeners.splice(e,1)}return null!=t&&0!==n.listeners.length||(n.stop(),k(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const t=await E(this,e);if(!t)return this;t.stop(),k(this).subs.delete(t.tag)}else{const{subs:e}=k(this);for(const{tag:t,stop:n}of e.values())n(),e.delete(t)}return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return await this.off(e,t)}static buildClass(e){return class extends C{constructor(t,n=null){super(t,e,n)}}}static from(e,t,n){return null==n&&(n=null),new this(e,t,n)}}t.BaseContract=C;class N extends(function(){return C}()){}t.Contract=N},406:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContractFactory=void 0;const r=n(8456),f=n(646),a=n(5347),s=n(1008);class i{interface;bytecode;runner;constructor(e,t,n){const f=r.Interface.from(e);t instanceof Uint8Array||("object"==typeof t&&(t=t.object),t.startsWith("0x")||(t="0x"+t)),t=(0,a.hexlify)((0,a.getBytes)(t)),(0,a.defineProperties)(this,{bytecode:t,interface:f,runner:n||null})}attach(e){return new s.BaseContract(e,this.interface,this.runner)}async getDeployTransaction(...e){let t={};const n=this.interface.deploy;if(n.inputs.length+1===e.length&&(t=await(0,s.copyOverrides)(e.pop())),n.inputs.length!==e.length)throw new Error("incorrect number of arguments to constructor");const r=await(0,s.resolveArgs)(this.runner,n.inputs,e),f=(0,a.concat)([this.bytecode,this.interface.encodeDeploy(r)]);return Object.assign({},t,{data:f})}async deploy(...e){const t=await this.getDeployTransaction(...e);(0,a.assert)(this.runner&&"function"==typeof this.runner.sendTransaction,"factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const n=await this.runner.sendTransaction(t),r=(0,f.getCreateAddress)(n);return new s.BaseContract(r,this.interface,this.runner,n)}connect(e){return new i(this.interface,this.bytecode,e)}static fromSolidity(e,t){(0,a.assertArgument)(null!=e,"bad compiler output","output",e),"string"==typeof e&&(e=JSON.parse(e));const n=e.abi;let r="";return e.bytecode?r=e.bytecode:e.evm&&e.evm.bytecode&&(r=e.evm.bytecode),new this(n,r,t)}}t.ContractFactory=i},9288:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UndecodedEventLog=t.EventLog=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.ContractUnknownEventPayload=t.ContractEventPayload=t.ContractFactory=t.Contract=t.BaseContract=void 0;var r=n(1008);Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return r.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return r.Contract}});var f=n(406);Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return f.ContractFactory}});var a=n(6526);Object.defineProperty(t,"ContractEventPayload",{enumerable:!0,get:function(){return a.ContractEventPayload}}),Object.defineProperty(t,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return a.ContractUnknownEventPayload}}),Object.defineProperty(t,"ContractTransactionReceipt",{enumerable:!0,get:function(){return a.ContractTransactionReceipt}}),Object.defineProperty(t,"ContractTransactionResponse",{enumerable:!0,get:function(){return a.ContractTransactionResponse}}),Object.defineProperty(t,"EventLog",{enumerable:!0,get:function(){return a.EventLog}}),Object.defineProperty(t,"UndecodedEventLog",{enumerable:!0,get:function(){return a.UndecodedEventLog}})},6526:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContractEventPayload=t.ContractUnknownEventPayload=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.UndecodedEventLog=t.EventLog=void 0;const r=n(3807),f=n(5347);class a extends r.Log{interface;fragment;args;constructor(e,t,n){super(e,e.provider);const r=t.decodeEventLog(n,e.data,e.topics);(0,f.defineProperties)(this,{args:r,fragment:n,interface:t})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}t.EventLog=a;class s extends r.Log{error;constructor(e,t){super(e,e.provider),(0,f.defineProperties)(this,{error:t})}}t.UndecodedEventLog=s;class i extends r.TransactionReceipt{#k;constructor(e,t,n){super(n,t),this.#k=e}get logs(){return super.logs.map((e=>{const t=e.topics.length?this.#k.getEvent(e.topics[0]):null;if(t)try{return new a(e,this.#k,t)}catch(t){return new s(e,t)}return e}))}}t.ContractTransactionReceipt=i;class o extends r.TransactionResponse{#k;constructor(e,t,n){super(n,t),this.#k=e}async wait(e,t){const n=await super.wait(e,t);return null==n?null:new i(this.#k,this.provider,n)}}t.ContractTransactionResponse=o;class l extends f.EventPayload{log;constructor(e,t,n,r){super(e,t,n),(0,f.defineProperties)(this,{log:r})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}t.ContractUnknownEventPayload=l,t.ContractEventPayload=class extends l{constructor(e,t,n,r,s){super(e,t,n,new a(s,e.interface,r));const i=e.interface.decodeEventLog(r,this.log.data,this.log.topics);(0,f.defineProperties)(this,{args:i,fragment:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}},7155:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.pbkdf2Sync=t.createHmac=t.createHash=void 0;const r=n(4542),f=n(9e3),a=n(6978),s=n(9483),i=n(5347),o=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("unable to locate global object")}(),l=o.crypto||o.msCrypto;t.createHash=function(e){switch(e){case"sha256":return a.sha256.create();case"sha512":return s.sha512.create()}(0,i.assertArgument)(!1,"invalid hashing algorithm name","algorithm",e)},t.createHmac=function(e,t){const n={sha256:a.sha256,sha512:s.sha512}[e];return(0,i.assertArgument)(null!=n,"invalid hmac algorithm","algorithm",e),r.hmac.create(n,t)},t.pbkdf2Sync=function(e,t,n,r,o){const l={sha256:a.sha256,sha512:s.sha512}[o];return(0,i.assertArgument)(null!=l,"invalid pbkdf2 algorithm","algorithm",o),(0,f.pbkdf2)(l,e,t,{c:n,dkLen:r})},t.randomBytes=function(e){(0,i.assert)(null!=l,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),(0,i.assertArgument)(Number.isInteger(e)&&e>0&&e<=1024,"invalid length","length",e);const t=new Uint8Array(e);return l.getRandomValues(t),t}},3192:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.computeHmac=void 0;const r=n(7155),f=n(5347);let a=!1;const s=function(e,t,n){return(0,r.createHmac)(e,t).update(n).digest()};let i=s;function o(e,t,n){const r=(0,f.getBytes)(t,"key"),a=(0,f.getBytes)(n,"data");return(0,f.hexlify)(i(e,r,a))}t.computeHmac=o,o._=s,o.lock=function(){a=!0},o.register=function(e){if(a)throw new Error("computeHmac is locked");i=e},Object.freeze(o)},2291:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.lock=t.Signature=t.SigningKey=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=void 0;const r=n(3192);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return r.computeHmac}});const f=n(3905);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return f.keccak256}});const a=n(7307);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return a.ripemd160}});const s=n(2862);Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return s.pbkdf2}});const i=n(8964);Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return i.randomBytes}});const o=n(5456);Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return o.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return o.scryptSync}});const l=n(5059);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return l.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return l.sha512}});var c=n(4534);Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return c.SigningKey}});var u=n(7005);Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return u.Signature}}),t.lock=function(){r.computeHmac.lock(),f.keccak256.lock(),s.pbkdf2.lock(),i.randomBytes.lock(),a.ripemd160.lock(),o.scrypt.lock(),o.scryptSync.lock(),l.sha256.lock(),l.sha512.lock(),i.randomBytes.lock()}},3905:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=void 0;const r=n(6534),f=n(5347);let a=!1;const s=function(e){return(0,r.keccak_256)(e)};let i=s;function o(e){const t=(0,f.getBytes)(e,"data");return(0,f.hexlify)(i(t))}t.keccak256=o,o._=s,o.lock=function(){a=!0},o.register=function(e){if(a)throw new TypeError("keccak256 is locked");i=e},Object.freeze(o)},2862:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2=void 0;const r=n(7155),f=n(5347);let a=!1;const s=function(e,t,n,f,a){return(0,r.pbkdf2Sync)(e,t,n,f,a)};let i=s;function o(e,t,n,r,a){const s=(0,f.getBytes)(e,"password"),o=(0,f.getBytes)(t,"salt");return(0,f.hexlify)(i(s,o,n,r,a))}t.pbkdf2=o,o._=s,o.lock=function(){a=!0},o.register=function(e){if(a)throw new Error("pbkdf2 is locked");i=e},Object.freeze(o)},8964:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=void 0;const r=n(7155);let f=!1;const a=function(e){return new Uint8Array((0,r.randomBytes)(e))};let s=a;function i(e){return s(e)}t.randomBytes=i,i._=a,i.lock=function(){f=!0},i.register=function(e){if(f)throw new Error("randomBytes is locked");s=e},Object.freeze(i)},7307:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=void 0;const r=n(6481),f=n(5347);let a=!1;const s=function(e){return(0,r.ripemd160)(e)};let i=s;function o(e){const t=(0,f.getBytes)(e,"data");return(0,f.hexlify)(i(t))}t.ripemd160=o,o._=s,o.lock=function(){a=!0},o.register=function(e){if(a)throw new TypeError("ripemd160 is locked");i=e},Object.freeze(o)},5456:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.scryptSync=t.scrypt=void 0;const r=n(9462),f=n(5347);let a=!1,s=!1;const i=async function(e,t,n,f,a,s,i){return await(0,r.scryptAsync)(e,t,{N:n,r:f,p:a,dkLen:s,onProgress:i})},o=function(e,t,n,f,a,s){return(0,r.scrypt)(e,t,{N:n,r:f,p:a,dkLen:s})};let l=i,c=o;async function u(e,t,n,r,a,s,i){const o=(0,f.getBytes)(e,"passwd"),c=(0,f.getBytes)(t,"salt");return(0,f.hexlify)(await l(o,c,n,r,a,s,i))}function d(e,t,n,r,a,s){const i=(0,f.getBytes)(e,"passwd"),o=(0,f.getBytes)(t,"salt");return(0,f.hexlify)(c(i,o,n,r,a,s))}t.scrypt=u,u._=i,u.lock=function(){s=!0},u.register=function(e){if(s)throw new Error("scrypt is locked");l=e},Object.freeze(u),t.scryptSync=d,d._=o,d.lock=function(){a=!0},d.register=function(e){if(a)throw new Error("scryptSync is locked");c=e},Object.freeze(d)},5059:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=t.sha256=void 0;const r=n(7155),f=n(5347),a=function(e){return(0,r.createHash)("sha256").update(e).digest()},s=function(e){return(0,r.createHash)("sha512").update(e).digest()};let i=a,o=s,l=!1,c=!1;function u(e){const t=(0,f.getBytes)(e,"data");return(0,f.hexlify)(i(t))}function d(e){const t=(0,f.getBytes)(e,"data");return(0,f.hexlify)(o(t))}t.sha256=u,u._=a,u.lock=function(){l=!0},u.register=function(e){if(l)throw new Error("sha256 is locked");i=e},Object.freeze(u),t.sha512=d,d._=s,d.lock=function(){c=!0},d.register=function(e){if(c)throw new Error("sha512 is locked");o=e},Object.freeze(u)},7005:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Signature=void 0;const r=n(1295),f=n(5347),a=BigInt(0),s=BigInt(1),i=BigInt(2),o=BigInt(27),l=BigInt(28),c=BigInt(35),u={};function d(e){return(0,f.zeroPadValue)((0,f.toBeArray)(e),32)}class p{#P;#E;#S;#O;get r(){return this.#P}set r(e){(0,f.assertArgument)(32===(0,f.dataLength)(e),"invalid r","value",e),this.#P=(0,f.hexlify)(e)}get s(){return this.#E}set s(e){(0,f.assertArgument)(32===(0,f.dataLength)(e),"invalid s","value",e);const t=(0,f.hexlify)(e);(0,f.assertArgument)(parseInt(t.substring(0,3))<8,"non-canonical s","value",t),this.#E=t}get v(){return this.#S}set v(e){const t=(0,f.getNumber)(e,"value");(0,f.assertArgument)(27===t||28===t,"invalid v","v",e),this.#S=t}get networkV(){return this.#O}get legacyChainId(){const e=this.networkV;return null==e?null:p.getChainId(e)}get yParity(){return 27===this.v?0:1}get yParityAndS(){const e=(0,f.getBytes)(this.s);return this.yParity&&(e[0]|=128),(0,f.hexlify)(e)}get compactSerialized(){return(0,f.concat)([this.r,this.yParityAndS])}get serialized(){return(0,f.concat)([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(e,t,n,r){(0,f.assertPrivate)(e,u,"Signature"),this.#P=t,this.#E=n,this.#S=r,this.#O=null}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const e=new p(u,this.r,this.s,this.v);return this.networkV&&(e.#O=this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:null!=e?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){const t=(0,f.getBigInt)(e,"v");return t==o||t==l?a:((0,f.assertArgument)(t>=c,"invalid EIP-155 v","v",e),(t-c)/i)}static getChainIdV(e,t){return(0,f.getBigInt)(e)*i+BigInt(35+t-27)}static getNormalizedV(e){const t=(0,f.getBigInt)(e);return t===a||t===o?27:t===s||t===l?28:((0,f.assertArgument)(t>=c,"invalid v","v",e),t&s?27:28)}static from(e){function t(t,n){(0,f.assertArgument)(t,n,"signature",e)}if(null==e)return new p(u,r.ZeroHash,r.ZeroHash,27);if("string"==typeof e){const n=(0,f.getBytes)(e,"signature");if(64===n.length){const e=(0,f.hexlify)(n.slice(0,32)),t=n.slice(32,64),r=128&t[0]?28:27;return t[0]&=127,new p(u,e,(0,f.hexlify)(t),r)}if(65===n.length){const e=(0,f.hexlify)(n.slice(0,32)),r=n.slice(32,64);t(!(128&r[0]),"non-canonical s");const a=p.getNormalizedV(n[64]);return new p(u,e,(0,f.hexlify)(r),a)}t(!1,"invalid raw signature length")}if(e instanceof p)return e.clone();const n=e.r;t(null!=n,"missing r");const a=d(n),s=function(e,n){if(null!=e)return d(e);if(null!=n){t((0,f.isHexString)(n,32),"invalid yParityAndS");const e=(0,f.getBytes)(n);return e[0]&=127,(0,f.hexlify)(e)}t(!1,"missing s")}(e.s,e.yParityAndS);t(!(128&(0,f.getBytes)(s)[0]),"non-canonical s");const{networkV:i,v:o}=function(e,n,r){if(null!=e){const t=(0,f.getBigInt)(e);return{networkV:t>=c?t:void 0,v:p.getNormalizedV(t)}}if(null!=n)return t((0,f.isHexString)(n,32),"invalid yParityAndS"),{v:128&(0,f.getBytes)(n)[0]?28:27};if(null!=r){switch((0,f.getNumber)(r,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),l=new p(u,a,s,o);return i&&(l.#O=i),t(null==e.yParity||(0,f.getNumber)(e.yParity,"sig.yParity")===l.yParity,"yParity mismatch"),t(null==e.yParityAndS||e.yParityAndS===l.yParityAndS,"yParityAndS mismatch"),l}}t.Signature=p},4534:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SigningKey=void 0;const r=n(985),f=n(5347),a=n(7005);class s{#x;constructor(e){(0,f.assertArgument)(32===(0,f.dataLength)(e),"invalid private key","privateKey","[REDACTED]"),this.#x=(0,f.hexlify)(e)}get privateKey(){return this.#x}get publicKey(){return s.computePublicKey(this.#x)}get compressedPublicKey(){return s.computePublicKey(this.#x,!0)}sign(e){(0,f.assertArgument)(32===(0,f.dataLength)(e),"invalid digest length","digest",e);const t=r.secp256k1.sign((0,f.getBytesCopy)(e),(0,f.getBytesCopy)(this.#x),{lowS:!0});return a.Signature.from({r:(0,f.toBeHex)(t.r,32),s:(0,f.toBeHex)(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){const t=s.computePublicKey(e);return(0,f.hexlify)(r.secp256k1.getSharedSecret((0,f.getBytesCopy)(this.#x),(0,f.getBytes)(t),!1))}static computePublicKey(e,t){let n=(0,f.getBytes)(e,"key");if(32===n.length){const e=r.secp256k1.getPublicKey(n,!!t);return(0,f.hexlify)(e)}if(64===n.length){const e=new Uint8Array(65);e[0]=4,e.set(n,1),n=e}const a=r.secp256k1.ProjectivePoint.fromHex(n);return(0,f.hexlify)(a.toRawBytes(t))}static recoverPublicKey(e,t){(0,f.assertArgument)(32===(0,f.dataLength)(e),"invalid digest length","digest",e);const n=a.Signature.from(t);let s=r.secp256k1.Signature.fromCompact((0,f.getBytesCopy)((0,f.concat)([n.r,n.s])));s=s.addRecoveryBit(n.yParity);const i=s.recoverPublicKey((0,f.getBytesCopy)(e));return(0,f.assertArgument)(null!=i,"invalid signautre for digest","signature",t),"0x"+i.toHex(!1)}static addPoints(e,t,n){const f=r.secp256k1.ProjectivePoint.fromHex(s.computePublicKey(e).substring(2)),a=r.secp256k1.ProjectivePoint.fromHex(s.computePublicKey(t).substring(2));return"0x"+f.add(a).toHex(!!n)}}t.SigningKey=s},1752:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=t.UndecodedEventLog=t.EventLog=t.ContractUnknownEventPayload=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.ContractEventPayload=t.ContractFactory=t.Contract=t.BaseContract=t.MessagePrefix=t.EtherSymbol=t.ZeroHash=t.N=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.ZeroAddress=t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=t.Typed=t.TransactionDescription=t.Result=t.LogDescription=t.Interface=t.Indexed=t.ErrorDescription=t.checkResultErrors=t.StructFragment=t.ParamType=t.NamedFragment=t.FunctionFragment=t.FallbackFragment=t.Fragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.AbiCoder=t.encodeBytes32String=t.decodeBytes32String=t.version=void 0,t.EnsPlugin=t.Network=t.EnsResolver=t.WebSocketProvider=t.SocketProvider=t.IpcSocketProvider=t.QuickNodeProvider=t.PocketProvider=t.InfuraWebSocketProvider=t.InfuraProvider=t.EtherscanProvider=t.CloudflareProvider=t.ChainstackProvider=t.AnkrProvider=t.AlchemyProvider=t.BrowserProvider=t.JsonRpcSigner=t.JsonRpcProvider=t.JsonRpcApiProvider=t.FallbackProvider=t.AbstractProvider=t.VoidSigner=t.NonceManager=t.AbstractSigner=t.TransactionResponse=t.TransactionReceipt=t.Log=t.FeeData=t.Block=t.getDefaultProvider=t.verifyTypedData=t.TypedDataEncoder=t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=t.verifyMessage=t.hashMessage=t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=t.id=t.SigningKey=t.Signature=t.lock=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=void 0,t.getUint=t.getNumber=t.getBigInt=t.FixedNumber=t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.isError=t.isCallException=t.makeError=t.assertPrivate=t.assertNormalize=t.assertArgumentCount=t.assertArgument=t.assert=t.resolveProperties=t.defineProperties=t.zeroPadValue=t.zeroPadBytes=t.stripZerosLeft=t.isBytesLike=t.isHexString=t.hexlify=t.getBytesCopy=t.getBytes=t.dataSlice=t.dataLength=t.concat=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=t.Transaction=t.recoverAddress=t.computeAddress=t.accessListify=t.showThrottleMessage=t.copyRequest=t.UnmanagedSubscriber=t.SocketSubscriber=t.SocketPendingSubscriber=t.SocketEventSubscriber=t.SocketBlockSubscriber=t.MulticoinProviderPlugin=t.NetworkPlugin=t.GasCostPlugin=t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EtherscanPlugin=void 0,t.wordlists=t.WordlistOwlA=t.WordlistOwl=t.LangEn=t.Wordlist=t.encryptKeystoreJsonSync=t.encryptKeystoreJson=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.decryptCrowdsaleJson=t.isKeystoreJson=t.isCrowdsaleJson=t.getIndexedAccountPath=t.getAccountPath=t.defaultPath=t.Wallet=t.HDNodeVoidWallet=t.HDNodeWallet=t.BaseWallet=t.Mnemonic=t.uuidV4=t.encodeRlp=t.decodeRlp=t.Utf8ErrorFuncs=t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.mask=t.toTwos=t.fromTwos=t.toQuantity=t.toNumber=t.toBeHex=t.toBigInt=t.toBeArray=void 0;var r=n(4586);Object.defineProperty(t,"version",{enumerable:!0,get:function(){return r.version}});var f=n(8456);Object.defineProperty(t,"decodeBytes32String",{enumerable:!0,get:function(){return f.decodeBytes32String}}),Object.defineProperty(t,"encodeBytes32String",{enumerable:!0,get:function(){return f.encodeBytes32String}}),Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return f.AbiCoder}}),Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return f.ConstructorFragment}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return f.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return f.EventFragment}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return f.Fragment}}),Object.defineProperty(t,"FallbackFragment",{enumerable:!0,get:function(){return f.FallbackFragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return f.FunctionFragment}}),Object.defineProperty(t,"NamedFragment",{enumerable:!0,get:function(){return f.NamedFragment}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return f.ParamType}}),Object.defineProperty(t,"StructFragment",{enumerable:!0,get:function(){return f.StructFragment}}),Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return f.checkResultErrors}}),Object.defineProperty(t,"ErrorDescription",{enumerable:!0,get:function(){return f.ErrorDescription}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return f.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return f.Interface}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return f.LogDescription}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return f.Result}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return f.TransactionDescription}}),Object.defineProperty(t,"Typed",{enumerable:!0,get:function(){return f.Typed}});var a=n(646);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return a.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return a.getIcapAddress}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return a.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return a.getCreate2Address}}),Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return a.isAddressable}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return a.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return a.resolveAddress}});var s=n(1295);Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return s.ZeroAddress}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return s.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return s.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return s.MinInt256}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return s.MaxInt256}}),Object.defineProperty(t,"N",{enumerable:!0,get:function(){return s.N}}),Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return s.ZeroHash}}),Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return s.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return s.MessagePrefix}});var i=n(9288);Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return i.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return i.Contract}}),Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return i.ContractFactory}}),Object.defineProperty(t,"ContractEventPayload",{enumerable:!0,get:function(){return i.ContractEventPayload}}),Object.defineProperty(t,"ContractTransactionReceipt",{enumerable:!0,get:function(){return i.ContractTransactionReceipt}}),Object.defineProperty(t,"ContractTransactionResponse",{enumerable:!0,get:function(){return i.ContractTransactionResponse}}),Object.defineProperty(t,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return i.ContractUnknownEventPayload}}),Object.defineProperty(t,"EventLog",{enumerable:!0,get:function(){return i.EventLog}}),Object.defineProperty(t,"UndecodedEventLog",{enumerable:!0,get:function(){return i.UndecodedEventLog}});var o=n(2291);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return o.computeHmac}}),Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return o.randomBytes}}),Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return o.keccak256}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return o.ripemd160}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return o.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return o.sha512}}),Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return o.pbkdf2}}),Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return o.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return o.scryptSync}}),Object.defineProperty(t,"lock",{enumerable:!0,get:function(){return o.lock}}),Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return o.Signature}}),Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return o.SigningKey}});var l=n(3562);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return l.id}}),Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return l.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return l.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return l.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return l.dnsEncode}}),Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return l.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return l.verifyMessage}}),Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return l.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return l.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return l.solidityPackedSha256}}),Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return l.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return l.verifyTypedData}});var c=n(3996);Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return c.getDefaultProvider}}),Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return c.Block}}),Object.defineProperty(t,"FeeData",{enumerable:!0,get:function(){return c.FeeData}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return c.Log}}),Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return c.TransactionReceipt}}),Object.defineProperty(t,"TransactionResponse",{enumerable:!0,get:function(){return c.TransactionResponse}}),Object.defineProperty(t,"AbstractSigner",{enumerable:!0,get:function(){return c.AbstractSigner}}),Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return c.NonceManager}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return c.VoidSigner}}),Object.defineProperty(t,"AbstractProvider",{enumerable:!0,get:function(){return c.AbstractProvider}}),Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return c.FallbackProvider}}),Object.defineProperty(t,"JsonRpcApiProvider",{enumerable:!0,get:function(){return c.JsonRpcApiProvider}}),Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return c.JsonRpcProvider}}),Object.defineProperty(t,"JsonRpcSigner",{enumerable:!0,get:function(){return c.JsonRpcSigner}}),Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return c.BrowserProvider}}),Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return c.AlchemyProvider}}),Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return c.AnkrProvider}}),Object.defineProperty(t,"ChainstackProvider",{enumerable:!0,get:function(){return c.ChainstackProvider}}),Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return c.CloudflareProvider}}),Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return c.EtherscanProvider}}),Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return c.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return c.InfuraWebSocketProvider}}),Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return c.PocketProvider}}),Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return c.QuickNodeProvider}}),Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return c.IpcSocketProvider}}),Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return c.SocketProvider}}),Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return c.WebSocketProvider}}),Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return c.EnsResolver}}),Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return c.Network}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return c.EnsPlugin}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return c.EtherscanPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return c.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return c.FetchUrlFeeDataNetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return c.GasCostPlugin}}),Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return c.NetworkPlugin}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return c.MulticoinProviderPlugin}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return c.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return c.SocketEventSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return c.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return c.SocketSubscriber}}),Object.defineProperty(t,"UnmanagedSubscriber",{enumerable:!0,get:function(){return c.UnmanagedSubscriber}}),Object.defineProperty(t,"copyRequest",{enumerable:!0,get:function(){return c.copyRequest}}),Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return c.showThrottleMessage}});var u=n(7778);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return u.accessListify}}),Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return u.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return u.recoverAddress}}),Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return u.Transaction}});var d=n(5347);Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return d.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return d.encodeBase58}}),Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return d.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return d.encodeBase64}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return d.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return d.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return d.dataSlice}}),Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return d.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return d.getBytesCopy}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return d.hexlify}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return d.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return d.isBytesLike}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return d.stripZerosLeft}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return d.zeroPadBytes}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return d.zeroPadValue}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return d.defineProperties}}),Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return d.resolveProperties}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return d.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return d.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return d.assertArgumentCount}}),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return d.assertNormalize}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return d.assertPrivate}}),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return d.makeError}}),Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return d.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return d.isError}}),Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return d.EventPayload}}),Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return d.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return d.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return d.FetchCancelSignal}}),Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return d.FixedNumber}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return d.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return d.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return d.getUint}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return d.toBeArray}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return d.toBigInt}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return d.toBeHex}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return d.toNumber}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return d.toQuantity}}),Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return d.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return d.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return d.mask}}),Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return d.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return d.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return d.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return d.parseUnits}}),Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return d.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return d.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return d.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return d.Utf8ErrorFuncs}}),Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return d.decodeRlp}}),Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return d.encodeRlp}}),Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return d.uuidV4}});var p=n(3279);Object.defineProperty(t,"Mnemonic",{enumerable:!0,get:function(){return p.Mnemonic}}),Object.defineProperty(t,"BaseWallet",{enumerable:!0,get:function(){return p.BaseWallet}}),Object.defineProperty(t,"HDNodeWallet",{enumerable:!0,get:function(){return p.HDNodeWallet}}),Object.defineProperty(t,"HDNodeVoidWallet",{enumerable:!0,get:function(){return p.HDNodeVoidWallet}}),Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return p.Wallet}}),Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return p.defaultPath}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return p.getAccountPath}}),Object.defineProperty(t,"getIndexedAccountPath",{enumerable:!0,get:function(){return p.getIndexedAccountPath}}),Object.defineProperty(t,"isCrowdsaleJson",{enumerable:!0,get:function(){return p.isCrowdsaleJson}}),Object.defineProperty(t,"isKeystoreJson",{enumerable:!0,get:function(){return p.isKeystoreJson}}),Object.defineProperty(t,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return p.decryptCrowdsaleJson}}),Object.defineProperty(t,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return p.decryptKeystoreJsonSync}}),Object.defineProperty(t,"decryptKeystoreJson",{enumerable:!0,get:function(){return p.decryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJson",{enumerable:!0,get:function(){return p.encryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return p.encryptKeystoreJsonSync}});var h=n(6591);Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return h.Wordlist}}),Object.defineProperty(t,"LangEn",{enumerable:!0,get:function(){return h.LangEn}}),Object.defineProperty(t,"WordlistOwl",{enumerable:!0,get:function(){return h.WordlistOwl}}),Object.defineProperty(t,"WordlistOwlA",{enumerable:!0,get:function(){return h.WordlistOwlA}}),Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return h.wordlists}})},1993:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.id=void 0;const r=n(2291),f=n(5347);t.id=function(e){return(0,r.keccak256)((0,f.toUtf8Bytes)(e))}},3562:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=t.TypedDataEncoder=t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=t.verifyMessage=t.hashMessage=t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=t.id=void 0;var r=n(1993);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return r.id}});var f=n(3239);Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return f.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return f.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return f.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return f.dnsEncode}});var a=n(8717);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return a.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return a.verifyMessage}});var s=n(6065);Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return s.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return s.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return s.solidityPackedSha256}});var i=n(7215);Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return i.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return i.verifyTypedData}})},8717:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=t.hashMessage=void 0;const r=n(2291),f=n(1295),a=n(7778),s=n(5347);function i(e){return"string"==typeof e&&(e=(0,s.toUtf8Bytes)(e)),(0,r.keccak256)((0,s.concat)([(0,s.toUtf8Bytes)(f.MessagePrefix),(0,s.toUtf8Bytes)(String(e.length)),e]))}t.hashMessage=i,t.verifyMessage=function(e,t){const n=i(e);return(0,a.recoverAddress)(n,t)}},3239:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=void 0;const r=n(2291),f=n(5347),a=n(3514),s=new Uint8Array(32);function i(e){return(0,f.assertArgument)(0!==e.length,"invalid ENS name; empty component","comp",e),e}function o(e){const t=(0,f.toUtf8Bytes)(l(e)),n=[];if(0===e.length)return n;let r=0;for(let e=0;e{(0,f.assertArgument)(t.length<=n,`label ${JSON.stringify(e)} exceeds ${n} bytes`,"name",e);const r=new Uint8Array(t.length+1);return r.set(t,1),r[0]=r.length-1,r}))))+"00"}},6065:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=void 0;const r=n(646),f=n(2291),a=n(5347),s=new RegExp("^bytes([0-9]+)$"),i=new RegExp("^(u?int)([0-9]*)$"),o=new RegExp("^(.*)\\[([0-9]*)\\]$");function l(e,t,n){switch(e){case"address":return n?(0,a.getBytes)((0,a.zeroPadValue)(t,32)):(0,a.getBytes)((0,r.getAddress)(t));case"string":return(0,a.toUtf8Bytes)(t);case"bytes":return(0,a.getBytes)(t);case"bool":return t=t?"0x01":"0x00",n?(0,a.getBytes)((0,a.zeroPadValue)(t,32)):(0,a.getBytes)(t)}let f=e.match(i);if(f){let r="int"===f[1],s=parseInt(f[2]||"256");return(0,a.assertArgument)((!f[2]||f[2]===String(s))&&s%8==0&&0!==s&&s<=256,"invalid number type","type",e),n&&(s=256),r&&(t=(0,a.toTwos)(t,s)),(0,a.getBytes)((0,a.zeroPadValue)((0,a.toBeArray)(t),s/8))}if(f=e.match(s),f){const r=parseInt(f[1]);return(0,a.assertArgument)(String(r)===f[1]&&0!==r&&r<=32,"invalid bytes type","type",e),(0,a.assertArgument)((0,a.dataLength)(t)===r,`invalid value for ${e}`,"value",t),n?(0,a.getBytes)((0,a.zeroPadBytes)(t,32)):t}if(f=e.match(o),f&&Array.isArray(t)){const n=f[1],r=parseInt(f[2]||String(t.length));(0,a.assertArgument)(r===t.length,`invalid array length for ${e}`,"value",t);const s=[];return t.forEach((function(e){s.push(l(n,e,!0))})),(0,a.getBytes)((0,a.concat)(s))}(0,a.assertArgument)(!1,"invalid type","type",e)}function c(e,t){(0,a.assertArgument)(e.length===t.length,"wrong number of values; expected ${ types.length }","values",t);const n=[];return e.forEach((function(e,r){n.push(l(e,t[r]))})),(0,a.hexlify)((0,a.concat)(n))}t.solidityPacked=c,t.solidityPackedKeccak256=function(e,t){return(0,f.keccak256)(c(e,t))},t.solidityPackedSha256=function(e,t){return(0,f.sha256)(c(e,t))}},7215:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=t.TypedDataEncoder=void 0;const r=n(646),f=n(2291),a=n(7778),s=n(5347),i=n(1993),o=new Uint8Array(32);o.fill(0);const l=BigInt(-1),c=BigInt(0),u=BigInt(1),d=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),p=(0,s.toBeHex)(u,32),h=(0,s.toBeHex)(c,32),b={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},g=["name","version","chainId","verifyingContract","salt"];function m(e){return function(t){return(0,s.assertArgument)("string"==typeof t,`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const y={name:m("name"),version:m("version"),chainId:function(e){const t=(0,s.getBigInt)(e,"domain.chainId");return(0,s.assertArgument)(t>=0,"invalid chain ID","domain.chainId",e),Number.isSafeInteger(t)?Number(t):(0,s.toQuantity)(t)},verifyingContract:function(e){try{return(0,r.getAddress)(e).toLowerCase()}catch(e){}(0,s.assertArgument)(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){const t=(0,s.getBytes)(e,"domain.salt");return(0,s.assertArgument)(32===t.length,'invalid domain value "salt"',"domain.salt",e),(0,s.hexlify)(t)}};function v(e){{const t=e.match(/^(u?)int(\d+)$/);if(t){const n=""===t[1],r=parseInt(t[2]);(0,s.assertArgument)(r%8==0&&0!==r&&r<=256&&t[2]===String(r),"invalid numeric width","type",e);const f=(0,s.mask)(d,n?r-1:r),a=n?(f+u)*l:c;return function(t){const r=(0,s.getBigInt)(t,"value");return(0,s.assertArgument)(r>=a&&r<=f,`value out-of-bounds for ${e}`,"value",r),(0,s.toBeHex)(n?(0,s.toTwos)(r,256):r,32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const n=parseInt(t[1]);return(0,s.assertArgument)(0!==n&&n<=32&&t[1]===String(n),"invalid bytes width","type",e),function(t){const r=(0,s.getBytes)(t);return(0,s.assertArgument)(r.length===n,`invalid length for ${e}`,"value",t),function(e){const t=(0,s.getBytes)(e),n=t.length%32;return n?(0,s.concat)([t,o.slice(n)]):(0,s.hexlify)(t)}(t)}}}switch(e){case"address":return function(e){return(0,s.zeroPadValue)((0,r.getAddress)(e),32)};case"bool":return function(e){return e?p:h};case"bytes":return function(e){return(0,f.keccak256)(e)};case"string":return function(e){return(0,i.id)(e)}}return null}function w(e,t){return`${e}(${t.map((({name:e,type:t})=>t+" "+e)).join(",")})`}function A(e){const t=e.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return t?{base:t[1],index:t[2]+t[4],array:{base:t[1],prefix:t[1]+t[2],count:t[5]?parseInt(t[5]):-1}}:{base:e}}class k{primaryType;#T;get types(){return JSON.parse(this.#T)}#C;#N;constructor(e){this.#C=new Map,this.#N=new Map;const t=new Map,n=new Map,r=new Map,f={};Object.keys(e).forEach((a=>{f[a]=e[a].map((({name:t,type:n})=>{let{base:r,index:f}=A(n);return"int"!==r||e.int||(r="int256"),"uint"!==r||e.uint||(r="uint256"),{name:t,type:r+(f||"")}})),t.set(a,new Set),n.set(a,[]),r.set(a,new Set)})),this.#T=JSON.stringify(f);for(const r in f){const a=new Set;for(const i of f[r]){(0,s.assertArgument)(!a.has(i.name),`duplicate variable name ${JSON.stringify(i.name)} in ${JSON.stringify(r)}`,"types",e),a.add(i.name);const f=A(i.type).base;(0,s.assertArgument)(f!==r,`circular type reference to ${JSON.stringify(f)}`,"types",e),v(f)||((0,s.assertArgument)(n.has(f),`unknown type ${JSON.stringify(f)}`,"types",e),n.get(f).push(r),t.get(r).add(f))}}const a=Array.from(n.keys()).filter((e=>0===n.get(e).length));(0,s.assertArgument)(0!==a.length,"missing primary type","types",e),(0,s.assertArgument)(1===a.length,`ambiguous primary types or unused types: ${a.map((e=>JSON.stringify(e))).join(", ")}`,"types",e),(0,s.defineProperties)(this,{primaryType:a[0]}),function f(a,i){(0,s.assertArgument)(!i.has(a),`circular type reference to ${JSON.stringify(a)}`,"types",e),i.add(a);for(const e of t.get(a))if(n.has(e)){f(e,i);for(const t of i)r.get(t).add(e)}i.delete(a)}(this.primaryType,new Set);for(const[e,t]of r){const n=Array.from(t);n.sort(),this.#C.set(e,w(e,f[e])+n.map((e=>w(e,f[e]))).join(""))}}getEncoder(e){let t=this.#N.get(e);return t||(t=this.#R(e),this.#N.set(e,t)),t}#R(e){{const t=v(e);if(t)return t}const t=A(e).array;if(t){const e=t.prefix,n=this.getEncoder(e);return r=>{(0,s.assertArgument)(-1===t.count||t.count===r.length,`array length mismatch; expected length ${t.count}`,"value",r);let a=r.map(n);return this.#C.has(e)&&(a=a.map(f.keccak256)),(0,f.keccak256)((0,s.concat)(a))}}const n=this.types[e];if(n){const t=(0,i.id)(this.#C.get(e));return e=>{const r=n.map((({name:t,type:n})=>{const r=this.getEncoder(n)(e[t]);return this.#C.has(n)?(0,f.keccak256)(r):r}));return r.unshift(t),(0,s.concat)(r)}}(0,s.assertArgument)(!1,`unknown type: ${e}`,"type",e)}encodeType(e){const t=this.#C.get(e);return(0,s.assertArgument)(t,`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,f.keccak256)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,n){if(v(e))return n(e,t);const r=A(e).array;if(r)return(0,s.assertArgument)(-1===r.count||r.count===t.length,`array length mismatch; expected length ${r.count}`,"value",t),t.map((e=>this._visit(r.prefix,e,n)));const f=this.types[e];if(f)return f.reduce(((e,{name:r,type:f})=>(e[r]=this._visit(f,t[r],n),e)),{});(0,s.assertArgument)(!1,`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new k(e)}static getPrimaryType(e){return k.from(e).primaryType}static hashStruct(e,t,n){return k.from(t).hashStruct(e,n)}static hashDomain(e){const t=[];for(const n in e){if(null==e[n])continue;const r=b[n];(0,s.assertArgument)(r,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),t.push({name:n,type:r})}return t.sort(((e,t)=>g.indexOf(e.name)-g.indexOf(t.name))),k.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,n){return(0,s.concat)(["0x1901",k.hashDomain(e),k.from(t).hash(n)])}static hash(e,t,n){return(0,f.keccak256)(k.encode(e,t,n))}static async resolveNames(e,t,n,r){e=Object.assign({},e);for(const t in e)null==e[t]&&delete e[t];const f={};e.verifyingContract&&!(0,s.isHexString)(e.verifyingContract,20)&&(f[e.verifyingContract]="0x");const a=k.from(t);a.visit(n,((e,t)=>("address"!==e||(0,s.isHexString)(t,20)||(f[t]="0x"),t)));for(const e in f)f[e]=await r(e);return e.verifyingContract&&f[e.verifyingContract]&&(e.verifyingContract=f[e.verifyingContract]),{domain:e,value:n=a.visit(n,((e,t)=>"address"===e&&f[t]?f[t]:t))}}static getPayload(e,t,n){k.hashDomain(e);const r={},f=[];g.forEach((t=>{const n=e[t];null!=n&&(r[t]=y[t](n),f.push({name:t,type:b[t]}))}));const a=k.from(t);t=a.types;const i=Object.assign({},t);return(0,s.assertArgument)(null==i.EIP712Domain,"types must not contain EIP712Domain type","types.EIP712Domain",t),i.EIP712Domain=f,a.encode(n),{types:i,domain:r,primaryType:a.primaryType,message:a.visit(n,((e,t)=>{if(e.match(/^bytes(\d*)/))return(0,s.hexlify)((0,s.getBytes)(t));if(e.match(/^u?int/))return(0,s.getBigInt)(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return(0,s.assertArgument)("string"==typeof t,"invalid string","value",t),t}(0,s.assertArgument)(!1,"unsupported type","type",e)}))}}}t.TypedDataEncoder=k,t.verifyTypedData=function(e,t,n,r){return(0,a.recoverAddress)(k.hash(e,t,n),r)}},4193:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ethers=void 0;const r=n(9990),f=r.__importStar(n(1752));t.ethers=f,r.__exportStar(n(1752),t)},8672:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractProvider=t.UnmanagedSubscriber=void 0;const r=n(646),f=n(1295),a=n(9288),s=n(3562),i=n(7778),o=n(5347),l=n(1691),c=n(5601),u=n(5317),d=n(3807),p=n(4338),h=BigInt(2);function b(e){return e&&"function"==typeof e.then}function g(e,t){return e+":"+JSON.stringify(t,((e,t)=>{if(null==t)return"null";if("bigint"==typeof t)return`bigint:${t.toString()}`;if("string"==typeof t)return t.toLowerCase();if("object"==typeof t&&!Array.isArray(t)){const e=Object.keys(t);return e.sort(),e.reduce(((e,n)=>(e[n]=t[n],e)),{})}return t}))}class m{name;constructor(e){(0,o.defineProperties)(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function y(e){return(e=Array.from(new Set(e).values())).sort(),e}async function v(e,t){if(null==e)throw new Error("invalid event");if(Array.isArray(e)&&(e={topics:e}),"string"==typeof e)switch(e){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:e,tag:e}}if((0,o.isHexString)(e,32)){const t=e.toLowerCase();return{type:"transaction",tag:g("tx",{hash:t}),hash:t}}if(e.orphan){const t=e;return{type:"orphan",tag:g("orphan",t),filter:(n=t,JSON.parse(JSON.stringify(n)))}}var n;if(e.address||e.topics){const n=e,f={topics:(n.topics||[]).map((e=>null==e?null:Array.isArray(e)?y(e.map((e=>e.toLowerCase()))):e.toLowerCase()))};if(n.address){const e=[],a=[],s=n=>{(0,o.isHexString)(n)?e.push(n):a.push((async()=>{e.push(await(0,r.resolveAddress)(n,t))})())};Array.isArray(n.address)?n.address.forEach(s):s(n.address),a.length&&await Promise.all(a),f.address=y(e.map((e=>e.toLowerCase())))}return{filter:f,tag:g("event",f),type:"event"}}(0,o.assertArgument)(!1,"unknown ProviderEvent","event",e)}function w(){return(new Date).getTime()}t.UnmanagedSubscriber=m;const A={cacheTimeout:250,pollingInterval:4e3};function k(e,t){try{const n=P(e,t);if(n)return(0,o.toUtf8String)(n)}catch(e){}return null}function P(e,t){if("0x"===e)return null;try{const n=(0,o.getNumber)((0,o.dataSlice)(e,t,t+32)),r=(0,o.getNumber)((0,o.dataSlice)(e,n,n+32));return(0,o.dataSlice)(e,n+32,n+32+r)}catch(e){}return null}function E(e){const t=(0,o.toBeArray)(e);if(t.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(t,32-t.length),n}function S(e){if(e.length%32==0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}t.AbstractProvider=class{#B;#I;#_;#F;#L;#j;#U;#M;#D;#z;#H;#w;constructor(e,t){if(this.#w=Object.assign({},A,t||{}),"any"===e)this.#j=!0,this.#L=null;else if(e){const t=u.Network.from(e);this.#j=!1,this.#L=Promise.resolve(t),setTimeout((()=>{this.emit("network",t,null)}),0)}else this.#j=!1,this.#L=null;this.#M=-1,this.#U=new Map,this.#B=new Map,this.#I=new Map,this.#_=null,this.#F=!1,this.#D=1,this.#z=new Map,this.#H=!1}get pollingInterval(){return this.#w.pollingInterval}get provider(){return this}get plugins(){return Array.from(this.#I.values())}attachPlugin(e){if(this.#I.get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return this.#I.set(e.name,e.connect(this)),this}getPlugin(e){return this.#I.get(e)||null}get disableCcipRead(){return this.#H}set disableCcipRead(e){this.#H=!!e}async#G(e){const t=this.#w.cacheTimeout;if(t<0)return await this._perform(e);const n=g(e.method,e);let r=this.#U.get(n);return r||(r=this._perform(e),this.#U.set(n,r),setTimeout((()=>{this.#U.get(n)===r&&this.#U.delete(n)}),t)),await r}async ccipReadFetch(e,t,n){if(this.disableCcipRead||0===n.length||null==e.to)return null;const r=e.to.toLowerCase(),f=t.toLowerCase(),a=[];for(let t=0;t=500,`response not found during CCIP fetch: ${u}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:s,errorMessage:u}}),a.push(u)}(0,o.assert)(!1,`error encountered during CCIP fetch: ${a.map((e=>JSON.stringify(e))).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:n,errorMessages:a}})}_wrapBlock(e,t){return new d.Block((0,c.formatBlock)(e),this)}_wrapLog(e,t){return new d.Log((0,c.formatLog)(e),this)}_wrapTransactionReceipt(e,t){return new d.TransactionReceipt((0,c.formatTransactionReceipt)(e),this)}_wrapTransactionResponse(e,t){return new d.TransactionResponse((0,c.formatTransactionResponse)(e),this)}_detectNetwork(){(0,o.assert)(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){(0,o.assert)(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=(0,o.getNumber)(await this.#G({method:"getBlockNumber"}),"%response");return this.#M>=0&&(this.#M=e),e}_getAddress(e){return(0,r.resolveAddress)(e,this)}_getBlockTag(e){if(null==e)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}return(0,o.isHexString)(e)?(0,o.isHexString)(e,32)?e:(0,o.toQuantity)(e):("bigint"==typeof e&&(e=(0,o.getNumber)(e,"blockTag")),"number"==typeof e?e>=0?(0,o.toQuantity)(e):this.#M>=0?(0,o.toQuantity)(this.#M+e):this.getBlockNumber().then((t=>(0,o.toQuantity)(t+e))):void(0,o.assertArgument)(!1,"invalid blockTag","blockTag",e))}_getFilter(e){const t=(e.topics||[]).map((e=>null==e?null:Array.isArray(e)?y(e.map((e=>e.toLowerCase()))):e.toLowerCase())),n="blockHash"in e?e.blockHash:void 0,r=(e,r,f)=>{let a;switch(e.length){case 0:break;case 1:a=e[0];break;default:e.sort(),a=e}if(n&&(null!=r||null!=f))throw new Error("invalid filter");const s={};return a&&(s.address=a),t.length&&(s.topics=t),r&&(s.fromBlock=r),f&&(s.toBlock=f),n&&(s.blockHash=n),s};let f,a,s=[];if(e.address)if(Array.isArray(e.address))for(const t of e.address)s.push(this._getAddress(t));else s.push(this._getAddress(e.address));return"fromBlock"in e&&(f=this._getBlockTag(e.fromBlock)),"toBlock"in e&&(a=this._getBlockTag(e.toBlock)),s.filter((e=>"string"!=typeof e)).length||null!=f&&"string"!=typeof f||null!=a&&"string"!=typeof a?Promise.all([Promise.all(s),f,a]).then((e=>r(e[0],e[1],e[2]))):r(s,f,a)}_getTransactionRequest(e){const t=(0,d.copyRequest)(e),n=[];if(["to","from"].forEach((e=>{if(null==t[e])return;const f=(0,r.resolveAddress)(t[e],this);b(f)?n.push(async function(){t[e]=await f}()):t[e]=f})),null!=t.blockTag){const e=this._getBlockTag(t.blockTag);b(e)?n.push(async function(){t.blockTag=await e}()):t.blockTag=e}return n.length?async function(){return await Promise.all(n),t}():t}async getNetwork(){if(null==this.#L){const e=(async()=>{try{const e=await this._detectNetwork();return this.emit("network",e,null),e}catch(t){throw this.#L===e&&(this.#L=null),t}})();return this.#L=e,(await e).clone()}const e=this.#L,[t,n]=await Promise.all([e,this._detectNetwork()]);return t.chainId!==n.chainId&&(this.#j?(this.emit("network",n,t),this.#L===e&&(this.#L=Promise.resolve(n))):(0,o.assert)(!1,`network changed: ${t.chainId} => ${n.chainId} `,"NETWORK_ERROR",{event:"changed"})),t.clone()}async getFeeData(){const e=await this.getNetwork(),t=async()=>{const{_block:t,gasPrice:n,priorityFee:r}=await(0,o.resolveProperties)({_block:this.#V("latest",!1),gasPrice:(async()=>{try{const e=await this.#G({method:"getGasPrice"});return(0,o.getBigInt)(e,"%response")}catch(e){}return null})(),priorityFee:(async()=>{try{const e=await this.#G({method:"getPriorityFee"});return(0,o.getBigInt)(e,"%response")}catch(e){}return null})()});let f=null,a=null;const s=this._wrapBlock(t,e);return s&&s.baseFeePerGas&&(a=null!=r?r:BigInt("1000000000"),f=s.baseFeePerGas*h+a),new d.FeeData(n,f,a)},n=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(n){const e=new o.FetchRequest(n.url),r=await n.processFunc(t,this,e);return new d.FeeData(r.gasPrice,r.maxFeePerGas,r.maxPriorityFeePerGas)}return await t()}async estimateGas(e){let t=this._getTransactionRequest(e);return b(t)&&(t=await t),(0,o.getBigInt)(await this.#G({method:"estimateGas",transaction:t}),"%response")}async#K(e,t,n){(0,o.assert)(n<10,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},e,{blockTag:t,enableCcipRead:!0})});const f=(0,d.copyRequest)(e);try{return(0,o.hexlify)(await this._perform({method:"call",transaction:f,blockTag:t}))}catch(e){if(!this.disableCcipRead&&(0,o.isCallException)(e)&&e.data&&n>=0&&"latest"===t&&null!=f.to&&"0x556f1830"===(0,o.dataSlice)(e.data,0,4)){const a=e.data,s=await(0,r.resolveAddress)(f.to,this);let i;try{i=function(e){const t={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};(0,o.assert)((0,o.dataLength)(e)>=160,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const n=(0,o.dataSlice)(e,0,32);(0,o.assert)((0,o.dataSlice)(n,0,12)===(0,o.dataSlice)(T,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),t.sender=(0,o.dataSlice)(n,12);try{const n=[],r=(0,o.getNumber)((0,o.dataSlice)(e,32,64)),f=(0,o.getNumber)((0,o.dataSlice)(e,r,r+32)),a=(0,o.dataSlice)(e,r+32);for(let e=0;et[e])),t}((0,o.dataSlice)(e.data,4))}catch(e){(0,o.assert)(!1,e.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:f,info:{data:a}})}(0,o.assert)(i.sender.toLowerCase()===s.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:a,reason:"OffchainLookup",transaction:f,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:i.errorArgs}});const l=await this.ccipReadFetch(f,i.calldata,i.urls);(0,o.assert)(null!=l,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:f,info:{data:e.data,errorArgs:i.errorArgs}});const c={to:s,data:(0,o.concat)([i.selector,x([l,i.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:c});try{const e=await this.#K(c,t,n+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},c),result:e}),e}catch(e){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},c),error:e}),e}}throw e}}async#q(e){const{value:t}=await(0,o.resolveProperties)({network:this.getNetwork(),value:e});return t}async call(e){const{tx:t,blockTag:n}=await(0,o.resolveProperties)({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await this.#q(this.#K(t,n,e.enableCcipRead?0:-1))}async#Q(e,t,n){let r=this._getAddress(t),f=this._getBlockTag(n);return"string"==typeof r&&"string"==typeof f||([r,f]=await Promise.all([r,f])),await this.#q(this.#G(Object.assign(e,{address:r,blockTag:f})))}async getBalance(e,t){return(0,o.getBigInt)(await this.#Q({method:"getBalance"},e,t),"%response")}async getTransactionCount(e,t){return(0,o.getNumber)(await this.#Q({method:"getTransactionCount"},e,t),"%response")}async getCode(e,t){return(0,o.hexlify)(await this.#Q({method:"getCode"},e,t))}async getStorage(e,t,n){const r=(0,o.getBigInt)(t,"position");return(0,o.hexlify)(await this.#Q({method:"getStorage",position:r},e,n))}async broadcastTransaction(e){const{blockNumber:t,hash:n,network:r}=await(0,o.resolveProperties)({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),f=i.Transaction.from(e);if(f.hash!==n)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(f,r).replaceableTransaction(t)}async#V(e,t){if((0,o.isHexString)(e,32))return await this.#G({method:"getBlock",blockHash:e,includeTransactions:t});let n=this._getBlockTag(e);return"string"!=typeof n&&(n=await n),await this.#G({method:"getBlock",blockTag:n,includeTransactions:t})}async getBlock(e,t){const{network:n,params:r}=await(0,o.resolveProperties)({network:this.getNetwork(),params:this.#V(e,!!t)});return null==r?null:this._wrapBlock(r,n)}async getTransaction(e){const{network:t,params:n}=await(0,o.resolveProperties)({network:this.getNetwork(),params:this.#G({method:"getTransaction",hash:e})});return null==n?null:this._wrapTransactionResponse(n,t)}async getTransactionReceipt(e){const{network:t,params:n}=await(0,o.resolveProperties)({network:this.getNetwork(),params:this.#G({method:"getTransactionReceipt",hash:e})});if(null==n)return null;if(null==n.gasPrice&&null==n.effectiveGasPrice){const t=await this.#G({method:"getTransaction",hash:e});if(null==t)throw new Error("report this; could not find tx or effectiveGasPrice");n.effectiveGasPrice=t.gasPrice}return this._wrapTransactionReceipt(n,t)}async getTransactionResult(e){const{result:t}=await(0,o.resolveProperties)({network:this.getNetwork(),result:this.#G({method:"getTransactionResult",hash:e})});return null==t?null:(0,o.hexlify)(t)}async getLogs(e){let t=this._getFilter(e);b(t)&&(t=await t);const{network:n,params:r}=await(0,o.resolveProperties)({network:this.getNetwork(),params:this.#G({method:"getLogs",filter:t})});return r.map((e=>this._wrapLog(e,n)))}_getProvider(e){(0,o.assert)(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await l.EnsResolver.fromName(this,e)}async getAvatar(e){const t=await this.getResolver(e);return t?await t.getAvatar():null}async resolveName(e){const t=await this.getResolver(e);return t?await t.getAddress():null}async lookupAddress(e){e=(0,r.getAddress)(e);const t=(0,s.namehash)(e.substring(2).toLowerCase()+".addr.reverse");try{const n=await l.EnsResolver.getEnsAddress(this),r=new a.Contract(n,["function resolver(bytes32) view returns (address)"],this),s=await r.resolver(t);if(null==s||s===f.ZeroAddress)return null;const i=new a.Contract(s,["function name(bytes32) view returns (string)"],this),o=await i.name(t);return await this.resolveName(o)!==e?null:o}catch(e){if((0,o.isError)(e,"BAD_DATA")&&"0x"===e.value)return null;if((0,o.isError)(e,"CALL_EXCEPTION"))return null;throw e}return null}async waitForTransaction(e,t,n){const r=null!=t?t:1;return 0===r?this.getTransactionReceipt(e):new Promise((async(t,f)=>{let a=null;const s=async n=>{try{const f=await this.getTransactionReceipt(e);if(null!=f&&n-f.blockNumber+1>=r)return t(f),void(a&&(clearTimeout(a),a=null))}catch(e){console.log("EEE",e)}this.once("block",s)};null!=n&&(a=setTimeout((()=>{null!=a&&(a=null,this.off("block",s),f((0,o.makeError)("timeout","TIMEOUT",{reason:"timeout"})))}),n)),s(await this.getBlockNumber())}))}async waitForBlock(e){(0,o.assert)(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const t=this.#z.get(e);t&&(t.timer&&clearTimeout(t.timer),this.#z.delete(e))}_setTimeout(e,t){null==t&&(t=0);const n=this.#D++,r=()=>{this.#z.delete(n),e()};if(this.paused)this.#z.set(n,{timer:null,func:r,time:t});else{const e=setTimeout(r,t);this.#z.set(n,{timer:e,func:r,time:w()})}return n}_forEachSubscriber(e){for(const t of this.#B.values())e(t.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new m(e.type);case"block":{const e=new p.PollingBlockSubscriber(this);return e.pollingInterval=this.pollingInterval,e}case"safe":case"finalized":return new p.PollingBlockTagSubscriber(this,e.type);case"event":return new p.PollingEventSubscriber(this,e.filter);case"transaction":return new p.PollingTransactionSubscriber(this,e.hash);case"orphan":return new p.PollingOrphanSubscriber(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,t){for(const n of this.#B.values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=t,n.started&&t.start(),null!=this.#_&&t.pause(this.#_);break}}async#J(e,t){let n=await v(e,this);return"event"===n.type&&t&&t.length>0&&!0===t[0].removed&&(n=await v({orphan:"drop-log",log:t[0]},this)),this.#B.get(n.tag)||null}async#W(e){const t=await v(e,this),n=t.tag;let r=this.#B.get(n);return r||(r={subscriber:this._getSubscriber(t),tag:n,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},this.#B.set(n,r)),r}async on(e,t){const n=await this.#W(e);return n.listeners.push({listener:t,once:!1}),n.started||(n.subscriber.start(),n.started=!0,null!=this.#_&&n.subscriber.pause(this.#_)),this}async once(e,t){const n=await this.#W(e);return n.listeners.push({listener:t,once:!0}),n.started||(n.subscriber.start(),n.started=!0,null!=this.#_&&n.subscriber.pause(this.#_)),this}async emit(e,...t){const n=await this.#J(e,t);if(!n||0===n.listeners.length)return!1;const r=n.listeners.length;return n.listeners=n.listeners.filter((({listener:n,once:r})=>{const f=new o.EventPayload(this,r?null:n,e);try{n.call(this,...t,f)}catch(e){}return!r})),0===n.listeners.length&&(n.started&&n.subscriber.stop(),this.#B.delete(n.tag)),r>0}async listenerCount(e){if(e){const t=await this.#J(e);return t?t.listeners.length:0}let t=0;for(const{listeners:e}of this.#B.values())t+=e.length;return t}async listeners(e){if(e){const t=await this.#J(e);return t?t.listeners.map((({listener:e})=>e)):[]}let t=[];for(const{listeners:e}of this.#B.values())t=t.concat(e.map((({listener:e})=>e)));return t}async off(e,t){const n=await this.#J(e);if(!n)return this;if(t){const e=n.listeners.map((({listener:e})=>e)).indexOf(t);e>=0&&n.listeners.splice(e,1)}return t&&0!==n.listeners.length||(n.started&&n.subscriber.stop(),this.#B.delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:t,started:n,subscriber:r}=await this.#W(e);n&&r.stop(),this.#B.delete(t)}else for(const[e,{started:t,subscriber:n}]of this.#B)t&&n.stop(),this.#B.delete(e);return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return this.off(e,t)}get destroyed(){return this.#F}destroy(){this.removeAllListeners();for(const e of this.#z.keys())this._clearTimeout(e);this.#F=!0}get paused(){return null!=this.#_}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(this.#M=-1,null!=this.#_){if(this.#_==!!e)return;(0,o.assert)(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber((t=>t.pause(e))),this.#_=!!e;for(const e of this.#z.values())e.timer&&clearTimeout(e.timer),e.time=w()-e.time}resume(){if(null!=this.#_){this._forEachSubscriber((e=>e.resume())),this.#_=null;for(const e of this.#z.values()){let t=e.time;t<0&&(t=0),e.time=w(),setTimeout(e.func,t)}}}};const O=new Uint8Array([]);function x(e){const t=[];let n=0;for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.VoidSigner=t.AbstractSigner=void 0;const r=n(646),f=n(7778),a=n(5347),s=n(3807);function i(e,t){if(e.provider)return e.provider;(0,a.assert)(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function o(e,t){let n=(0,s.copyRequest)(t);if(null!=n.to&&(n.to=(0,r.resolveAddress)(n.to,e)),null!=n.from){const t=n.from;n.from=Promise.all([e.getAddress(),(0,r.resolveAddress)(t,e)]).then((([e,t])=>((0,a.assertArgument)(e.toLowerCase()===t.toLowerCase(),"transaction from mismatch","tx.from",t),e)))}else n.from=e.getAddress();return await(0,a.resolveProperties)(n)}class l{provider;constructor(e){(0,a.defineProperties)(this,{provider:e||null})}async getNonce(e){return i(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await o(this,e)}async populateTransaction(e){const t=i(this,"populateTransaction"),n=await o(this,e);null==n.nonce&&(n.nonce=await this.getNonce("pending")),null==n.gasLimit&&(n.gasLimit=await this.estimateGas(n));const r=await this.provider.getNetwork();if(null!=n.chainId){const t=(0,a.getBigInt)(n.chainId);(0,a.assertArgument)(t===r.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else n.chainId=r.chainId;const f=null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas;if(null==n.gasPrice||2!==n.type&&!f?0!==n.type&&1!==n.type||!f||(0,a.assertArgument)(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e):(0,a.assertArgument)(!1,"eip-1559 transaction do not support gasPrice","tx",e),2!==n.type&&null!=n.type||null==n.maxFeePerGas||null==n.maxPriorityFeePerGas)if(0===n.type||1===n.type){const e=await t.getFeeData();(0,a.assert)(null!=e.gasPrice,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),null==n.gasPrice&&(n.gasPrice=e.gasPrice)}else{const e=await t.getFeeData();if(null==n.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(n.type=2,null!=n.gasPrice){const e=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=e,n.maxPriorityFeePerGas=e}else null==n.maxFeePerGas&&(n.maxFeePerGas=e.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?((0,a.assert)(!f,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),null==n.gasPrice&&(n.gasPrice=e.gasPrice),n.type=0):(0,a.assert)(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else 2!==n.type&&3!==n.type||(null==n.maxFeePerGas&&(n.maxFeePerGas=e.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else n.type=2;return await(0,a.resolveProperties)(n)}async estimateGas(e){return i(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return i(this,"call").call(await this.populateCall(e))}async resolveName(e){const t=i(this,"resolveName");return await t.resolveName(e)}async sendTransaction(e){const t=i(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const r=f.Transaction.from(n);return await t.broadcastTransaction(await this.signTransaction(r))}}t.AbstractSigner=l;class c extends l{address;constructor(e,t){super(t),(0,a.defineProperties)(this,{address:e})}async getAddress(){return this.address}connect(e){return new c(this.address,e)}#$(e,t){(0,a.assert)(!1,`VoidSigner cannot sign ${e}`,"UNSUPPORTED_OPERATION",{operation:t})}async signTransaction(e){this.#$("transactions","signTransaction")}async signMessage(e){this.#$("messages","signMessage")}async signTypedData(e,t,n){this.#$("typed-data","signTypedData")}}t.VoidSigner=c},9973:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.showThrottleMessage=void 0;const n=new Set;t.showThrottleMessage=function(e){n.has(e)||(n.add(e),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${e} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}},2347:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultProvider=void 0;const r=n(5347),f=n(6806),a=n(7841),s=n(8907),i=n(2271),o=n(5047),l=n(5855),c=n(8817),u=n(9902),d=n(2371),p=n(5317),h=n(873),b="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");t.getDefaultProvider=function(e,t){null==t&&(t={});const n=e=>"-"!==t[e]&&("string"==typeof t.exclusive?e===t.exclusive:!Array.isArray(t.exclusive)||-1!==t.exclusive.indexOf(e));if("string"==typeof e&&e.match(/^https?:/))return new d.JsonRpcProvider(e);if("string"==typeof e&&e.match(/^wss?:/)||(g=e)&&"function"==typeof g.send&&"function"==typeof g.close)return new h.WebSocketProvider(e);var g;let m=null;try{m=p.Network.from(e)}catch(e){}const y=[];if(n("publicPolygon")&&m&&("matic"===m.name?y.push(new d.JsonRpcProvider("https://polygon-rpc.com/",m,{staticNetwork:m})):"matic-amoy"===m.name&&y.push(new d.JsonRpcProvider("https://rpc-amoy.polygon.technology/",m,{staticNetwork:m}))),n("alchemy"))try{y.push(new a.AlchemyProvider(e,t.alchemy))}catch(e){}if(n("ankr")&&null!=t.ankr)try{y.push(new f.AnkrProvider(e,t.ankr))}catch(e){}if(n("chainstack"))try{y.push(new s.ChainstackProvider(e,t.chainstack))}catch(e){}if(n("cloudflare"))try{y.push(new i.CloudflareProvider(e))}catch(e){}if(n("etherscan"))try{y.push(new o.EtherscanProvider(e,t.etherscan))}catch(e){}if(n("infura"))try{let n,r=t.infura;"object"==typeof r&&(n=r.projectSecret,r=r.projectId),y.push(new l.InfuraProvider(e,r,n))}catch(e){}if(n("quicknode"))try{let n=t.quicknode;y.push(new c.QuickNodeProvider(e,n))}catch(e){}if((0,r.assert)(y.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),1===y.length)return y[0];let v=Math.floor(y.length/2);return v>2&&(v=2),m&&-1!==b.indexOf(m.name)&&(v=1),t&&t.quorum&&(v=t.quorum),new u.FallbackProvider(y,void 0,{quorum:v})}},1691:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EnsResolver=t.BasicMulticoinProviderPlugin=t.MulticoinProviderPlugin=void 0;const r=n(646),f=n(1295),a=n(9288),s=n(3562),i=n(5347);function o(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):(0,i.assertArgument)(!1,"unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}class l{name;constructor(e){(0,i.defineProperties)(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,t){throw new Error("unsupported coin")}async decodeAddress(e,t){throw new Error("unsupported coin")}}t.MulticoinProviderPlugin=l,t.BasicMulticoinProviderPlugin=class extends l{constructor(){super("org.ethers.plugins.provider.BasicMulticoin")}};const c=new RegExp("^(ipfs)://(.*)$","i"),u=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),c,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];class d{provider;address;name;#Z;#Y;constructor(e,t,n){(0,i.defineProperties)(this,{provider:e,address:t,name:n}),this.#Z=null,this.#Y=new a.Contract(t,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e)}async supportsWildcard(){return null==this.#Z&&(this.#Z=(async()=>{try{return await this.#Y.supportsInterface("0x9061b923")}catch(e){if((0,i.isError)(e,"CALL_EXCEPTION"))return!1;throw this.#Z=null,e}})()),await this.#Z}async#X(e,t){t=(t||[]).slice();const n=this.#Y.interface;t.unshift((0,s.namehash)(this.name));let r=null;await this.supportsWildcard()&&(r=n.getFunction(e),(0,i.assert)(r,"missing fragment","UNKNOWN_ERROR",{info:{funcName:e}}),t=[(0,s.dnsEncode)(this.name,255),n.encodeFunctionData(r,t)],e="resolve(bytes,bytes)"),t.push({enableCcipRead:!0});try{const f=await this.#Y[e](...t);return r?n.decodeFunctionResult(r,f)[0]:f}catch(e){if(!(0,i.isError)(e,"CALL_EXCEPTION"))throw e}return null}async getAddress(e){if(null==e&&(e=60),60===e)try{const e=await this.#X("addr(bytes32)");return null==e||e===f.ZeroAddress?null:e}catch(e){if((0,i.isError)(e,"CALL_EXCEPTION"))return null;throw e}if(e>=0&&e<2147483648){let t=e+2147483648;const n=await this.#X("addr(bytes32,uint)",[t]);if((0,i.isHexString)(n,20))return(0,r.getAddress)(n)}let t=null;for(const n of this.provider.plugins)if(n instanceof l&&n.supportsCoinType(e)){t=n;break}if(null==t)return null;const n=await this.#X("addr(bytes32,uint)",[e]);if(null==n||"0x"===n)return null;const a=await t.decodeAddress(e,n);if(null!=a)return a;(0,i.assert)(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:n}})}async getText(e){const t=await this.#X("text(bytes32,string)",[e]);return null==t||"0x"===t?null:t}async getContentHash(){const e=await this.#X("contenthash(bytes32)");if(null==e||"0x"===e)return null;const t=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){const e="e3010170"===t[1]?"ipfs":"ipns",n=parseInt(t[4],16);if(t[5].length===2*n)return`${e}://${(0,i.encodeBase58)("0x"+t[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&64===n[1].length)return`bzz://${n[1]}`;(0,i.assert)(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const t=await this.getText("avatar");if(null==t)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:t});for(let n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.formatTransactionResponse=t.formatTransactionReceipt=t.formatReceiptLog=t.formatBlock=t.formatLog=t.formatUint256=t.formatHash=t.formatData=t.formatBoolean=t.object=t.arrayOf=t.allowNull=void 0;const r=n(646),f=n(2291),a=n(7778),s=n(5347),i=BigInt(0);function o(e,t){return function(n){return null==n?t:e(n)}}function l(e,t){return n=>{if(t&&null==n)return null;if(!Array.isArray(n))throw new Error("not an array");return n.map((t=>e(t)))}}function c(e,t){return n=>{const r={};for(const f in e){let a=f;if(t&&f in t&&!(a in n))for(const e of t[f])if(e in n){a=e;break}try{const t=e[f](n[a]);void 0!==t&&(r[f]=t)}catch(e){const t=e instanceof Error?e.message:"not-an-error";(0,s.assert)(!1,`invalid value for value.${f} (${t})`,"BAD_DATA",{value:n})}}return r}}function u(e){switch(e){case!0:case"true":return!0;case!1:case"false":return!1}(0,s.assertArgument)(!1,`invalid boolean; ${JSON.stringify(e)}`,"value",e)}function d(e){return(0,s.assertArgument)((0,s.isHexString)(e,!0),"invalid data","value",e),e}function p(e){return(0,s.assertArgument)((0,s.isHexString)(e,32),"invalid hash","value",e),e}t.allowNull=o,t.arrayOf=l,t.object=c,t.formatBoolean=u,t.formatData=d,t.formatHash=p,t.formatUint256=function(e){if(!(0,s.isHexString)(e))throw new Error("invalid uint256");return(0,s.zeroPadValue)(e,32)};const h=c({address:r.getAddress,blockHash:p,blockNumber:s.getNumber,data:d,index:s.getNumber,removed:o(u,!1),topics:l(p),transactionHash:p,transactionIndex:s.getNumber},{index:["logIndex"]});t.formatLog=function(e){return h(e)};const b=c({hash:o(p),parentHash:p,parentBeaconBlockRoot:o(p,null),number:s.getNumber,timestamp:s.getNumber,nonce:o(d),difficulty:s.getBigInt,gasLimit:s.getBigInt,gasUsed:s.getBigInt,stateRoot:o(p,null),receiptsRoot:o(p,null),blobGasUsed:o(s.getBigInt,null),excessBlobGas:o(s.getBigInt,null),miner:o(r.getAddress),prevRandao:o(p,null),extraData:d,baseFeePerGas:o(s.getBigInt)},{prevRandao:["mixHash"]});t.formatBlock=function(e){const t=b(e);return t.transactions=e.transactions.map((e=>"string"==typeof e?e:v(e))),t};const g=c({transactionIndex:s.getNumber,blockNumber:s.getNumber,transactionHash:p,address:r.getAddress,topics:l(p),data:d,index:s.getNumber,blockHash:p},{index:["logIndex"]});function m(e){return g(e)}t.formatReceiptLog=m;const y=c({to:o(r.getAddress,null),from:o(r.getAddress,null),contractAddress:o(r.getAddress,null),index:s.getNumber,root:o(s.hexlify),gasUsed:s.getBigInt,blobGasUsed:o(s.getBigInt,null),logsBloom:o(d),blockHash:p,hash:p,logs:l(m),blockNumber:s.getNumber,cumulativeGasUsed:s.getBigInt,effectiveGasPrice:o(s.getBigInt),blobGasPrice:o(s.getBigInt,null),status:o(s.getNumber),type:o(s.getNumber,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function v(e){e.to&&(0,s.getBigInt)(e.to)===i&&(e.to="0x0000000000000000000000000000000000000000");const t=c({hash:p,index:o(s.getNumber,void 0),type:e=>"0x"===e||null==e?0:(0,s.getNumber)(e),accessList:o(a.accessListify,null),blobVersionedHashes:o(l(p,!0),null),blockHash:o(p,null),blockNumber:o(s.getNumber,null),transactionIndex:o(s.getNumber,null),from:r.getAddress,gasPrice:o(s.getBigInt),maxPriorityFeePerGas:o(s.getBigInt),maxFeePerGas:o(s.getBigInt),maxFeePerBlobGas:o(s.getBigInt,null),gasLimit:s.getBigInt,to:o(r.getAddress,null),value:s.getBigInt,nonce:s.getNumber,data:d,creates:o(r.getAddress,null),chainId:o(s.getBigInt,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(e);if(null==t.to&&null==t.creates&&(t.creates=(0,r.getCreateAddress)(t)),1!==e.type&&2!==e.type||null!=e.accessList||(t.accessList=[]),e.signature?t.signature=f.Signature.from(e.signature):t.signature=f.Signature.from(e),null==t.chainId){const e=t.signature.legacyChainId;null!=e&&(t.chainId=e)}return t.blockHash&&(0,s.getBigInt)(t.blockHash)===i&&(t.blockHash=null),t}t.formatTransactionReceipt=function(e){return y(e)},t.formatTransactionResponse=v},3996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SocketEventSubscriber=t.SocketPendingSubscriber=t.SocketBlockSubscriber=t.SocketSubscriber=t.WebSocketProvider=t.SocketProvider=t.IpcSocketProvider=t.QuickNodeProvider=t.PocketProvider=t.InfuraWebSocketProvider=t.InfuraProvider=t.EtherscanPlugin=t.EtherscanProvider=t.ChainstackProvider=t.CloudflareProvider=t.AnkrProvider=t.AlchemyProvider=t.BrowserProvider=t.JsonRpcSigner=t.JsonRpcProvider=t.JsonRpcApiProvider=t.FallbackProvider=t.copyRequest=t.TransactionResponse=t.TransactionReceipt=t.Log=t.FeeData=t.Block=t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EnsPlugin=t.GasCostPlugin=t.NetworkPlugin=t.NonceManager=t.Network=t.MulticoinProviderPlugin=t.EnsResolver=t.getDefaultProvider=t.showThrottleMessage=t.VoidSigner=t.AbstractSigner=t.UnmanagedSubscriber=t.AbstractProvider=void 0;var r=n(8672);Object.defineProperty(t,"AbstractProvider",{enumerable:!0,get:function(){return r.AbstractProvider}}),Object.defineProperty(t,"UnmanagedSubscriber",{enumerable:!0,get:function(){return r.UnmanagedSubscriber}});var f=n(3071);Object.defineProperty(t,"AbstractSigner",{enumerable:!0,get:function(){return f.AbstractSigner}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return f.VoidSigner}});var a=n(9973);Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return a.showThrottleMessage}});var s=n(2347);Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return s.getDefaultProvider}});var i=n(1691);Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return i.EnsResolver}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return i.MulticoinProviderPlugin}});var o=n(5317);Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return o.Network}});var l=n(9596);Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return l.NonceManager}});var c=n(4491);Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return c.NetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return c.GasCostPlugin}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return c.EnsPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return c.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return c.FetchUrlFeeDataNetworkPlugin}});var u=n(3807);Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return u.Block}}),Object.defineProperty(t,"FeeData",{enumerable:!0,get:function(){return u.FeeData}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return u.Log}}),Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return u.TransactionReceipt}}),Object.defineProperty(t,"TransactionResponse",{enumerable:!0,get:function(){return u.TransactionResponse}}),Object.defineProperty(t,"copyRequest",{enumerable:!0,get:function(){return u.copyRequest}});var d=n(9902);Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return d.FallbackProvider}});var p=n(2371);Object.defineProperty(t,"JsonRpcApiProvider",{enumerable:!0,get:function(){return p.JsonRpcApiProvider}}),Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return p.JsonRpcProvider}}),Object.defineProperty(t,"JsonRpcSigner",{enumerable:!0,get:function(){return p.JsonRpcSigner}});var h=n(254);Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return h.BrowserProvider}});var b=n(7841);Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return b.AlchemyProvider}});var g=n(6806);Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return g.AnkrProvider}});var m=n(2271);Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return m.CloudflareProvider}});var y=n(8907);Object.defineProperty(t,"ChainstackProvider",{enumerable:!0,get:function(){return y.ChainstackProvider}});var v=n(5047);Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return v.EtherscanProvider}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return v.EtherscanPlugin}});var w=n(5855);Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return w.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return w.InfuraWebSocketProvider}});var A=n(2398);Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return A.PocketProvider}});var k=n(8817);Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return k.QuickNodeProvider}});const P=n(4584);Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return P.IpcSocketProvider}});var E=n(4945);Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return E.SocketProvider}});var S=n(873);Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return S.WebSocketProvider}});var O=n(4945);Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return O.SocketSubscriber}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return O.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return O.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return O.SocketEventSubscriber}})},5317:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Network=void 0;const r=n(7778),f=n(5347),a=n(4491),s=new Map;class i{#te;#ne;#I;constructor(e,t){this.#te=e,this.#ne=(0,f.getBigInt)(t),this.#I=new Map}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return this.#te}set name(e){this.#te=e}get chainId(){return this.#ne}set chainId(e){this.#ne=(0,f.getBigInt)(e,"chainId")}matches(e){if(null==e)return!1;if("string"==typeof e){try{return this.chainId===(0,f.getBigInt)(e)}catch(e){}return this.name===e}if("number"==typeof e||"bigint"==typeof e){try{return this.chainId===(0,f.getBigInt)(e)}catch(e){}return!1}if("object"==typeof e){if(null!=e.chainId){try{return this.chainId===(0,f.getBigInt)(e.chainId)}catch(e){}return!1}return null!=e.name&&this.name===e.name}return!1}get plugins(){return Array.from(this.#I.values())}attachPlugin(e){if(this.#I.get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return this.#I.set(e.name,e.clone()),this}getPlugin(e){return this.#I.get(e)||null}getPlugins(e){return this.plugins.filter((t=>t.name.split("#")[0]===e))}clone(){const e=new i(this.name,this.chainId);return this.plugins.forEach((t=>{e.attachPlugin(t.clone())})),e}computeIntrinsicGas(e){const t=this.getPlugin("org.ethers.plugins.network.GasCost")||new a.GasCostPlugin;let n=t.txBase;if(null==e.to&&(n+=t.txCreate),e.data)for(let r=2;r{r.attachPlugin(e)})),r};i.register(e,r),i.register(t,r),n.altNames&&n.altNames.forEach((e=>{i.register(e,r)}))}c||(c=!0,e("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),e("ropsten",3,{ensNetwork:3}),e("rinkeby",4,{ensNetwork:4}),e("goerli",5,{ensNetwork:5}),e("kovan",42,{ensNetwork:42}),e("sepolia",11155111,{ensNetwork:11155111}),e("holesky",17e3,{ensNetwork:17e3}),e("classic",61,{}),e("classicKotti",6,{}),e("arbitrum",42161,{ensNetwork:1}),e("arbitrum-goerli",421613,{}),e("arbitrum-sepolia",421614,{}),e("base",8453,{ensNetwork:1}),e("base-goerli",84531,{}),e("base-sepolia",84532,{}),e("bnb",56,{ensNetwork:1}),e("bnbt",97,{}),e("linea",59144,{ensNetwork:1}),e("linea-goerli",59140,{}),e("linea-sepolia",59141,{}),e("matic",137,{ensNetwork:1,plugins:[l("https://gasstation.polygon.technology/v2")]}),e("matic-amoy",80002,{}),e("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[l("https://gasstation-testnet.polygon.technology/v2")]}),e("optimism",10,{ensNetwork:1,plugins:[]}),e("optimism-goerli",420,{}),e("optimism-sepolia",11155420,{}),e("xdai",100,{ensNetwork:1}))}(),null==e)return i.from("mainnet");if("number"==typeof e&&(e=BigInt(e)),"string"==typeof e||"bigint"==typeof e){const t=s.get(e);if(t)return t();if("bigint"==typeof e)return new i("unknown",e);(0,f.assertArgument)(!1,"unknown network","network",e)}if("function"==typeof e.clone)return e.clone();if("object"==typeof e){(0,f.assertArgument)("string"==typeof e.name&&"number"==typeof e.chainId,"invalid network object name or chainId","network",e);const t=new i(e.name,e.chainId);return(e.ensAddress||null!=e.ensNetwork)&&t.attachPlugin(new a.EnsPlugin(e.ensAddress,e.ensNetwork)),t}(0,f.assertArgument)(!1,"invalid network","network",e)}static register(e,t){"number"==typeof e&&(e=BigInt(e));const n=s.get(e);n&&(0,f.assertArgument)(!1,`conflicting network for ${JSON.stringify(n.name)}`,"nameOrChainId",e),s.set(e,t)}}function o(e,t){const n=String(e);if(!n.match(/^[0-9.]+$/))throw new Error(`invalid gwei value: ${e}`);const r=n.split(".");if(1===r.length&&r.push(""),2!==r.length)throw new Error(`invalid gwei value: ${e}`);for(;r[1].length9){let e=BigInt(r[1].substring(0,9));r[1].substring(9).match(/^0+$/)||e++,r[1]=e.toString()}return BigInt(r[0]+r[1])}function l(e){return new a.FetchUrlFeeDataNetworkPlugin(e,(async(e,t,n)=>{let r;n.setHeader("User-Agent","ethers");try{const[t,f]=await Promise.all([n.send(),e()]);r=t;const a=r.bodyJson.standard;return{gasPrice:f.gasPrice,maxFeePerGas:o(a.maxFee,9),maxPriorityFeePerGas:o(a.maxPriorityFee,9)}}catch(e){(0,f.assert)(!1,`error encountered with polygon gas station (${JSON.stringify(n.url)})`,"SERVER_ERROR",{request:n,response:r,error:e})}}))}t.Network=i;let c=!1},4491:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EnsPlugin=t.GasCostPlugin=t.NetworkPlugin=void 0;const r=n(8166),f=n(5347);class a{name;constructor(e){(0,r.defineProperties)(this,{name:e})}clone(){return new a(this.name)}}t.NetworkPlugin=a;class s extends a{effectiveBlock;txBase;txCreate;txDataZero;txDataNonzero;txAccessListStorageKey;txAccessListAddress;constructor(e,t){null==e&&(e=0),super(`org.ethers.network.plugins.GasCost#${e||0}`);const n={effectiveBlock:e};function a(e,r){let a=(t||{})[e];null==a&&(a=r),(0,f.assertArgument)("number"==typeof a,`invalud value for ${e}`,"costs",t),n[e]=a}a("txBase",21e3),a("txCreate",32e3),a("txDataZero",4),a("txDataNonzero",16),a("txAccessListStorageKey",1900),a("txAccessListAddress",2400),(0,r.defineProperties)(this,n)}clone(){return new s(this.effectiveBlock,this)}}t.GasCostPlugin=s;class i extends a{address;targetNetwork;constructor(e,t){super("org.ethers.plugins.network.Ens"),(0,r.defineProperties)(this,{address:e||"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",targetNetwork:null==t?1:t})}clone(){return new i(this.address,this.targetNetwork)}}t.EnsPlugin=i;class o extends a{#re;get feeDataFunc(){return this.#re}constructor(e){super("org.ethers.plugins.network.FeeData"),this.#re=e}async getFeeData(e){return await this.#re(e)}clone(){return new o(this.#re)}}t.FeeDataNetworkPlugin=o,t.FetchUrlFeeDataNetworkPlugin=class extends a{#fe;#ae;get url(){return this.#fe}get processFunc(){return this.#ae}constructor(e,t){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin"),this.#fe=e,this.#ae=t}clone(){return this}}},7841:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AlchemyProvider=void 0;const r=n(5347),f=n(9973),a=n(5317),s=n(2371),i="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class o extends s.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");const n=a.Network.from(e);null==t&&(t=i),super(o.getRequest(n,t),n,{staticNetwork:n}),(0,r.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new o(e,this.apiKey)}catch(e){}return super._getProvider(e)}async _perform(e){if("getTransactionResult"===e.method){const{trace:t,tx:n}=await(0,r.resolveProperties)({trace:this.send("trace_transaction",[e.hash]),tx:this.getTransaction(e.hash)});if(null==t||null==n)return null;let f,a=!1;try{f=t[0].result.output,a="Reverted"===t[0].error}catch(e){}if(f)return(0,r.assert)(!a,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:f,reason:null,transaction:n,invocation:null,revert:null}),f;(0,r.assert)(!1,"could not parse trace result","BAD_DATA",{value:t})}return await super._perform(e)}isCommunityResource(){return this.apiKey===i}static getRequest(e,t){null==t&&(t=i);const n=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"eth-mainnet.alchemyapi.io";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"arbitrum-sepolia":return"arb-sepolia.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"base-sepolia":return"base-sepolia.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-amoy":return"polygon-amoy.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com";case"optimism-sepolia":return"opt-sepolia.g.alchemy.com"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v2/${t}`);return n.allowGzip=!0,t===i&&(n.retryFunc=async(e,t,n)=>((0,f.showThrottleMessage)("alchemy"),!0)),n}}t.AlchemyProvider=o},6806:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnkrProvider=void 0;const r=n(5347),f=n(9973),a=n(5317),s=n(2371),i="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class o extends s.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");const n=a.Network.from(e);null==t&&(t=i);const f={polling:!0,staticNetwork:n};super(o.getRequest(n,t),n,f),(0,r.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new o(e,this.apiKey)}catch(e){}return super._getProvider(e)}static getRequest(e,t){null==t&&(t=i);const n=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"sepolia":return"rpc.ankr.com/eth_sepolia";case"arbitrum":return"rpc.ankr.com/arbitrum";case"base":return"rpc.ankr.com/base";case"base-goerli":return"rpc.ankr.com/base_goerli";case"base-sepolia":return"rpc.ankr.com/base_sepolia";case"bnb":return"rpc.ankr.com/bsc";case"bnbt":return"rpc.ankr.com/bsc_testnet_chapel";case"matic":return"rpc.ankr.com/polygon";case"matic-mumbai":return"rpc.ankr.com/polygon_mumbai";case"optimism":return"rpc.ankr.com/optimism";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===i&&(n.retryFunc=async(e,t,n)=>((0,f.showThrottleMessage)("AnkrProvider"),!0)),n}getRpcError(e,t){return"eth_sendRawTransaction"===e.method&&t&&t.error&&"INTERNAL_ERROR: could not replace existing tx"===t.error.message&&(t.error.message="replacement transaction underpriced"),super.getRpcError(e,t)}isCommunityResource(){return this.apiKey===i}}t.AnkrProvider=o},254:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserProvider=void 0;const r=n(5347),f=n(2371);class a extends f.JsonRpcApiPollingProvider{#se;constructor(e,t,n){const f=Object.assign({},null!=n?n:{},{batchMaxCount:1});(0,r.assertArgument)(e&&e.request,"invalid EIP-1193 provider","ethereum",e),super(t,f),this.#se=async(t,n)=>{const r={method:t,params:n};this.emit("debug",{action:"sendEip1193Request",payload:r});try{const t=await e.request(r);return this.emit("debug",{action:"receiveEip1193Result",result:t}),t}catch(e){const t=new Error(e.message);throw t.code=e.code,t.data=e.data,t.payload=r,this.emit("debug",{action:"receiveEip1193Error",error:t}),t}}}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){(0,r.assertArgument)(!Array.isArray(e),"EIP-1193 does not support batch request","payload",e);try{const t=await this.#se(e.method,e.params||[]);return[{id:e.id,result:t}]}catch(t){return[{id:e.id,error:{code:t.code,data:t.data,message:t.message}}]}}getRpcError(e,t){switch((t=JSON.parse(JSON.stringify(t))).error.code||-1){case 4001:t.error.message=`ethers-user-denied: ${t.error.message}`;break;case 4200:t.error.message=`ethers-unsupported: ${t.error.message}`}return super.getRpcError(e,t)}async hasSigner(e){null==e&&(e=0);const t=await this.send("eth_accounts",[]);return"number"==typeof e?t.length>e:(e=e.toLowerCase(),0!==t.filter((t=>t.toLowerCase()===e)).length)}async getSigner(e){if(null==e&&(e=0),!await this.hasSigner(e))try{await this.#se("eth_requestAccounts",[])}catch(e){const t=e.payload;throw this.getRpcError(t,{id:t.id,error:e})}return await super.getSigner(e)}}t.BrowserProvider=a},8907:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChainstackProvider=void 0;const r=n(5347),f=n(9973),a=n(5317),s=n(2371);function i(e){switch(e){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}(0,r.assertArgument)(!1,"unsupported network","network",e)}class o extends s.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");const n=a.Network.from(e);null==t&&(t=i(n.name)),super(o.getRequest(n,t),n,{staticNetwork:n}),(0,r.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new o(e,this.apiKey)}catch(e){}return super._getProvider(e)}isCommunityResource(){return this.apiKey===i(this._network.name)}static getRequest(e,t){null==t&&(t=i(e.name));const n=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"ethereum-mainnet.core.chainstack.com";case"arbitrum":return"arbitrum-mainnet.core.chainstack.com";case"bnb":return"bsc-mainnet.core.chainstack.com";case"matic":return"polygon-mainnet.core.chainstack.com"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===i(e.name)&&(n.retryFunc=async(e,t,n)=>((0,f.showThrottleMessage)("ChainstackProvider"),!0)),n}}t.ChainstackProvider=o},2271:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CloudflareProvider=void 0;const r=n(5347),f=n(5317),a=n(2371);class s extends a.JsonRpcProvider{constructor(e){null==e&&(e="mainnet");const t=f.Network.from(e);(0,r.assertArgument)("mainnet"===t.name,"unsupported network","network",e),super("https://cloudflare-eth.com/",t,{staticNetwork:t})}}t.CloudflareProvider=s},5047:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EtherscanProvider=t.EtherscanPlugin=void 0;const r=n(8456),f=n(9288),a=n(7778),s=n(5347),i=n(8672),o=n(5317),l=n(4491),c=n(9973),u="org.ethers.plugins.provider.Etherscan";class d extends l.NetworkPlugin{baseUrl;constructor(e){super(u),(0,s.defineProperties)(this,{baseUrl:e})}clone(){return new d(this.baseUrl)}}t.EtherscanPlugin=d;const p=["enableCcipRead"];let h=1;class b extends i.AbstractProvider{network;apiKey;#ie;constructor(e,t){const n=null!=t?t:null;super();const r=o.Network.from(e);this.#ie=r.getPlugin(u),(0,s.defineProperties)(this,{apiKey:n,network:r}),this.getBaseUrl()}getBaseUrl(){if(this.#ie)return this.#ie.baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"holesky":return"https://api-holesky.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"base":return"https://api.basescan.org";case"base-sepolia":return"https://api-sepolia.basescan.org";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-amoy":return"https://api-amoy.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}(0,s.assertArgument)(!1,"unsupported network","network",this.network)}getUrl(e,t){const n=Object.keys(t).reduce(((e,n)=>{const r=t[n];return null!=r&&(e+=`&${n}=${r}`),e}),""),r=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${e}${n}${r}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}async detectNetwork(){return this.network}async fetch(e,t,n){const r=h++,f=n?this.getPostUrl():this.getUrl(e,t),a=n?this.getPostData(e,t):null;this.emit("debug",{action:"sendRequest",id:r,url:f,payload:a});const i=new s.FetchRequest(f);i.setThrottleParams({slotInterval:1e3}),i.retryFunc=(e,t,n)=>(this.isCommunityResource()&&(0,c.showThrottleMessage)("Etherscan"),Promise.resolve(!0)),i.processFunc=async(t,n)=>{const f=n.hasBody()?JSON.parse((0,s.toUtf8String)(n.body)):{},a=("string"==typeof f.result?f.result:"").toLowerCase().indexOf("rate limit")>=0;return"proxy"===e?f&&0==f.status&&"NOTOK"==f.message&&a&&(this.emit("debug",{action:"receiveError",id:r,reason:"proxy-NOTOK",error:f}),n.throwThrottleError(f.result,2e3)):a&&(this.emit("debug",{action:"receiveError",id:r,reason:"null result",error:f.result}),n.throwThrottleError(f.result,2e3)),n},a&&(i.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),i.body=Object.keys(a).map((e=>`${e}=${a[e]}`)).join("&"));const o=await i.send();try{o.assertOk()}catch(e){this.emit("debug",{action:"receiveError",id:r,error:e,reason:"assertOk"}),(0,s.assert)(!1,"response error","SERVER_ERROR",{request:i,response:o})}o.hasBody()||(this.emit("debug",{action:"receiveError",id:r,error:"missing body",reason:"null body"}),(0,s.assert)(!1,"missing response","SERVER_ERROR",{request:i,response:o}));const l=JSON.parse((0,s.toUtf8String)(o.body));return"proxy"===e?("2.0"!=l.jsonrpc&&(this.emit("debug",{action:"receiveError",id:r,result:l,reason:"invalid JSON-RPC"}),(0,s.assert)(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:i,response:o,info:{result:l}})),l.error&&(this.emit("debug",{action:"receiveError",id:r,result:l,reason:"JSON-RPC error"}),(0,s.assert)(!1,"error response","SERVER_ERROR",{request:i,response:o,info:{result:l}})),this.emit("debug",{action:"receiveRequest",id:r,result:l}),l.result):0!=l.status||"No records found"!==l.message&&"No transactions found"!==l.message?((1!=l.status||"string"==typeof l.message&&!l.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:r,result:l}),(0,s.assert)(!1,"error response","SERVER_ERROR",{request:i,response:o,info:{result:l}})),this.emit("debug",{action:"receiveRequest",id:r,result:l}),l.result):(this.emit("debug",{action:"receiveRequest",id:r,result:l}),l.result)}_getTransactionPostData(e){const t={};for(let n in e){if(p.indexOf(n)>=0)continue;if(null==e[n])continue;let r=e[n];if(!("type"===n&&0===r||"blockTag"===n&&"latest"===r)){if({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[n])r=(0,s.toQuantity)(r);else if("accessList"===n)r="["+(0,a.accessListify)(r).map((e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`)).join(",")+"]";else if("blobVersionedHashes"===n){if(0===r.length)continue;(0,s.assert)(!1,"Etherscan API does not support blobVersionedHashes","UNSUPPORTED_OPERATION",{operation:"_getTransactionPostData",info:{transaction:e}})}else r=(0,s.hexlify)(r);t[n]=r}}return t}_checkError(e,t,n){let f="";if((0,s.isError)(t,"SERVER_ERROR")){try{f=t.info.result.error.message}catch(e){}if(!f)try{f=t.info.message}catch(e){}}if("estimateGas"===e.method&&!f.match(/revert/i)&&f.match(/insufficient funds/i)&&(0,s.assert)(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.transaction}),("call"===e.method||"estimateGas"===e.method)&&f.match(/execution reverted/i)){let n="";try{n=t.info.result.error.data}catch(t){}const f=r.AbiCoder.getBuiltinCallException(e.method,e.transaction,n);throw f.info={request:e,error:t},f}if(f&&"broadcastTransaction"===e.method){const t=a.Transaction.from(e.signedTransaction);f.match(/replacement/i)&&f.match(/underpriced/i)&&(0,s.assert)(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t}),f.match(/insufficient funds/)&&(0,s.assert)(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t}),f.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&(0,s.assert)(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:t})}throw t}async _detectNetwork(){return this.network}async _perform(e){switch(e.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if("mainnet"===this.network.name)return"1000000000";if("optimism"===this.network.name)return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:e.address,tag:e.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:e.address,tag:e.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:e.address,tag:e.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:e.address,position:e.position,tag:e.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:e.signedTransaction},!0).catch((t=>this._checkError(e,t,e.signedTransaction)));case"getBlock":if("blockTag"in e)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:e.blockTag,boolean:e.includeTransactions?"true":"false"});(0,s.assert)(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:e.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:e.hash});case"call":{if("latest"!==e.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const t=this._getTransactionPostData(e.transaction);t.module="proxy",t.action="eth_call";try{return await this.fetch("proxy",t,!0)}catch(t){return this._checkError(e,t,e.transaction)}}case"estimateGas":{const t=this._getTransactionPostData(e.transaction);t.module="proxy",t.action="eth_estimateGas";try{return await this.fetch("proxy",t,!0)}catch(t){return this._checkError(e,t,e.transaction)}}}return super._perform(e)}async getNetwork(){return this.network}async getEtherPrice(){return"mainnet"!==this.network.name?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(e){let t=this._getAddress(e);var n;(n=t)&&"function"==typeof n.then&&(t=await t);try{const e=await this.fetch("contract",{action:"getabi",address:t}),n=JSON.parse(e);return new f.Contract(t,n,this)}catch(e){return null}}isCommunityResource(){return null==this.apiKey}}t.EtherscanProvider=b},9902:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FallbackProvider=void 0;const r=n(5347),f=n(8672),a=n(5317),s=BigInt("1"),i=BigInt("2");function o(){return(new Date).getTime()}function l(e){return JSON.stringify(e,((e,t)=>"bigint"==typeof t?{type:"bigint",value:t.toString()}:t))}const c={stallTimeout:400,priority:1,weight:1},u={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};function d(e){if(null==e)return"null";if(Array.isArray(e))return"["+e.map(d).join(",")+"]";if("object"==typeof e&&"function"==typeof e.toJSON)return d(e.toJSON());switch(typeof e){case"boolean":case"symbol":return e.toString();case"bigint":case"number":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{const t=Object.keys(e);return t.sort(),"{"+t.map((t=>`${JSON.stringify(t)}:${d(e[t])}`)).join(",")+"}"}}throw console.log("Could not serialize",e),new Error("Hmm...")}function p(e){if("error"in e){const t=e.error;return{tag:d(t),value:t}}const t=e.result;return{tag:d(t),value:t}}function h(e,t){const n=new Map;for(const{value:e,tag:r,weight:f}of t){const t=n.get(r)||{value:e,weight:0};t.weight+=f,n.set(r,t)}let r=null;for(const t of n.values())t.weight>=e&&(!r||t.weight>r.weight)&&(r=t);if(r)return r.value}function b(e,t){let n=0;const r=new Map;let f=null;const a=[];for(const{value:e,tag:s,weight:i}of t)if(e instanceof Error){const t=r.get(s)||{value:e,weight:0};t.weight+=i,r.set(s,t),(null==f||t.weight>f.weight)&&(f=t)}else a.push(BigInt(e)),n+=i;if(n=e?f.value:void 0;a.sort(((e,t)=>ee?1:0));const o=Math.floor(a.length/2);return a.length%2?a[o]:(a[o-1]+a[o]+s)/i}function g(e,t){const n=h(e,t);if(void 0!==n)return n;for(const e of t)if(e.value)return e.value}class m extends f.AbstractProvider{quorum;eventQuorum;eventWorkers;#oe;#le;#ce;constructor(e,t,n){super(t,n),this.#oe=e.map((e=>e instanceof f.AbstractProvider?Object.assign({provider:e},c,u):Object.assign({},c,e,u))),this.#le=-2,this.#ce=null,n&&null!=n.quorum?this.quorum=n.quorum:this.quorum=Math.ceil(this.#oe.reduce(((e,t)=>e+t.weight),0)/2),this.eventQuorum=1,this.eventWorkers=1,(0,r.assertArgument)(this.quorum<=this.#oe.reduce(((e,t)=>e+t.weight),0),"quorum exceed provider weight","quorum",this.quorum)}get providerConfigs(){return this.#oe.map((e=>{const t=Object.assign({},e);for(const e in t)"_"===e[0]&&delete t[e];return t}))}async _detectNetwork(){return a.Network.from((0,r.getBigInt)(await this._perform({method:"chainId"})))}async _translatePerform(e,t){switch(t.method){case"broadcastTransaction":return await e.broadcastTransaction(t.signedTransaction);case"call":return await e.call(Object.assign({},t.transaction,{blockTag:t.blockTag}));case"chainId":return(await e.getNetwork()).chainId;case"estimateGas":return await e.estimateGas(t.transaction);case"getBalance":return await e.getBalance(t.address,t.blockTag);case"getBlock":{const n="blockHash"in t?t.blockHash:t.blockTag;return await e.getBlock(n,t.includeTransactions)}case"getBlockNumber":return await e.getBlockNumber();case"getCode":return await e.getCode(t.address,t.blockTag);case"getGasPrice":return(await e.getFeeData()).gasPrice;case"getPriorityFee":return(await e.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await e.getLogs(t.filter);case"getStorage":return await e.getStorage(t.address,t.position,t.blockTag);case"getTransaction":return await e.getTransaction(t.hash);case"getTransactionCount":return await e.getTransactionCount(t.address,t.blockTag);case"getTransactionReceipt":return await e.getTransactionReceipt(t.hash);case"getTransactionResult":return await e.getTransactionResult(t.hash)}}#ue(e){const t=Array.from(e).map((e=>e.config)),n=this.#oe.slice();!function(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}}(n),n.sort(((e,t)=>e.priority-t.priority));for(const e of n)if(!e._lastFatalError&&-1===t.indexOf(e))return e;return null}#de(e,t){const n=this.#ue(e);if(null==n)return null;const r={config:n,result:null,didBump:!1,perform:null,staller:null},f=o();return r.perform=(async()=>{try{n.requests++;const e=await this._translatePerform(n.provider,t);r.result={result:e}}catch(e){n.errorResponses++,r.result={error:e}}const e=o()-f;n._totalTime+=e,n.rollingDuration=.95*n.rollingDuration+.05*e,r.perform=null})(),r.staller=(async()=>{var e;await(e=n.stallTimeout,new Promise((t=>{setTimeout(t,e)}))),r.staller=null})(),e.add(r),r}async#pe(){let e=this.#ce;if(!e){const t=[];this.#oe.forEach((e=>{t.push((async()=>{await async function(e){for(;(e.blockNumber<0||e.blockNumber<0)&&(e._updateNumber||(e._updateNumber=(async()=>{try{const t=await e.provider.getBlockNumber();t>e.blockNumber&&(e.blockNumber=t)}catch(t){e.blockNumber=-2,e._lastFatalError=t,e._lastFatalErrorTimestamp=o()}e._updateNumber=null})()),await e._updateNumber,e.outOfSync++,!e._lastFatalError););}(e),e._lastFatalError||(e._network=await e.provider.getNetwork())})())})),this.#ce=e=(async()=>{await Promise.all(t);let e=null;for(const t of this.#oe){if(t._lastFatalError)continue;const n=t._network;null==e?e=n.chainId:n.chainId!==e&&(0,r.assert)(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})()}await e}async#he(e,t){const n=[];for(const t of e)if(null!=t.result){const{tag:e,value:r}=p(t.result);n.push({tag:e,value:r,weight:t.config.weight})}if(!(n.reduce(((e,t)=>e+t.weight),0)!e._lastFatalError)).map((e=>({value:e.blockNumber,tag:(0,r.getNumber)(e.blockNumber).toString(),weight:e.weight})))))));const e=function(e,t){if(1===e)return(0,r.getNumber)(b(e,t),"%internal");const n=new Map,f=(e,t)=>{const r=n.get(e)||{result:e,weight:0};r.weight+=t,n.set(e,r)};for(const{weight:e,value:n}of t){const t=(0,r.getNumber)(n);f(t-1,e),f(t,e),f(t+1,e)}let a,s=0;for(const{weight:t,result:r}of n.values())t>=e&&(t>s||null!=a&&t===s&&r>a)&&(s=t,a=r);return a}(this.quorum,n);if(void 0===e)return;return e>this.#le&&(this.#le=e),this.#le}case"getGasPrice":case"getPriorityFee":case"estimateGas":return b(this.quorum,n);case"getBlock":return"blockTag"in t&&"pending"===t.blockTag?g(this.quorum,n):h(this.quorum,n);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return h(this.quorum,n);case"broadcastTransaction":return g(this.quorum,n)}(0,r.assert)(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${l(t.method)})`})}}async#be(e,t){if(0===e.size)throw new Error("no runners?!");const n=[];let f=0;for(const t of e)t.perform&&n.push(t.perform),t.staller?n.push(t.staller):t.didBump||(t.didBump=!0,f++);const a=await this.#he(e,t);if(void 0!==a){if(a instanceof Error)throw a;return a}for(let n=0;n0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:t,results:Array.from(e).map((e=>l(e.result)))}}),await Promise.race(n),await this.#be(e,t)}async _perform(e){if("broadcastTransaction"===e.method){const t=this.#oe.map((e=>null)),n=this.#oe.map((async({provider:n,weight:r},f)=>{try{const a=await n._perform(e);t[f]=Object.assign(p({result:a}),{weight:r})}catch(e){t[f]=Object.assign(p({error:e}),{weight:r})}}));for(;;){const e=t.filter((e=>null!=e));for(const{value:t}of e)if(!(t instanceof Error))return t;const f=h(this.quorum,t.filter((e=>null!=e)));if((0,r.isError)(f,"INSUFFICIENT_FUNDS"))throw f;const a=n.filter(((e,n)=>null==t[n]));if(0===a.length)break;await Promise.race(a)}const f=g(this.quorum,t);if((0,r.assert)(void 0!==f,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:e,results:t.map(l)}}),f instanceof Error)throw f;return f}await this.#pe();const t=new Set;let n=0;for(;;){const r=this.#de(t,e);if(null==r)break;if(n+=r.config.weight,n>=this.quorum)break}const f=await this.#be(t,e);for(const e of t)e.perform&&null==e.result&&e.config.lateResponses++;return f}async destroy(){for(const{provider:e}of this.#oe)e.destroy();super.destroy()}}t.FallbackProvider=m},5855:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InfuraProvider=t.InfuraWebSocketProvider=void 0;const r=n(5347),f=n(9973),a=n(5317),s=n(2371),i=n(873),o="84842078b09946638c03157f83405213";class l extends i.WebSocketProvider{projectId;projectSecret;constructor(e,t){const n=new c(e,t),f=n._getConnection();(0,r.assert)(!f.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"}),super(f.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),n._network),(0,r.defineProperties)(this,{projectId:n.projectId,projectSecret:n.projectSecret})}isCommunityResource(){return this.projectId===o}}t.InfuraWebSocketProvider=l;class c extends s.JsonRpcProvider{projectId;projectSecret;constructor(e,t,n){null==e&&(e="mainnet");const f=a.Network.from(e);null==t&&(t=o),null==n&&(n=null),super(c.getRequest(f,t,n),f,{staticNetwork:f}),(0,r.defineProperties)(this,{projectId:t,projectSecret:n})}_getProvider(e){try{return new c(e,this.projectId,this.projectSecret)}catch(e){}return super._getProvider(e)}isCommunityResource(){return this.projectId===o}static getWebSocketProvider(e,t){return new l(e,t)}static getRequest(e,t,n){null==t&&(t=o),null==n&&(n=null);const a=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"arbitrum-sepolia":return"arbitrum-sepolia.infura.io";case"base":return"base-mainnet.infura.io";case"base-goerlia":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bnbsmartchain-mainnet.infura.io";case"bnbt":return"bnbsmartchain-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"linea-sepolia":return"linea-sepolia.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-amoy":return"polygon-amoy.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io";case"optimism-sepolia":return"optimism-sepolia.infura.io"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v3/${t}`);return a.allowGzip=!0,n&&a.setCredentials("",n),t===o&&(a.retryFunc=async(e,t,n)=>((0,f.showThrottleMessage)("InfuraProvider"),!0)),a}}t.InfuraProvider=c},4584:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IpcSocketProvider=void 0,t.IpcSocketProvider=void 0},2371:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JsonRpcProvider=t.JsonRpcApiPollingProvider=t.JsonRpcApiProvider=t.JsonRpcSigner=void 0;const r=n(8456),f=n(646),a=n(3562),s=n(7778),i=n(5347),o=n(8672),l=n(3071),c=n(5317),u=n(7966),d=n(4338),p="bigint,boolean,function,number,string,symbol".split(/,/g);function h(e){if(null==e||p.indexOf(typeof e)>=0)return e;if("function"==typeof e.getAddress)return e;if(Array.isArray(e))return e.map(h);if("object"==typeof e)return Object.keys(e).reduce(((t,n)=>(t[n]=e[n],t)),{});throw new Error(`should not happen: ${e} (${typeof e})`)}function b(e){return new Promise((t=>{setTimeout(t,e)}))}function g(e){return e?e.toLowerCase():e}function m(e){return e&&"number"==typeof e.pollingInterval}const y={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class v extends l.AbstractSigner{address;constructor(e,t){super(e),t=(0,f.getAddress)(t),(0,i.defineProperties)(this,{address:t})}connect(e){(0,i.assert)(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(e){return await this.populateCall(e)}async sendUncheckedTransaction(e){const t=h(e),n=[];if(t.from){const r=t.from;n.push((async()=>{const n=await(0,f.resolveAddress)(r,this.provider);(0,i.assertArgument)(null!=n&&n.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=n})())}else t.from=this.address;if(null==t.gasLimit&&n.push((async()=>{t.gasLimit=await this.provider.estimateGas({...t,from:this.address})})()),null!=t.to){const e=t.to;n.push((async()=>{t.to=await(0,f.resolveAddress)(e,this.provider)})())}n.length&&await Promise.all(n);const r=this.provider.getRpcTransaction(t);return this.provider.send("eth_sendTransaction",[r])}async sendTransaction(e){const t=await this.provider.getBlockNumber(),n=await this.sendUncheckedTransaction(e);return await new Promise(((e,r)=>{const f=[1e3,100];let a=0;const s=async()=>{try{const r=await this.provider.getTransaction(n);if(null!=r)return void e(r.replaceableTransaction(t))}catch(e){if((0,i.isError)(e,"CANCELLED")||(0,i.isError)(e,"BAD_DATA")||(0,i.isError)(e,"NETWORK_ERROR")||(0,i.isError)(e,"UNSUPPORTED_OPERATION"))return null==e.info&&(e.info={}),e.info.sendTransactionHash=n,void r(e);if((0,i.isError)(e,"INVALID_ARGUMENT")&&(a++,null==e.info&&(e.info={}),e.info.sendTransactionHash=n,a>10))return void r(e);this.provider.emit("error",(0,i.makeError)("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:e}))}this.provider._setTimeout((()=>{s()}),f.pop()||4e3)};s()}))}async signTransaction(e){const t=h(e);if(t.from){const n=await(0,f.resolveAddress)(t.from,this.provider);(0,i.assertArgument)(null!=n&&n.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=n}else t.from=this.address;const n=this.provider.getRpcTransaction(t);return await this.provider.send("eth_signTransaction",[n])}async signMessage(e){const t="string"==typeof e?(0,i.toUtf8Bytes)(e):e;return await this.provider.send("personal_sign",[(0,i.hexlify)(t),this.address.toLowerCase()])}async signTypedData(e,t,n){const r=h(n),s=await a.TypedDataEncoder.resolveNames(e,t,r,(async e=>{const t=await(0,f.resolveAddress)(e);return(0,i.assertArgument)(null!=t,"TypedData does not support null address","value",e),t}));return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(a.TypedDataEncoder.getPayload(s.domain,t,s.value))])}async unlock(e){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),e,null])}async _legacySignMessage(e){const t="string"==typeof e?(0,i.toUtf8Bytes)(e):e;return await this.provider.send("eth_sign",[this.address.toLowerCase(),(0,i.hexlify)(t)])}}t.JsonRpcSigner=v;class w extends o.AbstractProvider{#w;#ge;#me;#ye;#ve;#we;#Ae;#ke(){if(this.#ye)return;const e=1===this._getOption("batchMaxCount")?0:this._getOption("batchStallTime");this.#ye=setTimeout((()=>{this.#ye=null;const e=this.#me;for(this.#me=[];e.length;){const t=[e.shift()];for(;e.length&&t.length!==this.#w.batchMaxCount;)if(t.push(e.shift()),JSON.stringify(t.map((e=>e.payload))).length>this.#w.batchMaxSize){e.unshift(t.pop());break}(async()=>{const e=1===t.length?t[0].payload:t.map((e=>e.payload));this.emit("debug",{action:"sendRpcPayload",payload:e});try{const n=await this._send(e);this.emit("debug",{action:"receiveRpcResult",result:n});for(const{resolve:e,reject:r,payload:f}of t){if(this.destroyed){r((0,i.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:f.method}));continue}const t=n.filter((e=>e.id===f.id))[0];if(null!=t)"error"in t?r(this.getRpcError(f,t)):e(t.result);else{const e=(0,i.makeError)("missing response for request","BAD_DATA",{value:n,info:{payload:f}});this.emit("error",e),r(e)}}}catch(e){this.emit("debug",{action:"receiveRpcError",error:e});for(const{reject:n}of t)n(e)}})()}}),e)}constructor(e,t){super(e,t),this.#ge=1,this.#w=Object.assign({},y,t||{}),this.#me=[],this.#ye=null,this.#we=null,this.#Ae=null;{let e=null;const t=new Promise((t=>{e=t}));this.#ve={promise:t,resolve:e}}const n=this._getOption("staticNetwork");"boolean"==typeof n?((0,i.assertArgument)(!n||"any"!==e,"staticNetwork cannot be used on special network 'any'","options",t),n&&null!=e&&(this.#we=c.Network.from(e))):n&&((0,i.assertArgument)(null==e||n.matches(e),"staticNetwork MUST match network object","options",t),this.#we=n)}_getOption(e){return this.#w[e]}get _network(){return(0,i.assert)(this.#we,"network is not available yet","NETWORK_ERROR"),this.#we}async _perform(e){if("call"===e.method||"estimateGas"===e.method){let t=e.transaction;if(t&&null!=t.type&&(0,i.getBigInt)(t.type)&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){const n=await this.getFeeData();null==n.maxFeePerGas&&null==n.maxPriorityFeePerGas&&(e=Object.assign({},e,{transaction:Object.assign({},t,{type:void 0})}))}}const t=this.getRpcRequest(e);return null!=t?await this.send(t.method,t.args):super._perform(e)}async _detectNetwork(){const e=this._getOption("staticNetwork");if(e){if(!0!==e)return e;if(this.#we)return this.#we}return this.#Ae?await this.#Ae:this.ready?(this.#Ae=(async()=>{try{const e=c.Network.from((0,i.getBigInt)(await this.send("eth_chainId",[])));return this.#Ae=null,e}catch(e){throw this.#Ae=null,e}})(),await this.#Ae):(this.#Ae=(async()=>{const e={id:this.#ge++,method:"eth_chainId",params:[],jsonrpc:"2.0"};let t;this.emit("debug",{action:"sendRpcPayload",payload:e});try{t=(await this._send(e))[0],this.#Ae=null}catch(e){throw this.#Ae=null,this.emit("debug",{action:"receiveRpcError",error:e}),e}if(this.emit("debug",{action:"receiveRpcResult",result:t}),"result"in t)return c.Network.from((0,i.getBigInt)(t.result));throw this.getRpcError(e,t)})(),await this.#Ae)}_start(){null!=this.#ve&&null!=this.#ve.resolve&&(this.#ve.resolve(),this.#ve=null,(async()=>{for(;null==this.#we&&!this.destroyed;)try{this.#we=await this._detectNetwork()}catch(e){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",(0,i.makeError)("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:e}})),await b(1e3)}this.#ke()})())}async _waitUntilReady(){if(null!=this.#ve)return await this.#ve.promise}_getSubscriber(e){return"pending"===e.type?new u.FilterIdPendingSubscriber(this):"event"===e.type?this._getOption("polling")?new d.PollingEventSubscriber(this,e.filter):new u.FilterIdEventSubscriber(this,e.filter):"orphan"===e.type&&"drop-log"===e.filter.orphan?new o.UnmanagedSubscriber("orphan"):super._getSubscriber(e)}get ready(){return null==this.#ve}getRpcTransaction(e){const t={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((n=>{if(null==e[n])return;let r=n;"gasLimit"===n&&(r="gas"),t[r]=(0,i.toQuantity)((0,i.getBigInt)(e[n],`tx.${n}`))})),["from","to","data"].forEach((n=>{null!=e[n]&&(t[n]=(0,i.hexlify)(e[n]))})),e.accessList&&(t.accessList=(0,s.accessListify)(e.accessList)),e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.map((e=>e.toLowerCase()))),t}getRpcRequest(e){switch(e.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[g(e.address),e.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[g(e.address),e.blockTag]};case"getCode":return{method:"eth_getCode",args:[g(e.address),e.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[g(e.address),"0x"+e.position.toString(16),e.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[e.signedTransaction]};case"getBlock":if("blockTag"in e)return{method:"eth_getBlockByNumber",args:[e.blockTag,!!e.includeTransactions]};if("blockHash"in e)return{method:"eth_getBlockByHash",args:[e.blockHash,!!e.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[e.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[e.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(e.transaction),e.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(e.transaction)]};case"getLogs":return e.filter&&null!=e.filter.address&&(Array.isArray(e.filter.address)?e.filter.address=e.filter.address.map(g):e.filter.address=g(e.filter.address)),{method:"eth_getLogs",args:[e.filter]}}return null}getRpcError(e,t){const{method:n}=e,{error:f}=t;if("eth_estimateGas"===n&&f.message){const t=f.message;if(!t.match(/revert/i)&&t.match(/insufficient funds/i))return(0,i.makeError)("insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.params[0],info:{payload:e,error:f}})}if("eth_call"===n||"eth_estimateGas"===n){const t=k(f),a=r.AbiCoder.getBuiltinCallException("eth_call"===n?"call":"estimateGas",e.params[0],t?t.data:null);return a.info={error:f,payload:e},a}const a=JSON.stringify(function(e){const t=[];return P(e,t),t}(f));if("string"==typeof f.message&&f.message.match(/user denied|ethers-user-denied/i)){const t={eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"};return(0,i.makeError)("user rejected action","ACTION_REJECTED",{action:t[n]||"unknown",reason:"rejected",info:{payload:e,error:f}})}if("eth_sendRawTransaction"===n||"eth_sendTransaction"===n){const t=e.params[0];if(a.match(/insufficient funds|base fee exceeds gas limit/i))return(0,i.makeError)("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t,info:{error:f}});if(a.match(/nonce/i)&&a.match(/too low/i))return(0,i.makeError)("nonce has already been used","NONCE_EXPIRED",{transaction:t,info:{error:f}});if(a.match(/replacement transaction/i)&&a.match(/underpriced/i))return(0,i.makeError)("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t,info:{error:f}});if(a.match(/only replay-protected/i))return(0,i.makeError)("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:n,info:{transaction:t,info:{error:f}}})}let s=!!a.match(/the method .* does not exist/i);return s||f&&f.details&&f.details.startsWith("Unauthorized method:")&&(s=!0),s?(0,i.makeError)("unsupported operation","UNSUPPORTED_OPERATION",{operation:e.method,info:{error:f,payload:e}}):(0,i.makeError)("could not coalesce error","UNKNOWN_ERROR",{error:f,payload:e})}send(e,t){if(this.destroyed)return Promise.reject((0,i.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e}));const n=this.#ge++,r=new Promise(((r,f)=>{this.#me.push({resolve:r,reject:f,payload:{method:e,params:t,id:n,jsonrpc:"2.0"}})}));return this.#ke(),r}async getSigner(e){null==e&&(e=0);const t=this.send("eth_accounts",[]);if("number"==typeof e){const n=await t;if(e>=n.length)throw new Error("no such account");return new v(this,n[e])}const{accounts:n}=await(0,i.resolveProperties)({network:this.getNetwork(),accounts:t});e=(0,f.getAddress)(e);for(const t of n)if((0,f.getAddress)(t)===e)return new v(this,e);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map((e=>new v(this,e)))}destroy(){this.#ye&&(clearTimeout(this.#ye),this.#ye=null);for(const{payload:e,reject:t}of this.#me)t((0,i.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e.method}));this.#me=[],super.destroy()}}t.JsonRpcApiProvider=w;class A extends w{#Pe;constructor(e,t){super(e,t);let n=this._getOption("pollingInterval");null==n&&(n=y.pollingInterval),this.#Pe=n}_getSubscriber(e){const t=super._getSubscriber(e);return m(t)&&(t.pollingInterval=this.#Pe),t}get pollingInterval(){return this.#Pe}set pollingInterval(e){if(!Number.isInteger(e)||e<0)throw new Error("invalid interval");this.#Pe=e,this._forEachSubscriber((e=>{m(e)&&(e.pollingInterval=this.#Pe)}))}}function k(e){if(null==e)return null;if("string"==typeof e.message&&e.message.match(/revert/i)&&(0,i.isHexString)(e.data))return{message:e.message,data:e.data};if("object"==typeof e){for(const t in e){const n=k(e[t]);if(n)return n}return null}if("string"==typeof e)try{return k(JSON.parse(e))}catch(e){}return null}function P(e,t){if(null!=e){if("string"==typeof e.message&&t.push(e.message),"object"==typeof e)for(const n in e)P(e[n],t);if("string"==typeof e)try{return P(JSON.parse(e),t)}catch(e){}}}t.JsonRpcApiPollingProvider=A,t.JsonRpcProvider=class extends A{#Ee;constructor(e,t,n){null==e&&(e="http://localhost:8545"),super(t,n),this.#Ee="string"==typeof e?new i.FetchRequest(e):e.clone()}_getConnection(){return this.#Ee.clone()}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){const t=this._getConnection();t.body=JSON.stringify(e),t.setHeader("content-type","application/json");const n=await t.send();n.assertOk();let r=n.bodyJson;return Array.isArray(r)||(r=[r]),r}}},2398:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PocketProvider=void 0;const r=n(5347),f=n(9973),a=n(5317),s=n(2371),i="62e1ad51b37b8e00394bda3b";class o extends s.JsonRpcProvider{applicationId;applicationSecret;constructor(e,t,n){null==e&&(e="mainnet");const f=a.Network.from(e);null==t&&(t=i),null==n&&(n=null);const s={staticNetwork:f};super(o.getRequest(f,t,n),f,s),(0,r.defineProperties)(this,{applicationId:t,applicationSecret:n})}_getProvider(e){try{return new o(e,this.applicationId,this.applicationSecret)}catch(e){}return super._getProvider(e)}static getRequest(e,t,n){null==t&&(t=i);const a=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v1/lb/${t}`);return a.allowGzip=!0,n&&a.setCredentials("",n),t===i&&(a.retryFunc=async(e,t,n)=>((0,f.showThrottleMessage)("PocketProvider"),!0)),a}isCommunityResource(){return this.applicationId===i}}t.PocketProvider=o},8817:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.QuickNodeProvider=void 0;const r=n(5347),f=n(9973),a=n(5317),s=n(2371),i="919b412a057b5e9c9b6dce193c5a60242d6efadb";class o extends s.JsonRpcProvider{token;constructor(e,t){null==e&&(e="mainnet");const n=a.Network.from(e);null==t&&(t=i),super(o.getRequest(n,t),n,{staticNetwork:n}),(0,r.defineProperties)(this,{token:t})}_getProvider(e){try{return new o(e,this.token)}catch(e){}return super._getProvider(e)}isCommunityResource(){return this.token===i}static getRequest(e,t){null==t&&(t=i);const n=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"sepolia":return"ethers.ethereum-sepolia.quiknode.pro";case"holesky":return"ethers.ethereum-holesky.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"arbitrum-sepolia":return"ethers.arbitrum-sepolia.quiknode.pro";case"base":return"ethers.base-mainnet.quiknode.pro";case"base-goerli":return"ethers.base-goerli.quiknode.pro";case"base-spolia":return"ethers.base-sepolia.quiknode.pro";case"bnb":return"ethers.bsc.quiknode.pro";case"bnbt":return"ethers.bsc-testnet.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro";case"optimism-sepolia":return"ethers.optimism-sepolia.quiknode.pro";case"xdai":return"ethers.xdai.quiknode.pro"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===i&&(n.retryFunc=async(e,t,n)=>((0,f.showThrottleMessage)("QuickNodeProvider"),!0)),n}}t.QuickNodeProvider=o},4945:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SocketProvider=t.SocketEventSubscriber=t.SocketPendingSubscriber=t.SocketBlockSubscriber=t.SocketSubscriber=void 0;const r=n(8672),f=n(5347),a=n(2371);class s{#Se;#A;get filter(){return JSON.parse(this.#A)}#Oe;#xe;#Te;constructor(e,t){this.#Se=e,this.#A=JSON.stringify(t),this.#Oe=null,this.#xe=null,this.#Te=null}start(){this.#Oe=this.#Se.send("eth_subscribe",this.filter).then((e=>(this.#Se._register(e,this),e)))}stop(){this.#Oe.then((e=>{this.#Se.destroyed||this.#Se.send("eth_unsubscribe",[e])})),this.#Oe=null}pause(e){(0,f.assert)(e,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),this.#xe=!!e}resume(){this.#xe=null}_handleMessage(e){if(null!=this.#Oe&&null===this.#xe){let t=this.#Te;t=null==t?this._emit(this.#Se,e):t.then((async()=>{await this._emit(this.#Se,e)})),this.#Te=t.then((()=>{this.#Te===t&&(this.#Te=null)}))}}async _emit(e,t){throw new Error("sub-classes must implemente this; _emit")}}t.SocketSubscriber=s;class i extends s{constructor(e){super(e,["newHeads"])}async _emit(e,t){e.emit("block",parseInt(t.number))}}t.SocketBlockSubscriber=i;class o extends s{constructor(e){super(e,["newPendingTransactions"])}async _emit(e,t){e.emit("pending",t)}}t.SocketPendingSubscriber=o;class l extends s{#Ce;get logFilter(){return JSON.parse(this.#Ce)}constructor(e,t){super(e,["logs",t]),this.#Ce=JSON.stringify(t)}async _emit(e,t){e.emit(this.logFilter,e._wrapLog(t,e._network))}}t.SocketEventSubscriber=l;class c extends a.JsonRpcApiProvider{#Ne;#B;#Re;constructor(e,t){const n=Object.assign({},null!=t?t:{});(0,f.assertArgument)(null==n.batchMaxCount||1===n.batchMaxCount,"sockets-based providers do not support batches","options.batchMaxCount",t),n.batchMaxCount=1,null==n.staticNetwork&&(n.staticNetwork=!0),super(e,n),this.#Ne=new Map,this.#B=new Map,this.#Re=new Map}_getSubscriber(e){switch(e.type){case"close":return new r.UnmanagedSubscriber("close");case"block":return new i(this);case"pending":return new o(this);case"event":return new l(this,e.filter);case"orphan":if("drop-log"===e.filter.orphan)return new r.UnmanagedSubscriber("drop-log")}return super._getSubscriber(e)}_register(e,t){this.#B.set(e,t);const n=this.#Re.get(e);if(n){for(const e of n)t._handleMessage(e);this.#Re.delete(e)}}async _send(e){(0,f.assertArgument)(!Array.isArray(e),"WebSocket does not support batch send","payload",e);const t=new Promise(((t,n)=>{this.#Ne.set(e.id,{payload:e,resolve:t,reject:n})}));return await this._waitUntilReady(),await this._write(JSON.stringify(e)),[await t]}async _processMessage(e){const t=JSON.parse(e);if(t&&"object"==typeof t&&"id"in t){const e=this.#Ne.get(t.id);if(null==e)return void this.emit("error",(0,f.makeError)("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:t}));this.#Ne.delete(t.id),e.resolve(t)}else{if(!t||"eth_subscription"!==t.method)return void this.emit("error",(0,f.makeError)("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:t}));{const e=t.params.subscription,n=this.#B.get(e);if(n)n._handleMessage(t.params.result);else{let n=this.#Re.get(e);null==n&&(n=[],this.#Re.set(e,n)),n.push(t.params.result)}}}}async _write(e){throw new Error("sub-classes must override this")}}t.SocketProvider=c},873:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocketProvider=void 0;const r=n(3913),f=n(4945);class a extends f.SocketProvider{#Ee;#Be;get websocket(){if(null==this.#Be)throw new Error("websocket closed");return this.#Be}constructor(e,t,n){super(t,n),"string"==typeof e?(this.#Ee=()=>new r.WebSocket(e),this.#Be=this.#Ee()):"function"==typeof e?(this.#Ee=e,this.#Be=e()):(this.#Ee=null,this.#Be=e),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(e){console.log("failed to start WebsocketProvider",e)}},this.websocket.onmessage=e=>{this._processMessage(e.data)}}async _write(e){this.websocket.send(e)}async destroy(){null!=this.#Be&&(this.#Be.close(),this.#Be=null),super.destroy()}}t.WebSocketProvider=a},3807:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionResponse=t.TransactionReceipt=t.Log=t.Block=t.copyRequest=t.FeeData=void 0;const r=n(5347),f=n(7778),a=BigInt(0);function s(e){return null==e?null:e}function i(e){return null==e?null:e.toString()}t.FeeData=class{gasPrice;maxFeePerGas;maxPriorityFeePerGas;constructor(e,t,n){(0,r.defineProperties)(this,{gasPrice:s(e),maxFeePerGas:s(t),maxPriorityFeePerGas:s(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:i(e),maxFeePerGas:i(t),maxPriorityFeePerGas:i(n)}}},t.copyRequest=function(e){const t={};e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=(0,r.hexlify)(e.data));const n="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const f of n)f in e&&null!=e[f]&&(t[f]=(0,r.getBigInt)(e[f],`request.${f}`));const a="type,nonce".split(/,/);for(const n of a)n in e&&null!=e[n]&&(t[n]=(0,r.getNumber)(e[n],`request.${n}`));return e.accessList&&(t.accessList=(0,f.accessListify)(e.accessList)),"blockTag"in e&&(t.blockTag=e.blockTag),"enableCcipRead"in e&&(t.enableCcipRead=!!e.enableCcipRead),"customData"in e&&(t.customData=e.customData),"blobVersionedHashes"in e&&e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.slice()),"kzg"in e&&(t.kzg=e.kzg),"blobs"in e&&e.blobs&&(t.blobs=e.blobs.map((e=>(0,r.isBytesLike)(e)?(0,r.hexlify)(e):Object.assign({},e)))),t};class o{provider;number;hash;timestamp;parentHash;parentBeaconBlockRoot;nonce;difficulty;gasLimit;gasUsed;stateRoot;receiptsRoot;blobGasUsed;excessBlobGas;miner;prevRandao;extraData;baseFeePerGas;#Ie;constructor(e,t){this.#Ie=e.transactions.map((e=>"string"!=typeof e?new u(e,t):e)),(0,r.defineProperties)(this,{provider:t,hash:s(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:s(e.prevRandao),extraData:e.extraData,baseFeePerGas:s(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return this.#Ie.map((e=>"string"==typeof e?e:e.hash))}get prefetchedTransactions(){const e=this.#Ie.slice();return 0===e.length?[]:((0,r.assert)("object"==typeof e[0],"transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:t,extraData:n,gasLimit:r,gasUsed:f,hash:a,miner:s,prevRandao:o,nonce:l,number:c,parentHash:u,parentBeaconBlockRoot:d,stateRoot:p,receiptsRoot:h,timestamp:b,transactions:g}=this;return{_type:"Block",baseFeePerGas:i(e),difficulty:i(t),extraData:n,gasLimit:i(r),gasUsed:i(f),blobGasUsed:i(this.blobGasUsed),excessBlobGas:i(this.excessBlobGas),hash:a,miner:s,prevRandao:o,nonce:l,number:c,parentHash:u,timestamp:b,parentBeaconBlockRoot:d,stateRoot:p,receiptsRoot:h,transactions:g}}[Symbol.iterator](){let e=0;const t=this.transactions;return{next:()=>enew l(e,t))));let n=a;null!=e.effectiveGasPrice?n=e.effectiveGasPrice:null!=e.gasPrice&&(n=e.gasPrice),(0,r.defineProperties)(this,{provider:t,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,blobGasUsed:e.blobGasUsed,gasPrice:n,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return this.#_e}toJSON(){const{to:e,from:t,contractAddress:n,hash:r,index:f,blockHash:a,blockNumber:s,logsBloom:o,logs:l,status:c,root:u}=this;return{_type:"TransactionReceipt",blockHash:a,blockNumber:s,contractAddress:n,cumulativeGasUsed:i(this.cumulativeGasUsed),from:t,gasPrice:i(this.gasPrice),blobGasUsed:i(this.blobGasUsed),blobGasPrice:i(this.blobGasPrice),gasUsed:i(this.gasUsed),hash:r,index:f,logs:l,logsBloom:o,root:u,status:c,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e{if(o)return null;const{blockNumber:e,nonce:t}=await(0,r.resolveProperties)({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(t{if(null==e||0!==e.status)return e;(0,r.assert)(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:e.to,from:e.from,data:""},receipt:e})},u=await this.provider.getTransactionReceipt(this.hash);if(0===n)return c(u);if(u){if(await u.confirmations()>=n)return c(u)}else if(await l(),0===n)return null;const d=new Promise(((e,t)=>{const a=[],i=()=>{a.forEach((e=>e()))};if(a.push((()=>{o=!0})),f>0){const e=setTimeout((()=>{i(),t((0,r.makeError)("wait for transaction timeout","TIMEOUT"))}),f);a.push((()=>{clearTimeout(e)}))}const u=async r=>{if(await r.confirmations()>=n){i();try{e(c(r))}catch(e){t(e)}}};if(a.push((()=>{this.provider.off(this.hash,u)})),this.provider.on(this.hash,u),s>=0){const e=async()=>{try{await l()}catch(e){if((0,r.isError)(e,"TRANSACTION_REPLACED"))return i(),void t(e)}o||this.provider.once("block",e)};a.push((()=>{this.provider.off("block",e)})),this.provider.once("block",e)}}));return await d}isMined(){return null!=this.blockHash}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}removedEvent(){return(0,r.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),p(this)}reorderedEvent(e){return(0,r.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),(0,r.assert)(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),d(this,e)}replaceableTransaction(e){(0,r.assertArgument)(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const t=new u(this,this.provider);return t.#Fe=e,t}}function d(e,t){return{orphan:"reorder-transaction",tx:e,other:t}}function p(e){return{orphan:"drop-transaction",tx:e}}t.TransactionResponse=u},9596:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NonceManager=void 0;const r=n(5347),f=n(3071);class a extends f.AbstractSigner{signer;#Le;#je;constructor(e){super(e.provider),(0,r.defineProperties)(this,{signer:e}),this.#Le=null,this.#je=0}async getAddress(){return this.signer.getAddress()}connect(e){return new a(this.signer.connect(e))}async getNonce(e){if("pending"===e){null==this.#Le&&(this.#Le=super.getNonce("pending"));const e=this.#je;return await this.#Le+e}return super.getNonce(e)}increment(){this.#je++}reset(){this.#je=0,this.#Le=null}async sendTransaction(e){const t=this.getNonce("pending");return this.increment(),(e=await this.signer.populateTransaction(e)).nonce=await t,await this.signer.sendTransaction(e)}signTransaction(e){return this.signer.signTransaction(e)}signMessage(e){return this.signer.signMessage(e)}signTypedData(e,t,n){return this.signer.signTypedData(e,t,n)}}t.NonceManager=a},7966:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FilterIdPendingSubscriber=t.FilterIdEventSubscriber=t.FilterIdSubscriber=void 0;const r=n(5347),f=n(4338);class a{#Se;#Ue;#Me;#De;#we;#ze;constructor(e){this.#Se=e,this.#Ue=null,this.#Me=this.#He.bind(this),this.#De=!1,this.#we=null,this.#ze=!1}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,t){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}async#He(e){try{null==this.#Ue&&(this.#Ue=this._subscribe(this.#Se));let e=null;try{e=await this.#Ue}catch(e){if(!(0,r.isError)(e,"UNSUPPORTED_OPERATION")||"eth_newFilter"!==e.operation)throw e}if(null==e)return this.#Ue=null,void this.#Se._recoverSubscriber(this,this._recover(this.#Se));const t=await this.#Se.getNetwork();if(this.#we||(this.#we=t),this.#we.chainId!==t.chainId)throw new Error("chaid changed");if(this.#ze)return;const n=await this.#Se.send("eth_getFilterChanges",[e]);await this._emitResults(this.#Se,n)}catch(e){console.log("@TODO",e)}this.#Se.once("block",this.#Me)}#Ge(){const e=this.#Ue;e&&(this.#Ue=null,e.then((e=>{this.#Se.destroyed||this.#Se.send("eth_uninstallFilter",[e])})))}start(){this.#De||(this.#De=!0,this.#He(-2))}stop(){this.#De&&(this.#De=!1,this.#ze=!0,this.#Ge(),this.#Se.off("block",this.#Me))}pause(e){e&&this.#Ge(),this.#Se.off("block",this.#Me)}resume(){this.start()}}t.FilterIdSubscriber=a,t.FilterIdEventSubscriber=class extends a{#Ve;constructor(e,t){var n;super(e),this.#Ve=(n=t,JSON.parse(JSON.stringify(n)))}_recover(e){return new f.PollingEventSubscriber(e,this.#Ve)}async _subscribe(e){return await e.send("eth_newFilter",[this.#Ve])}async _emitResults(e,t){for(const n of t)e.emit(this.#Ve,e._wrapLog(n,e._network))}},t.FilterIdPendingSubscriber=class extends a{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,t){for(const n of t)e.emit("pending",n)}}},4338:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PollingEventSubscriber=t.PollingTransactionSubscriber=t.PollingOrphanSubscriber=t.PollingBlockTagSubscriber=t.OnBlockSubscriber=t.PollingBlockSubscriber=t.getPollingSubscriber=void 0;const r=n(5347);function f(e){return JSON.parse(JSON.stringify(e))}t.getPollingSubscriber=function(e,t){return"block"===t?new a(e):(0,r.isHexString)(t,32)?new i(e,t):void(0,r.assert)(!1,"unsupported polling event","UNSUPPORTED_OPERATION",{operation:"getPollingSubscriber",info:{event:t}})};class a{#Se;#Me;#Ke;#qe;constructor(e){this.#Se=e,this.#Me=null,this.#Ke=4e3,this.#qe=-2}get pollingInterval(){return this.#Ke}set pollingInterval(e){this.#Ke=e}async#He(){try{const e=await this.#Se.getBlockNumber();if(-2===this.#qe)return void(this.#qe=e);if(e!==this.#qe){for(let t=this.#qe+1;t<=e;t++){if(null==this.#Me)return;await this.#Se.emit("block",t)}this.#qe=e}}catch(e){}null!=this.#Me&&(this.#Me=this.#Se._setTimeout(this.#He.bind(this),this.#Ke))}start(){this.#Me||(this.#Me=this.#Se._setTimeout(this.#He.bind(this),this.#Ke),this.#He())}stop(){this.#Me&&(this.#Se._clearTimeout(this.#Me),this.#Me=null)}pause(e){this.stop(),e&&(this.#qe=-2)}resume(){this.start()}}t.PollingBlockSubscriber=a;class s{#Se;#He;#De;constructor(e){this.#Se=e,this.#De=!1,this.#He=e=>{this._poll(e,this.#Se)}}async _poll(e,t){throw new Error("sub-classes must override this")}start(){this.#De||(this.#De=!0,this.#He(-2),this.#Se.on("block",this.#He))}stop(){this.#De&&(this.#De=!1,this.#Se.off("block",this.#He))}pause(e){this.stop()}resume(){this.start()}}t.OnBlockSubscriber=s,t.PollingBlockTagSubscriber=class extends s{#Qe;#Je;constructor(e,t){super(e),this.#Qe=t,this.#Je=-2}pause(e){e&&(this.#Je=-2),super.pause(e)}async _poll(e,t){const n=await t.getBlock(this.#Qe);null!=n&&(-2===this.#Je?this.#Je=n.number:n.number>this.#Je&&(t.emit(this.#Qe,n.number),this.#Je=n.number))}},t.PollingOrphanSubscriber=class extends s{#A;constructor(e,t){super(e),this.#A=f(t)}async _poll(e,t){throw new Error("@TODO")}};class i extends s{#We;constructor(e,t){super(e),this.#We=t}async _poll(e,t){const n=await t.getTransactionReceipt(this.#We);n&&t.emit(this.#We,n)}}t.PollingTransactionSubscriber=i,t.PollingEventSubscriber=class{#Se;#A;#Me;#De;#qe;constructor(e,t){this.#Se=e,this.#A=f(t),this.#Me=this.#He.bind(this),this.#De=!1,this.#qe=-2}async#He(e){if(-2===this.#qe)return;const t=f(this.#A);t.fromBlock=this.#qe+1,t.toBlock=e;const n=await this.#Se.getLogs(t);if(0!==n.length)for(const e of n)this.#Se.emit(this.#A,e),this.#qe=e.blockNumber;else this.#qe{this.#qe=e})),this.#Se.on("block",this.#Me))}stop(){this.#De&&(this.#De=!1,this.#Se.off("block",this.#Me))}pause(e){this.stop(),e&&(this.#qe=-2)}resume(){this.start()}}},3913:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocket=void 0;const r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("unable to locate global object")}().WebSocket;t.WebSocket=r},7918:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.accessListify=void 0;const r=n(646),f=n(5347);function a(e,t){return{address:(0,r.getAddress)(e),storageKeys:t.map(((e,t)=>((0,f.assertArgument)((0,f.isHexString)(e,32),"invalid slot",`storageKeys[${t}]`,e),e.toLowerCase())))}}t.accessListify=function(e){if(Array.isArray(e))return e.map(((t,n)=>Array.isArray(t)?((0,f.assertArgument)(2===t.length,"invalid slot set",`value[${n}]`,t),a(t[0],t[1])):((0,f.assertArgument)(null!=t&&"object"==typeof t,"invalid address-slot set","value",e),a(t.address,t.storageKeys))));(0,f.assertArgument)(null!=e&&"object"==typeof e,"invalid access list","value",e);const t=Object.keys(e).map((t=>{const n=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return a(t,Object.keys(n).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}},778:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=t.computeAddress=void 0;const r=n(646),f=n(2291);function a(e){let t;return t="string"==typeof e?f.SigningKey.computePublicKey(e,!1):e.publicKey,(0,r.getAddress)((0,f.keccak256)("0x"+t.substring(4)).substring(26))}t.computeAddress=a,t.recoverAddress=function(e,t){return a(f.SigningKey.recoverPublicKey(e,t))}},7778:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=t.recoverAddress=t.computeAddress=t.accessListify=void 0;var r=n(7918);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return r.accessListify}});var f=n(778);Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return f.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return f.recoverAddress}});var a=n(1398);Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return a.Transaction}})},1398:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=void 0;const r=n(646),f=n(5239),a=n(2291),s=n(5347),i=n(7918),o=n(778),l=BigInt(0),c=BigInt(2),u=BigInt(27),d=BigInt(28),p=BigInt(35),h=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),b=131072;function g(e,t){let n=e.toString(16);for(;n.length<2;)n="0"+n;return n+=(0,a.sha256)(t).substring(4),"0x"+n}function m(e){return"0x"===e?null:(0,r.getAddress)(e)}function y(e,t){try{return(0,i.accessListify)(e)}catch(n){(0,s.assertArgument)(!1,n.message,t,e)}}function v(e,t){return"0x"===e?0:(0,s.getNumber)(e,t)}function w(e,t){if("0x"===e)return l;const n=(0,s.getBigInt)(e,t);return(0,s.assertArgument)(n<=h,"value exceeds uint size",t,n),n}function A(e,t){const n=(0,s.getBigInt)(e,"value"),r=(0,s.toBeArray)(n);return(0,s.assertArgument)(r.length<=32,"value too large",`tx.${t}`,n),r}function k(e){return(0,i.accessListify)(e).map((e=>[e.address,e.storageKeys]))}function P(e,t){(0,s.assertArgument)(Array.isArray(e),`invalid ${t}`,"value",e);for(let t=0;tObject.assign({},e)))}set blobs(e){if(null==e)return void(this.#lt=null);const t=[],n=[];for(let r=0;re.data)),n.map((e=>e.commitment)),n.map((e=>e.proof))])]):(0,s.concat)(["0x03",(0,s.encodeRlp)(r)])}(this,n,t?this.blobs:null)}(0,s.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get serialized(){return this.#ct(!0,!0)}get unsignedSerialized(){return this.#ct(!1,!1)}inferType(){const e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){const e=null!=this.gasPrice,t=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,n=null!=this.accessList,r=null!=this.#st||this.#it;null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&&(0,s.assert)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,s.assert)(!t||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,s.assert)(0!==this.type||!n,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const f=[];return null!=this.type?f.push(this.type):t?f.push(2):e?(f.push(1),n||f.push(0)):n?(f.push(1),f.push(2)):(r&&this.to||(f.push(0),f.push(1),f.push(2)),f.push(3)),f.sort(),f}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}clone(){return S.from(this)}toJSON(){const e=e=>null==e?null:e.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(null==e)return new S;if("string"==typeof e){const t=(0,s.getBytes)(e);if(t[0]>=127)return S.from(function(e){const t=(0,s.decodeRlp)(e);(0,s.assertArgument)(Array.isArray(t)&&(9===t.length||6===t.length),"invalid field count for legacy transaction","data",e);const n={type:0,nonce:v(t[0],"nonce"),gasPrice:w(t[1],"gasPrice"),gasLimit:w(t[2],"gasLimit"),to:m(t[3]),value:w(t[4],"value"),data:(0,s.hexlify)(t[5]),chainId:l};if(6===t.length)return n;const r=w(t[6],"v"),f=w(t[7],"r"),i=w(t[8],"s");if(f===l&&i===l)n.chainId=r;else{let e=(r-p)/c;e{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBase58=t.encodeBase58=void 0;const r=n(7415),f=n(1500),a=n(6508),s="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";let i=null;function o(e){if(null==i){i={};for(let e=0;e<58;e++)i[s[e]]=BigInt(e)}const t=i[e];return(0,f.assertArgument)(null!=t,"invalid base58 value","letter",e),t}const l=BigInt(0),c=BigInt(58);t.encodeBase58=function(e){const t=(0,r.getBytes)(e);let n=(0,a.toBigInt)(t),f="";for(;n;)f=s[Number(n%c)]+f,n/=c;for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBase64=t.decodeBase64=void 0;const r=n(7415);t.decodeBase64=function(e){e=atob(e);const t=new Uint8Array(e.length);for(let n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=void 0;const r=n(1500);function f(e,t,n){if(e instanceof Uint8Array)return n?new Uint8Array(e):e;if("string"==typeof e&&e.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){const t=new Uint8Array((e.length-2)/2);let n=2;for(let r=0;r>4]+i[15&r]}return n}function l(e,t,n){const f=a(e);(0,r.assert)(t>=f.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(f),length:t,offset:t+1});const s=new Uint8Array(t);return s.fill(0),n?s.set(f,t-f.length):s.set(f,0),o(s)}t.hexlify=o,t.concat=function(e){return"0x"+e.map((e=>o(e).substring(2))).join("")},t.dataLength=function(e){return s(e,!0)?(e.length-2)/2:a(e).length},t.dataSlice=function(e,t,n){const f=a(e);return null!=n&&n>f.length&&(0,r.assert)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:f,length:f.length,offset:n}),o(f.slice(null==t?0:t,null==n?f.length:n))},t.stripZerosLeft=function(e){let t=o(e).substring(2);for(;t.startsWith("00");)t=t.substring(2);return"0x"+t},t.zeroPadValue=function(e,t){return l(e,t,!0)},t.zeroPadBytes=function(e,t){return l(e,t,!1)}},1500:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertPrivate=t.assertNormalize=t.assertArgumentCount=t.assertArgument=t.assert=t.makeError=t.isCallException=t.isError=void 0;const r=n(4586),f=n(8166);function a(e){if(null==e)return"null";if(Array.isArray(e))return"[ "+e.map(a).join(", ")+" ]";if(e instanceof Uint8Array){const t="0123456789abcdef";let n="0x";for(let r=0;r>4],n+=t[15&e[r]];return n}if("object"==typeof e&&"function"==typeof e.toJSON)return a(e.toJSON());switch(typeof e){case"boolean":case"symbol":case"number":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{const t=Object.keys(e);return t.sort(),"{ "+t.map((t=>`${a(t)}: ${a(e[t])}`)).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function s(e,t){return e&&e.code===t}function i(e,t,n){let s,i=e;{const f=[];if(n){if("message"in n||"code"in n||"name"in n)throw new Error(`value will overwrite populated values: ${a(n)}`);for(const e in n){if("shortMessage"===e)continue;const t=n[e];f.push(e+"="+a(t))}}f.push(`code=${t}`),f.push(`version=${r.version}`),f.length&&(e+=" ("+f.join(", ")+")")}switch(t){case"INVALID_ARGUMENT":s=new TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":s=new RangeError(e);break;default:s=new Error(e)}return(0,f.defineProperties)(s,{code:t}),n&&Object.assign(s,n),null==s.shortMessage&&(0,f.defineProperties)(s,{shortMessage:i}),s}function o(e,t,n,r){if(!e)throw i(t,n,r)}t.isError=s,t.isCallException=function(e){return s(e,"CALL_EXCEPTION")},t.makeError=i,t.assert=o,t.assertArgument=function(e,t,n,r){o(e,t,"INVALID_ARGUMENT",{argument:n,value:r})},t.assertArgumentCount=function(e,t,n){null==n&&(n=""),n&&(n=": "+n),o(e>=t,"missing argument"+n,"MISSING_ARGUMENT",{count:e,expectedCount:t}),o(e<=t,"too many arguments"+n,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})};const l=["NFD","NFC","NFKD","NFKC"].reduce(((e,t)=>{try{if("test"!=="test".normalize(t))throw new Error("bad");if("NFD"===t){if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken")}e.push(t)}catch(e){}return e}),[]);t.assertNormalize=function(e){o(l.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})},t.assertPrivate=function(e,t,n){if(null==n&&(n=""),e!==t){let e=n,t="new";n&&(e+=".",t+=" "+n),o(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}}},7698:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EventPayload=void 0;const r=n(8166);t.EventPayload=class{filter;emitter;#ut;constructor(e,t,n){this.#ut=t,(0,r.defineProperties)(this,{emitter:e,filter:n})}async removeListener(){null!=this.#ut&&await this.emitter.off(this.filter,this.#ut)}}},5191:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FetchResponse=t.FetchRequest=t.FetchCancelSignal=void 0;const r=n(1949),f=n(7415),a=n(1500),s=n(8166),i=n(3948),o=n(3271);let l=(0,o.createGetUrl)();const c=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),u=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let d=!1;async function p(e,t){try{const t=e.match(c);if(!t)throw new Error("invalid data");return new w(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?(0,r.decodeBase64)(t[3]):(n=t[3],(0,i.toUtf8Bytes)(n.replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16)))))))}catch(t){return new w(599,"BAD REQUEST (invalid data: URI)",{},null,new v(e))}var n}function h(e){return async function(t,n){try{const n=t.match(u);if(!n)throw new Error("invalid link");return new v(`${e}${n[2]}`)}catch(e){return new w(599,"BAD REQUEST (invalid IPFS URI)",{},null,new v(t))}}}const b={data:p,ipfs:h("https://gateway.ipfs.io/ipfs/")},g=new WeakMap;class m{#dt;#pt;constructor(e){this.#dt=[],this.#pt=!1,g.set(e,(()=>{if(!this.#pt){this.#pt=!0;for(const e of this.#dt)setTimeout((()=>{e()}),0);this.#dt=[]}}))}addListener(e){(0,a.assert)(!this.#pt,"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),this.#dt.push(e)}get cancelled(){return this.#pt}checkSignal(){(0,a.assert)(!this.cancelled,"cancelled","CANCELLED",{})}}function y(e){if(null==e)throw new Error("missing signal; should not happen");return e.checkSignal(),e}t.FetchCancelSignal=m;class v{#ht;#bt;#gt;#mt;#yt;#fe;#vt;#wt;#At;#kt;#Pt;#Et;#St;#Ot;#xt;get url(){return this.#fe}set url(e){this.#fe=String(e)}get body(){return null==this.#vt?null:new Uint8Array(this.#vt)}set body(e){if(null==e)this.#vt=void 0,this.#wt=void 0;else if("string"==typeof e)this.#vt=(0,i.toUtf8Bytes)(e),this.#wt="text/plain";else if(e instanceof Uint8Array)this.#vt=e,this.#wt="application/octet-stream";else{if("object"!=typeof e)throw new Error("invalid body");this.#vt=(0,i.toUtf8Bytes)(JSON.stringify(e)),this.#wt="application/json"}}hasBody(){return null!=this.#vt}get method(){return this.#mt?this.#mt:this.hasBody()?"POST":"GET"}set method(e){null==e&&(e=""),this.#mt=String(e).toUpperCase()}get headers(){const e=Object.assign({},this.#gt);return this.#At&&(e.authorization=`Basic ${(0,r.encodeBase64)((0,i.toUtf8Bytes)(this.#At))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),null==e["content-type"]&&this.#wt&&(e["content-type"]=this.#wt),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){this.#gt[String(e).toLowerCase()]=String(t)}clearHeaders(){this.#gt={}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n=0,"timeout must be non-zero","timeout",e),this.#yt=e}get preflightFunc(){return this.#kt||null}set preflightFunc(e){this.#kt=e}get processFunc(){return this.#Pt||null}set processFunc(e){this.#Pt=e}get retryFunc(){return this.#Et||null}set retryFunc(e){this.#Et=e}get getUrlFunc(){return this.#xt||l}set getUrlFunc(e){this.#xt=e}constructor(e){this.#fe=String(e),this.#ht=!1,this.#bt=!0,this.#gt={},this.#mt="",this.#yt=3e5,this.#Ot={slotInterval:250,maxAttempts:12},this.#xt=null}toString(){return``}setThrottleParams(e){null!=e.slotInterval&&(this.#Ot.slotInterval=e.slotInterval),null!=e.maxAttempts&&(this.#Ot.maxAttempts=e.maxAttempts)}async#Tt(e,t,n,r,f){if(e>=this.#Ot.maxAttempts)return f.makeServerError("exceeded maximum retry limit");(0,a.assert)(A()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:r}),n>0&&await function(e){return new Promise((t=>setTimeout(t,e)))}(n);let s=this.clone();const i=(s.url.split(":")[0]||"").toLowerCase();if(i in b){const e=await b[i](s.url,y(r.#St));if(e instanceof w){let t=e;if(this.processFunc){y(r.#St);try{t=await this.processFunc(s,t)}catch(e){null!=e.throttle&&"number"==typeof e.stall||t.makeServerError("error in post-processing function",e).assertOk()}}return t}s=e}this.preflightFunc&&(s=await this.preflightFunc(s));const o=await this.getUrlFunc(s,y(r.#St));let l=new w(o.statusCode,o.statusMessage,o.headers,o.body,r);if(301===l.statusCode||302===l.statusCode){try{const n=l.headers.location||"";return s.redirect(n).#Tt(e+1,t,0,r,l)}catch(e){}return l}if(429===l.statusCode&&(null==this.retryFunc||await this.retryFunc(s,l,e))){const n=l.headers["retry-after"];let f=this.#Ot.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return"string"==typeof n&&n.match(/^[1-9][0-9]*$/)&&(f=parseInt(n)),s.clone().#Tt(e+1,t,f,r,l)}if(this.processFunc){y(r.#St);try{l=await this.processFunc(s,l)}catch(n){null!=n.throttle&&"number"==typeof n.stall||l.makeServerError("error in post-processing function",n).assertOk();let f=this.#Ot.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return n.stall>=0&&(f=n.stall),s.clone().#Tt(e+1,t,f,r,l)}}return l}send(){return(0,a.assert)(null==this.#St,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),this.#St=new m(this),this.#Tt(0,A()+this.timeout,0,this,new w(0,"",{},null,this))}cancel(){(0,a.assert)(null!=this.#St,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=g.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const t=this.url.split(":")[0].toLowerCase(),n=e.split(":")[0].toLowerCase();(0,a.assert)("GET"===this.method&&("https"!==t||"http"!==n)&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const r=new v(e);return r.method="GET",r.allowGzip=this.allowGzip,r.timeout=this.timeout,r.#gt=Object.assign({},this.#gt),this.#vt&&(r.#vt=new Uint8Array(this.#vt)),r.#wt=this.#wt,r}clone(){const e=new v(this.url);return e.#mt=this.#mt,this.#vt&&(e.#vt=this.#vt),e.#wt=this.#wt,e.#gt=Object.assign({},this.#gt),e.#At=this.#At,this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),e.#kt=this.#kt,e.#Pt=this.#Pt,e.#Et=this.#Et,e.#Ot=Object.assign({},this.#Ot),e.#xt=this.#xt,e}static lockConfig(){d=!0}static getGateway(e){return b[e.toLowerCase()]||null}static registerGateway(e,t){if("http"===(e=e.toLowerCase())||"https"===e)throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(d)throw new Error("gateways locked");b[e]=t}static registerGetUrl(e){if(d)throw new Error("gateways locked");l=e}static createGetUrlFunc(e){return(0,o.createGetUrl)(e)}static createDataGateway(){return p}static createIpfsGatewayFunc(e){return h(e)}}t.FetchRequest=v;class w{#Ct;#Nt;#gt;#vt;#se;#Rt;toString(){return``}get statusCode(){return this.#Ct}get statusMessage(){return this.#Nt}get headers(){return Object.assign({},this.#gt)}get body(){return null==this.#vt?null:new Uint8Array(this.#vt)}get bodyText(){try{return null==this.#vt?"":(0,i.toUtf8String)(this.#vt)}catch(e){(0,a.assert)(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch(e){(0,a.assert)(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n(e[t.toLowerCase()]=String(n[t]),e)),{}),this.#vt=null==r?null:new Uint8Array(r),this.#se=f||null,this.#Rt={message:""}}makeServerError(e,t){let n;n=e?`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:`CLIENT ESCALATED SERVER ERROR (${e=`${this.statusCode} ${this.statusMessage}`})`;const r=new w(599,n,this.headers,this.body,this.#se||void 0);return r.#Rt={message:e,error:t},r}throwThrottleError(e,t){null==t?t=-1:(0,a.assertArgument)(Number.isInteger(t)&&t>=0,"invalid stall timeout","stall",t);const n=new Error(e||"throttling requests");throw(0,s.defineProperties)(n,{stall:t,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return null!=this.#vt}get request(){return this.#se}ok(){return""===this.#Rt.message&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=this.#Rt;""===e&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let n=null;this.request&&(n=this.request.url);let r=null;try{this.#vt&&(r=(0,i.toUtf8String)(this.#vt))}catch(e){}(0,a.assert)(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t,info:{requestUrl:n,responseBody:r,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}}function A(){return(new Date).getTime()}t.FetchResponse=w},9412:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FixedNumber=void 0;const r=n(7415),f=n(1500),a=n(6508),s=n(8166),i=BigInt(-1),o=BigInt(0),l=BigInt(1),c=BigInt(5),u={};let d="0000";for(;d.length<80;)d+=d;function p(e){let t=d;for(;t.length=-t&&eo?(0,a.fromTwos)((0,a.mask)(e,r),r):-(0,a.fromTwos)((0,a.mask)(-e,r),r)}else{const t=l<=0&&enull==a[e]?n:((0,f.assertArgument)(typeof a[e]===t,"invalid fixed format ("+e+" not "+t+")","format."+e,a[e]),a[e]);t=s("signed","boolean",t),n=s("width","number",n),r=s("decimals","number",r)}return(0,f.assertArgument)(n%8==0,"invalid FixedNumber width (not byte aligned)","format.width",n),(0,f.assertArgument)(r<=80,"invalid FixedNumber decimals (too large)","format.decimals",r),{signed:t,width:n,decimals:r,name:(t?"":"u")+"fixed"+String(n)+"x"+String(r)}}class g{format;#Bt;#It;#_t;_value;constructor(e,t,n){(0,f.assertPrivate)(e,u,"FixedNumber"),this.#It=t,this.#Bt=n;const r=function(e,t){let n="";e0?n*=p(r):r<0&&(t*=p(-r)),tn?1:0}eq(e){return 0===this.cmp(e)}lt(e){return this.cmp(e)<0}lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=this.#It;return this.#Ito&&(e+=this.#_t-l),e=this.#It/this.#_t*this.#_t,this.#Lt(e,"ceiling")}round(e){if(null==e&&(e=0),e>=this.decimals)return this;const t=this.decimals-e,n=c*p(t-1);let r=this.value+n;const f=p(t);return r=r/f*f,h(r,this.#Bt,"round"),new g(u,r,this.#Bt)}isZero(){return this.#It===o}isNegative(){return this.#It0){const t=p(l);(0,f.assert)(i%t===o,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),i/=t}else l<0&&(i*=p(-l));return h(i,s,"fromValue"),new g(u,i,s)}static fromString(e,t){const n=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);(0,f.assertArgument)(n&&n[2].length+n[3].length>0,"invalid FixedNumber string value","value",e);const r=b(t);let a=n[2]||"0",s=n[3]||"";for(;s.length{Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=t.createGetUrl=void 0;const r=n(1500);function f(e){return async function(e,t){(0,r.assert)(null==t||!t.cancelled,"request cancelled before sending","CANCELLED");const n=e.url.split(":")[0].toLowerCase();(0,r.assert)("http"===n||"https"===n,`unsupported protocol ${n}`,"UNSUPPORTED_OPERATION",{info:{protocol:n},operation:"request"}),(0,r.assert)("https"===n||!e.credentials||e.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let f=null;const a=new AbortController,s=setTimeout((()=>{f=(0,r.makeError)("request timeout","TIMEOUT"),a.abort()}),e.timeout);t&&t.addListener((()=>{f=(0,r.makeError)("request cancelled","CANCELLED"),a.abort()}));const i={method:e.method,headers:new Headers(Array.from(e)),body:e.body||void 0,signal:a.signal};let o;try{o=await fetch(e.url,i)}catch(e){if(clearTimeout(s),f)throw f;throw e}clearTimeout(s);const l={};o.headers.forEach(((e,t)=>{l[t.toLowerCase()]=e}));const c=await o.arrayBuffer(),u=null==c?null:new Uint8Array(c);return{statusCode:o.status,statusMessage:o.statusText,headers:l,body:u}}}t.createGetUrl=f;const a=f();t.getUrl=async function(e,t){return a(e,t)}},5347:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.encodeRlp=t.decodeRlp=t.defineProperties=t.resolveProperties=t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.toBigInt=t.getUint=t.getNumber=t.getBigInt=t.mask=t.toTwos=t.fromTwos=t.FixedNumber=t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.makeError=t.assertNormalize=t.assertPrivate=t.assertArgumentCount=t.assertArgument=t.assert=t.isError=t.isCallException=t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=void 0,t.uuidV4=t.Utf8ErrorFuncs=void 0;var r=n(8567);Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return r.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return r.encodeBase58}});var f=n(1949);Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return f.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return f.encodeBase64}});var a=n(7415);Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return a.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return a.getBytesCopy}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return a.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return a.isBytesLike}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return a.hexlify}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return a.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return a.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return a.dataSlice}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return a.stripZerosLeft}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return a.zeroPadValue}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return a.zeroPadBytes}});var s=n(1500);Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return s.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return s.isError}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return s.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return s.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return s.assertArgumentCount}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return s.assertPrivate}}),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return s.assertNormalize}}),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return s.makeError}});var i=n(7698);Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return i.EventPayload}});var o=n(5191);Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return o.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return o.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return o.FetchCancelSignal}});var l=n(9412);Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return l.FixedNumber}});var c=n(6508);Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return c.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return c.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return c.mask}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return c.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return c.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return c.getUint}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return c.toBigInt}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return c.toNumber}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return c.toBeHex}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return c.toBeArray}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return c.toQuantity}});var u=n(8166);Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return u.resolveProperties}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return u.defineProperties}});var d=n(7780);Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return d.decodeRlp}});var p=n(5212);Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return p.encodeRlp}});var h=n(436);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return h.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return h.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return h.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return h.parseUnits}});var b=n(3948);Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return b.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return b.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return b.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return b.Utf8ErrorFuncs}});var g=n(7744);Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return g.uuidV4}})},6508:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.getNumber=t.toBigInt=t.getUint=t.getBigInt=t.mask=t.toTwos=t.fromTwos=void 0;const r=n(7415),f=n(1500),a=BigInt(0),s=BigInt(1),i=9007199254740991;function o(e,t){switch(typeof e){case"bigint":return e;case"number":return(0,f.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,f.assertArgument)(e>=-i&&e<=i,"overflow",t||"value",e),BigInt(e);case"string":try{if(""===e)throw new Error("empty string");return"-"===e[0]&&"-"!==e[1]?-BigInt(e.substring(1)):BigInt(e)}catch(n){(0,f.assertArgument)(!1,`invalid BigNumberish string: ${n.message}`,t||"value",e)}}(0,f.assertArgument)(!1,"invalid BigNumberish value",t||"value",e)}function l(e,t){const n=o(e,t);return(0,f.assert)(n>=a,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),n}t.fromTwos=function(e,t){const n=l(e,"value"),r=BigInt(d(t,"width"));return(0,f.assert)(n>>r===a,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),n>>r-s?-((~n&(s<>4],t+=c[15&n];return BigInt(t)}return o(e)}function d(e,t){switch(typeof e){case"bigint":return(0,f.assertArgument)(e>=-i&&e<=i,"overflow",t||"value",e),Number(e);case"number":return(0,f.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,f.assertArgument)(e>=-i&&e<=i,"overflow",t||"value",e),e;case"string":try{if(""===e)throw new Error("empty string");return d(BigInt(e),t)}catch(n){(0,f.assertArgument)(!1,`invalid numeric string: ${n.message}`,t||"value",e)}}(0,f.assertArgument)(!1,"invalid numeric value",t||"value",e)}function p(e){const t=l(e,"value");if(t===a)return new Uint8Array([]);let n=t.toString(16);n.length%2&&(n="0"+n);const r=new Uint8Array(n.length/2);for(let e=0;e=n.length,`value exceeds width (${r} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});n.length<2*r;)n="0"+n}return"0x"+n},t.toBeArray=p,t.toQuantity=function(e){let t=(0,r.hexlify)((0,r.isBytesLike)(e)?e:p(e)).substring(2);for(;t.startsWith("0");)t=t.substring(1);return""===t&&(t="0"),"0x"+t}},8166:(e,t)=>{function n(e,t,n){const r=t.split("|").map((e=>e.trim()));for(let n=0;nPromise.resolve(e[t]))))).reduce(((e,n,r)=>(e[t[r]]=n,e)),{})},t.defineProperties=function(e,t,r){for(let f in t){let a=t[f];const s=r?r[f]:null;s&&n(a,s,f),Object.defineProperty(e,f,{enumerable:!0,value:a,writable:!1})}}},7780:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeRlp=void 0;const r=n(7415),f=n(1500),a=n(7415);function s(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}function i(e,t,n){let r=0;for(let f=0;f{(0,f.assert)(t<=e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:e,length:e.length,offset:t})};if(e[t]>=248){const r=e[t]-247;n(t+1+r);const f=i(e,t+1,r);return n(t+1+r+f),o(e,t,t+1+r,r+f)}if(e[t]>=192){const r=e[t]-192;return n(t+1+r),o(e,t,t+1,r)}if(e[t]>=184){const f=e[t]-183;n(t+1+f);const a=i(e,t+1,f);return n(t+1+f+a),{consumed:1+f+a,result:(0,r.hexlify)(e.slice(t+1+f,t+1+f+a))}}if(e[t]>=128){const f=e[t]-128;return n(t+1+f),{consumed:1+f,result:(0,r.hexlify)(e.slice(t+1,t+1+f))}}return{consumed:1,result:s(e[t])}}t.decodeRlp=function(e){const t=(0,a.getBytes)(e,"data"),n=l(t,0);return(0,f.assertArgument)(n.consumed===t.length,"unexpected junk after rlp payload","data",e),n.result}},5212:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeRlp=void 0;const r=n(7415);function f(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function a(e){if(Array.isArray(e)){let t=[];if(e.forEach((function(e){t=t.concat(a(e))})),t.length<=55)return t.unshift(192+t.length),t;const n=f(t.length);return n.unshift(247+n.length),n.concat(t)}const t=Array.prototype.slice.call((0,r.getBytes)(e,"object"));if(1===t.length&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const n=f(t.length);return n.unshift(183+n.length),n.concat(t)}const s="0123456789abcdef";t.encodeRlp=function(e){let t="0x";for(const n of a(e))t+=s[n>>4],t+=s[15&n];return t}},436:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=t.formatEther=t.parseUnits=t.formatUnits=void 0;const r=n(1500),f=n(9412),a=n(6508),s=["wei","kwei","mwei","gwei","szabo","finney","ether"];function i(e,t){let n=18;if("string"==typeof t){const e=s.indexOf(t);(0,r.assertArgument)(e>=0,"invalid unit","unit",t),n=3*e}else null!=t&&(n=(0,a.getNumber)(t,"unit"));return f.FixedNumber.fromValue(e,n,{decimals:n,width:512}).toString()}function o(e,t){(0,r.assertArgument)("string"==typeof e,"value must be a string","value",e);let n=18;if("string"==typeof t){const e=s.indexOf(t);(0,r.assertArgument)(e>=0,"invalid unit","unit",t),n=3*e}else null!=t&&(n=(0,a.getNumber)(t,"unit"));return f.FixedNumber.fromString(e,{decimals:n,width:512}).value}t.formatUnits=i,t.parseUnits=o,t.formatEther=function(e){return i(e,18)},t.parseEther=function(e){return o(e,18)}},3948:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8CodePoints=t.toUtf8String=t.toUtf8Bytes=t.Utf8ErrorFuncs=void 0;const r=n(7415),f=n(1500);function a(e,t,n,r,f){if("BAD_PREFIX"===e||"UNEXPECTED_CONTINUE"===e){let e=0;for(let r=t+1;r>6==2;r++)e++;return e}return"OVERRUN"===e?n.length-t-1:0}function s(e,n){null==n&&(n=t.Utf8ErrorFuncs.error);const f=(0,r.getBytes)(e,"bytes"),a=[];let s=0;for(;s>7)){a.push(e);continue}let t=null,r=null;if(192==(224&e))t=1,r=127;else if(224==(240&e))t=2,r=2047;else{if(240!=(248&e)){s+=n(128==(192&e)?"UNEXPECTED_CONTINUE":"BAD_PREFIX",s-1,f,a);continue}t=3,r=65535}if(s-1+t>=f.length){s+=n("OVERRUN",s-1,f,a);continue}let i=e&(1<<8-t-1)-1;for(let e=0;e1114111?s+=n("OUT_OF_RANGE",s-1-t,f,a,i):i>=55296&&i<=57343?s+=n("UTF16_SURROGATE",s-1-t,f,a,i):i<=r?s+=n("OVERLONG",s-1-t,f,a,i):a.push(i))}return a}function i(e,t){(0,f.assertArgument)("string"==typeof e,"invalid string value","str",e),null!=t&&((0,f.assertNormalize)(t),e=e.normalize(t));let n=[];for(let t=0;t>6|192),n.push(63&r|128);else if(55296==(64512&r)){t++;const a=e.charCodeAt(t);(0,f.assertArgument)(t>18|240),n.push(s>>12&63|128),n.push(s>>6&63|128),n.push(63&s|128)}else n.push(r>>12|224),n.push(r>>6&63|128),n.push(63&r|128)}return new Uint8Array(n)}t.Utf8ErrorFuncs=Object.freeze({error:function(e,t,n,r,a){(0,f.assertArgument)(!1,`invalid codepoint at offset ${t}; ${e}`,"bytes",n)},ignore:a,replace:function(e,t,n,r,s){return"OVERLONG"===e?((0,f.assertArgument)("number"==typeof s,"invalid bad code point for replacement","badCodepoint",s),r.push(s),0):(r.push(65533),a(e,t,n))}}),t.toUtf8Bytes=i,t.toUtf8String=function(e,t){return s(e,t).map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")},t.toUtf8CodePoints=function(e,t){return s(i(e,t))}},7744:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.uuidV4=void 0;const r=n(7415);t.uuidV4=function(e){const t=(0,r.getBytes)(e,"randomBytes");t[6]=15&t[6]|64,t[8]=63&t[8]|128;const n=(0,r.hexlify)(t);return[n.substring(2,10),n.substring(10,14),n.substring(14,18),n.substring(18,22),n.substring(22,34)].join("-")}},8394:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseWallet=void 0;const r=n(646),f=n(3562),a=n(3996),s=n(7778),i=n(5347);class o extends a.AbstractSigner{address;#zt;constructor(e,t){super(t),(0,i.assertArgument)(e&&"function"==typeof e.sign,"invalid private key","privateKey","[ REDACTED ]"),this.#zt=e;const n=(0,s.computeAddress)(this.signingKey.publicKey);(0,i.defineProperties)(this,{address:n})}get signingKey(){return this.#zt}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(e){return new o(this.#zt,e)}async signTransaction(e){e=(0,a.copyRequest)(e);const{to:t,from:n}=await(0,i.resolveProperties)({to:e.to?(0,r.resolveAddress)(e.to,this.provider):void 0,from:e.from?(0,r.resolveAddress)(e.from,this.provider):void 0});null!=t&&(e.to=t),null!=n&&(e.from=n),null!=e.from&&((0,i.assertArgument)((0,r.getAddress)(e.from)===this.address,"transaction from address mismatch","tx.from",e.from),delete e.from);const f=s.Transaction.from(e);return f.signature=this.signingKey.sign(f.unsignedHash),f.serialized}async signMessage(e){return this.signMessageSync(e)}signMessageSync(e){return this.signingKey.sign((0,f.hashMessage)(e)).serialized}async signTypedData(e,t,n){const r=await f.TypedDataEncoder.resolveNames(e,t,n,(async e=>{(0,i.assert)(null!=this.provider,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:e}});const t=await this.provider.resolveName(e);return(0,i.assert)(null!=t,"unconfigured ENS name","UNCONFIGURED_NAME",{value:e}),t}));return this.signingKey.sign(f.TypedDataEncoder.hash(r.domain,t,r.value)).serialized}}t.BaseWallet=o},22:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getIndexedAccountPath=t.getAccountPath=t.HDNodeVoidWallet=t.HDNodeWallet=t.defaultPath=void 0;const r=n(2291),f=n(3996),a=n(7778),s=n(5347),i=n(9943),o=n(8394),l=n(2931),c=n(1650);t.defaultPath="m/44'/60'/0'/0/0";const u=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),d=2147483648,p=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");function h(e,t){let n="";for(;e;)n="0123456789abcdef"[e%16]+n,e=Math.trunc(e/16);for(;n.length<2*t;)n="0"+n;return"0x"+n}function b(e){const t=(0,s.getBytes)(e),n=(0,s.dataSlice)((0,r.sha256)((0,r.sha256)(t)),0,4),f=(0,s.concat)([t,n]);return(0,s.encodeBase58)(f)}const g={};function m(e,t,n,f){const a=new Uint8Array(37);e&d?((0,s.assert)(null!=f,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),a.set((0,s.getBytes)(f),1)):a.set((0,s.getBytes)(n));for(let t=24;t>=0;t-=8)a[33+(t>>3)]=e>>24-t&255;const i=(0,s.getBytes)((0,r.computeHmac)("sha512",t,a));return{IL:i.slice(0,32),IR:i.slice(32)}}function y(e,t){const n=t.split("/");(0,s.assertArgument)(n.length>0,"invalid path","path",t),"m"===n[0]&&((0,s.assertArgument)(0===e.depth,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${e.depth}`,"path",t),n.shift());let r=e;for(let e=0;e=16&&n.length<=64,"invalid seed","seed","[REDACTED]");const f=(0,s.getBytes)((0,r.computeHmac)("sha512",u,n)),a=new r.SigningKey((0,s.hexlify)(f.slice(0,32)));return new v(g,a,"0x00000000",(0,s.hexlify)(f.slice(32)),"m",0,0,t,null)}static fromExtendedKey(e){const t=(0,s.toBeArray)((0,s.decodeBase58)(e));(0,s.assertArgument)(82===t.length||b(t.slice(0,78))===e,"invalid extended key","extendedKey","[ REDACTED ]");const n=t[4],f=(0,s.hexlify)(t.slice(5,9)),i=parseInt((0,s.hexlify)(t.slice(9,13)).substring(2),16),o=(0,s.hexlify)(t.slice(13,45)),l=t.slice(45,78);switch((0,s.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":{const e=(0,s.hexlify)(l);return new w(g,(0,a.computeAddress)(e),e,f,o,null,i,n,null)}case"0x0488ade4":case"0x04358394 ":if(0!==l[0])break;return new v(g,new r.SigningKey(l.slice(1)),f,o,null,i,n,null,null)}(0,s.assertArgument)(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(e,n,f){null==e&&(e=""),null==n&&(n=t.defaultPath),null==f&&(f=i.LangEn.wordlist());const a=l.Mnemonic.fromEntropy((0,r.randomBytes)(16),e,f);return v.#Gt(a.computeSeed(),a).derivePath(n)}static fromMnemonic(e,n){return n||(n=t.defaultPath),v.#Gt(e.computeSeed(),e).derivePath(n)}static fromPhrase(e,n,r,f){null==n&&(n=""),null==r&&(r=t.defaultPath),null==f&&(f=i.LangEn.wordlist());const a=l.Mnemonic.fromPhrase(e,n,f);return v.#Gt(a.computeSeed(),a).derivePath(r)}static fromSeed(e){return v.#Gt(e,null)}}t.HDNodeWallet=v;class w extends f.VoidSigner{publicKey;fingerprint;parentFingerprint;chainCode;path;index;depth;constructor(e,t,n,f,a,i,o,l,c){super(t,c),(0,s.assertPrivate)(e,g,"HDNodeVoidWallet"),(0,s.defineProperties)(this,{publicKey:n});const u=(0,s.dataSlice)((0,r.ripemd160)((0,r.sha256)(n)),0,4);(0,s.defineProperties)(this,{publicKey:n,fingerprint:u,parentFingerprint:f,chainCode:a,path:i,index:o,depth:l})}connect(e){return new w(g,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,e)}get extendedKey(){return(0,s.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),b((0,s.concat)(["0x0488B21E",h(this.depth,1),this.parentFingerprint,h(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return null!=this.path}deriveChild(e){const t=(0,s.getNumber)(e,"index");(0,s.assertArgument)(t<=4294967295,"invalid index","index",t);let n=this.path;n&&(n+="/"+(2147483647&t),t&d&&(n+="'"));const{IR:f,IL:i}=m(t,this.chainCode,this.publicKey,null),o=r.SigningKey.addPoints(i,this.publicKey,!0),l=(0,a.computeAddress)(o);return new w(g,l,o,this.fingerprint,(0,s.hexlify)(f),n,t,this.depth+1,this.provider)}derivePath(e){return y(this,e)}}t.HDNodeVoidWallet=w,t.getAccountPath=function(e){const t=(0,s.getNumber)(e,"index");return(0,s.assertArgument)(t>=0&&t=0&&t{Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=t.Mnemonic=t.encryptKeystoreJsonSync=t.encryptKeystoreJson=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.isKeystoreJson=t.decryptCrowdsaleJson=t.isCrowdsaleJson=t.HDNodeVoidWallet=t.HDNodeWallet=t.getIndexedAccountPath=t.getAccountPath=t.defaultPath=t.BaseWallet=void 0;var r=n(8394);Object.defineProperty(t,"BaseWallet",{enumerable:!0,get:function(){return r.BaseWallet}});var f=n(22);Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return f.defaultPath}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return f.getAccountPath}}),Object.defineProperty(t,"getIndexedAccountPath",{enumerable:!0,get:function(){return f.getIndexedAccountPath}}),Object.defineProperty(t,"HDNodeWallet",{enumerable:!0,get:function(){return f.HDNodeWallet}}),Object.defineProperty(t,"HDNodeVoidWallet",{enumerable:!0,get:function(){return f.HDNodeVoidWallet}});var a=n(7570);Object.defineProperty(t,"isCrowdsaleJson",{enumerable:!0,get:function(){return a.isCrowdsaleJson}}),Object.defineProperty(t,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return a.decryptCrowdsaleJson}});var s=n(1650);Object.defineProperty(t,"isKeystoreJson",{enumerable:!0,get:function(){return s.isKeystoreJson}}),Object.defineProperty(t,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return s.decryptKeystoreJsonSync}}),Object.defineProperty(t,"decryptKeystoreJson",{enumerable:!0,get:function(){return s.decryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJson",{enumerable:!0,get:function(){return s.encryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return s.encryptKeystoreJsonSync}});var i=n(2931);Object.defineProperty(t,"Mnemonic",{enumerable:!0,get:function(){return i.Mnemonic}});var o=n(6930);Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return o.Wallet}})},7570:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decryptCrowdsaleJson=t.isCrowdsaleJson=void 0;const r=n(8165),f=n(646),a=n(2291),s=n(3562),i=n(5347),o=n(8634);t.isCrowdsaleJson=function(e){try{if(JSON.parse(e).encseed)return!0}catch(e){}return!1},t.decryptCrowdsaleJson=function(e,t){const n=JSON.parse(e),l=(0,o.getPassword)(t),c=(0,f.getAddress)((0,o.spelunk)(n,"ethaddr:string!")),u=(0,o.looseArrayify)((0,o.spelunk)(n,"encseed:string!"));(0,i.assertArgument)(u&&u.length%16==0,"invalid encseed","json",e);const d=(0,i.getBytes)((0,a.pbkdf2)(l,l,2e3,32,"sha256")).slice(0,16),p=u.slice(0,16),h=u.slice(16),b=new r.CBC(d,p),g=(0,r.pkcs7Strip)((0,i.getBytes)(b.decrypt(h)));let m="";for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.encryptKeystoreJson=t.encryptKeystoreJsonSync=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.isKeystoreJson=void 0;const r=n(8165),f=n(646),a=n(2291),s=n(7778),i=n(5347),o=n(8634),l=n(4586),c="m/44'/60'/0'/0/0";function u(e,t){const n=(0,i.getBytes)(t),l=(0,o.spelunk)(e,"crypto.ciphertext:data!"),u=(0,i.hexlify)((0,a.keccak256)((0,i.concat)([n.slice(16,32),l]))).substring(2);(0,i.assertArgument)(u===(0,o.spelunk)(e,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");const d=function(e,t,n){if("aes-128-ctr"===(0,o.spelunk)(e,"crypto.cipher:string")){const f=(0,o.spelunk)(e,"crypto.cipherparams.iv:data!"),a=new r.CTR(t,f);return(0,i.hexlify)(a.decrypt(n))}(0,i.assert)(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}(e,n.slice(0,16),l),p=(0,s.computeAddress)(d);if(e.address){let t=e.address.toLowerCase();t.startsWith("0x")||(t="0x"+t),(0,i.assertArgument)((0,f.getAddress)(t)===p,"keystore address/privateKey mismatch","address",e.address)}const h={address:p,privateKey:d};if("0.1"===(0,o.spelunk)(e,"x-ethers.version:string")){const t=n.slice(32,64),f=(0,o.spelunk)(e,"x-ethers.mnemonicCiphertext:data!"),a=(0,o.spelunk)(e,"x-ethers.mnemonicCounter:data!"),s=new r.CTR(t,a);h.mnemonic={path:(0,o.spelunk)(e,"x-ethers.path:string")||c,locale:(0,o.spelunk)(e,"x-ethers.locale:string")||"en",entropy:(0,i.hexlify)((0,i.getBytes)(s.decrypt(f)))}}return h}function d(e){const t=(0,o.spelunk)(e,"crypto.kdf:string");if(t&&"string"==typeof t){if("scrypt"===t.toLowerCase()){const n=(0,o.spelunk)(e,"crypto.kdfparams.salt:data!"),r=(0,o.spelunk)(e,"crypto.kdfparams.n:int!"),f=(0,o.spelunk)(e,"crypto.kdfparams.r:int!"),a=(0,o.spelunk)(e,"crypto.kdfparams.p:int!");(0,i.assertArgument)(r>0&&!(r&r-1),"invalid kdf.N","kdf.N",r),(0,i.assertArgument)(f>0&&a>0,"invalid kdf","kdf",t);const s=(0,o.spelunk)(e,"crypto.kdfparams.dklen:int!");return(0,i.assertArgument)(32===s,"invalid kdf.dklen","kdf.dflen",s),{name:"scrypt",salt:n,N:r,r:f,p:a,dkLen:64}}if("pbkdf2"===t.toLowerCase()){const t=(0,o.spelunk)(e,"crypto.kdfparams.salt:data!"),n=(0,o.spelunk)(e,"crypto.kdfparams.prf:string!"),r=n.split("-").pop();(0,i.assertArgument)("sha256"===r||"sha512"===r,"invalid kdf.pdf","kdf.pdf",n);const f=(0,o.spelunk)(e,"crypto.kdfparams.c:int!"),a=(0,o.spelunk)(e,"crypto.kdfparams.dklen:int!");return(0,i.assertArgument)(32===a,"invalid kdf.dklen","kdf.dklen",a),{name:"pbkdf2",salt:t,count:f,dkLen:a,algorithm:r}}}(0,i.assertArgument)(!1,"unsupported key-derivation function","kdf",t)}function p(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}function h(e){const t=null!=e.salt?(0,i.getBytes)(e.salt,"options.salt"):(0,a.randomBytes)(32);let n=1<<17,r=8,f=1;return e.scrypt&&(e.scrypt.N&&(n=e.scrypt.N),e.scrypt.r&&(r=e.scrypt.r),e.scrypt.p&&(f=e.scrypt.p)),(0,i.assertArgument)("number"==typeof n&&n>0&&Number.isSafeInteger(n)&&(BigInt(n)&BigInt(n-1))===BigInt(0),"invalid scrypt N parameter","options.N",n),(0,i.assertArgument)("number"==typeof r&&r>0&&Number.isSafeInteger(r),"invalid scrypt r parameter","options.r",r),(0,i.assertArgument)("number"==typeof f&&f>0&&Number.isSafeInteger(f),"invalid scrypt p parameter","options.p",f),{name:"scrypt",dkLen:32,salt:t,N:n,r,p:f}}function b(e,t,n,f){const s=(0,i.getBytes)(n.privateKey,"privateKey"),u=null!=f.iv?(0,i.getBytes)(f.iv,"options.iv"):(0,a.randomBytes)(16);(0,i.assertArgument)(16===u.length,"invalid options.iv length","options.iv",f.iv);const d=null!=f.uuid?(0,i.getBytes)(f.uuid,"options.uuid"):(0,a.randomBytes)(16);(0,i.assertArgument)(16===d.length,"invalid options.uuid length","options.uuid",f.iv);const p=e.slice(0,16),h=e.slice(16,32),b=new r.CTR(p,u),g=(0,i.getBytes)(b.encrypt(s)),m=(0,a.keccak256)((0,i.concat)([h,g])),y={address:n.address.substring(2).toLowerCase(),id:(0,i.uuidV4)(d),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,i.hexlify)(u).substring(2)},ciphertext:(0,i.hexlify)(g).substring(2),kdf:"scrypt",kdfparams:{salt:(0,i.hexlify)(t.salt).substring(2),n:t.N,dklen:32,p:t.p,r:t.r},mac:m.substring(2)}};if(n.mnemonic){const t=null!=f.client?f.client:`ethers/${l.version}`,s=n.mnemonic.path||c,u=n.mnemonic.locale||"en",d=e.slice(32,64),p=(0,i.getBytes)(n.mnemonic.entropy,"account.mnemonic.entropy"),h=(0,a.randomBytes)(16),b=new r.CTR(d,h),g=(0,i.getBytes)(b.encrypt(p)),m=new Date,v="UTC--"+m.getUTCFullYear()+"-"+(0,o.zpad)(m.getUTCMonth()+1,2)+"-"+(0,o.zpad)(m.getUTCDate(),2)+"T"+(0,o.zpad)(m.getUTCHours(),2)+"-"+(0,o.zpad)(m.getUTCMinutes(),2)+"-"+(0,o.zpad)(m.getUTCSeconds(),2)+".0Z--"+y.address;y["x-ethers"]={client:t,gethFilename:v,path:s,locale:u,mnemonicCounter:(0,i.hexlify)(h).substring(2),mnemonicCiphertext:(0,i.hexlify)(g).substring(2),version:"0.1"}}return JSON.stringify(y)}t.isKeystoreJson=function(e){try{const t=JSON.parse(e);if(3===(null!=t.version?parseInt(t.version):0))return!0}catch(e){}return!1},t.decryptKeystoreJsonSync=function(e,t){const n=JSON.parse(e),r=(0,o.getPassword)(t),f=d(n);if("pbkdf2"===f.name){const{salt:e,count:t,dkLen:s,algorithm:i}=f;return u(n,(0,a.pbkdf2)(r,e,t,s,i))}(0,i.assert)("scrypt"===f.name,"cannot be reached","UNKNOWN_ERROR",{params:f});const{salt:s,N:l,r:c,p,dkLen:h}=f;return u(n,(0,a.scryptSync)(r,s,l,c,p,h))},t.decryptKeystoreJson=async function(e,t,n){const r=JSON.parse(e),f=(0,o.getPassword)(t),s=d(r);if("pbkdf2"===s.name){n&&(n(0),await p(0));const{salt:e,count:t,dkLen:i,algorithm:o}=s,l=(0,a.pbkdf2)(f,e,t,i,o);return n&&(n(1),await p(0)),u(r,l)}(0,i.assert)("scrypt"===s.name,"cannot be reached","UNKNOWN_ERROR",{params:s});const{salt:l,N:c,r:h,p:b,dkLen:g}=s;return u(r,await(0,a.scrypt)(f,l,c,h,b,g,n))},t.encryptKeystoreJsonSync=function(e,t,n){null==n&&(n={});const r=(0,o.getPassword)(t),f=h(n),s=(0,a.scryptSync)(r,f.salt,f.N,f.r,f.p,64);return b((0,i.getBytes)(s),f,e,n)},t.encryptKeystoreJson=async function(e,t,n){null==n&&(n={});const r=(0,o.getPassword)(t),f=h(n),s=await(0,a.scrypt)(r,f.salt,f.N,f.r,f.p,64,n.progressCallback);return b((0,i.getBytes)(s),f,e,n)}},2931:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Mnemonic=void 0;const r=n(2291),f=n(5347),a=n(9943);function s(e){return(1<=12&&n.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const i=new Uint8Array(Math.ceil(11*n.length/8));let o=0;for(let e=0;e=0,`invalid mnemonic word at index ${e}`,"mnemonic","[ REDACTED ]");for(let e=0;e<11;e++)r&1<<10-e&&(i[o>>3]|=1<<7-o%8),o++}const l=32*n.length/3,c=s(n.length/3),u=(0,f.getBytes)((0,r.sha256)(i.slice(0,l/8)))[0]&c;return(0,f.assertArgument)(u===(i[i.length-1]&c),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),(0,f.hexlify)(i.slice(0,l/8))}function o(e,t){(0,f.assertArgument)(e.length%4==0&&e.length>=16&&e.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),null==t&&(t=a.LangEn.wordlist());const n=[0];let i=11;for(let t=0;t8?(n[n.length-1]<<=8,n[n.length-1]|=e[t],i-=8):(n[n.length-1]<<=i,n[n.length-1]|=e[t]>>8-i,n.push(e[t]&(1<<8-i)-1&255),i+=3);const o=e.length/4,l=parseInt((0,r.sha256)(e).substring(2,4),16)&s(o);return n[n.length-1]<<=o,n[n.length-1]|=l>>8-o,t.join(n.map((e=>t.getWord(e))))}const l={};class c{phrase;password;wordlist;entropy;constructor(e,t,n,r,s){null==r&&(r=""),null==s&&(s=a.LangEn.wordlist()),(0,f.assertPrivate)(e,l,"Mnemonic"),(0,f.defineProperties)(this,{phrase:n,password:r,wordlist:s,entropy:t})}computeSeed(){const e=(0,f.toUtf8Bytes)("mnemonic"+this.password,"NFKD");return(0,r.pbkdf2)((0,f.toUtf8Bytes)(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(e,t,n){const r=i(e,n);return e=o((0,f.getBytes)(r),n),new c(l,r,e,t,n)}static fromEntropy(e,t,n){const r=(0,f.getBytes)(e,"entropy"),a=o(r,n);return new c(l,(0,f.hexlify)(r),a,t,n)}static entropyToPhrase(e,t){return o((0,f.getBytes)(e,"entropy"),t)}static phraseToEntropy(e,t){return i(e,t)}static isValidMnemonic(e,t){try{return i(e,t),!0}catch(e){}return!1}}t.Mnemonic=c},8634:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.spelunk=t.getPassword=t.zpad=t.looseArrayify=void 0;const r=n(5347);function f(e){return"string"!=typeof e||e.startsWith("0x")||(e="0x"+e),(0,r.getBytesCopy)(e)}t.looseArrayify=f,t.zpad=function(e,t){for(e=String(e);e.length{Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=void 0;const r=n(2291),f=n(5347),a=n(8394),s=n(22),i=n(7570),o=n(1650),l=n(2931);function c(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}class u extends a.BaseWallet{constructor(e,t){"string"!=typeof e||e.startsWith("0x")||(e="0x"+e),super("string"==typeof e?new r.SigningKey(e):e,t)}connect(e){return new u(this.signingKey,e)}async encrypt(e,t){const n={address:this.address,privateKey:this.privateKey};return await(0,o.encryptKeystoreJson)(n,e,{progressCallback:t})}encryptSync(e){const t={address:this.address,privateKey:this.privateKey};return(0,o.encryptKeystoreJsonSync)(t,e)}static#Vt(e){if((0,f.assertArgument)(e,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in e&&e.mnemonic&&"en"===e.mnemonic.locale){const t=l.Mnemonic.fromEntropy(e.mnemonic.entropy),n=s.HDNodeWallet.fromMnemonic(t,e.mnemonic.path);if(n.address===e.address&&n.privateKey===e.privateKey)return n;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const t=new u(e.privateKey);return(0,f.assertArgument)(t.address===e.address,"address/privateKey mismatch","json","[ REDACTED ]"),t}static async fromEncryptedJson(e,t,n){let r=null;return(0,o.isKeystoreJson)(e)?r=await(0,o.decryptKeystoreJson)(e,t,n):(0,i.isCrowdsaleJson)(e)&&(n&&(n(0),await c(0)),r=(0,i.decryptCrowdsaleJson)(e,t),n&&(n(1),await c(0))),u.#Vt(r)}static fromEncryptedJsonSync(e,t){let n=null;return(0,o.isKeystoreJson)(e)?n=(0,o.decryptKeystoreJsonSync)(e,t):(0,i.isCrowdsaleJson)(e)?n=(0,i.decryptCrowdsaleJson)(e,t):(0,f.assertArgument)(!1,"invalid JSON wallet","json","[ REDACTED ]"),u.#Vt(n)}static createRandom(e){const t=s.HDNodeWallet.createRandom();return e?t.connect(e):t}static fromPhrase(e,t){const n=s.HDNodeWallet.fromPhrase(e);return t?n.connect(t):n}}t.Wallet=u},9610:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBits=void 0,t.decodeBits=function(e,t){const n=(1<=e;){const t=f>>a-e;f&=(1<{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeOwl=t.decode=void 0;const r=n(5347),f=/^[a-z]*$/i;function a(e,t){let n=97;return e.reduce(((e,r)=>(r===t?n++:r.match(f)?e.push(String.fromCharCode(n)+r):(n=97,e.push(r)),e)),[])}function s(e,t){for(let n=28;n>=0;n--)e=e.split(" !#$%&'()*+,-./<=>?@[]^_`{|}~"[n]).join(t.substring(2*n,2*n+2));const n=[],r=e.replace(/(:|([0-9])|([A-Z][a-z]*))/g,((e,t,r,f)=>{if(r)for(let e=parseInt(r);e>=0;e--)n.push(";");else n.push(t.toLowerCase());return""}));if(r)throw new Error(`leftovers: ${JSON.stringify(r)}`);return a(a(n,";"),":")}t.decode=s,t.decodeOwl=function(e){return(0,r.assertArgument)("0"===e[0],"unsupported auwl data","data",e),s(e.substring(59),e.substring(1,59))}},7703:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeOwlA=void 0;const r=n(5347),f=n(9610),a=n(2426);t.decodeOwlA=function(e,t){let n=(0,a.decodeOwl)(e).join(",");return t.split(/,/g).forEach((e=>{const a=e.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);(0,r.assertArgument)(null!==a,"internal error parsing accents","accents",t);let s=0;const i=(0,f.decodeBits)(parseInt(a[3]),a[4]),o=parseInt(a[2]),l=new RegExp(`([${a[1]}])`,"g");n=n.replace(l,((e,t)=>(0==--i[s]&&(t=String.fromCharCode(t.charCodeAt(0),o),s++),t)))})),n.split(",")}},6591:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wordlists=t.WordlistOwlA=t.WordlistOwl=t.LangEn=t.Wordlist=void 0;var r=n(9011);Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return r.Wordlist}});var f=n(9943);Object.defineProperty(t,"LangEn",{enumerable:!0,get:function(){return f.LangEn}});var a=n(2684);Object.defineProperty(t,"WordlistOwl",{enumerable:!0,get:function(){return a.WordlistOwl}});var s=n(8725);Object.defineProperty(t,"WordlistOwlA",{enumerable:!0,get:function(){return s.WordlistOwlA}});var i=n(2431);Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return i.wordlists}})},9943:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LangEn=void 0;const r=n(2684);let f=null;class a extends r.WordlistOwl{constructor(){super("en","0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-EgSe0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-PM&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryFN Noc|PutQuirySSue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurEAyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOgAyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|UffUmb!Y!0Bje@Bm.BwayC)[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NNGradeHoldOnP Set1BOng::Rd3Ar~ow9UUngU`:3BraRo9NeO","0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60")}static wordlist(){return null==f&&(f=new a),f}}t.LangEn=a},2684:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WordlistOwl=void 0;const r=n(3562),f=n(5347),a=n(2426),s=n(9011);class i extends s.Wordlist{#n;#Kt;constructor(e,t,n){super(e),this.#n=t,this.#Kt=n,this.#qt=null}get _data(){return this.#n}_decodeWords(){return(0,a.decodeOwl)(this.#n)}#qt;#Qt(){if(null==this.#qt){const e=this._decodeWords();if((0,r.id)(e.join("\n")+"\n")!==this.#Kt)throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);this.#qt=e}return this.#qt}getWord(e){const t=this.#Qt();return(0,f.assertArgument)(e>=0&&e{Object.defineProperty(t,"__esModule",{value:!0}),t.WordlistOwlA=void 0;const r=n(2684),f=n(7703);class a extends r.WordlistOwl{#Jt;constructor(e,t,n,r){super(e,t,r),this.#Jt=n}get _accent(){return this.#Jt}_decodeWords(){return(0,f.decodeOwlA)(this._data,this._accent)}}t.WordlistOwlA=a},9011:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Wordlist=void 0;const r=n(5347);t.Wordlist=class{locale;constructor(e){(0,r.defineProperties)(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(" ")}}},2431:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wordlists=void 0;const r=n(9943);t.wordlists={en:r.LangEn.wordlist()}},9990:(e,t,n)=>{n.r(t),n.d(t,{__addDisposableResource:()=>_,__assign:()=>a,__asyncDelegator:()=>S,__asyncGenerator:()=>E,__asyncValues:()=>O,__await:()=>P,__awaiter:()=>h,__classPrivateFieldGet:()=>R,__classPrivateFieldIn:()=>I,__classPrivateFieldSet:()=>B,__createBinding:()=>g,__decorate:()=>i,__disposeResources:()=>L,__esDecorate:()=>l,__exportStar:()=>m,__extends:()=>f,__generator:()=>b,__importDefault:()=>N,__importStar:()=>C,__makeTemplateObject:()=>x,__metadata:()=>p,__param:()=>o,__propKey:()=>u,__read:()=>v,__rest:()=>s,__runInitializers:()=>c,__setFunctionName:()=>d,__spread:()=>w,__spreadArray:()=>k,__spreadArrays:()=>A,__values:()=>y,default:()=>j});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;i--)(f=e[i])&&(s=(a<3?f(s):a>3?f(t,n,s):f(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s}function o(e,t){return function(n,r){t(n,r,e)}}function l(e,t,n,r,f,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var i,o=r.kind,l="getter"===o?"get":"setter"===o?"set":"value",c=!t&&e?r.static?e:e.prototype:null,u=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d=!1,p=n.length-1;p>=0;p--){var h={};for(var b in r)h[b]="access"===b?{}:r[b];for(var b in r.access)h.access[b]=r.access[b];h.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var g=(0,n[p])("accessor"===o?{get:u.get,set:u.set}:u[l],h);if("accessor"===o){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(i=s(g.get))&&(u.get=i),(i=s(g.set))&&(u.set=i),(i=s(g.init))&&f.unshift(i)}else(i=s(g))&&("field"===o?f.unshift(i):u[l]=i)}c&&Object.defineProperty(c,r.name,u),d=!0}function c(e,t,n){for(var r=arguments.length>2,f=0;f0&&f[f.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!f||i[1]>f[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,f,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)s.push(r.value)}catch(e){f={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(f)throw f.error}}return s}function w(){for(var e=[],t=0;t1||i(e,t)}))},t&&(r[e]=t(r[e])))}function i(e,t){try{(n=f[e](t)).value instanceof P?Promise.resolve(n.value.v).then(o,l):c(a[0][2],n)}catch(e){c(a[0][3],e)}var n}function o(e){i("next",e)}function l(e){i("throw",e)}function c(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}}function S(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,f){t[r]=e[r]?function(t){return(n=!n)?{value:P(e[r](t)),done:!1}:f?f(t):t}:f}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,f){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,f,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&g(t,e,n);return T(t,e),t}function N(e){return e&&e.__esModule?e:{default:e}}function R(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function B(e,t,n,r,f){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!f)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!f:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?f.call(e,n):f?f.value=n:t.set(e,n),n}function I(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function _(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,f;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(f=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");f&&(r=function(){try{f.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var F="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function L(e){function t(t){e.error=e.hasError?new F(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function f(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(f);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(f,(function(e){return t(e),f()}))}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}const j={__extends:f,__assign:a,__rest:s,__decorate:i,__param:o,__metadata:p,__awaiter:h,__generator:b,__createBinding:g,__exportStar:m,__values:y,__read:v,__spread:w,__spreadArrays:A,__spreadArray:k,__await:P,__asyncGenerator:E,__asyncDelegator:S,__asyncValues:O,__makeTemplateObject:x,__importStar:C,__importDefault:N,__classPrivateFieldGet:R,__classPrivateFieldSet:B,__classPrivateFieldIn:I,__addDisposableResource:_,__disposeResources:L}},5069:e=>{e.exports=JSON.parse('{"_format":"hh-sol-artifact-1","contractName":"AaartoNFTV4","sourceName":"contracts/AaartoNFTV4.sol","abi":[{"inputs":[{"internalType":"uint256","name":"_platformFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ERC721EnumerableForbiddenBatchMint","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"ERC721OutOfBoundsIndex","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenID","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenURI","type":"string"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeRecipient","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"uri","type":"string"}],"name":"preSafeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_feeRecipient","type":"address"}],"name":"setFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_platformFee","type":"uint256"}],"name":"setPlatformFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b506040516142ad3803806142ad83398181016040528101906100329190610463565b336040518060400160405280600681526020017f41616172746f00000000000000000000000000000000000000000000000000008152506040518060400160405280600681526020017f41414152544f000000000000000000000000000000000000000000000000000081525081600090816100ae91906106d6565b5080600190816100be91906106d6565b505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036101335760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161012a91906107e9565b60405180910390fd5b610142816101f160201b60201c565b506101566000801b336102b760201b60201c565b506101877f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336102b760201b60201c565b5080600f8190555033601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600e60006101000a81548160ff02191690831515021790555050610804565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006102c983836103b560201b60201c565b6103aa576001600b600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061034761042060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4600190506103af565b600090505b92915050565b6000600b600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b600080fd5b6000819050919050565b6104408161042d565b811461044b57600080fd5b50565b60008151905061045d81610437565b92915050565b60006020828403121561047957610478610428565b5b60006104878482850161044e565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061051157607f821691505b602082108103610524576105236104ca565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261058c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261054f565b610596868361054f565b95508019841693508086168417925050509392505050565b6000819050919050565b60006105d36105ce6105c98461042d565b6105ae565b61042d565b9050919050565b6000819050919050565b6105ed836105b8565b6106016105f9826105da565b84845461055c565b825550505050565b600090565b610616610609565b6106218184846105e4565b505050565b5b818110156106455761063a60008261060e565b600181019050610627565b5050565b601f82111561068a5761065b8161052a565b6106648461053f565b81016020851015610673578190505b61068761067f8561053f565b830182610626565b50505b505050565b600082821c905092915050565b60006106ad6000198460080261068f565b1980831691505092915050565b60006106c6838361069c565b9150826002028217905092915050565b6106df82610490565b67ffffffffffffffff8111156106f8576106f761049b565b5b61070282546104f9565b61070d828285610649565b600060209050601f831160018114610740576000841561072e578287015190505b61073885826106ba565b8655506107a0565b601f19841661074e8661052a565b60005b8281101561077657848901518255600182019150602085019450602081019050610751565b86831015610793578489015161078f601f89168261069c565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006107d3826107a8565b9050919050565b6107e3816107c8565b82525050565b60006020820190506107fe60008301846107da565b92915050565b613a9a806108136000396000f3fe6080604052600436106101ee5760003560e01c80634f6ccce71161010d578063a22cb465116100a0578063d547741f1161006f578063d547741f14610714578063e74b981b1461073d578063e985e9c514610766578063f2fde38b146107a3578063f46a04eb146107cc576101ee565b8063a22cb4651461065a578063b88d4fde14610683578063c87b56dd146106ac578063d5391393146106e9576101ee565b80638da5cb5b116100dc5780638da5cb5b1461059c57806391d14854146105c757806395d89b4114610604578063a217fddf1461062f576101ee565b80634f6ccce7146104ce5780636352211e1461050b57806370a0823114610548578063715018a614610585576101ee565b8063248a9ca31161018557806336568abe1161015457806336568abe1461042857806342842e0e1461045157806342966c681461047a57806346904840146104a3576101ee565b8063248a9ca31461035a57806326232a2e146103975780632f2ff15d146103c25780632f745c59146103eb576101ee565b806312e8e2c3116101c157806312e8e2c3146102c157806318160ddd146102ea578063227b93761461031557806323b872dd14610331576101ee565b806301ffc9a7146101f357806306fdde0314610230578063081812fc1461025b578063095ea7b314610298575b600080fd5b3480156101ff57600080fd5b5061021a60048036038101906102159190612bd0565b6107f5565b6040516102279190612c18565b60405180910390f35b34801561023c57600080fd5b50610245610807565b6040516102529190612cc3565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d9190612d1b565b610899565b60405161028f9190612d89565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba9190612dd0565b6108b5565b005b3480156102cd57600080fd5b506102e860048036038101906102e39190612d1b565b6108cb565b005b3480156102f657600080fd5b506102ff6108dd565b60405161030c9190612e1f565b60405180910390f35b61032f600480360381019061032a9190612f6f565b6108ea565b005b34801561033d57600080fd5b5061035860048036038101906103539190612fcb565b610a5d565b005b34801561036657600080fd5b50610381600480360381019061037c9190613054565b610b5f565b60405161038e9190613090565b60405180910390f35b3480156103a357600080fd5b506103ac610b7f565b6040516103b99190612e1f565b60405180910390f35b3480156103ce57600080fd5b506103e960048036038101906103e491906130ab565b610b85565b005b3480156103f757600080fd5b50610412600480360381019061040d9190612dd0565b610ba7565b60405161041f9190612e1f565b60405180910390f35b34801561043457600080fd5b5061044f600480360381019061044a91906130ab565b610c50565b005b34801561045d57600080fd5b5061047860048036038101906104739190612fcb565b610ccb565b005b34801561048657600080fd5b506104a1600480360381019061049c9190612d1b565b610ceb565b005b3480156104af57600080fd5b506104b8610d02565b6040516104c5919061310c565b60405180910390f35b3480156104da57600080fd5b506104f560048036038101906104f09190612d1b565b610d28565b6040516105029190612e1f565b60405180910390f35b34801561051757600080fd5b50610532600480360381019061052d9190612d1b565b610d9e565b60405161053f9190612d89565b60405180910390f35b34801561055457600080fd5b5061056f600480360381019061056a9190613127565b610db0565b60405161057c9190612e1f565b60405180910390f35b34801561059157600080fd5b5061059a610e6a565b005b3480156105a857600080fd5b506105b1610e7e565b6040516105be9190612d89565b60405180910390f35b3480156105d357600080fd5b506105ee60048036038101906105e991906130ab565b610ea8565b6040516105fb9190612c18565b60405180910390f35b34801561061057600080fd5b50610619610f13565b6040516106269190612cc3565b60405180910390f35b34801561063b57600080fd5b50610644610fa5565b6040516106519190613090565b60405180910390f35b34801561066657600080fd5b50610681600480360381019061067c9190613180565b610fac565b005b34801561068f57600080fd5b506106aa60048036038101906106a59190613261565b610fc2565b005b3480156106b857600080fd5b506106d360048036038101906106ce9190612d1b565b610fe7565b6040516106e09190612cc3565b60405180910390f35b3480156106f557600080fd5b506106fe610ff9565b60405161070b9190613090565b60405180910390f35b34801561072057600080fd5b5061073b600480360381019061073691906130ab565b61101d565b005b34801561074957600080fd5b50610764600480360381019061075f9190613310565b61103f565b005b34801561077257600080fd5b5061078d6004803603810190610788919061333d565b61108b565b60405161079a9190612c18565b60405180910390f35b3480156107af57600080fd5b506107ca60048036038101906107c59190613127565b61111f565b005b3480156107d857600080fd5b506107f360048036038101906107ee919061337d565b6111a5565b005b6000610800826111d0565b9050919050565b606060008054610816906133d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610842906133d9565b801561088f5780601f106108645761010080835404028352916020019161088f565b820191906000526020600020905b81548152906001019060200180831161087257829003601f168201915b5050505050905090565b60006108a48261124a565b506108ae826112d2565b9050919050565b6108c782826108c261130f565b611317565b5050565b6108d3611329565b80600f8190555050565b6000600880549050905090565b600e60009054906101000a900460ff168061093757503373ffffffffffffffffffffffffffffffffffffffff1661091f610e7e565b73ffffffffffffffffffffffffffffffffffffffff16145b610976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096d90613456565b60405180910390fd5b600f543410156109bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b2906134c2565b60405180910390fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015610a23573d6000803e3d6000fd5b50610a4e7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336113b0565b50610a5982826114a2565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610acf5760006040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610ac69190612d89565b60405180910390fd5b6000610ae38383610ade61130f565b611550565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b59578382826040517f64283d7b000000000000000000000000000000000000000000000000000000008152600401610b50939291906134e2565b60405180910390fd5b50505050565b6000600b6000838152602001908152602001600020600101549050919050565b600f5481565b610b8e82610b5f565b610b9781611566565b610ba183836113b0565b50505050565b6000610bb283610db0565b8210610bf75782826040517fa57d13dc000000000000000000000000000000000000000000000000000000008152600401610bee929190613519565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c5861130f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cbc576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cc6828261157a565b505050565b610ce683838360405180602001604052806000815250610fc2565b505050565b610cfe600082610cf961130f565b611550565b5050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610d326108dd565b8210610d78576000826040517fa57d13dc000000000000000000000000000000000000000000000000000000008152600401610d6f929190613519565b60405180910390fd5b60088281548110610d8c57610d8b613542565b5b90600052602060002001549050919050565b6000610da98261124a565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e235760006040517f89c62b64000000000000000000000000000000000000000000000000000000008152600401610e1a9190612d89565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e72611329565b610e7c600061166d565b565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600b600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060018054610f22906133d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610f4e906133d9565b8015610f9b5780601f10610f7057610100808354040283529160200191610f9b565b820191906000526020600020905b815481529060010190602001808311610f7e57829003601f168201915b5050505050905090565b6000801b81565b610fbe610fb761130f565b8383611733565b5050565b610fcd848484610a5d565b610fe1610fd861130f565b858585856118a2565b50505050565b6060610ff282611a53565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61102682610b5f565b61102f81611566565b611039838361157a565b50505050565b611047611329565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611127611329565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111995760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016111909190612d89565b60405180910390fd5b6111a28161166d565b50565b6000801b6111b281611566565b81600e60006101000a81548160ff0219169083151502179055505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611243575061124282611b66565b5b9050919050565b60008061125683611bc7565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036112c957826040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016112c09190612e1f565b60405180910390fd5b80915050919050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600033905090565b6113248383836001611c04565b505050565b61133161130f565b73ffffffffffffffffffffffffffffffffffffffff1661134f610e7e565b73ffffffffffffffffffffffffffffffffffffffff16146113ae5761137261130f565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016113a59190612d89565b60405180910390fd5b565b60006113bc8383610ea8565b611497576001600b600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061143461130f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001905061149c565b600090505b92915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66114cc81611566565b6000600d60008154809291906114e1906135a0565b9190505590506114f18482611dc9565b6114fb8184611de7565b808473ffffffffffffffffffffffffffffffffffffffff167f85a66b9141978db9980f7e0ce3b468cebf4f7999f32b23091c5c03e798b1ba7a856040516115429190612cc3565b60405180910390a350505050565b600061155d848484611e43565b90509392505050565b6115778161157261130f565b611f60565b50565b60006115868383610ea8565b15611662576000600b600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506115ff61130f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050611667565b600090505b92915050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117a457816040517f5b08ba1800000000000000000000000000000000000000000000000000000000815260040161179b9190612d89565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118959190612c18565b60405180910390a3505050565b60008373ffffffffffffffffffffffffffffffffffffffff163b1115611a4c578273ffffffffffffffffffffffffffffffffffffffff1663150b7a02868685856040518563ffffffff1660e01b8152600401611901949392919061363d565b6020604051808303816000875af192505050801561193d57506040513d601f19601f8201168201806040525081019061193a919061369e565b60015b6119c1573d806000811461196d576040519150601f19603f3d011682016040523d82523d6000602084013e611972565b606091505b5060008151036119b957836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016119b09190612d89565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611a4a57836040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401611a419190612d89565b60405180910390fd5b505b5050505050565b6060611a5e8261124a565b506000600a60008481526020019081526020016000208054611a7f906133d9565b80601f0160208091040260200160405190810160405280929190818152602001828054611aab906133d9565b8015611af85780601f10611acd57610100808354040283529160200191611af8565b820191906000526020600020905b815481529060010190602001808311611adb57829003601f168201915b505050505090506000611b09611fb1565b90506000815103611b1e578192505050611b61565b600082511115611b53578082604051602001611b3b929190613707565b60405160208183030381529060405292505050611b61565b611b5c84611fc8565b925050505b919050565b6000634906490660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611bc05750611bbf82612031565b5b9050919050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8080611c3d5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611d71576000611c4d8461124a565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611cb857508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b8015611ccb5750611cc9818461108b565b155b15611d0d57826040517fa9fbf51f000000000000000000000000000000000000000000000000000000008152600401611d049190612d89565b60405180910390fd5b8115611d6f57838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b836004600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b611de38282604051806020016040528060008152506120ab565b5050565b80600a60008481526020019081526020016000209081611e0791906138d7565b507ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce782604051611e379190612e1f565b60405180910390a15050565b600080611e518585856120cf565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e9557611e90846122e9565b611ed4565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611ed357611ed28185612332565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611f1657611f118461241d565b611f55565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611f5457611f5385856124ee565b5b5b809150509392505050565b611f6a8282610ea8565b611fad5780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401611fa49291906139a9565b60405180910390fd5b5050565b606060405180602001604052806000815250905090565b6060611fd38261124a565b506000611fde611fb1565b90506000815111611ffe5760405180602001604052806000815250612029565b8061200884612579565b604051602001612019929190613707565b6040516020818303038152906040525b915050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806120a457506120a382612647565b5b9050919050565b6120b58383612729565b6120ca6120c061130f565b60008585856118a2565b505050565b6000806120db84611bc7565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461211d5761211c818486612822565b5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146121ae5761215f600085600080611c04565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612231576001600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b846002600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600061233d83610db0565b90506000600760008481526020019081526020016000205490506000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508282146123e95760008160008581526020019081526020016000205490508082600085815260200190815260200160002081905550826007600083815260200190815260200160002081905550505b6007600085815260200190815260200160002060009055806000848152602001908152602001600020600090555050505050565b6000600160088054905061243191906139d2565b905060006009600084815260200190815260200160002054905060006008838154811061246157612460613542565b5b90600052602060002001549050806008838154811061248357612482613542565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806124d2576124d1613a06565b5b6001900381819060005260206000200160009055905550505050565b600060016124fb84610db0565b61250591906139d2565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b606060006001612588846128e6565b01905060008167ffffffffffffffff8111156125a7576125a6612e44565b5b6040519080825280601f01601f1916602001820160405280156125d95781602001600182028036833780820191505090505b509050600082602001820190505b60011561263c578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816126305761262f613a35565b5b049450600085036125e7575b819350505050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061271257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612722575061272182612a39565b5b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361279b5760006040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016127929190612d89565b60405180910390fd5b60006127a983836000611550565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461281d5760006040517f73c6ac6e0000000000000000000000000000000000000000000000000000000081526004016128149190612d89565b60405180910390fd5b505050565b61282d838383612aa3565b6128e157600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036128a257806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016128999190612e1f565b60405180910390fd5b81816040517f177e802f0000000000000000000000000000000000000000000000000000000081526004016128d8929190613519565b60405180910390fd5b505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612944577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161293a57612939613a35565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612981576d04ee2d6d415b85acef8100000000838161297757612976613a35565b5b0492506020810190505b662386f26fc1000083106129b057662386f26fc1000083816129a6576129a5613a35565b5b0492506010810190505b6305f5e10083106129d9576305f5e10083816129cf576129ce613a35565b5b0492506008810190505b61271083106129fe5761271083816129f4576129f3613a35565b5b0492506004810190505b60648310612a215760648381612a1757612a16613a35565b5b0492506002810190505b600a8310612a30576001810190505b80915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612b5b57508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b1c5750612b1b848461108b565b5b80612b5a57508273ffffffffffffffffffffffffffffffffffffffff16612b42836112d2565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612bad81612b78565b8114612bb857600080fd5b50565b600081359050612bca81612ba4565b92915050565b600060208284031215612be657612be5612b6e565b5b6000612bf484828501612bbb565b91505092915050565b60008115159050919050565b612c1281612bfd565b82525050565b6000602082019050612c2d6000830184612c09565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612c6d578082015181840152602081019050612c52565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c9582612c33565b612c9f8185612c3e565b9350612caf818560208601612c4f565b612cb881612c79565b840191505092915050565b60006020820190508181036000830152612cdd8184612c8a565b905092915050565b6000819050919050565b612cf881612ce5565b8114612d0357600080fd5b50565b600081359050612d1581612cef565b92915050565b600060208284031215612d3157612d30612b6e565b5b6000612d3f84828501612d06565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612d7382612d48565b9050919050565b612d8381612d68565b82525050565b6000602082019050612d9e6000830184612d7a565b92915050565b612dad81612d68565b8114612db857600080fd5b50565b600081359050612dca81612da4565b92915050565b60008060408385031215612de757612de6612b6e565b5b6000612df585828601612dbb565b9250506020612e0685828601612d06565b9150509250929050565b612e1981612ce5565b82525050565b6000602082019050612e346000830184612e10565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612e7c82612c79565b810181811067ffffffffffffffff82111715612e9b57612e9a612e44565b5b80604052505050565b6000612eae612b64565b9050612eba8282612e73565b919050565b600067ffffffffffffffff821115612eda57612ed9612e44565b5b612ee382612c79565b9050602081019050919050565b82818337600083830152505050565b6000612f12612f0d84612ebf565b612ea4565b905082815260208101848484011115612f2e57612f2d612e3f565b5b612f39848285612ef0565b509392505050565b600082601f830112612f5657612f55612e3a565b5b8135612f66848260208601612eff565b91505092915050565b60008060408385031215612f8657612f85612b6e565b5b6000612f9485828601612dbb565b925050602083013567ffffffffffffffff811115612fb557612fb4612b73565b5b612fc185828601612f41565b9150509250929050565b600080600060608486031215612fe457612fe3612b6e565b5b6000612ff286828701612dbb565b935050602061300386828701612dbb565b925050604061301486828701612d06565b9150509250925092565b6000819050919050565b6130318161301e565b811461303c57600080fd5b50565b60008135905061304e81613028565b92915050565b60006020828403121561306a57613069612b6e565b5b60006130788482850161303f565b91505092915050565b61308a8161301e565b82525050565b60006020820190506130a56000830184613081565b92915050565b600080604083850312156130c2576130c1612b6e565b5b60006130d08582860161303f565b92505060206130e185828601612dbb565b9150509250929050565b60006130f682612d48565b9050919050565b613106816130eb565b82525050565b600060208201905061312160008301846130fd565b92915050565b60006020828403121561313d5761313c612b6e565b5b600061314b84828501612dbb565b91505092915050565b61315d81612bfd565b811461316857600080fd5b50565b60008135905061317a81613154565b92915050565b6000806040838503121561319757613196612b6e565b5b60006131a585828601612dbb565b92505060206131b68582860161316b565b9150509250929050565b600067ffffffffffffffff8211156131db576131da612e44565b5b6131e482612c79565b9050602081019050919050565b60006132046131ff846131c0565b612ea4565b9050828152602081018484840111156132205761321f612e3f565b5b61322b848285612ef0565b509392505050565b600082601f83011261324857613247612e3a565b5b81356132588482602086016131f1565b91505092915050565b6000806000806080858703121561327b5761327a612b6e565b5b600061328987828801612dbb565b945050602061329a87828801612dbb565b93505060406132ab87828801612d06565b925050606085013567ffffffffffffffff8111156132cc576132cb612b73565b5b6132d887828801613233565b91505092959194509250565b6132ed816130eb565b81146132f857600080fd5b50565b60008135905061330a816132e4565b92915050565b60006020828403121561332657613325612b6e565b5b6000613334848285016132fb565b91505092915050565b6000806040838503121561335457613353612b6e565b5b600061336285828601612dbb565b925050602061337385828601612dbb565b9150509250929050565b60006020828403121561339357613392612b6e565b5b60006133a18482850161316b565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806133f157607f821691505b602082108103613404576134036133aa565b5b50919050565b7f4d696e74696e67206e6f7420656e61626c65642063757272656e746c79000000600082015250565b6000613440601d83612c3e565b915061344b8261340a565b602082019050919050565b6000602082019050818103600083015261346f81613433565b9050919050565b7f496e73756666696369656e7420706c6174666f726d2066656500000000000000600082015250565b60006134ac601983612c3e565b91506134b782613476565b602082019050919050565b600060208201905081810360008301526134db8161349f565b9050919050565b60006060820190506134f76000830186612d7a565b6135046020830185612e10565b6135116040830184612d7a565b949350505050565b600060408201905061352e6000830185612d7a565b61353b6020830184612e10565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006135ab82612ce5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036135dd576135dc613571565b5b600182019050919050565b600081519050919050565b600082825260208201905092915050565b600061360f826135e8565b61361981856135f3565b9350613629818560208601612c4f565b61363281612c79565b840191505092915050565b60006080820190506136526000830187612d7a565b61365f6020830186612d7a565b61366c6040830185612e10565b818103606083015261367e8184613604565b905095945050505050565b60008151905061369881612ba4565b92915050565b6000602082840312156136b4576136b3612b6e565b5b60006136c284828501613689565b91505092915050565b600081905092915050565b60006136e182612c33565b6136eb81856136cb565b93506136fb818560208601612c4f565b80840191505092915050565b600061371382856136d6565b915061371f82846136d6565b91508190509392505050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261378d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613750565b6137978683613750565b95508019841693508086168417925050509392505050565b6000819050919050565b60006137d46137cf6137ca84612ce5565b6137af565b612ce5565b9050919050565b6000819050919050565b6137ee836137b9565b6138026137fa826137db565b84845461375d565b825550505050565b600090565b61381761380a565b6138228184846137e5565b505050565b5b818110156138465761383b60008261380f565b600181019050613828565b5050565b601f82111561388b5761385c8161372b565b61386584613740565b81016020851015613874578190505b61388861388085613740565b830182613827565b50505b505050565b600082821c905092915050565b60006138ae60001984600802613890565b1980831691505092915050565b60006138c7838361389d565b9150826002028217905092915050565b6138e082612c33565b67ffffffffffffffff8111156138f9576138f8612e44565b5b61390382546133d9565b61390e82828561384a565b600060209050601f831160018114613941576000841561392f578287015190505b61393985826138bb565b8655506139a1565b601f19841661394f8661372b565b60005b8281101561397757848901518255600182019150602085019450602081019050613952565b868310156139945784890151613990601f89168261389d565b8355505b6001600288020188555050505b505050505050565b60006040820190506139be6000830185612d7a565b6139cb6020830184613081565b9392505050565b60006139dd82612ce5565b91506139e883612ce5565b9250828203905081811115613a00576139ff613571565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fdfea26469706673582212207f2ffa6f0fc1be7c030bf112aab87f8de28ded019cb1e34499726386de7ef4e264736f6c634300081c0033","deployedBytecode":"0x6080604052600436106101ee5760003560e01c80634f6ccce71161010d578063a22cb465116100a0578063d547741f1161006f578063d547741f14610714578063e74b981b1461073d578063e985e9c514610766578063f2fde38b146107a3578063f46a04eb146107cc576101ee565b8063a22cb4651461065a578063b88d4fde14610683578063c87b56dd146106ac578063d5391393146106e9576101ee565b80638da5cb5b116100dc5780638da5cb5b1461059c57806391d14854146105c757806395d89b4114610604578063a217fddf1461062f576101ee565b80634f6ccce7146104ce5780636352211e1461050b57806370a0823114610548578063715018a614610585576101ee565b8063248a9ca31161018557806336568abe1161015457806336568abe1461042857806342842e0e1461045157806342966c681461047a57806346904840146104a3576101ee565b8063248a9ca31461035a57806326232a2e146103975780632f2ff15d146103c25780632f745c59146103eb576101ee565b806312e8e2c3116101c157806312e8e2c3146102c157806318160ddd146102ea578063227b93761461031557806323b872dd14610331576101ee565b806301ffc9a7146101f357806306fdde0314610230578063081812fc1461025b578063095ea7b314610298575b600080fd5b3480156101ff57600080fd5b5061021a60048036038101906102159190612bd0565b6107f5565b6040516102279190612c18565b60405180910390f35b34801561023c57600080fd5b50610245610807565b6040516102529190612cc3565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d9190612d1b565b610899565b60405161028f9190612d89565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba9190612dd0565b6108b5565b005b3480156102cd57600080fd5b506102e860048036038101906102e39190612d1b565b6108cb565b005b3480156102f657600080fd5b506102ff6108dd565b60405161030c9190612e1f565b60405180910390f35b61032f600480360381019061032a9190612f6f565b6108ea565b005b34801561033d57600080fd5b5061035860048036038101906103539190612fcb565b610a5d565b005b34801561036657600080fd5b50610381600480360381019061037c9190613054565b610b5f565b60405161038e9190613090565b60405180910390f35b3480156103a357600080fd5b506103ac610b7f565b6040516103b99190612e1f565b60405180910390f35b3480156103ce57600080fd5b506103e960048036038101906103e491906130ab565b610b85565b005b3480156103f757600080fd5b50610412600480360381019061040d9190612dd0565b610ba7565b60405161041f9190612e1f565b60405180910390f35b34801561043457600080fd5b5061044f600480360381019061044a91906130ab565b610c50565b005b34801561045d57600080fd5b5061047860048036038101906104739190612fcb565b610ccb565b005b34801561048657600080fd5b506104a1600480360381019061049c9190612d1b565b610ceb565b005b3480156104af57600080fd5b506104b8610d02565b6040516104c5919061310c565b60405180910390f35b3480156104da57600080fd5b506104f560048036038101906104f09190612d1b565b610d28565b6040516105029190612e1f565b60405180910390f35b34801561051757600080fd5b50610532600480360381019061052d9190612d1b565b610d9e565b60405161053f9190612d89565b60405180910390f35b34801561055457600080fd5b5061056f600480360381019061056a9190613127565b610db0565b60405161057c9190612e1f565b60405180910390f35b34801561059157600080fd5b5061059a610e6a565b005b3480156105a857600080fd5b506105b1610e7e565b6040516105be9190612d89565b60405180910390f35b3480156105d357600080fd5b506105ee60048036038101906105e991906130ab565b610ea8565b6040516105fb9190612c18565b60405180910390f35b34801561061057600080fd5b50610619610f13565b6040516106269190612cc3565b60405180910390f35b34801561063b57600080fd5b50610644610fa5565b6040516106519190613090565b60405180910390f35b34801561066657600080fd5b50610681600480360381019061067c9190613180565b610fac565b005b34801561068f57600080fd5b506106aa60048036038101906106a59190613261565b610fc2565b005b3480156106b857600080fd5b506106d360048036038101906106ce9190612d1b565b610fe7565b6040516106e09190612cc3565b60405180910390f35b3480156106f557600080fd5b506106fe610ff9565b60405161070b9190613090565b60405180910390f35b34801561072057600080fd5b5061073b600480360381019061073691906130ab565b61101d565b005b34801561074957600080fd5b50610764600480360381019061075f9190613310565b61103f565b005b34801561077257600080fd5b5061078d6004803603810190610788919061333d565b61108b565b60405161079a9190612c18565b60405180910390f35b3480156107af57600080fd5b506107ca60048036038101906107c59190613127565b61111f565b005b3480156107d857600080fd5b506107f360048036038101906107ee919061337d565b6111a5565b005b6000610800826111d0565b9050919050565b606060008054610816906133d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610842906133d9565b801561088f5780601f106108645761010080835404028352916020019161088f565b820191906000526020600020905b81548152906001019060200180831161087257829003601f168201915b5050505050905090565b60006108a48261124a565b506108ae826112d2565b9050919050565b6108c782826108c261130f565b611317565b5050565b6108d3611329565b80600f8190555050565b6000600880549050905090565b600e60009054906101000a900460ff168061093757503373ffffffffffffffffffffffffffffffffffffffff1661091f610e7e565b73ffffffffffffffffffffffffffffffffffffffff16145b610976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096d90613456565b60405180910390fd5b600f543410156109bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b2906134c2565b60405180910390fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015610a23573d6000803e3d6000fd5b50610a4e7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336113b0565b50610a5982826114a2565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610acf5760006040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610ac69190612d89565b60405180910390fd5b6000610ae38383610ade61130f565b611550565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b59578382826040517f64283d7b000000000000000000000000000000000000000000000000000000008152600401610b50939291906134e2565b60405180910390fd5b50505050565b6000600b6000838152602001908152602001600020600101549050919050565b600f5481565b610b8e82610b5f565b610b9781611566565b610ba183836113b0565b50505050565b6000610bb283610db0565b8210610bf75782826040517fa57d13dc000000000000000000000000000000000000000000000000000000008152600401610bee929190613519565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c5861130f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cbc576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cc6828261157a565b505050565b610ce683838360405180602001604052806000815250610fc2565b505050565b610cfe600082610cf961130f565b611550565b5050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610d326108dd565b8210610d78576000826040517fa57d13dc000000000000000000000000000000000000000000000000000000008152600401610d6f929190613519565b60405180910390fd5b60088281548110610d8c57610d8b613542565b5b90600052602060002001549050919050565b6000610da98261124a565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e235760006040517f89c62b64000000000000000000000000000000000000000000000000000000008152600401610e1a9190612d89565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e72611329565b610e7c600061166d565b565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600b600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060018054610f22906133d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610f4e906133d9565b8015610f9b5780601f10610f7057610100808354040283529160200191610f9b565b820191906000526020600020905b815481529060010190602001808311610f7e57829003601f168201915b5050505050905090565b6000801b81565b610fbe610fb761130f565b8383611733565b5050565b610fcd848484610a5d565b610fe1610fd861130f565b858585856118a2565b50505050565b6060610ff282611a53565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61102682610b5f565b61102f81611566565b611039838361157a565b50505050565b611047611329565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611127611329565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111995760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016111909190612d89565b60405180910390fd5b6111a28161166d565b50565b6000801b6111b281611566565b81600e60006101000a81548160ff0219169083151502179055505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611243575061124282611b66565b5b9050919050565b60008061125683611bc7565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036112c957826040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016112c09190612e1f565b60405180910390fd5b80915050919050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600033905090565b6113248383836001611c04565b505050565b61133161130f565b73ffffffffffffffffffffffffffffffffffffffff1661134f610e7e565b73ffffffffffffffffffffffffffffffffffffffff16146113ae5761137261130f565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016113a59190612d89565b60405180910390fd5b565b60006113bc8383610ea8565b611497576001600b600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061143461130f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001905061149c565b600090505b92915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66114cc81611566565b6000600d60008154809291906114e1906135a0565b9190505590506114f18482611dc9565b6114fb8184611de7565b808473ffffffffffffffffffffffffffffffffffffffff167f85a66b9141978db9980f7e0ce3b468cebf4f7999f32b23091c5c03e798b1ba7a856040516115429190612cc3565b60405180910390a350505050565b600061155d848484611e43565b90509392505050565b6115778161157261130f565b611f60565b50565b60006115868383610ea8565b15611662576000600b600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506115ff61130f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050611667565b600090505b92915050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117a457816040517f5b08ba1800000000000000000000000000000000000000000000000000000000815260040161179b9190612d89565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118959190612c18565b60405180910390a3505050565b60008373ffffffffffffffffffffffffffffffffffffffff163b1115611a4c578273ffffffffffffffffffffffffffffffffffffffff1663150b7a02868685856040518563ffffffff1660e01b8152600401611901949392919061363d565b6020604051808303816000875af192505050801561193d57506040513d601f19601f8201168201806040525081019061193a919061369e565b60015b6119c1573d806000811461196d576040519150601f19603f3d011682016040523d82523d6000602084013e611972565b606091505b5060008151036119b957836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016119b09190612d89565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611a4a57836040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401611a419190612d89565b60405180910390fd5b505b5050505050565b6060611a5e8261124a565b506000600a60008481526020019081526020016000208054611a7f906133d9565b80601f0160208091040260200160405190810160405280929190818152602001828054611aab906133d9565b8015611af85780601f10611acd57610100808354040283529160200191611af8565b820191906000526020600020905b815481529060010190602001808311611adb57829003601f168201915b505050505090506000611b09611fb1565b90506000815103611b1e578192505050611b61565b600082511115611b53578082604051602001611b3b929190613707565b60405160208183030381529060405292505050611b61565b611b5c84611fc8565b925050505b919050565b6000634906490660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611bc05750611bbf82612031565b5b9050919050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8080611c3d5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611d71576000611c4d8461124a565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611cb857508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b8015611ccb5750611cc9818461108b565b155b15611d0d57826040517fa9fbf51f000000000000000000000000000000000000000000000000000000008152600401611d049190612d89565b60405180910390fd5b8115611d6f57838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b836004600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b611de38282604051806020016040528060008152506120ab565b5050565b80600a60008481526020019081526020016000209081611e0791906138d7565b507ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce782604051611e379190612e1f565b60405180910390a15050565b600080611e518585856120cf565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e9557611e90846122e9565b611ed4565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611ed357611ed28185612332565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611f1657611f118461241d565b611f55565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611f5457611f5385856124ee565b5b5b809150509392505050565b611f6a8282610ea8565b611fad5780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401611fa49291906139a9565b60405180910390fd5b5050565b606060405180602001604052806000815250905090565b6060611fd38261124a565b506000611fde611fb1565b90506000815111611ffe5760405180602001604052806000815250612029565b8061200884612579565b604051602001612019929190613707565b6040516020818303038152906040525b915050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806120a457506120a382612647565b5b9050919050565b6120b58383612729565b6120ca6120c061130f565b60008585856118a2565b505050565b6000806120db84611bc7565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461211d5761211c818486612822565b5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146121ae5761215f600085600080611c04565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612231576001600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b846002600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600061233d83610db0565b90506000600760008481526020019081526020016000205490506000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508282146123e95760008160008581526020019081526020016000205490508082600085815260200190815260200160002081905550826007600083815260200190815260200160002081905550505b6007600085815260200190815260200160002060009055806000848152602001908152602001600020600090555050505050565b6000600160088054905061243191906139d2565b905060006009600084815260200190815260200160002054905060006008838154811061246157612460613542565b5b90600052602060002001549050806008838154811061248357612482613542565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806124d2576124d1613a06565b5b6001900381819060005260206000200160009055905550505050565b600060016124fb84610db0565b61250591906139d2565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b606060006001612588846128e6565b01905060008167ffffffffffffffff8111156125a7576125a6612e44565b5b6040519080825280601f01601f1916602001820160405280156125d95781602001600182028036833780820191505090505b509050600082602001820190505b60011561263c578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816126305761262f613a35565b5b049450600085036125e7575b819350505050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061271257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612722575061272182612a39565b5b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361279b5760006040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016127929190612d89565b60405180910390fd5b60006127a983836000611550565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461281d5760006040517f73c6ac6e0000000000000000000000000000000000000000000000000000000081526004016128149190612d89565b60405180910390fd5b505050565b61282d838383612aa3565b6128e157600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036128a257806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016128999190612e1f565b60405180910390fd5b81816040517f177e802f0000000000000000000000000000000000000000000000000000000081526004016128d8929190613519565b60405180910390fd5b505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612944577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161293a57612939613a35565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612981576d04ee2d6d415b85acef8100000000838161297757612976613a35565b5b0492506020810190505b662386f26fc1000083106129b057662386f26fc1000083816129a6576129a5613a35565b5b0492506010810190505b6305f5e10083106129d9576305f5e10083816129cf576129ce613a35565b5b0492506008810190505b61271083106129fe5761271083816129f4576129f3613a35565b5b0492506004810190505b60648310612a215760648381612a1757612a16613a35565b5b0492506002810190505b600a8310612a30576001810190505b80915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612b5b57508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b1c5750612b1b848461108b565b5b80612b5a57508273ffffffffffffffffffffffffffffffffffffffff16612b42836112d2565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612bad81612b78565b8114612bb857600080fd5b50565b600081359050612bca81612ba4565b92915050565b600060208284031215612be657612be5612b6e565b5b6000612bf484828501612bbb565b91505092915050565b60008115159050919050565b612c1281612bfd565b82525050565b6000602082019050612c2d6000830184612c09565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612c6d578082015181840152602081019050612c52565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c9582612c33565b612c9f8185612c3e565b9350612caf818560208601612c4f565b612cb881612c79565b840191505092915050565b60006020820190508181036000830152612cdd8184612c8a565b905092915050565b6000819050919050565b612cf881612ce5565b8114612d0357600080fd5b50565b600081359050612d1581612cef565b92915050565b600060208284031215612d3157612d30612b6e565b5b6000612d3f84828501612d06565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612d7382612d48565b9050919050565b612d8381612d68565b82525050565b6000602082019050612d9e6000830184612d7a565b92915050565b612dad81612d68565b8114612db857600080fd5b50565b600081359050612dca81612da4565b92915050565b60008060408385031215612de757612de6612b6e565b5b6000612df585828601612dbb565b9250506020612e0685828601612d06565b9150509250929050565b612e1981612ce5565b82525050565b6000602082019050612e346000830184612e10565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612e7c82612c79565b810181811067ffffffffffffffff82111715612e9b57612e9a612e44565b5b80604052505050565b6000612eae612b64565b9050612eba8282612e73565b919050565b600067ffffffffffffffff821115612eda57612ed9612e44565b5b612ee382612c79565b9050602081019050919050565b82818337600083830152505050565b6000612f12612f0d84612ebf565b612ea4565b905082815260208101848484011115612f2e57612f2d612e3f565b5b612f39848285612ef0565b509392505050565b600082601f830112612f5657612f55612e3a565b5b8135612f66848260208601612eff565b91505092915050565b60008060408385031215612f8657612f85612b6e565b5b6000612f9485828601612dbb565b925050602083013567ffffffffffffffff811115612fb557612fb4612b73565b5b612fc185828601612f41565b9150509250929050565b600080600060608486031215612fe457612fe3612b6e565b5b6000612ff286828701612dbb565b935050602061300386828701612dbb565b925050604061301486828701612d06565b9150509250925092565b6000819050919050565b6130318161301e565b811461303c57600080fd5b50565b60008135905061304e81613028565b92915050565b60006020828403121561306a57613069612b6e565b5b60006130788482850161303f565b91505092915050565b61308a8161301e565b82525050565b60006020820190506130a56000830184613081565b92915050565b600080604083850312156130c2576130c1612b6e565b5b60006130d08582860161303f565b92505060206130e185828601612dbb565b9150509250929050565b60006130f682612d48565b9050919050565b613106816130eb565b82525050565b600060208201905061312160008301846130fd565b92915050565b60006020828403121561313d5761313c612b6e565b5b600061314b84828501612dbb565b91505092915050565b61315d81612bfd565b811461316857600080fd5b50565b60008135905061317a81613154565b92915050565b6000806040838503121561319757613196612b6e565b5b60006131a585828601612dbb565b92505060206131b68582860161316b565b9150509250929050565b600067ffffffffffffffff8211156131db576131da612e44565b5b6131e482612c79565b9050602081019050919050565b60006132046131ff846131c0565b612ea4565b9050828152602081018484840111156132205761321f612e3f565b5b61322b848285612ef0565b509392505050565b600082601f83011261324857613247612e3a565b5b81356132588482602086016131f1565b91505092915050565b6000806000806080858703121561327b5761327a612b6e565b5b600061328987828801612dbb565b945050602061329a87828801612dbb565b93505060406132ab87828801612d06565b925050606085013567ffffffffffffffff8111156132cc576132cb612b73565b5b6132d887828801613233565b91505092959194509250565b6132ed816130eb565b81146132f857600080fd5b50565b60008135905061330a816132e4565b92915050565b60006020828403121561332657613325612b6e565b5b6000613334848285016132fb565b91505092915050565b6000806040838503121561335457613353612b6e565b5b600061336285828601612dbb565b925050602061337385828601612dbb565b9150509250929050565b60006020828403121561339357613392612b6e565b5b60006133a18482850161316b565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806133f157607f821691505b602082108103613404576134036133aa565b5b50919050565b7f4d696e74696e67206e6f7420656e61626c65642063757272656e746c79000000600082015250565b6000613440601d83612c3e565b915061344b8261340a565b602082019050919050565b6000602082019050818103600083015261346f81613433565b9050919050565b7f496e73756666696369656e7420706c6174666f726d2066656500000000000000600082015250565b60006134ac601983612c3e565b91506134b782613476565b602082019050919050565b600060208201905081810360008301526134db8161349f565b9050919050565b60006060820190506134f76000830186612d7a565b6135046020830185612e10565b6135116040830184612d7a565b949350505050565b600060408201905061352e6000830185612d7a565b61353b6020830184612e10565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006135ab82612ce5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036135dd576135dc613571565b5b600182019050919050565b600081519050919050565b600082825260208201905092915050565b600061360f826135e8565b61361981856135f3565b9350613629818560208601612c4f565b61363281612c79565b840191505092915050565b60006080820190506136526000830187612d7a565b61365f6020830186612d7a565b61366c6040830185612e10565b818103606083015261367e8184613604565b905095945050505050565b60008151905061369881612ba4565b92915050565b6000602082840312156136b4576136b3612b6e565b5b60006136c284828501613689565b91505092915050565b600081905092915050565b60006136e182612c33565b6136eb81856136cb565b93506136fb818560208601612c4f565b80840191505092915050565b600061371382856136d6565b915061371f82846136d6565b91508190509392505050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261378d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613750565b6137978683613750565b95508019841693508086168417925050509392505050565b6000819050919050565b60006137d46137cf6137ca84612ce5565b6137af565b612ce5565b9050919050565b6000819050919050565b6137ee836137b9565b6138026137fa826137db565b84845461375d565b825550505050565b600090565b61381761380a565b6138228184846137e5565b505050565b5b818110156138465761383b60008261380f565b600181019050613828565b5050565b601f82111561388b5761385c8161372b565b61386584613740565b81016020851015613874578190505b61388861388085613740565b830182613827565b50505b505050565b600082821c905092915050565b60006138ae60001984600802613890565b1980831691505092915050565b60006138c7838361389d565b9150826002028217905092915050565b6138e082612c33565b67ffffffffffffffff8111156138f9576138f8612e44565b5b61390382546133d9565b61390e82828561384a565b600060209050601f831160018114613941576000841561392f578287015190505b61393985826138bb565b8655506139a1565b601f19841661394f8661372b565b60005b8281101561397757848901518255600182019150602085019450602081019050613952565b868310156139945784890151613990601f89168261389d565b8355505b6001600288020188555050505b505050505050565b60006040820190506139be6000830185612d7a565b6139cb6020830184613081565b9392505050565b60006139dd82612ce5565b91506139e883612ce5565b9250828203905081811115613a00576139ff613571565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fdfea26469706673582212207f2ffa6f0fc1be7c030bf112aab87f8de28ded019cb1e34499726386de7ef4e264736f6c634300081c0033","linkReferences":{},"deployedLinkReferences":{}}')},1219:e=>{e.exports=JSON.parse('{"serverHost":"https://aaarto.art"}')}},t={};function n(r){var f=t[r];if(void 0!==f)return f.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(3900)})(); \ No newline at end of file