(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3564],{34310:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(62140);function i(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}function o(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}function a(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function s(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function u(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function c(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function l(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function f(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}function h(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),l(e/4294967296>>>0,t,r),l(e>>>0,t,r+4),t}function d(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),f(e>>>0,t,r),f(e/4294967296>>>0,t,r+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=i,t.writeInt16BE=i,t.writeUint16LE=o,t.writeInt16LE=o,t.readInt32BE=a,t.readUint32BE=s,t.readInt32LE=u,t.readUint32LE=c,t.writeUint32BE=l,t.writeInt32BE=l,t.writeUint32LE=f,t.writeInt32LE=f,t.readInt64BE=function(e,t){void 0===t&&(t=0);var r=a(e,t),n=a(e,t+4);return 4294967296*r+n-(n>>31)*4294967296},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*s(e,t)+s(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var r=u(e,t);return 4294967296*u(e,t+4)+r-(r>>31)*4294967296},t.readUint64LE=function(e,t){void 0===t&&(t=0);var r=c(e,t);return 4294967296*c(e,t+4)+r},t.writeUint64BE=h,t.writeInt64BE=h,t.writeUint64LE=d,t.writeInt64LE=d,t.readUintBE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,o=e/8+r-1;o>=r;o--)n+=t[o]*i,i*=256;return n},t.readUintLE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,o=r;o<r+e/8;o++)n+=t[o]*i,i*=256;return n},t.writeUintBE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw Error("writeUintBE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw Error("writeUintBE value must be an integer");for(var o=1,a=e/8+i-1;a>=i;a--)r[a]=t/o&255,o*=256;return r},t.writeUintLE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw Error("writeUintLE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw Error("writeUintLE value must be an integer");for(var o=1,a=i;a<i+e/8;a++)r[a]=t/o&255,o*=256;return r},t.readFloat32BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t)},t.readFloat32LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)},t.readFloat64BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t)},t.readFloat64LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)},t.writeFloat32BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e),t},t.writeFloat32LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e,!0),t},t.writeFloat64BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e),t},t.writeFloat64LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e,!0),t}},48733:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(34310),i=r(55277);function o(e,t,r,o,a){if(void 0===a&&(a=0),32!==e.length)throw Error("ChaCha: key size must be 32 bytes");if(o.length<r.length)throw Error("ChaCha: destination is shorter than source");if(0===a){if(8!==t.length&&12!==t.length)throw Error("ChaCha nonce must be 8 or 12 bytes");u=(s=new Uint8Array(16)).length-t.length,s.set(t,u)}else{if(16!==t.length)throw Error("ChaCha nonce with counter must be 16 bytes");s=t,u=a}for(var s,u,c=new Uint8Array(64),l=0;l<r.length;l+=64){!function(e,t,r){for(var i=r[3]<<24|r[2]<<16|r[1]<<8|r[0],o=r[7]<<24|r[6]<<16|r[5]<<8|r[4],a=r[11]<<24|r[10]<<16|r[9]<<8|r[8],s=r[15]<<24|r[14]<<16|r[13]<<8|r[12],u=r[19]<<24|r[18]<<16|r[17]<<8|r[16],c=r[23]<<24|r[22]<<16|r[21]<<8|r[20],l=r[27]<<24|r[26]<<16|r[25]<<8|r[24],f=r[31]<<24|r[30]<<16|r[29]<<8|r[28],h=t[3]<<24|t[2]<<16|t[1]<<8|t[0],d=t[7]<<24|t[6]<<16|t[5]<<8|t[4],p=t[11]<<24|t[10]<<16|t[9]<<8|t[8],b=t[15]<<24|t[14]<<16|t[13]<<8|t[12],m=1634760805,y=857760878,g=2036477234,v=1797285236,w=i,E=o,_=a,x=s,C=u,S=c,O=l,D=f,P=h,k=d,A=p,I=b,T=0;T<20;T+=2)P^=m=m+w|0,w^=C=C+(P=P>>>16|P<<16)|0,w=w>>>20|w<<12,k^=y=y+E|0,E^=S=S+(k=k>>>16|k<<16)|0,E=E>>>20|E<<12,A^=g=g+_|0,_^=O=O+(A=A>>>16|A<<16)|0,_=_>>>20|_<<12,I^=v=v+x|0,x^=D=D+(I=I>>>16|I<<16)|0,x=x>>>20|x<<12,A^=g=g+_|0,_^=O=O+(A=A>>>24|A<<8)|0,_=_>>>25|_<<7,I^=v=v+x|0,x^=D=D+(I=I>>>24|I<<8)|0,x=x>>>25|x<<7,k^=y=y+E|0,E^=S=S+(k=k>>>24|k<<8)|0,E=E>>>25|E<<7,P^=m=m+w|0,w^=C=C+(P=P>>>24|P<<8)|0,w=w>>>25|w<<7,I^=m=m+E|0,E^=O=O+(I=I>>>16|I<<16)|0,E=E>>>20|E<<12,P^=y=y+_|0,_^=D=D+(P=P>>>16|P<<16)|0,_=_>>>20|_<<12,k^=g=g+x|0,x^=C=C+(k=k>>>16|k<<16)|0,x=x>>>20|x<<12,A^=v=v+w|0,w^=S=S+(A=A>>>16|A<<16)|0,w=w>>>20|w<<12,k^=g=g+x|0,x^=C=C+(k=k>>>24|k<<8)|0,x=x>>>25|x<<7,A^=v=v+w|0,w^=S=S+(A=A>>>24|A<<8)|0,w=w>>>25|w<<7,P^=y=y+_|0,_^=D=D+(P=P>>>24|P<<8)|0,_=_>>>25|_<<7,I^=m=m+E|0,E^=O=O+(I=I>>>24|I<<8)|0,E=E>>>25|E<<7;n.writeUint32LE(m+1634760805|0,e,0),n.writeUint32LE(y+857760878|0,e,4),n.writeUint32LE(g+2036477234|0,e,8),n.writeUint32LE(v+1797285236|0,e,12),n.writeUint32LE(w+i|0,e,16),n.writeUint32LE(E+o|0,e,20),n.writeUint32LE(_+a|0,e,24),n.writeUint32LE(x+s|0,e,28),n.writeUint32LE(C+u|0,e,32),n.writeUint32LE(S+c|0,e,36),n.writeUint32LE(O+l|0,e,40),n.writeUint32LE(D+f|0,e,44),n.writeUint32LE(P+h|0,e,48),n.writeUint32LE(k+d|0,e,52),n.writeUint32LE(A+p|0,e,56),n.writeUint32LE(I+b|0,e,60)}(c,s,e);for(var f=l;f<l+64&&f<r.length;f++)o[f]=r[f]^c[f-l];!function(e,t,r){for(var n=1;r--;)n=n+(255&e[t])|0,e[t]=255&n,n>>>=8,t++;if(n>0)throw Error("ChaCha: counter overflow")}(s,0,u)}return i.wipe(c),0===a&&i.wipe(s),o}t.streamXOR=o,t.stream=function(e,t,r,n){return void 0===n&&(n=0),i.wipe(r),o(e,t,r,r,n)}},51040:function(e,t,r){"use strict";var n=r(48733),i=r(66508),o=r(55277),a=r(34310),s=r(51448);t.Cv=32,t.WH=12,t.pg=16;var u=new Uint8Array(16),c=function(){function e(e){if(this.nonceLength=t.WH,this.tagLength=t.pg,e.length!==t.Cv)throw Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,r,i){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");var a,s=new Uint8Array(16);s.set(e,s.length-e.length);var u=new Uint8Array(32);n.stream(this._key,s,u,4);var c=t.length+this.tagLength;if(i){if(i.length!==c)throw Error("ChaCha20Poly1305: incorrect destination length");a=i}else a=new Uint8Array(c);return n.streamXOR(this._key,s,t,a,4),this._authenticate(a.subarray(a.length-this.tagLength,a.length),u,a.subarray(0,a.length-this.tagLength),r),o.wipe(s),a},e.prototype.open=function(e,t,r,i){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");if(t.length<this.tagLength)return null;var a,u=new Uint8Array(16);u.set(e,u.length-e.length);var c=new Uint8Array(32);n.stream(this._key,u,c,4);var l=new Uint8Array(this.tagLength);if(this._authenticate(l,c,t.subarray(0,t.length-this.tagLength),r),!s.equal(l,t.subarray(t.length-this.tagLength,t.length)))return null;var f=t.length-this.tagLength;if(i){if(i.length!==f)throw Error("ChaCha20Poly1305: incorrect destination length");a=i}else a=new Uint8Array(f);return n.streamXOR(this._key,u,t.subarray(0,t.length-this.tagLength),a,4),o.wipe(u),a},e.prototype.clean=function(){return o.wipe(this._key),this},e.prototype._authenticate=function(e,t,r,n){var s=new i.Poly1305(t);n&&(s.update(n),n.length%16>0&&s.update(u.subarray(n.length%16))),s.update(r),r.length%16>0&&s.update(u.subarray(r.length%16));var c=new Uint8Array(8);n&&a.writeUint64LE(n.length,c),s.update(c),a.writeUint64LE(r.length,c),s.update(c);for(var l=s.digest(),f=0;f<l.length;f++)e[f]=l[f];s.clean(),o.wipe(l),o.wipe(c)},e}();t.OK=c},51448:function(e,t){"use strict";function r(e,t){if(e.length!==t.length)return 0;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return 1&r-1>>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,r){return~(e-1)&t|e-1&r},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=r,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==r(e,t)}},12621:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=function(e){return void 0!==e.saveState&&void 0!==e.restoreState&&void 0!==e.cleanSavedState}},20342:function(e,t,r){"use strict";var n=r(9922),i=r(55277),o=function(){function e(e,t,r,i){void 0===r&&(r=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=i;var o=n.hmac(this._hash,r,t);this._hmac=new n.HMAC(e,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),r=0;r<t.length;r++)this._bufpos===this._buffer.length&&this._fillBuffer(),t[r]=this._buffer[this._bufpos++];return t},e.prototype.clean=function(){this._hmac.clean(),i.wipe(this._buffer),i.wipe(this._counter),this._bufpos=0},e}();t.t=o},9922:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12621),i=r(51448),o=r(55277),a=function(){function e(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var r=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(r).clean():r.set(t);for(var i=0;i<r.length;i++)r[i]^=54;this._inner.update(r);for(var i=0;i<r.length;i++)r[i]^=106;this._outer.update(r),n.isSerializableHash(this._inner)&&n.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),o.wipe(r)}return e.prototype.reset=function(){if(!n.isSerializableHash(this._inner)||!n.isSerializableHash(this._outer))throw Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){n.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),n.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(e){return this._inner.update(e),this},e.prototype.finish=function(e){return this._finished?this._outer.finish(e):(this._inner.finish(e),this._outer.update(e.subarray(0,this.digestLength)).finish(e),this._finished=!0),this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(!n.isSerializableHash(this._inner))throw Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(e){if(!n.isSerializableHash(this._inner)||!n.isSerializableHash(this._outer))throw Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(e),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(e){if(!n.isSerializableHash(this._inner))throw Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(e)},e}();t.HMAC=a,t.hmac=function(e,t,r){var n=new a(e,t);n.update(r);var i=n.digest();return n.clean(),i},t.equal=i.equal},62140:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var r=65535&e,n=65535&t;return r*n+((e>>>16&65535)*n+r*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<<t|e>>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},66508:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(51448),i=r(55277);t.DIGEST_LENGTH=16;var o=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=e[0]|e[1]<<8;this._r[0]=8191&r;var n=e[2]|e[3]<<8;this._r[1]=(r>>>13|n<<3)&8191;var i=e[4]|e[5]<<8;this._r[2]=(n>>>10|i<<6)&7939;var o=e[6]|e[7]<<8;this._r[3]=(i>>>7|o<<9)&8191;var a=e[8]|e[9]<<8;this._r[4]=(o>>>4|a<<12)&255,this._r[5]=a>>>1&8190;var s=e[10]|e[11]<<8;this._r[6]=(a>>>14|s<<2)&8191;var u=e[12]|e[13]<<8;this._r[7]=(s>>>11|u<<5)&8065;var c=e[14]|e[15]<<8;this._r[8]=(u>>>8|c<<8)&8191,this._r[9]=c>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,r){for(var n=this._fin?0:2048,i=this._h[0],o=this._h[1],a=this._h[2],s=this._h[3],u=this._h[4],c=this._h[5],l=this._h[6],f=this._h[7],h=this._h[8],d=this._h[9],p=this._r[0],b=this._r[1],m=this._r[2],y=this._r[3],g=this._r[4],v=this._r[5],w=this._r[6],E=this._r[7],_=this._r[8],x=this._r[9];r>=16;){var C,S=e[t+0]|e[t+1]<<8;i+=8191&S;var O=e[t+2]|e[t+3]<<8;o+=(S>>>13|O<<3)&8191;var D=e[t+4]|e[t+5]<<8;a+=(O>>>10|D<<6)&8191;var P=e[t+6]|e[t+7]<<8;s+=(D>>>7|P<<9)&8191;var k=e[t+8]|e[t+9]<<8;u+=(P>>>4|k<<12)&8191,c+=k>>>1&8191;var A=e[t+10]|e[t+11]<<8;l+=(k>>>14|A<<2)&8191;var I=e[t+12]|e[t+13]<<8;f+=(A>>>11|I<<5)&8191;var T=e[t+14]|e[t+15]<<8;h+=(I>>>8|T<<8)&8191,d+=T>>>5|n;var N=0;N=(C=0+i*p+5*x*o+5*_*a+5*E*s+5*w*u)>>>13,C&=8191,C+=5*v*c+5*g*l+5*y*f+5*m*h+5*b*d,N+=C>>>13,C&=8191;var j=N;j+=i*b+o*p+5*x*a+5*_*s+5*E*u,N=j>>>13,j&=8191,j+=5*w*c+5*v*l+5*g*f+5*y*h+5*m*d,N+=j>>>13,j&=8191;var M=N;M+=i*m+o*b+a*p+5*x*s+5*_*u,N=M>>>13,M&=8191,M+=5*E*c+5*w*l+5*v*f+5*g*h+5*y*d,N+=M>>>13,M&=8191;var R=N;R+=i*y+o*m+a*b+s*p+5*x*u,N=R>>>13,R&=8191,R+=5*_*c+5*E*l+5*w*f+5*v*h+5*g*d,N+=R>>>13,R&=8191;var F=N;F+=i*g+o*y+a*m+s*b+u*p,N=F>>>13,F&=8191,F+=5*x*c+5*_*l+5*E*f+5*w*h+5*v*d,N+=F>>>13,F&=8191;var B=N;B+=i*v+o*g+a*y+s*m+u*b,N=B>>>13,B&=8191,B+=c*p+5*x*l+5*_*f+5*E*h+5*w*d,N+=B>>>13,B&=8191;var U=N;U+=i*w+o*v+a*g+s*y+u*m,N=U>>>13,U&=8191,U+=c*b+l*p+5*x*f+5*_*h+5*E*d,N+=U>>>13,U&=8191;var L=N;L+=i*E+o*w+a*v+s*g+u*y,N=L>>>13,L&=8191,L+=c*m+l*b+f*p+5*x*h+5*_*d,N+=L>>>13,L&=8191;var $=N;$+=i*_+o*E+a*w+s*v+u*g,N=$>>>13,$&=8191,$+=c*y+l*m+f*b+h*p+5*x*d,N+=$>>>13,$&=8191;var q=N;q+=i*x+o*_+a*E+s*w+u*v,N=q>>>13,q&=8191,q+=c*g+l*y+f*m+h*b+d*p,N+=q>>>13,q&=8191,C=8191&(N=(N=(N<<2)+N|0)+C|0),N>>>=13,j+=N,i=C,o=j,a=M,s=R,u=F,c=B,l=U,f=L,h=$,d=q,t+=16,r-=16}this._h[0]=i,this._h[1]=o,this._h[2]=a,this._h[3]=s,this._h[4]=u,this._h[5]=c,this._h[6]=l,this._h[7]=f,this._h[8]=h,this._h[9]=d},e.prototype.finish=function(e,t){void 0===t&&(t=0);var r,n,i,o,a=new Uint16Array(10);if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=r,r=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,a[0]=this._h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this._h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,n=(1^r)-1,o=0;o<10;o++)a[o]&=n;for(o=0,n=~n;o<10;o++)this._h[o]=this._h[o]&n|a[o];for(o=1,this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,i=this._h[0]+this._pad[0],this._h[0]=65535&i;o<8;o++)i=(this._h[o]+this._pad[o]|0)+(i>>>16)|0,this._h[o]=65535&i;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,r=0,n=e.length;if(this._leftover){(t=16-this._leftover)>n&&(t=n);for(var i=0;i<t;i++)this._buffer[this._leftover+i]=e[r+i];if(n-=t,r+=t,this._leftover+=t,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(n>=16&&(t=n-n%16,this._blocks(e,r,t),r+=t,n-=t),n){for(var i=0;i<n;i++)this._buffer[this._leftover+i]=e[r+i];this._leftover+=n}return this},e.prototype.digest=function(){if(this._finished)throw Error("Poly1305 was finished");var e=new Uint8Array(16);return this.finish(e),e},e.prototype.clean=function(){return i.wipe(this._buffer),i.wipe(this._r),i.wipe(this._h),i.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();t.Poly1305=o,t.oneTimeAuth=function(e,t){var r=new o(e);r.update(t);var n=r.digest();return r.clean(),n},t.equal=function(e,r){return e.length===t.DIGEST_LENGTH&&r.length===t.DIGEST_LENGTH&&n.equal(e,r)}},35077:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;let n=r(62739),i=r(34310),o=r(55277);function a(e,r=t.defaultRandomSource){return r.randomBytes(e)}t.defaultRandomSource=new n.SystemRandomSource,t.randomBytes=a,t.randomUint32=function(e=t.defaultRandomSource){let r=a(4,e),n=(0,i.readUint32LE)(r);return(0,o.wipe)(r),n};let s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function u(e,r=s,n=t.defaultRandomSource){if(r.length<2)throw Error("randomString charset is too short");if(r.length>256)throw Error("randomString charset is too long");let i="",u=r.length,c=256-256%u;for(;e>0;){let t=a(Math.ceil(256*e/c),n);for(let n=0;n<t.length&&e>0;n++){let o=t[n];o<c&&(i+=r.charAt(o%u),e--)}(0,o.wipe)(t)}return i}t.randomString=u,t.randomStringForEntropy=function(e,r=s,n=t.defaultRandomSource){return u(Math.ceil(e/(Math.log(r.length)/Math.LN2)),r,n)}},85183:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0;class r{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let e="undefined"!=typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error("Browser random byte generator is not available.");let t=new Uint8Array(e);for(let e=0;e<t.length;e+=65536)this._crypto.getRandomValues(t.subarray(e,e+Math.min(t.length-e,65536)));return t}}t.BrowserRandomSource=r},32586:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;let n=r(55277);class i{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{let e=r(35883);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw Error("NodeRandomSource: got fewer bytes than requested");let r=new Uint8Array(e);for(let e=0;e<r.length;e++)r[e]=t[e];return(0,n.wipe)(t),r}}t.NodeRandomSource=i},62739:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;let n=r(85183),i=r(32586);class o{constructor(){if(this.isAvailable=!1,this.name="",this._source=new n.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new i.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(e){if(!this.isAvailable)throw Error("System random byte generator is not available.");return this._source.randomBytes(e)}}t.SystemRandomSource=o},87853:function(e,t,r){"use strict";var n=r(34310),i=r(55277);t.k=32,t.cn=64;var o=function(){function e(){this.digestLength=t.k,this.blockSize=t.cn,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw Error("SHA256: can't update because hash was finished.");var r=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&t>0;)this._buffer[this._bufferLength++]=e[r++],t--;this._bufferLength===this.blockSize&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(r=s(this._temp,this._state,e,r,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[r++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,i=t%64<56?64:128;this._buffer[r]=128;for(var o=r+1;o<i-8;o++)this._buffer[o]=0;n.writeUint32BE(t/536870912|0,this._buffer,i-8),n.writeUint32BE(t<<3,this._buffer,i-4),s(this._temp,this._state,this._buffer,0,i),this._finished=!0}for(var o=0;o<this.digestLength/4;o++)n.writeUint32BE(this._state[o],e,4*o);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.state),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.mE=o;var a=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function s(e,t,r,i,o){for(;o>=64;){for(var s=t[0],u=t[1],c=t[2],l=t[3],f=t[4],h=t[5],d=t[6],p=t[7],b=0;b<16;b++){var m=i+4*b;e[b]=n.readUint32BE(r,m)}for(var b=16;b<64;b++){var y=e[b-2],g=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,v=((y=e[b-15])>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;e[b]=(g+e[b-7]|0)+(v+e[b-16]|0)}for(var b=0;b<64;b++){var g=(((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&d)|0)+(p+(a[b]+e[b]|0)|0)|0,v=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&u^s&c^u&c)|0;p=d,d=h,h=f,f=l+g|0,l=c,c=u,u=s,s=g+v|0}t[0]+=s,t[1]+=u,t[2]+=c,t[3]+=l,t[4]+=f,t[5]+=h,t[6]+=d,t[7]+=p,i+=64,o-=64}return i}t.vp=function(e){var t=new o;t.update(e);var r=t.digest();return t.clean(),r}},55277:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t<e.length;t++)e[t]=0;return e}},38195:function(e,t,r){"use strict";t.gi=t.Au=t.KS=t.kz=void 0;let n=r(35077),i=r(55277);function o(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}t.kz=32,t.KS=32;let a=new Uint8Array(32);a[0]=9;let s=o([56129,1]);function u(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-65536*t}e[0]+=t-1+37*(t-1)}function c(e,t,r){let n=~(r-1);for(let r=0;r<16;r++){let i=n&(e[r]^t[r]);e[r]^=i,t[r]^=i}}function l(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function f(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function h(e,t,r){let n,i,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,b=0,m=0,y=0,g=0,v=0,w=0,E=0,_=0,x=0,C=0,S=0,O=0,D=0,P=0,k=0,A=0,I=0,T=0,N=0,j=0,M=0,R=r[0],F=r[1],B=r[2],U=r[3],L=r[4],$=r[5],q=r[6],W=r[7],z=r[8],G=r[9],H=r[10],K=r[11],Q=r[12],V=r[13],Y=r[14],Z=r[15];o+=(n=t[0])*R,a+=n*F,s+=n*B,u+=n*U,c+=n*L,l+=n*$,f+=n*q,h+=n*W,d+=n*z,p+=n*G,b+=n*H,m+=n*K,y+=n*Q,g+=n*V,v+=n*Y,w+=n*Z,a+=(n=t[1])*R,s+=n*F,u+=n*B,c+=n*U,l+=n*L,f+=n*$,h+=n*q,d+=n*W,p+=n*z,b+=n*G,m+=n*H,y+=n*K,g+=n*Q,v+=n*V,w+=n*Y,E+=n*Z,s+=(n=t[2])*R,u+=n*F,c+=n*B,l+=n*U,f+=n*L,h+=n*$,d+=n*q,p+=n*W,b+=n*z,m+=n*G,y+=n*H,g+=n*K,v+=n*Q,w+=n*V,E+=n*Y,_+=n*Z,u+=(n=t[3])*R,c+=n*F,l+=n*B,f+=n*U,h+=n*L,d+=n*$,p+=n*q,b+=n*W,m+=n*z,y+=n*G,g+=n*H,v+=n*K,w+=n*Q,E+=n*V,_+=n*Y,x+=n*Z,c+=(n=t[4])*R,l+=n*F,f+=n*B,h+=n*U,d+=n*L,p+=n*$,b+=n*q,m+=n*W,y+=n*z,g+=n*G,v+=n*H,w+=n*K,E+=n*Q,_+=n*V,x+=n*Y,C+=n*Z,l+=(n=t[5])*R,f+=n*F,h+=n*B,d+=n*U,p+=n*L,b+=n*$,m+=n*q,y+=n*W,g+=n*z,v+=n*G,w+=n*H,E+=n*K,_+=n*Q,x+=n*V,C+=n*Y,S+=n*Z,f+=(n=t[6])*R,h+=n*F,d+=n*B,p+=n*U,b+=n*L,m+=n*$,y+=n*q,g+=n*W,v+=n*z,w+=n*G,E+=n*H,_+=n*K,x+=n*Q,C+=n*V,S+=n*Y,O+=n*Z,h+=(n=t[7])*R,d+=n*F,p+=n*B,b+=n*U,m+=n*L,y+=n*$,g+=n*q,v+=n*W,w+=n*z,E+=n*G,_+=n*H,x+=n*K,C+=n*Q,S+=n*V,O+=n*Y,D+=n*Z,d+=(n=t[8])*R,p+=n*F,b+=n*B,m+=n*U,y+=n*L,g+=n*$,v+=n*q,w+=n*W,E+=n*z,_+=n*G,x+=n*H,C+=n*K,S+=n*Q,O+=n*V,D+=n*Y,P+=n*Z,p+=(n=t[9])*R,b+=n*F,m+=n*B,y+=n*U,g+=n*L,v+=n*$,w+=n*q,E+=n*W,_+=n*z,x+=n*G,C+=n*H,S+=n*K,O+=n*Q,D+=n*V,P+=n*Y,k+=n*Z,b+=(n=t[10])*R,m+=n*F,y+=n*B,g+=n*U,v+=n*L,w+=n*$,E+=n*q,_+=n*W,x+=n*z,C+=n*G,S+=n*H,O+=n*K,D+=n*Q,P+=n*V,k+=n*Y,A+=n*Z,m+=(n=t[11])*R,y+=n*F,g+=n*B,v+=n*U,w+=n*L,E+=n*$,_+=n*q,x+=n*W,C+=n*z,S+=n*G,O+=n*H,D+=n*K,P+=n*Q,k+=n*V,A+=n*Y,I+=n*Z,y+=(n=t[12])*R,g+=n*F,v+=n*B,w+=n*U,E+=n*L,_+=n*$,x+=n*q,C+=n*W,S+=n*z,O+=n*G,D+=n*H,P+=n*K,k+=n*Q,A+=n*V,I+=n*Y,T+=n*Z,g+=(n=t[13])*R,v+=n*F,w+=n*B,E+=n*U,_+=n*L,x+=n*$,C+=n*q,S+=n*W,O+=n*z,D+=n*G,P+=n*H,k+=n*K,A+=n*Q,I+=n*V,T+=n*Y,N+=n*Z,v+=(n=t[14])*R,w+=n*F,E+=n*B,_+=n*U,x+=n*L,C+=n*$,S+=n*q,O+=n*W,D+=n*z,P+=n*G,k+=n*H,A+=n*K,I+=n*Q,T+=n*V,N+=n*Y,j+=n*Z,w+=(n=t[15])*R,E+=n*F,_+=n*B,x+=n*U,C+=n*L,S+=n*$,O+=n*q,D+=n*W,P+=n*z,k+=n*G,A+=n*H,I+=n*K,T+=n*Q,N+=n*V,j+=n*Y,M+=n*Z,o+=38*E,a+=38*_,s+=38*x,u+=38*C,c+=38*S,l+=38*O,f+=38*D,h+=38*P,d+=38*k,p+=38*A,b+=38*I,m+=38*T,y+=38*N,g+=38*j,v+=38*M,i=Math.floor((n=o+(i=1)+65535)/65536),o=n-65536*i,i=Math.floor((n=a+i+65535)/65536),a=n-65536*i,i=Math.floor((n=s+i+65535)/65536),s=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=v+i+65535)/65536),v=n-65536*i,i=Math.floor((n=w+i+65535)/65536),w=n-65536*i,o+=i-1+37*(i-1),i=Math.floor((n=o+(i=1)+65535)/65536),o=n-65536*i,i=Math.floor((n=a+i+65535)/65536),a=n-65536*i,i=Math.floor((n=s+i+65535)/65536),s=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=v+i+65535)/65536),v=n-65536*i,i=Math.floor((n=w+i+65535)/65536),w=n-65536*i,o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=u,e[4]=c,e[5]=l,e[6]=f,e[7]=h,e[8]=d,e[9]=p,e[10]=b,e[11]=m,e[12]=y,e[13]=g,e[14]=v,e[15]=w}function d(e,t){let r=new Uint8Array(32),n=new Float64Array(80),i=o(),a=o(),d=o(),p=o(),b=o(),m=o();for(let t=0;t<31;t++)r[t]=e[t];r[31]=127&e[31]|64,r[0]&=248,function(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}(n,t);for(let e=0;e<16;e++)a[e]=n[e];i[0]=p[0]=1;for(let e=254;e>=0;--e){let t=r[e>>>3]>>>(7&e)&1;c(i,a,t),c(d,p,t),l(b,i,d),f(i,i,d),l(d,a,p),f(a,a,p),h(p,b,b),h(m,i,i),h(i,d,i),h(d,a,b),l(b,i,d),f(i,i,d),h(a,i,i),f(d,p,m),h(i,d,s),l(i,i,p),h(d,d,i),h(i,p,m),h(p,a,n),h(a,b,b),c(i,a,t),c(d,p,t)}for(let e=0;e<16;e++)n[e+16]=i[e],n[e+32]=d[e],n[e+48]=a[e],n[e+64]=p[e];let y=n.subarray(32),g=n.subarray(16);!function(e,t){let r=o();for(let e=0;e<16;e++)r[e]=t[e];for(let e=253;e>=0;e--)h(r,r,r),2!==e&&4!==e&&h(r,r,t);for(let t=0;t<16;t++)e[t]=r[t]}(y,y),h(g,g,y);let v=new Uint8Array(32);return!function(e,t){let r=o(),n=o();for(let e=0;e<16;e++)n[e]=t[e];u(n),u(n),u(n);for(let e=0;e<2;e++){r[0]=n[0]-65517;for(let e=1;e<15;e++)r[e]=n[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,c(n,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&n[t],e[2*t+1]=n[t]>>8}(v,g),v}t.Au=function(e){let r=(0,n.randomBytes)(32,e),o=function(e){if(e.length!==t.KS)throw Error(`x25519: seed must be ${t.KS} bytes`);let r=new Uint8Array(e);return{publicKey:d(r,a),secretKey:r}}(r);return(0,i.wipe)(r),o},t.gi=function(e,r,n=!1){if(e.length!==t.kz)throw Error("X25519: incorrect secret key length");if(r.length!==t.kz)throw Error("X25519: incorrect public key length");let i=d(e,r);if(n){let e=0;for(let t=0;t<i.length;t++)e|=i[t];if(0===e)throw Error("X25519: invalid shared key")}return i}},18821:function(e,t,r){"use strict";function n(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function i(e,t){var r={};if("object"==typeof t)!function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=t.constructor();for(var o in t){var a=t[o],s=[...n,o];"string"==typeof a||"number"==typeof a||null==a?i[o]=r(a,s):"object"!=typeof a||Array.isArray(a)?console.warn('Skipping invalid key "'.concat(s.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(a)?"Array":typeof a,'"')):i[o]=e(a,r,s)}return i}(t,(t,i)=>{null!=t&&(r[n(function(e,t){var r=e;for(var n of t){if(!(n in r))throw Error("Path ".concat(t.join(" -> ")," does not exist in object"));r=r[n]}return r}(e,i))]=String(t))});else for(var i in e){var o=e[i];null!=o&&(r[n(i)]=o)}return Object.defineProperty(r,"toString",{value:function(){return Object.keys(this).map(e=>"".concat(e,":").concat(this[e])).join(";")},writable:!1}),r}r.d(t,{L:function(){return i}})},90751:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){!function(e,t,r){var n;(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}r.d(t,{$:function(){return s}});var o=e=>function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=Object.assign({},...r.map(e=>e.styles)),a=Object.keys(o),s=a.filter(e=>"mappings"in o[e]);return Object.assign(t=>{var r=[],n={},a=i({},t),u=!1;for(var c of s){var l=t[c];if(null!=l)for(var f of(u=!0,o[c].mappings))n[f]=l,null==a[f]&&delete a[f]}var h=u?i(i({},n),a):t;for(var d in h)if("continue"===function(){var e=h[d],t=o[d];try{if(t.mappings)return"continue";if("string"==typeof e||"number"==typeof e)r.push(t.values[e].defaultClass);else if(Array.isArray(e))for(var n=0;n<e.length;n++){var i=e[n];if(null!=i){var a=t.responsiveArray[n];r.push(t.values[i].conditions[a])}}else for(var s in e){var u=e[s];null!=u&&r.push(t.values[u].conditions[s])}}catch(e){throw e}}())continue;return e(r.join(" "))},{properties:new Set(a)})},a=e=>e,s=function(){return o(a)(...arguments)}},47714:function(e,t,r){"use strict";r.d(t,{d:function(){return o},M:function(){return i}});var n=function(e,t){return Object.defineProperty(e,"__recipe__",{value:t,writable:!1}),e};function i(e){var{conditions:t}=e;if(!t)throw Error("Styles have no conditions");return n(function(e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){if(!t.defaultCondition)throw Error("No default condition");return{[t.defaultCondition]:e}}if(Array.isArray(e)){if(!("responsiveArray"in t))throw Error("Responsive arrays are not supported");var r={};for(var n in t.responsiveArray)null!=e[n]&&(r[t.responsiveArray[n]]=e[n]);return r}return e},{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:e.conditions}]})}function o(e){var{conditions:t}=e;if(!t)throw Error("Styles have no conditions");var r=i(e);return n(function(e,n){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){if(!t.defaultCondition)throw Error("No default condition");return n(e,t.defaultCondition)}var i=Array.isArray(e)?r(e):e,o={};for(var a in i)null!=i[a]&&(o[a]=n(i[a],a));return o},{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:e.conditions}]})}},24584:function(){},72852:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(1812);n.__exportStar(r(83343),t),n.__exportStar(r(38520),t)},83343:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},38520:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_WEEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},58619:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(1812);n.__exportStar(r(6954),t),n.__exportStar(r(91895),t),n.__exportStar(r(21087),t),n.__exportStar(r(72852),t)},21087:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1812).__exportStar(r(36448),t)},36448:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0;class r{}t.IWatch=r},24810:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;let n=r(72852);t.toMiliseconds=function(e){return e*n.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/n.ONE_THOUSAND)}},18995:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}},6954:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(1812);n.__exportStar(r(18995),t),n.__exportStar(r(24810),t)},91895:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(void 0!==t.elapsed)throw Error(`Watch already stopped for label: ${e}`);let r=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:r})}get(e){let t=this.timestamps.get(e);if(void 0===t)throw Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=r,t.default=r},1812:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return w},__asyncGenerator:function(){return v},__asyncValues:function(){return E},__await:function(){return g},__awaiter:function(){return l},__classPrivateFieldGet:function(){return S},__classPrivateFieldSet:function(){return O},__createBinding:function(){return h},__decorate:function(){return s},__exportStar:function(){return d},__extends:function(){return i},__generator:function(){return f},__importDefault:function(){return C},__importStar:function(){return x},__makeTemplateObject:function(){return _},__metadata:function(){return c},__param:function(){return u},__read:function(){return b},__rest:function(){return a},__spread:function(){return m},__spreadArrays:function(){return y},__values:function(){return p}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function f(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function h(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function d(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function y(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function g(e){return this instanceof g?(this.v=e,this):new g(e)}function v(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{var r;(r=i[e](t)).value instanceof g?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:g(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function E(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function C(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function O(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},3537:function(e,t,r){"use strict";r.d(t,{AW:function(){return w},O6:function(){return tu},rV:function(){return x},gn:function(){return eo},H1:function(){return X},hF:function(){return ee},WG:function(){return k},pe:function(){return I},m$:function(){return O},vB:function(){return T},HI:function(){return A},E0:function(){return es},Gq:function(){return en},$0:function(){return V},Z4:function(){return er},Bv:function(){return ew},Au:function(){return C},jd:function(){return S},gu:function(){return y},D:function(){return Q},X_:function(){return K},bW:function(){return el},Z7:function(){return eF},cO:function(){return eh},_H:function(){return ef},fc:function(){return eI},D6:function(){return eB},Hh:function(){return ec},Ym:function(){return D},rj:function(){return P},jU:function(){return G},gp:function(){return eT},rF:function(){return tt},Bw:function(){return ea},UG:function(){return W},Gg:function(){return ti},xW:function(){return eK},b$:function(){return z},Ih:function(){return ez},h1:function(){return eQ},Q8:function(){return M},o8:function(){return e$},qt:function(){return eU},Dd:function(){return eV},$t:function(){return e3},nf:function(){return e4},Q0:function(){return e2},in:function(){return eX},p8:function(){return e9},sI:function(){return te},al:function(){return e7},L5:function(){return eL},EJ:function(){return e6},Z2:function(){return e0},PM:function(){return e1},hH:function(){return e5},ON:function(){return tn},n:function(){return eJ},JT:function(){return e8},M_:function(){return eq},jv:function(){return eH},KC:function(){return Z},eG:function(){return eu},fK:function(){return ej},IP:function(){return J},DQ:function(){return m},iP:function(){return ei},M:function(){return eN},he:function(){return ev},uw:function(){return ta},Ll:function(){return N},EN:function(){return j}});var n=r(51040),i=r(20342),o=r(35077),a=r(87853),s=r(38195),u=r(71188),c=r(69954),l=r(58619),f=r(849),h=r(36073),d=r(43824);r(24584);let p={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}};var b=r(25566);function m(e){let[t,r]=e.split(":");return{namespace:t,reference:r}}function y(e,t=[]){let r=[];return Object.keys(e).forEach(n=>{if(t.length&&!t.includes(n))return;let i=e[n];r.push(...i.accounts)}),r}function g(e,t){return e.includes(":")?[e]:t.chains||[]}let v="base10",w="base16",E="base64pad",_="utf8",x=1;function C(){let e=s.Au();return{privateKey:(0,u.BB)(e.secretKey,w),publicKey:(0,u.BB)(e.publicKey,w)}}function S(){let e=(0,o.randomBytes)(32);return(0,u.BB)(e,w)}function O(e,t){let r=s.gi((0,u.mL)(e,w),(0,u.mL)(t,w),!0),n=new i.t(a.mE,r).expand(32);return(0,u.BB)(n,w)}function D(e){let t=(0,a.vp)((0,u.mL)(e,w));return(0,u.BB)(t,w)}function P(e){let t=(0,a.vp)((0,u.mL)(e,_));return(0,u.BB)(t,w)}function k(e){return Number((0,u.BB)(e,v))}function A(e){var t;let r=(t="u">typeof e.type?e.type:0,(0,u.mL)(`${t}`,v));if(k(r)===x&&typeof e.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");let i="u">typeof e.senderPublicKey?(0,u.mL)(e.senderPublicKey,w):void 0,a="u">typeof e.iv?(0,u.mL)(e.iv,w):(0,o.randomBytes)(12);return function(e){if(k(e.type)===x){if(typeof e.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");return(0,u.BB)((0,u.zo)([e.type,e.senderPublicKey,e.iv,e.sealed]),E)}return(0,u.BB)((0,u.zo)([e.type,e.iv,e.sealed]),E)}({type:r,sealed:new n.OK((0,u.mL)(e.symKey,w)).seal(a,(0,u.mL)(e.message,_)),iv:a,senderPublicKey:i})}function I(e){let t=new n.OK((0,u.mL)(e.symKey,w)),{sealed:r,iv:i}=T(e.encoded),o=t.open(i,r);if(null===o)throw Error("Failed to decrypt");return(0,u.BB)(o,_)}function T(e){let t=(0,u.mL)(e,E),r=t.slice(0,1);if(k(r)===x){let e=t.slice(1,33),n=t.slice(33,45);return{type:r,sealed:t.slice(45),iv:n,senderPublicKey:e}}let n=t.slice(1,13);return{type:r,sealed:t.slice(13),iv:n}}function N(e,t){let r=T(e);return j({type:k(r.type),senderPublicKey:"u">typeof r.senderPublicKey?(0,u.BB)(r.senderPublicKey,w):void 0,receiverPublicKey:t?.receiverPublicKey})}function j(e){let t=e?.type||0;if(t===x){if(typeof e?.senderPublicKey>"u")throw Error("missing sender public key");if(typeof e?.receiverPublicKey>"u")throw Error("missing receiver public key")}return{type:t,senderPublicKey:e?.senderPublicKey,receiverPublicKey:e?.receiverPublicKey}}function M(e){return e.type===x&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}var R=Object.defineProperty,F=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,L=(e,t,r)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$=(e,t)=>{for(var r in t||(t={}))B.call(t,r)&&L(e,r,t[r]);if(F)for(var r of F(t))U.call(t,r)&&L(e,r,t[r]);return e};let q={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"};function W(){return"u">typeof b&&"u">typeof b.versions&&"u">typeof b.versions.node}function z(){return!(0,f.getDocument)()&&!!(0,f.getNavigator)()&&"ReactNative"===navigator.product}function G(){return!W()&&!!(0,f.getNavigator)()&&!!(0,f.getDocument)()}function H(){return z()?q.reactNative:W()?q.node:G()?q.browser:q.unknown}function K(){var e;try{return z()&&"u">typeof r.g&&"u">typeof(null==r.g?void 0:r.g.Application)?null==(e=r.g.Application)?void 0:e.applicationId:void 0}catch{return}}function Q(){return(0,h.D)()||{name:"",description:"",url:"",icons:[""]}}function V({protocol:e,version:t,relayUrl:n,sdkVersion:i,auth:o,projectId:a,useOnCloseEvent:s,bundleId:u}){var l;let h;let p=n.split("?"),b=function(e,t,n){let i=function(){if(H()===q.reactNative&&"u">typeof r.g&&"u">typeof(null==r.g?void 0:r.g.Platform)){let{OS:e,Version:t}=r.g.Platform;return[e,t].join("-")}let e=(0,c.qY)();if(null===e)return"unknown";let t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return"browser"===e.type?[t,e.name,e.version].join("-"):[t,e.version].join("-")}(),o=function(){var e;let t=H();return t===q.browser?[t,(null==(e=(0,f.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}();return[[e,t].join("-"),["js",n].join("-"),i,o].join("/")}(e,t,i),m=(l=p[1]||"",h=$($({},h=d.parse(l)),{auth:o,ua:b,projectId:a,useOnCloseEvent:s||void 0,origin:u||void 0}),l=d.stringify(h));return p[0]+"?"+m}function Y(e,t){return e.filter(e=>t.includes(e)).length===e.length}function Z(e){return Object.fromEntries(e.entries())}function J(e){return new Map(Object.entries(e))}function X(e=l.FIVE_MINUTES,t){let r,n,i;let o=(0,l.toMiliseconds)(e||l.FIVE_MINUTES);return{resolve:e=>{i&&r&&(clearTimeout(i),r(e))},reject:e=>{i&&n&&(clearTimeout(i),n(e))},done:()=>new Promise((e,a)=>{i=setTimeout(()=>{a(Error(t))},o),r=e,n=a})}}function ee(e,t,r){return new Promise(async(n,i)=>{let o=setTimeout(()=>i(Error(r)),t);try{let t=await e;n(t)}catch(e){i(e)}clearTimeout(o)})}function et(e,t){if("string"==typeof t&&t.startsWith(`${e}:`))return t;if("topic"===e.toLowerCase()){if("string"!=typeof t)throw Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}if("id"===e.toLowerCase()){if("number"!=typeof t)throw Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw Error(`Unknown expirer target type: ${e}`)}function er(e){return et("topic",e)}function en(e){return et("id",e)}function ei(e){let[t,r]=e.split(":"),n={id:void 0,topic:void 0};if("topic"===t&&"string"==typeof r)n.topic=r;else if("id"===t&&Number.isInteger(Number(r)))n.id=Number(r);else throw Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);return n}function eo(e,t){return(0,l.fromMiliseconds)((t||Date.now())+(0,l.toMiliseconds)(e))}function ea(e){return Date.now()>=(0,l.toMiliseconds)(e)}function es(e,t){return`${e}${t?`:${t}`:""}`}function eu(e=[],t=[]){return[...new Set([...e,...t])]}async function ec({id:e,topic:t,wcDeepLink:n}){try{if(!n)return;let i="string"==typeof n?JSON.parse(n):n,o=i?.href;if("string"!=typeof o)return;o.endsWith("/")&&(o=o.slice(0,-1));let a=`${o}/wc?requestId=${e}&sessionTopic=${t}`,s=H();s===q.browser?a.startsWith("https://")?window.open(a,"_blank","noreferrer noopener"):window.open(a,"_self","noreferrer noopener"):s===q.reactNative&&"u">typeof(null==r.g?void 0:r.g.Linking)&&await r.g.Linking.openURL(a)}catch(e){console.error(e)}}async function el(e,t){try{return await e.getItem(t)||(G()?localStorage.getItem(t):void 0)}catch(e){console.error(e)}}function ef(e){return e?.relay||{protocol:"irn"}}function eh(e){let t=p[e];if(typeof t>"u")throw Error(`Relay Protocol not supported: ${e}`);return t}var ed=Object.defineProperty,ep=Object.getOwnPropertySymbols,eb=Object.prototype.hasOwnProperty,em=Object.prototype.propertyIsEnumerable,ey=(e,t,r)=>t in e?ed(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eg=(e,t)=>{for(var r in t||(t={}))eb.call(t,r)&&ey(e,r,t[r]);if(ep)for(var r of ep(t))em.call(t,r)&&ey(e,r,t[r]);return e};function ev(e){var t;let r=(e=(e=e.includes("wc://")?e.replace("wc://",""):e).includes("wc:")?e.replace("wc:",""):e).indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,i=e.substring(0,r),o=e.substring(r+1,n).split("@"),a="u">typeof n?e.substring(n):"",s=d.parse(a);return{protocol:i,topic:(t=o[0]).startsWith("//")?t.substring(2):t,version:parseInt(o[1],10),symKey:s.symKey,relay:function(e,t="-"){let r={},n="relay"+t;return Object.keys(e).forEach(t=>{if(t.startsWith(n)){let i=t.replace(n,""),o=e[t];r[i]=o}}),r}(s)}}function ew(e){return`${e.protocol}:${e.topic}@${e.version}?`+d.stringify(eg({symKey:e.symKey},function(e,t="-"){let r={};return Object.keys(e).forEach(n=>{e[n]&&(r["relay"+t+n]=e[n])}),r}(e.relay)))}var eE=Object.defineProperty,e_=Object.defineProperties,ex=Object.getOwnPropertyDescriptors,eC=Object.getOwnPropertySymbols,eS=Object.prototype.hasOwnProperty,eO=Object.prototype.propertyIsEnumerable,eD=(e,t,r)=>t in e?eE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eP=(e,t)=>{for(var r in t||(t={}))eS.call(t,r)&&eD(e,r,t[r]);if(eC)for(var r of eC(t))eO.call(t,r)&&eD(e,r,t[r]);return e},ek=(e,t)=>e_(e,ex(t));function eA(e){let t=[];return e.forEach(e=>{let[r,n]=e.split(":");t.push(`${r}:${n}`)}),t}function eI(e,t){let r=eX(e,t);if(r)throw Error(r.message);let n={};for(let[t,r]of Object.entries(e))n[t]={methods:r.methods,events:r.events,chains:r.accounts.map(e=>`${e.split(":")[0]}:${e.split(":")[1]}`)};return n}function eT(e){return e.includes(":")}function eN(e){return eT(e)?e.split(":")[0]:e}function ej(e){var t,r,n;let i={};if(!eL(e))return i;for(let[o,a]of Object.entries(e)){let e=eT(o)?[o]:a.chains,s=a.methods||[],u=a.events||[],c=eN(o);i[c]=ek(eP({},i[c]),{chains:eu(e,null==(t=i[c])?void 0:t.chains),methods:eu(s,null==(r=i[c])?void 0:r.methods),events:eu(u,null==(n=i[c])?void 0:n.events)})}return i}let eM={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},eR={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function eF(e,t){let{message:r,code:n}=eR[e];return{message:t?`${r} ${t}`:r,code:n}}function eB(e,t){let{message:r,code:n}=eM[e];return{message:t?`${r} ${t}`:r,code:n}}function eU(e,t){return!!Array.isArray(e)&&(!("u">typeof t)||!e.length||e.every(t))}function eL(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function e$(e){return typeof e>"u"}function eq(e,t){return!!(t&&e$(e))||"string"==typeof e&&!!e.trim().length}function eW(e,t){return!!(t&&e$(e))||"number"==typeof e&&!isNaN(e)}function ez(e,t){let{requiredNamespaces:r}=t,n=Object.keys(e.namespaces),i=Object.keys(r),o=!0;return!!Y(i,n)&&(n.forEach(t=>{let{accounts:n,methods:i,events:a}=e.namespaces[t],s=eA(n),u=r[t];Y(g(t,u),s)&&Y(u.methods,i)&&Y(u.events,a)||(o=!1)}),o)}function eG(e){return!!(eq(e,!1)&&e.includes(":"))&&2===e.split(":").length}function eH(e){if(eq(e,!1))try{return"u">typeof new URL(e)}catch{}return!1}function eK(e){var t;return null==(t=e?.proposer)?void 0:t.publicKey}function eQ(e){return e?.topic}function eV(e,t){let r=null;return eq(e?.publicKey,!1)||(r=eF("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}function eY(e){let t=!0;return eU(e)?e.length&&(t=e.every(e=>eq(e,!1))):t=!1,t}function eZ(e,t){let r=null;return Object.values(e).forEach(e=>{var n;let i;if(r)return;let o=(n=`${t}, namespace`,i=null,eY(e?.methods)?eY(e?.events)||(i=eB("UNSUPPORTED_EVENTS",`${n}, events should be an array of strings or empty array for no events`)):i=eB("UNSUPPORTED_METHODS",`${n}, methods should be an array of strings or empty array for no methods`),i);o&&(r=o)}),r}function eJ(e,t,r){let n=null;if(e&&eL(e)){let i;let o=eZ(e,t);o&&(n=o);let a=(i=null,Object.entries(e).forEach(([e,n])=>{var o,a;let s;if(i)return;let u=(o=g(e,n),a=`${t} ${r}`,s=null,eU(o)&&o.length?o.forEach(e=>{s||eG(e)||(s=eB("UNSUPPORTED_CHAINS",`${a}, chain ${e} should be a string and conform to "namespace:chainId" format`))}):eG(e)||(s=eB("UNSUPPORTED_CHAINS",`${a}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),s);u&&(i=u)}),i);a&&(n=a)}else n=eF("MISSING_OR_INVALID",`${t}, ${r} should be an object with data`);return n}function eX(e,t){let r=null;if(e&&eL(e)){let n;let i=eZ(e,t);i&&(r=i);let o=(n=null,Object.values(e).forEach(e=>{var r,i;let o;if(n)return;let a=(r=e?.accounts,i=`${t} namespace`,o=null,eU(r)?r.forEach(e=>{o||function(e){if(eq(e,!1)&&e.includes(":")){let t=e.split(":");if(3===t.length){let e=t[0]+":"+t[1];return!!t[2]&&eG(e)}}return!1}(e)||(o=eB("UNSUPPORTED_ACCOUNTS",`${i}, account ${e} should be a string and conform to "namespace:chainId:address" format`))}):o=eB("UNSUPPORTED_ACCOUNTS",`${i}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),o);a&&(n=a)}),n);o&&(r=o)}else r=eF("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function e0(e){return eq(e.protocol,!0)}function e1(e,t){let r=!1;return t&&!e?r=!0:e&&eU(e)&&e.length&&e.forEach(e=>{r=e0(e)}),r}function e2(e){return"number"==typeof e}function e6(e){return"u">typeof e}function e3(e){return!(!e||"object"!=typeof e||!e.code||!eW(e.code,!1)||!e.message||!eq(e.message,!1))}function e5(e){return!(e$(e)||!eq(e.method,!1))}function e8(e){return!(e$(e)||e$(e.result)&&e$(e.error)||!eW(e.id,!1)||!eq(e.jsonrpc,!1))}function e4(e){return!(e$(e)||!eq(e.name,!1))}function e9(e,t){return!(!eG(t)||!(function(e){let t=[];return Object.values(e).forEach(e=>{t.push(...eA(e.accounts))}),t})(e).includes(t))}function e7(e,t,r){return!!eq(r,!1)&&(function(e,t){let r=[];return Object.values(e).forEach(e=>{eA(e.accounts).includes(t)&&r.push(...e.methods)}),r})(e,t).includes(r)}function te(e,t,r){return!!eq(r,!1)&&(function(e,t){let r=[];return Object.values(e).forEach(e=>{eA(e.accounts).includes(t)&&r.push(...e.events)}),r})(e,t).includes(r)}function tt(e,t,r){let n=null,i=function(e){let t={};return Object.keys(e).forEach(r=>{var n;r.includes(":")?t[r]=e[r]:null==(n=e[r].chains)||n.forEach(n=>{t[n]={methods:e[r].methods,events:e[r].events}})}),t}(e),o=function(e){let t={};return Object.keys(e).forEach(r=>{if(r.includes(":"))t[r]=e[r];else{let n=eA(e[r].accounts);n?.forEach(n=>{t[n]={accounts:e[r].accounts.filter(e=>e.includes(`${n}:`)),methods:e[r].methods,events:e[r].events}})}}),t}(t),a=Object.keys(i),s=Object.keys(o),u=tr(Object.keys(e)),c=tr(Object.keys(t)),l=u.filter(e=>!c.includes(e));return l.length&&(n=eF("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces.
      Required: ${l.toString()}
      Received: ${Object.keys(t).toString()}`)),Y(a,s)||(n=eF("NON_CONFORMING_NAMESPACES",`${r} namespaces chains don't satisfy required namespaces.
      Required: ${a.toString()}
      Approved: ${s.toString()}`)),Object.keys(t).forEach(e=>{if(!e.includes(":")||n)return;let i=eA(t[e].accounts);i.includes(e)||(n=eF("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace accounts for ${e}
        Required: ${e}
        Approved: ${i.toString()}`))}),a.forEach(e=>{n||(Y(i[e].methods,o[e].methods)?Y(i[e].events,o[e].events)||(n=eF("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${e}`)):n=eF("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${e}`))}),n}function tr(e){return[...new Set(e.map(e=>e.includes(":")?e.split(":")[0]:e))]}function tn(e,t){return eW(e,!1)&&e<=t.max&&e>=t.min}function ti(){let e=H();return new Promise(t=>{switch(e){case q.browser:t(G()&&navigator?.onLine);break;case q.reactNative:t(to());break;case q.node:default:t(!0)}})}async function to(){if(z()&&"u">typeof r.g&&null!=r.g&&r.g.NetInfo){let e=await (null==r.g?void 0:r.g.NetInfo.fetch());return e?.isConnected}return!0}function ta(e){switch(H()){case q.browser:!z()&&G()&&(window.addEventListener("online",()=>e(!0)),window.addEventListener("offline",()=>e(!1)));break;case q.reactNative:z()&&"u">typeof r.g&&null!=r.g&&r.g.NetInfo&&r.g?.NetInfo.addEventListener(t=>e(t?.isConnected));case q.node:}}let ts={};class tu{static get(e){return ts[e]}static set(e,t){ts[e]=t}static delete(e){delete ts[e]}}},43824:function(e,t,r){"use strict";let n=r(67116),i=r(58005),o=r(34470),a=r(61820),s=e=>null==e,u=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function f(e,t){return t.decode?i(e):e}function h(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function d(e){let t=(e=h(e)).indexOf("?");return -1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function b(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);let r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t){n[e]=r;return}void 0===n[e]&&(n[e]={}),n[e][t[1]]=r};case"bracket":return(e,r,n)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case"colon-list-separator":return(e,r,n)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case"comma":case"separator":return(t,r,n)=>{let i="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!i&&f(r,e).includes(e.arrayFormatSeparator);r=o?f(r,e):r;let a=i||o?r.split(e.arrayFormatSeparator).map(t=>f(t,e)):null===r?r:f(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{let i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i){n[t]=r?f(r,e):r;return}let o=null===r?[]:r.split(e.arrayFormatSeparator).map(t=>f(t,e));if(void 0===n[t]){n[t]=o;return}n[t]=[].concat(n[t],o)};default:return(e,t,r)=>{if(void 0===r[e]){r[e]=t;return}r[e]=[].concat(r[e],t)}}}(t),n=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return n;for(let i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:f(a,t),r(f(e,t),a,n)}for(let e of Object.keys(n)){let r=n[e];if("object"==typeof r&&null!==r)for(let e of Object.keys(r))r[e]=p(r[e],t);else n[e]=p(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{let r=n[t];return r&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=d,t.parse=b,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);let r=r=>t.skipNull&&s(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[",i,"]"].join("")]:[...r,[l(t,e),"[",l(i,e),"]=",l(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[]"].join("")]:[...r,[l(t,e),"[]=",l(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),":list="].join("")]:[...r,[l(t,e),":list=",l(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length)?[[l(r,e),t,l(i,e)].join("")]:[[n,l(i,e)].join(e.arrayFormatSeparator)]}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,l(t,e)]:[...r,[l(t,e),"=",l(n,e)].join("")]}}(t),i={};for(let t of Object.keys(e))r(t)||(i[t]=e[t]);let o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map(r=>{let i=e[r];return void 0===i?"":null===i?l(r,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?l(r,t)+"[]":i.reduce(n(r),[]).join("&"):l(r,t)+"="+l(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:b(d(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:f(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[u]:!0},r);let n=h(e.url).split("?")[0]||"",i=t.extract(e.url),o=Object.assign(t.parse(i,{sort:!1}),e.query),a=t.stringify(o,r);a&&(a=`?${a}`);let s=function(e){let t="",r=e.indexOf("#");return -1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(s=`#${r[u]?l(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${a}${s}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[u]:!1},n);let{url:i,query:o,fragmentIdentifier:s}=t.parseUrl(e,n);return t.stringifyUrl({url:i,query:a(o,r),fragmentIdentifier:s},n)},t.exclude=(e,r,n)=>{let i=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,i,n)}},849:function(e,t){"use strict";function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function n(e){let t=r(e);if(!t)throw Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=n,t.getDocumentOrThrow=function(){return n("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return n("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return n("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return n("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return n("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},36073:function(e,t,r){"use strict";t.D=void 0;let n=r(849);t.D=function(){let e,t,r;try{e=n.getDocumentOrThrow(),t=n.getLocationOrThrow()}catch(e){return null}function i(...t){let r=e.getElementsByTagName("meta");for(let e=0;e<r.length;e++){let n=r[e],i=["itemprop","property","name"].map(e=>n.getAttribute(e)).filter(e=>!!e&&t.includes(e));if(i.length&&i){let e=n.getAttribute("content");if(e)return e}}return""}let o=((r=i("name","og:site_name","og:title","twitter:title"))||(r=e.title),r),a=i("description","og:description","twitter:description","keywords");return{description:a,url:t.origin,icons:function(){let r=e.getElementsByTagName("link"),n=[];for(let e=0;e<r.length;e++){let i=r[e],o=i.getAttribute("rel");if(o&&o.toLowerCase().indexOf("icon")>-1){let e=i.getAttribute("href");if(e){if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let r=t.protocol+"//"+t.host;if(0===e.indexOf("/"))r+=e;else{let n=t.pathname.split("/");n.pop(),r+=n.join("/")+"/"+e}n.push(r)}else if(0===e.indexOf("//")){let r=t.protocol+e;n.push(r)}else n.push(e)}}}return n}(),name:o}}},65209:function(e,t,r){var n;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,u=Math.floor,c="[BigNumber Error] ",l=c+"Number primitive has more than 15 significant digits: ",f=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function h(e){var t=0|e;return e>0||e===t?t:t-1}function d(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function p(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,u=e.e,c=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=u==c,!i||!o)return n?0:!i^r?1:-1;if(!n)return u>c^r?1:-1;for(a=0,s=(u=i.length)<(c=o.length)?u:c;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return u==c?0:u>c^r?1:-1}function b(e,t,r,n){if(e<t||e>r||e!==u(e))throw Error(c+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function m(e){var t=e.c.length-1;return h(e.e/14)==t&&e.c[t]%2!=0}function y(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function g(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}(o=function e(t){var r,n,i,o,v,w,E,_,x,C=B.prototype={constructor:B,toString:null,valueOf:null},S=new B(1),O=20,D=4,P=-7,k=21,A=-1e7,I=1e7,T=!1,N=1,j=0,M={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},R="0123456789abcdefghijklmnopqrstuvwxyz",F=!0;function B(e,t){var r,n,i,o,s,c,f,h,d=this;if(!(d instanceof B))return new B(e,t);if(null==t){if(e&&!0===e._isBigNumber){d.s=e.s,!e.c||e.e>I?d.c=d.e=null:e.e<A?d.c=[d.e=0]:(d.e=e.e,d.c=e.c.slice());return}if((c="number"==typeof e)&&0*e==0){if(d.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,s=e;s>=10;s/=10,o++);o>I?d.c=d.e=null:(d.e=o,d.c=[e]);return}h=String(e)}else{if(!a.test(h=String(e)))return x(d,h,c);d.s=45==h.charCodeAt(0)?(h=h.slice(1),-1):1}(o=h.indexOf("."))>-1&&(h=h.replace(".","")),(s=h.search(/e/i))>0?(o<0&&(o=s),o+=+h.slice(s+1),h=h.substring(0,s)):o<0&&(o=h.length)}else{if(b(t,2,R.length,"Base"),10==t&&F)return q(d=new B(e),O+d.e+1,D);if(h=String(e),c="number"==typeof e){if(0*e!=0)return x(d,h,c,t);if(d.s=1/e<0?(h=h.slice(1),-1):1,B.DEBUG&&h.replace(/^0\.0*|\./,"").length>15)throw Error(l+e)}else d.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1;for(r=R.slice(0,t),o=s=0,f=h.length;s<f;s++)if(0>r.indexOf(n=h.charAt(s))){if("."==n){if(s>o){o=f;continue}}else if(!i&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){i=!0,s=-1,o=0;continue}return x(d,String(e),c,t)}c=!1,(o=(h=_(h,t,10,d.s)).indexOf("."))>-1?h=h.replace(".",""):o=h.length}for(s=0;48===h.charCodeAt(s);s++);for(f=h.length;48===h.charCodeAt(--f););if(h=h.slice(s,++f)){if(f-=s,c&&B.DEBUG&&f>15&&(e>9007199254740991||e!==u(e)))throw Error(l+d.s*e);if((o=o-s-1)>I)d.c=d.e=null;else if(o<A)d.c=[d.e=0];else{if(d.e=o,d.c=[],s=(o+1)%14,o<0&&(s+=14),s<f){for(s&&d.c.push(+h.slice(0,s)),f-=14;s<f;)d.c.push(+h.slice(s,s+=14));s=14-(h=h.slice(s)).length}else s-=f;for(;s--;h+="0");d.c.push(+h)}}else d.c=[d.e=0]}function U(e,t,r,n){var i,o,a,s,u;if(null==r?r=D:b(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)u=d(e.c),u=1==n||2==n&&(a<=P||a>=k)?y(u,a):g(u,a,"0");else if(o=(e=q(new B(e),t,r)).e,s=(u=d(e.c)).length,1==n||2==n&&(t<=o||o<=P)){for(;s<t;u+="0",s++);u=y(u,o)}else if(t-=a,u=g(u,o,"0"),o+1>s){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=o-s)>0)for(o+1==s&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function L(e,t){for(var r,n,i=1,o=new B(e[0]);i<e.length;i++)(n=new B(e[i])).s&&(r=p(o,n))!==t&&(0!==r||o.s!==t)||(o=n);return o}function $(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+14*r-1)>I?e.c=e.e=null:r<A?e.c=[e.e=0]:(e.e=r,e.c=t),e}function q(e,t,r,n){var i,o,a,c,l,h,d,p=e.c;if(p){e:{for(i=1,c=p[0];c>=10;c/=10,i++);if((o=t-i)<0)o+=14,a=t,d=u((l=p[h=0])/f[i-a-1]%10);else if((h=s((o+1)/14))>=p.length){if(n){for(;p.length<=h;p.push(0));l=d=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,l=c=p[h];c>=10;c/=10,i++);o%=14,d=(a=o-14+i)<0?0:u(l/f[i-a-1]%10)}if(n=n||t<0||null!=p[h+1]||(a<0?l:l%f[i-a-1]),n=r<4?(d||n)&&(0==r||r==(e.s<0?3:2)):d>5||5==d&&(4==r||n||6==r&&(o>0?a>0?l/f[i-a]:0:p[h-1])%10&1||r==(e.s<0?8:7)),t<1||!p[0])return p.length=0,n?(t-=e.e+1,p[0]=f[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=h,c=1,h--):(p.length=h+1,c=f[14-o],p[h]=a>0?u(l/f[i-a]%f[a])*c:0),n)for(;;){if(0==h){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=c,c=1;a>=10;a/=10,c++);o!=c&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[h]+=c,1e14!=p[h])break;p[h--]=0,c=1}for(o=p.length;0===p[--o];p.pop());}e.e>I?e.c=e.e=null:e.e<A&&(e.c=[e.e=0])}return e}function W(e){var t,r=e.e;return null===r?e.toString():(t=d(e.c),t=r<=P||r>=k?y(t,r):g(t,r,"0"),e.s<0?"-"+t:t)}return B.clone=e,B.ROUND_UP=0,B.ROUND_DOWN=1,B.ROUND_CEIL=2,B.ROUND_FLOOR=3,B.ROUND_HALF_UP=4,B.ROUND_HALF_DOWN=5,B.ROUND_HALF_EVEN=6,B.ROUND_HALF_CEIL=7,B.ROUND_HALF_FLOOR=8,B.EUCLID=9,B.config=B.set=function(e){var t,r;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(b(r=e[t],0,1e9,t),O=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(b(r=e[t],0,8,t),D=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(b(r[0],-1e9,0,t),b(r[1],0,1e9,t),P=r[0],k=r[1]):(b(r,-1e9,1e9,t),P=-(k=r<0?-r:r))),e.hasOwnProperty(t="RANGE")){if((r=e[t])&&r.pop)b(r[0],-1e9,-1,t),b(r[1],1,1e9,t),A=r[0],I=r[1];else if(b(r,-1e9,1e9,t),r)A=-(I=r<0?-r:r);else throw Error(c+t+" cannot be zero: "+r)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(r=e[t])===r){if(r){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))T=r;else throw T=!r,Error(c+"crypto unavailable")}else T=r}else throw Error(c+t+" not true or false: "+r)}if(e.hasOwnProperty(t="MODULO_MODE")&&(b(r=e[t],0,9,t),N=r),e.hasOwnProperty(t="POW_PRECISION")&&(b(r=e[t],0,1e9,t),j=r),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(r=e[t]))M=r;else throw Error(c+t+" not an object: "+r)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(c+t+" invalid: "+r);F="0123456789"==r.slice(0,10),R=r}}else throw Error(c+"Object expected: "+e)}return{DECIMAL_PLACES:O,ROUNDING_MODE:D,EXPONENTIAL_AT:[P,k],RANGE:[A,I],CRYPTO:T,MODULO_MODE:N,POW_PRECISION:j,FORMAT:M,ALPHABET:R}},B.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!B.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(n)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===u(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=1e14||r!==u(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(c+"Invalid BigNumber: "+e)},B.maximum=B.max=function(){return L(arguments,-1)},B.minimum=B.min=function(){return L(arguments,1)},B.random=(r=9007199254740992*Math.random()&2097151?function(){return u(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,n,i,o,a,l=0,h=[],d=new B(S);if(null==e?e=O:b(e,0,1e9),o=s(e/14),T){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));l<o;)(a=131072*t[l]+(t[l+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[l]=n[0],t[l+1]=n[1]):(h.push(a%1e14),l+=2);l=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);l<o;)(a=(31&t[l])*281474976710656+1099511627776*t[l+1]+4294967296*t[l+2]+16777216*t[l+3]+(t[l+4]<<16)+(t[l+5]<<8)+t[l+6])>=9e15?crypto.randomBytes(7).copy(t,l):(h.push(a%1e14),l+=7);l=o/7}else throw T=!1,Error(c+"crypto unavailable")}if(!T)for(;l<o;)(a=r())<9e15&&(h[l++]=a%1e14);for(o=h[--l],e%=14,o&&e&&(a=f[14-e],h[l]=u(o/a)*a);0===h[l];h.pop(),l--);if(l<0)h=[i=0];else{for(i=-1;0===h[0];h.splice(0,1),i-=14);for(l=1,a=h[0];a>=10;a/=10,l++);l<14&&(i-=14-l)}return d.e=i,d.c=h,d}),B.sum=function(){for(var e=1,t=arguments,r=new B(t[0]);e<t.length;)r=r.plus(t[e++]);return r},_=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,a=[0],s=0,u=e.length;s<u;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var s,u,c,l,f,h,p,b,m=r.indexOf("."),y=O,v=D;for(m>=0&&(l=j,j=0,r=r.replace(".",""),h=(b=new B(n)).pow(r.length-m),j=l,b.c=t(g(d(h.c),h.e,"0"),10,i,e),b.e=b.c.length),c=l=(p=t(r,n,i,a?(s=R,e):(s=e,R))).length;0==p[--l];p.pop());if(!p[0])return s.charAt(0);if(m<0?--c:(h.c=p,h.e=c,h.s=o,p=(h=E(h,b,y,v,i)).c,f=h.r,c=h.e),m=p[u=c+y+1],l=i/2,f=f||u<0||null!=p[u+1],f=v<4?(null!=m||f)&&(0==v||v==(h.s<0?3:2)):m>l||m==l&&(4==v||f||6==v&&1&p[u-1]||v==(h.s<0?8:7)),u<1||!p[0])r=f?g(s.charAt(1),-y,s.charAt(0)):s.charAt(0);else{if(p.length=u,f)for(--i;++p[--u]>i;)p[u]=0,u||(++c,p=[1].concat(p));for(l=p.length;!p[--l];);for(m=0,r="";m<=l;r+=s.charAt(p[m++]));r=g(r,c,s.charAt(0))}return r}}(),E=function(){function e(e,t,r){var n,i,o,a,s=0,u=e.length,c=t%1e7,l=t/1e7|0;for(e=e.slice();u--;)n=l*(o=e[u]%1e7)+(a=e[u]/1e7|0)*c,s=((i=c*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+l*a,e[u]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,a,s){var c,l,f,d,p,b,m,y,g,v,w,E,_,x,C,S,O,D=n.s==i.s?1:-1,P=n.c,k=i.c;if(!P||!P[0]||!k||!k[0])return new B(n.s&&i.s&&(P?!k||P[0]!=k[0]:k)?P&&0==P[0]||!k?0*D:D/0:NaN);for(g=(y=new B(D)).c=[],D=o+(l=n.e-i.e)+1,s||(s=1e14,l=h(n.e/14)-h(i.e/14),D=D/14|0),f=0;k[f]==(P[f]||0);f++);if(k[f]>(P[f]||0)&&l--,D<0)g.push(1),d=!0;else{for(x=P.length,S=k.length,f=0,D+=2,(p=u(s/(k[0]+1)))>1&&(k=e(k,p,s),P=e(P,p,s),S=k.length,x=P.length),_=S,w=(v=P.slice(0,S)).length;w<S;v[w++]=0);O=[0].concat(O=k.slice()),C=k[0],k[1]>=s/2&&C++;do{if(p=0,(c=t(k,v,S,w))<0){if(E=v[0],S!=w&&(E=E*s+(v[1]||0)),(p=u(E/C))>1)for(p>=s&&(p=s-1),m=(b=e(k,p,s)).length,w=v.length;1==t(b,v,m,w);)p--,r(b,S<m?O:k,m,s),m=b.length,c=1;else 0==p&&(c=p=1),m=(b=k.slice()).length;if(m<w&&(b=[0].concat(b)),r(v,b,w,s),w=v.length,-1==c)for(;1>t(k,v,S,w);)p++,r(v,S<w?O:k,w,s),w=v.length}else 0===c&&(p++,v=[0]);g[f++]=p,v[0]?v[w++]=P[_]||0:(v=[P[_]],w=1)}while((_++<x||null!=v[0])&&D--);d=null!=v[0],g[0]||g.splice(0,1)}if(1e14==s){for(f=1,D=g[0];D>=10;D/=10,f++);q(y,o+(y.e=f+14*l-1)+1,a,d)}else y.e=l,y.r=+d;return y}}(),n=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,v=/^-?(Infinity|NaN)$/,w=/^\s*\+(?=[\w.])|^\s+|\s+$/g,x=function(e,t,r,a){var s,u=r?t:t.replace(w,"");if(v.test(u))e.s=isNaN(u)?null:u<0?-1:1;else{if(!r&&(u=u.replace(n,function(e,t,r){return s="x"==(r=r.toLowerCase())?16:"b"==r?2:8,a&&a!=s?e:t}),a&&(s=a,u=u.replace(i,"$1").replace(o,"0.$1")),t!=u))return new B(u,s);if(B.DEBUG)throw Error(c+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},C.absoluteValue=C.abs=function(){var e=new B(this);return e.s<0&&(e.s=1),e},C.comparedTo=function(e,t){return p(this,new B(e,t))},C.decimalPlaces=C.dp=function(e,t){var r,n,i;if(null!=e)return b(e,0,1e9),null==t?t=D:b(t,0,8),q(new B(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-h(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},C.dividedBy=C.div=function(e,t){return E(this,new B(e,t),O,D)},C.dividedToIntegerBy=C.idiv=function(e,t){return E(this,new B(e,t),0,1)},C.exponentiatedBy=C.pow=function(e,t){var r,n,i,o,a,l,f,h,d,p=this;if((e=new B(e)).c&&!e.isInteger())throw Error(c+"Exponent not an integer: "+W(e));if(null!=t&&(t=new B(t)),l=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return d=new B(Math.pow(+W(p),l?e.s*(2-m(e)):+W(e))),t?d.mod(t):d;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new B(NaN);(n=!f&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||l&&p.c[1]>=24e7:p.c[0]<8e13||l&&p.c[0]<=9999975e7)))return o=p.s<0&&m(e)?-0:0,p.e>-1&&(o=1/o),new B(f?1/o:o);j&&(o=s(j/14+2))}for(l?(r=new B(.5),f&&(e.s=1),h=m(e)):h=(i=Math.abs(+W(e)))%2,d=new B(S);;){if(h){if(!(d=d.times(p)).c)break;o?d.c.length>o&&(d.c.length=o):n&&(d=d.mod(t))}if(i){if(0===(i=u(i/2)))break;h=i%2}else if(q(e=e.times(r),e.e+1,1),e.e>14)h=m(e);else{if(0==(i=+W(e)))break;h=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):n&&(p=p.mod(t))}return n?d:(f&&(d=S.div(d)),t?d.mod(t):o?q(d,j,D,a):d)},C.integerValue=function(e){var t=new B(this);return null==e?e=D:b(e,0,8),q(t,t.e+1,e)},C.isEqualTo=C.eq=function(e,t){return 0===p(this,new B(e,t))},C.isFinite=function(){return!!this.c},C.isGreaterThan=C.gt=function(e,t){return p(this,new B(e,t))>0},C.isGreaterThanOrEqualTo=C.gte=function(e,t){return 1===(t=p(this,new B(e,t)))||0===t},C.isInteger=function(){return!!this.c&&h(this.e/14)>this.c.length-2},C.isLessThan=C.lt=function(e,t){return 0>p(this,new B(e,t))},C.isLessThanOrEqualTo=C.lte=function(e,t){return -1===(t=p(this,new B(e,t)))||0===t},C.isNaN=function(){return!this.s},C.isNegative=function(){return this.s<0},C.isPositive=function(){return this.s>0},C.isZero=function(){return!!this.c&&0==this.c[0]},C.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new B(e,t)).s,!a||!t)return new B(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,u=e.e/14,c=this.c,l=e.c;if(!s||!u){if(!c||!l)return c?(e.s=-t,e):new B(l?this:NaN);if(!c[0]||!l[0])return l[0]?(e.s=-t,e):new B(c[0]?this:3==D?-0:0)}if(s=h(s),u=h(u),c=c.slice(),a=s-u){for((o=a<0)?(a=-a,i=c):(u=s,i=l),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=c.length)<(t=l.length))?a:t,a=t=0;t<n;t++)if(c[t]!=l[t]){o=c[t]<l[t];break}if(o&&(i=c,c=l,l=i,e.s=-e.s),(t=(n=l.length)-(r=c.length))>0)for(;t--;c[r++]=0);for(t=1e14-1;n>a;){if(c[--n]<l[n]){for(r=n;r&&!c[--r];c[r]=t);--c[r],c[n]+=1e14}c[n]-=l[n]}for(;0==c[0];c.splice(0,1),--u);return c[0]?$(e,c,u):(e.s=3==D?-1:1,e.c=[e.e=0],e)},C.modulo=C.mod=function(e,t){var r,n;return(e=new B(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==N?(n=e.s,e.s=1,r=E(this,e,0,3),e.s=n,r.s*=n):r=E(this,e,0,N),(e=this.minus(r.times(e))).c[0]||1!=N||(e.s=this.s),e):new B(this):new B(NaN)},C.multipliedBy=C.times=function(e,t){var r,n,i,o,a,s,u,c,l,f,d,p,b,m=this.c,y=(e=new B(e,t)).c;if(!m||!y||!m[0]||!y[0])return this.s&&e.s&&(!m||m[0]||y)&&(!y||y[0]||m)?(e.s*=this.s,m&&y?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=h(this.e/14)+h(e.e/14),e.s*=this.s,(u=m.length)<(f=y.length)&&(b=m,m=y,y=b,i=u,u=f,f=i),i=u+f,b=[];i--;b.push(0));for(i=f;--i>=0;){for(r=0,d=y[i]%1e7,p=y[i]/1e7|0,o=i+(a=u);o>i;)s=p*(c=m[--a]%1e7)+(l=m[a]/1e7|0)*d,r=((c=d*c+s%1e7*1e7+b[o]+r)/1e14|0)+(s/1e7|0)+p*l,b[o--]=c%1e14;b[o]=r}return r?++n:b.splice(0,1),$(e,b,n)},C.negated=function(){var e=new B(this);return e.s=-e.s||null,e},C.plus=function(e,t){var r,n=this.s;if(t=(e=new B(e,t)).s,!n||!t)return new B(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new B(n/0);if(!a[0]||!s[0])return s[0]?e:new B(a[0]?this:0*n)}if(i=h(i),o=h(o),a=a.slice(),n=i-o){for(n>0?(o=i,r=s):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for((n=a.length)-(t=s.length)<0&&(r=s,s=a,a=r,t=n),n=0;t;)n=(a[--t]=a[t]+s[t]+n)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return n&&(a=[n].concat(a),++o),$(e,a,o)},C.precision=C.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return b(e,1,1e9),null==t?t=D:b(t,0,8),q(new B(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},C.shiftedBy=function(e){return b(e,-9007199254740991,9007199254740991),this.times("1e"+e)},C.squareRoot=C.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,u=O+4,c=new B("0.5");if(1!==a||!o||!o[0])return new B(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+W(this)))||a==1/0?(((t=d(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=h((s+1)/2)-(s<0||s%2),r=new B(t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new B(a+""),r.c[0]){for((a=(s=r.e)+u)<3&&(a=0);;)if(i=r,r=c.times(i.plus(E(this,i,u,1))),d(i.c).slice(0,a)===(t=d(r.c)).slice(0,a)){if(r.e<s&&--a,"9999"!=(t=t.slice(a-3,a+1))&&(n||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(q(r,r.e+O+2,1),e=!r.times(r).eq(this));break}if(!n&&(q(i,i.e+O+2,0),i.times(i).eq(this))){r=i;break}u+=4,a+=4,n=1}}return q(r,r.e+O+1,D,e)},C.toExponential=function(e,t){return null!=e&&(b(e,0,1e9),e++),U(this,e,t,1)},C.toFixed=function(e,t){return null!=e&&(b(e,0,1e9),e=e+this.e+1),U(this,e,t)},C.toFormat=function(e,t,r){var n;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=M;else if("object"!=typeof r)throw Error(c+"Argument not an object: "+r);if(n=this.toFixed(e,t),this.c){var i,o=n.split("."),a=+r.groupSize,s=+r.secondaryGroupSize,u=r.groupSeparator||"",l=o[0],f=o[1],h=this.s<0,d=h?l.slice(1):l,p=d.length;if(s&&(i=a,a=s,s=i,p-=i),a>0&&p>0){for(i=p%a||a,l=d.substr(0,i);i<p;i+=a)l+=u+d.substr(i,a);s>0&&(l+=u+d.slice(i)),h&&(l="-"+l)}n=f?l+(r.decimalSeparator||"")+((s=+r.fractionGroupSize)?f.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):f):l}return(r.prefix||"")+n+(r.suffix||"")},C.toFraction=function(e){var t,r,n,i,o,a,s,u,l,h,p,b,m=this.c;if(null!=e&&(!(s=new B(e)).isInteger()&&(s.c||1!==s.s)||s.lt(S)))throw Error(c+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+W(s));if(!m)return new B(this);for(t=new B(S),l=r=new B(S),n=u=new B(S),b=d(m),o=t.e=b.length-this.e-1,t.c[0]=f[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:l:s,a=I,I=1/0,s=new B(b),u.c[0]=0;h=E(s,t,0,1),1!=(i=r.plus(h.times(n))).comparedTo(e);)r=n,n=i,l=u.plus(h.times(i=l)),u=i,t=s.minus(h.times(i=t)),s=i;return i=E(e.minus(r),n,0,1),u=u.plus(i.times(l)),r=r.plus(i.times(n)),u.s=l.s=this.s,o*=2,p=1>E(l,n,o,D).minus(this).abs().comparedTo(E(u,r,o,D).minus(this).abs())?[l,n]:[u,r],I=a,p},C.toNumber=function(){return+W(this)},C.toPrecision=function(e,t){return null!=e&&b(e,1,1e9),U(this,e,t,2)},C.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=P||i>=k?y(d(r.c),i):g(d(r.c),i,"0"):10===e&&F?t=g(d((r=q(new B(r),O+i+1,D)).c),r.e,"0"):(b(e,2,R.length,"Base"),t=_(g(d(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},C.valueOf=C.toJSON=function(){return W(this)},C._isBigNumber=!0,null!=t&&B.set(t),B}()).default=o.BigNumber=o,void 0!==(n=(function(){return o}).call(t,r,t,e))&&(e.exports=n)}(0)},58005:function(e){"use strict";var t="%[a-f0-9]{2}",r=RegExp("("+t+")|([^%]+?)","gi"),n=RegExp("("+t+")+","gi");e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},i=n.exec(e);i;){try{t[i[0]]=decodeURIComponent(i[0])}catch(e){var o=function(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=(function e(t,r){try{return[decodeURIComponent(t.join(""))]}catch(e){}if(1===t.length)return t;r=r||1;var n=t.slice(0,r),i=t.slice(r);return Array.prototype.concat.call([],e(n),e(i))})(t,n).join("")).match(r)||[];return e}}(i[0]);o!==i[0]&&(t[i[0]]=o)}i=n.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var u=a[s];e=e.replace(RegExp(u,"g"),t[u])}return e}(e)}}},69954:function(e,t,r){"use strict";r.d(t,{qY:function(){return d}});var n=r(25566),i=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},o=function(e,t,r){this.name=e,this.version=t,this.os=r,this.type="browser"},a=function(e){this.version=e,this.type="node",this.name="node",this.os=n.platform},s=function(e,t,r,n){this.name=e,this.version=t,this.os=r,this.bot=n,this.type="bot-device"},u=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},c=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},l=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,f=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],h=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(e){return e?p(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new c:"undefined"!=typeof navigator?p(navigator.userAgent):void 0!==n&&n.version?new a(n.version.slice(1)):null}function p(e){var t=""!==e&&f.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var o=i.exec(e);return!!o&&[n,o]},!1);if(!t)return null;var r=t[0],n=t[1];if("searchbot"===r)return new u;var a=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);a?a.length<3&&(a=i(i([],a,!0),function(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}(3-a.length),!0)):a=[];var c=a.join("."),d=function(e){for(var t=0,r=h.length;t<r;t++){var n=h[t],i=n[0];if(n[1].exec(e))return i}return null}(e),p=l.exec(e);return p&&p[1]?new s(r,c,d,p[1]):new o(r,c,d)}},78343:function(e){"use strict";var t={single_source_shortest_paths:function(e,r,n){var i,o,a,s,u,c,l,f={},h={};h[r]=0;var d=t.PriorityQueue.make();for(d.push(r,0);!d.empty();)for(a in o=(i=d.pop()).value,s=i.cost,u=e[o]||{})u.hasOwnProperty(a)&&(c=s+u[a],l=h[a],(void 0===h[a]||l>c)&&(h[a]=c,d.push(a,c),f[a]=o));if(void 0!==n&&void 0===h[n])throw Error(["Could not find a path from ",r," to ",n,"."].join(""));return f},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t;n;)r.push(n),e[n],n=e[n];return r.reverse(),r},find_path:function(e,r,n){var i=t.single_source_shortest_paths(e,r,n);return t.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var r,n=t.PriorityQueue,i={};for(r in e=e||{},n)n.hasOwnProperty(r)&&(i[r]=n[r]);return i.queue=[],i.sorter=e.sorter||n.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},53216:function(e){"use strict";e.exports=function(e){for(var t=[],r=e.length,n=0;n<r;n++){var i=e.charCodeAt(n);if(i>=55296&&i<=56319&&r>n+1){var o=e.charCodeAt(n+1);o>=56320&&o<=57343&&(i=(i-55296)*1024+o-56320+65536,n+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(63&i|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128);continue}if(i>=65536&&i<=1114111){t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(63&i|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}},28729:function(e){"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var s=new i(n,o||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=Array(o);i<o;i++)a[i]=n[i].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,i,o,a){var s=r?r+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,i),!0;case 5:return l.fn.call(l.context,t,n,i,o),!0;case 6:return l.fn.call(l.context,t,n,i,o,a),!0}for(c=1,u=Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var h,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,n);break;case 4:l[c].fn.call(l[c].context,t,n,i);break;default:if(!u)for(h=1,u=Array(f-1);h<f;h++)u[h-1]=arguments[h];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||n&&s.context!==n||a(this,o);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||i&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s},61820:function(e){"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var a=n[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(r[a]=s)}return r}},85828:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.I18n=void 0;let o=i(r(98614)),a=i(r(1181)),s=i(r(12410)),u=i(r(96434)),c=r(69654),l=r(18544),f=r(63248),h=r(30730),d={defaultLocale:"en",availableLocales:["en"],locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,enableFallback:!1,missingBehavior:"message",missingTranslationPrefix:"",missingPlaceholder:(e,t)=>`[missing "${t}" value]`,nullPlaceholder:(e,t,r,n)=>e.missingPlaceholder(e,t,r,n),transformKey:e=>e};class p{constructor(e={},t={}){this._locale=d.locale,this._defaultLocale=d.defaultLocale,this._version=0,this.onChangeHandlers=[],this.translations={},this.availableLocales=[],this.t=this.translate,this.p=this.pluralize,this.l=this.localize,this.distanceOfTimeInWords=this.timeAgoInWords;let{locale:r,enableFallback:n,missingBehavior:i,missingTranslationPrefix:o,missingPlaceholder:a,nullPlaceholder:s,defaultLocale:u,defaultSeparator:p,placeholder:b,transformKey:m}=Object.assign(Object.assign({},d),t);this.locale=r,this.defaultLocale=u,this.defaultSeparator=p,this.enableFallback=n,this.locale=r,this.missingBehavior=i,this.missingTranslationPrefix=o,this.missingPlaceholder=a,this.nullPlaceholder=s,this.placeholder=b,this.pluralization=new l.Pluralization(this),this.locales=new c.Locales(this),this.missingTranslation=new f.MissingTranslation(this),this.transformKey=m,this.interpolate=h.interpolate,this.store(e)}store(e){(0,h.propertyFlatList)(e).forEach(t=>(0,u.default)(this.translations,t,(0,o.default)(e,t),Object)),this.hasChanged()}get locale(){return this._locale||this.defaultLocale||"en"}set locale(e){if("string"!=typeof e)throw Error(`Expected newLocale to be a string; got ${(0,h.inferType)(e)}`);let t=this._locale!==e;this._locale=e,t&&this.hasChanged()}get defaultLocale(){return this._defaultLocale||"en"}set defaultLocale(e){if("string"!=typeof e)throw Error(`Expected newLocale to be a string; got ${(0,h.inferType)(e)}`);let t=this._defaultLocale!==e;this._defaultLocale=e,t&&this.hasChanged()}translate(e,t){let r;return(t=Object.assign({},t),(0,h.createTranslationOptions)(this,e,t).some(e=>((0,h.isSet)(e.scope)?r=(0,h.lookup)(this,e.scope,t):(0,h.isSet)(e.message)&&(r=e.message),null!=r)))?("string"==typeof r?r=this.interpolate(this,r,t):"object"==typeof r&&r&&(0,h.isSet)(t.count)&&(r=(0,h.pluralize)({i18n:this,count:t.count||0,scope:r,options:t,baseScope:(0,h.getFullScope)(this,e,t)})),t&&r instanceof Array&&(r=r.map(e=>"string"==typeof e?(0,h.interpolate)(this,e,t):e)),r):this.missingTranslation.get(e,t)}pluralize(e,t,r){return(0,h.pluralize)({i18n:this,count:e,scope:t,options:Object.assign({},r),baseScope:(0,h.getFullScope)(this,t,null!=r?r:{})})}localize(e,t,r){if(r=Object.assign({},r),null==t)return"";switch(e){case"currency":return this.numberToCurrency(t);case"number":return(0,h.formatNumber)(t,Object.assign({delimiter:",",precision:3,separator:".",significant:!1,stripInsignificantZeros:!1},(0,h.lookup)(this,"number.format")));case"percentage":return this.numberToPercentage(t);default:{let n;return n=e.match(/^(date|time)/)?this.toTime(e,t):t.toString(),(0,h.interpolate)(this,n,r)}}}toTime(e,t){let r=(0,h.parseDate)(t),n=(0,h.lookup)(this,e);return r.toString().match(/invalid/i)||!n?r.toString():this.strftime(r,n)}numberToCurrency(e,t={}){return(0,h.formatNumber)(e,Object.assign(Object.assign(Object.assign({delimiter:",",format:"%u%n",precision:2,separator:".",significant:!1,stripInsignificantZeros:!1,unit:"$"},(0,h.camelCaseKeys)(this.get("number.format"))),(0,h.camelCaseKeys)(this.get("number.currency.format"))),t))}numberToPercentage(e,t={}){return(0,h.formatNumber)(e,Object.assign(Object.assign(Object.assign({delimiter:"",format:"%n%",precision:3,stripInsignificantZeros:!1,separator:".",significant:!1},(0,h.camelCaseKeys)(this.get("number.format"))),(0,h.camelCaseKeys)(this.get("number.percentage.format"))),t))}numberToHumanSize(e,t={}){return(0,h.numberToHumanSize)(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",precision:3,significant:!0,stripInsignificantZeros:!0,units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},(0,h.camelCaseKeys)(this.get("number.human.format"))),(0,h.camelCaseKeys)(this.get("number.human.storage_units"))),t))}numberToHuman(e,t={}){return(0,h.numberToHuman)(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",separator:".",precision:3,significant:!0,stripInsignificantZeros:!0,format:"%n %u",roundMode:"default",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},(0,h.camelCaseKeys)(this.get("number.human.format"))),(0,h.camelCaseKeys)(this.get("number.human.decimal_units"))),t))}numberToRounded(e,t){return(0,h.formatNumber)(e,Object.assign({unit:"",precision:3,significant:!1,separator:".",delimiter:"",stripInsignificantZeros:!1},t))}numberToDelimited(e,t={}){return(0,h.numberToDelimited)(e,Object.assign({delimiterPattern:/(\d)(?=(\d\d\d)+(?!\d))/g,delimiter:",",separator:"."},t))}withLocale(e,t){return n(this,void 0,void 0,function*(){let r=this.locale;try{this.locale=e,yield t()}finally{this.locale=r}})}strftime(e,t,r={}){return(0,h.strftime)(e,t,Object.assign(Object.assign(Object.assign({},(0,h.camelCaseKeys)((0,h.lookup)(this,"date"))),{meridian:{am:(0,h.lookup)(this,"time.am")||"AM",pm:(0,h.lookup)(this,"time.pm")||"PM"}}),r))}update(e,t,r={strict:!1}){let n;if(r.strict&&!(0,a.default)(this.translations,e))throw Error(`The path "${e}" is not currently defined`);let i=(0,o.default)(this.translations,e),u=(0,h.inferType)(i),c=(0,h.inferType)(t);if(r.strict&&u!==c)throw Error(`The current type for "${e}" is "${u}", but you're trying to override it with "${c}"`);n="object"===c?Object.assign(Object.assign({},i),t):t,(0,s.default)(this.translations,e,n),this.hasChanged()}toSentence(e,t={}){let{wordsConnector:r,twoWordsConnector:n,lastWordConnector:i}=Object.assign(Object.assign({wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},(0,h.camelCaseKeys)((0,h.lookup)(this,"support.array"))),t),o=e.length;switch(o){case 0:return"";case 1:return`${e[0]}`;case 2:return e.join(n);default:return[e.slice(0,o-1).join(r),i,e[o-1]].join("")}}timeAgoInWords(e,t,r={}){return(0,h.timeAgoInWords)(this,e,t,r)}onChange(e){return this.onChangeHandlers.push(e),()=>{this.onChangeHandlers.splice(this.onChangeHandlers.indexOf(e),1)}}get version(){return this._version}formatNumber(e,t){return(0,h.formatNumber)(e,t)}get(e){return(0,h.lookup)(this,e)}runCallbacks(){this.onChangeHandlers.forEach(e=>e(this))}hasChanged(){this._version+=1,this.runCallbacks()}}t.I18n=p},69654:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Locales=t.defaultLocaleResolver=void 0;let i=n(r(48911));t.defaultLocaleResolver=(e,t)=>{let r=[],n=[];return r.push(t),t||r.push(e.locale),e.enableFallback&&r.push(e.defaultLocale),r.filter(Boolean).map(e=>e.toString()).forEach(function(t){if(n.includes(t)||n.push(t),!e.enableFallback)return;let r=t.split("-");3===r.length&&n.push(`${r[0]}-${r[1]}`),n.push(r[0])}),(0,i.default)(n)};class o{constructor(e){this.i18n=e,this.registry={},this.register("default",t.defaultLocaleResolver)}register(e,t){if("function"!=typeof t){let e=t;t=()=>e}this.registry[e]=t}get(e){let t=this.registry[e]||this.registry[this.i18n.locale]||this.registry.default;return"function"==typeof t&&(t=t(this.i18n,e)),t instanceof Array||(t=[t]),t}}t.Locales=o},63248:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingTranslation=t.errorStrategy=t.messageStrategy=t.guessStrategy=void 0;let n=r(30730);t.guessStrategy=function(e,t){t instanceof Array&&(t=t.join(e.defaultSeparator));let r=t.split(e.defaultSeparator).slice(-1)[0];return e.missingTranslationPrefix+r.replace("_"," ").replace(/([a-z])([A-Z])/g,(e,t,r)=>`${t} ${r.toLowerCase()}`)},t.messageStrategy=(e,t,r)=>{let i=(0,n.getFullScope)(e,t,r),o="locale"in r?r.locale:e.locale,a=(0,n.inferType)(o),s=["string"==a?o:a,i].join(e.defaultSeparator);return`[missing "${s}" translation]`},t.errorStrategy=(e,t,r)=>{let i=(0,n.getFullScope)(e,t,r),o=[e.locale,i].join(e.defaultSeparator);throw Error(`Missing translation: ${o}`)};class i{constructor(e){this.i18n=e,this.registry={},this.register("guess",t.guessStrategy),this.register("message",t.messageStrategy),this.register("error",t.errorStrategy)}register(e,t){this.registry[e]=t}get(e,t){var r;return this.registry[null!==(r=t.missingBehavior)&&void 0!==r?r:this.i18n.missingBehavior](this.i18n,e,t)}}t.MissingTranslation=i},18544:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pluralization=t.defaultPluralizer=t.useMakePlural=void 0;let n=r(18025);function i({pluralizer:e,includeZero:t=!0,ordinal:r=!1}){return function(n,i){return[t&&0===i?"zero":"",e(i,r)].filter(Boolean)}}t.useMakePlural=i,t.defaultPluralizer=i({pluralizer:n.en,includeZero:!0});class o{constructor(e){this.i18n=e,this.registry={},this.register("default",t.defaultPluralizer)}register(e,t){this.registry[e]=t}get(e){return this.registry[e]||this.registry[this.i18n.locale]||this.registry.default}}t.Pluralization=o},89309:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.camelCaseKeys=void 0;let i=n(r(72140));t.camelCaseKeys=function(e){return e?Object.keys(e).reduce((t,r)=>(t[(0,i.default)(r)]=e[r],t),{}):{}}},72454:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTranslationOptions=void 0;let n=r(95523);t.createTranslationOptions=function(e,t,r){let i=[{scope:t}];if((0,n.isSet)(r.defaults)&&(i=i.concat(r.defaults)),(0,n.isSet)(r.defaultValue)){let n="function"==typeof r.defaultValue?r.defaultValue(e,t,r):r.defaultValue;i.push({message:n}),delete r.defaultValue}return i}},35638:function(e,t,r){"use strict";var n,i,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.expandRoundMode=void 0;let a=o(r(65209));(n=i||(i={}))[n.up=a.default.ROUND_UP]="up",n[n.down=a.default.ROUND_DOWN]="down",n[n.truncate=a.default.ROUND_DOWN]="truncate",n[n.halfUp=a.default.ROUND_HALF_UP]="halfUp",n[n.default=a.default.ROUND_HALF_UP]="default",n[n.halfDown=a.default.ROUND_HALF_DOWN]="halfDown",n[n.halfEven=a.default.ROUND_HALF_EVEN]="halfEven",n[n.banker=a.default.ROUND_HALF_EVEN]="banker",n[n.ceiling=a.default.ROUND_CEIL]="ceiling",n[n.ceil=a.default.ROUND_CEIL]="ceil",n[n.floor=a.default.ROUND_FLOOR]="floor",t.expandRoundMode=function(e){var t;return null!==(t=i[e])&&void 0!==t?t:i.default}},15538:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.formatNumber=void 0;let i=n(r(65209)),o=n(r(56719)),a=r(91549);t.formatNumber=function(e,t){var r,n,s;let u;let c=new i.default(e);if(t.raise&&!c.isFinite())throw Error(`"${e}" is not a valid numeric value`);let l=(0,a.roundNumber)(c,t),f=new i.default(l),h=f.lt(0),d=f.isZero(),[p,b]=l.split("."),m=[],y=null!==(r=t.format)&&void 0!==r?r:"%n",g=null!==(n=t.negativeFormat)&&void 0!==n?n:`-${y}`;for(p=p.replace("-","");p.length>0;)m.unshift(p.substr(Math.max(0,p.length-3),3)),p=p.substr(0,p.length-3);return p=m.join(""),u=m.join(t.delimiter),b=t.significant?function({significand:e,whole:t,precision:r}){if("0"===t||null===r)return e;let n=Math.max(0,r-t.length);return(null!=e?e:"").substr(0,n)}({whole:p,significand:b,precision:t.precision}):null!=b?b:(0,o.default)("0",null!==(s=t.precision)&&void 0!==s?s:0),t.stripInsignificantZeros&&b&&(b=b.replace(/0+$/,"")),c.isNaN()&&(u=e.toString()),b&&c.isFinite()&&(u+=(t.separator||".")+b),function(e,{formattedNumber:t,unit:r}){return e.replace("%n",t).replace("%u",r)}(h&&!d?g:y,{formattedNumber:u,unit:t.unit})}},64507:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFullScope=void 0,t.getFullScope=function(e,t,r){let n="";return(t instanceof String||"string"==typeof t)&&(n=t),t instanceof Array&&(n=t.join(e.defaultSeparator)),r.scope&&(n=[r.scope,n].join(e.defaultSeparator)),n}},30730:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeAgoInWords=t.strftime=t.roundNumber=t.propertyFlatList=t.pluralize=t.parseDate=t.numberToHumanSize=t.numberToHuman=t.numberToDelimited=t.lookup=t.isSet=t.interpolate=t.inferType=t.getFullScope=t.formatNumber=t.expandRoundMode=t.createTranslationOptions=t.camelCaseKeys=void 0;var n=r(89309);Object.defineProperty(t,"camelCaseKeys",{enumerable:!0,get:function(){return n.camelCaseKeys}});var i=r(72454);Object.defineProperty(t,"createTranslationOptions",{enumerable:!0,get:function(){return i.createTranslationOptions}});var o=r(35638);Object.defineProperty(t,"expandRoundMode",{enumerable:!0,get:function(){return o.expandRoundMode}});var a=r(15538);Object.defineProperty(t,"formatNumber",{enumerable:!0,get:function(){return a.formatNumber}});var s=r(64507);Object.defineProperty(t,"getFullScope",{enumerable:!0,get:function(){return s.getFullScope}});var u=r(70161);Object.defineProperty(t,"inferType",{enumerable:!0,get:function(){return u.inferType}});var c=r(38591);Object.defineProperty(t,"interpolate",{enumerable:!0,get:function(){return c.interpolate}});var l=r(95523);Object.defineProperty(t,"isSet",{enumerable:!0,get:function(){return l.isSet}});var f=r(55156);Object.defineProperty(t,"lookup",{enumerable:!0,get:function(){return f.lookup}});var h=r(51757);Object.defineProperty(t,"numberToDelimited",{enumerable:!0,get:function(){return h.numberToDelimited}});var d=r(83938);Object.defineProperty(t,"numberToHuman",{enumerable:!0,get:function(){return d.numberToHuman}});var p=r(82587);Object.defineProperty(t,"numberToHumanSize",{enumerable:!0,get:function(){return p.numberToHumanSize}});var b=r(10428);Object.defineProperty(t,"parseDate",{enumerable:!0,get:function(){return b.parseDate}});var m=r(3443);Object.defineProperty(t,"pluralize",{enumerable:!0,get:function(){return m.pluralize}});var y=r(6074);Object.defineProperty(t,"propertyFlatList",{enumerable:!0,get:function(){return y.propertyFlatList}});var g=r(91549);Object.defineProperty(t,"roundNumber",{enumerable:!0,get:function(){return g.roundNumber}});var v=r(3806);Object.defineProperty(t,"strftime",{enumerable:!0,get:function(){return v.strftime}});var w=r(95333);Object.defineProperty(t,"timeAgoInWords",{enumerable:!0,get:function(){return w.timeAgoInWords}})},70161:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inferType=void 0,t.inferType=function(e){var t,r;if(null===e)return"null";let n=typeof e;return"object"!==n?n:(null===(r=null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.name)||void 0===r?void 0:r.toLowerCase())||"object"}},38591:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interpolate=void 0;let n=r(95523);t.interpolate=function(e,t,r){r=Object.keys(r).reduce((t,n)=>(t[e.transformKey(n)]=r[n],t),{});let i=t.match(e.placeholder);if(!i)return t;for(;i.length;){let o;let a=i.shift(),s=a.replace(e.placeholder,"$1");o=(0,n.isSet)(r[s])?r[s].toString().replace(/\$/gm,"_#$#_"):s in r?e.nullPlaceholder(e,a,t,r):e.missingPlaceholder(e,a,t,r);let u=new RegExp(a.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"));t=t.replace(u,o)}return t.replace(/_#\$#_/g,"$")}},95523:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSet=void 0,t.isSet=function(e){return null!=e}},55156:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.lookup=void 0;let i=n(r(98614)),o=r(95523),a=r(64507),s=r(70161);t.lookup=function(e,t,r={}){let n="locale"in(r=Object.assign({},r))?r.locale:e.locale,u=(0,s.inferType)(n),c=e.locales.get("string"===u?n:typeof n).slice();t=(0,a.getFullScope)(e,t,r).split(e.defaultSeparator).map(t=>e.transformKey(t)).join(".");let l=c.map(r=>(0,i.default)(e.translations,[r,t].join(".")));return l.push(r.defaultValue),l.find(e=>(0,o.isSet)(e))}},51757:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.numberToDelimited=void 0;let i=n(r(65209));t.numberToDelimited=function(e,t){let r=new i.default(e);if(!r.isFinite())return e.toString();if(!t.delimiterPattern.global)throw Error(`options.delimiterPattern must be a global regular expression; received ${t.delimiterPattern}`);let[n,o]=r.toString().split(".");return[n=n.replace(t.delimiterPattern,e=>`${e}${t.delimiter}`),o].filter(Boolean).join(t.separator)}},83938:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.numberToHuman=void 0;let i=n(r(65209)),o=n(r(51864)),a=n(r(37236)),s=r(64507),u=r(55156),c=r(91549),l=r(70161),f={0:"unit",1:"ten",2:"hundred",3:"thousand",6:"million",9:"billion",12:"trillion",15:"quadrillion","-1":"deci","-2":"centi","-3":"mili","-6":"micro","-9":"nano","-12":"pico","-15":"femto"},h=(0,a.default)(Object.values(f),Object.keys(f).map(e=>parseInt(e,10)));t.numberToHuman=function(e,t,r){let n;let a={roundMode:r.roundMode,precision:r.precision,significant:r.significant};if("string"===(0,l.inferType)(r.units)){let t=r.units;if(!(n=(0,u.lookup)(e,t)))throw Error(`The scope "${e.locale}${e.defaultSeparator}${(0,s.getFullScope)(e,t,{})}" couldn't be found`)}else n=r.units;let d=(0,c.roundNumber)(new i.default(t),a),p=e=>(0,o.default)(Object.keys(e).map(e=>h[e]),e=>-1*e),b=((e,t)=>{let r=e.isZero()?0:Math.floor(Math.log10(e.abs().toNumber()));return p(t).find(e=>r>=e)||0})(new i.default(d),n),m=n[f[b.toString()]]||"";if(d=(0,c.roundNumber)(new i.default(d).div(Math.pow(10,b)),a),r.stripInsignificantZeros){let[e,t]=d.split(".");t=(t||"").replace(/0+$/,""),d=e,t&&(d+=`${r.separator}${t}`)}return r.format.replace("%n",d||"0").replace("%u",m).trim()}},82587:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.numberToHumanSize=void 0;let i=n(r(65209)),o=r(91549),a=r(35638),s=["byte","kb","mb","gb","tb","pb","eb"];t.numberToHumanSize=function(e,t,r){let n;let u=(0,a.expandRoundMode)(r.roundMode),c=new i.default(t).abs(),l=c.lt(1024),f=Math.min(s.length-1,new i.default(Math.log(c.toNumber())).div(Math.log(1024)).integerValue(i.default.ROUND_DOWN).toNumber());n=l?c.integerValue():new i.default((0,o.roundNumber)(c.div(Math.pow(1024,f)),{significant:r.significant,precision:r.precision,roundMode:r.roundMode}));let h=e.translate("number.human.storage_units.format",{defaultValue:"%n %u"}),d=e.translate((e=>{let t=l?"byte":e[f];return`number.human.storage_units.units.${t}`})(s),{count:c.integerValue().toNumber()}),p=n.toFixed(r.precision,u);return r.stripInsignificantZeros&&(p=p.replace(/(\..*?)0+$/,"$1").replace(/\.$/,"")),h.replace("%n",p).replace("%u",d)}},10428:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDate=void 0,t.parseDate=function(e){if(e instanceof Date)return e;if("number"==typeof e){let t=new Date;return t.setTime(e),t}let t=new String(e).match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})(?:[.,](\d{1,3}))?)?(Z|\+00:?00)?/);if(t){let e=t.slice(1,8).map(e=>parseInt(e,10)||0);e[1]-=1;let[r,n,i,o,a,s,u]=e;return t[8]?new Date(Date.UTC(r,n,i,o,a,s,u)):new Date(r,n,i,o,a,s,u)}e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)&&new Date().setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" ")));let r=new Date;return r.setTime(Date.parse(e)),r}},3443:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluralize=void 0;let n=r(95523),i=r(55156);t.pluralize=function({i18n:e,count:t,scope:r,options:o,baseScope:a}){let s,u;if(o=Object.assign({},o),!(s="object"==typeof r&&r?r:(0,i.lookup)(e,r,o)))return e.missingTranslation.get(r,o);let c=e.pluralization.get(o.locale)(e,t),l=[];for(;c.length;){let e=c.shift();if((0,n.isSet)(s[e])){u=s[e];break}l.push(e)}return(0,n.isSet)(u)?(o.count=t,e.interpolate(e,u,o)):e.missingTranslation.get(a.split(e.defaultSeparator).concat([l[0]]),o)}},6074:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.propertyFlatList=void 0;let i=n(r(36905)),o=n(r(32298));class a{constructor(e){this.target=e}call(){let e=(0,o.default)(Object.keys(this.target).map(e=>this.compute(this.target[e],e)));return e.sort(),e}compute(e,t){return!Array.isArray(e)&&(0,i.default)(e)?Object.keys(e).map(r=>this.compute(e[r],`${t}.${r}`)):t}}t.propertyFlatList=function(e){return new a(e).call()}},91549:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.roundNumber=void 0;let i=n(r(65209)),o=r(35638);t.roundNumber=function(e,t){let r=function(e,{precision:t,significant:r}){return r&&null!==t&&t>0?t-(e.isZero()?1:Math.floor(Math.log10(e.abs().toNumber())+1)):t}(e,t);if(null===r)return e.toString();let n=(0,o.expandRoundMode)(t.roundMode);if(r>=0)return e.toFixed(r,n);let a=Math.pow(10,Math.abs(r));return(e=new i.default(e.div(a).toFixed(0,n)).times(a)).toString()}},3806:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.strftime=void 0;let r={meridian:{am:"AM",pm:"PM"},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthNames:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonthNames:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};t.strftime=function(e,t,n={}){let{abbrDayNames:i,dayNames:o,abbrMonthNames:a,monthNames:s,meridian:u}=Object.assign(Object.assign({},r),n);if(isNaN(e.getTime()))throw Error("strftime() requires a valid date object, but received an invalid date.");let c=e.getDay(),l=e.getDate(),f=e.getFullYear(),h=e.getMonth()+1,d=e.getHours(),p=d,b=d>11?"pm":"am",m=e.getSeconds(),y=e.getMinutes(),g=e.getTimezoneOffset(),v=Math.floor(Math.abs(g/60)),w=Math.abs(g)-60*v,E=(g>0?"-":"+")+(v.toString().length<2?"0"+v:v)+(w.toString().length<2?"0"+w:w);return p>12?p-=12:0===p&&(p=12),t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%a",i[c])).replace("%A",o[c])).replace("%b",a[h])).replace("%B",s[h])).replace("%d",l.toString().padStart(2,"0"))).replace("%e",l.toString())).replace("%-d",l.toString())).replace("%H",d.toString().padStart(2,"0"))).replace("%-H",d.toString())).replace("%k",d.toString())).replace("%I",p.toString().padStart(2,"0"))).replace("%-I",p.toString())).replace("%l",p.toString())).replace("%m",h.toString().padStart(2,"0"))).replace("%-m",h.toString())).replace("%M",y.toString().padStart(2,"0"))).replace("%-M",y.toString())).replace("%p",u[b])).replace("%P",u[b].toLowerCase())).replace("%S",m.toString().padStart(2,"0"))).replace("%-S",m.toString())).replace("%w",c.toString())).replace("%y",f.toString().padStart(2,"0").substr(-2))).replace("%-y",f.toString().padStart(2,"0").substr(-2).replace(/^0+/,""))).replace("%Y",f.toString())).replace(/%z/i,E)}},95333:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.timeAgoInWords=void 0;let i=n(r(4943)),o=r(10428),a=(e,t,r)=>r>=e&&r<=t;t.timeAgoInWords=function(e,t,r,n={}){let s=n.scope||"datetime.distance_in_words",u=(t,r=0)=>e.t(t,{count:r,scope:s});t=(0,o.parseDate)(t),r=(0,o.parseDate)(r);let c=t.getTime()/1e3,l=r.getTime()/1e3;c>l&&([t,r,c,l]=[r,t,l,c]);let f=Math.round(l-c),h=Math.round((l-c)/60),d=h/60,p=Math.round(h/60),b=Math.round(d/24);if(a(0,1,h))return n.includeSeconds?a(0,4,f)?u("less_than_x_seconds",5):a(5,9,f)?u("less_than_x_seconds",10):a(10,19,f)?u("less_than_x_seconds",20):a(20,39,f)?u("half_a_minute"):u(a(40,59,f)?"less_than_x_minutes":"x_minutes",1):0===h?u("less_than_x_minutes",1):u("x_minutes",h);if(a(2,44,h))return u("x_minutes",h);if(a(45,89,h))return u("about_x_hours",1);if(a(90,1439,h))return u("about_x_hours",p);if(a(1440,2519,h))return u("x_days",1);if(a(2520,43199,h))return u("x_days",b);if(a(43200,86399,h))return u("about_x_months",Math.round(h/43200));if(a(86400,525599,h))return u("x_months",Math.round(b/30));let m=t.getFullYear();t.getMonth()+1>=3&&(m+=1);let y=r.getFullYear();r.getMonth()+1<3&&(y-=1);let g=h-1440*(m>y?0:(0,i.default)(m,y).filter(e=>1==new Date(e,1,29).getMonth()).length),v=Math.trunc(g/525600),w=parseFloat((g/525600-v).toPrecision(3));return w<.25?u("about_x_years",v):w<.75?u("over_x_years",v):u("almost_x_years",v+1)}},11043:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.useMakePlural=t.Pluralization=t.MissingTranslation=t.Locales=t.I18n=void 0;var o=r(85828);Object.defineProperty(t,"I18n",{enumerable:!0,get:function(){return o.I18n}});var a=r(69654);Object.defineProperty(t,"Locales",{enumerable:!0,get:function(){return a.Locales}});var s=r(63248);Object.defineProperty(t,"MissingTranslation",{enumerable:!0,get:function(){return s.MissingTranslation}});var u=r(18544);Object.defineProperty(t,"Pluralization",{enumerable:!0,get:function(){return u.Pluralization}}),Object.defineProperty(t,"useMakePlural",{enumerable:!0,get:function(){return u.useMakePlural}}),i(r(90035),t)},90035:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},12666:function(e,t,r){var n=r(2603)(r(42242),"DataView");e.exports=n},45464:function(e,t,r){var n=r(52644),i=r(69334),o=r(31696),a=r(51553),s=r(59789);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},62096:function(e,t,r){var n=r(57767),i=r(34805),o=r(70861),a=r(95153),s=r(74441);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},35956:function(e,t,r){var n=r(2603)(r(42242),"Map");e.exports=n},19612:function(e,t,r){var n=r(3310),i=r(29530),o=r(14465),a=r(70338),s=r(19610);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},75710:function(e,t,r){var n=r(2603)(r(42242),"Promise");e.exports=n},88921:function(e,t,r){var n=r(2603)(r(42242),"Set");e.exports=n},46427:function(e,t,r){var n=r(19612),i=r(566),o=r(42884);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},98624:function(e,t,r){var n=r(62096),i=r(40464),o=r(67473),a=r(95563),s=r(55518),u=r(5319);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},79029:function(e,t,r){var n=r(42242).Symbol;e.exports=n},48709:function(e,t,r){var n=r(42242).Uint8Array;e.exports=n},3449:function(e,t,r){var n=r(2603)(r(42242),"WeakMap");e.exports=n},2412:function(e){e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},14822:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}},27941:function(e,t,r){var n=r(31706);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},61128:function(e){e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}},66515:function(e,t,r){var n=r(99843),i=r(80514),o=r(12068),a=r(5067),s=r(61197),u=r(8160),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),l=!r&&i(e),f=!r&&!l&&a(e),h=!r&&!l&&!f&&u(e),d=r||l||f||h,p=d?n(e.length,String):[],b=p.length;for(var m in e)(t||c.call(e,m))&&!(d&&("length"==m||f&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,b)))&&p.push(m);return p}},9121:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},7238:function(e){e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},654:function(e){e.exports=function(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}},68795:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},30696:function(e){e.exports=function(e){return e.split("")}},11810:function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},95593:function(e,t,r){var n=r(60173),i=r(600),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];o.call(e,t)&&i(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},99345:function(e,t,r){var n=r(600);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},60173:function(e,t,r){var n=r(51674);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},33074:function(e,t,r){var n=r(73629),i=r(33835)(n);e.exports=i},71787:function(e){e.exports=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return -1}},81101:function(e,t,r){var n=r(7238),i=r(64936);e.exports=function e(t,r,o,a,s){var u=-1,c=t.length;for(o||(o=i),s||(s=[]);++u<c;){var l=t[u];r>0&&o(l)?r>1?e(l,r-1,o,a,s):n(s,l):a||(s[s.length]=l)}return s}},84228:function(e,t,r){var n=r(61244)();e.exports=n},73629:function(e,t,r){var n=r(84228),i=r(85346);e.exports=function(e,t){return e&&n(e,t,i)}},81456:function(e,t,r){var n=r(49649),i=r(97990);e.exports=function(e,t){t=n(t,e);for(var r=0,o=t.length;null!=e&&r<o;)e=e[i(t[r++])];return r&&r==o?e:void 0}},10766:function(e,t,r){var n=r(7238),i=r(12068);e.exports=function(e,t,r){var o=t(e);return i(e)?o:n(o,r(e))}},2405:function(e,t,r){var n=r(79029),i=r(35078),o=r(76276),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},20279:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,r){return null!=e&&t.call(e,r)}},16457:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},31706:function(e,t,r){var n=r(71787),i=r(49093),o=r(58665);e.exports=function(e,t,r){return t==t?o(e,t,r):n(e,i,r)}},62298:function(e,t,r){var n=r(2405),i=r(12387);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},66425:function(e,t,r){var n=r(66634),i=r(12387);e.exports=function e(t,r,o,a,s){return t===r||(null!=t&&null!=r&&(i(t)||i(r))?n(t,r,o,a,e,s):t!=t&&r!=r)}},66634:function(e,t,r){var n=r(98624),i=r(49507),o=r(10091),a=r(62080),s=r(9e3),u=r(12068),c=r(5067),l=r(8160),f="[object Arguments]",h="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,b,m,y){var g=u(e),v=u(t),w=g?h:s(e),E=v?h:s(t);w=w==f?d:w,E=E==f?d:E;var _=w==d,x=E==d,C=w==E;if(C&&c(e)){if(!c(t))return!1;g=!0,_=!1}if(C&&!_)return y||(y=new n),g||l(e)?i(e,t,r,b,m,y):o(e,t,w,r,b,m,y);if(!(1&r)){var S=_&&p.call(e,"__wrapped__"),O=x&&p.call(t,"__wrapped__");if(S||O){var D=S?e.value():e,P=O?t.value():t;return y||(y=new n),m(D,P,r,b,y)}}return!!C&&(y||(y=new n),a(e,t,r,b,m,y))}},2757:function(e,t,r){var n=r(98624),i=r(66425);e.exports=function(e,t,r,o){var a=r.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=r[a];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var l=(c=r[a])[0],f=e[l],h=c[1];if(u&&c[2]){if(void 0===f&&!(l in e))return!1}else{var d=new n;if(o)var p=o(f,h,l,e,t,d);if(!(void 0===p?i(h,f,3,o,d):p))return!1}}return!0}},49093:function(e){e.exports=function(e){return e!=e}},6431:function(e,t,r){var n=r(28293),i=r(52981),o=r(36905),a=r(68825),s=/^\[object .+?Constructor\]$/,u=Object.prototype,c=Function.prototype.toString,l=u.hasOwnProperty,f=RegExp("^"+c.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?f:s).test(a(e))}},61571:function(e,t,r){var n=r(2405),i=r(34594),o=r(12387),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[n(e)]}},57322:function(e,t,r){var n=r(78127),i=r(84643),o=r(34646),a=r(12068),s=r(8919);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):n(e):s(e)}},99605:function(e,t,r){var n=r(44097),i=r(19024),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},98829:function(e,t,r){var n=r(33074),i=r(85635);e.exports=function(e,t){var r=-1,o=i(e)?Array(e.length):[];return n(e,function(e,n,i){o[++r]=t(e,n,i)}),o}},78127:function(e,t,r){var n=r(2757),i=r(22055),o=r(88069);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},84643:function(e,t,r){var n=r(66425),i=r(98614),o=r(92556),a=r(41846),s=r(88460),u=r(88069),c=r(97990);e.exports=function(e,t){return a(e)&&s(t)?u(c(e),t):function(r){var a=i(r,e);return void 0===a&&a===t?o(r,e):n(t,a,3)}}},29651:function(e,t,r){var n=r(9121),i=r(81456),o=r(57322),a=r(98829),s=r(15493),u=r(70287),c=r(21319),l=r(34646),f=r(12068);e.exports=function(e,t,r){t=t.length?n(t,function(e){return f(e)?function(t){return i(t,1===e.length?e[0]:e)}:e}):[l];var h=-1;return t=n(t,u(o)),s(a(e,function(e,r,i){return{criteria:n(t,function(t){return t(e)}),index:++h,value:e}}),function(e,t){return c(e,t,r)})}},51357:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9266:function(e,t,r){var n=r(81456);e.exports=function(e){return function(t){return n(t,e)}}},73627:function(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},29022:function(e){var t=Math.ceil,r=Math.max;e.exports=function(e,n,i,o){for(var a=-1,s=r(t((n-e)/(i||1)),0),u=Array(s);s--;)u[o?s:++a]=e,e+=i;return u}},23974:function(e){var t=Math.floor;e.exports=function(e,r){var n="";if(!e||r<1||r>9007199254740991)return n;do r%2&&(n+=e),(r=t(r/2))&&(e+=e);while(r);return n}},97485:function(e,t,r){var n=r(34646),i=r(15046),o=r(34017);e.exports=function(e,t){return o(i(e,t,n),e+"")}},36717:function(e,t,r){var n=r(95593),i=r(49649),o=r(61197),a=r(36905),s=r(97990);e.exports=function(e,t,r,u){if(!a(e))return e;t=i(t,e);for(var c=-1,l=t.length,f=l-1,h=e;null!=h&&++c<l;){var d=s(t[c]),p=r;if("__proto__"===d||"constructor"===d||"prototype"===d)break;if(c!=f){var b=h[d];void 0===(p=u?u(b,d,h):void 0)&&(p=a(b)?b:o(t[c+1])?[]:{})}n(h,d,p),h=h[d]}return e}},32811:function(e,t,r){var n=r(63709),i=r(51674),o=r(34646),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o;e.exports=a},74932:function(e){e.exports=function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}},15493:function(e){e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},99843:function(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},13511:function(e,t,r){var n=r(79029),i=r(9121),o=r(12068),a=r(71087),s=1/0,u=n?n.prototype:void 0,c=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return c?c.call(t):"";var r=t+"";return"0"==r&&1/t==-s?"-0":r}},13225:function(e,t,r){var n=r(20121),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},70287:function(e){e.exports=function(e){return function(t){return e(t)}}},49824:function(e,t,r){var n=r(46427),i=r(27941),o=r(61128),a=r(65225),s=r(21590),u=r(97782);e.exports=function(e,t,r){var c=-1,l=i,f=e.length,h=!0,d=[],p=d;if(r)h=!1,l=o;else if(f>=200){var b=t?null:s(e);if(b)return u(b);h=!1,l=a,p=new n}else p=t?[]:d;t:for(;++c<f;){var m=e[c],y=t?t(m):m;if(m=r||0!==m?m:0,h&&y==y){for(var g=p.length;g--;)if(p[g]===y)continue t;t&&p.push(y),d.push(m)}else l(p,y,r)||(p!==d&&p.push(y),d.push(m))}return d}},74356:function(e){e.exports=function(e,t,r){for(var n=-1,i=e.length,o=t.length,a={};++n<i;){var s=n<o?t[n]:void 0;r(a,e[n],s)}return a}},65225:function(e){e.exports=function(e,t){return e.has(t)}},49649:function(e,t,r){var n=r(12068),i=r(41846),o=r(9450),a=r(60665);e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:o(a(e))}},54298:function(e,t,r){var n=r(74932);e.exports=function(e,t,r){var i=e.length;return r=void 0===r?i:r,!t&&r>=i?e:n(e,t,r)}},78829:function(e,t,r){var n=r(71087);e.exports=function(e,t){if(e!==t){var r=void 0!==e,i=null===e,o=e==e,a=n(e),s=void 0!==t,u=null===t,c=t==t,l=n(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||i&&s&&c||!r&&c||!o)return 1;if(!i&&!a&&!l&&e<t||l&&r&&o&&!i&&!a||u&&r&&o||!s&&o||!c)return -1}return 0}},21319:function(e,t,r){var n=r(78829);e.exports=function(e,t,r){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,u=r.length;++i<s;){var c=n(o[i],a[i]);if(c){if(i>=u)return c;return c*("desc"==r[i]?-1:1)}}return e.index-t.index}},51186:function(e,t,r){var n=r(42242)["__core-js_shared__"];e.exports=n},33835:function(e,t,r){var n=r(85635);e.exports=function(e,t){return function(r,i){if(null==r)return r;if(!n(r))return e(r,i);for(var o=r.length,a=t?o:-1,s=Object(r);(t?a--:++a<o)&&!1!==i(s[a],a,s););return r}}},61244:function(e){e.exports=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===r(o[u],u,o))break}return t}}},12937:function(e,t,r){var n=r(54298),i=r(57564),o=r(885),a=r(60665);e.exports=function(e){return function(t){var r=i(t=a(t))?o(t):void 0,s=r?r[0]:t.charAt(0),u=r?n(r,1).join(""):t.slice(1);return s[e]()+u}}},41413:function(e,t,r){var n=r(654),i=r(63135),o=r(92232),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(o(i(t).replace(a,"")),e,"")}}},9838:function(e,t,r){var n=r(29022),i=r(82664),o=r(28206);e.exports=function(e){return function(t,r,a){return a&&"number"!=typeof a&&i(t,r,a)&&(r=a=void 0),t=o(t),void 0===r?(r=t,t=0):r=o(r),a=void 0===a?t<r?1:-1:o(a),n(t,r,a,e)}}},21590:function(e,t,r){var n=r(88921),i=r(58660),o=r(97782),a=n&&1/o(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i;e.exports=a},60530:function(e,t,r){var n=r(73627)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"});e.exports=n},51674:function(e,t,r){var n=r(2603),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},49507:function(e,t,r){var n=r(46427),i=r(68795),o=r(65225);e.exports=function(e,t,r,a,s,u){var c=1&r,l=e.length,f=t.length;if(l!=f&&!(c&&f>l))return!1;var h=u.get(e),d=u.get(t);if(h&&d)return h==t&&d==e;var p=-1,b=!0,m=2&r?new n:void 0;for(u.set(e,t),u.set(t,e);++p<l;){var y=e[p],g=t[p];if(a)var v=c?a(g,y,p,t,e,u):a(y,g,p,e,t,u);if(void 0!==v){if(v)continue;b=!1;break}if(m){if(!i(t,function(e,t){if(!o(m,t)&&(y===e||s(y,e,r,a,u)))return m.push(t)})){b=!1;break}}else if(!(y===g||s(y,g,r,a,u))){b=!1;break}}return u.delete(e),u.delete(t),b}},10091:function(e,t,r){var n=r(79029),i=r(48709),o=r(600),a=r(49507),s=r(39883),u=r(97782),c=n?n.prototype:void 0,l=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,f,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!f(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=s;case"[object Set]":var p=1&n;if(d||(d=u),e.size!=t.size&&!p)break;var b=h.get(e);if(b)return b==t;n|=2,h.set(e,t);var m=a(d(e),d(t),n,c,f,h);return h.delete(e),m;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},62080:function(e,t,r){var n=r(40989),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,a,s){var u=1&r,c=n(e),l=c.length;if(l!=n(t).length&&!u)return!1;for(var f=l;f--;){var h=c[f];if(!(u?h in t:i.call(t,h)))return!1}var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var b=!0;s.set(e,t),s.set(t,e);for(var m=u;++f<l;){var y=e[h=c[f]],g=t[h];if(o)var v=u?o(g,y,h,t,e,s):o(y,g,h,e,t,s);if(!(void 0===v?y===g||a(y,g,r,o,s):v)){b=!1;break}m||(m="constructor"==h)}if(b&&!m){var w=e.constructor,E=t.constructor;w!=E&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof E&&E instanceof E)&&(b=!1)}return s.delete(e),s.delete(t),b}},66503:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},40989:function(e,t,r){var n=r(10766),i=r(91500),o=r(85346);e.exports=function(e){return n(e,o,i)}},32367:function(e,t,r){var n=r(23946);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},22055:function(e,t,r){var n=r(88460),i=r(85346);e.exports=function(e){for(var t=i(e),r=t.length;r--;){var o=t[r],a=e[o];t[r]=[o,a,n(a)]}return t}},2603:function(e,t,r){var n=r(6431),i=r(87747);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},35078:function(e,t,r){var n=r(79029),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},91500:function(e,t,r){var n=r(14822),i=r(12501),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:n(a(e=Object(e)),function(t){return o.call(e,t)})}:i;e.exports=s},9e3:function(e,t,r){var n=r(12666),i=r(35956),o=r(75710),a=r(88921),s=r(3449),u=r(2405),c=r(68825),l="[object Map]",f="[object Promise]",h="[object Set]",d="[object WeakMap]",p="[object DataView]",b=c(n),m=c(i),y=c(o),g=c(a),v=c(s),w=u;(n&&w(new n(new ArrayBuffer(1)))!=p||i&&w(new i)!=l||o&&w(o.resolve())!=f||a&&w(new a)!=h||s&&w(new s)!=d)&&(w=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case b:return p;case m:return l;case y:return f;case g:return h;case v:return d}return t}),e.exports=w},87747:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},35355:function(e,t,r){var n=r(49649),i=r(80514),o=r(12068),a=r(61197),s=r(34594),u=r(97990);e.exports=function(e,t,r){t=n(t,e);for(var c=-1,l=t.length,f=!1;++c<l;){var h=u(t[c]);if(!(f=null!=e&&r(e,h)))break;e=e[h]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&s(l)&&a(h,l)&&(o(e)||i(e))}},57564:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},27016:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},52644:function(e,t,r){var n=r(28749);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},69334:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},31696:function(e,t,r){var n=r(28749),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},51553:function(e,t,r){var n=r(28749),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},59789:function(e,t,r){var n=r(28749);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},64936:function(e,t,r){var n=r(79029),i=r(80514),o=r(12068),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},61197:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},82664:function(e,t,r){var n=r(600),i=r(85635),o=r(61197),a=r(36905);e.exports=function(e,t,r){if(!a(r))return!1;var s=typeof t;return("number"==s?!!(i(r)&&o(t,r.length)):"string"==s&&t in r)&&n(r[t],e)}},41846:function(e,t,r){var n=r(12068),i=r(71087),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},23946:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},52981:function(e,t,r){var n,i=r(51186),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},44097:function(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},88460:function(e,t,r){var n=r(36905);e.exports=function(e){return e==e&&!n(e)}},57767:function(e){e.exports=function(){this.__data__=[],this.size=0}},34805:function(e,t,r){var n=r(99345),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},70861:function(e,t,r){var n=r(99345);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},95153:function(e,t,r){var n=r(99345);e.exports=function(e){return n(this.__data__,e)>-1}},74441:function(e,t,r){var n=r(99345);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},3310:function(e,t,r){var n=r(45464),i=r(62096),o=r(35956);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},29530:function(e,t,r){var n=r(32367);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},14465:function(e,t,r){var n=r(32367);e.exports=function(e){return n(this,e).get(e)}},70338:function(e,t,r){var n=r(32367);e.exports=function(e){return n(this,e).has(e)}},19610:function(e,t,r){var n=r(32367);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},39883:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},88069:function(e){e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},64670:function(e,t,r){var n=r(93023);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},28749:function(e,t,r){var n=r(2603)(Object,"create");e.exports=n},19024:function(e,t,r){var n=r(72184)(Object.keys,Object);e.exports=n},23524:function(e,t,r){e=r.nmd(e);var n=r(66503),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},76276:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},72184:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},15046:function(e,t,r){var n=r(2412),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a<s;)u[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=r(u),n(e,this,c)}}},42242:function(e,t,r){var n=r(66503),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},566:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},42884:function(e){e.exports=function(e){return this.__data__.has(e)}},97782:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},34017:function(e,t,r){var n=r(32811),i=r(58546)(n);e.exports=i},58546:function(e){var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var i=t(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},40464:function(e,t,r){var n=r(62096);e.exports=function(){this.__data__=new n,this.size=0}},67473:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},95563:function(e){e.exports=function(e){return this.__data__.get(e)}},55518:function(e){e.exports=function(e){return this.__data__.has(e)}},5319:function(e,t,r){var n=r(62096),i=r(35956),o=r(19612);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},58665:function(e){e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}},885:function(e,t,r){var n=r(30696),i=r(57564),o=r(28358);e.exports=function(e){return i(e)?o(e):n(e)}},9450:function(e,t,r){var n=r(64670),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)}),t});e.exports=a},97990:function(e,t,r){var n=r(71087),i=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},68825:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},20121:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},28358:function(e){var t="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+r+"|"+n+")?",u="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[i,o,a].join("|")+")"+u+s+")*",l=RegExp(n+"(?="+n+")|(?:"+[i+r+"?",r,o,a,"["+t+"]"].join("|")+")"+(u+s+c),"g");e.exports=function(e){return e.match(l)||[]}},11525:function(e){var t="\ud800-\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",s="["+o+"]",u="["+n+"]",c="[^"+t+o+"\\d+"+r+n+i+"]",l="(?:\ud83c[\udde6-\uddff]){2}",f="[\ud800-\udbff][\udc00-\udfff]",h="["+i+"]",d="(?:"+u+"|"+c+")",p="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",b="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",m="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",y="[\\ufe0e\\ufe0f]?",g="(?:\\u200d(?:"+["[^"+t+"]",l,f].join("|")+")"+y+m+")*",v="(?:"+["["+r+"]",l,f].join("|")+")"+(y+m+g),w=RegExp([h+"?"+u+"+"+p+"(?="+[s,h,"$"].join("|")+")","(?:"+h+"|"+c+")+"+b+"(?="+[s,h+d,"$"].join("|")+")",h+"?"+d+"+"+p,h+"+"+b,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",v].join("|"),"g");e.exports=function(e){return e.match(w)||[]}},72140:function(e,t,r){var n=r(45652),i=r(41413)(function(e,t,r){return t=t.toLowerCase(),e+(r?n(t):t)});e.exports=i},45652:function(e,t,r){var n=r(60665),i=r(21008);e.exports=function(e){return i(n(e).toLowerCase())}},63709:function(e){e.exports=function(e){return function(){return e}}},63135:function(e,t,r){var n=r(60530),i=r(60665),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,n).replace(a,"")}},600:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},32298:function(e,t,r){var n=r(81101),i=1/0;e.exports=function(e){return(null==e?0:e.length)?n(e,i):[]}},98614:function(e,t,r){var n=r(81456);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},1181:function(e,t,r){var n=r(20279),i=r(35355);e.exports=function(e,t){return null!=e&&i(e,t,n)}},92556:function(e,t,r){var n=r(16457),i=r(35355);e.exports=function(e,t){return null!=e&&i(e,t,n)}},34646:function(e){e.exports=function(e){return e}},80514:function(e,t,r){var n=r(62298),i=r(12387),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},12068:function(e){var t=Array.isArray;e.exports=t},85635:function(e,t,r){var n=r(28293),i=r(34594);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},5067:function(e,t,r){e=r.nmd(e);var n=r(42242),i=r(7644),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,u=s?s.isBuffer:void 0;e.exports=u||i},28293:function(e,t,r){var n=r(2405),i=r(36905);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},34594:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},36905:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},12387:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},71087:function(e,t,r){var n=r(2405),i=r(12387);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},8160:function(e,t,r){var n=r(61571),i=r(70287),o=r(23524),a=o&&o.isTypedArray,s=a?i(a):n;e.exports=s},85346:function(e,t,r){var n=r(66515),i=r(99605),o=r(85635);e.exports=function(e){return o(e)?n(e):i(e)}},93023:function(e,t,r){var n=r(19612);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},58660:function(e){e.exports=function(){}},8919:function(e,t,r){var n=r(51357),i=r(9266),o=r(41846),a=r(97990);e.exports=function(e){return o(e)?n(a(e)):i(e)}},4943:function(e,t,r){var n=r(9838)();e.exports=n},56719:function(e,t,r){var n=r(23974),i=r(82664),o=r(12919),a=r(60665);e.exports=function(e,t,r){return t=(r?i(e,t,r):void 0===t)?1:o(t),n(a(e),t)}},12410:function(e,t,r){var n=r(36717);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},96434:function(e,t,r){var n=r(36717);e.exports=function(e,t,r,i){return i="function"==typeof i?i:void 0,null==e?e:n(e,t,r,i)}},51864:function(e,t,r){var n=r(81101),i=r(29651),o=r(97485),a=r(82664),s=o(function(e,t){if(null==e)return[];var r=t.length;return r>1&&a(e,t[0],t[1])?t=[]:r>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,n(t,1),[])});e.exports=s},12501:function(e){e.exports=function(){return[]}},7644:function(e){e.exports=function(){return!1}},28206:function(e,t,r){var n=r(71573),i=1/0;e.exports=function(e){return e?(e=n(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},12919:function(e,t,r){var n=r(28206);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},71573:function(e,t,r){var n=r(13225),i=r(36905),o=r(71087),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=u.test(e);return r||c.test(e)?l(e.slice(2),r?2:8):s.test(e)?a:+e}},60665:function(e,t,r){var n=r(13511);e.exports=function(e){return null==e?"":n(e)}},48911:function(e,t,r){var n=r(49824);e.exports=function(e){return e&&e.length?n(e):[]}},21008:function(e,t,r){var n=r(12937)("toUpperCase");e.exports=n},92232:function(e,t,r){var n=r(11810),i=r(27016),o=r(60665),a=r(11525);e.exports=function(e,t,r){return(e=o(e),void 0===(t=r?void 0:t))?i(e)?a(e):n(e):e.match(t)||[]}},37236:function(e,t,r){var n=r(95593),i=r(74356);e.exports=function(e,t){return i(e||[],t||[],n)}},30622:function(e,t,r){"use strict";var n=r(2265),i=Symbol.for("react.element"),o=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,u={},c=null,l=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)o.call(t,n)&&!s.hasOwnProperty(n)&&(u[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===u[n]&&(u[n]=t[n]);return{$$typeof:i,type:e,key:c,ref:l,props:u,_owner:a.current}}t.jsx=u,t.jsxs=u},57437:function(e,t,r){"use strict";e.exports=r(30622)},25566:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u=[],c=!1,l=-1;function f(){c&&n&&(c=!1,n.length?u=n.concat(u):l=-1,u.length&&h())}function h(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(n=u,u=[];++l<t;)n&&n[l].run();l=-1,t=u.length}n=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new d(e,t)),1!==u.length||c||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},75298:function(e,t,r){let n=r(47363),i=r(37621),o=r(46028),a=r(12330);function s(e,t,r,o,a){let s=[].slice.call(arguments,1),u=s.length,c="function"==typeof s[u-1];if(!c&&!n())throw Error("Callback required as last argument");if(c){if(u<2)throw Error("Too few arguments provided");2===u?(a=r,r=t,t=o=void 0):3===u&&(t.getContext&&void 0===a?(a=o,o=void 0):(a=o,o=r,r=t,t=void 0))}else{if(u<1)throw Error("Too few arguments provided");return 1===u?(r=t,t=o=void 0):2!==u||t.getContext||(o=r,r=t,t=void 0),new Promise(function(n,a){try{let a=i.create(r,o);n(e(a,t,o))}catch(e){a(e)}})}try{let n=i.create(r,o);a(null,e(n,t,o))}catch(e){a(e)}}t.create=i.create,t.toCanvas=s.bind(null,o.render),t.toDataURL=s.bind(null,o.renderToDataURL),t.toString=s.bind(null,function(e,t,r){return a.render(e,r)})},47363:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},8177:function(e,t,r){let n=r(13400).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,r=n(e),i=145===r?26:2*Math.ceil((r-13)/(2*t-2)),o=[r-7];for(let e=1;e<t-1;e++)o[e]=o[e-1]-i;return o.push(6),o.reverse()},t.getPositions=function(e){let r=[],n=t.getRowColCoords(e),i=n.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)(0!==e||0!==t)&&(0!==e||t!==i-1)&&(e!==i-1||0!==t)&&r.push([n[e],n[t]]);return r}},77654:function(e,t,r){let n=r(37662),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=n.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let r=45*i.indexOf(this.data[t]);r+=i.indexOf(this.data[t+1]),e.put(r,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=o},41904:function(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){return(this.buffer[Math.floor(e/8)]>>>7-e%8&1)==1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},21091:function(e){function t(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},90690:function(e,t,r){let n=r(53216),i=r(37662);function o(e){this.mode=i.BYTE,"string"==typeof e&&(e=n(e)),this.data=new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)},e.exports=o},37039:function(e,t,r){let n=r(9406),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case n.L:return i[(e-1)*4+0];case n.M:return i[(e-1)*4+1];case n.Q:return i[(e-1)*4+2];case n.H:return i[(e-1)*4+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case n.L:return o[(e-1)*4+0];case n.M:return o[(e-1)*4+1];case n.Q:return o[(e-1)*4+2];case n.H:return o[(e-1)*4+3];default:return}}},9406:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw Error("Unknown EC Level: "+e)}}(e)}catch(e){return r}}},78241:function(e,t,r){let n=r(13400).getSymbolSize;t.getPositions=function(e){let t=n(e);return[[0,0],[t-7,0],[0,t-7]]}},50237:function(e,t,r){let n=r(13400),i=n.getBCHDigit(1335);t.getEncodedBits=function(e,t){let r=e.bit<<3|t,o=r<<10;for(;n.getBCHDigit(o)-i>=0;)o^=1335<<n.getBCHDigit(o)-i;return(r<<10|o)^21522}},51309:function(e,t){let r=new Uint8Array(512),n=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)r[t]=e,n[e]=t,256&(e<<=1)&&(e^=285);for(let e=255;e<512;e++)r[e]=r[e-255]}(),t.log=function(e){if(e<1)throw Error("log("+e+")");return n[e]},t.exp=function(e){return r[e]},t.mul=function(e,t){return 0===e||0===t?0:r[n[e]+n[t]]}},69592:function(e,t,r){let n=r(37662),i=r(13400);function o(e){this.mode=n.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=i.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");r=(r>>>8&255)*192+(255&r),e.put(r,13)}},e.exports=o},68334:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let r={N1:3,N2:3,N3:40,N4:10};t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,n=0,i=0,o=0,a=null,s=null;for(let u=0;u<t;u++){i=o=0,a=s=null;for(let c=0;c<t;c++){let t=e.get(u,c);t===a?i++:(i>=5&&(n+=r.N1+(i-5)),a=t,i=1),(t=e.get(c,u))===s?o++:(o>=5&&(n+=r.N1+(o-5)),s=t,o=1)}i>=5&&(n+=r.N1+(i-5)),o>=5&&(n+=r.N1+(o-5))}return n},t.getPenaltyN2=function(e){let t=e.size,n=0;for(let r=0;r<t-1;r++)for(let i=0;i<t-1;i++){let t=e.get(r,i)+e.get(r,i+1)+e.get(r+1,i)+e.get(r+1,i+1);(4===t||0===t)&&n++}return n*r.N2},t.getPenaltyN3=function(e){let t=e.size,n=0,i=0,o=0;for(let r=0;r<t;r++){i=o=0;for(let a=0;a<t;a++)i=i<<1&2047|e.get(r,a),a>=10&&(1488===i||93===i)&&n++,o=o<<1&2047|e.get(a,r),a>=10&&(1488===o||93===o)&&n++}return n*r.N3},t.getPenaltyN4=function(e){let t=0,n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return Math.abs(Math.ceil(100*t/n/5)-10)*r.N4},t.applyMask=function(e,r){let n=r.size;for(let i=0;i<n;i++)for(let o=0;o<n;o++)r.isReserved(o,i)||r.xor(o,i,function(e,r,n){switch(e){case t.Patterns.PATTERN000:return(r+n)%2==0;case t.Patterns.PATTERN001:return r%2==0;case t.Patterns.PATTERN010:return n%3==0;case t.Patterns.PATTERN011:return(r+n)%3==0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case t.Patterns.PATTERN101:return r*n%2+r*n%3==0;case t.Patterns.PATTERN110:return(r*n%2+r*n%3)%2==0;case t.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}(e,o,i))},t.getBestMask=function(e,r){let n=Object.keys(t.Patterns).length,i=0,o=1/0;for(let a=0;a<n;a++){r(a),t.applyMask(a,e);let n=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),n<o&&(o=n,i=a)}return i}},37662:function(e,t,r){let n=r(64956),i=r(66579);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw Error("Invalid mode: "+e);if(!n.isValid(t))throw Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw Error("Unknown mode: "+e)}}(e)}catch(e){return r}}},10894:function(e,t,r){let n=r(37662);function i(e){this.mode=n.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,r;for(t=0;t+3<=this.data.length;t+=3)r=parseInt(this.data.substr(t,3),10),e.put(r,10);let n=this.data.length-t;n>0&&(r=parseInt(this.data.substr(t),10),e.put(r,3*n+1))},e.exports=i},25153:function(e,t,r){let n=r(51309);t.mul=function(e,t){let r=new Uint8Array(e.length+t.length-1);for(let i=0;i<e.length;i++)for(let o=0;o<t.length;o++)r[i+o]^=n.mul(e[i],t[o]);return r},t.mod=function(e,t){let r=new Uint8Array(e);for(;r.length-t.length>=0;){let e=r[0];for(let i=0;i<t.length;i++)r[i]^=n.mul(t[i],e);let i=0;for(;i<r.length&&0===r[i];)i++;r=r.slice(i)}return r},t.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let i=0;i<e;i++)r=t.mul(r,new Uint8Array([1,n.exp(i)]));return r}},37621:function(e,t,r){let n=r(13400),i=r(9406),o=r(41904),a=r(21091),s=r(8177),u=r(78241),c=r(68334),l=r(37039),f=r(9936),h=r(48670),d=r(50237),p=r(37662),b=r(25082);function m(e,t,r){let n,i;let o=e.size,a=d.getEncodedBits(t,r);for(n=0;n<15;n++)i=(a>>n&1)==1,n<6?e.set(n,8,i,!0):n<8?e.set(n+1,8,i,!0):e.set(o-15+n,8,i,!0),n<8?e.set(8,o-n-1,i,!0):n<9?e.set(8,15-n-1+1,i,!0):e.set(8,15-n-1,i,!0);e.set(o-8,8,1,!0)}t.create=function(e,t){let r,d;if(void 0===e||""===e)throw Error("No input text");let y=i.M;return void 0!==t&&(y=i.from(t.errorCorrectionLevel,i.M),r=h.from(t.version),d=c.from(t.maskPattern),t.toSJISFunc&&n.setToSJISFunction(t.toSJISFunc)),function(e,t,r,i){let d;if(Array.isArray(e))d=b.fromArray(e);else if("string"==typeof e){let n=t;if(!n){let t=b.rawSplit(e);n=h.getBestVersionForData(t,r)}d=b.fromString(e,n||40)}else throw Error("Invalid data");let y=h.getBestVersionForData(d,r);if(!y)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<y)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+y+".\n")}else t=y;let g=function(e,t,r){let i=new o;r.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),p.getCharCountIndicator(t.mode,e)),t.write(i)});let a=(n.getSymbolTotalCodewords(e)-l.getTotalCodewordsCount(e,t))*8;for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);let s=(a-i.getLengthInBits())/8;for(let e=0;e<s;e++)i.put(e%2?17:236,8);return function(e,t,r){let i,o;let a=n.getSymbolTotalCodewords(t),s=a-l.getTotalCodewordsCount(t,r),u=l.getBlocksCount(t,r),c=a%u,h=u-c,d=Math.floor(a/u),p=Math.floor(s/u),b=p+1,m=d-p,y=new f(m),g=0,v=Array(u),w=Array(u),E=0,_=new Uint8Array(e.buffer);for(let e=0;e<u;e++){let t=e<h?p:b;v[e]=_.slice(g,g+t),w[e]=y.encode(v[e]),g+=t,E=Math.max(E,t)}let x=new Uint8Array(a),C=0;for(i=0;i<E;i++)for(o=0;o<u;o++)i<v[o].length&&(x[C++]=v[o][i]);for(i=0;i<m;i++)for(o=0;o<u;o++)x[C++]=w[o][i];return x}(i,e,t)}(t,r,d),v=new a(n.getSymbolSize(t));return function(e,t){let r=e.size,n=u.getPositions(t);for(let t=0;t<n.length;t++){let i=n[t][0],o=n[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1)&&!(r<=i+t))for(let n=-1;n<=7;n++)o+n<=-1||r<=o+n||(t>=0&&t<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===t||6===t)||t>=2&&t<=4&&n>=2&&n<=4?e.set(i+t,o+n,!0,!0):e.set(i+t,o+n,!1,!0))}}(v,t),function(e){let t=e.size;for(let r=8;r<t-8;r++){let t=r%2==0;e.set(r,6,t,!0),e.set(6,r,t,!0)}}(v),function(e,t){let r=s.getPositions(t);for(let t=0;t<r.length;t++){let n=r[t][0],i=r[t][1];for(let t=-2;t<=2;t++)for(let r=-2;r<=2;r++)-2===t||2===t||-2===r||2===r||0===t&&0===r?e.set(n+t,i+r,!0,!0):e.set(n+t,i+r,!1,!0)}}(v,t),m(v,r,0),t>=7&&function(e,t){let r,n,i;let o=e.size,a=h.getEncodedBits(t);for(let t=0;t<18;t++)r=Math.floor(t/3),n=t%3+o-8-3,i=(a>>t&1)==1,e.set(r,n,i,!0),e.set(n,r,i,!0)}(v,t),function(e,t){let r=e.size,n=-1,i=r-1,o=7,a=0;for(let s=r-1;s>0;s-=2)for(6===s&&s--;;){for(let r=0;r<2;r++)if(!e.isReserved(i,s-r)){let n=!1;a<t.length&&(n=(t[a]>>>o&1)==1),e.set(i,s-r,n),-1==--o&&(a++,o=7)}if((i+=n)<0||r<=i){i-=n,n=-n;break}}}(v,g),isNaN(i)&&(i=c.getBestMask(v,m.bind(null,v,r))),c.applyMask(i,v),m(v,r,i),{modules:v,version:t,errorCorrectionLevel:r,maskPattern:i,segments:d}}(e,r,y,d)}},9936:function(e,t,r){let n=r(25153);function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},i.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},e.exports=i},66579:function(e,t){let r="[0-9]+",n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",i="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=RegExp(n,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(i,"g"),t.NUMERIC=RegExp(r,"g"),t.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let o=RegExp("^"+n+"$"),a=RegExp("^"+r+"$"),s=RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},25082:function(e,t,r){let n=r(37662),i=r(10894),o=r(77654),a=r(90690),s=r(69592),u=r(66579),c=r(13400),l=r(78343);function f(e){return unescape(encodeURIComponent(e)).length}function h(e,t,r){let n;let i=[];for(;null!==(n=e.exec(r));)i.push({data:n[0],index:n.index,mode:t,length:n[0].length});return i}function d(e){let t,r;let i=h(u.NUMERIC,n.NUMERIC,e),o=h(u.ALPHANUMERIC,n.ALPHANUMERIC,e);return c.isKanjiModeEnabled()?(t=h(u.BYTE,n.BYTE,e),r=h(u.KANJI,n.KANJI,e)):(t=h(u.BYTE_KANJI,n.BYTE,e),r=[]),i.concat(o,t,r).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function p(e,t){switch(t){case n.NUMERIC:return i.getBitsLength(e);case n.ALPHANUMERIC:return o.getBitsLength(e);case n.KANJI:return s.getBitsLength(e);case n.BYTE:return a.getBitsLength(e)}}function b(e,t){let r;let u=n.getBestModeForData(e);if((r=n.from(t,u))!==n.BYTE&&r.bit<u.bit)throw Error('"'+e+'" cannot be encoded with mode '+n.toString(r)+".\n Suggested mode is: "+n.toString(u));switch(r!==n.KANJI||c.isKanjiModeEnabled()||(r=n.BYTE),r){case n.NUMERIC:return new i(e);case n.ALPHANUMERIC:return new o(e);case n.KANJI:return new s(e);case n.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(b(t,null)):t.data&&e.push(b(t.data,t.mode)),e},[])},t.fromString=function(e,r){let i=function(e,t){let r={},i={start:{}},o=["start"];for(let a=0;a<e.length;a++){let s=e[a],u=[];for(let e=0;e<s.length;e++){let c=s[e],l=""+a+e;u.push(l),r[l]={node:c,lastCount:0},i[l]={};for(let e=0;e<o.length;e++){let a=o[e];r[a]&&r[a].node.mode===c.mode?(i[a][l]=p(r[a].lastCount+c.length,c.mode)-p(r[a].lastCount,c.mode),r[a].lastCount+=c.length):(r[a]&&(r[a].lastCount=c.length),i[a][l]=p(c.length,c.mode)+4+n.getCharCountIndicator(c.mode,t))}}o=u}for(let e=0;e<o.length;e++)i[o[e]].end=0;return{map:i,table:r}}(function(e){let t=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case n.NUMERIC:t.push([i,{data:i.data,mode:n.ALPHANUMERIC,length:i.length},{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.ALPHANUMERIC:t.push([i,{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.KANJI:t.push([i,{data:i.data,mode:n.BYTE,length:f(i.data)}]);break;case n.BYTE:t.push([{data:i.data,mode:n.BYTE,length:f(i.data)}])}}return t}(d(e,c.isKanjiModeEnabled())),r),o=l.find_path(i.map,"start","end"),a=[];for(let e=1;e<o.length-1;e++)a.push(i.table[o[e]].node);return t.fromArray(a.reduce(function(e,t){let r=e.length-1>=0?e[e.length-1]:null;return r&&r.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[]))},t.rawSplit=function(e){return t.fromArray(d(e,c.isKanjiModeEnabled()))}},13400:function(e,t){let r;let n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return n[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');r=e},t.isKanjiModeEnabled=function(){return void 0!==r},t.toSJIS=function(e){return r(e)}},64956:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},48670:function(e,t,r){let n=r(13400),i=r(37039),o=r(9406),a=r(37662),s=r(64956),u=n.getBCHDigit(7973);function c(e,t){return a.getCharCountIndicator(e,t)+4}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,r){if(!s.isValid(e))throw Error("Invalid QR Code version");void 0===r&&(r=a.BYTE);let o=(n.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,t))*8;if(r===a.MIXED)return o;let u=o-c(r,e);switch(r){case a.NUMERIC:return Math.floor(u/10*3);case a.ALPHANUMERIC:return Math.floor(u/11*2);case a.KANJI:return Math.floor(u/13);case a.BYTE:default:return Math.floor(u/8)}},t.getBestVersionForData=function(e,r){let n;let i=o.from(r,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,r){for(let n=1;n<=40;n++)if(function(e,t){let r=0;return e.forEach(function(e){let n=c(e.mode,t);r+=n+e.getBitsLength()}),r}(e,n)<=t.getCapacity(n,r,a.MIXED))return n}(e,i);if(0===e.length)return 1;n=e[0]}else n=e;return function(e,r,n){for(let i=1;i<=40;i++)if(r<=t.getCapacity(i,n,e))return i}(n.mode,n.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;n.getBCHDigit(t)-u>=0;)t^=7973<<n.getBCHDigit(t)-u;return e<<12|t}},46028:function(e,t,r){let n=r(10544);t.render=function(e,t,r){var i;let o=r,a=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(a=function(){try{return document.createElement("canvas")}catch(e){throw Error("You need to specify a canvas element")}}()),o=n.getOptions(o);let s=n.getImageWidth(e.modules.size,o),u=a.getContext("2d"),c=u.createImageData(s,s);return n.qrToImageData(c.data,e,o),i=a,u.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=s,i.width=s,i.style.height=s+"px",i.style.width=s+"px",u.putImageData(c,0,0),a},t.renderToDataURL=function(e,r,n){let i=n;void 0!==i||r&&r.getContext||(i=r,r=void 0),i||(i={});let o=t.render(e,r,i),a=i.type||"image/png",s=i.rendererOpts||{};return o.toDataURL(a,s.quality)}},12330:function(e,t,r){let n=r(10544);function i(e,t){let r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function o(e,t,r){let n=e+t;return void 0!==r&&(n+=" "+r),n}t.render=function(e,t,r){let a=n.getOptions(t),s=e.modules.size,u=e.modules.data,c=s+2*a.margin,l=a.color.light.a?"<path "+i(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",f="<path "+i(a.color.dark,"stroke")+' d="'+function(e,t,r){let n="",i=0,a=!1,s=0;for(let u=0;u<e.length;u++){let c=Math.floor(u%t),l=Math.floor(u/t);c||a||(a=!0),e[u]?(s++,u>0&&c>0&&e[u-1]||(n+=a?o("M",c+r,.5+l+r):o("m",i,0),i=0,a=!1),c+1<t&&e[u+1]||(n+=o("h",s),s=0)):i++}return n}(u,s,a.margin)+'"/>',h='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+('viewBox="0 0 '+c)+" "+c+'" shape-rendering="crispEdges">'+l+f+"</svg>\n";return"function"==typeof r&&r(null,h),h}},10544:function(e,t){function r(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");let r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:t,color:{dark:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,r){let n=t.getScale(e,r);return Math.floor((e+2*r.margin)*n)},t.qrToImageData=function(e,r,n){let i=r.modules.size,o=r.modules.data,a=t.getScale(i,n),s=Math.floor((i+2*n.margin)*a),u=n.margin*a,c=[n.color.light,n.color.dark];for(let t=0;t<s;t++)for(let r=0;r<s;r++){let l=(t*s+r)*4,f=n.color.light;t>=u&&r>=u&&t<s-u&&r<s-u&&(f=c[o[Math.floor((t-u)/a)*i+Math.floor((r-u)/a)]?1:0]),e[l++]=f.r,e[l++]=f.g,e[l++]=f.b,e[l]=f.a}}},17552:function(e,t,r){"use strict";r.d(t,{Z:function(){return z}});var n,i,o,a,s,u,c=r(50044),l=r(2265),f="right-scroll-bar-position",h="width-before-scroll-bar";function d(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var p=new WeakMap,b=(void 0===n&&(n={}),(void 0===i&&(i=function(e){return e}),o=[],a=!1,s={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,a);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){a=!0;var t=[];if(o.length){var r=o;o=[],r.forEach(e),t=o}var n=function(){var r=t;t=[],r.forEach(e)},i=function(){return Promise.resolve().then(n)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=(0,c.__assign)({async:!0,ssr:!1},n),s),m=function(){},y=l.forwardRef(function(e,t){var r,n,i,o,a=l.useRef(null),s=l.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),u=s[0],f=s[1],h=e.forwardProps,y=e.children,g=e.className,v=e.removeScrollBar,w=e.enabled,E=e.shards,_=e.sideCar,x=e.noIsolation,C=e.inert,S=e.allowPinchZoom,O=e.as,D=e.gapMode,P=(0,c.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(r=[a,t],n=function(e){return r.forEach(function(t){return d(t,e)})},(i=(0,l.useState)(function(){return{value:null,callback:n,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=n,o=i.facade,l.useLayoutEffect(function(){var e=p.get(o);if(e){var t=new Set(e),n=new Set(r),i=o.current;t.forEach(function(e){n.has(e)||d(e,null)}),n.forEach(function(e){t.has(e)||d(e,i)})}p.set(o,r)},[r]),o),A=(0,c.__assign)((0,c.__assign)({},P),u);return l.createElement(l.Fragment,null,w&&l.createElement(_,{sideCar:b,removeScrollBar:v,shards:E,noIsolation:x,inert:C,setCallbacks:f,allowPinchZoom:!!S,lockRef:a,gapMode:D}),h?l.cloneElement(l.Children.only(y),(0,c.__assign)((0,c.__assign)({},A),{ref:k})):l.createElement(void 0===O?"div":O,(0,c.__assign)({},A,{className:g,ref:k}),y))});y.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},y.classNames={fullWidth:h,zeroRight:f};var g=function(e){var t=e.sideCar,r=(0,c.__rest)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return l.createElement(n,(0,c.__assign)({},r))};g.isSideCarExport=!0;var v=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||r.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},w=function(){var e=v();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},E=function(){var e=w();return function(t){return e(t.styles,t.dynamic),null}},_={left:0,top:0,right:0,gap:0},x=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[x(r),x(n),x(i)]},S=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return _;var t=C(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},O=E(),D=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(s,"px ").concat(n,";\n  }\n  body {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(f," {\n    right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(h," {\n    margin-right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(f," .").concat(f," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(h," .").concat(h," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},P=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n,o=l.useMemo(function(){return S(i)},[i]);return l.createElement(O,{styles:D(o,!t,i,r?"":"!important")})},k=!1;if("undefined"!=typeof window)try{var A=Object.defineProperty({},"passive",{get:function(){return k=!0,!0}});window.addEventListener("test",A,A),window.removeEventListener("test",A,A)}catch(e){k=!1}var I=!!k&&{passive:!1},T=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===r[t])},N=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),j(e,n)){var i=M(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},j=function(e,t){return"v"===e?T(t,"overflowY"):T(t,"overflowX")},M=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},R=function(e,t,r,n,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*n,u=r.target,c=t.contains(u),l=!1,f=s>0,h=0,d=0;do{var p=M(e,u),b=p[0],m=p[1]-p[2]-a*b;(b||m)&&j(e,u)&&(h+=m,d+=b),u=u instanceof ShadowRoot?u.host:u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return f&&(i&&1>Math.abs(h)||!i&&s>h)?l=!0:!f&&(i&&1>Math.abs(d)||!i&&-s>d)&&(l=!0),l},F=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},B=function(e){return[e.deltaX,e.deltaY]},U=function(e){return e&&"current"in e?e.current:e},L=0,$=[],q=(b.useMedium(function(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),i=l.useState(L++)[0],o=l.useState(E)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,c.__spreadArray)([e.lockRef.current],(e.shards||[]).map(U),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var i,o=F(e),s=r.current,u="deltaX"in e?e.deltaX:s[0]-o[0],c="deltaY"in e?e.deltaY:s[1]-o[1],l=e.target,f=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===f&&"range"===l.type)return!1;var h=N(f,l);if(!h)return!0;if(h?i=f:(i="v"===f?"h":"v",h=N(f,l)),!h)return!1;if(!n.current&&"changedTouches"in e&&(u||c)&&(n.current=i),!i)return!0;var d=n.current||i;return R(d,t,e,"h"===d?u:c,!0)},[]),u=l.useCallback(function(e){if($.length&&$[$.length-1]===o){var r="deltaY"in e?B(e):F(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(a.current.shards||[]).map(U).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),f=l.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),h=l.useCallback(function(e){r.current=F(e),n.current=void 0},[]),d=l.useCallback(function(t){f(t.type,B(t),t.target,s(t,e.lockRef.current))},[]),p=l.useCallback(function(t){f(t.type,F(t),t.target,s(t,e.lockRef.current))},[]);l.useEffect(function(){return $.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,I),document.addEventListener("touchmove",u,I),document.addEventListener("touchstart",h,I),function(){$=$.filter(function(e){return e!==o}),document.removeEventListener("wheel",u,I),document.removeEventListener("touchmove",u,I),document.removeEventListener("touchstart",h,I)}},[]);var b=e.removeScrollBar,m=e.inert;return l.createElement(l.Fragment,null,m?l.createElement(o,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,b?l.createElement(P,{gapMode:e.gapMode}):null)}),g),W=l.forwardRef(function(e,t){return l.createElement(y,(0,c.__assign)({},e,{ref:t,sideCar:q}))});W.classNames=y.classNames;var z=W},34470:function(e){"use strict";e.exports=(e,t)=>{if(!("string"==typeof e&&"string"==typeof t))throw TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];let r=e.indexOf(t);return -1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},67116:function(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},45936:function(e,t,r){var n;!function(i,o){"use strict";var a="function",s="undefined",u="object",c="string",l="major",f="model",h="name",d="type",p="vendor",b="version",m="architecture",y="console",g="mobile",v="tablet",w="smarttv",E="wearable",_="embedded",x="Amazon",C="Apple",S="ASUS",O="BlackBerry",D="Browser",P="Chrome",k="Firefox",A="Google",I="Huawei",T="Microsoft",N="Motorola",j="Opera",M="Samsung",R="Sharp",F="Sony",B="Xiaomi",U="Zebra",L="Facebook",$="Chromium OS",q="Mac OS",W=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},z=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},G=function(e,t){return typeof e===c&&-1!==H(t).indexOf(H(e))},H=function(e){return e.toLowerCase()},K=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},Q=function(e,t){for(var r,n,i,s,c,l,f=0;f<t.length&&!c;){var h=t[f],d=t[f+1];for(r=n=0;r<h.length&&!c&&h[r];)if(c=h[r++].exec(e))for(i=0;i<d.length;i++)l=c[++n],typeof(s=d[i])===u&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):o:this[s[0]]=l?s[1].call(this,l,s[2]):o:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):o):this[s]=l||o;f+=2}},V=function(e,t){for(var r in t)if(typeof t[r]===u&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(G(t[r][n],e))return"?"===r?o:r}else if(G(t[r],e))return"?"===r?o:r;return e},Y={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Z={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,b],[/opios[\/ ]+([\w\.]+)/i],[b,[h,j+" Mini"]],[/\bopr\/([\w\.]+)/i],[b,[h,j]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[h,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,b],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[h,"UC"+D]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[h,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[h,"Smart Lenovo "+D]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+D],b],[/\bfocus\/([\w\.]+)/i],[b,[h,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[h,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[h,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[h,"MIUI "+D]],[/fxios\/([-\w\.]+)/i],[b,[h,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+D]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+D],b],[/samsungbrowser\/([\w\.]+)/i],[b,[h,M+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],b],[/metasr[\/ ]?([\d\.]+)/i],[b,[h,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[h,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[h,b],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,L],b],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[h,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[h,P+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,P+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[h,"Android "+D]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[b,V,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[h,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[h,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[h,b],[/(cobalt)\/([\w\.]+)/i],[h,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,H]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,H]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[p,M],[d,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[p,M],[d,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[p,C],[d,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[p,C],[d,v]],[/(macintosh);/i],[f,[p,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[p,R],[d,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[p,I],[d,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[p,I],[d,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[p,B],[d,g]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[p,B],[d,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[p,"OPPO"],[d,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[p,"Vivo"],[d,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[f,[p,"Realme"],[d,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[p,N],[d,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[p,N],[d,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[p,"LG"],[d,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[p,"LG"],[d,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[p,"Lenovo"],[d,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[p,"Nokia"],[d,g]],[/(pixel c)\b/i],[f,[p,A],[d,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[p,A],[d,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[p,F],[d,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[p,F],[d,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[p,"OnePlus"],[d,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[p,x],[d,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[p,x],[d,g]],[/(playbook);[-\w\),; ]+(rim)/i],[f,p,[d,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[p,O],[d,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[p,S],[d,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[p,S],[d,g]],[/(nexus 9)/i],[f,[p,"HTC"],[d,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[f,/_/g," "],[d,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[p,"Acer"],[d,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[p,"Meizu"],[d,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[f,[p,"Ulefone"],[d,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,f,[d,g]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,f,[d,v]],[/(surface duo)/i],[f,[p,T],[d,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[p,"Fairphone"],[d,g]],[/(u304aa)/i],[f,[p,"AT&T"],[d,g]],[/\bsie-(\w*)/i],[f,[p,"Siemens"],[d,g]],[/\b(rct\w+) b/i],[f,[p,"RCA"],[d,v]],[/\b(venue[\d ]{2,7}) b/i],[f,[p,"Dell"],[d,v]],[/\b(q(?:mv|ta)\w+) b/i],[f,[p,"Verizon"],[d,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[p,"Barnes & Noble"],[d,v]],[/\b(tm\d{3}\w+) b/i],[f,[p,"NuVision"],[d,v]],[/\b(k88) b/i],[f,[p,"ZTE"],[d,v]],[/\b(nx\d{3}j) b/i],[f,[p,"ZTE"],[d,g]],[/\b(gen\d{3}) b.+49h/i],[f,[p,"Swiss"],[d,g]],[/\b(zur\d{3}) b/i],[f,[p,"Swiss"],[d,v]],[/\b((zeki)?tb.*\b) b/i],[f,[p,"Zeki"],[d,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],f,[d,v]],[/\b(ns-?\w{0,9}) b/i],[f,[p,"Insignia"],[d,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[p,"NextBook"],[d,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],f,[d,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],f,[d,g]],[/\b(ph-1) /i],[f,[p,"Essential"],[d,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[p,"Envizen"],[d,v]],[/\b(trio[-\w\. ]+) b/i],[f,[p,"MachSpeed"],[d,v]],[/\btu_(1491) b/i],[f,[p,"Rotor"],[d,v]],[/(shield[\w ]+) b/i],[f,[p,"Nvidia"],[d,v]],[/(sprint) (\w+)/i],[p,f,[d,g]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[p,T],[d,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[p,U],[d,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[p,U],[d,g]],[/smart-tv.+(samsung)/i],[p,[d,w]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[p,M],[d,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,"LG"],[d,w]],[/(apple) ?tv/i],[p,[f,C+" TV"],[d,w]],[/crkey/i],[[f,P+"cast"],[p,A],[d,w]],[/droid.+aft(\w+)( bui|\))/i],[f,[p,x],[d,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[p,R],[d,w]],[/(bravia[\w ]+)( bui|\))/i],[f,[p,F],[d,w]],[/(mitv-\w{5}) bui/i],[f,[p,B],[d,w]],[/Hbbtv.*(technisat) (.*);/i],[p,f,[d,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,K],[f,K],[d,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,f,[d,y]],[/droid.+; (shield) bui/i],[f,[p,"Nvidia"],[d,y]],[/(playstation [345portablevi]+)/i],[f,[p,F],[d,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[p,T],[d,y]],[/((pebble))app/i],[p,f,[d,E]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[p,C],[d,E]],[/droid.+; (glass) \d/i],[f,[p,A],[d,E]],[/droid.+; (wt63?0{2,3})\)/i],[f,[p,U],[d,E]],[/(quest( 2| pro)?)/i],[f,[p,L],[d,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[d,_]],[/(aeobc)\b/i],[f,[p,x],[d,_]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[f,[d,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[d,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,g]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[h,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,b],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[h,[b,V,Y]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,V,Y],[h,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,q],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,b],[/\(bb(10);/i],[b,[h,O]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[h,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[h,P+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,$],b],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,b],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,b]]},J=function(e,t){if(typeof e===u&&(t=e,e=o),!(this instanceof J))return new J(e,t).getResult();var r=typeof i!==s&&i.navigator?i.navigator:o,n=e||(r&&r.userAgent?r.userAgent:""),y=r&&r.userAgentData?r.userAgentData:o,w=t?W(Z,t):Z,E=r&&r.userAgent==n;return this.getBrowser=function(){var e,t={};return t[h]=o,t[b]=o,Q.call(t,n,w.browser),t[l]=typeof(e=t[b])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:o,E&&r&&r.brave&&typeof r.brave.isBrave==a&&(t[h]="Brave"),t},this.getCPU=function(){var e={};return e[m]=o,Q.call(e,n,w.cpu),e},this.getDevice=function(){var e={};return e[p]=o,e[f]=o,e[d]=o,Q.call(e,n,w.device),E&&!e[d]&&y&&y.mobile&&(e[d]=g),E&&"Macintosh"==e[f]&&r&&typeof r.standalone!==s&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[f]="iPad",e[d]=v),e},this.getEngine=function(){var e={};return e[h]=o,e[b]=o,Q.call(e,n,w.engine),e},this.getOS=function(){var e={};return e[h]=o,e[b]=o,Q.call(e,n,w.os),E&&!e[h]&&y&&"Unknown"!=y.platform&&(e[h]=y.platform.replace(/chrome os/i,$).replace(/macos/i,q)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===c&&e.length>500?K(e,500):e,this},this.setUA(n),this};J.VERSION="1.0.37",J.BROWSER=z([h,b,l]),J.CPU=z([m]),J.DEVICE=z([f,p,d,y,g,w,v,E,_]),J.ENGINE=J.OS=z([h,b]),typeof t!==s?(e.exports&&(t=e.exports=J),t.UAParser=J):r.amdO?o!==(n=(function(){return J}).call(t,r,t,e))&&(e.exports=n):typeof i!==s&&(i.UAParser=J);var X=typeof i!==s&&(i.jQuery||i.Zepto);if(X&&!X.ua){var ee=new J;X.ua=ee.getResult(),X.ua.get=function(){return ee.getUA()},X.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var r in t)X.ua[r]=t[r]}}}("object"==typeof window?window:this)},81853:function(e,t,r){"use strict";/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n=r(2265),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,u=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,l=n[1];return s(function(){i.value=r,i.getSnapshot=t,c(i)&&l({inst:i})},[e,r,t]),a(function(){return c(i)&&l({inst:i}),e(function(){c(i)&&l({inst:i})})},[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},78704:function(e,t,r){"use strict";/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n=r(2265),i=r(26272),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=n.useRef,u=n.useEffect,c=n.useMemo,l=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var f=s(null);if(null===f.current){var h={hasValue:!1,value:null};f.current=h}else h=f.current;var d=a(e,(f=c(function(){function e(e){if(!u){if(u=!0,a=e,e=n(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var r=n(e);return void 0!==i&&i(t,r)?t:(a=e,s=r)}var a,s,u=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,r,n,i]))[0],f[1]);return u(function(){h.hasValue=!0,h.value=d},[d]),l(d),d}},26272:function(e,t,r){"use strict";e.exports=r(81853)},65401:function(e,t,r){"use strict";e.exports=r(78704)},19894:function(e,t,r){"use strict";r.d(t,{I:function(){return n}});var n=`{
  "connect_wallet": {
    "label": "Connect Wallet"
  },

  "intro": {
    "title": "What is a Wallet?",
    "description": "A wallet is used to send, receive, store, and display digital assets. It's also a new way to log in, without needing to create new accounts and passwords on every website.",
    "digital_asset": {
      "title": "A Home for your Digital Assets",
      "description": "Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs."
    },
    "login": {
      "title": "A New Way to Log In",
      "description": "Instead of creating new accounts and passwords on every website, just connect your wallet."
    },
    "get": {
      "label": "Get a Wallet"
    },
    "learn_more": {
      "label": "Learn More"
    }
  },

  "sign_in": {
    "label": "Verify your account",
    "description": "To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.",
    "message": {
      "send": "Sign message",
      "preparing": "Preparing message...",
      "cancel": "Cancel",
      "preparing_error": "Error preparing message, please retry!"
    },
    "signature": {
      "waiting": "Waiting for signature...",
      "verifying": "Verifying signature...",
      "signing_error": "Error signing message, please retry!",
      "verifying_error": "Error verifying signature, please retry!",
      "oops_error": "Oops, something went wrong!"
    }
  },

  "connect": {
    "label": "Connect",
    "title": "Connect a Wallet",
    "new_to_ethereum": {
      "description": "New to Ethereum wallets?",
      "learn_more": {
        "label": "Learn More"
      }
    },
    "learn_more": {
      "label": "Learn more"
    },
    "recent": "Recent",
    "status": {
      "opening": "Opening %{wallet}...",
      "connecting": "Connecting",
      "connect_mobile": "Continue in %{wallet}",
      "not_installed": "%{wallet} is not installed",
      "not_available": "%{wallet} is not available",
      "confirm": "Confirm connection in the extension",
      "confirm_mobile": "Accept connection request in the wallet"
    },
    "secondary_action": {
      "get": {
        "description": "Don't have %{wallet}?",
        "label": "GET"
      },
      "install": {
        "label": "INSTALL"
      },
      "retry": {
        "label": "RETRY"
      }
    },
    "walletconnect": {
      "description": {
        "full": "Need the official WalletConnect modal?",
        "compact": "Need the WalletConnect modal?"
      },
      "open": {
        "label": "OPEN"
      }
    }
  },

  "connect_scan": {
    "title": "Scan with %{wallet}",
    "fallback_title": "Scan with your phone"
  },

  "connector_group": {
    "recommended": "Recommended",
    "other": "Other",
    "popular": "Popular",
    "more": "More",
    "others": "Others"
  },

  "get": {
    "title": "Get a Wallet",
    "action": {
      "label": "GET"
    },
    "mobile": {
      "description": "Mobile Wallet"
    },
    "extension": {
      "description": "Browser Extension"
    },
    "mobile_and_extension": {
      "description": "Mobile Wallet and Extension"
    },
    "mobile_and_desktop": {
      "description": "Mobile and Desktop Wallet"
    },
    "looking_for": {
      "title": "Not what you're looking for?",
      "mobile": {
        "description": "Select a wallet on the main screen to get started with a different wallet provider."
      },
      "desktop": {
        "compact_description": "Select a wallet on the main screen to get started with a different wallet provider.",
        "wide_description": "Select a wallet on the left to get started with a different wallet provider."
      }
    }
  },

  "get_options": {
    "title": "Get started with %{wallet}",
    "short_title": "Get %{wallet}",
    "mobile": {
      "title": "%{wallet} for Mobile",
      "description": "Use the mobile wallet to explore the world of Ethereum.",
      "download": {
        "label": "Get the app"
      }
    },
    "extension": {
      "title": "%{wallet} for %{browser}",
      "description": "Access your wallet right from your favorite web browser.",
      "download": {
        "label": "Add to %{browser}"
      }
    },
    "desktop": {
      "title": "%{wallet} for %{platform}",
      "description": "Access your wallet natively from your powerful desktop.",
      "download": {
        "label": "Add to %{platform}"
      }
    }
  },

  "get_mobile": {
    "title": "Install %{wallet}",
    "description": "Scan with your phone to download on iOS or Android",
    "continue": {
      "label": "Continue"
    }
  },

  "get_instructions": {
    "mobile": {
      "connect": {
        "label": "Connect"
      },
      "learn_more": {
        "label": "Learn More"
      }
    },
    "extension": {
      "refresh": {
        "label": "Refresh"
      },
      "learn_more": {
        "label": "Learn More"
      }
    },
    "desktop": {
      "connect": {
        "label": "Connect"
      },
      "learn_more": {
        "label": "Learn More"
      }
    }
  },

  "chains": {
    "title": "Switch Networks",
    "wrong_network": "Wrong network detected, switch or disconnect to continue.",
    "confirm": "Confirm in Wallet",
    "switching_not_supported": "Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.",
    "switching_not_supported_fallback": "Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.",
    "disconnect": "Disconnect",
    "connected": "Connected"
  },

  "profile": {
    "disconnect": {
      "label": "Disconnect"
    },
    "copy_address": {
      "label": "Copy Address",
      "copied": "Copied!"
    },
    "explorer": {
      "label": "View more on explorer"
    },
    "transactions": {
      "description": "%{appName} transactions will appear here...",
      "description_fallback": "Your transactions will appear here...",
      "recent": {
        "title": "Recent Transactions"
      },
      "clear": {
        "label": "Clear All"
      }
    }
  },

  "wallet_connectors": {
    "argent": {
      "qr_code": {
        "step1": {
          "description": "Put Argent on your home screen for faster access to your wallet.",
          "title": "Open the Argent app"
        },
        "step2": {
          "description": "Create a wallet and username, or import an existing wallet.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the Scan QR button"
        }
      }
    },

    "bifrost": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting Bifrost Wallet on your home screen for quicker access.",
          "title": "Open the Bifrost Wallet app"
        },
        "step2": {
          "description": "Create or import a wallet using your recovery phrase.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the scan button"
        }
      }
    },

    "bitget": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting Bitget Wallet on your home screen for quicker access.",
          "title": "Open the Bitget Wallet app"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the scan button"
        }
      },

      "extension": {
        "step1": {
          "description": "We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.",
          "title": "Install the Bitget Wallet extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "bitski": {
      "extension": {
        "step1": {
          "description": "We recommend pinning Bitski to your taskbar for quicker access to your wallet.",
          "title": "Install the Bitski extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "coin98": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.",
          "title": "Open the Coin98 Wallet app"
        },
        "step2": {
          "description": "You can easily backup your wallet using our backup feature on your phone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the WalletConnect button"
        }
      },

      "extension": {
        "step1": {
          "description": "Click at the top right of your browser and pin Coin98 Wallet for easy access.",
          "title": "Install the Coin98 Wallet extension"
        },
        "step2": {
          "description": "Create a new wallet or import an existing one.",
          "title": "Create or Import a wallet"
        },
        "step3": {
          "description": "Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "coinbase": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting Coinbase Wallet on your home screen for quicker access.",
          "title": "Open the Coinbase Wallet app"
        },
        "step2": {
          "description": "You can easily backup your wallet using the cloud backup feature.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the scan button"
        }
      },

      "extension": {
        "step1": {
          "description": "We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.",
          "title": "Install the Coinbase Wallet extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "core": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting Core on your home screen for faster access to your wallet.",
          "title": "Open the Core app"
        },
        "step2": {
          "description": "You can easily backup your wallet using our backup feature on your phone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the WalletConnect button"
        }
      },

      "extension": {
        "step1": {
          "description": "We recommend pinning Core to your taskbar for quicker access to your wallet.",
          "title": "Install the Core extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "fox": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting FoxWallet on your home screen for quicker access.",
          "title": "Open the FoxWallet app"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the scan button"
        }
      }
    },

    "frontier": {
      "qr_code": {
        "step1": {
          "description": "We recommend putting Frontier Wallet on your home screen for quicker access.",
          "title": "Open the Frontier Wallet app"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
          "title": "Tap the scan button"
        }
      },

      "extension": {
        "step1": {
          "description": "We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.",
          "title": "Install the Frontier Wallet extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "im_token": {
      "qr_code": {
        "step1": {
          "title": "Open the imToken app",
          "description": "Put imToken app on your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap Scanner Icon in top right corner",
          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
        }
      }
    },

    "metamask": {
      "qr_code": {
        "step1": {
          "title": "Open the MetaMask app",
          "description": "We recommend putting MetaMask on your home screen for quicker access."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Tap the scan button",
          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
        }
      },

      "extension": {
        "step1": {
          "title": "Install the MetaMask extension",
          "description": "We recommend pinning MetaMask to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "okx": {
      "qr_code": {
        "step1": {
          "title": "Open the OKX Wallet app",
          "description": "We recommend putting OKX Wallet on your home screen for quicker access."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Tap the scan button",
          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
        }
      },

      "extension": {
        "step1": {
          "title": "Install the OKX Wallet extension",
          "description": "We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "omni": {
      "qr_code": {
        "step1": {
          "title": "Open the Omni app",
          "description": "Add Omni to your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap the QR icon and scan",
          "description": "Tap the QR icon on your home screen, scan the code and confirm the prompt to connect."
        }
      }
    },

    "token_pocket": {
      "qr_code": {
        "step1": {
          "title": "Open the TokenPocket app",
          "description": "We recommend putting TokenPocket on your home screen for quicker access."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Tap the scan button",
          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
        }
      },

      "extension": {
        "step1": {
          "title": "Install the TokenPocket extension",
          "description": "We recommend pinning TokenPocket to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "trust": {
      "qr_code": {
        "step1": {
          "title": "Open the Trust Wallet app",
          "description": "Put Trust Wallet on your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap WalletConnect in Settings",
          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
        }
      },

      "extension": {
        "step1": {
          "title": "Install the Trust Wallet extension",
          "description": "Click at the top right of your browser and pin Trust Wallet for easy access."
        },
        "step2": {
          "title": "Create or Import a wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up Trust Wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "uniswap": {
      "qr_code": {
        "step1": {
          "title": "Open the Uniswap app",
          "description": "Add Uniswap Wallet to your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap the QR icon and scan",
          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
        }
      }
    },

    "zerion": {
      "qr_code": {
        "step1": {
          "title": "Open the Zerion app",
          "description": "We recommend putting Zerion on your home screen for quicker access."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Tap the scan button",
          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
        }
      },

      "extension": {
        "step1": {
          "title": "Install the Zerion extension",
          "description": "We recommend pinning Zerion to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "rainbow": {
      "qr_code": {
        "step1": {
          "title": "Open the Rainbow app",
          "description": "We recommend putting Rainbow on your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "You can easily backup your wallet using our backup feature on your phone."
        },
        "step3": {
          "title": "Tap the scan button",
          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
        }
      }
    },

    "enkrypt": {
      "extension": {
        "step1": {
          "description": "We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.",
          "title": "Install the Enkrypt Wallet extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "frame": {
      "extension": {
        "step1": {
          "description": "We recommend pinning Frame to your taskbar for quicker access to your wallet.",
          "title": "Install Frame & the companion extension"
        },
        "step2": {
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
          "title": "Create or Import a Wallet"
        },
        "step3": {
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
          "title": "Refresh your browser"
        }
      }
    },

    "one_key": {
      "extension": {
        "step1": {
          "title": "Install the OneKey Wallet extension",
          "description": "We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "phantom": {
      "extension": {
        "step1": {
          "title": "Install the Phantom extension",
          "description": "We recommend pinning Phantom to your taskbar for easier access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "rabby": {
      "extension": {
        "step1": {
          "title": "Install the Rabby extension",
          "description": "We recommend pinning Rabby to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "safeheron": {
      "extension": {
        "step1": {
          "title": "Install the Core extension",
          "description": "We recommend pinning Safeheron to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "taho": {
      "extension": {
        "step1": {
          "title": "Install the Taho extension",
          "description": "We recommend pinning Taho to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "talisman": {
      "extension": {
        "step1": {
          "title": "Install the Talisman extension",
          "description": "We recommend pinning Talisman to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import an Ethereum Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "xdefi": {
      "extension": {
        "step1": {
          "title": "Install the XDEFI Wallet extension",
          "description": "We recommend pinning XDEFI Wallet to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "zeal": {
      "extension": {
        "step1": {
          "title": "Install the Zeal extension",
          "description": "We recommend pinning Zeal to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "safepal": {
      "extension": {
        "step1": {
          "title": "Install the SafePal Wallet extension",
          "description": "Click at the top right of your browser and pin SafePal Wallet for easy access."
        },
        "step2": {
          "title": "Create or Import a wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up SafePal Wallet, click below to refresh the browser and load up the extension."
        }
      },
      "qr_code": {
        "step1": {
          "title": "Open the SafePal Wallet app",
          "description": "Put SafePal Wallet on your home screen for faster access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Create a new wallet or import an existing one."
        },
        "step3": {
          "title": "Tap WalletConnect in Settings",
          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
        }
      }
    },

    "desig": {
      "extension": {
        "step1": {
          "title": "Install the Desig extension",
          "description": "We recommend pinning Desig to your taskbar for easier access to your wallet."
        },
        "step2": {
          "title": "Create a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      }
    },

    "subwallet": {
      "extension": {
        "step1": {
          "title": "Install the SubWallet extension",
          "description": "We recommend pinning SubWallet to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      },
      "qr_code": {
        "step1": {
          "title": "Open the SubWallet app",
          "description": "We recommend putting SubWallet on your home screen for quicker access."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Tap the scan button",
          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
        }
      }
    },

    "clv": {
      "extension": {
        "step1": {
          "title": "Install the CLV Wallet extension",
          "description": "We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Refresh your browser",
          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
        }
      },
      "qr_code": {
        "step1": {
          "title": "Open the CLV Wallet app",
          "description": "We recommend putting CLV Wallet on your home screen for quicker access."
        },
        "step2": {
          "title": "Create or Import a Wallet",
          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
        },
        "step3": {
          "title": "Tap the scan button",
          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
        }
      }
    },

    "okto": {
      "qr_code": {
        "step1": {
          "title": "Open the Okto app",
          "description": "Add Okto to your home screen for quick access"
        },
        "step2": {
          "title": "Create an MPC Wallet",
          "description": "Create an account and generate a wallet"
        },
        "step3": {
          "title": "Tap WalletConnect in Settings",
          "description": "Tap the Scan QR icon at the top right and confirm the prompt to connect."
        }
      }
    },

    "ledger": {
      "desktop": {
        "step1": {
          "title": "Open the Ledger Live app",
          "description": "We recommend putting Ledger Live on your home screen for quicker access."
        },
        "step2": {
          "title": "Set up your Ledger",
          "description": "Set up a new Ledger or connect to an existing one."
        },
        "step3": {
          "title": "Connect",
          "description": "A connection prompt will appear for you to connect your wallet."
        }
      },
      "qr_code": {
        "step1": {
          "title": "Open the Ledger Live app",
          "description": "We recommend putting Ledger Live on your home screen for quicker access."
        },
        "step2": {
          "title": "Set up your Ledger",
          "description": "You can either sync with the desktop app or connect your Ledger."
        },
        "step3": {
          "title": "Scan the code",
          "description": "Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet."
        }
      }
    }
  }
}
`},32211:function(e,t,r){"use strict";r.d(t,{W:function(){return l}});var n='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',i={rounded:`SFRounded, ui-rounded, "SF Pro Rounded", ${n}`,system:n},o={large:{actionButton:"9999px",connectButton:"12px",modal:"24px",modalMobile:"28px"},medium:{actionButton:"10px",connectButton:"8px",modal:"16px",modalMobile:"18px"},none:{actionButton:"0px",connectButton:"0px",modal:"0px",modalMobile:"0px"},small:{actionButton:"4px",connectButton:"4px",modal:"8px",modalMobile:"8px"}},a={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},s=({borderRadius:e="large",fontStack:t="rounded",overlayBlur:r="none"})=>({blurs:{modalOverlay:a[r].modalOverlay},fonts:{body:i[t]},radii:{actionButton:o[e].actionButton,connectButton:o[e].connectButton,menuButton:o[e].connectButton,modal:o[e].modal,modalMobile:o[e].modalMobile}}),u={blue:{accentColor:"#0E76FD",accentColorForeground:"#FFF"},green:{accentColor:"#1DB847",accentColorForeground:"#FFF"},orange:{accentColor:"#FF801F",accentColorForeground:"#FFF"},pink:{accentColor:"#FF5CA0",accentColorForeground:"#FFF"},purple:{accentColor:"#5F5AFA",accentColorForeground:"#FFF"},red:{accentColor:"#FA423C",accentColorForeground:"#FFF"}},c=u.blue,l=({accentColor:e=c.accentColor,accentColorForeground:t=c.accentColorForeground,...r}={})=>({...s(r),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(0, 0, 0, 0.04)",actionButtonBorderMobile:"rgba(0, 0, 0, 0.06)",actionButtonSecondaryBackground:"rgba(0, 0, 0, 0.06)",closeButton:"rgba(60, 66, 66, 0.8)",closeButtonBackground:"rgba(0, 0, 0, 0.06)",connectButtonBackground:"#FFF",connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06))",connectButtonText:"#25292E",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(255, 255, 255, 0) 9.49%, rgba(171, 171, 171, 0.04) 71.04%), #FFFFFF",downloadTopCardBackground:"linear-gradient(126deg, rgba(171, 171, 171, 0.2) 9.49%, rgba(255, 255, 255, 0) 71.04%), #FFFFFF",error:"#FF494A",generalBorder:"rgba(0, 0, 0, 0.06)",generalBorderDim:"rgba(0, 0, 0, 0.03)",menuItemBackground:"rgba(60, 66, 66, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.3)",modalBackground:"#FFF",modalBorder:"transparent",modalText:"#25292E",modalTextDim:"rgba(60, 66, 66, 0.3)",modalTextSecondary:"rgba(60, 66, 66, 0.6)",profileAction:"#FFF",profileActionHover:"rgba(255, 255, 255, 0.5)",profileForeground:"rgba(60, 66, 66, 0.06)",selectedOptionBorder:"rgba(60, 66, 66, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.12)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}});l.accentColors=u},40106:function(e,t,r){"use strict";function n(e){return"string"==typeof e?Number.parseInt(e,"0x"===e.trim().substring(0,2)?16:10):"bigint"==typeof e?Number(e):e}r.d(t,{J:function(){return n}})},76373:function(e,t,r){"use strict";r.d(t,{_:function(){return h}});var n,i=r(38026),o=r(40106),a=r(53404),s=r(39803),u=r(48519),c=r(71061),l=r(39730),f=r(21693),h=class extends a.wR{constructor({chains:e,options:t}={}){let r={shimDisconnect:!0,getProvider(){if("undefined"==typeof window)return;let e=window.ethereum;return e?.providers&&e.providers.length>0?e.providers[0]:e},...t};super({chains:e,options:r}),this.id="injected",(0,a.Ko)(this,n,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`,this.onAccountsChanged=e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,s.K)(e[0])})},this.onChainChanged=e=>{let t=(0,o.J)(e),r=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:r}})},this.onDisconnect=async e=>{!(1013===e.code&&await this.getProvider()&&await this.getAccount())&&(this.emit("disconnect"),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))};let i=r.getProvider();if("string"==typeof r.name)this.name=r.name;else if(i){let e=function(e){if(!e)return"Injected";let t=e=>e.isApexWallet?"Apex Wallet":e.isAvalanche?"Core Wallet":e.isBackpack?"Backpack":e.isBifrost?"Bifrost Wallet":e.isBitKeep?"BitKeep":e.isBitski?"Bitski":e.isBlockWallet?"BlockWallet":e.isBraveWallet?"Brave Wallet":e.isCoin98?"Coin98 Wallet":e.isCoinbaseWallet?"Coinbase Wallet":e.isDawn?"Dawn Wallet":e.isDefiant?"Defiant":e.isDesig?"Desig Wallet":e.isEnkrypt?"Enkrypt":e.isExodus?"Exodus":e.isFordefi?"Fordefi":e.isFrame?"Frame":e.isFrontier?"Frontier Wallet":e.isGamestop?"GameStop Wallet":e.isHaqqWallet?"HAQQ Wallet":e.isHyperPay?"HyperPay Wallet":e.isImToken?"ImToken":e.isHaloWallet?"Halo Wallet":e.isKuCoinWallet?"KuCoin Wallet":e.isMathWallet?"MathWallet":e.isNovaWallet?"Nova Wallet":e.isOkxWallet||e.isOKExWallet?"OKX Wallet":e.isOktoWallet?"Okto Wallet":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch Wallet":e.isOneKey?"OneKey Wallet":e.isOpera?"Opera":e.isPhantom?"Phantom":e.isPortal?"Ripio Portal":e.isRabby?"Rabby Wallet":e.isRainbow?"Rainbow":e.isSafePal?"SafePal Wallet":e.isStatus?"Status":e.isSubWallet?"SubWallet":e.isTalisman?"Talisman":e.isTally?"Taho":e.isTokenPocket?"TokenPocket":e.isTokenary?"Tokenary":e.isTrust||e.isTrustWallet?"Trust Wallet":e.isTTWallet?"TTWallet":e.isXDEFI?"XDEFI Wallet":e.isZeal?"Zeal":e.isZerion?"Zerion":e.isMetaMask?"MetaMask":void 0;if(e.providers?.length){let r=new Set,n=1;for(let i of e.providers){let e=t(i);e||(e=`Unknown Wallet #${n}`,n+=1),r.add(e)}let i=[...r];return i.length?i:i[0]??"Injected"}return t(e)??"Injected"}(i);r.name?this.name=r.name(e):"string"==typeof e?this.name=e:this.name=e[0]}else this.name="Injected";this.ready=!!i}async connect({chainId:e}={}){try{let t=await this.getProvider();if(!t)throw new i.N;t.on&&(t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let r=await t.request({method:"eth_requestAccounts"}),n=(0,s.K)(r[0]),o=await this.getChainId(),a=this.isChainUnsupported(o);return e&&o!==e&&(o=(await this.switchChain(e)).id,a=this.isChainUnsupported(o)),this.options.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:n,chain:{id:o,unsupported:a}}}catch(e){if(this.isUserRejectedRequestError(e))throw new u.ab(e);if(-32002===e.code)throw new u.pT(e);throw e}}async disconnect(){let e=await this.getProvider();e?.removeListener&&(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new i.N;let t=await e.request({method:"eth_accounts"});return(0,s.K)(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new i.N;return e.request({method:"eth_chainId"}).then(o.J)}async getProvider(){let e=this.options.getProvider();return e&&(0,a.qx)(this,n,e),(0,a.ac)(this,n)}async getWalletClient({chainId:e}={}){let[t,r]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,c.K)({account:r,chain:n,transport:(0,l.P)(t)})}async isAuthorized(){try{if(this.options.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey))return!1;if(!await this.getProvider())throw new i.N;return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider();if(!t)throw new i.N;let r=(0,f.eC)(e);try{return await Promise.all([t.request({method:"wallet_switchEthereumChain",params:[{chainId:r}]}),new Promise(t=>this.on("change",({chain:r})=>{r?.id===e&&t()}))]),this.chains.find(t=>t.id===e)??{id:e,name:`Chain ${r}`,network:`${r}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(o){let n=this.chains.find(t=>t.id===e);if(!n)throw new i.B({chainId:e,connectorId:this.id});if(4902===o.code||o?.data?.originalError?.code===4902)try{if(await t.request({method:"wallet_addEthereumChain",params:[{chainId:r,chainName:n.name,nativeCurrency:n.nativeCurrency,rpcUrls:[n.rpcUrls.public?.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(n)}]}),await this.getChainId()!==e)throw new u.ab(Error("User rejected switch after adding network."));return n}catch(e){throw new u.ab(e)}if(this.isUserRejectedRequestError(o))throw new u.ab(o);throw new u.x3(o)}}async watchAsset({address:e,decimals:t=18,image:r,symbol:n}){let o=await this.getProvider();if(!o)throw new i.N;return o.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:e,decimals:t,image:r,symbol:n}}})}isUserRejectedRequestError(e){return 4001===e.code}};n=new WeakMap},38026:function(e,t,r){"use strict";r.d(t,{B:function(){return n},N:function(){return i}});var n=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured for connector "${t}".`),this.name="ChainNotConfiguredForConnectorError"}},i=class extends Error{constructor(){super(...arguments),this.name="ConnectorNotFoundError",this.message="Connector not found"}}},53404:function(e,t,r){"use strict";r.d(t,{wR:function(){return f},Ko:function(){return u},ac:function(){return s},U9:function(){return l},qx:function(){return c}});var n=r(28729),i=r(75404);let o=(0,r(71186).a)({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0});var a=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},s=(e,t,r)=>(a(e,t,"read from private field"),r?r.call(e):t.get(e)),u=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},c=(e,t,r,n)=>(a(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),l=(e,t,r)=>(a(e,t,"access private method"),r),f=class extends n{constructor({chains:e=[i.R,o],options:t}){super(),this.chains=e,this.options=t}getBlockExplorerUrls(e){let{default:t,...r}=e.blockExplorers??{};if(t)return[t.url,...Object.values(r).map(e=>e.url)]}isChainUnsupported(e){return!this.chains.some(t=>t.id===e)}setStorage(e){this.storage=e}}},67738:function(e,t,r){"use strict";r.d(t,{z:function(){return N}});var n,i,o,a,s,u,c,l,f,h,d,p,b,m,y,g,v,w,E,_,x=r(53404),C=r(3537),S=r(39803),O=r(48519),D=r(71061),P=r(39730),k=r(21693),A="eip155",I="requestedChains",T="wallet_addEthereumChain",N=class extends x.wR{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),(0,x.Ko)(this,o),(0,x.Ko)(this,s),(0,x.Ko)(this,c),(0,x.Ko)(this,f),(0,x.Ko)(this,d),(0,x.Ko)(this,b),(0,x.Ko)(this,y),(0,x.Ko)(this,v),(0,x.Ko)(this,E),this.id="walletConnect",this.name="WalletConnect",this.ready=!0,(0,x.Ko)(this,n,void 0),(0,x.Ko)(this,i,void 0),this.onAccountsChanged=e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,S.K)(e[0])})},this.onChainChanged=e=>{let t=Number(e),r=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:r}})},this.onDisconnect=()=>{(0,x.U9)(this,b,m).call(this,[]),this.emit("disconnect")},this.onDisplayUri=e=>{this.emit("message",{type:"display_uri",data:e})},this.onConnect=()=>{this.emit("connect",{})},(0,x.U9)(this,o,a).call(this)}async connect({chainId:e,pairingTopic:t}={}){try{let r=e;if(!r){let e=this.storage?.getItem("store"),t=e?.state?.data?.chain?.id;r=t&&!this.isChainUnsupported(t)?t:this.chains[0]?.id}if(!r)throw Error("No chains found on connector.");let n=await this.getProvider();(0,x.U9)(this,f,h).call(this);let i=(0,x.U9)(this,c,l).call(this);if(n.session&&i&&await n.disconnect(),!n.session||i){let e=this.chains.filter(e=>e.id!==r).map(e=>e.id);this.emit("message",{type:"connecting"}),await n.connect({pairingTopic:t,optionalChains:[r,...e]}),(0,x.U9)(this,b,m).call(this,this.chains.map(({id:e})=>e))}let o=await n.enable(),a=(0,S.K)(o[0]),s=await this.getChainId(),u=this.isChainUnsupported(s);return{account:a,chain:{id:s,unsupported:u}}}catch(e){if(/user rejected/i.test(e?.message))throw new O.ab(e);throw e}}async disconnect(){let e=await this.getProvider();try{await e.disconnect()}catch(e){if(!/No matching key/i.test(e.message))throw e}finally{(0,x.U9)(this,d,p).call(this),(0,x.U9)(this,b,m).call(this,[])}}async getAccount(){let{accounts:e}=await this.getProvider();return(0,S.K)(e[0])}async getChainId(){let{chainId:e}=await this.getProvider();return e}async getProvider({chainId:e}={}){return(0,x.ac)(this,n)||await (0,x.U9)(this,o,a).call(this),e&&await this.switchChain(e),(0,x.ac)(this,n)}async getWalletClient({chainId:e}={}){let[t,r]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]),n=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,D.K)({account:r,chain:n,transport:(0,P.P)(t)})}async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),r=(0,x.U9)(this,c,l).call(this);if(!e)return!1;if(r&&t.session){try{await t.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(e){let t=this.chains.find(t=>t.id===e);if(!t)throw new O.x3(Error("chain not found on connector."));try{let r=await this.getProvider(),n=(0,x.U9)(this,v,w).call(this),i=(0,x.U9)(this,E,_).call(this);if(!n.includes(e)&&i.includes(T)){await r.request({method:T,params:[{chainId:(0,k.eC)(t.id),blockExplorerUrls:[t.blockExplorers?.default?.url],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpcUrls.default.http]}]});let n=(0,x.U9)(this,y,g).call(this);n.push(e),(0,x.U9)(this,b,m).call(this,n)}return await r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,k.eC)(e)}]}),t}catch(t){let e="string"==typeof t?t:t?.message;if(/user rejected request/i.test(e))throw new O.ab(t);throw new O.x3(t)}}};n=new WeakMap,i=new WeakMap,o=new WeakSet,a=async function(){return(0,x.ac)(this,i)||"undefined"==typeof window||(0,x.qx)(this,i,(0,x.U9)(this,s,u).call(this)),(0,x.ac)(this,i)},s=new WeakSet,u=async function(){let{EthereumProvider:e}=await Promise.all([r.e(1799),r.e(7264),r.e(4591)]).then(r.bind(r,44591)),t=this.chains.map(({id:e})=>e);if(t.length){let{projectId:r,showQrModal:i=!0,qrModalOptions:o,metadata:a,relayUrl:s}=this.options;(0,x.qx)(this,n,await e.init({showQrModal:i,qrModalOptions:o,projectId:r,optionalChains:t,rpcMap:Object.fromEntries(this.chains.map(e=>[e.id,e.rpcUrls.default.http[0]])),metadata:a,relayUrl:s}))}},c=new WeakSet,l=function(){if((0,x.U9)(this,E,_).call(this).includes(T)||!this.options.isNewChainsStale)return!1;let e=(0,x.U9)(this,y,g).call(this),t=this.chains.map(({id:e})=>e),r=(0,x.U9)(this,v,w).call(this);return(!r.length||!!r.some(e=>t.includes(e)))&&!t.every(t=>e.includes(t))},f=new WeakSet,h=function(){(0,x.ac)(this,n)&&((0,x.U9)(this,d,p).call(this),(0,x.ac)(this,n).on("accountsChanged",this.onAccountsChanged),(0,x.ac)(this,n).on("chainChanged",this.onChainChanged),(0,x.ac)(this,n).on("disconnect",this.onDisconnect),(0,x.ac)(this,n).on("session_delete",this.onDisconnect),(0,x.ac)(this,n).on("display_uri",this.onDisplayUri),(0,x.ac)(this,n).on("connect",this.onConnect))},d=new WeakSet,p=function(){(0,x.ac)(this,n)&&((0,x.ac)(this,n).removeListener("accountsChanged",this.onAccountsChanged),(0,x.ac)(this,n).removeListener("chainChanged",this.onChainChanged),(0,x.ac)(this,n).removeListener("disconnect",this.onDisconnect),(0,x.ac)(this,n).removeListener("session_delete",this.onDisconnect),(0,x.ac)(this,n).removeListener("display_uri",this.onDisplayUri),(0,x.ac)(this,n).removeListener("connect",this.onConnect))},b=new WeakSet,m=function(e){this.storage?.setItem(I,e)},y=new WeakSet,g=function(){return this.storage?.getItem(I)??[]},v=new WeakSet,w=function(){if(!(0,x.ac)(this,n))return[];let e=x.ac(this,n).session?.namespaces;if(!e)return[];let t=(0,C.fK)(e);return t[A]?.chains?.map(e=>parseInt(e.split(":")[1]||""))??[]},E=new WeakSet,_=function(){if(!(0,x.ac)(this,n))return[];let e=x.ac(this,n).session?.namespaces;if(!e)return[];let t=(0,C.fK)(e);return t[A]?.methods??[]}},68757:function(e,t,r){"use strict";r.d(t,{QB:function(){return tU},$j:function(){return t5},_g:function(){return t6},o6:function(){return t0},vZ:function(){return function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){let n,i;if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)&&Array.isArray(r)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();let o=Object.keys(t);if((n=o.length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){let n=o[i];if(n&&!e(t[n],r[n]))return!1}return!0}return t!=t&&r!=r}},zP:function(){return t8},EG:function(){return rl},RQ:function(){return rv},w6:function(){return ry},Lk:function(){return rg},D0:function(){return rf},_X:function(){return tK},Hy:function(){return rh},uV:function(){return t7},gY:function(){return tQ},xz:function(){return re},jr:function(){return rt},wp:function(){return tX},$q:function(){return ro},a4:function(){return rs},l:function(){return rd},If:function(){return rp},uH:function(){return rb},QC:function(){return rm},pC:function(){return rr},Tb:function(){return rn},fq:function(){return ri},n9:function(){return rc}});var n,i,o,a,s,u=r(76373),c=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},l=(e,t,r)=>(c(e,t,"read from private field"),r?r.call(e):t.get(e)),f=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},h=(e,t,r,n)=>(c(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),d=(e,t,r)=>(c(e,t,"access private method"),r),p=r(30315),b=r(42980),m=r(3458),y=r(53883),g=r(94540),v=r(94973),w=r(21693),E=r(28483),_=r(95950),x=r(98458);function C(e,t){if(!(e instanceof _.G))return!1;let r=e.walk(e=>e instanceof x.Lu);return r instanceof x.Lu&&(!!(r.data?.errorName==="ResolverNotFound"||r.data?.errorName==="ResolverWildcardNotSupported"||r.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&r.reason===E.$[50])}var S=r(69809),O=r(56728),D=r(55852),P=r(45008);function k(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,P.v)(t)?t:null}function A(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,w.ci)(t);let r=e.split(".");for(let e=r.length-1;e>=0;e-=1){let n=k(r[e]),i=n?(0,O.O0)(n):(0,D.w)((0,O.qX)(r[e]),"bytes");t=(0,D.w)((0,S.zo)([t,i]),"bytes")}return(0,w.ci)(t)}function I(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let r=new Uint8Array((0,O.qX)(t).byteLength+2),n=0,i=t.split(".");for(let e=0;e<i.length;e++){let t=(0,O.qX)(i[e]);if(t.byteLength>255){var o;t=(0,O.qX)((o=function(e){let t=new Uint8Array(32).fill(0);return e?k(e)||(0,D.w)((0,O.qX)(e)):(0,w.ci)(t)}(i[e]),`[${o.slice(2)}]`))}r[n]=t.length,r.set(t,n+1),n+=t.length+1}return r.byteLength!==n+1?r.slice(0,n+1):r}var T=r(82600),N=r(71878),j=r(48519);function M(e,{abi:t,address:r,args:n,docsPath:i,functionName:o,sender:a}){let{code:s,data:u,message:c,shortMessage:l}=e instanceof x.VQ?e:e instanceof _.G?e.walk(e=>"data"in e)||e.walk():{},f=e instanceof N.wb?new x.Dk({functionName:o}):[3,j.XS.code].includes(s)&&(u||c||l)?new x.Lu({abi:t,data:"object"==typeof u?u.data:u,functionName:o,message:l??c}):e;return new x.uq(f,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:o,sender:a})}var R=r(98873);async function F(e,{abi:t,address:r,args:n,functionName:i,...o}){let a=(0,y.R)({abi:t,args:n,functionName:i});try{let{data:s}=await (0,T.s)(e,R.R,"call")({data:a,to:r,...o});return(0,m.k)({abi:t,args:n,functionName:i,data:s||"0x"})}catch(e){throw M(e,{abi:t,address:r,args:n,docsPath:"/docs/contract/readContract",functionName:i})}}async function B(e,{blockNumber:t,blockTag:r,coinType:n,name:i,universalResolverAddress:o}){let a=o;if(!a){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");a=(0,g.L)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let o=(0,y.R)({abi:b.X$,functionName:"addr",...null!=n?{args:[A(i),BigInt(n)]}:{args:[A(i)]}}),s=await (0,T.s)(e,F,"readContract")({address:a,abi:b.k3,functionName:"resolve",args:[(0,w.NC)(I(i)),o],blockNumber:t,blockTag:r});if("0x"===s[0])return null;let u=(0,m.k)({abi:b.X$,args:null!=n?[A(i),BigInt(n)]:void 0,functionName:"addr",data:s[0]});if("0x"===u||"0x00"===(0,v.f)(u))return null;return u}catch(e){if(C(e,"resolve"))return null;throw e}}class U extends _.G{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class L extends _.G{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class $ extends _.G{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class q extends _.G{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}let W=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,z=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,G=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,H=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function K(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!globalThis.hasOwnProperty("Image"))return!1;return new Promise(t=>{let r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})}}function Q(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function V({uri:e,gatewayUrls:t}){let r=G.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=Q(t?.ipfs,"https://ipfs.io"),i=Q(t?.arweave,"https://arweave.net"),o=e.match(W),{protocol:a,subpath:s,target:u,subtarget:c=""}=o?.groups||{},l="ipns:/"===a||"ipns/"===s,f="ipfs:/"===a||"ipfs/"===s||z.test(e);if(e.startsWith("http")&&!l&&!f){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((l||f)&&u)return{uri:`${n}/${l?"ipns":"ipfs"}/${u}${c}`,isOnChain:!1,isEncoded:!1};if("ar:/"===a&&u)return{uri:`${i}/${u}${c||""}`,isOnChain:!1,isEncoded:!1};let h=e.replace(H,"");if(h.startsWith("<svg")&&(h=`data:image/svg+xml;base64,${btoa(h)}`),h.startsWith("data:")||h.startsWith("{"))return{uri:h,isOnChain:!0,isEncoded:!1};throw new $({uri:e})}function Y(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new U({data:e});return e.image||e.image_url||e.image_data}async function Z({gatewayUrls:e,uri:t}){try{let r=await fetch(t).then(e=>e.json());return await J({gatewayUrls:e,uri:Y(r)})}catch{throw new $({uri:t})}}async function J({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=V({uri:t,gatewayUrls:e});if(n||await K(r))return r;throw new $({uri:t})}async function X(e,{nft:t}){if("erc721"===t.namespace)return F(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return F(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new q({namespace:t.namespace})}async function ee(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?et(e,{gatewayUrls:t,record:r}):J({uri:r,gatewayUrls:t})}async function et(e,{gatewayUrls:t,record:r}){let n=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[r,n,i]=t.split("/"),[o,a]=r.split(":"),[s,u]=n.split(":");if(!o||"eip155"!==o.toLowerCase())throw new L({reason:"Only EIP-155 supported"});if(!a)throw new L({reason:"Chain ID not found"});if(!u)throw new L({reason:"Contract address not found"});if(!i)throw new L({reason:"Token ID not found"});if(!s)throw new L({reason:"ERC namespace not found"});return{chainID:parseInt(a),namespace:s.toLowerCase(),contractAddress:u,tokenID:i}}(r),{uri:i,isOnChain:o,isEncoded:a}=V({uri:await X(e,{nft:n}),gatewayUrls:t});if(o&&(i.includes("data:application/json;base64,")||i.startsWith("{")))return J({uri:Y(JSON.parse(a?atob(i.replace("data:application/json;base64,","")):i)),gatewayUrls:t});let s=n.tokenID;return"erc1155"===n.namespace&&(s=s.replace("0x","").padStart(64,"0")),Z({gatewayUrls:t,uri:i.replace(/(?:0x)?{id}/,s)})}async function er(e,{blockNumber:t,blockTag:r,name:n,key:i,universalResolverAddress:o}){let a=o;if(!a){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");a=(0,g.L)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let o=await (0,T.s)(e,F,"readContract")({address:a,abi:b.k3,functionName:"resolve",args:[(0,w.NC)(I(n)),(0,y.R)({abi:b.nZ,functionName:"text",args:[A(n),i]})],blockNumber:t,blockTag:r});if("0x"===o[0])return null;let s=(0,m.k)({abi:b.nZ,functionName:"text",data:o[0]});return""===s?null:s}catch(e){if(C(e,"resolve"))return null;throw e}}async function en(e,{blockNumber:t,blockTag:r,gatewayUrls:n,name:i,universalResolverAddress:o}){let a=await (0,T.s)(e,er,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:i,universalResolverAddress:o});if(!a)return null;try{return await ee(e,{record:a,gatewayUrls:n})}catch{return null}}async function ei(e,{address:t,blockNumber:r,blockTag:n,universalResolverAddress:i}){let o=i;if(!o){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");o=(0,g.L)({blockNumber:r,chain:e.chain,contract:"ensUniversalResolver"})}let a=`${t.toLowerCase().substring(2)}.addr.reverse`;try{let[i,s]=await (0,T.s)(e,F,"readContract")({address:o,abi:b.du,functionName:"reverse",args:[(0,w.NC)(I(a))],blockNumber:r,blockTag:n});if(t.toLowerCase()!==s.toLowerCase())return null;return i}catch(e){if(C(e,"reverse"))return null;throw e}}async function eo(e,{blockNumber:t,blockTag:r,name:n,universalResolverAddress:i}){let o=i;if(!o){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");o=(0,g.L)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}let[a]=await (0,T.s)(e,F,"readContract")({address:o,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,w.NC)(I(n))],blockNumber:t,blockTag:r});return a}function ea(e,{method:t}){let r={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:n,status:i,transport:o})=>{"success"===i&&t===e&&(r[n]=o.request)}),t=>r[t]||e.request}async function es(e){let t=ea(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}class eu extends _.G{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}var ec=r(77688),el=r(90929),ef=r(40928),eh=r(77804);function ed({abi:e,eventName:t,args:r}){let n=e[0];if(t&&!(n=(0,eh.mE)({abi:e,args:r,name:t})))throw new N.mv(t,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==n.type)throw new N.mv(void 0,{docsPath:"/docs/contract/encodeEventTopics"});let i=(0,ef.t)(n),o=(0,ec.e)(i),a=[];if(r&&"inputs"in n){let e=n.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(r)?r:Object.values(r).length>0?e?.map(e=>r[e.name])??[]:[];t.length>0&&(a=e?.map((e,r)=>Array.isArray(t[r])?t[r].map((n,i)=>ep({param:e,value:t[r][i]})):t[r]?ep({param:e,value:t[r]}):null)??[])}return[o,...a]}function ep({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,D.w)((0,O.O0)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new eu(e.type);return(0,el.E)([e],[t])}async function eb(e,{address:t,abi:r,args:n,eventName:i,fromBlock:o,strict:a,toBlock:s}){let u=ea(e,{method:"eth_newFilter"}),c=i?ed({abi:r,args:n,eventName:i}):void 0,l=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof o?(0,w.eC)(o):o,toBlock:"bigint"==typeof s?(0,w.eC)(s):s,topics:c}]});return{abi:r,args:n,eventName:i,id:l,request:u(l),strict:a,type:"event"}}async function em(e,{address:t,args:r,event:n,events:i,fromBlock:o,strict:a,toBlock:s}={}){let u=i??(n?[n]:void 0),c=ea(e,{method:"eth_newFilter"}),l=[];u&&(l=[u.flatMap(e=>ed({abi:[e],eventName:e.name,args:r}))],n&&(l=l[0]));let f=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof o?(0,w.eC)(o):o,toBlock:"bigint"==typeof s?(0,w.eC)(s):s,...l.length?{topics:l}:{}}]});return{abi:u,args:r,eventName:n?n.name:void 0,fromBlock:o,id:f,request:c(f),strict:a,toBlock:s,type:"event"}}async function ey(e){let t=ea(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}var eg=r(4832),ev=r(89412);async function ew(e,{abi:t,address:r,args:n,functionName:i,...o}){let a=(0,y.R)({abi:t,args:n,functionName:i});try{return await (0,T.s)(e,ev.Q,"estimateGas")({data:a,to:r,...o})}catch(a){let e=o.account?(0,eg.T)(o.account):void 0;throw M(a,{abi:t,address:r,args:n,docsPath:"/docs/contract/estimateContractGas",functionName:i,sender:e?.address})}}var eE=r(77451),e_=r(17976);async function ex(e,{address:t,blockNumber:r,blockTag:n="latest"}){let i=r?(0,w.eC)(r):void 0;return BigInt(await e.request({method:"eth_getBalance",params:[t,i||n]}))}var eC=r(3891);let eS=new Map,eO=new Map;async function eD(e,{cacheKey:t,cacheTime:r=1/0}){let n=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),r=t(e,eS),n=t(e,eO);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}(t),i=n.response.get();if(i&&r>0&&new Date().getTime()-i.created.getTime()<r)return i.data;let o=n.promise.get();o||(o=e(),n.promise.set(o));try{let e=await o;return n.response.set({created:new Date,data:e}),e}finally{n.promise.clear()}}let eP=e=>`blockNumber.${e}`;async function ek(e,{cacheTime:t=e.cacheTime,maxAge:r}={}){return BigInt(await eD(()=>e.request({method:"eth_blockNumber"}),{cacheKey:eP(e.uid),cacheTime:r??t}))}var eA=r(30838);async function eI(e,{blockHash:t,blockNumber:r,blockTag:n="latest"}={}){let i;let o=void 0!==r?(0,w.eC)(r):void 0;return i=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[o||n]}),(0,eA.ly)(i)}async function eT(e,{address:t,blockNumber:r,blockTag:n="latest"}){let i=void 0!==r?(0,w.eC)(r):void 0,o=await e.request({method:"eth_getCode",params:[t,i||n]});if("0x"!==o)return o}var eN=r(13438),ej=r(87425);let eM="/docs/contract/decodeEventLog";function eR({abi:e,data:t,strict:r,topics:n}){let i=r??!0,[o,...a]=n;if(!o)throw new N.FM({docsPath:eM});let s=e.find(e=>"event"===e.type&&o===(0,ec.e)((0,ef.t)(e)));if(!(s&&"name"in s)||"event"!==s.type)throw new N.lC(o,{docsPath:eM});let{name:u,inputs:c}=s,l=c?.some(e=>!("name"in e&&e.name)),f=l?[]:{},h=c.filter(e=>"indexed"in e&&e.indexed);for(let e=0;e<h.length;e++){let t=h[e],r=a[e];if(!r)throw new N.Gy({abiItem:s,param:t});f[t.name||e]=function({param:e,value:t}){return"string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,ej.r)([e],t)||[])[0]}({param:t,value:r})}let d=c.filter(e=>!("indexed"in e&&e.indexed));if(d.length>0){if(t&&"0x"!==t)try{let e=(0,ej.r)(d,t);if(e){if(l)f=[...f,...e];else for(let t=0;t<d.length;t++)f[d[t].name]=e[t]}}catch(e){if(i){if(e instanceof N.xB)throw new N.SM({abiItem:s,data:e.data,params:e.params,size:e.size});throw e}}else if(i)throw new N.SM({abiItem:s,data:"0x",params:d,size:0})}return{eventName:u,args:Object.values(f).length>0?f:void 0}}function eF(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}async function eB(e,{address:t,blockHash:r,fromBlock:n,toBlock:i,event:o,events:a,args:s,strict:u}={}){let c=u??!1,l=a??(o?[o]:void 0),f=[];return l&&(f=[l.flatMap(e=>ed({abi:[e],eventName:e.name,args:s}))],o&&(f=f[0])),(r?await e.request({method:"eth_getLogs",params:[{address:t,topics:f,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:f,fromBlock:"bigint"==typeof n?(0,w.eC)(n):n,toBlock:"bigint"==typeof i?(0,w.eC)(i):i}]})).map(e=>{try{let{eventName:t,args:r}=l?eR({abi:l,data:e.data,topics:e.topics,strict:c}):{eventName:void 0,args:void 0};return eF(e,{args:r,eventName:t})}catch(n){let t,r;if(n instanceof N.SM||n instanceof N.Gy){if(c)return;t=n.abiItem.name,r=n.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return eF(e,{args:r?[]:{},eventName:t})}}).filter(Boolean)}async function eU(e,{abi:t,address:r,args:n,blockHash:i,eventName:o,fromBlock:a,toBlock:s,strict:u}){let c=o?(0,eh.mE)({abi:t,name:o}):void 0,l=c?void 0:t.filter(e=>"event"===e.type);return(0,T.s)(e,eB,"getLogs")({address:r,args:n,blockHash:i,event:c,events:l,fromBlock:a,toBlock:s,strict:u})}async function eL(e,{blockCount:t,blockNumber:r,blockTag:n="latest",rewardPercentiles:i}){var o;let a=r?(0,w.eC)(r):void 0;return{baseFeePerGas:(o=await e.request({method:"eth_feeHistory",params:[(0,w.eC)(t),a||n,i]})).baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:o.gasUsedRatio,oldestBlock:BigInt(o.oldestBlock),reward:o.reward?.map(e=>e.map(e=>BigInt(e)))}}async function e$(e,{filter:t}){let r="strict"in t&&t.strict;return(await t.request({method:"eth_getFilterChanges",params:[t.id]})).map(e=>{if("string"==typeof e)return e;try{let{eventName:n,args:i}="abi"in t&&t.abi?eR({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return eF(e,{args:i,eventName:n})}catch(i){let r,n;if(i instanceof N.SM||i instanceof N.Gy){if("strict"in t&&t.strict)return;r=i.abiItem.name,n=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return eF(e,{args:n?[]:{},eventName:r})}}).filter(Boolean)}async function eq(e,{filter:t}){let r=t.strict??!1;return(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>{try{let{eventName:n,args:i}="abi"in t&&t.abi?eR({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return eF(e,{args:i,eventName:n})}catch(i){let r,n;if(i instanceof N.SM||i instanceof N.Gy){if("strict"in t&&t.strict)return;r=i.abiItem.name,n=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return eF(e,{args:n?[]:{},eventName:r})}}).filter(Boolean)}var eW=r(75188);async function ez(e,{address:t,blockNumber:r,blockTag:n,storageKeys:i}){var o;let a=void 0!==r?(0,w.eC)(r):void 0;return{...o=await e.request({method:"eth_getProof",params:[t,i,a||(n??"latest")]}),balance:o.balance?BigInt(o.balance):void 0,nonce:o.nonce?(0,eA.ly)(o.nonce):void 0,storageProof:o.storageProof?o.storageProof.map(e=>({...e,value:BigInt(e.value)})):void 0}}async function eG(e,{address:t,blockNumber:r,blockTag:n="latest",slot:i}){let o=void 0!==r?(0,w.eC)(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,i,o||n]})}var eH=r(44818),eK=r(52017);async function eQ(e,{blockHash:t,blockNumber:r,blockTag:n,hash:i,index:o}){let a=n||"latest",s=void 0!==r?(0,w.eC)(r):void 0,u=null;if(i?u=await e.request({method:"eth_getTransactionByHash",params:[i]}):t?u=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,w.eC)(o)]}):(s||a)&&(u=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[s||a,(0,w.eC)(o)]})),!u)throw new eH.Bh({blockHash:t,blockNumber:r,blockTag:a,hash:i,index:o});return(e.chain?.formatters?.transaction?.format||eK.Tr)(u)}async function eV(e,{hash:t,transactionReceipt:r}){let[n,i]=await Promise.all([(0,T.s)(e,ek,"getBlockNumber")({}),t?(0,T.s)(e,eQ,"getBlockNumber")({hash:t}):void 0]),o=r?.blockNumber||i?.blockNumber;return o?n-o+1n:0n}var eY=r(31742);let eZ={"0x0":"reverted","0x1":"success"};async function eJ(e,{hash:t}){let r=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!r)throw new eH.Yb({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||function(e){return{...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>eF(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,eA.ly)(e.transactionIndex):null,status:e.status?eZ[e.status]:null,type:e.type?eK.c8[e.type]||e.type:null}})(r)}async function eX(e,t){let{allowFailure:r=!0,batchSize:n,blockNumber:i,blockTag:o,contracts:a,multicallAddress:s}=t,u=n??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),c=s;if(!c){if(!e.chain)throw Error("client chain not configured. multicallAddress is required.");c=(0,g.L)({blockNumber:i,chain:e.chain,contract:"multicall3"})}let l=[[]],f=0,h=0;for(let e=0;e<a.length;e++){let{abi:t,address:n,args:i,functionName:o}=a[e];try{let e=(0,y.R)({abi:t,args:i,functionName:o});h+=(e.length-2)/2,u>0&&h>u&&l[f].length>0&&(f++,h=(e.length-2)/2,l[f]=[]),l[f]=[...l[f],{allowFailure:!0,callData:e,target:n}]}catch(a){let e=M(a,{abi:t,address:n,args:i,docsPath:"/docs/contract/multicall",functionName:o});if(!r)throw e;l[f]=[...l[f],{allowFailure:!0,callData:"0x",target:n}]}}let d=await Promise.allSettled(l.map(t=>(0,T.s)(e,F,"readContract")({abi:b.F8,address:c,args:[t],blockNumber:i,blockTag:o,functionName:"aggregate3"}))),p=[];for(let e=0;e<d.length;e++){let t=d[e];if("rejected"===t.status){if(!r)throw t.reason;for(let r=0;r<l[e].length;r++)p.push({status:"failure",error:t.reason,result:void 0});continue}let n=t.value;for(let t=0;t<n.length;t++){let{returnData:i,success:o}=n[t],{callData:s}=l[e][t],{abi:u,address:c,functionName:f,args:h}=a[p.length];try{if("0x"===s)throw new N.wb;if(!o)throw new x.VQ({data:i});let e=(0,m.k)({abi:u,args:h,data:i,functionName:f});p.push(r?{result:e,status:"success"}:e)}catch(t){let e=M(t,{abi:u,address:c,args:h,docsPath:"/docs/contract/multicall",functionName:f});if(!r)throw e;p.push({error:e,result:void 0,status:"failure"})}}}if(p.length!==a.length)throw new _.G("multicall results mismatch");return p}async function e0(e,{abi:t,address:r,args:n,dataSuffix:i,functionName:o,...a}){let s=a.account?(0,eg.T)(a.account):void 0,u=(0,y.R)({abi:t,args:n,functionName:o});try{let{data:s}=await (0,T.s)(e,R.R,"call")({batch:!1,data:`${u}${i?i.replace("0x",""):""}`,to:r,...a});return{result:(0,m.k)({abi:t,args:n,functionName:o,data:s||"0x"}),request:{abi:t,address:r,args:n,dataSuffix:i,functionName:o,...a}}}catch(e){throw M(e,{abi:t,address:r,args:n,docsPath:"/docs/contract/simulateContract",functionName:o,sender:s?.address})}}async function e1(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}BigInt(0),BigInt(1),BigInt(2);var e2=r(12732);async function e6(e,{address:t,hash:r,signature:n,...i}){let o=(0,P.v)(n)?n:(0,w.NC)(n);try{let{data:n}=await (0,T.s)(e,R.R,"call")({data:(0,e2.w)({abi:b.$o,args:[t,r,o],bytecode:"0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"}),...i});return function(e,t){let r=(0,P.v)(e)?(0,O.O0)(e):e;return function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(r,(0,P.v)(t)?(0,O.O0)(t):t)}(n??"0x0","0x1")}catch(e){if(e instanceof x.cg)return!1;throw e}}async function e3(e,{address:t,message:r,signature:n,...i}){return e6(e,{address:t,hash:function(e,t){let r="string"==typeof e?(0,O.qX)(e):e.raw instanceof Uint8Array?e.raw:(0,O.O0)(e.raw),n=(0,O.qX)(`Ethereum Signed Message:
${r.length}`);return(0,D.w)((0,S.zo)([n,r]),void 0)}(r),signature:n,...i})}var e5=r(29578);function e8({data:e,primaryType:t,types:r}){let n=function e({data:t,primaryType:r,types:n}){let i=[{type:"bytes32"}],o=[function({primaryType:e,types:t}){let r=(0,w.NC)(function({primaryType:e,types:t}){let r="",n=function e({primaryType:t,types:r},n=new Set){let i=t.match(/^\w*/u),o=i?.[0];if(n.has(o)||void 0===r[o])return n;for(let t of(n.add(o),r[o]))e({primaryType:t.type,types:r},n);return n}({primaryType:e,types:t});for(let i of(n.delete(e),[e,...Array.from(n).sort()]))r+=`${i}(${t[i].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return r}({primaryType:e,types:t}));return(0,D.w)(r)}({primaryType:r,types:n})];for(let a of n[r]){let[r,s]=function t({types:r,name:n,type:i,value:o}){if(void 0!==r[i])return[{type:"bytes32"},(0,D.w)(e({data:o,primaryType:i,types:r}))];if("bytes"===i){let e=o.length%2?"0":"";return o=`0x${e+o.slice(2)}`,[{type:"bytes32"},(0,D.w)(o)]}if("string"===i)return[{type:"bytes32"},(0,D.w)((0,w.NC)(o))];if(i.lastIndexOf("]")===i.length-1){let e=i.slice(0,i.lastIndexOf("[")),a=o.map(i=>t({name:n,type:e,types:r,value:i}));return[{type:"bytes32"},(0,D.w)((0,el.E)(a.map(([e])=>e),a.map(([,e])=>e)))]}return[{type:i},o]}({types:n,name:a.name,type:a.type,value:t[a.name]});i.push(r),o.push(s)}return(0,el.E)(i,o)}({data:e,primaryType:t,types:r});return(0,D.w)(n)}async function e4(e,{address:t,signature:r,message:n,primaryType:i,types:o,domain:a,...s}){return e6(e,{address:t,hash:function({domain:e,message:t,primaryType:r,types:n}){let i=void 0===e?{}:e,o={EIP712Domain:(0,e5.cj)({domain:i}),...n};(0,e5.iC)({domain:i,message:t,primaryType:r,types:o});let a=["0x1901"];return i&&a.push(function({domain:e,types:t}){return e8({data:e,primaryType:"EIP712Domain",types:t})}({domain:i,types:o})),"EIP712Domain"!==r&&a.push(e8({data:t,primaryType:r,types:o})),(0,D.w)((0,S.zo)(a))}({message:n,primaryType:i,types:o,domain:a}),signature:r,...s})}var e9=r(71492);let e7=new Map,te=new Map,tt=0;function tr(e,t,r){let n=++tt,i=()=>e7.get(e)||[],o=()=>{let t=i();e7.set(e,t.filter(e=>e.id!==n))},a=()=>{let t=te.get(e);1===i().length&&t&&t(),o()},s=i();if(e7.set(e,[...s,{id:n,fns:t}]),s&&s.length>0)return a;let u={};for(let e in t)u[e]=(...t)=>{let r=i();if(0!==r.length)for(let n of r)n.fns[e]?.(...t)};let c=r(u);return"function"==typeof c&&te.set(e,c),a}var tn=r(36063),ti=r(71891),to=r(21810);function ta(e,{emitOnBegin:t,initialWaitTime:r,interval:n}){let i=!0,o=()=>i=!1;return(async()=>{let a;t&&(a=await e({unpoll:o}));let s=await r?.(a)??n;await (0,to.D)(s);let u=async()=>{i&&(await e({unpoll:o}),await (0,to.D)(n),u())};u()})(),o}function ts(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:n,onError:i,poll:o,pollingInterval:a=e.pollingInterval}){let s,u,c;return(void 0!==o?o:"webSocket"!==e.transport.type)?tr((0,ti.P)(["watchBlockNumber",e.uid,t,r,a]),{onBlockNumber:n,onError:i},n=>ta(async()=>{try{let t=await (0,T.s)(e,ek,"getBlockNumber")({cacheTime:0});if(s){if(t===s)return;if(t-s>1&&r)for(let e=s+1n;e<t;e++)n.onBlockNumber(e,s),s=e}(!s||t>s)&&(n.onBlockNumber(t,s),s=t)}catch(e){n.onError?.(e)}},{emitOnBegin:t,interval:a})):(u=!0,c=()=>u=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(e){if(!u)return;let t=(0,eA.y_)(e.result?.number);n(t,s),s=t},onError(e){i?.(e)}});c=t,u||c()}catch(e){i?.(e)}})(),c)}async function tu(e,{confirmations:t=1,hash:r,onReplaced:n,pollingInterval:i=e.pollingInterval,timeout:o}){let a,s,u;let c=(0,ti.P)(["waitForTransactionReceipt",e.uid,r]),l=!1;return new Promise((f,h)=>{o&&setTimeout(()=>h(new eH.mc({hash:r})),o);let d=tr(c,{onReplaced:n,resolve:f,reject:h},n=>{let o=(0,T.s)(e,ts,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:i,async onBlockNumber(i){if(l)return;let c=i,f=e=>{o(),e(),d()};try{if(u){if(t>1&&(!u.blockNumber||c-u.blockNumber+1n<t))return;f(()=>n.resolve(u));return}if(a||(l=!0,await (0,tn.J)(async()=>{(a=await (0,T.s)(e,eQ,"getTransaction")({hash:r})).blockNumber&&(c=a.blockNumber)},{delay:({count:e})=>200*~~(1<<e),retryCount:6}),l=!1),u=await (0,T.s)(e,eJ,"getTransactionReceipt")({hash:r}),t>1&&(!u.blockNumber||c-u.blockNumber+1n<t))return;f(()=>n.resolve(u))}catch(r){if(a&&(r instanceof eH.Bh||r instanceof eH.Yb))try{s=a,l=!0;let r=await (0,tn.J)(()=>(0,T.s)(e,eC.Q,"getBlock")({blockNumber:c,includeTransactions:!0}),{delay:({count:e})=>200*~~(1<<e),retryCount:6,shouldRetry:({error:e})=>e instanceof e9.f});l=!1;let i=r.transactions.find(({from:e,nonce:t})=>e===s.from&&t===s.nonce);if(!i||(u=await (0,T.s)(e,eJ,"getTransactionReceipt")({hash:i.hash}),t>1&&(!u.blockNumber||c-u.blockNumber+1n<t)))return;let o="replaced";i.to===s.to&&i.value===s.value?o="repriced":i.from===i.to&&0n===i.value&&(o="cancelled"),f(()=>{n.onReplaced?.({reason:o,replacedTransaction:s,transaction:i,transactionReceipt:u}),n.resolve(u)})}catch(e){f(()=>n.reject(e))}else f(()=>n.reject(r))}}})})})}var tc=r(78723),tl=r(40044),tf=r(73971);function th(e){return{call:t=>(0,R.R)(e,t),createBlockFilter:()=>es(e),createContractEventFilter:t=>eb(e,t),createEventFilter:t=>em(e,t),createPendingTransactionFilter:()=>ey(e),estimateContractGas:t=>ew(e,t),estimateGas:t=>(0,ev.Q)(e,t),getBalance:t=>ex(e,t),getBlock:t=>(0,eC.Q)(e,t),getBlockNumber:t=>ek(e,t),getBlockTransactionCount:t=>eI(e,t),getBytecode:t=>eT(e,t),getChainId:()=>(0,eN.L)(e),getContractEvents:t=>eU(e,t),getEnsAddress:t=>B(e,t),getEnsAvatar:t=>en(e,t),getEnsName:t=>ei(e,t),getEnsResolver:t=>eo(e,t),getEnsText:t=>er(e,t),getFeeHistory:t=>eL(e,t),estimateFeesPerGas:t=>(0,eE.X)(e,t),getFilterChanges:t=>e$(e,t),getFilterLogs:t=>eq(e,t),getGasPrice:()=>(0,eW.o)(e),getLogs:t=>eB(e,t),getProof:t=>ez(e,t),estimateMaxPriorityFeePerGas:t=>(0,e_._)(e,t),getStorageAt:t=>eG(e,t),getTransaction:t=>eQ(e,t),getTransactionConfirmations:t=>eV(e,t),getTransactionCount:t=>(0,eY.K)(e,t),getTransactionReceipt:t=>eJ(e,t),multicall:t=>eX(e,t),prepareTransactionRequest:t=>(0,tl.Z)(e,t),readContract:t=>F(e,t),sendRawTransaction:t=>(0,tf.p)(e,t),simulateContract:t=>e0(e,t),verifyMessage:t=>e3(e,t),verifyTypedData:t=>e4(e,t),uninstallFilter:t=>e1(e,t),waitForTransactionReceipt:t=>tu(e,t),watchBlocks:t=>(function(e,{blockTag:t="latest",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:i,onError:o,includeTransactions:a,poll:s,pollingInterval:u=e.pollingInterval}){let c,l,f;let h=void 0!==s?s:"webSocket"!==e.transport.type,d=a??!1;return h?tr((0,ti.P)(["watchBlocks",e.uid,r,n,d,u]),{onBlock:i,onError:o},i=>ta(async()=>{try{let n=await (0,T.s)(e,eC.Q,"getBlock")({blockTag:t,includeTransactions:d});if(n.number&&c?.number){if(n.number===c.number)return;if(n.number-c.number>1&&r)for(let t=c?.number+1n;t<n.number;t++){let r=await (0,T.s)(e,eC.Q,"getBlock")({blockNumber:t,includeTransactions:d});i.onBlock(r,c),c=r}}(!c?.number||"pending"===t&&!n?.number||n.number&&n.number>c.number)&&(i.onBlock(n,c),c=n)}catch(e){i.onError?.(e)}},{emitOnBegin:n,interval:u})):(l=!0,f=()=>l=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(t){if(!l)return;let r=(e.chain?.formatters?.block?.format||tc.Z)(t.result);i(r,c),c=r},onError(e){o?.(e)}});f=t,l||f()}catch(e){o?.(e)}})(),f)})(e,t),watchBlockNumber:t=>ts(e,t),watchContractEvent:t=>(function(e,{abi:t,address:r,args:n,batch:i=!0,eventName:o,onError:a,onLogs:s,poll:u,pollingInterval:c=e.pollingInterval,strict:l}){let f,h;return(void 0!==u?u:"webSocket"!==e.transport.type)?(()=>{let u=(0,ti.P)(["watchContractEvent",r,n,i,e.uid,o,c]),f=l??!1;return tr(u,{onLogs:s,onError:a},a=>{let s,u;let l=!1,h=ta(async()=>{if(!l){try{u=await (0,T.s)(e,eb,"createContractEventFilter")({abi:t,address:r,args:n,eventName:o,strict:f})}catch{}l=!0;return}try{let c;if(u)c=await (0,T.s)(e,e$,"getFilterChanges")({filter:u});else{let i=await (0,T.s)(e,ek,"getBlockNumber")({});c=s&&s!==i?await (0,T.s)(e,eU,"getContractEvents")({abi:t,address:r,args:n,eventName:o,fromBlock:s+1n,toBlock:i,strict:f}):[],s=i}if(0===c.length)return;if(i)a.onLogs(c);else for(let e of c)a.onLogs([e])}catch(e){u&&e instanceof j.yR&&(l=!1),a.onError?.(e)}},{emitOnBegin:!0,interval:c});return async()=>{u&&await (0,T.s)(e,e1,"uninstallFilter")({filter:u}),h()}})})():(f=!0,h=()=>f=!1,(async()=>{try{let i=o?ed({abi:t,eventName:o,args:n}):[],{unsubscribe:u}=await e.transport.subscribe({params:["logs",{address:r,topics:i}],onData(e){if(!f)return;let r=e.result;try{let{eventName:e,args:n}=eR({abi:t,data:r.data,topics:r.topics,strict:l}),i=eF(r,{args:n,eventName:e});s([i])}catch(i){let e,t;if(i instanceof N.SM||i instanceof N.Gy){if(l)return;e=i.abiItem.name,t=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let n=eF(r,{args:t?[]:{},eventName:e});s([n])}},onError(e){a?.(e)}});h=u,f||h()}catch(e){a?.(e)}})(),h)})(e,t),watchEvent:t=>(function(e,{address:t,args:r,batch:n=!0,event:i,events:o,onError:a,onLogs:s,poll:u,pollingInterval:c=e.pollingInterval,strict:l}){let f,h;let d=void 0!==u?u:"webSocket"!==e.transport.type,p=l??!1;return d?tr((0,ti.P)(["watchEvent",t,r,n,e.uid,i,c]),{onLogs:s,onError:a},a=>{let s,u;let l=!1,f=ta(async()=>{if(!l){try{u=await (0,T.s)(e,em,"createEventFilter")({address:t,args:r,event:i,events:o,strict:p})}catch{}l=!0;return}try{let c;if(u)c=await (0,T.s)(e,e$,"getFilterChanges")({filter:u});else{let n=await (0,T.s)(e,ek,"getBlockNumber")({});c=s&&s!==n?await (0,T.s)(e,eB,"getLogs")({address:t,args:r,event:i,events:o,fromBlock:s+1n,toBlock:n}):[],s=n}if(0===c.length)return;if(n)a.onLogs(c);else for(let e of c)a.onLogs([e])}catch(e){u&&e instanceof j.yR&&(l=!1),a.onError?.(e)}},{emitOnBegin:!0,interval:c});return async()=>{u&&await (0,T.s)(e,e1,"uninstallFilter")({filter:u}),f()}}):(f=!0,h=()=>f=!1,(async()=>{try{let n=o??(i?[i]:void 0),u=[];n&&(u=[n.flatMap(e=>ed({abi:[e],eventName:e.name,args:r}))],i&&(u=u[0]));let{unsubscribe:c}=await e.transport.subscribe({params:["logs",{address:t,topics:u}],onData(e){if(!f)return;let t=e.result;try{let{eventName:e,args:r}=eR({abi:n,data:t.data,topics:t.topics,strict:p}),i=eF(t,{args:r,eventName:e});s([i])}catch(i){let e,r;if(i instanceof N.SM||i instanceof N.Gy){if(l)return;e=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let n=eF(t,{args:r?[]:{},eventName:e});s([n])}},onError(e){a?.(e)}});h=c,f||h()}catch(e){a?.(e)}})(),h)})(e,t),watchPendingTransactions:t=>(function(e,{batch:t=!0,onError:r,onTransactions:n,poll:i,pollingInterval:o=e.pollingInterval}){let a,s;return(void 0!==i?i:"webSocket"!==e.transport.type)?tr((0,ti.P)(["watchPendingTransactions",e.uid,t,o]),{onTransactions:n,onError:r},r=>{let n;let i=ta(async()=>{try{if(!n)try{n=await (0,T.s)(e,ey,"createPendingTransactionFilter")({});return}catch(e){throw i(),e}let o=await (0,T.s)(e,e$,"getFilterChanges")({filter:n});if(0===o.length)return;if(t)r.onTransactions(o);else for(let e of o)r.onTransactions([e])}catch(e){r.onError?.(e)}},{emitOnBegin:!0,interval:o});return async()=>{n&&await (0,T.s)(e,e1,"uninstallFilter")({filter:n}),i()}}):(a=!0,s=()=>a=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!a)return;let t=e.result;n([t])},onError(e){r?.(e)}});s=t,a||s()}catch(e){r?.(e)}})(),s)})(e,t)}}function td(e){let{key:t="public",name:r="Public Client"}=e;return(0,p.e)({...e,key:t,name:r,type:"publicClient"}).extend(th)}var tp=r(35215),tb=r(68124);function tm(e,t={}){let{key:r="fallback",name:n="Fallback",rank:i=!1,retryCount:o,retryDelay:a}=t;return({chain:t,pollingInterval:s=4e3,timeout:u})=>{let c=e,l=()=>{},f=(0,tb.q)({key:r,name:n,async request({method:e,params:r}){let n=async(i=0)=>{let o=c[i]({chain:t,retryCount:0,timeout:u});try{let t=await o.request({method:e,params:r});return l({method:e,params:r,response:t,transport:o,status:"success"}),t}catch(t){if(l({error:t,method:e,params:r,transport:o,status:"error"}),(0,tp.y)(t)||i===c.length-1)throw t;return n(i+1)}};return n()},retryCount:o,retryDelay:a,type:"fallback"},{onResponse:e=>l=e,transports:c.map(e=>e({chain:t,retryCount:0}))});if(i){let e="object"==typeof i?i:{};!function({chain:e,interval:t=4e3,onTransports:r,sampleCount:n=10,timeout:i=1e3,transports:o,weights:a={}}){let{stability:s=.7,latency:u=.3}=a,c=[],l=async()=>{let a=await Promise.all(o.map(async t=>{let r,n;let o=t({chain:e,retryCount:0,timeout:i}),a=Date.now();try{await o.request({method:"net_listening"}),n=1}catch{n=0}finally{r=Date.now()}return{latency:r-a,success:n}}));c.push(a),c.length>n&&c.shift();let f=Math.max(...c.map(e=>Math.max(...e.map(({latency:e})=>e))));r(o.map((e,t)=>{let r=c.map(e=>e[t].latency),n=r.reduce((e,t)=>e+t,0)/r.length,i=c.map(e=>e[t].success),o=i.reduce((e,t)=>e+t,0)/i.length;return 0===o?[0,t]:[u*(1-n/f)+s*o,t]}).sort((e,t)=>t[0]-e[0]).map(([,e])=>o[e])),await (0,to.D)(t),l()};l()}({chain:t,interval:e.interval??s,onTransports:e=>c=e,sampleCount:e.sampleCount,timeout:e.timeout,transports:c,weights:e.weights})}return f}}var ty=r(20722);class tg extends _.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}var tv=r(33668);let tw=function(){if("undefined"!=typeof WebSocket)return WebSocket;if(void 0!==global.WebSocket)return global.WebSocket;if(void 0!==window.WebSocket)return window.WebSocket;if(void 0!==self.WebSocket)return self.WebSocket;throw Error("`WebSocket` is not supported in this environment")}();function tE(e,{errorInstance:t=Error("timed out"),timeout:r,signal:n}){return new Promise((i,o)=>{(async()=>{let a;try{let s=new AbortController;r>0&&(a=setTimeout(()=>{n?s.abort():o(t)},r)),i(await e({signal:s?.signal}))}catch(e){"AbortError"===e.name&&o(t),o(e)}finally{clearTimeout(a)}})()})}let t_=0;async function tx(e,{body:t,fetchOptions:r={},timeout:n=1e4}){let{headers:i,method:o,signal:a}=r;try{let s;let u=await tE(async({signal:s})=>await fetch(e,{...r,body:Array.isArray(t)?(0,ti.P)(t.map(e=>({jsonrpc:"2.0",id:e.id??t_++,...e}))):(0,ti.P)({jsonrpc:"2.0",id:t.id??t_++,...t}),headers:{...i,"Content-Type":"application/json"},method:o||"POST",signal:a||(n>0?s:void 0)}),{errorInstance:new ty.W5({body:t,url:e}),timeout:n,signal:!0});if(s=u.headers.get("Content-Type")?.startsWith("application/json")?await u.json():await u.text(),!u.ok)throw new ty.Gg({body:t,details:(0,ti.P)(s.error)||u.statusText,headers:u.headers,status:u.status,url:e});return s}catch(r){if(r instanceof ty.Gg||r instanceof ty.W5)throw r;throw new ty.Gg({body:t,details:r.message,url:e})}}let tC=new Map;async function tS(e){let t=tC.get(e);if(t)return t;let{schedule:r}=(0,tv.S)({id:e,fn:async()=>{let r=new tw(e),n=new Map,i=new Map,o=({data:e})=>{let t=JSON.parse(e),r="eth_subscription"===t.method,o=r?t.params.subscription:t.id,a=r?i:n,s=a.get(o);s&&s({data:e}),r||a.delete(o)},a=()=>{tC.delete(e),r.removeEventListener("close",a),r.removeEventListener("message",o)};return r.addEventListener("close",a),r.addEventListener("message",o),r.readyState===tw.CONNECTING&&await new Promise((e,t)=>{r&&(r.onopen=e,r.onerror=t)}),t=Object.assign(r,{requests:n,subscriptions:i}),tC.set(e,t),[t]}}),[n,[i]]=await r();return i}let tO={http:tx,webSocket:function(e,{body:t,onResponse:r}){if(e.readyState===e.CLOSED||e.readyState===e.CLOSING)throw new ty.c9({body:t,url:e.url,details:"Socket is closed."});let n=t_++,i=({data:o})=>{let a=JSON.parse(o);("number"!=typeof a.id||n===a.id)&&(r?.(a),"eth_subscribe"===t.method&&"string"==typeof a.result&&e.subscriptions.set(a.result,i),"eth_unsubscribe"===t.method&&e.subscriptions.delete(t.params?.[0]))};return e.requests.set(n,i),e.send(JSON.stringify({jsonrpc:"2.0",...t,id:n})),e},webSocketAsync:async function(e,{body:t,timeout:r=1e4}){return tE(()=>new Promise(r=>tO.webSocket(e,{body:t,onResponse:r})),{errorInstance:new ty.W5({body:t,url:e.url}),timeout:r})}};var tD=r(38026),tP=r(36238);let tk=e=>(t,r,n)=>{let i=n.subscribe;return n.subscribe=(e,t,r)=>{let o=e;if(t){let i=(null==r?void 0:r.equalityFn)||Object.is,a=e(n.getState());o=r=>{let n=e(r);if(!i(a,n)){let e=a;t(a=n,e)}},(null==r?void 0:r.fireImmediately)&&t(a,a)}return i(o)},e(t,r,n)},tA=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>tA(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>tA(t)(e)}}},tI=(e,t)=>(r,n,i)=>{let o,a,s={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},u=!1,c=new Set,l=new Set;try{o=s.getStorage()}catch(e){}if(!o)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...e)},n,i);let f=tA(s.serialize),h=()=>{let e;let t=f({state:s.partialize({...n()}),version:s.version}).then(e=>o.setItem(s.name,e)).catch(t=>{e=t});if(e)throw e;return t},d=i.setState;i.setState=(e,t)=>{d(e,t),h()};let p=e((...e)=>{r(...e),h()},n,i),b=()=>{var e;if(!o)return;u=!1,c.forEach(e=>e(n()));let t=(null==(e=s.onRehydrateStorage)?void 0:e.call(s,n()))||void 0;return tA(o.getItem.bind(o))(s.name).then(e=>{if(e)return s.deserialize(e)}).then(e=>{if(e){if("number"!=typeof e.version||e.version===s.version)return e.state;if(s.migrate)return s.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return r(a=s.merge(e,null!=(t=n())?t:p),!0),h()}).then(()=>{null==t||t(a,void 0),u=!0,l.forEach(e=>e(a))}).catch(e=>{null==t||t(void 0,e)})};return i.persist={setOptions:e=>{s={...s,...e},e.getStorage&&(o=e.getStorage())},clearStorage:()=>{null==o||o.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>b(),hasHydrated:()=>u,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},b(),a||p},tT=(e,t)=>(r,n,i)=>{let o,a={storage:function(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var n;let i=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(n=r.getItem(e))?n:null;return o instanceof Promise?o.then(i):i(o)},setItem:(e,n)=>r.setItem(e,JSON.stringify(n,null==t?void 0:t.replacer)),removeItem:e=>r.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1,u=new Set,c=new Set,l=a.storage;if(!l)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...e)},n,i);let f=()=>{let e=a.partialize({...n()});return l.setItem(a.name,{state:e,version:a.version})},h=i.setState;i.setState=(e,t)=>{h(e,t),f()};let d=e((...e)=>{r(...e),f()},n,i),p=()=>{var e,t;if(!l)return;s=!1,u.forEach(e=>{var t;return e(null!=(t=n())?t:d)});let i=(null==(t=a.onRehydrateStorage)?void 0:t.call(a,null!=(e=n())?e:d))||void 0;return tA(l.getItem.bind(l))(a.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return e.state;if(a.migrate)return a.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return r(o=a.merge(e,null!=(t=n())?t:d),!0),f()}).then(()=>{null==i||i(o,void 0),o=n(),s=!0,c.forEach(e=>e(o))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(l=e.storage)},clearStorage:()=>{null==l||l.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>p(),hasHydrated:()=>s,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},a.skipHydration||p(),o||d},tN=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),tI(e,t)):tT(e,t),tj=e=>{let t;let r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,o={setState:n,getState:i,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(n,i,o),o},tM=e=>e?tj(e):tj;var tR=r(16775);function tF(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[r,n]of e)if(!Object.is(n,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Object.is(e[r[n]],t[r[n]]))return!1;return!0}var tB=r(39803);function tU(e,t,{batch:r={multicall:{wait:32}},pollingInterval:n=4e3,rank:i,retryCount:o,retryDelay:a,stallTimeout:s}={}){if(!e.length)throw Error("must have at least one chain");let u=[],c={},l={};for(let r of e){let e=!1;for(let n of t){let t=n(r);t&&(e=!0,u.some(({id:e})=>e===r.id)||(u=[...u,t.chain]),c[r.id]=[...c[r.id]||[],...t.rpcUrls.http],t.rpcUrls.webSocket&&(l[r.id]=[...l[r.id]||[],...t.rpcUrls.webSocket]))}if(!e)throw Error(`Could not find valid provider configuration for chain "${r.name}".

You may need to add \`jsonRpcProvider\` to \`configureChains\` with the chain's RPC URLs.
Read more: https://wagmi.sh/core/providers/jsonRpc`)}return{chains:u,publicClient:({chainId:t})=>{let l=u.find(e=>e.id===t)??e[0],f=c[l.id];if(!f||!f[0])throw Error(`No providers configured for chain "${l.id}"`);return Object.assign(td({batch:r,chain:l,transport:tm(f.map(e=>(function(e,t={}){let{batch:r,fetchOptions:n,key:i="http",name:o="HTTP JSON-RPC",retryDelay:a}=t;return({chain:s,retryCount:u,timeout:c})=>{let{batchSize:l=1e3,wait:f=0}="object"==typeof r?r:{},h=t.retryCount??u,d=c??t.timeout??1e4,p=e||s?.rpcUrls.default.http[0];if(!p)throw new tg;return(0,tb.q)({key:i,name:o,async request({method:t,params:i}){let o={method:t,params:i},{schedule:a}=(0,tv.S)({id:`${e}`,wait:f,shouldSplitBatch:e=>e.length>l,fn:e=>tO.http(p,{body:e,fetchOptions:n,timeout:d}),sort:(e,t)=>e.id-t.id}),s=async e=>r?a(e):[await tO.http(p,{body:e,fetchOptions:n,timeout:d})],[{error:u,result:c}]=await s(o);if(u)throw new ty.bs({body:o,error:u,url:p});return c},retryCount:h,retryDelay:a,timeout:d,type:"http"},{fetchOptions:n,url:e})}})(e,{timeout:s})),{rank:i,retryCount:o,retryDelay:a}),pollingInterval:n}),{chains:u})},webSocketPublicClient:({chainId:t})=>{let c=u.find(e=>e.id===t)??e[0],f=l[c.id];if(f&&f[0])return Object.assign(td({batch:r,chain:c,transport:tm(f.map(e=>(function(e,t={}){let{key:r="webSocket",name:n="WebSocket JSON-RPC",retryDelay:i}=t;return({chain:o,retryCount:a,timeout:s})=>{let u=t.retryCount??a,c=s??t.timeout??1e4,l=e||o?.rpcUrls.default.webSocket?.[0];if(!l)throw new tg;return(0,tb.q)({key:r,name:n,async request({method:e,params:t}){let r={method:e,params:t},n=await tS(l),{error:i,result:o}=await tO.webSocketAsync(n,{body:r,timeout:c});if(i)throw new ty.bs({body:r,error:i,url:l});return o},retryCount:u,retryDelay:i,timeout:c,type:"webSocket"},{getSocket:()=>tS(l),async subscribe({params:e,onData:t,onError:r}){let n=await tS(l),{result:i}=await new Promise((i,o)=>tO.webSocket(n,{body:{method:"eth_subscribe",params:e},onResponse(e){if(e.error){o(e.error),r?.(e.error);return}if("number"==typeof e.id){i(e);return}"eth_subscription"===e.method&&t(e.params)}}));return{subscriptionId:i,unsubscribe:async()=>new Promise(e=>tO.webSocket(n,{body:{method:"eth_unsubscribe",params:[i]},onResponse:e}))}}})}})(e,{timeout:s})),{rank:i,retryCount:o,retryDelay:a}),pollingInterval:n}),{chains:u})}}}var tL=class extends Error{constructor({activeChain:e,targetChain:t}){super(`Chain mismatch: Expected "${t}", received "${e}".`),this.name="ChainMismatchError"}},t$=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured${t?` for connector "${t}"`:""}.`),this.name="ChainNotConfigured"}},tq=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},tW=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},tz=class extends Error{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}},tG=(e,{find:t,replace:r})=>e&&t(e)?r(e):"object"!=typeof e?e:Array.isArray(e)?e.map(e=>tG(e,{find:t,replace:r})):e instanceof Object?Object.entries(e).reduce((e,[n,i])=>({...e,[n]:tG(i,{find:t,replace:r})}),{}):e;function tH(e){return tG(JSON.parse(e),{find:e=>"string"==typeof e&&e.startsWith("#bigint."),replace:e=>BigInt(e.replace("#bigint.",""))})}function tK(e){return{accessList:e.accessList,account:e.account,blockNumber:e.blockNumber,blockTag:e.blockTag,data:e.data,gas:e.gas,gasPrice:e.gasPrice,maxFeePerGas:e.maxFeePerGas,maxPriorityFeePerGas:e.maxPriorityFeePerGas,nonce:e.nonce,to:e.to,value:e.value}}function tQ(e){return{accessList:e.accessList,account:e.account,data:e.data,gas:e.gas,gasPrice:e.gasPrice,maxFeePerGas:e.maxFeePerGas,maxPriorityFeePerGas:e.maxPriorityFeePerGas,nonce:e.nonce,to:e.to,value:e.value}}function tV(e){return"number"==typeof e?e:"wei"===e?0:Math.abs(tP.Bd[e])}function tY(e,t){return e.slice(0,t).join(".")||"."}function tZ(e,t){let{length:r}=e;for(let n=0;n<r;++n)if(e[n]===t)return n+1;return 0}function tJ(e,t,r,n){return JSON.stringify(e,function(e,t){let r="function"==typeof e,n="function"==typeof t,i=[],o=[];return function(a,s){if("object"==typeof s){if(i.length){let e=tZ(i,this);0===e?i[i.length]=this:(i.splice(e),o.splice(e)),o[o.length]=a;let r=tZ(i,s);if(0!==r)return n?t.call(this,a,s,tY(o,r)):`[ref=${tY(o,r)}]`}else i[0]=s,o[0]=a}return r?e.call(this,a,s):s}}((e,r)=>{let n="bigint"==typeof r?`#bigint.${r.toString()}`:r;return t?.(e,n)||n},n),r??void 0)}var tX={getItem:e=>"",setItem:(e,t)=>null,removeItem:e=>null};function t0({deserialize:e=tH,key:t="wagmi",serialize:r=tJ,storage:n}){return{...n,getItem:(r,i=null)=>{let o=n.getItem(`${t}.${r}`);try{return o?e(o):i}catch(e){return console.warn(e),i}},setItem:(e,i)=>{if(null===i)n.removeItem(`${t}.${e}`);else try{n.setItem(`${t}.${e}`,r(i))}catch(e){console.error(e)}},removeItem:e=>n.removeItem(`${t}.${e}`)}}var t1="store",t2=class{constructor({autoConnect:e=!1,connectors:t=[new u._],publicClient:r,storage:s=t0({storage:"undefined"!=typeof window?window.localStorage:tX}),logger:c={warn:console.warn},webSocketPublicClient:l}){let p;f(this,o),this.publicClients=new Map,this.webSocketPublicClients=new Map,f(this,n,void 0),f(this,i,void 0),this.args={autoConnect:e,connectors:t,logger:c,publicClient:r,storage:s,webSocketPublicClient:l};let b="disconnected";if(e)try{let e=s.getItem(t1),t=e?.state?.data;b=t?.account?"reconnecting":"connecting",p=t?.chain?.id}catch(e){}let m="function"==typeof t?t():t;m.forEach(e=>e.setStorage(s)),this.store=tM(tk(tN(()=>({connectors:m,publicClient:this.getPublicClient({chainId:p}),status:b,webSocketPublicClient:this.getWebSocketPublicClient({chainId:p})}),{name:t1,storage:s,partialize:t=>({...e&&{data:{account:t?.data?.account,chain:t?.data?.chain}},chains:t?.chains}),version:2}))),this.storage=s,h(this,i,s?.getItem("wallet")),d(this,o,a).call(this),e&&"undefined"!=typeof window&&setTimeout(async()=>await this.autoConnect(),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){return this.data?.chain?.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(e){let t="function"==typeof e?e(this.store.getState()):e;this.store.setState(t,!0)}clearState(){this.setState(e=>({...e,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"}))}async destroy(){this.connector&&await this.connector.disconnect?.(),h(this,n,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(l(this,n))return;h(this,n,!0),this.setState(e=>({...e,status:e.data?.account?"reconnecting":"connecting"}));let e=l(this,i)?[...this.connectors].sort(e=>e.id===l(this,i)?-1:1):this.connectors,t=!1;for(let r of e){if(!r.ready||!r.isAuthorized||!await r.isAuthorized())continue;let e=await r.connect();this.setState(t=>({...t,connector:r,chains:r?.chains,data:e,status:"connected"})),t=!0;break}return t||this.setState(e=>({...e,data:void 0,status:"disconnected"})),h(this,n,!1),this.data}setConnectors(e){this.args={...this.args,connectors:e};let t="function"==typeof e?e():e;t.forEach(e=>e.setStorage(this.args.storage)),this.setState(e=>({...e,connectors:t}))}getPublicClient({chainId:e}={}){let t=this.publicClients.get(-1);if(t&&t?.chain.id===e||(t=this.publicClients.get(e??-1)))return t;let{publicClient:r}=this.args;return t="function"==typeof r?r({chainId:e}):r,this.publicClients.set(e??-1,t),t}setPublicClient(e){let t=this.data?.chain?.id;this.args={...this.args,publicClient:e},this.publicClients.clear(),this.setState(e=>({...e,publicClient:this.getPublicClient({chainId:t})}))}getWebSocketPublicClient({chainId:e}={}){let t=this.webSocketPublicClients.get(-1);if(t&&t?.chain.id===e||(t=this.webSocketPublicClients.get(e??-1)))return t;let{webSocketPublicClient:r}=this.args;return(t="function"==typeof r?r({chainId:e}):r)&&this.webSocketPublicClients.set(e??-1,t),t}setWebSocketPublicClient(e){let t=this.data?.chain?.id;this.args={...this.args,webSocketPublicClient:e},this.webSocketPublicClients.clear(),this.setState(e=>({...e,webSocketPublicClient:this.getWebSocketPublicClient({chainId:t})}))}setLastUsedConnector(e=null){this.storage?.setItem("wallet",e)}};function t6(e){let t=new t2(e);return s=t,t}function t3(){if(!s)throw Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return s}async function t5({chainId:e,connector:t}){let r=t3(),n=r.connector;if(n&&t.id===n.id)throw new tq;try{r.setState(e=>({...e,status:"connecting"}));let n=await t.connect({chainId:e});return r.setLastUsedConnector(t.id),r.setState(e=>({...e,connector:t,chains:t?.chains,data:n,status:"connected"})),r.storage.setItem("connected",!0),{...n,connector:t}}catch(e){throw r.setState(e=>({...e,status:e.connector?"connected":"disconnected"})),e}}async function t8(){let e=t3();e.connector&&await e.connector.disconnect(),e.clearState(),e.storage.removeItem("connected")}n=new WeakMap,i=new WeakMap,o=new WeakSet,a=function(){let e=e=>{this.setState(t=>({...t,data:{...t.data,...e}}))},t=()=>{this.clearState()},r=e=>{this.setState(t=>({...t,error:e}))};this.store.subscribe(({connector:e})=>e,(n,i)=>{i?.off?.("change",e),i?.off?.("disconnect",t),i?.off?.("error",r),n&&(n.on?.("change",e),n.on?.("disconnect",t),n.on?.("error",r))});let{publicClient:n,webSocketPublicClient:i}=this.args;("function"==typeof n||"function"==typeof i)&&this.store.subscribe(({data:e})=>e?.chain?.id,e=>{this.setState(t=>({...t,publicClient:this.getPublicClient({chainId:e}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:e})}))})};var t4=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],t9=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}];function t7({chainId:e}={}){let t=t3();return e&&t.getPublicClient({chainId:e})||t.publicClient}async function re({chainId:e}={}){let t=t3();return await t.connector?.getWalletClient?.({chainId:e})||null}function rt({chainId:e}={}){let t=t3();return e&&t.getWebSocketPublicClient({chainId:e})||t.webSocketPublicClient}function rr(e,t){let r=t3(),n=async()=>t(t7(e));return r.subscribe(({publicClient:e})=>e,n)}function rn({chainId:e},t){let r=t3(),n=async({chainId:r})=>{if(e&&r&&e!==r)return;let n=await re({chainId:e});return t3().connector?t(n):t(null)};return r.subscribe(({data:e,connector:t})=>({account:e?.account,chainId:e?.chain?.id,connector:t}),n,{equalityFn:tF})}function ri(e,t){let r=t3(),n=async()=>t(rt(e));return r.subscribe(({webSocketPublicClient:e})=>e,n)}async function ro({abi:e,address:t,args:r,chainId:n,dataSuffix:i,functionName:o,walletClient:a,...s}){let u=t7({chainId:n}),c=a??await re({chainId:n});if(!c)throw new tD.N;n&&rw({chainId:n});let{account:l,accessList:f,blockNumber:h,blockTag:d,gas:p,gasPrice:b,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:g,value:v}=tK(s),{result:w,request:E}=await u.simulateContract({abi:e,address:t,functionName:o,args:r,account:l||c.account,accessList:f,blockNumber:h,blockTag:d,dataSuffix:i,gas:p,gasPrice:b,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:g,value:v}),_=e.filter(e=>"name"in e&&e.name===o);return{mode:"prepared",request:{...E,abi:_,chainId:n},result:w}}async function ra({chainId:e,contracts:t,blockNumber:r,blockTag:n,...i}){let o=t7({chainId:e});if(!o.chains)throw new tW;if(e&&o.chain.id!==e)throw new t$({chainId:e});return o.multicall({allowFailure:i.allowFailure??!0,blockNumber:r,blockTag:n,contracts:t})}async function rs({address:e,account:t,chainId:r,abi:n,args:i,functionName:o,blockNumber:a,blockTag:s}){return t7({chainId:r}).readContract({abi:n,address:e,account:t,functionName:o,args:i,blockNumber:a,blockTag:s})}async function ru({contracts:e,blockNumber:t,blockTag:r,...n}){let{allowFailure:i=!0}=n;try{let n=t7(),o=e.reduce((e,t,r)=>{let i=t.chainId??n.chain.id;return{...e,[i]:[...e[i]||[],{contract:t,index:r}]}},{}),a=(await Promise.all(Object.entries(o).map(([e,n])=>ra({allowFailure:i,chainId:parseInt(e),contracts:n.map(({contract:e})=>e),blockNumber:t,blockTag:r})))).flat(),s=Object.values(o).flatMap(e=>e.map(({index:e})=>e));return a.reduce((e,t,r)=>(e&&(e[s[r]]=t),e),[])}catch(o){if(o instanceof x.uq)throw o;let n=()=>e.map(e=>rs({...e,blockNumber:t,blockTag:r}));if(i)return(await Promise.allSettled(n())).map(e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"});return await Promise.all(n())}}async function rc(e){let t;let r=await re({chainId:e.chainId});if(!r)throw new tD.N;if(e.chainId&&rw({chainId:e.chainId}),"prepared"===e.mode)t=e.request;else{let{chainId:r,mode:n,...i}=e;t=(await ro(i)).request}return{hash:await r.writeContract({...t,chain:e.chainId?{id:e.chainId}:null})}}async function rl({address:e,chainId:t,formatUnits:r,token:n}){let i=t3(),o=t7({chainId:t});if(n){let i=async({abi:i})=>{let o={abi:i,address:n,chainId:t},[a,s,u]=await ru({allowFailure:!1,contracts:[{...o,functionName:"balanceOf",args:[e]},{...o,functionName:"decimals"},{...o,functionName:"symbol"}]});return{decimals:s,formatted:(0,tR.b)(a??"0",tV(r??s)),symbol:u,value:a}};try{return await i({abi:t4})}catch(e){if(e instanceof x.uq){let{symbol:e,...t}=await i({abi:t9});return{symbol:(0,eA.rR)((0,v.f)(e,{dir:"right"})),...t}}throw e}}let a=[...i.publicClient.chains||[],...i.chains??[]],s=await o.getBalance({address:e}),u=a.find(e=>e.id===o.chain.id);return{decimals:u?.nativeCurrency.decimals??18,formatted:(0,tR.b)(s??"0",tV(r??18)),symbol:u?.nativeCurrency.symbol??"ETH",value:s}}function rf(){let{data:e,connector:t,status:r}=t3();switch(r){case"connected":return{address:e?.account,connector:t,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:r};case"reconnecting":return{address:e?.account,connector:t,isConnected:!!e?.account,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:r};case"connecting":return{address:e?.account,connector:t,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:r};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:r}}}function rh(){let e=t3(),t=e.data?.chain?.id,r=e.chains??[],n=[...e.publicClient?.chains||[],...r].find(e=>e.id===t)??{id:t,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:t?{...n,...e.data?.chain,id:t}:void 0,chains:r}}async function rd(e){let t=await re();if(!t)throw new tD.N;return await t.signMessage({message:e.message})}async function rp({chainId:e}){let{connector:t}=t3();if(!t)throw new tD.N;if(!t.switchChain)throw new tz({connector:t});return t.switchChain(e)}function rb(e,{selector:t=e=>e}={}){return t3().subscribe(({data:e,connector:r,status:n})=>t({address:e?.account,connector:r,status:n}),()=>e(rf()),{equalityFn:tF})}function rm(e,{selector:t=e=>e}={}){return t3().subscribe(({data:e,chains:r})=>t({chainId:e?.chain?.id,chains:r}),()=>e(rh()),{equalityFn:tF})}async function ry({name:e,chainId:t}){let{normalize:n}=await r.e(45).then(r.bind(r,50045)),i=t7({chainId:t});return await i.getEnsAvatar({name:n(e)})}async function rg({address:e,chainId:t}){return t7({chainId:t}).getEnsName({address:(0,tB.K)(e)})}async function rv({chainId:e}={}){let t=t7({chainId:e});return await t.getBlockNumber()}function rw({chainId:e}){let{chain:t,chains:r}=rh(),n=t?.id;if(n&&e!==n)throw new tL({activeChain:r.find(e=>e.id===n)?.name??`Chain ${n}`,targetChain:r.find(t=>t.id===e)?.name??`Chain ${e}`})}},57042:function(e,t,r){"use strict";t.Z=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(n&&(n+=" "),n+=t);return n}},18025:function(e,t,r){"use strict";r.r(t),r.d(t,{af:function(){return c},ak:function(){return l},am:function(){return f},an:function(){return h},ar:function(){return d},ars:function(){return p},as:function(){return b},asa:function(){return m},ast:function(){return y},az:function(){return g},bal:function(){return v},be:function(){return w},bem:function(){return E},bez:function(){return _},bg:function(){return x},bho:function(){return C},bm:function(){return S},bn:function(){return O},bo:function(){return D},br:function(){return P},brx:function(){return k},bs:function(){return A},ca:function(){return I},ce:function(){return T},ceb:function(){return N},cgg:function(){return j},chr:function(){return M},ckb:function(){return R},cs:function(){return F},cy:function(){return B},da:function(){return U},de:function(){return L},doi:function(){return $},dsb:function(){return q},dv:function(){return W},dz:function(){return z},ee:function(){return G},el:function(){return H},en:function(){return K},eo:function(){return Q},es:function(){return V},et:function(){return Y},eu:function(){return Z},fa:function(){return J},ff:function(){return X},fi:function(){return ee},fil:function(){return et},fo:function(){return er},fr:function(){return en},fur:function(){return ei},fy:function(){return eo},ga:function(){return ea},gd:function(){return es},gl:function(){return eu},gsw:function(){return ec},gu:function(){return el},guw:function(){return ef},gv:function(){return eh},ha:function(){return ed},haw:function(){return ep},he:function(){return eb},hi:function(){return em},hnj:function(){return ey},hr:function(){return eg},hsb:function(){return ev},hu:function(){return ew},hy:function(){return eE},ia:function(){return e_},id:function(){return ex},ig:function(){return eC},ii:function(){return eS},io:function(){return eO},is:function(){return eD},it:function(){return eP},iu:function(){return ek},ja:function(){return eA},jbo:function(){return eI},jgo:function(){return eT},jmc:function(){return eN},jv:function(){return ej},jw:function(){return eM},ka:function(){return eR},kab:function(){return eF},kaj:function(){return eB},kcg:function(){return eU},kde:function(){return eL},kea:function(){return e$},kk:function(){return eq},kkj:function(){return eW},kl:function(){return ez},km:function(){return eG},kn:function(){return eH},ko:function(){return eK},ks:function(){return eQ},ksb:function(){return eV},ksh:function(){return eY},ku:function(){return eZ},kw:function(){return eJ},ky:function(){return eX},lag:function(){return e0},lb:function(){return e1},lg:function(){return e2},lij:function(){return e6},lkt:function(){return e3},ln:function(){return e5},lo:function(){return e8},lt:function(){return e4},lv:function(){return e9},mas:function(){return e7},mg:function(){return te},mgo:function(){return tt},mk:function(){return tr},ml:function(){return tn},mn:function(){return ti},mo:function(){return to},mr:function(){return ta},ms:function(){return ts},mt:function(){return tu},my:function(){return tc},nah:function(){return tl},naq:function(){return tf},nb:function(){return th},nd:function(){return td},ne:function(){return tp},nl:function(){return tb},nn:function(){return tm},nnh:function(){return ty},no:function(){return tg},nqo:function(){return tv},nr:function(){return tw},nso:function(){return tE},ny:function(){return t_},nyn:function(){return tx},om:function(){return tC},or:function(){return tS},os:function(){return tO},osa:function(){return tD},pa:function(){return tP},pap:function(){return tk},pcm:function(){return tA},pl:function(){return tI},prg:function(){return tT},ps:function(){return tN},pt:function(){return tj},pt_PT:function(){return tM},rm:function(){return tR},ro:function(){return tF},rof:function(){return tB},ru:function(){return tU},rwk:function(){return tL},sah:function(){return t$},saq:function(){return tq},sat:function(){return tW},sc:function(){return tz},scn:function(){return tG},sd:function(){return tH},sdh:function(){return tK},se:function(){return tQ},seh:function(){return tV},ses:function(){return tY},sg:function(){return tZ},sh:function(){return tJ},shi:function(){return tX},si:function(){return t0},sk:function(){return t1},sl:function(){return t2},sma:function(){return t6},smi:function(){return t3},smj:function(){return t5},smn:function(){return t8},sms:function(){return t4},sn:function(){return t9},so:function(){return t7},sq:function(){return re},sr:function(){return rt},ss:function(){return rr},ssy:function(){return rn},st:function(){return ri},su:function(){return ro},sv:function(){return ra},sw:function(){return rs},syr:function(){return ru},ta:function(){return rc},te:function(){return rl},teo:function(){return rf},th:function(){return rh},ti:function(){return rd},tig:function(){return rp},tk:function(){return rb},tl:function(){return rm},tn:function(){return ry},to:function(){return rg},tpi:function(){return rv},tr:function(){return rw},ts:function(){return rE},tzm:function(){return r_},ug:function(){return rx},uk:function(){return rC},und:function(){return rS},ur:function(){return rO},uz:function(){return rD},ve:function(){return rP},vec:function(){return rk},vi:function(){return rA},vo:function(){return rI},vun:function(){return rT},wa:function(){return rN},wae:function(){return rj},wo:function(){return rM},xh:function(){return rR},xog:function(){return rF},yi:function(){return rB},yo:function(){return rU},yue:function(){return rL},zh:function(){return r$},zu:function(){return rq}});let n=(e,t)=>t?"other":1==e?"one":"other",i=(e,t)=>t?"other":0==e||1==e?"one":"other",o=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",a=(e,t)=>{let r=!String(e).split(".")[1];return t?"other":1==e&&r?"one":"other"},s=(e,t)=>"other",u=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",c=n,l=i,f=o,h=n,d=(e,t)=>{let r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":n>=3&&n<=10?"few":n>=11&&n<=99?"many":"other"},p=(e,t)=>{let r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":n>=3&&n<=10?"few":n>=11&&n<=99?"many":"other"},b=(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",m=n,y=a,g=(e,t)=>{let r=String(e).split(".")[0],n=r.slice(-1),i=r.slice(-2),o=r.slice(-3);return t?1==n||2==n||5==n||7==n||8==n||20==i||50==i||70==i||80==i?"one":3==n||4==n||100==o||200==o||300==o||400==o||500==o||600==o||700==o||800==o||900==o?"few":0==r||6==n||40==i||60==i||90==i?"many":"other":1==e?"one":"other"},v=(e,t)=>1==e?"one":"other",w=(e,t)=>{let r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-1),o=n&&r[0].slice(-2);return t?(2==i||3==i)&&12!=o&&13!=o?"few":"other":1==i&&11!=o?"one":i>=2&&i<=4&&(o<12||o>14)?"few":n&&0==i||i>=5&&i<=9||o>=11&&o<=14?"many":"other"},E=n,_=n,x=n,C=i,S=s,O=(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",D=s,P=(e,t)=>{let r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-1),o=n&&r[0].slice(-2),a=n&&r[0].slice(-6);return t?"other":1==i&&11!=o&&71!=o&&91!=o?"one":2==i&&12!=o&&72!=o&&92!=o?"two":(3==i||4==i||9==i)&&(o<10||o>19)&&(o<70||o>79)&&(o<90||o>99)?"few":0!=e&&n&&0==a?"many":"other"},k=n,A=(e,t)=>{let r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],a=n.slice(-1),s=n.slice(-2),u=i.slice(-1),c=i.slice(-2);return t?"other":o&&1==a&&11!=s||1==u&&11!=c?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(c<12||c>14)?"few":"other"},I=(e,t)=>{let r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&i?"one":0!=n&&0==o&&i?"many":"other"},T=n,N=(e,t)=>{let r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],a=n.slice(-1),s=i.slice(-1);return t?"other":o&&(1==n||2==n||3==n)||o&&4!=a&&6!=a&&9!=a||!o&&4!=s&&6!=s&&9!=s?"one":"other"},j=n,M=n,R=n,F=(e,t)=>{let r=String(e).split("."),n=r[0],i=!r[1];return t?"other":1==e&&i?"one":n>=2&&n<=4&&i?"few":i?"other":"many"},B=(e,t)=>t?0==e||7==e||8==e||9==e?"zero":1==e?"one":2==e?"two":3==e||4==e?"few":5==e||6==e?"many":"other":0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other",U=(e,t)=>{let r=String(e).split("."),n=r[0],i=Number(r[0])==e;return t?"other":1!=e&&(i||0!=n&&1!=n)?"other":"one"},L=a,$=o,q=(e,t)=>{let r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],a=n.slice(-2),s=i.slice(-2);return t?"other":o&&1==a||1==s?"one":o&&2==a||2==s?"two":o&&(3==a||4==a)||3==s||4==s?"few":"other"},W=n,z=s,G=n,H=n,K=(e,t)=>{let r=String(e).split("."),n=!r[1],i=Number(r[0])==e,o=i&&r[0].slice(-1),a=i&&r[0].slice(-2);return t?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==e&&n?"one":"other"},Q=n,V=(e,t)=>{let r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?"other":1==e?"one":0!=n&&0==o&&i?"many":"other"},Y=a,Z=n,J=o,X=(e,t)=>t?"other":e>=0&&e<2?"one":"other",ee=a,et=(e,t)=>{let r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],a=n.slice(-1),s=i.slice(-1);return t?1==e?"one":"other":o&&(1==n||2==n||3==n)||o&&4!=a&&6!=a&&9!=a||!o&&4!=s&&6!=s&&9!=s?"one":"other"},er=n,en=(e,t)=>{let r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?1==e?"one":"other":e>=0&&e<2?"one":0!=n&&0==o&&i?"many":"other"},ei=n,eo=a,ea=(e,t)=>{let r=Number(String(e).split(".")[0])==e;return t?1==e?"one":"other":1==e?"one":2==e?"two":r&&e>=3&&e<=6?"few":r&&e>=7&&e<=10?"many":"other"},es=(e,t)=>{let r=Number(String(e).split(".")[0])==e;return t?1==e||11==e?"one":2==e||12==e?"two":3==e||13==e?"few":"other":1==e||11==e?"one":2==e||12==e?"two":r&&e>=3&&e<=10||r&&e>=13&&e<=19?"few":"other"},eu=a,ec=n,el=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",ef=i,eh=(e,t)=>{let r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-1),a=n.slice(-2);return t?"other":i&&1==o?"one":i&&2==o?"two":i&&(0==a||20==a||40==a||60==a||80==a)?"few":i?"other":"many"},ed=n,ep=n,eb=(e,t)=>{let r=String(e).split("."),n=r[0],i=!r[1];return t?"other":1==n&&i||0==n&&!i?"one":2==n&&i?"two":"other"},em=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",ey=s,eg=(e,t)=>{let r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],a=n.slice(-1),s=n.slice(-2),u=i.slice(-1),c=i.slice(-2);return t?"other":o&&1==a&&11!=s||1==u&&11!=c?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(c<12||c>14)?"few":"other"},ev=(e,t)=>{let r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],a=n.slice(-2),s=i.slice(-2);return t?"other":o&&1==a||1==s?"one":o&&2==a||2==s?"two":o&&(3==a||4==a)||3==s||4==s?"few":"other"},ew=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",eE=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",e_=a,ex=s,eC=s,eS=s,eO=a,eD=(e,t)=>{let r=String(e).split("."),n=r[0],i=(r[1]||"").replace(/0+$/,""),o=Number(r[0])==e,a=n.slice(-1),s=n.slice(-2);return t?"other":o&&1==a&&11!=s||i%10==1&&i%100!=11?"one":"other"},eP=(e,t)=>{let r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&i?"one":0!=n&&0==o&&i?"many":"other"},ek=u,eA=s,eI=s,eT=n,eN=n,ej=s,eM=s,eR=(e,t)=>{let r=String(e).split(".")[0],n=r.slice(-2);return t?1==r?"one":0==r||n>=2&&n<=20||40==n||60==n||80==n?"many":"other":1==e?"one":"other"},eF=(e,t)=>t?"other":e>=0&&e<2?"one":"other",eB=n,eU=n,eL=s,e$=s,eq=(e,t)=>{let r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-1);return t?6==i||9==i||n&&0==i&&0!=e?"many":"other":1==e?"one":"other"},eW=n,ez=n,eG=s,eH=o,eK=s,eQ=n,eV=n,eY=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",eZ=n,eJ=(e,t)=>{let r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-2),o=n&&r[0].slice(-3),a=n&&r[0].slice(-5),s=n&&r[0].slice(-6);return t?n&&e>=1&&e<=4||i>=1&&i<=4||i>=21&&i<=24||i>=41&&i<=44||i>=61&&i<=64||i>=81&&i<=84?"one":5==e||5==i?"many":"other":0==e?"zero":1==e?"one":2==i||22==i||42==i||62==i||82==i||n&&0==o&&(a>=1e3&&a<=2e4||4e4==a||6e4==a||8e4==a)||0!=e&&1e5==s?"two":3==i||23==i||43==i||63==i||83==i?"few":1!=e&&(1==i||21==i||41==i||61==i||81==i)?"many":"other"},eX=n,e0=(e,t)=>{let r=String(e).split(".")[0];return t?"other":0==e?"zero":(0==r||1==r)&&0!=e?"one":"other"},e1=n,e2=n,e6=(e,t)=>{let r=String(e).split("."),n=!r[1],i=Number(r[0])==e;return t?11==e||8==e||i&&e>=80&&e<=89||i&&e>=800&&e<=899?"many":"other":1==e&&n?"one":"other"},e3=s,e5=i,e8=(e,t)=>t&&1==e?"one":"other",e4=(e,t)=>{let r=String(e).split("."),n=r[1]||"",i=Number(r[0])==e,o=i&&r[0].slice(-1),a=i&&r[0].slice(-2);return t?"other":1==o&&(a<11||a>19)?"one":o>=2&&o<=9&&(a<11||a>19)?"few":0!=n?"many":"other"},e9=(e,t)=>{let r=String(e).split("."),n=r[1]||"",i=n.length,o=Number(r[0])==e,a=o&&r[0].slice(-1),s=o&&r[0].slice(-2),u=n.slice(-2),c=n.slice(-1);return t?"other":o&&0==a||s>=11&&s<=19||2==i&&u>=11&&u<=19?"zero":1==a&&11!=s||2==i&&1==c&&11!=u||2!=i&&1==c?"one":"other"},e7=n,te=i,tt=n,tr=(e,t)=>{let r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],a=n.slice(-1),s=n.slice(-2),u=i.slice(-1),c=i.slice(-2);return t?1==a&&11!=s?"one":2==a&&12!=s?"two":(7==a||8==a)&&17!=s&&18!=s?"many":"other":o&&1==a&&11!=s||1==u&&11!=c?"one":"other"},tn=n,ti=n,to=(e,t)=>{let r=String(e).split("."),n=!r[1],i=Number(r[0])==e&&r[0].slice(-2);return t?1==e?"one":"other":1==e&&n?"one":!n||0==e||1!=e&&i>=1&&i<=19?"few":"other"},ta=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",ts=(e,t)=>t&&1==e?"one":"other",tu=(e,t)=>{let r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-2);return t?"other":1==e?"one":2==e?"two":0==e||n>=3&&n<=10?"few":n>=11&&n<=19?"many":"other"},tc=s,tl=n,tf=u,th=n,td=n,tp=(e,t)=>{let r=Number(String(e).split(".")[0])==e;return t?r&&e>=1&&e<=4?"one":"other":1==e?"one":"other"},tb=a,tm=n,ty=n,tg=n,tv=s,tw=n,tE=i,t_=n,tx=n,tC=n,tS=(e,t)=>{let r=Number(String(e).split(".")[0])==e;return t?1==e||5==e||r&&e>=7&&e<=9?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":1==e?"one":"other"},tO=n,tD=s,tP=i,tk=n,tA=o,tI=(e,t)=>{let r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-1),a=n.slice(-2);return t?"other":1==e&&i?"one":i&&o>=2&&o<=4&&(a<12||a>14)?"few":i&&1!=n&&(0==o||1==o)||i&&o>=5&&o<=9||i&&a>=12&&a<=14?"many":"other"},tT=(e,t)=>{let r=String(e).split("."),n=r[1]||"",i=n.length,o=Number(r[0])==e,a=o&&r[0].slice(-1),s=o&&r[0].slice(-2),u=n.slice(-2),c=n.slice(-1);return t?"other":o&&0==a||s>=11&&s<=19||2==i&&u>=11&&u<=19?"zero":1==a&&11!=s||2==i&&1==c&&11!=u||2!=i&&1==c?"one":"other"},tN=n,tj=(e,t)=>{let r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?"other":0==n||1==n?"one":0!=n&&0==o&&i?"many":"other"},tM=(e,t)=>{let r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?"other":1==e&&i?"one":0!=n&&0==o&&i?"many":"other"},tR=n,tF=(e,t)=>{let r=String(e).split("."),n=!r[1],i=Number(r[0])==e&&r[0].slice(-2);return t?1==e?"one":"other":1==e&&n?"one":!n||0==e||1!=e&&i>=1&&i<=19?"few":"other"},tB=n,tU=(e,t)=>{let r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-1),a=n.slice(-2);return t?"other":i&&1==o&&11!=a?"one":i&&o>=2&&o<=4&&(a<12||a>14)?"few":i&&0==o||i&&o>=5&&o<=9||i&&a>=11&&a<=14?"many":"other"},tL=n,t$=s,tq=n,tW=u,tz=(e,t)=>{let r=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&r?"one":"other"},tG=(e,t)=>{let r=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&r?"one":"other"},tH=n,tK=n,tQ=u,tV=n,tY=s,tZ=s,tJ=(e,t)=>{let r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],a=n.slice(-1),s=n.slice(-2),u=i.slice(-1),c=i.slice(-2);return t?"other":o&&1==a&&11!=s||1==u&&11!=c?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(c<12||c>14)?"few":"other"},tX=(e,t)=>{let r=Number(String(e).split(".")[0])==e;return t?"other":e>=0&&e<=1?"one":r&&e>=2&&e<=10?"few":"other"},t0=(e,t)=>{let r=String(e).split("."),n=r[0],i=r[1]||"";return t?"other":0==e||1==e||0==n&&1==i?"one":"other"},t1=(e,t)=>{let r=String(e).split("."),n=r[0],i=!r[1];return t?"other":1==e&&i?"one":n>=2&&n<=4&&i?"few":i?"other":"many"},t2=(e,t)=>{let r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-2);return t?"other":i&&1==o?"one":i&&2==o?"two":i&&(3==o||4==o)||!i?"few":"other"},t6=u,t3=u,t5=u,t8=u,t4=u,t9=n,t7=n,re=(e,t)=>{let r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-1),o=n&&r[0].slice(-2);return t?1==e?"one":4==i&&14!=o?"many":"other":1==e?"one":"other"},rt=(e,t)=>{let r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],a=n.slice(-1),s=n.slice(-2),u=i.slice(-1),c=i.slice(-2);return t?"other":o&&1==a&&11!=s||1==u&&11!=c?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(c<12||c>14)?"few":"other"},rr=n,rn=n,ri=n,ro=s,ra=(e,t)=>{let r=String(e).split("."),n=!r[1],i=Number(r[0])==e,o=i&&r[0].slice(-1),a=i&&r[0].slice(-2);return t?(1==o||2==o)&&11!=a&&12!=a?"one":"other":1==e&&n?"one":"other"},rs=a,ru=n,rc=n,rl=n,rf=n,rh=s,rd=i,rp=n,rb=(e,t)=>{let r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-1);return t?6==n||9==n||10==e?"few":"other":1==e?"one":"other"},rm=(e,t)=>{let r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],a=n.slice(-1),s=i.slice(-1);return t?1==e?"one":"other":o&&(1==n||2==n||3==n)||o&&4!=a&&6!=a&&9!=a||!o&&4!=s&&6!=s&&9!=s?"one":"other"},ry=n,rg=s,rv=s,rw=n,rE=n,r_=(e,t)=>{let r=Number(String(e).split(".")[0])==e;return t?"other":0==e||1==e||r&&e>=11&&e<=99?"one":"other"},rx=n,rC=(e,t)=>{let r=String(e).split("."),n=r[0],i=!r[1],o=Number(r[0])==e,a=o&&r[0].slice(-1),s=o&&r[0].slice(-2),u=n.slice(-1),c=n.slice(-2);return t?3==a&&13!=s?"few":"other":i&&1==u&&11!=c?"one":i&&u>=2&&u<=4&&(c<12||c>14)?"few":i&&0==u||i&&u>=5&&u<=9||i&&c>=11&&c<=14?"many":"other"},rS=s,rO=a,rD=n,rP=n,rk=(e,t)=>{let r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&i?"one":0!=n&&0==o&&i?"many":"other"},rA=(e,t)=>t&&1==e?"one":"other",rI=n,rT=n,rN=i,rj=n,rM=s,rR=n,rF=n,rB=a,rU=s,rL=s,r$=s,rq=o},50044:function(e,t,r){"use strict";r.r(t),r.d(t,{__addDisposableResource:function(){return j},__assign:function(){return o},__asyncDelegator:function(){return S},__asyncGenerator:function(){return C},__asyncValues:function(){return O},__await:function(){return x},__awaiter:function(){return p},__classPrivateFieldGet:function(){return I},__classPrivateFieldIn:function(){return N},__classPrivateFieldSet:function(){return T},__createBinding:function(){return m},__decorate:function(){return s},__disposeResources:function(){return R},__esDecorate:function(){return c},__exportStar:function(){return y},__extends:function(){return i},__generator:function(){return b},__importDefault:function(){return A},__importStar:function(){return k},__makeTemplateObject:function(){return D},__metadata:function(){return d},__param:function(){return u},__propKey:function(){return f},__read:function(){return v},__rest:function(){return a},__runInitializers:function(){return l},__setFunctionName:function(){return h},__spread:function(){return w},__spreadArray:function(){return _},__spreadArrays:function(){return E},__values:function(){return g}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,u=n.kind,c="getter"===u?"get":"setter"===u?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),h=!1,d=r.length-1;d>=0;d--){var p={};for(var b in n)p[b]="access"===b?{}:n[b];for(var b in n.access)p.access[b]=n.access[b];p.addInitializer=function(e){if(h)throw TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var m=(0,r[d])("accessor"===u?{get:f.get,set:f.set}:f[c],p);if("accessor"===u){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(s=a(m.get))&&(f.get=s),(s=a(m.set))&&(f.set=s),(s=a(m.init))&&i.unshift(s)}else(s=a(m))&&("field"===u?i.unshift(s):f[c]=s)}l&&Object.defineProperty(l,n.name,f),h=!0}function l(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function h(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function b(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}var m=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function y(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||m(t,e,r)}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function E(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function _(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function x(e){return this instanceof x?(this.v=e,this):new x(e)}function C(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{var r;(r=i[e](t)).value instanceof x?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function S(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:x(e[n](t)),done:!1}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=g(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function D(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&m(t,e,r);return P(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function I(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function T(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function N(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function j(e,t,r){if(null!=t){var n;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");if(r){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var M="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function R(e){function t(t){e.error=e.hasError?new M(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var i=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(i).then(r,function(e){return t(e),r()})}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:i,__assign:o,__rest:a,__decorate:s,__param:u,__metadata:d,__awaiter:p,__generator:b,__createBinding:m,__exportStar:y,__values:g,__read:v,__spread:w,__spreadArrays:E,__spreadArray:_,__await:x,__asyncGenerator:C,__asyncDelegator:S,__asyncValues:O,__makeTemplateObject:D,__importStar:k,__importDefault:A,__classPrivateFieldGet:I,__classPrivateFieldSet:T,__classPrivateFieldIn:N,__addDisposableResource:j,__disposeResources:R}},50741:function(e,t,r){"use strict";r.d(t,{E:function(){return i}});var n=r(7541);function i(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?(0,n.P)(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}},72281:function(e,t,r){"use strict";r.d(t,{z:function(){return o}});var n=r(50741),i=r(7541);function o(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));let r=(0,n.E)(t),o=0;for(let t of e)r.set(t,o),o+=t.length;return(0,i.P)(r)}},34901:function(e,t,r){"use strict";r.d(t,{m:function(){return o}});var n=r(85418),i=r(7541);function o(e,t="utf8"){let r=n.Z[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?(0,i.P)(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}},71188:function(e,t,r){"use strict";r.d(t,{BB:function(){return o.B},mL:function(){return i.m},zo:function(){return n.z}});var n=r(72281),i=r(34901),o=r(21361)},21361:function(e,t,r){"use strict";r.d(t,{B:function(){return i}});var n=r(85418);function i(e,t="utf8"){let r=n.Z[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}},7541:function(e,t,r){"use strict";function n(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}r.d(t,{P:function(){return n}})},85418:function(e,t,r){"use strict";r.d(t,{Z:function(){return eH}});var n={};r.r(n),r.d(n,{identity:function(){return T}});var i={};r.r(i),r.d(i,{base2:function(){return N}});var o={};r.r(o),r.d(o,{base8:function(){return j}});var a={};r.r(a),r.d(a,{base10:function(){return M}});var s={};r.r(s),r.d(s,{base16:function(){return R},base16upper:function(){return F}});var u={};r.r(u),r.d(u,{base32:function(){return B},base32hex:function(){return q},base32hexpad:function(){return z},base32hexpadupper:function(){return G},base32hexupper:function(){return W},base32pad:function(){return L},base32padupper:function(){return $},base32upper:function(){return U},base32z:function(){return H}});var c={};r.r(c),r.d(c,{base36:function(){return K},base36upper:function(){return Q}});var l={};r.r(l),r.d(l,{base58btc:function(){return V},base58flickr:function(){return Y}});var f={};r.r(f),r.d(f,{base64:function(){return Z},base64pad:function(){return J},base64url:function(){return X},base64urlpad:function(){return ee}});var h={};r.r(h),r.d(h,{base256emoji:function(){return ei}});var d={};r.r(d),r.d(d,{sha256:function(){return em},sha512:function(){return ey}});var p={};r.r(p),r.d(p,{identity:function(){return eg}});var b={};r.r(b),r.d(b,{code:function(){return ew},decode:function(){return e_},encode:function(){return eE},name:function(){return ev}});var m={};r.r(m),r.d(m,{code:function(){return eO},decode:function(){return eP},encode:function(){return eD},name:function(){return eS}});var y=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),a=o.charCodeAt(0);if(255!==r[a])throw TypeError(o+" is ambiguous");r[a]=i}var s=e.length,u=e.charAt(0),c=Math.log(s)/Math.log(256),l=Math.log(256)/Math.log(s);function f(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var n=0,i=0;e[t]===u;)n++,t++;for(var o=(e.length-t)*c+1>>>0,a=new Uint8Array(o);e[t];){var l=r[e.charCodeAt(t)];if(255===l)return;for(var f=0,h=o-1;(0!==l||f<i)&&-1!==h;h--,f++)l+=s*a[h]>>>0,a[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw Error("Non-zero carry");i=f,t++}if(" "!==e[t]){for(var d=o-i;d!==o&&0===a[d];)d++;for(var p=new Uint8Array(n+(o-d)),b=n;d!==o;)p[b++]=a[d++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var a=(o-i)*l+1>>>0,c=new Uint8Array(a);i!==o;){for(var f=t[i],h=0,d=a-1;(0!==f||h<n)&&-1!==d;d--,h++)f+=256*c[d]>>>0,c[d]=f%s>>>0,f=f/s>>>0;if(0!==f)throw Error("Non-zero carry");n=h,i++}for(var p=a-n;p!==a&&0===c[p];)p++;for(var b=u.repeat(r);p<a;++p)b+=e.charAt(c[p]);return b},decodeUnsafe:f,decode:function(e){var r=f(e);if(r)return r;throw Error(`Non-${t} character`)}}};new Uint8Array(0);let g=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0},v=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")},w=e=>new TextEncoder().encode(e),E=e=>new TextDecoder().decode(e);class _{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class x{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return S(this,e)}}class C{constructor(e){this.decoders=e}or(e){return S(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let S=(e,t)=>new C({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class O{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new _(e,t,r),this.decoder=new x(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let D=({name:e,prefix:t,encode:r,decode:n})=>new O(e,t,r,n),P=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=y(r,t);return D({prefix:e,name:t,encode:n,decode:e=>v(i(e))})},k=(e,t,r,n)=>{let i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;let a=new Uint8Array(o*r/8|0),s=0,u=0,c=0;for(let t=0;t<o;++t){let o=i[e[t]];if(void 0===o)throw SyntaxError(`Non-${n} character`);u=u<<r|o,(s+=r)>=8&&(s-=8,a[c++]=255&u>>s)}if(s>=r||255&u<<8-s)throw SyntaxError("Unexpected end of data");return a},A=(e,t,r)=>{let n="="===t[t.length-1],i=(1<<r)-1,o="",a=0,s=0;for(let n=0;n<e.length;++n)for(s=s<<8|e[n],a+=8;a>r;)a-=r,o+=t[i&s>>a];if(a&&(o+=t[i&s<<r-a]),n)for(;o.length*r&7;)o+="=";return o},I=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>D({prefix:t,name:e,encode:e=>A(e,n,r),decode:t=>k(t,n,r,e)}),T=D({prefix:"\x00",name:"identity",encode:e=>E(e),decode:e=>w(e)}),N=I({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),j=I({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),M=P({prefix:"9",name:"base10",alphabet:"0123456789"}),R=I({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),F=I({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),B=I({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),U=I({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),L=I({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),$=I({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),q=I({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),W=I({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),z=I({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),G=I({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),H=I({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),K=P({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Q=P({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),V=P({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Y=P({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Z=I({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),J=I({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),X=I({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ee=I({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),et=Array.from("\uD83D\uDE80\uD83E\uDE90☄\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2D❣\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2B⚽\uD83E\uDD19☕\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81⚡\uD83C\uDF1E\uD83C\uDF88❌✊\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2C✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),er=et.reduce((e,t,r)=>(e[r]=t,e),[]),en=et.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]),ei=D({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>e+=er[t],"")},decode:function(e){let t=[];for(let r of e){let e=en[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});var eo={encode:function e(t,r,n){r=r||[];for(var i=n=n||0;t>=2147483648;)r[n++]=255&t|128,t/=128;for(;-128&t;)r[n++]=255&t|128,t>>>=7;return r[n]=0|t,e.bytes=n-i+1,r},decode:function e(t,r){var n,i=0,r=r||0,o=0,a=r,s=t.length;do{if(a>=s)throw e.bytes=0,RangeError("Could not decode varint");n=t[a++],i+=o<28?(127&n)<<o:(127&n)*Math.pow(2,o),o+=7}while(n>=128);return e.bytes=a-r,i},encodingLength:function(e){return e<128?1:e<16384?2:e<2097152?3:e<268435456?4:e<34359738368?5:e<4398046511104?6:e<562949953421312?7:e<72057594037927940?8:e<0x7fffffffffffffff?9:10}};let ea=(e,t=0)=>[eo.decode(e,t),eo.decode.bytes],es=(e,t,r=0)=>(eo.encode(e,t,r),t),eu=e=>eo.encodingLength(e),ec=(e,t)=>{let r=t.byteLength,n=eu(e),i=n+eu(r),o=new Uint8Array(i+r);return es(e,o,0),es(r,o,n),o.set(t,i),new eh(e,r,t,o)},el=e=>{let t=v(e),[r,n]=ea(t),[i,o]=ea(t.subarray(n)),a=t.subarray(n+o);if(a.byteLength!==i)throw Error("Incorrect length");return new eh(r,i,a,t)},ef=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&g(e.bytes,t.bytes);class eh{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let ed=({name:e,code:t,encode:r})=>new ep(e,t,r);class ep{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?ec(this.code,t):t.then(e=>ec(this.code,e))}throw Error("Unknown type, must be binary type")}}let eb=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),em=ed({name:"sha2-256",code:18,encode:eb("SHA-256")}),ey=ed({name:"sha2-512",code:19,encode:eb("SHA-512")}),eg={code:0,name:"identity",encode:v,digest:e=>ec(0,v(e))},ev="raw",ew=85,eE=e=>v(e),e_=e=>v(e),ex=new TextEncoder,eC=new TextDecoder,eS="json",eO=512,eD=e=>ex.encode(JSON.stringify(e)),eP=e=>JSON.parse(eC.decode(e));class ek{constructor(e,t,r,n){this.code=t,this.version=e,this.multihash=r,this.bytes=n,this.byteOffset=n.byteOffset,this.byteLength=n.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:eB,byteLength:eB,code:eF,version:eF,multihash:eF,bytes:eF,_baseCache:eB,asCID:eB})}toV0(){if(0===this.version)return this;{let{code:e,multihash:t}=this;if(e!==eN)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==ej)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return ek.createV0(t)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,r=ec(e,t);return ek.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&ef(this.multihash,e.multihash)}toString(e){let{bytes:t,version:r,_baseCache:n}=this;return 0===r?eI(t,n,e||V.encoder):eT(t,n,e||B.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return eU(/^0\.0/,eL),!!(e&&(e[eR]||e.asCID===e))}get toBaseEncodedString(){throw Error("Deprecated, use .toString()")}get codec(){throw Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw Error('"multibaseName" property is deprecated')}get prefix(){throw Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof ek)return e;if(null!=e&&e.asCID===e){let{version:t,code:r,multihash:n,bytes:i}=e;return new ek(t,r,n,i||eM(t,r,n.bytes))}if(null==e||!0!==e[eR])return null;{let{version:t,multihash:r,code:n}=e,i=el(r);return ek.create(t,n,i)}}static create(e,t,r){if("number"!=typeof t)throw Error("String codecs are no longer supported");switch(e){case 0:if(t===eN)return new ek(e,t,r,r.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${eN}) block encoding`);case 1:{let n=eM(e,t,r.bytes);return new ek(e,t,r,n)}default:throw Error("Invalid version")}}static createV0(e){return ek.create(0,eN,e)}static createV1(e,t){return ek.create(1,e,t)}static decode(e){let[t,r]=ek.decodeFirst(e);if(r.length)throw Error("Incorrect length");return t}static decodeFirst(e){let t=ek.inspectBytes(e),r=t.size-t.multihashSize,n=v(e.subarray(r,r+t.multihashSize));if(n.byteLength!==t.multihashSize)throw Error("Incorrect length");let i=n.subarray(t.multihashSize-t.digestSize),o=new eh(t.multihashCode,t.digestSize,i,n);return[0===t.version?ek.createV0(o):ek.createV1(t.codec,o),e.subarray(t.size)]}static inspectBytes(e){let t=0,r=()=>{let[r,n]=ea(e.subarray(t));return t+=n,r},n=r(),i=eN;if(18===n?(n=0,t=0):1===n&&(i=r()),0!==n&&1!==n)throw RangeError(`Invalid CID version ${n}`);let o=t,a=r(),s=r(),u=t+s;return{version:n,codec:i,multihashCode:a,digestSize:s,multihashSize:u-o,size:u}}static parse(e,t){let[r,n]=eA(e,t),i=ek.decode(n);return i._baseCache.set(r,e),i}}let eA=(e,t)=>{switch(e[0]){case"Q":return[V.prefix,(t||V).decode(`${V.prefix}${e}`)];case V.prefix:return[V.prefix,(t||V).decode(e)];case B.prefix:return[B.prefix,(t||B).decode(e)];default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},eI=(e,t,r)=>{let{prefix:n}=r;if(n!==V.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let i=t.get(n);if(null!=i)return i;{let i=r.encode(e).slice(1);return t.set(n,i),i}},eT=(e,t,r)=>{let{prefix:n}=r,i=t.get(n);if(null!=i)return i;{let i=r.encode(e);return t.set(n,i),i}},eN=112,ej=18,eM=(e,t,r)=>{let n=eu(e),i=n+eu(t),o=new Uint8Array(i+r.byteLength);return es(e,o,0),es(t,o,n),o.set(r,i),o},eR=Symbol.for("@ipld/js-cid/CID"),eF={writable:!1,configurable:!1,enumerable:!0},eB={writable:!1,enumerable:!1,configurable:!1},eU=(e,t)=>{if(e.test("0.0.0-dev"))console.warn(t);else throw Error(t)},eL=`CID.isCID(v) is deprecated and will be removed in the next major release.
Following code pattern:

if (CID.isCID(value)) {
  doSomethingWithCID(value)
}

Is replaced with:

const cid = CID.asCID(value)
if (cid) {
  // Make sure to use cid instead of value
  doSomethingWithCID(cid)
}
`,e$={...n,...i,...o,...a,...s,...u,...c,...l,...f,...h};({...d,...p});var eq=r(50741);function eW(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}let ez=eW("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),eG=eW("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=(0,eq.E)(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t});var eH={utf8:ez,"utf-8":ez,hex:e$.base16,latin1:eG,ascii:eG,binary:eG,...e$}},4832:function(e,t,r){"use strict";function n(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}r.d(t,{T:function(){return n}})},98873:function(e,t,r){"use strict";r.d(t,{R:function(){return g}});var n=r(4832),i=r(42980),o=r(95950),a=r(27878),s=r(98458),u=r(3458),c=r(53883),l=r(94540),f=r(21693),h=r(40009),d=r(36074),p=r(21028),b=r(86868),m=r(33668),y=r(2445);async function g(e,t){let{account:i=e.account,batch:u=!!e.batch?.multicall,blockNumber:c,blockTag:l="latest",accessList:m,data:g,gas:w,gasPrice:E,maxFeePerGas:_,maxPriorityFeePerGas:x,nonce:C,to:S,value:O,...D}=t,P=i?(0,n.T)(i):void 0;try{(0,y.F)(t);let r=(c?(0,f.eC)(c):void 0)||l,n=e.chain?.formatters?.transactionRequest?.format,i=(n||b.tG)({...(0,p.K)(D,{format:n}),from:P?.address,accessList:m,data:g,gas:w,gasPrice:E,maxFeePerGas:_,maxPriorityFeePerGas:x,nonce:C,to:S,value:O});if(u&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith("0x82ad56cb"))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:i}))try{return await v(e,{...i,blockNumber:c,blockTag:l})}catch(e){if(!(e instanceof a.pZ)&&!(e instanceof a.mm))throw e}let o=await e.request({method:"eth_call",params:r?[i,r]:[i]});if("0x"===o)return{data:void 0};return{data:o}}catch(u){let n=function(e){if(!(e instanceof o.G))return;let t=e.walk();return"object"==typeof t.data?t.data.data:t.data}(u),{offchainLookup:i,offchainLookupSignature:a}=await r.e(5572).then(r.bind(r,5572));if(n?.slice(0,10)===a&&S)return{data:await i(e,{data:n,to:S})};throw function(e,{docsPath:t,...r}){let n=(()=>{let t=(0,d.k)(e,r);return t instanceof h.cj?e:t})();return new s.cg(n,{docsPath:t,...r})}(u,{...t,account:P,chain:e.chain})}}async function v(e,t){let{batchSize:r=1024,wait:n=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:o,blockTag:h="latest",data:d,multicallAddress:p,to:b}=t,y=p;if(!y){if(!e.chain)throw new a.pZ;y=(0,l.L)({blockNumber:o,chain:e.chain,contract:"multicall3"})}let g=(o?(0,f.eC)(o):void 0)||h,{schedule:v}=(0,m.S)({id:`${e.uid}.${g}`,wait:n,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*r,fn:async t=>{let r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,c.R)({abi:i.F8,args:[r],functionName:"aggregate3"}),o=await e.request({method:"eth_call",params:[{data:n,to:y},g]});return(0,u.k)({abi:i.F8,args:[r],functionName:"aggregate3",data:o||"0x"})}}),[{returnData:w,success:E}]=await v({data:d,to:b});if(!E)throw new s.VQ({data:w});return"0x"===w?{data:void 0}:{data:w}}},77451:function(e,t,r){"use strict";r.d(t,{C:function(){return c},X:function(){return u}});var n=r(84161),i=r(82600),o=r(17976),a=r(3891),s=r(75188);async function u(e,t){return c(e,t)}async function c(e,t){let{block:r,chain:u=e.chain,request:c,type:l="eip1559"}=t||{},f=await (async()=>"function"==typeof u?.fees?.baseFeeMultiplier?u.fees.baseFeeMultiplier({block:r,client:e,request:c}):u?.fees?.baseFeeMultiplier??1.2)();if(f<1)throw new n.Fz;let h=10**(f.toString().split(".")[1]?.length??0),d=e=>e*BigInt(Math.ceil(f*h))/BigInt(h),p=r||await (0,i.s)(e,a.Q,"getBlock")({});if("function"==typeof u?.fees?.estimateFeesPerGas)return u.fees.estimateFeesPerGas({block:r,client:e,multiply:d,request:c,type:l});if("eip1559"===l){if("bigint"!=typeof p.baseFeePerGas)throw new n.e5;let t=c?.maxPriorityFeePerGas?c.maxPriorityFeePerGas:await (0,o.h)(e,{block:p,chain:u,request:c}),r=d(p.baseFeePerGas);return{maxFeePerGas:c?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:c?.gasPrice??d(await (0,i.s)(e,s.o,"getGasPrice")({}))}}},89412:function(e,t,r){"use strict";r.d(t,{Q:function(){return y}});var n=r(4832),i=r(67333),o=r(21693),a=r(79352),s=r(32421),u=r(95950),c=r(44818);class l extends u.G{constructor(e,{account:t,docsPath:r,chain:n,data:i,gas:o,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:f,nonce:h,to:d,value:p}){super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,c.xr)({from:t?.address,to:d,value:void 0!==p&&`${(0,a.d)(p)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:o,gasPrice:void 0!==u&&`${(0,s.o)(u)} gwei`,maxFeePerGas:void 0!==l&&`${(0,s.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==f&&`${(0,s.o)(f)} gwei`,nonce:h})].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}var f=r(40009),h=r(36074),d=r(21028),p=r(86868),b=r(2445),m=r(40044);async function y(e,t){let r=t.account??e.account;if(!r)throw new i.o({docsPath:"/docs/actions/public/estimateGas"});let a=(0,n.T)(r);try{let{accessList:r,blockNumber:n,blockTag:i,data:s,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:f,nonce:h,to:y,value:g,...v}="local"===a.type?await (0,m.Z)(e,t):t,w=(n?(0,o.eC)(n):void 0)||i;(0,b.F)(t);let E=e.chain?.formatters?.transactionRequest?.format,_=(E||p.tG)({...(0,d.K)(v,{format:E}),from:a.address,accessList:r,data:s,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:f,nonce:h,to:y,value:g}),x=await e.request({method:"eth_estimateGas",params:w?[_,w]:[_]});return BigInt(x)}catch(r){throw function(e,{docsPath:t,...r}){return new l((()=>{let t=(0,h.k)(e,r);return t instanceof f.cj?e:t})(),{docsPath:t,...r})}(r,{...t,account:a,chain:e.chain})}}},17976:function(e,t,r){"use strict";r.d(t,{_:function(){return u},h:function(){return c}});var n=r(84161),i=r(30838),o=r(82600),a=r(3891),s=r(75188);async function u(e,t){return c(e,t)}async function c(e,t){let{block:r,chain:u=e.chain,request:c}=t||{};if("function"==typeof u?.fees?.defaultPriorityFee){let t=r||await (0,o.s)(e,a.Q,"getBlock")({});return u.fees.defaultPriorityFee({block:t,client:e,request:c})}if(void 0!==u?.fees?.defaultPriorityFee)return u?.fees?.defaultPriorityFee;try{let t=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,i.y_)(t)}catch{let[t,i]=await Promise.all([r?Promise.resolve(r):(0,o.s)(e,a.Q,"getBlock")({}),(0,o.s)(e,s.o,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new n.e5;let u=i-t.baseFeePerGas;if(u<0n)return 0n;return u}}},3891:function(e,t,r){"use strict";r.d(t,{Q:function(){return a}});var n=r(71492),i=r(21693),o=r(78723);async function a(e,{blockHash:t,blockNumber:r,blockTag:a,includeTransactions:s}={}){let u=s??!1,c=void 0!==r?(0,i.eC)(r):void 0,l=null;if(!(l=t?await e.request({method:"eth_getBlockByHash",params:[t,u]}):await e.request({method:"eth_getBlockByNumber",params:[c||(a??"latest"),u]})))throw new n.f({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||o.Z)(l)}},13438:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(30838);async function i(e){let t=await e.request({method:"eth_chainId"});return(0,n.ly)(t)}},75188:function(e,t,r){"use strict";async function n(e){return BigInt(await e.request({method:"eth_gasPrice"}))}r.d(t,{o:function(){return n}})},31742:function(e,t,r){"use strict";r.d(t,{K:function(){return o}});var n=r(30838),i=r(21693);async function o(e,{address:t,blockTag:r="latest",blockNumber:o}){let a=await e.request({method:"eth_getTransactionCount",params:[t,o?(0,i.eC)(o):r]});return(0,n.ly)(a)}},40044:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(4832),i=r(77451),o=r(89412),a=r(3891),s=r(31742),u=r(67333),c=r(84161),l=r(82600),f=r(2445),h=r(44818);async function d(e,t){let{account:r=e.account,chain:d,gas:p,nonce:b,type:m}=t;if(!r)throw new u.o;let y=(0,n.T)(r),g=await (0,l.s)(e,a.Q,"getBlock")({blockTag:"latest"}),v={...t,from:y.address};if(void 0===b&&(v.nonce=await (0,l.s)(e,s.K,"getTransactionCount")({address:y.address,blockTag:"pending"})),void 0===m)try{v.type=function(e){if(e.type)return e.type;if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new h.j3({transaction:e})}(v)}catch{v.type="bigint"==typeof g.baseFeePerGas?"eip1559":"legacy"}if("eip1559"===v.type){let{maxFeePerGas:r,maxPriorityFeePerGas:n}=await (0,i.C)(e,{block:g,chain:d,request:v});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<n)throw new c.ld({maxPriorityFeePerGas:n});v.maxPriorityFeePerGas=n,v.maxFeePerGas=r}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new c.e5;let{gasPrice:r}=await (0,i.C)(e,{block:g,chain:d,request:v,type:"legacy"});v.gasPrice=r}return void 0===p&&(v.gas=await (0,l.s)(e,o.Q,"estimateGas")({...v,account:{address:y.address,type:"json-rpc"}})),(0,f.F)(v),v}},73971:function(e,t,r){"use strict";async function n(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]})}r.d(t,{p:function(){return n}})},75404:function(e,t,r){"use strict";r.d(t,{R:function(){return n}});let n=(0,r(71186).a)({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},30315:function(e,t,r){"use strict";let n;r.d(t,{e:function(){return a}});var i=r(4832);let o=256;function a(e){let{batch:t,cacheTime:r=e.pollingInterval??4e3,key:a="base",name:s="Base Client",pollingInterval:u=4e3,type:c="base"}=e,l=e.chain,f=e.account?(0,i.T)(e.account):void 0,{config:h,request:d,value:p}=e.transport({chain:l,pollingInterval:u}),b={account:f,batch:t,cacheTime:r,chain:l,key:a,name:s,pollingInterval:u,request:d,transport:{...h,...p},type:c,uid:function(e=11){if(!n||o+e>512){n="",o=0;for(let e=0;e<256;e++)n+=(256+256*Math.random()|0).toString(16).substring(1)}return n.substring(o,o+++e)}()};return Object.assign(b,{extend:function e(t){return r=>{let n=r(t);for(let e in b)delete n[e];let i={...t,...n};return Object.assign(i,{extend:e(i)})}}(b)})}},71061:function(e,t,r){"use strict";r.d(t,{K:function(){return B}});var n=r(30315),i=r(13438),o=r(21693);async function a(e,{chain:t}){let{id:r,name:n,nativeCurrency:i,rpcUrls:a,blockExplorers:s}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,o.eC)(r),chainName:n,nativeCurrency:i,rpcUrls:a.default.http,blockExplorerUrls:s?Object.values(s).map(({url:e})=>e):void 0}]})}var s=r(12732),u=r(4832),c=r(67333),l=r(27878);function f({chain:e,currentChainId:t}){if(!e)throw new l.Bk;if(t!==e.id)throw new l.Yl({chain:e,currentChainId:t})}var h=r(40009),d=r(44818),p=r(36074),b=r(21028),m=r(86868),y=r(82600),g=r(2445),v=r(40044),w=r(73971);async function E(e,t){let{account:r=e.account,chain:n=e.chain,accessList:o,data:a,gas:s,gasPrice:l,maxFeePerGas:E,maxPriorityFeePerGas:_,nonce:x,to:C,value:S,...O}=t;if(!r)throw new c.o({docsPath:"/docs/actions/wallet/sendTransaction"});let D=(0,u.T)(r);try{let r;if((0,g.F)(t),null!==n&&(r=await (0,y.s)(e,i.L,"getChainId")({}),f({currentChainId:r,chain:n})),"local"===D.type){let t=await (0,y.s)(e,v.Z,"prepareTransactionRequest")({account:D,accessList:o,chain:n,data:a,gas:s,gasPrice:l,maxFeePerGas:E,maxPriorityFeePerGas:_,nonce:x,to:C,value:S,...O});r||(r=await (0,y.s)(e,i.L,"getChainId")({}));let u=n?.serializers?.transaction,c=await D.signTransaction({...t,chainId:r},{serializer:u});return await (0,y.s)(e,w.p,"sendRawTransaction")({serializedTransaction:c})}let u=e.chain?.formatters?.transactionRequest?.format,c=(u||m.tG)({...(0,b.K)(O,{format:u}),accessList:o,data:a,from:D.address,gas:s,gasPrice:l,maxFeePerGas:E,maxPriorityFeePerGas:_,nonce:x,to:C,value:S});return await e.request({method:"eth_sendTransaction",params:[c]})}catch(e){throw function(e,{docsPath:t,...r}){let n=(()=>{let t=(0,p.k)(e,r);return t instanceof h.cj?e:t})();return new d.mk(n,{docsPath:t,...r})}(e,{...t,account:D,chain:t.chain||void 0})}}var _=r(39803);async function x(e){return e.account?.type==="local"?[e.account.address]:(await e.request({method:"eth_accounts"})).map(e=>(0,_.x)(e))}async function C(e){return await e.request({method:"wallet_getPermissions"})}async function S(e){return(await e.request({method:"eth_requestAccounts"})).map(e=>(0,_.K)(e))}async function O(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}async function D(e,{account:t=e.account,message:r}){if(!t)throw new c.o({docsPath:"/docs/actions/wallet/signMessage"});let n=(0,u.T)(t);if("local"===n.type)return n.signMessage({message:r});let i="string"==typeof r?(0,o.$G)(r):r.raw instanceof Uint8Array?(0,o.NC)(r.raw):r.raw;return e.request({method:"personal_sign",params:[i,n.address]})}async function P(e,t){let{account:r=e.account,chain:n=e.chain,...a}=t;if(!r)throw new c.o({docsPath:"/docs/actions/wallet/signTransaction"});let s=(0,u.T)(r);(0,g.F)({account:s,...t});let l=await (0,y.s)(e,i.L,"getChainId")({});null!==n&&f({currentChainId:l,chain:n});let h=n?.formatters||e.chain?.formatters,d=h?.transactionRequest?.format||m.tG;return"local"===s.type?s.signTransaction({...a,chainId:l},{serializer:e.chain?.serializers?.transaction}):await e.request({method:"eth_signTransaction",params:[{...d(a),chainId:(0,o.eC)(l),from:s.address}]})}var k=r(45008),A=r(71891),I=r(29578);async function T(e,{account:t=e.account,domain:r,message:n,primaryType:i,types:o}){if(!t)throw new c.o({docsPath:"/docs/actions/wallet/signTypedData"});let a=(0,u.T)(t),s={EIP712Domain:(0,I.cj)({domain:r}),...o};if((0,I.iC)({domain:r,message:n,primaryType:i,types:s}),"local"===a.type)return a.signTypedData({domain:r,primaryType:i,types:s,message:n});let l=(0,A.P)({domain:r??{},primaryType:i,types:s,message:n},(e,t)=>(0,k.v)(t)?t.toLowerCase():t);return e.request({method:"eth_signTypedData_v4",params:[a.address,l]})}async function N(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,o.eC)(t)}]})}async function j(e,t){return await e.request({method:"wallet_watchAsset",params:t})}var M=r(53883);async function R(e,{abi:t,address:r,args:n,dataSuffix:i,functionName:o,...a}){let s=(0,M.R)({abi:t,args:n,functionName:o});return await (0,y.s)(e,E,"sendTransaction")({data:`${s}${i?i.replace("0x",""):""}`,to:r,...a})}function F(e){return{addChain:t=>a(e,t),deployContract:t=>(function(e,{abi:t,args:r,bytecode:n,...i}){let o=(0,s.w)({abi:t,args:r,bytecode:n});return E(e,{...i,data:o})})(e,t),getAddresses:()=>x(e),getChainId:()=>(0,i.L)(e),getPermissions:()=>C(e),prepareTransactionRequest:t=>(0,v.Z)(e,t),requestAddresses:()=>S(e),requestPermissions:t=>O(e,t),sendRawTransaction:t=>(0,w.p)(e,t),sendTransaction:t=>E(e,t),signMessage:t=>D(e,t),signTransaction:t=>P(e,t),signTypedData:t=>T(e,t),switchChain:t=>N(e,t),watchAsset:t=>j(e,t),writeContract:t=>R(e,t)}}function B(e){let{key:t="wallet",name:r="Wallet Client",transport:i}=e;return(0,n.e)({...e,key:t,name:r,transport:e=>i({...e,retryCount:0}),type:"walletClient"}).extend(F)}},68124:function(e,t,r){"use strict";r.d(t,{q:function(){return i}});var n=r(35215);function i({key:e,name:t,request:r,retryCount:i=3,retryDelay:o=150,timeout:a,type:s},u){return{config:{key:e,name:t,request:r,retryCount:i,retryDelay:o,timeout:a,type:s},request:(0,n.n)(r,{retryCount:i,retryDelay:o}),value:u}}},39730:function(e,t,r){"use strict";r.d(t,{P:function(){return i}});var n=r(68124);function i(e,t={}){let{key:r="custom",name:i="Custom Provider",retryDelay:o}=t;return({retryCount:a})=>(0,n.q)({key:r,name:i,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:o,type:"custom"})}},42980:function(e,t,r){"use strict";r.d(t,{$o:function(){return c},F8:function(){return n},X$:function(){return u},du:function(){return a},k3:function(){return o},nZ:function(){return s}});let n=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],i=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],o=[...i,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],a=[...i,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],s=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],u=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],c=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},28483:function(e,t,r){"use strict";r.d(t,{$:function(){return n},Up:function(){return i},hZ:function(){return o}});let n={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},o={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},36238:function(e,t,r){"use strict";r.d(t,{Bd:function(){return o},Zn:function(){return i},ez:function(){return n}});let n={gwei:9,wei:18},i={ether:-9,wei:9},o={ether:-18,gwei:-9}},71878:function(e,t,r){"use strict";r.d(t,{CI:function(){return C},FM:function(){return p},Gy:function(){return _},KY:function(){return w},M4:function(){return f},MX:function(){return g},S4:function(){return v},SM:function(){return E},cO:function(){return s},dh:function(){return x},fM:function(){return a},fs:function(){return h},gr:function(){return l},hn:function(){return S},lC:function(){return b},mv:function(){return m},wM:function(){return O},wb:function(){return c},xB:function(){return u},xL:function(){return y},yP:function(){return d}});var n=r(40928),i=r(39868),o=r(95950);class a extends o.G{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class s extends o.G{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class u extends o.G{constructor({data:e,params:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,n.h)(t,{includeName:!0})})`,`Data:   ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}class c extends o.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class l extends o.G{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}.
Expected length: ${e}
Given length: ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class f extends o.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.d)(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class h extends o.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.
Expected length (params): ${e}
Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class d extends o.G{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI.
Make sure you are using the correct ABI and that the error exists on it.
You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class p extends o.G{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class b extends o.G{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI.
Make sure you are using the correct ABI and that the event exists on it.
You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class m extends o.G{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI.
Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class y extends o.G{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI.
Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class g extends o.G{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI.
Cannot decode function result without knowing what the parameter types are.
Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class v extends o.G{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,n.t)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,n.t)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItemAmbiguityError"})}}class w extends o.G{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class E extends o.G{constructor({abiItem:e,data:t,params:r,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,n.h)(r,{includeName:!0})})`,`Data:   ${t} (${i} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=i}}class _ extends o.G{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.t)(e,{includeName:!0})}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class x extends o.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type.
Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class C extends o.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type.
Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class S extends o.G{constructor(e){super(`Value "${e}" is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class O extends o.G{constructor(e){super(`"${e}" is not a valid definition type.
Valid types: "function", "event", "error"`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}},67333:function(e,t,r){"use strict";r.d(t,{o:function(){return i}});var n=r(95950);class i extends n.G{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient.",{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}},21485:function(e,t,r){"use strict";r.d(t,{b:function(){return i}});var n=r(95950);class i extends n.G{constructor({address:e}){super(`Address "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}},95950:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(66291);class i extends Error{constructor(e,t={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,n.bo)()});let r=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof i&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: https://viem.sh${o}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t?e(t.cause,r):r?null:t}(this,e)}}},71492:function(e,t,r){"use strict";r.d(t,{f:function(){return i}});var n=r(95950);class i extends n.G{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}},27878:function(e,t,r){"use strict";r.d(t,{Bk:function(){return a},Yl:function(){return o},mm:function(){return i},pZ:function(){return s}});var n=r(95950);class i extends n.G{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}class o extends n.G{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID:  ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}class a extends n.G{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}class s extends n.G{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}},98458:function(e,t,r){"use strict";r.d(t,{cg:function(){return m},uq:function(){return y},Lu:function(){return g},Dk:function(){return v},VQ:function(){return w}});var n=r(4832),i=r(28483),o=r(49039),a=r(40928),s=r(71891);function u({abiItem:e,args:t,includeFunctionName:r=!0,includeName:n=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((e,r)=>`${n&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?(0,s.P)(t[r]):t[r]}`).join(", ")})`}var c=r(77804),l=r(79352),f=r(32421),h=r(71878),d=r(95950),p=r(44818),b=r(66291);class m extends d.G{constructor(e,{account:t,docsPath:r,chain:i,data:o,gas:a,gasPrice:s,maxFeePerGas:u,maxPriorityFeePerGas:c,nonce:h,to:d,value:b}){super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",(0,p.xr)({from:(t?(0,n.T)(t):void 0)?.address,to:d,value:void 0!==b&&`${(0,l.d)(b)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:a,gasPrice:void 0!==s&&`${(0,f.o)(s)} gwei`,maxFeePerGas:void 0!==u&&`${(0,f.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${(0,f.o)(c)} gwei`,nonce:h})].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}class y extends d.G{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:o,sender:s}){let l=(0,c.mE)({abi:t,args:r,name:o}),f=l?u({abiItem:l,args:r,includeFunctionName:!1,includeName:!1}):void 0;super(e.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",(0,p.xr)({address:n&&(0,b.CR)(n),function:l?(0,a.t)(l,{includeName:!0}):void 0,args:f&&"()"!==f&&`${[...Array(o?.length??0).keys()].map(()=>" ").join("")}${f}`,sender:s})].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=o,this.sender=s}}class g extends d.G{constructor({abi:e,data:t,functionName:r,message:n}){let s,c,l,f,d;if(t&&"0x"!==t)try{let{abiItem:r,errorName:n,args:s}=d=(0,o.p)({abi:e,data:t});if("Error"===n)l=s[0];else if("Panic"===n){let[e]=s;l=i.$[e]}else{let e=r?(0,a.t)(r,{includeName:!0}):void 0,t=r&&s?u({abiItem:r,args:s,includeFunctionName:!1,includeName:!1}):void 0;c=[e?`Error: ${e}`:"",t&&"()"!==t?`       ${[...Array(n?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){s=e}else n&&(l=n);s instanceof h.yP&&(f=s.signature,c=[`Unable to decode signature "${f}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${f}.`]),super(l&&"execution reverted"!==l||f?[`The contract function "${r}" reverted with the following ${f?"signature":"reason"}:`,l||f].join("\n"):`The contract function "${r}" reverted.`,{cause:s,metaMessages:c}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=d,this.reason=l,this.signature=f}}class v extends d.G{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",`  - The contract does not have the function "${e}",`,"  - The parameters passed to the contract function may be invalid, or","  - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}class w extends d.G{constructor({data:e,message:t}){super(t||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},741:function(e,t,r){"use strict";r.d(t,{$:function(){return o},m:function(){return i}});var n=r(95950);class i extends n.G{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class o extends n.G{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}},86714:function(e,t,r){"use strict";r.d(t,{Cd:function(){return o},J5:function(){return i},M6:function(){return a}});var n=r(95950);class i extends n.G{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class o extends n.G{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}class a extends n.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}},84161:function(e,t,r){"use strict";r.d(t,{Fz:function(){return o},e5:function(){return a},ld:function(){return s}});var n=r(32421),i=r(95950);class o extends i.G{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}class a extends i.G{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}class s extends i.G{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,n.o)(e)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}},40009:function(e,t,r){"use strict";r.d(t,{C_:function(){return f},G$:function(){return s},Hh:function(){return a},M_:function(){return o},WF:function(){return h},ZI:function(){return u},cj:function(){return m},cs:function(){return b},dR:function(){return d},pZ:function(){return p},se:function(){return l},vU:function(){return c}});var n=r(32421),i=r(95950);class o extends i.G{constructor({cause:e,message:t}={}){let r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class a extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.o)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class s extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class u extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class c extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class l extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class f extends i.G{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class h extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class d extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.G{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class b extends i.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.o)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.o)(r)} gwei`:""}).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(b,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class m extends i.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}},20722:function(e,t,r){"use strict";r.d(t,{Gg:function(){return a},W5:function(){return c},bs:function(){return u},c9:function(){return s}});var n=r(71891),i=r(95950),o=r(66291);class a extends i.G{constructor({body:e,details:t,headers:r,status:i,url:a}){super("HTTP request failed.",{details:t,metaMessages:[i&&`Status: ${i}`,`URL: ${(0,o.Gr)(a)}`,e&&`Request body: ${(0,n.P)(e)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=r,this.status=i,this.url=a}}class s extends i.G{constructor({body:e,details:t,url:r}){super("WebSocket request failed.",{details:t,metaMessages:[`URL: ${(0,o.Gr)(r)}`,`Request body: ${(0,n.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}class u extends i.G{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,o.Gr)(r)}`,`Request body: ${(0,n.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}class c extends i.G{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,o.Gr)(t)}`,`Request body: ${(0,n.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}},48519:function(e,t,r){"use strict";r.d(t,{B:function(){return u},GD:function(){return g},I0:function(){return x},KB:function(){return b},LX:function(){return c},Og:function(){return d},PE:function(){return w},Pv:function(){return y},Ts:function(){return E},XS:function(){return f},ab:function(){return v},gS:function(){return m},ir:function(){return S},nY:function(){return l},pT:function(){return p},s7:function(){return s},u5:function(){return _},x3:function(){return C},yR:function(){return h}});var n=r(95950),i=r(20722);class o extends n.G{constructor(e,{code:t,docsPath:r,metaMessages:n,shortMessage:o}){super(o,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof i.bs?e.code:t??-1}}class a extends o{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class s extends o{constructor(e){super(e,{code:s.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class u extends o{constructor(e){super(e,{code:u.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class c extends o{constructor(e){super(e,{code:c.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class l extends o{constructor(e){super(e,{code:l.code,shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class f extends o{constructor(e){super(e,{code:f.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class h extends o{constructor(e){super(e,{code:h.code,shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class d extends o{constructor(e){super(e,{code:d.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends o{constructor(e){super(e,{code:p.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class b extends o{constructor(e){super(e,{code:b.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class m extends o{constructor(e){super(e,{code:m.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class y extends o{constructor(e){super(e,{code:y.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class g extends o{constructor(e){super(e,{code:g.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class v extends a{constructor(e){super(e,{code:v.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class w extends a{constructor(e){super(e,{code:w.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class E extends a{constructor(e){super(e,{code:E.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class _ extends a{constructor(e){super(e,{code:_.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(_,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class x extends a{constructor(e){super(e,{code:x.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class C extends a{constructor(e){super(e,{code:C.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class S extends o{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}},44818:function(e,t,r){"use strict";r.d(t,{Bh:function(){return l},Yb:function(){return f},j3:function(){return u},mc:function(){return h},mk:function(){return c},xY:function(){return s},xr:function(){return a}});var n=r(79352),i=r(32421),o=r(95950);function a(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>`  ${`${e}:`.padEnd(r+1)}  ${t}`).join("\n")}class s extends o.G{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class u extends o.G{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",a(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class c extends o.G{constructor(e,{account:t,docsPath:r,chain:o,data:s,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:f,nonce:h,to:d,value:p}){super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",a({chain:o&&`${o?.name} (id: ${o?.id})`,from:t?.address,to:d,value:void 0!==p&&`${(0,n.d)(p)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:u,gasPrice:void 0!==c&&`${(0,i.o)(c)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==f&&`${(0,i.o)(f)} gwei`,nonce:h})].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}class l extends o.G{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let o="Transaction";r&&void 0!==i&&(o=`Transaction at block time "${r}" at index "${i}"`),e&&void 0!==i&&(o=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(o=`Transaction at block number "${t}" at index "${i}"`),n&&(o=`Transaction with hash "${n}"`),super(`${o} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class f extends o.G{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class h extends o.G{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}},66291:function(e,t,r){"use strict";r.d(t,{CR:function(){return n},Gr:function(){return i},bo:function(){return o}});let n=e=>e,i=e=>e,o=()=>"viem@1.21.3"},87425:function(e,t,r){"use strict";r.d(t,{r:function(){return l}});var n=r(71878),i=r(39803),o=r(39868),a=r(72619),s=r(94973),u=r(30838),c=r(90929);function l(e,t){if("0x"===t&&e.length>0)throw new n.wb;if((0,o.d)(t)&&32>(0,o.d)(t))throw new n.xB({data:t,params:e,size:(0,o.d)(t)});return function({data:e,params:t}){let r=[],l=0;for(let h=0;h<t.length;h++){if(l>=(0,o.d)(e))throw new n.xB({data:e,params:t,size:(0,o.d)(e)});let{consumed:d,value:p}=function e({data:t,param:r,position:o}){let l=(0,c.S)(r.type);if(l){let[n,i]=l;return function(t,{param:r,length:n,position:i}){if(!n){let n=(0,u.ly)((0,a.tP)(t,i,i+32,{strict:!0})),o=(0,u.ly)((0,a.tP)(t,n,n+32,{strict:!0})),s=0,c=[];for(let i=0;i<o;++i){let i=e({data:(0,a.tP)(t,n+32),param:r,position:s});s+=i.consumed,c.push(i.value)}return{value:c,consumed:32}}if(f(r)){let o=(0,c.S)(r.type),s=!o?.[0],l=0,f=[];for(let o=0;o<n;++o){let n=(0,u.ly)((0,a.tP)(t,i,i+32,{strict:!0})),c=e({data:(0,a.tP)(t,n),param:r,position:s?l:32*o});l+=c.consumed,f.push(c.value)}return{value:f,consumed:32}}let o=0,s=[];for(let a=0;a<n;++a){let n=e({data:t,param:r,position:i+o});o+=n.consumed,s.push(n.value)}return{value:s,consumed:o}}(t,{length:n,param:{...r,type:i},position:o})}if("tuple"===r.type)return function(t,{param:r,position:n}){let i=0===r.components.length||r.components.some(({name:e})=>!e),o=i?[]:{},s=0;if(f(r)){let c=(0,u.ly)((0,a.tP)(t,n,n+32,{strict:!0}));for(let n=0;n<r.components.length;++n){let u=r.components[n],l=e({data:(0,a.tP)(t,c),param:u,position:s});s+=l.consumed,o[i?n:u?.name]=l.value}return{consumed:32,value:o}}for(let a=0;a<r.components.length;++a){let u=r.components[a],c=e({data:t,param:u,position:n+s});s+=c.consumed,o[i?a:u?.name]=c.value}return{consumed:s,value:o}}(t,{param:r,position:o});if("string"===r.type)return function(e,{position:t}){let r=(0,u.ly)((0,a.tP)(e,t,t+32,{strict:!0})),n=(0,u.ly)((0,a.tP)(e,r,r+32,{strict:!0}));return 0===n?{consumed:32,value:""}:{consumed:32,value:(0,u.rR)((0,s.f)((0,a.tP)(e,r+32,r+32+n,{strict:!0})))}}(t,{position:o});if(r.type.startsWith("bytes"))return function(e,{param:t,position:r}){let[n,i]=t.type.split("bytes");if(!i){let t=(0,u.ly)((0,a.tP)(e,r,r+32,{strict:!0})),n=(0,u.ly)((0,a.tP)(e,t,t+32,{strict:!0}));return 0===n?{consumed:32,value:"0x"}:{consumed:32,value:(0,a.tP)(e,t+32,t+32+n,{strict:!0})}}return{consumed:32,value:(0,a.tP)(e,r,r+parseInt(i),{strict:!0})}}(t,{param:r,position:o});let h=(0,a.tP)(t,o,o+32,{strict:!0});if(r.type.startsWith("uint")||r.type.startsWith("int"))return function(e,{param:t}){let r=t.type.startsWith("int");return{consumed:32,value:parseInt(t.type.split("int")[1]||"256")>48?(0,u.y_)(e,{signed:r}):(0,u.ly)(e,{signed:r})}}(h,{param:r});if("address"===r.type)return{consumed:32,value:(0,i.x)((0,a.tP)(h,-20))};if("bool"===r.type)return{consumed:32,value:(0,u.XA)(h)};throw new n.CI(r.type,{docsPath:"/docs/contract/decodeAbiParameters"})}({data:e,param:t[h],position:l});r.push(p),l+=d}return r}({data:t,params:e})}function f(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(f);let r=(0,c.S)(e.type);return!!(r&&f({...e,type:r[1]}))}},49039:function(e,t,r){"use strict";r.d(t,{p:function(){return c}});var n=r(28483),i=r(71878),o=r(72619),a=r(33655),s=r(87425),u=r(40928);function c({abi:e,data:t}){let r=(0,o.tP)(t,0,4);if("0x"===r)throw new i.wb;let c=[...e||[],n.Up,n.hZ].find(e=>"error"===e.type&&r===(0,a.o)((0,u.t)(e)));if(!c)throw new i.yP(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:c,args:"inputs"in c&&c.inputs&&c.inputs.length>0?(0,s.r)(c.inputs,(0,o.tP)(t,4)):void 0,errorName:c.name}}},3458:function(e,t,r){"use strict";r.d(t,{k:function(){return s}});var n=r(71878),i=r(87425),o=r(77804);let a="/docs/contract/decodeFunctionResult";function s({abi:e,args:t,functionName:r,data:s}){let u=e[0];if(r&&!(u=(0,o.mE)({abi:e,args:t,name:r})))throw new n.xL(r,{docsPath:a});if("function"!==u.type)throw new n.xL(void 0,{docsPath:a});if(!u.outputs)throw new n.MX(u.name,{docsPath:a});let c=(0,i.r)(u.outputs,s);return c&&c.length>1?c:c&&1===c.length?c[0]:void 0}},90929:function(e,t,r){"use strict";r.d(t,{E:function(){return f},S:function(){return d}});var n=r(71878),i=r(21485),o=r(87364),a=r(69809),s=r(99725),u=r(39868),c=r(72619),l=r(21693);function f(e,t){if(e.length!==t.length)throw new n.fs({expectedLength:e.length,givenLength:t.length});let r=h(function({params:e,values:t}){let r=[];for(let f=0;f<e.length;f++)r.push(function e({param:t,value:r}){let f=d(t.type);if(f){let[i,o]=f;return function(t,{length:r,param:i}){let o=null===r;if(!Array.isArray(t))throw new n.hn(t);if(!o&&t.length!==r)throw new n.gr({expectedLength:r,givenLength:t.length,type:`${i.type}[${r}]`});let s=!1,u=[];for(let r=0;r<t.length;r++){let n=e({param:i,value:t[r]});n.dynamic&&(s=!0),u.push(n)}if(o||s){let e=h(u);if(o){let t=(0,l.eC)(u.length,{size:32});return{dynamic:!0,encoded:u.length>0?(0,a.zo)([t,e]):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,a.zo)(u.map(({encoded:e})=>e))}}(r,{length:i,param:{...t,type:o}})}if("tuple"===t.type)return function(t,{param:r}){let n=!1,i=[];for(let o=0;o<r.components.length;o++){let a=r.components[o],s=Array.isArray(t)?o:a.name,u=e({param:a,value:t[s]});i.push(u),u.dynamic&&(n=!0)}return{dynamic:n,encoded:n?h(i):(0,a.zo)(i.map(({encoded:e})=>e))}}(r,{param:t});if("address"===t.type)return function(e){if(!(0,o.U)(e))throw new i.b({address:e});return{dynamic:!1,encoded:(0,s.gc)(e.toLowerCase())}}(r);if("bool"===t.type)return{dynamic:!1,encoded:(0,s.gc)((0,l.C4)(r))};if(t.type.startsWith("uint")||t.type.startsWith("int"))return function(e,{signed:t}){return{dynamic:!1,encoded:(0,l.eC)(e,{size:32,signed:t})}}(r,{signed:t.type.startsWith("int")});if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,r]=t.type.split("bytes"),i=(0,u.d)(e);if(!r){let t=e;return i%32!=0&&(t=(0,s.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,a.zo)([(0,s.gc)((0,l.eC)(i,{size:32})),t])}}if(i!==parseInt(r))throw new n.M4({expectedSize:parseInt(r),value:e});return{dynamic:!1,encoded:(0,s.gc)(e,{dir:"right"})}}(r,{param:t});if("string"===t.type)return function(e){let t=(0,l.$G)(e),r=Math.ceil((0,u.d)(t)/32),n=[];for(let e=0;e<r;e++)n.push((0,s.gc)((0,c.tP)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,a.zo)([(0,s.gc)((0,l.eC)((0,u.d)(t),{size:32})),...n])}}(r);throw new n.dh(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[f],value:t[f]}));return r}({params:e,values:t}));return 0===r.length?"0x":r}function h(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:i}=e[r];n?t+=32:t+=(0,u.d)(i)}let r=[],n=[],i=0;for(let o=0;o<e.length;o++){let{dynamic:a,encoded:s}=e[o];a?(r.push((0,l.eC)(t+i,{size:32})),n.push(s),i+=(0,u.d)(s)):r.push(s)}return(0,a.zo)([...r,...n])}function d(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},12732:function(e,t,r){"use strict";r.d(t,{w:function(){return s}});var n=r(71878),i=r(69809),o=r(90929);let a="/docs/contract/encodeDeployData";function s({abi:e,args:t,bytecode:r}){if(!t||0===t.length)return r;let s=e.find(e=>"type"in e&&"constructor"===e.type);if(!s)throw new n.fM({docsPath:a});if(!("inputs"in s)||!s.inputs||0===s.inputs.length)throw new n.cO({docsPath:a});let u=(0,o.E)(s.inputs,t);return(0,i.SM)([r,u])}},53883:function(e,t,r){"use strict";r.d(t,{R:function(){return c}});var n=r(71878),i=r(69809),o=r(33655),a=r(90929),s=r(40928),u=r(77804);function c({abi:e,args:t,functionName:r}){let c=e[0];if(r&&!(c=(0,u.mE)({abi:e,args:t,name:r})))throw new n.xL(r,{docsPath:"/docs/contract/encodeFunctionData"});if("function"!==c.type)throw new n.xL(void 0,{docsPath:"/docs/contract/encodeFunctionData"});let l=(0,s.t)(c),f=(0,o.o)(l),h="inputs"in c&&c.inputs?(0,a.E)(c.inputs,t??[]):void 0;return(0,i.SM)([f,h??"0x"])}},40928:function(e,t,r){"use strict";r.d(t,{h:function(){return o},t:function(){return i}});var n=r(71878);function i(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.wM(e.type);return`${e.name}(${o(e.inputs,{includeName:t})})`}function o(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${o(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},77804:function(e,t,r){"use strict";r.d(t,{mE:function(){return u}});var n=r(71878),i=r(45008),o=r(77688),a=r(33655),s=r(87364);function u({abi:e,args:t=[],name:r}){let u;let c=(0,i.v)(r,{strict:!1}),l=e.filter(e=>c?"function"===e.type?(0,a.o)(e)===r:"event"===e.type&&(0,o.e)(e)===r:"name"in e&&e.name===r);if(0!==l.length){if(1===l.length)return l[0];for(let e of l)if("inputs"in e){if(!t||0===t.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===t.length&&t.every((t,r)=>{let n="inputs"in e&&e.inputs[r];return!!n&&function e(t,r){let n=typeof t,i=r.type;switch(i){case"address":return(0,s.U)(t);case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:if("tuple"===i&&"components"in r)return Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i))return"number"===n||"bigint"===n;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===n||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,n)})){if(u&&"inputs"in u&&u.inputs){let r=function e(t,r,n){for(let i in t){let o=t[i],a=r[i];if("tuple"===o.type&&"tuple"===a.type&&"components"in o&&"components"in a)return e(o.components,a.components,n[i]);let u=[o.type,a.type];if(u.includes("address")&&u.includes("bytes20")||(u.includes("address")&&u.includes("string")||u.includes("address")&&u.includes("bytes"))&&(0,s.U)(n[i]))return u}}(e.inputs,u.inputs,t);if(r)throw new n.S4({abiItem:e,type:r[0]},{abiItem:u,type:r[1]})}u=e}}return u||l[0]}}},39803:function(e,t,r){"use strict";r.d(t,{K:function(){return u},x:function(){return s}});var n=r(21485),i=r(56728),o=r(55852),a=r(87364);function s(e,t){let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,o.w)((0,i.qX)(r),"bytes"),a=(t?r.substring(`${t}0x`.length):r).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&a[e]&&(a[e]=a[e].toUpperCase()),(15&n[e>>1])>=8&&a[e+1]&&(a[e+1]=a[e+1].toUpperCase());return`0x${a.join("")}`}function u(e,t){if(!(0,a.U)(e))throw new n.b({address:e});return s(e,t)}},87364:function(e,t,r){"use strict";r.d(t,{U:function(){return i}});let n=/^0x[a-fA-F0-9]{40}$/;function i(e){return n.test(e)}},35215:function(e,t,r){"use strict";r.d(t,{n:function(){return u},y:function(){return s}});var n=r(95950),i=r(20722),o=r(48519),a=r(36063);let s=e=>"code"in e?-1!==e.code&&-32004!==e.code&&-32005!==e.code&&-32042!==e.code&&-32603!==e.code:e instanceof i.Gg&&!!e.status&&403!==e.status&&408!==e.status&&413!==e.status&&429!==e.status&&500!==e.status&&502!==e.status&&503!==e.status&&504!==e.status;function u(e,{retryDelay:t=150,retryCount:r=3}={}){return async u=>(0,a.J)(async()=>{try{return await e(u)}catch(e){switch(e.code){case o.s7.code:throw new o.s7(e);case o.B.code:throw new o.B(e);case o.LX.code:throw new o.LX(e);case o.nY.code:throw new o.nY(e);case o.XS.code:throw new o.XS(e);case o.yR.code:throw new o.yR(e);case o.Og.code:throw new o.Og(e);case o.pT.code:throw new o.pT(e);case o.KB.code:throw new o.KB(e);case o.gS.code:throw new o.gS(e);case o.Pv.code:throw new o.Pv(e);case o.GD.code:throw new o.GD(e);case o.ab.code:throw new o.ab(e);case o.PE.code:throw new o.PE(e);case o.Ts.code:throw new o.Ts(e);case o.u5.code:throw new o.u5(e);case o.I0.code:throw new o.I0(e);case o.x3.code:throw new o.x3(e);case 5e3:throw new o.ab(e);default:if(e instanceof n.G)throw e;throw new o.ir(e)}}},{delay:({count:e,error:r})=>{if(r&&r instanceof i.Gg){let e=r?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*parseInt(e)}return~~(1<<e)*t},retryCount:r,shouldRetry:({error:e})=>!s(e)})}},71186:function(e,t,r){"use strict";function n(e,t={}){let{fees:r=e.fees,formatters:n=e.formatters,serializers:i=e.serializers}=t;return{...e,fees:r,formatters:n,serializers:i}}r.d(t,{a:function(){return n}})},94540:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(27878);function i({blockNumber:e,chain:t,contract:r}){let i=t?.contracts?.[r];if(!i)throw new n.mm({chain:t,contract:{name:r}});if(e&&i.blockCreated&&i.blockCreated>e)throw new n.mm({blockNumber:e,chain:t,contract:{name:r,blockCreated:i.blockCreated}});return i.address}},69809:function(e,t,r){"use strict";function n(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}(e)}function i(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}r.d(t,{SM:function(){return i},zo:function(){return n}})},45008:function(e,t,r){"use strict";function n(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}r.d(t,{v:function(){return n}})},99725:function(e,t,r){"use strict";r.d(t,{gc:function(){return o},vk:function(){return i}});var n=r(741);function i(e,{dir:t,size:r=32}={}){return"string"==typeof e?o(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.$({size:e.length,targetSize:r,type:"bytes"});let i=new Uint8Array(r);for(let n=0;n<r;n++){let o="right"===t;i[o?n:r-n-1]=e[o?n:e.length-n-1]}return i}(e,{dir:t,size:r})}function o(e,{dir:t,size:r=32}={}){if(null===r)return e;let i=e.replace("0x","");if(i.length>2*r)throw new n.$({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}},39868:function(e,t,r){"use strict";r.d(t,{d:function(){return i}});var n=r(45008);function i(e){return(0,n.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},72619:function(e,t,r){"use strict";r.d(t,{tP:function(){return a}});var n=r(741),i=r(45008),o=r(39868);function a(e,t,r,{strict:n}={}){return(0,i.v)(e,{strict:!1})?function(e,t,r,{strict:n}={}){s(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&u(i,t,r),i}(e,t,r,{strict:n}):function(e,t,r,{strict:n}={}){s(e,t);let i=e.slice(t,r);return n&&u(i,t,r),i}(e,t,r,{strict:n})}function s(e,t){if("number"==typeof t&&t>0&&t>(0,o.d)(e)-1)throw new n.m({offset:t,position:"start",size:(0,o.d)(e)})}function u(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,o.d)(e)!==r-t)throw new n.m({offset:r,position:"end",size:(0,o.d)(e)})}},94973:function(e,t,r){"use strict";function n(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e<r.length-1&&"0"===r["left"===t?e:r.length-e-1].toString();e++)n++;return(r="left"===t?r.slice(n):r.slice(0,r.length-n),"string"==typeof e)?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}r.d(t,{f:function(){return n}})},30838:function(e,t,r){"use strict";r.d(t,{XA:function(){return c},Yf:function(){return s},ly:function(){return l},rR:function(){return f},y_:function(){return u}});var n=r(86714),i=r(39868),o=r(94973),a=r(56728);function s(e,{size:t}){if((0,i.d)(e)>t)throw new n.M6({givenSize:(0,i.d)(e),maxSize:t})}function u(e,t={}){let{signed:r}=t;t.size&&s(e,{size:t.size});let n=BigInt(e);if(!r)return n;let i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function c(e,t={}){let r=e;if(t.size&&(s(r,{size:t.size}),r=(0,o.f)(r)),"0x00"===(0,o.f)(r))return!1;if("0x01"===(0,o.f)(r))return!0;throw new n.Cd(r)}function l(e,t={}){return Number(u(e,t))}function f(e,t={}){let r=(0,a.nr)(e);return t.size&&(s(r,{size:t.size}),r=(0,o.f)(r,{dir:"right"})),new TextDecoder().decode(r)}},56728:function(e,t,r){"use strict";r.d(t,{O0:function(){return c},nr:function(){return h},qX:function(){return d}});var n=r(95950),i=r(45008),o=r(99725),a=r(30838),s=r(21693);let u=new TextEncoder;function c(e,t={}){return"number"==typeof e||"bigint"==typeof e?h((0,s.eC)(e,t)):"boolean"==typeof e?function(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?((0,a.Yf)(r,{size:t.size}),(0,o.vk)(r,{size:t.size})):r}(e,t):(0,i.v)(e)?h(e,t):d(e,t)}let l={zero:48,nine:57,A:65,F:70,a:97,f:102};function f(e){return e>=l.zero&&e<=l.nine?e-l.zero:e>=l.A&&e<=l.F?e-(l.A-10):e>=l.a&&e<=l.f?e-(l.a-10):void 0}function h(e,t={}){let r=e;t.size&&((0,a.Yf)(r,{size:t.size}),r=(0,o.vk)(r,{dir:"right",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);let s=i.length/2,u=new Uint8Array(s);for(let e=0,t=0;e<s;e++){let r=f(i.charCodeAt(t++)),o=f(i.charCodeAt(t++));if(void 0===r||void 0===o)throw new n.G(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);u[e]=16*r+o}return u}function d(e,t={}){let r=u.encode(e);return"number"==typeof t.size?((0,a.Yf)(r,{size:t.size}),(0,o.vk)(r,{dir:"right",size:t.size})):r}},21693:function(e,t,r){"use strict";r.d(t,{$G:function(){return h},C4:function(){return u},NC:function(){return s},ci:function(){return c},eC:function(){return l}});var n=r(86714),i=r(99725),o=r(30838);let a=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function s(e,t={}){return"number"==typeof e||"bigint"==typeof e?l(e,t):"string"==typeof e?h(e,t):"boolean"==typeof e?u(e,t):c(e,t)}function u(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?((0,o.Yf)(r,{size:t.size}),(0,i.vk)(r,{size:t.size})):r}function c(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=a[e[t]];let n=`0x${r}`;return"number"==typeof t.size?((0,o.Yf)(n,{size:t.size}),(0,i.vk)(n,{dir:"right",size:t.size})):n}function l(e,t={}){let r;let{signed:o,size:a}=t,s=BigInt(e);a?r=o?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let u="bigint"==typeof r&&o?-r-1n:0;if(r&&s>r||s<u){let t="bigint"==typeof e?"n":"";throw new n.J5({max:r?`${r}${t}`:void 0,min:`${u}${t}`,signed:o,size:a,value:`${e}${t}`})}let c=`0x${(o&&s<0?(1n<<BigInt(8*a))+BigInt(s):s).toString(16)}`;return a?(0,i.vk)(c,{size:a}):c}let f=new TextEncoder;function h(e,t={}){return c(f.encode(e),t)}},36074:function(e,t,r){"use strict";r.d(t,{k:function(){return o}});var n=r(95950),i=r(40009);function o(e,t){let r=(e.details||"").toLowerCase(),o=e.walk(e=>e.code===i.M_.code);return o instanceof n.G?new i.M_({cause:e,message:o.details}):i.M_.nodeMessage.test(r)?new i.M_({cause:e,message:e.details}):i.Hh.nodeMessage.test(r)?new i.Hh({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.G$.nodeMessage.test(r)?new i.G$({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.ZI.nodeMessage.test(r)?new i.ZI({cause:e,nonce:t?.nonce}):i.vU.nodeMessage.test(r)?new i.vU({cause:e,nonce:t?.nonce}):i.se.nodeMessage.test(r)?new i.se({cause:e,nonce:t?.nonce}):i.C_.nodeMessage.test(r)?new i.C_({cause:e}):i.WF.nodeMessage.test(r)?new i.WF({cause:e,gas:t?.gas}):i.dR.nodeMessage.test(r)?new i.dR({cause:e,gas:t?.gas}):i.pZ.nodeMessage.test(r)?new i.pZ({cause:e}):i.cs.nodeMessage.test(r)?new i.cs({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.cj({cause:e})}},78723:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(52017);function i(e){let t=e.transactions?.map(e=>"string"==typeof e?e:n.Tr(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}},21028:function(e,t,r){"use strict";function n(e,{format:t}){if(!t)return{};let r={};return!function t(n){for(let i of Object.keys(n))i in e&&(r[i]=e[i]),n[i]&&"object"==typeof n[i]&&!Array.isArray(n[i])&&t(n[i])}(t(e||{})),r}r.d(t,{K:function(){return n}})},52017:function(e,t,r){"use strict";r.d(t,{Tr:function(){return o},c8:function(){return i}});var n=r(30838);let i={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function o(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,n.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,n.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?i[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t}},86868:function(e,t,r){"use strict";r.d(t,{tG:function(){return o}});var n=r(21693);let i={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"};function o(e){return{...e,gas:void 0!==e.gas?(0,n.eC)(e.gas):void 0,gasPrice:void 0!==e.gasPrice?(0,n.eC)(e.gasPrice):void 0,maxFeePerGas:void 0!==e.maxFeePerGas?(0,n.eC)(e.maxFeePerGas):void 0,maxPriorityFeePerGas:void 0!==e.maxPriorityFeePerGas?(0,n.eC)(e.maxPriorityFeePerGas):void 0,nonce:void 0!==e.nonce?(0,n.eC)(e.nonce):void 0,type:void 0!==e.type?i[e.type]:void 0,value:void 0!==e.value?(0,n.eC)(e.value):void 0}}},82600:function(e,t,r){"use strict";function n(e,t,r){return n=>e[t.name||r]?.(n)??t(e,n)}r.d(t,{s:function(){return n}})},77688:function(e,t,r){"use strict";r.d(t,{e:function(){return u}});var n=r(56728),i=r(1101);let o=e=>(0,i.r)(e);var a=r(55852);let s=e=>(0,a.w)((0,n.O0)(e)),u=e=>s(o(e))},33655:function(e,t,r){"use strict";r.d(t,{o:function(){return u}});var n=r(72619),i=r(56728),o=r(1101),a=r(55852);let s=e=>(0,a.w)((0,i.O0)(e)),u=e=>(0,n.tP)(s((0,o.r)(e)),0,4)},1101:function(e,t,r){"use strict";r.d(t,{r:function(){return a}});let n=/^tuple(?<array>(\[(\d*)\])*)$/;function i(e){let t="",r=e.length;for(let i=0;i<r;i++)t+=function e(t){let r=t.type;if(n.test(t.type)&&"components"in t){r="(";let i=t.components.length;for(let n=0;n<i;n++)r+=e(t.components[n]),n<i-1&&(r+=", ");let o=function(e,t){let r=e.exec(t);return r?.groups}(n,t.type);return r+=`)${o?.array??""}`,e({...t,type:r})}return("indexed"in t&&t.indexed&&(r=`${r} indexed`),t.name)?`${r} ${t.name}`:r}(e[i]),i!==r-1&&(t+=", ");return t}var o=r(95950);let a=e=>{var t;return function(e){let t=!0,r="",n=0,i="",a=!1;for(let o=0;o<e.length;o++){let s=e[o];if(["(",")",","].includes(s)&&(t=!0),"("===s&&n++,")"===s&&n--,t){if(0===n){if(" "===s&&["event","function",""].includes(i))i="";else if(i+=s,")"===s){a=!0;break}continue}if(" "===s){","!==e[o-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}i+=s,r+=s}}if(!a)throw new o.G("Unable to normalize signature.");return i}("string"==typeof e?e:"function"===(t=e).type?`function ${t.name}(${i(t.inputs)})${t.stateMutability&&"nonpayable"!==t.stateMutability?` ${t.stateMutability}`:""}${t.outputs.length?` returns (${i(t.outputs)})`:""}`:"event"===t.type?`event ${t.name}(${i(t.inputs)})`:"error"===t.type?`error ${t.name}(${i(t.inputs)})`:"constructor"===t.type?`constructor(${i(t.inputs)})${"payable"===t.stateMutability?" payable":""}`:"fallback"===t.type?"fallback()":"receive() external payable")}},55852:function(e,t,r){"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function o(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}r.d(t,{w:function(){return j}});let a=BigInt(4294967296-1),s=BigInt(32),u=(e,t,r)=>e<<r|t>>>32-r,c=(e,t,r)=>t<<r|e>>>32-r,l=(e,t,r)=>t<<r-32|e>>>64-r,f=(e,t,r)=>e<<r-32|t>>>64-r,h=e=>e instanceof Uint8Array,d=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw Error("Non little-endian hardware is not supported");function p(e){if("string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}(e)),!h(e))throw Error(`expected Uint8Array, got ${typeof e}`);return e}class b{clone(){return this._cloneInto()}}let[m,y,g]=[[],[],[]],v=BigInt(0),w=BigInt(1),E=BigInt(2),_=BigInt(7),x=BigInt(256),C=BigInt(113);for(let e=0,t=w,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],m.push(2*(5*n+r)),y.push((e+1)*(e+2)/2%64);let i=v;for(let e=0;e<7;e++)(t=(t<<w^(t>>_)*C)%x)&E&&(i^=w<<(w<<BigInt(e))-w);g.push(i)}let[S,O]=function(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:o,l:u}=function(e,t=!1){return t?{h:Number(e&a),l:Number(e>>s&a)}:{h:0|Number(e>>s&a),l:0|Number(e&a)}}(e[i],t);[r[i],n[i]]=[o,u]}return[r,n]}(g,!0),D=(e,t,r)=>r>32?l(e,t,r):u(e,t,r),P=(e,t,r)=>r>32?f(e,t,r):c(e,t,r);class k extends b{constructor(e,t,r,i=!1,o=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,n(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=d(this.state)}keccak(){!function(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,o=r[i],a=r[i+1],s=D(o,a,1)^r[n],u=P(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=u}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=y[r],o=D(t,i,n),a=P(t,i,n),s=m[r];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=S[n],e[1]^=O[n]}r.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){o(this);let{blockLen:t,state:r}=this,n=(e=p(e)).length;for(let i=0;i<n;){let o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){o(this,!1),i(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return n(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(!function(e,t){i(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}(e,this),this.finished)throw 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){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new k(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}let A=function(e){let t=t=>e().update(p(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}(()=>new k(136,1,32));var I=r(45008),T=r(56728),N=r(21693);function j(e,t){let r=A((0,I.v)(e,{strict:!1})?(0,T.O0)(e):e);return"bytes"===(t||"hex")?r:(0,N.NC)(r)}},33668:function(e,t,r){"use strict";r.d(t,{S:function(){return i}});let n=new Map;function i({fn:e,id:t,shouldSplitBatch:r,wait:i=0,sort:o}){let a=async()=>{let t=c();s();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{o&&Array.isArray(e)&&e.sort(o);for(let r=0;r<t.length;r++){let{pendingPromise:n}=t[r];n.resolve?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){let{pendingPromise:n}=t[r];n.reject?.(e)}})},s=()=>n.delete(t),u=()=>c().map(({args:e})=>e),c=()=>n.get(t)||[],l=e=>n.set(t,[...c(),e]);return{flush:s,async schedule(e){let t={},n=new Promise((e,r)=>{t.resolve=e,t.reject=r});return(r?.([...u(),e])&&a(),c().length>0)?l({args:e,pendingPromise:t}):(l({args:e,pendingPromise:t}),setTimeout(a,i)),n}}}},36063:function(e,t,r){"use strict";r.d(t,{J:function(){return i}});var n=r(21810);function i(e,{delay:t=100,retryCount:r=2,shouldRetry:i=()=>!0}={}){return new Promise((o,a)=>{let s=async({count:u=0}={})=>{let c=async({error:e})=>{let r="function"==typeof t?t({count:u,error:e}):t;r&&await (0,n.D)(r),s({count:u+1})};try{let t=await e();o(t)}catch(e){if(u<r&&await i({count:u,error:e}))return c({error:e});a(e)}};s()})}},71891:function(e,t,r){"use strict";r.d(t,{P:function(){return n}});let n=(e,t,r)=>JSON.stringify(e,(e,r)=>{let n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r)},2445:function(e,t,r){"use strict";r.d(t,{F:function(){return u}});var n=r(4832),i=r(21485),o=r(40009),a=r(44818),s=r(87364);function u(e){let{account:t,gasPrice:r,maxFeePerGas:u,maxPriorityFeePerGas:c,to:l}=e,f=t?(0,n.T)(t):void 0;if(f&&!(0,s.U)(f.address))throw new i.b({address:f.address});if(l&&!(0,s.U)(l))throw new i.b({address:l});if(void 0!==r&&(void 0!==u||void 0!==c))throw new a.xY;if(u&&u>2n**256n-1n)throw new o.Hh({maxFeePerGas:u});if(c&&u&&c>u)throw new o.cs({maxFeePerGas:u,maxPriorityFeePerGas:c})}},29578:function(e,t,r){"use strict";r.d(t,{cj:function(){return f},iC:function(){return l}});var n=r(71878),i=r(21485),o=r(87364),a=r(39868),s=r(21693);let u=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,c=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function l({domain:e,message:t,primaryType:r,types:l}){let f=(e,t)=>{for(let r of e){let{name:e,type:h}=r,d=t[e],p=h.match(c);if(p&&("number"==typeof d||"bigint"==typeof d)){let[e,t,r]=p;(0,s.eC)(d,{signed:"int"===t,size:parseInt(r)/8})}if("address"===h&&"string"==typeof d&&!(0,o.U)(d))throw new i.b({address:d});let b=h.match(u);if(b){let[e,t]=b;if(t&&(0,a.d)(d)!==parseInt(t))throw new n.KY({expectedSize:parseInt(t),givenSize:(0,a.d)(d)})}let m=l[h];m&&f(m,d)}};l.EIP712Domain&&e&&f(l.EIP712Domain,e),"EIP712Domain"!==r&&f(l[r],t)}function f({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},"number"==typeof e?.chainId&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}},79352:function(e,t,r){"use strict";r.d(t,{d:function(){return o}});var n=r(36238),i=r(16775);function o(e,t="wei"){return(0,i.b)(e,n.ez[t])}},32421:function(e,t,r){"use strict";r.d(t,{o:function(){return o}});var n=r(36238),i=r(16775);function o(e,t="wei"){return(0,i.b)(e,n.Zn[t])}},16775:function(e,t,r){"use strict";function n(e,t){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[i,o]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return o=o.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${o?`.${o}`:""}`}r.d(t,{b:function(){return n}})},21810:function(e,t,r){"use strict";async function n(e){return new Promise(t=>setTimeout(t,e))}r.d(t,{D:function(){return n}})},56926:function(e,t,r){"use strict";let n;function i(){}r.d(t,{eM:function(){return ex},_g:function(){return ew},mA:function(){return e$},KQ:function(){return eW},$4:function(){return eH},do:function(){return e6},GG:function(){return e5},qL:function(){return eV},c9:function(){return e9},F6:function(){return te},LN:function(){return eY},PJ:function(){return e8},t_:function(){return eI},QW:function(){return eX},g0:function(){return e2}});let o="undefined"==typeof window||"Deno"in window;function a(){}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t,r){return _(e)?"function"==typeof t?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function l(e,t,r){return _(e)?"function"==typeof t?{...r,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function f(e,t,r){return _(e)?[{...t,queryKey:e},r]:[e||{},t]}function h(e,t){let{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(_(a)){if(n){if(t.queryHash!==p(a,t.options))return!1}else{if(!m(t.queryKey,a))return!1}}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(void 0===i||i===t.state.fetchStatus)&&(!o||!!o(t))}function d(e,t){let{exact:r,fetching:n,predicate:i,mutationKey:o}=e;if(_(o)){if(!t.options.mutationKey)return!1;if(r){if(b(t.options.mutationKey)!==b(o))return!1}else{if(!m(t.options.mutationKey,o))return!1}}return("boolean"!=typeof n||"loading"===t.state.status===n)&&(!i||!!i(t))}function p(e,t){return((null==t?void 0:t.queryKeyHashFn)||b)(e)}function b(e){return JSON.stringify(e,(e,t)=>w(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function m(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!m(e[r],t[r]))}function y(e,t){if(e===t)return e;let r=v(e)&&v(t);if(r||w(e)&&w(t)){let n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),o=i.length,a=r?[]:{},s=0;for(let n=0;n<o;n++){let o=r?n:i[n];a[o]=y(e[o],t[o]),a[o]===e[o]&&s++}return n===o&&s===n?e:a}return t}function g(e,t){if(e&&!t||t&&!e)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function w(e){if(!E(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(E(r)&&r.hasOwnProperty("isPrototypeOf"))}function E(e){return"[object Object]"===Object.prototype.toString.call(e)}function _(e){return Array.isArray(e)}function x(e){return new Promise(t=>{setTimeout(t,e)})}function C(e){x(0).then(e)}function S(e,t,r){return null!=r.isDataEqual&&r.isDataEqual(e,t)?e:"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?y(e,t):t}let O=console,D=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},i=n=>{t?e.push(n):C(()=>{r(n)})},o=()=>{let t=e;e=[],t.length&&C(()=>{n(()=>{t.forEach(e=>{r(e)})})})};return{batch:e=>{let r;t++;try{r=e()}finally{--t||o()}return r},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e}}}();class P{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}class k extends P{constructor(){super(),this.setup=e=>{if(!o&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}let A=new k,I=["online","offline"];class T extends P{constructor(){super(),this.setup=e=>{if(!o&&window.addEventListener){let t=()=>e();return I.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{I.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}let N=new T;function j(e){return Math.min(1e3*2**e,3e4)}function M(e){return(null!=e?e:"online")!=="online"||N.isOnline()}class R{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function F(e){return e instanceof R}function B(e){let t,r,n,i=!1,o=0,a=!1,s=new Promise((e,t)=>{r=e,n=t}),u=()=>!A.isFocused()||"always"!==e.networkMode&&!N.isOnline(),c=n=>{a||(a=!0,null==e.onSuccess||e.onSuccess(n),null==t||t(),r(n))},l=r=>{a||(a=!0,null==e.onError||e.onError(r),null==t||t(),n(r))},f=()=>new Promise(r=>{t=e=>{let t=a||!u();return t&&r(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,a||null==e.onContinue||e.onContinue()}),h=()=>{let t;if(!a){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(c).catch(t=>{var r,n;if(a)return;let s=null!=(r=e.retry)?r:3,c=null!=(n=e.retryDelay)?n:j,d="function"==typeof c?c(o,t):c,p=!0===s||"number"==typeof s&&o<s||"function"==typeof s&&s(o,t);if(i||!p){l(t);return}o++,null==e.onFail||e.onFail(o,t),x(d).then(()=>{if(u())return f()}).then(()=>{i?l(t):h()})})}};return M(e.networkMode)?h():f().then(h),{promise:s,cancel:t=>{a||(l(new R(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}class U{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),s(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:o?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class L extends U{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||O,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){let r=S(this.state.data,e,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;let r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(a).catch(a):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!u(this.state.dataUpdatedAt,e)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var r,n,i,o;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let a=function(){if("function"==typeof AbortController)return new AbortController}(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};u(s);let c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};u(c),null==(r=this.options.behavior)||r.onFetch(c),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(n=c.fetchOptions)?void 0:n.meta))&&this.dispatch({type:"fetch",meta:null==(o=c.fetchOptions)?void 0:o.meta});let l=e=>{if(F(e)&&e.silent||this.dispatch({type:"error",error:e}),!F(e)){var t,r,n,i;null==(t=(r=this.cache.config).onError)||t.call(r,e,this),null==(n=(i=this.cache.config).onSettled)||n.call(i,this.state.data,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=B({fn:c.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,r,n,i;if(void 0===e){l(Error(this.queryHash+" data is undefined"));return}this.setData(e),null==(t=(r=this.cache.config).onSuccess)||t.call(r,e,this),null==(n=(i=this.cache.config).onSettled)||n.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var r,n;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:M(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(n=e.dataUpdatedAt)?n:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=e.error;if(F(i)&&i.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),D.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class $ extends P{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,r){var n;let i=t.queryKey,o=null!=(n=t.queryHash)?n:p(i,t),a=this.get(o);return a||(a=new L({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){D.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){let[r]=f(e,t);return void 0===r.exact&&(r.exact=!0),this.queries.find(e=>h(r,e))}findAll(e,t){let[r]=f(e,t);return Object.keys(r).length>0?this.queries.filter(e=>h(r,e)):this.queries}notify(e){D.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){D.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){D.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class q extends U{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||O,this.observers=[],this.state=e.state||W(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,r,n,i,o,a,s,u,c,l,f,h,d,p,b,m,y,g,v;let w="loading"===this.state.status;try{if(!w){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(u=(c=this.mutationCache.config).onMutate)?void 0:u.call(c,this.state.variables,this));let e=await (null==(l=(f=this.options).onMutate)?void 0:l.call(f,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let h=await (()=>{var e;return this.retryer=B({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,h,this.state.variables,this.state.context,this)),await (null==(r=(n=this.options).onSuccess)?void 0:r.call(n,h,this.state.variables,this.state.context)),await (null==(i=(o=this.mutationCache.config).onSettled)?void 0:i.call(o,h,null,this.state.variables,this.state.context,this)),await (null==(a=(s=this.options).onSettled)?void 0:a.call(s,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(e){try{throw await (null==(h=(d=this.mutationCache.config).onError)?void 0:h.call(d,e,this.state.variables,this.state.context,this)),await (null==(p=(b=this.options).onError)?void 0:p.call(b,e,this.state.variables,this.state.context)),await (null==(m=(y=this.mutationCache.config).onSettled)?void 0:m.call(y,void 0,e,this.state.variables,this.state.context,this)),await (null==(g=(v=this.options).onSettled)?void 0:g.call(v,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!M(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),D.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function W(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class z extends P{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,r){let n=new q({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(n),n}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){D.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>d(e,t))}findAll(e){return this.mutations.filter(t=>d(e,t))}notify(e){D.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{let e=this.mutations.filter(e=>e.state.isPaused);return D.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(a)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function G(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class H{constructor(e={}){this.queryCache=e.queryCache||new $,this.mutationCache=e.mutationCache||new z,this.logger=e.logger||O,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=A.subscribe(()=>{A.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=N.subscribe(()=>{N.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){let[r]=f(e,t);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data}ensureQueryData(e,t,r){let n=c(e,t,r),i=this.getQueryData(n.queryKey);return i?Promise.resolve(i):this.fetchQuery(n)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let n=this.queryCache.find(e),i=null==n?void 0:n.state.data,o="function"==typeof t?t(i):t;if(void 0===o)return;let a=c(e),s=this.defaultQueryOptions(a);return this.queryCache.build(this,s).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return D.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state}removeQueries(e,t){let[r]=f(e,t),n=this.queryCache;D.batch(()=>{n.findAll(r).forEach(e=>{n.remove(e)})})}resetQueries(e,t,r){let[n,i]=f(e,t,r),o=this.queryCache,a={type:"active",...n};return D.batch(()=>(o.findAll(n).forEach(e=>{e.reset()}),this.refetchQueries(a,i)))}cancelQueries(e,t,r){let[n,i={}]=f(e,t,r);return void 0===i.revert&&(i.revert=!0),Promise.all(D.batch(()=>this.queryCache.findAll(n).map(e=>e.cancel(i)))).then(a).catch(a)}invalidateQueries(e,t,r){let[n,i]=f(e,t,r);return D.batch(()=>{var e,t;if(this.queryCache.findAll(n).forEach(e=>{e.invalidate()}),"none"===n.refetchType)return Promise.resolve();let r={...n,type:null!=(e=null!=(t=n.refetchType)?t:n.type)?e:"active"};return this.refetchQueries(r,i)})}refetchQueries(e,t,r){let[n,i]=f(e,t,r),o=Promise.all(D.batch(()=>this.queryCache.findAll(n).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:n.refetchPage}})}))).then(a);return null!=i&&i.throwOnError||(o=o.catch(a)),o}fetchQuery(e,t,r){let n=c(e,t,r),i=this.defaultQueryOptions(n);void 0===i.retry&&(i.retry=!1);let o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(e,t,r){return this.fetchQuery(e,t,r).then(a).catch(a)}fetchInfiniteQuery(e,t,r){let n=c(e,t,r);return n.behavior={onFetch:e=>{e.fetchFn=()=>{var t,r,n,i,o,a,s;let u;let c=null==(t=e.fetchOptions)?void 0:null==(r=t.meta)?void 0:r.refetchPage,l=null==(n=e.fetchOptions)?void 0:null==(i=n.meta)?void 0:i.fetchMore,f=null==l?void 0:l.pageParam,h=(null==l?void 0:l.direction)==="forward",d=(null==l?void 0:l.direction)==="backward",p=(null==(o=e.state.data)?void 0:o.pages)||[],b=(null==(a=e.state.data)?void 0:a.pageParams)||[],m=b,y=!1,g=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t,r;return null!=(t=e.signal)&&t.aborted?y=!0:null==(r=e.signal)||r.addEventListener("abort",()=>{y=!0}),e.signal}})},v=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),w=(e,t,r,n)=>(m=n?[t,...m]:[...m,t],n?[r,...e]:[...e,r]),E=(t,r,n,i)=>{if(y)return Promise.reject("Cancelled");if(void 0===n&&!r&&t.length)return Promise.resolve(t);let o={queryKey:e.queryKey,pageParam:n,meta:e.options.meta};return g(o),Promise.resolve(v(o)).then(e=>w(t,n,e,i))};if(p.length){if(h){let t=void 0!==f,r=t?f:G(e.options,p);u=E(p,t,r)}else if(d){let t=void 0!==f,r=t?f:null==(s=e.options).getPreviousPageParam?void 0:s.getPreviousPageParam(p[0],p);u=E(p,t,r,!0)}else{m=[];let t=void 0===e.options.getNextPageParam;u=!c||!p[0]||c(p[0],0,p)?E([],t,b[0]):Promise.resolve(w([],b[0],p[0]));for(let r=1;r<p.length;r++)u=u.then(n=>{if(!c||!p[r]||c(p[r],r,p)){let i=t?b[r]:G(e.options,n);return E(n,t,i)}return Promise.resolve(w(n,b[r],p[r]))})}}else u=E([]);return u.then(e=>({pages:e,pageParams:m}))}}},this.fetchQuery(n)}prefetchInfiniteQuery(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(a).catch(a)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){let r=this.queryDefaults.find(t=>b(e)===b(t.queryKey));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;let t=this.queryDefaults.find(t=>m(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){let r=this.mutationDefaults.find(t=>b(e)===b(t.mutationKey));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;let t=this.mutationDefaults.find(t=>m(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=p(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}function K(e){return e.state.isPaused}function Q(e){return"success"===e.state.status}let V=["added","removed","updated"];function Y(e){return V.includes(e)}async function Z({queryClient:e,persister:t,maxAge:r=864e5,buster:n="",hydrateOptions:i}){try{let o=await t.restoreClient();if(o){if(o.timestamp){let a=Date.now()-o.timestamp>r,s=o.buster!==n;a||s?t.removeClient():function(e,t,r){if("object"!=typeof t||null===t)return;let n=e.getMutationCache(),i=e.getQueryCache(),o=t.mutations||[],a=t.queries||[];o.forEach(t=>{var i;n.build(e,{...null==r?void 0:null==(i=r.defaultOptions)?void 0:i.mutations,mutationKey:t.mutationKey},t.state)}),a.forEach(({queryKey:t,state:n,queryHash:o})=>{var a;let s=i.get(o);if(s){if(s.state.dataUpdatedAt<n.dataUpdatedAt){let{fetchStatus:e,...t}=n;s.setState(t)}return}i.build(e,{...null==r?void 0:null==(a=r.defaultOptions)?void 0:a.queries,queryKey:t,queryHash:o},{...n,fetchStatus:"idle"})})}(e,o.clientState,i)}else t.removeClient()}}catch(e){t.removeClient()}}async function J({queryClient:e,persister:t,buster:r="",dehydrateOptions:n}){let i={buster:r,timestamp:Date.now(),clientState:function(e,t={}){let r=[],n=[];if(!1!==t.dehydrateMutations){let n=t.shouldDehydrateMutation||K;e.getMutationCache().getAll().forEach(e=>{n(e)&&r.push({mutationKey:e.options.mutationKey,state:e.state})})}if(!1!==t.dehydrateQueries){let r=t.shouldDehydrateQuery||Q;e.getQueryCache().getAll().forEach(e=>{r(e)&&n.push({state:e.state,queryKey:e.queryKey,queryHash:e.queryHash})})}return{mutations:r,queries:n}}(e,n)};await t.persistClient(i)}var X=r(68757),ee=r(2265);let et=ee.createContext(void 0),er=ee.createContext(!1);function en(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=et),window.ReactQueryClientContext):et)}let ei=({context:e}={})=>{let t=ee.useContext(en(e,ee.useContext(er)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},eo=({client:e,children:t,context:r,contextSharing:n=!1})=>{ee.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let i=en(r,n);return ee.createElement(er.Provider,{value:!r&&n},ee.createElement(i.Provider,{value:e},t))},ea=ee.createContext(!1),es=()=>ee.useContext(ea);ea.Provider;let eu=ee.createContext((n=!1,{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n})),ec=()=>ee.useContext(eu);var el=r(26272);class ef extends P{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let r=this.options;this.options=this.client.defaultMutationOptions(e),g(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:W(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){D.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var t,r,n,i,o,a,s,u;e.onSuccess?(null==(t=(r=this.mutateOptions).onSuccess)||t.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(n=(i=this.mutateOptions).onSettled)||n.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(o=(a=this.mutateOptions).onError)||o.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(u=this.mutateOptions).onSettled)||s.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}let eh=el.useSyncExternalStore;function ed(){}class ep extends P{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),eb(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return em(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return em(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){let r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),g(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();let i=this.hasListeners();i&&ey(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),i&&(this.currentQuery!==n||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();let o=this.computeRefetchInterval();i&&(this.currentQuery!==n||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(e){let t=this.client.getQueryCache().build(this.client,e),r=this.createResult(t,e);return e.keepPreviousData||(void 0!==e.placeholderData?!r.isPlaceholderData:g(this.getCurrentResult(),r))||(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(e){let t={};return Object.keys(e).forEach(r=>{Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),e[r])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){let t=this.client.defaultQueryOptions(e),r=this.client.getQueryCache().build(this.client,t);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(a)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),o||this.currentResult.isStale||!s(this.options.staleTime))return;let e=u(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e+1)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!o&&!1!==this.options.enabled&&s(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||A.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){let r;let n=this.currentQuery,i=this.options,o=this.currentResult,a=this.currentResultState,s=this.currentResultOptions,u=e!==n,c=u?e.state:this.currentQueryInitialState,l=u?this.currentResult:this.previousQueryResult,{state:f}=e,{dataUpdatedAt:h,error:d,errorUpdatedAt:p,fetchStatus:b,status:m}=f,y=!1,g=!1;if(t._optimisticResults){let r=this.hasListeners(),o=!r&&eb(e,t),a=r&&ey(e,n,t,i);(o||a)&&(b=M(e.options.networkMode)?"fetching":"paused",h||(m="loading")),"isRestoring"===t._optimisticResults&&(b="idle")}if(t.keepPreviousData&&!f.dataUpdatedAt&&null!=l&&l.isSuccess&&"error"!==m)r=l.data,h=l.dataUpdatedAt,m=l.status,y=!0;else if(t.select&&void 0!==f.data){if(o&&f.data===(null==a?void 0:a.data)&&t.select===this.selectFn)r=this.selectResult;else try{this.selectFn=t.select,r=t.select(f.data),r=S(null==o?void 0:o.data,r,t),this.selectResult=r,this.selectError=null}catch(e){this.selectError=e}}else r=f.data;if(void 0!==t.placeholderData&&void 0===r&&"loading"===m){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==s?void 0:s.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(m="success",r=S(null==o?void 0:o.data,e,t),g=!0)}this.selectError&&(d=this.selectError,r=this.selectResult,p=Date.now(),m="error");let v="fetching"===b,w="loading"===m,E="error"===m;return{status:m,fetchStatus:b,isLoading:w,isSuccess:"success"===m,isError:E,isInitialLoading:w&&v,data:r,dataUpdatedAt:h,error:d,errorUpdatedAt:p,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:v,isRefetching:v&&!w,isLoadingError:E&&0===f.dataUpdatedAt,isPaused:"paused"===b,isPlaceholderData:g,isPreviousData:y,isRefetchError:E&&0!==f.dataUpdatedAt,isStale:eg(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){let t=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,g(r,t))return;this.currentResult=r;let n={cache:!0};(null==e?void 0:e.listeners)!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.trackedProps.size)return!0;let n=new Set(null!=r?r:this.trackedProps);return this.options.useErrorBoundary&&n.add("error"),Object.keys(this.currentResult).some(e=>this.currentResult[e]!==t[e]&&n.has(e))})()&&(n.listeners=!0),this.notify({...n,...e})}updateQuery(){let e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;let t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){let t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||F(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){D.batch(()=>{var t,r,n,i,o,a,s,u;e.onSuccess?(null==(t=(r=this.options).onSuccess)||t.call(r,this.currentResult.data),null==(n=(i=this.options).onSettled)||n.call(i,this.currentResult.data,null)):e.onError&&(null==(o=(a=this.options).onError)||o.call(a,this.currentResult.error),null==(s=(u=this.options).onSettled)||s.call(u,void 0,this.currentResult.error)),e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function eb(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)||e.state.dataUpdatedAt>0&&em(e,t,t.refetchOnMount)}function em(e,t,r){if(!1!==t.enabled){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&eg(e,t)}return!1}function ey(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&eg(e,r)}function eg(e,t){return e.isStaleByTime(t.staleTime)}var ev=r(65401);function ew({queryClient:e=new H({defaultOptions:{queries:{cacheTime:864e5,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),storage:t=(0,X.o6)({storage:"undefined"!=typeof window&&window.localStorage?window.localStorage:X.wp}),persister:r="undefined"!=typeof window?function({storage:e,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:r=1e3,serialize:n=JSON.stringify,deserialize:o=JSON.parse,retry:a}){if(e){let i=r=>{try{e.setItem(t,n(r));return}catch(e){return e}};return{persistClient:function(e,t=100){let r,n=null;return function(...i){r=i,null===n&&(n=setTimeout(()=>{e(...r),n=null},t))}}(e=>{let t=e,r=i(t),n=0;for(;r&&t;)n++,(t=null==a?void 0:a({persistedClient:t,error:r,errorCount:n}))&&(r=i(t))},r),restoreClient:()=>{let r=e.getItem(t);if(r)return o(r)},removeClient:()=>{e.removeItem(t)}}}return{persistClient:i,restoreClient:()=>void 0,removeClient:i}}({key:"cache",storage:t,serialize:e=>e,deserialize:e=>e}):void 0,...n}){let o=(0,X._g)({...n,storage:t});if(r){var a;let t,n;n=!1,Z(a={queryClient:e,persister:r,dehydrateOptions:{shouldDehydrateQuery:e=>0!==e.cacheTime&&!1!==e.queryKey[0].persist}}).then(()=>{n||(t=function(e){let t=e.queryClient.getQueryCache().subscribe(t=>{Y(t.type)&&J(e)}),r=e.queryClient.getMutationCache().subscribe(t=>{Y(t.type)&&J(e)});return()=>{t(),r()}}(a))})}return Object.assign(o,{queryClient:e})}var eE=ee.createContext(void 0),e_=ee.createContext(void 0);function ex({children:e,config:t}){return ee.createElement(eE.Provider,{children:ee.createElement(eo,{children:e,client:t.queryClient,context:e_}),value:t})}function eC(){let e=ee.useContext(eE);if(!e)throw Error("`useConfig` must be used within `WagmiConfig`.\n\nRead more: https://wagmi.sh/react/WagmiConfig");return e}var eS=el.useSyncExternalStore;function eO(e){return"[object Object]"===Object.prototype.toString.call(e)}function eD(e){return JSON.stringify(e,(e,t)=>!function(e){if(!eO(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(eO(r)&&r.hasOwnProperty("isPrototypeOf"))}(t)?"bigint"==typeof t?t.toString():t:Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}))}function eP(e,t,r){return function(e,t,r){var n,i;let o=l(e,void 0,void 0),a=ei({context:o.context}),[s]=ee.useState(()=>new ef(a,o));ee.useEffect(()=>{s.setOptions(o)},[s,o]);let u=eh(ee.useCallback(e=>s.subscribe(D.batchCalls(e)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),c=ee.useCallback((e,t)=>{s.mutate(e,t).catch(ed)},[s]);if(u.error&&(n=s.options.useErrorBoundary,i=[u.error],"function"==typeof n?n(...i):!!n))throw u.error;return{...u,mutate:c,mutateAsync:u.mutate}}({context:e_,...l(e,t,r)})}function ek(e,t,r){let n=function(e,t){var r,n;let i=ei({context:e.context}),o=es(),a=ec(),s=i.defaultQueryOptions({...e,queryKeyHashFn:eD});s._optimisticResults=o?"isRestoring":"optimistic",s.onError&&(s.onError=D.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=D.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=D.batchCalls(s.onSettled)),s.suspense&&"number"!=typeof s.staleTime&&(s.staleTime=1e3),(s.suspense||s.useErrorBoundary)&&!a.isReset()&&(s.retryOnMount=!1);let[u]=ee.useState(()=>new t(i,s)),c=u.getOptimisticResult(s);if(eS(ee.useCallback(e=>o?()=>void 0:u.subscribe(D.batchCalls(e)),[u,o]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),ee.useEffect(()=>{a.clearReset()},[a]),ee.useEffect(()=>{u.setOptions(s,{listeners:!1})},[s,u]),s.suspense&&c.isLoading&&c.isFetching&&!o)throw u.fetchOptimistic(s).then(({data:e})=>{s.onSuccess?.(e),s.onSettled?.(e,null)}).catch(e=>{a.clearReset(),s.onError?.(e),s.onSettled?.(void 0,e)});if(c.isError&&!a.isReset()&&!c.isFetching&&(r=s.useErrorBoundary,n=[c.error,u.getCurrentQuery()],"function"==typeof r?r(...n):!!r))throw c.error;let l="loading"===c.status&&"idle"===c.fetchStatus?"idle":c.status,f="loading"===l&&"fetching"===c.fetchStatus;return{...c,defaultedOptions:s,isIdle:"idle"===l,isLoading:f,observer:u,status:l}}({context:e_,...Array.isArray(e)?"function"==typeof t?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e},ep),i={data:n.data,error:n.error,fetchStatus:n.fetchStatus,isError:n.isError,isFetched:n.isFetched,isFetchedAfterMount:n.isFetchedAfterMount,isFetching:n.isFetching,isIdle:n.isIdle,isLoading:n.isLoading,isRefetching:n.isRefetching,isSuccess:n.isSuccess,refetch:n.refetch,status:n.status,internal:{dataUpdatedAt:n.dataUpdatedAt,errorUpdatedAt:n.errorUpdatedAt,failureCount:n.failureCount,isFetchedAfterMount:n.isFetchedAfterMount,isLoadingError:n.isLoadingError,isPaused:n.isPaused,isPlaceholderData:n.isPlaceholderData,isPreviousData:n.isPreviousData,isRefetchError:n.isRefetchError,isStale:n.isStale,remove:n.remove}};return n.defaultedOptions.notifyOnChangeProps?i:function(e,t){let r={};return Object.keys(e).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(t.trackedProps.add(n),e[n])})}),r}(i,n.observer)}var eA=()=>ei({context:e_});function eI({chainId:e}={}){return(0,ev.useSyncExternalStoreWithSelector)(t=>(0,X.pC)({chainId:e},t),()=>(0,X.uV)({chainId:e}),()=>(0,X.uV)({chainId:e}),e=>e,(e,t)=>e.uid===t.uid)}function eT({chainId:e}){return[{entity:"walletClient",chainId:e,persist:!1}]}function eN({queryKey:[{chainId:e}]}){return(0,X.xz)({chainId:e})}function ej({chainId:e}={}){return eI({chainId:e}).chain.id}function eM({chainId:e,scopeKey:t}){return[{entity:"blockNumber",chainId:e,scopeKey:t}]}function eR({queryKey:[{chainId:e}]}){return(0,X.RQ)({chainId:e})}function eF({cacheTime:e=0,chainId:t,enabled:r=!0,scopeKey:n,staleTime:i,suspense:o,watch:a=!1,onBlock:s,onError:u,onSettled:c,onSuccess:l}={}){let f=ej({chainId:t}),h=eI({chainId:f}),d=function({chainId:e}={}){return(0,ev.useSyncExternalStoreWithSelector)(t=>(0,X.fq)({chainId:e},t),()=>(0,X.jr)({chainId:e}),()=>(0,X.jr)({chainId:e}),e=>e,(e,t)=>e?.uid===t?.uid)}({chainId:f}),p=eA();return ee.useEffect(()=>{if(r&&(a||s))return(d??h).watchBlockNumber({onBlockNumber:e=>{a&&p.setQueryData(eM({chainId:f,scopeKey:n}),e),s&&s(e)},emitOnBegin:!0})},[f,n,s,h,p,a,d,r]),ek(eM({scopeKey:n,chainId:f}),eR,{cacheTime:e,enabled:r,staleTime:i,suspense:o,onError:u,onSettled:c,onSuccess:l})}function eB({chainId:e,enabled:t,queryKey:r}){let n=eA(),i=ee.useCallback(()=>n.invalidateQueries({queryKey:r},{cancelRefetch:!1}),[n,r]);eF({chainId:e,enabled:t,onBlock:t?i:void 0,scopeKey:t?void 0:"idle"})}var eU=e=>"object"==typeof e&&!Array.isArray(e);function eL(e,t,r=t,n=X.vZ){let i=ee.useRef([]),o=(0,ev.useSyncExternalStoreWithSelector)(e,t,r,e=>e,(e,t)=>{if(eU(e)&&eU(t)&&i.current.length){for(let r of i.current)if(!n(e[r],t[r]))return!1;return!0}return n(e,t)});if(eU(o)){let e={...o};return Object.defineProperties(e,Object.entries(e).reduce((e,[t,r])=>({...e,[t]:{configurable:!1,enumerable:!0,get:()=>(i.current.includes(t)||i.current.push(t),r)}}),{})),e}return o}function e$({onConnect:e,onDisconnect:t}={}){let r=eC(),n=eL(ee.useCallback(e=>(0,X.uH)(e),[r]),X.D0),i=ee.useRef(),o=i.current;return ee.useEffect(()=>{o?.status!=="connected"&&"connected"===n.status&&e?.({address:n.address,connector:n.connector,isReconnected:o?.status==="reconnecting"||o?.status===void 0}),o?.status==="connected"&&"disconnected"===n.status&&t?.(),i.current=n},[e,t,o,n]),n}function eq({queryKey:[{address:e,chainId:t,formatUnits:r,token:n}]}){if(!e)throw Error("address is required");return(0,X.EG)({address:e,chainId:t,formatUnits:r,token:n})}function eW({address:e,cacheTime:t,chainId:r,enabled:n=!0,formatUnits:i,scopeKey:o,staleTime:a,suspense:s,token:u,watch:c,onError:l,onSettled:f,onSuccess:h}={}){let d=ej({chainId:r}),p=ee.useMemo(()=>(function({address:e,chainId:t,formatUnits:r,scopeKey:n,token:i}){return[{entity:"balance",address:e,chainId:t,formatUnits:r,scopeKey:n,token:i}]})({address:e,chainId:d,formatUnits:i,scopeKey:o,token:u}),[e,d,i,o,u]),b=ek(p,eq,{cacheTime:t,enabled:!!(n&&e),staleTime:a,suspense:s,onError:l,onSettled:f,onSuccess:h});return eB({chainId:d,enabled:!!(n&&c&&e),queryKey:p}),b}var ez=e=>[{entity:"connect",...e}],eG=e=>{let{connector:t,chainId:r}=e;if(!t)throw Error("connector is required");return(0,X.$j)({connector:t,chainId:r})};function eH({chainId:e,connector:t,onError:r,onMutate:n,onSettled:i,onSuccess:o}={}){let a=eC(),{data:s,error:u,isError:c,isIdle:l,isLoading:f,isSuccess:h,mutate:d,mutateAsync:p,reset:b,status:m,variables:y}=eP(ez({connector:t,chainId:e}),eG,{onError:r,onMutate:n,onSettled:i,onSuccess:o});return{connect:ee.useCallback(r=>d({chainId:r?.chainId??e,connector:r?.connector??t}),[e,t,d]),connectAsync:ee.useCallback(r=>p({chainId:r?.chainId??e,connector:r?.connector??t}),[e,t,p]),connectors:a.connectors,data:s,error:u,isError:c,isIdle:l,isLoading:f,isSuccess:h,pendingConnector:y?.connector,reset:b,status:m,variables:y}}var eK=[{entity:"disconnect"}],eQ=()=>(0,X.zP)();function eV({onError:e,onMutate:t,onSettled:r,onSuccess:n}={}){let{error:i,isError:o,isIdle:a,isLoading:s,isSuccess:u,mutate:c,mutateAsync:l,reset:f,status:h}=eP(eK,eQ,{...e?{onError(t,r,n){e(t,n)}}:{},onMutate:t,...r?{onSettled(e,t,n,i){r(t,i)}}:{},...n?{onSuccess(e,t,r){n(r)}}:{}});return{disconnect:c,disconnectAsync:l,error:i,isError:o,isIdle:a,isLoading:s,isSuccess:u,reset:f,status:h}}function eY(){let e=eC();return eL((0,ee.useCallback)(e=>(0,X.QC)(e),[e]),X.Hy)}var eZ=e=>[{entity:"signMessage",...e}],eJ=e=>{let{message:t}=e;if(!t)throw Error("message is required");return(0,X.l)({message:t})};function eX({message:e,onError:t,onMutate:r,onSettled:n,onSuccess:i}={}){let{data:o,error:a,isError:s,isIdle:u,isLoading:c,isSuccess:l,mutate:f,mutateAsync:h,reset:d,status:p,variables:b}=eP(eZ({message:e}),eJ,{onError:t,onMutate:r,onSettled:n,onSuccess:i});return{data:o,error:a,isError:s,isIdle:u,isLoading:c,isSuccess:l,reset:d,signMessage:ee.useCallback(t=>f(t||{message:e}),[e,f]),signMessageAsync:ee.useCallback(t=>h(t||{message:e}),[e,h]),status:p,variables:b}}var e0=e=>[{entity:"switchNetwork",...e}],e1=e=>{let{chainId:t}=e;if(!t)throw Error("chainId is required");return(0,X.If)({chainId:t})};function e2({chainId:e,throwForSwitchChainNotSupported:t,onError:r,onMutate:n,onSettled:i,onSuccess:o}={}){let a,s;let u=eC(),c=function(){let[,e]=ee.useReducer(e=>e+1,0);return e}(),{data:l,error:f,isError:h,isIdle:d,isLoading:p,isSuccess:b,mutate:m,mutateAsync:y,reset:g,status:v,variables:w}=eP(e0({chainId:e}),e1,{onError:r,onMutate:n,onSettled:i,onSuccess:o}),E=ee.useCallback(t=>m({chainId:t??e}),[e,m]),_=ee.useCallback(t=>y({chainId:t??e}),[e,y]);ee.useEffect(()=>u.subscribe(({chains:e,connector:t})=>({chains:e,connector:t}),c),[u,c]);let x=!!u.connector?.switchChain;return(t||x)&&(a=E,s=_),{chains:u.chains??[],data:l,error:f,isError:h,isIdle:d,isLoading:p,isSuccess:b,pendingChainId:w?.chainId,reset:g,status:v,switchNetwork:a,switchNetworkAsync:s,variables:w}}function e6({abi:e,address:t,account:r,args:n,blockNumber:i,blockTag:o,cacheOnBlock:a=!1,cacheTime:s,chainId:u,enabled:c=!0,functionName:l,isDataEqual:f,keepPreviousData:h,onError:d,onSettled:p,onSuccess:b,scopeKey:m,select:g,staleTime:v,structuralSharing:w=(e,t)=>(0,X.vZ)(e,t)?e:y(e,t),suspense:E,watch:_}={}){let x=ej({chainId:u}),{data:C}=eF({chainId:x,enabled:_||a,scopeKey:_||a?void 0:"idle",watch:_}),S=i??C,O=ee.useMemo(()=>(function({account:e,address:t,args:r,blockNumber:n,blockTag:i,chainId:o,functionName:a,scopeKey:s}){return[{entity:"readContract",account:e,address:t,args:r,blockNumber:n,blockTag:i,chainId:o,functionName:a,scopeKey:s}]})({account:r,address:t,args:n,blockNumber:a?S:void 0,blockTag:o,chainId:x,functionName:l,scopeKey:m}),[r,t,n,S,o,a,x,l,m]),D=ee.useMemo(()=>{let r=!!(c&&e&&t&&l);return a&&(r=!!(r&&S)),r},[e,t,S,a,c,l]);return eB({chainId:x,enabled:!!(D&&_&&!a),queryKey:O}),ek(O,function({abi:e}){return async({queryKey:[{account:t,address:r,args:n,blockNumber:i,blockTag:o,chainId:a,functionName:s}]})=>{if(!e)throw Error("abi is required");if(!r)throw Error("address is required");return await (0,X.a4)({account:t,address:r,args:n,blockNumber:i,blockTag:o,chainId:a,abi:e,functionName:s})??null}}({abi:e}),{cacheTime:s,enabled:D,isDataEqual:f,keepPreviousData:h,select:g,staleTime:v,structuralSharing:w,suspense:E,onError:d,onSettled:p,onSuccess:b})}function e3(e){if("prepared"===e.mode){if(!e.request)throw Error("request is required");return(0,X.n9)({mode:"prepared",request:e.request})}if(!e.address)throw Error("address is required");if(!e.abi)throw Error("abi is required");if(!e.functionName)throw Error("functionName is required");return(0,X.n9)({address:e.address,args:e.args,chainId:e.chainId,abi:e.abi,functionName:e.functionName,accessList:e.accessList,account:e.account,dataSuffix:e.dataSuffix,gas:e.gas,gasPrice:e.gasPrice,maxFeePerGas:e.maxFeePerGas,maxPriorityFeePerGas:e.maxPriorityFeePerGas,nonce:e.nonce,value:e.value})}function e5(e){let{address:t,abi:r,args:n,chainId:i,functionName:o,mode:a,request:s,dataSuffix:u}=e,{accessList:c,account:l,gas:f,gasPrice:h,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:b,value:m}=(0,X.gY)(e),{data:y,error:g,isError:v,isIdle:w,isLoading:E,isSuccess:_,mutate:x,mutateAsync:C,reset:S,status:O,variables:D}=eP(function({address:e,abi:t,functionName:r,...n}){let{args:i,accessList:o,account:a,dataSuffix:s,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:f,nonce:h,request:d,value:p}=n;return[{entity:"writeContract",address:e,args:i,abi:t,accessList:o,account:a,dataSuffix:s,functionName:r,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:f,nonce:h,request:d,value:p}]}({address:t,abi:r,functionName:o,chainId:i,mode:a,args:n,accessList:c,account:l,dataSuffix:u,gas:f,gasPrice:h,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:b,request:s,value:m}),e3,{onError:e.onError,onMutate:e.onMutate,onSettled:e.onSettled,onSuccess:e.onSuccess});return{data:y,error:g,isError:v,isIdle:w,isLoading:E,isSuccess:_,reset:S,status:O,variables:D,write:ee.useMemo(()=>{if("prepared"===e.mode){if(!s)return;return()=>x({mode:"prepared",request:e.request,chainId:e.chainId})}return e=>x({address:t,args:n,abi:r,functionName:o,chainId:i,accessList:c,account:l,dataSuffix:u,gas:f,gasPrice:h,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:b,value:m,...e})},[c,l,r,t,n,i,e.chainId,e.mode,e.request,u,o,f,h,d,p,x,b,s,m]),writeAsync:ee.useMemo(()=>{if("prepared"===e.mode){if(!s)return;return()=>C({mode:"prepared",request:e.request})}return e=>C({address:t,args:n,abi:r,chainId:i,functionName:o,accessList:c,account:l,dataSuffix:u,gas:f,gasPrice:h,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:b,value:m,...e})},[c,l,r,t,n,i,e.mode,e.request,u,o,f,h,d,p,C,b,s,m])}}function e8({address:e,abi:t,functionName:r,chainId:n,args:i,cacheTime:o,dataSuffix:a,enabled:s=!0,scopeKey:u,staleTime:c,suspense:l,onError:f,onSettled:h,onSuccess:d,...p}={}){let{chain:b}=eY(),{data:m}=function({chainId:e,suspense:t,onError:r,onSettled:n,onSuccess:i}={}){let{connector:o}=e$(),a=ej({chainId:e}),s=ek(eT({chainId:a}),eN,{cacheTime:0,enabled:!!o,staleTime:1/0,suspense:t,onError:r,onSettled:n,onSuccess:i}),u=eA();return ee.useEffect(()=>(0,X.Tb)({chainId:a},e=>{e?u.invalidateQueries(eT({chainId:a})):u.removeQueries(eT({chainId:a}))}),[u,a]),s}({chainId:n}),{accessList:y,account:g,blockNumber:v,blockTag:w,gas:E,gasPrice:_,maxFeePerGas:x,maxPriorityFeePerGas:C,nonce:S,value:O}=(0,X._X)(p),D=ek(function({accessList:e,account:t,activeChainId:r,args:n,address:i,blockNumber:o,blockTag:a,chainId:s,dataSuffix:u,functionName:c,gas:l,gasPrice:f,maxFeePerGas:h,maxPriorityFeePerGas:d,nonce:p,scopeKey:b,walletClientAddress:m,value:y}){return[{entity:"prepareContractTransaction",accessList:e,account:t,activeChainId:r,address:i,args:n,blockNumber:o,blockTag:a,chainId:s,dataSuffix:u,functionName:c,gas:l,gasPrice:f,maxFeePerGas:h,maxPriorityFeePerGas:d,nonce:p,scopeKey:b,walletClientAddress:m,value:y}]}({accessList:y,account:g,activeChainId:b?.id,address:e,args:i,blockNumber:v,blockTag:w,chainId:n,dataSuffix:a,functionName:r,gas:E,gasPrice:_,maxFeePerGas:x,maxPriorityFeePerGas:C,nonce:S,scopeKey:u,walletClientAddress:m?.account.address,value:O}),function({abi:e,walletClient:t}){return({queryKey:[{accessList:r,account:n,args:i,address:o,blockNumber:a,blockTag:s,chainId:u,dataSuffix:c,functionName:l,gas:f,gasPrice:h,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:b,value:m}]})=>{if(!e)throw Error("abi is required");if(!o)throw Error("address is required");if(!l)throw Error("functionName is required");return(0,X.$q)({abi:e,accessList:r,account:n,args:i,address:o,blockNumber:a,blockTag:s,chainId:u,dataSuffix:c,functionName:l,gas:f,gasPrice:h,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:b,walletClient:t,value:m})}}({abi:t,walletClient:m}),{cacheTime:o,enabled:!!(s&&t&&e&&r&&m),staleTime:c,suspense:l,onError:f,onSettled:h,onSuccess:d});return Object.assign(D,{config:{chainId:n,mode:"prepared",request:void 0,...D.data}})}function e4({queryKey:[{name:e,chainId:t}]}){if(!e)throw Error("name is required");return(0,X.w6)({name:e,chainId:t})}function e9({cacheTime:e,chainId:t,enabled:r=!0,name:n,scopeKey:i,staleTime:o=864e5,suspense:a,onError:s,onSettled:u,onSuccess:c}={}){let l=ej({chainId:t});return ek(function({name:e,chainId:t,scopeKey:r}){return[{entity:"ensAvatar",name:e,chainId:t,scopeKey:r}]}({name:n,chainId:l,scopeKey:i}),e4,{cacheTime:e,enabled:!!(r&&n&&l),staleTime:o,suspense:a,onError:s,onSettled:u,onSuccess:c})}function e7({queryKey:[{address:e,chainId:t}]}){if(!e)throw Error("address is required");return(0,X.Lk)({address:e,chainId:t})}function te({address:e,cacheTime:t,chainId:r,enabled:n=!0,scopeKey:i,staleTime:o=864e5,suspense:a,onError:s,onSettled:u,onSuccess:c}={}){let l=ej({chainId:r});return ek(function({address:e,chainId:t,scopeKey:r}){return[{entity:"ensName",address:e,chainId:t,scopeKey:r}]}({address:e,chainId:l,scopeKey:i}),e7,{cacheTime:t,enabled:!!(n&&e&&l),staleTime:o,suspense:a,onError:s,onSettled:u,onSuccess:c})}}}]);