1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[986],{18615:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(24986);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 c(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function l(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function u(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 d(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),u(e/4294967296>>>0,t,r),u(e>>>0,t,r+4),t}function f(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),d(e>>>0,t,r),d(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=c,t.readUint32LE=l,t.writeUint32BE=u,t.writeInt32BE=u,t.writeUint32LE=d,t.writeInt32LE=d,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=c(e,t);return 4294967296*c(e,t+4)+r-(r>>31)*4294967296},t.readUint64LE=function(e,t){void 0===t&&(t=0);var r=l(e,t);return 4294967296*l(e,t+4)+r},t.writeUint64BE=h,t.writeInt64BE=h,t.writeUint64LE=f,t.writeInt64LE=f,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 b
1itLength");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}},94168:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(18615),i=r(32583);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");c=(s=new Uint8Array(16)).length-t.length,s.set(t,c)}else{if(16!==t.length)throw Error("ChaCha nonce with counter must be 16 bytes");s=t,c=a}for(var s,c,l=new Uint8Array(64),u=0;u<r.length;u+=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],c=r[19]<<24|r[18]<<16|r[17]<<8|r[16],l=r[23]<<24|r[22]<<16|r[21]<<8|r[20],u=r[27]<<24|r[26]<<16|r[25]<<8|r[24],d=r[31]<<24|r[30]<<16|r[29]<<8|r[28],h=t[3]<<24|t[2]<<16|t[1]<<8|t[0],f=t[7]<<24|t[6]<<16|t[5]<<8|t[4],p=t[11]<<24|t[10]<<16|t[9]<<8|t[8],g=t[15]<<24|t[14]<<16|t[13]<<8|t[12],m=1634760805,w=857760878,b=2036477234,v=1797285236,y=i,C=o,x=a,A=s,E=c,k=l,_=u,S=d,T=h,I=f,R=p,O=g,P=0;P<20;P+=2)T^=m=m+y|0,y^=E=E+(T=T>>>16|T<<16)|0,y=y>>>20|y<<12,I^=w=w+C|0,C^=k=k+(I=I>>>16|I<<16)|0,C=C>>>20|C<<12,R^=b=b+x|0,x^=_=_+(R=R>>>16|R<<16)|0,x=x>>>20|x<<12,O^=v=v+A|0,A^=S=S+(O=O>>>16|O<<16)|0,A=A>>>20|A<<12,R^=b=b+x|0,x^=_=_+(R=R>>>24|R<<8)|0,x=x>>>25|x<<7,O^=v=v+A|0,A^=S=S+(O=O>>>24|O<<8)|0,A=A>>>25|A<<7,I^=w=w+C|0,C^=k=k+(I=I>>>24|I<<8)|0,C=C>>>25|C<<7,T^=m=m+y|0,y^=E=E+(T=T>>>24|T<<8)|0,y=y>>>25|y<<7,O^=m=m+C|0,C^=_=_+(O=O>>>16|O<<16)|0,C=C>>>20|C<<12,T^=w=w+x|0,x^=S=S+(T=T>>>16|T<<16)|0,x=x>>>20|x<<12,I^=b=b+A|0,A^=E=E+(I=I>>>16|I<<16)|0,A=A>>>20|A<<12,R^=v=v+y|0,y^=k=k+(R=R>>>16|R<<16)|0,y=y>>>20|y<<12,I^=b=b+A|0,A^=E=E+(I=I>>>24|I<<8)|0,A=A>>>25|A<<7,R^=v=v+y|0,y^=k=k+(R=R>>>24|R<<8)|0,y=y>>>25|y<<7,T^=w=w+x|0,x^=S=S+(T=T>>>24|T<<8)|0,x=x>>>25|x<<7,O^=m=m+C|0,C^=_=_+(O=O>>>24|O<<8)|0,C=C>>>25|C<<7;n.writeUint32LE(m+1634760805|0,e,0),n.writeUint32LE(w+857760878|0,e,4),n.writeUint32LE(b+2036477234|0,e,8),n.writeUint32LE(v+1797285236|0,e,12),n.writeUint32LE(y+i|0,e,16),n.writeUint32LE(C+o|0,e,20),n.writeUint32LE(x+a|0,e,24),n.writeUint32LE(A+s|0,e,28),n.writeUint32LE(E+c|0,e,32),n.writeUint32LE(k+l|0,e,36),n.writeUint32LE(_+u|0,e,40),n.writeUint32LE(S+d|0,e,44),n.writeUint32LE(T+h|0,e,48),n.writeUint32LE(I+f|0,e,52),n.writeUint32LE(R+p|0,e,56),n.writeUint32LE(O+g|0,e,60)}(l,s,e);for(var d=u;d<u+64&&d<r.length;d++)o[d]=r[d]^l[d-u];!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,c)}return i.wipe(l),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)}},23518:function(e,t,r){"use strict";var n=r(94168),i=r(14605),o=r(32583),a=r(18615),s=r(21346);t.Cv=32,t.WH=12,t.pg=16;var c=new Uint8Array(16),l=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 c=new Uint8Array(32);n.stream(this._key,s,c,4);var l=t.length+this.tagLength;if(i){if(i.length!==l)throw Error("ChaCha20Poly1305: incorrect destination length");a=i}else a=new Uint8Array(l);return n.streamXOR(this._key,s,t,a,4),this._authenticate(a.subarray(a.length-this.tagLength,a.length),c,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,c=new Uint8Array(16);c.set(e,c.length-e.length);var l=new Uint8Array(32);n.stream(this._key,c,l,4);var u=new Uint8Array(this.tagLength);if(this._authenticate(u,l,t.subarray(0,t.length-this.tagLength),r),!s.equal(u,t.subarray(t.length-this.tagLength,t.length)))return null;var d=t.length-this.tagLength;if(i){if(i.length!==d)throw Error("ChaCha20Poly1305: incorrect destination length");a=i}else a=new Uint8Array(d);return n.streamXOR(this._key,c,t.subarray(0,t.length-this.tagLength),a,4),o.wipe(c),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(c.subarray(n.length%16))),s.update(r),r.length%16>0&&s.update(c.subarray(r.length%16));var l=new Uint8Array(8);n&&a.writeUint64LE(n.length,l),s.update(l),a.writeUint64LE(r.length,l),s.update(l);for(var u=s.digest(),d=0;d<u.length;d++)e[d]=u[d];s.clean(),o.wipe(u),o.wipe(l)},e}();t.OK=l},21346: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}
1Object.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)}},86784: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}},67878:function(e,t,r){"use strict";var n=r(4705),i=r(32583),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},4705:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(86784),i=r(21346),o=r(32583),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},24986: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}},14605:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n=r(21346),i=r(32583);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 c=e[12]|e[13]<<8;this._r[7]=(s>>>11|c<<5)&8065;var l=e[14]|e[15]<<8;this._r[8]=(c>>>8|l<<8)&8191,this._r[9]=l>>>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],c=this._h[4],l=this._h[5],u=this._h[6],d=this._h[7],h=this._h[8],f=this._h[9],p=this._r[0],g=this._r[1],m=this._r[2],w=this._r[3],b=this._r[4],v=this._r[5],y=this._r[6],C=this._r[7],x=this._r[8],A=this._r[9];r>=16;){var E,k=e[t+0]|e[t+1]<<8;i+=8191&k;var _=e[t+2]|e[t+3]<<8;o+=(k>>>13|_<<3)&8191;var S=e[t+4]|e[t+5]<<8;a+=(_>>>10|S<<6)&8191;var T=e[t+6]|e[t+7]<<8;s+=(S>>>7|T<<9)&8191;var I=e[t+8]|e[t+9]<<8;c+=(T>>>4|I<<12)&8191,l+=I>>>1&8191;var R=e[t+10]|e[t+11]<<8;u+=(I>>>14|R<<2)&8191;var O=e[t+12]|e[t+13]<<8;d+=(R>>>11|O<<5)&8191;var P=e[t+14]|e[t+15]<<8;h+=(O>>>8|P<<8)&8191,f+=P>>>5|n;var N=0;N=(E=0+i*p+5*A*o+5*x*a+5*C*s+5*y*c)>>>13,E&=8191,E+=5*v*l+5*b*u+5*w*d+5*m*h+5*g*f,N+=E>>>13,E&=8191;var M=N;M+=i*g+o*p+5*A*a+5*x*s+5*C*c,N=M>>>13,M&=8191,M+=5*y*l+5*v*u+5*b*d+5*w*h+5*m*f,N+=M>>>13,M&=8191;var D=N;D+=i*m+o*g+a*p+5*A*s+5*x*c,N=D>>>13,D&=8191,D+=5*C*l+5*y*u+5*v*d+5*b*h+5*w*f,N+=D>>>13,D&=8191;var B=N;B+=i*w+o*m+a*g+s*p+5*A*c,N=B>>>13,B&=8191,B+=5*x*l+5*C*u+5*y*d+5*v*h+5*b*f,N+=B>>>13,B&=8191;var $=N;$+=i*b+o*w+a*m+s*g+c*p,N=$>>>13,$&=8191,$+=5*A*l+5*x*u+5*C*d+5*y*h+5*v*f,N+=$>>>13,$&=8191;var U=N;U+=i*v+o*b+a*w+s*m+c*g,N=U>>>13,U&=8191,U+=l*p+5*A*u+5*x*d+5*C*h+5*y*f,N+=U>>>13,U&=8191;var L=N;L+=i*y+o*v+a*b+s*w+c*m,N=L>>>13,L&=8191,L+=l*g+u*p+5*A*d+5*x*h+5*C*f,N+=L>>>13,L&=8191;var j=N;j+=i*C+o*y+a*v+s*b+c*w,N=j>>>13,j&=8191,j+=l*m+u*g+d*p+5*A*h+5*x*f,N+=j>>>13,j&=8191;var z=N;z+=i*x+o*C+a*y+s*v+c*b,N=z>>>13,z&=8191,z+=l*w+u*m+d*g+h*p+5*A*f,N+=z>>>13,z&=8191;var F=N;F+=i*A+o*x+a*C+s*y+c*v,N=F>>>13,F&=8191,F+=l*b+u*w+d*m+h*g+f*p,N+=F>>>13,F&=8191,E=8191&(N=(N=(N<<2)+N|0)+E|0),N>>>=13,M+=N,i=E,o=M,a=D,s=B,c=$,l=U,u=L,d=j,h=z,f=F,t+=16,r-=16}this._h[0]=i,this._h[1]=o,this._h[2]=a,this._h[3]=s,this._h[4]=c,this._h[5]=l,this._h[6]=u,this._h[7]=d,this._h[8]=h,this._h[9]=f},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)}},24861:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;let n=r(71722),i=r(18615),o=r(32583);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 c(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="",c=r.length,l=256-256%c;for(;e>0;){let t=a(Math.ceil(256*e/l),n);for(let n=0;n<t.length&&e>0;n++){let o=t[n];o<l&&(i+=r.charAt(o%c),e--)}(0,o.wipe)(t)}return i}t.randomString=c,t.randomStringForEntropy=function(e,r=s,n=t.defaultRandomSource){return c(Math.ceil(e/(Math.log(r.length)/Math.LN2)),r,n)}},3724: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},39663:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;let n=r(32583);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},71722:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;let n=r(3724),i=r(39663);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},67929:function(e,t,r){"use strict";var n=r(18615),i=r(32583);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
1<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],c=t[1],l=t[2],u=t[3],d=t[4],h=t[5],f=t[6],p=t[7],g=0;g<16;g++){var m=i+4*g;e[g]=n.readUint32BE(r,m)}for(var g=16;g<64;g++){var w=e[g-2],b=(w>>>17|w<<15)^(w>>>19|w<<13)^w>>>10,v=((w=e[g-15])>>>7|w<<25)^(w>>>18|w<<14)^w>>>3;e[g]=(b+e[g-7]|0)+(v+e[g-16]|0)}for(var g=0;g<64;g++){var b=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&f)|0)+(p+(a[g]+e[g]|0)|0)|0,v=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&c^s&l^c&l)|0;p=f,f=h,h=d,d=u+b|0,u=l,l=c,c=s,s=b+v|0}t[0]+=s,t[1]+=c,t[2]+=l,t[3]+=u,t[4]+=d,t[5]+=h,t[6]+=f,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}},32583: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}},89414:function(e,t,r){"use strict";t.gi=t.Au=t.KS=t.kz=void 0;let n=r(24861),i=r(32583);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 c(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 l(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 u(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function d(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,c=0,l=0,u=0,d=0,h=0,f=0,p=0,g=0,m=0,w=0,b=0,v=0,y=0,C=0,x=0,A=0,E=0,k=0,_=0,S=0,T=0,I=0,R=0,O=0,P=0,N=0,M=0,D=0,B=r[0],$=r[1],U=r[2],L=r[3],j=r[4],z=r[5],F=r[6],H=r[7],q=r[8],W=r[9],V=r[10],Z=r[11],G=r[12],K=r[13],Y=r[14],Q=r[15];o+=(n=t[0])*B,a+=n*$,s+=n*U,c+=n*L,l+=n*j,u+=n*z,d+=n*F,h+=n*H,f+=n*q,p+=n*W,g+=n*V,m+=n*Z,w+=n*G,b+=n*K,v+=n*Y,y+=n*Q,a+=(n=t[1])*B,s+=n*$,c+=n*U,l+=n*L,u+=n*j,d+=n*z,h+=n*F,f+=n*H,p+=n*q,g+=n*W,m+=n*V,w+=n*Z,b+=n*G,v+=n*K,y+=n*Y,C+=n*Q,s+=(n=t[2])*B,c+=n*$,l+=n*U,u+=n*L,d+=n*j,h+=n*z,f+=n*F,p+=n*H,g+=n*q,m+=n*W,w+=n*V,b+=n*Z,v+=n*G,y+=n*K,C+=n*Y,x+=n*Q,c+=(n=t[3])*B,l+=n*$,u+=n*U,d+=n*L,h+=n*j,f+=n*z,p+=n*F,g+=n*H,m+=n*q,w+=n*W,b+=n*V,v+=n*Z,y+=n*G,C+=n*K,x+=n*Y,A+=n*Q,l+=(n=t[4])*B,u+=n*$,d+=n*U,h+=n*L,f+=n*j,p+=n*z,g+=n*F,m+=n*H,w+=n*q,b+=n*W,v+=n*V,y+=n*Z,C+=n*G,x+=n*K,A+=n*Y,E+=n*Q,u+=(n=t[5])*B,d+=n*$,h+=n*U,f+=n*L,p+=n*j,g+=n*z,m+=n*F,w+=n*H,b+=n*q,v+=n*W,y+=n*V,C+=n*Z,x+=n*G,A+=n*K,E+=n*Y,k+=n*Q,d+=(n=t[6])*B,h+=n*$,f+=n*U,p+=n*L,g+=n*j,m+=n*z,w+=n*F,b+=n*H,v+=n*q,y+=n*W,C+=n*V,x+=n*Z,A+=n*G,E+=n*K,k+=n*Y,_+=n*Q,h+=(n=t[7])*B,f+=n*$,p+=n*U,g+=n*L,m+=n*j,w+=n*z,b+=n*F,v+=n*H,y+=n*q,C+=n*W,x+=n*V,A+=n*Z,E+=n*G,k+=n*K,_+=n*Y,S+=n*Q,f+=(n=t[8])*B,p+=n*$,g+=n*U,m+=n*L,w+=n*j,b+=n*z,v+=n*F,y+=n*H,C+=n*q,x+=n*W,A+=n*V,E+=n*Z,k+=n*G,_+=n*K,S+=n*Y,T+=n*Q,p+=(n=t[9])*B,g+=n*$,m+=n*U,w+=n*L,b+=n*j,v+=n*z,y+=n*F,C+=n*H,x+=n*q,A+=n*W,E+=n*V,k+=n*Z,_+=n*G,S+=n*K,T+=n*Y,I+=n*Q,g+=(n=t[10])*B,m+=n*$,w+=n*U,b+=n*L,v+=n*j,y+=n*z,C+=n*F,x+=n*H,A+=n*q,E+=n*W,k+=n*V,_+=n*Z,S+=n*G,T+=n*K,I+=n*Y,R+=n*Q,m+=(n=t[11])*B,w+=n*$,b+=n*U,v+=n*L,y+=n*j,C+=n*z,x+=n*F,A+=n*H,E+=n*q,k+=n*W,_+=n*V,S+=n*Z,T+=n*G,I+=n*K,R+=n*Y,O+=n*Q,w+=(n=t[12])*B,b+=n*$,v+=n*U,y+=n*L,C+=n*j,x+=n*z,A+=n*F,E+=n*H,k+=n*q,_+=n*W,S+=n*V,T+=n*Z,I+=n*G,R+=n*K,O+=n*Y,P+=n*Q,b+=(n=t[13])*B,v+=n*$,y+=n*U,C+=n*L,x+=n*j,A+=n*z,E+=n*F,k+=n*H,_+=n*q,S+=n*W,T+=n*V,I+=n*Z,R+=n*G,O+=n*K,P+=n*Y,N+=n*Q,v+=(n=t[14])*B,y+=n*$,C+=n*U,x+=n*L,A+=n*j,E+=n*z,k+=n*F,_+=n*H,S+=n*q,T+=n*W,I+=n*V,R+=n*Z,O+=n*G,P+=n*K,N+=n*Y,M+=n*Q,y+=(n=t[15])*B,C+=n*$,x+=n*U,A+=n*L,E+=n*j,k+=n*z,_+=n*F,S+=n*H,T+=n*q,I+=n*W,R+=n*V,O+=n*Z,P+=n*G,N+=n*K,M+=n*Y,D+=n*Q,o+=38*C,a+=38*x,s+=38*A,c+=38*E,l+=38*k,u+=38*_,d+=38*S,h+=38*T,f+=38*I,p+=38*R,g+=38*O,m+=38*P,w+=38*N,b+=38*M,v+=38*D,i=Math.floor((n=o+(i=1)+6
15535)/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=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,i=Math.floor((n=w+i+65535)/65536),w=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=v+i+65535)/65536),v=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=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=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,i=Math.floor((n=w+i+65535)/65536),w=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=v+i+65535)/65536),v=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=n-65536*i,o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=c,e[4]=l,e[5]=u,e[6]=d,e[7]=h,e[8]=f,e[9]=p,e[10]=g,e[11]=m,e[12]=w,e[13]=b,e[14]=v,e[15]=y}function f(e,t){let r=new Uint8Array(32),n=new Float64Array(80),i=o(),a=o(),f=o(),p=o(),g=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;l(i,a,t),l(f,p,t),u(g,i,f),d(i,i,f),u(f,a,p),d(a,a,p),h(p,g,g),h(m,i,i),h(i,f,i),h(f,a,g),u(g,i,f),d(i,i,f),h(a,i,i),d(f,p,m),h(i,f,s),u(i,i,p),h(f,f,i),h(i,p,m),h(p,a,n),h(a,g,g),l(i,a,t),l(f,p,t)}for(let e=0;e<16;e++)n[e+16]=i[e],n[e+32]=f[e],n[e+48]=a[e],n[e+64]=p[e];let w=n.subarray(32),b=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]}(w,w),h(b,b,w);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];c(n),c(n),c(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,l(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,b),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:f(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=f(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}},39016:function(e,t,r){"use strict";function n(){return(null===r.g||void 0===r.g?void 0:r.g.crypto)||(null===r.g||void 0===r.g?void 0:r.g.msCrypto)||{}}function i(){let e=n();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=n,t.getSubtleCrypto=i,t.isBrowserCryptoAvailable=function(){return!!n()&&!!i()}},56010:function(e,t,r){"use strict";var n=r(20357);function i(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function o(){return void 0!==n&&void 0!==n.versions&&void 0!==n.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=i,t.isNode=o,t.isBrowser=function(){return!i()&&!o()}},60092:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});let n=r(69637);n.__exportStar(r(39016),t),n.__exportStar(r(56010),t)},69637:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return y},__asyncGenerator:function(){return v},__asyncValues:function(){return C},__await:function(){return b},__awaiter:function(){return u},__classPrivateFieldGet:function(){return k},__classPrivateFieldSet:function(){return _},__createBinding:function(){return h},__decorate:function(){return s},__exportStar:function(){return f},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return E},__importStar:function(){return A},__makeTemplateObject:function(){return x},__metadata:function(){return l},__param:function(){return c},__read:function(){return g},__rest:function(){return a},__spread:function(){return m},__spreadArrays:function(){return w},__values:function(){return p}});/*! ***************************************************************************** 2Copyright (c) Microsoft Corporation. 3 4Permission to use, copy, modify, and/or distribute this software for any 5purpose with or without fee is hereby granted. 6 7THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 8REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 9AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 10INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 11LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 12OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 13PERFORMANCE OF THIS SOFTWARE. 14***************************************************************************** */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 c(e,t){return function(r,n){t(r,n,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function d(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 f(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);
14if(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 g(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(g(arguments[t]));return e}function w(){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 b(e){return this instanceof b?(this.v=e,this):new b(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 b?Promise.resolve(r.value.v).then(c,l):u(o[0][2],r)}catch(e){u(o[0][3],e)}}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function y(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:b(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function C(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 x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function A(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 E(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function _(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},33374:function(e,t,r){"use strict";r.d(t,{Z:function(){return b},k:function(){return b}});var n=r(68885),i=r(70741),o=r.n(i),a=r(54112),s=r(40),c=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,p=(e,t,r)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))h.call(t,r)&&p(e,r,t[r]);if(d)for(var r of d(t))f.call(t,r)&&p(e,r,t[r]);return e},m=(e,t)=>l(e,u(t));let w={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"};class b{constructor(e,t=!1){if(this.url=e,this.disableProviderPing=t,this.events=new n.EventEmitter,this.isAvailable=!1,this.registering=!1,!(0,s.isHttpUrl)(e))throw Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e,this.disableProviderPing=t}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw Error("Connection already closed");this.onClose()}async send(e){this.isAvailable||await this.register();try{let t=(0,a.u)(e),r=await (await o()(this.url,m(g({},w),{body:t}))).json();this.onPayload({data:r})}catch(t){this.onError(e.id,t)}}async register(e=this.url){if(!(0,s.isHttpUrl)(e))throw Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){let e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,t)=>
14{this.events.once("register_error",e=>{this.resetMaxListeners(),t(e)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return t(Error("HTTP connection is missing or invalid"));e()})})}this.url=e,this.registering=!0;try{if(!this.disableProviderPing){let t=(0,a.u)({id:1,jsonrpc:"2.0",method:"test",params:[]});await o()(e,m(g({},w),{body:t}))}this.onOpen()}catch(t){let e=this.parseError(t);throw this.events.emit("register_error",e),this.onClose(),e}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;let t="string"==typeof e.data?(0,a.D)(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let r=this.parseError(t),n=r.message||r.toString(),i=(0,s.formatJsonRpcError)(e,n);this.events.emit("payload",i)}parseError(e,t=this.url){return(0,s.parseConnectionError)(e,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}}},70741:function(e,t){var r="undefined"!=typeof self?self:this,n=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();(function(e){var t={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(t.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&r.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function a(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function l(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function d(e){var t=new FileReader,r=u(t);return t.readAsArrayBuffer(e),r}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var r;t.arrayBuffer&&t.blob&&(r=e)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=h(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,r,n=l(this);if(n)return n;
14if(this._bodyBlob)return e=this._bodyBlob,r=u(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},t.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=o(e),t=a(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},c.prototype.delete=function(e){delete this.map[o(e)]},c.prototype.get=function(e){return e=o(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},c.prototype.set=function(e,t){this.map[o(e)]=a(t)},c.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),s(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),s(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),s(e)},t.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(e,t){var r,n,i=(t=t||{}).body;if(e instanceof g){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new c(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),p.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function m(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function w(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},f.call(g.prototype),f.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];w.redirect=function(e,t){if(-1===b.indexOf(t))throw RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(r,n){return new Promise(function(i,o){var a=new g(r,n);if(a.signal&&a.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}}),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL"),i(new w("response"in s?s.response:s.responseText,r))},s.onerror=function(){o(TypeError("Network request failed"))},s.ontimeout=function(){o(TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&t.blob&&(s.responseType="blob"),a.headers.forEac
14h(function(e,t){s.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)})}v.polyfill=!0,n.fetch||(n.fetch=v,n.Headers=c,n.Request=g,n.Response=w),e.Headers=c,e.Request=g,e.Response=w,e.fetch=v,Object.defineProperty(e,"__esModule",{value:!0})})({}),n.fetch.ponyfill=!0,delete n.fetch.polyfill,(t=n.fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t},65657:function(e,t,r){"use strict";r.d(t,{r:function(){return o}});var n=r(68885),i=r(40);class o extends i.IJsonRpcProvider{constructor(e){super(e),this.events=new n.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict((0,i.formatJsonRpcRequest)(e.method,e.params||[],e.id||(0,i.getBigIntRpcId)().toString()),t)}async requestStrict(e,t){return new Promise(async(r,n)=>{if(!this.connection.connected)try{await this.open()}catch(e){n(e)}this.events.on(`${e.id}`,e=>{(0,i.isJsonRpcError)(e)?n(e.error):r(e.result)});try{await this.connection.send(e,t)}catch(e){n(e)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),(0,i.isJsonRpcResponse)(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit("error",Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}}},97924:function(e,t,r){"use strict";r.d(t,{CA:function(){return i},JV:function(){return s},O4:function(){return n},dQ:function(){return o},xK:function(){return a}});let n="INTERNAL_ERROR",i="SERVER_ERROR",o=[-32700,-32600,-32601,-32602,-32603],a={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[n]:{code:-32603,message:"Internal error"},[i]:{code:-32e3,message:"Server error"}},s=i},38225:function(e,t,r){"use strict";var n=r(60092);r.o(n,"IJsonRpcProvider")&&r.d(t,{IJsonRpcProvider:function(){return n.IJsonRpcProvider}}),r.o(n,"formatJsonRpcError")&&r.d(t,{formatJsonRpcError:function(){return n.formatJsonRpcError}}),r.o(n,"formatJsonRpcRequest")&&r.d(t,{formatJsonRpcRequest:function(){return n.formatJsonRpcRequest}}),r.o(n,"formatJsonRpcResult")&&r.d(t,{formatJsonRpcResult:function(){return n.formatJsonRpcResult}}),r.o(n,"getBigIntRpcId")&&r.d(t,{getBigIntRpcId:function(){return n.getBigIntRpcId}}),r.o(n,"isHttpUrl")&&r.d(t,{isHttpUrl:function(){return n.isHttpUrl}}),r.o(n,"isJsonRpcError")&&r.d(t,{isJsonRpcError:function(){return n.isJsonRpcError}}),r.o(n,"isJsonRpcRequest")&&r.d(t,{isJsonRpcRequest:function(){return n.isJsonRpcRequest}}),r.o(n,"isJsonRpcResponse")&&r.d(t,{isJsonRpcResponse:function(){return n.isJsonRpcResponse}}),r.o(n,"isJsonRpcResult")&&r.d(t,{isJsonRpcResult:function(){return n.isJsonRpcResult}}),r.o(n,"isLocalhostUrl")&&r.d(t,{isLocalhostUrl:function(){return n.isLocalhostUrl}}),r.o(n,"isReactNative")&&r.d(t,{isReactNative:function(){return n.isReactNative}}),r.o(n,"isWsUrl")&&r.d(t,{isWsUrl:function(){return n.isWsUrl}}),r.o(n,"payloadId")&&r.d(t,{payloadId:function(){return n.payloadId}})},11053:function(e,t,r){"use strict";r.d(t,{CX:function(){return s},L2:function(){return a},by:function(){return o},i5:function(){return i}});var n=r(97924);function i(e){return n.dQ.includes(e)}function o(e){return Object.keys(n.xK).includes(e)?n.xK[e]:n.xK[n.JV]}function a(e){return Object.values(n.xK).find(t=>t.code===e)||n.xK[n.JV]}function s(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?Error(`Unavailable ${r} RPC url at ${t}`):e}},48917:function(e,t,r){"use strict";r.d(t,{CS:function(){return a},RI:function(){return l},o0:function(){return o},sT:function(){return s},tm:function(){return c}});var n=r(11053),i=r(97924);
14function o(e=3){return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function a(e=6){return BigInt(o(e))}function s(e,t,r){return{id:r||o(),jsonrpc:"2.0",method:e,params:t}}function c(e,t){return{id:e,jsonrpc:"2.0",result:t}}function l(e,t,r){var o;return{id:e,jsonrpc:"2.0",error:void 0===(o=t)?(0,n.by)(i.O4):("string"==typeof o&&(o=Object.assign(Object.assign({},(0,n.by)(i.CA)),{message:o})),void 0!==r&&(o.data=r),(0,n.i5)(o.code)&&(o=(0,n.L2)(o.code)),o)}}},40:function(e,t,r){"use strict";r.d(t,{IJsonRpcProvider:function(){return a.x0},formatJsonRpcError:function(){return o.RI},formatJsonRpcRequest:function(){return o.sT},formatJsonRpcResult:function(){return o.tm},getBigIntRpcId:function(){return o.CS},isHttpUrl:function(){return s.jK},isJsonRpcError:function(){return c.jg},isJsonRpcRequest:function(){return c.DW},isJsonRpcResponse:function(){return c.u},isJsonRpcResult:function(){return c.k4},isLocalhostUrl:function(){return s.JF},isWsUrl:function(){return s.UZ},parseConnectionError:function(){return n.CX},payloadId:function(){return o.o0}}),r(97924);var n=r(11053),i=r(38225);r.o(i,"IJsonRpcProvider")&&r.d(t,{IJsonRpcProvider:function(){return i.IJsonRpcProvider}}),r.o(i,"formatJsonRpcError")&&r.d(t,{formatJsonRpcError:function(){return i.formatJsonRpcError}}),r.o(i,"formatJsonRpcRequest")&&r.d(t,{formatJsonRpcRequest:function(){return i.formatJsonRpcRequest}}),r.o(i,"formatJsonRpcResult")&&r.d(t,{formatJsonRpcResult:function(){return i.formatJsonRpcResult}}),r.o(i,"getBigIntRpcId")&&r.d(t,{getBigIntRpcId:function(){return i.getBigIntRpcId}}),r.o(i,"isHttpUrl")&&r.d(t,{isHttpUrl:function(){return i.isHttpUrl}}),r.o(i,"isJsonRpcError")&&r.d(t,{isJsonRpcError:function(){return i.isJsonRpcError}}),r.o(i,"isJsonRpcRequest")&&r.d(t,{isJsonRpcRequest:function(){return i.isJsonRpcRequest}}),r.o(i,"isJsonRpcResponse")&&r.d(t,{isJsonRpcResponse:function(){return i.isJsonRpcResponse}}),r.o(i,"isJsonRpcResult")&&r.d(t,{isJsonRpcResult:function(){return i.isJsonRpcResult}}),r.o(i,"isLocalhostUrl")&&r.d(t,{isLocalhostUrl:function(){return i.isLocalhostUrl}}),r.o(i,"isReactNative")&&r.d(t,{isReactNative:function(){return i.isReactNative}}),r.o(i,"isWsUrl")&&r.d(t,{isWsUrl:function(){return i.isWsUrl}}),r.o(i,"payloadId")&&r.d(t,{payloadId:function(){return i.payloadId}});var o=r(48917),a=r(82271),s=r(89033),c=r(49272)},82271:function(e,t,r){"use strict";r.d(t,{x0:function(){return o}});class n{}class i extends n{constructor(){super()}}class o extends i{constructor(e){super()}}},89033:function(e,t,r){"use strict";function n(e,t){let r=function(e){let t=e.match(RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}(e);return void 0!==r&&new RegExp(t).test(r)}function i(e){return n(e,"^https?:")}function o(e){return n(e,"^wss?:")}function a(e){return RegExp("wss?://localhost(:d{2,5})?").test(e)}r.d(t,{JF:function(){return a},UZ:function(){return o},jK:function(){return i}})},49272:function(e,t,r){"use strict";function n(e){return"object"==typeof e&&"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}function i(e){return n(e)&&"method"in e}function o(e){return n(e)&&(a(e)||s(e))}function a(e){return"result"in e}function s(e){return"error"in e}r.d(t,{DW:function(){return i},jg:function(){return s},k4:function(){return a},u:function(){return o}})},63088:function(e,t,r){"use strict";r.d(t,{Ep:function(){return E},Fd:function(){return A},Rt:function(){return k},gw:function(){return i.a},jI:function(){return x}});var n=r(78227),i=r.n(n),o=r(54112);let a={level:"info"},s="custom_context";class c{constructor(e){this.nodeValue=e,this.sizeInBytes=new TextEncoder().encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}}class l{constructor(e){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=e,this.sizeInBytes=0}append(e){let t=new c(e);if(t.size>this.maxSizeInBytes)throw Error(`[LinkedList] Value too big to insert into list: ${e} with size ${t.size}`);for(;this.size+t.size>this.maxSizeInBytes;)this.shift();this.head?this.tail&&(this.tail.next=t):this.head=t,this.tail=t,this.lengthInNodes++,this.sizeInBytes+=t.size}shift(){if(!this.head)return;let e=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=e.size}toArray(){let e=[],t=this.head;for(;null!==t;)e.push(t.value),t=t.next;return e}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let e=this.head;return{next:()=>{if(!e)return{done:!0,value:null};let t=e.value;return e=e.next,{done:!1,value:t}}}}}class u{constructor(e,t=1024e3){this.level=e??"error",this.levelValue=n.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=t,this.logs=new l(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(e,t){t===n.levels.values.error?console.error(e):t===n.levels.values.warn?console.warn(e):t===n.levels.values.debug?console.debug(e):t===n.levels.values.trace?console.trace(e):console.log(e)}appendToLogs(e){this.logs.append((0,o.u)({timestamp:new Date().toISOString(),log:e}));let t="string"==typeof e?JSON.parse(e).level:e.level;t>=this.levelValue&&this.forwardToConsole(e,t)}getLogs(){return this.logs}clearLogs(){this.logs=new l(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(e){let t=this.getLogArray();return t.push((0,o.u)({extraMetadata:e})),new Blob(t,{type:"application/json"})}}class d{constructor(e,t=1024e3){this.baseChunkLogger=new u(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}downloadLogsBlobInBrowser(e){let t=URL.createObjectURL(this.logsToBlob(e)),r=document.createElement("a");r.href=t,r.download=`walletconnect-logs-${new Date().toISOString()}.txt`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(t)}}class h{constructor(e,t=1024e3){this.baseChunkLogger=new u(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}}var f=Object.defineProperty,p=Object.defineProperties,g=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,v=(e,t,r)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,y=(e,t)=>{for(var r in t||(t={}))w.call(t,r)&&v(e,r,t[r]);if(m)for(var r of m(t))b.call(t,r)&&v(e,r,t[r]);return e},C=(e,t)=>p(e,g(t));function x(e){return C(y({},e),{level:e?.level||a.level})}function A(e,t=s){return typeof e.bindings>"u"?function(e,t=s){return e[t]||""}(e,t):e.bindings().context||""}function E(e,t,r=s){let n=function(e,t,r=s){let n=A(e,r);return n.trim()?`${n}/${t}`:t}(e,t,r);return function(e,t,r=s){return e[r]=t,e}(e.child({context:n}),n,r)}function k(e){return"u">typeof e.loggerOverride&&"string"!=typeof e.loggerOverride?{logger:e.loggerOverride,chunkLoggerController:null}:"u">typeof window?function(e){var t,r;let n=new d(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:i()(C(y({},e.opts),{level:"trace",browser:C(y({},null==(r=e.opts)?void 0:r.browser),{write:e=>n.write(e)})})),chunkLoggerController:n}}(e):function(e){var t;let r=new h(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:i()(C(y({},e.opts),{level:"trace"}),r),chunkLoggerController:r}}(e)}},54112:function(e,t,r){"use strict";r.d(t,{D:function(){return o},u:function(){return a}});let n=e=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString()+"n":t),i=e=>JSON.parse(e.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3'),(e,t)=>"string"==typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t);function o(e){if("string"!=typeof e)throw Error(`Cannot safe json parse value of type ${typeof e}`);try{return i(e)}catch(t){return e}}function a(e){return"string"==typeof e?e:n(e)||""}},71851:function(e,t,r){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0});let n=r(24011);n.__exportStar(r(47036),t),n.__exportStar(r(62703),t)},47036: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},62703: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},54574:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(24011);n.__exportStar(r(91268),t),n.__exportStar(r(32674),t),n.__exportStar(r(79165),t),n.__exportStar(r(71851),t)},79165:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(24011).__exportStar(r(34760),t)},34760:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0;class r{}t.IWatch=r},25115:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;let n=r(71851);t.toMiliseconds=function(e){return e*n.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/n.ONE_THOUSAND)}},23396: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)})}},91268:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(24011);n.__exportStar(r(23396),t),n.__exportStar(r(25115),t)},32674: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},24011:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return y},__asyncGenerator:function(){return v},__asyncValues:function(){return C},__await:function(){return b},__awaiter:function(){return u},__classPrivateFieldGet:function(){return k},__classPrivateFieldSet:function(){return _},__createBinding:function(){return h},__decorate:function(){return s},__exportStar:function(){return f},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return E},__importStar:function(){return A}
vendor: 6,126 bytes, lines 14-27
14,__makeTemplateObject:function(){return x},__metadata:function(){return l},__param:function(){return c},__read:function(){return g},__rest:function(){return a},__spread:function(){return m},__spreadArrays:function(){return w},__values:function(){return p}});/*! ***************************************************************************** 15Copyright (c) Microsoft Corporation. 16 17Permission to use, copy, modify, and/or distribute this software for any 18purpose with or without fee is hereby granted. 19 20THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 21REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 22AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 23INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 24LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 25OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 26PERFORMANCE OF THIS SOFTWARE. 27***************************************************************************** */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 c(e,t){return function(r,n){t(r,n,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function d(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 f(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 g(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(g(arguments[t]));return e}function w(){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 b(e){return this instanceof b?(this.v=e,this):new b(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 b?Promise.resolve(r.value.v).then(c,l):u(o[0][2],r)}catch(e){u(o[0][3],e)}}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function y(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:b(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function C(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 x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
27function A(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 E(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function _(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},25527: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")}},70053:function(e,t,r){"use strict";t.D=void 0;let n=r(25527);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}}},11245:function(e){var t;t=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",i="week",o="month",a="quarter",s="year",c="date",l="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},f="en",p={};p[f]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||"th")+"]"}};var g="$isDayjsObject",m=function(e){return e instanceof y||!(!e||!e[g])},w=function e(t,r,n){var i;if(!t)return f;if("string"==typeof t){var o=t.toLowerCase();p[o]&&(i=o),r&&(p[o]=r,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;p[s]=t,i=s}return!n&&i&&(f=i),i||!n&&f},b=function(e,t){if(m(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new y(r)},v={s:h,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+h(Math.floor(r/60),2,"0")+":"+h(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,o),a=r-i<0,s=t.clone().add(n+(a?-1:1),o);return+(-(n+(r-i)/(a?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(l){return({M:o,y:s,w:i,d:"day",D:c,h:n,m:r,s:t,ms:e,Q:a})[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};v.l=w,v.i=m,v.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var y=function(){function h(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[g]=!0}var f=h.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(v.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(u);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.init()},f.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},f.$utils=function(){return v},f.isValid=function(){return this.$d.toString()!==l},f.isSame=function(e,t){var r=b(e);return this.startOf(t)<=r&&r<=this.endOf(t)},f.isAfter=function(e,t){return b(e)<this.startOf(t)},f.isBefore=function(e,t){return this.endOf(t)<b(e)},f.$g=function(e,t,r){return v.u(e)?this[t]:this.set(r,e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,a){var l=this,u=!!v.u(a)||a,d=v.p(e),h=function(e,t){var r=v.w(l.$u?Date.UTC(l.$y,t,e):new Date(l.$y,t,e),l);return u?r:r.endOf("day")},f=function(e,t){return v.w(l.toDate()[e].apply(l.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),l)},p=this.$W,g=this.$M,m=this.$D,w="set"+(this.$u?"UTC":"");switch(d){case s:return u?h(1,0):h(31,11);case o:return u?h(1,g):h(0,g+1);case i:var b=this.$locale().weekStart||0,y=(p<b?p+7:p)-b;return h(u?m-y:m+(6-y),g);case"day":case c:return f(w+"Hours",0);case n:return f(w+"Minutes",1);case r:return f(w+"Seconds",2);case t:return f(w+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(i,a){var l,u=v.p(i),d="set"+(this.$u?"UTC":""),h=((l={}).day=d+"Date",l[c]=d+"Date",l[o]=d+"Month",l[s]=d+"FullYear",l[n]=d+"Hours",l[r]=d+"Minutes",l[t]=d+"Seconds",l[e]=d+"Milliseconds",l)[u],f="day"===u?this.$D+(a-this.$W):a;if(u===o||u===s){var p=this.clone().set(c,1);p.$d[h](f),p.init(),this.$d=p.set(c,Math.min(this.$D,p.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.get=function(e){return this[v.p(e)]()},f.add=function(e,a){var c,l=this;e=Number(e);var u=v.p(a),d=function(t){var r=b(l);return v.w(r.date(r.date()+Math.round(t*e)),l)};if(u===o)return this.set(o,this.$M+e);if(u===s)return this.set(s,this.$y+e);if("day"===u)return d(1);if(u===i)return d(7);var h=((c={})[r]=6e4,c[n]=36e5,c[t]=1e3,c)[u]||1,f=this.$d.getTime()+e*h;return v.w(f,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||l;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=v.z(this),o=this.$H,a=this.$m,s=this.$M,c=r.weekdays,u=r.months,h=r.meri
27diem,f=function(e,r,i,o){return e&&(e[r]||e(t,n))||i[r].slice(0,o)},p=function(e){return v.s(o%12||12,e,"0")},g=h||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(d,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return v.s(t.$y,4,"0");case"M":return s+1;case"MM":return v.s(s+1,2,"0");case"MMM":return f(r.monthsShort,s,u,3);case"MMMM":return f(u,s);case"D":return t.$D;case"DD":return v.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(r.weekdaysMin,t.$W,c,2);case"ddd":return f(r.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(o);case"HH":return v.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(o,a,!0);case"A":return g(o,a,!1);case"m":return String(a);case"mm":return v.s(a,2,"0");case"s":return String(t.$s);case"ss":return v.s(t.$s,2,"0");case"SSS":return v.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},f.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},f.diff=function(e,c,l){var u,d=this,h=v.p(c),f=b(e),p=(f.utcOffset()-this.utcOffset())*6e4,g=this-f,m=function(){return v.m(d,f)};switch(h){case s:u=m()/12;break;case o:u=m();break;case a:u=m()/3;break;case i:u=(g-p)/6048e5;break;case"day":u=(g-p)/864e5;break;case n:u=g/36e5;break;case r:u=g/6e4;break;case t:u=g/1e3;break;default:u=g}return l?u:v.a(u)},f.daysInMonth=function(){return this.endOf(o).$D},f.$locale=function(){return p[this.$L]},f.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=w(e,t,!0);return n&&(r.$L=n),r},f.clone=function(){return v.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},h}(),C=y.prototype;return b.prototype=C,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W","day"],["$M",o],["$y",s],["$D",c]].forEach(function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),b.extend=function(e,t){return e.$i||(e(t,y,b),e.$i=!0),b},b.locale=w,b.isDayjs=m,b.unix=function(e){return b(1e3*e)},b.en=p[f],b.Ls=p,b.p={},b},e.exports=t()},89026:function(e){var t;t=function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||"th")+"]"}}},e.exports=t()},17534:function(e){var t;t=function(){return function(e,t,r){e=e||{};var n=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,r,i){return n.fromToBase(e,t,r,i)}r.en.relativeTime=i,n.fromToBase=function(t,n,o,a,s){for(var c,l,u,d=o.$locale().relativeTime||i,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],f=h.length,p=0;p<f;p+=1){var g=h[p];g.d&&(c=a?r(t).diff(o,g.d,!0):o.diff(t,g.d,!0));var m=(e.rounding||Math.round)(Math.abs(c));if(u=c>0,m<=g.r||!g.r){m<=1&&p>0&&(g=h[p-1]);var w=d[g.l];s&&(m=s(""+m)),l="string"==typeof w?w.replace("%d",m):w(m,n,g.l,u);break}}if(n)return l;var b=u?d.future:d.past;return"function"==typeof b?b(l):b.replace("%s",l)},n.to=function(e,t){return o(e,t,this,!0)},n.from=function(e,t){return o(e,t,this)};var a=function(e){return e.$u?r.utc():r()};n.toNow=function(e){return this.to(a(this),e)},n.fromNow=function(e){return this.from(a(this),e)}}},e.exports=t()},26494:function(e){var t;t=function(){return function(e,t,r){r.updateLocale=function(e,t){var n=r.Ls[e];if(n)return(t?Object.keys(t):[]).forEach(function(e){n[e]=t[e]}),n}}},e.exports=t()},22846:function(e,t,r){},48738:function(e,t){"use strict";t.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=c(e),a=o[0],s=o[1],l=new i((a+s)*3/4-s),u=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[u++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(e,t,n){for(var i,o=[],a=t;a<n;a+=3)o.push(r[(i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>
27s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},4807:function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw Error("Not implemented yet")});else try{var o=r(89214);if("function"!=typeof o.randomBytes)throw Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},9109:function(e,t,r){"use strict";/*! 28 * The buffer module from node.js, for the browser. 29 * 30 * @author Feross Aboukhadijeh <https://feross.org> 31 * @license MIT 32 */let n=r(48738),i=r(6868),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|p(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if($(e,Uint8Array)){let t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if($(e,ArrayBuffer)||e&&$(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&($(e,SharedArrayBuffer)||e&&$(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);let i=function(e){var t;if(s.isBuffer(e)){let t=0|f(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return l(e),a(e<0?0:0|f(e))}function d(e){let t=e.length<0?0:0|f(e.length),r=a(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e,t,r){let n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}function f(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||$(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return M(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return D(e).length;default:if(i)return n?-1:M(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=U[e[n]];return i}(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":var o,a;return o=t,a=r,0===o&&a===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){let n=e.slice(t,r),i="";for(let e=0;e<n.length-1;
vendor: 6,323 bytes, line 32
32e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}(this,t,r);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function m(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function w(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){let o,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,c/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;o<s;o++)if(l(e,o)===l(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===c)return n*a}else -1!==n&&(o-=o-n),n=-1}else for(r+c>s&&(r=s-c),o=r;o>=0;o--){let r=!0;for(let n=0;n<c;n++)if(l(e,o+n)!==l(t,n)){r=!1;break}if(r)return o}return -1}function v(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let t=e[i],o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(r=e[i+1]))==128&&(c=(31&t)<<6|63&r)>127&&(o=c);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(c=(15&t)<<12|(63&r)<<6|63&n)>2047&&(c<55296||c>57343)&&(o=c);break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&c<1114112&&(o=c)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function y(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function C(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function x(e,t,r,n,i){R(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function A(e,t,r,n,i){R(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function E(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function k(e,t,r,n,o){return t=+t,r>>>=0,o||E(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function _(e,t,r,n,o){return t=+t,r>>>=0,o||E(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(l(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return u(e)},s.allocUnsafeSlow=function(e){return u(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if($(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),$(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){let r;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let n=s.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){let t=e[r];if($(t,Uint8Array))i+t.length>n.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(s.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):g.apply(this,arguments)}
vendor: 10,804 bytes, line 32
32,s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if($(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,a=r-t,c=Math.min(o,a),l=this.slice(n,i),u=e.slice(t,r);for(let e=0;e<c;++e)if(l[e]!==u[e]){o=l[e],a=u[e];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return w(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return w(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){var i,o,a,s,c,l,u,d;if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let f=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;let a=t.length;for(n>a/2&&(n=a/2),i=0;i<n;++i){let n=parseInt(t.substr(2*i,2),16);if(n!=n)break;e[r+i]=n}return i}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,B(M(e,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return a=t,s=r,B(function(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,a,s);case"base64":return c=t,l=r,B(D(e),this,c,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,d=r,B(function(e,t){let r,n;let i=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-u),this,u,d);default:if(f)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||y(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=L(function(e){O(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=L(function(e){O(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||y(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||y(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||y(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=L(function(e){O(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&P(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+16777216*this[++e])}),s.prototype.readBigInt64BE=L(function(e){O(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&P(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(16777216*this[++e]+65536*this[++e]+256*this[++e]+r)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||y(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||y(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||y(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||y(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;C(this,e,t,r,n,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;C(this,e,t,r,n,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=L(function(e,t=0){return x(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=L(function(e,t=0){return A(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=L(function(e,t=0){return x(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=L(function(e,t=0){return A(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return _(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return _(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},s.prototype.fill=function(e,t,r,n){let i;if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){let t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{let o=s.isBuffer(e)?e:s.from(e,n),a=o.length;
32if(0===a)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%a]}return this};let S={};function T(e,t,r){S[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function I(e){let t="",r=e.length,n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function R(e,t,r,n,i,o){if(e>r||e<t){let n;let i="bigint"==typeof t?"n":"";throw n=o>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new S.ERR_OUT_OF_RANGE("value",n,e)}O(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&P(i,n.length-(o+1))}function O(e,t){if("number"!=typeof e)throw new S.ERR_INVALID_ARG_TYPE(t,"number",e)}function P(e,t,r){if(Math.floor(e)!==e)throw O(e,r),new S.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new S.ERR_BUFFER_OUT_OF_BOUNDS;throw new S.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}T("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),T("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),T("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=I(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=I(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let N=/[^+/0-9A-Za-z-_]/g;function M(e,t){let r;t=t||1/0;let n=e.length,i=null,o=[];for(let a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function D(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function $(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let U=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function L(e){return"undefined"==typeof BigInt?j:e}function j(){throw Error("BigInt not supported")}},56368: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 c=a[s];e=e.replace(RegExp(c,"g"),t[c])}return e}(e)}}},52892:function(e){"use strict";var t={single_source_shortest_paths:function(e,r,n){var i,o,a,s,c,l,u,d={},h={};h[r]=0;var f=t.PriorityQueue.make();for(f.push(r,0);!f.empty();)for(a in o=(i=f.pop()).value,s=i.cost,c=e[o]||{})c.hasOwnProperty(a)&&(l=s+c[a],u=h[a],(void 0===h[a]||u>l)&&(h[a]=l,f.push(a,l),d[a]=o));if(void 0!==n&&void 0===h[n])throw Error(["Could not find a path from ",r," to ",n,"."].join(""));return d},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},65815:function(e,t,r){"use strict";t.version=r(58274).i8,t.utils=r(69381),t.rand=r(4807),t.curve=r(36352),t.curves=r(99819),t.ec=r(2915),t.eddsa=r(85747)},71590:function(e,t,r){"use strict";var n=r(28606),i=r(69381),o=i.getNAF,a=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}
32function l(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw Error("Not implemented")},c.prototype.validate=function(){throw Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r,n,i=e._getDoubles(),a=o(t,1,this._bitLength),c=(1<<i.step+1)-(i.step%2==0?2:1);c/=3;var l=[];for(r=0;r<a.length;r+=i.step){n=0;for(var u=r+i.step-1;u>=r;u--)n=(n<<1)+a[u];l.push(n)}for(var d=this.jpoint(null,null,null),h=this.jpoint(null,null,null),f=c;f>0;f--){for(r=0;r<l.length;r++)(n=l[r])===f?h=h.mixedAdd(i.points[r]):n===-f&&(h=h.mixedAdd(i.points[r].neg()));d=d.add(h)}return d.toP()},c.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),c=this.jpoint(null,null,null),l=a.length-1;l>=0;l--){for(var u=0;l>=0&&0===a[l];l--)u++;if(l>=0&&u++,c=c.dblp(u),l<0)break;var d=a[l];s(0!==d),c="affine"===e.type?d>0?c.mixedAdd(i[d-1>>1]):c.mixedAdd(i[-d-1>>1].neg()):d>0?c.add(i[d-1>>1]):c.add(i[-d-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,i){var s,c,l,u=this._wnafT1,d=this._wnafT2,h=this._wnafT3,f=0;for(s=0;s<n;s++){var p=(l=t[s])._getNAFPoints(e);u[s]=p.wnd,d[s]=p.points}for(s=n-1;s>=1;s-=2){var g=s-1,m=s;if(1!==u[g]||1!==u[m]){h[g]=o(r[g],u[g],this._bitLength),h[m]=o(r[m],u[m],this._bitLength),f=Math.max(h[g].length,f),f=Math.max(h[m].length,f);continue}var w=[t[g],null,null,t[m]];0===t[g].y.cmp(t[m].y)?(w[1]=t[g].add(t[m]),w[2]=t[g].toJ().mixedAdd(t[m].neg())):0===t[g].y.cmp(t[m].y.redNeg())?(w[1]=t[g].toJ().mixedAdd(t[m]),w[2]=t[g].add(t[m].neg())):(w[1]=t[g].toJ().mixedAdd(t[m]),w[2]=t[g].toJ().mixedAdd(t[m].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],v=a(r[g],r[m]);for(c=0,f=Math.max(v[0].length,f),h[g]=Array(f),h[m]=Array(f);c<f;c++){var y=0|v[0][c],C=0|v[1][c];h[g][c]=b[(y+1)*3+(C+1)],h[m][c]=0,d[g]=w}}var x=this.jpoint(null,null,null),A=this._wnafT4;for(s=f;s>=0;s--){for(var E=0;s>=0;){var k=!0;for(c=0;c<n;c++)A[c]=0|h[c][s],0!==A[c]&&(k=!1);if(!k)break;E++,s--}if(s>=0&&E++,x=x.dblp(E),s<0)break;for(c=0;c<n;c++){var _=A[c];0!==_&&(_>0?l=d[c][_-1>>1]:_<0&&(l=d[c][-_-1>>1].neg()),x="affine"===l.type?x.mixedAdd(l):x.add(l))}}for(s=0;s<n;s++)d[s]=null;return i?x:x.toP()},c.BasePoint=l,l.prototype.eq=function(){throw Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},l.prototype.encodeCompressed=function(e){return this.encode(e,!0)},l.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},l.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},l.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},l.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},l.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},l.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},1749:function(e,t,r){"use strict";var n=r(69381),i=r(28606),o=r(87398),a=r(71590),s=n.assert;function c(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function l(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}
vendor: 5,036 bytes, line 32
32o(c,a),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(!t)return this.point(this.zero,e);throw Error("invalid point")}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(l,a.BasePoint),c.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new l(this,e,t,r,n)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),c=i.redMul(a),l=o.redMul(s),u=i.redMul(s),d=a.redMul(o);return this.curve.point(c,l,d,u)},l.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var l=(n=this.curve._mulA(s)).redAdd(c);this.zOne?(e=a.redSub(s).redSub(c).redMul(l.redSub(this.curve.two)),t=l.redMul(n.redSub(c)),r=l.redSqr().redSub(l).redSub(l)):(i=this.z.redSqr(),o=l.redSub(i).redISub(i),e=a.redSub(s).redISub(c).redMul(o),t=l.redMul(n.redSub(c)),r=l.redMul(o))}else n=s.redAdd(c),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(c)),r=n.redMul(o);return this.curve.point(e,t,r)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),c=r.redAdd(t),l=o.redMul(a),u=s.redMul(c),d=o.redMul(c),h=a.redMul(s);return this.curve.point(l,u,h,d)},l.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),l=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=n.redMul(c).redMul(u);return this.curve.twisted?(t=n.redMul(l).redMul(a.redSub(this.curve._mulA(o))),r=c.redMul(l)):(t=n.redMul(l).redMul(a.redSub(o)),r=this.curve._mulC(c).redMul(l)),this.curve.point(d,t,r)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},l.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},36352:function(e,t,r){"use strict";
32t.base=r(71590),t.short=r(220),t.mont=r(7896),t.edwards=r(1749)},7896:function(e,t,r){"use strict";var n=r(28606),i=r(87398),o=r(71590),a=r(69381);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(c,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},c.prototype.add=function(){throw Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},220:function(e,t,r){"use strict";var n=r(69381),i=r(28606),o=r(87398),a=r(71590),s=n.assert;function c(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function l(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(c,a),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var t,r,n,o=this._getEndoRoots(this.p);t=(t=0>o[0].cmp(o[1])?o[0]:o[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?r=a[0]:(r=a[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,c,l,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,f=this.n.clone(),p=new i(1),g=new i(0),m=new i(0),w=new i(1),b=0;
vendor: 4,492 bytes, line 32
320!==h.cmpn(0);){var v=f.div(h);l=f.sub(v.mul(h)),u=m.sub(v.mul(p));var y=w.sub(v.mul(g));if(!n&&0>l.cmp(d))t=c.neg(),r=p,n=l.neg(),o=u;else if(n&&2==++b)break;c=l,f=h,h=l,m=p,p=u,w=g,g=y}a=l.neg(),s=u;var C=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(C)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),c=i.mul(r.b),l=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:c.add(l).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],c=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),c=c.neg(!0)),n[2*o]=s,n[2*o+1]=c,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var l=this._wnafMulAdd(1,n,i,2*o,r),u=0;u<2*o;u++)n[u]=null,i[u]=null;return l},o(l,a.BasePoint),c.prototype.point=function(e,t,r){return new l(this,e,t,r)},c.prototype.pointFromJSON=function(e,t){return l.fromJSON(this,e,t)},l.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},l.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return(e=new i(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},l.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},l.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());
vendor: 4,387 bytes, line 32
32if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(u,a.BasePoint),c.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),d=n.redMul(l),h=c.redSqr().redIAdd(u).redISub(d).redISub(d),f=c.redMul(d.redISub(h)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,f,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),l=c.redMul(a),u=r.redMul(c),d=s.redSqr().redIAdd(l).redISub(u).redISub(u),h=s.redMul(u.redISub(d)).redISub(i.redMul(l)),f=this.z.redMul(a);return this.curve.jpoint(d,h,f)},u.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,c=s.redSqr().redSqr(),l=a.redAdd(a);for(t=0;t<e;t++){var u=o.redSqr(),d=l.redSqr(),h=d.redSqr(),f=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(c)),p=o.redMul(d),g=f.redSqr().redISub(p.redAdd(p)),m=p.redISub(g),w=f.redMul(m);w=w.redIAdd(w).redISub(h);var b=l.redMul(s);t+1<e&&(c=c.redMul(h)),o=g,s=b,l=w}return this.curve.jpoint(o,l.redMul(i),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),c=s.redSqr().redISub(a).redISub(a),l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),e=c,t=s.redMul(a.redISub(c)).redISub(l),r=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),h=d.redSqr(),f=this.x.redAdd(d).redSqr().redISub(u).redISub(h);f=f.redIAdd(f);var p=u.redAdd(u).redIAdd(u),g=p.redSqr(),m=h.redIAdd(h);m=(m=m.redIAdd(m)).redIAdd(m),e=g.redISub(f).redISub(f),t=p.redMul(f.redISub(e)).redISub(m),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},u.prototype._threeDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),c=s.redSqr().redISub(a).redISub(a);e=c;var l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),t=s.redMul(a.redISub(c)).redISub(l),r=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),h=this.x.redMul(d),f=this.x.redSub(u).redMul(this.x.redAdd(u));f=f.redAdd(f).redIAdd(f);var p=h.redIAdd(h),g=(p=p.redIAdd(p)).redAdd(p);e=f.redSqr().redISub(g),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var m=d.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),t=f.redMul(p.redISub(e)).redISub(m)}return this.curve.jpoint(e,t,r)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),c=t.redAdd(t),l=(c=c.redIAdd(c)).redMul(a),u=s.redSqr().redISub(l.redAdd(l)),d=l.redISub(u),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=s.redMul(d).redISub(h),p=r.redAdd(r).redMul(n);return this.curve.jpoint(u,f,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);
vendor: 6,372 bytes, line 32
32var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),c=n.redIAdd(n);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var l=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(c),u=t.redMul(l);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(s).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var h=this.y.redMul(l.redMul(c.redISub(l)).redISub(a.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(d,h,f)},u.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},99819:function(e,t,r){"use strict";var n,i=r(83699),o=r(36352),a=r(69381).assert;function s(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=new s(r);return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}),n}})}t.PresetCurve=s,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(12489)}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
32,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},2915:function(e,t,r){"use strict";var n=r(28606),i=r(83356),o=r(69381),a=r(99819),s=r(4807),c=o.assert,l=r(73790),u=r(84376);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(a,e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new l(this,e)},d.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},d.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),l=new i({hash:this.hash,entropy:s,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new n(1)),h=0;;h++){var f=o.k?o.k(h):new n(l.generate(this.n.byteLength()));if(!(0>=(f=this._truncateToN(f,!0)).cmpn(1)||f.cmp(d)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var g=p.getX(),m=g.umod(this.n);if(0!==m.cmpn(0)){var w=f.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(w=w.umod(this.n)).cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==g.cmp(m)?2:0);return o.canonical&&w.cmp(this.nh)>0&&(w=this.n.sub(w),b^=1),new u({r:m,s:w,recoveryParam:b})}}}}}},d.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o,a=(t=new u(t,"hex")).r,s=t.s;if(0>a.cmpn(1)||a.cmp(this.n)>=0||0>s.cmpn(1)||s.cmp(this.n)>=0)return!1;var c=s.invm(this.n),l=c.mul(e).umod(this.n),d=c.mul(a).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(l,r.getPublic(),d)).isInfinity()&&o.eqXToP(a):!(o=this.g.mulAdd(l,r.getPublic(),d)).isInfinity()&&0===o.getX().umod(this.n).cmp(a)},d.prototype.recoverPubKey=function(e,t,r,i){c((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,a=new n(e),s=t.r,l=t.s,d=1&r,h=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var f=t.r.invm(o),p=o.sub(a).mul(f).umod(o),g=l.mul(f).umod(o);return this.g.mulAdd(p,s,g)},d.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(r))return o}throw Error("Unable to find valid recovery factor")}},73790:function(e,t,r){"use strict";var n=r(28606),i=r(69381).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&i(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},84376:function(e,t,r){"use strict";var n=r(28606),i=r(69381),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4||0===e[t.place])return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function l(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=c(e,r);if(!1===o||o+r.place!==e.length||2!==e[r.place++])return!1;var a=c(e,r);if(!1===a||(128&e[r.place])!=0)return!1;var l=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var u=c(e,r);if(!1===u||e.length!==u+r.place||(128&e[r.place])!=0)return!1;var d=e.slice(r.place,u+r.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}
vendor: 4,548 bytes, line 32
32if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n(l),this.s=new n(d),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=l(t),r=l(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];u(n,t.length),(n=n.concat(t)).push(2),u(n,r.length);var o=n.concat(r),a=[48];return u(a,o.length),a=a.concat(o),i.encode(a,e)}},85747:function(e,t,r){"use strict";var n=r(83699),i=r(99819),o=r(69381),a=o.assert,s=o.parseBytes,c=r(4358),l=r(92274);function u(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),c=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:o})},u.prototype.verify=function(e,t,r){if(e=s(e),(t=this.makeSignature(t)).S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=(128&e[t])!=0,i=o.intFromLE(r);return this.curve.pointFromY(i,n)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return o.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},4358:function(e,t,r){"use strict";var n=r(69381),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},92274:function(e,t,r){"use strict";var n=r(28606),i=r(69381),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function c(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(o(t.length===2*e.encodingLength,"Signature has invalid size"),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(c,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(c,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(c,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(c,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},12489:function(e
vendor: 26,140 bytes, line 32
32){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},
3269381:function(e,t,r){"use strict";var n=r(28606),i=r(71974),o=r(40697);t.assert=i,t.toArray=o.toArray,t.zero2=o.zero2,t.toHex=o.toHex,t.encode=o.encode,t.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);for(a=0;a<n.length;a+=1)n[a]=0;var i=1<<t+1,o=e.clone();for(a=0;a<n.length;a++){var a,s,c=o.andln(i-1);o.isOdd()?(s=c>(i>>1)-1?(i>>1)-c:c,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},t.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,a,s,c=e.andln(3)+n&3,l=t.andln(3)+i&3;3===c&&(c=-1),3===l&&(l=-1),a=(1&c)==0?0:(3==(o=e.andln(7)+n&7)||5===o)&&2===l?-c:c,r[0].push(a),s=(1&l)==0?0:(3==(o=t.andln(7)+i&7)||5===o)&&2===c?-l:l,r[1].push(s),2*n===a+1&&(n=1-n),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},t.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},t.parseBytes=function(e){return"string"==typeof e?t.toArray(e,"hex"):e},t.intFromLE=function(e){return new n(e,"hex","le")}},28606:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}
vendor: 4,182 bytes, line 32
32"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(85568).Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function s(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,s>=49?i+=s-49+10:s>=17?i+=s-17+10:i+=s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a<this.length;a++)this.words[a]=0;var s=0;if("be"===r)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var o=0,a=0;if("be"===r)for(i=e.length-1;i>=t;i-=2)n=s(e,t,i)<<o,this.words[a]|=67108863&n,o>=18?(o-=18,a+=1,this.words[a]|=n>>>26):o+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)n=s(e,t,i)<<o,this.words[a]|=67108863&n,o>=18?(o-=18,a+=1,this.words[a]|=n>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,l=0,u=r;u<s;u+=n)l=c(e,u,u+n,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var d=1;for(l=c(e,u,e.length,t),u=0;u<a;u++)d*=t;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l,u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,143489
3207,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var l=1;l<n;l++){for(var u=c>>>26,d=67108863&c,h=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=h;f++){var p=l-f|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[f])+d)/67108864|0,d=67108863&a}r.words[l]=0|d,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r.strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],c=((s<<i|o)&16777215).toString(16);r=0!=(o=s>>>24-i&16777215)||a!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=d[e],f=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(f).toString(e);r=(p=p.idivn(f)).isZero()?g+r:u[l-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==l),this.toArrayLike(l,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i,o,a=this.byteLength(),s=r||Math.max(1,a);n(a<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var c=new e(s),l=this.clone();if("le"===t){for(o=0;!l.isZero();o++)i=l.andln(255),l.iushrn(8),c[o]=i;for(;o<s;o++)c[o]=0}else{for(o=0;o<s-a;o++)c[o]=0;for(o=0;!l.isZero();o++)i=l.andln(255),l.iushrn(8),c[s-o-1]=i}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;
vendor: 8,486 bytes, line 32
32n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(n=(0|t.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&n;for(;0!==o&&a<t.length;a++)o=(n=(0|t.words[a])+o)>>26,this.words[a]=67108863&n;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,a=e.words,s=t.words,c=r.words,l=0,u=0|a[0],d=8191&u,h=u>>>13,f=0|a[1],p=8191&f,g=f>>>13,m=0|a[2],w=8191&m,b=m>>>13,v=0|a[3],y=8191&v,C=v>>>13,x=0|a[4],A=8191&x,E=x>>>13,k=0|a[5],_=8191&k,S=k>>>13,T=0|a[6],I=8191&T,R=T>>>13,O=0|a[7],P=8191&O,N=O>>>13,M=0|a[8],D=8191&M,B=M>>>13,$=0|a[9],U=8191&$,L=$>>>13,j=0|s[0],z=8191&j,F=j>>>13,H=0|s[1],q=8191&H,W=H>>>13,V=0|s[2],Z=8191&V,G=V>>>13,K=0|s[3],Y=8191&K,Q=K>>>13,J=0|s[4],X=8191&J,ee=J>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],ec=8191&es,el=es>>>13,eu=0|s[8],ed=8191&eu,eh=eu>>>13,ef=0|s[9],ep=8191&ef,eg=ef>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(l+(n=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(h,z)|0))<<13)|0;l=((o=Math.imul(h,F))+(i>>>13)|0)+(em>>>26)|0,em&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,F))+Math.imul(g,z)|0,o=Math.imul(g,F);var ew=(l+(n=n+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(h,q)|0))<<13)|0;l=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,F))+Math.imul(b,z)|0,o=Math.imul(b,F),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(g,q)|0,o=o+Math.imul(g,W)|0;var eb=(l+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(h,Z)|0))<<13)|0;l=((o=o+Math.imul(h,G)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,F))+Math.imul(C,z)|0,o=Math.imul(C,F),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(g,Z)|0,o=o+Math.imul(g,G)|0;var ev=(l+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,Q)|0)+Math.imul(h,Y)|0))<<13)|0;l=((o=o+Math.imul(h,Q)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,F))+Math.imul(E,z)|0,o=Math.imul(E,F),n=n+Math.imul(y,q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,W)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,Q)|0;var ey=(l+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,X)|0))<<13)|0;l=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(_,z),i=(i=Math.imul(_,F))+Math.imul(S,z)|0,o=Math.imul(S,F),n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,W)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,Q)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var eC=(l+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(h,er)|0))<<13)|0;l=((o=o+Math.imul(h,en)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,F))+Math.imul(R,z)|0,o=Math.imul(R,F),n=n+Math.imul(_,q)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(S,q)|0,o=o+Math.imul(S,W)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,Q)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,Q)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(g,er)|0,o=o+Math.imul(g,en)|0;var ex=(l+(n=n+Math.imul(d,eo)|0)|0)+((8191&(i=(i=i+Math.imul(d,ea)|0)+Math.imul(h,eo)|0))<<13)|0;l=((o=o+Math.imul(h,ea)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(P,z),i=(i=Math.imul(P,F))+Math.imul(N,z)|0,o=Math.imul(N,F),n=n+Math.imul(I,q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,W)|0,n=n+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(S,Z)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,Q)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,Q)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(b,er)|0,o=o+Math.imul(b,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(g,eo)|0,o=o+Math.imul(g,ea)|0;var eA=(l+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,el)|0)+Math.imul(h,ec)|0))<<13)|0;l=((o=o+Math.imul(h,el)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,F))+Math.imul(B,z)|0,o=Math.imul(B,F),n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(N,q)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,G)|0,n=n+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,Q)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(y,er)|0,i=(i=i+Math.imul(y,en)|0)+Math.imul(C,er)|0,o=o+Math.imul(C,en)|0,n=n+Math.imul(w,eo)|0,i=(i=i+Math.imul(w,ea)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,ea)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(g,ec)|0,o=o+Math.imul(g,el)|0;var eE=(l+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,eh)|0)+Math.imul(h,ed)|0))<<13)|0;l=((o=o+Math.imul(h,eh)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(U,z),i=(i=Math.imul(U,F))+Math.imul(L,z)|0,o=Math.imul(L,F),n=n+Math.imul(D,q)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(B,q)|0,o=o+Math.imul(B,W)|0,n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,Q)|0,n=n+Math.imul(_,X)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(E,er)|0,o=o+Math.imul(E,en)|0,n=n+Math.imul(y,eo)|0,i=(i=i+Math.imul(y,ea)|0)+Math.imul(C,eo)|0,o=o+Math.imul(C,ea)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,el)|0)+Math.imul(b,ec)|0,o=o+Math.imul(b,el)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,eh)|0)+Math.imul(g,ed)|0,o=o+Math.imul(g,eh)|0;var ek=(l+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,eg)|0)+Math.imul(h,ep)|0))<<13)|0;l=((o=o+Math.imul(h,eg)|0)+(i>>>13)|0)+(ek>>>
vendor: 4,571 bytes, line 32
3226)|0,ek&=67108863,n=Math.imul(U,q),i=(i=Math.imul(U,W))+Math.imul(L,q)|0,o=Math.imul(L,W),n=n+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(B,Z)|0,o=o+Math.imul(B,G)|0,n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,Q)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,Q)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(_,er)|0,i=(i=i+Math.imul(_,en)|0)+Math.imul(S,er)|0,o=o+Math.imul(S,en)|0,n=n+Math.imul(A,eo)|0,i=(i=i+Math.imul(A,ea)|0)+Math.imul(E,eo)|0,o=o+Math.imul(E,ea)|0,n=n+Math.imul(y,ec)|0,i=(i=i+Math.imul(y,el)|0)+Math.imul(C,ec)|0,o=o+Math.imul(C,el)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,eh)|0)+Math.imul(b,ed)|0,o=o+Math.imul(b,eh)|0;var e_=(l+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,eg)|0)+Math.imul(g,ep)|0))<<13)|0;l=((o=o+Math.imul(g,eg)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(U,Z),i=(i=Math.imul(U,G))+Math.imul(L,Z)|0,o=Math.imul(L,G),n=n+Math.imul(D,Y)|0,i=(i=i+Math.imul(D,Q)|0)+Math.imul(B,Y)|0,o=o+Math.imul(B,Q)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(I,er)|0,i=(i=i+Math.imul(I,en)|0)+Math.imul(R,er)|0,o=o+Math.imul(R,en)|0,n=n+Math.imul(_,eo)|0,i=(i=i+Math.imul(_,ea)|0)+Math.imul(S,eo)|0,o=o+Math.imul(S,ea)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,el)|0)+Math.imul(E,ec)|0,o=o+Math.imul(E,el)|0,n=n+Math.imul(y,ed)|0,i=(i=i+Math.imul(y,eh)|0)+Math.imul(C,ed)|0,o=o+Math.imul(C,eh)|0;var eS=(l+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,eg)|0)+Math.imul(b,ep)|0))<<13)|0;l=((o=o+Math.imul(b,eg)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(U,Y),i=(i=Math.imul(U,Q))+Math.imul(L,Y)|0,o=Math.imul(L,Q),n=n+Math.imul(D,X)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(N,er)|0,o=o+Math.imul(N,en)|0,n=n+Math.imul(I,eo)|0,i=(i=i+Math.imul(I,ea)|0)+Math.imul(R,eo)|0,o=o+Math.imul(R,ea)|0,n=n+Math.imul(_,ec)|0,i=(i=i+Math.imul(_,el)|0)+Math.imul(S,ec)|0,o=o+Math.imul(S,el)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,eh)|0)+Math.imul(E,ed)|0,o=o+Math.imul(E,eh)|0;var eT=(l+(n=n+Math.imul(y,ep)|0)|0)+((8191&(i=(i=i+Math.imul(y,eg)|0)+Math.imul(C,ep)|0))<<13)|0;l=((o=o+Math.imul(C,eg)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(U,X),i=(i=Math.imul(U,ee))+Math.imul(L,X)|0,o=Math.imul(L,ee),n=n+Math.imul(D,er)|0,i=(i=i+Math.imul(D,en)|0)+Math.imul(B,er)|0,o=o+Math.imul(B,en)|0,n=n+Math.imul(P,eo)|0,i=(i=i+Math.imul(P,ea)|0)+Math.imul(N,eo)|0,o=o+Math.imul(N,ea)|0,n=n+Math.imul(I,ec)|0,i=(i=i+Math.imul(I,el)|0)+Math.imul(R,ec)|0,o=o+Math.imul(R,el)|0,n=n+Math.imul(_,ed)|0,i=(i=i+Math.imul(_,eh)|0)+Math.imul(S,ed)|0,o=o+Math.imul(S,eh)|0;var eI=(l+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,eg)|0)+Math.imul(E,ep)|0))<<13)|0;l=((o=o+Math.imul(E,eg)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(U,er),i=(i=Math.imul(U,en))+Math.imul(L,er)|0,o=Math.imul(L,en),n=n+Math.imul(D,eo)|0,i=(i=i+Math.imul(D,ea)|0)+Math.imul(B,eo)|0,o=o+Math.imul(B,ea)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(N,ec)|0,o=o+Math.imul(N,el)|0,n=n+Math.imul(I,ed)|0,i=(i=i+Math.imul(I,eh)|0)+Math.imul(R,ed)|0,o=o+Math.imul(R,eh)|0;var eR=(l+(n=n+Math.imul(_,ep)|0)|0)+((8191&(i=(i=i+Math.imul(_,eg)|0)+Math.imul(S,ep)|0))<<13)|0;l=((o=o+Math.imul(S,eg)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(U,eo),i=(i=Math.imul(U,ea))+Math.imul(L,eo)|0,o=Math.imul(L,ea),n=n+Math.imul(D,ec)|0,i=(i=i+Math.imul(D,el)|0)+Math.imul(B,ec)|0,o=o+Math.imul(B,el)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,eh)|0)+Math.imul(N,ed)|0,o=o+Math.imul(N,eh)|0;var eO=(l+(n=n+Math.imul(I,ep)|0)|0)+((8191&(i=(i=i+Math.imul(I,eg)|0)+Math.imul(R,ep)|0))<<13)|0;l=((o=o+Math.imul(R,eg)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,n=Math.imul(U,ec),i=(i=Math.imul(U,el))+Math.imul(L,ec)|0,o=Math.imul(L,el),n=n+Math.imul(D,ed)|0,i=(i=i+Math.imul(D,eh)|0)+Math.imul(B,ed)|0,o=o+Math.imul(B,eh)|0;var eP=(l+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,eg)|0)+Math.imul(N,ep)|0))<<13)|0;l=((o=o+Math.imul(N,eg)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(U,ed),i=(i=Math.imul(U,eh))+Math.imul(L,ed)|0,o=Math.imul(L,eh);var eN=(l+(n=n+Math.imul(D,ep)|0)|0)+((8191&(i=(i=i+Math.imul(D,eg)|0)+Math.imul(B,ep)|0))<<13)|0;l=((o=o+Math.imul(B,eg)|0)+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863;var eM=(l+(n=Math.imul(U,ep))|0)+((8191&(i=(i=Math.imul(U,eg))+Math.imul(L,ep)|0))<<13)|0;return l=((o=Math.imul(L,eg))+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,c[0]=em,c[1]=ew,c[2]=eb,c[3]=ev,c[4]=ey,c[5]=eC,c[6]=ex,c[7
vendor: 17,280 bytes, line 32
32]=eA,c[8]=eE,c[9]=ek,c[10]=e_,c[11]=eS,c[12]=eT,c[13]=eI,c[14]=eR,c[15]=eO,c[16]=eP,c[17]=eN,c[18]=eM,0!==l&&(c[19]=l,r.length++),r};function g(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=f),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,c=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=c;l++){var u=o-l,d=(0|e.words[u])*(0|t.words[l]),h=67108863&d;a=a+(d/67108864|0)|0,s=67108863&(h=h+s|0),i+=(a=a+(h>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):g(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},m.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},m.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},m.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var d=c,h=l,f=0;f<a;f++){var p=r[u+f],g=n[u+f],m=r[u+f+a],w=n[u+f+a],b=d*m-h*w;w=d*w+h*m,m=b,r[u+f]=p+m,n[u+f]=g+w,r[u+f+a]=p-m,n[u+f+a]=g-w,f!==s&&(b=c*d-l*h,h=c*h+l*d,d=b)}},m.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},m.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},m.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n((-8192&o)==0)},m.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},m.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=Array(n),s=Array(n),c=Array(n),l=Array(n),u=Array(n),d=Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,l,n),this.transform(a,o,s,c,n,i),this.transform(l,o,u,d,n,i);for(var f=0;f<n;f++){var p=s[f]*u[f]-c[f]*d[f];c[f]=s[f]*d[f]+c[f]*u[f],s[f]=p}return this.conjugate(s,c,n),this.transform(s,c,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),g(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=(i/67108864|0)+(o>>>26),this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,c=(0|this.words[t])-s<<r;this.words[t]=c|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var i,o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o;if(i-=a,i=Math.max(0,i),r){for(var c=0;c<a;c++)r.words[c]=this.words[c];r.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var u=0|this.words[c];this.words[c]=l<<26-o|u>>>o,l=u&s}return r&&0!==l&&(r.words[r.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<<t)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<<t),this.strip())},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<67108864),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var c=(0|e.words[i])*t;o-=67108863&c,s=(o>>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var c=i.length-a.length;if("mod"!==t){(r=new o(null)).length=c+1,r.words=Array(r.length);for(var l=0;l<r.length;l++)r.words[l]=0}var u=i.clone()._ishlnsubmul(a,1,c);0===u.negative&&(i=u,r&&(r.words[c]=1));for(var d=c-1;d>=0;d--){var h=(0|i.words[a.length+d])*67108864+(0|i.words[a.length+d-1]);for(h=Math.min(h/s|0,67108863),i._ishlnsubmul(a,h,d);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(a,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=h)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;(t.words[0]&f)==0&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,g=1;(r.words[0]&g)==0&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var l=0,u=1;(r.words[0]&u)==0&&l<26;++l,u<<=1);if(l>0)for(r.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,h=1;(i.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(i.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new A(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(v,b),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9){e.words[0]=0,e.length=1;return}var i=e.words[9];for(n=10,t.words[t.length++]=4194303&i;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(y,b),i(C,b),i(x,b),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;
32r++){var n=(0|e.words[r])*19+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(w[e])return w[e];if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new C;else if("p25519"===e)t=new x;else throw Error("Unknown prime "+e);return w[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),h=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=a;0!==f.cmp(s);){for(var g=f,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m<p);var w=this.pow(d,new o(1).iushln(p-m-1));h=h.redMul(w),d=w.redSqr(),f=f.redMul(d),p=m}return h},A.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},A.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),n=t.length-1;n>=0;n--){for(var l=t.words[n],u=c-1;u>=0;u--){var d=l>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===a){s=0;continue}a<<=1,a|=d,(4==++s||0===n&&0===u)&&(i=this.mul(i,r[a]),s=0,a=0)}c=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},i(E,A),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},47059: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>>
3212|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}},37836: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),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=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 c,l,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,i),!0;case 5:return u.fn.call(u.context,t,n,i,o),!0;case 6:return u.fn.call(u.context,t,n,i,o,a),!0}for(l=1,c=Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var h,f=u.length;for(l=0;l<f;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,n);break;case 4:u[l].fn.call(u[l].context,t,n,i);break;default:if(!c)for(h=1,c=Array(d-1);h<d;h++)c[h-1]=arguments[h];u[l].fn.apply(u[l].context,c)}}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 c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||i&&!s[c].once||n&&s[c].context!==n)&&l.push(s[c]);l.length?this._events[o]=1===l.length?l[0]:l: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},68885:function(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(r,n){var i;function o(r){e.removeListener(t,a),n(r)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}g(e,t,a,{once:!0}),"error"!==t&&(i={once:!0},"function"==typeof e.on&&g(e,"error",o,i))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,l=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=u.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):p(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a}
32,set:function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else for(var l=c.length,u=p(c,l),r=0;r<l;++r)n(u[r],this,t);return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},24816: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}},83356:function(e,t,r){"use strict";var n=r(83699),i=r(40697),o=r(71974);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([
321]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},6868:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,l=c>>1,u=-7,d=r?i-1:0,h=r?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=l}return(f?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,c,l=8*o-i-1,u=(1<<l)-1,d=u>>1,h=23===i?5960464477539062e-23:0,f=n?0:o-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+d>=1?t+=h/c:t+=h*Math.pow(2,1-d),t*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[r+f]=255&a,f+=p,a/=256,l-=8);e[r+f-p]|=128*g}},40697:function(e,t){"use strict";function r(e){return 1===e.length?"0"+e:e}function n(e){for(var t="",n=0;n<e.length;n++)t+=r(e[n].toString(16));return t}t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e);for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},t.zero2=r,t.toHex=n,t.encode=function(e,t){return"hex"===t?n(e):e}},19783:function(e,t,r){let n=r(87936),i=r(23364),o=r(64811),a=r(65773);function s(e,t,r,o,a){let s=[].slice.call(arguments,1),c=s.length,l="function"==typeof s[c-1];if(!l&&!n())throw Error("Callback required as last argument");if(l){if(c<2)throw Error("Too few arguments provided");2===c?(a=r,r=t,t=o=void 0):3===c&&(t.getContext&&void 0===a?(a=o,o=void 0):(a=o,o=r,r=t,t=void 0))}else{if(c<1)throw Error("Too few arguments provided");return 1===c?(r=t,t=o=void 0):2!==c||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)})},87936:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},80532:function(e,t,r){let n=r(2601).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}},62971:function(e,t,r){let n=r(58257),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},86423: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},43143: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},23841:function(e,t,r){let n=r(47059),i=r(58257);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},34270:function(e,t,r){let n=r(38428),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,
32192,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}}},38428: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}}},16123:function(e,t,r){let n=r(2601).getSymbolSize;t.getPositions=function(e){let t=n(e);return[[0,0],[t-7,0],[0,t-7]]}},59906:function(e,t,r){let n=r(2601),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}},61011: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]]}},62558:function(e,t,r){let n=r(58257),i=r(2601);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},42903: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 c=0;c<t;c++){i=o=0,a=s=null;for(let l=0;l<t;l++){let t=e.get(c,l);t===a?i++:(i>=5&&(n+=r.N1+(i-5)),a=t,i=1),(t=e.get(l,c))===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;
vendor: 14,286 bytes, line 32
32a++){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}},58257:function(e,t,r){let n=r(66477),i=r(36276);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}}},6078:function(e,t,r){let n=r(58257);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},80958:function(e,t,r){let n=r(61011);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}},23364:function(e,t,r){let n=r(2601),i=r(38428),o=r(86423),a=r(43143),s=r(80532),c=r(16123),l=r(42903),u=r(34270),d=r(84001),h=r(11888),f=r(59906),p=r(58257),g=r(25051);function m(e,t,r){let n,i;let o=e.size,a=f.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,f;if(void 0===e||""===e)throw Error("No input text");let w=i.M;return void 0!==t&&(w=i.from(t.errorCorrectionLevel,i.M),r=h.from(t.version),f=l.from(t.maskPattern),t.toSJISFunc&&n.setToSJISFunction(t.toSJISFunc)),function(e,t,r,i){let f;if(Array.isArray(e))f=g.fromArray(e);else if("string"==typeof e){let n=t;if(!n){let t=g.rawSplit(e);n=h.getBestVersionForData(t,r)}f=g.fromString(e,n||40)}else throw Error("Invalid data");let w=h.getBestVersionForData(f,r);if(!w)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<w)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+w+".\n")}else t=w;let b=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)-u.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-u.getTotalCodewordsCount(t,r),c=u.getBlocksCount(t,r),l=a%c,h=c-l,f=Math.floor(a/c),p=Math.floor(s/c),g=p+1,m=f-p,w=new d(m),b=0,v=Array(c),y=Array(c),C=0,x=new Uint8Array(e.buffer);for(let e=0;e<c;e++){let t=e<h?p:g;v[e]=x.slice(b,b+t),y[e]=w.encode(v[e]),b+=t,C=Math.max(C,t)}let A=new Uint8Array(a),E=0;for(i=0;i<C;i++)for(o=0;o<c;o++)i<v[o].length&&(A[E++]=v[o][i]);for(i=0;i<m;i++)for(o=0;o<c;o++)A[E++]=y[o][i];return A}(i,e,t)}(t,r,f),v=new a(n.getSymbolSize(t));return function(e,t){let r=e.size,n=c.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,b),isNaN(i)&&(i=l.getBestMask(v,m.bind(null,v,r))),l.applyMask(i,v),m(v,r,i),{modules:v,version:t,errorCorrectionLevel:r,maskPattern:i,segments:f}}(e,r,w,f)}},84001:function(e,t,r){let n=r(80958);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},36276: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)}},25051:function(e,t,r){let n=r(58257),i=r(6078),o=r(62971),a=r(23841),s=r(62558),c=r(36276),l=r(2601),u=r(52892);function d(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 f(e){let t,r;let i=h(c.NUMERIC,n.NUMERIC,e),o=h(c.ALPHANUMERIC,n.ALPHANUMERIC,e);return l.isKanjiModeEnabled()?(t=h(c.BYTE,n.BYTE,e),r=h(c.KANJI,n.KANJI,e)):(t=h(c.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 g(e,t){let r;let c=n.getBestModeForData(e);if((r=n.from(t,c))!==n.BYTE&&r.bit<c.bit)throw Error('"'+e+'" cannot be encoded with mode '+n.toString(r)+".\n Suggested mode is: "+n.toString(c));switch(r!==n.KANJI||l.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(g(t,null)):t.data&&e.push(g(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],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=""+a+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<o.length;e++){let a=o[e];r[a]&&r[a].node.mode===l.mode?(i[a][u]=p(r[a].lastCount+l.length,l.mode)-p(r[a].lastCount,l.mode),r[a].lastCount+=l.length):(r[a]&&(r[a].lastCount=l.length),i[a][u]=p(l.length,l.mode)+4+n.getCharCountIndicator(l.mode,t))}}o=c}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:d(i.data)}]);break;case n.BYTE:t.push([{data:i.data,mode:n.BYTE,length:d(i.data)}])}}return t}(f(e,l.isKanjiModeEnabled())),r),o=u.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(f(e,l.isKanjiModeEnabled()))}},2601: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)}},66477:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},11888:function(e,t,r){let n=r(2601),i=r(34270),o=r(38428),a=r(58257),s=r(66477),c=n.getBCHDigit(7973);function l(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 c=o-l(r,e);switch(r){case a.NUMERIC:return Math.floor(c/10*3);case a.ALPHANUMERIC:return Math.floor(c/11*2);case a.KANJI:return Math.floor(c/13);case a.BYTE:default:return Math.floor(c/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=l(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)-c>=0;)t^=7973<<n.getBCHDigit(t)-c;return e<<12|t}},64811:function(e,t,r){let n=r(59472);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),c=a.getContext("2d"),l=c.createImageData(s,s);return n.qrToImageData(l.data,e,o),i=a,c.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",c.putImageData(l,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)}},65773:function(e,t,r){let n=r(59472);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,c=e.modules.data,l=s+2*a.margin,u=a.color.light.a?"<path "+i(a.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",d="<path "+i(a.color.dark,"stroke")+' d="'+function(e,t,r){let n="",i=0,a=!1,s=0;for(let c=0;c<e.length;c++){let l=Math.floor(c%t),u=Math.floor(c/t);l||a||(a=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(n+=a?o("M",l+r,.5+u+r):o("m",i,0),i=0,a=!1),l+1<t&&e[c+1]||(n+=o("h",s),s=0)):i++}return n}(c,s,a.margin)+'"/>',h='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+('viewBox="0 0 '+l)+" "+l+'" shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof r&&r(null,h),h}},59472: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),c=n.margin*a,l=[n.color.light,n.color.dark];for(let t=0;t<s;t++)for(let r=0;r<s;r++){let u=(t*s+r)*4,d=n.color.light;t>=c&&r>
32=c&&t<s-c&&r<s-c&&(d=l[o[Math.floor((t-c)/a)*i+Math.floor((r-c)/a)]?1:0]),e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},61179:function(e,t,r){"use strict";let n=r(29276),i=r(56368),o=r(76442),a=r(24816),s=e=>null==e,c=Symbol("encodeFragmentIdentifier");function l(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function u(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function d(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 f(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 g(e,t){l((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&&d(r,e).includes(e.arrayFormatSeparator);r=o?d(r,e):r;let a=i||o?r.split(e.arrayFormatSeparator).map(t=>d(t,e)):null===r?r:d(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{let i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i){n[t]=r?d(r,e):r;return}let o=null===r?[]:r.split(e.arrayFormatSeparator).map(t=>d(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:d(a,t),r(d(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=f,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";l((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,[u(t,e),"[",i,"]"].join("")]:[...r,[u(t,e),"[",u(i,e),"]=",u(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[u(t,e),"[]"].join("")]:[...r,[u(t,e),"[]=",u(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,[u(t,e),":list="].join("")]:[...r,[u(t,e),":list=",u(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)?[[u(r,e),t,u(i,e)].join("")]:[[n,u(i,e)].join(e.arrayFormatSeparator)]}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,u(t,e)]:[...r,[u(t,e),"=",u(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?u(r,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?u(r,t)+"[]":i.reduce(n(r),[]).join("&"):u(r,t)+"="+u(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>
32{t=Object.assign({decode:!0},t);let[r,n]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:g(f(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:d(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[c]:!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[c]?u(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${a}${s}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[c]:!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)}},57963:function(e){"use strict";function t(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}e.exports=function(e,r,n){var i=n&&n.stringify||t;if("object"==typeof e&&null!==e){var o=r.length+1;if(1===o)return e;var a=Array(o);a[0]=i(e);for(var s=1;s<o;s++)a[s]=i(r[s]);return a.join(" ")}if("string"!=typeof e)return e;var c=r.length;if(0===c)return e;for(var l="",u=0,d=-1,h=e&&e.length||0,f=0;f<h;){if(37===e.charCodeAt(f)&&f+1<h){switch(d=d>-1?d:0,e.charCodeAt(f+1)){case 100:case 102:if(u>=c||null==r[u])break;d<f&&(l+=e.slice(d,f)),l+=Number(r[u]),d=f+2,f++;break;case 105:if(u>=c||null==r[u])break;d<f&&(l+=e.slice(d,f)),l+=Math.floor(Number(r[u])),d=f+2,f++;break;case 79:case 111:case 106:if(u>=c||void 0===r[u])break;d<f&&(l+=e.slice(d,f));var p=typeof r[u];if("string"===p){l+="'"+r[u]+"'",d=f+2,f++;break}if("function"===p){l+=r[u].name||"<anonymous>",d=f+2,f++;break}l+=i(r[u]),d=f+2,f++;break;case 115:if(u>=c)break;d<f&&(l+=e.slice(d,f)),l+=String(r[u]),d=f+2,f++;break;case 37:d<f&&(l+=e.slice(d,f)),l+="%",d=f+2,f++,u--}++u}++f}return -1===d?e:(d<h&&(l+=e.slice(d)),l)}},76442: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)]}},29276:function(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},64671:function(e){e.exports={style:{fontFamily:"'__Inter_36bd41', '__Inter_Fallback_36bd41'",fontStyle:"normal"},className:"__className_36bd41"}},78227:function(e,t,r){"use strict";let n=r(57963);e.exports=o;let i=function(){function e(e){return void 0!==e&&e}try{if("undefined"!=typeof globalThis)return globalThis;return Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}().console||{};function o(e){var t,r;(e=e||{}).browser=e.browser||{};let n=e.browser.transmit;if(n&&"function"!=typeof n.send)throw Error("pino: transmit option must have a send function");let u=e.browser.write||i;e.browser.write&&(e.browser.asObject=!0);let d=e.serializers||{},g=Array.isArray(t=e.browser.serialize)?t.filter(function(e){return"!stdSerializers.err"!==e}):!0===t&&Object.keys(d),m=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(m=!1),"function"==typeof u&&(u.error=u.fatal=u.warn=u.info=u.debug=u.trace=u),!1===e.enabled&&(e.level="silent");let w=e.level||"info",b=Object.create(u);b.log||(b.log=h),Object.defineProperty(b,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(b,"level",{get:function(){return this._level},set:function(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,a(v,b,"error","log"),a(v,b,"fatal","error"),a(v,b,"warn","error"),a(v,b,"info","log"),a(v,b,"debug","log"),a(v,b,"trace","log")}});let v={transmit:n,serialize:g,asObject:e.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:"function"==typeof(r=e).timestamp?r.timestamp:!1===r.timestamp?f:p};return b.levels=o.levels,b.level=w,b.setMaxListeners=b.getMaxListeners=b.emit=b.addListener=b.on=b.prependListener=b.once=b.prepe
32ndOnceListener=b.removeListener=b.removeAllListeners=b.listeners=b.listenerCount=b.eventNames=b.write=b.flush=h,b.serializers=d,b._serialize=g,b._stdErrSerialize=m,b.child=function(t,r){if(!t)throw Error("missing bindings for child Pino");r=r||{},g&&t.serializers&&(r.serializers=t.serializers);let i=r.serializers;if(g&&i){var o=Object.assign({},d,i),a=!0===e.browser.serialize?Object.keys(o):g;delete t.serializers,s([t],a,o,this._stdErrSerialize)}function u(e){this._childLevel=(0|e._childLevel)+1,this.error=c(e,t,"error"),this.fatal=c(e,t,"fatal"),this.warn=c(e,t,"warn"),this.info=c(e,t,"info"),this.debug=c(e,t,"debug"),this.trace=c(e,t,"trace"),o&&(this.serializers=o,this._serialize=a),n&&(this._logEvent=l([].concat(e._logEvent.bindings,t)))}return u.prototype=this,new u(this)},n&&(b._logEvent=l()),b}function a(e,t,r,a){let c=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?h:c[r]?c[r]:i[r]||i[a]||h,function(e,t,r){if(e.transmit||t[r]!==h){var a;t[r]=(a=t[r],function(){let c=e.timestamp(),u=Array(arguments.length),d=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var h=0;h<u.length;h++)u[h]=arguments[h];if(e.serialize&&!e.asObject&&s(u,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?a.call(d,function(e,t,r,i){e._serialize&&s(r,e._serialize,e.serializers,e._stdErrSerialize);let a=r.slice(),c=a[0],l={};i&&(l.time=i),l.level=o.levels.values[t];let u=(0|e._childLevel)+1;if(u<1&&(u=1),null!==c&&"object"==typeof c){for(;u--&&"object"==typeof a[0];)Object.assign(l,a.shift());c=a.length?n(a.shift(),a):void 0}else"string"==typeof c&&(c=n(a.shift(),a));return void 0!==c&&(l.msg=c),l}(this,r,u,c)):a.apply(d,u),e.transmit){let n=e.transmit.level||t.level,i=o.levels.values[n],a=o.levels.values[r];if(a<i)return;(function(e,t,r){let n=t.send,i=t.ts,o=t.methodLevel,a=t.methodValue,c=t.val,u=e._logEvent.bindings;s(r,e._serialize||Object.keys(e.serializers),e.serializers,void 0===e._stdErrSerialize||e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=r.filter(function(e){return -1===u.indexOf(e)}),e._logEvent.level.label=o,e._logEvent.level.value=a,n(o,e._logEvent,c),e._logEvent=l(u)})(this,{ts:c,methodLevel:r,methodValue:a,transmitLevel:n,transmitValue:o.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},u)}})}}(e,t,r)}function s(e,t,r,n){for(let i in e)if(n&&e[i]instanceof Error)e[i]=o.stdSerializers.err(e[i]);else if("object"==typeof e[i]&&!Array.isArray(e[i]))for(let n in e[i])t&&t.indexOf(n)>-1&&n in r&&(e[i][n]=r[n](e[i][n]))}function c(e,t,r){return function(){let n=Array(1+arguments.length);n[0]=t;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return e[r].apply(this,n)}}function l(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function u(){return{}}function d(e){return e}function h(){}function f(){return!1}function p(){return Date.now()}o.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},o.stdSerializers={mapHttpRequest:u,mapHttpResponse:u,wrapRequestSerializer:d,wrapResponseSerializer:d,wrapErrorSerializer:d,req:u,res:u,err:function(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)void 0===t[r]&&(t[r]=e[r]);return t}},o.stdTimeFunctions=Object.assign({},{nullTime:f,epochTime:p,unixTime:function(){return Math.round(Date.now()/1e3)},isoTime:function(){return new Date(Date.now()).toISOString()}})},91678:function(e,t,r){"use strict";r.d(t,{FF:function(){return k},S5:function(){return m},Wd:function(){return v},_t:function(){return o},bytesToNumberBE:function(){return f},ci:function(){return c},dQ:function(){return y},eV:function(){return b},gk:function(){return a},hexToBytes:function(){return h},n$:function(){return A},ql:function(){return w},tL:function(){return g},ty:function(){return p}}),BigInt(0);let n=BigInt(1),i=BigInt(2);function o(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function a(e){if(!o(e))throw Error("Uint8Array expected")}let s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function c(e){a(e);let t="";for(let r=0;r<e.length;r++)t+=s[e[r]];return t}function l(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}let u={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function d(e){return e>=u._0&&e<=u._9?e-u._0:e>=u._A&&e<=u._F?e-(u._A-10):e>=u._a&&e<=u._f?e-(u._a-10):void 0}function h(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){let r=d(e.charCodeAt(i)),o=d(e.charCodeAt(i+1));if(void 0===r||void 0===o)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*r+o}return n}function f(e){return l(c(e))}function p(e){return a(e),l(c(Uint8Array.from(e).reverse()))}function g(e,t){return h(e.toString(16).padStart(2*t,"0"))}function m(e,t){return g(e,t).reverse()}function w(e,t,r){let n;if("string"==typeof t)try{n=h(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(o(t))n=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let i=n.length;if("number"==typeof r&&i!==r)throw Error(`${e} expected ${r} bytes, got ${i}`);return n}function b(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];a(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}function v(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r}let y=e=>(i<<BigInt(e-1))-n,C=e=>
32new Uint8Array(e),x=e=>Uint8Array.from(e);function A(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=C(e),i=C(e),o=0,a=()=>{n.fill(1),i.fill(0),o=0},s=(...e)=>r(i,n,...e),c=(e=C())=>{i=s(x([0]),e),n=s(),0!==e.length&&(i=s(x([1]),e),n=s())},l=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(n=s()).slice();r.push(t),e+=n.length}return b(...r)};return(e,t)=>{let r;for(a(),c(e);!(r=t(l()));)c();return a(),r}}let E={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||o(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function k(e,t,r={}){let n=(t,r,n)=>{let i=E[r];if("function"!=typeof i)throw Error(`Invalid validator "${r}", expected function`);let o=e[t];if((!n||void 0!==o)&&!i(o,e))throw Error(`Invalid param ${String(t)}=${o} (${typeof o}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}},26335:function(e,t,r){"use strict";r.d(t,{secp256k1:function(){return U}});var n=r(80543),i=r(91678);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let o=BigInt(0),a=BigInt(1),s=BigInt(2),c=BigInt(3),l=BigInt(4),u=BigInt(5),d=BigInt(8);function h(e,t){let r=e%t;return r>=o?r:t+r}function f(e,t,r){let n=e;for(;t-- >o;)n*=n,n%=r;return n}function p(e,t){if(e===o||t<=o)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=h(e,t),n=t,i=o,s=a,c=a,l=o;for(;r!==o;){let e=n/r,t=n%r,o=i-c*e,a=s-l*e;n=r,r=t,i=c,s=l,c=o,l=a}if(n!==a)throw Error("invert: does not exist");return h(i,t)}BigInt(9),BigInt(16);let g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function m(e,t){let r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function w(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function b(e){let t=w(e);return t+Math.ceil(t/2)}var v=r(65376),y=r(68104);class C extends y.kb{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,v.vp)(e);let r=(0,y.O0)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,i=new Uint8Array(n);i.set(r.length>n?e.create().update(r).digest():r);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),i.fill(0)}update(e){return(0,v.Gg)(this),this.iHash.update(e),this}digestInto(e){(0,v.Gg)(this),(0,v.aI)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:o,outputLen:a}=this;return e.finished=n,e.destroyed=i,e.blockLen=o,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let x=(e,t,r)=>new C(e,t).update(r).digest();x.create=(e,t)=>new C(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let A=BigInt(0),E=BigInt(1);function k(e){return!function(e){let t=g.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});(0,i.FF)(e,t)}(e.Fp),(0,i.FF)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...m(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}let{bytesToNumberBE:_,hexToBytes:S}
32=i,T={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:t}=T;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");let r=e[1],n=e.subarray(2,r+2);if(!r||n.length!==r)throw new t("Invalid signature integer: wrong length");if(128&n[0])throw new t("Invalid signature integer: negative");if(0===n[0]&&!(128&n[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:_(n),l:e.subarray(r+2)}},toSig(e){let{Err:t}=T,r="string"==typeof e?S(e):e;i.gk(r);let n=r.length;if(n<2||48!=r[0])throw new t("Invalid signature tag");if(r[1]!==n-2)throw new t("Invalid signature: incorrect length");let{d:o,l:a}=T._parseInt(r.subarray(2)),{d:s,l:c}=T._parseInt(a);if(c.length)throw new t("Invalid signature: left bytes after parsing");return{r:o,s}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),i=t(r(e.r)),o=n.length/2,a=i.length/2,s=r(o),c=r(a);return`30${r(a+o+4)}02${c}${i}02${s}${n}`}},I=BigInt(0),R=BigInt(1),O=(BigInt(2),BigInt(3));BigInt(4);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let P=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),M=BigInt(1),D=BigInt(2),B=(e,t)=>(e+t/D)/t,$=function(e,t,r=!1,n={}){if(e<=o)throw Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:f,nByteLength:g}=m(e,t);if(g>2048)throw Error("Field lengths over 2048 bytes are not supported");let w=function(e){if(e%l===c){let t=(e+a)/l;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}if(e%d===u){let t=(e-u)/d;return function(e,r){let n=e.mul(r,s),i=e.pow(n,t),o=e.mul(r,i),a=e.mul(e.mul(o,s),i),c=e.mul(o,e.sub(a,e.ONE));if(!e.eql(e.sqr(c),r))throw Error("Cannot find square root");return c}}return function(e){let t,r,n;let i=(e-a)/s;for(t=e-a,r=0;t%s===o;t/=s,r++);for(n=s;n<e&&function(e,t,r){if(r<=o||t<o)throw Error("Expected power/modulo > 0");if(r===a)return o;let n=a;for(;t>o;)t&a&&(n=n*e%r),e=e*e%r,t>>=a;return n}(n,i,e)!==e-a;n++);if(1===r){let t=(e+a)/l;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}let c=(t+a)/s;return function(e,o){if(e.pow(o,i)===e.neg(e.ONE))throw Error("Cannot find square root");let s=r,l=e.pow(e.mul(e.ONE,n),t),u=e.pow(o,c),d=e.pow(o,t);for(;!e.eql(d,e.ONE);){if(e.eql(d,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(d);t<s&&!e.eql(r,e.ONE);t++)r=e.sqr(r);let r=e.pow(l,a<<BigInt(s-t-1));l=e.sqr(r),u=e.mul(u,r),d=e.mul(d,l),s=t}return u}}(e)}(e),b=Object.freeze({ORDER:e,BITS:f,BYTES:g,MASK:(0,i.dQ)(f),ZERO:o,ONE:a,create:t=>h(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return o<=t&&t<e},is0:e=>e===o,isOdd:e=>(e&a)===a,neg:t=>h(-t,e),eql:(e,t)=>e===t,sqr:t=>h(t*t,e),add:(t,r)=>h(t+r,e),sub:(t,r)=>h(t-r,e),mul:(t,r)=>h(t*r,e),pow:(e,t)=>(function(e,t,r){if(r<o)throw Error("Expected power > 0");if(r===o)return e.ONE;if(r===a)return t;let n=e.ONE,i=t;for(;r>o;)r&a&&(n=e.mul(n,i)),i=e.sqr(i),r>>=a;return n})(b,e,t),div:(t,r)=>h(t*p(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>p(t,e),sqrt:n.sqrt||(e=>w(b,e)),invertBatch:e=>(function(e,t){let r=Array(t.length),n=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),i=e.inv(n);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),i),r})(b,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,i.S5)(e,g):(0,i.tL)(e,g),fromBytes:e=>{if(e.length!==g)throw Error(`Fp.fromBytes: expected ${g}, got ${e.length}`);return r?(0,i.ty)(e):(0,i.bytesToNumberBE)(e)}});return Object.freeze(b)}(P,void 0,void 0,{sqrt:function(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),i=BigInt(22),o=BigInt(23),a=BigInt(44),s=BigInt(88),c=e*e*e%P,l=c*c*e%P,u=f(l,t,P)*l%P,d=f(u,t,P)*l%P,h=f(d,D,P)*c%P,p=f(h,n,P)*h%P,g=f(p,i,P)*p%P,m=f(g,a,P)*g%P,w=f(m,s,P)*m%P,b=f(w,a,P)*g%P,v=f(b,t,P)*l%P,y=f(v,o,P)*p%P,C=f(y,r,P)*c%P,x=f(C,D,P);if(!$.eql($.sqr(x),e))throw Error("Cannot find square root");return x}}),U=function(e,t){let r=t=>(function(e){let t=function(e){let t=k(e);return i.FF(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:r,n:n}=t,o=r.BYTES+1,s=2*r.BYTES+1;function c(e){return h(e,n)}let{ProjectivePoint:l,normPrivateKeyToScalar:u,weierstrassEquation:d,isWithinCurveOrder:f}=function(e){let t=/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function(e){let t=k(e);i.FF(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:n,a:o}=t;if(r){if(!n.eql(o,n.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,n=t.toBytes||((e,t,n)=>{let o=t.toAffine();return i.eV(Uint8Array.from([4]),r.toBytes(o.x),r.toBytes(o.y))}),o=t.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function a(e){let{a:n,b:i}
32=t,o=r.sqr(e),a=r.mul(o,e);return r.add(r.add(a,r.mul(e,n)),i)}if(!r.eql(r.sqr(t.Gy),a(t.Gx)))throw Error("bad generator point: equation left != right");function s(e){return"bigint"==typeof e&&I<e&&e<t.n}function c(e){if(!s(e))throw Error("Expected valid bigint: 0 < bigint < curve.n")}function l(e){let r;let{allowedPrivateKeyLengths:n,nByteLength:o,wrapPrivateKey:a,n:s}=t;if(n&&"bigint"!=typeof e){if(i._t(e)&&(e=i.ci(e)),"string"!=typeof e||!n.includes(e.length))throw Error("Invalid key");e=e.padStart(2*o,"0")}try{r="bigint"==typeof e?e:i.bytesToNumberBE((0,i.ql)("private key",e,o))}catch(t){throw Error(`private key must be ${o} bytes, hex or bigint, not ${typeof e}`)}return a&&(r=h(r,s)),c(r),r}let u=new Map;function d(e){if(!(e instanceof f))throw Error("ProjectivePoint expected")}class f{constructor(e,t,n){if(this.px=e,this.py=t,this.pz=n,null==e||!r.isValid(e))throw Error("x required");if(null==t||!r.isValid(t))throw Error("y required");if(null==n||!r.isValid(n))throw Error("z required")}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error("invalid affine point");if(e instanceof f)throw Error("projective point not allowed");let i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?f.ZERO:new f(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(f.fromAffine)}static fromHex(e){let t=f.fromAffine(o((0,i.ql)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return f.BASE.multiply(l(e))}_setWindowSize(e){this._WINDOW_SIZE=e,u.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw Error("bad point: ZERO")}let{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw Error("bad point: x or y not FE");let i=r.sqr(n),o=a(e);if(!r.eql(i,o))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){d(e);let{px:t,py:n,pz:i}=this,{px:o,py:a,pz:s}=e,c=r.eql(r.mul(t,s),r.mul(o,i)),l=r.eql(r.mul(n,s),r.mul(a,i));return c&&l}negate(){return new f(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,i=r.mul(n,O),{px:o,py:a,pz:s}=this,c=r.ZERO,l=r.ZERO,u=r.ZERO,d=r.mul(o,o),h=r.mul(a,a),p=r.mul(s,s),g=r.mul(o,a);return g=r.add(g,g),u=r.mul(o,s),u=r.add(u,u),c=r.mul(e,u),l=r.mul(i,p),l=r.add(c,l),c=r.sub(h,l),l=r.add(h,l),l=r.mul(c,l),c=r.mul(g,c),u=r.mul(i,u),p=r.mul(e,p),g=r.sub(d,p),g=r.mul(e,g),g=r.add(g,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,p),d=r.mul(d,g),l=r.add(l,d),p=r.mul(a,s),p=r.add(p,p),d=r.mul(p,g),c=r.sub(c,d),u=r.mul(p,h),u=r.add(u,u),new f(c,l,u=r.add(u,u))}add(e){d(e);let{px:n,py:i,pz:o}=this,{px:a,py:s,pz:c}=e,l=r.ZERO,u=r.ZERO,h=r.ZERO,p=t.a,g=r.mul(t.b,O),m=r.mul(n,a),w=r.mul(i,s),b=r.mul(o,c),v=r.add(n,i),y=r.add(a,s);v=r.mul(v,y),y=r.add(m,w),v=r.sub(v,y),y=r.add(n,o);let C=r.add(a,c);return y=r.mul(y,C),C=r.add(m,b),y=r.sub(y,C),C=r.add(i,o),l=r.add(s,c),C=r.mul(C,l),l=r.add(w,b),C=r.sub(C,l),h=r.mul(p,y),l=r.mul(g,b),h=r.add(l,h),l=r.sub(w,h),h=r.add(w,h),u=r.mul(l,h),w=r.add(m,m),w=r.add(w,m),b=r.mul(p,b),y=r.mul(g,y),w=r.add(w,b),b=r.sub(m,b),b=r.mul(p,b),y=r.add(y,b),m=r.mul(w,y),u=r.add(u,m),m=r.mul(C,y),l=r.mul(v,l),l=r.sub(l,m),m=r.mul(v,w),h=r.mul(C,h),new f(l,u,h=r.add(h,m))}subtract(e){return this.add(e.negate())}is0(){return this.equals(f.ZERO)}wNAF(e){return g.wNAFCached(this,u,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(f.fromAffine)})}multiplyUnsafe(e){let n=f.ZERO;if(e===I)return n;if(c(e),e===R)return this;let{endo:i}=t;if(!i)return g.unsafeLadder(this,e);let{k1neg:o,k1:a,k2neg:s,k2:l}=i.splitScalar(e),u=n,d=n,h=this;for(;a>I||l>I;)a&R&&(u=u.add(h)),l&R&&(d=d.add(h)),h=h.double(),a>>=R,l>>=R;return o&&(u=u.negate()),s&&(d=d.negate()),d=new f(r.mul(d.px,i.beta),d.py,d.pz),u.add(d)}multiply(e){let n,i;c(e);let{endo:o}=t;if(o){let{k1neg:t,k1:a,k2neg:s,k2:c}=o.splitScalar(e),{p:l,f:u}=this.wNAF(a),{p:d,f:h}=this.wNAF(c);l=g.constTimeNegate(t,l),d=g.constTimeNegate(s,d),d=new f(r.mul(d.px,o.beta),d.py,d.pz),n=l.add(d),i=u.add(h)}else{let{p:t,f:r}=this.wNAF(e);n=t,i=r}return f.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(e,t,r){let n=f.BASE,i=(e,t)=>t!==I&&t!==R&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,r));return o.is0()?void 0:o}toAffine(e){let{px:t,py:n,pz:i}=this,o=this.is0();null==e&&(e=o?r.ONE:r.inv(i));
32let a=r.mul(t,e),s=r.mul(n,e),c=r.mul(i,e);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw Error("invZ was invalid");return{x:a,y:s}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===R)return!0;if(r)return r(f,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===R?this:r?r(f,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),n(f,this,e)}toHex(e=!0){return i.ci(this.toRawBytes(e))}}f.BASE=new f(t.Gx,t.Gy,r.ONE),f.ZERO=new f(r.ZERO,r.ONE,r.ZERO);let p=t.nBitLength,g=function(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,i=t;for(;r>A;)r&E&&(n=n.add(i)),i=i.double(),r>>=E;return n},precomputeWindow(e,t){let{windows:r,windowSize:i}=n(t),o=[],a=e,s=a;for(let e=0;e<r;e++){s=a,o.push(s);for(let e=1;e<i;e++)s=s.add(a),o.push(s);a=s.double()}return o},wNAF(t,i,o){let{windows:a,windowSize:s}=n(t),c=e.ZERO,l=e.BASE,u=BigInt(2**t-1),d=2**t,h=BigInt(t);for(let e=0;e<a;e++){let t=e*s,n=Number(o&u);o>>=h,n>s&&(n-=d,o+=E);let a=t+Math.abs(n)-1,f=e%2!=0,p=n<0;0===n?l=l.add(r(f,i[t])):c=c.add(r(p,i[a]))}return{p:c,f:l}},wNAFCached(e,t,r,n){let i=e._WINDOW_SIZE||1,o=t.get(e);return o||(o=this.precomputeWindow(e,i),1!==i&&t.set(e,n(o))),this.wNAF(i,o,r)}}}(f,t.endo?Math.ceil(p/2):p);return{CURVE:t,ProjectivePoint:f,normPrivateKeyToScalar:l,weierstrassEquation:a,isWithinCurveOrder:s}}({...t,toBytes(e,t,n){let o=t.toAffine(),a=r.toBytes(o.x),s=i.eV;return n?s(Uint8Array.from([t.hasEvenY()?2:3]),a):s(Uint8Array.from([4]),a,r.toBytes(o.y))},fromBytes(e){let t=e.length,n=e[0],a=e.subarray(1);if(t===o&&(2===n||3===n)){let e;let t=i.bytesToNumberBE(a);if(!(I<t&&t<r.ORDER))throw Error("Point is not on curve");let o=d(t);try{e=r.sqrt(o)}catch(e){throw Error("Point is not on curve"+(e instanceof Error?": "+e.message:""))}return(1&n)==1!=((e&R)===R)&&(e=r.neg(e)),{x:t,y:e}}if(t===s&&4===n)return{x:r.fromBytes(a.subarray(0,r.BYTES)),y:r.fromBytes(a.subarray(r.BYTES,2*r.BYTES))};throw Error(`Point of length ${t} was invalid. Expected ${o} compressed bytes or ${s} uncompressed bytes`)}}),g=e=>i.ci(i.tL(e,t.nByteLength)),m=(e,t,r)=>i.bytesToNumberBE(e.slice(t,r));class v{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let r=t.nByteLength;return new v(m(e=(0,i.ql)("compactSignature",e,2*r),0,r),m(e,r,2*r))}static fromDER(e){let{r:t,s:r}=T.toSig((0,i.ql)("DER",e));return new v(t,r)}assertValidity(){if(!f(this.r))throw Error("r must be 0 < r < CURVE.n");if(!f(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new v(this.r,this.s,e)}recoverPublicKey(e){let{r:o,s:a,recovery:s}=this,u=x((0,i.ql)("msgHash",e));if(null==s||![0,1,2,3].includes(s))throw Error("recovery id invalid");let d=2===s||3===s?o+t.n:o;if(d>=r.ORDER)throw Error("recovery id 2 or 3 invalid");let h=(1&s)==0?"02":"03",f=l.fromHex(h+g(d)),m=p(d,n),w=c(-u*m),b=c(a*m),v=l.BASE.multiplyAndAddUnsafe(f,w,b);if(!v)throw Error("point at infinify");return v.assertValidity(),v}hasHighS(){return this.s>n>>R}normalizeS(){return this.hasHighS()?new v(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return T.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return g(this.r)+g(this.s)}}function y(e){let t=i._t(e),r="string"==typeof e,n=(t||r)&&e.length;return t?n===o||n===s:r?n===2*o||n===2*s:e instanceof l}let C=t.bits2int||function(e){let r=i.bytesToNumberBE(e),n=8*e.length-t.nBitLength;return n>0?r>>BigInt(n):r},x=t.bits2int_modN||function(e){return c(C(e))},_=i.dQ(t.nBitLength);function S(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(I<=e&&e<_))throw Error(`bigint expected < 2^${t.nBitLength}`);return i.tL(e,t.nByteLength)}let P={lowS:t.lowS,prehash:!1},N={lowS:t.lowS,prehash:!1};return l.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return l.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(y(e))throw Error("first arg must be private key");if(!y(t))throw Error("second arg must be public key");return l.fromHex(t).multiply(u(e)).toRawBytes(r)},sign:function(e,o,a=P){let{seed:s,k2sig:d}=function(e,o,a=P){if(["recovered","canonical"].some(e=>e in a))throw Error("sign() legacy options not supported");let{hash:s,randomBytes:d}=t,{lowS:h,prehash:g,extraEntropy:m}=a;null==h&&(h=!0),e=(0,i.ql)("msgHash",e),g&&(e=(0,i.ql)("prehashed msgHash",s(e)));let w=x(e),b=u(o),y=[S(b),S(w)];if(null!=m&&!1!==m){let e=!0===m?d(r.BYTES):m;y.push((0,i.ql)("extraEntropy",e))}return{seed:i.eV(...y),k2sig:function(e){let t=C(e);if(!f(t))return;let r=p(t,n),i=l.BASE.multiply(t).toAffine(),o=c(i.x);if(o===I)return;let a=c(r*c(w+o*b));if(a===I)return;let s=(i.x===o?0:2)|Number(i.y&R),u=a;if(h&&a>n>>R)u=a>n>>R?c(-a):a,s^=1;return new v(o,u,s)}}}(e,o,a);return i.n$(t.hash.outputLen,t.nByteLength,t.hmac)(s,d)},verify:function(e,r,o,a=N){let s,u;if(r=(0,i.ql)("msgHash",r),o=(0,i.ql)("publicKey",o),"strict"in a)throw Error("options.strict was renamed to lowS");let{lowS:d,prehash:h}=a;try{if("string"==typeof e||i._t(e))try{u=v.fromDER(e)}catch(t){if(!(t instanceof T.Err))throw t;u=v.fromCompact(e)}else if("object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s){let{r:t,s:r}=e;u=new v(t,r)}else throw Error("PARSE");s=l.fromHex(o)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(d&&u.hasHighS())return!1;h&&(r=t.hash(r));let{r:f,s:g}=u,m=x(r),w=p(g,n),b=c(m*w),y=c(f*w),C=l.BASE.multiplyAndAddUnsafe(s,b,y)?.toAffine();
32return!!C&&c(C.x)===f},ProjectivePoint:l,Signature:v,utils:{isValidPrivateKey(e){try{return u(e),!0}catch(e){return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{let e=b(t.n);return function(e,t,r=!1){let n=e.length,o=w(t),s=b(t);if(n<16||n<s||n>1024)throw Error(`expected ${s}-1024 bytes of input, got ${n}`);let c=h(r?(0,i.bytesToNumberBE)(e):(0,i.ty)(e),t-a)+a;return r?(0,i.S5)(c,o):(0,i.tL)(c,o)}(t.randomBytes(e),t.n)},precompute:(e=8,t=l.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}})({...e,hash:t,hmac:(e,...r)=>x(t,e,(0,y.eV)(...r)),randomBytes:y.O6});return Object.freeze({...r(t),create:r})}({a:BigInt(0),b:BigInt(7),Fp:$,n:N,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-M*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=BigInt("0x100000000000000000000000000000000"),o=B(t*e,N),a=B(-r*e,N),s=h(e-o*t-a*n,N),c=h(-o*r-a*t,N),l=s>i,u=c>i;if(l&&(s=N-s),u&&(c=N-c),s>i||c>i)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:l,k1:s,k2neg:u,k2:c}}}},n.J);BigInt(0),U.ProjectivePoint},65376:function(e,t,r){"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function a(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")}function s(e,t){i(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}r.d(t,{Gg:function(){return a},J8:function(){return s},Rx:function(){return n},aI:function(){return i},vp:function(){return o}})},80543:function(e,t,r){"use strict";r.d(t,{J:function(){return h}});var n=r(65376),i=r(68104);let o=(e,t,r)=>e&t^~e&r,a=(e,t,r)=>e&t^e&r^t&r;class s extends i.kb{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.GL)(this.buffer)}update(e){(0,n.Gg)(this);let{view:t,buffer:r,blockLen:o}=this,a=(e=(0,i.O0)(e)).length;for(let n=0;n<a;){let s=Math.min(o-this.pos,a-n);if(s===o){let t=(0,i.GL)(e);for(;o<=a-n;n+=o)this.process(t,n);continue}r.set(e.subarray(n,n+s),this.pos),this.pos+=s,n+=s,this.pos===o&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.Gg)(this),(0,n.J8)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:o,isLE:a}=this,{pos:s}=this;t[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>o-s&&(this.process(r,0),s=0);for(let e=s;e<o;e++)t[e]=0;!function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),o=BigInt(4294967295),a=Number(r>>i&o),s=Number(r&o),c=n?4:0,l=n?0:4;e.setUint32(t+c,a,n),e.setUint32(t+l,s,n)}(r,o-8,BigInt(8*this.length),a),this.process(r,0);let c=(0,i.GL)(e),l=this.outputLen;if(l%4)throw Error("_sha2: outputLen should be aligned to 32bit");let u=l/4,d=this.get();if(u>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)c.setUint32(4*e,d[e],a)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:i,destroyed:o,pos:a}=this;return e.length=n,e.pos=a,e.finished=i,e.destroyed=o,n%t&&e.buffer.set(r),e}}let c=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
32734187,3204031479,3329325298]),l=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=new Uint32Array(64);class d extends s{constructor(){super(64,32,8,!1),this.A=0|l[0],this.B=0|l[1],this.C=0|l[2],this.D=0|l[3],this.E=0|l[4],this.F=0|l[5],this.G=0|l[6],this.H=0|l[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}set(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)u[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=u[e-15],r=u[e-2],n=(0,i.np)(t,7)^(0,i.np)(t,18)^t>>>3,o=(0,i.np)(r,17)^(0,i.np)(r,19)^r>>>10;u[e]=o+u[e-7]+n+u[e-16]|0}let{A:r,B:n,C:s,D:l,E:d,F:h,G:f,H:p}=this;for(let e=0;e<64;e++){let t=p+((0,i.np)(d,6)^(0,i.np)(d,11)^(0,i.np)(d,25))+o(d,h,f)+c[e]+u[e]|0,g=((0,i.np)(r,2)^(0,i.np)(r,13)^(0,i.np)(r,22))+a(r,n,s)|0;p=f,f=h,h=d,d=l+t|0,l=s,s=n,n=r,r=t+g|0}r=r+this.A|0,n=n+this.B|0,s=s+this.C|0,l=l+this.D|0,d=d+this.E|0,h=h+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(r,n,s,l,d,h,f,p)}roundClean(){u.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let h=(0,i.hE)(()=>new d)},68104:function(e,t,r){"use strict";r.d(t,{kb:function(){return f},l1:function(){return u},eV:function(){return h},GL:function(){return a},iA:function(){return c},O6:function(){return g},np:function(){return s},O0:function(){return d},Jq:function(){return o},hE:function(){return p}});let n="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;var i=r(65376);let o=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),a=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),s=(e,t)=>e<<32-t|e>>>t,c=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],l=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function u(e){for(let t=0;t<e.length;t++)e[t]=l(e[t])}function d(e){return"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)),(0,i.aI)(e),e}function h(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];(0,i.aI)(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}class f{clone(){return this._cloneInto()}}function p(e){let t=t=>e().update(d(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function g(e=32){if(n&&"function"==typeof n.getRandomValues)return n.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}},34939:function(e,t,r){"use strict";r.d(t,{j:function(){return o}});var n=r(49010),i=r(56298),o=new class extends n.l{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}}},50836:function(e,t,r){"use strict";r.d(t,{Gm:function(){return i},Qy:function(){return s},ZF:function(){return c}});var n=r(56298);function i(e){return{onFetch:(t,r)=>{let i=async()=>{let r;let i=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],l=t.state.data?.pageParams||[],u=!1,d=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},h=(0,n.cG)(t.options,t.fetchOptions),f=async(e,r,i)=>{if(u)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);let o={queryKey:t.queryKey,pageParam:r,direction:i?"backward":"forward",meta:t.options.meta};d(o);let a=await h(o),{maxPages:s}=t.options,c=i?n.Ht:n.VX;return{pages:c(e.pages,a,s),pageParams:c(e.pageParams,r,s)}};if(s&&c.length){let e="backward"===s,t={pages:c,pageParams:l},n=(e?a:o)(i,t);
32r=await f(t,n,e)}else{r=await f({pages:[],pageParams:[]},l[0]??i.initialPageParam);let t=e??c.length;for(let e=1;e<t;e++){let e=o(i,r);if(null==e)break;r=await f(r,e)}}return r};t.options.persister?t.fetchFn=()=>t.options.persister?.(i,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=i}}}function o(e,{pages:t,pageParams:r}){let n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function a(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function s(e,t){return!!t&&null!=o(e,t)}function c(e,t){return!!t&&!!e.getPreviousPageParam&&null!=a(e,t)}},92812:function(e,t,r){"use strict";r.d(t,{R:function(){return s},m:function(){return a}});var n=r(69948),i=r(43494),o=r(30924),a=class extends i.F{#n;#i;#o;constructor(e){super(),this.mutationId=e.mutationId,this.#i=e.mutationCache,this.#n=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter(t=>t!==e),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){this.#o=(0,o.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let t="pending"===this.state.status,r=!this.#o.canStart();try{if(!t){this.#a({type:"pending",variables:e,isPaused:r}),await this.#i.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#a({type:"pending",context:t,variables:e,isPaused:r})}let n=await this.#o.start();return await this.#i.config.onSuccess?.(n,e,this.state.context,this),await this.options.onSuccess?.(n,e,this.state.context),await this.#i.config.onSettled?.(n,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(n,null,e,this.state.context),this.#a({type:"success",data:n}),n}catch(t){try{throw await this.#i.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#i.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#a({type:"error",error:t})}}finally{this.#i.runNext(this)}}#a(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"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};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"}}})(this.state),n.V.batch(()=>{this.#n.forEach(t=>{t.onMutationUpdate(e)}),this.#i.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},69948:function(e,t,r){"use strict";r.d(t,{V:function(){return n}});var n=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},i=e=>setTimeout(e,0),o=n=>{t?e.push(n):i(()=>{r(n)})},a=()=>{let t=e;e=[],t.length&&i(()=>{n(()=>{t.forEach(e=>{r(e)})})})};return{batch:e=>{let r;t++;try{r=e()}finally{--t||a()}return r},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{i=e}}}()},49937:function(e,t,r){"use strict";r.d(t,{N:function(){return o}});var n=r(49010),i=r(56298),o=new class extends n.l{#s=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!i.sk&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}
32setOnline(e){this.#s!==e&&(this.#s=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#s}}},2459:function(e,t,r){"use strict";r.d(t,{A:function(){return s},z:function(){return c}});var n=r(56298),i=r(69948),o=r(30924),a=r(43494),s=class extends a.F{#c;#l;#u;#o;#d;#h;constructor(e){super(),this.#h=!1,this.#d=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#u=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#c=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?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#c,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){this.options={...this.#d,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#u.remove(this)}setData(e,t){let r=(0,n.oE)(this.state.data,e,this.options);return this.#a({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(n.ZT).catch(n.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#c)}isActive(){return this.observers.some(e=>!1!==(0,n.Nc)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,n.Kp)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#u.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.#o&&(this.#h?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#u.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#h=!0,r.signal)})},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{let e=(0,n.cG)(this.options,t),r={queryKey:this.queryKey,meta:this.meta};return(i(r),this.#h=!1,this.options.persister)?this.options.persister(e,r,this):e(r)}};i(a),this.options.behavior?.onFetch(a,this),this.#l=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#a({type:"fetch",meta:a.fetchOptions?.meta});let s=e=>{(0,o.DV)(e)&&e.silent||this.#a({type:"error",error:e}),(0,o.DV)(e)||(this.#u.config.onError?.(e,this),this.#u.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#o=(0,o.Mz)({initialPromise:t?.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:e=>{if(void 0===e){s(Error(`${this.queryHash} data is undefined`));return}this.setData(e),this.#u.config.onSuccess?.(e,this),this.#u.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#o.start()}#a(e){this.state=(t=>{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,...c(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=e.error;if((0,o.DV)(r)&&r.revert&&this.#l)return{...this.#l,fetchStatus:"idle"};
32return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.V.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#u.notify({query:this,type:"updated",action:e})})}};function c(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,o.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},58421:function(e,t,r){"use strict";r.d(t,{S:function(){return p}});var n=r(56298),i=r(2459),o=r(69948),a=r(49010),s=class extends a.l{constructor(e={}){super(),this.config=e,this.#f=new Map}#f;build(e,t,r){let o=t.queryKey,a=t.queryHash??(0,n.Rm)(o,t),s=this.get(a);return s||(s=new i.A({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}add(e){this.#f.has(e.queryHash)||(this.#f.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#f.get(e.queryHash);t&&(e.destroy(),t===e&&this.#f.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){o.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#f.get(e)}getAll(){return[...this.#f.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,n._x)(e,t)):t}notify(e){o.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},c=r(92812),l=class extends a.l{constructor(e={}){super(),this.config=e,this.#p=new Map,this.#g=Date.now()}#p;#g;build(e,t,r){let n=new c.m({mutationCache:this,mutationId:++this.#g,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){let t=u(e),r=this.#p.get(t)??[];r.push(e),this.#p.set(t,r),this.notify({type:"added",mutation:e})}remove(e){let t=u(e);if(this.#p.has(t)){let r=this.#p.get(t)?.filter(t=>t!==e);r&&(0===r.length?this.#p.delete(t):this.#p.set(t,r))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#p.get(u(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#p.get(u(e))?.find(t=>
32t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){o.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#p.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,n.X7)(e,t))}notify(e){o.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return o.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(n.ZT))))}};function u(e){return e.options.scope?.id??String(e.mutationId)}var d=r(34939),h=r(49937),f=r(50836),p=class{#m;#i;#d;#w;#b;#v;#y;#C;constructor(e={}){this.#m=e.queryCache||new s,this.#i=e.mutationCache||new l,this.#d=e.defaultOptions||{},this.#w=new Map,this.#b=new Map,this.#v=0}mount(){this.#v++,1===this.#v&&(this.#y=d.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#m.onFocus())}),this.#C=h.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#m.onOnline())}))}unmount(){this.#v--,0===this.#v&&(this.#y?.(),this.#y=void 0,this.#C?.(),this.#C=void 0)}isFetching(e){return this.#m.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#i.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#m.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let r=this.defaultQueryOptions(e),i=this.#m.build(this,r);return e.revalidateIfStale&&i.isStaleByTime((0,n.KC)(r.staleTime,i))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return this.#m.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let i=this.defaultQueryOptions({queryKey:e}),o=this.#m.get(i.queryHash),a=o?.state.data,s=(0,n.SE)(t,a);if(void 0!==s)return this.#m.build(this,i).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return o.V.batch(()=>this.#m.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#m.get(t.queryHash)?.state}removeQueries(e){let t=this.#m;o.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#m,n={type:"active",...e};return o.V.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){let r={revert:!0,...t};return Promise.all(o.V.batch(()=>this.#m.findAll(e).map(e=>e.cancel(r)))).then(n.ZT).catch(n.ZT)}invalidateQueries(e={},t={}){return o.V.batch(()=>{if(this.#m.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){let r={...t,cancelRefetch:t?.cancelRefetch??!0};return Promise.all(o.V.batch(()=>this.#m.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(n.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(n.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#m.build(this,t);return r.isStaleByTime((0,n.KC)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(n.ZT).catch(n.ZT)}fetchInfiniteQuery(e){return e.behavior=(0,f.Gm)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(n.ZT).catch(n.ZT)}resumePausedMutations(){return h.N.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#m}getMutationCache(){return this.#i}getDefaultOptions(){return this.#d}setDefaultOptions(e){this.#d=e}setQueryDefaults(e,t){this.#w.set((0,n.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#w.values()],r={};return t.forEach(t=>{(0,n.to)(e,t.queryKey)&&(r={...r,...t.defaultOptions})}),r}setMutationDefaults(e,t){this.#b.set((0,n.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#b.values()],r={};return t.forEach(t=>{(0,n.to)(e,t.mutationKey)&&(r={...r,...t.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#d.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,n.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===n.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#d.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#m.clear(),this.#i.clear()}}},43494:function(e,t,r){"use strict";r.d(t,{F:function(){return i}});var n=r(56298),i=class{#x;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.PN)(this.gcTime)&&(this.#x=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(n.sk?1/0:3e5))}clearGcTimeout(){this.#x&&(clearTimeout(this.#x),this.#x=void 0)}}},30924:function(e,t,r){"use strict";r.d(t,{DV:function(){return l},Kw:function(){return s},Mz:function(){return u}});var n=r(34939),i=r(49937),o=r(56298);function a(e){return Math.min(1e3*2**e,3e4)}function s(e){return(e??"online")!=="online"||i.N.isOnline()}
32var c=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function l(e){return e instanceof c}function u(e){let t,r,l,u=!1,d=0,h=!1,f=new Promise((e,t)=>{r=e,l=t}),p=()=>n.j.isFocused()&&("always"===e.networkMode||i.N.isOnline())&&e.canRun(),g=()=>s(e.networkMode)&&e.canRun(),m=n=>{h||(h=!0,e.onSuccess?.(n),t?.(),r(n))},w=r=>{h||(h=!0,e.onError?.(r),t?.(),l(r))},b=()=>new Promise(r=>{t=e=>{(h||p())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,h||e.onContinue?.()}),v=()=>{let t;if(h)return;let r=0===d?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch(t=>{if(h)return;let r=e.retry??(o.sk?0:3),n=e.retryDelay??a,i="function"==typeof n?n(d,t):n,s=!0===r||"number"==typeof r&&d<r||"function"==typeof r&&r(d,t);if(u||!s){w(t);return}d++,e.onFail?.(d,t),(0,o._v)(i).then(()=>p()?void 0:b()).then(()=>{u?w(t):v()})})};return{promise:f,cancel:t=>{h||(w(new c(t)),e.abort?.())},continue:()=>(t?.(),f),cancelRetry:()=>{u=!0},continueRetry:()=>{u=!1},canStart:g,start:()=>(g()?v():b().then(v),f)}}},49010:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});var n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},56298:function(e,t,r){"use strict";r.d(t,{CN:function(){return E},Ht:function(){return A},KC:function(){return c},Kp:function(){return s},Nc:function(){return l},PN:function(){return a},Q$:function(){return g},Rm:function(){return h},SE:function(){return o},VS:function(){return m},VX:function(){return x},X7:function(){return d},Ym:function(){return f},ZT:function(){return i},_v:function(){return y},_x:function(){return u},cG:function(){return k},oE:function(){return C},sk:function(){return n},to:function(){return p}});var n="undefined"==typeof window||"Deno"in globalThis;function i(){}function o(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t){return"function"==typeof e?e(t):e}function l(e,t){return"function"==typeof e?e(t):e}function u(e,t){let{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(n){if(t.queryHash!==h(a,t.options))return!1}else if(!p(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)&&(!i||i===t.state.fetchStatus)&&(!o||!!o(t))}function d(e,t){let{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(f(t.options.mutationKey)!==f(o))return!1}else if(!p(t.options.mutationKey,o))return!1}return(!n||t.state.status===n)&&(!i||!!i(t))}function h(e,t){return(t?.queryKeyHashFn||f)(e)}function f(e){return JSON.stringify(e,(e,t)=>b(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!p(e[r],t[r]))}function g(e,t){if(e===t)return e;let r=w(e)&&w(t);if(r||b(e)&&b(t)){let n=r?e:Object.keys(e),i=n.length,o=r?t:Object.keys(t),a=o.length,s=r?[]:{},c=0;for(let i=0;i<a;i++){let a=r?i:o[i];(!r&&n.includes(a)||r)&&void 0===e[a]&&void 0===t[a]?(s[a]=void 0,c++):(s[a]=g(e[a],t[a]),s[a]===e[a]&&void 0!==e[a]&&c++)}return i===a&&c===i?e:s}return t}function m(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function w(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function b(e){if(!v(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(v(r)&&r.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function v(e){return"[object Object]"===Object.prototype.toString.call(e)}function y(e){return new Promise(t=>{setTimeout(t,e)})}function C(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?g(e,t):t}function x(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}function A(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var E=Symbol();function k(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==E?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},93191:function(e,t,r){"use strict";r.d(t,{NL:function(){return a},aH:function(){return s}});var n=r(2265),i=r(57437),o=n.createContext(void 0),a=e=>{let t=n.useContext(o);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},s=e=>{let{client:t,children:r}=e;return n.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(o.Provider,{value:t,children:r})}},25524:function(e,t,r){"use strict";r.d(t,{D:function(){return d}});
32var n=r(2265),i=r(92812),o=r(69948),a=r(49010),s=r(56298),c=class extends a.l{#A;#E=void 0;#k;#_;constructor(e,t){super(),this.#A=e,this.setOptions(t),this.bindMethods(),this.#S()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#A.defaultMutationOptions(e),(0,s.VS)(this.options,t)||this.#A.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#k,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.Ym)(t.mutationKey)!==(0,s.Ym)(this.options.mutationKey)?this.reset():this.#k?.state.status==="pending"&&this.#k.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#k?.removeObserver(this)}onMutationUpdate(e){this.#S(),this.#T(e)}getCurrentResult(){return this.#E}reset(){this.#k?.removeObserver(this),this.#k=void 0,this.#S(),this.#T()}mutate(e,t){return this.#_=t,this.#k?.removeObserver(this),this.#k=this.#A.getMutationCache().build(this.#A,this.options),this.#k.addObserver(this),this.#k.execute(e)}#S(){let e=this.#k?.state??(0,i.R)();this.#E={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#T(e){o.V.batch(()=>{if(this.#_&&this.hasListeners()){let t=this.#E.variables,r=this.#E.context;e?.type==="success"?(this.#_.onSuccess?.(e.data,t,r),this.#_.onSettled?.(e.data,null,t,r)):e?.type==="error"&&(this.#_.onError?.(e.error,t,r),this.#_.onSettled?.(void 0,e.error,t,r))}this.listeners.forEach(e=>{e(this.#E)})})}},l=r(93191),u=r(37832);function d(e,t){let r=(0,l.NL)(t),[i]=n.useState(()=>new c(r,e));n.useEffect(()=>{i.setOptions(e)},[i,e]);let a=n.useSyncExternalStore(n.useCallback(e=>i.subscribe(o.V.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=n.useCallback((e,t)=>{i.mutate(e,t).catch(u.Z)},[i]);if(a.error&&(0,u.L)(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}},37832:function(e,t,r){"use strict";function n(e,t){return"function"==typeof e?e(...t):!!e}function i(){}r.d(t,{L:function(){return n},Z:function(){return i}})},77671:function(e,t,r){"use strict";r.d(t,{$:function(){return i}});var n=r(85770);async function i(e,t){let r;if((r="function"==typeof t.connector?e._internal.connectors.setup(t.connector):t.connector).uid===e.state.current)throw new n.wi;try{e.setState(e=>({...e,status:"connecting"})),r.emitter.emit("message",{type:"connecting"});let n=await r.connect({chainId:t.chainId}),i=n.accounts;return r.emitter.off("connect",e._internal.events.connect),r.emitter.on("change",e._internal.events.change),r.emitter.on("disconnect",e._internal.events.disconnect),await e.storage?.setItem("recentConnectorId",r.id),e.setState(e=>({...e,connections:new Map(e.connections).set(r.uid,{accounts:i,chainId:n.chainId,connector:r}),current:r.uid,status:"connected"})),{accounts:i,chainId:n.chainId}}catch(t){throw e.setState(e=>({...e,status:e.current?"connected":"disconnected"})),t}}},2302:function(e,t,r){"use strict";async function n(e,t={}){let r;if(t.connector)r=t.connector;else{let{connections:t,current:n}=e.state,i=t.get(n);r=i?.connector}let n=e.state.connections;r&&(await r.disconnect(),r.emitter.off("change",e._internal.events.change),r.emitter.off("disconnect",e._internal.events.disconnect),r.emitter.on("connect",e._internal.events.connect),n.delete(r.uid)),e.setState(e=>{if(0===n.size)return{...e,connections:new Map,current:null,status:"disconnected"};let t=n.values().next().value;return{...e,connections:new Map(n),current:t.connector.uid}});{let t=e.state.current;if(!t)return;let r=e.state.connections.get(t)?.connector;if(!r)return;await e.storage?.setItem("recentConnectorId",r.id)}}r.d(t,{z:function(){return n}})},26504:function(e,t,r){"use strict";r.d(t,{Q:function(){return a}});var n=r(60730),i=r(61954),o=r(33281);async function a(e,t){let r;let{chainId:a,connector:s,...c}=t;r=t.account?t.account:(await (0,o.e)(e,{account:t.account,chainId:a,connector:s})).account;let l=e.getClient({chainId:a});return(0,i.s)(l,n.Q,"estimateGas")({...c,account:r})}},79563:function(e,t,r){"use strict";r.d(t,{s:function(){return d}});var n=r(58591),i=r(21019),o=r(77955),a=r(42921),s=r(5106),c=r(61954),l=r(29690),u=r(56872);async function d(e,t){let{address:r,blockNumber:u,blockTag:d,chainId:f,token:p,unit:g="ether"}=t;if(p)try{return h(e,{balanceAddress:r,chainId:f,symbolType:"string",tokenAddress:p})}catch(t){if(t instanceof n.uq){let t=await h(e,{balanceAddress:r,chainId:f,symbolType:"bytes32",tokenAddress:p}),n=(0,i.rR)((0,o.f)(t.symbol,{dir:"right"}));
32return{...t,symbol:n}}throw t}let m=e.getClient({chainId:f}),w=(0,c.s)(m,s.s,"getBalance"),b=await w(u?{address:r,blockNumber:u}:{address:r,blockTag:d}),v=e.chains.find(e=>e.id===f)??m.chain;return{decimals:v.nativeCurrency.decimals,formatted:(0,a.b)(b,(0,l.W)(g)),symbol:v.nativeCurrency.symbol,value:b}}async function h(e,t){let{balanceAddress:r,chainId:n,symbolType:i,tokenAddress:o,unit:s}=t,c={abi:[{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:i}]}],address:o},[d,h,f]=await (0,u.J)(e,{allowFailure:!1,contracts:[{...c,functionName:"balanceOf",args:[r],chainId:n},{...c,functionName:"decimals",chainId:n},{...c,functionName:"symbol",chainId:n}]}),p=(0,a.b)(d??"0",(0,l.W)(s??h));return{decimals:h,formatted:p,symbol:f,value:d}}},80660:function(e,t,r){"use strict";function n(e,t={}){let r;try{r=e.getClient(t)}catch{}return r}r.d(t,{s:function(){return n}})},48479:function(e,t,r){"use strict";r.d(t,{E:function(){return o}});var n=r(90331);let i=[];function o(e){let t=[...e.state.connections.values()];return"reconnecting"===e.state.status||(0,n.v)(i,t)?i:(i=t,t)}},33281:function(e,t,r){"use strict";r.d(t,{e:function(){return c}});var n=r(72688),i=r(93423),o=r(96104),a=r(99112),s=r(85770);async function c(e,t={}){let r;if(t.connector){let{connector:e}=t,[n,i]=await Promise.all([e.getAccounts(),e.getChainId()]);r={accounts:n,chainId:i,connector:e}}else r=e.state.connections.get(e.state.current);if(!r)throw new s.aH;let c=t.chainId??r.chainId,l=await r.connector.getChainId();if(l!==r.chainId)throw new s.XZ({connectionChainId:r.chainId,connectorChainId:l});let u=r.connector;if(u.getClient)return u.getClient({chainId:c});let d=(0,o.T)(t.account??r.accounts[0]);d.address=(0,a.K)(d.address);let h=e.chains.find(e=>e.id===c),f=await r.connector.getProvider({chainId:c});if(t.account&&!r.accounts.some(e=>e.toLowerCase()===d.address.toLowerCase()))throw new s.JK({address:d.address,connector:u});return(0,n.e)({account:d,chain:h,name:"Connector Client",transport:e=>(function(e,t={}){let{key:r="custom",name:n="Custom Provider",retryDelay:o}=t;return({retryCount:a})=>(0,i.q)({key:r,name:n,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:o,type:"custom"})})(f)({...e,retryCount:0})})}},41794:function(e,t,r){"use strict";r.d(t,{O:function(){return o}});var n=r(78045),i=r(61954);function o(e,t){let{chainId:r,...o}=t,a=e.getClient({chainId:r});return(0,i.s)(a,n.O,"getEnsAddress")(o)}},704:function(e,t,r){"use strict";r.d(t,{r:function(){return o}});var n=r(48061),i=r(61954);function o(e,t){let{chainId:r,...o}=t,a=e.getClient({chainId:r});return(0,i.s)(a,n.r,"getEnsAvatar")(o)}},16302:function(e,t,r){"use strict";r.d(t,{w:function(){return o}});var n=r(48729),i=r(61954);function o(e,t){let{chainId:r,...o}=t,a=e.getClient({chainId:r});return(0,i.s)(a,n.w,"getEnsName")(o)}},10373:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(12062),i=r(61954),o=r(79886);async function a(e,t){let{account:r,chainId:a,...s}=t,c=r??(0,o.D)(e).address,l=e.getClient({chainId:a});return(0,i.s)(l,n.Z,"prepareTransactionRequest")({...s,...c?{account:c}:{}})}},42467:function(e,t,r){"use strict";r.d(t,{L:function(){return o}});var n=r(3796),i=r(61954);function o(e,t){let{chainId:r,...o}=t,a=e.getClient({chainId:r});return(0,i.s)(a,n.L,"readContract")(o)}},56872:function(e,t,r){"use strict";r.d(t,{J:function(){return c}});var n=r(58591),i=r(6577),o=r(61954);async function a(e,t){let{allowFailure:r=!0,chainId:n,contracts:a,...s}=t,c=e.getClient({chainId:n});return(0,o.s)(c,i.A,"multicall")({allowFailure:r,contracts:a,...s})}var s=r(42467);async function c(e,t){let{allowFailure:r=!0,blockNumber:i,blockTag:o,...c}=t,l=t.contracts;try{let t={};for(let[r,n]of l.entries()){let i=n.chainId??e.state.chainId;t[i]||(t[i]=[]),t[i]?.push({contract:n,index:r})}let n=(await Promise.all(Object.entries(t).map(([t,n])=>a(e,{...c,allowFailure:r,blockNumber:i,blockTag:o,chainId:Number.parseInt(t),contracts:n.map(({contract:e})=>e)}
32)))).flat(),s=Object.values(t).flatMap(e=>e.map(({index:e})=>e));return n.reduce((e,t,r)=>(e&&(e[s[r]]=t),e),[])}catch(a){if(a instanceof n.uq)throw a;let t=()=>l.map(t=>(0,s.L)(e,{...t,blockNumber:i,blockTag:o}));if(r)return(await Promise.allSettled(t())).map(e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"});return await Promise.all(t())}}},74229:function(e,t,r){"use strict";r.d(t,{T:function(){return c}});var n=r(60730),i=r(28703),o=r(61954),a=r(79886),s=r(33281);async function c(e,t){let r;let{account:c,chainId:l,connector:u,gas:d,...h}=t;r="object"==typeof c&&"local"===c.type?e.getClient({chainId:l}):await (0,s.e)(e,{account:c,chainId:l,connector:u});let{connector:f}=(0,a.D)(e),p=await (async()=>{if(!(!("data"in t)||!t.data||(u??f)?.supportsSimulation)&&null!==d)return void 0===d?(0,o.s)(r,n.Q,"estimateGas")({...h,account:c,chain:l?{id:l}:null}):d})(),g=(0,o.s)(r,i.T,"sendTransaction");return await g({...h,...c?{account:c}:{},gas:p,chain:l?{id:l}:null})}},71791:function(e,t,r){"use strict";r.d(t,{l:function(){return a}});var n=r(99154),i=r(61954),o=r(33281);async function a(e,t){let r;let{account:a,connector:s,...c}=t;return r="object"==typeof a&&"local"===a.type?e.getClient():await (0,o.e)(e,{account:a,connector:s}),(0,i.s)(r,n.l,"signMessage")({...c,...a?{account:a}:{}})}},53231:function(e,t,r){"use strict";r.d(t,{a:function(){return a}});var n=r(9660),i=r(61954),o=r(33281);async function a(e,t){let r;let{abi:a,chainId:s,connector:c,...l}=t;r=t.account?t.account:(await (0,o.e)(e,{chainId:s,connector:c})).account;let u=e.getClient({chainId:s}),d=(0,i.s)(u,n.a,"simulateContract"),{result:h,request:f}=await d({...l,abi:a,account:r});return{chainId:u.chain.id,result:h,request:{__mode:"prepared",...f,chainId:s}}}},28562:function(e,t,r){"use strict";r.d(t,{y:function(){return i}});var n=r(85770);async function i(e,t){let{connector:r}=t,i=e.state.connections.get(r.uid);if(!i)throw new n.aH;return await e.storage?.setItem("recentConnectorId",r.id),e.setState(e=>({...e,current:r.uid})),{accounts:i.accounts,chainId:i.chainId}}},70272:function(e,t,r){"use strict";r.d(t,{c:function(){return o}});var n=r(85770),i=r(50571);async function o(e,t){let{addEthereumChainParameter:r,chainId:o}=t,a=e.state.connections.get(t.connector?.uid??e.state.current);if(a){let e=a.connector;if(!e.switchChain)throw new i.O({connector:e});return await e.switchChain({addEthereumChainParameter:r,chainId:o})}let s=e.chains.find(e=>e.id===o);if(!s)throw new n.X4;return e.setState(e=>({...e,chainId:o})),s}},46717:function(e,t,r){"use strict";r.d(t,{e:function(){return c}});var n=r(21019),i=r(95131),o=r(85753),a=r(12994),s=r(61954);async function c(e,t){let{chainId:r,timeout:c=0,...l}=t,u=e.getClient({chainId:r}),d=(0,s.s)(u,i.e,"waitForTransactionReceipt"),h=await d({...l,timeout:c});if("reverted"===h.status){let e=(0,s.s)(u,o.f,"getTransaction"),t=await e({hash:h.transactionHash}),r=(0,s.s)(u,a.R,"call"),i=await r({...t,gasPrice:"eip1559"!==t.type?t.gasPrice:void 0,maxFeePerGas:"eip1559"===t.type?t.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===t.type?t.maxPriorityFeePerGas:void 0});throw Error(i?.data?(0,n.rR)(`0x${i.data.substring(138)}`):"unknown reason")}return{...h,chainId:u.chain.id}}},33878:function(e,t,r){"use strict";function n(e,t){let{onChange:r}=t;return e._internal.connectors.subscribe((e,t)=>{r(Object.values(e),t)})}r.d(t,{f:function(){return n}})},90894:function(e,t,r){"use strict";r.d(t,{n:function(){return c}});var n=r(85721),i=r(61954),o=r(79886),a=r(33281),s=r(53231);async function c(e,t){let r,c;let{account:l,chainId:u,connector:d,__mode:h,...f}=t;r="object"==typeof l&&"local"===l.type?e.getClient({chainId:u}):await (0,a.e)(e,{account:l,chainId:u,connector:d});let{connector:p}=(0,o.D)(e);if("prepared"===h||p?.supportsSimulation)c=f;else{let{request:t}=await (0,s.a)(e,{...f,account:l,chainId:u});c=t}let g=(0,i.s)(r,n.n,"writeContract");return await g({...c,...l?{account:l}:{},chain:u?{id:u}:null})}},32048:function(e,t,r){"use strict";function n(e,t){return JSON.parse(e,(e,r)=>{let n=r;return n?.__type==="bigint"&&(n=BigInt(n.value)),n?.__type==="Map"&&(n=new Map(n.value)),t?.(e,n)??n})}function i(e,t){return e.slice(0,t).join(".")||"."}function o(e,t){let{length:r}=e;for(let n=0;n<r;++n)if(e[n]===t)return n+1;return 0}function a(e,t,r,n){return JSON.stringify(e,function(e,t){let r="function"==typeof e,n="function"==typeof t,a=[],s=[];return function(c,l){if("object"==typeof l){if(a.length){let e=o(a,this);0===e?a[a.length]=this:(a.splice(e),s.splice(e)),s[s.length]=c;let r=o(a,l);if(0!==r)return n?t.call(this,c,l,i(s,r)):`[ref=${i(s,r)}]`}else a[0]=l,s[0]=c}return r?e.call(this,c,l):l}}((e,r)=>{let n=r;return"bigint"==typeof n&&(n={__type:"bigint",value:r.toString()}),n instanceof Map&&(n={__type:"Map",value:Array.from(r.entries())}),t?.(e,n)??n},n),r??void 0)}function s(e){let{deserialize:t=n,key:r="wagmi",serialize:i=a,storage:o=c}=e;function s(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...o,key:r,async getItem(e,n){let i=o.getItem(`${r}.${e}`),a=await s(i);return a?t(a)??null:n??null},async setItem(e,t){let n=`${r}.${e}`;null===t?await s(o.removeItem(n)):await s(o.setItem(n,i(t)))},async removeItem(e){await s(o.removeItem(`${r}.${e}`))}}}r.d(t,{o:function(){return s},w:function(){return c}});let c={getItem:()=>null,setItem:()=>{},removeItem:()=>{}}},85770:function(e,t,r){"use strict";r.d(t,{JK:function(){return s},X4:function(){return i},XZ:function(){return c},aH:function(){return a},wi:function(){return o}});var n=r(66564);class i extends n.G{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class o extends n.G{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class a extends n.G{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class s extends n.G{constructor({address:e,connector:t}){super(`Account "${e}" not found for connector "${t.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class c extends n.G{constructor({connectionChainId:e,connectorChainId:t}){super(`The current chain of the connector (id: ${t}) does not match the connection's chain (id: ${e}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}},50571:function(e,t,r){"use strict";r.d(t,{M:function(){return i},O:function(){return o}});var n=r(66564);class i extends n.G{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class o extends n.G{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}},34954:function(e,t,r){"use strict";r.d(t,{OP:function(){return c},if:function(){return o},kq:function(){return a}});var n=r(56298),i=r(90331);function o(e,t){return(0,i.v)(e,t)?e:(0,n.Q$)(e,t)}function a(e){return JSON.stringify(e,(e,t)=>!function(e){if(!s(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(s(r)&&r.hasOwnProperty("isPrototypeOf"))}(t)?"bigint"==typeof t?t.toString():t:Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}))}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){let{_defaulted:t,behavior:r,gcTime:n,initialData:i,initialDataUpdatedAt:o,maxPages:a,meta:s,networkMode:c,queryFn:l,queryHash:u,queryKey:d,queryKeyHashFn:h,retry:f,retryDelay:p,structuralSharing:g,getPreviousPageParam:m,getNextPageParam:w,initialPageParam:b,_optimisticResults:v,enabled:y,notifyOnChangeProps:C,placeholderData:x,refetchInterval:A,refetchIntervalInBackgroun
32d:E,refetchOnMount:k,refetchOnReconnect:_,refetchOnWindowFocus:S,retryOnMount:T,select:I,staleTime:R,suspense:O,throwOnError:P,config:N,connector:M,query:D,...B}=e;return B}},75332:function(e,t,r){"use strict";r.d(t,{Dr:function(){return n}});let n={getItem:e=>"undefined"==typeof window?null:function(e,t){let r=e.split("; ").find(e=>e.startsWith(`${t}=`));if(r)return r.substring(t.length+1)}(document.cookie,e)??null,setItem(e,t){"undefined"!=typeof window&&(document.cookie=`${e}=${t};path=/;samesite=Lax`)},removeItem(e){"undefined"!=typeof window&&(document.cookie=`${e}=;max-age=-1;path=/`)}}},61954:function(e,t,r){"use strict";function n(e,t,r){let n=e[t.name];if("function"==typeof n)return n;let i=e[r];return"function"==typeof i?i:r=>t(e,r)}r.d(t,{s:function(){return n}})},29690:function(e,t,r){"use strict";r.d(t,{W:function(){return i}});var n=r(90408);function i(e){return"number"==typeof e?e:"wei"===e?0:Math.abs(n.Bd[e])}},15519:function(e,t,r){"use strict";r.d(t,{bq:function(){return T},Em:function(){return c},kg:function(){return k},UE:function(){return S},p1:function(){return l},C6:function(){return E},em:function(){return _},tU:function(){return I}});var n=r(11245),i=r(89026),o=r(17534),a=r(26494);n.extend(o),n.extend(a);let s={...i,name:"en-web3-modal",relativeTime:{future:"in %s",past:"%s ago",s:"%d sec",m:"1 min",mm:"%d min",h:"1 hr",hh:"%d hrs",d:"1 d",dd:"%d d",M:"1 mo",MM:"%d mo",y:"1 yr",yy:"%d yr"}};n.locale("en-web3-modal",s);let c={getYear:(e=new Date().toISOString())=>n(e).year(),getRelativeDateFromNow:e=>n(e).locale("en-web3-modal").fromNow(!0),formatDate:(e,t="DD MMM")=>n(e).format(t)},l={caipNetworkIdToNumber:e=>e?Number(e.split(":")[1]):void 0,parseEvmChainId(e){return"string"==typeof e?this.caipNetworkIdToNumber(e):e}};var u=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,d=Math.ceil,h=Math.floor,f="[BigNumber Error] ",p=f+"Number primitive has more than 15 significant digits: ",g=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function m(e){var t=0|e;return e>0||e===t?t:t-1}function w(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 b(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,c=e.e,l=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=c==l,!i||!o)return n?0:!i^r?1:-1;if(!n)return c>l^r?1:-1;for(a=0,s=(c=i.length)<(l=o.length)?c:l;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return c==l?0:c>l^r?1:-1}function v(e,t,r,n){if(e<t||e>r||e!==h(e))throw Error(f+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function y(e){var t=e.c.length-1;return m(e.e/14)==t&&e.c[t]%2!=0}function C(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function x(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}var A=function e(t){var r,n,i,o,a,s,c,l,A,E=U.prototype={constructor:U,toString:null,valueOf:null},k=new U(1),_=20,S=4,T=-7,I=21,R=-1e7,O=1e7,P=!1,N=1,M=0,D={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},B="0123456789abcdefghijklmnopqrstuvwxyz",$=!0;function U(e,t){var r,n,i,o,a,s,c,d,f=this;if(!(f instanceof U))return new U(e,t);if(null==t){if(e&&!0===e._isBigNumber){f.s=e.s,!e.c||e.e>O?f.c=f.e=null:e.e<R?f.c=[f.e=0]:(f.e=e.e,f.c=e.c.slice());return}if((s="number"==typeof e)&&0*e==0){if(f.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,a=e;a>=10;a/=10,o++);o>O?f.c=f.e=null:(f.e=o,f.c=[e]);return}d=String(e)}else{if(!u.test(d=String(e)))return A(f,d,s);f.s=45==d.charCodeAt(0)?(d=d.slice(1),-1):1}(o=d.indexOf("."))>-1&&(d=d.replace(".","")),(a=d.search(/e/i))>0?(o<0&&(o=a),o+=+d.slice(a+1),d=d.substring(0,a)):o<0&&(o=d.length)}else{if(v(t,2,B.length,"Base"),10==t&&$)return F(f=new U(e),_+f.e+1,S);if(d=String(e),s="number"==typeof e){if(0*e!=0)return A(f,d,s,t);if(f.s=1/e<0?(d=d.slice(1),-1):1,U.DEBUG&&d.replace(/^0\.0*|\./,"").length>15)throw Error(p+e)}
32else f.s=45===d.charCodeAt(0)?(d=d.slice(1),-1):1;for(r=B.slice(0,t),o=a=0,c=d.length;a<c;a++)if(0>r.indexOf(n=d.charAt(a))){if("."==n){if(a>o){o=c;continue}}else if(!i&&(d==d.toUpperCase()&&(d=d.toLowerCase())||d==d.toLowerCase()&&(d=d.toUpperCase()))){i=!0,a=-1,o=0;continue}return A(f,String(e),s,t)}s=!1,(o=(d=l(d,t,10,f.s)).indexOf("."))>-1?d=d.replace(".",""):o=d.length}for(a=0;48===d.charCodeAt(a);a++);for(c=d.length;48===d.charCodeAt(--c););if(d=d.slice(a,++c)){if(c-=a,s&&U.DEBUG&&c>15&&(e>9007199254740991||e!==h(e)))throw Error(p+f.s*e);if((o=o-a-1)>O)f.c=f.e=null;else if(o<R)f.c=[f.e=0];else{if(f.e=o,f.c=[],a=(o+1)%14,o<0&&(a+=14),a<c){for(a&&f.c.push(+d.slice(0,a)),c-=14;a<c;)f.c.push(+d.slice(a,a+=14));a=14-(d=d.slice(a)).length}else a-=c;for(;a--;d+="0");f.c.push(+d)}}else f.c=[f.e=0]}function L(e,t,r,n){var i,o,a,s,c;if(null==r?r=S:v(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)c=w(e.c),c=1==n||2==n&&(a<=T||a>=I)?C(c,a):x(c,a,"0");else if(o=(e=F(new U(e),t,r)).e,s=(c=w(e.c)).length,1==n||2==n&&(t<=o||o<=T)){for(;s<t;c+="0",s++);c=C(c,o)}else if(t-=a,c=x(c,o,"0"),o+1>s){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=o-s)>0)for(o+1==s&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function j(e,t){for(var r,n,i=1,o=new U(e[0]);i<e.length;i++)(n=new U(e[i])).s&&(r=b(o,n))!==t&&(0!==r||o.s!==t)||(o=n);return o}function z(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)>O?e.c=e.e=null:r<R?e.c=[e.e=0]:(e.e=r,e.c=t),e}function F(e,t,r,n){var i,o,a,s,c,l,u,f=e.c;if(f){e:{for(i=1,s=f[0];s>=10;s/=10,i++);if((o=t-i)<0)o+=14,a=t,u=h((c=f[l=0])/g[i-a-1]%10);else if((l=d((o+1)/14))>=f.length){if(n){for(;f.length<=l;f.push(0));c=u=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=s=f[l];s>=10;s/=10,i++);o%=14,u=(a=o-14+i)<0?0:h(c/g[i-a-1]%10)}if(n=n||t<0||null!=f[l+1]||(a<0?c:c%g[i-a-1]),n=r<4?(u||n)&&(0==r||r==(e.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(o>0?a>0?c/g[i-a]:0:f[l-1])%10&1||r==(e.s<0?8:7)),t<1||!f[0])return f.length=0,n?(t-=e.e+1,f[0]=g[(14-t%14)%14],e.e=-t||0):f[0]=e.e=0,e;if(0==o?(f.length=l,s=1,l--):(f.length=l+1,s=g[14-o],f[l]=a>0?h(c/g[i-a]%g[a])*s:0),n)for(;;){if(0==l){for(o=1,a=f[0];a>=10;a/=10,o++);for(a=f[0]+=s,s=1;a>=10;a/=10,s++);o!=s&&(e.e++,1e14==f[0]&&(f[0]=1));break}if(f[l]+=s,1e14!=f[l])break;f[l--]=0,s=1}for(o=f.length;0===f[--o];f.pop());}e.e>O?e.c=e.e=null:e.e<R&&(e.c=[e.e=0])}return e}function H(e){var t,r=e.e;return null===r?e.toString():(t=w(e.c),t=r<=T||r>=I?C(t,r):x(t,r,"0"),e.s<0?"-"+t:t)}return U.clone=e,U.ROUND_UP=0,U.ROUND_DOWN=1,U.ROUND_CEIL=2,U.ROUND_FLOOR=3,U.ROUND_HALF_UP=4,U.ROUND_HALF_DOWN=5,U.ROUND_HALF_EVEN=6,U.ROUND_HALF_CEIL=7,U.ROUND_HALF_FLOOR=8,U.EUCLID=9,U.config=U.set=function(e){var t,r;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(v(r=e[t],0,1e9,t),_=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(v(r=e[t],0,8,t),S=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(v(r[0],-1e9,0,t),v(r[1],0,1e9,t),T=r[0],I=r[1]):(v(r,-1e9,1e9,t),T=-(I=r<0?-r:r))),e.hasOwnProperty(t="RANGE")){if((r=e[t])&&r.pop)v(r[0],-1e9,-1,t),v(r[1],1,1e9,t),R=r[0],O=r[1];else if(v(r,-1e9,1e9,t),r)R=-(O=r<0?-r:r);else throw Error(f+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))P=r;else throw P=!r,Error(f+"crypto unavailable")}else P=r}else throw Error(f+t+" not true or false: "+r)}if(e.hasOwnProperty(t="MODULO_MODE")&&(v(r=e[t],0,9,t),N=r),e.hasOwnProperty(t="POW_PRECISION")&&(v(r=e[t],0,1e9,t),M=r),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(r=e[t]))D=r;else throw Error(f+t+" not an object: "+r)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(f+t+" invalid: "+r);$="0123456789"==r.slice(0,10),B=r}}else throw Error(f+"Object expected: "+e)}return{DECIMAL_PLACES:_,ROUNDING_MODE:S,EXPONENTIAL_AT:[T,I],RANGE:[R,O],CRYPTO:P,MODULO_MODE:N,POW_PRECISION:M,FORMAT:D,ALPHABET:B}},U.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!U.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}
32).toString.call(n)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===h(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!==h(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(f+"Invalid BigNumber: "+e)},U.maximum=U.max=function(){return j(arguments,-1)},U.minimum=U.min=function(){return j(arguments,1)},U.random=(r=9007199254740992*Math.random()&2097151?function(){return h(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,n,i,o,a,s=0,c=[],l=new U(k);if(null==e?e=_:v(e,0,1e9),o=d(e/14),P){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));s<o;)(a=131072*t[s]+(t[s+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[s]=n[0],t[s+1]=n[1]):(c.push(a%1e14),s+=2);s=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);s<o;)(a=(31&t[s])*281474976710656+1099511627776*t[s+1]+4294967296*t[s+2]+16777216*t[s+3]+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6])>=9e15?crypto.randomBytes(7).copy(t,s):(c.push(a%1e14),s+=7);s=o/7}else throw P=!1,Error(f+"crypto unavailable")}if(!P)for(;s<o;)(a=r())<9e15&&(c[s++]=a%1e14);for(o=c[--s],e%=14,o&&e&&(a=g[14-e],c[s]=h(o/a)*a);0===c[s];c.pop(),s--);if(s<0)c=[i=0];else{for(i=-1;0===c[0];c.splice(0,1),i-=14);for(s=1,a=c[0];a>=10;a/=10,s++);s<14&&(i-=14-s)}return l.e=i,l.c=c,l}),U.sum=function(){for(var e=1,t=arguments,r=new U(t[0]);e<t.length;)r=r.plus(t[e++]);return r},l=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,a=[0],s=0,c=e.length;s<c;){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,l,u,d,h,f,p,g,m=r.indexOf("."),b=_,v=S;for(m>=0&&(d=M,M=0,r=r.replace(".",""),f=(g=new U(n)).pow(r.length-m),M=d,g.c=t(x(w(f.c),f.e,"0"),10,i,e),g.e=g.c.length),u=d=(p=t(r,n,i,a?(s=B,e):(s=e,B))).length;0==p[--d];p.pop());if(!p[0])return s.charAt(0);if(m<0?--u:(f.c=p,f.e=u,f.s=o,p=(f=c(f,g,b,v,i)).c,h=f.r,u=f.e),m=p[l=u+b+1],d=i/2,h=h||l<0||null!=p[l+1],h=v<4?(null!=m||h)&&(0==v||v==(f.s<0?3:2)):m>d||m==d&&(4==v||h||6==v&&1&p[l-1]||v==(f.s<0?8:7)),l<1||!p[0])r=h?x(s.charAt(1),-b,s.charAt(0)):s.charAt(0);else{if(p.length=l,h)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(d=p.length;!p[--d];);for(m=0,r="";m<=d;r+=s.charAt(p[m++]));r=x(r,u,s.charAt(0))}return r}}(),c=function(){function e(e,t,r){var n,i,o,a,s=0,c=e.length,l=t%1e7,u=t/1e7|0;for(e=e.slice();c--;)n=u*(o=e[c]%1e7)+(a=e[c]/1e7|0)*l,s=((i=l*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+u*a,e[c]=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,u,d,f,p,g,w,b,v,y,C,x,A,E,k,_,S=n.s==i.s?1:-1,T=n.c,I=i.c;if(!T||!T[0]||!I||!I[0])return new U(n.s&&i.s&&(T?!I||T[0]!=I[0]:I)?T&&0==T[0]||!I?0*S:S/0:NaN);for(b=(w=new U(S)).c=[],S=o+(l=n.e-i.e)+1,s||(s=1e14,l=m(n.e/14)-m(i.e/14),S=S/14|0),u=0;I[u]==(T[u]||0);u++);if(I[u]>(T[u]||0)&&l--,S<0)b.push(1),d=!0;else{for(A=T.length,k=I.length,u=0,S+=2,(f=h(s/(I[0]+1)))>1&&(I=e(I,f,s),T=e(T,f,s),k=I.length,A=T.length),x=k,y=(v=T.slice(0,k)).length;y<k;v[y++]=0);_=[0].concat(_=I.slice()),E=I[0],I[1]>=s/2&&E++;do{if(f=0,(c=t(I,v,k,y))<0){if(C=v[0],k!=y&&(C=C*s+(v[1]||0)),(f=h(C/E))>1)for(f>=s&&(f=s-1),g=(p=e(I,f,s)).length,y=v.length;1==t(p,v,g,y);)f--,r(p,k<g?_:I,g,s),g=p.length,c=1;else 0==f&&(c=f=1),g=(p=I.slice()).length;if(g<y&&(p=[0].concat(p)),r(v,p,y,s),y=v.length,-1==c)for(;1>t(I,v,k,y);)f++,r(v,k<y?_:I,y,s),y=v.length}else 0===c&&(f++,v=[0]);b[u++]=f,v[0]?v[y++]=T[x]||0:(v=[T[x]],y=1)}while((x++<A||null!=v[0])&&S--);d=null!=v[0],b[0]||b.splice(0,1)}if(1e14==s){for(u=1,S=b[0];S>=10;S/=10,u++);F(w,o+(w.e=u+14*l-1)+1,a,d)}else w.e=l,w.r=+d;return w}}(),n=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,a=/^-?(Infinity|NaN)$/,s=/^\s*\+(?=[\w.])|^\s+|\s+$/g,A=function(e,t,r,c){var l,u=r?t:t.replace(s,"");if(a.test(u))e.s=isNaN(u)?null:u<0?-1:1;else{if(!r&&(u=u.replace(n,function(e,t,r){return l="x"==(r=r.toLowerCase())?16:"b"==r?2:8,c&&c!=l?e:t}),c&&(l=c,u=u.replace(i,"$1").replace(o,"0.$1")),t!=u))return new U(u,l);if(U.DEBUG)throw Error(f+"Not a"+(c?" base "+c:"")+" number: "+t);e.s=null}e.c=e.e=null},E.absoluteValue=E.abs=function(){var e=new U(this);return e.s<0&&(e.s=1),e},E.comparedTo=function(e,t){return b(this,new U(e,t))},E.decimalPlaces=E.dp=function(e,t){var r,n,i;if(null!=e)return v(e,0,1e9),null==t?t=S:v(t,0,8),F(new U(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-m(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},E.dividedBy=E.div=function(e,t){return c(this,new U(e,t),_,S)},E.dividedToIntegerBy=E.idiv=function(e,t){return c(this,new U(e,t),0,1)},E.exponentiatedBy=E.pow=function(e,t){var r,n,i,o,a,s,c,l,u,p=this;
32if((e=new U(e)).c&&!e.isInteger())throw Error(f+"Exponent not an integer: "+H(e));if(null!=t&&(t=new U(t)),s=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return u=new U(Math.pow(+H(p),s?e.s*(2-y(e)):+H(e))),t?u.mod(t):u;if(c=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new U(NaN);(n=!c&&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||s&&p.c[1]>=24e7:p.c[0]<8e13||s&&p.c[0]<=9999975e7)))return o=p.s<0&&y(e)?-0:0,p.e>-1&&(o=1/o),new U(c?1/o:o);M&&(o=d(M/14+2))}for(s?(r=new U(.5),c&&(e.s=1),l=y(e)):l=(i=Math.abs(+H(e)))%2,u=new U(k);;){if(l){if(!(u=u.times(p)).c)break;o?u.c.length>o&&(u.c.length=o):n&&(u=u.mod(t))}if(i){if(0===(i=h(i/2)))break;l=i%2}else if(F(e=e.times(r),e.e+1,1),e.e>14)l=y(e);else{if(0==(i=+H(e)))break;l=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):n&&(p=p.mod(t))}return n?u:(c&&(u=k.div(u)),t?u.mod(t):o?F(u,M,S,a):u)},E.integerValue=function(e){var t=new U(this);return null==e?e=S:v(e,0,8),F(t,t.e+1,e)},E.isEqualTo=E.eq=function(e,t){return 0===b(this,new U(e,t))},E.isFinite=function(){return!!this.c},E.isGreaterThan=E.gt=function(e,t){return b(this,new U(e,t))>0},E.isGreaterThanOrEqualTo=E.gte=function(e,t){return 1===(t=b(this,new U(e,t)))||0===t},E.isInteger=function(){return!!this.c&&m(this.e/14)>this.c.length-2},E.isLessThan=E.lt=function(e,t){return 0>b(this,new U(e,t))},E.isLessThanOrEqualTo=E.lte=function(e,t){return -1===(t=b(this,new U(e,t)))||0===t},E.isNaN=function(){return!this.s},E.isNegative=function(){return this.s<0},E.isPositive=function(){return this.s>0},E.isZero=function(){return!!this.c&&0==this.c[0]},E.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new U(e,t)).s,!a||!t)return new U(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,c=e.e/14,l=this.c,u=e.c;if(!s||!c){if(!l||!u)return l?(e.s=-t,e):new U(u?this:NaN);if(!l[0]||!u[0])return u[0]?(e.s=-t,e):new U(l[0]?this:3==S?-0:0)}if(s=m(s),c=m(c),l=l.slice(),a=s-c){for((o=a<0)?(a=-a,i=l):(c=s,i=u),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=l.length)<(t=u.length))?a:t,a=t=0;t<n;t++)if(l[t]!=u[t]){o=l[t]<u[t];break}if(o&&(i=l,l=u,u=i,e.s=-e.s),(t=(n=u.length)-(r=l.length))>0)for(;t--;l[r++]=0);for(t=1e14-1;n>a;){if(l[--n]<u[n]){for(r=n;r&&!l[--r];l[r]=t);--l[r],l[n]+=1e14}l[n]-=u[n]}for(;0==l[0];l.splice(0,1),--c);return l[0]?z(e,l,c):(e.s=3==S?-1:1,e.c=[e.e=0],e)},E.modulo=E.mod=function(e,t){var r,n;return(e=new U(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=c(this,e,0,3),e.s=n,r.s*=n):r=c(this,e,0,N),(e=this.minus(r.times(e))).c[0]||1!=N||(e.s=this.s),e):new U(this):new U(NaN)},E.multipliedBy=E.times=function(e,t){var r,n,i,o,a,s,c,l,u,d,h,f,p,g=this.c,w=(e=new U(e,t)).c;if(!g||!w||!g[0]||!w[0])return this.s&&e.s&&(!g||g[0]||w)&&(!w||w[0]||g)?(e.s*=this.s,g&&w?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=m(this.e/14)+m(e.e/14),e.s*=this.s,(c=g.length)<(d=w.length)&&(p=g,g=w,w=p,i=c,c=d,d=i),i=c+d,p=[];i--;p.push(0));for(i=d;--i>=0;){for(r=0,h=w[i]%1e7,f=w[i]/1e7|0,o=i+(a=c);o>i;)s=f*(l=g[--a]%1e7)+(u=g[a]/1e7|0)*h,r=((l=h*l+s%1e7*1e7+p[o]+r)/1e14|0)+(s/1e7|0)+f*u,p[o--]=l%1e14;p[o]=r}return r?++n:p.splice(0,1),z(e,p,n)},E.negated=function(){var e=new U(this);return e.s=-e.s||null,e},E.plus=function(e,t){var r,n=this.s;if(t=(e=new U(e,t)).s,!n||!t)return new U(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 U(n/0);if(!a[0]||!s[0])return s[0]?e:new U(a[0]?this:0*n)}if(i=m(i),o=m(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),z(e,a,o)},E.precision=E.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return v(e,1,1e9),null==t?t=S:v(t,0,8),F(new U(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},E.shiftedBy=function(e){return v(e,-9007199254740991,9007199254740991),this.times("1e"+e)},E.squareRoot=E.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,l=_+4,u=new U("0.5");
32if(1!==a||!o||!o[0])return new U(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=w(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=m((s+1)/2)-(s<0||s%2),r=new U(t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new U(a+""),r.c[0]){for((a=(s=r.e)+l)<3&&(a=0);;)if(i=r,r=u.times(i.plus(c(this,i,l,1))),w(i.c).slice(0,a)===(t=w(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))||(F(r,r.e+_+2,1),e=!r.times(r).eq(this));break}if(!n&&(F(i,i.e+_+2,0),i.times(i).eq(this))){r=i;break}l+=4,a+=4,n=1}}return F(r,r.e+_+1,S,e)},E.toExponential=function(e,t){return null!=e&&(v(e,0,1e9),e++),L(this,e,t,1)},E.toFixed=function(e,t){return null!=e&&(v(e,0,1e9),e=e+this.e+1),L(this,e,t)},E.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=D;else if("object"!=typeof r)throw Error(f+"Argument not an object: "+r);if(n=this.toFixed(e,t),this.c){var i,o=n.split("."),a=+r.groupSize,s=+r.secondaryGroupSize,c=r.groupSeparator||"",l=o[0],u=o[1],d=this.s<0,h=d?l.slice(1):l,p=h.length;if(s&&(i=a,a=s,s=i,p-=i),a>0&&p>0){for(i=p%a||a,l=h.substr(0,i);i<p;i+=a)l+=c+h.substr(i,a);s>0&&(l+=c+h.slice(i)),d&&(l="-"+l)}n=u?l+(r.decimalSeparator||"")+((s=+r.fractionGroupSize)?u.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):u):l}return(r.prefix||"")+n+(r.suffix||"")},E.toFraction=function(e){var t,r,n,i,o,a,s,l,u,d,h,p,m=this.c;if(null!=e&&(!(s=new U(e)).isInteger()&&(s.c||1!==s.s)||s.lt(k)))throw Error(f+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!m)return new U(this);for(t=new U(k),u=r=new U(k),n=l=new U(k),p=w(m),o=t.e=p.length-this.e-1,t.c[0]=g[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:u:s,a=O,O=1/0,s=new U(p),l.c[0]=0;d=c(s,t,0,1),1!=(i=r.plus(d.times(n))).comparedTo(e);)r=n,n=i,u=l.plus(d.times(i=u)),l=i,t=s.minus(d.times(i=t)),s=i;return i=c(e.minus(r),n,0,1),l=l.plus(i.times(u)),r=r.plus(i.times(n)),l.s=u.s=this.s,o*=2,h=1>c(u,n,o,S).minus(this).abs().comparedTo(c(l,r,o,S).minus(this).abs())?[u,n]:[l,r],O=a,h},E.toNumber=function(){return+H(this)},E.toPrecision=function(e,t){return null!=e&&v(e,1,1e9),L(this,e,t,2)},E.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<=T||i>=I?C(w(r.c),i):x(w(r.c),i,"0"):10===e&&$?t=x(w((r=F(new U(r),_+i+1,S)).c),r.e,"0"):(v(e,2,B.length,"Base"),t=l(x(w(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},E.valueOf=E.toJSON=function(){return H(this)},E._isBigNumber=!0,E[Symbol.toStringTag]="BigNumber",E[Symbol.for("nodejs.util.inspect.custom")]=E.valueOf,null!=t&&U.set(t),U}();let E={bigNumber:e=>new A(e),multiply(e,t){if(void 0===e||void 0===t)return A(0);let r=new A(e),n=new A(t);return r.multipliedBy(n)},formatNumberToLocalString:(e,t=2)=>void 0===e?"0.00":"number"==typeof e?e.toLocaleString("en-US",{maximumFractionDigits:t,minimumFractionDigits:t}):parseFloat(e).toLocaleString("en-US",{maximumFractionDigits:t,minimumFractionDigits:t})},k={numericInputKeyDown(e,t,r){let n=e.metaKey||e.ctrlKey,i=e.key,o=i.toLocaleLowerCase(),a=","===i,s="."===i,c=i>="0"&&i<="9";n||"a"!==o&&"c"!==o&&"v"!==o&&"x"!==o||e.preventDefault(),"0"!==t||a||s||"0"!==i||e.preventDefault(),"0"===t&&c&&(r(i),e.preventDefault()),(a||s)&&(t||(r("0."),e.preventDefault()),(t?.includes(".")||t?.includes(","))&&e.preventDefault()),c||["Backspace","Meta","Ctrl","a","A","c","C","x","X","v","V","ArrowLeft","ArrowRight","Tab"].includes(i)||s||a||e.preventDefault()}},_=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_value",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_spender",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"}],S={URLS:{FAQ:"https://walletconnect.com/faq"}},T={WC_NAME_SUFFIX:".wcn.id",BLOCKCHAIN_API_RPC_URL:"https://rpc.walletconnect.org",PULSE_API_URL:"https://pulse.walletconnect.org",W3M_API_URL:"https://api.web3modal.org",CHAIN:{EVM:"evm",SOLANA:"solana"},CHAIN_NAME:{EVM:"Ethereum",SOLANA:"Solana"}};function I(e,t){return"light"===t?{"--w3m-accent":e?.["--w3m-accent"]||"hsla(231, 100%, 70%, 1)","--w3m-background":"#fff"}:{"--w3m-accent":e?.["--w3m-accent"]||"hsla(230, 100%, 67%, 1)","--w3m-background":"#121313"}}},75839:function(e,t,r){"use strict";r.d(t,{AccountController:function(){return ea},ApiController:function(){return U},WM:function(){return v},fz:function(){return ey},Lr:function(){return q},RY:function(){return N},ConnectionController:function(){return Q},ConnectorController:function(){return A},bq:function(){return c},j1:function(){return l},a:function(){return ev},Xs:function(){return I},IN:function(){return ec},fB:function(){return D},ph:function(){return eh},OptionsController:function(){return j},Ie:function(){return k},RouterController:function(){return ee},_4:function(){return eC},Si:function(){return ep},SnackController:function(){return V},MO:function(){return w},nY:function(){return ei},ThemeController:function(){return C},fw:function(){return em},sl:function(){return K}});var n=r(10164),i=r(83044),o=r(15519);let a="https://secure.walletconnect.org",s=[{label:"Coinbase",name:"coinbase",feeRange:"1-2%",url:""}],c={FOUR_MINUTES_MS:24e4,TEN_SEC_MS:1e4,ONE_SEC_MS:1e3,SECURE_SITE:a,SECURE_SITE_DASHBOARD:`${a}/dashboard`,SECURE_SITE_FAVICON:`${a}/images/favicon.png`,RESTRICTED_TIMEZONES:["ASIA/SHANGHAI","ASIA/URUMQI","ASIA/CHONGQING","ASIA/HARBIN","ASIA/KASHGAR","ASIA/MACAU","ASIA/HONG_KONG","ASIA/MACAO","ASIA/BEIJING","ASIA/HARBIN"],WC_COINBASE_PAY_SDK_CHAINS:["ethereum","arbitrum","polygon","avalanche-c-chain","optimism","celo","base"],WC_COINBASE_PAY_SDK_FALLBACK_CHAIN:"ethereum",WC_COINBASE_PAY_SDK_CHAIN_NAME_MAP:{Ethereum:"ethereum","Arbitrum One":"arbitrum",Polygon:"polygon",Avalanche:"avalanche-c-chain","OP Mainnet":"optimism",Celo:"celo",Base:"base"},WC_COINBASE_ONRAMP_APP_ID:"bf18c88d-495a-463b-b249-0b9d3656cf5e",SWAP_SUGGESTED_TOKENS:["ETH","UNI","1INCH","AAVE","SOL","ADA","AVAX","DOT","LINK","NITRO","GAIA","MILK","TRX","NEAR","GNO","WBTC","DAI","WETH","USDC","USDT","ARB","BAL","BICO","CRV","ENS","MATIC","OP"],SWAP_POPULAR_TOKENS:["ETH","UNI","1INCH","AAVE","SOL","ADA","AVAX","DOT","LINK","NITRO","GAIA","MILK","TRX","NEAR","GNO","WBTC","DAI","WETH","USDC","USDT","ARB","BAL","BICO","CRV","ENS","MATIC","OP","METAL","DAI","CHAMP","WOLF","SALE","BAL","BUSD","MUST","BTCpx","ROUTE","HEX","WELT","amDAI","VSQ","VISION","AURUM","pSP","SNX","VC","LINK","CHP","amUSDT","SPHERE","FOX","GIDDY","GFC","OMEN","OX_OLD","DE","WNT"],SWAP_SUPPORTED_NETWORKS:["eip155:1","eip155:42161","eip155:10","eip155:324","eip155:8453","eip155:
3256","eip155:137","eip155:100","eip155:43114","eip155:250","eip155:8217","eip155:1313161554"],NATIVE_TOKEN_ADDRESS:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",CONVERT_SLIPPAGE_TOLERANCE:1},l={isMobile:()=>"undefined"!=typeof window&&!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),checkCaipNetwork:(e,t="")=>e?.id.toLocaleLowerCase().includes(t.toLowerCase()),isAndroid(){let e=window.navigator.userAgent.toLowerCase();return l.isMobile()&&e.includes("android")},isIos(){let e=window.navigator.userAgent.toLowerCase();return l.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isClient:()=>"undefined"!=typeof window,isPairingExpired:e=>!e||e-Date.now()<=c.TEN_SEC_MS,isAllowedRetry:e=>Date.now()-e>=c.ONE_SEC_MS,copyToClopboard(e){navigator.clipboard.writeText(e)},getPairingExpiry:()=>Date.now()+c.FOUR_MINUTES_MS,getNetworkId:e=>e?.split(":")[1],getPlainAddress:e=>e?.split(":")[2],wait:async e=>new Promise(t=>{setTimeout(t,e)}),debounce(e,t=500){let r;return(...n)=>{r&&clearTimeout(r),r=setTimeout(function(){e(...n)},t)}},isHttpUrl:e=>e.startsWith("http://")||e.startsWith("https://"),formatNativeUrl(e,t){if(l.isHttpUrl(e))return this.formatUniversalUrl(e,t);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`);let n=encodeURIComponent(t);return{redirect:`${r}wc?uri=${n}`,href:r}},formatUniversalUrl(e,t){if(!l.isHttpUrl(e))return this.formatNativeUrl(e,t);let r=e;r.endsWith("/")||(r=`${r}/`);let n=encodeURIComponent(t);return{redirect:`${r}wc?uri=${n}`,href:r}},openHref(e,t,r){window.open(e,t,r||"noreferrer noopener")},returnOpenHref:(e,t,r)=>window.open(e,t,r||"noreferrer noopener"),preloadImage:async e=>Promise.race([new Promise((t,r)=>{let n=new Image;n.onload=t,n.onerror=r,n.crossOrigin="anonymous",n.src=e}),l.wait(2e3)]),formatBalance(e,t){let r="0.000";if("string"==typeof e){let t=Number(e);if(t){let e=Math.floor(1e3*t)/1e3;e&&(r=e.toString())}}return`${r}${t?` ${t}`:""}`},formatBalance2(e,t){let r;if("0"===e)r="0";else if("string"==typeof e){let t=Number(e);t&&(r=t.toString().match(/^-?\d+(?:\.\d{0,3})?/u)?.[0])}return{value:r??"0",rest:"0"===r?"000":"",symbol:t}},getApiUrl:()=>o.bq.W3M_API_URL,getBlockchainApiUrl:()=>o.bq.BLOCKCHAIN_API_RPC_URL,getAnalyticsUrl:()=>o.bq.PULSE_API_URL,getUUID:()=>crypto?.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/gu,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),parseError:e=>"string"==typeof e?e:"string"==typeof e?.issues?.[0]?.message?e.issues[0].message:e instanceof Error?e.message:"Unknown error",sortRequestedNetworks(e,t=[]){let r={};return t&&e&&(e.forEach((e,t)=>{r[e]=t}),t.sort((e,t)=>{let n=r[e.id],i=r[t.id];return void 0!==n&&void 0!==i?n-i:void 0!==n?-1:void 0!==i?1:0})),t},calculateBalance(e){let t=0;for(let r of e)t+=r.value??0;return t},formatTokenBalance(e){let[t,r]=e.toFixed(2).split(".");return{dollars:t,pennies:r}},isAddress:e=>!!(/^(?:0x)?[0-9a-f]{40}$/iu.test(e)&&(/^(?:0x)?[0-9a-f]{40}$/iu.test(e)||/^(?:0x)?[0-9A-F]{40}$/iu.test(e))),uniqueBy(e,t){let r=new Set;return e.filter(e=>{let n=e[t];return!r.has(n)&&(r.add(n),!0)})}};async function u(...e){let t=await fetch(...e);if(!t.ok)throw Error(`HTTP status code: ${t.status}`,{cause:t});return t}class d{constructor({baseUrl:e,clientId:t}){this.baseUrl=e,this.clientId=t}async get({headers:e,signal:t,cache:r,...n}){let i=this.createUrl(n);return(await u(i,{method:"GET",headers:e,signal:t,cache:r})).json()}async getBlob({headers:e,signal:t,...r}){let n=this.createUrl(r);return(await u(n,{method:"GET",headers:e,signal:t})).blob()}async post({body:e,headers:t,signal:r,...n}){let i=this.createUrl(n);return(await u(i,{method:"POST",headers:t,body:e?JSON.stringify(e):void 0,signal:r})).json()}async put({body:e,headers:t,signal:r,...n}){let i=this.createUrl(n);return(await u(i,{method:"PUT",headers:t,body:e?JSON.stringify(e):void 0,signal:r})).json()}async delete({body:e,headers:t,signal:r,...n}){let i=this.createUrl(n);return(await u(i,{method:"DELETE",headers:t,body:e?JSON.stringify(e):void 0,signal:r})).json()}createUrl({path:e,params:t}){let r=new URL(e,this.baseUrl);return t&&Object.entries(t).forEach(([e,t])=>{t&&r.searchParams.append(e,t)}),this.clientId&&r.searchParams.append("clientId",this.clientId),r}}let h="WALLETCONNECT_DEEPLINK_CHOICE",f="@w3m/recent",p="@w3m/connected_wallet_image_url",g="@w3m/connected_connector",m="@w3m/connected_social",w={setWalletConnectDeepLink({href:e,name:t}){try{localStorage.setItem(h,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},getWalletConnectDeepLink(){try{let e=localStorage.getItem(h);if(e)return JSON.parse(e)}catch{console.info("Unable to get WalletConnect deep link")}},deleteWalletConnectDeepLink(){try{localStorage.removeItem(h)}catch{console.info("Unable to delete WalletConnect deep link")}},setWeb3ModalRecent(e){try{let t=w.getRecentWallets();t.find(t=>
32t.id===e.id)||(t.unshift(e),t.length>2&&t.pop(),localStorage.setItem(f,JSON.stringify(t)))}catch{console.info("Unable to set Web3Modal recent")}},getRecentWallets(){try{let e=localStorage.getItem(f);return e?JSON.parse(e):[]}catch{console.info("Unable to get Web3Modal recent")}return[]},setConnectedWalletImageUrl(e){try{localStorage.setItem(p,e)}catch{console.info("Unable to set Connected Wallet Image Url")}},removeConnectedWalletImageUrl(){try{localStorage.removeItem(p)}catch{console.info("Unable to remove Connected Wallet Image Url")}},getConnectedWalletImageUrl(){try{return localStorage.getItem(p)}catch{console.info("Unable to set Connected Wallet Image Url")}},setConnectedConnector(e){try{localStorage.setItem(g,e)}catch{console.info("Unable to set Connected Connector")}},getConnectedConnector(){try{return localStorage.getItem(g)}catch{console.info("Unable to get Connected Connector")}},setConnectedSocialProvider(e){try{localStorage.setItem(m,e)}catch{console.info("Unable to set Connected Social Provider")}},getConnectedSocialProvider(){try{return localStorage.getItem(m)}catch{console.info("Unable to get Connected Social Provider")}},getConnectedSocialUsername(){try{return localStorage.getItem("@w3m-storage/SOCIAL_USERNAME")}catch{console.info("Unable to get Connected Social Username")}}},b=(0,i.sj)({walletImages:{},networkImages:{},chainImages:{},connectorImages:{},tokenImages:{},currencyImages:{}}),v={state:b,subscribeNetworkImages:e=>(0,i.Ld)(b.networkImages,()=>e(b.networkImages)),subscribeKey:(e,t)=>(0,n.VW)(b,e,t),subscribe:e=>(0,i.Ld)(b,()=>e(b)),setWalletImage(e,t){b.walletImages[e]=t},setNetworkImage(e,t){b.networkImages[e]=t},setChainImage(e,t){b.chainImages[e]=t},setConnectorImage(e,t){b.connectorImages[e]=t},setTokenImage(e,t){b.tokenImages[e]=t},setCurrencyImage(e,t){b.currencyImages[e]=t}},y=(0,i.sj)({themeMode:"dark",themeVariables:{},w3mThemeVariables:void 0}),C={state:y,subscribe:e=>(0,i.Ld)(y,()=>e(y)),setThemeMode(e){y.themeMode=e;try{let t=A.getAuthConnector();if(t){let r=C.getSnapshot().themeVariables;t.provider.syncTheme({themeMode:e,themeVariables:r,w3mThemeVariables:(0,o.tU)(r,e)})}}catch{console.info("Unable to sync theme to auth connector")}},setThemeVariables(e){y.themeVariables={...y.themeVariables,...e};try{let e=A.getAuthConnector();if(e){let t=C.getSnapshot().themeVariables;e.provider.syncTheme({themeVariables:t,w3mThemeVariables:(0,o.tU)(y.themeVariables,y.themeMode)})}}catch{console.info("Unable to sync theme to auth connector")}},getSnapshot:()=>(0,i.CO)(y)},x=(0,i.sj)({connectors:[]}),A={state:x,subscribeKey:(e,t)=>(0,n.VW)(x,e,t),setConnectors(e,t){t?(x.connectors=[...x.connectors,...e.map(e=>(0,i.iH)(e))],x.connectors=this.mergeMultiChainConnectors(x.connectors)):x.connectors=e.map(e=>(0,i.iH)(e))},mergeMultiChainConnectors(e){let t=[];return e.forEach(e=>{let{name:r,chain:n,type:i}=e,o=t.findIndex(e=>e.name===r);if(-1===o)t.push({...e});else{let r=t[o];r&&(r?.chain===n||r.type===i?t.push({...e}):"MULTI_CHAIN"===r.type?t.push({...e}):t[o]={...r,type:"MULTI_CHAIN",providers:[r,e]})}}),t},addConnector(e){if(x.connectors.push((0,i.iH)(e)),"w3mAuth"===e.id){let t=(0,i.CO)(j.state),r=C.getSnapshot().themeMode,n=C.getSnapshot().themeVariables;e?.provider?.syncDappData?.({metadata:t.metadata,sdkVersion:t.sdkVersion,projectId:t.projectId}),e.provider.syncTheme({themeMode:r,themeVariables:n,w3mThemeVariables:(0,o.tU)(n,r)})}},getAuthConnector:()=>x.connectors.find(e=>"AUTH"===e.type),getAnnouncedConnectorRdns:()=>x.connectors.filter(e=>"ANNOUNCED"===e.type).map(e=>e.info?.rdns),getConnectors:()=>x.connectors,getConnector:(e,t)=>x.connectors.find(r=>r.explorerId===e||r.info?.rdns===t)},E=(0,i.sj)({loading:!1,open:!1,selectedNetworkId:void 0,activeChain:void 0}),k={state:E,subscribe:e=>(0,i.Ld)(E,()=>e(E)),set(e){Object.assign(E,{...E,...e})}},_=new d({baseUrl:l.getAnalyticsUrl(),clientId:null}),S=["MODAL_CREATED"],T=(0,i.sj)({timestamp:Date.now(),data:{type:"track",event:"MODAL_CREATED"}}),I={state:T,subscribe:e=>(0,i.Ld)(T,()=>e(T)),_getApiHeaders(){let{projectId:e,sdkType:t,sdkVersion:r}=j.state;return{"x-project-id":e,"x-sdk-type":t,"x-sdk-version":r}},async _sendAnalyticsEvent(e){try{if(S.includes(e.data.event)||"undefined"==typeof window)return;await _.post({path:"/e",headers:I._getApiHeaders(),body:{eventId:l.getUUID(),url:window.location.href,domain:window.location.hostname,timestamp:e.timestamp,props:e.data}})}catch{}},sendEvent(e){T.timestamp=Date.now(),T.data=e,j.state.enableAnalytics&&I._sendAnalyticsEvent(T)}},R={isConnected:!1,currentTab:0,tokenBalance:[],smartAccountDeployed:!1,addressLabels:new Map,allAccounts:[]},O={supportsAllNetworks:!0,isDefaultCaipNetwork:!1,smartAccountEnabledNetworks:[]},P=(0,i.sj)({multiChainEnabled:!1,chains:(0,n.Yr)(),activeChain:void 0,activeCaipNetwork:void 0}),N={state:P,subscribeKey:(e,t)=>(0,n.VW)(P,e,t),subscribeChain(e){let t;let r=P.activeChain;return r?(0,i.Ld)(P.chains,()=>{let n=P.chains.get(r);t&&t===n||(t=n,e(n))}):()=>{}},subscribeChainProp(e,t){let r;let n=P.activeChain;return n?(0,i.Ld)(P.chains,()=>{let i=P.chains.get(n)?.[e];r!==i&&(r=i,t(i))}):()=>{}},initialize(e){let t=e?.[0]?.chain;if(!t)throw Error("Chain is required to initialize ChainController");
32P.activeChain=t,e.forEach(e=>{P.chains.set(e.chain,{chain:e.chain,connectionControllerClient:e.connectionControllerClient,networkControllerClient:e.networkControllerClient,accountState:R,networkState:O})})},setMultiChainEnabled(e){P.multiChainEnabled=e},setChainNetworkData(e,t){if(!e)throw Error("Chain is required to update chain network data");let r=P.chains.get(e);r&&(r.networkState={...r.networkState,...t},P.chains.set(e,r),D.replaceState(r.networkState))},setChainAccountData(e,t){if(!e)throw Error("Chain is required to update chain account data");let r=P.chains.get(e);r&&(r.accountState={...r.accountState,...t},P.chains.set(e,r),ea.replaceState(r.accountState))},setAccountProp(e,t,r){this.setChainAccountData(P.multiChainEnabled?r:P.activeChain,{[e]:t})},setActiveChain(e){let t=e?P.chains.get(e):void 0;t&&(P.activeChain=t.chain,P.activeCaipNetwork=P.chains.get(t.chain)?.networkState?.requestedCaipNetworks?.[0],k.set({activeChain:e}))},setActiveConnector(e){e&&(P.activeConnector=(0,i.iH)(e))},getNetworkControllerClient(){let e=P.activeChain;if(!e)throw Error("Chain is required to get network controller client");let t=P.chains.get(e);if(!t)throw Error("Chain adapter not found");if(!t.networkControllerClient)throw Error("NetworkController client not set");return t.networkControllerClient},getConnectionControllerClient(){let e=P.activeChain;if(!e)throw Error("Chain is required to get connection controller client");let t=P.chains.get(e);if(!t)throw Error("Chain adapter not found");if(!t.connectionControllerClient)throw Error("ConnectionController client not set");return t.connectionControllerClient},getAccountProp(e){let t=(P.multiChainEnabled,P.activeChain);if(!t)return;let r=P.chains.get(t)?.accountState;if(r)return r[e]},getNetworkProp(e){let t=(P.multiChainEnabled,P.activeChain);if(!t)return;let r=P.chains.get(t)?.networkState;if(r)return r[e]},resetAccount(e){let t=P.multiChainEnabled?e:P.activeChain;if(!t)throw Error("Chain is required to set account prop");this.setChainAccountData(t,{isConnected:!1,smartAccountDeployed:!1,currentTab:0,caipAddress:void 0,address:void 0,balance:void 0,balanceSymbol:void 0,profileName:void 0,profileImage:void 0,addressExplorerUrl:void 0,tokenBalance:[],connectedWalletInfo:void 0,preferredAccountType:void 0,socialProvider:void 0,socialWindow:void 0,farcasterUrl:void 0})}},M=(0,i.sj)({supportsAllNetworks:!0,isDefaultCaipNetwork:!1,smartAccountEnabledNetworks:[]}),D={state:M,replaceState(e){Object.assign(M,e)},subscribeKey(e,t){let r;return N.subscribeChainProp("networkState",n=>{if(n){let i=n[e];r!==i&&(r=i,t(i))}})},_getClient:()=>N.getNetworkControllerClient(),initializeDefaultNetwork(){let e=this.getRequestedCaipNetworks();e.length>0&&this.setCaipNetwork(e[0])},setCaipNetwork(e){let t=N.state.multiChainEnabled?e?.chain:N.state.activeChain;if(!t)throw Error("chain is required to set active network");if(!e)throw Error("caipNetwork is required to set active network");N.state.activeCaipNetwork=e,N.state.activeChain=t,N.setChainNetworkData(t,{caipNetwork:e}),k.set({activeChain:t,selectedNetworkId:e?.id}),N.state.chains.get(t)?.networkState?.allowUnsupportedChain||this.checkIfSupportedNetwork()||this.showUnsupportedChainUI()},setDefaultCaipNetwork(e,t){let r=N.state.multiChainEnabled?t:N.state.activeChain;if(!r)throw Error("chain is required to set default network");N.state.activeCaipNetwork=e,N.state.activeChain=r,N.setChainNetworkData(r,{caipNetwork:e,isDefaultCaipNetwork:!0}),k.set({selectedNetworkId:e?.id,activeChain:t})},setRequestedCaipNetworks(e,t){N.setChainNetworkData(N.state.multiChainEnabled?t:N.state.activeChain,{requestedCaipNetworks:e})},setAllowUnsupportedChain(e,t){N.setChainNetworkData(t||N.state.activeChain,{allowUnsupportedChain:e})},setSmartAccountEnabledNetworks(e,t){N.setChainNetworkData(N.state.multiChainEnabled?t:N.state.activeChain,{smartAccountEnabledNetworks:e})},getRequestedCaipNetworks(e){let t;if(!N.state.activeChain)throw Error("activeChain is required to get requested networks");if(e){let r=N.state.multiChainEnabled?e:N.state.activeChain;if(!r)throw Error("chain is required to get requested networks");t=[r]}else t=N.state.multiChainEnabled?[...N.state.chains.keys()]:[N.state.activeChain];let r=[],n=[];
32return t.forEach(e=>{N.state.chains.get(e)?.networkState?.approvedCaipNetworkIds&&r.push(...N.state.chains.get(e)?.networkState?.approvedCaipNetworkIds||[]),N.state.chains.get(e)?.networkState?.requestedCaipNetworks&&n.push(...N.state.chains.get(e)?.networkState?.requestedCaipNetworks||[])}),l.sortRequestedNetworks(r,n)},async switchActiveNetwork(e){let t=N.getNetworkControllerClient();await t.switchCaipNetwork(e);let r=N.state.multiChainEnabled?e?.chain:N.state.activeChain;if(!r)throw Error("chain is required to switch active network");if(!e)throw Error("network is required to switch active network");N.state.activeCaipNetwork=e,N.state.activeChain=r,N.setChainNetworkData(r,{caipNetwork:e}),k.set({activeChain:r,selectedNetworkId:e.id}),e&&I.sendEvent({type:"track",event:"SWITCH_NETWORK",properties:{network:e.id}})},getApprovedCaipNetworkIds(e){if(e){let t=N.state.multiChainEnabled?e:N.state.activeChain;if(!t)throw Error("chain is required to get approved network IDs");return N.state.chains.get(t)?.networkState?.approvedCaipNetworkIds}let t=[];return Object.values(N.state.chains).forEach(e=>{e.networkState.approvedCaipNetworkIds&&t.push(...e.networkState?.approvedCaipNetworkIds||[])}),t},async setApprovedCaipNetworksData(e){let t=N.getNetworkControllerClient(),r=await t.getApprovedCaipNetworksData(),n=N.state.multiChainEnabled?e:N.state.activeChain;if(!n)throw Error("chain is required to set approved network data");N.setChainNetworkData(n,{approvedCaipNetworkIds:r?.approvedCaipNetworkIds,supportsAllNetworks:r?.supportsAllNetworks||!1})},checkIfSupportedNetwork(){let e=N.state.activeChain;if(!e)return!1;let t=N.state.chains.get(e)?.networkState?.caipNetwork,r=this.getRequestedCaipNetworks();return r?.some(e=>e.id===t?.id)},checkIfSmartAccountEnabled(){let e=o.p1.caipNetworkIdToNumber(N.state.activeCaipNetwork?.id),t=N.state.activeChain;if(!t)throw Error("activeChain is required to check if smart account is enabled");if(!e)return!1;let r=N.state.chains.get(t)?.networkState?.smartAccountEnabledNetworks||[];return!!r?.includes(e)},resetNetwork(){let e=N.state.activeChain;if(!e)throw Error("chain is required to reset network");N.state.chains.get(e)?.networkState?.isDefaultCaipNetwork||N.setChainNetworkData(e,{caipNetwork:void 0}),N.setChainNetworkData(e,{approvedCaipNetworkIds:void 0,supportsAllNetworks:!0,smartAccountEnabledNetworks:[]})},getSupportsAllNetworks(){let e=(N.state.multiChainEnabled,N.state.activeChain);if(!e)throw Error("chain is required to check if network supports all networks");return N.state.chains.get(e)?.networkState?.supportsAllNetworks},showUnsupportedChainUI(){setTimeout(()=>{ec.open({view:"UnsupportedChain"})},300)}},B=new d({baseUrl:l.getApiUrl(),clientId:null}),$=(0,i.sj)({page:1,count:0,featured:[],recommended:[],wallets:[],search:[],isAnalyticsEnabled:!1,excludedRDNS:[]}),U={state:$,subscribeKey:(e,t)=>(0,n.VW)($,e,t),_getApiHeaders(){let{projectId:e,sdkType:t,sdkVersion:r}=j.state;return{"x-project-id":e,"x-sdk-type":t,"x-sdk-version":r}},_filterOutExtensions:e=>j.state.isUniversalProvider?e.filter(e=>!!(e.mobile_link||e.desktop_link||e.webapp_link)):e,async _fetchWalletImage(e){let t=`${B.baseUrl}/getWalletImage/${e}`,r=await B.getBlob({path:t,headers:U._getApiHeaders()});v.setWalletImage(e,URL.createObjectURL(r))},async _fetchNetworkImage(e){let t=`${B.baseUrl}/public/getAssetImage/${e}`,r=await B.getBlob({path:t,headers:U._getApiHeaders()});v.setNetworkImage(e,URL.createObjectURL(r))},async _fetchConnectorImage(e){let t=`${B.baseUrl}/public/getAssetImage/${e}`,r=await B.getBlob({path:t,headers:U._getApiHeaders()});v.setConnectorImage(e,URL.createObjectURL(r))},async _fetchCurrencyImage(e){let t=`${B.baseUrl}/public/getCurrencyImage/${e}`,r=await B.getBlob({path:t,headers:U._getApiHeaders()});v.setCurrencyImage(e,URL.createObjectURL(r))},async _fetchTokenImage(e){let t=`${B.baseUrl}/public/getTokenImage/${e}`,r=await B.getBlob({path:t,headers:U._getApiHeaders()});v.setTokenImage(e,URL.createObjectURL(r))},async fetchNetworkImages(){let e=D.getRequestedCaipNetworks(),t=e?.map(({imageId:e})=>
32e).filter(Boolean);t&&await Promise.allSettled(t.map(e=>U._fetchNetworkImage(e)))},async fetchConnectorImages(){let{connectors:e}=A.state,t=e.map(({imageId:e})=>e).filter(Boolean);await Promise.allSettled(t.map(e=>U._fetchConnectorImage(e)))},async fetchCurrencyImages(e=[]){await Promise.allSettled(e.map(e=>U._fetchCurrencyImage(e)))},async fetchTokenImages(e=[]){await Promise.allSettled(e.map(e=>U._fetchTokenImage(e)))},async fetchFeaturedWallets(){let{featuredWalletIds:e}=j.state;if(e?.length){let{data:t}=await B.get({path:"/getWallets",headers:U._getApiHeaders(),params:{page:"1",entries:e?.length?String(e.length):"4",include:e?.join(",")}});t.sort((t,r)=>e.indexOf(t.id)-e.indexOf(r.id));let r=t.map(e=>e.image_id).filter(Boolean);await Promise.allSettled(r.map(e=>U._fetchWalletImage(e))),$.featured=t}},async fetchRecommendedWallets(){let{includeWalletIds:e,excludeWalletIds:t,featuredWalletIds:r}=j.state,n=[...t??[],...r??[]].filter(Boolean),{data:i,count:o}=await B.get({path:"/getWallets",headers:U._getApiHeaders(),params:{page:"1",chains:D.state.caipNetwork?.id,entries:"4",include:e?.join(","),exclude:n?.join(",")}}),a=w.getRecentWallets(),s=i.map(e=>e.image_id).filter(Boolean),c=a.map(e=>e.image_id).filter(Boolean);await Promise.allSettled([...s,...c].map(e=>U._fetchWalletImage(e))),$.recommended=i,$.count=o??0},async fetchWallets({page:e}){let{includeWalletIds:t,excludeWalletIds:r,featuredWalletIds:n}=j.state,i=[...$.recommended.map(({id:e})=>e),...r??[],...n??[]].filter(Boolean),{data:o,count:a}=await B.get({path:"/getWallets",headers:U._getApiHeaders(),params:{page:String(e),entries:"40",chains:D.state.caipNetwork?.id,include:t?.join(","),exclude:i.join(",")}}),s=o.slice(0,20).map(e=>e.image_id).filter(Boolean);await Promise.allSettled(s.map(e=>U._fetchWalletImage(e))),$.wallets=l.uniqueBy([...$.wallets,...U._filterOutExtensions(o)],"id"),$.count=a>$.count?a:$.count,$.page=e},async searchWalletByIds({ids:e}){let{data:t}=await B.get({path:"/getWallets",headers:U._getApiHeaders(),params:{page:"1",entries:String(e.length),chains:D.state.caipNetwork?.id,include:e?.join(",")}});t&&t.forEach(e=>{e?.rdns&&$.excludedRDNS.push(e.rdns)})},async searchWallet({search:e}){let{includeWalletIds:t,excludeWalletIds:r}=j.state;$.search=[];let{data:n}=await B.get({path:"/getWallets",headers:U._getApiHeaders(),params:{page:"1",entries:"100",search:e?.trim(),chains:D.state.caipNetwork?.id,include:t?.join(","),exclude:r?.join(",")}}),i=n.map(e=>e.image_id).filter(Boolean);await Promise.allSettled([...i.map(e=>U._fetchWalletImage(e)),l.wait(300)]),$.search=U._filterOutExtensions(n)},async reFetchWallets(){$.page=1,$.wallets=[],await U.fetchFeaturedWallets(),await U.fetchRecommendedWallets()},prefetch(){let e=[U.fetchFeaturedWallets(),U.fetchRecommendedWallets(),U.fetchNetworkImages(),U.fetchConnectorImages()];void 0===j.state.enableAnalytics&&e.push(U.fetchAnalyticsConfig()),$.prefetchPromise=Promise.race([Promise.allSettled(e),l.wait(3e3)])},async fetchAnalyticsConfig(){let{isAnalyticsEnabled:e}=await B.get({path:"/getAnalyticsConfig",headers:U._getApiHeaders()});j.setEnableAnalytics(e)}},L=(0,i.sj)({projectId:"",sdkType:"w3m",sdkVersion:"html-wagmi-undefined"}),j={state:L,subscribeKey:(e,t)=>(0,n.VW)(L,e,t),setProjectId(e){L.projectId=e},setAllWallets(e){L.allWallets=e},setIncludeWalletIds(e){L.includeWalletIds=e},setExcludeWalletIds(e){L.excludeWalletIds=e,e&&U.searchWalletByIds({ids:e})},setFeaturedWalletIds(e){L.featuredWalletIds=e},setTokens(e){L.tokens=e},setTermsConditionsUrl(e){L.termsConditionsUrl=e},setPrivacyPolicyUrl(e){L.privacyPolicyUrl=e},setCustomWallets(e){L.customWallets=e},setIsSiweEnabled(e){L.isSiweEnabled=e},setIsUniversalProvider(e){L.isUniversalProvider=e},setEnableAnalytics(e){L.enableAnalytics=e},setSdkVersion(e){L.sdkVersion=e},setMetadata(e){L.metadata=e},setOnrampEnabled(e){L.enableOnramp=e},setDisableAppend(e){L.disableAppend=e},setEIP6963Enabled(e){L.enableEIP6963=e},setHasMultipleAddresses(e){L.hasMultipleAddresses=e},setEnableSwaps(e){L.enableSwaps=e}},z={purchaseCurrencies:[{id:"2b92315d-eab7-5bef-84fa-089a131333f5",name:"USD Coin",symbol:"USDC",networks:[{name:"ethereum-mainnet",display_name:"Ethereum",chain_id:"1",contract_address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"polygon-mainnet",display_name:"Polygon",chain_id:"137",contract_address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}]}
32,{id:"2b92315d-eab7-5bef-84fa-089a131333f5",name:"Ether",symbol:"ETH",networks:[{name:"ethereum-mainnet",display_name:"Ethereum",chain_id:"1",contract_address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"polygon-mainnet",display_name:"Polygon",chain_id:"137",contract_address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}]}],paymentCurrencies:[{id:"USD",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]},{id:"EUR",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]}]},F=l.getBlockchainApiUrl(),H=(0,i.sj)({clientId:null,api:new d({baseUrl:F,clientId:null})}),q={state:H,fetchIdentity:({address:e})=>H.api.get({path:`/v1/identity/${e}`,params:{projectId:j.state.projectId,sender:ea.state.address}}),fetchTransactions:({account:e,projectId:t,cursor:r,onramp:n,signal:i,cache:o})=>H.api.get({path:`/v1/account/${e}/history`,params:{projectId:t,cursor:r,onramp:n},signal:i,cache:o}),fetchSwapQuote:({projectId:e,amount:t,userAddress:r,from:n,to:i,gasPrice:o})=>H.api.get({path:"/v1/convert/quotes",headers:{"Content-Type":"application/json"},params:{projectId:e,amount:t,userAddress:r,from:n,to:i,gasPrice:o}}),fetchSwapTokens:({projectId:e,chainId:t})=>H.api.get({path:"/v1/convert/tokens",params:{projectId:e,chainId:t}}),fetchTokenPrice:({projectId:e,addresses:t})=>H.api.post({path:"/v1/fungible/price",body:{projectId:e,currency:"usd",addresses:t},headers:{"Content-Type":"application/json"}}),fetchSwapAllowance({projectId:e,tokenAddress:t,userAddress:r}){let{sdkType:n,sdkVersion:i}=j.state;return H.api.get({path:"/v1/convert/allowance",params:{projectId:e,tokenAddress:t,userAddress:r},headers:{"Content-Type":"application/json","x-sdk-type":n,"x-sdk-version":i}})},fetchGasPrice({projectId:e,chainId:t}){let{sdkType:r,sdkVersion:n}=j.state;return H.api.get({path:"/v1/convert/gas-price",headers:{"Content-Type":"application/json","x-sdk-type":r,"x-sdk-version":n},params:{projectId:e,chainId:t}})},generateSwapCalldata:({amount:e,from:t,projectId:r,to:n,userAddress:i})=>H.api.post({path:"/v1/convert/build-transaction",headers:{"Content-Type":"application/json"},body:{amount:e,eip155:{slippage:c.CONVERT_SLIPPAGE_TOLERANCE},from:t,projectId:r,to:n,userAddress:i}}),generateApproveCalldata({from:e,projectId:t,to:r,userAddress:n}){let{sdkType:i,sdkVersion:o}=j.state;return H.api.get({path:"/v1/convert/build-approve",headers:{"Content-Type":"application/json","x-sdk-type":i,"x-sdk-version":o},params:{projectId:t,userAddress:n,from:e,to:r}})},async getBalance(e,t,r){let{sdkType:n,sdkVersion:i}=j.state;return H.api.get({path:`/v1/account/${e}/balance`,headers:{"x-sdk-type":n,"x-sdk-version":i},params:{currency:"usd",projectId:j.state.projectId,chainId:t,forceUpdate:r}})},lookupEnsName:async e=>H.api.get({path:`/v1/profile/account/${e}${o.bq.WC_NAME_SUFFIX}`,params:{projectId:j.state.projectId}}),reverseLookupEnsName:async({address:e})=>H.api.get({path:`/v1/profile/reverse/${e}`,params:{sender:ea.state.address,projectId:j.state.projectId}}),getEnsNameSuggestions:async e=>H.api.get({path:`/v1/profile/suggestions/${e}`,params:{projectId:j.state.projectId}}),registerEnsName:async({coinType:e,address:t,message:r,signature:n})=>H.api.post({path:"/v1/profile/account",body:{coin_type:e,address:t,message:r,signature:n},headers:{"Content-Type":"application/json"}}),generateOnRampURL:async({destinationWallets:e,partnerUserId:t,defaultNetwork:r,purchaseAmount:n,paymentAmount:i})=>(await H.api.post({path:"/v1/generators/onrampurl",params:{projectId:j.state.projectId},body:{destinationWallets:e,defaultNetwork:r,partnerUserId:t,defaultExperience:"buy",presetCryptoAmount:n,presetFiatAmount:i}})).url,async getOnrampOptions(){try{return await H.api.get({path:"/v1/onramp/options",params:{projectId:j.state.projectId}})}catch(e){return z}},async getOnrampQuote({purchaseCurrency:e,paymentCurrency:t,amount:r,network:n}){try{return await H.api.post({path:"/v1/onramp/quote",params:{projectId:j.state.projectId},body:{purchaseCurrency:e,paymentCurrency:t,amount:r,network:n}})}catch(e){return{coinbaseFee:{amount:r,currency:t.id},networkFee:{amount:r,currency:t.id},paymentSubtotal:{amount:r,currency:t.id},paymentTotal:{amount:r,currency:t.id},purchaseAmount:{amount:r,currency:t.id},quoteId:"mocked-quote-id"}}},setClientId(e){H.clientId=e,H.api=new d({baseUrl:F,clientId:e})}},W=(0,i.sj)({message:"",variant:"success",open:!1}),V={state:W,subscribeKey:(e,t)=>(0,n.VW)(W,e,t),showLoading(e){W.message=e,W.variant="loading",W.open=!0},showSuccess(e){W.message=e,W.variant="success",W.open=!0},showError(e){let t=l.parseError(e);W.message=t,W.variant="error",W.open=!0},hide(){W.open=!1}};var Z=r(31083);let G=(0,i.sj)({transactions:[],coinbaseTransactions:{},transactionsByYear:{},lastNetworkInView:void 0,loading:!1,empty:!1,next:void 0}),K={state:G,subscribe:e=>(0,i.Ld)(G,()=>e(G)),setLastNetworkInView(e){G.lastNetworkInView=e},async fetchTransactions(e,t){let{projectId:r}=j.state;if(!r||!e)throw Error("Transactions can't be fetched without a projectId and an accountAddress");G.loading=!0;try{let n=await q.fetchTransactions({account:e,projectId:r,cursor:G.next,onramp:t,cache:"coinbase"===t?"no-cache":void 0}),i=this.filterSpamTransactions(n.data),o=this.filterByConnectedChain(i),a=[...G.transactions,...o];G.loading=!1,"coinbase"===t?G.coinbaseTransactions=this.groupTransactionsByYearAndMonth(G.coinbaseTransactions,n.data):(G.transactions=a,G.transactionsByYear=this.groupTransactionsByYearAndMonth(G.transactionsByYear,o)),G.empty=0===a.length,G.next=n.next?n.next:void 0}catch(t){I.sendEvent({type:"track",event:"ERROR_FETCH_TRANSACTIONS",properties:{address:e,projectId:r,cursor:G.next,isSmartAccount:ea.state.preferredAccountType===Z.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}),V.showError("Failed to fetch transactions"),G.loading=!1,G.empty=!0,G.next=void 0}},groupTransactionsByYearAndMonth:(e={},t=[])=>(t.forEach(t=>{let r=new Date(t.metadata.minedAt).getFullYear(),n=new Date(t.metadata.minedAt).getMonth(),i=e[r]??{},o=(i[n]??[]).filter(e=>e.id!==t.id);e[r]={...i,[n]:[...o,t].sort((e,t)=>
32new Date(t.metadata.minedAt).getTime()-new Date(e.metadata.minedAt).getTime())}}),e),filterSpamTransactions:e=>e.filter(e=>!e.transfers.every(e=>e.nft_info?.flags.is_spam===!0)),filterByConnectedChain(e){let t=D.state.caipNetwork?.id;return e.filter(e=>e.metadata.chain===t)},clearCursor(){G.next=void 0},resetTransactions(){G.transactions=[],G.transactionsByYear={},G.lastNetworkInView=void 0,G.loading=!1,G.empty=!1,G.next=void 0}},Y=(0,i.sj)({wcError:!1,buffering:!1}),Q={state:Y,subscribeKey:(e,t)=>(0,n.VW)(Y,e,t),_getClient:()=>N.getConnectionControllerClient(),setClient(e){Y._client=(0,i.iH)(e)},async connectWalletConnect(){w.setConnectedConnector("WALLET_CONNECT"),await this._getClient().connectWalletConnect(e=>{Y.wcUri=e,Y.wcPairingExpiry=l.getPairingExpiry()})},async connectExternal(e,t){await this._getClient().connectExternal?.(e),N.setActiveChain(t),w.setConnectedConnector(e.type)},async reconnectExternal(e){await this._getClient().reconnectExternal?.(e),w.setConnectedConnector(e.type)},async setPreferredAccountType(e){ec.setLoading(!0);let t=A.getAuthConnector();t&&(await t?.provider.setPreferredAccount(e),await this.reconnectExternal(t),ec.setLoading(!1),I.sendEvent({type:"track",event:"SET_PREFERRED_ACCOUNT_TYPE",properties:{accountType:e,network:D.state.caipNetwork?.id||""}}))},async signMessage(e){return this._getClient().signMessage(e)},parseUnits(e,t){return this._getClient().parseUnits(e,t)},formatUnits(e,t){return this._getClient().formatUnits(e,t)},async sendTransaction(e){return this._getClient().sendTransaction(e)},async estimateGas(e){return this._getClient().estimateGas(e)},async writeContract(e){return this._getClient().writeContract(e)},async getEnsAddress(e){return this._getClient().getEnsAddress(e)},async getEnsAvatar(e){return this._getClient().getEnsAvatar(e)},checkInstalled(e){return this._getClient().checkInstalled?.(e)},resetWcConnection(){Y.wcUri=void 0,Y.wcPairingExpiry=void 0,Y.wcLinking=void 0,Y.recentWallet=void 0,K.resetTransactions(),w.deleteWalletConnectDeepLink()},setWcLinking(e){Y.wcLinking=e},setWcError(e){Y.wcError=e,Y.buffering=!1},setRecentWallet(e){Y.recentWallet=e},setBuffering(e){Y.buffering=e},async disconnect(){let e=this._getClient();try{await e.disconnect(),w.removeConnectedWalletImageUrl(),this.resetWcConnection()}catch(e){throw Error("Failed to disconnect")}}},J={async getTokenList(){let e=D.state.caipNetwork,t=await q.fetchSwapTokens({chainId:e?.id,projectId:j.state.projectId});return t?.tokens?.map(e=>({...e,eip2612:!1,quantity:{decimals:"0",numeric:"0"},price:0,value:0}))||[]},async fetchGasPrice(){let e=j.state.projectId,t=D.state.caipNetwork;return t?await q.fetchGasPrice({projectId:e,chainId:t.id}):null},async fetchSwapAllowance({tokenAddress:e,userAddress:t,sourceTokenAmount:r,sourceTokenDecimals:n}){let i=j.state.projectId,o=await q.fetchSwapAllowance({projectId:i,tokenAddress:e,userAddress:t});if(o?.allowance&&r&&n){let e=Q.parseUnits(r,n);return BigInt(o.allowance)>=e}return!1},async getMyTokensWithBalance(e){let t=ea.state.address,r=D.state.caipNetwork;if(!t||!r)return[];let n=(await q.getBalance(t,r.id,e)).balances.filter(e=>"0"!==e.quantity.decimals);return ea.setTokenBalance(n),this.mapBalancesToSwapTokens(n)},mapBalancesToSwapTokens:e=>e?.map(e=>({...e,address:e?.address?e.address:`${e.chainId}:${c.NATIVE_TOKEN_ADDRESS}`,decimals:parseInt(e.quantity.decimals,10),logoUri:e.iconUrl,eip2612:!1}))||[]},X=(0,i.sj)({view:"Connect",history:["Connect"],transactionStack:[]}),ee={state:X,subscribeKey:(e,t)=>(0,n.VW)(X,e,t),pushTransactionStack(e){X.transactionStack.push(e)},popTransactionStack(e){let t=X.transactionStack.pop();t&&(e?(this.goBack(),t?.onCancel?.()):(t.goBack?this.goBack():t.view&&this.reset(t.view),t?.onSuccess?.()))},push(e,t){e!==X.view&&(X.view=e,X.history.push(e),X.data=t)},reset(e){X.view=e,X.history=[e]},replace(e,t){X.history.length>=1&&X.history.at(-1)!==e&&(X.view=e,X.history[X.history.length-1]=e,X.data=t)},goBack(){if(X.history.length>1){X.history.pop();let[e]=X.history.slice(-1);e&&(X.view=e)}},goBackToIndex(e){if(X.history.length>1){X.history=X.history.slice(0,e+1);let[t]=X.history.slice(-1);t&&(X.view=t)}}},et={getGasPriceInEther:(e,t)=>Number(t*e)/1e18,getGasPriceInUSD(e,t,r){let n=et.getGasPriceInEther(t,r);return o.C6.bigNumber(e).multipliedBy(n).toNumber()},getPriceImpact({sourceTokenAmount:e,sourceTokenPriceInUSD:t,toTokenPriceInUSD:r,toTokenAmount:n}){let i=o.C6.bigNumber(e).multipliedBy(t),a=o.C6.bigNumber(n).multipliedBy(r);return i.minus(a).dividedBy(i).multipliedBy(100).toNumber()},getMaxSlippage(e,t){let r=o.C6.bigNumber(e).dividedBy(100);return o.C6.multiply(t,r).toNumber()},getProviderFee:(e,t=.0085)=>o.C6.bigNumber(e).multipliedBy(t).toString(),isInsufficientNetworkTokenForGas:(e,t)=>!!o.C6.bigNumber(e).isZero()||o.C6.bigNumber(o.C6.bigNumber(t||"0")).isGreaterThan(e),isInsufficientSourceTokenForSwap(e,t,r){let n=r?.find(e=>e.address===t)?.quantity?.numeric;return o.C6.bigNumber(n||"0").isLessThan(e)},getToTokenAmount({sourceToken:e,toToken:t,sourceTokenPrice:r,toTokenPrice:n,sourceTokenAmount:i}){if("0"===i||!e||!t)return"0";let a=e.decimals,s=t.decimals;if(n<=0)return"0";let c=o.C6.bigNumber(i).multipliedBy(.0085),l=o.C6.bigNumber(i).minus(c).multipliedBy(o.C6.bigNumber(10).pow(a)),u=o.C6.bigNumber(r).dividedBy(n),d=a-s;return l.multipliedBy(u).dividedBy(o.C6.bigNumber(10).pow(d)).dividedBy(o.C6.bigNumber(10).pow(s)).toFixed(s).toString()}},er={initializing:!1,initialized:!1,loadingPrices:!1,loadingQuote:!1,loadingApprovalTransaction:!1,loadingBuildTransaction:!1,loadingTransaction:!1,fetchError:!1,approvalTransaction:void 0,swapTransaction:void 0,transactionError:void 0,sourceToken:void 0,sourceTokenAmount:"",sourceTokenPriceInUSD:0,toToken:void 0,toTokenAmount:"",toTokenPriceInUSD:0,networkPrice:"0",networkBalanceInUSD:"0",networkTokenSymbol:"",inputError:void 0,slippage:c.CONVERT_SLIPPAGE_TOLERANCE,tokens:void 0,popularTokens:void 0,suggestedTokens:void 0,foundTokens:void 0,myTokensWithBalance:void 0,tokensPriceMap:{},gasFee:"0",gasPriceInUSD:0,priceImpact:void 0,maxSlippage:void 0,providerFee:void 0},en=(0,i.sj)(er),ei={state:en,subscribe:e=>(0,i.Ld)(en,()=>e(en)),subscribeKey:(e,t)=>(0,n.VW)(en,e,t),getParams(){let e=D.state.caipNetwork,t=ea.state.address,r=`${e?.id}:${c.NATIVE_TOKEN_ADDRESS}`,n=w.getConnectedConnector(),i=A.getAuthConnector();if(!t)throw Error("No address found to swap the tokens from.");let a=ea.state.caipAddress,s=!en.toToken?.address||!en.toToken?.decimals,l=!en.sourceToken?.address||!en.sourceToken?.decimals||!o.C6.bigNumber(en.sourceTokenAmount).isGreaterThan(0),u=!en.sourceTokenAmount;return{networkAddress:r,fromAddress:t,fromCaipAddress:ea.state.caipAddress,sourceTokenAddress:en.sourceToken?.address,toTokenAddress:en.toToken?.address,toTokenAmount:en.toTokenAmount,toTokenDecimals:en.toToken?.decimals,sourceTokenAmount:en.sourceTokenAmount,sourceTokenDecimals:en.sourceToken?.decimals,invalidToToken:s,invalidSourceToken:l,invalidSourceTokenAmount:u,availableToSwap:a&&!s&&!l&&!u,isAuthConnector:i?.walletFeatures&&"AUTH"===n}},setSourceToken(e){if(!e){en.sourceToken=e,en.sourceTokenAmount="",en.sourceTokenPriceInUSD=0;return}en.sourceToken=e,this.setTokenPrice(e.address,"sourceToken")},setSourceTokenAmount(e){en.sourceTokenAmount=e},setToToken(e){if(!e){en.toToken=e,en.toTokenAmount="",en.toTokenPriceInUSD=0;return}en.toToken=e,this.setTokenPrice(e.address,"toToken")},setToTokenAmount(e){en.toTokenAmount=e?o.C6.formatNumberToLocalString(e,6):""},async setTokenPrice(e,t){let{availableToSwap:r}=this.getParams(),n=en.tokensPriceMap[e]||0;n||(en.loadingPrices=!0,n=await this.getAddressPrice(e)),"sourceToken"===t?en.sourceTokenPriceInUSD=n:"toToken"===t&&(en.toTokenPriceInUSD=n),en.loadingPrices&&(en.loadingPrices=!1,r&&this.swapTokens())},switchTokens(){if(en.initializing||!en.initialized)return;let e=en.toToken?{...en.toToken}:void 0,t=en.sourceToken?{...en.sourceToken}:void 0,r=e&&""===en.toTokenAmount?"1":en.toTokenAmount;this.setSourceToken(e),this.setToToken(t),this.setSourceTokenAmount(r),this.setToTokenAmount(""),this.swapTokens()},resetState(){en.myTokensWithBalance=er.myTokensWithBalance,en.tokensPriceMap=er.tokensPriceMap,en.initialized=er.initialized,en.sourceToken=er.sourceToken,en.sourceTokenAmount=er.sourceTokenAmount,en.sourceTokenPriceInUSD=er.sourceTokenPriceInUSD,en.toToken=er.toToken,en.toTokenAmount=er.toTokenAmount,en.toTokenPriceInUSD=er.toTokenPriceInUSD,en.networkPrice=er.networkPrice,en.networkTokenSymbol=er.networkTokenSymbol,en.networkBalanceInUSD=er.networkBalanceInUSD,en.inputError=er.inputError},resetValues(){let{networkAddress:e}=this.getParams(),t=en.tokens?.find(t=>t.address===e);this.setSourceToken(t),this.setToToken(void 0)},getApprovalLoadingState:()=>en.loadingApprovalTransaction,clearError(){en.transactionError=void 0},async initializeState(){if(!en.initializing){if(en.initializing=!0,!en.initialized)try{await this.fetchTokens(),en.initialized=!0}catch(e){en.initialized=!1,V.showError("Failed to initialize swap"),ee.goBack()}en.initializing=!1}},async fetchTokens(){let{networkAddress:e}=this.getParams();await this.getTokenList(),await this.getNetworkTokenPrice(),await this.getMyTokensWithBalance();let t=en.tokens?.find(t=>t.address===e);t&&(en.networkTokenSymbol=t.symbol,this.setSourceToken(t),this.setSourceTokenAmount("1"))},async getTokenList(){let e=await J.getTokenList();en.tokens=e,en.popularTokens=e.sort((e,t)=>
32e.symbol<t.symbol?-1:e.symbol>t.symbol?1:0),en.suggestedTokens=e.filter(e=>!!c.SWAP_SUGGESTED_TOKENS.includes(e.symbol),{})},async getAddressPrice(e){let t=en.tokensPriceMap[e];if(t)return t;let r=(await q.fetchTokenPrice({projectId:j.state.projectId,addresses:[e]})).fungibles||[],n=[...en.tokens||[],...en.myTokensWithBalance||[]],i=n?.find(t=>t.address===e)?.symbol,o=parseFloat((r.find(e=>e.symbol.toLowerCase()===i?.toLowerCase())?.price||0).toString());return en.tokensPriceMap[e]=o,o},async getNetworkTokenPrice(){let{networkAddress:e}=this.getParams(),t=await q.fetchTokenPrice({projectId:j.state.projectId,addresses:[e]}),r=t.fungibles?.[0],n=r?.price.toString()||"0";en.tokensPriceMap[e]=parseFloat(n),en.networkTokenSymbol=r?.symbol||"",en.networkPrice=n},async getMyTokensWithBalance(e){let t=await J.getMyTokensWithBalance(e);t&&(await this.getInitialGasPrice(),this.setBalances(t))},setBalances(e){let{networkAddress:t}=this.getParams(),r=D.state.caipNetwork;if(!r)return;let n=e.find(e=>e.address===t);e.forEach(e=>{en.tokensPriceMap[e.address]=e.price||0}),en.myTokensWithBalance=e.filter(e=>e.address.startsWith(r.id)),en.networkBalanceInUSD=n?o.C6.multiply(n.quantity.numeric,n.price).toString():"0"},async getInitialGasPrice(){let e=await J.fetchGasPrice();if(!e)return{gasPrice:null,gasPriceInUsd:null};let t=e.standard,r=BigInt(t),n=BigInt(15e4),i=et.getGasPriceInUSD(en.networkPrice,n,r);return en.gasFee=t,en.gasPriceInUSD=i,{gasPrice:r,gasPriceInUSD:en.gasPriceInUSD}},async swapTokens(){let e=ea.state.address,t=en.sourceToken,r=en.toToken,n=o.C6.bigNumber(en.sourceTokenAmount).isGreaterThan(0);if(!r||!t||en.loadingPrices||!n)return;en.loadingQuote=!0;let i=o.C6.bigNumber(en.sourceTokenAmount).multipliedBy(10**t.decimals),a=await q.fetchSwapQuote({userAddress:e,projectId:j.state.projectId,from:t.address,to:r.address,gasPrice:en.gasFee,amount:i.toString()});en.loadingQuote=!1;let s=a?.quotes?.[0]?.toAmount;if(!s)return;let c=o.C6.bigNumber(s).dividedBy(10**r.decimals).toString();this.setToTokenAmount(c),this.hasInsufficientToken(en.sourceTokenAmount,t.address)?en.inputError="Insufficient balance":(en.inputError=void 0,this.setTransactionDetails())},async getTransaction(){let{fromCaipAddress:e,availableToSwap:t}=this.getParams(),r=en.sourceToken,n=en.toToken;if(e&&t&&r&&n&&!en.loadingQuote)try{let t;return en.loadingBuildTransaction=!0,t=await J.fetchSwapAllowance({userAddress:e,tokenAddress:r.address,sourceTokenAmount:en.sourceTokenAmount,sourceTokenDecimals:r.decimals})?await this.createSwapTransaction():await this.createAllowanceTransaction(),en.loadingBuildTransaction=!1,en.fetchError=!1,t}catch(e){ee.goBack(),V.showError("Failed to check allowance"),en.loadingBuildTransaction=!1,en.approvalTransaction=void 0,en.swapTransaction=void 0,en.fetchError=!0;return}},async createAllowanceTransaction(){let{fromCaipAddress:e,fromAddress:t,sourceTokenAddress:r,toTokenAddress:n}=this.getParams();if(e&&n){if(!r)throw Error("createAllowanceTransaction - No source token address found.");try{let i=await q.generateApproveCalldata({projectId:j.state.projectId,from:r,to:n,userAddress:e}),o=await Q.estimateGas({address:t,to:l.getPlainAddress(i.tx.to),data:i.tx.data}),a={data:i.tx.data,to:l.getPlainAddress(i.tx.from),gas:o,gasPrice:BigInt(i.tx.eip155.gasPrice),value:BigInt(i.tx.value),toAmount:en.toTokenAmount};return en.swapTransaction=void 0,en.approvalTransaction=a,a}catch(e){ee.goBack(),V.showError("Failed to create approval transaction"),en.approvalTransaction=void 0,en.swapTransaction=void 0,en.fetchError=!0;return}}},async createSwapTransaction(){let{networkAddress:e,fromCaipAddress:t,sourceTokenAmount:r}=this.getParams(),n=en.sourceToken,i=en.toToken;if(!t||!r||!n||!i)return;let o=Q.parseUnits(r,n.decimals).toString();try{let r=await q.generateSwapCalldata({projectId:j.state.projectId,userAddress:t,from:n.address,to:i.address,amount:o}),a=n.address===e,s=BigInt(r.tx.eip155.gas),c=BigInt(r.tx.eip155.gasPrice),u={data:r.tx.data,to:l.getPlainAddress(r.tx.to),gas:s,gasPrice:c,value:a?BigInt(o):BigInt("0"),toAmount:en.toTokenAmount};return en.gasPriceInUSD=et.getGasPriceInUSD(en.networkPrice,s,c),en.approvalTransaction=void 0,en.swapTransaction=u,u}catch(e){ee.goBack(),V.showError("Failed to create transaction"),en.approvalTransaction=void 0,en.swapTransaction=void 0,en.fetchError=!0;return}},async sendTransactionForApproval(e){let{fromAddress:t,isAuthConnector:r}=this.getParams();en.loadingApprovalTransaction=!0;let n="Approve limit increase in your wallet";r?ee.pushTransactionStack({view:null,goBack:!0,onSuccess(){V.showLoading(n)}}):V.showLoading(n);try{await Q.sendTransaction({address:t,to:e.to,data:e.data,value:BigInt(e.value),gasPrice:BigInt(e.gasPrice)}),await this.swapTokens(),await this.getTransaction(),en.approvalTransaction=void 0,en.loadingApprovalTransaction=!1}catch(e){en.transactionError=e?.shortMessage,en.loadingApprovalTransaction=!1,V.showError(e?.shortMessage||"Transaction error")}},async sendTransactionForSwap(e){if(!e)return;let{fromAddress:t,toTokenAmount:r,isAuthConnector:n}=this.getParams();en.loadingTransaction=!0;let i=`Swapping ${en.sourceToken?.symbol} to ${o.C6.formatNumberToLocalString(r,3)} ${en.toToken?.symbol}`,a=`Swapped ${en.sourceToken?.symbol} to ${o.C6.formatNumberToLocalString(r,3)} ${en.toToken?.symbol}`;n?ee.pushTransactionStack({view:"Account",goBack:!1,onSuccess(){V.showLoading(i),ei.resetState()}}
32):V.showLoading("Confirm transaction in your wallet");try{let r=[en.sourceToken?.address,en.toToken?.address].join(","),i=await Q.sendTransaction({address:t,to:e.to,data:e.data,gas:e.gas,gasPrice:BigInt(e.gasPrice),value:e.value});return en.loadingTransaction=!1,V.showSuccess(a),I.sendEvent({type:"track",event:"SWAP_SUCCESS",properties:{network:D.state.caipNetwork?.id||"",swapFromToken:this.state.sourceToken?.symbol||"",swapToToken:this.state.toToken?.symbol||"",swapFromAmount:this.state.sourceTokenAmount||"",swapToAmount:this.state.toTokenAmount||"",isSmartAccount:ea.state.preferredAccountType===Z.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}),ei.resetState(),n||ee.replace("Account"),ei.getMyTokensWithBalance(r),i}catch(e){en.transactionError=e?.shortMessage,en.loadingTransaction=!1,V.showError(e?.shortMessage||"Transaction error"),I.sendEvent({type:"track",event:"SWAP_ERROR",properties:{network:D.state.caipNetwork?.id||"",swapFromToken:this.state.sourceToken?.symbol||"",swapToToken:this.state.toToken?.symbol||"",swapFromAmount:this.state.sourceTokenAmount||"",swapToAmount:this.state.toTokenAmount||"",isSmartAccount:ea.state.preferredAccountType===Z.y_.ACCOUNT_TYPES.SMART_ACCOUNT}});return}},hasInsufficientToken(e,t){let r=et.isInsufficientSourceTokenForSwap(e,t,en.myTokensWithBalance);return et.isInsufficientNetworkTokenForGas(en.networkBalanceInUSD,en.gasPriceInUSD)||r},setTransactionDetails(){let{toTokenAddress:e,toTokenDecimals:t}=this.getParams();e&&t&&(en.gasPriceInUSD=et.getGasPriceInUSD(en.networkPrice,BigInt(en.gasFee),BigInt(15e4)),en.priceImpact=et.getPriceImpact({sourceTokenAmount:en.sourceTokenAmount,sourceTokenPriceInUSD:en.sourceTokenPriceInUSD,toTokenPriceInUSD:en.toTokenPriceInUSD,toTokenAmount:en.toTokenAmount}),en.maxSlippage=et.getMaxSlippage(en.slippage,en.toTokenAmount),en.providerFee=et.getProviderFee(en.sourceTokenAmount))}},eo=(0,i.sj)({isConnected:!1,currentTab:0,tokenBalance:[],smartAccountDeployed:!1,addressLabels:new Map,allAccounts:[]}),ea={state:eo,replaceState(e){Object.assign(eo,e)},subscribe:e=>N.subscribeChainProp("accountState",t=>{if(t)return e(t)}),subscribeKey(e,t){let r;return N.subscribeChainProp("accountState",n=>{if(n){let i=n[e];r!==i&&(r=i,t(i))}})},setIsConnected(e,t){N.setAccountProp("isConnected",e,t)},setCaipAddress(e,t){let r=e?l.getPlainAddress(e):void 0;N.setAccountProp("caipAddress",e,t),N.setAccountProp("address",r,t)},setBalance(e,t,r){N.setAccountProp("balance",e,r),N.setAccountProp("balanceSymbol",t,r)},setProfileName(e,t){N.setAccountProp("profileName",e,t)},setProfileImage(e,t){N.setAccountProp("profileImage",e,t)},setAddressExplorerUrl(e,t){N.setAccountProp("addressExplorerUrl",e,t)},setSmartAccountDeployed(e,t){N.setAccountProp("smartAccountDeployed",e,t)},setCurrentTab(e,t){N.setAccountProp("currentTab",e,t)},setTokenBalance(e,t){e&&N.setAccountProp("tokenBalance",e,t)},setShouldUpdateToAddress(e,t){N.setAccountProp("shouldUpdateToAddress",e,t)},setAllAccounts(e,t){N.setAccountProp("allAccounts",e,t)},addAddressLabel(e,t){let r=N.getAccountProp("addressLabels")||new Map;r.set(e,t),N.setAccountProp("addressLabels",r,N.state.activeChain)},removeAddressLabel(e){let t=N.getAccountProp("addressLabels")||new Map;t.delete(e),N.setAccountProp("addressLabels",t,N.state.activeChain)},setConnectedWalletInfo(e,t){N.setAccountProp("connectedWalletInfo",e,t)},setPreferredAccountType(e,t){N.setAccountProp("preferredAccountType",e,t)},setSocialProvider(e,t){e&&N.setAccountProp("socialProvider",e,t)},setSocialWindow(e,t){e&&N.setAccountProp("socialWindow",(0,i.iH)(e),t)},setFarcasterUrl(e,t){e&&N.setAccountProp("farcasterUrl",e,t)},async fetchTokenBalance(){let e=D.state.caipNetwork?.id,t=D.state.caipNetwork?.chain,r=ea.state.address;try{if(r&&e){let n=await q.getBalance(r,e),i=n.balances.filter(e=>"0"!==e.quantity.decimals);this.setTokenBalance(i,t),ei.setBalances(J.mapBalancesToSwapTokens(n.balances))}}catch(e){V.showError("Failed to fetch token balance")}},resetAccount(e){N.resetAccount(e)}},es=(0,i.sj)({loading:!1,open:!1,shake:!1}),ec={state:es,subscribe:e=>(0,i.Ld)(es,()=>e(es)),subscribeKey:(e,t)=>(0,n.VW)(es,e,t),async open(e){await U.state.prefetchPromise;let t=ea.state.isConnected;e?.view?ee.reset(e.view):t?ee.reset("Account"):ee.reset("Connect"),es.open=!0,k.set({open:!0}),I.sendEvent({type:"track",event:"MODAL_OPEN",properties:{connected:t}})},close(){let e=ea.state.isConnected;es.open=!1,k.set({open:!1}),I.sendEvent({type:"track",event:"MODAL_CLOSE",properties:{connected:e}})}
32,setLoading(e){es.loading=e,k.set({loading:e})},shake(){es.shake||(es.shake=!0,setTimeout(()=>{es.shake=!1},500))}},el={id:"2b92315d-eab7-5bef-84fa-089a131333f5",name:"USD Coin",symbol:"USDC",networks:[{name:"ethereum-mainnet",display_name:"Ethereum",chain_id:"1",contract_address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"polygon-mainnet",display_name:"Polygon",chain_id:"137",contract_address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}]},eu={id:"USD",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]},ed=(0,i.sj)({providers:s,selectedProvider:null,error:null,purchaseCurrency:el,paymentCurrency:eu,purchaseCurrencies:[el],paymentCurrencies:[],quotesLoading:!1}),eh={state:ed,subscribe:e=>(0,i.Ld)(ed,()=>e(ed)),subscribeKey:(e,t)=>(0,n.VW)(ed,e,t),setSelectedProvider(e){ed.selectedProvider=e},setPurchaseCurrency(e){ed.purchaseCurrency=e},setPaymentCurrency(e){ed.paymentCurrency=e},setPurchaseAmount(e){this.state.purchaseAmount=e},setPaymentAmount(e){this.state.paymentAmount=e},async getAvailableCurrencies(){let e=await q.getOnrampOptions();ed.purchaseCurrencies=e.purchaseCurrencies,ed.paymentCurrencies=e.paymentCurrencies,ed.paymentCurrency=e.paymentCurrencies[0]||eu,ed.purchaseCurrency=e.purchaseCurrencies[0]||el,await U.fetchCurrencyImages(e.paymentCurrencies.map(e=>e.id)),await U.fetchTokenImages(e.purchaseCurrencies.map(e=>e.symbol))},async getQuote(){ed.quotesLoading=!0;try{let e=await q.getOnrampQuote({purchaseCurrency:ed.purchaseCurrency,paymentCurrency:ed.paymentCurrency,amount:ed.paymentAmount?.toString()||"0",network:ed.purchaseCurrency?.symbol});return ed.quotesLoading=!1,ed.purchaseAmount=Number(e.purchaseAmount.amount),e}catch(e){return ed.error=e.message,ed.quotesLoading=!1,null}finally{ed.quotesLoading=!1}},resetState(){ed.providers=s,ed.selectedProvider=null,ed.error=null,ed.purchaseCurrency=el,ed.paymentCurrency=eu,ed.purchaseCurrencies=[el],ed.paymentCurrencies=[],ed.paymentAmount=void 0,ed.purchaseAmount=void 0,ed.quotesLoading=!1}},ef=(0,i.sj)({loading:!1}),ep={state:ef,subscribe:e=>(0,i.Ld)(ef,()=>e(ef)),subscribeKey:(e,t)=>(0,n.VW)(ef,e,t),setToken(e){e&&(ef.token=(0,i.iH)(e))},setTokenAmount(e){ef.sendTokenAmount=e},setReceiverAddress(e){ef.receiverAddress=e},setReceiverProfileImageUrl(e){ef.receiverProfileImageUrl=e},setReceiverProfileName(e){ef.receiverProfileName=e},setGasPrice(e){ef.gasPrice=e},setGasPriceInUsd(e){ef.gasPriceInUSD=e},setLoading(e){ef.loading=e},sendToken(){this.state.token?.address&&this.state.sendTokenAmount&&this.state.receiverAddress?(I.sendEvent({type:"track",event:"SEND_INITIATED",properties:{isSmartAccount:ea.state.preferredAccountType===Z.y_.ACCOUNT_TYPES.SMART_ACCOUNT,token:this.state.token.address,amount:this.state.sendTokenAmount,network:D.state.caipNetwork?.id||""}}),this.sendERC20Token({receiverAddress:this.state.receiverAddress,tokenAddress:this.state.token.address,sendTokenAmount:this.state.sendTokenAmount,decimals:this.state.token.quantity.decimals})):this.state.receiverAddress&&this.state.sendTokenAmount&&this.state.gasPrice&&this.state.token?.quantity.decimals&&(I.sendEvent({type:"track",event:"SEND_INITIATED",properties:{isSmartAccount:ea.state.preferredAccountType===Z.y_.ACCOUNT_TYPES.SMART_ACCOUNT,token:this.state.token?.symbol,amount:this.state.sendTokenAmount,network:D.state.caipNetwork?.id||""}}),this.sendNativeToken({receiverAddress:this.state.receiverAddress,sendTokenAmount:this.state.sendTokenAmount,gasPrice:this.state.gasPrice,decimals:this.state.token.quantity.decimals}))},async sendNativeToken(e){ee.pushTransactionStack({view:"Account",goBack:!1});let t=e.receiverAddress,r=ea.state.address,n=Q.parseUnits(e.sendTokenAmount.toString(),Number(e.decimals));try{await Q.sendTransaction({to:t,address:r,data:"0x",value:n,gasPrice:e.gasPrice}),V.showSuccess("Transaction started"),I.sendEvent({type:"track",event:"SEND_SUCCESS",properties:{isSmartAccount:ea.state.preferredAccountType===Z.y_.ACCOUNT_TYPES.SMART_ACCOUNT,token:this.state.token?.symbol||"",amount:e.sendTokenAmount,network:D.state.caipNetwork?.id||""}}),this.resetSend()}catch(t){I.sendEvent({type:"track",event:"SEND_ERROR",properties:{isSmartAccount:ea.state.preferredAccountType===Z.y_.ACCOUNT_TYPES.SMART_ACCOUNT,token:this.state.token?.symbol||"",amount:e.sendTokenAmount,network:D.state.caipNetwork?.id||""}}),V.showError("Something went wrong")}},async sendERC20Token(e){ee.pushTransactionStack({view:"Account",goBack:!1});let t=Q.parseUnits(e.sendTokenAmount.toString(),Number(e.decimals));try{ea.state.address&&e.sendTokenAmount&&e.receiverAddress&&e.tokenAddress&&(await Q.writeContract({fromAddress:ea.state.address,tokenAddress:l.getPlainAddress(e.tokenAddress),receiverAddress:e.receiverAddress,tokenAmount:t,method:"transfer",abi:o.em}),V.showSuccess("Transaction started"),this.resetSend())}catch(e){V.showError("Something went wrong")}},resetSend(){ef.token=void 0,ef.sendTokenAmount=void 0,ef.receiverAddress=void 0,ef.receiverProfileImageUrl=void 0,ef.receiverProfileName=void 0,ef.loading=!1}},eg=(0,i.sj)({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),em={state:eg,subscribe:e=>(0,i.Ld)(eg,()=>e(eg)),subscribeKey:(e,t)=>(0,n.VW)(eg,e,t),showTooltip({message:e,triggerRect:t,variant:r}){eg.open=!0,eg.message=e,eg.triggerRect=t,eg.variant=r},hide(){eg.open=!1,eg.message="",eg.triggerRect={width:0,height:0,top:0,left:0}}},ew={convertEVMChainIdToCoinType(e){if(e>=2147483648)throw Error("Invalid chainId");return(2147483648|e)>>>0}},eb=(0,i.sj)({suggestions:[],loading:!1}),ev={state:eb,subscribe:e=>(0,i.Ld)(eb,()=>e(eb)),subscribeKey:(e,t)=>(0,n.VW)(eb,e,t),async resolveName(e){try{return await q.lookupEnsName(e)}catch(e){throw Error(e?.reasons?.[0]?.description||"Error resolving name")}},async isNameRegistered(e){try{return await q.lookupEnsName(e),!0}catch{return!1}},async getSuggestions(e){try{eb.loading=!0,eb.suggestions=[];let t=await q.getEnsNameSuggestions(e);return eb.suggestions=t.suggestions.map(e=>({...e,name:e.name.replace(o.bq.WC_NAME_SUFFIX,"")}))||[],eb.suggestions}catch(e){throw Error(this.parseEnsApiError(e,"Error fetching name suggestions"))}finally{eb.loading=!1}},async getNamesForAddress(e){try{if(!D.state.caipNetwork)return[];return await q.reverseLookupEnsName({address:e})}catch(e){throw Error(this.parseEnsApiError(e,"Error fetching names for address"))}},async registerName(e){let t=D.state.caipNetwork;if(!t)throw Error("Network not found");let r=ea.state.address,n=A.getAuthConnector();if(!r||!n)throw Error("Address or auth connector not found");eb.loading=!0;try{let n=JSON.stringify({name:`${e}${o.bq.WC_NAME_SUFFIX}`,attributes:{},timestamp:Math.floor(Date.now()/1e3)});ee.pushTransactionStack({view:"RegisterAccountNameSuccess",goBack:!1,replace:!0,onCancel(){eb.loading=!1}});let i=await Q.signMessage(n),a=o.p1.caipNetworkIdToNumber(t.id);if(!a)throw Error("Network not found");let s=ew.convertEVMChainIdToCoinType(a);await q.registerEnsName({coinType:s,address:r,signature:i,message:n}),ea.setProfileName(`${e}${o.bq.WC_NAME_SUFFIX}`),ee.replace("RegisterAccountNameSuccess")}catch(r){let t=this.parseEnsApiError(r,`Error registering name ${e}`);throw ee.replace("RegisterAccountName"),Error(t)}finally{eb.loading=!1}},validateName:e=>/^[a-zA-Z0-9-]{4,}$/u.test(e),parseEnsApiError:(e,t)=>
32e?.reasons?.[0]?.description||t},ey={async fetchWalletImage(e){if(e)return await U._fetchWalletImage(e),this.getWalletImageById(e)},getWalletImageById(e){if(e)return v.state.walletImages[e]},getWalletImage:e=>e?.image_url?e?.image_url:e?.image_id?v.state.walletImages[e.image_id]:void 0,getNetworkImage:e=>e?.imageUrl?e?.imageUrl:e?.imageId?v.state.networkImages[e.imageId]:void 0,getConnectorImage:e=>e?.imageUrl?e.imageUrl:e?.imageId?v.state.connectorImages[e.imageId]:void 0},eC={goBackOrCloseModal(){ee.state.history.length>1?ee.goBack():ec.close()},navigateAfterNetworkSwitch(){let{history:e}=ee.state,t=e.findIndex(e=>"Networks"===e);t>=1?ee.goBackToIndex(t-1):ec.close()},navigateAfterPreferredAccountTypeSelect(){let{isSiweEnabled:e}=j.state;e&&N.state.activeChain===o.bq.CHAIN.EVM?ee.push("ConnectingSiwe"):ee.push("Account")}}},87336:function(e,t,r){"use strict";var n=r(9109);"undefined"==typeof window||(window.Buffer||(window.Buffer=n.Buffer),window.global||(window.global=window),window.process||(window.process={}),window.process?.env||(window.process={env:{}}))},86834:function(e,t,r){"use strict";r.d(t,{C:function(){return a}});var n=r(7937);/** 33 * @license 34 * Copyright 2017 Google LLC 35 * SPDX-License-Identifier: BSD-3-Clause 36 */let i={attribute:!0,type:String,converter:n.Ts,reflect:!1,hasChanged:n.Qu},o=(e=i,t,r)=>{let{kind:n,metadata:o}=r,a=globalThis.litPropertyMetadata.get(o);if(void 0===a&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(r.name,e),"accessor"===n){let{name:n}=r;return{set(r){let i=t.get.call(this);t.set.call(this,r),this.requestUpdate(n,i,e)},init(t){return void 0!==t&&this.P(n,void 0,e),t}}}if("setter"===n){let{name:n}=r;return function(r){let i=this[n];t.call(this,r),this.requestUpdate(n,i,e)}}throw Error("Unsupported decorator location: "+n)};function a(e){return(t,r)=>"object"==typeof r?o(e,t,r):((e,t,r)=>{let n=t.hasOwnProperty(r);return t.constructor.createProperty(r,n?{...e,wrapped:!0}:e),n?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)}},37249:function(e,t,r){"use strict";r.d(t,{S:function(){return i}});var n=r(86834);/** 37 * @license 38 * Copyright 2017 Google LLC 39 * SPDX-License-Identifier: BSD-3-Clause 40 */function i(e){return(0,n.C)({...e,state:!0,attribute:!1})}},7937:function(e,t,r){"use strict";r.d(t,{fl:function(){return _},iv:function(){return l},Ts:function(){return A},Qu:function(){return E}});/** 41 * @license 42 * Copyright 2019 Google LLC 43 * SPDX-License-Identifier: BSD-3-Clause 44 */let n=globalThis,i=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),a=new WeakMap;class s{constructor(e,t,r){if(this._$cssResult$=!0,r!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(i&&void 0===e){let r=void 0!==t&&1===t.length;r&&(e=a.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&a.set(t,e))}return e}toString(){return this.cssText}}let c=e=>new s("string"==typeof e?e:e+"",void 0,o),l=(e,...t)=>new s(1===e.length?e[0]:t.reduce((t,r,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1],e[0]),e,o),u=(e,t)=>{if(i)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let r of t){let t=document.createElement("style"),i=n.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=r.cssText,e.appendChild(t)}},d=i?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return c(t)})(e):e,{is:h,defineProperty:f,getOwnPropertyDescriptor:p,getOwnPropertyNames:g,getOwnPropertySymbols:m,getPrototypeOf:w}=Object,b=globalThis,v=b.trustedTypes,y=v?v.emptyScript:"",C=b.reactiveElementPolyfillSupport,x=(e,t)=>e,A={toAttribute(e,t){switch(t){case Boolean:e=e?y:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},E=(e,t)=>!h(e,t),k={attribute:!0,type:String,converter:A,reflect:!1,hasChanged:E};Symbol.metadata??=Symbol("metadata"),b.litPropertyMetadata??=new WeakMap;class _ extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=k){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&f(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){let{get:n,set:i}=p(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return n?.call(this)},set(t){let o=n?.call(this);i.call(this,t),this.requestUpdate(e,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??k}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;let e=w(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){let e=this.properties;
44for(let t of[...g(e),...m(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,r]of t)this.elementProperties.set(e,r)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let r of new Set(e.flat(1/0).reverse()))t.unshift(d(r));else void 0!==e&&t.push(d(e));return t}static _$Eu(e,t){let r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return u(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){let r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){let i=(void 0!==r.converter?.toAttribute?r.converter:A).toAttribute(t,r.type);this._$Em=e,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(e,t){let r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){let e=r.getPropertyOptions(n),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:A;this._$Em=n,this[n]=i.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){if(!((r??=this.constructor.getPropertyOptions(e)).hasChanged??E)(this[e],t))return;this.P(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,r){this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,r]of e)!0!==r.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],r)}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(e=>this._$EC(e,this[e])),this._$EU()}updated(e){}firstUpdated(e){}}_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[x("elementProperties")]=new Map,_[x("finalized")]=new Map,C?.({ReactiveElement:_}),(b.reactiveElementVersions??=[]).push("2.0.4")},66546:function(e,t,r){"use strict";r.d(t,{Jb:function(){return k},Ld:function(){return _},_$LH:function(){return j},dy:function(){return E},sY:function(){return F}});/** 45 * @license 46 * Copyright 2017 Google LLC 47 * SPDX-License-Identifier: BSD-3-Clause 48 */let n=globalThis,i=n.trustedTypes,o=i?i.createPolicy("lit-html",{createHTML:e=>e}):void 0,a="$lit$",s=`lit$${Math.random().toFixed(9).slice(2)}$`,c="?"+s,l=`<${c}>`,u=document,d=()=>u.createComment(""),h=e=>null===e||"object"!=typeof e&&"function"!=typeof e,f=Array.isArray,p=e=>f(e)||"function"==typeof e?.[Symbol.iterator],g="[ \n\f\r]",m=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,w=/-->/g,b=/>/g,v=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ 49\f\r"'\`<>=]|("|')|))|$)`,"g"),y=/'/g,C=/"/g,x=/^(?:script|style|textarea|title)$/i,A=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}
49),E=A(1),k=(A(2),A(3),Symbol.for("lit-noChange")),_=Symbol.for("lit-nothing"),S=new WeakMap,T=u.createTreeWalker(u,129);function I(e,t){if(!f(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==o?o.createHTML(t):t}let R=(e,t)=>{let r=e.length-1,n=[],i,o=2===t?"<svg>":3===t?"<math>":"",c=m;for(let t=0;t<r;t++){let r=e[t],u,d,h=-1,f=0;for(;f<r.length&&(c.lastIndex=f,null!==(d=c.exec(r)));)f=c.lastIndex,c===m?"!--"===d[1]?c=w:void 0!==d[1]?c=b:void 0!==d[2]?(x.test(d[2])&&(i=RegExp("</"+d[2],"g")),c=v):void 0!==d[3]&&(c=v):c===v?">"===d[0]?(c=i??m,h=-1):void 0===d[1]?h=-2:(h=c.lastIndex-d[2].length,u=d[1],c=void 0===d[3]?v:'"'===d[3]?C:y):c===C||c===y?c=v:c===w||c===b?c=m:(c=v,i=void 0);let p=c===v&&e[t+1].startsWith("/>")?" ":"";o+=c===m?r+l:h>=0?(n.push(u),r.slice(0,h)+a+r.slice(h)+s+p):r+s+(-2===h?t:p)}return[I(e,o+(e[r]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),n]};class O{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let o=0,l=0,u=e.length-1,h=this.parts,[f,p]=R(e,t);if(this.el=O.createElement(f,r),T.currentNode=this.el.content,2===t||3===t){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=T.nextNode())&&h.length<u;){if(1===n.nodeType){if(n.hasAttributes())for(let e of n.getAttributeNames())if(e.endsWith(a)){let t=p[l++],r=n.getAttribute(e).split(s),i=/([.?@])?(.*)/.exec(t);h.push({type:1,index:o,name:i[2],strings:r,ctor:"."===i[1]?B:"?"===i[1]?$:"@"===i[1]?U:D}),n.removeAttribute(e)}else e.startsWith(s)&&(h.push({type:6,index:o}),n.removeAttribute(e));if(x.test(n.tagName)){let e=n.textContent.split(s),t=e.length-1;if(t>0){n.textContent=i?i.emptyScript:"";for(let r=0;r<t;r++)n.append(e[r],d()),T.nextNode(),h.push({type:2,index:++o});n.append(e[t],d())}}}else if(8===n.nodeType){if(n.data===c)h.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(s,e+1));)h.push({type:7,index:o}),e+=s.length-1}}o++}}static createElement(e,t){let r=u.createElement("template");return r.innerHTML=e,r}}function P(e,t,r=e,n){if(t===k)return t;let i=void 0!==n?r.o?.[n]:r.l,o=h(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),void 0===o?i=void 0:(i=new o(e))._$AT(e,r,n),void 0!==n?(r.o??=[])[n]=i:r.l=i),void 0!==i&&(t=P(e,i._$AS(e,t.values),i,n)),t}class N{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,n=(e?.creationScope??u).importNode(t,!0);T.currentNode=n;let i=T.nextNode(),o=0,a=0,s=r[0];for(;void 0!==s;){if(o===s.index){let t;2===s.type?t=new M(i,i.nextSibling,this,e):1===s.type?t=new s.ctor(i,s.name,s.strings,this,e):6===s.type&&(t=new L(i,this,e)),this._$AV.push(t),s=r[++a]}o!==s?.index&&(i=T.nextNode(),o++)}return T.currentNode=u,n}p(e){let t=0;for(let r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class M{get _$AU(){return this._$AM?._$AU??this.v}constructor(e,t,r,n){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this.v=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){h(e=P(this,e,t))?e===_||null==e||""===e?(this._$AH!==_&&this._$AR(),this._$AH=_):e!==this._$AH&&e!==k&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):p(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==_&&h(this._$AH)?this._$AA.nextSibling.data=e:this.T(u.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,n="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=O.createElement(I(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let e=new N(n,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=S.get(e.strings);return void 0===t&&S.set(e.strings,t=new O(e)),t}k(e){f(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let i of e)n===t.length?t.push(r=new M(this.O(d()),this.O(d()),this,this.options)):r=t[n],r._$AI(i),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this.v=e,this._$AP?.(e))}}class D{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,i){this.type=1,this._$AH=_,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=_}_$AI(e,t=this,r,n){let i=this.strings,o=!1;if(void 0===i)(o=!h(e=P(this,e,t,0))||e!==this._$AH&&e!==k)&&(this._$AH=e);else{let n,a;let s=e;for(e=i[0],n=0;n<i.length-1;n++)(a=P(this,s[r+n],t,n))===k&&(a=this._$AH[n]),o||=!h(a)||a!==this._$AH[n],a===_?e=_:e!==_&&(e+=(a??"")+i[n+1]
49),this._$AH[n]=a}o&&!n&&this.j(e)}j(e){e===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class B extends D{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_?void 0:e}}class $ extends D{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==_)}}class U extends D{constructor(e,t,r,n,i){super(e,t,r,n,i),this.type=5}_$AI(e,t=this){if((e=P(this,e,t,0)??_)===k)return;let r=this._$AH,n=e===_&&r!==_||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==_&&(r===_||n);n&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class L{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){P(this,e)}}let j={M:a,P:s,A:c,C:1,L:R,R:N,D:p,V:P,I:M,H:D,N:$,U:U,B:B,F:L},z=n.litHtmlPolyfillSupport;z?.(O,M),(n.litHtmlVersions??=[]).push("3.2.0");let F=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(void 0===i){let e=r?.renderBefore??null;n._$litPart$=i=new M(t.insertBefore(d(),e),e,void 0,r??{})}return i._$AI(e),i}},43633:function(e,t,r){"use strict";r.d(t,{Cb:function(){return n.C},SB:function(){return i.S}});var n=r(86834),i=r(37249)},34288:function(e,t,r){"use strict";r.d(t,{oi:function(){return o},iv:function(){return n.iv},dy:function(){return i.dy}});var n=r(7937),i=r(66546);/** 50 * @license 51 * Copyright 2017 Google LLC 52 * SPDX-License-Identifier: BSD-3-Clause 53 */class o extends n.fl{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this.o=(0,i.sY)(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return i.Jb}}o._$litElement$=!0,o.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:o});let a=globalThis.litElementPolyfillSupport;a?.({LitElement:o}),(globalThis.litElementVersions??=[]).push("4.1.0")},40655:function(e,t,r){"use strict";var n,i;r.d(t,{bq:function(){return o},gk:function(){return s},CK:function(){return a},XW:function(){return n}});let o={WALLET_CONNECT_CONNECTOR_ID:"walletConnect",INJECTED_CONNECTOR_ID:"injected",WALLET_STANDARD_CONNECTOR_ID:"announced",COINBASE_CONNECTOR_ID:"coinbaseWallet",COINBASE_SDK_CONNECTOR_ID:"coinbaseWalletSDK",SAFE_CONNECTOR_ID:"safe",LEDGER_CONNECTOR_ID:"ledger",EIP6963_CONNECTOR_ID:"eip6963",AUTH_CONNECTOR_ID:"w3mAuth",EIP155:"eip155",ADD_CHAIN_METHOD:"wallet_addEthereumChain",EIP6963_ANNOUNCE_EVENT:"eip6963:announceProvider",EIP6963_REQUEST_EVENT:"eip6963:requestProvider",CONNECTOR_RDNS_MAP:{coinbaseWallet:"com.coinbase.wallet",coinbaseWalletSDK:"com.coinbase.wallet"},VERSION:"5.1.0"},a={ConnectorExplorerIds:{[o.COINBASE_CONNECTOR_ID]:"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa",[o.COINBASE_SDK_CONNECTOR_ID]:"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa",[o.SAFE_CONNECTOR_ID]:"225affb176778569276e484e1b92637ad061b01e13a048b35a9d280c3b58970f",[o.LEDGER_CONNECTOR_ID]:"19177a98252e07ddfc9af2083ba8e07ef627cb6103467ffebb3f8f4205fd7927"},EIP155NetworkImageIds:{1:"ba0ba0cd-17c6-4806-ad93-f9d174f17900",42161:"3bff954d-5cb0-47a0-9a23-d20192e74600",43114:"30c46e53-e989-45fb-4549-be3bd4eb3b00",56:"93564157-2e8e-4ce7-81df-b264dbee9b00",250:"06b26297-fe0c-4733-5d6b-ffa5498aac00",10:"ab9c186a-c52f-464b-2906-ca59d760a400",137:"41d04d42-da3b-4453-8506-668cc0727900",100:"02b53f6a-e3d4-479e-1cb4-21178987d100",9001:"f926ff41-260d-4028-635e-91913fc28e00",324:"b310f07f-4ef7-49f3-7073-2a0a39685800",314:"5a73b3dd-af74-424e-cae0-0de859ee9400",4689:"34e68754-e536-40da-c153-6ef2e7188a00",1088:"3897a66d-40b9-4833-162f-a2c90531c900",1284:"161038da-44ae-4ec7-1208-0ea569454b00",1285:"f1d73bb6-5450-4e18-38f7-fb6484264a00",7777777:"845c60df-d429-4991-e687-91ae45791600",42220:"ab781bbc-ccc6-418d-d32d-789b15da1f00",8453:"7289c336-3981-4081-c5f4-efc26ac64a00",1313161554:"3ff73439-a619-4894-9262-4470c773a100",2020:"b8101fc0-9c19-4b6f-ec65-f6dfff106e00",2021:"b8101fc0-9c19-4b6f-ec65-f6dfff106e00","5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp":"a1b58899-f671-4276-6a5e-56ca5bd59700","4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z":"a1b58899-f671-4276-6a5e-56ca5bd59700",EtWTRABZaYq6iMfeYKouRu166VU2xqa1:"a1b58899-f671-4276-6a5e-56ca5bd59700"},ConnectorImageIds:{[o.COINBASE_CONNECTOR_ID]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[o.COINBASE_SDK_CONNECTOR_ID]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[o.SAFE_CONNECTOR_ID]:"461db637-8616-43ce-035a-d89b8a1d5800",[o.LEDGER_CONNECTOR_ID]:"54a1aa77-d202-4f8d-0fb2-5d2bb6db0300",[o.WALLET_CONNECT_CONNECTOR_ID]:"ef1a1fcf-7fe8-4d69-bd6d-fda1345b4400",[o.INJECTED_CONNECTOR_ID]:"07ba87ed-43aa-4adf-454
530-9e6a2b9cae00"},ConnectorNamesMap:{[o.INJECTED_CONNECTOR_ID]:"Browser Wallet",[o.WALLET_CONNECT_CONNECTOR_ID]:"WalletConnect",[o.COINBASE_CONNECTOR_ID]:"Coinbase",[o.COINBASE_SDK_CONNECTOR_ID]:"Coinbase",[o.LEDGER_CONNECTOR_ID]:"Ledger",[o.SAFE_CONNECTOR_ID]:"Safe"},ConnectorTypesMap:{[o.INJECTED_CONNECTOR_ID]:"INJECTED",[o.WALLET_CONNECT_CONNECTOR_ID]:"WALLET_CONNECT",[o.EIP6963_CONNECTOR_ID]:"ANNOUNCED",[o.AUTH_CONNECTOR_ID]:"AUTH"},WalletConnectRpcChainIds:[1,5,11155111,10,420,42161,421613,137,80001,42220,1313161554,1313161555,56,97,43114,43113,100,8453,84531,7777777,999,324,280]},s={getCaipTokens(e){if(!e)return;let t={};return Object.entries(e).forEach(([e,r])=>{t[`${o.EIP155}:${e}`]=r}),t}};(i=n||(n={})).Google="google",i.Github="github",i.Apple="apple",i.Facebook="facebook",i.X="x",i.Discord="discord",i.Farcaster="farcaster"},52596:function(e,t,r){"use strict";let n;r.d(t,{j1:function(){return i.j1},D4:function(){return nz}});var i=r(75839),o=r(43521),a=r(34288),s=r(43633),c=r(66546);/** 54 * @license 55 * Copyright 2018 Google LLC 56 * SPDX-License-Identifier: BSD-3-Clause 57 */let l=e=>e??c.Ld;var u=function(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};let d=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.balance="show",this.charsStart=4,this.charsEnd=6,this.address=i.AccountController.state.address,this.balanceVal=i.AccountController.state.balance,this.balanceSymbol=i.AccountController.state.balanceSymbol,this.profileName=i.AccountController.state.profileName,this.profileImage=i.AccountController.state.profileImage,this.network=i.fB.state.caipNetwork,this.isUnsupportedChain=i.fB.state.isUnsupportedChain,this.unsubscribe.push(i.AccountController.subscribe(e=>{e.isConnected?(this.address=e.address,this.balanceVal=e.balance,this.profileName=e.profileName,this.profileImage=e.profileImage,this.balanceSymbol=e.balanceSymbol):(this.address="",this.balanceVal="",this.profileName="",this.profileImage="",this.balanceSymbol="")}),i.fB.subscribeKey("caipNetwork",e=>{this.network=e}),i.fB.subscribeKey("isUnsupportedChain",e=>{this.isUnsupportedChain=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=i.fz.getNetworkImage(this.network),t="show"===this.balance;return(0,a.dy)` 58 <wui-account-button 59 .disabled=${!!this.disabled} 60 .isUnsupportedChain=${this.isUnsupportedChain} 61 address=${l(this.address)} 62 profileName=${l(this.profileName)} 63 networkSrc=${l(e)} 64 avatarSrc=${l(this.profileImage)} 65 balance=${t?i.j1.formatBalance(this.balanceVal,this.balanceSymbol):""} 66 @click=${this.onClick.bind(this)} 67 data-testid="account-button" 68 .charsStart=${this.charsStart} 69 .charsEnd=${this.charsEnd} 70 > 71 </wui-account-button> 72 `}onClick(){this.isUnsupportedChain?i.IN.open({view:"UnsupportedChain"}):i.IN.open()}};u([(0,s.Cb)({type:Boolean})],d.prototype,"disabled",void 0),u([(0,s.Cb)()],d.prototype,"balance",void 0),u([(0,s.Cb)()],d.prototype,"charsStart",void 0),u([(0,s.Cb)()],d.prototype,"charsEnd",void 0),u([(0,s.SB)()],d.prototype,"address",void 0),u([(0,s.SB)()],d.prototype,"balanceVal",void 0),u([(0,s.SB)()],d.prototype,"balanceSymbol",void 0),u([(0,s.SB)()],d.prototype,"profileName",void 0),u([(0,s.SB)()],d.prototype,"profileImage",void 0),u([(0,s.SB)()],d.prototype,"network",void 0),u([(0,s.SB)()],d.prototype,"isUnsupportedChain",void 0),d=u([(0,o.customElement)("w3m-account-button")],d);var h=(0,a.iv)` 73 :host { 74 display: block; 75 width: max-content; 76 } 77`,f=function(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};let p=class extends a.oi{constructor(){super(...arguments),this.unsubscribe=[],this.disabled=!1,this.balance=void 0,this.size=void 0,this.label=void 0,this.loadingLabel=void 0,this.charsStart=4,this.charsEnd=6,this.isAccount=i.AccountController.state.isConnected,this.isLoading=i.IN.state.loading,this.balanceVal=i.AccountController.state.balance,this.balanceSymbol=i.AccountController.state.balanceSymbol}firstUpdated(){this.unsubscribe.push(i.AccountController.subscribe(e=>{this.isAccount=e.isConnected,this.balanceVal=e.balance,this.balanceSymbol=e.balanceSymbol}),i.IN.subscribeKey("loading",e=>{this.isLoading=e}))}
77disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.balanceVal&&this.balanceSymbol&&this.isAccount&&!this.isLoading?(0,a.dy)` 78 <w3m-account-button 79 .disabled=${!!this.disabled} 80 balance=${l(this.balance)} 81 .charsStart=${l(this.charsStart)} 82 .charsEnd=${l(this.charsEnd)} 83 > 84 </w3m-account-button> 85 `:(0,a.dy)` 86 <w3m-connect-button 87 size=${l(this.size)} 88 label=${l(this.label)} 89 loadingLabel=${l(this.loadingLabel)} 90 ></w3m-connect-button> 91 `}};p.styles=h,f([(0,s.Cb)({type:Boolean})],p.prototype,"disabled",void 0),f([(0,s.Cb)()],p.prototype,"balance",void 0),f([(0,s.Cb)()],p.prototype,"size",void 0),f([(0,s.Cb)()],p.prototype,"label",void 0),f([(0,s.Cb)()],p.prototype,"loadingLabel",void 0),f([(0,s.Cb)()],p.prototype,"charsStart",void 0),f([(0,s.Cb)()],p.prototype,"charsEnd",void 0),f([(0,s.SB)()],p.prototype,"isAccount",void 0),f([(0,s.SB)()],p.prototype,"isLoading",void 0),f([(0,s.SB)()],p.prototype,"balanceVal",void 0),f([(0,s.SB)()],p.prototype,"balanceSymbol",void 0),p=f([(0,o.customElement)("w3m-button")],p);var g=function(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};let m=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.size="md",this.label="Connect Wallet",this.loadingLabel="Connecting...",this.open=i.IN.state.open,this.loading=i.IN.state.loading,this.unsubscribe.push(i.IN.subscribe(e=>{this.open=e.open,this.loading=e.loading}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.loading||this.open;return(0,a.dy)` 92 <wui-connect-button 93 size=${l(this.size)} 94 .loading=${e} 95 @click=${this.onClick.bind(this)} 96 data-testid="connect-button" 97 > 98 ${e?this.loadingLabel:this.label} 99 </wui-connect-button> 100 `}onClick(){this.open?i.IN.close():this.loading||i.IN.open()}};g([(0,s.Cb)()],m.prototype,"size",void 0),g([(0,s.Cb)()],m.prototype,"label",void 0),g([(0,s.Cb)()],m.prototype,"loadingLabel",void 0),g([(0,s.SB)()],m.prototype,"open",void 0),g([(0,s.SB)()],m.prototype,"loading",void 0),m=g([(0,o.customElement)("w3m-connect-button")],m);var w=(0,a.iv)` 101 :host { 102 display: block; 103 width: max-content; 104 } 105`,b=function(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};let v=class extends a.oi{constructor(){super(...arguments),this.unsubscribe=[],this.disabled=!1,this.network=i.fB.state.caipNetwork,this.connected=i.AccountController.state.isConnected,this.loading=i.IN.state.loading,this.isUnsupportedChain=i.fB.state.isUnsupportedChain}firstUpdated(){this.unsubscribe.push(i.fB.subscribeKey("caipNetwork",e=>this.network=e),i.AccountController.subscribeKey("isConnected",e=>this.connected=e),i.IN.subscribeKey("loading",e=>this.loading=e),i.fB.subscribeKey("isUnsupportedChain",e=>this.isUnsupportedChain=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.dy)` 106 <wui-network-button 107 data-testid="w3m-network-button" 108 .disabled=${!!(this.disabled||this.loading)} 109 .isUnsupportedChain=${this.isUnsupportedChain} 110 imageSrc=${l(i.fz.getNetworkImage(this.network))} 111 @click=${this.onClick.bind(this)} 112 > 113 ${this.getLabel()} 114 <slot></slot> 115 </wui-network-button> 116 `}getLabel(){return this.label?this.label:this.isUnsupportedChain?"Switch Network":this.network?this.network.name:this.connected?"Unknown Network":"Select Network"}onClick(){this.loading||(i.Xs.sendEvent({type:"track",event:"CLICK_NETWORKS"}),i.IN.open({view:"Networks"}))}};
116v.styles=w,b([(0,s.Cb)({type:Boolean})],v.prototype,"disabled",void 0),b([(0,s.Cb)({type:String})],v.prototype,"label",void 0),b([(0,s.SB)()],v.prototype,"network",void 0),b([(0,s.SB)()],v.prototype,"connected",void 0),b([(0,s.SB)()],v.prototype,"loading",void 0),b([(0,s.SB)()],v.prototype,"isUnsupportedChain",void 0),v=b([(0,o.customElement)("w3m-network-button")],v);var y=(0,a.iv)` 117 :host { 118 --prev-height: 0px; 119 --new-height: 0px; 120 display: block; 121 } 122 123 div.w3m-router-container { 124 transform: translateY(0); 125 opacity: 1; 126 } 127 128 div.w3m-router-container[view-direction='prev'] { 129 animation: 130 slide-left-out 150ms forwards ease, 131 slide-left-in 150ms forwards ease; 132 animation-delay: 0ms, 200ms; 133 } 134 135 div.w3m-router-container[view-direction='next'] { 136 animation: 137 slide-right-out 150ms forwards ease, 138 slide-right-in 150ms forwards ease; 139 animation-delay: 0ms, 200ms; 140 } 141 142 @keyframes slide-left-out { 143 from { 144 transform: translateX(0px); 145 opacity: 1; 146 } 147 to { 148 transform: translateX(10px); 149 opacity: 0; 150 } 151 } 152 153 @keyframes slide-left-in { 154 from { 155 transform: translateX(-10px); 156 opacity: 0; 157 } 158 to { 159 transform: translateX(0); 160 opacity: 1; 161 } 162 } 163 164 @keyframes slide-right-out { 165 from { 166 transform: translateX(0px); 167 opacity: 1; 168 } 169 to { 170 transform: translateX(-10px); 171 opacity: 0; 172 } 173 } 174 175 @keyframes slide-right-in { 176 from { 177 transform: translateX(10px); 178 opacity: 0; 179 } 180 to { 181 transform: translateX(0); 182 opacity: 1; 183 } 184 } 185`;let C={ACCOUNT_TABS:[{label:"Tokens"},{label:"NFTs"},{label:"Activity"}],SECURE_SITE_ORIGIN:r(20357).env.NEXT_PUBLIC_SECURE_SITE_ORIGIN||"https://secure.walletconnect.org",VIEW_DIRECTION:{Next:"next",Prev:"prev"},ANIMATION_DURATIONS:{HeaderText:120,ModalHeight:150,ViewTransition:150}};var x=function(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};let A=class extends a.oi{constructor(){super(),this.resizeObserver=void 0,this.prevHeight="0px",this.prevHistoryLength=1,this.unsubscribe=[],this.view=i.RouterController.state.view,this.viewDirection="",this.unsubscribe.push(i.RouterController.subscribeKey("view",e=>this.onViewChange(e)))}firstUpdated(){this.resizeObserver=new ResizeObserver(([e])=>{let t=`${e?.contentRect.height}px`;"0px"!==this.prevHeight&&(this.style.setProperty("--prev-height",this.prevHeight),this.style.setProperty("--new-height",t),this.style.animation="w3m-view-height 150ms forwards ease",this.style.height="auto"),setTimeout(()=>{this.prevHeight=t,this.style.animation="unset"},C.ANIMATION_DURATIONS.ModalHeight)}),this.resizeObserver.observe(this.getWrapper())}disconnectedCallback(){this.resizeObserver?.unobserve(this.getWrapper()),this.unsubscribe.forEach(e=>e())}render(){return(0,a.dy)`<div class="w3m-router-container" view-direction="${this.viewDirection}"> 186 ${this.viewTemplate()} 187 </div>`}viewTemplate(){switch(this.view){case"AccountSettings":return(0,a.dy)`<w3m-account-settings-view></w3m-account-settings-view>`;case"Account":return(0,a.dy)`<w3m-account-view></w3m-account-view>`;case"AllWallets":return(0,a.dy)`<w3m-all-wallets-view></w3m-all-wallets-view>`;case"ApproveTransaction":return(0,a.dy)`<w3m-approve-transaction-view></w3m-approve-transaction-view>`;case"BuyInProgress":return(0,a.dy)`<w3m-buy-in-progress-view></w3m-buy-in-progress-view>`;case"ChooseAccountName":return(0,a.dy)`<w3m-choose-account-name-view></w3m-choose-account-name-view>`;case"Connect":default:return(0,a.dy)`<w3m-connect-view></w3m-connect-view>`;case"ConnectingWalletConnect":return(0,a.dy)`<w3m-connecting-wc-view></w3m-connecting-wc-view>`;case"ConnectingExternal":return(0,a.dy)`<w3m-connecting-external-view></w3m-connecting-external-view>`;case"ConnectingSiwe":return(0,a.dy)`<w3m-connecting-siwe-view></w3m-connecting-siwe-view>`;case"ConnectWallets":return(0,a.dy)`<w3m-connect-wallets-view></w3m-connect-wallets-view>`;case"ConnectSocials":return(0,a.dy)`<w3m-connect-socials-view></w3m-connect-socials-view>`;case"ConnectingSocial":return(0,a.dy)`<w3m-connecting-social-view></w3m-connecting-social-view>`;case"Downloads":return(0,a.dy)`<w3m-downloads-view>
187</w3m-downloads-view>`;case"EmailVerifyOtp":return(0,a.dy)`<w3m-email-verify-otp-view></w3m-email-verify-otp-view>`;case"EmailVerifyDevice":return(0,a.dy)`<w3m-email-verify-device-view></w3m-email-verify-device-view>`;case"GetWallet":return(0,a.dy)`<w3m-get-wallet-view></w3m-get-wallet-view>`;case"Networks":return(0,a.dy)`<w3m-networks-view></w3m-networks-view>`;case"SwitchNetwork":return(0,a.dy)`<w3m-network-switch-view></w3m-network-switch-view>`;case"Profile":return(0,a.dy)`<w3m-profile-view></w3m-profile-view>`;case"SelectAddresses":return(0,a.dy)`<w3m-select-addresses-view></w3m-select-addresses-view>`;case"SwitchAddress":return(0,a.dy)`<w3m-switch-address-view></w3m-switch-address-view>`;case"Transactions":return(0,a.dy)`<w3m-transactions-view></w3m-transactions-view>`;case"OnRampProviders":return(0,a.dy)`<w3m-onramp-providers-view></w3m-onramp-providers-view>`;case"OnRampActivity":return(0,a.dy)`<w3m-onramp-activity-view></w3m-onramp-activity-view>`;case"OnRampTokenSelect":return(0,a.dy)`<w3m-onramp-token-select-view></w3m-onramp-token-select-view>`;case"OnRampFiatSelect":return(0,a.dy)`<w3m-onramp-fiat-select-view></w3m-onramp-fiat-select-view>`;case"UpgradeEmailWallet":return(0,a.dy)`<w3m-upgrade-wallet-view></w3m-upgrade-wallet-view>`;case"UpgradeToSmartAccount":return(0,a.dy)`<w3m-upgrade-to-smart-account-view></w3m-upgrade-to-smart-account-view>`;case"UpdateEmailWallet":return(0,a.dy)`<w3m-update-email-wallet-view></w3m-update-email-wallet-view>`;case"UpdateEmailPrimaryOtp":return(0,a.dy)`<w3m-update-email-primary-otp-view></w3m-update-email-primary-otp-view>`;case"UpdateEmailSecondaryOtp":return(0,a.dy)`<w3m-update-email-secondary-otp-view></w3m-update-email-secondary-otp-view>`;case"UnsupportedChain":return(0,a.dy)`<w3m-unsupported-chain-view></w3m-unsupported-chain-view>`;case"Swap":return(0,a.dy)`<w3m-swap-view></w3m-swap-view>`;case"SwapSelectToken":return(0,a.dy)`<w3m-swap-select-token-view></w3m-swap-select-token-view>`;case"SwapPreview":return(0,a.dy)`<w3m-swap-preview-view></w3m-swap-preview-view>`;case"WalletSend":return(0,a.dy)`<w3m-wallet-send-view></w3m-wallet-send-view>`;case"WalletSendSelectToken":return(0,a.dy)`<w3m-wallet-send-select-token-view></w3m-wallet-send-select-token-view>`;case"WalletSendPreview":return(0,a.dy)`<w3m-wallet-send-preview-view></w3m-wallet-send-preview-view>`;case"WhatIsABuy":return(0,a.dy)`<w3m-what-is-a-buy-view></w3m-what-is-a-buy-view>`;case"WalletReceive":return(0,a.dy)`<w3m-wallet-receive-view></w3m-wallet-receive-view>`;case"WalletCompatibleNetworks":return(0,a.dy)`<w3m-wallet-compatible-networks-view></w3m-wallet-compatible-networks-view>`;case"WhatIsAWallet":return(0,a.dy)`<w3m-what-is-a-wallet-view></w3m-what-is-a-wallet-view>`;case"WhatIsANetwork":return(0,a.dy)`<w3m-what-is-a-network-view></w3m-what-is-a-network-view>`;case"ConnectingFarcaster":return(0,a.dy)`<w3m-connecting-farcaster-view></w3m-connecting-farcaster-view>`;case"RegisterAccountName":return(0,a.dy)`<w3m-register-account-name-view></w3m-register-account-name-view>`;case"RegisterAccountNameSuccess":return(0,a.dy)`<w3m-register-account-name-success-view></w3m-register-account-name-success-view>`}}onViewChange(e){i.fw.hide();let t=C.VIEW_DIRECTION.Next,{history:r}=i.RouterController.state;r.length<this.prevHistoryLength&&(t=C.VIEW_DIRECTION.Prev),this.prevHistoryLength=r.length,this.viewDirection=t,setTimeout(()=>{this.view=e},C.ANIMATION_DURATIONS.ViewTransition)}getWrapper(){return this.shadowRoot?.querySelector("div")}};A.styles=y,x([(0,s.SB)()],A.prototype,"view",void 0),x([(0,s.SB)()],A.prototype,"viewDirection",void 0),A=x([(0,o.customElement)("w3m-router")],A);var E=(0,a.iv)` 188 :host > wui-flex { 189 width: 100%; 190 max-width: 360px; 191 } 192 193 :host > wui-flex > wui-flex { 194 border-radius: var(--wui-border-radius-l); 195 width: 100%; 196 } 197 198 .amounts-container { 199 width: 100%; 200 } 201`,k=function(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};let _={USD:"$",EUR:"â¬",GBP:"\xa3"},S=[100,250,500,1e3],T=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.connected=i.AccountController.state.isConnected,this.loading=i.IN.state.loading,this.paymentCurrency=i.ph.state.paymentCurrency,this.paymentAmount=i.ph.state.paymentAmount,this.purchaseAmount=i.ph.state.purchaseAmount,this.quoteLoading=i.ph.state.quotesLoading,this.unsubscribe.push(i.AccountController.subscribeKey("isConnected",e=>{this.connected=e}),i.IN.subscribeKey("loading",e=>{this.loading=e}),i.ph.subscribe(e=>{this.paymentCurrency=e.paymentCurrency,this.paymentAmount=e.paymentAmount,this.purchaseAmount=e.purchaseAmount,this.quoteLoading=e.quotesLoading}))}
201disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.dy)` 202 <wui-flex flexDirection="column" justifyContent="center" alignItems="center"> 203 <wui-flex flexDirection="column" alignItems="center" gap="xs"> 204 <w3m-onramp-input 205 type="Fiat" 206 @inputChange=${this.onPaymentAmountChange.bind(this)} 207 .value=${this.paymentAmount||0} 208 ></w3m-onramp-input> 209 <w3m-onramp-input 210 type="Token" 211 .value=${this.purchaseAmount||0} 212 .loading=${this.quoteLoading} 213 ></w3m-onramp-input> 214 <wui-flex justifyContent="space-evenly" class="amounts-container" gap="xs"> 215 ${S.map(e=>(0,a.dy)`<wui-button 216 variant=${this.paymentAmount===e?"accent":"neutral"} 217 size="md" 218 textVariant="paragraph-600" 219 fullWidth 220 @click=${()=>this.selectPresetAmount(e)} 221 >${`${_[this.paymentCurrency?.id||"USD"]} ${e}`}</wui-button 222 >`)} 223 </wui-flex> 224 ${this.templateButton()} 225 </wui-flex> 226 </wui-flex> 227 `}templateButton(){return this.connected?(0,a.dy)`<wui-button 228 @click=${this.getQuotes.bind(this)} 229 variant="main" 230 fullWidth 231 size="lg" 232 borderRadius="xs" 233 > 234 Get quotes 235 </wui-button>`:(0,a.dy)`<wui-button 236 @click=${this.openModal.bind(this)} 237 variant="accent" 238 fullWidth 239 size="lg" 240 borderRadius="xs" 241 > 242 Connect wallet 243 </wui-button>`}getQuotes(){this.loading||i.IN.open({view:"OnRampProviders"})}openModal(){i.IN.open({view:"Connect"})}async onPaymentAmountChange(e){i.ph.setPaymentAmount(Number(e.detail)),await i.ph.getQuote()}async selectPresetAmount(e){i.ph.setPaymentAmount(e),await i.ph.getQuote()}};T.styles=E,k([(0,s.Cb)({type:Boolean})],T.prototype,"disabled",void 0),k([(0,s.SB)()],T.prototype,"connected",void 0),k([(0,s.SB)()],T.prototype,"loading",void 0),k([(0,s.SB)()],T.prototype,"paymentCurrency",void 0),k([(0,s.SB)()],T.prototype,"paymentAmount",void 0),k([(0,s.SB)()],T.prototype,"purchaseAmount",void 0),k([(0,s.SB)()],T.prototype,"quoteLoading",void 0),T=k([(0,o.customElement)("w3m-onramp-widget")],T);var I=r(31083),R=function(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};let O=class extends a.oi{constructor(){super(),this.usubscribe=[],this.networkImages=i.WM.state.networkImages,this.address=i.AccountController.state.address,this.profileImage=i.AccountController.state.profileImage,this.profileName=i.AccountController.state.profileName,this.network=i.fB.state.caipNetwork,this.preferredAccountType=i.AccountController.state.preferredAccountType,this.disconnecting=!1,this.loading=!1,this.switched=!1,this.text="",this.usubscribe.push(i.AccountController.subscribe(e=>{e.address?(this.address=e.address,this.profileImage=e.profileImage,this.profileName=e.profileName,this.preferredAccountType=e.preferredAccountType):i.IN.close()}),i.AccountController.subscribeKey("preferredAccountType",e=>this.preferredAccountType=e),i.fB.subscribeKey("caipNetwork",e=>{e?.id&&(this.network=e)}))}disconnectedCallback(){this.usubscribe.forEach(e=>e())}render(){if(!this.address)throw Error("w3m-account-settings-view: No account provided");let e=this.networkImages[this.network?.imageId??""],t=this.profileName?.split(".")[0];return(0,a.dy)` 244 <wui-flex 245 flexDirection="column" 246 alignItems="center" 247 gap="l" 248 .padding=${["0","xl","m","xl"]} 249 > 250 <wui-avatar 251 alt=${this.address} 252 address=${this.address} 253 imageSrc=${l(this.profileImage)} 254 size="2lg" 255 ></wui-avatar> 256 <wui-flex flexDirection="column" alignItems="center"> 257 <wui-flex gap="3xs" alignItems="center" justifyContent="center"> 258 <wui-text variant="title-6-600" color="fg-100" data-testid="account-settings-address"> 259 ${t?o.UiHelperUtil.getTruncateString({string:t,charsStart:20,charsEnd:0,truncate:"end"}):o.UiHelperUtil.getTruncateString({string:this.address,charsStart:4,charsEnd:6,truncate:"middle"})} 260 </wui-text> 261 <wui-icon-link 262 size="md" 263 icon="copy" 264 iconColor="fg-200" 265 @click=${this.onCopyAddress} 266 ></wui-icon-link> 267 </wui-flex> 268 </wui-flex> 269 </wui-flex> 270 <wui-flex flexDirection="column" gap="m"> 271 <wui-flex flexDirection="column" gap="xs" .padding=${["0","l","m","l"]}> 272 ${this.authCardTemplate()} 273 <w3m-account-auth-button></w3m-account-auth-button> 274 <wui-list-item 275 .variant=${e?"image":"icon"} 276 iconVariant="overlay" 277 icon="networkPlaceholder" 278 imageSrc=${l(e)} 279 ?chevron=${this.isAllowedNetworkSwitch()} 280 @click=${this.onNetworks.bind(this)} 281 data-testid="account-switch-network-button" 282 > 283 <wui-text variant="paragraph-500" color="fg-100"> 284 ${this.network?.name??"Unknown"} 285 </wui-text> 286 </wui-list-item> 287 ${this.togglePreferredAccountBtnTemplate()} ${this.chooseNameButtonTemplate()} 288 <wui-list-item 289 variant="icon" 290 iconVariant="overlay" 291 icon="disconnect" 292 ?chevron=${!1} 293 .loading=${this.disconnecting} 294 @click=${this.onDisconnect.bind(this)} 295 data-testid="disconnect-button" 296 > 297 <wui-text variant="paragraph-500" color="fg-200">Disconnect</wui-text> 298 </wui-list-item> 299 </wui-flex> 300 </wui-flex> 301 `}chooseNameButtonTemplate(){let e=i.MO.getConnectedConnector();return!i.ConnectorController.getAuthConnector()||"AUTH"!==e||this.profileName?null:(0,a.dy)` 302 <wui-list-item 303 variant="icon" 304 iconVariant="overlay" 305 icon="id" 306 iconSize="sm" 307 ?chevron=${!0} 308 @click=${this.onChooseName.bind(this)} 309 data-testid="account-choose-name-button" 310 > 311 <wui-text variant="paragraph-500" color="fg-100">Choose account name </wui-text> 312 </wui-list-item> 313 `}authCardTemplate(){let e=i.MO.getConnectedConnector(),t=i.ConnectorController.getAuthConnector(),{origin:r}=location;return!t||"AUTH"!==e||r.includes(i.bq.SECURE_SITE)?null:(0,a.dy)` 314 <wui-notice-card 315 @click=${this.onGoToUpgradeView.bind(this)} 316 label="Upgrade your wallet" 317 description="Transition to a self-custodial wallet" 318 icon="wallet" 319 data-testid="w3m-wallet-upgrade-card" 320 ></wui-notice-card> 321 `}isAllowedNetworkSwitch(){let e=i.fB.getRequestedCaipNetworks(),t=!!e&&e.length>1,r=e?.find(({id:e})=>e===this.network?.id);return t||!r}onCopyAddress(){try{this.profileName?(i.j1.copyToClopboard(this.profileName),i.SnackController.showSuccess("Name copied")):this.address&&(i.j1.copyToClopboard(this.address),i.SnackController.showSuccess("Address copied"))}catch{i.SnackController.showError("Failed to copy")}}togglePreferredAccountBtnTemplate(){let e=i.fB.checkIfSmartAccountEnabled(),t=i.MO.getConnectedConnector();return i.ConnectorController.getAuthConnector()&&"AUTH"===t&&e?(this.switched||(this.text=this.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT?"Switch to your EOA":"Switch to your smart account"),(0,a.dy)` 322 <wui-list-item 323 variant="icon" 324 iconVariant="overlay" 325 icon="swapHorizontalBold" 326 iconSize="sm" 327 ?chevron=${!0} 328 ?loading=${this.loading} 329 @click=${this.changePreferredAccountType.bind(this)} 330 data-testid="account-toggle-preferred-account-type" 331 > 332 <wui-text variant="paragraph-500" color="fg-100">${this.text}</wui-text> 333 </wui-list-item> 334 `):null}onChooseName(){i.RouterController.push("ChooseAccountName")}async changePreferredAccountType(){let e=i.fB.checkIfSmartAccountEnabled(),t=this.preferredAccountType!==I.y_.ACCOUNT_TYPES.SMART_ACCOUNT&&e?I.y_.ACCOUNT_TYPES.SMART_ACCOUNT:I.y_.ACCOUNT_TYPES.EOA;i.ConnectorController.getAuthConnector()&&(this.loading=!0,await i.ConnectionController.setPreferredAccountType(t),this.text=t===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT?"Switch to your EOA":"Switch to your smart account",this.switched=!0,i.Si.resetSend(),this.loading=!1,this.requestUpdate())}onNetworks(){this.isAllowedNetworkSwitch()&&i.RouterController.push("Networks")}async onDisconnect(){try{this.disconnecting=!0,await i.ConnectionController.disconnect(),i.Xs.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),i.IN.close()}catch{i.Xs.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),i.SnackController.showError("Failed to disconnect")}finally{this.disconnecting=!1}}
334onGoToUpgradeView(){i.Xs.sendEvent({type:"track",event:"EMAIL_UPGRADE_FROM_MODAL"}),i.RouterController.push("UpgradeEmailWallet")}};R([(0,s.SB)()],O.prototype,"address",void 0),R([(0,s.SB)()],O.prototype,"profileImage",void 0),R([(0,s.SB)()],O.prototype,"profileName",void 0),R([(0,s.SB)()],O.prototype,"network",void 0),R([(0,s.SB)()],O.prototype,"preferredAccountType",void 0),R([(0,s.SB)()],O.prototype,"disconnecting",void 0),R([(0,s.SB)()],O.prototype,"loading",void 0),R([(0,s.SB)()],O.prototype,"switched",void 0),R([(0,s.SB)()],O.prototype,"text",void 0),O=R([(0,o.customElement)("w3m-account-settings-view")],O);let P=class extends a.oi{render(){let e=i.MO.getConnectedConnector(),t=i.ConnectorController.getAuthConnector();return(0,a.dy)` 335 ${t?.walletFeatures&&"AUTH"===e?this.walletFeaturesTemplate():this.defaultTemplate()} 336 `}walletFeaturesTemplate(){return(0,a.dy)`<w3m-account-wallet-features-widget></w3m-account-wallet-features-widget>`}defaultTemplate(){return(0,a.dy)`<w3m-account-default-widget></w3m-account-default-widget>`}};P=function(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}([(0,o.customElement)("w3m-account-view")],P);var N=function(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};let M=class extends a.oi{constructor(){super(...arguments),this.search="",this.onDebouncedSearch=i.j1.debounce(e=>{this.search=e})}render(){let e=this.search.length>=2;return(0,a.dy)` 337 <wui-flex .padding=${["0","s","s","s"]} gap="s"> 338 <wui-search-bar @inputChange=${this.onInputChange.bind(this)}></wui-search-bar> 339 ${this.qrButtonTemplate()} 340 </wui-flex> 341 ${e?(0,a.dy)`<w3m-all-wallets-search query=${this.search}></w3m-all-wallets-search>`:(0,a.dy)`<w3m-all-wallets-list></w3m-all-wallets-list>`} 342 `}onInputChange(e){this.onDebouncedSearch(e.detail)}qrButtonTemplate(){return i.j1.isMobile()?(0,a.dy)` 343 <wui-icon-box 344 size="lg" 345 iconSize="xl" 346 iconColor="accent-100" 347 backgroundColor="accent-100" 348 icon="qrCode" 349 background="transparent" 350 border 351 borderColor="wui-accent-glass-010" 352 @click=${this.onWalletConnectQr.bind(this)} 353 ></wui-icon-box> 354 `:null}onWalletConnectQr(){i.RouterController.push("ConnectingWalletConnect")}};N([(0,s.SB)()],M.prototype,"search",void 0),M=N([(0,o.customElement)("w3m-all-wallets-view")],M);var D=(0,a.iv)` 355 @keyframes shake { 356 0% { 357 transform: translateX(0); 358 } 359 25% { 360 transform: translateX(3px); 361 } 362 50% { 363 transform: translateX(-3px); 364 } 365 75% { 366 transform: translateX(3px); 367 } 368 100% { 369 transform: translateX(0); 370 } 371 } 372 373 wui-flex:first-child:not(:only-child) { 374 position: relative; 375 } 376 377 wui-loading-thumbnail { 378 position: absolute; 379 } 380 381 wui-visual { 382 width: var(--wui-wallet-image-size-lg); 383 height: var(--wui-wallet-image-size-lg); 384 border-radius: calc(var(--wui-border-radius-5xs) * 9 - var(--wui-border-radius-xxs)); 385 position: relative; 386 overflow: hidden; 387 } 388 389 wui-visual::after { 390 content: ''; 391 display: block; 392 width: 100%; 393 height: 100%; 394 position: absolute; 395 inset: 0; 396 border-radius: calc(var(--wui-border-radius-5xs) * 9 - var(--wui-border-radius-xxs)); 397 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 398 } 399 400 wui-icon-box { 401 position: absolute; 402 right: calc(var(--wui-spacing-3xs) * -1); 403 bottom: calc(var(--wui-spacing-3xs) * -1); 404 opacity: 0; 405 transform: scale(0.5); 406 transition: 407 opacity var(--wui-ease-out-power-2) var(--wui-duration-lg), 408 transform var(--wui-ease-out-power-2) var(--wui-duration-lg); 409 will-change: opacity, transform; 410 } 411 412 wui-text[align='center'] { 413 width: 100%; 414 padding: 0px var(--wui-spacing-l); 415 } 416 417 [data-error='true'] wui-icon-box { 418 opacity: 1; 419 transform: scale(1); 420 } 421 422 [data-error='true'] > wui-flex:first-child { 423 animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; 424 } 425 426 [data-retry='false'] wui-link { 427 display: none; 428 } 429 430 [data-retry='true'] wui-link { 431 display: block; 432 opacity: 1; 433 } 434 435 wui-link { 436 padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs); 437 } 438`,B=function(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};let $=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.selectedOnRampProvider=i.ph.state.selectedProvider,this.uri=i.ConnectionController.state.wcUri,this.ready=!1,this.showRetry=!1,this.buffering=!1,this.error=!1,this.startTime=null,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(i.ph.subscribeKey("selectedProvider",e=>{this.selectedOnRampProvider=e})),this.watchTransactions()}disconnectedCallback(){this.intervalId&&clearInterval(this.intervalId)}render(){let e="Continue in external window";this.error?e="Buy failed":this.selectedOnRampProvider&&(e=`Buy in ${this.selectedOnRampProvider?.label}`);let t=this.error?"Buy can be declined from your side or due to and error on the provider app":`Weâll notify you once your Buy is processed`;return(0,a.dy)` 439 <wui-flex 440 data-error=${l(this.error)} 441 data-retry=${this.showRetry} 442 flexDirection="column" 443 alignItems="center" 444 .padding=${["3xl","xl","xl","xl"]} 445 gap="xl" 446 > 447 <wui-flex justifyContent="center" alignItems="center"> 448 <wui-visual 449 name=${l(this.selectedOnRampProvider?.name)} 450 size="lg" 451 class="provider-image" 452 > 453 </wui-visual> 454 455 ${this.error?null:this.loaderTemplate()} 456 457 <wui-icon-box 458 backgroundColor="error-100" 459 background="opaque" 460 iconColor="error-100" 461 icon="close" 462 size="sm" 463 border 464 borderColor="wui-color-bg-125" 465 ></wui-icon-box> 466 </wui-flex> 467 468 <wui-flex flexDirection="column" alignItems="center" gap="xs"> 469 <wui-text variant="paragraph-500" color=${this.error?"error-100":"fg-100"}> 470 ${e} 471 </wui-text> 472 <wui-text align="center" variant="small-500" color="fg-200">${t}</wui-text> 473 </wui-flex> 474 475 ${this.error?this.tryAgainTemplate():null} 476 </wui-flex> 477 478 <wui-flex .padding=${["0","xl","xl","xl"]} justifyContent="center"> 479 <wui-link @click=${this.onCopyUri} color="fg-200"> 480 <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon> 481 Copy link 482 </wui-link> 483 </wui-flex> 484 `}watchTransactions(){this.selectedOnRampProvider&&"coinbase"===this.selectedOnRampProvider.name&&(this.startTime=Date.now(),this.initializeCoinbaseTransactions())}async initializeCoinbaseTransactions(){await this.watchCoinbaseTransactions(),this.intervalId=setInterval(()=>this.watchCoinbaseTransactions(),4e3)}async watchCoinbaseTransactions(){try{let e=i.AccountController.state.address,t=i.OptionsController.state.projectId;if(!e)throw Error("No address found");(await i.Lr.fetchTransactions({account:e,onramp:"coinbase",projectId:t})).data.filter(e=>new Date(e.metadata.minedAt)>new Date(this.startTime)||"ONRAMP_TRANSACTION_STATUS_IN_PROGRESS"===e.metadata.status).length?(clearInterval(this.intervalId),i.RouterController.replace("OnRampActivity")):this.startTime&&Date.now()-this.startTime>=18e4&&(clearInterval(this.intervalId),this.error=!0)}catch(e){i.SnackController.showError(e)}}onTryAgain(){this.selectedOnRampProvider&&(this.error=!1,i.j1.openHref(this.selectedOnRampProvider.url,"popupWindow","width=600,height=800,scrollbars=yes"))}tryAgainTemplate(){return this.selectedOnRampProvider?.url?(0,a.dy)`<wui-button size="md" variant="accent" @click=${this.onTryAgain.bind(this)}> 485 <wui-icon color="inherit" slot="iconLeft" name="refresh"></wui-icon> 486 Try again 487 </wui-button>
487`:null}loaderTemplate(){let e=i.ThemeController.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return(0,a.dy)`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}onCopyUri(){if(!this.selectedOnRampProvider?.url){i.SnackController.showError("No link found"),i.RouterController.goBack();return}try{i.j1.copyToClopboard(this.selectedOnRampProvider.url),i.SnackController.showSuccess("Link copied")}catch{i.SnackController.showError("Failed to copy")}}};$.styles=D,B([(0,s.SB)()],$.prototype,"intervalId",void 0),B([(0,s.SB)()],$.prototype,"selectedOnRampProvider",void 0),B([(0,s.SB)()],$.prototype,"uri",void 0),B([(0,s.SB)()],$.prototype,"ready",void 0),B([(0,s.SB)()],$.prototype,"showRetry",void 0),B([(0,s.SB)()],$.prototype,"buffering",void 0),B([(0,s.SB)()],$.prototype,"error",void 0),B([(0,s.SB)()],$.prototype,"startTime",void 0),B([(0,s.Cb)({type:Boolean})],$.prototype,"isMobile",void 0),B([(0,s.Cb)()],$.prototype,"onRetry",void 0),$=B([(0,o.customElement)("w3m-buy-in-progress-view")],$);var U=(0,a.iv)` 488 :host > wui-flex { 489 max-height: clamp(360px, 540px, 80vh); 490 scrollbar-width: none; 491 overflow-y: scroll; 492 overflow-x: hidden; 493 } 494 495 :host > wui-flex::-webkit-scrollbar {
496 display: none; 497 } 498 499 .all-wallets { 500 flex-flow: column; 501 } 502`,L=r(37249),j=function(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};let z=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.dy)` 503 <wui-flex flexDirection="column" .padding=${["3xs","s","s","s"]}> 504 <w3m-email-login-widget></w3m-email-login-widget> 505 <w3m-social-login-widget></w3m-social-login-widget> 506 ${this.walletListTemplate()} 507 </wui-flex> 508 <w3m-legal-footer></w3m-legal-footer> 509 `}walletListTemplate(){let e=this.connectors.find(e=>"AUTH"===e.type);return e?.socials?e?.showWallets?(0,a.dy)` 510 <wui-flex flexDirection="column" gap="xs" .margin=${["xs","0","0","0"]}> 511 <w3m-connector-list></w3m-connector-list> 512 <wui-flex class="all-wallets"> 513 <w3m-all-wallets-widget></w3m-all-wallets-widget> 514 </wui-flex> 515 </wui-flex> 516 `:(0,a.dy)`<wui-list-button 517 @click=${this.onContinueWalletClick.bind(this)} 518 text="Continue with a wallet" 519 ></wui-list-button>`:(0,a.dy)`<w3m-wallet-login-list></w3m-wallet-login-list>`}onContinueWalletClick(){i.RouterController.push("ConnectWallets")}};z.styles=U,j([(0,L.S)()],z.prototype,"connectors",void 0),z=j([(0,o.customElement)("w3m-connect-view")],z);var F=r(40655),H=(0,a.iv)` 520 @keyframes shake { 521 0% { 522 transform: translateX(0); 523 } 524 25% { 525 transform: translateX(3px); 526 } 527 50% { 528 transform: translateX(-3px); 529 } 530 75% { 531 transform: translateX(3px); 532 } 533 100% { 534 transform: translateX(0); 535 } 536 } 537 538 wui-flex:first-child:not(:only-child) { 539 position: relative; 540 } 541 542 wui-loading-thumbnail { 543 position: absolute; 544 } 545 546 wui-icon-box { 547 position: absolute; 548 right: calc(var(--wui-spacing-3xs) * -1); 549 bottom: calc(var(--wui-spacing-3xs) * -1); 550 opacity: 0; 551 transform: scale(0.5); 552 transition-property: opacity, transform; 553 transition-duration: var(--wui-duration-lg); 554 transition-timing-function: var(--wui-ease-out-power-2); 555 will-change: opacity, transform; 556 } 557 558 wui-text[align='center'] { 559 width: 100%; 560 padding: 0px var(--wui-spacing-l); 561 } 562 563 [data-error='true'] wui-icon-box { 564 opacity: 1; 565 transform: scale(1); 566 } 567 568 [data-error='true'] > wui-flex:first-child { 569 animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; 570 } 571 572 [data-retry='false'] wui-link { 573 display: none; 574 } 575 576 [data-retry='true'] wui-link { 577 display: block; 578 opacity: 1; 579 } 580`,q=function(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};class W extends a.oi{constructor(){super(),this.wallet=i.RouterController.state.data?.wallet,this.connector=i.RouterController.state.data?.connector,this.timeout=void 0,this.secondaryBtnLabel="Try again",this.secondaryBtnIcon="refresh",this.secondaryLabel="Accept connection request in the wallet",this.onConnect=void 0,this.onRender=void 0,this.onAutoConnect=void 0,this.isWalletConnect=!0,this.unsubscribe=[],this.imageSrc=i.fz.getWalletImage(this.wallet)??i.fz.getConnectorImage(this.connector),this.name=this.wallet?.name??this.connector?.name??"Wallet",this.isRetrying=!1,this.uri=i.ConnectionController.state.wcUri,this.error=i.ConnectionController.state.wcError,this.ready=!1,this.showRetry=!1,this.buffering=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(i.ConnectionController.subscribeKey("wcUri",e=>{this.uri=e,this.isRetrying&&this.onRetry&&(this.isRetrying=!1,this.onConnect?.())}),i.ConnectionController.subscribeKey("wcError",e=>this.error=e),i.ConnectionController.subscribeKey("buffering",e=>this.buffering=e))}firstUpdated(){this.onAutoConnect?.(),this.showRetry=!this.onAutoConnect}
580disconnectedCallback(){this.unsubscribe.forEach(e=>e()),clearTimeout(this.timeout)}render(){this.onRender?.(),this.onShowRetry();let e=this.error?"Connection can be declined if a previous request is still active":this.secondaryLabel,t=`Continue in ${this.name}`;return this.buffering&&(t="Connecting..."),this.error&&(t="Connection declined"),(0,a.dy)` 581 <wui-flex 582 data-error=${l(this.error)} 583 data-retry=${this.showRetry} 584 flexDirection="column" 585 alignItems="center" 586 .padding=${["3xl","xl","xl","xl"]} 587 gap="xl" 588 > 589 <wui-flex justifyContent="center" alignItems="center"> 590 <wui-wallet-image size="lg" imageSrc=${l(this.imageSrc)}></wui-wallet-image> 591 592 ${this.error?null:this.loaderTemplate()} 593 594 <wui-icon-box 595 backgroundColor="error-100" 596 background="opaque" 597 iconColor="error-100" 598 icon="close" 599 size="sm" 600 border 601 borderColor="wui-color-bg-125" 602 ></wui-icon-box> 603 </wui-flex> 604 605 <wui-flex flexDirection="column" alignItems="center" gap="xs"> 606 <wui-text variant="paragraph-500" color=${this.error?"error-100":"fg-100"}> 607 ${t} 608 </wui-text> 609 <wui-text align="center" variant="small-500" color="fg-200">${e}</wui-text> 610 </wui-flex> 611 612 <wui-button 613 variant="accent" 614 size="md" 615 ?disabled=${!this.error&&this.buffering} 616 @click=${this.onTryAgain.bind(this)} 617 > 618 <wui-icon color="inherit" slot="iconLeft" name=${this.secondaryBtnIcon}></wui-icon> 619 ${this.secondaryBtnLabel} 620 </wui-button> 621 </wui-flex> 622 623 ${this.isWalletConnect?(0,a.dy)` 624 <wui-flex .padding=${["0","xl","xl","xl"]} justifyContent="center"> 625 <wui-link @click=${this.onCopyUri} color="fg-200"> 626 <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon> 627 Copy link 628 </wui-link> 629 </wui-flex> 630 `:null} 631 632 <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links> 633 `}onShowRetry(){if(this.error&&!this.showRetry){this.showRetry=!0;let e=this.shadowRoot?.querySelector("wui-button");e?.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}onTryAgain(){this.buffering||(i.ConnectionController.setWcError(!1),this.onRetry?(this.isRetrying=!0,this.onRetry?.()):this.onConnect?.())}loaderTemplate(){let e=i.ThemeController.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return(0,a.dy)`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}onCopyUri(){try{this.uri&&(i.j1.copyToClopboard(this.uri),i.SnackController.showSuccess("Link copied"))}catch{i.SnackController.showError("Failed to copy")}}}W.styles=H,q([(0,s.SB)()],W.prototype,"uri",void 0),q([(0,s.SB)()],W.prototype,"error",void 0),q([(0,s.SB)()],W.prototype,"ready",void 0),q([(0,s.SB)()],W.prototype,"showRetry",void 0),q([(0,s.SB)()],W.prototype,"buffering",void 0),q([(0,s.Cb)({type:Boolean})],W.prototype,"isMobile",void 0),q([(0,s.Cb)()],W.prototype,"onRetry",void 0);let V=class extends W{constructor(){if(super(),!this.connector)throw Error("w3m-connecting-view: No connector provided");i.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.connector.name??"Unknown",platform:"browser"}}),this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),this.isWalletConnect=!1}async onConnectProxy(){try{this.error=!1,this.connector&&(this.connector.imageUrl&&i.MO.setConnectedWalletImageUrl(this.connector.imageUrl),this.connector.id===F.bq.COINBASE_SDK_CONNECTOR_ID&&this.error||(await i.ConnectionController.connectExternal(this.connector),i.OptionsController.state.isSiweEnabled?i.RouterController.push("ConnectingSiwe"):i.IN.close(),i.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser",name:this.connector.name||"Unknown"}})))}catch(e){i.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),this.error=!0}}};V=function(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}([(0,o.customElement)("w3m-connecting-external-view")],V);var Z=function(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};let G=class extends a.oi{constructor(){super(),this.interval=void 0,this.lastRetry=Date.now(),this.wallet=i.RouterController.state.data?.wallet,this.platform=void 0,this.platforms=[],this.initializeConnection(),this.interval=setInterval(this.initializeConnection.bind(this),i.bq.TEN_SEC_MS)}disconnectedCallback(){clearTimeout(this.interval)}render(){return this.wallet?(this.determinePlatforms(),(0,a.dy)` 634 ${this.headerTemplate()} 635 <div>${this.platformTemplate()}</div> 636 `):(0,a.dy)`<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>`}async initializeConnection(e=!1){try{let{wcPairingExpiry:t}=i.ConnectionController.state;if(e||i.j1.isPairingExpired(t)){if(this.wallet){let e=i.fz.getWalletImage(this.wallet);e&&i.MO.setConnectedWalletImageUrl(e)}else{let e=i.ConnectorController.state.connectors.find(e=>"WALLET_CONNECT"===e.type),t=i.fz.getConnectorImage(e);t&&i.MO.setConnectedWalletImageUrl(t)}if(await i.ConnectionController.connectWalletConnect(),this.finalizeConnection(),"AUTH"===i.MO.getConnectedConnector()&&i.OptionsController.state.hasMultipleAddresses)i.RouterController.push("SelectAddresses");else if(i.OptionsController.state.isSiweEnabled){let{SIWEController:e}=await Promise.all([r.e(138),r.e(502)]).then(r.bind(r,73344));"success"===e.state.status?i.IN.close():i.RouterController.push("ConnectingSiwe")}else i.IN.close()}}catch(e){i.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}
636),i.ConnectionController.setWcError(!0),i.j1.isAllowedRetry(this.lastRetry)&&(i.SnackController.showError("Declined"),this.lastRetry=Date.now(),this.initializeConnection(!0))}}finalizeConnection(){let{wcLinking:e,recentWallet:t}=i.ConnectionController.state;e&&i.MO.setWalletConnectDeepLink(e),t&&i.MO.setWeb3ModalRecent(t),i.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:e?"mobile":"qrcode",name:this.wallet?.name||"Unknown"}})}determinePlatforms(){if(!this.wallet)throw Error("w3m-connecting-wc-view:determinePlatforms No wallet");if(this.platform)return;let{mobile_link:e,desktop_link:t,webapp_link:r,injected:n,rdns:o}=this.wallet,a=n?.map(({injected_id:e})=>e).filter(Boolean),s=o?[o]:a??[],c=!i.OptionsController.state.isUniversalProvider&&s.length,l=i.ConnectionController.checkInstalled(s),u=c&&l,d=t&&!i.j1.isMobile();u&&this.platforms.push("browser"),e&&this.platforms.push(i.j1.isMobile()?"mobile":"qrcode"),r&&this.platforms.push("web"),d&&this.platforms.push("desktop"),!u&&c&&this.platforms.push("unsupported"),this.platform=this.platforms[0]}platformTemplate(){switch(this.platform){case"browser":return(0,a.dy)`<w3m-connecting-wc-browser></w3m-connecting-wc-browser>`;case"desktop":return(0,a.dy)` 637 <w3m-connecting-wc-desktop .onRetry=${()=>this.initializeConnection(!0)}> 638 </w3m-connecting-wc-desktop> 639 `;case"web":return(0,a.dy)` 640 <w3m-connecting-wc-web .onRetry=${()=>this.initializeConnection(!0)}> 641 </w3m-connecting-wc-web> 642 `;case"mobile":return(0,a.dy)` 643 <w3m-connecting-wc-mobile isMobile .onRetry=${()=>this.initializeConnection(!0)}> 644 </w3m-connecting-wc-mobile> 645 `;case"qrcode":return(0,a.dy)`<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>`;default:return(0,a.dy)`<w3m-connecting-wc-unsupported></w3m-connecting-wc-unsupported>`}}headerTemplate(){return this.platforms.length>1?(0,a.dy)` 646 <w3m-connecting-header 647 .platforms=${this.platforms} 648 .onSelectPlatfrom=${this.onSelectPlatform.bind(this)} 649 > 650 </w3m-connecting-header> 651 `:null}async onSelectPlatform(e){let t=this.shadowRoot?.querySelector("div");t&&(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.platform=e,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}};Z([(0,s.SB)()],G.prototype,"platform",void 0),Z([(0,s.SB)()],G.prototype,"platforms",void 0),G=Z([(0,o.customElement)("w3m-connecting-wc-view")],G);var K=(0,a.iv)` 652 .continue-button-container { 653 width: 100%; 654 } 655`,Y=r(15519),Q=function(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};let J=class extends a.oi{constructor(){super(...arguments),this.loading=!1}render(){return(0,a.dy)` 656 <wui-flex 657 flexDirection="column" 658 alignItems="center" 659 gap="xxl" 660 .padding=${["0","0","l","0"]} 661 > 662 ${this.onboardingTemplate()} ${this.buttonsTemplate()} 663 <wui-link 664 @click=${()=>{i.j1.openHref(Y.UE.URLS.FAQ,"_blank")}} 665 > 666 Learn more about names 667 <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon> 668 </wui-link> 669 </wui-flex> 670 `}onboardingTemplate(){return(0,a.dy)` <wui-flex 671 flexDirection="column" 672 gap="xxl" 673 alignItems="center" 674 .padding=${["0","xxl","0","xxl"]} 675 > 676 <wui-flex gap="s" alignItems="center" justifyContent="center"> 677 <wui-icon-box 678 icon="id" 679 size="xl" 680 iconSize="xxl" 681 iconColor="fg-200" 682 backgroundColor="fg-200" 683 ></wui-icon-box> 684 </wui-flex> 685 <wui-flex flexDirection="column" alignItems="center" gap="s"> 686 <wui-text align="center" variant="medium-600" color="fg-100"> 687 Choose your account name 688 </wui-text> 689 <wui-text align="center" variant="paragraph-400" color="fg-100"> 690 Finally say goodbye to 0x addresses, name your account to make it easier to exchange 691 assets 692 </wui-text> 693 </wui-flex> 694 </wui-flex>`}buttonsTemplate(){return(0,a.dy)`<wui-flex 695 .padding=${["0","2l","0","2l"]} 696 gap="s" 697 class="continue-button-container" 698 > 699 <wui-button 700 fullWidth 701 .loading=${this.loading} 702 size="lg" 703 borderRadius="xs" 704 @click=${this.handleContinue.bind(this)} 705 >Choose name 706 </wui-button>
706 707 </wui-flex>`}handleContinue(){i.RouterController.push("RegisterAccountName"),i.Xs.sendEvent({type:"track",event:"OPEN_ENS_FLOW",properties:{isSmartAccount:i.AccountController.state.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT}})}};J.styles=K,Q([(0,s.SB)()],J.prototype,"loading",void 0),J=Q([(0,o.customElement)("w3m-choose-account-name-view")],J);let X=class extends a.oi{constructor(){super(...arguments),this.wallet=i.RouterController.state.data?.wallet}render(){if(!this.wallet)throw Error("w3m-downloads-view");return(0,a.dy)` 708 <wui-flex gap="xs" flexDirection="column" .padding=${["s","s","l","s"]}> 709 ${this.chromeTemplate()} ${this.iosTemplate()} ${this.androidTemplate()} 710 ${this.homepageTemplate()} 711 </wui-flex> 712 `}chromeTemplate(){return this.wallet?.chrome_store?(0,a.dy)`<wui-list-item 713 variant="icon" 714 icon="chromeStore" 715 iconVariant="square" 716 @click=${this.onChromeStore.bind(this)} 717 chevron 718 > 719 <wui-text variant="paragraph-500" color="fg-100">Chrome Extension</wui-text> 720 </wui-list-item>`:null}iosTemplate(){return this.wallet?.app_store?(0,a.dy)`<wui-list-item 721 variant="icon" 722 icon="appStore" 723 iconVariant="square" 724 @click=${this.onAppStore.bind(this)} 725 chevron 726 > 727 <wui-text variant="paragraph-500" color="fg-100">iOS App</wui-text> 728 </wui-list-item>`:null}androidTemplate(){return this.wallet?.play_store?(0,a.dy)`<wui-list-item 729 variant="icon" 730 icon="playStore" 731 iconVariant="square" 732 @click=${this.onPlayStore.bind(this)} 733 chevron 734 > 735 <wui-text variant="paragraph-500" color="fg-100">Android App</wui-text> 736 </wui-list-item>`:null}homepageTemplate(){return this.wallet?.homepage?(0,a.dy)` 737 <wui-list-item 738 variant="icon" 739 icon="browser" 740 iconVariant="square-blue" 741 @click=${this.onHomePage.bind(this)} 742 chevron 743 > 744 <wui-text variant="paragraph-500" color="fg-100">Website</wui-text> 745 </wui-list-item> 746 `:null}onChromeStore(){this.wallet?.chrome_store&&i.j1.openHref(this.wallet.chrome_store,"_blank")}onAppStore(){this.wallet?.app_store&&i.j1.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&i.j1.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&i.j1.openHref(this.wallet.homepage,"_blank")}};X=function(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}([(0,o.customElement)("w3m-downloads-view")],X);let ee=class extends a.oi{render(){return(0,a.dy)` 747 <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs"> 748 ${this.recommendedWalletsTemplate()} 749 <wui-list-wallet 750 name="Explore all" 751 showAllWallets 752 walletIcon="allWallets" 753 icon="externalLink" 754 @click=${()=>{i.j1.openHref("https://walletconnect.com/explorer?type=wallet","_blank")}} 755 ></wui-list-wallet> 756 </wui-flex> 757 `}recommendedWalletsTemplate(){let{recommended:e,featured:t}=i.ApiController.state,{customWallets:r}=i.OptionsController.state;return[...t,...r??[],...e].slice(0,4).map(e=>(0,a.dy)` 758 <wui-list-wallet 759 name=${e.name??"Unknown"} 760 tagVariant="main" 761 imageSrc=${l(i.fz.getWalletImage(e))} 762 @click=${()=>{i.j1.openHref(e.homepage??"https://walletconnect.com/explorer","_blank")}} 763 ></wui-list-wallet> 764 `)}};ee=function(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}([(0,o.customElement)("w3m-get-wallet-view")],ee);var et=(0,a.iv)` 765 wui-flex { 766 width: 100%; 767 } 768 769 .suggestion { 770 background: var(--wui-color-gray-glass-002); 771 border-radius: var(--wui-border-radius-xs); 772 } 773 774 .suggestion:hover { 775 background-color: var(--wui-color-gray-glass-005); 776 cursor: pointer; 777 } 778 779 .suggested-name { 780 max-width: 75%; 781 overflow: hidden; 782 text-overflow: ellipsis; 783 white-space: nowrap; 784 } 785 786 form { 787 width: 100%; 788 } 789 790 wui-icon-link { 791 position: absolute; 792 right: 20px; 793 transform: translateY(11px); 794 } 795`;/** 796 * @license 797 * Copyright 2020 Google LLC 798 * SPDX-License-Identifier: BSD-3-Clause 799 */let{I:er}=c._$LH,en=e=>void 0===e.strings;class ei{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this.t=e,this._$AM=t,this.i=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}/** 800 * @license 801 * Copyright 2017 Google LLC 802 * SPDX-License-Identifier: BSD-3-Clause 803 */let eo=(e,t)=>{let r=e._$AN;if(void 0===r)return!1;for(let e of r)e._$AO?.(t,!1),eo(e,t);return!0},ea=e=>{let t,r;do{if(void 0===(t=e._$AM))break;(r=t._$AN).delete(e),e=t}while(0===r?.size)},es=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(void 0===r)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),eu(t)}};function ec(e){void 0!==this._$AN?(ea(this),this._$AM=e,es(this)):this._$AM=e}function el(e,t=!1,r=0){let n=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size){if(t){if(Array.isArray(n))for(let e=r;e<n.length;e++)eo(n[e],!1),ea(n[e]);else null!=n&&(eo(n,!1),ea(n))}else eo(this,e)}}let eu=e=>{2==e.type&&(e._$AP??=el,e._$AQ??=ec)};class ed extends ei{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),es(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(eo(this,e),ea(this))}setValue(e){if(en(this.t))this.t._$AI(e,this);else{let t=[...this.t._$AH];t[this.i]=e,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}}/** 804 * @license 805 * Copyright 2020 Google LLC 806 * SPDX-License-Identifier: BSD-3-Clause 807 */let eh=()=>new ef;class ef{}let ep=new WeakMap,eg=(n=class extends ed{render(e){return c.Ld}update(e,[t]){let r=t!==this.Y;return r&&void 0!==this.Y&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),c.Ld}rt(e){if(this.isConnected||(e=void 0),"function"==typeof this.Y){let t=this.ht??globalThis,r=ep.get(t);void 0===r&&(r=new WeakMap,ep.set(t,r)),void 0!==r.get(this.Y)&&this.Y.call(this.ht,void 0),r.set(this.Y,e),void 0!==e&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){return"function"==typeof this.Y?ep.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}},(...e)=>({_$litDirective$:n,values:e}));var em=function(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};let ew=class extends a.oi{constructor(){super(),this.formRef=eh(),this.usubscribe=[],this.name="",this.error="",this.loading=i.a.state.loading,this.suggestions=i.a.state.suggestions,this.registered=!1,this.profileName=i.AccountController.state.profileName,this.onDebouncedNameInputChange=i.j1.debounce(e=>{i.a.validateName(e)?(this.error="",this.name=e,i.a.getSuggestions(e),i.a.isNameRegistered(e).then(e=>{this.registered=e})):e.length<4?this.error="Name must be at least 4 characters long":this.error="Can only contain letters, numbers and - characters"}),this.usubscribe.push(i.a.subscribe(e=>{this.suggestions=e.suggestions,this.loading=e.loading}),i.AccountController.subscribeKey("profileName",e=>{this.profileName=e,e&&(this.error="You already own a name")}))}firstUpdated(){this.formRef.value?.addEventListener("keydown",this.onEnterKey.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.usubscribe.forEach(e
807=>e()),this.formRef.value?.removeEventListener("keydown",this.onEnterKey.bind(this))}render(){return(0,a.dy)` 808 <wui-flex 809 flexDirection="column" 810 alignItems="center" 811 gap="m" 812 .padding=${["0","s","m","s"]} 813 > 814 <form ${eg(this.formRef)} @submit=${this.onSubmitName.bind(this)}> 815 <wui-ens-input 816 @inputChange=${this.onNameInputChange.bind(this)} 817 .errorMessage=${this.error} 818 .value=${this.name} 819 > 820 </wui-ens-input> 821 ${this.submitButtonTemplate()} 822 <input type="submit" hidden /> 823 </form> 824 ${this.templateSuggestions()} 825 </wui-flex> 826 `}submitButtonTemplate(){return this.isAllowedToSubmit()?(0,a.dy)` 827 <wui-icon-link 828 size="sm" 829 icon="chevronRight" 830 iconcolor="accent-100" 831 @click=${this.onSubmitName.bind(this)} 832 > 833 </wui-icon-link> 834 `:null}onSelectSuggestion(e){return()=>{this.name=e,this.registered=!1,this.requestUpdate()}}onNameInputChange(e){this.onDebouncedNameInputChange(e.detail)}nameSuggestionTagTemplate(){return this.loading?(0,a.dy)`<wui-loading-spinner size="lg" color="fg-100"></wui-loading-spinner>`:this.registered?(0,a.dy)`<wui-tag variant="shade" size="lg">Registered</wui-tag>`:(0,a.dy)`<wui-tag variant="success" size="lg">Available</wui-tag>`}templateSuggestions(){if(!this.name||this.name.length<4||this.error)return null;let e=this.registered?this.suggestions.filter(e=>e.name!==this.name):[];return(0,a.dy)`<wui-flex flexDirection="column" gap="xxs" alignItems="center"> 835 <wui-flex 836 data-testid="account-name-suggestion" 837 .padding=${["m","m","m","m"]} 838 justifyContent="space-between" 839 class="suggestion" 840 > 841 <wui-text color="fg-100" variant="paragraph-400" class="suggested-name"> 842 ${this.name}</wui-text 843 >${this.nameSuggestionTagTemplate()} 844 </wui-flex> 845 ${e.map(e=>this.availableNameTemplate(e.name))} 846 </wui-flex>`}availableNameTemplate(e){return(0,a.dy)` <wui-flex 847 data-testid="account-name-suggestion" 848 .padding=${["m","m","m","m"]} 849 justifyContent="space-between" 850 class="suggestion" 851 @click=${this.onSelectSuggestion(e)} 852 > 853 <wui-text color="fg-100" variant="paragraph-400" class="suggested-name"> 854 ${e} 855 </wui-text> 856 <wui-tag variant="success" size="lg">Available</wui-tag> 857 </wui-flex>`}isAllowedToSubmit(){return!this.loading&&!this.registered&&!this.error&&!this.profileName&&i.a.validateName(this.name)}async onSubmitName(){try{if(!this.isAllowedToSubmit())return;i.Xs.sendEvent({type:"track",event:"REGISTER_NAME_INITIATED",properties:{isSmartAccount:i.AccountController.state.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT,ensName:this.name}}),await i.a.registerName(this.name),i.Xs.sendEvent({type:"track",event:"REGISTER_NAME_SUCCESS",properties:{isSmartAccount:i.AccountController.state.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT,ensName:this.name}})}catch(e){i.SnackController.showError(e.message),i.Xs.sendEvent({type:"track",event:"REGISTER_NAME_ERROR",properties:{isSmartAccount:i.AccountController.state.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT,ensName:this.name,error:e?.message||"Unknown error"}})}}onEnterKey(e){"Enter"===e.key&&this.isAllowedToSubmit()&&this.onSubmitName()}};ew.styles=et,em([(0,s.Cb)()],ew.prototype,"errorMessage",void 0),em([(0,s.SB)()],ew.prototype,"name",void 0),em([(0,s.SB)()],ew.prototype,"error",void 0),em([(0,s.SB)()],ew.prototype,"loading",void 0),em([(0,s.SB)()],ew.prototype,"suggestions",void 0),em([(0,s.SB)()],ew.prototype,"registered",void 0),em([(0,s.SB)()],ew.prototype,"profileName",void 0),ew=em([(0,o.customElement)("w3m-register-account-name-view")],ew);var eb=(0,a.iv)` 858 .continue-button-container { 859 width: 100%; 860 } 861`;let ev=class extends a.oi{render(){return(0,a.dy)` 862 <wui-flex 863 flexDirection="column" 864 alignItems="center" 865 gap="xxl" 866 .padding=${["0","0","l","0"]} 867 > 868 ${this.onboardingTemplate()} ${this.buttonsTemplate()} 869 <wui-link 870 @click=${()=>{i.j1.openHref(Y.UE.URLS.FAQ,"_blank")}} 871 > 872 Learn more 873 <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon> 874 </wui-link> 875 </wui-flex> 876 `}onboardingTemplate(){return(0,a.dy)` <wui-flex 877 flexDirection="column" 878 gap="xxl" 879 alignItems="center" 880 .padding=${["0","xxl","0","xxl"]} 881 > 882 <wui-flex gap="s" alignItems="center" justifyContent="center"> 883 <wui-icon-box 884 size="xl" 885 iconcolor="success-100" 886 backgroundcolor="success-100" 887 icon="checkmark" 888 background="opaque" 889 ></wui-icon-box> 890 </wui-flex> 891 <wui-flex flexDirection="column" alignItems="center" gap="s"> 892 <wui-text align="center" variant="medium-600" color="fg-100"> 893 Account name chosen successfully 894 </wui-text> 895 <wui-text align="center" variant="paragraph-400" color="fg-100"> 896 You can now fund your account and trade crypto 897 </wui-text> 898 </wui-flex> 899 </wui-flex>`}buttonsTemplate(){return(0,a.dy)`<wui-flex 900 .padding=${["0","2l","0","2l"]} 901 gap="s" 902 class="continue-button-container" 903 > 904 <wui-button fullWidth size="lg" borderRadius="xs" @click=${this.redirectToAccount.bind(this)} 905 >Let's Go! 906 </wui-button>
906 907 </wui-flex>`}redirectToAccount(){i.RouterController.replace("Account")}};ev.styles=eb,ev=function(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}([(0,o.customElement)("w3m-register-account-name-success-view")],ev);var ey=(0,a.iv)` 908 @keyframes shake { 909 0% { 910 transform: translateX(0); 911 } 912 25% { 913 transform: translateX(3px); 914 } 915 50% { 916 transform: translateX(-3px); 917 } 918 75% { 919 transform: translateX(3px); 920 } 921 100% { 922 transform: translateX(0); 923 } 924 } 925 926 wui-flex:first-child:not(:only-child) { 927 position: relative; 928 } 929 930 wui-loading-hexagon { 931 position: absolute; 932 } 933 934 wui-icon-box { 935 position: absolute; 936 right: 4px; 937 bottom: 0; 938 opacity: 0; 939 transform: scale(0.5); 940 z-index: 1; 941 } 942 943 wui-button { 944 display: none; 945 } 946 947 [data-error='true'] wui-icon-box { 948 opacity: 1; 949 transform: scale(1); 950 } 951 952 [data-error='true'] > wui-flex:first-child { 953 animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; 954 } 955 956 wui-button[data-retry='true'] { 957 display: block; 958 opacity: 1; 959 } 960`;let eC={onNetworkChange:async()=>{if(i.OptionsController.state.isSiweEnabled){let{SIWEController:e}=await Promise.all([r.e(138),r.e(502)]).then(r.bind(r,73344));e.state._client?.options?.signOutOnNetworkChange?await e.signOut():i._4.navigateAfterNetworkSwitch()}else i._4.navigateAfterNetworkSwitch()}};var ex=function(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};let eA=class extends a.oi{constructor(){super(),this.network=i.RouterController.state.data?.network,this.unsubscribe=[],this.showRetry=!1,this.error=!1}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}firstUpdated(){this.onSwitchNetwork()}render(){if(!this.network)throw Error("w3m-network-switch-view: No network provided");this.onShowRetry();let e=this.getLabel(),t=this.getSubLabel();return(0,a.dy)` 961 <wui-flex 962 data-error=${this.error} 963 flexDirection="column" 964 alignItems="center" 965 .padding=${["3xl","xl","3xl","xl"]} 966 gap="xl" 967 > 968 <wui-flex justifyContent="center" alignItems="center"> 969 <wui-network-image 970 size="lg" 971 imageSrc=${l(i.fz.getNetworkImage(this.network))} 972 ></wui-network-image> 973 974 ${this.error?null:(0,a.dy)`<wui-loading-hexagon></wui-loading-hexagon>`} 975 976 <wui-icon-box 977 backgroundColor="error-100" 978 background="opaque" 979 iconColor="error-100" 980 icon="close" 981 size="sm" 982 ?border=${!0} 983 borderColor="wui-color-bg-125" 984 ></wui-icon-box> 985 </wui-flex> 986 987 <wui-flex flexDirection="column" alignItems="center" gap="xs"> 988 <wui-text align="center" variant="paragraph-500" color="fg-100">${e}</wui-text> 989 <wui-text align="center" variant="small-500" color="fg-200">${t}</wui-text> 990 </wui-flex> 991 992 <wui-button 993 data-retry=${this.showRetry} 994 variant="accent" 995 size="md" 996 .disabled=${!this.error} 997 @click=${this.onSwitchNetwork.bind(this)} 998 > 999 <wui-icon color="inherit" slot="iconLeft" name="refresh"></wui-icon> 1000 Try again 1001 </wui-button> 1002 </wui-flex> 1003 `}getSubLabel(){let e=i.MO.getConnectedConnector();return i.ConnectorController.getAuthConnector()&&"AUTH"===e?"":this.error?"Switch can be declined if chain is not supported by a wallet or previous request is still active":"Accept connection request in your wallet"}getLabel(){let e=i.MO.getConnectedConnector();return i.ConnectorController.getAuthConnector()&&"AUTH"===e?`Switching to ${this.network?.name??"Unknown"} network...`:this.error?"Switch declined":"Approve in wallet"}onShowRetry(){if(this.error&&!this.showRetry){this.showRetry=!0;let e=this.shadowRoot?.querySelector("wui-button");e?.animate([{opacity:0}
1003,{opacity:1}],{fill:"forwards",easing:"ease"})}}async onSwitchNetwork(){try{this.error=!1,this.network&&(await i.fB.switchActiveNetwork(this.network),await eC.onNetworkChange())}catch{this.error=!0}}};eA.styles=ey,ex([(0,s.SB)()],eA.prototype,"showRetry",void 0),ex([(0,s.SB)()],eA.prototype,"error",void 0),eA=ex([(0,o.customElement)("w3m-network-switch-view")],eA);var eE=(0,a.iv)` 1004 :host > wui-grid { 1005 max-height: 360px; 1006 overflow: auto; 1007 } 1008 1009 wui-grid::-webkit-scrollbar { 1010 display: none; 1011 } 1012`,ek=function(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};let e_=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.caipNetwork=i.fB.state.caipNetwork,this.requestedCaipNetworks=i.fB.getRequestedCaipNetworks(),this.unsubscribe.push(i.fB.subscribeKey("caipNetwork",e=>this.caipNetwork=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.dy)` 1013 <wui-grid padding="s" gridTemplateColumns="repeat(4, 1fr)" rowGap="l" columnGap="xs"> 1014 ${this.networksTemplate()} 1015 </wui-grid> 1016 1017 <wui-separator></wui-separator> 1018 1019 <wui-flex padding="s" flexDirection="column" gap="m" alignItems="center"> 1020 <wui-text variant="small-400" color="fg-300" align="center"> 1021 Your connected wallet may not support some of the networks available for this dApp 1022 </wui-text> 1023 <wui-link @click=${this.onNetworkHelp.bind(this)}> 1024 <wui-icon size="xs" color="accent-100" slot="iconLeft" name="helpCircle"></wui-icon> 1025 What is a network 1026 </wui-link> 1027 </wui-flex> 1028 `}onNetworkHelp(){i.Xs.sendEvent({type:"track",event:"CLICK_NETWORK_HELP"}),i.RouterController.push("WhatIsANetwork")}networksTemplate(){let e=i.fB.getRequestedCaipNetworks(),t=i.fB.state.approvedCaipNetworkIds,r=i.fB.state.supportsAllNetworks,n=i.j1.sortRequestedNetworks(t,e);return n?.map(e=>a.dy` 1029 <wui-card-select 1030 .selected=${this.caipNetwork?.id===e.id} 1031 imageSrc=${l(i.fz.getNetworkImage(e))} 1032 type="network" 1033 name=${e.name??e.id} 1034 @click=${()=>this.onSwitchNetwork(e)} 1035 .disabled=${!r&&!t?.includes(e.id)} 1036 data-testid=${`w3m-network-switch-${e.name??e.id}`} 1037 ></wui-card-select> 1038 `)}async onSwitchNetwork(e){let t=i.AccountController.state.isConnected,r=i.fB.state.approvedCaipNetworkIds,n=i.fB.state.supportsAllNetworks,o=i.fB.state.caipNetwork,a=i.RouterController.state.data;t&&o?.id!==e.id?r?.includes(e.id)?(await i.fB.switchActiveNetwork(e),await eC.onNetworkChange()):n&&i.RouterController.push("SwitchNetwork",{...a,network:e}):t||(i.fB.setCaipNetwork(e),i.RouterController.push("Connect"))}};e_.styles=eE,ek([(0,s.SB)()],e_.prototype,"caipNetwork",void 0),ek([(0,s.SB)()],e_.prototype,"requestedCaipNetworks",void 0),e_=ek([(0,o.customElement)("w3m-networks-view")],e_);var eS=(0,a.iv)` 1039 :host > wui-flex { 1040 height: 500px; 1041 overflow-y: auto; 1042 overflow-x: hidden; 1043 scrollbar-width: none; 1044 padding: var(--wui-spacing-m); 1045 box-sizing: border-box; 1046 display: flex; 1047 align-items: center; 1048 justify-content: flex-start; 1049 } 1050 1051 :host > wui-flex::-webkit-scrollbar {
1052 display: none; 1053 } 1054 1055 :host > wui-flex > wui-flex { 1056 width: 100%; 1057 } 1058 1059 wui-transaction-list-item-loader { 1060 width: 100%; 1061 } 1062`,eT=function(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};let eI=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.selectedOnRampProvider=i.ph.state.selectedProvider,this.loading=!1,this.coinbaseTransactions=i.sl.state.coinbaseTransactions,this.tokenImages=i.WM.state.tokenImages,this.unsubscribe.push(i.ph.subscribeKey("selectedProvider",e=>{this.selectedOnRampProvider=e}),i.WM.subscribeKey("tokenImages",e=>this.tokenImages=e),()=>{clearTimeout(this.refetchTimeout)},i.sl.subscribe(e=>{this.coinbaseTransactions={...e.coinbaseTransactions}})),i.sl.clearCursor(),this.fetchTransactions()}render(){return(0,a.dy)` 1063 <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs"> 1064 ${this.loading?this.templateLoading():this.templateTransactionsByYear()} 1065 </wui-flex> 1066 `}templateTransactions(e){return e?.map(e=>{let t=Y.Em.formatDate(e?.metadata?.minedAt),r=e.transfers[0],n=r?.fungible_info;if(!n)return null;let i=n?.icon?.url||this.tokenImages?.[n.symbol||""];return a.dy` 1067 <w3m-onramp-activity-item 1068 label="Bought" 1069 .completed=${"ONRAMP_TRANSACTION_STATUS_SUCCESS"===e.metadata.status} 1070 .inProgress=${"ONRAMP_TRANSACTION_STATUS_IN_PROGRESS"===e.metadata.status} 1071 .failed=${"ONRAMP_TRANSACTION_STATUS_FAILED"===e.metadata.status} 1072 purchaseCurrency=${l(n.symbol)} 1073 purchaseValue=${r.quantity.numeric} 1074 date=${t} 1075 icon=${l(i)} 1076 symbol=${l(n.symbol)} 1077 ></w3m-onramp-activity-item> 1078 `})}templateTransactionsByYear(){return Object.keys(this.coinbaseTransactions).sort().reverse().map(e=>{let t=parseInt(e,10);return Array(12).fill(null).map((e,t)=>t).reverse().map(e=>{let r=o.TransactionUtil.getTransactionGroupTitle(t,e),n=this.coinbaseTransactions[t]?.[e];return n?(0,a.dy)` 1079 <wui-flex flexDirection="column"> 1080 <wui-flex 1081 alignItems="center" 1082 flexDirection="row" 1083 .padding=${["xs","s","s","s"]} 1084 > 1085 <wui-text variant="paragraph-500" color="fg-200">${r}</wui-text> 1086 </wui-flex> 1087 <wui-flex flexDirection="column" gap="xs"> 1088 ${this.templateTransactions(n)} 1089 </wui-flex> 1090 </wui-flex> 1091 `:null})})}async fetchTransactions(){await this.fetchCoinbaseTransactions()}async fetchCoinbaseTransactions(){let e=i.AccountController.state.address,t=i.OptionsController.state.projectId;if(!e)throw Error("No address found");if(!t)throw Error("No projectId found");this.loading=!0,await i.sl.fetchTransactions(e,"coinbase"),this.loading=!1,this.refetchLoadingTransactions()}refetchLoadingTransactions(){let e=new Date;if(0===(this.coinbaseTransactions[e.getFullYear()]?.[e.getMonth()]||[]).filter(e=>"ONRAMP_TRANSACTION_STATUS_IN_PROGRESS"===e.metadata.status).length){clearTimeout(this.refetchTimeout);return}this.refetchTimeout=setTimeout(async()=>{let e=i.AccountController.state.address;await i.sl.fetchTransactions(e,"coinbase"),this.refetchLoadingTransactions()},3e3)}templateLoading(){return Array(7).fill((0,a.dy)` <wui-transaction-list-item-loader></wui-transaction-list-item-loader> `).map(e=>e)}};eI.styles=eS,eT([(0,s.SB)()],eI.prototype,"selectedOnRampProvider",void 0),eT([(0,s.SB)()],eI.prototype,"loading",void 0),eT([(0,s.SB)()],eI.prototype,"coinbaseTransactions",void 0),eT([(0,s.SB)()],eI.prototype,"tokenImages",void 0),eI=eT([(0,o.customElement)("w3m-onramp-activity-view")],eI);var eR=(0,a.iv)` 1092 :host > wui-grid { 1093 max-height: 360px; 1094 overflow: auto; 1095 } 1096 1097 wui-grid::-webkit-scrollbar {
1098 display: none; 1099 } 1100`,eO=function(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};let eP=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.selectedCurrency=i.ph.state.paymentCurrency,this.currencies=i.ph.state.paymentCurrencies,this.currencyImages=i.WM.state.currencyImages,this.unsubscribe.push(i.ph.subscribe(e=>{this.selectedCurrency=e.paymentCurrency,this.currencies=e.paymentCurrencies}),i.WM.subscribeKey("currencyImages",e=>this.currencyImages=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.dy)` 1101 <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs"> 1102 ${this.currenciesTemplate()} 1103 </wui-flex> 1104 <w3m-legal-footer></w3m-legal-footer> 1105 `}currenciesTemplate(){return this.currencies.map(e=>(0,a.dy)` 1106 <wui-list-item 1107 imageSrc=${l(this.currencyImages?.[e.id])} 1108 @click=${()=>this.selectCurrency(e)} 1109 variant="image" 1110 > 1111 <wui-text variant="paragraph-500" color="fg-100">${e.id}</wui-text> 1112 </wui-list-item> 1113 `)}selectCurrency(e){e&&(i.ph.setPaymentCurrency(e),i.IN.close())}};eP.styles=eR,eO([(0,s.SB)()],eP.prototype,"selectedCurrency",void 0),eO([(0,s.SB)()],eP.prototype,"currencies",void 0),eO([(0,s.SB)()],eP.prototype,"currencyImages",void 0),eP=eO([(0,o.customElement)("w3m-onramp-fiat-select-view")],eP);var eN=function(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};let eM=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.providers=i.ph.state.providers,this.unsubscribe.push(i.ph.subscribeKey("providers",e=>{this.providers=e}))}firstUpdated(){Promise.all(this.providers.map(async e=>"coinbase"===e.name?await this.getCoinbaseOnRampURL():Promise.resolve(e?.url))).then(e=>{this.providers=this.providers.map((t,r)=>({...t,url:e[r]||""}))})}render(){return(0,a.dy)` 1114 <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs"> 1115 ${this.onRampProvidersTemplate()} 1116 </wui-flex> 1117 <w3m-onramp-providers-footer></w3m-onramp-providers-footer> 1118 `}onRampProvidersTemplate(){return this.providers.map(e=>(0,a.dy)` 1119 <w3m-onramp-provider-item 1120 label=${e.label} 1121 name=${e.name} 1122 feeRange=${e.feeRange} 1123 @click=${()=>{this.onClickProvider(e)}} 1124 ?disabled=${!e.url} 1125 ></w3m-onramp-provider-item> 1126 `)}onClickProvider(e){i.ph.setSelectedProvider(e),i.RouterController.push("BuyInProgress"),i.j1.openHref(e.url,"popupWindow","width=600,height=800,scrollbars=yes"),i.Xs.sendEvent({type:"track",event:"SELECT_BUY_PROVIDER",properties:{provider:e.name,isSmartAccount:i.AccountController.state.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT}})}async getCoinbaseOnRampURL(){let e=i.AccountController.state.address,t=i.fB.state.caipNetwork;if(!e)throw Error("No address found");if(!t?.name)throw Error("No network found");let r=i.bq.WC_COINBASE_PAY_SDK_CHAIN_NAME_MAP[t.name]??i.bq.WC_COINBASE_PAY_SDK_FALLBACK_CHAIN,n=i.ph.state.purchaseCurrency,o=n?[n.symbol]:i.ph.state.purchaseCurrencies.map(e=>e.symbol);return await i.Lr.generateOnRampURL({defaultNetwork:r,destinationWallets:[{address:e,blockchains:i.bq.WC_COINBASE_PAY_SDK_CHAINS,assets:o}],partnerUserId:e,purchaseAmount:i.ph.state.purchaseAmount})}};eN([(0,s.SB)()],eM.prototype,"providers",void 0),eM=eN([(0,o.customElement)("w3m-onramp-providers-view")],eM);var eD=(0,a.iv)` 1127 :host > wui-grid { 1128 max-height: 360px; 1129 overflow: auto; 1130 } 1131 1132 wui-grid::-webkit-scrollbar {
1133 display: none; 1134 } 1135`,eB=function(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};let e$=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.selectedCurrency=i.ph.state.purchaseCurrencies,this.tokens=i.ph.state.purchaseCurrencies,this.tokenImages=i.WM.state.tokenImages,this.unsubscribe.push(i.ph.subscribe(e=>{this.selectedCurrency=e.purchaseCurrencies,this.tokens=e.purchaseCurrencies}),i.WM.subscribeKey("tokenImages",e=>this.tokenImages=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.dy)` 1136 <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs"> 1137 ${this.currenciesTemplate()} 1138 </wui-flex> 1139 <w3m-legal-footer></w3m-legal-footer> 1140 `}currenciesTemplate(){return this.tokens.map(e=>(0,a.dy)` 1141 <wui-list-item 1142 imageSrc=${l(this.tokenImages?.[e.symbol])} 1143 @click=${()=>this.selectToken(e)} 1144 variant="image" 1145 > 1146 <wui-flex gap="3xs" alignItems="center"> 1147 <wui-text variant="paragraph-500" color="fg-100">${e.name}</wui-text> 1148 <wui-text variant="small-400" color="fg-200">${e.symbol}</wui-text> 1149 </wui-flex> 1150 </wui-list-item> 1151 `)}selectToken(e){e&&(i.ph.setPurchaseCurrency(e),i.IN.close())}};e$.styles=eD,eB([(0,s.SB)()],e$.prototype,"selectedCurrency",void 0),eB([(0,s.SB)()],e$.prototype,"tokens",void 0),eB([(0,s.SB)()],e$.prototype,"tokenImages",void 0),e$=eB([(0,o.customElement)("w3m-onramp-token-select-view")],e$);var eU=(0,a.iv)` 1152 :host > wui-flex:first-child { 1153 overflow-y: auto; 1154 overflow-x: hidden; 1155 scrollbar-width: none; 1156 } 1157 1158 :host > wui-flex:first-child::-webkit-scrollbar {
1159 display: none; 1160 } 1161 1162 wui-loading-hexagon { 1163 position: absolute; 1164 } 1165 1166 .action-button { 1167 width: 100%; 1168 border-radius: var(--wui-border-radius-xs); 1169 } 1170 1171 .action-button:disabled { 1172 border-color: 1px solid var(--wui-color-gray-glass-005); 1173 } 1174 1175 .swap-inputs-container { 1176 position: relative; 1177 } 1178 1179 .replace-tokens-button-container { 1180 display: flex; 1181 justify-content: center; 1182 align-items: center; 1183 position: absolute; 1184 top: 50%; 1185 left: 50%; 1186 transform: translate(-50%, -50%); 1187 gap: var(--wui-spacing-1xs); 1188 border-radius: var(--wui-border-radius-xs); 1189 background-color: var(--wui-color-modal-bg-base); 1190 padding: var(--wui-spacing-xxs); 1191 } 1192 1193 .replace-tokens-button-container > button { 1194 display: flex; 1195 justify-content: center; 1196 align-items: center; 1197 height: 40px; 1198 width: 40px; 1199 padding: var(--wui-spacing-xs); 1200 border: none; 1201 border-radius: var(--wui-border-radius-xxs); 1202 background: var(--wui-color-gray-glass-002); 1203 transition: background-color var(--wui-duration-md) var(--wui-ease-out-power-1); 1204 will-change: background-color; 1205 z-index: 20; 1206 } 1207 1208 .replace-tokens-button-container > button:hover { 1209 background: var(--wui-color-gray-glass-005); 1210 } 1211 1212 .details-container > wui-flex { 1213 background: var(--wui-color-gray-glass-002); 1214 border-radius: var(--wui-border-radius-xxs); 1215 width: 100%; 1216 } 1217 1218 .details-container > wui-flex > button { 1219 border: none; 1220 background: none; 1221 padding: var(--wui-spacing-s); 1222 border-radius: var(--wui-border-radius-xxs); 1223 transition: background 0.2s linear; 1224 } 1225 1226 .details-container > wui-flex > button:hover { 1227 background: var(--wui-color-gray-glass-002); 1228 } 1229 1230 .details-content-container { 1231 padding: var(--wui-spacing-1xs); 1232 display: flex; 1233 align-items: center; 1234 justify-content: center; 1235 } 1236 1237 .details-content-container > wui-flex { 1238 width: 100%; 1239 } 1240 1241 .details-row { 1242 width: 100%; 1243 padding: var(--wui-spacing-s) var(--wui-spacing-xl); 1244 border-radius: var(--wui-border-radius-xxs); 1245 background: var(--wui-color-gray-glass-002); 1246 } 1247`,eL=function(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};let ej=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.detailsOpen=!1,this.caipNetworkId=i.fB.state.caipNetwork?.id,this.initialized=i.nY.state.initialized,this.loadingQuote=i.nY.state.loadingQuote,this.loadingPrices=i.nY.state.loadingPrices,this.loadingTransaction=i.nY.state.loadingTransaction,this.sourceToken=i.nY.state.sourceToken,this.sourceTokenAmount=i.nY.state.sourceTokenAmount,this.sourceTokenPriceInUSD=i.nY.state.sourceTokenPriceInUSD,this.toToken=i.nY.state.toToken,this.toTokenAmount=i.nY.state.toTokenAmount,this.toTokenPriceInUSD=i.nY.state.toTokenPriceInUSD,this.inputError=i.nY.state.inputError,this.gasPriceInUSD=i.nY.state.gasPriceInUSD,this.fetchError=i.nY.state.fetchError,this.onDebouncedGetSwapCalldata=i.j1.debounce(async()=>{await i.nY.swapTokens()},200),i.fB.subscribeKey("caipNetwork",e=>{this.caipNetworkId!==e?.id&&(this.caipNetworkId=e?.id,i.nY.resetState(),i.nY.initializeState())}),this.unsubscribe.push(i.IN.subscribeKey("open",e=>{e||i.nY.resetState()}),i.RouterController.subscribeKey("view",e=>{e.includes("Swap")||i.nY.resetValues()}),i.nY.subscribe(e=>{this.initialized=e.initialized,this.loadingQuote=e.loadingQuote,this.loadingPrices=e.loadingPrices,this.loadingTransaction=e.loadingTransaction,this.sourceToken=e.sourceToken,this.sourceTokenAmount=e.sourceTokenAmount,this.sourceTokenPriceInUSD=e.sourceTokenPriceInUSD,this.toToken=e.toToken,this.toTokenAmount=e.toTokenAmount,this.toTokenPriceInUSD=e.toTokenPriceInUSD,this.inputError=e.inputError,this.gasPriceInUSD=e.gasPriceInUSD,this.fetchError=e.fetchError}))}firstUpdated(){i.nY.initializeState(),this.watchTokensAndValues()}
1247disconnectedCallback(){this.unsubscribe.forEach(e=>e?.()),clearInterval(this.interval)}render(){return(0,a.dy)` 1248 <wui-flex flexDirection="column" .padding=${["0","l","l","l"]} gap="s"> 1249 ${this.initialized?this.templateSwap():this.templateLoading()} 1250 </wui-flex> 1251 `}watchTokensAndValues(){this.interval=setInterval(()=>{i.nY.getNetworkTokenPrice(),i.nY.getMyTokensWithBalance(),i.nY.swapTokens()},1e4)}templateSwap(){return(0,a.dy)` 1252 <wui-flex flexDirection="column" gap="s"> 1253 <wui-flex flexDirection="column" alignItems="center" gap="xs" class="swap-inputs-container"> 1254 ${this.templateTokenInput("sourceToken",this.sourceToken)} 1255 ${this.templateTokenInput("toToken",this.toToken)} ${this.templateReplaceTokensButton()} 1256 </wui-flex> 1257 ${this.templateDetails()} ${this.templateActionButton()} 1258 </wui-flex> 1259 `}actionButtonLabel(){return this.fetchError?"Swap":this.sourceToken&&this.toToken?this.sourceTokenAmount?this.inputError?this.inputError:"Review swap":"Enter amount":"Select token"}templateReplaceTokensButton(){return(0,a.dy)` 1260 <wui-flex class="replace-tokens-button-container"> 1261 <button @click=${this.onSwitchTokens.bind(this)}> 1262 <wui-icon name="recycleHorizontal" color="fg-250" size="lg"></wui-icon> 1263 </button> 1264 </wui-flex> 1265 `}templateLoading(){return(0,a.dy)` 1266 <wui-flex flexDirection="column" gap="l"> 1267 <wui-flex flexDirection="column" alignItems="center" gap="xs" class="swap-inputs-container"> 1268 <w3m-swap-input-skeleton target="sourceToken"></w3m-swap-input-skeleton> 1269 <w3m-swap-input-skeleton target="toToken"></w3m-swap-input-skeleton> 1270 ${this.templateReplaceTokensButton()} 1271 </wui-flex> 1272 ${this.templateActionButton()} 1273 </wui-flex> 1274 `}templateTokenInput(e,t){let r=i.nY.state.myTokensWithBalance?.find(e=>e?.address===t?.address),n="toToken"===e?this.toTokenAmount:this.sourceTokenAmount,o="toToken"===e?this.toTokenPriceInUSD:this.sourceTokenPriceInUSD,s=parseFloat(n)*o;return"toToken"===e&&(s-=this.gasPriceInUSD||0),(0,a.dy)`<w3m-swap-input 1275 .value=${"toToken"===e?this.toTokenAmount:this.sourceTokenAmount} 1276 ?disabled=${this.loadingQuote&&"toToken"===e} 1277 .onSetAmount=${this.handleChangeAmount.bind(this)} 1278 target=${e} 1279 .token=${t} 1280 .balance=${r?.quantity?.numeric} 1281 .price=${r?.price} 1282 .marketValue=${s} 1283 .onSetMaxValue=${this.onSetMaxValue.bind(this)} 1284 ></w3m-swap-input>`}onSetMaxValue(e,t){let r="sourceToken"===e?this.sourceToken:this.toToken,n=r?.address===i.bq.NATIVE_TOKEN_ADDRESS,o="0";if(!t){o="0",this.handleChangeAmount(e,o);return}if(!this.gasPriceInUSD){o=t,this.handleChangeAmount(e,o);return}let a=Y.C6.bigNumber(this.gasPriceInUSD.toFixed(5)).dividedBy(this.sourceTokenPriceInUSD),s=n?Y.C6.bigNumber(t).minus(a):Y.C6.bigNumber(t);this.handleChangeAmount(e,s.isGreaterThan(0)?s.toFixed(20):"0")}templateDetails(){return this.sourceToken&&this.toToken&&!this.inputError?(0,a.dy)`<w3m-swap-details .detailsOpen=${this.detailsOpen}></w3m-swap-details>`:null}handleChangeAmount(e,t){i.nY.clearError(),"sourceToken"===e?i.nY.setSourceTokenAmount(t):i.nY.setToTokenAmount(t),this.onDebouncedGetSwapCalldata()}templateActionButton(){let e=!this.toToken||!this.sourceToken,t=!this.sourceTokenAmount,r=this.loadingQuote||this.loadingPrices||this.loadingTransaction,n=r||e||t||this.inputError;return(0,a.dy)` <wui-flex gap="xs"> 1285 <wui-button 1286 data-testid="swap-action-button" 1287 class="action-button" 1288 fullWidth 1289 size="lg" 1290 borderRadius="xs" 1291 variant=${e?"neutral":"main"} 1292 .loading=${r} 1293 .disabled=${n} 1294 @click=${this.onSwapPreview.bind(this)} 1295 > 1296 ${this.actionButtonLabel()} 1297 </wui-button> 1298 </wui-flex>`}onSwitchTokens(){i.nY.switchTokens()}onSwapPreview(){if(this.fetchError){i.nY.swapTokens();return}i.Xs.sendEvent({type:"track",event:"INITIATE_SWAP",properties:{network:this.caipNetworkId||"",swapFromToken:this.sourceToken?.symbol||"",swapToToken:this.toToken?.symbol||"",swapFromAmount:this.sourceTokenAmount||"",swapToAmount:this.toTokenAmount||"",isSmartAccount:i.AccountController.state.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}),i.RouterController.push("SwapPreview")}};ej.styles=eU,eL([(0,s.SB)()],ej.prototype,"interval",void 0),eL([(0,s.SB)()],ej.prototype,"detailsOpen",void 0),eL([(0,s.SB)()],ej.prototype,"caipNetworkId",void 0),eL([(0,s.SB)()],ej.prototype,"initialized",void 0),eL([(0,s.SB)()],ej.prototype,"loadingQuote",void 0),eL([(0,s.SB)()],ej.prototype,"loadingPrices",void 0),eL([(0,s.SB)()],ej.prototype,"loadingTransaction",void 0),eL([(0,s.SB)()],ej.prototype,"sourceToken",void 0),eL([(0,s.SB)()],ej.prototype,"sourceTokenAmount",void 0),eL([(0,s.SB)()],ej.prototype,"sourceTokenPriceInUSD",void 0),eL([(0,s.SB)()],ej.prototype,"toToken",void 0),eL([(0,s.SB)()],ej.prototype,"toTokenAmount",void 0),eL([(0,s.SB)()],ej.prototype,"toTokenPriceInUSD",void 0),eL([(0,s.SB)()],ej.prototype,"inputError",void 0),eL([(0,s.SB)()],ej.prototype,"gasPriceInUSD",void 0),eL([(0,s.SB)()],ej.prototype,"fetchError",void 0),ej=eL([(0,o.customElement)("w3m-swap-view")],ej);var ez=(0,a.iv)` 1299 :host > wui-flex:first-child { 1300 overflow-y: auto; 1301 overflow-x: hidden; 1302 scrollbar-width: none; 1303 } 1304 1305 :host > wui-flex:first-child::-webkit-scrollbar {
1306 display: none; 1307 } 1308 1309 .preview-container, 1310 .details-container { 1311 width: 100%; 1312 } 1313 1314 .token-image { 1315 width: 24px; 1316 height: 24px; 1317 box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); 1318 border-radius: 12px; 1319 } 1320 1321 wui-loading-hexagon { 1322 position: absolute; 1323 } 1324 1325 .token-item { 1326 display: flex; 1327 align-items: center; 1328 justify-content: center; 1329 gap: var(--wui-spacing-xxs); 1330 padding: var(--wui-spacing-xs); 1331 height: 40px; 1332 border: none; 1333 border-radius: 80px; 1334 background: var(--wui-color-gray-glass-002); 1335 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); 1336 cursor: pointer; 1337 transition: background 0.2s linear; 1338 } 1339 1340 .token-item:hover { 1341 background: var(--wui-color-gray-glass-005); 1342 } 1343 1344 .preview-token-details-container { 1345 width: 100%; 1346 } 1347 1348 .details-row { 1349 width: 100%; 1350 padding: var(--wui-spacing-s) var(--wui-spacing-xl); 1351 border-radius: var(--wui-border-radius-xxs); 1352 background: var(--wui-color-gray-glass-002); 1353 } 1354 1355 .action-buttons-container { 1356 width: 100%; 1357 gap: var(--wui-spacing-xs); 1358 } 1359 1360 .action-buttons-container > button { 1361 display: flex; 1362 align-items: center; 1363 justify-content: center; 1364 background: transparent; 1365 height: 48px; 1366 border-radius: var(--wui-border-radius-xs); 1367 border: none; 1368 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 1369 } 1370 1371 .action-buttons-container > button:disabled { 1372 opacity: 0.8; 1373 cursor: not-allowed; 1374 } 1375 1376 .action-button > wui-loading-spinner { 1377 display: inline-block; 1378 } 1379 1380 .cancel-button:hover, 1381 .action-button:hover { 1382 cursor: pointer; 1383 } 1384 1385 .action-buttons-container > wui-button.cancel-button { 1386 flex: 2; 1387 } 1388 1389 .action-buttons-container > wui-button.action-button { 1390 flex: 4; 1391 } 1392 1393 .action-buttons-container > button.action-button > wui-text { 1394 color: white; 1395 } 1396 1397 .details-container > wui-flex { 1398 background: var(--wui-color-gray-glass-002); 1399 border-radius: var(--wui-border-radius-xxs); 1400 width: 100%; 1401 } 1402 1403 .details-container > wui-flex > button { 1404 border: none; 1405 background: none; 1406 padding: var(--wui-spacing-s); 1407 border-radius: var(--wui-border-radius-xxs); 1408 transition: background 0.2s linear; 1409 } 1410 1411 .details-container > wui-flex > button:hover { 1412 background: var(--wui-color-gray-glass-002); 1413 } 1414 1415 .details-content-container { 1416 padding: var(--wui-spacing-1xs); 1417 display: flex; 1418 align-items: center; 1419 justify-content: center; 1420 } 1421 1422 .details-content-container > wui-flex { 1423 width: 100%; 1424 } 1425 1426 .details-row { 1427 width: 100%; 1428 padding: var(--wui-spacing-s) var(--wui-spacing-xl); 1429 border-radius: var(--wui-border-radius-xxs); 1430 background: var(--wui-color-gray-glass-002); 1431 } 1432`,eF=function(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};let eH=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.detailsOpen=!0,this.approvalTransaction=i.nY.state.approvalTransaction,this.swapTransaction=i.nY.state.swapTransaction,this.sourceToken=i.nY.state.sourceToken,this.sourceTokenAmount=i.nY.state.sourceTokenAmount??"",this.sourceTokenPriceInUSD=i.nY.state.sourceTokenPriceInUSD,this.toToken=i.nY.state.toToken,this.toTokenAmount=i.nY.state.toTokenAmount??"",this.toTokenPriceInUSD=i.nY.state.toTokenPriceInUSD,this.caipNetwork=i.fB.state.caipNetwork,this.balanceSymbol=i.AccountController.state.balanceSymbol,this.gasPriceInUSD=i.nY.state.gasPriceInUSD,this.inputError=i.nY.state.inputError,this.loadingQuote=i.nY.state.loadingQuote,this.loadingApprovalTransaction=i.nY.state.loadingApprovalTransaction,this.loadingBuildTransaction=i.nY.state.loadingBuildTransaction,this.loadingTransaction=i.nY.state.loadingTransaction,this.unsubscribe.push(i.AccountController.subscribeKey("balanceSymbol",e=>{this.balanceSymbol!==e&&i.RouterController.goBack()}),i.fB.subscribeKey("caipNetwork",e=>{this.caipNetwork!==e&&(this.caipNetwork=e)}),i.nY.subscribe(e=>{this.approvalTransaction=e.approvalTransaction,this.swapTransaction=e.swapTransaction,this.sourceToken=e.sourceToken,this.gasPriceInUSD=e.gasPriceInUSD,this.toToken=e.toToken,this.gasPriceInUSD=e.gasPriceInUSD,this.toTokenPriceInUSD=e.toTokenPriceInUSD,this.sourceTokenAmount=e.sourceTokenAmount??"",this.toTokenAmount=e.toTokenAmount??"",this.inputError=e.inputError,e.inputError&&i.RouterController.goBack(),this.loadingQuote=e.loadingQuote,this.loadingApprovalTransaction=e.loadingApprovalTransaction,this.loadingBuildTransaction=e.loadingBuildTransaction,this.loadingTransaction=e.loadingTransaction}))}firstUpdated(){i.nY.getTransaction(),this.refreshTransaction()}
1432disconnectedCallback(){this.unsubscribe.forEach(e=>e?.()),clearInterval(this.interval)}render(){return(0,a.dy)` 1433 <wui-flex flexDirection="column" .padding=${["0","l","l","l"]} gap="s"> 1434 ${this.templateSwap()} 1435 </wui-flex> 1436 `}refreshTransaction(){this.interval=setInterval(()=>{i.nY.getApprovalLoadingState()||i.nY.getTransaction()},1e4)}templateSwap(){let e=`${o.UiHelperUtil.formatNumberToLocalString(parseFloat(this.sourceTokenAmount))} ${this.sourceToken?.symbol}`,t=`${o.UiHelperUtil.formatNumberToLocalString(parseFloat(this.toTokenAmount))} ${this.toToken?.symbol}`,r=parseFloat(this.sourceTokenAmount)*this.sourceTokenPriceInUSD,n=parseFloat(this.toTokenAmount)*this.toTokenPriceInUSD-(this.gasPriceInUSD||0),i=o.UiHelperUtil.formatNumberToLocalString(r),s=o.UiHelperUtil.formatNumberToLocalString(n),c=this.loadingQuote||this.loadingBuildTransaction||this.loadingTransaction||this.loadingApprovalTransaction;return(0,a.dy)` 1437 <wui-flex flexDirection="column" alignItems="center" gap="l"> 1438 <wui-flex class="preview-container" flexDirection="column" alignItems="flex-start" gap="l"> 1439 <wui-flex 1440 class="preview-token-details-container" 1441 alignItems="center" 1442 justifyContent="space-between" 1443 gap="l" 1444 > 1445 <wui-flex flexDirection="column" alignItems="flex-start" gap="4xs"> 1446 <wui-text variant="small-400" color="fg-150">Send</wui-text> 1447 <wui-text variant="paragraph-400" color="fg-100">$${i}</wui-text> 1448 </wui-flex> 1449 <wui-token-button 1450 flexDirection="row-reverse" 1451 text=${e} 1452 imageSrc=${this.sourceToken?.logoUri} 1453 > 1454 </wui-token-button> 1455 </wui-flex> 1456 <wui-icon name="recycleHorizontal" color="fg-200" size="md"></wui-icon> 1457 <wui-flex 1458 class="preview-token-details-container" 1459 alignItems="center" 1460 justifyContent="space-between" 1461 gap="l" 1462 > 1463 <wui-flex flexDirection="column" alignItems="flex-start" gap="4xs"> 1464 <wui-text variant="small-400" color="fg-150">Receive</wui-text> 1465 <wui-text variant="paragraph-400" color="fg-100">$${s}</wui-text> 1466 </wui-flex> 1467 <wui-token-button 1468 flexDirection="row-reverse" 1469 text=${t} 1470 imageSrc=${this.toToken?.logoUri} 1471 > 1472 </wui-token-button> 1473 </wui-flex> 1474 </wui-flex> 1475 1476 ${this.templateDetails()} 1477 1478 <wui-flex flexDirection="row" alignItems="center" justifyContent="center" gap="xs"> 1479 <wui-icon size="sm" color="fg-200" name="infoCircle"></wui-icon> 1480 <wui-text variant="small-400" color="fg-200">Review transaction carefully</wui-text> 1481 </wui-flex> 1482 1483 <wui-flex 1484 class="action-buttons-container" 1485 flexDirection="row" 1486 alignItems="center" 1487 justifyContent="space-between" 1488 gap="xs" 1489 > 1490 <wui-button 1491 class="cancel-button" 1492 fullWidth 1493 size="lg" 1494 borderRadius="xs" 1495 variant="neutral" 1496 @click=${this.onCancelTransaction.bind(this)} 1497 > 1498 <wui-text variant="paragraph-600" color="fg-200">Cancel</wui-text> 1499 </wui-button> 1500 <wui-button 1501 class="action-button" 1502 fullWidth 1503 size="lg" 1504 borderRadius="xs" 1505 variant="main" 1506 ?loading=${c} 1507 ?disabled=${c} 1508 @click=${this.onSendTransaction.bind(this)} 1509 > 1510 <wui-text variant="paragraph-600" color="inverse-100"> 1511 ${this.actionButtonLabel()} 1512 </wui-text> 1513 </wui-button> 1514 </wui-flex> 1515 </wui-flex> 1516 `}templateDetails(){return this.sourceToken&&this.toToken&&!this.inputError?(0,a.dy)`<w3m-swap-details .detailsOpen=${this.detailsOpen}></w3m-swap-details>`:null}actionButtonLabel(){return this.loadingApprovalTransaction?"Approving...":this.approvalTransaction?"Approve":"Swap"}onCancelTransaction(){i.RouterController.goBack()}onSendTransaction(){this.approvalTransaction?i.nY.sendTransactionForApproval(this.approvalTransaction):i.nY.sendTransactionForSwap(this.swapTransaction)}};eH.styles=ez,eF([(0,s.SB)()],eH.prototype,"interval",void 0),eF([(0,s.SB)()],eH.prototype,"detailsOpen",void 0),eF([(0,s.SB)()],eH.prototype,"approvalTransaction",void 0),eF([(0,s.SB)()],eH.prototype,"swapTransaction",void 0),eF([(0,s.SB)()],eH.prototype,"sourceToken",void 0),eF([(0,s.SB)()],eH.prototype,"sourceTokenAmount",void 0),eF([(0,s.SB)()],eH.prototype,"sourceTokenPriceInUSD",void 0),eF([(0,s.SB)()],eH.prototype,"toToken",void 0),eF([(0,s.SB)()],eH.prototype,"toTokenAmount",void 0),eF([(0,s.SB)()],eH.prototype,"toTokenPriceInUSD",void 0),eF([(0,s.SB)()],eH.prototype,"caipNetwork",void 0),eF([(0,s.SB)()],eH.prototype,"balanceSymbol",void 0),eF([(0,s.SB)()],eH.prototype,"gasPriceInUSD",void 0),eF([(0,s.SB)()],eH.prototype,"inputError",void 0),eF([(0,s.SB)()],eH.prototype,"loadingQuote",void 0),eF([(0,s.SB)()],eH.prototype,"loadingApprovalTransaction",void 0),eF([(0,s.SB)()],eH.prototype,"loadingBuildTransaction",void 0),eF([(0,s.SB)()],eH.prototype,"loadingTransaction",void 0),eH=eF([(0,o.customElement)("w3m-swap-preview-view")],eH);var eq=(0,a.iv)` 1517 :host { 1518 --tokens-scroll--top-opacity: 0; 1519 --tokens-scroll--bottom-opacity: 1; 1520 --suggested-tokens-scroll--left-opacity: 0; 1521 --suggested-tokens-scroll--right-opacity: 1; 1522 } 1523 1524 :host > wui-flex:first-child { 1525 overflow-y: hidden; 1526 overflow-x: hidden; 1527 scrollbar-width: none; 1528 scrollbar-height: none; 1529 } 1530 1531 :host > wui-flex:first-child::-webkit-scrollbar {
1532 display: none; 1533 } 1534 1535 wui-loading-hexagon { 1536 position: absolute; 1537 } 1538 1539 .suggested-tokens-container { 1540 overflow-x: auto; 1541 mask-image: linear-gradient( 1542 to right, 1543 rgba(0, 0, 0, calc(1 - var(--suggested-tokens-scroll--left-opacity))) 0px, 1544 rgba(200, 200, 200, calc(1 - var(--suggested-tokens-scroll--left-opacity))) 1px, 1545 black 50px, 1546 black 90px, 1547 black calc(100% - 90px), 1548 black calc(100% - 50px), 1549 rgba(155, 155, 155, calc(1 - var(--suggested-tokens-scroll--right-opacity))) calc(100% - 1px), 1550 rgba(0, 0, 0, calc(1 - var(--suggested-tokens-scroll--right-opacity))) 100% 1551 ); 1552 } 1553 1554 .suggested-tokens-container::-webkit-scrollbar { 1555 display: none; 1556 } 1557 1558 .tokens-container { 1559 border-top: 1px solid var(--wui-color-gray-glass-005); 1560 height: 100%; 1561 max-height: 390px; 1562 } 1563 1564 .tokens { 1565 width: 100%; 1566 overflow-y: auto; 1567 mask-image: linear-gradient( 1568 to bottom, 1569 rgba(0, 0, 0, calc(1 - var(--tokens-scroll--top-opacity))) 0px, 1570 rgba(200, 200, 200, calc(1 - var(--tokens-scroll--top-opacity))) 1px, 1571 black 50px, 1572 black 90px, 1573 black calc(100% - 90px), 1574 black calc(100% - 50px), 1575 rgba(155, 155, 155, calc(1 - var(--tokens-scroll--bottom-opacity))) calc(100% - 1px), 1576 rgba(0, 0, 0, calc(1 - var(--tokens-scroll--bottom-opacity))) 100% 1577 ); 1578 } 1579 1580 .network-search-input, 1581 .select-network-button { 1582 height: 40px; 1583 } 1584 1585 .select-network-button { 1586 border: none; 1587 display: flex; 1588 flex-direction: row; 1589 align-items: center; 1590 justify-content: center; 1591 gap: var(--wui-spacing-xs); 1592 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 1593 background-color: transparent; 1594 border-radius: var(--wui-border-radius-xxs); 1595 padding: var(--wui-spacing-xs); 1596 align-items: center; 1597 transition: background-color 0.2s linear; 1598 } 1599 1600 .select-network-button:hover { 1601 background-color: var(--wui-color-gray-glass-002); 1602 } 1603 1604 .select-network-button > wui-image { 1605 width: 26px; 1606 height: 26px; 1607 border-radius: var(--wui-border-radius-xs); 1608 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 1609 } 1610`,eW=function(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};let eV=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.targetToken=i.RouterController.state.data?.target,this.sourceToken=i.nY.state.sourceToken,this.sourceTokenAmount=i.nY.state.sourceTokenAmount,this.toToken=i.nY.state.toToken,this.myTokensWithBalance=i.nY.state.myTokensWithBalance,this.popularTokens=i.nY.state.popularTokens,this.searchValue="",this.unsubscribe.push(i.nY.subscribe(e=>{this.sourceToken=e.sourceToken,this.toToken=e.toToken,this.myTokensWithBalance=e.myTokensWithBalance}))}updated(){let e=this.renderRoot?.querySelector(".suggested-tokens-container");e?.addEventListener("scroll",this.handleSuggestedTokensScroll.bind(this));let t=this.renderRoot?.querySelector(".tokens");t?.addEventListener("scroll",this.handleTokenListScroll.bind(this))}disconnectedCallback(){super.disconnectedCallback();let e=this.renderRoot?.querySelector(".suggested-tokens-container"),t=this.renderRoot?.querySelector(".tokens");e?.removeEventListener("scroll",this.handleSuggestedTokensScroll.bind(this)),t?.removeEventListener("scroll",this.handleTokenListScroll.bind(this)),clearInterval(this.interval)}render(){return(0,a.dy)` 1611 <wui-flex flexDirection="column" gap="s"> 1612 ${this.templateSearchInput()} ${this.templateSuggestedTokens()} ${this.templateTokens()} 1613 </wui-flex> 1614 `}onSelectToken(e){"sourceToken"===this.targetToken?i.nY.setSourceToken(e):(i.nY.setToToken(e),this.sourceToken&&this.sourceTokenAmount&&i.nY.swapTokens()),i.RouterController.goBack()}templateSearchInput(){return(0,a.dy)` 1615 <wui-flex .padding=${["3xs","s","0","s"]} gap="xs"> 1616 <wui-input-text 1617 data-testid="swap-select-token-search-input" 1618 class="network-search-input" 1619 size="sm" 1620 placeholder="Search token" 1621 icon="search" 1622 .value=${this.searchValue} 1623 @inputChange=${this.onSearchInputChange.bind(this)} 1624 ></wui-input-text> 1625 </wui-flex> 1626 `}templateTokens(){let e=this.myTokensWithBalance?Object.values(this.myTokensWithBalance):[],t=this.popularTokens?this.popularTokens:[],r=this.filterTokensWithText(e,this.searchValue),n=this.filterTokensWithText(t,this.searchValue);return(0,a.dy)` 1627 <wui-flex class="tokens-container"> 1628 <wui-flex class="tokens" .padding=${["0","s","s","s"]} flexDirection="column"> 1629 ${r?.length>0?(0,a.dy)` 1630 <wui-flex justifyContent="flex-start" padding="s"> 1631 <wui-text variant="paragraph-500" color="fg-200">Your tokens</wui-text> 1632 </wui-flex> 1633 ${r.map(e=>{let t=e.symbol===this.sourceToken?.symbol||e.symbol===this.toToken?.symbol;return(0,a.dy)` 1634 <wui-token-list-item 1635 data-testid="swap-select-token-item-${e.symbol}" 1636 name=${e.name} 1637 ?disabled=${t} 1638 symbol=${e.symbol} 1639 price=${e?.price} 1640 amount=${e?.quantity?.numeric} 1641 imageSrc=${e.logoUri} 1642 @click=${()=>{t||this.onSelectToken(e)}} 1643 > 1644 </wui-token-list-item> 1645 `})} 1646 `:null} 1647 1648 <wui-flex justifyContent="flex-start" padding="s"> 1649 <wui-text variant="paragraph-500" color="fg-200">Tokens</wui-text> 1650 </wui-flex> 1651 ${n?.length>0?n.map(e=>(0,a.dy)` 1652 <wui-token-list-item 1653 data-testid="swap-select-token-item-${e.symbol}" 1654 name=${e.name} 1655 symbol=${e.symbol} 1656 imageSrc=${e.logoUri} 1657 @click=${()=>this.onSelectToken(e)} 1658 > 1659 </wui-token-list-item> 1660 `):null} 1661 </wui-flex> 1662 </wui-flex> 1663 `}templateSuggestedTokens(){let e=i.nY.state.suggestedTokens?i.nY.state.suggestedTokens.slice(0,8):null;return e?(0,a.dy)` 1664 <wui-flex class="suggested-tokens-container" .padding=${["0","s","0","s"]} gap="xs"> 1665 ${e.map(e=>(0,a.dy)` 1666 <wui-token-button 1667 text=${e.symbol} 1668 imageSrc=${e.logoUri} 1669 @click=${()=>this.onSelectToken(e)} 1670 > 1671 </wui-token-button>
1671 1672 `)} 1673 </wui-flex> 1674 `:null}onSearchInputChange(e){this.searchValue=e.detail}handleSuggestedTokensScroll(){let e=this.renderRoot?.querySelector(".suggested-tokens-container");e&&(e.style.setProperty("--suggested-tokens-scroll--left-opacity",o.MathUtil.interpolate([0,100],[0,1],e.scrollLeft).toString()),e.style.setProperty("--suggested-tokens-scroll--right-opacity",o.MathUtil.interpolate([0,100],[0,1],e.scrollWidth-e.scrollLeft-e.offsetWidth).toString()))}handleTokenListScroll(){let e=this.renderRoot?.querySelector(".tokens");e&&(e.style.setProperty("--tokens-scroll--top-opacity",o.MathUtil.interpolate([0,100],[0,1],e.scrollTop).toString()),e.style.setProperty("--tokens-scroll--bottom-opacity",o.MathUtil.interpolate([0,100],[0,1],e.scrollHeight-e.scrollTop-e.offsetHeight).toString()))}filterTokensWithText(e,t){return e.filter(e=>`${e.symbol} ${e.name} ${e.address}`.toLowerCase().includes(t.toLowerCase()))}};eV.styles=eq,eW([(0,s.SB)()],eV.prototype,"interval",void 0),eW([(0,s.SB)()],eV.prototype,"targetToken",void 0),eW([(0,s.SB)()],eV.prototype,"sourceToken",void 0),eW([(0,s.SB)()],eV.prototype,"sourceTokenAmount",void 0),eW([(0,s.SB)()],eV.prototype,"toToken",void 0),eW([(0,s.SB)()],eV.prototype,"myTokensWithBalance",void 0),eW([(0,s.SB)()],eV.prototype,"popularTokens",void 0),eW([(0,s.SB)()],eV.prototype,"searchValue",void 0),eV=eW([(0,o.customElement)("w3m-swap-select-token-view")],eV);var eZ=(0,a.iv)` 1675 :host > wui-flex:first-child { 1676 height: 500px; 1677 overflow-y: auto; 1678 overflow-x: hidden; 1679 scrollbar-width: none; 1680 } 1681 1682 :host > wui-flex:first-child::-webkit-scrollbar {
1683 display: none; 1684 } 1685`;let eG=class extends a.oi{render(){return(0,a.dy)` 1686 <wui-flex flexDirection="column" .padding=${["0","m","m","m"]} gap="s"> 1687 <w3m-activity-list page="activity"></w3m-activity-list> 1688 </wui-flex> 1689 `}};eG.styles=eZ,eG=function(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}([(0,o.customElement)("w3m-transactions-view")],eG);let eK=[{images:["network","layers","system"],title:"The systemâs nuts and bolts",text:"A network is what brings the blockchain to life, as this technical infrastructure allows apps to access the ledger and smart contract services."},{images:["noun","defiAlt","dao"],title:"Designed for different uses",text:"Each network is designed differently, and may therefore suit certain apps and experiences."}],eY=class extends a.oi{render(){return(0,a.dy)` 1690 <wui-flex 1691 flexDirection="column" 1692 .padding=${["xxl","xl","xl","xl"]} 1693 alignItems="center" 1694 gap="xl" 1695 > 1696 <w3m-help-widget .data=${eK}></w3m-help-widget> 1697 <wui-button 1698 variant="main" 1699 size="md" 1700 @click=${()=>{i.j1.openHref("https://ethereum.org/en/developers/docs/networks/","_blank")}} 1701 > 1702 Learn more 1703 <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon> 1704 </wui-button> 1705 </wui-flex> 1706 `}};eY=function(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}([(0,o.customElement)("w3m-what-is-a-network-view")],eY);let eQ=[{images:["login","profile","lock"],title:"One login for all of web3",text:"Log in to any app by connecting your wallet. Say goodbye to countless passwords!"},{images:["defi","nft","eth"],title:"A home for your digital assets",text:"A wallet lets you store, send and receive digital assets like cryptocurrencies and NFTs."},{images:["browser","noun","dao"],title:"Your gateway to a new web",text:"With your wallet, you can explore and interact with DeFi, NFTs, DAOs, and much more."}],eJ=class extends a.oi{render(){return(0,a.dy)` 1707 <wui-flex 1708 flexDirection="column" 1709 .padding=${["xxl","xl","xl","xl"]} 1710 alignItems="center" 1711 gap="xl" 1712 > 1713 <w3m-help-widget .data=${eQ}></w3m-help-widget> 1714 <wui-button variant="main" size="md" @click=${this.onGetWallet.bind(this)}> 1715 <wui-icon color="inherit" slot="iconLeft" name="wallet"></wui-icon> 1716 Get a wallet 1717 </wui-button> 1718 </wui-flex> 1719 `}onGetWallet(){i.Xs.sendEvent({type:"track",event:"CLICK_GET_WALLET"}),i.RouterController.push("GetWallet")}};eJ=function(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}([(0,o.customElement)("w3m-what-is-a-wallet-view")],eJ);let eX=class extends a.oi{render(){return(0,a.dy)` 1720 <wui-flex 1721 flexDirection="column" 1722 .padding=${["xxl","3xl","xl","3xl"]} 1723 alignItems="center" 1724 gap="xl" 1725 > 1726 <wui-visual name="onrampCard"></wui-visual> 1727 <wui-flex flexDirection="column" gap="xs" alignItems="center"> 1728 <wui-text align="center" variant="paragraph-500" color="fg-100"> 1729 Quickly and easily buy digital assets! 1730 </wui-text> 1731 <wui-text align="center" variant="small-400" color="fg-200"> 1732 Simply select your preferred onramp provider and add digital assets to your account 1733 using your credit card or bank transfer 1734 </wui-text> 1735 </wui-flex> 1736 <wui-button @click=${i.RouterController.goBack}> 1737 <wui-icon size="sm" color="inherit" name="add" slot="iconLeft"></wui-icon> 1738 Buy 1739 </wui-button>
1739 1740 </wui-flex> 1741 `}};eX=function(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}([(0,o.customElement)("w3m-what-is-a-buy-view")],eX);var e0=(0,a.iv)` 1742 wui-loading-spinner { 1743 margin: 9px auto; 1744 } 1745 1746 .email-display, 1747 .email-display wui-text { 1748 max-width: 100%; 1749 } 1750`,e1=function(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};let e2=class extends a.oi{firstUpdated(){this.startOTPTimeout()}disconnectedCallback(){clearTimeout(this.OTPTimeout)}constructor(){super(),this.loading=!1,this.timeoutTimeLeft=I.$D.getTimeToNextEmailLogin(),this.error="",this.otp="",this.email=i.RouterController.state.data?.email,this.authConnector=i.ConnectorController.getAuthConnector()}render(){if(!this.email)throw Error("w3m-email-otp-widget: No email provided");let e=!!this.timeoutTimeLeft,t=this.getFooterLabels(e);return(0,a.dy)` 1751 <wui-flex 1752 flexDirection="column" 1753 alignItems="center" 1754 .padding=${["l","0","l","0"]} 1755 gap="l" 1756 > 1757 <wui-flex 1758 class="email-display" 1759 flexDirection="column" 1760 alignItems="center" 1761 .padding=${["0","xl","0","xl"]} 1762 > 1763 <wui-text variant="paragraph-400" color="fg-100" align="center"> 1764 Enter the code we sent to 1765 </wui-text> 1766 <wui-text variant="paragraph-500" color="fg-100" lineClamp="1" align="center"> 1767 ${this.email} 1768 </wui-text> 1769 </wui-flex> 1770 1771 <wui-text variant="small-400" color="fg-200">The code expires in 20 minutes</wui-text> 1772 1773 ${this.loading?(0,a.dy)`<wui-loading-spinner size="xl" color="accent-100"></wui-loading-spinner>`:(0,a.dy)` <wui-flex flexDirection="column" alignItems="center" gap="xs"> 1774 <wui-otp 1775 dissabled 1776 length="6" 1777 @inputChange=${this.onOtpInputChange.bind(this)} 1778 .otp=${this.otp} 1779 ></wui-otp> 1780 ${this.error?(0,a.dy)` 1781 <wui-text variant="small-400" align="center" color="error-100"> 1782 ${this.error}. Try Again 1783 </wui-text> 1784 `:null} 1785 </wui-flex>`} 1786 1787 <wui-flex alignItems="center" gap="xs"> 1788 <wui-text variant="small-400" color="fg-200">${t.title}</wui-text> 1789 <wui-link @click=${this.onResendCode.bind(this)} .disabled=${e}> 1790 ${t.action} 1791 </wui-link> 1792 </wui-flex> 1793 </wui-flex> 1794 `}startOTPTimeout(){this.timeoutTimeLeft=I.$D.getTimeToNextEmailLogin(),this.OTPTimeout=setInterval(()=>{this.timeoutTimeLeft>0?this.timeoutTimeLeft=I.$D.getTimeToNextEmailLogin():clearInterval(this.OTPTimeout)},1e3)}async onOtpInputChange(e){try{!this.loading&&(this.otp=e.detail,this.authConnector&&6===this.otp.length&&(this.loading=!0,await this.onOtpSubmit?.(this.otp)))}catch(e){this.error=i.j1.parseError(e),this.loading=!1}}async onResendCode(){try{if(this.onOtpResend){if(!this.loading&&!this.timeoutTimeLeft){if(this.error="",this.otp="",!i.ConnectorController.getAuthConnector()||!this.email)throw Error("w3m-email-otp-widget: Unable to resend email");this.loading=!0,await this.onOtpResend(this.email),this.startOTPTimeout(),i.SnackController.showSuccess("Code email resent")}}else this.onStartOver&&this.onStartOver()}catch(e){i.SnackController.showError(e)}finally{this.loading=!1}}getFooterLabels(e){return this.onStartOver?{title:"Something wrong?",action:`Try again ${e?`in ${this.timeoutTimeLeft}s`:""}`}:{title:"Didn't receive it?",action:`Resend ${e?`in ${this.timeoutTimeLeft}s`:"Code"}`}}};e2.styles=e0,e1([(0,s.SB)()],e2.prototype,"loading",void 0),e1([(0,s.SB)()],e2.prototype,"timeoutTimeLeft",void 0),e1([(0,s.SB)()],e2.prototype,"error",void 0),e2=e1([(0,o.customElement)("w3m-email-otp-widget")],e2);var e3=function(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};let e5=class extends e2{constructor(){super(),this.unsubscribe=[],this.smartAccountDeployed=i.AccountController.state.smartAccountDeployed,this.onOtpSubmit=async e=>{try{if(this.authConnector){let t=i.fB.checkIfSmartAccountEnabled();await this.authConnector.provider.connectOtp({otp:e}),i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),await i.ConnectionController.connectExternal(this.authConnector),i.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"email",name:this.authConnector.name||"Unknown"}}),i.AccountController.state.allAccounts.length>1?i.RouterController.push("SelectAddresses"):t&&!this.smartAccountDeployed?i.RouterController.push("UpgradeToSmartAccount"):i.IN.close()}}catch(e){throw i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL"}),e}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))},this.unsubscribe.push(i.AccountController.subscribeKey("smartAccountDeployed",e=>{this.smartAccountDeployed=e}))}};e3([(0,s.SB)()],e5.prototype,"smartAccountDeployed",void 0),e5=e3([(0,o.customElement)("w3m-email-verify-otp-view")],e5);var e4=(0,a.iv)` 1795 wui-icon-box { 1796 height: var(--wui-icon-box-size-xl); 1797 width: var(--wui-icon-box-size-xl); 1798 } 1799`,e6=function(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};let e8=class extends a.oi{constructor(){super(),this.email=i.RouterController.state.data?.email,this.authConnector=i.ConnectorController.getAuthConnector(),this.loading=!1,this.listenForDeviceApproval()}
1799render(){if(!this.email)throw Error("w3m-email-verify-device-view: No email provided");if(!this.authConnector)throw Error("w3m-email-verify-device-view: No auth connector provided");return(0,a.dy)` 1800 <wui-flex 1801 flexDirection="column" 1802 alignItems="center" 1803 .padding=${["xxl","s","xxl","s"]} 1804 gap="l" 1805 > 1806 <wui-icon-box 1807 size="xl" 1808 iconcolor="accent-100" 1809 backgroundcolor="accent-100" 1810 icon="verify" 1811 background="opaque" 1812 ></wui-icon-box> 1813 1814 <wui-flex flexDirection="column" alignItems="center" gap="s"> 1815 <wui-flex flexDirection="column" alignItems="center"> 1816 <wui-text variant="paragraph-400" color="fg-100"> 1817 Approve the login link we sent to 1818 </wui-text> 1819 <wui-text variant="paragraph-400" color="fg-100"><b>${this.email}</b></wui-text> 1820 </wui-flex> 1821 1822 <wui-text variant="small-400" color="fg-200" align="center"> 1823 The code expires in 20 minutes 1824 </wui-text> 1825 1826 <wui-flex alignItems="center" id="w3m-resend-section" gap="xs"> 1827 <wui-text variant="small-400" color="fg-100" align="center"> 1828 Didn't receive it? 1829 </wui-text> 1830 <wui-link @click=${this.onResendCode.bind(this)} .disabled=${this.loading}> 1831 Resend email 1832 </wui-link> 1833 </wui-flex> 1834 </wui-flex> 1835 </wui-flex> 1836 `}async listenForDeviceApproval(){if(this.authConnector)try{await this.authConnector.provider.connectDevice(),i.Xs.sendEvent({type:"track",event:"DEVICE_REGISTERED_FOR_EMAIL"}),i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),i.RouterController.replace("EmailVerifyOtp",{email:this.email})}catch(e){i.RouterController.goBack()}}async onResendCode(){try{if(!this.loading){if(!this.authConnector||!this.email)throw Error("w3m-email-login-widget: Unable to resend email");this.loading=!0,await this.authConnector.provider.connectEmail({email:this.email}),this.listenForDeviceApproval(),i.SnackController.showSuccess("Code email resent")}}catch(e){i.SnackController.showError(e)}finally{this.loading=!1}}};e8.styles=e4,e6([(0,s.SB)()],e8.prototype,"loading",void 0),e8=e6([(0,o.customElement)("w3m-email-verify-device-view")],e8);var e9=(0,a.iv)` 1837 div { 1838 width: 100%; 1839 height: 400px; 1840 } 1841 1842 [data-ready='false'] { 1843 transform: scale(1.05); 1844 } 1845 1846 @media (max-width: 430px) { 1847 [data-ready='false'] { 1848 transform: translateY(-50px); 1849 } 1850 } 1851`,e7=function(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};let te=class extends a.oi{constructor(){super(),this.bodyObserver=void 0,this.unsubscribe=[],this.iframe=document.getElementById("w3m-iframe"),this.ready=!1,this.unsubscribe.push(i.IN.subscribeKey("open",e=>{e||(this.onHideIframe(),i.RouterController.popTransactionStack())}),i.IN.subscribeKey("shake",e=>{e?this.iframe.style.animation="w3m-shake 500ms var(--wui-ease-out-power-2)":this.iframe.style.animation="none"}))}disconnectedCallback(){this.onHideIframe(),this.unsubscribe.forEach(e=>e()),this.bodyObserver?.unobserve(window.document.body)}async firstUpdated(){await this.syncTheme(),this.iframe.style.display="block",this.bodyObserver=new ResizeObserver(e=>{let t=e?.[0]?.contentBoxSize,r=t?.[0]?.inlineSize;this.iframe.style.height="400px",r&&r<=430?(this.iframe.style.width="100%",this.iframe.style.left="0px",this.iframe.style.bottom="0px",this.iframe.style.top="unset"):(this.iframe.style.width="360px",this.iframe.style.left="calc(50% - 180px)",this.iframe.style.top="calc(50% - 200px + 32px)",this.iframe.style.bottom="unset"),this.ready=!0,this.onShowIframe()}),this.bodyObserver.observe(window.document.body)}render(){return(0,a.dy)`<div data-ready=${this.ready}></div>`}onShowIframe(){let e=window.innerWidth<=430;this.iframe.style.animation=e?"w3m-iframe-zoom-in-mobile 200ms var(--wui-ease-out-power-2)":"w3m-iframe-zoom-in 200ms var(--wui-ease-out-power-2)"}onHideIframe(){this.iframe.style.display="none",this.iframe.style.animation="w3m-iframe-fade-out 200ms var(--wui-ease-out-power-2)"}async syncTheme(){let e=i.ConnectorController.getAuthConnector();if(e){let t=i.ThemeController.getSnapshot().themeMode,r=i.ThemeController.getSnapshot().themeVariables;await e.provider.syncTheme({themeVariables:r,w3mThemeVariables:(0,Y.tU)(r,t)})}}};te.styles=e9,e7([(0,s.SB)()],te.prototype,"ready",void 0),te=e7([(0,o.customElement)("w3m-approve-transaction-view")],te);let tt=class extends a.oi{render(){return(0,a.dy)` 1852 <wui-flex flexDirection="column" alignItems="center" gap="xl" padding="xl"> 1853 <wui-text variant="paragraph-400" color="fg-100">Follow the instructions on</wui-text> 1854 <wui-chip 1855 icon="externalLink" 1856 variant="fill" 1857 href=${i.bq.SECURE_SITE_DASHBOARD} 1858 imageSrc=${i.bq.SECURE_SITE_FAVICON} 1859 data-testid="w3m-secure-website-button" 1860 > 1861 </wui-chip> 1862 <wui-text variant="small-400" color="fg-200"> 1863 You will have to reconnect for security reasons 1864 </wui-text> 1865 </wui-flex> 1866 `}};tt=function(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}([(0,o.customElement)("w3m-upgrade-wallet-view")],tt);var tr=function(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};let tn=class extends a.oi{constructor(){super(...arguments),this.authConnector=i.ConnectorController.getAuthConnector(),this.loading=!1,this.setPreferSmartAccount=async()=>
1866{if(this.authConnector)try{this.loading=!0,await i.ConnectionController.setPreferredAccountType(I.y_.ACCOUNT_TYPES.SMART_ACCOUNT),this.loading=!1,i._4.navigateAfterPreferredAccountTypeSelect()}catch(e){i.SnackController.showError("Error upgrading to smart account")}}}render(){return(0,a.dy)` 1867 <wui-flex 1868 flexDirection="column" 1869 alignItems="center" 1870 gap="xxl" 1871 .padding=${["0","0","l","0"]} 1872 > 1873 ${this.onboardingTemplate()} ${this.buttonsTemplate()} 1874 <wui-link 1875 @click=${()=>{i.j1.openHref(Y.UE.URLS.FAQ,"_blank")}} 1876 > 1877 Learn more 1878 <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon> 1879 </wui-link> 1880 </wui-flex> 1881 `}onboardingTemplate(){return(0,a.dy)` <wui-flex 1882 flexDirection="column" 1883 gap="xxl" 1884 alignItems="center" 1885 .padding=${["0","xxl","0","xxl"]} 1886 > 1887 <wui-flex gap="s" alignItems="center" justifyContent="center"> 1888 <wui-visual name="google"></wui-visual> 1889 <wui-visual name="pencil"></wui-visual> 1890 <wui-visual name="lightbulb"></wui-visual> 1891 </wui-flex> 1892 <wui-flex flexDirection="column" alignItems="center" gap="s"> 1893 <wui-text align="center" variant="medium-600" color="fg-100"> 1894 Discover Smart Accounts 1895 </wui-text> 1896 <wui-text align="center" variant="paragraph-400" color="fg-100"> 1897 Access advanced features such as username, social login, improved security and a smoother 1898 user experience! 1899 </wui-text> 1900 </wui-flex> 1901 </wui-flex>`}buttonsTemplate(){return(0,a.dy)`<wui-flex .padding=${["0","2l","0","2l"]} gap="s"> 1902 <wui-button 1903 variant="accent" 1904 @click=${this.redirectToAccount.bind(this)} 1905 size="lg" 1906 borderRadius="xs" 1907 > 1908 Do it later 1909 </wui-button> 1910 <wui-button 1911 .loading=${this.loading} 1912 size="lg" 1913 borderRadius="xs" 1914 @click=${this.setPreferSmartAccount.bind(this)} 1915 >Continue 1916 </wui-button> 1917 </wui-flex>`}redirectToAccount(){i.RouterController.push("Account")}};tr([(0,s.SB)()],tn.prototype,"authConnector",void 0),tr([(0,s.SB)()],tn.prototype,"loading",void 0),tn=tr([(0,o.customElement)("w3m-upgrade-to-smart-account-view")],tn);var ti=(0,a.iv)` 1918 wui-email-input { 1919 width: 100%; 1920 } 1921 1922 form { 1923 width: 100%; 1924 display: block; 1925 position: relative; 1926 } 1927`,to=function(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};let ta=class extends a.oi{constructor(){super(...arguments),this.formRef=eh(),this.initialEmail=i.RouterController.state.data?.email??"",this.email="",this.loading=!1}firstUpdated(){this.formRef.value?.addEventListener("keydown",e=>{"Enter"===e.key&&this.onSubmitEmail(e)})}render(){let e=!this.loading&&this.email.length>3&&this.email!==this.initialEmail;return(0,a.dy)` 1928 <wui-flex flexDirection="column" padding="m" gap="m"> 1929 <form ${eg(this.formRef)} @submit=${this.onSubmitEmail.bind(this)}> 1930 <wui-email-input 1931 value=${this.initialEmail} 1932 .disabled=${this.loading} 1933 @inputChange=${this.onEmailInputChange.bind(this)} 1934 > 1935 </wui-email-input> 1936 <input type="submit" hidden /> 1937 </form> 1938 1939 <wui-flex gap="s"> 1940 <wui-button size="md" variant="neutral" fullWidth @click=${i.RouterController.goBack}> 1941 Cancel 1942 </wui-button> 1943 1944 <wui-button 1945 size="md" 1946 variant="main" 1947 fullWidth 1948 @click=${this.onSubmitEmail.bind(this)} 1949 .disabled=${!e} 1950 .loading=${this.loading} 1951 > 1952 Save 1953 </wui-button> 1954 </wui-flex> 1955 </wui-flex> 1956 `}onEmailInputChange(e){this.email=e.detail}async onSubmitEmail(e){try{if(this.loading)return;this.loading=!0,e.preventDefault();let t=i.ConnectorController.getAuthConnector();if(!t)throw Error("w3m-update-email-wallet: Auth connector not found");let r=await t.provider.updateEmail({email:this.email});i.Xs.sendEvent({type:"track",event:"EMAIL_EDIT"}),"VERIFY_SECONDARY_OTP"===r.action?i.RouterController.push("UpdateEmailSecondaryOtp",{email:this.initialEmail,newEmail:this.email}):i.RouterController.push("UpdateEmailPrimaryOtp",{email:this.initialEmail,newEmail:this.email})}catch(e){i.SnackController.showError(e),this.loading=!1}}};ta.styles=ti,to([(0,s.SB)()],ta.prototype,"email",void 0),to([(0,s.SB)()],ta.prototype,"loading",void 0),ta=to([(0,o.customElement)("w3m-update-email-wallet-view")],ta);let ts=class extends e2{constructor(){super(),this.email=i.RouterController.state.data?.email,this.onOtpSubmit=async e=>{try{this.authConnector&&(await this.authConnector.provider.updateEmailPrimaryOtp({otp:e}),i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),i.RouterController.replace("UpdateEmailSecondaryOtp",i.RouterController.state.data))}catch(e){throw i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL"}),e}},this.onStartOver=()=>{i.RouterController.replace("UpdateEmailWallet",i.RouterController.state.data)}}};ts=function(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}([(0,o.customElement)("w3m-update-email-primary-otp-view")],ts);let tc=class extends e2{constructor(){super(),this.email=i.RouterController.state.data?.newEmail,this.onOtpSubmit=async e=>{try{this.authConnector&&(await this.authConnector.provider.updateEmailSecondaryOtp({otp:e}),i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),i.RouterController.reset("Account"))}catch(e){throw i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL"}),e}},this.onStartOver=()=>{i.RouterController.replace("UpdateEmailWallet",i.RouterController.state.data)}}};tc=function(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}([(0,o.customElement)("w3m-update-email-secondary-otp-view")],tc);var tl=(0,a.iv)` 1957 :host > wui-flex { 1958 max-height: clamp(360px, 540px, 80vh); 1959 overflow: scroll; 1960 scrollbar-width: none; 1961 } 1962 1963 :host > wui-flex::-webkit-scrollbar {
1964 display: none; 1965 } 1966`,tu=function(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};let td=class extends a.oi{constructor(){super(...arguments),this.swapUnsupportedChain=i.RouterController.state.data?.swapUnsupportedChain,this.disconecting=!1}render(){return(0,a.dy)` 1967 <wui-flex class="container" flexDirection="column" gap="0"> 1968 <wui-flex 1969 class="container" 1970 flexDirection="column" 1971 .padding=${["m","xl","xs","xl"]} 1972 alignItems="center" 1973 gap="xl" 1974 > 1975 ${this.descriptionTemplate()} 1976 </wui-flex> 1977 1978 <wui-flex flexDirection="column" padding="s" gap="xs"> 1979 ${this.networksTemplate()} 1980 </wui-flex> 1981 1982 <wui-separator text="or"></wui-separator> 1983 <wui-flex flexDirection="column" padding="s" gap="xs"> 1984 <wui-list-item 1985 variant="icon" 1986 iconVariant="overlay" 1987 icon="disconnect" 1988 ?chevron=${!1} 1989 .loading=${this.disconecting} 1990 @click=${this.onDisconnect.bind(this)} 1991 data-testid="disconnect-button" 1992 > 1993 <wui-text variant="paragraph-500" color="fg-200">Disconnect</wui-text> 1994 </wui-list-item> 1995 </wui-flex> 1996 </wui-flex> 1997 `}descriptionTemplate(){return this.swapUnsupportedChain?(0,a.dy)` 1998 <wui-text variant="small-400" color="fg-200" align="center"> 1999 The swap feature doesnât support your current network. Switch to an available option to 2000 continue. 2001 </wui-text> 2002 `:(0,a.dy)` 2003 <wui-text variant="small-400" color="fg-200" align="center"> 2004 This app doesnât support your current network. Switch to an available option to continue. 2005 </wui-text> 2006 `}networksTemplate(){let e=i.fB.getRequestedCaipNetworks(),t=i.fB.state.approvedCaipNetworkIds,r=i.j1.sortRequestedNetworks(t,e);return(this.swapUnsupportedChain?r.filter(e=>i.bq.SWAP_SUPPORTED_NETWORKS.includes(e.id)):r).map(e=>(0,a.dy)` 2007 <wui-list-network 2008 imageSrc=${l(i.fz.getNetworkImage(e))} 2009 name=${e.name??"Unknown"} 2010 @click=${()=>this.onSwitchNetwork(e)} 2011 > 2012 </wui-list-network> 2013 `)}async onDisconnect(){try{this.disconecting=!0,await i.ConnectionController.disconnect(),i.Xs.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),i.IN.close()}catch{i.Xs.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),i.SnackController.showError("Failed to disconnect")}finally{this.disconecting=!1}}async onSwitchNetwork(e){let t=i.AccountController.state.isConnected,r=i.fB.state.approvedCaipNetworkIds,n=i.fB.state.supportsAllNetworks,o=i.fB.state.caipNetwork,a=i.RouterController.state.data;t&&o?.id!==e.id?r?.includes(e.id)?(await i.fB.switchActiveNetwork(e),await eC.onNetworkChange()):n&&i.RouterController.push("SwitchNetwork",{...a,network:e}):t||(i.fB.setCaipNetwork(e),i.RouterController.push("Connect"))}};td.styles=tl,tu([(0,s.SB)()],td.prototype,"disconecting",void 0),td=tu([(0,o.customElement)("w3m-unsupported-chain-view")],td);var th=(0,a.iv)` 2014 wui-compatible-network { 2015 margin-top: var(--wui-spacing-l); 2016 } 2017`,tf=function(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};let tp=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.address=i.AccountController.state.address,this.profileName=i.AccountController.state.profileName,this.network=i.fB.state.caipNetwork,this.preferredAccountType=i.AccountController.state.preferredAccountType,this.unsubscribe.push(i.AccountController.subscribe(e=>{e.address?(this.address=e.address,this.profileName=e.profileName,this.preferredAccountType=e.preferredAccountType):i.SnackController.showError("Account not found")}),i.fB.subscribeKey("caipNetwork",e=>{e?.id&&(this.network=e)}))}
2017disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!this.address)throw Error("w3m-wallet-receive-view: No account provided");let e=i.fz.getNetworkImage(this.network);return(0,a.dy)` <wui-flex 2018 flexDirection="column" 2019 .padding=${["0","l","l","l"]} 2020 alignItems="center" 2021 > 2022 <wui-chip-button 2023 data-testid="receive-address-copy-button" 2024 @click=${this.onCopyClick.bind(this)} 2025 text=${o.UiHelperUtil.getTruncateString({string:this.profileName||this.address||"",charsStart:this.profileName?18:4,charsEnd:this.profileName?0:4,truncate:this.profileName?"end":"middle"})} 2026 icon="copy" 2027 size="sm" 2028 imageSrc=${e||""} 2029 variant="gray" 2030 ></wui-chip-button> 2031 <wui-flex 2032 flexDirection="column" 2033 .padding=${["l","0","0","0"]} 2034 alignItems="center" 2035 gap="s" 2036 > 2037 <wui-qr-code 2038 size=${232} 2039 theme=${i.ThemeController.state.themeMode} 2040 uri=${this.address} 2041 ?arenaClear=${!0} 2042 data-testid="wui-qr-code" 2043 ></wui-qr-code> 2044 <wui-text variant="paragraph-500" color="fg-100" align="center"> 2045 Copy your address or scan this QR code 2046 </wui-text> 2047 </wui-flex> 2048 ${this.networkTemplate()} 2049 </wui-flex>`}networkTemplate(){let e=i.fB.getRequestedCaipNetworks(),t=i.fB.checkIfSmartAccountEnabled(),r=i.fB.state.caipNetwork;if(this.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT&&t)return r?(0,a.dy)`<wui-compatible-network 2050 @click=${this.onReceiveClick.bind(this)} 2051 text="Only receive assets on this network" 2052 .networkImages=${[i.fz.getNetworkImage(r)??""]} 2053 ></wui-compatible-network>`:null;let n=(e?.filter(e=>e?.imageId)?.slice(0,5)).map(i.fz.getNetworkImage).filter(Boolean);return(0,a.dy)`<wui-compatible-network 2054 @click=${this.onReceiveClick.bind(this)} 2055 text="Only receive assets on these networks" 2056 .networkImages=${n} 2057 ></wui-compatible-network>`}onReceiveClick(){i.RouterController.push("WalletCompatibleNetworks")}onCopyClick(){try{this.address&&(i.j1.copyToClopboard(this.address),i.SnackController.showSuccess("Address copied"))}catch{i.SnackController.showError("Failed to copy")}}};tp.styles=th,tf([(0,s.SB)()],tp.prototype,"address",void 0),tf([(0,s.SB)()],tp.prototype,"profileName",void 0),tf([(0,s.SB)()],tp.prototype,"network",void 0),tf([(0,s.SB)()],tp.prototype,"preferredAccountType",void 0),tp=tf([(0,o.customElement)("w3m-wallet-receive-view")],tp);var tg=(0,a.iv)` 2058 :host > wui-flex { 2059 max-height: clamp(360px, 540px, 80vh); 2060 overflow: scroll; 2061 scrollbar-width: none; 2062 } 2063 2064 :host > wui-flex::-webkit-scrollbar {
2065 display: none; 2066 } 2067`,tm=function(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};let tw=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.preferredAccountType=i.AccountController.state.preferredAccountType,this.unsubscribe.push(i.AccountController.subscribeKey("preferredAccountType",e=>{this.preferredAccountType=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.dy)` <wui-flex 2068 flexDirection="column" 2069 .padding=${["xs","s","m","s"]} 2070 gap="xs" 2071 > 2072 <wui-banner 2073 icon="warningCircle" 2074 text="You can only receive assets on these networks" 2075 ></wui-banner> 2076 ${this.networkTemplate()} 2077 </wui-flex>`}networkTemplate(){let e=i.fB.getRequestedCaipNetworks(),t=i.fB.state.approvedCaipNetworkIds,r=i.fB.state.caipNetwork,n=i.fB.checkIfSmartAccountEnabled(),o=i.j1.sortRequestedNetworks(t,e);if(n&&this.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT){if(!r)return null;o=[r]}return o.map(e=>(0,a.dy)` 2078 <wui-list-network 2079 imageSrc=${l(i.fz.getNetworkImage(e))} 2080 name=${e.name??"Unknown"} 2081 ?transparent=${!0} 2082 > 2083 </wui-list-network> 2084 `)}};tw.styles=tg,tm([(0,s.SB)()],tw.prototype,"preferredAccountType",void 0),tw=tm([(0,o.customElement)("w3m-wallet-compatible-networks-view")],tw);var tb=(0,a.iv)` 2085 :host { 2086 display: block; 2087 } 2088 2089 wui-flex { 2090 position: relative; 2091 } 2092 2093 wui-icon-box { 2094 width: 40px; 2095 height: 40px; 2096 border-radius: var(--wui-border-radius-xs) !important; 2097 border: 5px solid var(--wui-color-bg-125); 2098 background: var(--wui-color-bg-175); 2099 position: absolute; 2100 top: 50%; 2101 left: 50%; 2102 transform: translate(-50%, -50%); 2103 z-index: 1; 2104 } 2105 2106 wui-button { 2107 --local-border-radius: var(--wui-border-radius-xs) !important; 2108 } 2109 2110 .inputContainer { 2111 height: fit-content; 2112 } 2113`,tv=function(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};let ty=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.token=i.Si.state.token,this.sendTokenAmount=i.Si.state.sendTokenAmount,this.receiverAddress=i.Si.state.receiverAddress,this.receiverProfileName=i.Si.state.receiverProfileName,this.loading=i.Si.state.loading,this.gasPriceInUSD=i.Si.state.gasPriceInUSD,this.message="Preview Send",this.fetchNetworkPrice(),this.unsubscribe.push(i.Si.subscribe(e=>{this.token=e.token,this.sendTokenAmount=e.sendTokenAmount,this.receiverAddress=e.receiverAddress,this.gasPriceInUSD=e.gasPriceInUSD,this.receiverProfileName=e.receiverProfileName,this.loading=e.loading}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.getMessage(),(0,a.dy)` <wui-flex flexDirection="column" .padding=${["0","l","l","l"]}> 2114 <wui-flex class="inputContainer" gap="xs" flexDirection="column"> 2115 <w3m-input-token 2116 .token=${this.token} 2117 .sendTokenAmount=${this.sendTokenAmount} 2118 .gasPriceInUSD=${this.gasPriceInUSD} 2119 ></w3m-input-token> 2120 <wui-icon-box 2121 size="inherit" 2122 backgroundColor="fg-300" 2123 iconSize="lg" 2124 iconColor="fg-250" 2125 background="opaque" 2126 icon="arrowBottom" 2127 ></wui-icon-box> 2128 <w3m-input-address 2129 .value=${this.receiverProfileName?this.receiverProfileName:this.receiverAddress} 2130 ></w3m-input-address> 2131 </wui-flex> 2132 <wui-flex .margin=${["l","0","0","0"]}> 2133 <wui-button 2134 @click=${this.onButtonClick.bind(this)} 2135 ?disabled=${!this.message.startsWith("Preview Send")} 2136 size="lg" 2137 variant="main" 2138 ?loading=${this.loading} 2139 fullWidth 2140 > 2141 ${this.message} 2142 </wui-button>
2142 2143 </wui-flex> 2144 </wui-flex>`}async fetchNetworkPrice(){await i.nY.getNetworkTokenPrice();let e=await i.nY.getInitialGasPrice();e?.gasPrice&&e?.gasPriceInUSD&&(i.Si.setGasPrice(e.gasPrice),i.Si.setGasPriceInUsd(e.gasPriceInUSD))}onButtonClick(){i.RouterController.push("WalletSendPreview")}getMessage(){this.message="Preview Send",this.receiverAddress&&!i.j1.isAddress(this.receiverAddress)&&(this.message="Invalid Address"),this.receiverAddress||(this.message="Add Address"),this.sendTokenAmount&&this.token&&this.sendTokenAmount>Number(this.token.quantity.numeric)&&(this.message="Insufficient Funds"),this.sendTokenAmount||(this.message="Add Amount"),this.sendTokenAmount&&this.token?.price&&!(this.sendTokenAmount*this.token.price)&&(this.message="Incorrect Value"),this.token||(this.message="Select Token")}};ty.styles=tb,tv([(0,s.SB)()],ty.prototype,"token",void 0),tv([(0,s.SB)()],ty.prototype,"sendTokenAmount",void 0),tv([(0,s.SB)()],ty.prototype,"receiverAddress",void 0),tv([(0,s.SB)()],ty.prototype,"receiverProfileName",void 0),tv([(0,s.SB)()],ty.prototype,"loading",void 0),tv([(0,s.SB)()],ty.prototype,"gasPriceInUSD",void 0),tv([(0,s.SB)()],ty.prototype,"message",void 0),ty=tv([(0,o.customElement)("w3m-wallet-send-view")],ty);var tC=(0,a.iv)` 2145 .contentContainer { 2146 height: 440px; 2147 overflow: scroll; 2148 scrollbar-width: none; 2149 } 2150 2151 .contentContainer::-webkit-scrollbar {
2152 display: none; 2153 } 2154 2155 wui-icon-box { 2156 width: 40px; 2157 height: 40px; 2158 border-radius: var(--wui-border-radius-xxs); 2159 } 2160`,tx=function(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};let tA=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.tokenBalance=i.AccountController.state.tokenBalance,this.search="",this.onDebouncedSearch=i.j1.debounce(e=>{this.search=e}),this.unsubscribe.push(i.AccountController.subscribe(e=>{this.tokenBalance=e.tokenBalance}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.dy)` 2161 <wui-flex flexDirection="column"> 2162 ${this.templateSearchInput()} <wui-separator></wui-separator> ${this.templateTokens()} 2163 </wui-flex> 2164 `}templateSearchInput(){return(0,a.dy)` 2165 <wui-flex gap="xs" padding="s"> 2166 <wui-input-text 2167 @inputChange=${this.onInputChange.bind(this)} 2168 class="network-search-input" 2169 size="sm" 2170 placeholder="Search token" 2171 icon="search" 2172 ></wui-input-text> 2173 </wui-flex> 2174 `}templateTokens(){return this.tokens=this.tokenBalance?.filter(e=>e.chainId===i.fB.state.caipNetwork?.id),this.search?this.filteredTokens=this.tokenBalance?.filter(e=>e.name.toLowerCase().includes(this.search.toLowerCase())):this.filteredTokens=this.tokens,(0,a.dy)` 2175 <wui-flex 2176 class="contentContainer" 2177 flexDirection="column" 2178 .padding=${["0","s","0","s"]} 2179 > 2180 <wui-flex justifyContent="flex-start" .padding=${["m","s","s","s"]}> 2181 <wui-text variant="paragraph-500" color="fg-200">Your tokens</wui-text> 2182 </wui-flex> 2183 <wui-flex flexDirection="column" gap="xs"> 2184 ${this.filteredTokens&&this.filteredTokens.length>0?this.filteredTokens.map(e=>(0,a.dy)`<wui-list-token 2185 @click=${this.handleTokenClick.bind(this,e)} 2186 ?clickable=${!0} 2187 tokenName=${e.name} 2188 tokenImageUrl=${e.iconUrl} 2189 tokenAmount=${e.quantity.numeric} 2190 tokenValue=${e.value} 2191 tokenCurrency=${e.symbol} 2192 ></wui-list-token>`):(0,a.dy)`<wui-flex 2193 .padding=${["4xl","0","0","0"]} 2194 alignItems="center" 2195 flexDirection="column" 2196 gap="l" 2197 > 2198 <wui-icon-box 2199 icon="coinPlaceholder" 2200 size="inherit" 2201 iconColor="fg-200" 2202 backgroundColor="fg-200" 2203 iconSize="lg" 2204 ></wui-icon-box> 2205 <wui-flex 2206 class="textContent" 2207 gap="xs" 2208 flexDirection="column" 2209 justifyContent="center" 2210 flexDirection="column" 2211 > 2212 <wui-text variant="paragraph-500" align="center" color="fg-100" 2213 >No tokens found</wui-text 2214 > 2215 <wui-text variant="small-400" align="center" color="fg-200" 2216 >Your tokens will appear here</wui-text 2217 > 2218 </wui-flex> 2219 <wui-link @click=${this.onBuyClick.bind(this)}>Buy</wui-link> 2220 </wui-flex>`} 2221 </wui-flex> 2222 </wui-flex> 2223 `}onBuyClick(){i.RouterController.push("OnRampProviders")}onInputChange(e){this.onDebouncedSearch(e.detail)}handleTokenClick(e){i.Si.setToken(e),i.Si.setTokenAmount(void 0),i.RouterController.goBack()}};tA.styles=tC,tx([(0,s.SB)()],tA.prototype,"tokenBalance",void 0),tx([(0,s.SB)()],tA.prototype,"tokens",void 0),tx([(0,s.SB)()],tA.prototype,"filteredTokens",void 0),tx([(0,s.SB)()],tA.prototype,"search",void 0),tA=tx([(0,o.customElement)("w3m-wallet-send-select-token-view")],tA);var tE=(0,a.iv)` 2224 wui-avatar, 2225 wui-image { 2226 display: ruby; 2227 width: 32px; 2228 height: 32px; 2229 border-radius: var(--wui-border-radius-3xl); 2230 } 2231 2232 .sendButton { 2233 width: 70%; 2234 --local-width: 100% !important; 2235 --local-border-radius: var(--wui-border-radius-xs) !important; 2236 } 2237 2238 .cancelButton { 2239 width: 30%; 2240 --local-width: 100% !important; 2241 --local-border-radius: var(--wui-border-radius-xs) !important; 2242 } 2243`,tk=function(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};let t_=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.token=i.Si.state.token,this.sendTokenAmount=i.Si.state.sendTokenAmount,this.receiverAddress=i.Si.state.receiverAddress,this.receiverProfileName=i.Si.state.receiverProfileName,this.receiverProfileImageUrl=i.Si.state.receiverProfileImageUrl,this.gasPriceInUSD=i.Si.state.gasPriceInUSD,this.caipNetwork=i.fB.state.caipNetwork,this.unsubscribe.push(i.Si.subscribe(e=>{this.token=e.token,this.sendTokenAmount=e.sendTokenAmount,this.receiverAddress=e.receiverAddress,this.gasPriceInUSD=e.gasPriceInUSD,this.receiverProfileName=e.receiverProfileName,this.receiverProfileImageUrl=e.receiverProfileImageUrl}),i.fB.subscribeKey("caipNetwork",e=>this.caipNetwork=e))}
2243disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.dy)` <wui-flex flexDirection="column" .padding=${["0","l","l","l"]}> 2244 <wui-flex gap="xs" flexDirection="column" .padding=${["0","xs","0","xs"]}> 2245 <wui-flex alignItems="center" justifyContent="space-between"> 2246 <wui-flex flexDirection="column" gap="4xs"> 2247 <wui-text variant="small-400" color="fg-150">Send</wui-text> 2248 ${this.sendValueTemplate()} 2249 </wui-flex> 2250 <wui-preview-item 2251 text="${this.sendTokenAmount?o.UiHelperUtil.roundNumber(this.sendTokenAmount,6,5):"unknown"} ${this.token?.symbol}" 2252 .imageSrc=${this.token?.iconUrl} 2253 ></wui-preview-item> 2254 </wui-flex> 2255 <wui-flex> 2256 <wui-icon color="fg-200" size="md" name="arrowBottom"></wui-icon> 2257 </wui-flex> 2258 <wui-flex alignItems="center" justifyContent="space-between"> 2259 <wui-text variant="small-400" color="fg-150">To</wui-text> 2260 <wui-preview-item 2261 text="${this.receiverProfileName?o.UiHelperUtil.getTruncateString({string:this.receiverProfileName,charsStart:20,charsEnd:0,truncate:"end"}):o.UiHelperUtil.getTruncateString({string:this.receiverAddress?this.receiverAddress:"",charsStart:4,charsEnd:4,truncate:"middle"})}" 2262 address=${this.receiverAddress??""} 2263 .imageSrc=${this.receiverProfileImageUrl??void 0} 2264 .isAddress=${!0} 2265 ></wui-preview-item> 2266 </wui-flex> 2267 </wui-flex> 2268 <wui-flex flexDirection="column" .padding=${["xxl","0","0","0"]}> 2269 <w3m-wallet-send-details 2270 .caipNetwork=${this.caipNetwork} 2271 .receiverAddress=${this.receiverAddress} 2272 .networkFee=${this.gasPriceInUSD} 2273 ></w3m-wallet-send-details> 2274 <wui-flex justifyContent="center" gap="xxs" .padding=${["s","0","0","0"]}> 2275 <wui-icon size="sm" color="fg-200" name="warningCircle"></wui-icon> 2276 <wui-text variant="small-400" color="fg-200">Review transaction carefully</wui-text> 2277 </wui-flex> 2278 <wui-flex justifyContent="center" gap="s" .padding=${["l","0","0","0"]}> 2279 <wui-button 2280 class="cancelButton" 2281 @click=${this.onCancelClick.bind(this)} 2282 size="lg" 2283 variant="neutral" 2284 > 2285 Cancel 2286 </wui-button> 2287 <wui-button 2288 class="sendButton" 2289 @click=${this.onSendClick.bind(this)} 2290 size="lg" 2291 variant="main" 2292 > 2293 Send 2294 </wui-button> 2295 </wui-flex> 2296 </wui-flex></wui-flex 2297 >`}sendValueTemplate(){if(this.token&&this.sendTokenAmount){let e=this.token.price*this.sendTokenAmount;return(0,a.dy)`<wui-text variant="paragraph-400" color="fg-100" 2298 >$${e.toFixed(2)}</wui-text 2299 >`}return null}onSendClick(){i.Si.sendToken()}onCancelClick(){i.RouterController.goBack()}};t_.styles=tE,tk([(0,s.SB)()],t_.prototype,"token",void 0),tk([(0,s.SB)()],t_.prototype,"sendTokenAmount",void 0),tk([(0,s.SB)()],t_.prototype,"receiverAddress",void 0),tk([(0,s.SB)()],t_.prototype,"receiverProfileName",void 0),tk([(0,s.SB)()],t_.prototype,"receiverProfileImageUrl",void 0),tk([(0,s.SB)()],t_.prototype,"gasPriceInUSD",void 0),tk([(0,s.SB)()],t_.prototype,"caipNetwork",void 0),t_=tk([(0,o.customElement)("w3m-wallet-send-preview-view")],t_);var tS=(0,a.iv)` 2300 wui-flex { 2301 max-height: clamp(360px, 540px, 80vh); 2302 overflow: scroll; 2303 scrollbar-width: none; 2304 } 2305 wui-flex::-webkit-scrollbar {
2306 display: none; 2307 } 2308`;let tT=class extends a.oi{render(){return(0,a.dy)` 2309 <wui-flex flexDirection="column" padding="s" gap="xs"> 2310 <w3m-wallet-login-list></w3m-wallet-login-list> 2311 </wui-flex> 2312 <w3m-legal-footer></w3m-legal-footer> 2313 `}};tT.styles=tS,tT=function(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}([(0,o.customElement)("w3m-connect-wallets-view")],tT);var tI=(0,a.iv)` 2314 wui-flex { 2315 max-height: clamp(360px, 540px, 80vh); 2316 overflow: scroll; 2317 scrollbar-width: none; 2318 } 2319 wui-flex::-webkit-scrollbar { 2320 display: none; 2321 } 2322`;let tR=class extends a.oi{render(){return(0,a.dy)` 2323 <wui-flex flexDirection="column" padding="s" gap="xs"> 2324 <w3m-social-login-list></w3m-social-login-list> 2325 </wui-flex> 2326 <w3m-legal-footer></w3m-legal-footer> 2327 `}};tR.styles=tI,tR=function(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}([(0,o.customElement)("w3m-connect-socials-view")],tR);var tO=(0,a.iv)` 2328 wui-logo { 2329 width: 80px; 2330 height: 80px; 2331 border-radius: var(--wui-border-radius-m); 2332 } 2333 @keyframes shake { 2334 0% { 2335 transform: translateX(0); 2336 } 2337 25% { 2338 transform: translateX(3px); 2339 } 2340 50% { 2341 transform: translateX(-3px); 2342 } 2343 75% { 2344 transform: translateX(3px); 2345 } 2346 100% { 2347 transform: translateX(0); 2348 } 2349 } 2350 wui-flex:first-child:not(:only-child) { 2351 position: relative; 2352 } 2353 wui-loading-thumbnail { 2354 position: absolute; 2355 } 2356 wui-icon-box { 2357 position: absolute; 2358 right: calc(var(--wui-spacing-3xs) * -1); 2359 bottom: calc(var(--wui-spacing-3xs) * -1); 2360 opacity: 0; 2361 transform: scale(0.5); 2362 transition: all var(--wui-ease-out-power-2) var(--wui-duration-lg); 2363 } 2364 wui-text[align='center'] { 2365 width: 100%; 2366 padding: 0px var(--wui-spacing-l); 2367 } 2368 [data-error='true'] wui-icon-box { 2369 opacity: 1; 2370 transform: scale(1); 2371 } 2372 [data-error='true'] > wui-flex:first-child { 2373 animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; 2374 } 2375 .capitalize { 2376 text-transform: capitalize; 2377 } 2378`,tP=function(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};let tN=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.socialProvider=i.AccountController.state.socialProvider,this.socialWindow=i.AccountController.state.socialWindow,this.error=!1,this.connecting=!1,this.message="Connect in the provider window",this.authConnector=i.ConnectorController.getAuthConnector(),this.handleSocialConnection=async e=>{if(e.data?.resultUri){if(e.origin===C.SECURE_SITE_ORIGIN){window.removeEventListener("message",this.handleSocialConnection,!1);try{if(this.authConnector&&!this.connecting){this.socialWindow&&(this.socialWindow.close(),i.AccountController.setSocialWindow(void 0,i.RY.state.activeChain)),this.connecting=!0,this.updateMessage();let t=e.data.resultUri;await this.authConnector.provider.connectSocial(t),this.socialProvider&&(i.MO.setConnectedSocialProvider(this.socialProvider),await i.ConnectionController.connectExternal(this.authConnector),i.Xs.sendEvent({type:"track",event:"SOCIAL_LOGIN_SUCCESS",properties:{provider:this.socialProvider}}))}}catch(e){this.error=!0,this.updateMessage(),this.socialProvider&&i.Xs.sendEvent({type:"track",event:"SOCIAL_LOGIN_ERROR",properties:{provider:this.socialProvider}})}}else i.RouterController.goBack(),i.SnackController.showError("Untrusted Origin"),this.socialProvider&&i.Xs.sendEvent({type:"track",event:"SOCIAL_LOGIN_ERROR",properties:{provider:this.socialProvider}})}},this.unsubscribe.push(i.AccountController.subscribe(e=>{e.socialProvider&&(this.socialProvider=e.socialProvider),e.socialWindow&&(this.socialWindow=e.socialWindow),e.address&&i.IN.state.open&&i.IN.close()})),this.authConnector&&this.connectSocial()}
2378disconnectedCallback(){this.unsubscribe.forEach(e=>e()),window.removeEventListener("message",this.handleSocialConnection,!1)}render(){return(0,a.dy)` 2379 <wui-flex 2380 data-error=${l(this.error)} 2381 flexDirection="column" 2382 alignItems="center" 2383 .padding=${["3xl","xl","xl","xl"]} 2384 gap="xl" 2385 > 2386 <wui-flex justifyContent="center" alignItems="center"> 2387 <wui-logo logo=${l(this.socialProvider)}></wui-logo> 2388 ${this.error?null:this.loaderTemplate()} 2389 <wui-icon-box 2390 backgroundColor="error-100" 2391 background="opaque" 2392 iconColor="error-100" 2393 icon="close" 2394 size="sm" 2395 border 2396 borderColor="wui-color-bg-125" 2397 ></wui-icon-box> 2398 </wui-flex> 2399 <wui-flex flexDirection="column" alignItems="center" gap="xs"> 2400 <wui-text align="center" variant="paragraph-500" color="fg-100" 2401 >Log in with 2402 <span class="capitalize">${this.socialProvider??"Social"}</span></wui-text 2403 > 2404 <wui-text align="center" variant="small-400" color=${this.error?"error-100":"fg-200"} 2405 >${this.message}</wui-text 2406 ></wui-flex 2407 > 2408 </wui-flex> 2409 `}loaderTemplate(){let e=i.ThemeController.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return(0,a.dy)`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}connectSocial(){let e=setInterval(()=>{this.socialWindow?.closed&&(this.connecting||"ConnectingSocial"!==i.RouterController.state.view||i.RouterController.goBack(),clearInterval(e))},1e3);window.addEventListener("message",this.handleSocialConnection,!1)}updateMessage(){this.error?this.message="Something went wrong":this.connecting?this.message="Retrieving user data":this.message="Connect in the provider window"}};tN.styles=tO,tP([(0,s.SB)()],tN.prototype,"socialProvider",void 0),tP([(0,s.SB)()],tN.prototype,"socialWindow",void 0),tP([(0,s.SB)()],tN.prototype,"error",void 0),tP([(0,s.SB)()],tN.prototype,"connecting",void 0),tP([(0,s.SB)()],tN.prototype,"message",void 0),tN=tP([(0,o.customElement)("w3m-connecting-social-view")],tN);var tM=(0,a.iv)` 2410 wui-flex { 2411 width: 100%; 2412 } 2413 2414 wui-icon-link { 2415 margin-right: calc(var(--wui-icon-box-size-md) * -1); 2416 } 2417 2418 .account-links { 2419 display: flex; 2420 justify-content: space-between; 2421 align-items: center; 2422 } 2423 2424 .account-links wui-flex { 2425 cursor: pointer; 2426 display: flex; 2427 align-items: center; 2428 justify-content: center; 2429 flex: 1; 2430 background: red; 2431 align-items: center; 2432 justify-content: center; 2433 height: 48px; 2434 padding: 10px; 2435 flex: 1 0 0; 2436 2437 border-radius: var(--XS, 16px); 2438 border: 1px solid var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1)); 2439 background: var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1)); 2440 transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md); 2441 will-change: background-color; 2442 } 2443 2444 .account-links wui-flex:hover { 2445 background: var(--dark-accent-glass-015, rgba(71, 161, 255, 0.15)); 2446 } 2447 2448 .account-links wui-flex wui-icon { 2449 width: var(--S, 20px); 2450 height: var(--S, 20px); 2451 } 2452 2453 .account-links wui-flex wui-icon svg path { 2454 stroke: #47a1ff; 2455 } 2456 2457 .account-settings-button { 2458 padding: calc(var(--wui-spacing-m) - 1px) var(--wui-spacing-2l); 2459 height: 40px; 2460 border-radius: var(--wui-border-radius-xxs); 2461 border: 1px solid var(--wui-color-gray-glass-002); 2462 background: var(--wui-color-gray-glass-002); 2463 cursor: pointer; 2464 } 2465 2466 .account-settings-button:hover { 2467 background: var(--wui-color-gray-glass-005); 2468 } 2469`,tD=function(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};let tB=class extends a.oi{constructor(){super(),this.usubscribe=[],this.address=i.AccountController.state.address,this.profileImage=i.AccountController.state.profileImage,this.profileName=i.AccountController.state.profileName,this.accounts=i.AccountController.state.allAccounts,this.usubscribe.push(i.AccountController.subscribeKey("address",e=>{e?this.address=e:i.IN.close()})),this.usubscribe.push(i.AccountController.subscribeKey("profileImage",e=>{this.profileImage=e})),this.usubscribe.push(i.AccountController.subscribeKey("profileName",e=>{this.profileName=e}))}
2469disconnectedCallback(){this.usubscribe.forEach(e=>e())}render(){if(!this.address)throw Error("w3m-profile-view: No account provided");let e=this.profileName?.split(".")[0];return(0,a.dy)` 2470 <wui-flex flexDirection="column" gap="l" .padding=${["0","xl","m","xl"]}> 2471 <wui-flex flexDirection="column" alignItems="center" gap="l"> 2472 <wui-avatar 2473 alt=${this.address} 2474 address=${this.address} 2475 imageSrc=${l(this.profileImage)} 2476 size="2lg" 2477 ></wui-avatar> 2478 <wui-flex flexDirection="column" alignItems="center"> 2479 <wui-flex gap="3xs" alignItems="center" justifyContent="center"> 2480 <wui-text variant="title-6-600" color="fg-100" data-testid="account-settings-address"> 2481 ${e?o.UiHelperUtil.getTruncateString({string:e,charsStart:20,charsEnd:0,truncate:"end"}):o.UiHelperUtil.getTruncateString({string:this.address,charsStart:4,charsEnd:6,truncate:"middle"})} 2482 </wui-text> 2483 <wui-icon-link 2484 size="md" 2485 icon="copy" 2486 iconColor="fg-200" 2487 @click=${this.onCopyAddress} 2488 ></wui-icon-link> 2489 </wui-flex> 2490 </wui-flex> 2491 </wui-flex> 2492 <wui-flex 2493 data-testid="account-settings-button" 2494 justifyContent="center" 2495 alignItems="center" 2496 class="account-settings-button" 2497 @click=${()=>i.RouterController.push("AccountSettings")} 2498 > 2499 <wui-text variant="paragraph-500" color="fg-100">Account Settings</wui-text> 2500 </wui-flex> 2501 ${this.accountsTemplate()} 2502 </wui-flex> 2503 `}accountsTemplate(){return(0,a.dy)`<wui-flex flexDirection="column"> 2504 <wui-flex .padding=${["3xs","m","s","s"]}> 2505 <wui-text color="fg-200" variant="paragraph-400">Your accounts</wui-text> 2506 </wui-flex> 2507 <wui-flex flexDirection="column" gap="xxs"> 2508 ${this.accounts.map(e=>this.accountTemplate(e))} 2509 </wui-flex> 2510 </wui-flex>`}async onSwitchAccount(e){i.AccountController.setShouldUpdateToAddress(e.address);let t=i.ConnectorController.getAuthConnector();t&&(await t.provider.setPreferredAccount(e.type),await t.provider.connect())}accountTemplate(e){return(0,a.dy)`<wui-list-account accountAddress=${e.address} accountType=${e.type}> 2511 ${e.address===this.address?"":(0,a.dy)`<wui-button 2512 slot="action" 2513 textVariant="small-600" 2514 size="sm" 2515 variant="accent" 2516 @click=${()=>this.onSwitchAccount(e)} 2517 >Switch</wui-button 2518 >`} 2519 </wui-list-account>`}onCopyAddress(){try{this.profileName?(i.j1.copyToClopboard(this.profileName),i.SnackController.showSuccess("Name copied")):this.address&&(i.j1.copyToClopboard(this.address),i.SnackController.showSuccess("Address copied"))}catch{i.SnackController.showError("Failed to copy")}}};tB.styles=tM,tD([(0,s.SB)()],tB.prototype,"address",void 0),tD([(0,s.SB)()],tB.prototype,"profileImage",void 0),tD([(0,s.SB)()],tB.prototype,"profileName",void 0),tD([(0,s.SB)()],tB.prototype,"accounts",void 0),tB=tD([(0,o.customElement)("w3m-profile-view")],tB);var t$=(0,a.iv)` 2520 input[type='checkbox'] { 2521 all: revert; 2522 width: var(--wui-spacing-xl); 2523 height: var(--wui-spacing-xl); 2524 accent-color: var(--wui-color-accent-100); 2525 } 2526`,tU=function(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};let tL=class extends a.oi{constructor(){super(),this.metadata=i.OptionsController.state.metadata,this.allAccounts=i.AccountController.state.allAccounts,this.selectedAccounts=i.AccountController.state.allAccounts,this.selectAll=!0,this.approved=!1,this.isApproving=!1,this.getAddressTemplate=e=>{let t=this.selectedAccounts.some(t=>t.address===e.address);return(0,a.dy)`<wui-list-account accountAddress="${e.address}" accountType="${e.type}"> 2527 <input 2528 id="${e.address}" 2529 slot="action" 2530 type="checkbox" 2531 .checked="${t}" 2532 @change="${this.handleClick(e)}" 2533 /> 2534 </wui-list-account>`},this.onSelectAll=e=>{let t=e.target.checked;this.selectAll=this.selectedAccounts.length===this.allAccounts.length,this.allAccounts.forEac
2534h(e=>{this.onSelect(e,t)})},this.onSelect=(e,t)=>{t?this.selectedAccounts.push(e):this.selectedAccounts=this.selectedAccounts.filter(t=>t.address!==e.address),this.selectedAccounts.length>0&&(this.selectAll=this.selectedAccounts.length===this.allAccounts.length)},i.AccountController.subscribeKey("allAccounts",e=>{this.allAccounts=e})}render(){return(0,a.dy)` 2535 <wui-flex justifyContent="center" .padding=${["xl","0","xl","0"]}> 2536 <wui-banner-img imageSrc="${l(this.metadata?.icons[0])}" text="${l(this.metadata?.url)}" size="sm"></wui-banner> 2537 </wui-flex> 2538 <wui-flex .padding=${["0","xl","0","xl"]} flexDirection="row" justifyContent="space-between"> 2539 <wui-text variant="paragraph-400" color="fg-200">Select all</wui-text> 2540 <input type="checkbox" .checked=${this.selectAll} @click=${this.onSelectAll.bind(this)} /> 2541 </wui-flex> 2542 <wui-flex flexDirection="column" .padding=${["l","xl","xl","xl"]}> 2543 ${this.allAccounts.map(e=>this.getAddressTemplate(e))} 2544 </wui-flex> 2545 <wui-flex .padding=${["l","xl","xl","xl"]}
2545 gap="s" justifyContent="space-between"> 2546 <wui-button 2547 size="md" 2548 ?fullwidth=${!0} 2549 variant="neutral" 2550 @click=${this.onCancel.bind(this)} 2551 data-testid="w3m-connecting-siwe-cancel" 2552 > 2553 Cancel 2554 </wui-button> 2555 <wui-button 2556 size="md" 2557 ?fullwidth=${!0} 2558 variant="main" 2559 .disabled=${0===this.selectedAccounts.length} 2560 @click=${this.onContinue.bind(this)} 2561 ?loading=${this.isApproving} 2562 > 2563 ${this.isApproving?"Signing...":"Continue"} 2564 </wui-button> 2565 </wui-flex> 2566 `}handleClick(e){return t=>{let r=t.target;this.onSelect?.({...e},r?.checked)}}onContinue(){this.selectedAccounts.length>0?(this.isApproving=!0,i.AccountController.setAllAccounts(this.selectedAccounts),i.AccountController.setShouldUpdateToAddress(this.selectedAccounts[0]?.address??""),this.approved=!0,this.isApproving=!1,i.IN.close()):this.onCancel()}async onCancel(){let{isConnected:e}=i.AccountController.state;e?(await i.ConnectionController.disconnect(),i.IN.close()):i.RouterController.push("Connect")}disconnectedCallback(){super.disconnectedCallback(),this.approved||this.onCancel()}};tL.styles=t$,tU([(0,s.SB)()],tL.prototype,"allAccounts",void 0),tU([(0,s.SB)()],tL.prototype,"selectedAccounts",void 0),tU([(0,s.SB)()],tL.prototype,"selectAll",void 0),tU([(0,s.SB)()],tL.prototype,"approved",void 0),tU([(0,s.SB)()],tL.prototype,"isApproving",void 0),tL=tU([(0,o.customElement)("w3m-select-addresses-view")],tL);var tj=(0,a.iv)` 2567 wui-avatar { 2568 width: var(--wui-spacing-3xl); 2569 height: var(--wui-spacing-3xl); 2570 box-shadow: 0 0 0 0; 2571 } 2572 2573 wui-icon-box { 2574 position: relative; 2575 right: 15px; 2576 top: 15px; 2577 border: 2px solid var(--wui-color-bg-150); 2578 background-color: var(--wui-color-bg-125); 2579 } 2580`,tz=function(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};let tF=class extends a.oi{constructor(){super(),this.metadata=i.OptionsController.state.metadata,this.allAccounts=i.AccountController.state.allAccounts||[],this.balances={},this.labels=i.AccountController.state.addressLabels,this.currentAddress=i.AccountController.state.address||"",this.connectedConnector=i.MO.getConnectedConnector(),this.shouldShowIcon="AUTH"===this.connectedConnector,this.caipNetwork=i.fB.state.caipNetwork,i.AccountController.subscribeKey("allAccounts",e=>{this.allAccounts=e})}connectedCallback(){super.connectedCallback(),this.allAccounts.forEach(e=>{i.Lr.getBalance(e.address,this.caipNetwork?.id).then(t=>{let r=this.balances[e.address]||0;t.balances.length>0&&(r=t.balances.reduce((e,t)=>e+(t?.value||0),0)),this.balances[e.address]=r,this.requestUpdate()})})}getAddressIcon(e){return"smartAccount"===e?"lightbulb":"mail"}render(){return(0,a.dy)` 2581 <wui-flex justifyContent="center" .padding=${["xl","0","xl","0"]}> 2582 <wui-banner-img 2583 imageSrc=${l(this.metadata?.icons[0])} 2584 text=${l(this.metadata?.url)} 2585 size="sm" 2586 ></wui-banner-img> 2587 </wui-flex> 2588 <wui-flex flexDirection="column" gap="xxl" .padding=${["l","xl","xl","xl"]}> 2589 ${this.allAccounts.map((e,t)=>this.getAddressTemplate(e,t))} 2590 </wui-flex> 2591 `}getAddressTemplate(e,t){let r=this.labels?.get(e.address);return(0,a.dy)` 2592 <wui-flex 2593 flexDirection="row" 2594 justifyContent="space-between" 2595 data-testid="switch-address-item" 2596 > 2597 <wui-flex alignItems="center"> 2598 <wui-avatar address=${e.address}></wui-avatar> 2599 ${this.shouldShowIcon?(0,a.dy)`<wui-icon-box 2600 size="sm" 2601 iconcolor="fg-200" 2602 backgroundcolor="glass-002" 2603 background="gray" 2604 icon="${this.getAddressIcon(e.type)}" 2605 ?border=${!0} 2606 ></wui-icon-box>`:(0,a.dy)`<wui-flex .padding="${["0","0","0","s"]}"></wui-flex>`} 2607 <wui-flex flexDirection="column"> 2608 <wui-text class="address" variant="paragraph-500" color="fg-100" 2609 >${r||o.UiHelperUtil.getTruncateString({string:e.address,charsStart:4,charsEnd:6,truncate:"middle"})}</wui-text 2610 > 2611 <wui-text class="address-description" variant="small-400"> 2612 ${"number"==typeof this.balances[e.address]?`$${this.balances[e.address]?.toFixed(2)}`:(0,a.dy)`<wui-loading-spinner size="sm" color="accent-100"></wui-loading-spinner>`} 2613 </wui-text> 2614 </wui-flex> 2615 </wui-flex> 2616 <wui-flex gap="s" alignItems="center"> 2617 ${e.address?.toLowerCase()===this.currentAddress?.toLowerCase()?"":(0,a.dy)` 2618 <wui-button 2619 data-testid=${`w3m-switch-address-button-${t}`} 2620 textVariant="small-600" 2621 size="md" 2622 variant="accent" 2623 @click=${()=>this.onSwitchAddress(e.address)} 2624 >Switch to</wui-button 2625 > 2626 `} 2627 </wui-flex> 2628 </wui-flex> 2629 `}onSwitchAddress(e){i.AccountController.setShouldUpdateToAddress(e,i.RY.state.activeChain),i.IN.close()}};tF.styles=tj,tz([(0,s.SB)()],tF.prototype,"allAccounts",void 0),tz([(0,s.SB)()],tF.prototype,"balances",void 0),tF=tz([(0,o.customElement)("w3m-switch-address-view")],tF);var tH=(0,a.iv)` 2630 @keyframes fadein { 2631 from { 2632 opacity: 0; 2633 } 2634 to { 2635 opacity: 1; 2636 } 2637 } 2638 2639 wui-shimmer { 2640 width: 100%; 2641 aspect-ratio: 1 / 1; 2642 border-radius: clamp(0px, var(--wui-border-radius-l), 40px) !important; 2643 } 2644 2645 wui-qr-code { 2646 opacity: 0; 2647 animation-duration: 200ms; 2648 animation-timing-function: ease; 2649 animation-name: fadein; 2650 animation-fill-mode: forwards; 2651 } 2652 2653 wui-logo { 2654 width: 80px; 2655 height: 80px; 2656 border-radius: var(--wui-border-radius-m); 2657 } 2658 2659 wui-flex:first-child:not(:only-child) { 2660 position: relative; 2661 } 2662 wui-loading-thumbnail { 2663 position: absolute; 2664 } 2665 wui-icon-box { 2666 position: absolute; 2667 right: calc(var(--wui-spacing-3xs) * -1); 2668 bottom: calc(var(--wui-spacing-3xs) * -1); 2669 opacity: 0; 2670 transform: scale(0.5); 2671 transition: all var(--wui-ease-out-power-2) var(--wui-duration-lg); 2672 } 2673`,tq=function(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};let tW=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.socialProvider=i.AccountController.state.socialProvider,this.uri=i.AccountController.state.farcasterUrl,this.ready=!1,this.loading=!1,this.authConnector=i.ConnectorController.getAuthConnector(),this.forceUpdate=()=>{this.requestUpdate()},this.unsubscribe.push(i.AccountController.subscribeKey("farcasterUrl",e=>{e&&(this.uri=e,this.connectFarcaster())}),i.AccountController.subscribeKey("socialProvider",e=>{e&&(this.socialProvider=e)})),window.addEventListener("resize",this.forceUpdate)}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.timeout),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),(0,a.dy)`${this.platformTemplate()}`}platformTemplate(){return i.j1.isMobile()?(0,a.dy)`${this.mobileTemplate()}`:(0,a.dy)`${this.desktopTemplate()}`}desktopTemplate(){return this.loading?(0,a.dy)`${this.loadingTemplate()}`:(0,a.dy)`${this.qrTemplate()}`}qrTemplate(){return(0,a.dy)` <wui-flex 2674 flexDirection="column" 2675 alignItems="center" 2676 .padding=${["0","xl","xl","xl"]} 2677 gap="xl" 2678 > 2679 <wui-shimmer borderRadius="l" width="100%"> ${this.qrCodeTemplate()} </wui-shimmer> 2680 2681 <wui-text variant="paragraph-500" color="fg-100"> 2682 Scan this QR Code with your phone 2683 </wui-text> 2684 ${this.copyTemplate()} 2685 </wui-flex>`}loadingTemplate(){return(0,a.dy)` 2686 <wui-flex 2687 flexDirection="column" 2688 alignItems="center" 2689 .padding=${["xl","xl","xl","xl"]} 2690 gap="xl" 2691 > 2692 <wui-flex justifyContent="center" alignItems="center"> 2693 <wui-logo logo="farcaster"></wui-logo> 2694 ${this.loaderTemplate()} 2695 <wui-icon-box 2696 backgroundColor="error-100" 2697 background="opaque" 2698 iconColor="error-100" 2699 icon="close" 2700 size="sm" 2701 border 2702 borderColor="wui-color-bg-125" 2703 ></wui-icon-box> 2704 </wui-flex> 2705 <wui-flex flexDirection="column" alignItems="center" gap="xs"> 2706 <wui-text align="center" variant="paragraph-500" color="fg-100"> 2707 Loading user data 2708 </wui-text> 2709 <wui-text align="center" variant="small-400" color="fg-200"> 2710 Please wait a moment while we load your data. 2711 </wui-text> 2712 </wui-flex> 2713 </wui-flex> 2714 `}mobileTemplate(){return(0,a.dy)` <wui-flex 2715 flexDirection="column" 2716 alignItems="center" 2717 .padding=${["3xl","xl","xl","xl"]} 2718 gap="xl" 2719 > 2720 <wui-flex justifyContent="center" alignItems="center"> 2721 <wui-logo logo="farcaster"></wui-logo> 2722 ${this.loaderTemplate()} 2723 <wui-icon-box 2724 backgroundColor="error-100" 2725 background="opaque" 2726 iconColor="error-100" 2727 icon="close" 2728 size="sm" 2729 border 2730 borderColor="wui-color-bg-125" 2731 ></wui-icon-box> 2732 </wui-flex> 2733 <wui-flex flexDirection="column" alignItems="center" gap="xs"> 2734 <wui-text align="center" variant="paragraph-500" color="fg-100" 2735 >
2735Continue in Farcaster</span></wui-text 2736 > 2737 <wui-text align="center" variant="small-400" color="fg-200" 2738 >Accept connection request in the app</wui-text 2739 ></wui-flex 2740 > 2741 ${this.mobileLinkTemplate()} 2742 </wui-flex>`}loaderTemplate(){let e=i.ThemeController.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return(0,a.dy)`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}async connectFarcaster(){if(this.authConnector)try{await this.authConnector?.provider.connectFarcaster(),this.socialProvider&&i.MO.setConnectedSocialProvider(this.socialProvider),this.loading=!0,await i.ConnectionController.connectExternal(this.authConnector),this.loading=!1,i.IN.close()}catch(e){i.RouterController.goBack(),i.SnackController.showError(e)}}mobileLinkTemplate(){return(0,a.dy)`<wui-button 2743 size="md" 2744 ?loading=${this.loading} 2745 ?disabled=${!this.uri||this.loading} 2746 @click=${()=>{this.uri&&i.j1.openHref(this.uri,"_blank")}} 2747 > 2748 Open farcaster</wui-button 2749 >`}onRenderProxy(){!this.ready&&this.uri&&(this.timeout=setTimeout(()=>{this.ready=!0},0))}qrCodeTemplate(){if(!this.uri||!this.ready)return null;let e=this.getBoundingClientRect().width-40;return(0,a.dy)` <wui-qr-code 2750 size=${e} 2751 theme=${i.ThemeController.state.themeMode} 2752 uri=${this.uri} 2753 ?farcaster=${!0} 2754 data-testid="wui-qr-code" 2755 ></wui-qr-code>`}copyTemplate(){let e=!this.uri||!this.ready;return(0,a.dy)`<wui-link 2756 .disabled=${e} 2757 @click=${this.onCopyUri} 2758 color="fg-200" 2759 data-testid="copy-wc2-uri" 2760 > 2761 <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon> 2762 Copy link 2763 </wui-link>`}onCopyUri(){try{this.uri&&(i.j1.copyToClopboard(this.uri),i.SnackController.showSuccess("Link copied"))}catch{i.SnackController.showError("Failed to copy")}}};tW.styles=tH,tq([(0,s.SB)()],tW.prototype,"socialProvider",void 0),tq([(0,s.SB)()],tW.prototype,"uri",void 0),tq([(0,s.SB)()],tW.prototype,"ready",void 0),tq([(0,s.SB)()],tW.prototype,"loading",void 0),tW=tq([(0,o.customElement)("w3m-connecting-farcaster-view")],tW);var tV=(0,a.iv)` 2764 wui-grid { 2765 max-height: clamp(360px, 400px, 80vh); 2766 overflow: scroll; 2767 scrollbar-width: none; 2768 grid-auto-rows: min-content; 2769 grid-template-columns: repeat(auto-fill, 76px); 2770 } 2771 2772 @media (max-width: 435px) { 2773 wui-grid { 2774 grid-template-columns: repeat(auto-fill, 77px); 2775 } 2776 } 2777 2778 wui-grid[data-scroll='false'] { 2779 overflow: hidden; 2780 } 2781 2782 wui-grid::-webkit-scrollbar {
2783 display: none; 2784 } 2785 2786 wui-loading-spinner { 2787 padding-top: var(--wui-spacing-l); 2788 padding-bottom: var(--wui-spacing-l); 2789 justify-content: center; 2790 grid-column: 1 / span 4; 2791 } 2792`;function tZ(e){let{connectors:t}=i.ConnectorController.state,r=t.filter(e=>"ANNOUNCED"===e.type).reduce((e,t)=>(t.info?.rdns&&(e[t.info.rdns]=!0),e),{});return e.map(e=>({...e,installed:!!e.rdns&&!!r[e.rdns??""]})).sort((e,t)=>Number(t.installed)-Number(e.installed))}var tG=function(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};let tK="local-paginator",tY=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.initial=!i.ApiController.state.wallets.length,this.wallets=i.ApiController.state.wallets,this.recommended=i.ApiController.state.recommended,this.featured=i.ApiController.state.featured,this.unsubscribe.push(i.ApiController.subscribeKey("wallets",e=>this.wallets=e),i.ApiController.subscribeKey("recommended",e=>this.recommended=e),i.ApiController.subscribeKey("featured",e=>this.featured=e))}firstUpdated(){this.initialFetch(),this.createPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),this.paginationObserver?.disconnect()}render(){return(0,a.dy)` 2793 <wui-grid 2794 data-scroll=${!this.initial} 2795 .padding=${["0","s","s","s"]} 2796 columnGap="xxs" 2797 rowGap="l" 2798 justifyContent="space-between" 2799 > 2800 ${this.initial?this.shimmerTemplate(16):this.walletsTemplate()} 2801 ${this.paginationLoaderTemplate()} 2802 </wui-grid> 2803 `}async initialFetch(){let e=this.shadowRoot?.querySelector("wui-grid");this.initial&&e&&(await i.ApiController.fetchWallets({page:1}),await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.initial=!1,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}shimmerTemplate(e,t){return[...Array(e)].map(()=>(0,a.dy)` 2804 <wui-card-select-loader type="wallet" id=${l(t)}></wui-card-select-loader> 2805 `)}walletsTemplate(){return tZ([...this.featured,...this.recommended,...this.wallets]).map(e=>(0,a.dy)` 2806 <w3m-all-wallets-list-item 2807 @click=${()=>this.onConnectWallet(e)} 2808 .wallet=${e} 2809 ></w3m-all-wallets-list-item> 2810 `)}paginationLoaderTemplate(){let{wallets:e,recommended:t,featured:r,count:n}=i.ApiController.state,o=window.innerWidth<352?3:4,a=e.length+t.length,s=Math.ceil(a/o)*o-a+o;return(s-=e.length?r.length%o:0,0===n&&r.length>0)?null:0===n||[...r,...e,...t].length<n?this.shimmerTemplate(s,tK):null}createPaginationObserver(){let e=this.shadowRoot?.querySelector(`#${tK}`);e&&(this.paginationObserver=new IntersectionObserver(([e])=>{if(e?.isIntersecting&&!this.initial){let{page:e,count:t,wallets:r}=i.ApiController.state;r.length<t&&i.ApiController.fetchWallets({page:e+1})}}),this.paginationObserver.observe(e))}onConnectWallet(e){let t=i.ConnectorController.getConnector(e.id,e.rdns);t?i.RouterController.push("ConnectingExternal",{connector:t}):i.RouterController.push("ConnectingWalletConnect",{wallet:e})}};tY.styles=tV,tG([(0,s.SB)()],tY.prototype,"initial",void 0),tG([(0,s.SB)()],tY.prototype,"wallets",void 0),tG([(0,s.SB)()],tY.prototype,"recommended",void 0),tG([(0,s.SB)()],tY.prototype,"featured",void 0),tY=tG([(0,o.customElement)("w3m-all-wallets-list")],tY);var tQ=(0,a.iv)` 2811 button { 2812 display: flex; 2813 flex-direction: column; 2814 justify-content: center; 2815 align-items: center; 2816 width: 76px; 2817 row-gap: var(--wui-spacing-xs); 2818 padding: var(--wui-spacing-xs) var(--wui-spacing-0); 2819 background-color: var(--wui-color-gray-glass-002); 2820 border-radius: clamp(0px, var(--wui-border-radius-xs), 20px); 2821 will-change: background-color, color; 2822 outline: none; 2823 border: none; 2824 } 2825 2826 button > wui-text { 2827 color: var(--wui-color-fg-100); 2828 max-width: var(--wui-icon-box-size-xl); 2829 white-space: nowrap; 2830 overflow: hidden; 2831 text-overflow: ellipsis; 2832 justify-content: center; 2833 } 2834 2835 button:hover:enabled { 2836 background-color: var(--wui-color-gray-glass-005); 2837 } 2838 2839 button:disabled > wui-text { 2840 color: var(--wui-color-gray-glass-015); 2841 } 2842 2843 [data-selected='true'] { 2844 background-color: var(--wui-color-accent-glass-020); 2845 } 2846 2847 @media (hover: hover) and (pointer: fine) { 2848 [data-selected='true']:hover:enabled { 2849 background-color: var(--wui-color-accent-glass-015); 2850 } 2851 } 2852 2853 [data-selected='true']:active:enabled { 2854 background-color: var(--wui-color-accent-glass-010); 2855 } 2856`,tJ=function(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};let tX=class extends a.oi{constructor(){super(),this.observer=new IntersectionObserver(()=>void 0),this.visible=!1,this.imageSrc=void 0,this.imageLoading=!1,this.wallet=void 0,this.observer=new IntersectionObserver(e=>
2856{e.forEach(e=>{e.isIntersecting?(this.visible=!0,this.fetchImageSrc()):this.visible=!1})},{threshold:.01})}firstUpdated(){this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}render(){return(0,a.dy)` 2857 <button ontouchstart> 2858 ${this.imageTemplate()} 2859 <wui-text variant="tiny-500" color="inherit">${this.wallet?.name}</wui-text> 2860 </button> 2861 `}imageTemplate(){return(this.visible||this.imageSrc)&&!this.imageLoading?(0,a.dy)` 2862 <wui-wallet-image 2863 size="md" 2864 imageSrc=${l(this.imageSrc)} 2865 name=${this.wallet?.name} 2866 .installed=${this.wallet?.installed} 2867 badgeSize="sm" 2868 > 2869 </wui-wallet-image> 2870 `:this.shimmerTemplate()}shimmerTemplate(){return(0,a.dy)`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}async fetchImageSrc(){this.wallet&&(this.imageSrc=i.fz.getWalletImage(this.wallet),this.imageSrc||(this.imageLoading=!0,this.imageSrc=await i.fz.fetchWalletImage(this.wallet.image_id),this.imageLoading=!1))}};tX.styles=tQ,tJ([(0,s.SB)()],tX.prototype,"visible",void 0),tJ([(0,s.SB)()],tX.prototype,"imageSrc",void 0),tJ([(0,s.SB)()],tX.prototype,"imageLoading",void 0),tJ([(0,s.Cb)()],tX.prototype,"wallet",void 0),tX=tJ([(0,o.customElement)("w3m-all-wallets-list-item")],tX);var t0=(0,a.iv)` 2871 wui-grid, 2872 wui-loading-spinner, 2873 wui-flex { 2874 height: 360px; 2875 } 2876 2877 wui-grid { 2878 overflow: scroll; 2879 scrollbar-width: none; 2880 grid-auto-rows: min-content; 2881 } 2882 2883 wui-grid[data-scroll='false'] { 2884 overflow: hidden; 2885 } 2886 2887 wui-grid::-webkit-scrollbar {
2888 display: none; 2889 } 2890 2891 wui-loading-spinner { 2892 justify-content: center; 2893 align-items: center; 2894 } 2895`,t1=function(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};let t2=class extends a.oi{constructor(){super(...arguments),this.prevQuery="",this.loading=!0,this.query=""}render(){return this.onSearch(),this.loading?(0,a.dy)`<wui-loading-spinner color="accent-100"></wui-loading-spinner>`:this.walletsTemplate()}async onSearch(){this.query.trim()!==this.prevQuery.trim()&&(this.prevQuery=this.query,this.loading=!0,await i.ApiController.searchWallet({search:this.query}),this.loading=!1)}walletsTemplate(){let{search:e}=i.ApiController.state,t=tZ(e);return e.length?(0,a.dy)` 2896 <wui-grid 2897 .padding=${["0","s","s","s"]} 2898 gridTemplateColumns="repeat(4, 1fr)" 2899 rowGap="l" 2900 columnGap="xs" 2901 > 2902 ${t.map(e=>(0,a.dy)` 2903 <w3m-all-wallets-list-item 2904 @click=${()=>this.onConnectWallet(e)} 2905 .wallet=${e} 2906 ></w3m-all-wallets-list-item> 2907 `)} 2908 </wui-grid> 2909 `:(0,a.dy)` 2910 <wui-flex justifyContent="center" alignItems="center" gap="s" flexDirection="column"> 2911 <wui-icon-box 2912 size="lg" 2913 iconColor="fg-200" 2914 backgroundColor="fg-300" 2915 icon="wallet" 2916 background="transparent" 2917 ></wui-icon-box> 2918 <wui-text color="fg-200" variant="paragraph-500">No Wallet found</wui-text> 2919 </wui-flex> 2920 `}onConnectWallet(e){let t=i.ConnectorController.getConnector(e.id,e.rdns);t?i.RouterController.push("ConnectingExternal",{connector:t}):i.RouterController.push("ConnectingWalletConnect",{wallet:e})}};t2.styles=t0,t1([(0,s.SB)()],t2.prototype,"loading",void 0),t1([(0,s.Cb)()],t2.prototype,"query",void 0),t2=t1([(0,o.customElement)("w3m-all-wallets-search")],t2);var t3=function(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};let t5=class extends a.oi{constructor(){super(),this.platformTabs=[],this.unsubscribe=[],this.platforms=[],this.onSelectPlatfrom=void 0,this.buffering=!1,this.unsubscribe.push(i.ConnectionController.subscribeKey("buffering",e=>this.buffering=e))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.generateTabs();return(0,a.dy)` 2921 <wui-flex justifyContent="center" .padding=${["0","0","l","0"]}> 2922 <wui-tabs 2923 ?disabled=${this.buffering} 2924 .tabs=${e} 2925 .onTabChange=${this.onTabChange.bind(this)} 2926 ></wui-tabs> 2927 </wui-flex> 2928 `}generateTabs(){let e=this.platforms.map(e=>"browser"===e?{label:"Browser",icon:"extension",platform:"browser"}:"mobile"===e?{label:"Mobile",icon:"mobile",platform:"mobile"}:"qrcode"===e?{label:"Mobile",icon:"mobile",platform:"qrcode"}:"web"===e?{label:"Webapp",icon:"browser",platform:"web"}:"desktop"===e?{label:"Desktop",icon:"desktop",platform:"desktop"}:{label:"Browser",icon:"extension",platform:"unsupported"});return this.platformTabs=e.map(({platform:e})=>e),e}onTabChange(e){let t=this.platformTabs[e];t&&this.onSelectPlatfrom?.(t)}};t3([(0,s.Cb)({type:Array})],t5.prototype,"platforms",void 0),t3([(0,s.Cb)()],t5.prototype,"onSelectPlatfrom",void 0),t3([(0,s.SB)()],t5.prototype,"buffering",void 0),t5=t3([(0,o.customElement)("w3m-connecting-header")],t5);let t4=class extends W{constructor(){if(super(),!this.wallet)throw Error("w3m-connecting-wc-browser: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),i.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}async onConnectProxy(){try{this.error=!1;let{connectors:e}=i.ConnectorController.state,t=e.find(e=>"ANNOUNCED"===e.type&&e.info?.rdns===this.wallet?.rdns),r=e.find(e=>"INJECTED"===e.type);t?await i.ConnectionController.connectExternal(t):r&&await i.ConnectionController.connectExternal(r),i.IN.close(),i.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser",name:this.wallet?.name||"Unknown"}})}catch(e){i.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),this.error=!0}}};t4=function(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}([(0,o.customElement)("w3m-connecting-wc-browser")],t4);let t6=class extends W{constructor(){if(super(),!this.wallet)throw Error("w3m-connecting-wc-desktop: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),i.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"desktop"}})}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onConnectProxy(){if(this.wallet?.desktop_link&&this.uri)try{this.error=!1;let{desktop_link:e,name:t}=this.wallet,{redirect:r,href:n}=i.j1.formatNativeUrl(e,this.uri);i.ConnectionController.setWcLinking({name:t,href:n}),i.ConnectionController.setRecentWallet(this.wallet),i.j1.openHref(r,"_blank")}catch{this.error=!0}}};t6=function(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}([(0,o.customElement)("w3m-connecting-wc-desktop")],t6);let t8=class extends W{constructor(){if(super(),!this.wallet)throw Error("w3m-connecting-wc-mobile: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),document.addEventListener("visibilitychange",this.onBuffering.bind(this)),i.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"mobile"}})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("visibilitychange",this.onBuffering.bind(this))}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onConnectProxy(){if(this.wallet?.mobile_link&&this.uri)try{this.error=!1;let{mobile_link:e,name:t}=this.wallet,{redirect:r,href:n}=i.j1.formatNativeUrl(e,this.uri);i.ConnectionController.setWcLinking({name:t,href:n}),i.ConnectionController.setRecentWallet(this.wallet),i.j1.openHref(r,"_self")}catch{this.error=!0}}onBuffering(){let e=i.j1.isIos();document?.visibilityState==="visible"&&!this.error&&e&&(i.ConnectionController.setBuffering(!0),setTimeout(()=>{i.ConnectionController.setBuffering(!1)},5e3))}};t8=function(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}([(0,o.customElement)("w3m-connecting-wc-mobile")],t8);var t9=(0,a.iv)` 2929 @keyframes fadein { 2930 from { 2931 opacity: 0; 2932 } 2933 to { 2934 opacity: 1; 2935 } 2936 } 2937 2938 wui-shimmer { 2939 width: 100%; 2940 aspect-ratio: 1 / 1; 2941 border-radius: clamp(0px, var(--wui-border-radius-l), 40px) !important; 2942 } 2943 2944 wui-qr-code { 2945 opacity: 0; 2946 animation-duration: 200ms; 2947 animation-timing-function: ease; 2948 animation-name: fadein; 2949 animation-fill-mode: forwards; 2950 } 2951`;let t7=class extends W{constructor(){super(),this.forceUpdate=()=>{this.requestUpdate()},window.addEventListener("resize",this.forceUpdate),i.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet?.name??"WalletConnect",platform:"qrcode"}})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),(0,a.dy)` 2952 <wui-flex 2953 flexDirection="column" 2954 alignItems="center" 2955 .padding=${["0","xl","xl","xl"]} 2956 gap="xl" 2957 > 2958 <wui-shimmer borderRadius="l" width="100%"> ${this.qrCodeTemplate()} </wui-shimmer> 2959 2960 <wui-text variant="paragraph-500" color="fg-100"> 2961 Scan this QR Code with your phone 2962 </wui-text> 2963 ${this.copyTemplate()} 2964 </wui-flex> 2965
2966 <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links> 2967 `}onRenderProxy(){!this.ready&&this.uri&&(this.timeout=setTimeout(()=>{this.ready=!0},0))}qrCodeTemplate(){if(!this.uri||!this.ready)return null;let e=this.getBoundingClientRect().width-40,t=this.wallet?this.wallet.name:void 0;return i.ConnectionController.setWcLinking(void 0),i.ConnectionController.setRecentWallet(this.wallet),(0,a.dy)` <wui-qr-code 2968 size=${e} 2969 theme=${i.ThemeController.state.themeMode} 2970 uri=${this.uri} 2971 imageSrc=${l(i.fz.getWalletImage(this.wallet))} 2972 alt=${l(t)} 2973 data-testid="wui-qr-code" 2974 ></wui-qr-code>`}copyTemplate(){let e=!this.uri||!this.ready;return(0,a.dy)`<wui-link 2975 .disabled=${e} 2976 @click=${this.onCopyUri} 2977 color="fg-200" 2978 data-testid="copy-wc2-uri" 2979 > 2980 <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon> 2981 Copy link 2982 </wui-link>`}};t7.styles=t9,t7=function(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}([(0,o.customElement)("w3m-connecting-wc-qrcode")],t7);let re=class extends a.oi{constructor(){if(super(),this.wallet=i.RouterController.state.data?.wallet,!this.wallet)throw Error("w3m-connecting-wc-unsupported: No wallet provided");i.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}render(){return(0,a.dy)` 2983 <wui-flex 2984 flexDirection="column" 2985 alignItems="center" 2986 .padding=${["3xl","xl","xl","xl"]} 2987 gap="xl" 2988 > 2989 <wui-wallet-image 2990 size="lg" 2991 imageSrc=${l(i.fz.getWalletImage(this.wallet))} 2992 ></wui-wallet-image> 2993 2994 <wui-text variant="paragraph-500" color="fg-100">Not Detected</wui-text> 2995 </wui-flex> 2996 2997 <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links> 2998 `}};re=function(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}([(0,o.customElement)("w3m-connecting-wc-unsupported")],re);let rt=class extends W{constructor(){if(super(),!this.wallet)throw Error("w3m-connecting-wc-web: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.secondaryBtnLabel="Open",this.secondaryLabel="Open and continue in a new browser tab",this.secondaryBtnIcon="externalLink",i.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"web"}})}onConnectProxy(){if(this.wallet?.webapp_link&&this.uri)try{this.error=!1;let{webapp_link:e,name:t}=this.wallet,{redirect:r,href:n}=i.j1.formatUniversalUrl(e,this.uri);i.ConnectionController.setWcLinking({name:t,href:n}),i.ConnectionController.setRecentWallet(this.wallet),i.j1.openHref(r,"_blank")}catch{this.error=!0}}};rt=function(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}([(0,o.customElement)("w3m-connecting-wc-web")],rt);var rr=(0,a.iv)` 2999 :host { 3000 width: 100%; 3001 } 3002 3003 .details-container > wui-flex { 3004 background: var(--wui-color-gray-glass-002); 3005 border-radius: var(--wui-border-radius-xxs); 3006 width: 100%; 3007 } 3008 3009 .details-container > wui-flex > button { 3010 border: none; 3011 background: none; 3012 padding: var(--wui-spacing-s); 3013 border-radius: var(--wui-border-radius-xxs); 3014 cursor: pointer; 3015 } 3016 3017 .details-content-container { 3018 padding: var(--wui-spacing-1xs); 3019 padding-top: 0px; 3020 display: flex; 3021 align-items: center; 3022 justify-content: center; 3023 } 3024 3025 .details-content-container > wui-flex { 3026 width: 100%; 3027 } 3028 3029 .details-row { 3030 width: 100%; 3031 padding: var(--wui-spacing-s); 3032 padding-left: var(--wui-spacing-s); 3033 padding-right: var(--wui-spacing-1xs); 3034 border-radius: calc(var(--wui-border-radius-5xs) + var(--wui-border-radius-4xs)); 3035 background: var(--wui-color-gray-glass-002); 3036 } 3037 3038 .details-row-title { 3039 white-space: nowrap; 3040 } 3041 3042 .details-row.provider-free-row { 3043 padding-right: var(--wui-spacing-xs); 3044 } 3045`,rn=function(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};let ri=i.bq.CONVERT_SLIPPAGE_TOLERANCE,ro=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.networkName=i.fB.state.caipNetwork?.name,this.detailsOpen=!1,this.sourceToken=i.nY.state.sourceToken,this.toToken=i.nY.state.toToken,this.toTokenAmount=i.nY.state.toTokenAmount,this.sourceTokenPriceInUSD=i.nY.state.sourceTokenPriceInUSD,this.toTokenPriceInUSD=i.nY.state.toTokenPriceInUSD,this.gasPriceInUSD=i.nY.state.gasPriceInUSD,this.priceImpact=i.nY.state.priceImpact,this.maxSlippage=i.nY.state.maxSlippage,this.networkTokenSymbol=i.nY.state.networkTokenSymbol,this.inputError=i.nY.state.inputError,this.unsubscribe.push(i.nY.subscribe(e=>{this.sourceToken=e.sourceToken,this.toToken=e.toToken,this.toTokenAmount=e.toTokenAmount,this.gasPriceInUSD=e.gasPriceInUSD,this.priceImpact=e.priceImpact,this.maxSlippage=e.maxSlippage,this.sourceTokenPriceInUSD=e.sourceTokenPriceInUSD,this.toTokenPriceInUSD=e.toTokenPriceInUSD,this.inputError=e.inputError}))}render(){let e=this.toTokenAmount&&this.maxSlippage?Y.C6.bigNumber(this.toTokenAmount).minus(this.maxSlippage).toString():null;if(!this.sourceToken||!this.toToken||this.inputError)return null;let t=this.sourceTokenPriceInUSD&&this.toTokenPriceInUSD?1/this.toTokenPriceInUSD*this.sourceTokenPriceInUSD:0;return(0,a.dy)` 3046 <wui-flex flexDirection="column" alignItems="center" gap="1xs" class="details-container"> 3047 <wui-flex flexDirection="column"> 3048 <button @click=${this.toggleDetails.bind(this)}> 3049 <wui-flex justifyContent="space-between" .padding=${["0","xs","0","xs"]}> 3050 <wui-flex justifyContent="flex-start" flexGrow="1" gap="xs"> 3051 <wui-text variant="small-400" color="fg-100"> 3052 1 ${this.sourceToken.symbol} = 3053 ${o.UiHelperUtil.formatNumberToLocalString(t,3)} 3054 ${this.toToken.symbol} 3055 </wui-text> 3056 <wui-text variant="small-400" color="fg-200"> 3057 $${o.UiHelperUtil.formatNumberToLocalString(this.sourceTokenPriceInUSD)} 3058 </wui-text> 3059 </wui-flex> 3060 <wui-icon name="chevronBottom"></wui-icon> 3061 </wui-flex> 3062 </button> 3063 ${this.detailsOpen?(0,a.dy)` 3064 <wui-flex flexDirection="column" gap="xs" class="details-content-container"> 3065 <wui-flex flexDirection="column" gap="xs"> 3066 <wui-flex 3067 justifyContent="space-between" 3068 alignItems="center" 3069 class="details-row" 3070 > 3071 <wui-flex alignItems="center" gap="xs"> 3072 <wui-text class="details-row-title" variant="small-400" color="fg-150"> 3073 Network cost 3074 </wui-text> 3075 <w3m-tooltip-trigger 3076 text=${`Network cost is paid in ${this.networkTokenSymbol} on the ${this.networkName} network in order to execute transaction.`} 3077 > 3078 <wui-icon size="xs" color="fg-250" name="infoCircle"></wui-icon> 3079 </w3m-tooltip-trigger> 3080 </wui-flex> 3081 <wui-text variant="small-400" color="fg-100"> 3082 $${o.UiHelperUtil.formatNumberToLocalString(this.gasPriceInUSD,3)} 3083 </wui-text> 3084 </wui-flex> 3085 </wui-flex> 3086 ${this.priceImpact?(0,a.dy)` <wui-flex flexDirection="column" gap="xs"> 3087 <wui-flex 3088 justifyContent="space-between" 3089 alignItems="center" 3090 class="details-row" 3091 > 3092 <wui-flex alignItems="center" gap="xs"> 3093 <wui-text class="details-row-title" variant="small-400" color="fg-150"> 3094 Price impact 3095 </wui-text> 3096 <w3m-tooltip-trigger 3097 text="Price impact reflects the change in market price due to your trade" 3098 > 3099 <wui-icon size="xs" color="fg-250" name="infoCircle"></wui-icon> 3100 </w3m-tooltip-trigger> 3101 </wui-flex> 3102 <wui-flex> 3103 <wui-text variant="small-400" color="fg-200"> 3104 ${o.UiHelperUtil.formatNumberToLocalString(this.priceImpact,3)}% 3105 </wui-text> 3106 </wui-flex> 3107 </wui-flex> 3108 </wui-flex>`:null} 3109 ${this.maxSlippage&&this.sourceToken.symbol?(0,a.dy)`<wui-flex flexDirection="column" gap="xs"> 3110 <wui-flex 3111 justifyContent="space-between" 3112 alignItems="center" 3113 class="details-row" 3114 > 3115 <wui-flex alignItems="center" gap="xs"> 3116 <wui-text class="details-row-title" variant="small-400" color="fg-150"> 3117 Max. slippage 3118 </wui-text> 3119 <w3m-tooltip-trigger 3120 text=${`Max slippage sets the minimum amount you must receive for the transaction to proceed. ${e?`Transaction will be reversed if you receive less than ${o.UiHelperUtil.formatNumberToLocalString(e,6)} ${this.toToken.symbol} due to price changes.`:""}`} 3121 > 3122 <wui-icon size="xs" color="fg-250" name="infoCircle"></wui-icon> 3123 </w3m-tooltip-trigger> 3124 </wui-flex> 3125 <wui-flex> 3126 <wui-text variant="small-400" color="fg-200"> 3127 ${o.UiHelperUtil.formatNumberToLocalString(this.maxSlippage,6)} 3128 ${this.toToken.symbol} ${ri}% 3129 </wui-text> 3130 </wui-flex> 3131 </wui-flex> 3132 </wui-flex>`:null} 3133 <wui-flex flexDirection="column" gap="xs"> 3134 <wui-flex 3135 justifyContent="space-between" 3136 alignItems="center" 3137 class="details-row provider-free-row" 3138 > 3139 <wui-flex alignItems="center" gap="xs"> 3140 <wui-text class="details-row-title" variant="small-400" color="fg-150"> 3141 Provider fee 3142 </wui-text> 3143 </wui-flex> 3144 <wui-flex> 3145 <wui-text variant="small-400" color="fg-200">0.85%</wui-text> 3146 </wui-flex> 3147 </wui-flex> 3148 </wui-flex> 3149 </wui-flex> 3150 `:null} 3151 </wui-flex> 3152 </wui-flex> 3153 `}toggleDetails(){this.detailsOpen=!this.detailsOpen}};ro.styles=[rr],rn([(0,s.SB)()],ro.prototype,"networkName",void 0),rn([(0,s.Cb)()],ro.prototype,"detailsOpen",void 0),rn([(0,s.SB)()],ro.prototype,"sourceToken",void 0),rn([(0,s.SB)()],ro.prototype,"toToken",void 0),rn([(0,s.SB)()],ro.prototype,"toTokenAmount",void 0),rn([(0,s.SB)()],ro.prototype,"sourceTokenPriceInUSD",void 0),rn([(0,s.SB)()],ro.prototype,"toTokenPriceInUSD",void 0),rn([(0,s.SB)()],ro.prototype,"gasPriceInUSD",void 0),rn([(0,s.SB)()],ro.prototype,"priceImpact",void 0),rn([(0,s.SB)()],ro.prototype,"maxSlippage",void 0),rn([(0,s.SB)()],ro.prototype,"networkTokenSymbol",void 0),rn([(0,s.SB)()],ro.prototype,"inputError",void 0),ro=rn([(0,o.customElement)("w3m-swap-details")],ro);var ra=(0,a.iv)` 3154 :host > wui-flex { 3155 display: flex; 3156 flex-direction: row; 3157 justify-content: space-between; 3158 align-items: center; 3159 border-radius: var(--wui-border-radius-s); 3160 background-color: var(--wui-color-gray-glass-002); 3161 padding: var(--wui-spacing-xl); 3162 padding-right: var(--wui-spacing-s); 3163 width: 100%; 3164 height: 100px; 3165 box-sizing: border-box; 3166 box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-002); 3167 position: relative; 3168 transition: box-shadow var(--wui-ease-out-power-1) var(--wui-duration-lg); 3169 will-change: background-color; 3170 } 3171 3172 :host wui-flex.focus { 3173 box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-005); 3174 } 3175 3176 :host > wui-flex .swap-input, 3177 :host > wui-flex .swap-token-button { 3178 z-index: 10; 3179 } 3180 3181 :host > wui-flex .swap-input { 3182 -webkit-mask-image: linear-gradient( 3183 270deg, 3184 transparent 0px, 3185 transparent 8px, 3186 black 24px, 3187 black 25px, 3188 black 32px, 3189 black 100% 3190 ); 3191 mask-image: linear-gradient( 3192 270deg, 3193 transparent 0px, 3194 transparent 8px, 3195 black 24px, 3196 black 25px, 3197 black 32px, 3198 black 100% 3199 ); 3200 } 3201 3202 :host > wui-flex .swap-input input { 3203 background: none; 3204 border: none; 3205 height: 42px; 3206 width: 100%; 3207 font-size: 32px; 3208 font-style: normal; 3209 font-weight: 400; 3210 line-height: 130%; 3211 letter-spacing: -1.28px; 3212 outline: none; 3213 caret-color: var(--wui-color-accent-100); 3214 color: var(--wui-color-fg-100); 3215 padding: 0px; 3216 } 3217 3218 :host > wui-flex .swap-input input:focus-visible { 3219 outline: none; 3220 } 3221 3222 :host > wui-flex .swap-input input::-webkit-outer-spin-button, 3223 :host > wui-flex .swap-input input::-webkit-inner-spin-button { 3224 -webkit-appearance: none; 3225 margin: 0; 3226 } 3227 3228 .max-value-button { 3229 background-color: transparent; 3230 border: none; 3231 cursor: pointer; 3232 color: var(--wui-color-gray-glass-020); 3233 padding-left: 0px; 3234 } 3235 3236 .market-value { 3237 min-height: 18px; 3238 } 3239`,rs=function(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};let rc=class extends a.oi{constructor(){super(...arguments),this.focused=!1,this.price=0,this.target="sourceToken",this.onSetAmount=null,this.onSetMaxValue=null}render(){let e=this.marketValue||"0",t=Y.C6.bigNumber(e).isGreaterThan("0");return(0,a.dy)` 3240 <wui-flex class="${this.focused?"focus":""}" justifyContent="space-between"> 3241 <wui-flex 3242 flex="1" 3243 flexDirection="column" 3244 alignItems="flex-start" 3245 justifyContent="center" 3246 class="swap-input" 3247 > 3248 <input 3249 data-testid="swap-input-${this.target}" 3250 @focusin=${()=>this.onFocusChange(!0)} 3251 @focusout=${()=>this.onFocusChange(!1)} 3252 ?disabled=${this.disabled} 3253 .value=${this.value}
3254 @input=${this.dispatchInputChangeEvent} 3255 @keydown=${this.handleKeydown} 3256 placeholder="0" 3257 type="text" 3258 inputmode="decimal" 3259 /> 3260 <wui-text class="market-value" variant="small-400" color="fg-200"> 3261 ${t?`$${o.UiHelperUtil.formatNumberToLocalString(this.marketValue,3)}`:null} 3262 </wui-text> 3263 </wui-flex> 3264 ${this.templateTokenSelectButton()} 3265 </wui-flex> 3266 `}handleKeydown(e){return Y.kg.numericInputKeyDown(e,this.value,e=>this.onSetAmount?.(this.target,e))}dispatchInputChangeEvent(e){if(!this.onSetAmount)return;let t=e.target.value.replace(/[^0-9.]/gu,"");","===t||"."===t?this.onSetAmount(this.target,"0."):t.endsWith(",")?this.onSetAmount(this.target,t.replace(",",".")):this.onSetAmount(this.target,t)}setMaxValueToInput(){this.onSetMaxValue?.(this.target,this.balance)}templateTokenSelectButton(){return this.token?(0,a.dy)` 3267 <wui-flex 3268 class="swap-token-button" 3269 flexDirection="column" 3270 alignItems="flex-end" 3271 justifyContent="center" 3272 gap="xxs" 3273 > 3274 <wui-token-button 3275 data-testid="swap-input-token-${this.target}" 3276 text=${this.token.symbol} 3277 imageSrc=${this.token.logoUri} 3278 @click=${this.onSelectToken.bind(this)} 3279 > 3280 </wui-token-button> 3281 <wui-flex alignItems="center" gap="xxs"> ${this.tokenBalanceTemplate()} </wui-flex> 3282 </wui-flex> 3283 `:(0,a.dy)` <wui-button 3284 data-testid="swap-select-token-button-${this.target}" 3285 class="swap-token-button" 3286 size="md" 3287 variant="accent" 3288 @click=${this.onSelectToken.bind(this)} 3289 > 3290 Select token 3291 </wui-button>`}tokenBalanceTemplate(){let e=Y.C6.multiply(this.balance,this.price),t=!!e&&e?.isGreaterThan(5e-5);return(0,a.dy)` 3292 ${t?(0,a.dy)`<wui-text variant="small-400" color="fg-200"> 3293 ${o.UiHelperUtil.formatNumberToLocalString(this.balance,3)} 3294 </wui-text>`:null} 3295 ${"sourceToken"===this.target?this.tokenActionButtonTemplate(t):null} 3296 `}tokenActionButtonTemplate(e){return e?(0,a.dy)` <button class="max-value-button" @click=${this.setMaxValueToInput.bind(this)}> 3297 <wui-text color="accent-100" variant="small-600">Max</wui-text> 3298 </button>`:(0,a.dy)` <button class="max-value-button" @click=${this.onBuyToken.bind(this)}> 3299 <wui-text color="accent-100" variant="small-600">Buy</wui-text> 3300 </button>`}onFocusChange(e){this.focused=e}onSelectToken(){i.Xs.sendEvent({type:"track",event:"CLICK_SELECT_TOKEN_TO_SWAP"}),i.RouterController.push("SwapSelectToken",{target:this.target})}onBuyToken(){i.RouterController.push("OnRampProviders")}};rc.styles=[ra],rs([(0,s.Cb)()],rc.prototype,"focused",void 0),rs([(0,s.Cb)()],rc.prototype,"balance",void 0),rs([(0,s.Cb)()],rc.prototype,"value",void 0),rs([(0,s.Cb)()],rc.prototype,"price",void 0),rs([(0,s.Cb)()],rc.prototype,"marketValue",void 0),rs([(0,s.Cb)()],rc.prototype,"disabled",void 0),rs([(0,s.Cb)()],rc.prototype,"target",void 0),rs([(0,s.Cb)()],rc.prototype,"token",void 0),rs([(0,s.Cb)()],rc.prototype,"onSetAmount",void 0),rs([(0,s.Cb)()],rc.prototype,"onSetMaxValue",void 0),rc=rs([(0,o.customElement)("w3m-swap-input")],rc);var rl=(0,a.iv)` 3301 :host { 3302 width: 100%; 3303 } 3304 3305 :host > wui-flex { 3306 display: flex; 3307 flex-direction: row; 3308 justify-content: space-between; 3309 align-items: center; 3310 border-radius: var(--wui-border-radius-s); 3311 padding: var(--wui-spacing-xl); 3312 padding-right: var(--wui-spacing-s); 3313 background-color: var(--wui-color-gray-glass-002); 3314 box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-002); 3315 width: 100%; 3316 height: 100px; 3317 box-sizing: border-box; 3318 position: relative; 3319 } 3320 3321 wui-shimmer.market-value { 3322 opacity: 0; 3323 } 3324 3325 :host > wui-flex > svg.input_mask { 3326 position: absolute; 3327 inset: 0; 3328 z-index: 5; 3329 } 3330 3331 :host wui-flex .input_mask__border, 3332 :host wui-flex .input_mask__background { 3333 transition: fill var(--wui-duration-md) var(--wui-ease-out-power-1); 3334 will-change: fill; 3335 } 3336 3337 :host wui-flex .input_mask__border { 3338 fill: var(--wui-color-gray-glass-020); 3339 } 3340 3341 :host wui-flex .input_mask__background { 3342 fill: var(--wui-color-gray-glass-002); 3343 } 3344`,ru=function(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};let rd=class extends a.oi{constructor(){super(...arguments),this.target="sourceToken"}render(){return(0,a.dy)` 3345 <wui-flex class justifyContent="space-between"> 3346 <wui-flex 3347 flex="1" 3348 flexDirection="column" 3349 alignItems="flex-start" 3350 justifyContent="center" 3351 class="swap-input" 3352 gap="xxs" 3353 > 3354 <wui-shimmer width="80px" height="40px" borderRadius="xxs" variant="light"></wui-shimmer> 3355 </wui-flex> 3356 ${this.templateTokenSelectButton()} 3357 </wui-flex> 3358 `}templateTokenSelectButton(){return(0,a.dy)` 3359 <wui-flex 3360 class="swap-token-button" 3361 flexDirection="column" 3362 alignItems="flex-end" 3363 justifyContent="center" 3364 gap="xxs" 3365 > 3366 <wui-shimmer width="80px" height="40px" borderRadius="3xl" variant="light"></wui-shimmer> 3367 </wui-flex> 3368 `}};rd.styles=[rl],ru([(0,s.Cb)()],rd.prototype,"target",void 0),rd=ru([(0,o.customElement)("w3m-swap-input-skeleton")],rd);var rh=(0,a.iv)` 3369 :host { 3370 height: 64px; 3371 } 3372 3373 wui-text { 3374 text-transform: capitalize; 3375 } 3376 3377 wui-flex.w3m-header-title { 3378 transform: translateY(0); 3379 opacity: 1; 3380 } 3381 3382 wui-flex.w3m-header-title[view-direction='prev'] { 3383 animation: 3384 slide-down-out 120ms forwards var(--wui-ease-out-power-2), 3385 slide-down-in 120ms forwards var(--wui-ease-out-power-2); 3386 animation-delay: 0ms, 200ms; 3387 } 3388 3389 wui-flex.w3m-header-title[view-direction='next'] { 3390 animation: 3391 slide-up-out 120ms forwards var(--wui-ease-out-power-2), 3392 slide-up-in 120ms forwards var(--wui-ease-out-power-2); 3393 animation-delay: 0ms, 200ms; 3394 } 3395 3396 wui-icon-link[data-hidden='true'] { 3397 opacity: 0 !important; 3398 pointer-events: none; 3399 } 3400 3401 @keyframes slide-up-out { 3402 from { 3403 transform: translateY(0px); 3404 opacity: 1; 3405 } 3406 to { 3407 transform: translateY(3px); 3408 opacity: 0; 3409 } 3410 } 3411 3412 @keyframes slide-up-in { 3413 from { 3414 transform: translateY(-3px); 3415 opacity: 0; 3416 } 3417 to { 3418 transform: translateY(0); 3419 opacity: 1; 3420 } 3421 } 3422 3423 @keyframes slide-down-out { 3424 from { 3425 transform: translateY(0px); 3426 opacity: 1; 3427 } 3428 to { 3429 transform: translateY(-3px); 3430 opacity: 0; 3431 } 3432 } 3433 3434 @keyframes slide-down-in { 3435 from { 3436 transform: translateY(3px); 3437 opacity: 0; 3438 } 3439 to { 3440 transform: translateY(0); 3441 opacity: 1; 3442 } 3443 } 3444`,rf=function(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};let rp=["Swap","SwapSelectToken","SwapPreview"];function rg(){let e=i.RouterController.state.data?.connector?.name,t=i.RouterController.state.data?.wallet?.name,r=i.RouterController.state.data?.network?.name,n=t??e,o=i.ConnectorController.getConnectors(),a=1===o.length&&o[0]?.id==="w3m-email";return{Connect:`Connect ${a?"Email":""} Wallet`,ChooseAccountName:void 0,Account:void 0,AccountSettings:void 0,AllWallets:"All Wallets",ApproveTransaction:"Approve Transaction",BuyInProgress:"Buy",ConnectingExter
3444nal:n??"Connect Wallet",ConnectingWalletConnect:n??"WalletConnect",ConnectingSiwe:"Sign In",Convert:"Convert",ConvertSelectToken:"Select token",ConvertPreview:"Preview convert",Downloads:n?`Get ${n}`:"Downloads",EmailVerifyOtp:"Confirm Email",EmailVerifyDevice:"Register Device",GetWallet:"Get a wallet",Networks:"Choose Network",OnRampProviders:"Choose Provider",OnRampActivity:"Activity",OnRampTokenSelect:"Select Token",OnRampFiatSelect:"Select Currency",Profile:void 0,SelectAddresses:"Select accounts",SwitchNetwork:r??"Switch Network",SwitchAddress:"Switch Address",Transactions:"Activity",UnsupportedChain:"Switch Network",UpgradeEmailWallet:"Upgrade your Wallet",UpgradeToSmartAccount:void 0,UpdateEmailWallet:"Edit Email",UpdateEmailPrimaryOtp:"Confirm Current Email",UpdateEmailSecondaryOtp:"Confirm New Email",WhatIsABuy:"What is Buy?",RegisterAccountName:"Choose name",RegisterAccountNameSuccess:"",WalletReceive:"Receive",WalletCompatibleNetworks:"Compatible Networks",Swap:"Swap",SwapSelectToken:"Select token",SwapPreview:"Preview swap",WalletSend:"Send",WalletSendPreview:"Review send",WalletSendSelectToken:"Select Token",WhatIsANetwork:"What is a network?",WhatIsAWallet:"What is a wallet?",ConnectWallets:"Connect wallet",ConnectSocials:"All socials",ConnectingSocial:i.AccountController.state.socialProvider?i.AccountController.state.socialProvider:"Connect Social",ConnectingFarcaster:"Farcaster"}}let rm=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.heading=rg()[i.RouterController.state.view],this.buffering=!1,this.showBack=!1,this.isSiweEnabled=i.OptionsController.state.isSiweEnabled,this.prevHistoryLength=1,this.view=i.RouterController.state.view,this.viewDirection="",this.headerText=rg()[i.RouterController.state.view],this.unsubscribe.push(i.RouterController.subscribeKey("view",e=>{setTimeout(()=>{this.view=e,this.headerText=rg()[e]},C.ANIMATION_DURATIONS.HeaderText),this.onViewChange(),this.onHistoryChange()}),i.ConnectionController.subscribeKey("buffering",e=>this.buffering=e))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.dy)` 3445 <wui-flex .padding=${this.getPadding()} justifyContent="space-between" alignItems="center"> 3446 ${this.dynamicButtonTemplate()} ${this.titleTemplate()} ${this.closeButtonTemplate()} 3447 </wui-flex> 3448 `}onWalletHelp(){i.Xs.sendEvent({type:"track",event:"CLICK_WALLET_HELP"}),i.RouterController.push("WhatIsAWallet")}async onClose(){if(this.isSiweEnabled){let{SIWEController:e}=await Promise.all([r.e(138),r.e(502)]).then(r.bind(r,73344));"success"===e.state.status?i.IN.close():i.RouterController.popTransactionStack(!0)}else i.IN.close()}closeButtonTemplate(){let e="ConnectingSiwe"===i.RouterController.state.view;return this.isSiweEnabled&&e?(0,a.dy)`<div style="width:40px" />`:(0,a.dy)` 3449 <wui-icon-link 3450 ?disabled=${this.buffering} 3451 icon="close" 3452 @click=${this.onClose.bind(this)} 3453 data-testid="w3m-header-close" 3454 ></wui-icon-link> 3455 `}titleTemplate(){let e=rp.includes(this.view);return(0,a.dy)` 3456 <wui-flex 3457 view-direction="${this.viewDirection}" 3458 class="w3m-header-title" 3459 alignItems="center" 3460 gap="xs" 3461 > 3462 <wui-text variant="paragraph-700" color="fg-100">${this.headerText}</wui-text> 3463 ${e?(0,a.dy)`<wui-tag variant="main">Beta</wui-tag>`:null} 3464 </wui-flex> 3465 `}dynamicButtonTemplate(){let{view:e}=i.RouterController.state;return this.showBack&&!("ApproveTransaction"===e||"UpgradeToSmartAccount"===e||"ConnectingSiwe"===e)?(0,a.dy)`<wui-icon-link 3466 id="dynamic" 3467 icon="chevronLeft" 3468 ?disabled=${this.buffering} 3469 @click=${this.onGoBack.bind(this)} 3470 ></wui-icon-link>`:(0,a.dy)`<wui-icon-link 3471 data-hidden=${"Connect"!==e} 3472 id="dynamic" 3473 icon="helpCircle" 3474 @click=${this.onWalletHelp.bind(this)} 3475 ></wui-icon-link>`}getPadding(){return this.heading?["l","2l","l","2l"]:["0","2l","0","2l"]}onViewChange(){let{history:e}=i.RouterController.state,t=C.VIEW_DIRECTION.Next;e.length<this.prevHistoryLength&&(t=C.VIEW_DIRECTION.Prev),this.prevHistoryLength=e.length,this.viewDirection=t}async onHistoryChange(){let{history:e}=i.RouterController.state,t=this.shadowRoot?.querySelector("#dynamic");e.length>1&&!this.showBack&&t?(await t.animate([{opacity:1},{opacity:0}
3475],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!0,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})):e.length<=1&&this.showBack&&t&&(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!1,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}onGoBack(){i.RouterController.goBack()}};rm.styles=[rh],rf([(0,s.SB)()],rm.prototype,"heading",void 0),rf([(0,s.SB)()],rm.prototype,"buffering",void 0),rf([(0,s.SB)()],rm.prototype,"showBack",void 0),rf([(0,s.SB)()],rm.prototype,"isSiweEnabled",void 0),rf([(0,s.SB)()],rm.prototype,"prevHistoryLength",void 0),rf([(0,s.SB)()],rm.prototype,"view",void 0),rf([(0,s.SB)()],rm.prototype,"viewDirection",void 0),rf([(0,s.SB)()],rm.prototype,"headerText",void 0),rm=rf([(0,o.customElement)("w3m-header")],rm);var rw=function(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};let rb=class extends a.oi{constructor(){super(...arguments),this.data=[]}render(){return(0,a.dy)` 3476 <wui-flex flexDirection="column" alignItems="center" gap="l"> 3477 ${this.data.map(e=>(0,a.dy)` 3478 <wui-flex flexDirection="column" alignItems="center" gap="xl"> 3479 <wui-flex flexDirection="row" justifyContent="center" gap="1xs"> 3480 ${e.images.map(e=>(0,a.dy)`<wui-visual name=${e}></wui-visual>`)} 3481 </wui-flex> 3482 </wui-flex> 3483 <wui-flex flexDirection="column" alignItems="center" gap="xxs"> 3484 <wui-text variant="paragraph-500" color="fg-100" align="center"> 3485 ${e.title} 3486 </wui-text> 3487 <wui-text variant="small-500" color="fg-200" align="center">${e.text}</wui-text> 3488 </wui-flex> 3489 `)} 3490 </wui-flex> 3491 `}};rw([(0,s.Cb)({type:Array})],rb.prototype,"data",void 0),rb=rw([(0,o.customElement)("w3m-help-widget")],rb);var rv=(0,a.iv)` 3492 :host { 3493 width: 100%; 3494 } 3495 3496 :host > wui-flex { 3497 width: 100%; 3498 padding: var(--wui-spacing-s); 3499 border-radius: var(--wui-border-radius-xs); 3500 width: 100%; 3501 display: flex; 3502 align-items: center; 3503 justify-content: flex-start; 3504 gap: var(--wui-spacing-s); 3505 } 3506 3507 :host > wui-flex:hover { 3508 background-color: var(--wui-color-gray-glass-002); 3509 } 3510 3511 .purchase-image-container { 3512 display: flex; 3513 justify-content: center; 3514 align-items: center; 3515 position: relative; 3516 width: var(--wui-icon-box-size-lg); 3517 height: var(--wui-icon-box-size-lg); 3518 } 3519 3520 .purchase-image-container wui-image { 3521 width: 100%; 3522 height: 100%; 3523 position: relative; 3524 border-radius: calc(var(--wui-icon-box-size-lg) / 2); 3525 } 3526 3527 .purchase-image-container wui-image::after { 3528 content: ''; 3529 display: block; 3530 width: 100%; 3531 height: 100%; 3532 position: absolute; 3533 inset: 0; 3534 border-radius: calc(var(--wui-icon-box-size-lg) / 2); 3535 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 3536 } 3537 3538 .purchase-image-container wui-icon-box { 3539 position: absolute; 3540 right: 0; 3541 bottom: 0; 3542 transform: translate(20%, 20%); 3543 } 3544`,ry=function(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};let rC=class extends a.oi{constructor(){super(...arguments),this.disabled=!1,this.color="inherit",this.label="Bought",this.purchaseValue="",this.purchaseCurrency="",this.date="",this.completed=!1,this.inProgress=!1,this.failed=!1,this.onClick=null,this.symbol=""}firstUpdated(){this.icon||this.fetchTokenImage()}render(){return(0,a.dy)` 3545 <wui-flex> 3546 ${this.imageTemplate()} 3547 <wui-flex flexDirection="column" gap="4xs" flexGrow="1">
3548 <wui-flex gap="xxs" alignItems="center" justifyContent="flex-start"> 3549 ${this.statusIconTemplate()} 3550 <wui-text variant="paragraph-500" color="fg-100"> ${this.label}</wui-text> 3551 </wui-flex> 3552 <wui-text variant="small-400" color="fg-200"> 3553 + ${this.purchaseValue} ${this.purchaseCurrency} 3554 </wui-text> 3555 </wui-flex> 3556 ${this.inProgress?(0,a.dy)`<wui-loading-spinner color="fg-200" size="md"></wui-loading-spinner>`:(0,a.dy)`<wui-text variant="micro-700" color="fg-300"><span>${this.date}</span></wui-text>`} 3557 </wui-flex> 3558 `}async fetchTokenImage(){await i.ApiController._fetchTokenImage(this.purchaseCurrency)}statusIconTemplate(){return this.inProgress?null:this.completed?this.boughtIconTemplate():this.errorIconTemplate()}errorIconTemplate(){return(0,a.dy)`<wui-icon-box 3559 size="xxs" 3560 iconColor="error-100" 3561 backgroundColor="error-100" 3562 background="opaque" 3563 icon="close" 3564 borderColor="wui-color-bg-125" 3565 ></wui-icon-box>`}imageTemplate(){let e=this.icon||`https://avatar.vercel.sh/andrew.svg?size=50&text=${this.symbol}`;return(0,a.dy)`<wui-flex class="purchase-image-container"> 3566 <wui-image src=${e}></wui-image> 3567 </wui-flex>`}boughtIconTemplate(){return(0,a.dy)`<wui-icon-box 3568 size="xxs" 3569 iconColor="success-100" 3570 backgroundColor="success-100" 3571 background="opaque" 3572 icon="arrowBottom" 3573 borderColor="wui-color-bg-125" 3574 ></wui-icon-box>`}};rC.styles=[rv],ry([(0,s.Cb)({type:Boolean})],rC.prototype,"disabled",void 0),ry([(0,s.Cb)()],rC.prototype,"color",void 0),ry([(0,s.Cb)()],rC.prototype,"label",void 0),ry([(0,s.Cb)()],rC.prototype,"purchaseValue",void 0),ry([(0,s.Cb)()],rC.prototype,"purchaseCurrency",void 0),ry([(0,s.Cb)()],rC.prototype,"date",void 0),ry([(0,s.Cb)({type:Boolean})],rC.prototype,"completed",void 0),ry([(0,s.Cb)({type:Boolean})],rC.prototype,"inProgress",void 0),ry([(0,s.Cb)({type:Boolean})],rC.prototype,"failed",void 0),ry([(0,s.Cb)()],rC.prototype,"onClick",void 0),ry([(0,s.Cb)()],rC.prototype,"symbol",void 0),ry([(0,s.Cb)()],rC.prototype,"icon",void 0),rC=ry([(0,o.customElement)("w3m-onramp-activity-item")],rC);var rx=(0,a.iv)` 3575 :host { 3576 width: 100%; 3577 } 3578 3579 wui-loading-spinner { 3580 position: absolute; 3581 top: 50%; 3582 right: 20px; 3583 transform: translateY(-50%); 3584 } 3585 3586 .currency-container { 3587 position: absolute; 3588 top: 50%; 3589 transform: translateY(-50%); 3590 right: var(--wui-spacing-1xs); 3591 height: 40px; 3592 padding: var(--wui-spacing-xs) var(--wui-spacing-1xs) var(--wui-spacing-xs) 3593 var(--wui-spacing-xs); 3594 min-width: 95px; 3595 border-radius: var(--FULL, 1000px); 3596 border: 1px solid var(--wui-color-gray-glass-002); 3597 background: var(--wui-color-gray-glass-002); 3598 cursor: pointer; 3599 } 3600 3601 .currency-container > wui-image { 3602 height: 24px; 3603 width: 24px; 3604 border-radius: 50%; 3605 } 3606`,rA=function(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};let rE=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.type="Token",this.value=0,this.currencies=[],this.selectedCurrency=this.currencies?.[0],this.currencyImages=i.WM.state.currencyImages,this.tokenImages=i.WM.state.tokenImages,this.unsubscribe.push(i.ph.subscribeKey("purchaseCurrency",e=>{e&&"Fiat"!==this.type&&(this.selectedCurrency=this.formatPurchaseCurrency(e))}),i.ph.subscribeKey("paymentCurrency",e=>{e&&"Token"!==this.type&&(this.selectedCurrency=this.formatPaymentCurrency(e))}),i.ph.subscribe(e=>{"Fiat"===this.type?this.currencies=e.purchaseCurrencies.map(this.formatPurchaseCurrency):this.currencies=e.paymentCurrencies.map(this.formatPaymentCurrency)}),i.WM.subscribe(e=>{this.currencyImages={...e.currencyImages},this.tokenImages={...e.tokenImages}}))}firstUpdated(){i.ph.getAvailableCurrencies()}
3606disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.selectedCurrency?.symbol||"",t=this.currencyImages[e]||this.tokenImages[e];return(0,a.dy)`<wui-input-text type="number" size="lg" value=${this.value}> 3607 ${this.selectedCurrency?(0,a.dy)` <wui-flex 3608 class="currency-container" 3609 justifyContent="space-between" 3610 alignItems="center" 3611 gap="xxs" 3612 @click=${()=>i.IN.open({view:`OnRamp${this.type}Select`})} 3613 > 3614 <wui-image src=${l(t)}></wui-image> 3615 <wui-text color="fg-100">${this.selectedCurrency.symbol}</wui-text> 3616 </wui-flex>`:(0,a.dy)`<wui-loading-spinner></wui-loading-spinner>`} 3617 </wui-input-text>`}formatPaymentCurrency(e){return{name:e.id,symbol:e.id}}formatPurchaseCurrency(e){return{name:e.name,symbol:e.symbol}}};rE.styles=rx,rA([(0,s.Cb)({type:String})],rE.prototype,"type",void 0),rA([(0,s.Cb)({type:Number})],rE.prototype,"value",void 0),rA([(0,s.SB)()],rE.prototype,"currencies",void 0),rA([(0,s.SB)()],rE.prototype,"selectedCurrency",void 0),rA([(0,s.SB)()],rE.prototype,"currencyImages",void 0),rA([(0,s.SB)()],rE.prototype,"tokenImages",void 0),rE=rA([(0,o.customElement)("w3m-onramp-input")],rE);var rk=(0,a.iv)` 3618 button { 3619 padding: var(--wui-spacing-s); 3620 border-radius: var(--wui-border-radius-xs); 3621 border: none; 3622 outline: none; 3623 background-color: var(--wui-color-gray-glass-002); 3624 width: 100%; 3625 display: flex; 3626 align-items: center; 3627 justify-content: flex-start; 3628 gap: var(--wui-spacing-s); 3629 transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md); 3630 will-change: background-color; 3631 } 3632 3633 button:hover { 3634 background-color: var(--wui-color-gray-glass-005); 3635 } 3636 3637 .provider-image { 3638 width: var(--wui-spacing-3xl); 3639 min-width: var(--wui-spacing-3xl); 3640 height: var(--wui-spacing-3xl); 3641 border-radius: calc(var(--wui-border-radius-xs) - calc(var(--wui-spacing-s) / 2)); 3642 position: relative; 3643 overflow: hidden; 3644 } 3645 3646 .provider-image::after { 3647 content: ''; 3648 display: block; 3649 width: 100%; 3650 height: 100%; 3651 position: absolute; 3652 inset: 0; 3653 border-radius: calc(var(--wui-border-radius-xs) - calc(var(--wui-spacing-s) / 2)); 3654 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 3655 } 3656 3657 .network-icon { 3658 width: var(--wui-spacing-m); 3659 height: var(--wui-spacing-m); 3660 border-radius: calc(var(--wui-spacing-m) / 2); 3661 overflow: hidden; 3662 box-shadow: 3663 0 0 0 3px var(--wui-color-gray-glass-002), 3664 0 0 0 3px var(--wui-color-modal-bg); 3665 transition: box-shadow var(--wui-ease-out-power-1) var(--wui-duration-md); 3666 will-change: box-shadow; 3667 } 3668 3669 button:hover .network-icon { 3670 box-shadow: 3671 0 0 0 3px var(--wui-color-gray-glass-005), 3672 0 0 0 3px var(--wui-color-modal-bg); 3673 } 3674`,r_=function(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};let rS=class extends a.oi{constructor(){super(...arguments),this.disabled=!1,this.color="inherit",this.label="",this.feeRange="",this.loading=!1,this.onClick=null}render(){return(0,a.dy)` 3675 <button ?disabled=${this.disabled} ontouchstart> 3676 <wui-visual name=${l(this.name)} class="provider-image"></wui-visual> 3677 <wui-flex flexDirection="column" gap="4xs"> 3678 <wui-text variant="paragraph-500" color="fg-100">${this.label}</wui-text> 3679 <wui-flex alignItems="center" justifyContent="flex-start" gap="l"> 3680 <wui-text variant="tiny-500" color="fg-100"> 3681 <wui-text variant="tiny-400" color="fg-200">Fees</wui-text> 3682 ${this.feeRange} 3683 </wui-text> 3684 <wui-flex gap="xxs"> 3685 <wui-icon name="bank" size="xs" color="fg-150"></wui-icon> 3686 <wui-icon name="card" size="xs" color="fg-150"></wui-icon> 3687 </wui-flex> 3688 ${this.networksTemplate()} 3689 </wui-flex> 3690 </wui-flex> 3691 ${this.loading?(0,a.dy)`<wui-loading-spinner color="fg-200" size="md"></wui-loading-spinner>`:(0,a.dy)`<wui-icon name="chevronRight" color="fg-200" size="sm"></wui-icon>`} 3692 </button> 3693 `}networksTemplate(){let e=i.fB.getRequestedCaipNetworks(),t=e?.filter(e=>e?.imageId)?.slice(0,5);return(0,a.dy)` 3694 <wui-flex class="networks"> 3695 ${t?.map(e=>a.dy` 3696 <wui-flex class="network-icon"> 3697 <wui-image src=${l(i.fz.getNetworkImage(e))}></wui-image> 3698 </wui-flex> 3699 `)} 3700 </wui-flex> 3701 `}};rS.styles=[rk],r_([(0,s.Cb)({type:Boolean})],rS.prototype,"disabled",void 0),r_([(0,s.Cb)()],rS.prototype,"color",void 0),r_([(0,s.Cb)()],rS.prototype,"name",void 0),r_([(0,s.Cb)()],rS.prototype,"label",void 0),r_([(0,s.Cb)()],rS.prototype,"feeRange",void 0),r_([(0,s.Cb)({type:Boolean})],rS.prototype,"loading",void 0),r_([(0,s.Cb)()],rS.prototype,"onClick",void 0),rS=r_([(0,o.customElement)("w3m-onramp-provider-item")],rS);var rT=(0,a.iv)` 3702 wui-flex { 3703 background-color: var(--wui-color-gray-glass-005); 3704 } 3705 3706 a { 3707 text-decoration: none; 3708 color: var(--wui-color-fg-175); 3709 font-weight: 500; 3710 } 3711`;let rI=class extends a.oi{render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=i.OptionsController.state;return e||t?(0,a.dy)` 3712 <wui-flex .padding=${["m","s","s","s"]} justifyContent="center"> 3713 <wui-text color="fg-250" variant="small-400" align="center"> 3714 By connecting your wallet, you agree to our <br /> 3715 ${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()} 3716 </wui-text> 3717 </wui-flex> 3718 `:null}andTemplate(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=i.OptionsController.state;return e&&t?"and":""}termsTemplate(){let{termsConditionsUrl:e}=i.OptionsController.state;return e?(0,a.dy)`<a href=${e}>Terms of Service</a>`:null}privacyTemplate(){let{privacyPolicyUrl:e}=i.OptionsController.state;return e?(0,a.dy)`<a href=${e}>Privacy Policy</a>`:null}};rI.styles=[rT],rI=function(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}([(0,o.customElement)("w3m-legal-footer")],rI);var rR=(0,a.iv)` 3719 :host { 3720 display: block; 3721 padding: 0 var(--wui-spacing-xl) var(--wui-spacing-xl); 3722 } 3723`,rO=function(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};let rP=class extends a.oi{constructor(){super(...arguments),this.wallet=void 0}
3723render(){if(!this.wallet)return this.style.display="none",null;let{name:e,app_store:t,play_store:r,chrome_store:n,homepage:s}=this.wallet,c=i.j1.isMobile(),l=i.j1.isIos(),u=i.j1.isAndroid(),d=[t,r,s,n].filter(Boolean).length>1,h=o.UiHelperUtil.getTruncateString({string:e,charsStart:12,charsEnd:0,truncate:"end"});return d&&!c?(0,a.dy)` 3724 <wui-cta-button 3725 label=${`Don't have ${h}?`} 3726 buttonLabel="Get" 3727 @click=${()=>i.RouterController.push("Downloads",{wallet:this.wallet})} 3728 ></wui-cta-button> 3729 `:!d&&s?(0,a.dy)` 3730 <wui-cta-button 3731 label=${`Don't have ${h}?`} 3732 buttonLabel="Get" 3733 @click=${this.onHomePage.bind(this)} 3734 ></wui-cta-button> 3735 `:t&&l?(0,a.dy)` 3736 <wui-cta-button 3737 label=${`Don't have ${h}?`} 3738 buttonLabel="Get" 3739 @click=${this.onAppStore.bind(this)} 3740 ></wui-cta-button> 3741 `:r&&u?(0,a.dy)` 3742 <wui-cta-button 3743 label=${`Don't have ${h}?`} 3744 buttonLabel="Get" 3745 @click=${this.onPlayStore.bind(this)} 3746 ></wui-cta-button> 3747 `:(this.style.display="none",null)}onAppStore(){this.wallet?.app_store&&i.j1.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&i.j1.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&i.j1.openHref(this.wallet.homepage,"_blank")}};rP.styles=[rR],rO([(0,s.Cb)({type:Object})],rP.prototype,"wallet",void 0),rP=rO([(0,o.customElement)("w3m-mobile-download-links")],rP);var rN=(0,a.iv)` 3748 wui-flex { 3749 border-top: 1px solid var(--wui-color-gray-glass-005); 3750 } 3751 3752 a { 3753 text-decoration: none; 3754 color: var(--wui-color-fg-175); 3755 font-weight: 500; 3756 display: flex; 3757 align-items: center; 3758 justify-content: center; 3759 gap: var(--wui-spacing-3xs); 3760 } 3761`;let rM=class extends a.oi{render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=i.OptionsController.state;return e||t?(0,a.dy)` 3762 <wui-flex 3763 .padding=${["m","s","s","s"]} 3764 flexDirection="column" 3765 alignItems="center" 3766 justifyContent="center" 3767 gap="s" 3768 > 3769 <wui-text color="fg-250" variant="small-400" align="center"> 3770 We work with the best providers to give you the lowest fees and best support. More options 3771 coming soon! 3772 </wui-text> 3773 3774 ${this.howDoesItWorkTemplate()} 3775 </wui-flex> 3776 `:null}howDoesItWorkTemplate(){return(0,a.dy)` <wui-link @click=${this.onWhatIsBuy.bind(this)}> 3777 <wui-icon size="xs" color="accent-100" slot="iconLeft" name="helpCircle"></wui-icon> 3778 How does it work? 3779 </wui-link>`}onWhatIsBuy(){i.Xs.sendEvent({type:"track",event:"SELECT_WHAT_IS_A_BUY",properties:{isSmartAccount:i.AccountController.state.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}),i.RouterController.push("WhatIsABuy")}};rM.styles=[rN],rM=function(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}([(0,o.customElement)("w3m-onramp-providers-footer")],rM);var rD=(0,a.iv)` 3780 :host { 3781 display: block; 3782 position: absolute; 3783 opacity: 0; 3784 pointer-events: none; 3785 top: 11px; 3786 left: 50%; 3787 width: max-content; 3788 } 3789`,rB=function(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};let r$={loading:void 0,success:{backgroundColor:"success-100",iconColor:"success-100",icon:"checkmark"},error:{backgroundColor:"error-100",iconColor:"error-100",icon:"close"}},rU=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.open=i.SnackController.state.open,this.unsubscribe.push(i.SnackController.subscribeKey("open",e=>{this.open=e,this.onOpen()}))}disconnectedCallback(){clearTimeout(this.timeout),this.unsubscribe.forEach(e
3789=>e())}render(){let{message:e,variant:t}=i.SnackController.state,r=r$[t];return(0,a.dy)` 3790 <wui-snackbar 3791 message=${e} 3792 backgroundColor=${r?.backgroundColor} 3793 iconColor=${r?.iconColor} 3794 icon=${r?.icon} 3795 .loading=${"loading"===t} 3796 ></wui-snackbar> 3797 `}onOpen(){clearTimeout(this.timeout),this.open?(this.animate([{opacity:0,transform:"translateX(-50%) scale(0.85)"},{opacity:1,transform:"translateX(-50%) scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.timeout=setTimeout(()=>i.SnackController.hide(),2500)):this.animate([{opacity:1,transform:"translateX(-50%) scale(1)"},{opacity:0,transform:"translateX(-50%) scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"})}};rU.styles=rD,rB([(0,s.SB)()],rU.prototype,"open",void 0),rU=rB([(0,o.customElement)("w3m-snackbar")],rU);var rL=(0,a.iv)` 3798 wui-separator { 3799 margin: var(--wui-spacing-s) calc(var(--wui-spacing-s) * -1); 3800 width: calc(100% + var(--wui-spacing-s) * 2); 3801 } 3802 3803 wui-email-input { 3804 width: 100%; 3805 } 3806 3807 form { 3808 width: 100%; 3809 display: block; 3810 position: relative; 3811 } 3812 3813 wui-icon-link, 3814 wui-loading-spinner { 3815 position: absolute; 3816 top: 50%; 3817 transform: translateY(-50%); 3818 } 3819 3820 wui-icon-link { 3821 right: var(--wui-spacing-xs); 3822 } 3823 3824 wui-loading-spinner { 3825 right: var(--wui-spacing-m); 3826 } 3827`,rj=function(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};let rz=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.formRef=eh(),this.connectors=i.ConnectorController.state.connectors,this.email="",this.loading=!1,this.error="",this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}firstUpdated(){this.formRef.value?.addEventListener("keydown",e=>{"Enter"===e.key&&this.onSubmitEmail(e)})}render(){let e=this.connectors.find(e=>"AUTH"===e.type),t=this.connectors.length>1;return e?.email?(0,a.dy)` 3828 <form ${eg(this.formRef)} @submit=${this.onSubmitEmail.bind(this)}> 3829 <wui-email-input 3830 @focus=${this.onFocusEvent.bind(this)} 3831 .disabled=${this.loading} 3832 @inputChange=${this.onEmailInputChange.bind(this)} 3833 .errorMessage=${this.error} 3834 > 3835 </wui-email-input> 3836 3837 ${this.submitButtonTemplate()}${this.loadingTemplate()} 3838 <input type="submit" hidden /> 3839 </form> 3840 3841 ${e.socials||!t?null:(0,a.dy)`<wui-flex .padding=${["xxs","0","0","0"]}> 3842 <wui-separator text="or"></wui-separator> 3843 </wui-flex>`} 3844 `:null}submitButtonTemplate(){return!this.loading&&this.email.length>3?(0,a.dy)` 3845 <wui-icon-link 3846 size="sm" 3847 icon="chevronRight" 3848 iconcolor="accent-100" 3849 @click=${this.onSubmitEmail.bind(this)} 3850 > 3851 </wui-icon-link> 3852 `:null}loadingTemplate(){return this.loading?(0,a.dy)`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`:null}onEmailInputChange(e){this.email=e.detail.trim(),this.error=""}async onSubmitEmail(e){try{if(this.loading)return;this.loading=!0,e.preventDefault();let t=i.ConnectorController.getAuthConnector();if(!t)throw Error("w3m-email-login-widget: Auth connector not found");let{action:r}=await t.provider.connectEmail({email:this.email});i.Xs.sendEvent({type:"track",event:"EMAIL_SUBMITTED"}),"VERIFY_OTP"===r?(i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),i.RouterController.push("EmailVerifyOtp",{email:this.email})):"VERIFY_DEVICE"===r&&i.RouterController.push("EmailVerifyDevice",{email:this.email})}catch(t){let e=i.j1.parseError(t);e?.includes("Invalid email")?this.error="Invalid email. Try again.":i.SnackController.showError(t)}finally{this.loading=!1}}onFocusEvent(){i.Xs.sendEvent({type:"track",event:"EMAIL_LOGIN_SELECTED"})}};rz.styles=rL,rj([(0,s.SB)()],rz.prototype,"connectors",void 0),rj([(0,s.SB)()],rz.prototype,"email",void 0),rj([(0,s.SB)()],rz.prototype,"loading",void 0),rj([(0,s.SB)()],rz.prototype,"error",void 0),rz=rj([(0,o.customElement)("w3m-email-login-widget")],rz);var rF=(0,a.iv)` 3853 wui-flex { 3854 width: 100%; 3855 } 3856 3857 :host > wui-flex:first-child { 3858 transform: translateY(calc(var(--wui-spacing-xxs) * -1)); 3859 } 3860 3861 wui-icon-link { 3862 margin-right: calc(var(--wui-icon-box-size-md) * -1); 3863 } 3864 3865 wui-notice-card { 3866 margin-bottom: var(--wui-spacing-3xs); 3867 } 3868 3869 wui-list-item > wui-text { 3870 flex: 1; 3871 } 3872 3873 w3m-transactions-view { 3874 max-height: 200px; 3875 } 3876 3877 .tab-content-container { 3878 height: 300px; 3879 overflow-y: auto; 3880 overflow-x: hidden; 3881 scrollbar-width: none; 3882 } 3883 3884 .tab-content-container::-webkit-scrollbar {
3885 display: none; 3886 } 3887 3888 .account-button { 3889 width: auto; 3890 border: none; 3891 display: flex; 3892 align-items: center; 3893 justify-content: center; 3894 gap: var(--wui-spacing-s); 3895 height: 48px; 3896 padding: var(--wui-spacing-xs); 3897 padding-right: var(--wui-spacing-s); 3898 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); 3899 background-color: var(--wui-color-gray-glass-002); 3900 border-radius: 24px; 3901 transition: background-color 0.2s linear; 3902 } 3903 3904 .account-button:hover { 3905 background-color: var(--wui-color-gray-glass-005); 3906 } 3907 3908 .avatar-container { 3909 position: relative; 3910 } 3911 3912 wui-avatar.avatar { 3913 width: 32px; 3914 height: 32px; 3915 box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); 3916 } 3917 3918 wui-avatar.network-avatar { 3919 width: 16px; 3920 height: 16px; 3921 position: absolute; 3922 left: 100%; 3923 top: 100%; 3924 transform: translate(-75%, -75%); 3925 box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); 3926 } 3927 3928 .account-links { 3929 display: flex; 3930 justify-content: space-between; 3931 align-items: center; 3932 } 3933 3934 .account-links wui-flex { 3935 cursor: pointer; 3936 display: flex; 3937 align-items: center; 3938 justify-content: center; 3939 flex: 1; 3940 background: red; 3941 align-items: center; 3942 justify-content: center; 3943 height: 48px; 3944 padding: 10px; 3945 flex: 1 0 0; 3946 border-radius: var(--XS, 16px); 3947 border: 1px solid var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1)); 3948 background: var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1)); 3949 transition: 3950 background-color var(--wui-ease-out-power-1) var(--wui-duration-md), 3951 opacity var(--wui-ease-out-power-1) var(--wui-duration-md); 3952 will-change: background-color, opacity; 3953 } 3954 3955 .account-links wui-flex:hover { 3956 background: var(--dark-accent-glass-015, rgba(71, 161, 255, 0.15)); 3957 } 3958 3959 .account-links wui-flex wui-icon { 3960 width: var(--S, 20px); 3961 height: var(--S, 20px); 3962 } 3963 3964 .account-links wui-flex wui-icon svg path { 3965 stroke: #667dff; 3966 } 3967`,rH=function(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};let rq=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.address=i.AccountController.state.address,this.profileImage=i.AccountController.state.profileImage,this.profileName=i.AccountController.state.profileName,this.network=i.fB.state.caipNetwork,this.disconnecting=!1,this.balance=i.AccountController.state.balance,this.balanceSymbol=i.AccountController.state.balanceSymbol,this.unsubscribe.push(i.AccountController.subscribe(e=>{e.address?(this.address=e.address,this.profileImage=e.profileImage,this.profileName=e.profileName,this.balance=e.balance,this.balanceSymbol=e.balanceSymbol):this.disconnecting||i.SnackController.showError("Account not found")}),i.fB.subscribeKey("caipNetwork",e=>{e?.id&&(this.network=e)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!this.address)throw Error("w3m-account-view: No account provided");let e=i.fz.getNetworkImage(this.network);return(0,a.dy)`<wui-flex 3968 flexDirection="column" 3969 .padding=${["0","xl","m","xl"]} 3970 alignItems="center" 3971 gap="l" 3972 > 3973 ${i.RY.state.activeChain===Y.bq.CHAIN.EVM?this.multiAccountTemplate():this.singleAccountTemplate()} 3974 <wui-flex flexDirection="column" alignItems="center"> 3975 <wui-text variant="paragraph-500" color="fg-200"> 3976 ${i.j1.formatBalance(this.balance,this.balanceSymbol)} 3977 </wui-text> 3978 </wui-flex> 3979 ${this.explorerBtnTemplate()} 3980 </wui-flex> 3981 3982 <wui-flex flexDirection="column" gap="xs" .padding=${["0","s","s","s"]}> 3983 ${this.authCardTemplate()} <w3m-account-auth-button></w3m-account-auth-button> 3984 3985 <wui-list-item 3986 .variant=${e?"image":"icon"} 3987 iconVariant="overlay" 3988 icon="networkPlaceholder" 3989 imageSrc=${l(e)} 3990 ?chevron=${this.isAllowedNetworkSwitch()} 3991 @click=${this.onNetworks.bind(this)} 3992 data-testid="w3m-account-select-network" 3993 > 3994 <wui-text variant="paragraph-500" color="fg-100"> 3995 ${this.network?.name??"Unknown"} 3996 </wui-text> 3997 </wui-list-item> 3998 ${this.onrampTemplate()} ${this.swapsTemplate()} ${this.activityTemplate()} 3999 <wui-list-item 4000 variant="icon" 4001 iconVariant="overlay" 4002 icon="disconnect" 4003 ?chevron=${!1} 4004 .loading=${this.disconnecting} 4005 @click=${this.onDisconnect.bind(this)} 4006 data-testid="disconnect-button" 4007 > 4008 <wui-text variant="paragraph-500" color="fg-200">Disconnect</wui-text> 4009 </wui-list-item> 4010 </wui-flex>`}onrampTemplate(){let{enableOnramp:e}=i.OptionsController.state,t=i.RY.state.activeChain===Y.bq.CHAIN.SOLANA;return!e||t?null:(0,a.dy)` 4011 <wui-list-item 4012 data-testid="w3m-account-default-onramp-button" 4013 iconVariant="blue" 4014 icon="card" 4015 ?chevron=${!0} 4016 @click=${this.handleClickPay.bind(this)} 4017 > 4018 <wui-text variant="paragraph-500" color="fg-100">Buy crypto</wui-text> 4019 </wui-list-item> 4020 `}activityTemplate(){let e=i.RY.state.activeChain===Y.bq.CHAIN.SOLANA;return(0,a.dy)` <wui-list-item 4021 iconVariant="blue" 4022 icon="clock" 4023 iconSize="sm" 4024 ?chevron=${!e} 4025 ?disabled=${e} 4026 @click=${this.onTransactions.bind(this)} 4027 > 4028 <wui-text variant="paragraph-500" color="fg-100" ?disabled=${e}> Activity </wui-text> 4029 ${e?(0,a.dy)`<wui-tag variant="main">Coming soon</wui-tag>`:""} 4030 </wui-list-item>`}swapsTemplate(){let{enableSwaps:e}=i.OptionsController.state;return e?(0,a.dy)` 4031 <wui-list-item 4032 iconVariant="blue" 4033 icon="recycleHorizontal" 4034 ?chevron=${!0} 4035 @click=${this.handleClickSwap.bind(this)} 4036 > 4037 <wui-text variant="paragraph-500" color="fg-100">Swap</wui-text> 4038 </wui-list-item> 4039 `:null}authCardTemplate(){let e=i.MO.getConnectedConnector(),t=i.ConnectorController.getAuthConnector(),{origin:r}=location;return!t||"AUTH"!==e||r.includes(i.bq.SECURE_SITE)?null:(0,a.dy)` 4040 <wui-notice-card 4041 @click=${this.onGoToUpgradeView.bind(this)} 4042 label="Upgrade your wallet" 4043 description="Transition to a self-custodial wallet" 4044 icon="wallet" 4045 data-testid="w3m-wallet-upgrade-card" 4046 ></wui-notice-card> 4047 `}handleSwitchAccountsView(){i.RouterController.push("SwitchAddress")}handleClickPay(){i.RouterController.push("OnRampProviders")}handleClickSwap(){i.RouterController.push("Swap")}explorerBtnTemplate(){return i.AccountController.state.addressExplorerUrl?(0,a.dy)` 4048 <wui-button size="md" variant="neutral" @click=${this.onExplorer.bind(this)}> 4049 <wui-icon size="sm" color="inherit" slot="iconLeft" name="compass"></wui-icon> 4050 Block Explorer 4051 <wui-icon size="sm" color="inherit" slot="iconRight" name="externalLink"></wui-icon> 4052 </wui-button>
4052 4053 `:null}singleAccountTemplate(){return(0,a.dy)` 4054 <wui-avatar 4055 alt=${l(this.address)} 4056 address=${l(this.address)} 4057 imageSrc=${l(null===this.profileImage?void 0:this.profileImage)} 4058 ></wui-avatar> 4059 <wui-flex flexDirection="column" alignItems="center"> 4060 <wui-flex gap="3xs" alignItems="center" justifyContent="center"> 4061 <wui-text variant="large-600" color="fg-100"> 4062 ${this.profileName?o.UiHelperUtil.getTruncateString({string:this.profileName,charsStart:20,charsEnd:0,truncate:"end"}):o.UiHelperUtil.getTruncateString({string:this.address?this.address:"",charsStart:4,charsEnd:4,truncate:"middle"})} 4063 </wui-text> 4064 <wui-icon-link 4065 size="md" 4066 icon="copy" 4067 iconColor="fg-200" 4068 @click=${this.onCopyAddress} 4069 ></wui-icon-link> </wui-flex 4070 ></wui-flex> 4071 `}multiAccountTemplate(){if(!this.address)throw Error("w3m-account-view: No account provided");let e=i.AccountController.state.allAccounts?.find(e=>e.address===this.address),t=i.AccountController.state.addressLabels.get(this.address);return(0,a.dy)` 4072 <wui-profile-button-v2 4073 .onProfileClick=${this.handleSwitchAccountsView.bind(this)} 4074 address=${l(this.address)} 4075 icon="${e?.type===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT&&i.RY.state.activeChain===Y.bq.CHAIN.EVM?"lightbulb":"mail"}" 4076 avatarSrc=${l(this.profileImage?this.profileImage:void 0)} 4077 profileName=${l(t||this.profileName)} 4078 .onCopyClick=${this.onCopyAddress.bind(this)} 4079 ></wui-profile-button-v2> 4080 `}isAllowedNetworkSwitch(){let e=i.fB.getRequestedCaipNetworks(),t=!!e&&e.length>1,r=e?.find(({id:e})=>e===this.network?.id);return t||!r}onCopyAddress(){try{this.address&&(i.j1.copyToClopboard(this.address),i.SnackController.showSuccess("Address copied"))}catch{i.SnackController.showError("Failed to copy")}}onNetworks(){this.isAllowedNetworkSwitch()&&(i.Xs.sendEvent({type:"track",event:"CLICK_NETWORKS"}),i.RouterController.push("Networks"))}onTransactions(){i.Xs.sendEvent({type:"track",event:"CLICK_TRANSACTIONS",properties:{isSmartAccount:i.AccountController.state.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}),i.RouterController.push("Transactions")}async onDisconnect(){try{this.disconnecting=!0,await i.ConnectionController.disconnect(),i.Xs.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),i.IN.close()}catch{i.Xs.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),i.SnackController.showError("Failed to disconnect")}finally{this.disconnecting=!1}}onExplorer(){let e=i.AccountController.state.addressExplorerUrl;e&&i.j1.openHref(e,"_blank")}onGoToUpgradeView(){i.Xs.sendEvent({type:"track",event:"EMAIL_UPGRADE_FROM_MODAL"}),i.RouterController.push("UpgradeEmailWallet")}};rq.styles=rF,rH([(0,s.SB)()],rq.prototype,"address",void 0),rH([(0,s.SB)()],rq.prototype,"profileImage",void 0),rH([(0,s.SB)()],rq.prototype,"profileName",void 0),rH([(0,s.SB)()],rq.prototype,"network",void 0),rH([(0,s.SB)()],rq.prototype,"disconnecting",void 0),rH([(0,s.SB)()],rq.prototype,"balance",void 0),rH([(0,s.SB)()],rq.prototype,"balanceSymbol",void 0),rq=rH([(0,o.customElement)("w3m-account-default-widget")],rq);var rW=(0,a.iv)` 4081 wui-flex { 4082 width: 100%; 4083 } 4084 4085 wui-promo { 4086 position: absolute; 4087 top: -32px; 4088 } 4089 4090 wui-profile-button { 4091 margin-top: calc(-1 * var(--wui-spacing-2l)); 4092 } 4093 4094 wui-promo + wui-profile-button { 4095 margin-top: var(--wui-spacing-2l); 4096 } 4097 4098 wui-tabs { 4099 width: 100%; 4100 } 4101 4102 .contentContainer { 4103 height: 280px; 4104 } 4105 4106 .contentContainer > wui-icon-box { 4107 width: 40px; 4108 height: 40px; 4109 border-radius: var(--wui-border-radius-xxs); 4110 } 4111 4112 .contentContainer > .textContent { 4113 width: 65%; 4114 } 4115`,rV=function(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};let rZ=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.address=i.AccountController.state.address,this.profileImage=i.AccountController.state.profileImage,this.profileName=i.AccountController.state.profileName,this.smartAccountDeployed=i.AccountController.state.smartAccountDeployed,this.network=i.fB.state.caipNetwork,this.currentTab=i.AccountController.state.currentTab,this.tokenBalance=i.AccountController.state.tokenBalance,this.preferredAccountType=i.AccountController.state.preferredAccountType,this.unsubscribe.push(i.AccountController.subscribe(e=>{e.address?(this.address=e.address,this.profileImage=e.profileImage,this.profileName=e.profileName,this.currentTab=e.currentTab,this.tokenBalance=e.tokenBalance,this.smartAccountDeployed=e.smartAccountDeployed,this.preferredAccountType=e.preferredAccountType):i.IN.close()}),i.fB.subscribeKey("caipNetwork",e=>{this.network=e})),this.watchSwapValues()}
4115disconnectedCallback(){this.unsubscribe.forEach(e=>e()),clearInterval(this.watchTokenBalance)}firstUpdated(){i.AccountController.fetchTokenBalance()}render(){if(!this.address)throw Error("w3m-account-view: No account provided");let e=i.fz.getNetworkImage(this.network);return(0,a.dy)`<wui-flex 4116 flexDirection="column" 4117 .padding=${["0","xl","m","xl"]} 4118 alignItems="center" 4119 gap="m" 4120 > 4121 ${this.network&&(0,a.dy)`<wui-network-icon .network=${this.network}></wui-network-icon>`} 4122 ${this.activateAccountTemplate()} 4123 <wui-profile-button 4124 @click=${this.onProfileButtonClick.bind(this)} 4125 address=${l(this.address)} 4126 networkSrc=${l(e)} 4127 icon="chevronBottom" 4128 avatarSrc=${l(this.profileImage?this.profileImage:void 0)} 4129 profileName=${this.profileName} 4130 data-testid="w3m-profile-button" 4131 ></wui-profile-button> 4132 ${this.tokenBalanceTemplate()} 4133 <wui-flex gap="s"> 4134 <w3m-tooltip-trigger text="Buy"> 4135 <wui-icon-button 4136 data-testid="wallet-features-onramp-button" 4137 @click=${this.onBuyClick.bind(this)} 4138 icon="card" 4139 ></wui-icon-button> 4140 </w3m-tooltip-trigger> 4141 ${this.swapsTemplate()} 4142 <w3m-tooltip-trigger text="Receive"> 4143 <wui-icon-button 4144 data-testid="wallet-features-receive-button" 4145 @click=${this.onReceiveClick.bind(this)} 4146 icon="arrowBottomCircle" 4147 > 4148 </wui-icon-button> 4149 </w3m-tooltip-trigger> 4150 <w3m-tooltip-trigger text="Send"> 4151 <wui-icon-button 4152 data-testid="wallet-features-send-button" 4153 @click=${this.onSendClick.bind(this)} 4154 icon="send" 4155 ></wui-icon-button> 4156 </w3m-tooltip-trigger> 4157 </wui-flex> 4158 4159 <wui-tabs 4160 .onTabChange=${this.onTabChange.bind(this)} 4161 .activeTab=${this.currentTab} 4162 localTabWidth=${i.j1.isMobile()&&window.innerWidth<430?`${(window.innerWidth-48)/3}px`:"104px"} 4163 .tabs=${C.ACCOUNT_TABS} 4164 ></wui-tabs> 4165 ${this.listContentTemplate()} 4166 </wui-flex>`}swapsTemplate(){let{enableSwaps:e}=i.OptionsController.state;return e?(0,a.dy)` 4167 <w3m-tooltip-trigger text="Swap"> 4168 <wui-icon-button 4169 data-testid="wallet-features-swap-button" 4170 @click=${this.onSwapClick.bind(this)} 4171 icon="recycleHorizontal" 4172 > 4173 </wui-icon-button> 4174 </w3m-tooltip-trigger> 4175 `:null}watchSwapValues(){this.watchTokenBalance=setInterval(()=>i.AccountController.fetchTokenBalance(),1e4)}listContentTemplate(){return 0===this.currentTab?(0,a.dy)`<w3m-account-tokens-widget></w3m-account-tokens-widget>`:1===this.currentTab?(0,a.dy)`<w3m-account-nfts-widget></w3m-account-nfts-widget>`:2===this.currentTab?(0,a.dy)`<w3m-account-activity-widget></w3m-account-activity-widget>`:(0,a.dy)`<w3m-account-tokens-widget></w3m-account-tokens-widget>`}tokenBalanceTemplate(){if(this.tokenBalance&&this.tokenBalance?.length>=0){let e=i.j1.calculateBalance(this.tokenBalance),{dollars:t="0",pennies:r="00"}=i.j1.formatTokenBalance(e);return(0,a.dy)`<wui-balance dollars=${t} pennies=${r}></wui-balance>`}return(0,a.dy)`<wui-balance dollars="0" pennies="00"></wui-balance>`}activateAccountTemplate(){return!i.fB.checkIfSmartAccountEnabled()||this.preferredAccountType!==I.y_.ACCOUNT_TYPES.EOA||this.smartAccountDeployed?null:(0,a.dy)` <wui-promo 4176 text=${"Activate your account"} 4177 @click=${this.onUpdateToSmartAccount.bind(this)} 4178 data-testid="activate-smart-account-promo" 4179 ></wui-promo>`}onTabChange(e){i.AccountController.setCurrentTab(e)}onProfileButtonClick(){i.RouterController.push("Profile")}onBuyClick(){i.RouterController.push("OnRampProviders")}onSwapClick(){this.network?.id&&!i.bq.SWAP_SUPPORTED_NETWORKS.includes(this.network?.id)?i.RouterController.push("UnsupportedChain",{swapUnsupportedChain:!0}):(i.Xs.sendEvent({type:"track",event:"OPEN_SWAP",properties:{network:this.network?.id||"",isSmartAccount:i.AccountController.state.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}),i.RouterController.push("Swap"))}onReceiveClick(){i.RouterController.push("WalletReceive")}onSendClick(){i.Xs.sendEvent({type:"track",event:"OPEN_SEND",properties:{network:this.network?.id||"",isSmartAccount:i.AccountController.state.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}),i.RouterController.push("WalletSend")}onUpdateToSmartAccount(){i.RouterController.push("UpgradeToSmartAccount")}};rZ.styles=rW,rV([(0,s.SB)()],rZ.prototype,"watchTokenBalance",void 0),rV([(0,s.SB)()],rZ.prototype,"address",void 0),rV([(0,s.SB)()],rZ.prototype,"profileImage",void 0),rV([(0,s.SB)()],rZ.prototype,"profileName",void 0),rV([(0,s.SB)()],rZ.prototype,"smartAccountDeployed",void 0),rV([(0,s.SB)()],rZ.prototype,"network",void 0),rV([(0,s.SB)()],rZ.prototype,"currentTab",void 0),rV([(0,s.SB)()],rZ.prototype,"tokenBalance",void 0),rV([(0,s.SB)()],rZ.prototype,"preferredAccountType",void 0),rZ=rV([(0,o.customElement)("w3m-account-wallet-features-widget")],rZ);var rG=(0,a.iv)` 4180 :host { 4181 width: 100%; 4182 max-height: 280px; 4183 overflow: scroll; 4184 scrollbar-width: none; 4185 } 4186 4187 :host::-webkit-scrollbar {
4188 display: none; 4189 } 4190`;let rK=class extends a.oi{render(){return(0,a.dy)`<w3m-activity-list page="account"></w3m-activity-list>`}};rK.styles=rG,rK=function(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}([(0,o.customElement)("w3m-account-activity-widget")],rK);var rY=(0,a.iv)` 4191 .contentContainer { 4192 height: 280px; 4193 } 4194 4195 .contentContainer > wui-icon-box { 4196 width: 40px; 4197 height: 40px; 4198 border-radius: var(--wui-border-radius-xxs); 4199 } 4200 4201 .contentContainer > .textContent { 4202 width: 65%; 4203 } 4204`;let rQ=class extends a.oi{render(){return(0,a.dy)`${this.nftTemplate()}`}nftTemplate(){return(0,a.dy)` <wui-flex 4205 class="contentContainer" 4206 alignItems="center" 4207 justifyContent="center" 4208 flexDirection="column" 4209 gap="l" 4210 > 4211 <wui-icon-box 4212 icon="wallet" 4213 size="inherit" 4214 iconColor="fg-200" 4215 backgroundColor="fg-200" 4216 iconSize="lg" 4217 ></wui-icon-box> 4218 <wui-flex 4219 class="textContent" 4220 gap="xs" 4221 flexDirection="column" 4222 justifyContent="center" 4223 flexDirection="column" 4224 > 4225 <wui-text variant="paragraph-500" align="center" color="fg-100">Coming soon</wui-text> 4226 <wui-text variant="small-400" align="center" color="fg-200" 4227 >Stay tuned for our upcoming NFT feature</wui-text 4228 > 4229 </wui-flex> 4230 <wui-link @click=${this.onReceiveClick.bind(this)}>Receive funds</wui-link> 4231 </wui-flex>`}onReceiveClick(){i.RouterController.push("WalletReceive")}};rQ.styles=rY,rQ=function(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}([(0,o.customElement)("w3m-account-nfts-widget")],rQ);var rJ=(0,a.iv)` 4232 :host { 4233 width: 100%; 4234 } 4235 4236 wui-flex { 4237 width: 100%; 4238 } 4239 4240 .contentContainer { 4241 max-height: 280px; 4242 overflow: scroll; 4243 scrollbar-width: none; 4244 } 4245 4246 .contentContainer::-webkit-scrollbar {
4247 display: none; 4248 } 4249`,rX=function(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};let r0=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.tokenBalance=i.AccountController.state.tokenBalance,this.unsubscribe.push(i.AccountController.subscribe(e=>{this.tokenBalance=e.tokenBalance}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.dy)`${this.tokenTemplate()}`}tokenTemplate(){return this.tokenBalance&&this.tokenBalance?.length>0?(0,a.dy)`<wui-flex class="contentContainer" flexDirection="column" gap="xs"> 4250 ${this.tokenItemTemplate()} 4251 </wui-flex>`:(0,a.dy)` <wui-flex flexDirection="column" gap="xs" 4252 ><wui-list-description 4253 @click=${this.onBuyClick.bind(this)} 4254 text="Buy Crypto" 4255 description="Easy with card or bank account" 4256 icon="card" 4257 iconColor="success-100" 4258 iconBackgroundColor="success-100" 4259 tag="popular" 4260 ></wui-list-description 4261 ><wui-list-description 4262 @click=${this.onReceiveClick.bind(this)} 4263 text="Receive funds" 4264 description="Transfer tokens on your wallet" 4265 icon="arrowBottomCircle" 4266 iconColor="fg-200" 4267 iconBackgroundColor="fg-200" 4268 ></wui-list-description 4269 ></wui-flex>`}tokenItemTemplate(){return this.tokenBalance?.map(e=>a.dy`<wui-list-token 4270 tokenName=${e.name} 4271 tokenImageUrl=${e.iconUrl} 4272 tokenAmount=${e.quantity.numeric} 4273 tokenValue=${e.value} 4274 tokenCurrency=${e.symbol} 4275 ></wui-list-token>`)}onReceiveClick(){i.RouterController.push("WalletReceive")}onBuyClick(){i.Xs.sendEvent({type:"track",event:"SELECT_BUY_CRYPTO",properties:{isSmartAccount:i.AccountController.state.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}),i.RouterController.push("OnRampProviders")}};r0.styles=rJ,rX([(0,s.SB)()],r0.prototype,"tokenBalance",void 0),r0=rX([(0,o.customElement)("w3m-account-tokens-widget")],r0);var r1=(0,a.iv)` 4276 :host { 4277 min-height: 100%; 4278 } 4279 4280 .group-container[last-group='true'] { 4281 padding-bottom: var(--wui-spacing-m); 4282 } 4283 4284 .contentContainer { 4285 height: 280px; 4286 } 4287 4288 .contentContainer > wui-icon-box { 4289 width: 40px; 4290 height: 40px; 4291 border-radius: var(--wui-border-radius-xxs); 4292 } 4293 4294 .contentContainer > .textContent { 4295 width: 65%; 4296 } 4297 4298 .emptyContainer { 4299 height: 100%; 4300 } 4301`,r2=function(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};let r3="last-transaction",r5=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.page="activity",this.isSolana=i.RY.state.activeChain===Y.bq.CHAIN.SOLANA,this.address=i.AccountController.state.address,this.transactionsByYear=i.sl.state.transactionsByYear,this.loading=i.sl.state.loading,this.empty=i.sl.state.empty,this.next=i.sl.state.next,i.sl.clearCursor(),this.unsubscribe.push(i.RY.subscribeKey("activeChain",e=>{this.isSolana=e===Y.bq.CHAIN.SOLANA}),i.AccountController.subscribe(e=>{e.isConnected&&this.address!==e.address&&(this.address=e.address,i.sl.resetTransactions(),i.sl.fetchTransactions(e.address))}),i.fB.subscribeKey("caipNetwork",()=>{this.updateTransactionView()}),i.sl.subscribe(e=>{this.transactionsByYear=e.transactionsByYear,this.loading=e.loading,this.empty=e.empty,this.next=e.next}))}firstUpdated(){if(this.isSolana){this.loading=!1,this.empty=!0;return}this.updateTransactionView(),this.createPaginationObserver()}updated(){this.setPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.dy)` ${this.empty?null:this.templateTransactionsByYear()} 4302 ${this.loading?this.templateLoading():null} 4303 ${!this.loading&&this.empty?this.templateEmpty():null}`}updateTransactionView(){let e=i.fB.state.caipNetwork?.id;i.sl.state.lastNetworkInView!==e&&(i.sl.resetTransactions(),i.sl.fetchTransactions(this.address)),i.sl.setLastNetworkInView(e)}templateTransactionsByYear(){return Object.keys(this.transactionsByYear).sort().reverse().map(e=>{let t=parseInt(e,10),r=Array(12).fill(null).map((e,r)=>({groupTitle:o.TransactionUtil.getTransactionGroupTitle(t,r),transactions:this.transactionsByYear[t]?.[r]})).filter(({transactions:e})=>e).reverse();return r.map(({groupTitle:e,transactions:t},n)=>{let i=n===r.length-1;return t?(0,a.dy)` 4304 <wui-flex 4305 flexDirection="column" 4306 class="group-container" 4307 last-group="${i?"true":"false"}" 4308 > 4309 <wui-flex 4310 alignItems="center" 4311 flexDirection="row" 4312 .padding=${["xs","s","s","s"]} 4313 > 4314 <wui-text variant="paragraph-500" color="fg-200">${e}</wui-text> 4315 </wui-flex> 4316 <wui-flex flexDirection="column" gap="xs"> 4317 ${this.templateTransactions(t,i)} 4318 </wui-flex> 4319 </wui-flex> 4320 `:null})})}templateRenderTransaction(e,t){let{date:r,descriptions:n,direction:i,isAllNFT:s,images:c,status:l,transfers:u,type:d}=this.getTransactionListItemProps(e),h=u?.length>1;return u?.length!==2||s?h?u.map((e,n)=>{let i=o.TransactionUtil.getTransferDescription(e),s=t&&n===u.length-1;return(0,a.dy)` <wui-transaction-list-item 4321 date=${r} 4322 direction=${e.direction} 4323 id=${s&&this.next?r3:""} 4324 status=${l} 4325 type=${d} 4326 .onlyDirectionIcon=${!0} 4327 .images=${[c[n]]} 4328 .descriptions=${[i]} 4329 ></wui-transaction-list-item>`}):(0,a.dy)` 4330 <wui-transaction-list-item 4331 date=${r} 4332 .direction=${i} 4333 id=${t&&this.next?r3:""} 4334 status=${l} 4335 type=${d} 4336 .images=${c} 4337 .descriptions=${n} 4338 ></wui-transaction-list-item> 4339 `:(0,a.dy)` 4340 <wui-transaction-list-item 4341 date=${r} 4342 .direction=${i} 4343 id=${t&&this.next?r3:""} 4344 status=${l} 4345 type=${d} 4346 .images=${c} 4347 .descriptions=${n} 4348 ></wui-transaction-list-item> 4349 `}templateTransactions(e,t){return e.map((r,n)=>{let i=t&&n===e.length-1;return(0,a.dy)`${this.templateRenderTransaction(r,i)}`})}emptyStateActivity(){let e=(0,a.dy)` 4350 <wui-text align="center" variant="paragraph-500" color="fg-100" 4351 >Transaction history is coming soon!</wui-text 4352 > 4353 `,t=(0,a.dy)` <wui-text align="center" variant="paragraph-500" color="fg-100" 4354 >No Transactions yet</wui-text 4355 > 4356 <wui-text align="center" variant="small-500" color="fg-200" 4357 >Start trading on dApps <br /> 4358 to grow your wallet!</wui-text 4359 >`;return(0,a.dy)`<wui-flex 4360 class="emptyContainer" 4361 flexGrow="1" 4362 flexDirection="column" 4363 justifyContent="center" 4364 alignItems="center" 4365 .padding=${["3xl","xl","3xl","xl"]} 4366 gap="xl" 4367 > 4368 <wui-icon-box 4369 backgroundColor="gray-glass-005" 4370 background="gray" 4371 iconColor="fg-200" 4372 icon="wallet" 4373 size="lg" 4374 ?border=${!0} 4375 borderColor="wui-color-bg-125" 4376 ></wui-icon-box> 4377 <wui-flex flexDirection="column" alignItems="center" gap="xs"> 4378 ${this.isSolana?e:t} 4379 </wui-flex> 4380 </wui-flex>`}emptyStateAccount(){let e=(0,a.dy)` 4381 <wui-text variant="paragraph-500" align="center" color="fg-100" 4382 >Transaction history is coming soon!</wui-text 4383 > 4384 `,t=(0,a.dy)` <wui-text variant="paragraph-500" align="center" color="fg-100" 4385 >No activity yet</wui-text 4386 > 4387 <wui-text variant="small-400" align="center" color="fg-200" 4388 >Your next transactions will appear here</wui-text 4389 >`;return(0,a.dy)`<wui-flex 4390 class="contentContainer" 4391 alignItems="center" 4392 justifyContent="center" 4393 flexDirection="column" 4394 gap="l" 4395 > 4396 <wui-icon-box 4397 icon="swapHorizontal" 4398 size="inherit" 4399 iconColor="fg-200" 4400 backgroundColor="fg-200" 4401 iconSize="lg" 4402 ></wui-icon-box> 4403 <wui-flex 4404 class="textContent" 4405 gap="xs" 4406 flexDirection="column" 4407 justifyContent="center" 4408 flexDirection="column" 4409 > 4410 ${this.isSolana?e:t} 4411 </wui-flex> 4412 <wui-link @click=${this.onReceiveClick.bind(this)}>Trade</wui-link> 4413 </wui-flex>`}templateEmpty(){return"account"===this.page?(0,a.dy)`${this.emptyStateAccount()}`:(0,a.dy)`${this.emptyStateActivity()}`}templateLoading(){return"activity"===this.page?Array(7).fill((0,a.dy)` <wui-transaction-list-item-loader></wui-transaction-list-item-loader> `).map(e=>e):null}onReceiveClick(){i.RouterController.push("WalletReceive")}createPaginationObserver(){let{projectId:e}=i.OptionsController.state;this.paginationObserver=new IntersectionObserver(([t])=>{t?.isIntersecting&&!this.loading&&(i.sl.fetchTransactions(this.address),i.Xs.sendEvent({type:"track",event:"LOAD_MORE_TRANSACTIONS",properties:{address:this.address,projectId:e,cursor:this.next,isSmartAccount:i.AccountController.state.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}))},{}),this.setPaginationObserver()}setPaginationObserver(){this.paginationObserver?.disconnect();let e=this.shadowRoot?.querySelector(`#${r3}`);e&&this.paginationObserver?.observe(e)}getTransactionListItemProps(e){let t=Y.Em.formatDate(e?.metadata?.minedAt),r=o.TransactionUtil.getTransactionDescriptions(e),n=e?.transfers,i=e?.transfers?.[0],a=!!i&&e?.transfers?.every(e=>!!e.nft_info),s=o.TransactionUtil.getTransactionImages(n);return{date:t,direction:i?.direction,descriptions:r,isAllNFT:a,images:s,status:e.metadata?.status,transfers:n,type:e.metadata?.operationType}}};r5.styles=r1,r2([(0,s.Cb)()],r5.prototype,"page",void 0),r2([(0,s.SB)()],r5.prototype,"isSolana",void 0),r2([(0,s.SB)()],r5.prototype,"address",void 0),r2([(0,s.SB)()],r5.prototype,"transactionsByYear",void 0),r2([(0,s.SB)()],r5.prototype,"loading",void 0),r2([(0,s.SB)()],r5.prototype,"empty",void 0),r2([(0,s.SB)()],r5.prototype,"next",void 0),r5=r2([(0,o.customElement)("w3m-activity-list")],r5);var r4=(0,a.iv)` 4414 :host { 4415 width: 100%; 4416 height: 100px; 4417 border-radius: var(--wui-border-radius-s); 4418 border: 1px solid var(--wui-color-gray-glass-002); 4419 background-color: var(--wui-color-gray-glass-002); 4420 transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg); 4421 will-change: background-color; 4422 } 4423 4424 :host(:hover) { 4425 background-color: var(--wui-color-gray-glass-005); 4426 } 4427 4428 wui-flex { 4429 width: 100%; 4430 height: fit-content; 4431 } 4432 4433 wui-button { 4434 width: 100%; 4435 display: flex; 4436 justify-content: flex-end; 4437 } 4438 4439 wui-input-amount { 4440 mask-image: linear-gradient( 4441 270deg, 4442 transparent 0px, 4443 transparent 8px, 4444 black 24px, 4445 black 25px, 4446 black 32px, 4447 black 100% 4448 ); 4449 } 4450 4451 .totalValue { 4452 width: 100%; 4453 } 4454`,r6=function(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};let r8=class extends a.oi{render(){return(0,a.dy)` <wui-flex 4455 flexDirection="column" 4456 gap="4xs" 4457 .padding=${["xl","s","l","l"]} 4458 > 4459 <wui-flex alignItems="center"> 4460 <wui-input-amount 4461 @inputChange=${this.onInputChange.bind(this)} 4462 ?disabled=${!this.token} 4463 .value=${this.sendTokenAmount?String(this.sendTokenAmount):""} 4464 ></wui-input-amount> 4465 ${this.buttonTemplate()} 4466 </wui-flex> 4467 <wui-flex alignItems="center" justifyContent="space-between"> 4468 ${this.sendValueTemplate()} 4469 <wui-flex alignItems="center" gap="4xs" justifyContent="flex-end"> 4470 ${this.maxAmountTemplate()} ${this.actionTemplate()} 4471 </wui-flex> 4472 </wui-flex> 4473 </wui-flex>`}buttonTemplate(){return this.token?(0,a.dy)`<wui-token-button 4474 text=${this.token.symbol} 4475 imageSrc=${this.token.iconUrl} 4476 @click=${this.handleSelectButtonClick.bind(this)} 4477 > 4478 </wui-token-button>
4478`:(0,a.dy)`<wui-button 4479 size="md" 4480 variant="accent" 4481 @click=${this.handleSelectButtonClick.bind(this)} 4482 >Select token</wui-button 4483 >`}handleSelectButtonClick(){i.RouterController.push("WalletSendSelectToken")}sendValueTemplate(){if(this.token&&this.sendTokenAmount){let e=this.token.price*this.sendTokenAmount;return(0,a.dy)`<wui-text class="totalValue" variant="small-400" color="fg-200" 4484 >${e?`$${o.UiHelperUtil.formatNumberToLocalString(e,2)}`:"Incorrect value"}</wui-text 4485 >`}return null}maxAmountTemplate(){return this.token?this.sendTokenAmount&&this.sendTokenAmount>Number(this.token.quantity.numeric)?(0,a.dy)` <wui-text variant="small-400" color="error-100"> 4486 ${o.UiHelperUtil.roundNumber(Number(this.token.quantity.numeric),6,5)} 4487 </wui-text>`:(0,a.dy)` <wui-text variant="small-400" color="fg-200"> 4488 ${o.UiHelperUtil.roundNumber(Number(this.token.quantity.numeric),6,5)} 4489 </wui-text>`:null}actionTemplate(){return this.token?this.sendTokenAmount&&this.sendTokenAmount>Number(this.token.quantity.numeric)?(0,a.dy)`<wui-link @click=${this.onBuyClick.bind(this)}>Buy</wui-link>`:(0,a.dy)`<wui-link @click=${this.onMaxClick.bind(this)}>Max</wui-link>`:null}onInputChange(e){i.Si.setTokenAmount(e.detail)}onMaxClick(){if(this.token&&this.gasPriceInUSD){let e=Y.C6.bigNumber(this.gasPriceInUSD.toFixed(5)).dividedBy(this.token.price),t=void 0===this.token.address?Y.C6.bigNumber(this.token.quantity.numeric).minus(e):Y.C6.bigNumber(this.token.quantity.numeric);i.Si.setTokenAmount(Number(t.toFixed(20)))}}onBuyClick(){i.RouterController.push("OnRampProviders")}};r8.styles=r4,r6([(0,s.Cb)({type:Object})],r8.prototype,"token",void 0),r6([(0,s.Cb)({type:Number})],r8.prototype,"sendTokenAmount",void 0),r6([(0,s.Cb)({type:Number})],r8.prototype,"gasPriceInUSD",void 0),r8=r6([(0,o.customElement)("w3m-input-token")],r8);var r9=(0,a.iv)` 4490 :host { 4491 width: 100%; 4492 height: 100px; 4493 border-radius: var(--wui-border-radius-s); 4494 border: 1px solid var(--wui-color-gray-glass-002); 4495 background-color: var(--wui-color-gray-glass-002); 4496 transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg); 4497 will-change: background-color; 4498 position: relative; 4499 } 4500 4501 :host(:hover) { 4502 background-color: var(--wui-color-gray-glass-005); 4503 } 4504 4505 wui-flex { 4506 width: 100%; 4507 height: fit-content; 4508 } 4509 4510 wui-button { 4511 display: ruby; 4512 color: var(--wui-color-fg-100); 4513 margin: 0 var(--wui-spacing-xs); 4514 } 4515 4516 .instruction { 4517 position: absolute; 4518 top: 50%; 4519 transform: translateY(-50%); 4520 } 4521 4522 .paste { 4523 display: inline-flex; 4524 } 4525 4526 textarea { 4527 background: transparent; 4528 width: 100%; 4529 font-family: var(--w3m-font-family); 4530 font-size: var(--wui-font-size-medium); 4531 font-style: normal; 4532 font-weight: var(--wui-font-weight-light); 4533 line-height: 130%; 4534 letter-spacing: var(--wui-letter-spacing-medium); 4535 color: var(--wui-color-fg-100); 4536 caret-color: var(--wui-color-accent-100); 4537 box-sizing: border-box; 4538 -webkit-appearance: none; 4539 -moz-appearance: textfield; 4540 padding: 0px; 4541 border: none; 4542 outline: none; 4543 appearance: none; 4544 resize: none; 4545 overflow: hidden; 4546 } 4547`,r7=function(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};let ne=class extends a.oi{constructor(){super(...arguments),this.inputElementRef=eh(),this.instructionElementRef=eh(),this.instructionHidden=!!this.value,this.pasting=!1,this.onDebouncedSearch=i.j1.debounce(async e=>{let t=await i.ConnectionController.getEnsAddress(e);if(i.Si.setLoading(!1),t){i.Si.setReceiverProfileName(e),i.Si.setReceiverAddress(t);let r=await i.ConnectionController.getEnsAvatar(e);r&&i.Si.setReceiverProfileImageUrl(r)}else i.Si.setReceiverAddress(e),i.Si.setReceiverProfileName(void 0),i.Si.setReceiverProfileImageUrl(void 0)})}firstUpdated(){this.value&&(this.instructionHidden=!0),this.checkHidden()}render(){return(0,a.dy)` <wui-flex 4548 @click=${this.onBoxClick.bind(this)} 4549 flexDirection="column" 4550 justifyContent="center" 4551 gap="4xs" 4552 .padding=${["2xl","l","xl","l"]} 4553 > 4554 <wui-text 4555 ${eg(this.instructionElementRef)} 4556 class="instruction" 4557 color="fg-300" 4558 variant="medium-400" 4559 > 4560 Type or 4561 <wui-button 4562 class="paste" 4563 size="md" 4564 variant="neutral" 4565 iconLeft="copy" 4566 @click=${this.onPasteClick.bind(this)} 4567 > 4568 <wui-icon size="sm" color="inherit" slot="iconLeft" name="copy"></wui-icon> 4569 Paste 4570 </wui-button>
4570 4571 address 4572 </wui-text> 4573 <textarea 4574 spellcheck="false" 4575 ?disabled=${!this.instructionHidden} 4576 ${eg(this.inputElementRef)} 4577 @input=${this.onInputChange.bind(this)} 4578 @blur=${this.onBlur.bind(this)} 4579 .value=${this.value??""} 4580 autocomplete="off" 4581 > 4582${this.value??""}</textarea 4583 > 4584 </wui-flex>`}async focusInput(){this.instructionElementRef.value&&(this.instructionHidden=!0,await this.toggleInstructionFocus(!1),this.instructionElementRef.value.style.pointerEvents="none",this.inputElementRef.value?.focus(),this.inputElementRef.value&&(this.inputElementRef.value.selectionStart=this.inputElementRef.value.selectionEnd=this.inputElementRef.value.value.length))}async focusInstruction(){this.instructionElementRef.value&&(this.instructionHidden=!1,await this.toggleInstructionFocus(!0),this.instructionElementRef.value.style.pointerEvents="auto",this.inputElementRef.value?.blur())}async toggleInstructionFocus(e){this.instructionElementRef.value&&await this.instructionElementRef.value.animate([{opacity:e?0:1},{opacity:e?1:0}],{duration:100,easing:"ease",fill:"forwards"}).finished}onBoxClick(){this.value||this.instructionHidden||this.focusInput()}onBlur(){this.value||!this.instructionHidden||this.pasting||this.focusInstruction()}checkHidden(){this.instructionHidden&&this.focusInput()}async onPasteClick(){this.pasting=!0;let e=await navigator.clipboard.readText();i.Si.setReceiverAddress(e),this.focusInput()}onInputChange(e){this.pasting=!1;let t=e.target;t.value&&!this.instructionHidden&&this.focusInput(),i.Si.setLoading(!0),this.onDebouncedSearch(t.value)}};ne.styles=r9,r7([(0,s.Cb)()],ne.prototype,"value",void 0),r7([(0,s.SB)()],ne.prototype,"instructionHidden",void 0),r7([(0,s.SB)()],ne.prototype,"pasting",void 0),ne=r7([(0,o.customElement)("w3m-input-address")],ne);var nt=(0,a.iv)` 4585 :host { 4586 display: flex; 4587 width: auto; 4588 flex-direction: column; 4589 gap: var(--wui-border-radius-1xs); 4590 border-radius: var(--wui-border-radius-s); 4591 background: var(--wui-color-gray-glass-002); 4592 padding: var(--wui-spacing-s) var(--wui-spacing-1xs) var(--wui-spacing-1xs) 4593 var(--wui-spacing-1xs); 4594 } 4595 4596 wui-text { 4597 padding: 0 var(--wui-spacing-1xs); 4598 } 4599 4600 wui-flex { 4601 margin-top: var(--wui-spacing-1xs); 4602 } 4603 4604 .network { 4605 cursor: pointer; 4606 transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg); 4607 will-change: background-color; 4608 } 4609 4610 .network:focus-visible { 4611 border: 1px solid var(--wui-color-accent-100); 4612 background-color: var(--wui-color-gray-glass-005); 4613 -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 4614 -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 4615 box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 4616 } 4617 4618 .network:hover { 4619 background-color: var(--wui-color-gray-glass-005); 4620 } 4621 4622 .network:active { 4623 background-color: var(--wui-color-gray-glass-010); 4624 } 4625`,nr=function(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};let nn=class extends a.oi{render(){return(0,a.dy)` <wui-text variant="small-400" color="fg-200">Details</wui-text> 4626 <wui-flex flexDirection="column" gap="xxs"> 4627 <wui-list-content textTitle="Network cost" textValue="$${l(o.UiHelperUtil.formatNumberToLocalString(this.networkFee,2))}"></wui-list-content></wui-list-content> 4628 <wui-list-content 4629 textTitle="Address" 4630 textValue=${o.UiHelperUtil.getTruncateString({string:this.receiverAddress??"",charsStart:4,charsEnd:4,truncate:"middle"})} 4631 > 4632 </wui-list-content> 4633 ${this.networkTemplate()} 4634 </wui-flex>`}networkTemplate(){return this.caipNetwork?.name?(0,a.dy)` <wui-list-content 4635 @click=${()=>this.onNetworkClick(this.caipNetwork)} 4636 class="network" 4637 textTitle="Network" 4638 imageSrc=${l(i.fz.getNetworkImage(this.caipNetwork))} 4639 ></wui-list-content>`:null}onNetworkClick(e){e&&i.RouterController.push("Networks",{network:e})}};nn.styles=nt,nr([(0,s.Cb)()],nn.prototype,"receiverAddress",void 0),nr([(0,s.Cb)({type:Object})],nn.prototype,"caipNetwork",void 0),nr([(0,s.Cb)({type:Number})],nn.prototype,"networkFee",void 0),nn=nr([(0,o.customElement)("w3m-wallet-send-details")],nn);var ni=(0,a.iv)` 4640 :host { 4641 pointer-events: none; 4642 } 4643 4644 :host > wui-flex { 4645 display: var(--w3m-tooltip-display); 4646 opacity: var(--w3m-tooltip-opacity); 4647 padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s); 4648 border-radius: var(--wui-border-radius-xxs); 4649 color: var(--wui-color-bg-100); 4650 position: fixed; 4651 top: var(--w3m-tooltip-top); 4652 left: var(--w3m-tooltip-left); 4653 transform: translate(calc(-50% + var(--w3m-tooltip-parent-width)), calc(-100% - 8px)); 4654 max-width: calc(var(--w3m-modal-width) - var(--wui-spacing-xl)); 4655 transition: opacity 0.2s var(--wui-ease-out-power-2); 4656 will-change: opacity; 4657 } 4658 4659 :host([data-variant='shade']) > wui-flex { 4660 background-color: var(--wui-color-bg-150); 4661 border: 1px solid var(--wui-color-gray-glass-005); 4662 } 4663 4664 :host([data-variant='shade']) > wui-flex > wui-text { 4665 color: var(--wui-color-fg-150); 4666 } 4667 4668 :host([data-variant='fill']) > wui-flex { 4669 background-color: var(--wui-color-fg-100); 4670 border: none; 4671 } 4672 4673 wui-icon { 4674 position: absolute; 4675 width: 12px !important; 4676 height: 4px !important; 4677 color: var(--wui-color-bg-150); 4678 } 4679 4680 wui-icon[data-placement='top'] { 4681 bottom: 0px; 4682 left: 50%; 4683 transform: translate(-50%, 95%); 4684 } 4685 4686 wui-icon[data-placement='bottom'] { 4687 top: 0; 4688 left: 50%; 4689 transform: translate(-50%, -95%) rotate(180deg); 4690 } 4691 4692 wui-icon[data-placement='right'] { 4693 top: 50%; 4694 left: 0; 4695 transform: translate(-65%, -50%) rotate(90deg); 4696 } 4697 4698 wui-icon[data-placement='left'] { 4699 top: 50%; 4700 right: 0%; 4701 transform: translate(65%, -50%) rotate(270deg); 4702 } 4703`,no=function(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};let na=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.open=i.fw.state.open,this.message=i.fw.state.message,this.triggerRect=i.fw.state.triggerRect,this.variant=i.fw.state.variant,this.unsubscribe.push(i.fw.subscribe(e=>{this.open=e.open,this.message=e.message,this.triggerRect=e.triggerRect,this.variant=e.variant}))}
4703disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){this.dataset.variant=this.variant;let e=this.triggerRect.top,t=this.triggerRect.left;return this.style.cssText=` 4704 --w3m-tooltip-top: ${e}px; 4705 --w3m-tooltip-left: ${t}px; 4706 --w3m-tooltip-parent-width: ${this.triggerRect.width/2}px; 4707 --w3m-tooltip-display: ${this.open?"flex":"none"}; 4708 --w3m-tooltip-opacity: ${this.open?1:0}; 4709 `,(0,a.dy)`<wui-flex> 4710 <wui-icon data-placement="top" color="fg-100" size="inherit" name="cursor"></wui-icon> 4711 <wui-text color="inherit" variant="small-500">${this.message}</wui-text> 4712 </wui-flex>`}};na.styles=[ni],no([(0,s.SB)()],na.prototype,"open",void 0),no([(0,s.SB)()],na.prototype,"message",void 0),no([(0,s.SB)()],na.prototype,"triggerRect",void 0),no([(0,s.SB)()],na.prototype,"variant",void 0),na=no([(0,o.customElement)("w3m-tooltip")],na);var ns=(0,a.iv)` 4713 :host { 4714 width: 100%; 4715 display: block; 4716 } 4717`,nc=function(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};let nl=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.text="",this.open=i.fw.state.open,this.unsubscribe.push(i.RouterController.subscribeKey("view",()=>{i.fw.hide()}),i.IN.subscribeKey("open",e=>{e||i.fw.hide()}),i.fw.subscribeKey("open",e=>{this.open=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),i.fw.hide()}render(){return(0,a.dy)` 4718 <div 4719 @pointermove=${this.onMouseEnter.bind(this)} 4720 @pointerleave=${this.onMouseLeave.bind(this)} 4721 > 4722 ${this.renderChildren()} 4723 </div> 4724 `}renderChildren(){return(0,a.dy)`<slot></slot> `}onMouseEnter(){let e=this.getBoundingClientRect();this.open||i.fw.showTooltip({message:this.text,triggerRect:{width:e.width,height:e.height,left:e.left,top:e.top},variant:"shade"})}onMouseLeave(e){this.contains(e.relatedTarget)||i.fw.hide()}};nl.styles=[ns],nc([(0,s.Cb)()],nl.prototype,"text",void 0),nc([(0,s.SB)()],nl.prototype,"open",void 0),nl=nc([(0,o.customElement)("w3m-tooltip-trigger")],nl);var nu=(0,a.iv)` 4725 :host > wui-flex:first-child { 4726 margin-top: var(--wui-spacing-s); 4727 } 4728 wui-separator { 4729 margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-m) 4730 calc(var(--wui-spacing-m) * -1); 4731 width: calc(100% + var(--wui-spacing-s) * 2); 4732 } 4733`,nd=function(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};let nh=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.connector=this.connectors.find(e=>"AUTH"===e.type),this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>{this.connectors=e,this.connector=this.connectors.find(e=>"AUTH"===e.type)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.connector?.socials?(0,a.dy)` 4734 <wui-flex 4735 class="container" 4736 flexDirection="column" 4737 gap="xs" 4738 .padding=${["0","0","xs","0"]} 4739 > 4740 ${this.topViewTemplate()}${this.bottomViewTemplate()} 4741 </wui-flex> 4742 ${this.separatorTemplate()} 4743 `:null}topViewTemplate(){return this.connector?.socials?2===this.connector.socials.length?(0,a.dy)` <wui-flex gap="xs"> 4744 ${this.connector.socials.slice(0,2).map(e=>(0,a.dy)`<wui-logo-select 4745 data-testid=${`social-selector-${e}`} 4746 @click=${()=>{this.onSocialClick(e)}} 4747 logo=${e} 4748 ></wui-logo-select>`)} 4749 </wui-flex>`:(0,a.dy)` <wui-list-social 4750 data-testid=${`social-selector-${this.connector?.socials?.[0]}`} 4751 @click=${()=>{this.onSocialClick(this.connector?.socials?.[0])}} 4752 logo=${l(this.connector.socials[0])} 4753 align="center" 4754 name=${`Continue with ${this.connector.socials[0]}`} 4755 ></wui-list-social>`:null}bottomViewTemplate(){return!this.connector?.socials||this.connector?.socials.length<=2?null:this.connector?.socials.length>6?(0,a.dy)`<wui-flex gap="xs"> 4756 ${this.connector.socials.slice(1,5).map(e=>(0,a.dy)`<wui-logo-select 4757 data-testid=${`social-selector-${e}`} 4758 @click=${()=>{this.onSocialClick(e)}} 4759 logo=${e} 4760 ></wui-logo-select>`)} 4761 <wui-logo-select logo="more" @click=${this.onMoreSocialsClick.bind(this)}></wui-logo-select> 4762 </wui-flex>`:(0,a.dy)`<wui-flex gap="xs"> 4763 ${this.connector.socials.slice(1,this.connector.socials.length).map(e=>(0,a.dy)`<wui-logo-select 4764 data-testid=${`social-selector-${e}`} 4765 @click=${()=>{this.onSocialClick(e)}} 4766 logo=${e} 4767 ></wui-logo-select>`)} 4768 </wui-flex>`}separatorTemplate(){return this.connectors.find(e=>"WALLET_CONNECT"===e.type)?(0,a.dy)`<wui-separator text="or"></wui-separator>`:null}onMoreSocialsClick(){i.RouterController.push("ConnectSocials")}async onSocialClick(e){if(e&&(i.AccountController.setSocialProvider(e,i.RY.state.activeChain),i.Xs.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}}
4768)),e===F.XW.Farcaster){i.RouterController.push("ConnectingFarcaster");let e=i.ConnectorController.getAuthConnector();if(e&&!i.AccountController.state.farcasterUrl)try{let{url:t}=await e.provider.getFarcasterUri();i.AccountController.setFarcasterUrl(t)}catch(e){i.RouterController.goBack(),i.SnackController.showError(e)}}else{i.RouterController.push("ConnectingSocial");let t=i.ConnectorController.getAuthConnector();this.popupWindow=i.j1.returnOpenHref("","popupWindow","width=600,height=800,scrollbars=yes");try{if(t&&e){let{uri:r}=await t.provider.getSocialRedirectUri({provider:e});if(this.popupWindow&&r)i.AccountController.setSocialWindow(this.popupWindow,i.RY.state.activeChain),this.popupWindow.location.href=r;else throw this.popupWindow?.close(),Error("Something went wrong")}}catch(e){this.popupWindow?.close(),i.SnackController.showError("Something went wrong")}}}};nh.styles=nu,nd([(0,s.SB)()],nh.prototype,"connectors",void 0),nh=nd([(0,o.customElement)("w3m-social-login-widget")],nh);let nf=class extends a.oi{render(){return(0,a.dy)` 4769 <wui-flex flexDirection="column" gap="xs"> 4770 <w3m-connector-list></w3m-connector-list> 4771 <w3m-all-wallets-widget></w3m-all-wallets-widget> 4772 </wui-flex> 4773 `}};nf=function(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}([(0,o.customElement)("w3m-wallet-login-list")],nf);var np=(0,a.iv)` 4774 :host { 4775 margin-top: var(--wui-spacing-3xs); 4776 } 4777 wui-separator { 4778 margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs) 4779 calc(var(--wui-spacing-m) * -1); 4780 width: calc(100% + var(--wui-spacing-s) * 2); 4781 } 4782`,ng=function(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};let nm=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.connector=this.connectors.find(e=>"AUTH"===e.type),this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>{this.connectors=e,this.connector=this.connectors.find(e=>"AUTH"===e.type)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.connector?.socials?(0,a.dy)` <wui-flex flexDirection="column" gap="xs"> 4783 ${this.connector.socials.map(e=>(0,a.dy)`<wui-list-social 4784 @click=${()=>{this.onSocialClick(e)}} 4785 name=${e} 4786 logo=${e} 4787 ></wui-list-social>`)} 4788 </wui-flex>`:null}async onSocialClick(e){if(e&&(i.AccountController.setSocialProvider(e,i.RY.state.activeChain),i.Xs.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}})),e===F.XW.Farcaster){i.RouterController.push("ConnectingFarcaster");let e=i.ConnectorController.getAuthConnector();if(e&&!i.AccountController.state.farcasterUrl)try{let{url:t}=await e.provider.getFarcasterUri();i.AccountController.setFarcasterUrl(t)}catch(e){i.RouterController.goBack(),i.SnackController.showError(e)}}else{i.RouterController.push("ConnectingSocial");let t=i.ConnectorController.getAuthConnector();this.popupWindow=i.j1.returnOpenHref("","popupWindow","width=600,height=800,scrollbars=yes");try{if(t&&e){let{uri:r}=await t.provider.getSocialRedirectUri({provider:e});if(this.popupWindow&&r)i.AccountController.setSocialWindow(this.popupWindow,i.RY.state.activeChain),this.popupWindow.location.href=r;else throw this.popupWindow?.close(),Error("Something went wrong")}}catch(e){this.popupWindow?.close(),i.SnackController.showError("Something went wrong")}}}};nm.styles=np,ng([(0,s.SB)()],nm.prototype,"connectors",void 0),nm=ng([(0,o.customElement)("w3m-social-login-list")],nm);var nw=function(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};let nb=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}
4788disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(e=>"ANNOUNCED"===e.type);return e?.length?(0,a.dy)` 4789 <wui-flex flexDirection="column" gap="xs"> 4790 ${e.map(e=>e.info?.rdns&&i.ApiController.state.excludedRDNS&&i.ApiController.state.excludedRDNS.includes(e?.info?.rdns)?null:(0,a.dy)` 4791 <wui-list-wallet 4792 imageSrc=${l(i.fz.getConnectorImage(e))} 4793 name=${e.name??"Unknown"} 4794 @click=${()=>this.onConnector(e)} 4795 tagVariant="success" 4796 tagLabel="installed" 4797 data-testid=${`wallet-selector-${e.id}`} 4798 .installed=${!0} 4799 > 4800 </wui-list-wallet> 4801 `)} 4802 </wui-flex> 4803 `:(this.style.cssText="display: none",null)}onConnector(e){"WALLET_CONNECT"===e.type?i.j1.isMobile()?i.RouterController.push("AllWallets"):i.RouterController.push("ConnectingWalletConnect"):i.RouterController.push("ConnectingExternal",{connector:e})}};nw([(0,s.SB)()],nb.prototype,"connectors",void 0),nb=nw([(0,o.customElement)("w3m-connect-announced-widget")],nb);var nv=function(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};let ny=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{customWallets:e}=i.OptionsController.state;if(!e?.length)return this.style.cssText="display: none",null;let t=this.filterOutDuplicateWallets(e);return(0,a.dy)`<wui-flex flexDirection="column" gap="xs"> 4804 ${t.map(e=>(0,a.dy)` 4805 <wui-list-wallet 4806 imageSrc=${l(i.fz.getWalletImage(e))} 4807 name=${e.name??"Unknown"} 4808 @click=${()=>this.onConnectWallet(e)} 4809 data-testid=${`wallet-selector-${e.id}`} 4810 > 4811 </wui-list-wallet> 4812 `)} 4813 </wui-flex>`}filterOutDuplicateWallets(e){let t=i.MO.getRecentWallets(),r=this.connectors.map(e=>e.info?.rdns).filter(Boolean),n=t.map(e=>e.rdns).filter(Boolean),o=r.concat(n);if(o.includes("io.metamask.mobile")&&i.j1.isMobile()){let e=o.indexOf("io.metamask.mobile");o[e]="io.metamask"}return e.filter(e=>!o.includes(String(e?.rdns)))}onConnectWallet(e){i.RouterController.push("ConnectingWalletConnect",{wallet:e})}};nv([(0,s.SB)()],ny.prototype,"connectors",void 0),ny=nv([(0,o.customElement)("w3m-connect-custom-widget")],ny);let nC={filterOutDuplicatesByRDNS(e){let t=i.OptionsController.state.enableEIP6963?i.ConnectorController.state.connectors:[],r=i.MO.getRecentWallets(),n=t.map(e=>e.info?.rdns).filter(Boolean),o=r.map(e=>e.rdns).filter(Boolean),a=n.concat(o);if(a.includes("io.metamask.mobile")&&i.j1.isMobile()){let e=a.indexOf("io.metamask.mobile");a[e]="io.metamask"}return e.filter(e=>!a.includes(String(e?.rdns)))},filterOutDuplicatesByIds(e){let t=i.ConnectorController.state.connectors,r=i.MO.getRecentWallets(),n=t.map(e=>e.explorerId),o=r.map(e=>e.id),a=n.concat(o);return e.filter(e=>!a.includes(e?.id))},filterOutDuplicateWallets(e){let t=this.filterOutDuplicatesByRDNS(e);return this.filterOutDuplicatesByIds(t)}},nx=class extends a.oi{constructor(){super(...arguments),this.unsubscribe=[]}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{featured:e}=i.ApiController.state;if(!e.length)return this.style.cssText="display: none",null;let t=nC.filterOutDuplicateWallets(e);return(0,a.dy)` 4814 <wui-flex flexDirection="column" gap="xs"> 4815 ${t.map(e=>(0,a.dy)` 4816 <wui-list-wallet 4817 imageSrc=${l(i.fz.getWalletImage(e))} 4818 name=${e.name??"Unknown"} 4819 @click=${()=>this.onConnectWallet(e)} 4820 > 4821 </wui-list-wallet> 4822 `)} 4823 </wui-flex> 4824 `}onConnectWallet(e){let t=i.ConnectorController.getConnector(e.id,e.rdns);
4824t?i.RouterController.push("ConnectingExternal",{connector:t}):i.RouterController.push("ConnectingWalletConnect",{wallet:e})}};nx=function(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}([(0,o.customElement)("w3m-connect-featured-widget")],nx);var nA=function(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};let nE=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(e=>"INJECTED"===e.type);return e?.length&&(1!==e.length||e[0]?.name!=="Browser Wallet"||i.j1.isMobile())?(0,a.dy)` 4825 <wui-flex flexDirection="column" gap="xs"> 4826 ${e.map(e=>i.j1.isMobile()||"Browser Wallet"!==e.name?i.ConnectionController.checkInstalled()?e.info?.rdns&&i.ApiController.state.excludedRDNS&&i.ApiController.state.excludedRDNS.includes(e?.info?.rdns)?null:(0,a.dy)` 4827 <wui-list-wallet 4828 imageSrc=${l(i.fz.getConnectorImage(e))} 4829 .installed=${!0} 4830 name=${e.name??"Unknown"} 4831 tagVariant="success" 4832 tagLabel="installed" 4833 data-testid=${`wallet-selector-${e.id}`} 4834 @click=${()=>this.onConnector(e)} 4835 > 4836 </wui-list-wallet> 4837 `:(this.style.cssText="display: none",null):null)} 4838 </wui-flex> 4839 `:(this.style.cssText="display: none",null)}onConnector(e){i.RouterController.push("ConnectingExternal",{connector:e})}};nA([(0,s.SB)()],nE.prototype,"connectors",void 0),nE=nA([(0,o.customElement)("w3m-connect-injected-widget")],nE);var nk=function(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};let n_=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.find(e=>"coinbaseWalletSDK"===e.id);return e?(0,a.dy)` 4840 <wui-flex flexDirection="column" gap="xs"> 4841 <wui-list-wallet 4842 imageSrc=${l(i.fz.getConnectorImage(e))} 4843 .installed=${!0} 4844 name=${l(e.name)} 4845 data-testid=${`wallet-selector-${e.id}`} 4846 @click=${()=>this.onConnector(e)} 4847 > 4848 </wui-list-wallet> 4849 </wui-flex> 4850 `:(this.style.cssText="display: none",null)}async onCoinbaseConnector(e){try{i.ConnectionController.setWcError(!1),e.imageUrl&&i.MO.setConnectedWalletImageUrl(e.imageUrl),await i.ConnectionController.connectExternal(e),i.OptionsController.state.isSiweEnabled?i.RouterController.push("ConnectingSiwe"):i.IN.close(),i.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser",name:e.name||"Unknown"}})}catch(e){i.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),i.ConnectionController.setWcError(!0)}}onConnector(e){i.RouterController.push("ConnectingExternal",{connector:e}),e.id===F.bq.COINBASE_SDK_CONNECTOR_ID&&this.onCoinbaseConnector(e)}};nk([(0,s.SB)()],n_.prototype,"connectors",void 0),n_=nk([(0,o.customElement)("w3m-connect-coinbase-widget")],n_);var nS=function(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};let nT=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}
4850disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(e=>"EXTERNAL"===e.type).filter(e=>"coinbaseWalletSDK"!==e.id);return e?.length?(0,a.dy)` 4851 <wui-flex flexDirection="column" gap="xs"> 4852 ${e.map(e=>(0,a.dy)` 4853 <wui-list-wallet 4854 imageSrc=${l(i.fz.getConnectorImage(e))} 4855 .installed=${!0} 4856 name=${e.name??"Unknown"} 4857 data-testid=${`wallet-selector-external-${e.id}`} 4858 @click=${()=>this.onConnector(e)} 4859 > 4860 </wui-list-wallet> 4861 `)} 4862 </wui-flex> 4863 `:(this.style.cssText="display: none",null)}onConnector(e){i.RouterController.push("ConnectingExternal",{connector:e})}};nS([(0,s.SB)()],nT.prototype,"connectors",void 0),nT=nS([(0,o.customElement)("w3m-connect-external-widget")],nT);let nI=class extends a.oi{render(){let e=i.MO.getRecentWallets();return e?.length?(0,a.dy)` 4864 <wui-flex flexDirection="column" gap="xs"> 4865 ${e.map(e=>(0,a.dy)` 4866 <wui-list-wallet 4867 imageSrc=${l(i.fz.getWalletImage(e))} 4868 name=${e.name??"Unknown"} 4869 @click=${()=>this.onConnectWallet(e)} 4870 tagLabel="recent" 4871 tagVariant="shade" 4872 > 4873 </wui-list-wallet> 4874 `)} 4875 </wui-flex> 4876 `:(this.style.cssText="display: none",null)}onConnectWallet(e){i.RouterController.push("ConnectingWalletConnect",{wallet:e})}};nI=function(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}([(0,o.customElement)("w3m-connect-recent-widget")],nI);var nR=function(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};let nO=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!this.connectors.find(e=>"WALLET_CONNECT"===e.type))return null;let{recommended:e}=i.ApiController.state,{customWallets:t,featuredWalletIds:r}=i.OptionsController.state,{connectors:n}=i.ConnectorController.state,o=i.MO.getRecentWallets(),s=n.filter(e=>"INJECTED"===e.type||"ANNOUNCED"===e.type).filter(e=>"Browser Wallet"!==e.name);if(r||t||!e.length)return this.style.cssText="display: none",null;let c=s.length+o.length,u=nC.filterOutDuplicateWallets(e).slice(0,Math.max(0,2-c));return u.length?(0,a.dy)` 4877 <wui-flex flexDirection="column" gap="xs"> 4878 ${u.map(e=>(0,a.dy)` 4879 <wui-list-wallet 4880 imageSrc=${l(i.fz.getWalletImage(e))} 4881 name=${e?.name??"Unknown"} 4882 @click=${()=>this.onConnectWallet(e)} 4883 > 4884 </wui-list-wallet> 4885 `)} 4886 </wui-flex> 4887 `:(this.style.cssText="display: none",null)}onConnectWallet(e){let t=i.ConnectorController.getConnector(e.id,e.rdns);t?i.RouterController.push("ConnectingExternal",{connector:t}):i.RouterController.push("ConnectingWalletConnect",{wallet:e})}};nR([(0,s.SB)()],nO.prototype,"connectors",void 0),nO=nR([(0,o.customElement)("w3m-connect-recommended-widget")],nO);var nP=function(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};let nN=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}
4887disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(i.j1.isMobile())return this.style.cssText="display: none",null;let e=this.connectors.find(e=>"WALLET_CONNECT"===e.type);return e?(0,a.dy)` 4888 <wui-list-wallet 4889 imageSrc=${l(i.fz.getConnectorImage(e))} 4890 name=${e.name??"Unknown"} 4891 @click=${()=>this.onConnector(e)} 4892 tagLabel="qr code" 4893 tagVariant="main" 4894 data-testid="wallet-selector-walletconnect" 4895 > 4896 </wui-list-wallet> 4897 `:(this.style.cssText="display: none",null)}onConnector(e){"WALLET_CONNECT"===e.type?i.j1.isMobile()?i.RouterController.push("AllWallets"):i.RouterController.push("ConnectingWalletConnect"):i.RouterController.push("ConnectingExternal",{connector:e})}};nP([(0,s.SB)()],nN.prototype,"connectors",void 0),nN=nP([(0,o.customElement)("w3m-connect-walletconnect-widget")],nN);var nM=(0,a.iv)` 4898 :host { 4899 margin-top: var(--wui-spacing-3xs); 4900 } 4901 wui-separator { 4902 margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs) 4903 calc(var(--wui-spacing-m) * -1); 4904 width: calc(100% + var(--wui-spacing-s) * 2); 4905 } 4906`,nD=function(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};let nB=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{custom:e,recent:t,announced:r,coinbase:n,injected:i,recommended:o,featured:s,external:c}=this.getConnectorsByType();return(0,a.dy)` 4907 <wui-flex flexDirection="column" gap="xs"> 4908 <w3m-connect-walletconnect-widget></w3m-connect-walletconnect-widget> 4909 ${t.length?(0,a.dy)`<w3m-connect-recent-widget></w3m-connect-recent-widget>`:null} 4910 ${r.length?(0,a.dy)`<w3m-connect-announced-widget></w3m-connect-announced-widget>`:null} 4911 ${i.length?(0,a.dy)`<w3m-connect-injected-widget></w3m-connect-injected-widget>`:null} 4912 ${s.length?(0,a.dy)`<w3m-connect-featured-widget></w3m-connect-featured-widget>`:null} 4913 ${e?.length?(0,a.dy)`<w3m-connect-custom-widget></w3m-connect-custom-widget>`:null} 4914 ${n?(0,a.dy)`<w3m-connect-coinbase-widget></w3m-connect-coinbase-widget>`:null} 4915 ${c.length?(0,a.dy)`<w3m-connect-external-widget></w3m-connect-external-widget>`:null} 4916 ${o.length?(0,a.dy)`<w3m-connect-recommended-widget></w3m-connect-recommended-widget>`:null} 4917 </wui-flex> 4918 `}getConnectorsByType(){let{featured:e,recommended:t}=i.ApiController.state,{customWallets:r}=i.OptionsController.state,n=i.MO.getRecentWallets(),o=nC.filterOutDuplicateWallets(t),a=nC.filterOutDuplicateWallets(e),s=this.connectors.filter(e=>"ANNOUNCED"===e.type),c=this.connectors.filter(e=>"INJECTED"===e.type),l=this.connectors.filter(e=>"EXTERNAL"===e.type),u=this.connectors.find(e=>e.id===F.bq.COINBASE_SDK_CONNECTOR_ID),d=i.RY.state.activeChain!==Y.bq.CHAIN.EVM||i.OptionsController.state.enableEIP6963;return{custom:r,recent:n,coinbase:u,external:l,announced:d?s:[],injected:d?c:[],recommended:o,featured:a}}};nB.styles=nM,nD([(0,s.SB)()],nB.prototype,"connectors",void 0),nB=nD([(0,o.customElement)("w3m-connector-list")],nB);var n$=function(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};let nU=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.count=i.ApiController.state.count,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e),i.ApiController.subscribeKey("count",e=>this.count=e))}
4918disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.find(e=>"WALLET_CONNECT"===e.type),{allWallets:t}=i.OptionsController.state;if(!e||"HIDE"===t||"ONLY_MOBILE"===t&&!i.j1.isMobile())return null;let r=i.ApiController.state.featured.length,n=this.count+r,o=n<10?n:10*Math.floor(n/10),s=o<n?`${o}+`:`${o}`;return(0,a.dy)` 4919 <wui-list-wallet 4920 name="All Wallets" 4921 walletIcon="allWallets" 4922 showAllWallets 4923 @click=${this.onAllWallets.bind(this)} 4924 tagLabel=${s} 4925 tagVariant="shade" 4926 data-testid="all-wallets" 4927 ></wui-list-wallet> 4928 `}onAllWallets(){i.Xs.sendEvent({type:"track",event:"CLICK_ALL_WALLETS"}),i.RouterController.push("AllWallets")}};n$([(0,s.SB)()],nU.prototype,"connectors",void 0),n$([(0,s.SB)()],nU.prototype,"count",void 0),nU=n$([(0,o.customElement)("w3m-all-wallets-widget")],nU);let nL=class extends a.oi{constructor(){super(...arguments),this.socialProvider=i.MO.getConnectedSocialProvider(),this.socialUsername=i.MO.getConnectedSocialUsername()}render(){let e=i.MO.getConnectedConnector(),t=i.ConnectorController.getAuthConnector();if(!t||"AUTH"!==e)return this.style.cssText="display: none",null;let r=t.provider.getEmail()??"";return(0,a.dy)` 4929 <wui-list-item 4930 variant="icon" 4931 iconVariant="overlay" 4932 icon=${this.socialProvider??"mail"} 4933 iconSize=${this.socialProvider?"xxl":"sm"} 4934 data-testid="w3m-account-email-update" 4935 ?chevron=${!this.socialProvider} 4936 @click=${()=>{this.onGoToUpdateEmail(r,this.socialProvider)}} 4937 > 4938 <wui-text variant="paragraph-500" color="fg-100">${this.getAuthName(r)}</wui-text> 4939 </wui-list-item> 4940 `}onGoToUpdateEmail(e,t){t||i.RouterController.push("UpdateEmailWallet",{email:e})}getAuthName(e){return this.socialUsername?"discord"===this.socialProvider&&this.socialUsername.endsWith("0")?this.socialUsername.slice(0,-1):this.socialUsername:e.length>30?`${e.slice(0,-3)}...`:e}};nL=function(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}([(0,o.customElement)("w3m-account-auth-button")],nL);let nj=!1;class nz{constructor(e){this.initPromise=void 0,this.setIsConnected=(e,t)=>{i.AccountController.setIsConnected(e,t)},this.getIsConnectedState=()=>i.AccountController.state.isConnected,this.setAllAccounts=(e,t)=>{i.AccountController.setAllAccounts(e||[],t),i.OptionsController.setHasMultipleAddresses(e?.length>1)},this.addAddressLabel=(e,t)=>
4940{i.AccountController.addAddressLabel(e,t)},this.removeAddressLabel=e=>{i.AccountController.removeAddressLabel(e)},this.getCaipAddress=()=>i.AccountController.state.caipAddress,this.setCaipAddress=(e,t)=>{i.AccountController.setCaipAddress(e,t)},this.setBalance=(e,t,r)=>{i.AccountController.setBalance(e,t,r)},this.setProfileName=(e,t)=>{i.AccountController.setProfileName(e,t)},this.setProfileImage=(e,t)=>{i.AccountController.setProfileImage(e,t)},this.resetAccount=e=>{i.AccountController.resetAccount(e)},this.setCaipNetwork=e=>{i.fB.setCaipNetwork(e)},this.getCaipNetwork=()=>i.fB.state.caipNetwork,this.setRequestedCaipNetworks=(e,t)=>{i.fB.setRequestedCaipNetworks(e,t)},this.getApprovedCaipNetworkIds=()=>i.fB.getApprovedCaipNetworkIds(),this.setApprovedCaipNetworksData=()=>i.fB.setApprovedCaipNetworksData(),this.resetNetwork=()=>{i.fB.resetNetwork()},this.setConnectors=e=>{i.ConnectorController.setConnectors(e)},this.addConnector=e=>{i.ConnectorController.addConnector(e)},this.getConnectors=()=>i.ConnectorController.getConnectors(),this.resetWcConnection=()=>{i.ConnectionController.resetWcConnection()},this.fetchIdentity=e=>i.Lr.fetchIdentity(e),this.setAddressExplorerUrl=(e,t)=>{i.AccountController.setAddressExplorerUrl(e,t)},this.setSmartAccountDeployed=(e,t)=>{i.AccountController.setSmartAccountDeployed(e,t)},this.setConnectedWalletInfo=(e,t)=>{i.AccountController.setConnectedWalletInfo(e,t)},this.setSmartAccountEnabledNetworks=(e,t)=>{i.fB.setSmartAccountEnabledNetworks(e,t)},this.setPreferredAccountType=(e,t)=>{i.AccountController.setPreferredAccountType(e,t)},this.getWalletConnectName=e=>i.a.getNamesForAddress(e),this.resolveWalletConnectName=async e=>{let t=e.replace(Y.bq.WC_NAME_SUFFIX,""),r=await i.a.resolveName(t),n=Object.values(r?.addresses)||[];return n[0]?.address||!1},this.setEIP6963Enabled=e=>{i.OptionsController.setEIP6963Enabled(e)},this.setClientId=e=>{i.Lr.setClientId(e)},this.initControllers(e),this.initOrContinue()}async open(e){await this.initOrContinue(),i.IN.open(e)}async close(){await this.initOrContinue(),i.IN.close()}setLoading(e){i.IN.setLoading(e)}getThemeMode(){return i.ThemeController.state.themeMode}getThemeVariables(){return i.ThemeController.state.themeVariables}setThemeMode(e){i.ThemeController.setThemeMode(e),(0,o.setColorTheme)(i.ThemeController.state.themeMode)}setThemeVariables(e){i.ThemeController.setThemeVariables(e),(0,o.setThemeVariables)(i.ThemeController.state.themeVariables)}subscribeTheme(e){return i.ThemeController.subscribe(e)}getWalletInfo(){return i.AccountController.state.connectedWalletInfo}subscribeWalletInfo(e){return i.AccountController.subscribeKey("connectedWalletInfo",e)}subscribeShouldUpdateToAddress(e){i.AccountController.subscribeKey("shouldUpdateToAddress",e)}subscribeCaipNetworkChange(e){i.fB.subscribeKey("caipNetwork",e)}getState(){return i.Ie.state}subscribeState(e){return i.Ie.subscribe(e)}showErrorMessage(e){i.SnackController.showError(e)}showSuccessMessage(e){i.SnackController.showSuccess(e)}getEvent(){return{...i.Xs.state}}subscribeEvents(e){return i.Xs.subscribe(e)}replace(e){i.RouterController.replace(e)}redirect(e){i.RouterController.push(e)}popTransactionStack(e){i.RouterController.popTransactionStack(e)}isOpen(){return i.IN.state.open}isTransactionStackEmpty(){return 0===i.RouterController.state.transactionStack.length}isTransactionShouldReplaceView(){return i.RouterController.state.transactionStack[i.RouterController.state.transactionStack.length-1]?.replace}async initControllers(e){if(i.RY.initialize([{networkControllerClient:e.networkControllerClient,connectionControllerClient:e.connectionControllerClient,chain:e.chain}]),i.fB.setDefaultCaipNetwork(e.defaultChain,e.chain),i.OptionsController.setProjectId(e.projectId),i.OptionsController.setAllWallets(e.allWallets),i.OptionsController.setIncludeWalletIds(e.includeWalletIds),i.OptionsController.setExcludeWalletIds(e.excludeWalletIds),i.OptionsController.setFeaturedWalletIds(e.featuredWalletIds),i.OptionsController.setTokens(e.tokens),i.OptionsController.setTermsConditionsUrl(e.termsConditionsUrl),i.OptionsController.setPrivacyPolicyUrl(e.privacyPolicyUrl),i.OptionsController.setEnableAnalytics(e.enableAnalytics),i.OptionsController.setCustomWallets(e.customWallets),i.OptionsController.setIsUniversalProvider(e.isUniversalProvider),i.OptionsController.setSdkVersion(e._sdkVersion),i.OptionsController.setOnrampEnabled(!1!==e.enableO
4940nramp),i.OptionsController.setEnableSwaps(e.chain===Y.bq.CHAIN.EVM&&!1!==e.enableSwaps),e.metadata&&i.OptionsController.setMetadata(e.metadata),e.themeMode&&i.ThemeController.setThemeMode(e.themeMode),e.themeVariables&&i.ThemeController.setThemeVariables(e.themeVariables),e.disableAppend&&i.OptionsController.setDisableAppend(!!e.disableAppend),e.allowUnsupportedChain&&i.fB.setAllowUnsupportedChain(e.allowUnsupportedChain),e.siweControllerClient){let{SIWEController:t}=await Promise.all([r.e(138),r.e(502)]).then(r.bind(r,73344));t.setSIWEClient(e.siweControllerClient)}}async initOrContinue(){return!this.initPromise&&!nj&&i.j1.isClient()&&(nj=!0,this.initPromise=new Promise(async e=>{await Promise.all([Promise.resolve().then(r.bind(r,43521)),r.e(942).then(r.bind(r,4942))]);let t=document.createElement("w3m-modal");i.OptionsController.state.disableAppend||document.body.insertAdjacentElement("beforeend",t),e()})),this.initPromise}}},43521:function(e,t,r){"use strict";let n,i,o;r.r(t),r.d(t,{MathUtil:function(){return oJ},TransactionUtil:function(){return o1},UiHelperUtil:function(){return r_},WuiAccountButton:function(){return rU},WuiAllWalletsImage:function(){return rq},WuiAvatar:function(){return rP},WuiBalance:function(){return i7},WuiBanner:function(){return og},WuiBannerImg:function(){return ob},WuiButton:function(){return rY},WuiCard:function(){return eP},WuiCardSelect:function(){return r9},WuiCardSelectLoader:function(){return r0},WuiChip:function(){return nt},WuiChipButton:function(){return ol},WuiCompatibleNetwork:function(){return oh},WuiConnectButton:function(){return ni},WuiCtaButton:function(){return ns},WuiDetailsGroup:function(){return nl},WuiDetailsGroupItem:function(){return nh},WuiDropdownMenu:function(){return ng},WuiEmailInput:function(){return nM},WuiEnsInput:function(){return n$},WuiFlex:function(){return rI},WuiGrid:function(){return oG},WuiIcon:function(){return tZ},WuiIconBox:function(){return rD},WuiIconButton:function(){return oL},WuiIconLink:function(){return nj},WuiImage:function(){return tY},WuiInputAmount:function(){return oI},WuiInputElement:function(){return nH},WuiInputNumeric:function(){return nV},WuiInputText:function(){return nO},WuiLink:function(){return nK},WuiListAccordion:function(){return iG},WuiListAccount:function(){return oB},WuiListButton:function(){return oF},WuiListContent:function(){return iQ},WuiListDescription:function(){return oE},WuiListItem:function(){return nJ},WuiListNetwork:function(){return i0},WuiListSocial:function(){return oW},WuiListToken:function(){return oC},WuiListWallet:function(){return ir},WuiListWalletTransaction:function(){return i3},WuiLoadingHexagon:function(){return tJ},WuiLoadingSpinner:function(){return t1},WuiLoadingThumbnail:function(){return t5},WuiLogo:function(){return ia},WuiLogoSelect:function(){return il},WuiNetworkButton:function(){return ih},WuiNetworkImage:function(){return r4},WuiNoticeCard:function(){return iW},WuiOtp:function(){return im},WuiPreviewItem:function(){return oP},WuiProfileButton:function(){return or},WuiProfileButtonV2:function(){return oa},WuiPromo:function(){return i6},WuiQrCode:function(){return ix},WuiSearchBar:function(){return iE},WuiSeparator:function(){return oQ},WuiShimmer:function(){return t8},WuiSnackbar:function(){return iS},WuiTabs:function(){return iR},WuiTag:function(){return n7},WuiText:function(){return rn},WuiTokenButton:function(){return iN},WuiTokenListItem:function(){return iL},WuiTooltip:function(){return iB},WuiTransactionListItem:function(){return n5},WuiTransactionListItemLoader:function(){return n6},WuiTransactionVisual:function(){return n1},WuiVisual:function(){return rE},WuiVisualThumbnail:function(){return iF},WuiWalletImage:function(){return rz},customElement:function(){return eR},initializeTheming:function(){return eA},setColorTheme:function(){return eE},setThemeVariables:function(){return ek},swapInputMaskBottomSvg:function(){return eb},swapInputMaskTopSvg:function(){return ev}});/** 4941 * @license 4942 * Copyright 2019 Google LLC 4943 * SPDX-License-Identifier: BSD-3-Clause 4944 */let a=globalThis,s=a.ShadowRoot&&(void 0===a.ShadyCSS||a.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),l=new WeakMap;class u{constructor(e,t,r){if(this._$cssResult$=!0,r!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(s&&void 0===e){let r=void 0!==t&&1===t.length;r&&(e=l.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&l.set(t,e))}return e}toString(){return this.cssText}}let d=e=>new u("string"==typeof e?e:e+"",void 0,c),h=(e,...t)=>new u(1===e.length?e[0]:t.reduce((t,r,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1],e[0]),e,c),f=(e,t)=>{if(s)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let r of t){let t=document.createElement("style"),n=a.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=r.cssText,e.appendChild(t)}},p=s?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return d(t)})(e):e,{is:g,defineProperty:m,getOwnPropertyDescriptor:w,getOwnPropertyNames:b,getOwnPropertySymbols:v,getPrototypeOf:y}=Object,C=globalThis,x=C.trustedTypes,A=x?x.emptyScript:"",E=C.reactiveElementPolyfillSupport,k=(e,t)=>e,_={toAttribute(e,t){switch(t){case Boolean:e=e?A:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},S=(e,t)=>!g(e,t),T={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:S};Symbol.metadata??=Symbol("metadata"),C.litPropertyMetadata??=new WeakMap;class I extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=T){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&m(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){let{get:n,set:i}=w(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return n?.call(this)},set(t){let o=n?.call(this);i.call(this,t),this.requestUpdate(e,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??T}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;let e=y(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){let e=this.properties;for(let t of[...b(e),...v(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,r]of t)this.elementProperties.set(e,r)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let r of new Set(e.flat(1/0).reverse()))t.unshift(p(r));else void 0!==e&&t.push(p(e));return t}static _$Eu(e,t){let r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e
4944=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return f(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){let r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){let i=(void 0!==r.converter?.toAttribute?r.converter:_).toAttribute(t,r.type);this._$Em=e,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(e,t){let r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){let e=r.getPropertyOptions(n),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:_;this._$Em=n,this[n]=i.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){if(!((r??=this.constructor.getPropertyOptions(e)).hasChanged??S)(this[e],t))return;this.P(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,r){this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,r]of e)!0!==r.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],r)}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(e=>this._$EC(e,this[e])),this._$EU()}updated(e){}firstUpdated(e){}}I.elementStyles=[],I.shadowRootOptions={mode:"open"},I[k("elementProperties")]=new Map,I[k("finalized")]=new Map,E?.({ReactiveElement:I}),(C.reactiveElementVersions??=[]).push("2.0.4");/** 4945 * @license 4946 * Copyright 2017 Google LLC 4947 * SPDX-License-Identifier: BSD-3-Clause 4948 */let R=globalThis,O=R.trustedTypes,P=O?O.createPolicy("lit-html",{createHTML:e=>e}):void 0,N="$lit$",M=`lit$${Math.random().toFixed(9).slice(2)}$`,D="?"+M,B=`<${D}>`,$=document,U=()=>$.createComment(""),L=e=>null===e||"object"!=typeof e&&"function"!=typeof e,j=Array.isArray,z=e=>j(e)||"function"==typeof e?.[Symbol.iterator],F="[ \n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,q=/-->/g,W=/>/g,V=RegExp(`>|${F}(?:([^\\s"'>=/]+)(${F}*=${F}*(?:[^ 4949\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,G=/"/g,K=/^(?:script|style|textarea|title)$/i,Y=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Q=Y(1),J=Y(2),X=(Y(3),Symbol.for("lit-noChange")),ee=Symbol.for("lit-nothing"),et=new WeakMap,er=$.createTreeWalker($,129);function en(e,t){if(!j(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==P?P.createHTML(t):t}let ei=(e,t)=>{let r=e.length-1,n=[],i,o=2===t?"<svg>":3===t?"<math>":"",a=H;for(let t=0;t<r;t++){let r=e[t],s,c,l=-1,u=0;for(;u<r.length&&(a.lastIndex=u,null!==(c=a.exec(r)));)u=a.lastIndex,a===H?"!--"===c[1]?a=q:void 0!==c[1]?a=W:void 0!==c[2]?(K.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=V):void 0!==c[3]&&(a=V):a===V?">"===c[0]?(a=i??H,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?V:'"'===c[3]?G:Z):a===G||a===Z?a=V:a===q||a===W?a=H:(a=V,i=void 0);let d=a===V&&e[t+1].startsWith("/>")?" ":"";o+=a===H?r+B:l>=0?(n.push(s),r.slice(0,l)+N+r.slice(l)+M+d):r+M+(-2===l?t:d)}return[en(e,o+(e[r]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),n]};class eo{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let i=0,o=0,a=e.length-1,s=this.parts,[c,l]=ei(e,t);
4949if(this.el=eo.createElement(c,r),er.currentNode=this.el.content,2===t||3===t){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=er.nextNode())&&s.length<a;){if(1===n.nodeType){if(n.hasAttributes())for(let e of n.getAttributeNames())if(e.endsWith(N)){let t=l[o++],r=n.getAttribute(e).split(M),a=/([.?@])?(.*)/.exec(t);s.push({type:1,index:i,name:a[2],strings:r,ctor:"."===a[1]?eu:"?"===a[1]?ed:"@"===a[1]?eh:el}),n.removeAttribute(e)}else e.startsWith(M)&&(s.push({type:6,index:i}),n.removeAttribute(e));if(K.test(n.tagName)){let e=n.textContent.split(M),t=e.length-1;if(t>0){n.textContent=O?O.emptyScript:"";for(let r=0;r<t;r++)n.append(e[r],U()),er.nextNode(),s.push({type:2,index:++i});n.append(e[t],U())}}}else if(8===n.nodeType){if(n.data===D)s.push({type:2,index:i});else{let e=-1;for(;-1!==(e=n.data.indexOf(M,e+1));)s.push({type:7,index:i}),e+=M.length-1}}i++}}static createElement(e,t){let r=$.createElement("template");return r.innerHTML=e,r}}function ea(e,t,r=e,n){if(t===X)return t;let i=void 0!==n?r.o?.[n]:r.l,o=L(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),void 0===o?i=void 0:(i=new o(e))._$AT(e,r,n),void 0!==n?(r.o??=[])[n]=i:r.l=i),void 0!==i&&(t=ea(e,i._$AS(e,t.values),i,n)),t}class es{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,n=(e?.creationScope??$).importNode(t,!0);er.currentNode=n;let i=er.nextNode(),o=0,a=0,s=r[0];for(;void 0!==s;){if(o===s.index){let t;2===s.type?t=new ec(i,i.nextSibling,this,e):1===s.type?t=new s.ctor(i,s.name,s.strings,this,e):6===s.type&&(t=new ef(i,this,e)),this._$AV.push(t),s=r[++a]}o!==s?.index&&(i=er.nextNode(),o++)}return er.currentNode=$,n}p(e){let t=0;for(let r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class ec{get _$AU(){return this._$AM?._$AU??this.v}constructor(e,t,r,n){this.type=2,this._$AH=ee,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this.v=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){L(e=ea(this,e,t))?e===ee||null==e||""===e?(this._$AH!==ee&&this._$AR(),this._$AH=ee):e!==this._$AH&&e!==X&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):z(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ee&&L(this._$AH)?this._$AA.nextSibling.data=e:this.T($.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,n="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=eo.createElement(en(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let e=new es(n,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=et.get(e.strings);return void 0===t&&et.set(e.strings,t=new eo(e)),t}k(e){j(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let i of e)n===t.length?t.push(r=new ec(this.O(U()),this.O(U()),this,this.options)):r=t[n],r._$AI(i),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this.v=e,this._$AP?.(e))}}class el{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,i){this.type=1,this._$AH=ee,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ee}_$AI(e,t=this,r,n){let i=this.strings,o=!1;if(void 0===i)(o=!L(e=ea(this,e,t,0))||e!==this._$AH&&e!==X)&&(this._$AH=e);else{let n,a;let s=e;for(e=i[0],n=0;n<i.length-1;n++)(a=ea(this,s[r+n],t,n))===X&&(a=this._$AH[n]),o||=!L(a)||a!==this._$AH[n],a===ee?e=ee:e!==ee&&(e+=(a??"")+i[n+1]),this._$AH[n]=a}o&&!n&&this.j(e)}j(e){e===ee?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class eu extends el{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ee?void 0:e}}class ed extends el{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ee)}}class eh extends el{constructor(e,t,r,n,i){super(e,t,r,n,i),this.type=5}
4949_$AI(e,t=this){if((e=ea(this,e,t,0)??ee)===X)return;let r=this._$AH,n=e===ee&&r!==ee||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==ee&&(r===ee||n);n&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class ef{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){ea(this,e)}}let ep=R.litHtmlPolyfillSupport;ep?.(eo,ec),(R.litHtmlVersions??=[]).push("3.2.0");let eg=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(void 0===i){let e=r?.renderBefore??null;n._$litPart$=i=new ec(t.insertBefore(U(),e),e,void 0,r??{})}return i._$AI(e),i};/** 4950 * @license 4951 * Copyright 2017 Google LLC 4952 * SPDX-License-Identifier: BSD-3-Clause 4953 */class em extends I{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this.o=eg(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return X}}em._$litElement$=!0,em.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:em});let ew=globalThis.litElementPolyfillSupport;ew?.({LitElement:em}),(globalThis.litElementVersions??=[]).push("4.1.0");let eb=J`<svg class="input_mask" width="328" height="100" viewBox="0 0 328 100" fill="none"> 4954 <mask id="path-1-inside-1_18299_4189"> 4955 <path 4956 class="input_mask__border" 4957 fill-rule="evenodd" 4958 clip-rule="evenodd" 4959 d="M138.008 0H40C21.1438 0 11.7157 0 5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H189.992C189.958 4.89122 189.786 7.76279 188.914 10.1564C187.095 15.1562 183.156 19.0947 178.156 20.9145C175.174 22 171.449 22 164 22C156.551 22 152.826 22 149.844 20.9145C144.844 19.0947 140.905 15.1562 139.086 10.1564C138.214 7.76279 138.042 4.89122 138.008 0Z" 4960 /> 4961 </mask> 4962 <path 4963 class="input_mask__background" 4964 fill-rule="evenodd" 4965 clip-rule="evenodd" 4966 d="M138.008 0H40C21.1438 0 11.7157 0 5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H189.992C189.958 4.89122 189.786 7.76279 188.914 10.1564C187.095 15.1562 183.156 19.0947 178.156 20.9145C175.174 22 171.449 22 164 22C156.551 22 152.826 22 149.844 20.9145C144.844 19.0947 140.905 15.1562 139.086 10.1564C138.214 7.76279 138.042 4.89122 138.008 0Z" 4967 /> 4968 <path 4969 class="input_mask__border" 4970 d="M138.008 0L139.008 -0.00694413L139.001 -1H138.008V0ZM322.142 94.1421L322.849 94.8492H322.849L322.142 94.1421ZM322.142 5.85786L322.849 5.15076L322.849 5.15076L322.142 5.85786ZM189.992 0V-1H188.999L188.992 -0.00694413L189.992 0ZM188.914 10.1564L189.854 10.4984V10.4984L188.914 10.1564ZM178.156 20.9145L177.814 19.9748V19.9748L178.156 20.9145ZM149.844 20.9145L150.186 19.9748V19.9748L149.844 20.9145ZM139.086 10.1564L138.146 10.4984V10.4984L139.086 10.1564ZM40 1H138.008V-1H40V1ZM6.56497 6.56497C9.27713 3.85281 12.8524 2.44064 18.1878 1.72332C23.552 1.00212 30.5436 1 40 1V-1C30.6002 -1 23.4497 -1.00212 17.9213 -0.25885C12.3641 0.488292 8.29646 2.00506 5.15076 5.15076L6.56497 6.56497ZM1 40C1 30.5436 1.00212 23.552 1.72332 18.1878C2.44064 12.8524 3.85281 9.27713 6.56497 6.56497L5.15076 5.15076C2.00506 8.29646 0.488292 12.3641 -0.25885 17.9213C-1.00212 23.4497 -1 30.6002 -1 40H1ZM1 60V40H-1V60H1ZM6.56497 93.435C3.85281 90.7229 2.44064 87.1476 1.72332 81.8122C1.00212 76.448 1 69.4564 1 60H-1C-1 69.3998 -1.00212 76.5503 -0.25885 82.0787C0.488292 87.6358 2.00506 91.7035 5.15076 94.8492L6.56497 93.435ZM40 99C30.5436 99 23.552 98.9979 18.1878 98.2767C12.8524 97.5594 9.27713 96.1472 6.56497 93.435L5.15076 94.8492C8.29646 97.9949 12.3641 99.5117 17.9213 100.259C23.4497 101.002 30.6002 101 40 101V99ZM288 99H40V101H288V99ZM321.435 93.435C318.723 96.1472 315.148 97.5594 309.812 98.2767C304.448 98.9979 297.456 99 288 99V101C297.4 101 304.55 101.002 310.079 100.259C315.636 99.5117 319.704 97.9949 322.849 94.8492L321.435 93.435ZM327 60C327 69.4564 326.998 76.448 326.277 81.8122C325.559 87.1476 324.147 90.7229 321.435 93.435L322.849 94.8492C325.995 91.7035 327.512 87.6358 328.259 82.0787C329.002 76.5503 329 69.3998 329 60H327ZM327 40V60H329V40H327ZM321.435 6.56497C324.147 9.27713 325.559 12.8524 326.277 18.1878C326.998 23.552 327 30.5436 327 40H329C329 30.6002 329.002 23.4497 328.259 17.9213C327.512 12.3642 325.995 8.29646 322.849 5.15076L321.435 6.56497ZM288 1C297.456 1 304.448 1.00212 309.812 1.72332C315.148 2.44064 318.723 3.85281 321.435 6.56497L322.849 5.15076C319.704 2.00506 315.636 0.488292 310.079 -0.25885C304.55 -1.00212 297.4 -1 288 -1V1ZM189.992 1H288V-1H189.992V1ZM188.992 -0.00694413C188.958 4.90792 188.778 7.60788 187.975 9.81434L189.854 10.4984C190.793 7.9177 190.958 4.87452 190.992 0.00694413L188.992 -0.00694413ZM187.975 9.81434C186.256 14.5364 182.536 18.2561 177.814 19.9748L178.498 21.8542C183.776 19.9333 187.933 15.7759 189.854 10.4984L187.975 9.81434ZM177.814 19.9748C175.039 20.9848 171.536 21 164 21V23C171.362 23 175.308 23.0152 178.498 21.8542L177.814 19.9748ZM164 21C156.464 21 152.961 20.9848 150.186 19.9748L149.502 21.8542C152.692 23.0152 156.638 23 164 23V21ZM150.186 19.9748C145.464 18.2561 141.744 14.5364 140.025 9.81434L138.146 10.4984C140.067 15.7759 144.224 19.9333 149.502 21.8542L150.186 19.9748ZM140.025 9.81434C139.222 7.60788 139.042 4.90792 139.008 -0.00694413L137.008 0.00694413C137.042 4.87452 137.207 7.9177 138.146 10.4984L140.025 9.81434Z" 4971 mask="url(#path-1-inside-1_18299_4189)" 4972 /> 4973</svg>
4973`,ev=J`<svg class="input_mask" width="328" height="100" viewBox="0 0 328 100" fill="none"> 4974 <mask id="path-1-inside-1_18299_4168"> 4975 <path 4976 class="input_mask__border" 4977 fill-rule="evenodd" 4978 clip-rule="evenodd" 4979 d="M5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H138.008C138.042 95.1088 138.214 92.2372 139.086 89.8436C140.905 84.8438 144.844 80.9053 149.844 79.0855C152.826 78 156.551 78 164 78C171.449 78 175.174 78 178.156 79.0855C183.156 80.9053 187.095 84.8438 188.914 89.8436C189.786 92.2372 189.958 95.1088 189.992 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H40C21.1438 0 11.7157 0 5.85786 5.85786Z" 4980 /> 4981 </mask> 4982 <path 4983 class="input_mask__background" 4984 fill-rule="evenodd" 4985 clip-rule="evenodd" 4986 d="M5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H138.008C138.042 95.1088 138.214 92.2372 139.086 89.8436C140.905 84.8438 144.844 80.9053 149.844 79.0855C152.826 78 156.551 78 164 78C171.449 78 175.174 78 178.156 79.0855C183.156 80.9053 187.095 84.8438 188.914 89.8436C189.786 92.2372 189.958 95.1088 189.992 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H40C21.1438 0 11.7157 0 5.85786 5.85786Z" 4987 /> 4988 <path 4989 class="input_mask__border" 4990 d="M138.008 100V101H139.001L139.008 100.007L138.008 100ZM139.086 89.8436L138.146 89.5016L139.086 89.8436ZM149.844 79.0855L150.186 80.0252L149.844 79.0855ZM178.156 79.0855L177.814 80.0252L178.156 79.0855ZM188.914 89.8436L189.854 89.5016L188.914 89.8436ZM189.992 100L188.992 100.007L188.999 101H189.992V100ZM322.142 94.1421L322.849 94.8492H322.849L322.142 94.1421ZM322.142 5.85786L322.849 5.15076L322.849 5.15076L322.142 5.85786ZM1 40C1 30.5436 1.00212 23.552 1.72332 18.1878C2.44064 12.8524 3.85281 9.27713 6.56497 6.56497L5.15076 5.15076C2.00506 8.29646 0.488292 12.3641 -0.25885 17.9213C-1.00212 23.4497 -1 30.6002 -1 40H1ZM1 60V40H-1V60H1ZM6.56497 93.435C3.85281 90.7229 2.44064 87.1476 1.72332 81.8122C1.00212 76.448 1 69.4564 1 60H-1C-1 69.3998 -1.00212 76.5503 -0.25885 82.0787C0.488292 87.6358 2.00506 91.7035 5.15076 94.8492L6.56497 93.435ZM40 99C30.5436 99 23.552 98.9979 18.1878 98.2767C12.8524 97.5594 9.27713 96.1472 6.56497 93.435L5.15076 94.8492C8.29646 97.9949 12.3641 99.5117 17.9213 100.259C23.4497 101.002 30.6002 101 40 101V99ZM138.008 99H40V101H138.008V99ZM139.008 100.007C139.042 95.0921 139.222 92.3921 140.025 90.1857L138.146 89.5016C137.207 92.0823 137.042 95.1255 137.008 99.9931L139.008 100.007ZM140.025 90.1857C141.744 85.4636 145.464 81.7439 150.186 80.0252L149.502 78.1458C144.224 80.0667 140.067 84.2241 138.146 89.5016L140.025 90.1857ZM150.186 80.0252C152.961 79.0152 156.464 79 164 79V77C156.638 77 152.692 76.9848 149.502 78.1458L150.186 80.0252ZM164 79C171.536 79 175.039 79.0152 177.814 80.0252L178.498 78.1458C175.308 76.9848 171.362 77 164 77V79ZM177.814 80.0252C182.536 81.7439 186.256 85.4636 187.975 90.1857L189.854 89.5016C187.933 84.2241 183.776 80.0667 178.498 78.1458L177.814 80.0252ZM187.975 90.1857C188.778 92.3921 188.958 95.0921 188.992 100.007L190.992 99.9931C190.958 95.1255 190.793 92.0823 189.854 89.5016L187.975 90.1857ZM288 99H189.992V101H288V99ZM321.435 93.435C318.723 96.1472 315.148 97.5594 309.812 98.2767C304.448 98.9979 297.456 99 288 99V101C297.4 101 304.55 101.002 310.079 100.259C315.636 99.5117 319.704 97.9949 322.849 94.8492L321.435 93.435ZM327 60C327 69.4564 326.998 76.448 326.277 81.8122C325.559 87.1476 324.147 90.7229 321.435 93.435L322.849 94.8492C325.995 91.7035 327.512 87.6358 328.259 82.0787C329.002 76.5503 329 69.3998 329 60H327ZM327 40V60H329V40H327ZM321.435 6.56497C324.147 9.27713 325.559 12.8524 326.277 18.1878C326.998 23.552 327 30.5436 327 40H329C329 30.6002 329.002 23.4497 328.259 17.9213C327.512 12.3642 325.995 8.29646 322.849 5.15076L321.435 6.56497ZM288 1C297.456 1 304.448 1.00212 309.812 1.72332C315.148 2.44064 318.723 3.85281 321.435 6.56497L322.849 5.15076C319.704 2.00506 315.636 0.488292 310.079 -0.25885C304.55 -1.00212 297.4 -1 288 -1V1ZM40 1H288V-1H40V1ZM6.56497 6.56497C9.27713 3.85281 12.8524 2.44064 18.1878 1.72332C23.552 1.00212 30.5436 1 40 1V-1C30.6002 -1 23.4497 -1.
499000212 17.9213 -0.25885C12.3641 0.488292 8.29646 2.00506 5.15076 5.15076L6.56497 6.56497Z" 4991 mask="url(#path-1-inside-1_18299_4168)" 4992 /> 4993</svg>`;var ey,eC,ex=r(15519);function eA(e,t){n=document.createElement("style"),i=document.createElement("style"),o=document.createElement("style"),n.textContent=e_(e).core.cssText,i.textContent=e_(e).dark.cssText,o.textContent=e_(e).light.cssText,document.head.appendChild(n),document.head.appendChild(i),document.head.appendChild(o),eE(t)}function eE(e){i&&o&&("light"===e?(i.removeAttribute("media"),o.media="enabled"):(o.removeAttribute("media"),i.media="enabled"))}function ek(e){n&&i&&o&&(n.textContent=e_(e).core.cssText,i.textContent=e_(e).dark.cssText,o.textContent=e_(e).light.cssText)}function e_(e){return{core:h` 4994 @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); 4995 @keyframes w3m-shake { 4996 0% { 4997 transform: scale(1) rotate(0deg); 4998 } 4999 20% { 5000 transform: scale(1) rotate(-1deg); 5001 } 5002 40% { 5003 transform: scale(1) rotate(1.5deg); 5004 } 5005 60% { 5006 transform: scale(1) rotate(-1.5deg); 5007 } 5008 80% { 5009 transform: scale(1) rotate(1deg); 5010 } 5011 100% { 5012 transform: scale(1) rotate(0deg); 5013 } 5014 } 5015 @keyframes w3m-iframe-fade-out { 5016 0% { 5017 opacity: 1; 5018 } 5019 100% { 5020 opacity: 0; 5021 } 5022 } 5023 @keyframes w3m-iframe-zoom-in { 5024 0% { 5025 transform: translateY(50px); 5026 opacity: 0; 5027 } 5028 100% { 5029 transform: translateY(0px); 5030 opacity: 1; 5031 } 5032 } 5033 @keyframes w3m-iframe-zoom-in-mobile { 5034 0% { 5035 transform: scale(0.95); 5036 opacity: 0; 5037 } 5038 100% { 5039 transform: scale(1); 5040 opacity: 1; 5041 } 5042 } 5043 :root { 5044 --w3m-modal-width: 360px; 5045 --w3m-color-mix-strength: ${d(e?.["--w3m-color-mix-strength"]?`${e["--w3m-color-mix-strength"]}%`:"0%")}; 5046 --w3m-font-family: ${d(e?.["--w3m-font-family"]||"Inter, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;")}; 5047 --w3m-font-size-master: ${d(e?.["--w3m-font-size-master"]||"10px")}; 5048 --w3m-border-radius-master: ${d(e?.["--w3m-border-radius-master"]||"4px")}; 5049 --w3m-z-index: ${d(e?.["--w3m-z-index"]||999)}; 5050 5051 --wui-font-family: var(--w3m-font-family); 5052 5053 --wui-font-size-mini: calc(var(--w3m-font-size-master) * 0.8); 5054 --wui-font-size-micro: var(--w3m-font-size-master); 5055 --wui-font-size-tiny: calc(var(--w3m-font-size-master) * 1.2); 5056 --wui-font-size-small: calc(var(--w3m-font-size-master) * 1.4); 5057 --wui-font-size-paragraph: calc(var(--w3m-font-size-master) * 1.6); 5058 --wui-font-size-medium: calc(var(--w3m-font-size-master) * 1.8); 5059 --wui-font-size-large: calc(var(--w3m-font-size-master) * 2); 5060 --wui-font-size-title-6: calc(var(--w3m-font-size-master) * 2.2); 5061 --wui-font-size-medium-title: calc(var(--w3m-font-size-master) * 2.4); 5062 --wui-font-size-2xl: calc(var(--w3m-font-size-master) * 4); 5063 5064 --wui-border-radius-5xs: var(--w3m-border-radius-master); 5065 --wui-border-radius-4xs: calc(var(--w3m-border-radius-master) * 1.5); 5066 --wui-border-radius-3xs: calc(var(--w3m-border-radius-master) * 2); 5067 --wui-border-radius-xxs: calc(var(--w3m-border-radius-master) * 3); 5068 --wui-border-radius-xs: calc(var(--w3m-border-radius-master) * 4); 5069 --wui-border-radius-s: calc(var(--w3m-border-radius-master) * 5); 5070 --wui-border-radius-m: calc(var(--w3m-border-radius-master) * 7); 5071 --wui-border-radius-l: calc(var(--w3m-border-radius-master) * 9); 5072 --wui-border-radius-3xl: calc(var(--w3m-border-radius-master) * 20); 5073 5074 --wui-font-weight-light: 400; 5075 --wui-font-weight-regular: 500; 5076 --wui-font-weight-medium: 600; 5077 --wui-font-weight-bold: 700; 5078 5079 --wui-letter-spacing-2xl: -1.6px; 5080 --wui-letter-spacing-medium-title: -0.96px; 5081 --wui-letter-spacing-title-6: -0.88px; 5082 --wui-letter-spacing-large: -0.8px; 5083 --wui-letter-spacing-medium: -0.72px; 5084 --wui-letter-spacing-paragraph: -0.64px; 5085 --wui-letter-spacing-small: -0.56px; 5086 --wui-letter-spacing-tiny: -0.48px; 5087 --wui-letter-spacing-micro: -0.2px; 5088 --wui-letter-spacing-mini: -0.16px; 5089 5090 --wui-spacing-0: 0px; 5091 --wui-spacing-4xs: 2px; 5092 --wui-spacing-3xs: 4px; 5093 --wui-spacing-xxs: 6px; 5094 --wui-spacing-2xs: 7px; 5095 --wui-spacing-xs: 8px; 5096 --wui-spacing-1xs: 10px; 5097 --wui-spacing-s: 12px; 5098 --wui-spacing-m: 14px; 5099 --wui-spacing-l: 16px; 5100 --wui-spacing-2l: 18px; 5101 --wui-spacing-xl: 20px; 5102 --wui-spacing-xxl: 24px; 5103 --wui-spacing-2xl: 32px; 5104 --wui-spacing-3xl: 40px; 5105 --wui-spacing-4xl: 90px; 5106 --wui-spacing-5xl: 95px; 5107 5108 --wui-icon-box-size-xxs: 14px; 5109 --wui-icon-box-size-xs: 20px; 5110 --wui-icon-box-size-sm: 24px; 5111 --wui-icon-box-size-md: 32px; 5112 --wui-icon-box-size-lg: 40px; 5113 --wui-icon-box-size-2lg: 48px; 5114 --wui-icon-box-size-xl: 64px; 5115 5116 --wui-icon-size-inherit: inherit; 5117 --wui-icon-size-xxs: 10px; 5118 --wui-icon-size-xs: 12px; 5119 --wui-icon-size-sm: 14px; 5120 --wui-icon-size-md: 16px; 5121 --wui-icon-size-mdl: 18px; 5122 --wui-icon-size-lg: 20px; 5123 --wui-icon-size-xl: 24px; 5124 --wui-icon-size-xxl: 28px; 5125 5126 --wui-wallet-image-size-inherit: inherit; 5127 --wui-wallet-image-size-sm: 40px; 5128 --wui-wallet-image-size-md: 56px; 5129 --wui-wallet-image-size-lg: 80px; 5130 5131 --wui-visual-size-size-inherit: inherit; 5132 --wui-visual-size-sm: 40px; 5133 --wui-visual-size-md: 55px; 5134 --wui-visual-size-lg: 80px; 5135 5136 --wui-box-size-md: 100px; 5137 --wui-box-size-lg: 120px; 5138 5139 --wui-ease-out-power-2: cubic-bezier(0, 0, 0.22, 1); 5140 --wui-ease-out-power-1: cubic-bezier(0, 0, 0.55, 1); 5141 5142 --wui-ease-in-power-3: cubic-bezier(0.66, 0, 1, 1); 5143 --wui-ease-in-power-2: cubic-bezier(0.45, 0, 1, 1); 5144 --wui-ease-in-power-1: cubic-bezier(0.3, 0, 1, 1); 5145 5146 --wui-ease-inout-power-1: cubic-bezier(0.45, 0, 0.55, 1); 5147 5148 --wui-duration-lg: 200ms; 5149 --wui-duration-md: 125ms; 5150 --wui-duration-sm: 75ms; 5151 5152 --wui-path-network-sm: path( 5153 'M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.
515361 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z' 5154 ); 5155 5156 --wui-path-network-md: path( 5157 'M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z' 5158 ); 5159 5160 --wui-path-network-lg: path( 5161 'M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z' 5162 ); 5163 5164 --wui-width-network-sm: 36px; 5165 --wui-width-network-md: 48px; 5166 --wui-width-network-lg: 86px; 5167 5168 --wui-height-network-sm: 40px; 5169 --wui-height-network-md: 54px; 5170 --wui-height-network-lg: 96px; 5171 5172 --wui-icon-size-network-xs: 12px; 5173 --wui-icon-size-network-sm: 16px; 5174 --wui-icon-size-network-md: 24px; 5175 --wui-icon-size-network-lg: 42px; 5176 5177 --wui-color-inherit: inherit; 5178 5179 --wui-color-inverse-100: #fff; 5180 --wui-color-inverse-000: #000; 5181 5182 --wui-cover: rgba(20, 20, 20, 0.8); 5183 5184 --wui-color-modal-bg: var(--wui-color-modal-bg-base); 5185 5186 --wui-color-accent-100: var(--wui-color-accent-base-100); 5187 --wui-color-accent-090: var(--wui-color-accent-base-090); 5188 --wui-color-accent-080: var(--wui-color-accent-base-080); 5189 5190 --wui-color-success-100: var(--wui-color-success-base-100); 5191 5192 --wui-color-error-100: var(--wui-color-error-base-100); 5193 5194 --wui-icon-box-bg-error-100: var(--wui-icon-box-bg-error-base-100); 5195 --wui-icon-box-bg-blue-100: var(--wui-icon-box-bg-blue-base-100); 5196 --wui-icon-box-bg-success-100: var(--wui-icon-box-bg-success-base-100); 5197 --wui-icon-box-bg-inverse-100: var(--wui-icon-box-bg-inverse-base-100); 5198 5199 --wui-all-wallets-bg-100: var(--wui-all-wallets-bg-100); 5200 5201 --wui-avatar-border: var(--wui-avatar-border-base); 5202 5203 --wui-thumbnail-border: var(--wui-thumbnail-border-base); 5204 5205 --wui-box-shadow-blue: var(--wui-color-accent-glass-020); 5206 } 5207 5208 @supports (background: color-mix(in srgb, white 50%, black)) { 5209 :root { 5210 --wui-color-modal-bg: color-mix( 5211 in srgb, 5212 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5213 var(--wui-color-modal-bg-base) 5214 ); 5215 5216 --wui-box-shadow-blue: color-mix(in srgb, var(--wui-color-accent-100) 20%, transparent); 5217 5218 --wui-color-accent-100: color-mix( 5219 in srgb, 5220 var(--wui-color-accent-base-100) 100%, 5221 transparent 5222 ); 5223 --wui-color-accent-090: color-mix( 5224 in srgb, 5225 var(--wui-color-accent-base-100) 90%, 5226 transparent 5227 ); 5228 --wui-color-accent-080: color-mix( 5229 in srgb, 5230 var(--wui-color-accent-base-100) 80%, 5231 transparent 5232 ); 5233 --wui-color-accent-glass-090: color-mix( 5234 in srgb, 5235 var(--wui-color-accent-base-100) 90%, 5236 transparent 5237 ); 5238 --wui-color-accent-glass-080: color-mix( 5239 in srgb, 5240 var(--wui-color-accent-base-100) 80%, 5241 transparent 5242 ); 5243 --wui-color-accent-glass-020: color-mix( 5244 in srgb, 5245 var(--wui-color-accent-base-100) 20%, 5246 transparent 5247 ); 5248 --wui-color-accent-glass-015: color-mix( 5249 in srgb, 5250 var(--wui-color-accent-base-100) 15%, 5251 transparent 5252 ); 5253 --wui-color-accent-glass-010: color-mix( 5254 in srgb, 5255 var(--wui-color-accent-base-100) 10%, 5256 transparent 5257 ); 5258 --wui-color-accent-glass-005: color-mix( 5259 in srgb, 5260 var(--wui-color-accent-base-100) 5%, 5261 transparent 5262 ); 5263 --wui-color-accent-002: color-mix( 5264 in srgb, 5265 var(--wui-color-accent-base-100) 2%, 5266 transparent 5267 ); 5268 5269 --wui-color-fg-100: color-mix( 5270 in srgb, 5271 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5272 var(--wui-color-fg-100) 5273 ); 5274 --wui-color-fg-125: color-mix( 5275 in srgb, 5276 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5277 var(--wui-color-fg-125) 5278 ); 5279 --wui-color-fg-150: color-mix( 5280 in srgb, 5281 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5282 var(--wui-color-fg-150) 5283 ); 5284 --wui-color-fg-175: color-mix( 5285 in srgb, 5286 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5287 var(--wui-color-fg-175) 5288 ); 5289 --wui-color-fg-200: color-mix( 5290 in srgb, 5291 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5292 var(--wui-color-fg-200) 5293 ); 5294 --wui-color-fg-225: color-mix( 5295 in srgb, 5296 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5297 var(--wui-color-fg-225) 5298 ); 5299 --wui-color-fg-250: color-mix( 5300 in srgb, 5301 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5302 var(--wui-color-fg-250) 5303 ); 5304 --wui-color-fg-275: color-mix( 5305 in srgb, 5306 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5307 var(--wui-color-fg-275) 5308 ); 5309 --wui-color-fg-300: color-mix( 5310 in srgb, 5311 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5312 var(--wui-color-fg-300) 5313 ); 5314 5315 --wui-color-bg-100: color-mix( 5316 in srgb, 5317 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5318 var(--wui-color-bg-100) 5319 ); 5320 --wui-color-bg-125: color-mix( 5321 in srgb, 5322 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5323 var(--wui-color-bg-125) 5324 ); 5325 --wui-color-bg-150: color-mix( 5326 in srgb, 5327 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5328 var(--wui-color-bg-150) 5329 ); 5330 --wui-color-bg-175: color-mix( 5331 in srgb, 5332 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5333 var(--wui-color-bg-175) 5334 ); 5335 --wui-color-bg-200: color-mix( 5336 in srgb, 5337 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5338 var(--wui-color-bg-200) 5339 ); 5340 --wui-color-bg-225: color-mix( 5341 in srgb, 5342 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5343 var(--wui-color-bg-225) 5344 ); 5345 --wui-color-bg-250: color-mix( 5346 in srgb, 5347 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5348 var(--wui-color-bg-250) 5349 ); 5350 --wui-color-bg-275: color-mix( 5351 in srgb, 5352 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5353 var(--wui-color-bg-275) 5354 ); 5355 --wui-color-bg-300: color-mix( 5356 in srgb, 5357 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5358 var(--wui-color-bg-300) 5359 ); 5360 5361 --wui-color-success-100: color-mix( 5362 in srgb, 5363 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5364 var(--wui-color-success-base-100) 5365 ); 5366 --wui-color-error-100: color-mix( 5367 in srgb, 5368 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5369 var(--wui-color-error-base-100) 5370 ); 5371 5372 --wui-icon-box-bg-error-100: color-mix( 5373 in srgb, 5374 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5375 var(--wui-icon-box-bg-error-base-100) 5376 ); 5377 --wui-icon-box-bg-accent-100: color-mix( 5378 in srgb, 5379 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5380 var(--wui-icon-box-bg-blue-base-100) 5381 ); 5382 --wui-icon-box-bg-success-100: color-mix( 5383 in srgb, 5384 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5385 var(--wui-icon-box-bg-success-base-100) 5386 ); 5387 --wui-icon-box-bg-inverse-100: color-mix( 5388 in srgb, 5389 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5390 var(--wui-icon-box-bg-inverse-base-100) 5391 ); 5392 5393 --wui-all-wallets-bg-100: color-mix( 5394 in srgb, 5395 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5396 var(--wui-all-wallets-bg-100) 5397 ); 5398 5399 --wui-avatar-border: color-mix( 5400 in srgb, 5401 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5402 var(--wui-avatar-border-base) 5403 ); 5404
5405 --wui-thumbnail-border: color-mix( 5406 in srgb, 5407 var(--w3m-color-mix) var(--w3m-color-mix-strength), 5408 var(--wui-thumbnail-border-base) 5409 ); 5410 } 5411 } 5412 `,light:h` 5413 :root { 5414 --w3m-color-mix: ${d(e?.["--w3m-color-mix"]||"#fff")}; 5415 --w3m-accent: ${d((0,ex.tU)(e,"dark")["--w3m-accent"])}; 5416 --w3m-default: #fff; 5417 5418 --wui-color-modal-bg-base: ${d((0,ex.tU)(e,"dark")["--w3m-background"])}; 5419 --wui-color-accent-base-100: var(--w3m-accent); 5420 5421 --wui-color-blueberry-100: hsla(230, 100%, 67%, 1); 5422 --wui-color-blueberry-090: hsla(231, 76%, 61%, 1); 5423 --wui-color-blueberry-080: hsla(230, 59%, 55%, 1); 5424 --wui-color-blueberry-050: hsla(231, 100%, 70%, 0.1); 5425 5426 --wui-color-fg-100: #e4e7e7; 5427 --wui-color-fg-125: #d0d5d5; 5428 --wui-color-fg-150: #a8b1b1; 5429 --wui-color-fg-175: #a8b0b0; 5430 --wui-color-fg-200: #949e9e; 5431 --wui-color-fg-225: #868f8f; 5432 --wui-color-fg-250: #788080; 5433 --wui-color-fg-275: #788181; 5434 --wui-color-fg-300: #6e7777; 5435 5436 --wui-color-bg-100: #141414; 5437 --wui-color-bg-125: #191a1a; 5438 --wui-color-bg-150: #1e1f1f; 5439 --wui-color-bg-175: #222525; 5440 --wui-color-bg-200: #272a2a; 5441 --wui-color-bg-225: #2c3030; 5442 --wui-color-bg-250: #313535; 5443 --wui-color-bg-275: #363b3b; 5444 --wui-color-bg-300: #3b4040; 5445 5446 --wui-color-success-base-100: #26d962; 5447 --wui-color-error-base-100: #f25a67; 5448 5449 --wui-color-success-glass-001: rgba(38, 217, 98, 0.01); 5450 --wui-color-success-glass-002: rgba(38, 217, 98, 0.02); 5451 --wui-color-success-glass-005: rgba(38, 217, 98, 0.05); 5452 --wui-color-success-glass-010: rgba(38, 217, 98, 0.1); 5453 --wui-color-success-glass-015: rgba(38, 217, 98, 0.15); 5454 --wui-color-success-glass-020: rgba(38, 217, 98, 0.2); 5455 --wui-color-success-glass-025: rgba(38, 217, 98, 0.25); 5456 --wui-color-success-glass-030: rgba(38, 217, 98, 0.3); 5457 --wui-color-success-glass-060: rgba(38, 217, 98, 0.6); 5458 --wui-color-success-glass-080: rgba(38, 217, 98, 0.8); 5459 5460 --wui-color-error-glass-001: rgba(242, 90, 103, 0.01); 5461 --wui-color-error-glass-002: rgba(242, 90, 103, 0.02); 5462 --wui-color-error-glass-005: rgba(242, 90, 103, 0.05); 5463 --wui-color-error-glass-010: rgba(242, 90, 103, 0.1); 5464 --wui-color-error-glass-015: rgba(242, 90, 103, 0.15); 5465 --wui-color-error-glass-020: rgba(242, 90, 103, 0.2); 5466 --wui-color-error-glass-025: rgba(242, 90, 103, 0.25); 5467 --wui-color-error-glass-030: rgba(242, 90, 103, 0.3); 5468 --wui-color-error-glass-060: rgba(242, 90, 103, 0.6); 5469 --wui-color-error-glass-080: rgba(242, 90, 103, 0.8); 5470 5471 --wui-color-gray-glass-001: rgba(255, 255, 255, 0.01); 5472 --wui-color-gray-glass-002: rgba(255, 255, 255, 0.02); 5473 --wui-color-gray-glass-005: rgba(255, 255, 255, 0.05); 5474 --wui-color-gray-glass-010: rgba(255, 255, 255, 0.1); 5475 --wui-color-gray-glass-015: rgba(255, 255, 255, 0.15); 5476 --wui-color-gray-glass-020: rgba(255, 255, 255, 0.2); 5477 --wui-color-gray-glass-025: rgba(255, 255, 255, 0.25); 5478 --wui-color-gray-glass-030: rgba(255, 255, 255, 0.3); 5479 --wui-color-gray-glass-060: rgba(255, 255, 255, 0.6); 5480 --wui-color-gray-glass-080: rgba(255, 255, 255, 0.8); 5481 --wui-color-gray-glass-090: rgba(255, 255, 255, 0.9); 5482 5483 --wui-icon-box-bg-error-base-100: #3c2426; 5484 --wui-icon-box-bg-blue-base-100: #20303f; 5485 --wui-icon-box-bg-success-base-100: #1f3a28; 5486 --wui-icon-box-bg-inverse-base-100: #243240; 5487 5488 --wui-all-wallets-bg-100: #222b35; 5489 5490 --wui-avatar-border-base: #252525; 5491 5492 --wui-thumbnail-border-base: #252525; 5493 } 5494 `,dark:h` 5495 :root { 5496 --w3m-color-mix: ${d(e?.["--w3m-color-mix"]||"#000")}; 5497 --w3m-accent: ${d((0,ex.tU)(e,"light")["--w3m-accent"])}; 5498 --w3m-default: #000; 5499 5500 --wui-color-modal-bg-base: ${d((0,ex.tU)(e,"light")["--w3m-background"])}; 5501 --wui-color-accent-base-100: var(--w3m-accent); 5502 5503 --wui-color-blueberry-100: hsla(231, 100%, 70%, 1); 5504 --wui-color-blueberry-090: hsla(231, 97%, 72%, 1); 5505 --wui-color-blueberry-080: hsla(231, 92%, 74%, 1); 5506 5507 --wui-color-fg-100: #141414; 5508 --wui-color-fg-125: #2d3131; 5509 --wui-color-fg-150: #474d4d; 5510 --wui-color-fg-175: #636d6d; 5511 --wui-color-fg-200: #798686; 5512 --wui-color-fg-225: #828f8f; 5513 --wui-color-fg-250: #8b9797; 5514 --wui-color-fg-275: #95a0a0; 5515 --wui-color-fg-300: #9ea9a9; 5516 5517 --wui-color-bg-100: #ffffff; 5518 --wui-color-bg-125: #f5fafa; 5519 --wui-color-bg-150: #f3f8f8; 5520 --wui-color-bg-175: #eef4f4; 5521 --wui-color-bg-200: #eaf1f1; 5522 --wui-color-bg-225: #e5eded; 5523 --wui-color-bg-250: #e1e9e9; 5524 --wui-color-bg-275: #dce7e7; 5525 --wui-color-bg-300: #d8e3e3; 5526 5527 --wui-color-success-base-100: #26b562; 5528 --wui-color-error-base-100: #f05142; 5529 5530 --wui-color-success-glass-001: rgba(38, 181, 98, 0.01); 5531 --wui-color-success-glass-002: rgba(38, 181, 98, 0.02); 5532 --wui-color-success-glass-005: rgba(38, 181, 98, 0.05); 5533 --wui-color-success-glass-010: rgba(38, 181, 98, 0.1); 5534 --wui-color-success-glass-015: rgba(38, 181, 98, 0.15); 5535 --wui-color-success-glass-020: rgba(38, 181, 98, 0.2); 5536 --wui-color-success-glass-025: rgba(38, 181, 98, 0.25); 5537 --wui-color-success-glass-030: rgba(38, 181, 98, 0.3); 5538 --wui-color-success-glass-060: rgba(38, 181, 98, 0.6); 5539 --wui-color-success-glass-080: rgba(38, 181, 98, 0.8); 5540 5541 --wui-color-error-glass-001: rgba(240, 81, 66, 0.01); 5542 --wui-color-error-glass-002: rgba(240, 81, 66, 0.02); 5543 --wui-color-error-glass-005: rgba(240, 81, 66, 0.05); 5544 --wui-color-error-glass-010: rgba(240, 81, 66, 0.1); 5545 --wui-color-error-glass-015: rgba(240, 81, 66, 0.15); 5546 --wui-color-error-glass-020: rgba(240, 81, 66, 0.2); 5547 --wui-color-error-glass-025: rgba(240, 81, 66, 0.25); 5548 --wui-color-error-glass-030: rgba(240, 81, 66, 0.3); 5549 --wui-color-error-glass-060: rgba(240, 81, 66, 0.6); 5550 --wui-color-error-glass-080: rgba(240, 81, 66, 0.8); 5551 5552 --wui-icon-box-bg-error-base-100: #f4dfdd; 5553 --wui-icon-box-bg-blue-base-100: #d9ecfb; 5554 --wui-icon-box-bg-success-base-100: #daf0e4; 5555 --wui-icon-box-bg-inverse-base-100: #dcecfc; 5556 5557 --wui-all-wallets-bg-100: #e8f1fa; 5558 5559 --wui-avatar-border-base: #f3f4f4; 5560
5561 --wui-thumbnail-border-base: #eaefef; 5562 5563 --wui-color-gray-glass-001: rgba(0, 0, 0, 0.01); 5564 --wui-color-gray-glass-002: rgba(0, 0, 0, 0.02); 5565 --wui-color-gray-glass-005: rgba(0, 0, 0, 0.05); 5566 --wui-color-gray-glass-010: rgba(0, 0, 0, 0.1); 5567 --wui-color-gray-glass-015: rgba(0, 0, 0, 0.15); 5568 --wui-color-gray-glass-020: rgba(0, 0, 0, 0.2); 5569 --wui-color-gray-glass-025: rgba(0, 0, 0, 0.25); 5570 --wui-color-gray-glass-030: rgba(0, 0, 0, 0.3); 5571 --wui-color-gray-glass-060: rgba(0, 0, 0, 0.6); 5572 --wui-color-gray-glass-080: rgba(0, 0, 0, 0.8); 5573 --wui-color-gray-glass-090: rgba(0, 0, 0, 0.9); 5574 } 5575 `}}let eS=h` 5576 *, 5577 *::after, 5578 *::before, 5579 :host { 5580 margin: 0; 5581 padding: 0; 5582 box-sizing: border-box; 5583 font-style: normal; 5584 text-rendering: optimizeSpeed; 5585 -webkit-font-smoothing: antialiased; 5586 -moz-osx-font-smoothing: grayscale; 5587 -webkit-tap-highlight-color: transparent; 5588 font-family: var(--wui-font-family); 5589 backface-visibility: hidden; 5590 } 5591`,eT=h` 5592 button, 5593 a { 5594 cursor: pointer; 5595 display: flex; 5596 justify-content: center; 5597 align-items: center; 5598 position: relative; 5599 transition: 5600 color var(--wui-duration-lg) var(--wui-ease-out-power-1), 5601 background-color var(--wui-duration-lg) var(--wui-ease-out-power-1), 5602 border var(--wui-duration-lg) var(--wui-ease-out-power-1), 5603 box-shadow var(--wui-duration-lg) var(--wui-ease-out-power-1); 5604 will-change: background-color, color, border, box-shadow; 5605 outline: none; 5606 border: none; 5607 column-gap: var(--wui-spacing-3xs); 5608 background-color: transparent; 5609 text-decoration: none; 5610 } 5611 5612 button:disabled > wui-wallet-image, 5613 button:disabled > wui-all-wallets-image, 5614 button:disabled > wui-network-image, 5615 button:disabled > wui-image, 5616 button:disabled > wui-transaction-visual, 5617 button:disabled > wui-logo { 5618 filter: grayscale(1); 5619 } 5620 5621 @media (hover: hover) and (pointer: fine) { 5622 button:hover:enabled { 5623 background-color: var(--wui-color-gray-glass-005); 5624 } 5625 5626 button:active:enabled { 5627 background-color: var(--wui-color-gray-glass-010); 5628 } 5629 } 5630 5631 button:disabled > wui-icon-box { 5632 opacity: 0.5; 5633 } 5634 5635 input { 5636 border: none; 5637 outline: none; 5638 appearance: none; 5639 } 5640`,eI=h` 5641 .wui-color-inherit { 5642 color: var(--wui-color-inherit); 5643 } 5644 5645 .wui-color-accent-100 { 5646 color: var(--wui-color-accent-100); 5647 } 5648 5649 .wui-color-error-100 { 5650 color: var(--wui-color-error-100); 5651 } 5652 5653 .wui-color-success-100 { 5654 color: var(--wui-color-success-100); 5655 } 5656 5657 .wui-color-inverse-100 { 5658 color: var(--wui-color-inverse-100); 5659 } 5660 5661 .wui-color-inverse-000 { 5662 color: var(--wui-color-inverse-000); 5663 } 5664 5665 .wui-color-fg-100 { 5666 color: var(--wui-color-fg-100); 5667 } 5668 5669 .wui-color-fg-200 { 5670 color: var(--wui-color-fg-200); 5671 } 5672 5673 .wui-color-fg-300 { 5674 color: var(--wui-color-fg-300); 5675 } 5676 5677 .wui-bg-color-inherit { 5678 background-color: var(--wui-color-inherit); 5679 } 5680 5681 .wui-bg-color-blue-100 { 5682 background-color: var(--wui-color-accent-100); 5683 } 5684 5685 .wui-bg-color-error-100 { 5686 background-color: var(--wui-color-error-100); 5687 } 5688 5689 .wui-bg-color-success-100 { 5690 background-color: var(--wui-color-success-100); 5691 } 5692 5693 .wui-bg-color-inverse-100 { 5694 background-color: var(--wui-color-inverse-100); 5695 } 5696 5697 .wui-bg-color-inverse-000 { 5698 background-color: var(--wui-color-inverse-000); 5699 } 5700 5701 .wui-bg-color-fg-100 { 5702 background-color: var(--wui-color-fg-100); 5703 } 5704 5705 .wui-bg-color-fg-200 { 5706 background-color: var(--wui-color-fg-200); 5707 } 5708 5709 .wui-bg-color-fg-300 { 5710 background-color: var(--wui-color-fg-300); 5711 } 5712`;function eR(e){return function(t){return"function"==typeof t?(customElements.get(e)||customElements.define(e,t),t):function(e,t){let{kind:r,elements:n}=t;return{kind:r,elements:n,finisher(t){customElements.get(e)||customElements.define(e,t)}}}(e,t)}}var eO=h` 5713 :host { 5714 display: block; 5715 border-radius: clamp(0px, var(--wui-border-radius-l), 44px); 5716 box-shadow: 0 0 0 1px var(--wui-color-gray-glass-005); 5717 background-color: var(--wui-color-modal-bg); 5718 overflow: hidden; 5719 } 5720`;let eP=class extends em{render(){return Q`<slot></slot>`}};eP.styles=[eS,eO],eP=function(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}([eR("wui-card")],eP);/** 5721 * @license 5722 * Copyright 2017 Google LLC 5723 * SPDX-License-Identifier: BSD-3-Clause 5724 */let eN={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:S},eM=(e=eN,t,r)=>{let{kind:n,metadata:i}=r,o=globalThis.litPropertyMetadata.get(i);if(void 0===o&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(r.name,e),"accessor"===n){let{name:n}=r;return{set(r){let i=t.get.call(this);t.set.call(this,r),this.requestUpdate(n,i,e)},init(t){return void 0!==t&&this.P(n,void 0,e),t}}}if("setter"===n){let{name:n}=r;return function(r){let i=this[n];t.call(this,r),this.requestUpdate(n,i,e)}}throw Error("Unsupported decorator location: "+n)};function eD(e){return(t,r)=>"object"==typeof r?eM(e,t,r):((e,t,r)=>{let n=t.hasOwnProperty(r);return t.constructor.createProperty(r,n?{...e,wrapped:!0}:e),n?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)}/** 5725 * @license 5726 * Copyright 2017 Google LLC 5727 * SPDX-License-Identifier: BSD-3-Clause 5728 */function eB(e){return eD({...e,state:!0,attribute:!1})}var e$=h` 5729 :host { 5730 display: flex; 5731 aspect-ratio: 1 / 1; 5732 color: var(--local-color); 5733 width: var(--local-width); 5734 } 5735 5736 svg { 5737 width: inherit; 5738 height: inherit; 5739 object-fit: contain; 5740 object-position: center; 5741 } 5742`;let eU=J`<svg 5743 width="14" 5744 height="14" 5745 viewBox="0 0 14 14" 5746 fill="none" 5747 xmlns="http://www.w3.org/2000/svg" 5748> 5749 <path 5750 fill="currentColor" 5751 fill-rule="evenodd" 5752 clip-rule="evenodd" 5753 d="M7.0023 0.875C7.48571 0.875 7.8776 1.26675 7.8776 1.75V6.125H12.2541C12.7375 6.125 13.1294 6.51675 13.1294 7C13.1294 7.48325 12.7375 7.875 12.2541 7.875H7.8776V12.25C7.8776 12.7332 7.48571 13.125 7.0023 13.125C6.51889 13.125 6.12701 12.7332 6.12701 12.25V7.875H1.75054C1.26713 7.875 0.875244 7.48325 0.875244 7C0.875244 6.51675 1.26713 6.125 1.75054 6.125H6.12701V1.75C6.12701 1.26675 6.51889 0.875 7.0023 0.875Z" 5754 fill="#667dff" 5755 /></svg 5756>`,eL=J`<svg fill="none" viewBox="0 0 24 24"> 5757 <path 5758 style="fill: var(--wui-color-accent-100);" 5759 d="M10.2 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 6.6
5759a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM10.2 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0Z" 5760 /> 5761</svg>`,ej=J`<svg 5762 fill="none" 5763 viewBox="0 0 21 20" 5764> 5765 <path 5766 fill="currentColor" 5767 fill-rule="evenodd" 5768 d="M10.5 2.42908C6.31875 2.42908 2.92859 5.81989 2.92859 10.0034C2.92859 14.1869 6.31875 17.5777 10.5 17.5777C14.6813 17.5777 18.0714 14.1869 18.0714 10.0034C18.0714 5.81989 14.6813 2.42908 10.5 2.42908ZM0.928589 10.0034C0.928589 4.71596 5.21355 0.429077 10.5 0.429077C15.7865 0.429077 20.0714 4.71596 20.0714 10.0034C20.0714 15.2908 15.7865 19.5777 10.5 19.5777C5.21355 19.5777 0.928589 15.2908 0.928589 10.0034ZM10.5 5.75003C11.0523 5.75003 11.5 6.19774 11.5 6.75003L11.5 10.8343L12.7929 9.54137C13.1834 9.15085 13.8166 9.15085 14.2071 9.54137C14.5976 9.9319 14.5976 10.5651 14.2071 10.9556L11.2071 13.9556C10.8166 14.3461 10.1834 14.3461 9.79291 13.9556L6.79291 10.9556C6.40239 10.5651 6.40239 9.9319 6.79291 9.54137C7.18343 9.15085 7.8166 9.15085 8.20712 9.54137L9.50002 10.8343L9.50002 6.75003C9.50002 6.19774 9.94773 5.75003 10.5 5.75003Z" 5769 clip-rule="evenodd" 5770 /></svg 5771>`,ez=J` 5772<svg width="36" height="36"> 5773 <path 5774 d="M28.724 0H7.271A7.269 7.269 0 0 0 0 7.272v21.46A7.268 7.268 0 0 0 7.271 36H28.73A7.272 7.272 0 0 0 36 28.728V7.272A7.275 7.275 0 0 0 28.724 0Z" 5775 fill="url(#a)" 5776 /> 5777 <path 5778 d="m17.845 8.271.729-1.26a1.64 1.64 0 1 1 2.843 1.638l-7.023 12.159h5.08c1.646 0 2.569 1.935 1.853 3.276H6.434a1.632 1.632 0 0 1-1.638-1.638c0-.909.73-1.638 1.638-1.638h4.176l5.345-9.265-1.67-2.898a1.642 1.642 0 0 1 2.844-1.638l.716 1.264Zm-6.317 17.5-1.575 2.732a1.64 1.64 0 1 1-2.844-1.638l1.17-2.025c1.323-.41 2.398-.095 3.249.931Zm13.56-4.954h4.262c.909 0 1.638.729 1.638 1.638 0 .909-.73 1.638-1.638 1.638h-2.367l1.597 2.772c.45.788.185 1.782-.602 2.241a1.642 1.642 0 0 1-2.241-.603c-2.69-4.666-4.711-8.159-6.052-10.485-1.372-2.367-.391-4.743.576-5.549 1.075 1.846 2.682 4.631 4.828 8.348Z" 5779 fill="#fff" 5780 /> 5781 <defs> 5782 <linearGradient id="a" x1="18" y1="0" x2="18" y2="36" gradientUnits="userSpaceOnUse"> 5783 <stop stop-color="#18BFFB" /> 5784 <stop offset="1" stop-color="#2072F3" /> 5785 </linearGradient> 5786 </defs> 5787</svg>`,eF=J`<svg fill="none" viewBox="0 0 40 40"> 5788 <g clip-path="url(#a)"> 5789 <g clip-path="url(#b)"> 5790 <circle cx="20" cy="19.89" r="20" fill="#000" /> 5791 <g clip-path="url(#c)"> 5792 <path 5793 fill="#fff" 5794 d="M28.77 23.3c-.69 1.99-2.75 5.52-4.87 5.56-1.4.03-1.86-.84-3.46-.84-1.61 0-2.12.81-3.45.86-2.25.1-5.72-5.1-5.72-9.62 0-4.15 2.9-6.2 5.42-6.25 1.36-.02 2.64.92 3.47.92.83 0 2.38-1.13 4.02-.97.68.03 2.6.28 3.84 2.08-3.27 2.14-2.76 6.61.75 8.25ZM24.2 7.88c-2.47.1-4.49 2.69-4.2 4.84 2.28.17 4.47-2.39 4.2-4.84Z" 5795 /> 5796 </g> 5797 </g> 5798 </g> 5799 <defs> 5800 <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> 5801 <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 5802 <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath> 5803 </defs> 5804</svg>`,eH=J`<svg fill="none" viewBox="0 0 14 15"> 5805 <path 5806 fill="currentColor" 5807 fill-rule="evenodd" 5808 d="M7 1.99a1 1 0 0 1 1 1v7.58l2.46-2.46a1 1 0 0 1 1.41 1.42L7.7 13.69a1 1 0 0 1-1.41 0L2.12 9.53A1 1 0 0 1 3.54 8.1L6 10.57V3a1 1 0 0 1 1-1Z" 5809 clip-rule="evenodd" 5810 /> 5811</svg>`,eq=J`<svg fill="none" viewBox="0 0 14 15"> 5812 <path 5813 fill="currentColor" 5814 fill-rule="evenodd" 5815 d="M13 7.99a1 1 0 0 1-1 1H4.4l2.46 2.46a1 1 0 1 1-1.41 1.41L1.29 8.7a1 1 0 0 1 0-1.41L5.46 3.1a1 1 0 0 1 1.41 1.42L4.41 6.99H12a1 1 0 0 1 1 1Z" 5816 clip-rule="evenodd" 5817 /> 5818</svg>`,eW=J`<svg fill="none" viewBox="0 0 14 15"> 5819 <path 5820 fill="currentColor" 5821 fill-rule="evenodd" 5822 d="M1 7.99a1 1 0 0 1 1-1h7.58L7.12 4.53A1 1 0 1 1 8.54 3.1l4.16 4.17a1 1 0 0 1 0 1.41l-4.16 4.17a1 1 0 1 1-1.42-1.41l2.46-2.46H2a1 1 0 0 1-1-1Z" 5823 clip-rule="evenodd" 5824 /> 5825</svg>`,eV=J`<svg fill="none" viewBox="0 0 14 15"> 5826 <path 5827 fill="currentColor" 5828 fill-rule="evenodd" 5829 d="M7 13.99a1 1 0 0 1-1-1V5.4L3.54 7.86a1 1 0 0 1-1.42-1.41L6.3 2.28a1 1 0 0 1 1.41 0l4.17 4.17a1 1 0 1 1-1.41 1.41L8 5.4v7.59a1 1 0 0 1-1 1Z" 5830 clip-rule="evenodd" 5831 /> 5832</svg>`,eZ=J`<svg 5833 xmlns="http://www.w3.org/2000/svg" 5834 width="12" 5835 height="13" 5836 viewBox="0 0 12 13" 5837 fill="none" 5838> 5839 <path 5840 fill-rule="evenodd" 5841 clip-rule="evenodd" 5842 d="M5.61391 1.57124C5.85142 1.42873 6.14813 1.42873 6.38564 1.57124L11.0793 4.38749C11.9179 4.89067 11.5612 6.17864 10.5832 6.17864H9.96398V10.0358H10.2854C10.6996 10.0358 11.0354 10.3716 11.0354 10.7858C11.0354 11.2 10.6996 11.5358 10.2854 11.5358H1.71416C1.29995 11.5358 0.964172 11.2 0.964172 10.7858C0.964172 10.3716 1.29995 10.0358 1.71416 10.0358H2.03558L2.03558 6.17864H1.41637C0.438389 6.17864 0.0816547 4.89066 0.920263 4.38749L5.61391 1.57124ZM3.53554 6.17864V10.0358H5.24979V6.17864H3.53554ZM6.74976 6.17864V10.0358H8.46401V6.17864H6.74976ZM8.64913 4.67864H3.35043L5.99978 3.089L8.64913 4.67864Z" 5843 fill="currentColor" 5844 /></svg 5845>`,eG=J`<svg fill="none" viewBox="0 0 20 20"> 5846 <path 5847 fill="currentColor" 5848 fill-rule="evenodd" 5849 d="M4 6.4a1 1 0 0 1-.46.89 6.98 6.98 0 0 0 .38 6.18A7 7 0 0 0 16.46 7.3a1 1 0 0 1-.47-.92 7 7 0 0 0-12 .03Zm-2.02-.5a9 9 0 1 1 16.03 8.2A9 9 0 0 1 1.98 5.9Z" 5850 clip-rule="evenodd" 5851 /> 5852 <path 5853 fill="currentColor" 5854 fill-rule="evenodd" 5855 d="M6.03 8.63c-1.46-.3-2.72-.75-3.6-1.35l-.02-.01-.14-.11a1 1 0 0 1 1.2-1.6l.1.08c.6.4 1.52.74 2.69 1 .16-.99.39-1.88.67-2.65.3-.79.68-1.5 1.15-2.02A2.58 2.58 0 0 1 9.99 1c.8 0 1.45.44 1.92.97.47.52.84 1.23 1.14 2.02.29.77.52 1.66.68 2.64a8 8 0 0 0 2.7-1l.26-.18h.48a1 1 0 0 1 .12 2c-.86.51-2.01.91-3.34 1.18a22.24 22.24 0 0 1-.03 3.19c1.45.29 2.7.73 3.58 1.31a1 1 0 0 1-1.1 1.68c-.6-.4-1.56-.76-2.75-1-.15.8-.36 1.55-.6 2.2-.3.79-.67 1.5-1.14 2.02-.47.53-1.12.97-1.92.97-.8 0-1.45-.44-1.91-.97a6.51 6.51 0 0 1-1.15-2.02c-.24-.65-.44-1.4-.6-2.2-1.18.24-2.13.6-2.73.99a1 1 0 1 1-1.1-1.67c.88-.58 2.12-1.03 3.57-1.31a22.03 22.03 0 0 1-.04-3.2Zm2.2-1.7c.15-.86.34-1.61.58-2.24.24-.65.51-1.12.76-1.4.25-.28.4-.29.42-.29.03 0 .17.01.42.3.25.27.52.74.77 1.4.23.62.43 1.37.57 2.22a19.96 19.96 0 0 1-3.52 0Zm-.18 4.6a20.1 20.1 0 0 1-.03-2.62 21.95 21.95 0 0 0 3.94 0 20.4 20.4 0 0 1-.03 2.63 21.97 21.97 0 0 0-3.88 0Zm.27 2c.13.66.3 1.26.49 1.78.24.65.51 1.12.76 1.4.25.28.4.29.42.29.03 0 .17-.01.42-.3.25-.27.52-.74.77-1.4.19-.5.36-1.1.49-1.78a20.03 20.03 0 0 0-3.35 0Z" 5856 clip-rule="evenodd" 5857 /> 5858</svg>`,eK=J`<svg 5859 xmlns="http://www.w3.org/2000/svg" 5860 width="12" 5861 height="13" 5862 viewBox="0 0 12 13" 5863 fill="none" 5864> 5865 <path 5866 fill-rule="evenodd" 5867 clip-rule="evenodd" 5868 d="M4.16072 2C4.17367 2 4.18665 2 4.19968 2L7.83857 2C8.36772 1.99998 8.82398 1.99996 9.19518 2.04018C9.5895 2.0829 9.97577 2.17811 10.3221 2.42971C10.5131 2.56849 10.6811 2.73647 10.8198 2.92749C11.0714 3.27379 11.1666 3.66007 11.2094 4.0544C11.2496 4.42561 11.2496 4.88188 11.2495 5.41105V7.58896C11.2496 8.11812 11.2496 8.57439 11.2094 8.94561C11.1666 9.33994 11.0714 9.72621 10.8198 10.0725C10.6811 10.2635 10.5131 10.4315 10.3221 10.5703C9.97577 10.8219 9.5895 10.9171 9.19518 10.9598C8.82398 11 8.36772 11 7.83856 11H4.16073C3.63157 11 3.17531 11 2.80411 10.9598C2.40979 10.9171 2.02352 10.8219 1.67722 10.5703C1.48621 10.4315 1.31824 10.2635 1.17946 10.0725C0.927858 9.72621 0.832652 9.33994 0.78993 8.94561C0.749713 8.5744 0.749733 8.11813 0.749757 7.58896L0.749758 5.45C0.749758 5.43697 0.749758 5.42399 0.749757 5.41104C0.749733 4.88188 0.749713 4.42561 0.78993 4.0544C0.832652 3.66007 0.927858 3.27379 1.17946 2.92749C1.31824 2.73647 1.48621 2.56849 1.67722 2.42971C2.02352 2.17811 2.40979 2.0829 2.80411 2.04018C3.17531 1.99996 3.63157 1.99998 4.16072 2ZM2.96567 3.53145C2.69897 3.56034 2.60687 3.60837 2.55888 3.64324C2.49521 3.6895 2.43922 3.74549 2.39296 3.8
58680916C2.35809 3.85715 2.31007 3.94926 2.28117 4.21597C2.26629 4.35335 2.25844 4.51311 2.25431 4.70832H9.74498C9.74085 4.51311 9.733 4.35335 9.71812 4.21597C9.68922 3.94926 9.6412 3.85715 9.60633 3.80916C9.56007 3.74549 9.50408 3.6895 9.44041 3.64324C9.39242 3.60837 9.30031 3.56034 9.03362 3.53145C8.75288 3.50103 8.37876 3.5 7.79961 3.5H4.19968C3.62053 3.5 3.24641 3.50103 2.96567 3.53145ZM9.74956 6.20832H2.24973V7.55C2.24973 8.12917 2.25076 8.5033 2.28117 8.78404C2.31007 9.05074 2.35809 9.14285 2.39296 9.19084C2.43922 9.25451 2.49521 9.31051 2.55888 9.35677C2.60687 9.39163 2.69897 9.43966 2.96567 9.46856C3.24641 9.49897 3.62053 9.5 4.19968 9.5H7.79961C8.37876 9.5 8.75288 9.49897 9.03362 9.46856C9.30032 9.43966 9.39242 9.39163 9.44041 9.35677C9.50408 9.31051 9.56007 9.25451 9.60633 9.19084C9.6412 9.14285 9.68922 9.05075 9.71812 8.78404C9.74854 8.5033 9.74956 8.12917 9.74956 7.55V6.20832ZM6.74963 8C6.74963 7.58579 7.08541 7.25 7.49961 7.25H8.2496C8.6638 7.25 8.99958 7.58579 8.99958 8C8.99958 8.41422 8.6638 8.75 8.2496 8.75H7.49961C7.08541 8.75 6.74963 8.41422 6.74963 8Z" 5869 fill="currentColor" 5870 /></svg 5871>`,eY=J`<svg fill="none" viewBox="0 0 14 14"> 5872 <path 5873 fill="currentColor" 5874 fill-rule="evenodd" 5875 d="M12.9576 2.23383C13.3807 2.58873 13.4361 3.21947 13.0812 3.64263L6.37159 11.6426C6.19161 11.8572 5.92989 11.9865 5.65009 11.999C5.3703 12.0115 5.09808 11.9062 4.89965 11.7085L0.979321 7.80331C0.588042 7.41354 0.586817 6.78038 0.976585 6.3891C1.36635 5.99782 1.99952 5.99659 2.3908 6.38636L5.53928 9.52268L11.5488 2.35742C11.9037 1.93426 12.5344 1.87893 12.9576 2.23383Z" 5876 clip-rule="evenodd" 5877 /> 5878</svg>`,eQ=J`<svg 5879 width="28" 5880 height="28" 5881 viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"> 5882 <path 5883 fill-rule="evenodd" 5884 clip-rule="evenodd" 5885 d="M25.5297 4.92733C26.1221 5.4242 26.1996 6.30724 25.7027 6.89966L12.2836 22.8997C12.0316 23.2001 11.6652 23.3811 11.2735 23.3986C10.8817 23.4161 10.5006 23.2686 10.2228 22.9919L2.38218 15.1815C1.83439 14.6358 1.83268 13.7494 2.37835 13.2016C2.92403 12.6538 3.81046 12.6521 4.35825 13.1978L11.1183 19.9317L23.5573 5.10036C24.0542 4.50794 24.9372 4.43047 25.5297 4.92733Z" 5886 fill="#26D962"/> 5887</svg> 5888`,eJ=J`<svg fill="none" viewBox="0 0 16 16"> 5889 <path 5890 fill="currentColor" 5891 fill-rule="evenodd" 5892 d="M1.46 4.96a1 1 0 0 1 1.41 0L8 10.09l5.13-5.13a1 1 0 1 1 1.41 1.41l-5.83 5.84a1 1 0 0 1-1.42 0L1.46 6.37a1 1 0 0 1 0-1.41Z" 5893 clip-rule="evenodd" 5894 /> 5895</svg>`,eX=J`<svg fill="none" viewBox="0 0 16 16"> 5896 <path 5897 fill="currentColor" 5898 fill-rule="evenodd" 5899 d="M11.04 1.46a1 1 0 0 1 0 1.41L5.91 8l5.13 5.13a1 1 0 1 1-1.41 1.41L3.79 8.71a1 1 0 0 1 0-1.42l5.84-5.83a1 1 0 0 1 1.41 0Z" 5900 clip-rule="evenodd" 5901 /> 5902</svg>`,e0=J`<svg fill="none" viewBox="0 0 16 16"> 5903 <path 5904 fill="currentColor" 5905 fill-rule="evenodd" 5906 d="M4.96 14.54a1 1 0 0 1 0-1.41L10.09 8 4.96 2.87a1 1 0 0 1 1.41-1.41l5.84 5.83a1 1 0 0 1 0 1.42l-5.84 5.83a1 1 0 0 1-1.41 0Z" 5907 clip-rule="evenodd" 5908 /> 5909</svg>`,e1=J`<svg fill="none" viewBox="0 0 16 16"> 5910 <path 5911 fill="currentColor" 5912 fill-rule="evenodd" 5913 d="M14.54 11.04a1 1 0 0 1-1.41 0L8 5.92l-5.13 5.12a1 1 0 1 1-1.41-1.41l5.83-5.84a1 1 0 0 1 1.42 0l5.83 5.84a1 1 0 0 1 0 1.41Z" 5914 clip-rule="evenodd" 5915 /> 5916</svg>`,e2=J`<svg width="36" height="36" fill="none"> 5917 <path 5918 fill="#fff" 5919 fill-opacity=".05" 5920 d="M0 14.94c0-5.55 0-8.326 1.182-10.4a9 9 0 0 1 3.359-3.358C6.614 0 9.389 0 14.94 0h6.12c5.55 0 8.326 0 10.4 1.182a9 9 0 0 1 3.358 3.359C36 6.614 36 9.389 36 14.94v6.12c0 5.55 0 8.326-1.182 10.4a9 9 0 0 1-3.359 3.358C29.386 36 26.611 36 21.06 36h-6.12c-5.55 0-8.326 0-10.4-1.182a9 9 0 0 1-3.358-3.359C0 29.386 0 26.611 0 21.06v-6.12Z" 5921 /> 5922 <path 5923 stroke="#fff" 5924 stroke-opacity=".05" 5925 d="M14.94.5h6.12c2.785 0 4.84 0 6.46.146 1.612.144 2.743.43 3.691.97a8.5 8.5 0 0 1 3.172 3.173c.541.948.826 2.08.971 3.692.145 1.62.146 3.675.146 6.459v6.12c0 2.785 0 4.84-.146 6.46-.145 1.612-.43 2.743-.97 3.691a8.5 8.5 0 0 1-3.173 3.172c-.948.541-2.08.826-3.692.971-1.62.145-3.674.146-6.459.146h-6.12c-2.784 0-4.84 0-6.46-.146-1.612-.145-2.743-.43-3.691-.97a8.5 8.5 0 0 1-3.172-3.173c-.541-.948-.827-2.08-.971-3.692C.5 25.9.5 23.845.5 21.06v-6.12c0-2.784 0-4.84.146-6.46.144-1.612.43-2.743.97-3.691A8.5 8.5 0 0 1 4.79 1.617C5.737 1.076 6.869.79 8.48.646 10.1.5 12.156.5 14.94.5Z" 5926 /> 5927 <path 5928 fill="url(#a)" 5929 d="M17.998 10.8h12.469a14.397 14.397 0 0 0-24.938.001l6.234 10.798.006-.001a7.19 7.19 0 0 1 6.23-10.799Z" 5930 /> 5931 <path 5932 fill="url(#b)" 5933 d="m24.237 21.598-6.234 10.798A14.397 14.397 0 0 0 30.47 10.798H18.002l-.002.006a7.191 7.191 0 0 1 6.237 10.794Z" 5934 /> 5935 <path 5936 fill="url(#c)" 5937 d="M11.765 21.601 5.531 10.803A14.396 14.396 0 0 0 18.001 32.4l6.235-10.798-.004-.004a7.19 7.19 0 0 1-12.466.004Z" 5938 /> 5939 <path fill="#fff" d="M18 25.2a7.2 7.2 0 1 0 0-14.4 7.2 7.2 0 0 0 0 14.4Z" /> 5940 <path fill="#1A73E8" d="M18 23.7a5.7 5.7 0 1 0 0-11.4 5.7 5.7 0 0 0 0 11.4Z" /> 5941 <defs> 5942 <linearGradient 5943 id="a" 5944 x1="6.294" 5945 x2="41.1" 5946 y1="5.995" 5947 y2="5.995" 5948 gradientUnits="userSpaceOnUse" 5949 > 5950 <stop stop-color="#D93025" /> 5951 <stop offset="1" stop-color="#EA4335" /> 5952 </linearGradient> 5953 <linearGradient 5954 id="b" 5955 x1="20.953" 5956 x2="37.194" 5957 y1="32.143" 5958 y2="2.701" 5959 gradientUnits="userSpaceOnUse" 5960 > 5961 <stop stop-color="#FCC934" /> 5962 <stop offset="1" stop-color="#FBBC04" /> 5963 </linearGradient> 5964 <linearGradient 5965 id="c" 5966 x1="25.873" 5967 x2="9.632" 5968 y1="31.2"
5969 y2="1.759" 5970 gradientUnits="userSpaceOnUse" 5971 > 5972 <stop stop-color="#1E8E3E" /> 5973 <stop offset="1" stop-color="#34A853" /> 5974 </linearGradient> 5975 </defs> 5976</svg>`,e3=J`<svg width="14" height="14" viewBox="0 0 14 14" fill="none"> 5977 <path 5978 fill-rule="evenodd" 5979 clip-rule="evenodd" 5980 d="M7.00235 2C4.24 2 2.00067 4.23858 2.00067 7C2.00067 9.76142 4.24 12 7.00235 12C9.7647 12 12.004 9.76142 12.004 7C12.004 4.23858 9.7647 2 7.00235 2ZM0 7C0 3.13401 3.13506 0 7.00235 0C10.8696 0 14.0047 3.13401 14.0047 7C14.0047 10.866 10.8696 14 7.00235 14C3.13506 14 0 10.866 0 7ZM7.00235 3C7.55482 3 8.00269 3.44771 8.00269 4V6.58579L9.85327 8.43575C10.2439 8.82627 10.2439 9.45944 9.85327 9.84996C9.46262 10.2405 8.82924 10.2405 8.43858 9.84996L6.29501 7.70711C6.10741 7.51957 6.00201 7.26522 6.00201 7V4C6.00201 3.44771 6.44988 3 7.00235 3Z" 5981 fill="currentColor" 5982 /> 5983</svg>`,e5=J`<svg fill="none" viewBox="0 0 16 16"> 5984 <path 5985 fill="currentColor" 5986 fill-rule="evenodd" 5987 d="M2.54 2.54a1 1 0 0 1 1.42 0L8 6.6l4.04-4.05a1 1 0 1 1 1.42 1.42L9.4 8l4.05 4.04a1 1 0 0 1-1.42 1.42L8 9.4l-4.04 4.05a1 1 0 0 1-1.42-1.42L6.6 8 2.54 3.96a1 1 0 0 1 0-1.42Z" 5988 clip-rule="evenodd" 5989 /> 5990</svg>`,e4=J`<svg fill="none" viewBox="0 0 20 20"> 5991 <path 5992 fill="currentColor" 5993 fill-rule="evenodd" 5994 d="M10 3a7 7 0 0 0-6.85 8.44l8.29-8.3C10.97 3.06 10.49 3 10 3Zm3.49.93-9.56 9.56c.32.55.71 1.06 1.16 1.5L15 5.1a7.03 7.03 0 0 0-1.5-1.16Zm2.7 2.8-9.46 9.46a7 7 0 0 0 9.46-9.46ZM1.99 5.9A9 9 0 1 1 18 14.09 9 9 0 0 1 1.98 5.91Z" 5995 clip-rule="evenodd" 5996 /> 5997</svg>`,e6=J`<svg fill="none" viewBox="0 0 16 16"> 5998 <path 5999 fill="currentColor" 6000 fill-rule="evenodd" 6001 d="M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm10.66-2.65a1 1 0 0 1 .23 1.06L9.83 9.24a1 1 0 0 1-.59.58l-2.83 1.06A1 1 0 0 1 5.13 9.6l1.06-2.82a1 1 0 0 1 .58-.59L9.6 5.12a1 1 0 0 1 1.06.23ZM7.9 7.89l-.13.35.35-.13.12-.35-.34.13Z" 6002 clip-rule="evenodd" 6003 /> 6004</svg>`,e8=J`<svg 6005 xmlns="http://www.w3.org/2000/svg" 6006 width="16" 6007 height="16" 6008 viewBox="0 0 16 16" 6009 fill="none" 6010> 6011 <path 6012 fill="currentColor" 6013 fill-rule="evenodd" 6014 clip-rule="evenodd" 6015 d="M9.21498 1.28565H10.5944C11.1458 1.28562 11.6246 1.2856 12.0182 1.32093C12.4353 1.35836 12.853 1.44155 13.2486 1.66724C13.7005 1.92498 14.0749 2.29935 14.3326 2.75122C14.5583 3.14689 14.6415 3.56456 14.6789 3.9817C14.7143 4.37531 14.7142 4.85403 14.7142 5.40545V6.78489C14.7142 7.33631 14.7143 7.81503 14.6789 8.20865C14.6415 8.62578 14.5583 9.04345 14.3326 9.43912C14.0749 9.89099 13.7005 10.2654 13.2486 10.5231C12.853 10.7488 12.4353 10.832 12.0182 10.8694C11.7003 10.8979 11.3269 10.9034 10.9045 10.9045C10.9034 11.3269 10.8979 11.7003 10.8694 12.0182C10.832 12.4353 10.7488 12.853 10.5231 13.2486C10.2654 13.7005 9.89099 14.0749 9.43912 14.3326C9.04345 14.5583 8.62578 14.6415 8.20865 14.6789C7.81503 14.7143 7.33631 14.7142 6.78489 14.7142H5.40545C4.85403 14.7142 4.37531 14.7143 3.9817 14.6789C3.56456 14.6415 3.14689 14.5583 2.75122 14.3326C2.29935 14.0749 1.92498 13.7005 1.66724 13.2486C1.44155 12.853 1.35836 12.4353 1.32093 12.0182C1.2856 11.6246 1.28562 11.1458 1.28565 10.5944V9.21498C1.28562 8.66356 1.2856 8.18484 1.32093 7.79122C1.35836 7.37409 1.44155 6.95642 1.66724 6.56074C1.92498 6.10887 2.29935 5.73451 2.75122 5.47677C3.14689 5.25108 3.56456 5.16789 3.9817 5.13045C4.2996 5.10192 4.67301 5.09645 5.09541 5.09541C5.09645 4.67302 5.10192 4.2996 5.13045 3.9817C5.16789 3.56456 5.25108 3.14689 5.47676 2.75122C5.73451 2.29935 6.10887 1.92498 6.56074 1.66724C6.95642 1.44155 7.37409 1.35836 7.79122 1.32093C8.18484 1.2856 8.66356 1.28562 9.21498 1.28565ZM5.09541 7.09552C4.68397 7.09667 4.39263 7.10161 4.16046 7.12245C3.88053 7.14757 3.78516 7.18949 3.74214 7.21403C3.60139 7.29431 3.48478 7.41091 3.4045 7.55166C3.37997 7.59468 3.33804 7.69005 3.31292 7.96999C3.28659 8.26345 3.28565 8.65147 3.28565 9.25708V10.5523C3.28565 11.1579 3.28659 11.5459 3.31292 11.8394C3.33804 12.1193 3.37997 12.2147 3.4045 12.2577C3.48478 12.3985 3.60139 12.5151 3.74214 12.5954C3.78516 12.6199 3.88053 12.6618 4.16046 12.6869C4.45393 12.7133 4.84195 12.7142 5.44755 12.7142H6.74279C7.3484 12.7142 7.73641 12.7133 8.02988 12.6869C8.30981 12.6618 8.40518 12.6199 8.44821 12.5954C8.58895 12.5151 8.70556 12.3985 8.78584 12.2577C8.81038 12.2147 8.8523 12.1193 8.87742 11.8394C8.89825 11.6072 8.90319 11.3159 8.90435 10.9045C8.48219 10.9034 8.10898 10.8979 7.79122 10.8694C7.37409 10.832 6.95641 10.7488 6.56074 10.5231C6.10887 10.2654 5.73451 9.89099 5.47676 9.43912C5.25108 9.04345 5.16789 8.62578 5.13045 8.20865C5.10194 7.89089 5.09645 7.51767 5.09541 7.09552ZM7.96999 3.31292C7.69005 3.33804 7.59468 3.37997 7.55166 3.4045C7.41091 3.48478 7.29431 3.60139 7.21403 3.74214C7.18949 3.78516 7.14757 3.88053 7.12245 4.16046C7.09611 4.45393 7.09517 4.84195 7.09517 5.44755V6.74279C7.09517 7.3484 7.09611 7.73641 7.12245 8.02988
6015C7.14757 8.30981 7.18949 8.40518 7.21403 8.4482C7.29431 8.58895 7.41091 8.70556 7.55166 8.78584C7.59468 8.81038 7.69005 8.8523 7.96999 8.87742C8.26345 8.90376 8.65147 8.9047 9.25708 8.9047H10.5523C11.1579 8.9047 11.5459 8.90376 11.8394 8.87742C12.1193 8.8523 12.2147 8.81038 12.2577 8.78584C12.3985 8.70556 12.5151 8.58895 12.5954 8.4482C12.6199 8.40518 12.6618 8.30981 12.6869 8.02988C12.7133 7.73641 12.7142 7.3484 12.7142 6.74279V5.44755C12.7142 4.84195 12.7133 4.45393 12.6869 4.16046C12.6618 3.88053 12.6199 3.78516 12.5954 3.74214C12.5151 3.60139 12.3985 3.48478 12.2577 3.4045C12.2147 3.37997 12.1193 3.33804 11.8394 3.31292C11.5459 3.28659 11.1579 3.28565 10.5523 3.28565H9.25708C8.65147 3.28565 8.26345 3.28659 7.96999 3.31292Z" 6016 fill="#788181" 6017 /></svg 6018>`,e9=J` <svg fill="none" viewBox="0 0 13 4"> 6019 <path fill="currentColor" d="M.5 0h12L8.9 3.13a3.76 3.76 0 0 1-4.8 0L.5 0Z" /> 6020</svg>`,e7=J`<svg fill="none" viewBox="0 0 14 6"> 6021 <path style="fill: var(--wui-color-bg-150);" d="M0 1h14L9.21 5.12a3.31 3.31 0 0 1-4.49 0L0 1Z" /> 6022 <path 6023 style="stroke: var(--wui-color-inverse-100);" 6024 stroke-opacity=".05" 6025 d="M1.33 1.5h11.32L8.88 4.75l-.01.01a2.81 2.81 0 0 1-3.8 0l-.02-.01L1.33 1.5Z" 6026 /> 6027 <path 6028 style="fill: var(--wui-color-bg-150);" 6029 d="M1.25.71h11.5L9.21 3.88a3.31 3.31 0 0 1-4.49 0L1.25.71Z" 6030 /> 6031</svg> `,te=J`<svg fill="none" viewBox="0 0 20 20"> 6032 <path 6033 fill="currentColor" 6034 fill-rule="evenodd" 6035 d="M13.66 2H6.34c-1.07 0-1.96 0-2.68.08-.74.08-1.42.25-2.01.68a4 4 0 0 0-.89.89c-.43.6-.6 1.27-.68 2.01C0 6.38 0 7.26 0 8.34v.89c0 1.07 0 1.96.08 2.68.08.74.25 1.42.68 2.01a4 4 0 0 0 .89.89c.6.43 1.27.6 2.01.68a27 27 0 0 0 2.68.08h7.32a27 27 0 0 0 2.68-.08 4.03 4.03 0 0 0 2.01-.68 4 4 0 0 0 .89-.89c.43-.6.6-1.27.68-2.01.08-.72.08-1.6.08-2.68v-.89c0-1.07 0-1.96-.08-2.68a4.04 4.04 0 0 0-.68-2.01 4 4 0 0 0-.89-.89c-.6-.43-1.27-.6-2.01-.68C15.62 2 14.74 2 13.66 2ZM2.82 4.38c.2-.14.48-.25 1.06-.31C4.48 4 5.25 4 6.4 4h7.2c1.15 0 1.93 0 2.52.07.58.06.86.17 1.06.31a2 2 0 0 1 .44.44c.14.2.25.48.31 1.06.07.6.07 1.37.07 2.52v.77c0 1.15 0 1.93-.07 2.52-.06.58-.17.86-.31 1.06a2 2 0 0 1-.44.44c-.2.14-.48.25-1.06.32-.6.06-1.37.06-2.52.06H6.4c-1.15 0-1.93 0-2.52-.06-.58-.07-.86-.18-1.06-.32a2 2 0 0 1-.44-.44c-.14-.2-.25-.48-.31-1.06C2 11.1 2 10.32 2 9.17V8.4c0-1.15 0-1.93.07-2.52.06-.58.17-.86.31-1.06a2 2 0 0 1 .44-.44Z" 6036 clip-rule="evenodd" 6037 /> 6038 <path fill="currentColor" d="M6.14 17.57a1 1 0 1 0 0 2h7.72a1 1 0 1 0 0-2H6.14Z" /> 6039</svg>`,tt=J`<svg fill="none" viewBox="0 0 16 16"> 6040 <path 6041 fill="currentColor" 6042 fill-rule="evenodd" 6043 d="M6.07 1h.57a1 1 0 0 1 0 2h-.52c-.98 0-1.64 0-2.14.06-.48.05-.7.14-.84.24-.13.1-.25.22-.34.35-.1.14-.2.35-.25.83-.05.5-.05 1.16-.05 2.15v2.74c0 .99 0 1.65.05 2.15.05.48.14.7.25.83.1.14.2.25.34.35.14.1.36.2.84.25.5.05 1.16.05 2.14.05h.52a1 1 0 0 1 0 2h-.57c-.92 0-1.69 0-2.3-.07a3.6 3.6 0 0 1-1.8-.61c-.3-.22-.57-.49-.8-.8a3.6 3.6 0 0 1-.6-1.79C.5 11.11.5 10.35.5 9.43V6.58c0-.92 0-1.7.06-2.31a3.6 3.6 0 0 1 .62-1.8c.22-.3.48-.57.79-.79a3.6 3.6 0 0 1 1.8-.61C4.37 1 5.14 1 6.06 1ZM9.5 3a1 1 0 0 1 1.42 0l4.28 4.3a1 1 0 0 1 0 1.4L10.93 13a1 1 0 0 1-1.42-1.42L12.1 9H6.8a1 1 0 1 1 0-2h5.3L9.51 4.42a1 1 0 0 1 0-1.41Z" 6044 clip-rule="evenodd" 6045 /> 6046</svg>`,tr=J`<svg fill="none" viewBox="0 0 40 40"> 6047 <g clip-path="url(#a)"> 6048 <g clip-path="url(#b)"> 6049 <circle cx="20" cy="19.89" r="20" fill="#5865F2" /> 6050 <path 6051 fill="#fff" 6052 fill-rule="evenodd" 6053 d="M25.71 28.15C30.25 28 32 25.02 32 25.02c0-6.61-2.96-11.98-2.96-11.98-2.96-2.22-5.77-2.15-5.77-2.15l-.29.32c3.5 1.07 5.12 2.61 5.12 2.61a16.75 16.75 0 0 0-10.34-1.93l-.35.04a15.43 15.43 0 0 0-5.88 1.9s1.71-1.63 5.4-2.7l-.2-.24s-2.81-.07-5.77 2.15c0 0-2.96 5.37-2.96 11.98 0 0 1.73 2.98 6.27 3.13l1.37-1.7c-2.6-.79-3.6-2.43-3.6-2.43l.58.35.09.06.08.04.02.01.08.05a17.25 17.25 0 0 0 4.52 1.58 14.4 14.4 0 0 0 8.3-.86c.72-.27 1.52-.66 2.37-1.21 0 0-1.03 1.68-3.72 2.44.61.78 1.35 1.67 1.35 1.67Zm-9.55-9.6c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28.01-1.25-.93-2.28-2.1-2.28Zm7.5 0c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28 0-1.25-.93-2.28-2.1-2.28Z" 6054 clip-rule="evenodd" 6055 /> 6056 </g> 6057 </g>
6058 <defs> 6059 <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> 6060 <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 6061 </defs> 6062</svg>`,tn=J`<svg fill="none" viewBox="0 0 16 16"> 6063 <path 6064 fill="currentColor" 6065 d="M4.25 7a.63.63 0 0 0-.63.63v3.97c0 .28-.2.51-.47.54l-.75.07a.93.93 0 0 1-.9-.47A7.51 7.51 0 0 1 5.54.92a7.5 7.5 0 0 1 9.54 4.62c.12.35.06.72-.16 1-.74.97-1.68 1.78-2.6 2.44V4.44a.64.64 0 0 0-.63-.64h-1.06c-.35 0-.63.3-.63.64v5.5c0 .23-.12.42-.32.5l-.52.23V6.05c0-.36-.3-.64-.64-.64H7.45c-.35 0-.64.3-.64.64v4.97c0 .25-.17.46-.4.52a5.8 5.8 0 0 0-.45.11v-4c0-.36-.3-.65-.64-.65H4.25ZM14.07 12.4A7.49 7.49 0 0 1 3.6 14.08c4.09-.58 9.14-2.5 11.87-6.6v.03a7.56 7.56 0 0 1-1.41 4.91Z" 6066 /> 6067</svg>`,ti=J`<svg fill="none" viewBox="0 0 14 15"> 6068 <path 6069 fill="currentColor" 6070 fill-rule="evenodd" 6071 d="M6.71 2.99a.57.57 0 0 0-.57.57 1 1 0 0 1-1 1c-.58 0-.96 0-1.24.03-.27.03-.37.07-.42.1a.97.97 0 0 0-.36.35c-.04.08-.09.21-.11.67a2.57 2.57 0 0 1 0 5.13c.02.45.07.6.11.66.09.15.21.28.36.36.07.04.21.1.67.12a2.57 2.57 0 0 1 5.12 0c.46-.03.6-.08.67-.12a.97.97 0 0 0 .36-.36c.03-.04.07-.14.1-.41.02-.29.03-.66.03-1.24a1 1 0 0 1 1-1 .57.57 0 0 0 0-1.15 1 1 0 0 1-1-1c0-.58 0-.95-.03-1.24a1.04 1.04 0 0 0-.1-.42.97.97 0 0 0-.36-.36 1.04 1.04 0 0 0-.42-.1c-.28-.02-.65-.02-1.24-.02a1 1 0 0 1-1-1 .57.57 0 0 0-.57-.57ZM5.15 13.98a1 1 0 0 0 .99-1v-.78a.57.57 0 0 1 1.14 0v.78a1 1 0 0 0 .99 1H8.36a66.26 66.26 0 0 0 .73 0 3.78 3.78 0 0 0 1.84-.38c.46-.26.85-.64 1.1-1.1.23-.4.32-.8.36-1.22.02-.2.03-.4.03-.63a2.57 2.57 0 0 0 0-4.75c0-.23-.01-.44-.03-.63a2.96 2.96 0 0 0-.35-1.22 2.97 2.97 0 0 0-1.1-1.1c-.4-.22-.8-.31-1.22-.35a8.7 8.7 0 0 0-.64-.04 2.57 2.57 0 0 0-4.74 0c-.23 0-.44.02-.63.04-.42.04-.83.13-1.22.35-.46.26-.84.64-1.1 1.1-.33.57-.37 1.2-.39 1.84a21.39 21.39 0 0 0 0 .72v.1a1 1 0 0 0 1 .99h.78a.57.57 0 0 1 0 1.15h-.77a1 1 0 0 0-1 .98v.1a63.87 63.87 0 0 0 0 .73c0 .64.05 1.27.38 1.83.26.47.64.85 1.1 1.11.56.32 1.2.37 1.84.38a20.93 20.93 0 0 0 .72 0h.1Z" 6072 clip-rule="evenodd" 6073 /> 6074</svg>`,to=J`<svg fill="none" viewBox="0 0 14 15"> 6075 <path 6076 fill="currentColor" 6077 fill-rule="evenodd" 6078 d="M3.74 3.99a1 1 0 0 1 1-1H11a1 1 0 0 1 1 1v6.26a1 1 0 0 1-2 0V6.4l-6.3 6.3a1 1 0 0 1-1.4-1.42l6.29-6.3H4.74a1 1 0 0 1-1-1Z" 6079 clip-rule="evenodd" 6080 /> 6081</svg>`,ta=J`<svg fill="none" viewBox="0 0 40 40"> 6082 <g clip-path="url(#a)"> 6083 <g clip-path="url(#b)"> 6084 <circle cx="20" cy="19.89" r="20" fill="#1877F2" /> 6085 <g clip-path="url(#c)"> 6086 <path 6087 fill="#fff" 6088 d="M26 12.38h-2.89c-.92 0-1.61.38-1.61 1.34v1.66H26l-.36 4.5H2
60881.5v12H17v-12h-3v-4.5h3V12.5c0-3.03 1.6-4.62 5.2-4.62H26v4.5Z" 6089 /> 6090 </g> 6091 </g> 6092 <path 6093 fill="#1877F2" 6094 d="M40 20a20 20 0 1 0-23.13 19.76V25.78H11.8V20h5.07v-4.4c0-5.02 3-7.79 7.56-7.79 2.19 0 4.48.4 4.48.4v4.91h-2.53c-2.48 0-3.25 1.55-3.25 3.13V20h5.54l-.88 5.78h-4.66v13.98A20 20 0 0 0 40 20Z" 6095 /> 6096 <path 6097 fill="#fff" 6098 d="m27.79 25.78.88-5.78h-5.55v-3.75c0-1.58.78-3.13 3.26-3.13h2.53V8.2s-2.3-.39-4.48-.39c-4.57 0-7.55 2.77-7.55 7.78V20H11.8v5.78h5.07v13.98a20.15 20.15 0 0 0 6.25 0V25.78h4.67Z" 6099 /> 6100 </g> 6101 <defs> 6102 <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> 6103 <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 6104 <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath> 6105 </defs> 6106</svg>`,ts=J`<svg style="border-radius: 9999px; overflow: hidden;" fill="none" viewBox="0 0 1000 1000"> 6107 <rect width="1000" height="1000" rx="9999" ry="9999" fill="#855DCD"/> 6108 <path fill="#855DCD" d="M0 0h1000v1000H0V0Z" /> 6109 <path 6110 fill="#fff" 6111 d="M320 248h354v504h-51.96V521.13h-.5c-5.76-63.8-59.31-113.81-124.54-113.81s-118.78 50-124.53 113.81h-.5V752H320V248Z" 6112 /> 6113 <path 6114 fill="#fff" 6115 d="m225 320 21.16 71.46h17.9v289.09a16.29 16.29 0 0 0-16.28 16.24v19.49h-3.25a16.3 16.3 0 0 0-16.28 16.24V752h182.26v-19.48a16.22 16.22 0 0 0-16.28-16.24h-3.25v-19.5a16.22 16.22 0 0 0-16.28-16.23h-19.52V320H225Zm400.3 360.55a16.3 16.3 0 0 0-15.04 10.02 16.2 16.2 0 0 0-1.24 6.22v19.49h-3.25a16.29 16.29 0 0 0-16.27 16.24V752h182.24v-19.48a16.23 16.23 0 0 0-16.27-16.24h-3.25v-19.5a16.2 16.2 0 0 0-10.04-15 16.3 16.3 0 0 0-6.23-1.23v-289.1h17.9L775 320H644.82v360.55H625.3Z" 6116 /> 6117</svg>`,tc=J`<svg fill="none" viewBox="0 0 16 16"> 6118 <path 6119 fill="currentColor" 6120 fill-rule="evenodd" 6121 d="M0 3a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1Zm2.63 5.25a1 1 0 0 1 1-1h8.75a1 1 0 1 1 0 2H3.63a1 1 0 0 1-1-1Zm2.62 5.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 0 2h-3.5a1 1 0 0 1-1-1Z" 6122 clip-rule="evenodd" 6123 /> 6124</svg>`,tl=J`<svg fill="none" viewBox="0 0 40 40"> 6125 <g clip-path="url(#a)"> 6126 <g clip-path="url(#b)"> 6127 <circle cx="20" cy="19.89" r="20" fill="#1B1F23" /> 6128 <g clip-path="url(#c)"> 6129 <path 6130 fill="#fff" 6131 d="M8 19.89a12 12 0 1 1 15.8 11.38c-.6.12-.8-.26-.8-.57v-3.3c0-1.12-.4-1.85-.82-2.22 2.67-.3 5.48-1.31 5.48-5.92 0-1.31-.47-2.38-1.24-3.22.13-.3.54-1.52-.12-3.18 0 0-1-.32-3.3 1.23a11.54 11.54 0 0 0-6 0c-2.3-1.55-3.3-1.23-3.3-1.23a4.32 4.32 0 0 0-.12 3.18 4.64 4.64 0 0 0-1.24 3.22c0 4.6 2.8 5.63 5.47 5.93-.34.3-.65.83-.76 1.6-.69.31-2.42.84-3.5-1 0 0-.63-1.15-1.83-1.23 0 0-1.18-.02-.09.73 0 0 .8.37 1.34 1.76 0 0 .7 2.14 4.03 1.41v2.24c0 .31-.2.68-.8.57A12 12 0 0 1 8 19.9Z" 6132 /> 6133 </g> 6134 </g> 6135 </g> 6136 <defs> 6137 <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> 6138 <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 6139 <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath> 6140 </defs> 6141</svg>`,tu=J`<svg fill="none" viewBox="0 0 40 40"> 6142 <path 6143 fill="#4285F4" 6144 d="M32.74 20.3c0-.93-.08-1.81-.24-2.66H20.26v5.03h7a6 6 0 0 1-2.62 3.91v3.28h4.22c2.46-2.27 3.88-5.6 3.88-9.56Z" 6145 /> 6146 <path 6147 fill="#34A853" 6148 d="M20.26 33a12.4 12.4 0 0 0 8.6-3.14l-4.22-3.28a7.74 7.74 0 0 1-4.38 1.26 7.76 7.76 0 0 1-7.28-5.36H8.65v3.36A12.99 12.99 0 0 0 20.26 33Z" 6149 /> 6150 <path 6151 fill="#FBBC05" 6152 d="M12.98 22.47a7.79 7.79 0 0 1 0-4.94v-3.36H8.65a12.84 12.84 0 0 0 0 11.66l3.37-2.63.96-.73Z" 6153 /> 6154 <path 6155 fill="#EA4335" 6156 d="M20.26 12.18a7.1 7.1 0 0 1 4.98 1.93l3.72-3.72A12.47 12.47 0 0 0 20.26 7c-5.08 0-9.47 2.92-11.6 7.17l4.32 3.36a7.76 7.76 0 0 1 7.28-5.35Z" 6157 /> 6158</svg>`,td=J`<svg fill="none" viewBox="0 0 16 16"> 6159 <path 6160 fill="currentColor" 6161 d="M8.51 5.66a.83.83 0 0 0-.57-.2.83.83 0 0 0-.52.28.8.8 0 0 0-.25.52 1 1 0 0 1-2 0c0-.75.34-1.43.81-1.91a2.75 2.75 0 0 1 4.78 1.92c0 1.24-.8 1.86-1.25 2.2l-.04.03c-.47.36-.5.43-.5.65a1 1 0 1 1-2 0c0-1.25.8-1.86 1.24-2.2l.04-.04c.47-.36.5-.43.5-.65 0-.3-.1-.49-.24-.6ZM9.12 11.87a1.13 1.13 0 1 1-2.25 0 1.13 1.13 0 0 1 2.25 0Z" 6162 /> 6163 <path 6164 fill="currentColor" 6165 fill-rule="evenodd" 6166 d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z" 6167 clip-rule="evenodd" 6168 /> 6169</svg>`,th=J`<svg width="14" height="14" viewBox="0 0 14 14" fill="none"> 6170 <path d="M4.98926 3.73932C4.2989 3.73932 3.73926 4.29896 3.73926 4.98932C3.73926 5.67968 4.2989 6.23932 4.98926 6.23932C5.67962 6.23932 6.23926 5.67968 6.23926 4.98932C6.23926 4.29896 5.67962 3.73932 4.98926 3.73932Z" fill="currentColor"/> 6171 <path fill-rule="evenodd" clip-rule="evenodd" d="M7.60497 0.500001H6.39504C5.41068 0.499977 4.59185 0.499958 3.93178 0.571471C3.24075 0.64634 2.60613 0.809093 2.04581 1.21619C1.72745 1.44749 1.44749 1.72745 1.21619 2.04581C0.809093 2.60613 0.64634 3.24075 0.571471 3.93178C0.499958 4.59185 0.499977 5.41065 0.500001 6.39501V7.57815C0.499998 8.37476 0.499995 9.05726 0.534869 9.62725C0.570123 10.2034 0.644114 10.7419 0.828442 11.2302C0.925651 11.4877 1.05235 11.7287 1.21619 11.9542C1.44749 12.2726 1.72745 12.5525 2.04581 12.7838C2.60613 13.1909 3.24075 13.3537 3.93178 13.4285C4.59185 13.5001 5.41066 13.5 6.39503 13.5H7.60496C8.58933 13.5 9.40815 13.5001 10.0682 13.4285C10.7593 13.3537 11.3939 13.1909 11.9542 12.7838C12.2726 12.5525 12.5525 12.2726 12.7838 11.9542C13.1909 11.3939 13.3537 10.7593 13.4285 10.0682C13.5 9.40816 13.5 8.58935 13.5 7.60497V6.39505C13.5 5.41068 13.5 4.59185 13.4285 3.93178C13.3537 3.24075 13.1909 2.60613 12.7838 2.04581C12.5525 1.72745 12.2726 1.44749 11.9542 1.21619C11.3939 0.809093 10.7593 0.64634 10.0682 0.571471C9.40816 0.499958 8.58933 0.499977 7.60497 0.500001ZM3.22138 2.83422C3.38394 2.71612 3.62634 2.61627 4.14721 2.55984C4.68679 2.50138 5.39655 2.5 6.45 2.5H7.55C8.60345 2.5 9.31322 2.50138 9.8528 2.55984C10.3737 2.61627 10.6161 2.71612 10.7786 2.83422C10.9272 2.94216 11.0578 3.07281 11.1658 3.22138C11.2839 3.38394 11.3837 3.62634 11.4402 4.14721C11.4986 4.68679 11.5 5.39655 11.5 6.45V6.49703C10.9674 6.11617 10.386 5.84936 9.74213 5.81948C8.40536 5.75745 7.3556 6.73051 6.40509 7.84229C6.33236 7.92737 6.27406 7.98735 6.22971 8.02911L6.1919 8.00514L6.17483 7.99427C6.09523 7.94353 5.98115 7.87083 5.85596 7.80302C5.56887 7.64752 5.18012 7.4921 4.68105 7.4921C4.66697 7.4921 4.6529 7.49239 4.63884 7.49299C3.79163 7.52878 3.09922 8.1106 2.62901 8.55472
6171C2.58751 8.59392 2.54594 8.6339 2.50435 8.6745C2.50011 8.34653 2.5 7.97569 2.5 7.55V6.45C2.5 5.39655 2.50138 4.68679 2.55984 4.14721C2.61627 3.62634 2.71612 3.38394 2.83422 3.22138C2.94216 3.07281 3.07281 2.94216 3.22138 2.83422ZM10.3703 8.14825C10.6798 8.37526 11.043 8.71839 11.4832 9.20889C11.4744 9.44992 11.4608 9.662 11.4402 9.8528C11.3837 10.3737 11.2839 10.6161 11.1658 10.7786C11.0578 10.9272 10.9272 11.0578 10.7786 11.1658C10.6161 11.2839 10.3737 11.3837 9.8528 11.4402C9.31322 11.4986 8.60345 11.5 7.55 11.5H6.45C5.39655 11.5 4.68679 11.4986 4.14721 11.4402C3.62634 11.3837 3.38394 11.2839 3.22138 11.1658C3.15484 11.1174 3.0919 11.0645 3.03298 11.0075C3.10126 10.9356 3.16806 10.8649 3.23317 10.7959L3.29772 10.7276C3.55763 10.4525 3.78639 10.2126 4.00232 10.0087C4.22016 9.80294 4.39412 9.66364 4.53524 9.57742C4.63352 9.51738 4.69022 9.49897 4.71275 9.49345C4.76387 9.49804 4.81803 9.51537 4.90343 9.56162C4.96409 9.59447 5.02355 9.63225 5.11802 9.69238L5.12363 9.69595C5.20522 9.74789 5.32771 9.82587 5.46078 9.89278C5.76529 10.0459 6.21427 10.186 6.74977 10.0158C7.21485 9.86796 7.59367 9.52979 7.92525 9.14195C8.91377 7.98571 9.38267 7.80495 9.64941 7.81733C9.7858 7.82366 10.0101 7.884 10.3703 8.14825Z" fill="currentColor"/> 6172</svg>`,tf=J`<svg fill="none" viewBox="0 0 14 15"> 6173 <path 6174 fill="currentColor" 6175 d="M6 10.49a1 1 0 1 0 2 0v-2a1 1 0 0 0-2 0v2ZM7 4.49a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z" 6176 /> 6177 <path 6178 fill="currentColor" 6179 fill-rule="evenodd" 6180 d="M7 14.99a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm5-7a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z" 6181 clip-rule="evenodd" 6182 /> 6183</svg>`,tp=J`<svg fill="none" viewBox="0 0 16 16"> 6184 <path 6185 fill="currentColor" 6186 fill-rule="evenodd" 6187 d="M4.83 1.34h6.34c.68 0 1.26 0 1.73.04.5.05.97.15 1.42.4.52.3.95.72 1.24 1.24.26.45.35.92.4 1.42.04.47.04 1.05.04 1.73v3.71c0 .69 0 1.26-.04 1.74-.05.5-.14.97-.4 1.41-.3.52-.72.95-1.24 1.25-.45.25-.92.35-1.42.4-.47.03-1.05.03-1.73.03H4.83c-.68 0-1.26 0-1.73-.04-.5-.04-.97-.14-1.42-.4-.52-.29-.95-.72-1.24-1.24a3.39 3.39 0 0 1-.4-1.41A20.9 20.9 0 0 1 0 9.88v-3.7c0-.7 0-1.27.04-1.74.05-.5.14-.97.4-1.42.3-.52.72-.95 1.24-1.24.45-.25.92-.35 1.42-.4.47-.04 1.05-.04 1.73-.04ZM3.28 3.38c-.36.03-.51.08-.6.14-.21.11-.39.29-.5.5a.8.8 0 0 0-.08.19l5.16 3.44c.45.3 1.03.3 1.48 0L13.9 4.2a.79.79 0 0 0-.08-.2c-.11-.2-.29-.38-.5-.5-.09-.05-.24-.1-.6-.13-.37-.04-.86-.04-1.6-.04H4.88c-.73 0-1.22 0-1.6.04ZM14 6.54 9.85 9.31a3.33 3.33 0 0 1-3.7 0L2 6.54v3.3c0 .74 0 1.22.03 1.6.04.36.1.5.15.6.11.2.29.38.5.5.09.05.24.1.6.14.37.03.86.03 1.6.03h6.25c.73 0 1.22 0 1.6-.03.35-.03.5-.09.6-.14.2-.12.38-.3.5-.5.05-.1.1-.24.14-.6.03-.38.03-.86.03-1.6v-3.3Z" 6188 clip-rule="evenodd" 6189 /> 6190</svg>`,tg=J`<svg fill="none" viewBox="0 0 20 20"> 6191 <path fill="currentColor" d="M10.81 5.81a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z" /> 6192 <path 6193 fill="currentColor" 6194 fill-rule="evenodd" 6195 d="M3 4.75A4.75 4.75 0 0 1 7.75 0h4.5A4.75 4.75 0 0 1 17 4.75v10.5A4.75 4.75 0 0 1 12.25 20h-4.5A4.75 4.75 0 0 1 3 15.25V4.75ZM7.75 2A2.75 2.75 0 0 0 5 4.75v10.5A2.75 2.75 0 0 0 7.75 18h4.5A2.75 2.75 0 0 0 15 15.25V4.75A2.75 2.75 0 0 0 12.25 2h-4.5Z" 6196 clip-rule="evenodd" 6197 /> 6198</svg>`,tm=J`<svg fill="none" viewBox="0 0 41 40"> 6199 <path 6200 style="fill: var(--wui-color-fg-100);" 6201 fill-opacity=".05" 6202 d="M.6 20a20 20 0 1 1 40 0 20 20 0 0 1-40 0Z" 6203 /> 6204 <path 6205 fill="#949E9E" 6206 d="M15.6 20.31a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM23.1 20.31a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM28.1 22.81a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z" 6207 /> 6208</svg>`,tw=J`<svg fill="none" viewBox="0 0 22 20"> 6209 <path 6210 fill="currentColor" 6211 fill-rule="evenodd" 6212 d="M16.32 13.62a3.14 3.14 0 1 1-.99 1.72l-1.6-.93a3.83 3.83 0 0 1-3.71 1 3.66 3.66 0 0 1-1.74-1l-1.6.94a3.14 3.14 0 1 1-1-1.73l1.6-.94a3.7 3.7 0 0 1 0-2 3.81 3.81 0 0 1 1.8-2.33c.29-.17.6-.3.92-.38V6.1a3.14 3.14 0 1 1 2 0l-.01.02v1.85H12a3.82 3.82 0 0 1 2.33 1.8 3.7 3.7 0 0 1 .39 2.91l1.6.93ZM2.6 16.54a1.14 1.14 0 0 0 1.98-1.14 1.14 1.14 0 0 0-1.98 1.14ZM11 2.01a1.14 1.14 0 1 0 0 2.28 1.14 1.14 0 0 0 0-2.28Zm1.68 10.45c.08-.19.14-.38.16-.58v-.05l.02-.13v-.13a1.92 1.92 0 0 0-.24-.8l-.11-.15a1.89 1.89 0 0 0-.74-.6 1.86 1.86 0 0 0-.77-.17h-.19a1.97 1.97 0 0 0-.89.34 1.98 1.98 0 0 0-.61.74 1.99 1.99 0 0 0-.16.9v.05a1.87 1.87 0 0 0 .24.74l.1.15c.12.16.26.3.42.42l.16.1.13.07.04.02a1.84 1.84 0 0 0 .76.17h.17a2 2 0 0 0 .91-.35 1.78 1.78 0 0 0 .52-.58l.03-.05a.84.84 0 0 0 .05-.11Zm5.15 4.5a1.14 1.14 0 0 0 1.14-1.97 1.13 1.13 0 0 0-1.55.41c-.32.55-.13 1.25.41 1.56Z" 6213 clip-rule="evenodd" 6214 /> 6215 <path 6216 fill="currentColor" 6217 fill-rule="evenodd" 6218 d="M4.63 9.43a1.5 1.5 0 1 0 1.5-2.6 1.5 1.5 0 0 0-1.5 2.6Zm.32-1.55a.5.5 0 0 1 .68-.19.5.5 0 0 1 .18.68.5.5 0 0 1-.68.19.5.5 0 0 1-.18-.68ZM17.94 8.88a1.5 1.5 0 1 1-2.6-1.5 1.5 1.5 0 1 1 2.6 1.5ZM16.9 7.69a.5.5 0 0 0-.68.19.5.5 0 0 0 .18.68.5.5 0 0 0 .68-.19.5.5 0 0 0-.18-.68ZM9.75 17.75a1.5 1.5 0 1 1 2.6 1.5 1.5 1.5 0 1 1-2.6-1.5Zm1.05 1.18a.5.5 0 0 0 .68-.18.5.5 0 0 0-.18-.68.5.5 0 0 0-.68.18.5.5 0 0 0 .18.68Z" 6219 clip-rule="evenodd" 6220 /> 6221</svg>`,tb=J`<svg fill="none" viewBox="0 0 20 20"> 6222 <path 6223 fill="currentColor" 6224 fill-rule="evenodd" 6225 d="M9.13 1h1.71c1.46 0 2.63 0 3.56.1.97.1 1.8.33 2.53.85a5 5 0 0 1 1.1 1.11c.53.73.75 1.56.86 2.53.1.93.1 2.1.1 3.55v1.72c0 1.45 0 2.62-.1 3.55-.1.97-.33 1.8-.86 2.53a5 5 0 0 1-1.1 1.1c-.73.53-1.56.75-2.53.86-.93.1-2.1.1-3.55.1H9.13c-1.45 0-2.62 0-3.56-.1-.96-.1-1.8-.33-2.52-.85a5 5 0 0 1-1.1-1.11 5.05 5.05 0 0 1-.86-2.53c-.1-.93-.1-2.1-.1-3.55V9.14c0-1.45 0-2.62.1-3.55.1-.97.33-1.8.85-2.53a5 5 0 0 1 1.1-1.1 5.05 5.05 0 0 1 2.53-.86C6.51 1 7.67 1 9.13 1ZM5.79 3.09a3.1 3.1 0 0 0-1.57.48 3 3 0 0 0-.66.67c-.24.32-.4.77-.48 1.56-.1.82-.1 1.88-.1 3.4v1.6c0 1.15 0 2.04.05 2.76l.41-.42c.5-.5.93-.92 1.32-1.24.41-.33.86-.6 1.43-.7a3 3 0 0 1 .94 0c.35.06.66.2.95.37a17.11 17.11 0 0 0 .8.45c.1-.08.2-.2.41-.4l.04-.03a27 27 0 0 1 1.95-1.84 4.03 4.03 0 0 1 1.91-.94 4 4 0 0 1 1.25 0c.73.11 1.33.46 1.91.94l.64.55V9.2c0-1.52 0-2.58-.1-3.4a3.1 3.1 0 0 0-.48-1.56 3 3 0 0 0-.66-.67 3.1 3.1 0 0 0-1.56-.48C13.37 3 12.3 3 10.79 3h-1.6c-1.52 0-2.59 0-3.4.09Zm11.18 10-.04-.05a26.24 26.24 0 0 0-1.83-1.74c-.45-.36-.73-.48-.97-.52a2 2 0 0 0-.63 0c-.24.04-.51.16-.97.52-.46.38-1.01.93-1.83 1.74l-.02.02c-.17.18-.34.34-.49.47a2.04 2.04 0 0 1-1.08.5 1.97 1.97 0 0 1-1.25-.27l-.79-.46-.02-.02a.65.65 0 0 0-.24-.1 1 1 0 0 0-.31 0c-.08.02-.21.06-.49.28-.3.24-.65.59-1.2 1.14l-.56.56-.65.66a3 3 0 0 0 .62.6c.33.24.77.4 1.57.49.81.09 1.88.09 3.4.09h1.6c1.52 0 2.58 0 3.4-.09a3.1 3.1 0 0 0 1.56-.48 3 3 0 0 0 .66-.67c.24-.32.4-.77.49-1.56l.07-1.12Zm-8.02-1.03ZM4.99 7a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z" 6226 clip-rule="evenodd" 6227 /> 6228</svg>`,tv=J`<svg fill="none" viewBox="0 0 16 16"> 6229 <path 6230 fill="currentColor" 6231 fill-rule="evenodd" 6232 d="M8 0a1 1 0 0 1 1 1v5.38a1 1 0 0 1-2 0V1a1 1 0 0 1 1-1ZM5.26 2.6a1 1 0 0 1-.28 1.39 5.46 5.46 0 1 0 6.04 0 1 1 0 1 1 1.1-1.67 7.46 7.46 0 1 1-8.25 0 1 1 0 0 1 1.4.28Z" 6233 clip-rule="evenodd" 6234 /> 6235</svg>`,ty=J` <svg 6236 width="36" 6237 height="36" 6238 fill="none" 6239> 6240 <path 6241 d="M0 8a8 8 0 0 1 8-8h20a8 8 0 0 1 8 8v20a8 8 0 0 1-8 8H8a8 8 0 0 1-8-8V8Z" 6242 fill="#fff" 6243 fill-opacity=".05" 6244 /> 6245 <path 6246 d="m18.262 17.513-8.944 9.49v.01a2.417 2.417 0 0 0 3.56 1.452l.026-.017 10.061-5.803-4.703-5.132Z" 6247 fill="#EA4335" 6248 /> 6249 <path 6250 d="m27.307 15.9-.008-.008-4.342-2.52-4.896 4.36 4.913 4.912 4.325-2.494a2.42 2.42 0 0 0 .008-4.25Z" 6251 fill="#FBBC04" 6252 /> 6253 <path 6254 d="M9.318 8.997c-.05.202-.084.403-.084.622V26.39c0 .218.025.42.084.621l9.246-9.247-9.246-8.768Z" 6255 fill="#4285F4" 6256 /> 6257 <path 6258 d="m18.33 18 4.627-4.628-10.053-5.828a2.427 2.427 0 0 0-3.586 1.444L18.329 18Z" 6259 fill="#34A853" 6260 /> 6261 <path 6262 d="M8 .5h20A7.5 7.5 0 0 1 35.5 8v20a7.5 7.5 0 0 1-7.5 7.5H8A7.5 7.5 0 0 1 .5 28V8A7.5 7.5 0 0 1 8 .5Z" 6263 stroke="#fff" 6264 stroke-opacity=".05" 6265 /> 6266</svg>`,tC=J`<svg 6267 width="13" 6268 height="12" 6269 viewBox="0 0 13 12" 6270 fill="none" 6271> 6272 <path 6273 fill="currentColor" 6274 fill-rule="evenodd" 6275 clip-rule="evenodd" 6276 d="M0.794373 5.99982C0.794373 5.52643 1.17812 5.14268 1.6515 5.14268H5.643V1.15109C5.643 0.677701 6.02675 0.293946 6.50012 0.293945C6.9735 0.293946 7.35725 0.677701 7.35725 1.15109V5.14268H11.3488C11.8221 5.14268 12.2059 5.52643 12.2059 5.99982C12.2059 6.47321 11.8221 6.85696 11.3488 6.85696H7.35725V10.8486C7.35725 11.3219 6.9735 11.7057 6.50012 11.7057C6.02675 11.7057 5.643 11.3219 5.643 10.8486V6.85696H1.6515C1.17812 6.85696 0.794373 6.47321 0.794373 5.99982Z" 6277 /></svg 6278>`,tx=J`<svg fill="none" viewBox="0 0 20 20"> 6279 <path 6280 fill="currentColor" 6281 d="M3 6a3 3 0 0 1 3-3h1a1 1 0 1 0 0-2H6a5 5 0 0 0-5 5v1a1 1 0 0 0 2 0V6ZM13 1a1 1 0 1 0 0 2h1a3 3 0 0 1 3 3v1a1 1 0 1 0 2 0V6a5 5 0 0 0-5-5h-1ZM3 13a1 1 0 1 0-2 0v1a5 5 0 0 0 5 5h1a1 1 0 1 0 0-2H6a3 3 0 0 1-3-3v-1ZM19 13a1 1 0 1 0-2 0v1a3 3 0 0 1-3 3h-1a1 1 0 1 0 0 2h1.01a5 5 0 0 0 5-5v-1ZM5.3 6.36c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05A1.5 1.5 0 0 0 9.2 8.14c.06-.2.06-.43.06-.89s0-.7-.06-.89A1.5 1.5 0 0 0 8.14 5.3c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06ZM10.8 6.36c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05a1.5 1.5 0 0 0 1.06-1.06c.06-.2.06-.43.06-.89s0-.7-.06-.89a1.5 1.5 0 0 0-1.06-1.06c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06ZM5.26 12.75c0-.46 0-.7.05-.89a1.5 1.5 0 0 1 1.06-1.06c.19-.05.42-.05.89-.05.46 0 .7 0 .88.05.52.14.93.54 1.06 1.06.06.2.06.43.06.89s0 .7-.06.89a1.5 1.5 0 0 1-1.06 1.06c-.19.05-.42.05-.88.05-.47 0-.7 0-.9-.05a1.5 1.5 0 0 1-1.05-1.06c-.05-.2-.05-.43-.05-.89ZM10.8 11.86c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05a1.5 1.5 0 0 0 1.06-1.06c.06-.2.06-.43.06-.89s0-.7-.06-.89a1.5 1.5 0 0 0-1.06-1.06c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06Z" 6282 /> 6283</svg>`,tA=J`<svg 6284 fill="none" 6285 viewBox="0 0 21 20" 6286> 6287 <path 6288 fill="currentColor"
6289 d="M8.8071 0.292893C9.19763 0.683417 9.19763 1.31658 8.8071 1.70711L6.91421 3.6H11.8404C14.3368 3.6 16.5533 5.1975 17.3427 7.56588L17.4487 7.88377C17.6233 8.40772 17.3402 8.97404 16.8162 9.14868C16.2923 9.32333 15.726 9.04017 15.5513 8.51623L15.4453 8.19834C14.9281 6.64664 13.476 5.6 11.8404 5.6H6.91421L8.8071 7.49289C9.19763 7.88342 9.19763 8.51658 8.8071 8.90711C8.41658 9.29763 7.78341 9.29763 7.39289 8.90711L3.79289 5.30711C3.40236 4.91658 3.40236 4.28342 3.79289 3.89289L7.39289 0.292893C7.78341 -0.0976311 8.41658 -0.0976311 8.8071 0.292893ZM4.18377 10.8513C4.70771 10.6767 5.27403 10.9598 5.44868 11.4838L5.55464 11.8017C6.07188 13.3534 7.52401 14.4 9.15964 14.4L14.0858 14.4L12.1929 12.5071C11.8024 12.1166 11.8024 11.4834 12.1929 11.0929C12.5834 10.7024 13.2166 10.7024 13.6071 11.0929L17.2071 14.6929C17.5976 15.0834 17.5976 15.7166 17.2071 16.1071L13.6071 19.7071C13.2166 20.0976 12.5834 20.0976 12.1929 19.7071C11.8024 19.3166 11.8024 18.6834 12.1929 18.2929L14.0858 16.4L9.15964 16.4C6.66314 16.4 4.44674 14.8025 3.65728 12.4341L3.55131 12.1162C3.37667 11.5923 3.65983 11.026 4.18377 10.8513Z" 6290 /></svg 6291>`,tE=J`<svg fill="none" viewBox="0 0 14 16"> 6292 <path 6293 fill="currentColor" 6294 fill-rule="evenodd" 6295 d="M3.94 1.04a1 1 0 0 1 .7 1.23l-.48 1.68a5.85 5.85 0 0 1 8.53 4.32 5.86 5.86 0 0 1-11.4 2.56 1 1 0 0 1 1.9-.57 3.86 3.86 0 1 0 1.83-4.5l1.87.53a1 1 0 0 1-.55 1.92l-4.1-1.15a1 1 0 0 1-.69-1.23l1.16-4.1a1 1 0 0 1 1.23-.7Z" 6296 clip-rule="evenodd" 6297 /> 6298</svg>`,tk=J`<svg fill="none" viewBox="0 0 20 20"> 6299 <path 6300 fill="currentColor" 6301 fill-rule="evenodd" 6302 d="M9.36 4.21a5.14 5.14 0 1 0 0 10.29 5.14 5.14 0 0 0 0-10.29ZM1.64 9.36a7.71 7.71 0 1 1 14 4.47l2.52 2.5a1.29 1.29 0 1 1-1.82 1.83l-2.51-2.51A7.71 7.71 0 0 1 1.65 9.36Z" 6303 clip-rule="evenodd" 6304 /> 6305</svg>`,t_=J`<svg fill="none" viewBox="0 0 21 20"> 6306 <path 6307 fill="currentColor" 6308 fill-rule="evenodd" 6309 d="M14.3808 4.34812C13.72 4.47798 12.8501 4.7587 11.5748 5.17296L9.00869 6.00646C6.90631 6.68935 5.40679 7.17779 4.38121 7.63178C3.87166 7.85734 3.5351 8.05091 3.32022 8.22035C3.11183 8.38466 3.07011 8.48486 3.05969 8.51817C2.98058 8.77103 2.98009 9.04195 3.05831 9.29509C3.06861 9.32844 3.10998 9.42878 3.31777 9.59384C3.53205 9.76404 3.86792 9.95881 4.37667 10.1862C5.29287 10.5957 6.58844 11.0341 8.35529 11.6164L10.8876 8.59854C11.2426 8.17547 11.8733 8.12028 12.2964 8.47528C12.7195 8.83029 12.7746 9.46104 12.4196 9.88412L9.88738 12.9019C10.7676 14.5408 11.4244 15.7406 11.9867 16.5718C12.299 17.0333 12.5491 17.3303 12.7539 17.5117C12.9526 17.6877 13.0586 17.711 13.0932 17.7154C13.3561 17.7484 13.6228 17.7009 13.8581 17.5791C13.8891 17.563 13.9805 17.5046 14.1061 17.2708C14.2357 17.0298 14.3679 16.6647 14.5015 16.1237C14.7705 15.0349 14.9912 13.4733 15.2986 11.2843L15.6738 8.61249C15.8603 7.28456 15.9857 6.37917 15.9989 5.7059C16.012 5.03702 15.9047 4.8056 15.8145 4.69183C15.7044 4.55297 15.5673 4.43792 15.4114 4.35365C15.2837 4.28459 15.0372 4.2191 14.3808 4.34812ZM7.99373 13.603C6.11919 12.9864 4.6304 12.4902 3.5606 12.0121C2.98683 11.7557 2.4778 11.4808 2.07383 11.1599C1.66337 10.8339 1.31312 10.4217 1.14744 9.88551C0.949667 9.24541 0.950886 8.56035 1.15094 7.92096C1.31852 7.38534 1.67024 6.97442 2.08185 6.64985C2.48697 6.33041 2.99697 6.05734 3.57166 5.80295C4.70309 5.3021 6.30179 4.78283 8.32903 4.12437L11.0196 3.25042C12.2166 2.86159 13.2017 2.54158 13.9951 2.38566C14.8065 2.22618 15.6202 2.19289 16.3627 2.59437C16.7568 2.80747 17.1035 3.09839 17.3818 3.4495C17.9062 4.111 18.0147 4.91815 17.9985 5.74496C17.9827 6.55332 17.8386 7.57903 17.6636 8.82534L17.2701 11.6268C16.9737 13.7376 16.7399 15.4022 16.4432 16.6034C16.2924 17.2135 16.1121 17.7632 15.8678 18.2176C15.6197 18.6794 15.2761 19.0971 14.7777 19.3551C14.1827 19.6632 13.5083 19.7833 12.8436 19.6997C12.2867 19.6297 11.82 19.3563 11.4277 19.0087C11.0415 18.6666 10.6824 18.213 10.3302 17.6925C9.67361 16.722 8.92648 15.342 7.99373 13.603Z" 6310 clip-rule="evenodd" 6311 /> 6312 <svg 6313 xmlns="http://www.w3.org/2000/svg" 6314 width="21" 6315 height="20" 6316 viewBox="0 0 21 20" 6317 fill="none" 6318 ></svg></svg 6319>`,tS=J`<svg fill="none" viewBox="0 0 20 20"> 6320 <path 6321 fill="currentColor" 6322 fill-rule="evenodd" 6323 d="M6.76.3a1 1 0 0 1 0 1.4L4.07 4.4h9a1 1 0 1 1 0 2h-9l2.69 2.68a1 1 0 1 1-1.42 1.42L.95 6.09a1 1 0 0 1 0-1.4l4.4-4.4a1 1 0 0 1 1.4 0Zm6.49 9.21a1 1 0 0 1 1.41 0l4.39 4.4a1 1 0 0 1 0 1.4l-4.39 4.4a1 1 0 0 1-1.41-1.42l2.68-2.68h-9a1 1 0 0 1 0-2h9l-2.68-2.68a1 1 0 0 1 0-1.42Z" 6324 clip-rule="evenodd" 6325 /> 6326</svg>
6326`,tT=J`<svg width="10" height="10" viewBox="0 0 10 10"> 6327 <path 6328 fill="currentColor" 6329 fill-rule="evenodd" 6330 d="M3.77986 0.566631C4.0589 0.845577 4.0589 1.29784 3.77986 1.57678L3.08261 2.2738H6.34184C6.73647 2.2738 7.05637 2.5936 7.05637 2.98808C7.05637 3.38257 6.73647 3.70237 6.34184 3.70237H3.08261L3.77986 4.39938C4.0589 4.67833 4.0589 5.13059 3.77986 5.40954C3.50082 5.68848 3.04841 5.68848 2.76937 5.40954L0.852346 3.49316C0.573306 3.21421 0.573306 2.76195 0.852346 2.48301L2.76937 0.566631C3.04841 0.287685 3.50082 0.287685 3.77986 0.566631ZM6.22 4.59102C6.49904 4.31208 6.95145 4.31208 7.23049 4.59102L9.14751 6.5074C9.42655 6.78634 9.42655 7.23861 9.14751 7.51755L7.23049 9.43393C6.95145 9.71287 6.49904 9.71287 6.22 9.43393C5.94096 9.15498 5.94096 8.70272 6.22 8.42377L6.91725 7.72676L3.65802 7.72676C3.26339 7.72676 2.94349 7.40696 2.94349 7.01247C2.94349 6.61798 3.26339 6.29819 3.65802 6.29819L6.91725 6.29819L6.22 5.60117C5.94096 5.32223 5.94096 4.86997 6.22 4.59102Z" 6331 clip-rule="evenodd" 6332 /> 6333</svg>`,tI=J`<svg 6334 width="14" 6335 height="14" 6336 viewBox="0 0 14 14" 6337 fill="none" 6338 xmlns="http://www.w3.org/2000/svg" 6339> 6340 <path 6341 fill-rule="evenodd" 6342 clip-rule="evenodd" 6343 d="M13.7306 3.24213C14.0725 3.58384 14.0725 4.13786 13.7306 4.47957L10.7418 7.46737C10.4 7.80908 9.84581 7.80908 9.50399 7.46737C9.16216 7.12567 9.16216 6.57165 9.50399 6.22994L10.9986 4.73585H5.34082C4.85741 4.73585 4.46553 4.3441 4.46553 3.86085C4.46553 3.3776 4.85741 2.98585 5.34082 2.98585L10.9986 2.98585L9.50399 1.49177C9.16216 1.15006 9.16216 0.596037 9.50399 0.254328C9.84581 -0.0873803 10.4 -0.0873803 10.7418 0.254328L13.7306 3.24213ZM9.52515 10.1352C9.52515 10.6185 9.13327 11.0102 8.64986 11.0102L2.9921 11.0102L4.48669 12.5043C4.82852 12.846 4.82852 13.4001 4.48669 13.7418C4.14487 14.0835 3.59066 14.0835 3.24884 13.7418L0.26003 10.754C0.0958806 10.5899 0.0036621 10.3673 0.00366211 10.1352C0.00366212 9.90318 0.0958806 9.68062 0.26003 9.51652L3.24884 6.52872C3.59066 6.18701 4.14487 6.18701 4.48669 6.52872C4.82851 6.87043 4.82851 7.42445 4.48669 7.76616L2.9921 9.26024L8.64986 9.26024C9.13327 9.26024 9.52515 9.65199 9.52515 10.1352Z" 6344 fill="currentColor" 6345 /> 6346</svg> 6347 6348`,tR=J`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"> 6349 <path 6350 fill="currentColor" 6351 fill-rule="evenodd" 6352 clip-rule="evenodd" 6353 d="M8.3071 0.292893C8.69763 0.683417 8.69763 1.31658 8.3071 1.70711L6.41421 3.6H11.3404C13.8368 3.6 16.0533 5.1975 16.8427 7.56588L16.9487 7.88377C17.1233 8.40772 16.8402 8.97404 16.3162 9.14868C15.7923 9.32333 15.226 9.04017 15.0513 8.51623L14.9453 8.19834C14.4281 6.64664 12.976 5.6 11.3404 5.6H6.41421L8.3071 7.49289C8.69763 7.88342 8.69763 8.51658 8.3071 8.90711C7.91658 9.29763 7.28341 9.29763 6.89289 8.90711L3.29289 5.30711C2.90236 4.91658 2.90236 4.28342 3.29289 3.89289L6.89289 0.292893C7.28341 -0.0976311 7.91658 -0.0976311 8.3071 0.292893ZM3.68377 10.8513C4.20771 10.6767 4.77403 10.9598 4.94868 11.4838L5.05464 11.8017C5.57188 13.3534 7.024 14.4 8.65964 14.4L13.5858 14.4L11.6929 12.5071C11.3024 12.1166 11.3024 11.4834 11.6929 11.0929C12.0834 10.7024 12.7166 10.7024 13.1071 11.0929L16.7071 14.6929C17.0976 15.0834 17.0976 15.7166 16.7071 16.1071L13.1071 19.7071C12.7166 20.0976 12.0834 20.0976 11.6929 19.7071C11.3024 19.3166 11.3024 18.6834 11.6929 18.2929L13.5858 16.4L8.65964 16.4C6.16314 16.4 3.94674 14.8025 3.15728 12.4341L3.05131 12.1162C2.87667 11.5923 3.15983 11.026 3.68377 10.8513Z" 6354 /> 6355</svg>`,tO=J`<svg fill="none" viewBox="0 0 14 14"> 6356 <path 6357 fill="currentColor" 6358 fill-rule="evenodd" 6359 d="M3.48 2.18a1 1 0 0 1 1.41 0l2.68 2.68a1 1 0 1 1-1.41 1.42l-.98-.98v4.56a1 1 0 0 1-2 0V5.3l-.97.98A1 1 0 0 1 .79 4.86l2.69-2.68Zm6.34 2.93a1 1 0 0 1 1 1v4.56l.97-.98a1 1 0 1 1 1.42 1.42l-2.69 2.68a1 1 0 0 1-1.41 0l-2.68-2.68a1 1 0 0 1 1.41-1.42l.98.98V6.1a1 1 0 0 1 1-1Z" 6360 clip-rule="evenodd" 6361 /> 6362</svg>`,tP=J`<svg width="32" height="32" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"> 6363 <g clip-path="url(#a)"> 6364 <path fill="url(#b)" d="M0 0h32v32H0z"/> 6365 <path fill-rule="evenodd" clip-rule="evenodd" d="M7.034 15.252c4.975-2.167 8.293-3.596 9.953-4.287 4.74-1.971 5.725-2.314 6.366-2.325.142-.002.457.033.662.198.172.14.22.33.243.463.022.132.05.435.028.671-.257 2.7-1.368 9.248-1.933 12.27-.24 1.28-.71 1.708-1.167 1.75-.99.091-1.743-.655-2.703-1.284-1.502-.985-2.351-1.598-3.81-2.558-1.684-1.11-.592-1.721.368-2.718.252-.261 4.619-4.233 4.703-4.594.01-.045.02-.213-.08-.301-.1-.09-.246-.059-.353-.035-.15.034-2.55 1.62-7.198 4.758-.682.468-1.298.696-1.851.684-.61-.013-1.782-.344-2.653-.628-1.069-.347-1.918-.53-1.845-1.12.039-.308.462-.623 1.27-.944Z" fill="#fff"/> 6366 </g> 6367 <path d="M.5 16C.5 7.44 7.44.5 16 .5 24.56.5 31.5 7.44 31.5 16c0 8.56-6.94 15.5-15.5 15.5C7.44 31.5.5 24.56.5 16Z" stroke="#141414" stroke-opacity=".05"/> 6368 <defs> 6369 <linearGradient id="b" x1="1600" y1="0" x2="1600" y2="3176.27" gradientUnits="userSpaceOnUse"> 6370 <stop stop-color="#2AABEE"/> 6371 <stop offset="1" stop-color="#229ED9"/> 6372 </linearGradient> 6373 <clipPath id="a"> 6374 <path d="M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16Z" fill="#fff"/> 6375 </clipPath> 6376 </defs> 6377</svg>`,tN=J`<svg width="14" height="15" viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg"> 6378 <path d="M7 3.71875C6.0335 3.71875 5.25 2.93525 5.25 1.96875C5.25 1.00225 6.0335 0.21875 7 0.21875C7.9665 0.21875 8.75 1.00225 8.75 1.96875C8.75 2.93525 7.9665 3.71875 7 3.71875Z" fill="#949E9E"/> 6379 <path d="M7 8.96875C6.0335 8.96875 5.25 8.18525 5.25 7.21875C5.25 6.25225 6.0335 5.46875 7 5.46875C7.9665 5.46875 8.75 6.25225 8.75 7.21875C8.75 8.18525 7.9665 8.96875 7 8.96875Z" fill="#949E9E"/> 6380 <path d="M5.25 12.4688C5.25 13.4352 6.0335 14.2187 7 14.2187C7.9665 14.2187 8.75 13.4352 8.75 12.4688C8.75 11.5023 7.9665 10.7188 7 10.7188C6.0335 10.7188 5.25 11.5023 5.25 12.4688Z" fill="#949E9E"/> 6381</svg>`,tM=J`<svg fill="none" viewBox="0 0 40 40"> 6382 <g clip-path="url(#a)"> 6383 <g clip-path="url(#b)"> 6384 <circle cx="20" cy="19.89" r="20" fill="#5A3E85" /> 6385 <g clip-path="url(#c)"> 6386 <path 6387 fill="#fff" 6388 d="M18.22 25.7 20 23.91h3.34l2.1-2.1v-6.68H15.4v8.78h2.82v1.77Zm3.87-8.16h1.25v3.66H22.1v-3.66Zm-3.34 0H20v3.66h-1.25v-3.66ZM20 7.9a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm6.69 14.56-3.66 3.66h-2.72l-1.77 1.78h-1.88V26.1H13.3v-9.82l.94-2.4H26.7v8.56Z" 6389 /> 6390 </g> 6391 </g> 6392 </g>
6393 <defs> 6394 <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> 6395 <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 6396 <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath> 6397 </defs> 6398</svg>`,tD=J`<svg fill="none" viewBox="0 0 16 16"> 6399 <path 6400 fill="currentColor" 6401 d="m14.36 4.74.01.42c0 4.34-3.3 9.34-9.34 9.34A9.3 9.3 0 0 1 0 13.03a6.6 6.6 0 0 0 4.86-1.36 3.29 3.29 0 0 1-3.07-2.28c.5.1 1 .07 1.48-.06A3.28 3.28 0 0 1 .64 6.11v-.04c.46.26.97.4 1.49.41A3.29 3.29 0 0 1 1.11 2.1a9.32 9.32 0 0 0 6.77 3.43 3.28 3.28 0 0 1 5.6-3 6.59 6.59 0 0 0 2.08-.8 3.3 3.3 0 0 1-1.45 1.82A6.53 6.53 0 0 0 16 3.04c-.44.66-1 1.23-1.64 1.7Z" 6402 /> 6403</svg>`,tB=J`<svg fill="none" viewBox="0 0 28 28"> 6404 <path 6405 fill="currentColor" 6406 fill-rule="evenodd" 6407 d="M18.1 4.76c-.42-.73-1.33-1.01-2.09-.66l-1.42.66c-.37.18-.8.18-1.18 0l-1.4-.65a1.63 1.63 0 0 0-2.1.66l-.84 1.45c-.2.34-.53.59-.92.67l-1.7.35c-.83.17-1.39.94-1.3 1.78l.19 1.56c.04.39-.08.78-.33 1.07l-1.12 1.3c-.52.6-.52 1.5 0 2.11L5 16.38c.25.3.37.68.33 1.06l-.18 1.57c-.1.83.46 1.6 1.28 1.78l1.7.35c.4.08.73.32.93.66l.84 1.43a1.63 1.63 0 0 0 2.09.66l1.41-.66c.37-.17.8-.17 1.18 0l1.43.67c.76.35 1.66.07 2.08-.65l.86-1.45c.2-.34.54-.58.92-.66l1.68-.35A1.63 1.63 0 0 0 22.84 19l-.18-1.57a1.4 1.4 0 0 1 .33-1.06l1.12-1.32c.52-.6.52-1.5 0-2.11l-1.12-1.3a1.4 1.4 0 0 1-.33-1.07l.18-1.57c.1-.83-.46-1.6-1.28-1.77l-1.68-.35a1.4 1.4 0 0 1-.92-.66l-.86-1.47Zm-3.27-3.2a4.43 4.43 0 0 1 5.69 1.78l.54.93 1.07.22a4.43 4.43 0 0 1 3.5 4.84l-.11.96.7.83a4.43 4.43 0 0 1 .02 5.76l-.72.85.1.96a4.43 4.43 0 0 1-3.5 4.84l-1.06.22-.54.92a4.43 4.43 0 0 1-5.68 1.77l-.84-.4-.82.39a4.43 4.43 0 0 1-5.7-1.79l-.51-.89-1.09-.22a4.43 4.43 0 0 1-3.5-4.84l.1-.96-.72-.85a4.43 4.43 0 0 1 .01-5.76l.71-.83-.1-.95a4.43 4.43 0 0 1 3.5-4.84l1.08-.23.53-.9a4.43 4.43 0 0 1 5.7-1.8l.81.38.83-.39ZM18.2 9.4c.65.42.84 1.28.42 1.93l-4.4 6.87a1.4 1.4 0 0 1-2.26.14L9.5 15.39a1.4 1.4 0 0 1 2.15-1.8l1.23 1.48 3.38-5.26a1.4 1.4 0 0 1 1.93-.42Z" 6408 clip-rule="evenodd" 6409 /> 6410</svg>`,t$=J`<svg fill="none" viewBox="0 0 14 14"> 6411 <path 6412 fill="currentColor" 6413 fill-rule="evenodd" 6414 d="m4.1 12.43-.45-.78-.93-.2a1.65 1.65 0 0 1-1.31-1.8l.1-.86-.61-.71a1.65 1.65 0 0 1 0-2.16l.6-.7-.09-.85c-.1-.86.47-1.64 1.3-1.81l.94-.2.45-.78A1.65 1.65 0 0 1 6.23.9l.77.36.78-.36c.77-.36 1.69-.07 2.12.66l.47.8.91.2c.84.17 1.4.95 1.31 1.8l-.1.86.6.7c.54.62.54 1.54.01 2.16l-.6.71.09.86c.1.85-.47 1.63-1.3 1.8l-.92.2-.47.79a1.65 1.65 0 0 1-2.12.66L7 12.74l-.77.36c-.78.35-1.7.07-2.13-.67Zm5.74-6.9a1 1 0 1 0-1.68-1.07L6.32 7.3l-.55-.66a1 1 0 0 0-1.54 1.28l1.43 1.71a1 1 0 0 0 1.61-.1l2.57-4Z" 6415 clip-rule="evenodd" 6416 /> 6417</svg>`,tU=J` 6418 <svg fill="none" viewBox="0 0 48 44"> 6419 <path 6420 style="fill: var(--wui-color-bg-300);" 6421 d="M4.56 8.64c-1.23 1.68-1.23 4.08-1.23 8.88v8.96c0 4.8 0 7.2 1.23 8.88.39.55.87 1.02 1.41 1.42C7.65 38 10.
642105 38 14.85 38h14.3c4.8 0 7.2 0 8.88-1.22a6.4 6.4 0 0 0 1.41-1.42c.83-1.14 1.1-2.6 1.19-4.92a6.4 6.4 0 0 0 5.16-4.65c.21-.81.21-1.8.21-3.79 0-1.98 0-2.98-.22-3.79a6.4 6.4 0 0 0-5.15-4.65c-.1-2.32-.36-3.78-1.19-4.92a6.4 6.4 0 0 0-1.41-1.42C36.35 6 33.95 6 29.15 6h-14.3c-4.8 0-7.2 0-8.88 1.22a6.4 6.4 0 0 0-1.41 1.42Z" 6422 /> 6423 <path 6424 style="fill: var(--wui-color-fg-200);" 6425 fill-rule="evenodd" 6426 d="M2.27 11.33a6.4 6.4 0 0 1 6.4-6.4h26.66a6.4 6.4 0 0 1 6.4 6.4v1.7a6.4 6.4 0 0 1 5.34 6.3v5.34a6.4 6.4 0 0 1-5.34 6.3v1.7a6.4 6.4 0 0 1-6.4 6.4H8.67a6.4 6.4 0 0 1-6.4-6.4V11.33ZM39.6 31.07h-6.93a9.07 9.07 0 1 1 0-18.14h6.93v-1.6a4.27 4.27 0 0 0-4.27-4.26H8.67a4.27 4.27 0 0 0-4.27 4.26v21.34a4.27 4.27 0 0 0 4.27 4.26h26.66a4.27 4.27 0 0 0 4.27-4.26v-1.6Zm-6.93-16a6.93 6.93 0 0 0 0 13.86h8a4.27 4.27 0 0 0 4.26-4.26v-5.34a4.27 4.27 0 0 0-4.26-4.26h-8Z" 6427 clip-rule="evenodd" 6428 /> 6429 </svg> 6430`,tL=J`<svg fill="none" viewBox="0 0 20 20"> 6431 <path 6432 fill="currentColor" 6433 fill-rule="evenodd" 6434 d="M0 5.5c0-1.8 1.46-3.25 3.25-3.25H14.5c1.8 0 3.25 1.46 3.25 3.25v.28A3.25 3.25 0 0 1 20 8.88v2.24c0 1.45-.94 2.68-2.25 3.1v.28c0 1.8-1.46 3.25-3.25 3.25H3.25A3.25 3.25 0 0 1 0 14.5v-9Zm15.75 8.88h-2.38a4.38 4.38 0 0 1 0-8.76h2.38V5.5c0-.69-.56-1.25-1.25-1.25H3.25C2.56 4.25 2 4.81 2 5.5v9c0 .69.56 1.25 1.25 1.25H14.5c.69 0 1.25-.56 1.25-1.25v-.13Zm-2.38-6.76a2.37 2.37 0 1 0 0 4.75h3.38c.69 0 1.25-.55 1.25-1.24V8.87c0-.69-.56-1.24-1.25-1.24h-3.38Z" 6435 clip-rule="evenodd" 6436 /> 6437</svg>`,tj=J`<svg fill="none" viewBox="0 0 96 67"> 6438 <path 6439 fill="currentColor" 6440 d="M25.32 18.8a32.56 32.56 0 0 1 45.36 0l1.5 1.47c.63.62.63 1.61 0 2.22l-5.15 5.05c-.31.3-.82.3-1.14 0l-2.07-2.03a22.71 22.71 0 0 0-31.64 0l-2.22 2.18c-.31.3-.82.3-1.14 0l-5.15-5.05a1.55 1.55 0 0 1 0-2.22l1.65-1.62Zm56.02 10.44 4.59 4.5c.63.6.63 1.6 0 2.21l-20.7 20.26c-.62.61-1.63.61-2.26 0L48.28 41.83a.4.4 0 0 0-.56 0L33.03 56.21c-.63.61-1.64.61-2.27 0L10.07 35.95a1.55 1.55 0 0 1 0-2.22l4.59-4.5a1.63 1.63 0 0 1 2.27 0L31.6 43.63a.4.4 0 0 0 .57 0l14.69-14.38a1.63 1.63 0 0 1 2.26 0l14.69 14.38a.4.4 0 0 0 .57 0l14.68-14.38a1.63 1.63 0 0 1 2.27 0Z" 6441 /> 6442 <path 6443 stroke="#000" 6444 stroke-opacity=".1" 6445 d="M25.67 19.15a32.06 32.06 0 0 1 44.66 0l1.5 1.48c.43.42.43 1.09 0 1.5l-5.15 5.05a.31.31 0 0 1-.44 0l-2.07-2.03a23.21 23.21 0 0 0-32.34 0l-2.22 2.18a.31.31 0 0 1-.44 0l-5.15-5.05a1.05 1.05 0 0 1 0-1.5l1.65-1.63ZM81 29.6l4.6 4.5c.42.41.42 1.09 0 1.5l-20.7 20.26c-.43.43-1.14.43-1.57 0L48.63 41.47a.9.9 0 0 0-1.26 0L32.68 55.85c-.43.43-1.14.43-1.57 0L10.42 35.6a1.05 1.05 0 0 1 0-1.5l4.59-4.5a1.13 1.13 0 0 1 1.57 0l14.68 14.38a.9.9 0 0 0 1.27 0l-.35-.35.35.35L47.22 29.6a1.13 1.13 0 0 1 1.56 0l14.7 14.38a.9.9 0 0 0 1.26 0L79.42 29.6a1.13 1.13 0 0 1 1.57 0Z" 6446 /> 6447</svg>`,tz=J`<svg fill="none" viewBox="0 0 20 20"> 6448 <path 6449 fill="currentColor" 6450 d="M11 6.67a1 1 0 1 0-2 0v2.66a1 1 0 0 0 2 0V6.67ZM10 14.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z" 6451 /> 6452 <path 6453 fill="currentColor" 6454 fill-rule="evenodd" 6455 d="M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm-7 9a7 7 0 1 1 14 0 7 7 0 0 1-14 0Z" 6456 clip-rule="evenodd" 6457 /> 6458</svg>`,tF=J`<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"> 6459<path fill-rule="evenodd" clip-rule="evenodd" d="M5.00177 1.78569C3.8179 1.78569 2.85819 2.74508 2.85819 3.92855C2.85819 4.52287 3.09928 5.05956 3.49077 5.4485L3.5005 5.45817C3.64381 5.60054 3.76515 5.72108 3.85631 5.81845C3.93747 5.90512 4.05255 6.03218 4.12889 6.1805C4.16999 6.26034 4.19 6.30843 4.21768 6.39385C4.22145 6.40546 4.22499 6.41703 4.22833 6.42855H5.77521C5.77854 6.41703 5.78208 6.40547 5.78585 6.39385C5.81353 6.30843 5.83354 6.26034 5.87464 6.1805C5.95098 6.03218 6.06606 5.90512 6.14722 5.81845C6.23839 5.72108 6.35973 5.60053 6.50304 5.45816L6.51276 5.4485C6.90425 5.05956 7.14534 4.52287 7.14534 3.92855C7.14534 2.74508 6.18563 1.78569 5.00177 1.78569ZM5.71629 7.85712H4.28724C4.28724 8.21403 4.28876 8.40985 4.30703 8.54571C4.30727 8.54748 4.30751 8.54921 4.30774 8.55091C4.30944 8.55115 4.31118 8.55138 4.31295 8.55162C4.44884 8.56989 4.64474 8.5714 5.00177 8.5714C5.3588 8.5714 5.55469 8.56989 5.69059 8.55162C5.69236 8.55138 5.69409 8.55115 5.69579 8.55091C5.69603 8.54921 5.69627 8.54748 5.6965 8.54571C5.71477 8.40985 5.71629 8.21403 5.71629 7.85712ZM2.85819 7.14283C2.85819 6.9948 2.85796 6.91114 2.8548 6.85032C2.85461 6.84656 2.85441 6.84309 2.85421 6.83988C2.84393 6.8282 2.83047 6.81334 2.81301 6.79469C2.74172 6.71856 2.63908 6.61643 2.48342 6.46178C1.83307 5.81566 1.42914 4.91859 1.42914 3.92855C1.42914 1.9561 3.02866 0.357117 5.00177 0.357117C6.97487 0.357117 8.57439 1.9561 8.57439 3.92855C8.57439 4.91859 8.17047 5.81566 7.52012 6.46178C7.36445 6.61643 7.26182 6.71856 7.19053 6.79469C7.17306 6.81334 7.1596 6.8282 7.14932 6.83988C7.14912 6.84309 7.14892 6.84656 7.14873 6.85032C7.14557 6.91114 7.14534 6.9948 7.14534 7.14283V7.85712C7.14534 7.87009 7.14535 7.88304 7.14535 7.89598C7.14541 8.19889 7.14547 8.49326 7.11281 8.73606C7.076 9.00978 6.98631 9.32212 6.72678 9.58156C6.4672
64596 9.841 6.15481 9.93065 5.881 9.96745C5.63813 10.0001 5.34365 10 5.04064 9.99998C5.0277 9.99998 5.01474 9.99998 5.00177 9.99998C4.98879 9.99998 4.97583 9.99998 4.96289 9.99998C4.65988 10 4.36541 10.0001 4.12253 9.96745C3.84872 9.93065 3.53628 9.841 3.27675 9.58156C3.01722 9.32212 2.92753 9.00978 2.89072 8.73606C2.85807 8.49326 2.85812 8.19889 2.85818 7.89598C2.85819 7.88304 2.85819 7.87008 2.85819 7.85712V7.14283ZM7.1243 6.86977C7.12366 6.87069 7.1233 6.87116 7.12327 6.87119C7.12323 6.87123 7.12356 6.87076 7.1243 6.86977ZM2.88027 6.8712C2.88025 6.87119 2.87988 6.8707 2.87921 6.86975C2.87995 6.87072 2.88028 6.8712 2.88027 6.8712Z" fill="#949E9E"/> 6460</svg>`,tH=J`<svg 6461 xmlns="http://www.w3.org/2000/svg" 6462 width="28" 6463 height="28" 6464 viewBox="0 0 28 28" 6465 fill="none"> 6466 <path 6467 fill="#949E9E" 6468 fill-rule="evenodd" 6469 d="M7.974 2.975h12.052c1.248 0 2.296 0 3.143.092.89.096 1.723.307 2.461.844a4.9 4.9 0 0 1 1.084 1.084c.537.738.748 1.57.844 2.461.092.847.092 1.895.092 3.143v6.802c0 1.248 0 2.296-.092 3.143-.096.89-.307 1.723-.844 2.461a4.9 4.9 0 0 1-1.084 1.084c-.738.537-1.57.748-2.461.844-.847.092-1.895.092-3.143.092H7.974c-1.247 0-2.296 0-3.143-.092-.89-.096-1.723-.307-2.461-.844a4.901 4.901 0 0 1-1.084-1.084c-.537-.738-.748-1.571-.844-2.461C.35 19.697.35 18.649.35 17.4v-6.802c0-1.248 0-2.296.092-3.143.096-.89.307-1.723.844-2.461A4.9 4.9 0 0 1 2.37 3.91c.738-.537 1.571-.748 2.461-.844.847-.092 1.895-.092 3.143-.092ZM5.133 5.85c-.652.071-.936.194-1.117.326a2.1 2.1 0 0 0-.465.465c-.132.181-.255.465-.325 1.117-.074.678-.076 1.573-.076 2.917v6.65c0 1.344.002 2.239.076 2.917.07.652.193.936.325 1.117a2.1 2.1 0 0 0 .465.465c.181.132.465.255 1.117.326.678.073 1.574.075 2.917.075h11.9c1.344 0 2.239-.002 2.917-.075.652-.071.936-.194 1.117-.326.179-.13.335-.286.465-.465.132-.181.255-.465.326-1.117.073-.678.075-1.573.075-2.917v-6.65c0-1.344-.002-2.239-.075-2.917-.071-.652-.194-.936-.326-1.117a2.1 2.1 0 0 0-.465-.465c-.181-.132-.465-.255-1.117-.326-.678-.073-1.573-.075-2.917-.075H8.05c-1.343 0-2.239.002-2.917.075Zm.467 7.275a3.15 3.15 0 1 1 6.3 0 3.15 3.15 0 0 1-6.3 0Zm8.75-1.75a1.4 1.4 0 0 1 1.4-1.4h3.5a1.4 1.4 0 0 1 0 2.8h-3.5a1.4 1.4 0 0 1-1.4-1.4Zm0 5.25a1.4 1.4 0 0 1 1.4-1.4H21a1.4 1.4 0 1 1 0 2.8h-5.25a1.4 1.4 0 0 1-1.4-1.4Z" 6470 clip-rule="evenodd"/> 6471</svg>`,tq=J`<svg fill="none" viewBox="0 0 41 40"> 6472 <g clip-path="url(#a)"> 6473 <path fill="#000" d="M.8 0h40v40H.8z" /> 6474 <path 6475 fill="#fff" 6476 d="m22.63 18.46 7.14-8.3h-1.69l-6.2 7.2-4.96-7.2H11.2l7.5 10.9-7.5 8.71h1.7l6.55-7.61 5.23 7.61h5.72l-7.77-11.31Zm-9.13-7.03h2.6l11.98 17.13h-2.6L13.5 11.43Z" 6477 /> 6478 </g> 6479 <defs> 6480 <clipPath id="a"><path fill="#fff" d="M.8 20a20 20 0 1 1 40 0 20 20 0 0 1-40 0Z" /></clipPath> 6481 </defs> 6482</svg>`;var tW=function(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};let tV={add:eU,allWallets:eL,arrowBottomCircle:ej,appStore:ez,apple:eF,arrowBottom:eH,arrowLeft:eq,arrowRight:eW,arrowTop:eV,bank:eZ,browser:eG,card:eK,checkmark:eQ,checkmarkBold:eY,chevronBottom:eJ,chevronLeft:eX,chevronRight:e0,chevronTop:e1,chromeStore:e2,clock:e3,close:e5,compass:e6,coinPlaceholder:e4,copy:e8,cursor:e9,cursorTransparent:e7,desktop:te,disconnect:tt,discord:tr,etherscan:tn,extension:ti,externalLink:to,facebook:ta,farcaster:ts,filters:tc,github:tl,google:tu,helpCircle:td,image:th,id:tH,infoCircle:tf,lightbulb:tF,mail:tp,mobile:tg,more:tm,networkPlaceholder:tw,nftPlaceholder:tb,off:tv,playStore:ty,plus:tC,qrCode:tx,recycleHorizontal:tA,refresh:tE,search:tk,send:t_,swapHorizontal:tS,swapHorizontalMedium:tI,swapHorizontalBold:tT,swapHorizontalRoundedBold:tR,swapVertical:tO,telegram:tP,threeDots:tN,twitch:tM,twitter:tq,twitterIcon:tD,verify:tB,verifyFilled:t$,wallet:tL,walletConnect:tj,walletPlaceholder:tU,warningCircle:tz,x:tq},tZ=class extends em{constructor(){super(...arguments),this.size="md",this.name="copy",this.color="fg-300"}render(){return this.style.cssText=` 6483 --local-color: var(--wui-color-${this.color}); 6484 --local-width: var(--wui-icon-size-${this.size}); 6485 `,Q`${tV[this.name]}`}};tZ.styles=[eS,eI,e$],tW([eD()],tZ.prototype,"size",void 0),tW([eD()],tZ.prototype,"name",void 0),tW([eD()],tZ.prototype,"color",void 0),tZ=tW([eR("wui-icon")],tZ);var tG=h` 6486 :host { 6487 display: block; 6488 width: var(--local-width); 6489 height: var(--local-height); 6490 } 6491 6492 img { 6493 display: block; 6494 width: 100%; 6495 height: 100%; 6496 object-fit: cover; 6497 object-position: center center; 6498 border-radius: inherit; 6499 } 6500`,tK=function(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};let tY=class extends em{constructor(){super(...arguments),this.src="./path/to/image.jpg",this.alt="Image",this.size=void 0}render(){return this.style.cssText=` 6501 --local-width: ${this.size?`var(--wui-icon-size-${this.size});`:"100%"}; 6502 --local-height: ${this.size?`var(--wui-icon-size-${this.size});`:"100%"}; 6503 `,Q`<img src=${this.src} alt=${this.alt} @error=${this.handleImageError} />`}handleImageError(){this.dispatchEvent(new CustomEvent("onLoadError",{bubbles:!0,composed:!0}))}};tY.styles=[eS,eI,tG],tK([eD()],tY.prototype,"src",void 0),tK([eD()],tY.prototype,"alt",void 0),tK([eD()],tY.prototype,"size",void 0),tY=tK([eR("wui-image")],tY);var tQ=h` 6504 :host { 6505 display: block; 6506 width: var(--wui-box-size-lg); 6507 height: var(--wui-box-size-lg); 6508 } 6509 6510 svg { 6511 width: var(--wui-box-size-lg); 6512 height: var(--wui-box-size-lg); 6513 fill: none; 6514 stroke: transparent; 6515 stroke-linecap: round; 6516 } 6517 6518 use { 6519 stroke: var(--wui-color-accent-100); 6520 stroke-width: 2px; 6521 stroke-dasharray: 54, 118; 6522 stroke-dashoffset: 172; 6523 animation: dash 1s linear infinite; 6524 } 6525 6526 @keyframes dash { 6527 to { 6528 stroke-dashoffset: 0px; 6529 } 6530 } 6531`;let tJ=class extends em{render(){return Q` 6532 <svg viewBox="0 0 54 59"> 6533 <path 6534 id="wui-loader-path" 6535 d="M17.22 5.295c3.877-2.277 5.737-3.363 7.72-3.726a11.44 11.44 0 0 1 4.12 0c1.983.363 3.844 1.45 7.72 3.726l6.065 3.562c3.876 2.276 5.731 3.372 7.032 4.938a11.896 11.896 0 0 1 2.06 3.63c.683 1.928.688 4.11.688 8.663v7.124c0 4.553-.005 6.735-.688 8.664a11.896 11.896 0 0 1-2.06 3.63c-1.3 1.565-3.156 2.66-7.032 4.937l-6.065 3.563c-3.877 2.276-5.737 3.362-7.72 3.725a11.46 11.46 0 0 1-4.12 0c-1.983-.363-3.844-1.449-7.72-3.726l-6.065-3.562c-3.876-2.276-5.731-3.372-7.032-4.938a11.885 11.885 0 0 1-2.06-3.63c-.682-1.928-.688-4.11-.688-8.663v-7.124c0-4.553.006-6.735.688-8.664a11.885 11.885 0 0 1 2.06-3.63c1.3-1.565 3.156-2.66 7.032-4.937l6.065-3.562Z" 6536 /> 6537 <use xlink:href="#wui-loader-path"></use> 6538 </svg> 6539 `}};tJ.styles=[eS,tQ],tJ=function(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}([eR("wui-loading-hexagon")],tJ);var tX=h` 6540 :host { 6541 display: flex; 6542 } 6543 6544 :host([data-size='sm']) > svg { 6545 width: 12px; 6546 height: 12px; 6547 } 6548 6549 :host([data-size='md']) > svg { 6550 width: 16px; 6551 height: 16px; 6552 } 6553 6554 :host([data-size='lg']) > svg { 6555 width: 24px; 6556 height: 24px; 6557 } 6558 6559 :host([data-size='xl']) > svg { 6560 width: 32px; 6561 height: 32px; 6562 } 6563 6564 svg { 6565 animation: rotate 2s linear infinite; 6566 } 6567 6568 circle { 6569 fill: none; 6570 stroke: var(--local-color); 6571 stroke-width: 4px; 6572 stroke-dasharray: 1, 124; 6573 stroke-dashoffset: 0; 6574 stroke-linecap: round; 6575 animation: dash 1.5s ease-in-out infinite; 6576 } 6577 6578 :host([data-size='md']) > svg > circle { 6579 stroke-width: 6px; 6580 } 6581 6582 :host([data-size='sm']) > svg > circle { 6583 stroke-width: 8px; 6584 } 6585 6586 @keyframes rotate { 6587 100% { 6588 transform: rotate(360deg); 6589 } 6590 } 6591 6592 @keyframes dash { 6593 0% { 6594 stroke-dasharray: 1, 124; 6595 stroke-dashoffset: 0; 6596 } 6597 6598 50% { 6599 stroke-dasharray: 90, 124; 6600 stroke-dashoffset: -35; 6601 } 6602 6603 100% { 6604 stroke-dashoffset: -125; 6605 } 6606 } 6607`,t0=function(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};let t1=class extends em{constructor(){super(...arguments),this.color="accent-100",this.size="lg"}render(){return this.style.cssText=`--local-color: ${"inherit"===this.color?"inherit":`var(--wui-color-${this.color})`}`,this.dataset.size=this.size,Q`<svg viewBox="25 25 50 50"> 6608 <circle r="20" cy="50" cx="50"></circle> 6609 </svg>`}};t1.styles=[eS,tX],t0([eD()],t1.prototype,"color",void 0),t0([eD()],t1.prototype,"size",void 0),t1=t0([eR("wui-loading-spinner")],t1);var t2=h` 6610 :host { 6611 display: block; 6612 width: var(--wui-box-size-md); 6613 height: var(--wui-box-size-md); 6614 } 6615 6616 svg { 6617 width: var(--wui-box-size-md); 6618 height: var(--wui-box-size-md); 6619 } 6620 6621 rect { 6622 fill: none; 6623 stroke: var(--wui-color-accent-100); 6624 stroke-width: 4px; 6625 stroke-linecap: round; 6626 animation: dash 1s linear infinite; 6627 } 6628 6629 @keyframes dash { 6630 to { 6631 stroke-dashoffset: 0px; 6632 } 6633 } 6634`,t3=function(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};let t5=class extends em{constructor(){super(...arguments),this.radius=36}render(){return this.svgLoaderTemplate()}svgLoaderTemplate(){let e=this.radius>50?50:this.radius,t=36-e;return Q` 6635 <svg viewBox="0 0 110 110" width="110" height="110"> 6636 <rect 6637 x="2" 6638 y="2" 6639 width="106" 6640 height="106" 6641 rx=${e} 6642 stroke-dasharray="${116+t} ${245+t}" 6643 stroke-dashoffset=${360+1.75*t} 6644 /> 6645 </svg> 6646 `}};t5.styles=[eS,t2],t3([eD({type:Number})],t5.prototype,"radius",void 0),t5=t3([eR("wui-loading-thumbnail")],t5);var t4=h` 6647 :host { 6648 display: block; 6649 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 6650 background: linear-gradient( 6651 120deg, 6652 var(--wui-color-bg-200) 5%, 6653 var(--wui-color-bg-200) 48%, 6654 var(--wui-color-bg-300) 55%, 6655 var(--wui-color-bg-300) 60%, 6656 var(--wui-color-bg-300) calc(60% + 10px), 6657 var(--wui-color-bg-200) calc(60% + 12px), 6658 var(--wui-color-bg-200) 100% 6659 ); 6660 background-size: 250%; 6661 animation: shimmer 3s linear infinite reverse; 6662 } 6663 6664 :host([variant='light']) { 6665 background: linear-gradient( 6666 120deg, 6667 var(--wui-color-bg-150) 5%, 6668 var(--wui-color-bg-150) 48%, 6669 var(--wui-color-bg-200) 55%, 6670 var(--wui-color-bg-200) 60%, 6671 var(--wui-color-bg-200) calc(60% + 10px), 6672 var(--wui-color-bg-150) calc(60% + 12px), 6673 var(--wui-color-bg-150) 100% 6674 ); 6675 background-size: 250%; 6676 } 6677 6678 @keyframes shimmer { 6679 from { 6680 background-position: -250% 0; 6681 } 6682 to { 6683 background-position: 250% 0; 6684 } 6685 } 6686`,t6=function(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};let t8=class extends em{constructor(){super(...arguments),this.width="",this.height="",this.borderRadius="m",this.variant="default"}render(){return this.style.cssText=` 6687 width: ${this.width}; 6688 height: ${this.height}; 6689 border-radius: clamp(0px,var(--wui-border-radius-${this.borderRadius}), 40px); 6690 `,Q`<slot></slot>`}};t8.styles=[t4],t6([eD()],t8.prototype,"width",void 0),t6([eD()],t8.prototype,"height",void 0),t6([eD()],t8.prototype,"borderRadius",void 0),t6([eD()],t8.prototype,"variant",void 0),t8=t6([eR("wui-shimmer")],t8);/** 6691 * @license 6692 * Copyright 2017 Google LLC 6693 * SPDX-License-Identifier: BSD-3-Clause 6694 */let t9=e=>(...t)=>({_$litDirective$:e,values:t});class t7{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this.t=e,this._$AM=t,this.i=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}/** 6695 * @license 6696 * Copyright 2018 Google LLC 6697 * SPDX-License-Identifier: BSD-3-Clause 6698 */let re=t9(class extends t7{constructor(e){if(super(e),1!==e.type||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}
6698update(e,[t]){if(void 0===this.st){for(let r in this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e))),t)t[r]&&!this.nt?.has(r)&&this.st.add(r);return this.render(t)}let r=e.element.classList;for(let e of this.st)e in t||(r.remove(e),this.st.delete(e));for(let e in t){let n=!!t[e];n===this.st.has(e)||this.nt?.has(e)||(n?(r.add(e),this.st.add(e)):(r.remove(e),this.st.delete(e)))}return X}});var rt=h` 6699 :host { 6700 display: inline-flex !important; 6701 } 6702 6703 slot { 6704 width: 100%; 6705 display: inline-block; 6706 font-style: normal; 6707 font-family: var(--wui-font-family); 6708 font-feature-settings: 6709 'tnum' on, 6710 'lnum' on, 6711 'case' on; 6712 line-height: 130%; 6713 font-weight: var(--wui-font-weight-regular); 6714 overflow: inherit; 6715 text-overflow: inherit; 6716 text-align: var(--local-align); 6717 color: var(--local-color); 6718 } 6719 6720 .wui-line-clamp-1 { 6721 overflow: hidden; 6722 display: -webkit-box; 6723 -webkit-box-orient: vertical; 6724 -webkit-line-clamp: 1; 6725 } 6726 6727 .wui-line-clamp-2 { 6728 overflow: hidden; 6729 display: -webkit-box; 6730 -webkit-box-orient: vertical; 6731 -webkit-line-clamp: 2; 6732 } 6733 6734 .wui-font-medium-400 { 6735 font-size: var(--wui-font-size-medium); 6736 font-weight: var(--wui-font-weight-light); 6737 letter-spacing: var(--wui-letter-spacing-medium); 6738 } 6739 6740 .wui-font-medium-600 { 6741 font-size: var(--wui-font-size-medium); 6742 letter-spacing: var(--wui-letter-spacing-medium); 6743 } 6744 6745 .wui-font-title-600 { 6746 font-size: var(--wui-font-size-title); 6747 letter-spacing: var(--wui-letter-spacing-title); 6748 } 6749 6750 .wui-font-title-6-600 { 6751 font-size: var(--wui-font-size-title-6); 6752 letter-spacing: var(--wui-letter-spacing-title-6); 6753 } 6754 6755 .wui-font-mini-700 { 6756 font-size: var(--wui-font-size-mini); 6757 letter-spacing: var(--wui-letter-spacing-mini); 6758 text-transform: uppercase; 6759 } 6760 6761 .wui-font-large-500, 6762 .wui-font-large-600, 6763 .wui-font-large-700 { 6764 font-size: var(--wui-font-size-large); 6765 letter-spacing: var(--wui-letter-spacing-large); 6766 } 6767 6768 .wui-font-2xl-500, 6769 .wui-font-2xl-600, 6770 .wui-font-2xl-700 { 6771 font-size: var(--wui-font-size-2xl); 6772 letter-spacing: var(--wui-letter-spacing-2xl); 6773 } 6774 6775 .wui-font-paragraph-400, 6776 .wui-font-paragraph-500, 6777 .wui-font-paragraph-600, 6778 .wui-font-paragraph-700 { 6779 font-size: var(--wui-font-size-paragraph); 6780 letter-spacing: var(--wui-letter-spacing-paragraph); 6781 } 6782 6783 .wui-font-small-400, 6784 .wui-font-small-500, 6785 .wui-font-small-600 { 6786 font-size: var(--wui-font-size-small); 6787 letter-spacing: var(--wui-letter-spacing-small); 6788 } 6789 6790 .wui-font-tiny-400, 6791 .wui-font-tiny-500, 6792 .wui-font-tiny-600 { 6793 font-size: var(--wui-font-size-tiny); 6794 letter-spacing: var(--wui-letter-spacing-tiny); 6795 } 6796 6797 .wui-font-micro-700, 6798 .wui-font-micro-600 { 6799 font-size: var(--wui-font-size-micro); 6800 letter-spacing: var(--wui-letter-spacing-micro); 6801 text-transform: uppercase; 6802 } 6803 6804 .wui-font-tiny-400, 6805 .wui-font-small-400, 6806 .wui-font-medium-400, 6807 .wui-font-paragraph-400 { 6808 font-weight: var(--wui-font-weight-light); 6809 } 6810 6811 .wui-font-large-700, 6812 .wui-font-paragraph-700, 6813 .wui-font-micro-700, 6814 .wui-font-mini-700 { 6815 font-weight: var(--wui-font-weight-bold); 6816 } 6817 6818 .wui-font-medium-600, 6819 .wui-font-medium-title-600, 6820 .wui-font-title-6-600, 6821 .wui-font-large-600, 6822 .wui-font-paragraph-600, 6823 .wui-font-small-600, 6824 .wui-font-tiny-600, 6825 .wui-font-micro-600 { 6826 font-weight: var(--wui-font-weight-medium); 6827 } 6828 6829 :host([disabled]) { 6830 opacity: 0.4; 6831 } 6832`,rr=function(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};let rn=class extends em{constructor(){super(...arguments),this.variant="paragraph-500",this.color="fg-300",this.align="left",this.lineClamp=void 0}render(){let e={[`wui-font-${this.variant}`]:!0,[`wui-color-${this.color}
6832`]:!0,[`wui-line-clamp-${this.lineClamp}`]:!!this.lineClamp};return this.style.cssText=` 6833 --local-align: ${this.align}; 6834 --local-color: var(--wui-color-${this.color}); 6835 `,Q`<slot class=${re(e)}></slot>`}};rn.styles=[eS,rt],rr([eD()],rn.prototype,"variant",void 0),rr([eD()],rn.prototype,"color",void 0),rr([eD()],rn.prototype,"align",void 0),rr([eD()],rn.prototype,"lineClamp",void 0),rn=rr([eR("wui-text")],rn);let ri=J`<svg fill="none" viewBox="0 0 60 60"> 6836 <rect width="60" height="60" fill="#1DC956" rx="30" /> 6837 <circle cx="30" cy="30" r="3" fill="#fff" /> 6838 <path 6839 fill="#2BEE6C" 6840 stroke="#fff" 6841 stroke-width="2" 6842 d="m45.32 17.9-.88-.42.88.42.02-.05c.1-.2.21-.44.26-.7l-.82-.15.82.16a2 2 0 0 0-.24-1.4c-.13-.23-.32-.42-.47-.57a8.42 8.42 0 0 1-.04-.04l-.04-.04a2.9 2.9 0 0 0-.56-.47l-.51.86.5-.86a2 2 0 0 0-1.4-.24c-.26.05-.5.16-.69.26l-.05.02-15.05 7.25-.1.05c-1.14.55-1.85.89-2.46 1.37a7 7 0 0 0-1.13 1.14c-.5.6-.83 1.32-1.38 2.45l-.05.11-7.25 15.05-.02.05c-.1.2-.21.43-.26.69a2 2 0 0 0 .24 1.4l.85-.5-.85.5c.13.23.32.42.47.57l.04.04.04.04c.15.15.34.34.56.47a2 2 0 0 0 1.41.24l-.2-.98.2.98c.25-.05.5-.17.69-.26l.05-.02-.42-.87.42.87 15.05-7.25.1-.05c1.14-.55 1.85-.89 2.46-1.38a7 7 0 0 0 1.13-1.13 12.87 12.87 0 0 0 1.43-2.56l7.25-15.05Z" 6843 /> 6844 <path 6845 fill="#1DC956" 6846 d="M33.38 32.72 30.7 29.3 15.86 44.14l.2.2a1 1 0 0 0 1.14.2l15.1-7.27a3 3 0 0 0 1.08-4.55Z" 6847 /> 6848 <path 6849 fill="#86F999" 6850 d="m26.62 27.28 2.67 3.43 14.85-14.85-.2-.2a1 1 0 0 0-1.14-.2l-15.1 7.27a3 3 0 0 0-1.08 4.55Z" 6851 /> 6852 <circle cx="30" cy="30" r="3" fill="#fff" transform="rotate(45 30 30)" /> 6853 <rect width="59" height="59" x=".5" y=".5" stroke="#062B2B" stroke-opacity=".1" rx="29.5" /> 6854</svg> `,ro=J`<svg viewBox="0 0 60 60" fill="none"> 6855 <g clip-path="url(#clip0_7734_50402)"> 6856 <path 6857 d="M0 24.9C0 15.6485 0 11.0228 1.97053 7.56812C3.3015 5.23468 5.23468 3.3015 7.56812 1.97053C11.0228 0 15.6485 0 24.9 0H35.1C44.3514 0 48.9772 0 52.4319 1.97053C54.7653 3.3015 56.6985 5.23468 58.0295 7.56812C60 11.0228 60 15.6485 60 24.9V35.1C60 44.3514 60 48.9772 58.0295 52.4319C56.6985 54.7653 54.7653 56.6985 52.4319 58.0295C48.9772 60 44.3514 60 35.1 60H24.9C15.6485 60 11.0228 60 7.56812 58.0295C5.23468 56.6985 3.3015 54.7653 1.97053 52.4319C0 48.9772 0 44.3514 0 35.1V24.9Z" 6858 fill="#EB8B47" 6859 /> 6860 <path 6861 d="M0.5 24.9C0.5 20.2652 0.50047 16.8221 0.744315 14.105C0.987552 11.3946 1.46987 9.45504 2.40484 7.81585C3.69145 5.56019 5.56019 3.69145 7.81585 2.40484C9.45504 1.46987 11.3946 0.987552 14.105 0.744315C16.8221 0.50047 20.2652 0.5 24.9 0.5H35.1C39.7348 0.5 43.1779 0.50047 45.895 0.744315C48.6054 0.987552 50.545 1.46987 52.1841 2.40484C54.4398 3.69145 56.3086 5.56019 57.5952 7.81585C58.5301 9.45504 59.0124 11.3946 59.2557 14.105C59.4995 16.8221 59.5 20.2652 59.5 24.9V35.1C59.5 39.7348 59.4995 43.1779 59.2557 45.895C59.0124 48.6054 58.5301 50.545 57.5952 52.1841C56.3086 54.4398 54.4398 56.3086 52.1841 57.5952C50.545 58.5301 48.6054 59.0124 45.895 59.2557C43.1779 59.4995 39.7348 59.5 35.1 59.5H24.9C20.2652 59.5 16.8221 59.4995 14.105 59.2557C11.3946 59.0124 9.45504 58.5301 7.81585 57.5952C5.56019 56.3086 3.69145 54.4398 2.40484 52.1841C1.46987 50.545 0.987552 48.6054 0.744315 45.895C0.50047 43.1779 0.5 39.7348 0.5 35.1V24.9Z" 6862 stroke="#062B2B" 6863 stroke-opacity="0.1" 6864 /> 6865 <path 6866 d="M19 52C24.5228 52 29 47.5228 29 42C29 36.4772 24.5228 32 19 32C13.4772 32 9 36.4772 9 42C9 47.5228 13.4772 52 19 52Z" 6867 fill="#FF974C" 6868 stroke="white" 6869 stroke-width="2" 6870 /> 6871 <path 6872 fill-rule="evenodd" 6873 clip-rule="evenodd" 6874 d="M42.8437 8.3264C42.4507 7.70891 41.5493 7.70891 41.1564 8.32641L28.978 27.4638C28.5544 28.1295 29.0326 29.0007 29.8217 29.0007H54.1783C54.9674 29.0007 55.4456 28.1295 55.022 27.4638L42.8437 8.3264Z" 6875 fill="white" 6876 /> 6877 <path 6878 fill-rule="evenodd" 6879 clip-rule="evenodd" 6880 d="M42.3348 11.6456C42.659 11.7608 42.9061 12.1492 43.4005 12.926L50.7332 24.4488C51.2952 25.332 51.5763 25.7737 51.5254 26.1382C51.4915 26.3808 51.3698 26.6026 51.1833 26.7614C50.9031 27 50.3796 27 49.3327 27H34.6673C33.6204 27 33.0969 27 32.8167 26.7614C32.6302 26.6026 32.5085 26.3808 32.4746 26.1382C32.4237 25.7737 32.7048 25.332 33.2669 24.4488L40.5995 12.926C41.0939 12.1492 41.341 11.7608 41.6652 11.6456C41.8818 11.5687 42.1182 11.5687 42.3348 11.6456ZM35.0001 26.999C38.8661 26.999 42.0001 23.865 42.0001 19.999C42.0001 23.865 45.1341 26.999 49.0001 26.999H35.0001Z" 6881 fill="#FF974C" 6882 /> 6883 <path 6884 d="M10.1061 9.35712C9.9973 9.67775 9.99867 10.0388 9.99978 10.3323C9.99989 10.3611 10 10.3893 10 10.4167V25.5833C10 25.6107 9.99989 25.6389 9.99978 25.6677C9.99867 25.9612 9.9973 26.3222 10.1061 26.6429C10.306 27.2317 10.7683 27.694 11.3571 27.8939C11.6777 28.0027 12.0388 28.0013 12.3323 28.0002C12.3611 28.0001 12.3893 28 12.4167 28H19C24.5228 28 29 23.5228 29 18C29 12.4772 24.5228 8 19 8H12.4167C12.3893 8 12.3611 7.99989 12.3323 7.99978C12.0388 7.99867 11.6778 7.9973 11.3571 8.10614C10.7683 8.306 10.306 8.76834 10.1061 9.35712Z" 6885 fill="#FF974C" 6886 stroke="white" 6887 stroke-width="2" 6888 /> 6889 <circle cx="19" cy="18" r="4" fill="#EB8B47" stroke="white" stroke-width="2" /> 6890 <circle cx="19" cy="42" r="4" fill="#EB8B47" stroke="white" stroke-width="2" /> 6891 </g>
6892 <defs> 6893 <clipPath id="clip0_7734_50402"> 6894 <rect width="60" height="60" fill="white" /> 6895 </clipPath> 6896 </defs> 6897</svg> `,ra=J`<svg fill="none" viewBox="0 0 60 60"> 6898 <g clip-path="url(#a)"> 6899 <path 6900 fill="#1DC956" 6901 d="M0 25.01c0-9.25 0-13.88 1.97-17.33a15 15 0 0 1 5.6-5.6C11.02.11 15.65.11 24.9.11h10.2c9.25 0 13.88 0 17.33 1.97a15 15 0 0 1 5.6 5.6C60 11.13 60 15.76 60 25v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6c-3.45 1.97-8.08 1.97-17.33 1.97H24.9c-9.25 0-13.88 0-17.33-1.97a15 15 0 0 1-5.6-5.6C0 49.1 0 44.46 0 35.21v-10.2Z" 6902 /> 6903 <path 6904 fill="#2BEE6C" 6905 d="M16.1 60c-3.82-.18-6.4-.64-8.53-1.86a15 15 0 0 1-5.6-5.6C.55 50.06.16 46.97.04 41.98L4.2 40.6a4 4 0 0 0 2.48-2.39l4.65-12.4a2 2 0 0 1 2.5-1.2l2.53.84a2 2 0 0 0 2.43-1l2.96-5.94a2 2 0 0 1 3.7.32l3.78 12.58a2 2 0 0 0 3.03 1.09l3.34-2.23a2 2 0 0 0 .65-.7l5.3-9.72a2 2 0 0 1 1.42-1.01l4.14-.69a2 2 0 0 1 1.6.44l3.9 3.24a2 2 0 0 0 2.7-.12l4.62-4.63c.08 2.2.08 4.8.08 7.93v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6c-2.13 1.22-4.7 1.68-8.54 1.86H16.11Z" 6906 /> 6907 <path 6908 fill="#fff" 6909 d="m.07 43.03-.05-2.1 3.85-1.28a3 3 0 0 0 1.86-1.79l4.66-12.4a3 3 0 0 1 3.75-1.8l2.53.84a1 1 0 0 0 1.21-.5l2.97-5.94a3 3 0 0 1 5.56.48l3.77 12.58a1 1 0 0 0 1.51.55l3.34-2.23a1 1 0 0 0 .33-.35l5.3-9.71a3 3 0 0 1 2.14-1.53l4.13-.69a3 3 0 0 1 2.41.66l3.9 3.24a1 1 0 0 0 1.34-.06l5.28-5.28c.05.85.08 1.75.1 2.73L56 22.41a3 3 0 0 1-4.04.19l-3.9-3.25a1 1 0 0 0-.8-.21l-4.13.69a1 1 0 0 0-.72.5l-5.3 9.72a3 3 0 0 1-.97 1.05l-3.34 2.23a3 3 0 0 1-4.53-1.63l-3.78-12.58a1 1 0 0 0-1.85-.16l-2.97 5.94a3 3 0 0 1-3.63 1.5l-2.53-.84a1 1 0 0 0-1.25.6l-4.65 12.4a5 5 0 0 1-3.1 3L.07 43.02Z" 6910 /> 6911 <path 6912 fill="#fff" 6913 fill-rule="evenodd" 6914 d="M49.5 19a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z" 6915 clip-rule="evenodd" 6916 /> 6917 <path fill="#fff" d="M45 .28v59.66l-2 .1V.19c.7.02 1.37.05 2 .1Z" /> 6918 <path fill="#2BEE6C" d="M47.5 19a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z" /> 6919 <path 6920 stroke="#fff" 6921 stroke-opacity=".1" 6922 d="M.5 25.01c0-4.63 0-8.08.24-10.8.25-2.7.73-4.64 1.66-6.28a14.5 14.5 0 0 1 5.42-5.41C9.46 1.58 11.39 1.1 14.1.85A133 133 0 0 1 24.9.61h10.2c4.63 0 8.08 0 10.8.24 2.7.25 4.65.73 6.28 1.67a14.5 14.5 0 0 1 5.42 5.4c.93 1.65 1.41 3.58 1.66 6.3.24 2.71.24 6.16.24 10.79v10.2c0 4.64 0 8.08-.24 10.8-.25 2.7-.73 4.65-1.66 6.28a14.5 14.5 0 0 1-5.42 5.42c-1.63.93-3.57 1.41-6.28 1.66-2.72.24-6.17.24-10.8.24H24.9c-4.63 0-8.08 0-10.8-.24-2.7-.25-4.64-.73-6.28-1.66a14.5 14.5 0 0 1-5.42-5.42C1.47 50.66 1 48.72.74 46.01A133 133 0 0 1 .5 35.2v-10.2Z" 6923 /> 6924 </g> 6925 <defs> 6926 <clipPath id="a"><path fill="#fff" d="M0 0h60v60H0z" /></clipPath> 6927 </defs> 6928</svg>`,rs=J`<svg fill="none" viewBox="0 0 60 60"> 6929 <g clip-path="url(#a)"> 6930 <rect width="60" height="60" fill="#C653C6" rx="30" /> 6931 <path 6932 fill="#E87DE8" 6933 d="M57.98.01v19.5a4.09 4.09 0 0 0-2.63 2.29L50.7 34.2a2 2 0 0 1-2.5 1.2l-2.53-.84a2 2 0 0 0-2.42 1l-2.97 5.94a2 2 0 0 1-3.7-.32L32.8 28.6a2 2 0 0 0-3.02-1.09l-3.35 2.23a2 2 0 0 0-.64.7l-5.3 9.72a2 2 0 0 1-1.43 1.01l-4.13.69a2 2 0 0 1-1.61-.44l-3.9-3.24a2 2 0 0 0-2.69.12L2.1 42.93.02 43V.01h57.96Z" 6934 /> 6935 <path 6936 fill="#fff" 6937 d="m61.95 16.94.05 2.1-3.85 1.28a3 3 0 0 0-1.86 1.79l-4.65 12.4a3 3 0 0 1-3.76 1.8l-2.53-.84a1 1 0 0 0-1.2.5l-2.98 5.94a3 3 0 0 1-5.55-.48l-3.78-12.58a1 1 0 0 0-1.5-.55l-3.35 2.23a1 1 0 0 0-.32.35l-5.3 9.72a3 3 0 0 1-2.14 1.52l-4.14.69a3 3 0 0 1-2.41-.66l-3.9-3.24a1 1 0 0 0-1.34.06l-5.28 5.28c-.05-.84-.08-1.75-.1-2.73l3.97-3.96a3 3 0 0 1 4.04-.19l3.89 3.25a1 1 0 0 0 .8.21l4.14-.68a1 1 0 0 0 .71-.51l5.3-9.71a3 3 0 0 1 .97-1.06l3.34-2.23a3 3 0 0 1 4.54 1.63l3.77 12.58a1 1 0 0 0 1.86.16l2.96-5.93a3 3 0 0 1 3.64-1.5l2.52.83a1 1 0 0 0 1.25-.6l4.66-12.4a5 5 0 0 1 3.1-2.99l4.43-1.48Z" 6938 /> 6939 <path 6940 fill="#fff" 6941 fill-rule="evenodd" 6942 d="M35.5 27a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z" 6943 clip-rule="evenodd" 6944 /> 6945 <path fill="#fff" d="M31 0v60h-2V0h2Z" /> 6946 <path fill="#E87DE8" d="M33.5 27a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z" /> 6947 </g> 6948 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="29.5" /> 6949 <defs> 6950 <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath> 6951 </defs> 6952</svg> `,rc=J`<svg fill="none" viewBox="0 0 60 60"> 6953 <g clip-path="url(#a)"> 6954 <rect width="60" height="60" fill="#987DE8" rx="30" /> 6955 <path 6956 fill="#fff" 6957 fill-rule="evenodd" 6958 d="m15.48 28.37 11.97-19.3a3 3 0 0 1 5.1 0l11.97 19.3a6 6 0 0 1 .9 3.14v.03a6 6 0 0 1-1.16 3.56L33.23 50.2a4 4 0 0 1-6.46 0L15.73 35.1a6 6 0 0 1-1.15-3.54v-.03a6 6 0 0 1 .9-3.16Z" 6959 clip-rule="evenodd" 6960 /> 6961 <path 6962 fill="#643CDD" 6963 d="M30.84 10.11a1 1 0 0 0-.84-.46V24.5l12.6 5.53a2 2 0 0 0-.28-1.4L30.84 10.11Z" 6964 /> 6965 <path 6966 fill="#BDADEB" 6967 d="M30 9.65a1 1 0 0 0-.85.46L17.66 28.64a2 2 0 0 0-.26 1.39L30 24.5V9.65Z" 6968 /> 6969 <path 6970 fill="#643CDD" 6971 d="M30 50.54a1 1 0 0 0 .8-.4l11.24-15.38c.3-.44-.2-1-.66-.73l-9.89 5.68a3 3 0 0 1-1.5.4v10.43Z" 6972 /> 6973 <path 6974 fill="#BDADEB" 6975 d="m17.97 34.76 11.22 15.37c.2.28.5.41.8.41V40.11a3 3 0 0 1-1.49-.4l-9.88-5.68c-.47-.27-.97.3-.65.73Z" 6976 /> 6977 <path 6978 fill="#401AB3"
6979 d="M42.6 30.03 30 24.5v13.14a3 3 0 0 0 1.5-.4l10.14-5.83a2 2 0 0 0 .95-1.38Z" 6980 /> 6981 <path 6982 fill="#7C5AE2" 6983 d="M30 37.64V24.46l-12.6 5.57a2 2 0 0 0 .97 1.39l10.13 5.82a3 3 0 0 0 1.5.4Z" 6984 /> 6985 </g> 6986 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="29.5" /> 6987 <defs> 6988 <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath> 6989 </defs> 6990</svg> `,rl=J`<svg fill="none" viewBox="0 0 60 60"> 6991 <rect width="60" height="60" fill="#1DC956" rx="3" /> 6992 <path 6993 fill="#1FAD7E" 6994 stroke="#fff" 6995 stroke-width="2" 6996 d="m30.49 29.13-.49-.27-.49.27-12.77 7.1-.05.02c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45l-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-12.77-7.1Z" 6997 /> 6998 <path 6999 fill="#2BEE6C" 7000 stroke="#fff" 7001 stroke-width="2" 7002 d="m30.49 19.13-.49-.27-.49.27-12.77 7.1-.05.02c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45l-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-12.77-7.1Z" 7003 /> 7004 <path 7005 fill="#86F999" 7006 stroke="#fff" 7007 stroke-width="2" 7008 d="m46.69 21.06-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-6.32-3.51-.18-.1c-2.33-1.3-3.72-2.06-5.22-2.33a9 9 0 0 0-3.08 0c-1.5.27-2.9 1.04-5.22 2.33l-.17.1-6.33 3.51-.05.03c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45Z" 7009 /> 7010 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" /> 7011</svg>`,ru=J`<svg fill="none" viewBox="0 0 60 60"> 7012 <rect width="60" height="60" fill="#C653C6" rx="3" /> 7013 <path 7014 fill="#fff" 7015 d="M20.03 15.22C20 15.6 20 16.07 20 17v2.8c0 1.14 0 1.7-.2 2.12-.15.31-.3.5-.58.71-.37.28-1.06.42-2.43.7-.59.12-1.11.29-1.6.51a9 9 0 0 0-4.35 4.36C10 30 10 32.34 10 37c0 4.66 0 7 .84 8.8a9 9 0 0 0 4.36 4.36C17 51 19.34 51 24 51h12c4.66 0 7 0 8.8-.84a9 9 0 0 0 4.36-4.36C50 44 50 41.66 50 37c0-4.66 0-7-.84-8.8a9 9 0 0 0-4.36-4.36c-.48-.22-1-.39-1.6-.5-1.36-.29-2.05-.43-2.42-.7-.27-.22-.43-.4-.58-.72-.2-.42-.2-.98-.2-2.11V17c0-.93 0-1.4-.03-1.78a9 9 0 0 0-8.19-8.19C31.4 7 30.93 7 30 7s-1.4 0-1.78.03a9 9 0 0 0-8.19 8.19Z" 7016 /> 7017 <path 7018 fill="#E87DE8" 7019 d="M22 17c0-.93 0-1.4.04-1.78a7 7 0 0 1 6.18-6.18C28.6 9 29.07 9 30 9s1.4 0 1.78.04a7 7 0 0 1 6.18 6.18c.04.39.04.85.04 1.78v4.5a1.5 1.5 0 0 1-3 0V17c0-.93 0-1.4-.08-1.78a4 4 0 0 0-3.14-3.14C31.39 12 30.93 12 30 12s-1.4 0-1.78.08a4 4 0 0 0-3.14 3.14c-.08.39-.08.85-.08 1.78v4.5a1.5 1.5 0 0 1-3 0V17Z" 7020 /> 7021 <path 7022 fill="#E87DE8" 7023 fill-rule="evenodd" 7024 d="M12 36.62c0-4.32 0-6.48.92-8.09a7 7 0 0 1 2.61-2.61C17.14 25 19.3 25 23.62 25h6.86c.46 0 .7 0 .9.02 2.73.22 4.37 2.43 4.62 4.98.27-2.7 2.11-5 5.02-5A6.98 6.98 0 0 1 48 31.98v5.4c0 4.32 0 6.48-.92 8.09a7 7 0 0 1-2.61 2.61c-1.61.92-3.77.92-8.09.92h-5.86c-.46 0-.7 0-.9-.02-2.73-.22-4.37-2.43-4.62-4.98-.26 2.58-1.94 4.82-4.71 4.99l-.7.01c-.55 0-.82 0-1.05-.02a7 7 0 0 1-6.52-6.52c-.02-.23-.02-.5-.02-1.05v-4.79Zm21.24-.27a4 4 0 1 0-6.48 0 31.28 31.28 0 0 1 1.57 2.23c.17.4.17.81.17 1.24V42.5a1.5 1.5 0 0 0 3 0V39.82c0-.43 0-.85.17-1.24.09-.2.58-.87 1.57-2.23Z" 7025 clip-rule="evenodd" 7026 /> 7027 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" /> 7028</svg>`,rd=J`<svg fill="none" viewBox="0 0 60 60"> 7029 <g clip-path="url(#a)"> 7030 <path 7031 fill="#EB8B47" 7032 d="M0 24.9c0-9.25 0-13.88 1.97-17.33a15 15 0 0 1 5.6-5.6C11.02 0 15.65 0 24.9 0h10.2c9.25 0 13.88 0 17.33 1.97a15 15 0 0 1 5.6 5.6C60 11.02 60 15.65 60 24.9v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6C48.98 60 44.35 60 35.1 60H24.9c-9.25 0-13.88 0-17.33-1.97a15 15 0 0 1-5.6-5.6C0 48.98 0 44.35 0 35.1V24.9Z" 7033 /> 7034 <path 7035 stroke="#062B2B" 7036 stroke-opacity=".1" 7037 d="M.5 24.9c0-4.64 0-8.08.24-10.8.25-2.7.73-4.65 1.66-6.28A14.5 14.5 0 0 1 7.82 2.4C9.46 1.47 11.39 1 14.1.74A133 133 0 0 1 24.9.5h10.2c4.63 0 8.08 0 10.8.24 2.7.25 4.65.73 6.28 1.66a14.5 14.5 0 0 1 5.42 5.42c.93 1.63 1.41 3.57 1.66 6.28.24 2.72.24 6.16.24 10.8v10.2c0 4.63 0 8.08
7037-.24 10.8-.25 2.7-.73 4.64-1.66 6.28a14.5 14.5 0 0 1-5.42 5.41c-1.63.94-3.57 1.42-6.28 1.67-2.72.24-6.17.24-10.8.24H24.9c-4.63 0-8.08 0-10.8-.24-2.7-.25-4.64-.73-6.28-1.67a14.5 14.5 0 0 1-5.42-5.4C1.47 50.53 1 48.6.74 45.88A133 133 0 0 1 .5 35.1V24.9Z" 7038 /> 7039 <path 7040 fill="#FF974C" 7041 stroke="#fff" 7042 stroke-width="2" 7043 d="M39.2 29.2a13 13 0 1 0-18.4 0l1.3 1.28a12.82 12.82 0 0 1 2.1 2.39 6 6 0 0 1 .6 1.47c.2.76.2 1.56.2 3.17v11.24c0 1.08 0 1.61.13 2.12a4 4 0 0 0 .41.98c.26.45.64.83 1.4 1.6l.3.29c.65.65.98.98 1.36 1.09.26.07.54.07.8 0 .38-.11.7-.44 1.36-1.1l3.48-3.47c.65-.65.98-.98 1.09-1.36a1.5 1.5 0 0 0 0-.8c-.1-.38-.44-.7-1.1-1.36l-.47-.48c-.65-.65-.98-.98-1.09-1.36a1.5 1.5 0 0 1 0-.8c.1-.38.44-.7 1.1-1.36l.47-.48c.65-.65.98-.98 1.09-1.36a1.5 1.5 0 0 0 0-.8c-.1-.38-.44-.7-1.1-1.36l-.48-.5c-.65-.64-.98-.97-1.08-1.35a1.5 1.5 0 0 1 0-.79c.1-.38.42-.7 1.06-1.36l5.46-5.55Z" 7044 /> 7045 <circle cx="30" cy="17" r="4" fill="#EB8B47" stroke="#fff" stroke-width="2" /> 7046 </g> 7047 <defs> 7048 <clipPath id="a"><path fill="#fff" d="M0 0h60v60H0z" /></clipPath> 7049 </defs> 7050</svg> `,rh=J`<svg fill="none" viewBox="0 0 60 60"> 7051 <g clip-path="url(#a)"> 7052 <rect width="60" height="60" fill="#00ACE6" rx="30" /> 7053 <circle cx="64" cy="39" r="50" fill="#1AC6FF" stroke="#fff" stroke-width="2" /> 7054 <circle cx="78" cy="30" r="50" fill="#4DD2FF" stroke="#fff" stroke-width="2" /> 7055 <circle cx="72" cy="15" r="35" fill="#80DFFF" stroke="#fff" stroke-width="2" /> 7056 <circle cx="34" cy="-17" r="45" stroke="#fff" stroke-width="2" /> 7057 <circle cx="34" cy="-5" r="50" stroke="#fff" stroke-width="2" /> 7058 <circle cx="30" cy="45" r="4" fill="#4DD2FF" stroke="#fff" stroke-width="2" /> 7059 <circle cx="39.5" cy="27.5" r="4" fill="#80DFFF" stroke="#fff" stroke-width="2" /> 7060 <circle cx="16" cy="24" r="4" fill="#19C6FF" stroke="#fff" stroke-width="2" /> 7061 </g> 7062 <rect width="59" height="59" x=".5" y=".5" stroke="#062B2B" stroke-opacity=".1" rx="29.5" /> 7063 <defs> 7064 <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath> 7065 </defs> 7066</svg>`,rf=J`<svg fill="none" viewBox="0 0 60 60"> 7067 <g clip-path="url(#a)"> 7068 <rect width="60" height="60" fill="#C653C6" rx="3" /> 7069 <path 7070 fill="#E87DE8" 7071 stroke="#fff" 7072 stroke-width="2" 7073 d="M52.1 47.34c0-4.24-1.44-9.55-5.9-12.4a2.86 2.86 0 0 0-1.6-3.89v-.82c0-1.19-.52-2.26-1.35-3a4.74 4.74 0 0 0-2.4-6.26v-5.5a11.31 11.31 0 1 0-22.63 0v2.15a3.34 3.34 0 0 0-1.18 5.05 4.74 4.74 0 0 0-.68 6.44A5.22 5.22 0 0 0 14 35.92c-3.06 4.13-6.1 8.3-6.1 15.64 0 2.67.37 4.86.74 6.39a20.3 20.3 0 0 0 .73 2.39l.02.04v.01l.92-.39-.92.4.26.6h38.26l.3-.49-.87-.51.86.5.02-.01.03-.07a16.32 16.32 0 0 0 .57-1.05c.36-.72.85-1.74 1.33-2.96a25.51 25.51 0 0 0 1.94-9.07Z" 7074 /> 7075 <path 7076 fill="#fff" 7077 fill-rule="evenodd" 7078 d="M26.5 29.5c-3-.5-5.5-3-5.5-7v-7c0-.47 0-.7.03-.9a3 3 0 0 1 2.58-2.57c.2-.03.42-.03.89-.03 2 0 2.5-2.5 2.5-2.5s0 2.5 2.5 2.5c1.4 0 2.1 0 2.65.23a3 3 0 0 1 1.62 1.62c.23.55.23 1.25.23 2.65v6c0 4-3 7-6.5 7 1.35.23 4 0 6.5-2v9.53C34 38.5 31.5 40 28 40s-6-1.5-6-2.97L24 34l2.5 1.5v-6ZM26 47h4.5c2.5 0 3 4 3 5.5h-3l-1-1.5H26v-4Zm-6.25 5.5H24V57h-8c0-1 1-4.5 3.75-4.5Z" 7079 clip-rule="evenodd" 7080 /> 7081 </g> 7082 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" /> 7083 <defs> 7084 <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="3" /></clipPath> 7085 </defs> 7086</svg> `,rp=J`<svg fill="none" viewBox="0 0 60 60"> 7087 <rect width="60" height="60" fill="#794CFF" rx="3" /> 7088 <path 7089 fill="#987DE8" 7090 stroke="#fff" 7091 stroke-width="2" 7092 d="M33 22.5v-1H16v5H8.5V36H13v-5h3v7.5h17V31h1v7.5h17v-17H34v5h-1v-4Z" 7093 /> 7094 <path fill="#fff" d="M37.5 25h10v10h-10z" /> 7095 <path fill="#4019B2" d="M42.5 25h5v10h-5z" /> 7096 <path fill="#fff" d="M19.5 25h10v10h-10z" /> 7097 <path fill="#4019B2" d="M24.5 25h5v10h-5z" /> 7098 <path fill="#fff" d="M12 30.5h4V37h-4v-6.5Z" /> 7099 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" /> 7100</svg>`,rg=J`<svg 7101 viewBox="0 0 60 60" 7102 fill="none" 7103> 7104 <g clip-path="url(#1)"> 7105 <rect width="60" height="60" rx="30" fill="#00ACE6" /> 7106 <path 7107 d="M59 73C59 89.0163 46.0163 102 30 102C13.9837 102 1 89.0163 1 73C1 56.9837 12 44 30 44C48 44 59 56.9837 59 73Z" 7108 fill="#1AC6FF" 7109 stroke="white" 7110 stroke-width="2" 7111 /> 7112 <path 7113 d="M18.6904 19.9015C19.6264 15.3286 23.3466 11.8445 27.9708 11.2096C29.3231 11.024 30.6751 11.0238 32.0289 11.2096C36.6532 11.8445 40.3733 15.3286 41.3094 19.9015C41.4868 20.7681 41.6309 21.6509 41.7492 22.5271C41.8811 23.5041 41.8811 24.4944 41.7492 25.4715C41.6309 26.3476 41.4868 27.2304 41.3094 28.097C40.3733 32.6699 36.6532 36.154 32.0289 36.7889C30.6772 36.9744 29.3216 36.9743 27.9708 36.7889C23.3466 36.154 19.6264 32.6699 18.6904 28.097C18.513 27.2304 18.3689 26.3476 18.2506 25.4715C18.1186 24.4944 18.1186 23.5041 18.2506 22.5271C18.3689 21.6509 18.513 20.7681 18.6904 19.9015Z" 7114 fill="#1AC6FF" 7115 stroke="white" 7116 stroke-width="2" 7117 /> 7118 <circle cx="24.5" cy="23.5" r="1.5" fill="white" /> 7119 <circle cx="35.5" cy="23.5" r="1.5" fill="white" /> 7120 <path 7121 d="M31 20L28 28H32" 7122 stroke="white" 7123 stroke-width="2" 7124 stroke-linecap="round" 7125 stroke-linejoin="round" 7126 /> 7127 </g> 7128 <rect x="0.5" y="0.5" width="59" height="59" rx="29.5" stroke="white" stroke-opacity="0.1" /> 7129 <defs> 7130 <clipPath id="1"> 7131 <rect width="60" height="60" rx="30" fill="white" /> 7132 </clipPath> 7133 </defs> 7134</svg> `,rm=J`<svg viewBox="0 0 60 60" fill="none"> 7135 <g clip-path="url(#1)"> 7136 <path 7137 d="M0 24.9C0 15.6485 0 11.0228 1.97053 7.56812C3.3015 5.23468 5.23468 3.3015 7.56812 1.97053C11.0228 0 15.6485 0 24.9 0H35.1C44.3514 0 48.9772 0 52.4319 1.97053C54.7653 3.3015 56.6985 5.23468 58.0295 7.56812C60 11.0228 60 15.6485 60 24.9V35.1C60 44.3514 60 48.9772 58.0295 52.4319C56.6985 54.7653 54.7653 56.
71376985 52.4319 58.0295C48.9772 60 44.3514 60 35.1 60H24.9C15.6485 60 11.0228 60 7.56812 58.0295C5.23468 56.6985 3.3015 54.7653 1.97053 52.4319C0 48.9772 0 44.3514 0 35.1V24.9Z" 7138 fill="#794CFF" 7139 /> 7140 <path 7141 d="M0.5 24.9C0.5 20.2652 0.50047 16.8221 0.744315 14.105C0.987552 11.3946 1.46987 9.45504 2.40484 7.81585C3.69145 5.56019 5.56019 3.69145 7.81585 2.40484C9.45504 1.46987 11.3946 0.987552 14.105 0.744315C16.8221 0.50047 20.2652 0.5 24.9 0.5H35.1C39.7348 0.5 43.1779 0.50047 45.895 0.744315C48.6054 0.987552 50.545 1.46987 52.1841 2.40484C54.4398 3.69145 56.3086 5.56019 57.5952 7.81585C58.5301 9.45504 59.0124 11.3946 59.2557 14.105C59.4995 16.8221 59.5 20.2652 59.5 24.9V35.1C59.5 39.7348 59.4995 43.1779 59.2557 45.895C59.0124 48.6054 58.5301 50.545 57.5952 52.1841C56.3086 54.4398 54.4398 56.3086 52.1841 57.5952C50.545 58.5301 48.6054 59.0124 45.895 59.2557C43.1779 59.4995 39.7348 59.5 35.1 59.5H24.9C20.2652 59.5 16.8221 59.4995 14.105 59.2557C11.3946 59.0124 9.45504 58.5301 7.81585 57.5952C5.56019 56.3086 3.69145 54.4398 2.40484 52.1841C1.46987 50.545 0.987552 48.6054 0.744315 45.895C0.50047 43.1779 0.5 39.7348 0.5 35.1V24.9Z" 7142 stroke="#062B2B" 7143 stroke-opacity="0.1" 7144 /> 7145 <path 7146 d="M35.1403 31.5016C35.1193 30.9637 35.388 30.4558 35.8446 30.1707C36.1207 29.9982 36.4761 29.8473 36.7921 29.7685C37.3143 29.6382 37.8664 29.7977 38.2386 30.1864C38.8507 30.8257 39.3004 31.6836 39.8033 32.408C40.2796 33.0942 41.4695 33.2512 41.9687 32.5047C42.4839 31.7341 42.9405 30.8229 43.572 30.1399C43.9375 29.7447 44.4866 29.5756 45.0111 29.6967C45.3283 29.7701 45.6863 29.9147 45.9655 30.0823C46.4269 30.3595 46.7045 30.8626 46.6928 31.4008C46.6731 32.3083 46.3764 33.2571 46.2158 34.1473C46.061 35.0048 46.9045 35.8337 47.7592 35.664C48.6464 35.4878 49.5899 35.1747 50.497 35.1391C51.0348 35.1181 51.5427 35.3868 51.8279 35.8433C52.0004 36.1195 52.1513 36.4749 52.2301 36.7908C52.3604 37.3131 52.2009 37.8651 51.8121 38.2374C51.1729 38.8495 50.3151 39.2991 49.5908 39.8019C48.9046 40.2782 48.7473 41.4683 49.4939 41.9675C50.2644 42.4827 51.1757 42.9393 51.8587 43.5708C52.2539 43.9362 52.423 44.4854 52.3018 45.0099C52.2285 45.3271 52.0839 45.6851 51.9162 45.9642C51.6391 46.4257 51.1359 46.7032 50.5978 46.6916C49.6903 46.6719 48.7417 46.3753 47.8516 46.2146C46.9939 46.0598 46.1648 46.9035 46.3346 47.7583C46.5108 48.6454 46.8239 49.5888 46.8594 50.4958C46.8805 51.0336 46.6117 51.5415 46.1552 51.8267C45.879 51.9992 45.5236 52.15 45.2077 52.2289C44.6854 52.3592 44.1334 52.1997 43.7611 51.8109C43.1491 51.1718 42.6996 50.314 42.1968 49.5897C41.7203 48.9034 40.5301 48.7463 40.0309 49.493C39.5157 50.2634 39.0592 51.1746 38.4278 51.8574C38.0623 52.2527 37.5132 52.4218 36.9887 52.3006C36.6715 52.2273 36.3135 52.0826 36.0343 51.915C35.5729 51.6379 35.2953 51.1347 35.307 50.5966C35.3267 49.6891 35.6233 48.7405 35.7839 47.8505C35.9388 46.9928 35.0951 46.1636 34.2402 46.3334C33.3531 46.5096 32.4098 46.8227 31.5028 46.8582C30.9649 46.8793 30.457 46.6105 30.1719 46.154C29.9994 45.8778 29.8485 45.5224 29.7697 45.2065C29.6394 44.6842 29.7989 44.1322 30.1877 43.7599C30.8269 43.1479 31.6847 42.6982 32.4091 42.1954C33.0954 41.7189 33.2522 40.5289 32.5056 40.0297C31.7351 39.5145 30.824 39.058 30.1411 38.4265C29.7459 38.0611 29.5768 37.5119 29.698 36.9875C29.7713 36.6702 29.9159 36.3122 30.0836 36.0331C30.3607 35.5717 30.8638 35.2941 31.402 35.3058C32.3095 35.3255 33.2583 35.6221 34.1485 35.7828C35.006 35.9376 35.8349 35.094 35.6652 34.2393C35.489 33.3521 35.1759 32.4087 35.1403 31.5016Z" 7147 fill="#906EF7" 7148 stroke="white" 7149 stroke-width="2" 7150 /> 7151 <path 7152 d="M20.7706 8.22357C20.9036 7.51411 21.5231 7 22.2449 7H23.7551C24.4769 7 25.0964 7.51411 25.2294 8.22357C25.5051 9.69403 25.4829 11.6321 27.1202 12.2606C27.3092 12.3331 27.4958 12.4105 27.6798 12.4926C29.2818 13.2072 30.6374 11.8199 31.8721 10.9752C32.4678 10.5676 33.2694 10.6421 33.7798 11.1525L34.8477 12.2204C35.3581 12.7308 35.4326 13.5323 35.025 14.128C34.1802 15.3627 32.7931 16.7183 33.5077 18.3202C33.5898 18.5043 33.6672 18.6909 33.7398 18.88C34.3683 20.5171 36.3061 20.4949 37.7764 20.7706C38.4859 20.9036 39 21.5231 39 22.2449V23.7551C39 24.4769 38.4859 25.0964 37.7764 25.2294C36.3061 25.5051 34.3685 25.483 33.7401 27.1201C33.6675 27.3093 33.59 27.4961 33.5079 27.6803C32.7934 29.282 34.1803 30.6374 35.025 31.8719C35.4326 32.4677 35.3581 33.2692 34.8477 33.7796L33.7798 34.8475C33.2694 35.3579 32.4678 35.4324 31.8721 35.0248C30.6376 34.1801 29.2823 32.7934 27.6806 33.508C27.4962 33.5903 27.3093 33.6678 27.12 33.7405C25.483 34.3688 25.5051 36.3062 25.2294 37.7764C25.0964 38.4859 24.4769 39 23.7551 39H22.2449C21.5231 39 20.9036 38.4859 20.7706 37.7764C20.4949 36.3062 20.517 34.3688 18.88 33.7405C18.6908 33.6678 18.5039 33.5903 18.3196 33.5081C16.7179 32.7936 15.3625 34.1804 14.1279 35.0251C13.5322 35.4327 12.7307 35.3582 12.2203 34.8478L11.1524 33.7799C10.642 33.2695 10.5675 32.4679 10.9751 31.8722C11.8198 30.6376 13.2067 29.2822 12.4922 27.6804C12.41 27.4962 12.3325 27.3093 12.2599 27.1201C11.6315 25.483 9.69392 25.5051 8.22357 25.2294C7.51411 25.0964 7 24.4769 7 23.7551V22.2449C7 21.5231 7.51411 20.9036 8.22357 20.7706C9.69394 20.4949 11.6317 20.5171 12.2602 18.88C12.3328 18.6909 12.4103 18.5042 12.4924 18.3201C13.207 16.7181 11.8198 15.3625 10.975 14.1278C10.5674 13.5321 10.6419 12.7305 11.
71521523 12.2201L12.2202 11.1522C12.7306 10.6418 13.5322 10.5673 14.1279 10.9749C15.3626 11.8197 16.7184 13.2071 18.3204 12.4925C18.5044 12.4105 18.6909 12.3331 18.8799 12.2606C20.5171 11.6321 20.4949 9.69403 20.7706 8.22357Z" 7153 fill="#906EF7" 7154 stroke="white" 7155 stroke-width="2" 7156 /> 7157 <circle cx="23" cy="23" r="6" fill="#794CFF" stroke="white" stroke-width="2" /> 7158 <circle cx="41" cy="41" r="4" fill="#794CFF" stroke="white" stroke-width="2" /> 7159 </g> 7160 <defs> 7161 <clipPath id="1"> 7162 <rect width="60" height="60" fill="white" /> 7163 </clipPath> 7164 </defs> 7165</svg> `,rw=J`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none"> 7166 <g clip-path="url(#clip0_187_29)"> 7167 <path d="M1.18187e-05 15.8055C1.18187e-05 9.8015 -5.19442e-07 6.91338 1.69991e-08 0C4.5 3.72236e-05 9.62249 0 16.5 0L23.5 4.31399e-05C29.9349 4.31399e-05 35.5 0.000206332 40 3.73468e-05C40 2.77754 40 9.36708 40 15.8055V22.8364C40 29.2647 40 33.7962 40 40C31.5 40 29.8337 40 23.4 40H16.6C10.5092 40 6.50004 40 4.04289e-05 40C3.05176e-05 32.2453 1.18187e-05 29.6382 1.18187e-05 22.8364V15.8055Z" fill="#0052FF"/> 7168 <path d="M20.0236 26.5C16.4342 26.5 13.5236 23.5931 13.5236 20C13.5236 16.4069 16.4342 13.5 20.0236 13.5C23.2411 13.5 25.9134 15.8472 26.4261 18.9167H32.9731C32.4206 12.2433 26.8342 7 20.02 7C12.8411 7 7.02002 12.8211 7.02002 20C7.02002 27.1789 12.8411 33 20.02 33C26.8342 33 32.4206 27.7567 32.9731 21.0833H26.4225C25.9061 24.1528 23.2411 26.5 20.0236 26.5Z" fill="white"/> 7169 </g> 7170 <defs> 7171 <clipPath id="clip0_187_29"> 7172 <rect width="40" height="40" fill="white"/> 7173 </clipPath> 7174 </defs> 7175</svg>`,rb=J` 7176 <svg width="40" height="40" fill="none" xmlns="http://www.w3.org/2000/svg"> 7177 <g clip-path="url(#a)"> 7178 <path 7179 d="M0 16.6c0-6.168 0-9.251 1.314-11.555a10 10 0 0 1 3.731-3.731C7.35 0 10.432 0 16.6 0h6.8c6.168 0 9.252 0 11.555 1.314a10 10 0 0 1 3.731 3.731C40 7.35 40 10.432 40 16.6v6.8c0 6.168 0 9.252-1.314 11.555a10 10 0 0 1-3.731 3.731C32.652 40 29.568 40 23.4 40h-6.8c-6.168 0-9.251 0-11.555-1.314a10 10 0 0 1-3.731-3.731C0 32.652 0 29.568 0 23.4v-6.8Z" 7180 fill="#7D00FF" 7181 /> 7182 <path 7183 d="M.5 16.6c0-3.093 0-5.38.162-7.182.161-1.795.48-3.061 1.086-4.125a9.5 9.5 0 0 1 3.545-3.545C6.357 1.141 7.623.823 9.418.662 11.221.5 13.508.5 16.6.5h6.8c3.093 0 5.38 0 7.182.162 1.795.161 3.062.48 4.125 1.086a9.5 9.5 0 0 1 3.545 3.545c.607 1.064.925 2.33 1.086 4.125.161 1.803.162 4.09.162 7.182v6.8c0 3.093 0 5.38-.162 7.182-.161 1.795-.48 3.062-1.086 4.125a9.5 9.5 0 0 1-3.545 3.545c-1.063.607-2.33.925-4.125 1.086-1.803.161-4.09.162-7.182.162h-6.8c-3.093 0-5.38 0-7.182-.162-1.795-.161-3.061-.48-4.125-1.086a9.5 9.5 0 0 1-3.545-3.545c-.607-1.063-.925-2.33-1.086-4.125C.5 28.779.5 26.492.5 23.4v-6.8Z" 7184 stroke="#fff" 7185 stroke-opacity=".05" 7186 /> 7187 <path 7188 d="M28.306 15.381a3.69 3.69 0 1 0 0-7.381 3.69 3.69 0 0 0 0 7.381ZM16.987 32a8.991 8.991 0 1 1 .016-17.983A8.991 8.991 0 0 1 16.988 32Z" 7189 fill="#fff" 7190 /> 7191 </g> 7192 <defs> 7193 <clipPath id="a"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 7194 </defs> 7195 </svg> 7196`,rv=J` 7197 <svg width="40" height="40" fill="none" xmlns="http://www.w3.org/2000/svg"> 7198 <g clip-path="url(#a)"> 7199 <path 7200 d="M0 16.6c0-6.168 0-9.251 1.314-11.555a10 10 0 0 1 3.731-3.731C7.35 0 10.432 0 16.6 0h6.8c6.168 0 9.252 0 11.555 1.314a10 10 0 0 1 3.731 3.731C40 7.35 40 10.432 40 16.6v6.8c0 6.168 0 9.252-1.314 11.555a10 10 0 0 1-3.731 3.731C32.652 40 29.568 40 23.4 40h-6.8c-6.168 0-9.251 0-11.555-1.314a10 10 0 0 1-3.731-3.731C0 32.652 0 29.568 0 23.4v-6.8Z" 7201 fill="#635BFF" 7202 /> 7203 <path 7204 d="M.5 16.6c0-3.093 0-5.38.162-7.182.161-1.795.48-3.061 1.086-4.125a9.5 9.5 0 0 1 3.545-3.545C6.357 1.141 7.623.823 9.418.662 11.221.5 13.508.5 16.6.5h6.8c3.093 0 5.38 0 7.182.162 1.795.161 3.062.48 4.125 1.086a9.5 9.5 0 0 1 3.545 3.545c.607 1.064.925 2.33 1.086 4.125.161 1.803.162 4.09.162 7.182v6.8c0 3.093 0 5.38-.162 7.182-.161 1.795-.48 3.062-1.086 4.125a9.5 9.5 0 0 1-3.545 3.545c-1.063.607-2.33.925-4.125 1.086-1.803.161-4.09.162-7.182.162h-6.8c-3.093 0-5.38 0-7.182-.162-1.795-.161-3.061-.48-4.125-1.086a9.5 9.5 0 0 1-3.545-3.545c-.607-1.063-.925-2.33-1.086-4.125C.5 28.779.5 26.492.5 23.4v-6.8Z" 7205 stroke="#fff" 7206 stroke-opacity=".05" 7207 /> 7208 <path 7209 fill-rule="evenodd" 7210 clip-rule="evenodd" 7211 d="M18.299 15.147c0-1.028.844-1.424 2.242-1.424 2.004 0 4.536.607 6.54 1.688V9.213C24.892 8.343 22.73 8 20.541 8c-5.354 0-8.915 2.796-8.915 7.464 0 7.279 10.022 6.118 10.022 9.257 0 1.213-1.055 1.609-2.531 1.609-2.19 0-4.985-.897-7.2-2.11v6.277a18.283 18.283 0 0 0 7.2 1.503c5.485 0 9.257-2.716 9.257-7.437-.027-7.86-10.075-6.462-10.075-9.416Z" 7212 fill="#fff" 7213 /> 7214 </g> 7215 <defs> 7216 <clipPath id="a"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 7217 </defs> 7218 </svg> 7219`,ry=J` 7220 <svg width="40" height="40" fill="none" xmlns="http://www.w3.org/2000/svg"> 7221 <g clip-path="url(#a)"> 7222 <path 7223 d="M0 16.6c0-6.168 0-9.251 1.314-11.555a10 10 0 0 1 3.731-3.731C7.35 0 10.432 0 16.6 0h6.8c6.168 0 9.252 0 11.555 1.314a10 10 0 0 1 3.731 3.731C40 7.35 40 10.432 40 16.6v6.8c0 6.168 0 9.252-1.314 11.555a10 10 0 0 1-3.731 3.731C32.652 40 29.568 40 23.4 40h-6.8c-6.168 0-9.251 0-11.555-1.314a10 10 0 0 1-3.731-3.731C0 32.652 0 29.568 0 23.4v-6.8Z" 7224 fill="#fff" 7225 /> 7226 <path 7227 d="M.5 16.6c0-3.093 0-5.38.162-7.182.161-1.795.48-3.061 1.086-4.125a9.5 9.5 0 0 1 3.545-3.545C6.357 1.141 7.623.823 9.418.662 11.221.5 13.508.5 16.6.5h6.8c3.093 0 5.38 0 7.182.162 1.795.161 3.062.48 4.125 1.086a9.5 9.5 0 0 1 3.545 3.545c.607 1.064.925 2.33 1.086 4.125.161 1.803.162 4.09.162 7.182v6.8c0 3.093 0 5.38-.162 7.182-.161 1.795-.48 3.062-1.086 4.125a9.5 9.5 0 0 1-3.545 3.545c-1.063.607-2.33.925-4.125 1.086-1.803.161-4.09.162-7.182.162h-6.8c-3.093 0-5.38 0-7.182-.162-1.795-.161-3.061-.48-4.125-1.086a9.5 9.5 0 0 1-3.545-3.545c-.607-1.063-.925-2.33-1.086-4.125C.5 28.779.5 26.492.5 23.4v-6.8Z" 7228 stroke="#fff" 7229 stroke-opacity=".05" 7230 /> 7231 <path 7232 d="M18.606 12.642a.781.781 0 0 0-.771.66l-1.281 8.125a.78.78 0 0 1 .77-.66
7232h3.755a7.668 7.668 0 0 0 7.57-6.49 6.26 6.26 0 0 0 .075-.843c-.96-.504-2.089-.792-3.325-.792h-6.793Z" 7233 fill="#001C64" 7234 /> 7235 <path 7236 d="M28.724 13.434c-.006.282-.03.564-.075.843a7.668 7.668 0 0 1-7.57 6.491h-3.754a.78.78 0 0 0-.771.66l-1.916 12.15a.634.634 0 0 0 .626.734h4.075a.781.781 0 0 0 .77-.66l1.074-6.807a.781.781 0 0 1 .772-.66h2.4a7.668 7.668 0 0 0 7.57-6.491c.415-2.651-.92-5.064-3.201-6.26Z" 7237 fill="#0070E0" 7238 /> 7239 <path 7240 d="M13.977 7.226a.78.78 0 0 0-.771.658l-3.198 20.277a.634.634 0 0 0 .626.733h4.742l1.178-7.467 1.281-8.125a.782.782 0 0 1 .771-.66H25.4c1.237 0 2.364.289 3.325.792.065-3.4-2.74-6.208-6.599-6.208h-8.148Z" 7241 fill="#003087" 7242 /> 7243 </g> 7244 <defs> 7245 <clipPath id="a"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 7246 </defs> 7247 </svg> 7248`;var rC=h` 7249 :host { 7250 display: block; 7251 width: var(--local-size); 7252 height: var(--local-size); 7253 } 7254 7255 :host svg { 7256 width: 100%; 7257 height: 100%; 7258 } 7259`,rx=function(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};let rA={browser:ri,dao:ro,defi:ra,defiAlt:rs,eth:rc,layers:rl,lock:ru,login:rd,network:rh,nft:rf,noun:rp,profile:rg,system:rm,coinbase:rw,onrampCard:J`<svg width="60" height="60" viewB
7259ox="0 0 60 60" fill="none"> 7260<g clip-path="url(#clip0_13859_31161)"> 7261 <path d="M0 24.8995C0 15.6481 0 11.0223 1.97053 7.56763C3.3015 5.2342 5.23468 3.30101 7.56812 1.97004C11.0228 -0.000488281 15.6485 -0.000488281 24.9 -0.000488281H35.1C44.3514 -0.000488281 48.9772 -0.000488281 52.4319 1.97004C54.7653 3.30101 56.6985 5.2342 58.0295 7.56763C60 11.0223 60 15.6481 60 24.8995V35.0995C60 44.351 60 48.9767 58.0295 52.4314C56.6985 54.7648 54.7653 56.698 52.4319 58.029C48.9772 59.9995 44.3514 59.9995 35.1 59.9995H24.9C15.6485 59.9995 11.0228 59.9995 7.56812 58.029C5.23468 56.698 3.3015 54.7648 1.97053 52.4314C0 48.9767 0 44.351 0 35.0995V24.8995Z" fill="#EB8B47"/> 7262 <path d="M0.5 24.8995C0.5 20.2647 0.50047 16.8216 0.744315 14.1045C0.987552 11.3941 1.46987 9.45455 2.40484 7.81536C3.69145 5.55971 5.56019 3.69096 7.81585 2.40435C9.45504 1.46938 11.3946 0.987064 14.105 0.743826C16.8221 0.499981 20.2652 0.499512 24.9 0.499512H35.1C39.7348 0.499512 43.1779 0.499981 45.895 0.743826C48.6054 0.987064 50.545 1.46938 52.1841 2.40435C54.4398 3.69096 56.3086 5.55971 57.5952 7.81536C58.5301 9.45455 59.0124 11.3941 59.2557 14.1045C59.4995 16.8216 59.5 20.2647 59.5 24.8995V35.0995C59.5 39.7343 59.4995 43.1774 59.2557 45.8945C59.0124 48.6049 58.5301 50.5445 57.5952 52.1837C56.3086 54.4393 54.4398 56.3081 52.1841 57.5947C50.545 58.5296 48.6054 59.012 45.895 59.2552C43.1779 59.499 39.7348 59.4995 35.1 59.4995H24.9C20.2652 59.4995 16.8221 59.499 14.105 59.2552C11.3946 59.012 9.45504 58.5296 7.81585 57.5947C5.56019 56.3081 3.69145 54.4393 2.40484 52.1837C1.46987 50.5445 0.987552 48.6049 0.744315 45.8945C0.50047 43.1774 0.5 39.7343 0.5 35.0995V24.8995Z" stroke="#141414" stroke-opacity="0.1"/> 7263 <path d="M13 26.0335C13 21.7838 13 19.659 14.0822 18.1694C14.4318 17.6883 14.8548 17.2653 15.3359 16.9157C16.8255 15.8335 18.9503 15.8335 23.2 15.8335H36.8C41.0497 15.8335 43.1745 15.8335 44.6641 16.9157C45.1452 17.2653 45.5682 17.6883 45.9178 18.1694C47 19.659 47 21.7838 47 26.0335V33.9668C47 38.2165 47 40.3414 45.9178 41.831C45.5682 42.312 45.1452 42.7351 44.6641 43.0846C43.1745 44.1668 41.0497 44.1668 36.8 44.1668H23.2C18.9503 44.1668 16.8255 44.1668 15.3359 43.0846C14.8548 42.7351 14.4318 42.312 14.0822 41.831C13 40.3414 13 38.2165 13 33.9668V26.0335Z" fill="#FF974C" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 7264 <path d="M39.5 36.667H36.6666" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/> 7265 <path d="M45.2 23.0645H14.8C14.0501 23.0645 13.6751 23.0645 13.4122 23.2554C13.3273 23.3171 13.2527 23.3918 13.191 23.4767C13 23.7395 13 24.1145 13 24.8645V27.2645C13 28.0144 13 28.3894 13.191 28.6522C13.2527 28.7371 13.3273 28.8118 13.4122 28.8735C13.6751 29.0645 14.0501 29.0645 14.8 29.0645H45.2C45.9499 29.0645 46.3249 29.0645 46.5878 28.8735C46.6727 28.8118 46.7473 28.7371 46.809 28.6522C47 28.3894 47 28.0144 47 27.2645V24.8645C47 24.1145 47 23.7395 46.809 23.4767C46.7473 23.3918 46.6727 23.3171 46.5878 23.2554C46.3249 23.0645 45.9499 23.0645 45.2 23.0645Z" fill="white" fill-opacity="0.4" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 7266</g> 7267<defs> 7268 <clipPath id="clip0_13859_31161"> 7269 <rect width="60" height="60" fill="white"/> 7270 </clipPath> 7271</defs> 7272</svg>`,moonpay:rb,stripe:rv,paypal:ry,google:J`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg"> 7273 <rect width="64" height="64" rx="30" fill="#1DC956"/> 7274 <rect x="0.5" y="0.5" width="63" height="63" rx="29.5" stroke="#141414" stroke-opacity="0.1"/> 7275 <path d="M32.4053 19.8031C35.3901 19.8031 38.0431 20.8349 40.1619 22.8247L45.9656 17.0211C42.4465 13.7416 37.8773 11.7333 32.4053 11.7333C24.4829 11.7333 17.6475 16.2841 14.3127 22.9168L21.056 28.1493C22.6589 23.359 27.136 19.8031 32.4053 19.8031Z" fill="#1DC956" stroke="white" stroke-width="2" stroke-linejoin="round"/> 7276 <path d="M32.4053 52.2667C37.8773 52.2667 42.465 50.4611 45.8182 47.3658L39.2407 42.2623C37.4351 43.4783 35.1321 44.2153 32.4053 44.2153C27.136 44.2153 22.6589 40.6594 21.056 35.8691L14.3127 41.1016C17.6475 47.7159 24.4829 52.2667 32.4053 52.2667Z" fill="#2BEE6C"/> 7277 <path d="M21.056 35.8507L19.5636 36.993L14.3127 41.0832M39.2407 42.2623L45.8182 47.3658C42.465 50.4611 37.8773 52.2667 32.4053 52.2667C24.4829 52.2667 17.6475 47.7159 14.3127 41.1016L21.056 35.8691C22.6589 40.6594 27.136 44.2153 32.4053 44.2153C35.1321 44.2153 37.4351 43.4783 39.2407 42.2623Z" stroke="white" stroke-width="2" stroke-linejoin="round"/> 7278 <path d="M51.8613 32.4606C51.8613 31.0235 51.7323 29.6417 51.4928 28.3151H32.4053V36.1638H43.3124C42.8334 38.688 41.3963 40.8252 39.2407 42.2623L45.8181 47.3658C49.6503 43.8283 51.8613 38.6327 51.8613 32.4606Z" fill="#1FAD7E" stroke="white" stroke-width="2" stroke-linejoin="round"/> 7279 <path d="M21.056 35.8507C20.6507 34.6347 20.4111 33.345 20.4111 32C20.4111 30.655 20.6507 29.3
7279653 21.056 28.1493L14.3127 22.9169C12.9309 25.6437 12.1387 28.7205 12.1387 32C12.1387 35.2795 12.9309 38.3564 14.3127 41.0831L19.5636 36.993L21.056 35.8507Z" fill="#86F999"/> 7280 <path d="M21.056 35.8691L14.3127 41.1016M21.056 35.8507C20.6507 34.6347 20.4111 33.345 20.4111 32C20.4111 30.655 20.6507 29.3653 21.056 28.1493L14.3127 22.9169C12.9309 25.6437 12.1387 28.7205 12.1387 32C12.1387 35.2795 12.9309 38.3564 14.3127 41.0831L19.5636 36.993L21.056 35.8507Z" stroke="white" stroke-width="2" stroke-linejoin="round"/> 7281</svg> 7282`,pencil:J`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg"> 7283 <g clip-path="url(#clip0_241_31635)"> 7284 <path d="M0 26.5595C0 16.6913 0 11.7572 2.1019 8.07217C3.5216 5.58317 5.58366 3.52111 8.07266 2.10141C11.7577 -0.000488281 16.6918 -0.000488281 26.56 -0.000488281H37.44C47.3082 -0.000488281 52.2423 -0.000488281 55.9273 2.10141C58.4163 3.52111 60.4784 5.58317 61.8981 8.07217C64 11.7572 64 16.6913 64 26.5595V37.4395C64 47.3077 64 52.2418 61.8981 55.9268C60.4784 58.4158 58.4163 60.4779 55.9273 61.8976C52.2423 63.9995 47.3082 63.9995 37.44 63.9995H26.56C16.6918 63.9995 11.7577 63.9995 8.07266 61.8976C5.58366 60.4779 3.5216 58.4158 2.1019 55.9268C0 52.2418 0 47.3077 0 37.4395V26.5595Z" fill="#EB8B47"/> 7285 <path d="M0.5 26.5595C0.5 21.6163 0.50047 17.942 0.760736 15.0418C1.02039 12.1485 1.53555 10.0742 2.53621 8.3199C3.91155 5.90869 5.90917 3.91106 8.32039 2.53572C10.0747 1.53506 12.1489 1.01991 15.0423 0.760247C17.9425 0.499981 21.6168 0.499512 26.56 0.499512H37.44C42.3832 0.499512 46.0575 0.499981 48.9577 0.760247C51.8511 1.01991 53.9253 1.53506 55.6796 2.53572C58.0908 3.91106 60.0885 5.90869 61.4638 8.3199C62.4645 10.0742 62.9796 12.1485 63.2393 15.0418C63.4995 17.942 63.5 21.6163 63.5 26.5595V37.4395C63.5 42.3827 63.4995 46.057 63.2393 48.9572C62.9796 51.8506 62.4645 53.9248 61.4638 55.6791C60.0885 58.0903 58.0908 60.088 55.6796 61.4633C53.9253 62.464 51.8511 62.9791 48.9577 63.2388C46.0575 63.499 42.3832 63.4995 37.44 63.4995H26.56C21.6168 63.4995 17.9425 63.499 15.0423 63.2388C12.1489 62.9791 10.0747 62.464 8.32039 61.4633C5.90917 60.088 3.91155 58.0903 2.53621 55.6791C1.53555 53.9248 1.02039 51.8506 0.760736 48.9572C0.50047 46.057 0.5 42.3827 0.5 37.4395V26.5595Z" stroke="#141414" stroke-opacity="0.1"/> 7286 <path d="M28.1042 49.2329L13.1024 51.2077L15.0772 36.2059L37.1015 14.1815C39.2441 12.039 40.3154 10.9677 41.5718 10.624C42.4205 10.3918 43.3159 10.3918 44.1645 10.624C45.421 10.9677 46.4922 12.039 48.6348 14.1815L50.1286 15.6753C52.2711 17.8179 53.3424 18.8891 53.6861 20.1456C53.9183 20.9942 53.9183 21.8896 53.6861 22.7383C53.3424 23.9947 52.2711 25.066 50.1286 27.2086L28.1042 49.2329Z" fill="#FF974C" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 7287 <path d="M38.5962 20.5376L22.4199 36.7139" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 7288 <path d="M43.7727 25.714L27.5964 41.8903" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 7289 <path d="M22.3703 36.7635C19.3258 39.808 16.0198 36.6395 16.2616 35.0324" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 7290 <path d="M27.5466 41.9399C24.5034 44.9831 28.155 48.7098 29.2738 48.0475" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 7291 <path d="M27.5468 41.9398C23.428 46.0586 18.2516 40.8822 22.3704 36.7634" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 7292 <path d="M15.8191 50.5214C15.4711 49.5823 14.728 48.8392 13.7889 48.4912" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 7293 <path d="M49.2862 29.5805L34.7275 15.0219" stroke="#E4E7E7" stroke-width="2" stroke-linejoin="round"/> 7294 </g> 7295 <defs> 7296 <clipPath id="clip0_241_31635"> 7297 <rect width="64" height="64" fill="white"/> 7298 </clipPath> 7299 </defs> 7300</svg> 7301`,lightbulb:J`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg"> 7302 <g clip-path="url(#clip0_241_31636)"> 7303 <path d="M0 26.5595C0 16.6913 0 11.7572 2.1019 8.07217C3.5216 5.58318 5.58366 3.52111 8.07266 2.10141C11.7577 -0.000488281 16.6918 -0.000488281 26.56 -0.000488281H37.44C47.3082 -0.000488281 52.2423 -0.000488281 55.9273 2.10141C58.4163 3.52111 60.4784 5.58318 61.8981 8.07217C64 11.7572 64 16.6913 64 26.5595V37.4395C64 47.3077 64 52.2418 61.8981 55.9269C60.4784 58.4159 58.4163 60.4779 55.9273 61.8976C52.2423 63.9995 47.3082 63.9995 37.44 63.9995H26.56C16.6918 63.9995 11.7577 63.9995 8.07266 61.8976C5.58366 60.4779 3.5216 58.4159 2.1019 55.9269C0 52.2418 0 47.3077 0 37.4395V26.5595Z" fill="#794CFF"/> 7304 <path d="M0.5 26.5595C0.5 21.6163 0.50047 17.942 0.760736 15.0418C1.02039 12.1485 1.53555 10.0742 2.53621 8.3199
7304C3.91155 5.90869 5.90917 3.91106 8.32039 2.53572C10.0747 1.53506 12.1489 1.01991 15.0423 0.760247C17.9425 0.499981 21.6168 0.499512 26.56 0.499512H37.44C42.3832 0.499512 46.0575 0.499981 48.9577 0.760247C51.8511 1.01991 53.9253 1.53506 55.6796 2.53572C58.0908 3.91106 60.0885 5.90869 61.4638 8.3199C62.4645 10.0742 62.9796 12.1485 63.2393 15.0418C63.4995 17.942 63.5 21.6163 63.5 26.5595V37.4395C63.5 42.3827 63.4995 46.057 63.2393 48.9572C62.9796 51.8506 62.4645 53.9248 61.4638 55.6791C60.0885 58.0903 58.0908 60.088 55.6796 61.4633C53.9253 62.464 51.8511 62.9791 48.9577 63.2388C46.0575 63.499 42.3832 63.4995 37.44 63.4995H26.56C21.6168 63.4995 17.9425 63.499 15.0423 63.2388C12.1489 62.9791 10.0747 62.464 8.32039 61.4633C5.90917 60.088 3.91155 58.0903 2.53621 55.6791C1.53555 53.9248 1.02039 51.8506 0.760736 48.9572C0.50047 46.057 0.5 42.3827 0.5 37.4395V26.5595Z" stroke="#141414" stroke-opacity="0.1"/> 7305 <path d="M40 39.4595C44.7824 36.693 48 31.5222 48 25.6C48 16.7634 40.8366 9.59998 32 9.59998C23.1634 9.59998 16 16.7634 16 25.6C16 31.5222 19.2176 36.693 24 39.4595V45.8144H40V39.4595Z" fill="#906EF7"/> 7306 <path d="M24 49.9689C24 51.8192 24 52.7444 24.3941 53.4353C24.6603 53.902 25.0469 54.2886 25.5136 54.5548C26.2046 54.9489 27.1297 54.9489 28.98 54.9489H35.02C36.8703 54.9489 37.7954 54.9489 38.4864 54.5548C38.9531 54.2886 39.3397 53.902 39.6059 53.4353C40 52.7444 40 51.8192 40 49.9689V45.8144H24V49.9689Z" fill="#906EF7"/> 7307 <path d="M24 45.8144V39.4595C19.2176 36.693 16 31.5222 16 25.6C16 16.7634 23.1634 9.59998 32 9.59998C40.8366 9.59998 48 16.7634 48 25.6C48 31.5222 44.7824 36.693 40 39.4595V45.8144M24 45.8144H40M24 45.8144V49.9689C24 51.8192 24 52.7444 24.3941 53.4353C24.6603 53.902 25.0469 54.2886 25.5136 54.5548C26.2046 54.9489 27.1297 54.9489 28.98 54.9489H35.02C36.8703 54.9489 37.7954 54.9489 38.4864 54.5548C38.9531 54.2886 39.3397 53.902 39.6059 53.4353C40 52.7444 40 51.8192 40 49.9689V45.8144" stroke="white" stroke-width="2" stroke-linejoin="round"/> 7308 <path d="M24 49.9689C24 51.8192 24 52.7444 24.3941 53.4353C24.6603 53.902 25.0469 54.2886 25.5136 54.5548C26.2046 54.9489 27.1297 54.9489 28.98 54.9489H35.02C36.8703 54.9489 37.7954 54.9489 38.4864 54.5548C38.9531 54.2886 39.3397 53.902 39.6059 53.4353C40 52.7444 40 51.8192 40 49.9689V45.8144H24V49.9689Z" fill="#643CDD" stroke="white" stroke-width="2" stroke-linejoin="round"/> 7309 <path d="M29.6735 26.9101V29.1109H34.0753V26.9101C34.0753 25.6945 35.0607 24.7092 36.2762 24.7092C37.4917 24.7092 38.4771 25.6945 38.4771 26.9101C38.4771 28.1256 37.4917 29.1109 36.2762 29.1109H34.0753H29.6735H27.4726C26.2571 29.1109 25.2717 28.1256 25.2717 26.9101C25.2717 25.6945 26.2571 24.7092 27.4726 24.7092C28.6881 24.7092 29.6735 25.6945 29.6735 26.9101Z" fill="#906EF7"/> 7310 <path d="M29.6735 45.3183V26.9101C29.6735 25.6945 28.6881 24.7092 27.4726 24.7092V24.7092C26.2571 24.7092 25.2717 25.6945 25.2717 26.9101V26.9101C25.2717 28.1256 26.2571 29.1109 27.4726 29.1109H36.2762C37.4917 29.1109 38.4771 28.1256 38.4771 26.9101V26.9101C38.4771 25.6945 37.4917 24.7092 36.2762 24.7092V24.7092C35.0607 24.7092 34.0753 25.6945 34.0753 26.9101V45.3183" stroke="white" stroke-width="2" stroke-linejoin="round"/> 7311 </g> 7312 <defs> 7313 <clipPath id="clip0_241_31636"> 7314 <rect width="64" height="64" fill="white"/> 7315 </clipPath> 7316 </defs> 7317</svg> 7318`},rE=class extends em{constructor(){super(...arguments),this.name="browser",this.size="md"}render(){return this.style.cssText=` 7319 --local-size: var(--wui-visual-size-${this.size}); 7320 `,Q`${rA[this.name]}`}};rE.styles=[eS,rC],rx([eD()],rE.prototype,"name",void 0),rx([eD()],rE.prototype,"size",void 0),rE=rx([eR("wui-v
7320isual")],rE);/** 7321 * @license 7322 * Copyright 2018 Google LLC 7323 * SPDX-License-Identifier: BSD-3-Clause 7324 */let rk=e=>e??ee,r_={getSpacingStyles:(e,t)=>Array.isArray(e)?e[t]?`var(--wui-spacing-${e[t]})`:void 0:"string"==typeof e?`var(--wui-spacing-${e})`:void 0,getFormattedDate:e=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(e),getHostName(e){try{return new URL(e).hostname}catch(e){return""}},getTruncateString:({string:e,charsStart:t,charsEnd:r,truncate:n})=>e.length<=t+r?e:"end"===n?`${e.substring(0,t)}...`:"start"===n?`...${e.substring(e.length-r)}`:`${e.substring(0,Math.floor(t))}...${e.substring(e.length-Math.floor(r))}`,generateAvatarColors(e){let t=e.toLowerCase().replace(/^0x/iu,"").substring(0,6),r=this.hexToRgb(t),n=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),i=100-3*Number(n?.replace("px","")),o=`${i}% ${i}% at 65% 40%`,a=[];for(let e=0;e<5;e+=1){let t=this.tintColor(r,.15*e);a.push(`rgb(${t[0]}, ${t[1]}, ${t[2]})`)}return` 7325 --local-color-1: ${a[0]}; 7326 --local-color-2: ${a[1]}; 7327 --local-color-3: ${a[2]}; 7328 --local-color-4: ${a[3]}; 7329 --local-color-5: ${a[4]}; 7330 --local-radial-circle: ${o} 7331 `},hexToRgb(e){let t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t]},tintColor(e,t){let[r,n,i]=e;return[Math.round(r+(255-r)*t),Math.round(n+(255-n)*t),Math.round(i+(255-i)*t)]},isNumber:e=>/^[0-9]+$/u.test(e),getColorTheme:e=>e||("undefined"!=typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":"dark"),splitBalance(e){let t=e.split(".");return 2===t.length?[t[0],t[1]]:["0","00"]},roundNumber:(e,t,r)=>e.toString().length>=t?Number(e).toFixed(r):e,formatNumberToLocalString:(e,t=2)=>void 0===e?"0.00":"number"==typeof e?e.toLocaleString("en-US",{maximumFractionDigits:t,minimumFractionDigits:t}):parseFloat(e).toLocaleString("en-US",{maximumFractionDigits:t,minimumFractionDigits:t})};var rS=h` 7332 :host { 7333 display: flex; 7334 width: inherit; 7335 height: inherit; 7336 } 7337`,rT=function(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};let rI=class extends em{render(){return this.style.cssText=` 7338 flex-direction: ${this.flexDirection}; 7339 flex-wrap: ${this.flexWrap}; 7340 flex-basis: ${this.flexBasis}; 7341 flex-grow: ${this.flexGrow}; 7342 flex-shrink: ${this.flexShrink}; 7343 align-items: ${this.alignItems}; 7344 justify-content: ${this.justifyContent}; 7345 column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`}; 7346 row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`}; 7347 gap: ${this.gap&&`var(--wui-spacing-${this.gap})`}; 7348 padding-top: ${this.padding&&r_.getSpacingStyles(this.padding,0)}; 7349 padding-right: ${this.padding&&r_.getSpacingStyles(this.padding,1)}; 7350 padding-bottom: ${this.padding&&r_.getSpacingStyles(this.padding,2)}; 7351 padding-left: ${this.padding&&r_.getSpacingStyles(this.padding,3)}; 7352 margin-top: ${this.margin&&r_.getSpacingStyles(this.margin,0)}; 7353 margin-right: ${this.margin&&r_.getSpacingStyles(this.margin,1)}; 7354 margin-bottom: ${this.margin&&r_.getSpacingStyles(this.margin,2)}; 7355 margin-left: ${this.margin&&r_.getSpacingStyles(this.margin,3)}; 7356 `,Q`<slot></slot>`}};rI.styles=[eS,rS],rT([eD()],rI.prototype,"flexDirection",void 0),rT([eD()],rI.prototype,"flexWrap",void 0),rT([eD()],rI.prototype,"flexBasis",void 0),rT([eD()],rI.prototype,"flexGrow",void 0),rT([eD()],rI.prototype,"flexShrink",void 0),rT([eD()],rI.prototype,"alignItems",void 0),rT([eD()],rI.prototype,"justifyContent",void 0),rT([eD()],rI.prototype,"columnGap",void 0),rT([eD()],rI.prototype,"rowGap",void 0),rT([eD()],rI.prototype,"gap",void 0),rT([eD()],rI.prototype,"padding",void 0),rT([eD()],rI.prototype,"margin",void 0),rI=rT([eR("wui-flex")],rI);var rR=h` 7357 :host { 7358 display: block; 7359 width: var(--local-width); 7360 height: var(--local-height); 7361 border-radius: var(--wui-border-radius-3xl); 7362 box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005); 7363 overflow: hidden; 7364 position: relative; 7365 } 7366 7367 :host([data-variant='generated']) { 7368 --mixed-local-color-1: var(--local-color-1); 7369 --mixed-local-color-2: var(--local-color-2); 7370 --mixed-local-color-3: var(--local-color-3); 7371 --mixed-local-color-4: var(--local-color-4); 7372 --mixed-local-color-5: var(--local-color-5); 7373 } 7374 7375 @supports (background: color-mix(in srgb, white 50%, black)) { 7376 :host([data-variant='generated']) { 7377 --mixed-local-color-1: color-mix( 7378 in srgb, 7379 var(--w3m-color-mix) var(--w3m-color-mix-strength), 7380 var(--local-color-1) 7381 ); 7382 --mixed-local-color-2: color-mix( 7383 in srgb, 7384 var(--w3m-color-mix) var(--w3m-color-mix-strength), 7385 var(--local-color-2) 7386 ); 7387 --mixed-local-color-3: color-mix( 7388 in srgb, 7389 var(--w3m-color-mix) var(--w3m-color-mix-strength), 7390 var(--local-color-3) 7391 ); 7392 --mixed-local-color-4: color-mix( 7393 in srgb, 7394 var(--w3m-color-mix) var(--w3m-color-mix-strength), 7395 var(--local-color-4) 7396 ); 7397 --mixed-local-color-5: color-mix( 7398 in srgb, 7399 var(--w3m-color-mix) var(--w3m-color-mix-strength), 7400 var(--local-color-5) 7401 ); 7402 } 7403 } 7404 7405 :host([data-variant='generated']) { 7406 box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005); 7407 background: radial-gradient( 7408 var(--local-radial-circle), 7409 #fff 0.52%, 7410 var(--mixed-local-color-5) 31.25%, 7411 var(--mixed-local-color-3) 51.56%, 7412 var(--mixed-local-color-2) 65.63%, 7413 var(--mixed-local-color-1) 82.29%, 7414 var(--mixed-local-color-4) 100% 7415 ); 7416 } 7417 7418 :host([data-variant='default']) { 7419 box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005); 7420 background: radial-gradient( 7421 75.29% 75.29% at 64.96% 24.36%, 7422 #fff 0.52%, 7423 #f5ccfc 31.25%, 7424 #dba4f5 51.56%, 7425 #9a8ee8 65.63%, 7426 #6493da 82.29%, 7427 #6ebdea 100% 7428 ); 7429 } 7430`,rO=function(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};let rP=class extends em{constructor(){super(...arguments),this.imageSrc=void 0,this.alt=void 0,this.address=void 0,this.size="xl"}render(){return this.style.cssText=` 7431 --local-width: var(--wui-icon-box-size-${this.size}); 7432 --local-height: var(--wui-icon-box-size-${this.size}); 7433 `,Q`${this.visualTemplate()}`}visualTemplate(){if(this.imageSrc)return this.dataset.variant="image",Q`<wui-image src=${this.imageSrc} alt=${this.alt??"avatar"}></wui-image>`;if(this.address){this.dataset.variant="generated";let e=r_.generateAvatarColors(this.address);return this.style.cssText+=` 7434 ${e}`,null}return this.dataset.variant="default",null}};rP.styles=[eS,rR],rO([eD()],rP.prototype,"imageSrc",void 0),rO([eD()],rP.prototype,"alt",void 0),rO([eD()],rP.prototype,"address",void 0),rO([eD()],rP.prototype,"size",void 0),rP=rO([eR("wui-avatar")],rP);var rN=h` 7435 :host { 7436 display: inline-flex; 7437 justify-content: center;
7438 align-items: center; 7439 position: relative; 7440 overflow: hidden; 7441 background-color: var(--wui-color-gray-glass-020); 7442 border-radius: var(--local-border-radius); 7443 border: var(--local-border); 7444 box-sizing: content-box; 7445 width: var(--local-size); 7446 height: var(--local-size); 7447 min-height: var(--local-size); 7448 min-width: var(--local-size); 7449 } 7450 7451 @supports (background: color-mix(in srgb, white 50%, black)) { 7452 :host { 7453 background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent); 7454 } 7455 } 7456`,rM=function(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};let rD=class extends em{constructor(){super(...arguments),this.size="md",this.backgroundColor="accent-100",this.iconColor="accent-100",this.background="transparent",this.border=!1,this.borderColor="wui-color-bg-125",this.icon="copy"}render(){let e=this.iconSize||this.size,t="lg"===this.size,r="xl"===this.size,n="gray"===this.background,i="opaque"===this.background,o="accent-100"===this.backgroundColor&&i||"success-100"===this.backgroundColor&&i||"error-100"===this.backgroundColor&&i||"inverse-100"===this.backgroundColor&&i,a=`var(--wui-color-${this.backgroundColor})`;return o?a=`var(--wui-icon-box-bg-${this.backgroundColor})`:n&&(a=`var(--wui-color-gray-${this.backgroundColor})`),this.style.cssText=` 7457 --local-bg-value: ${a}; 7458 --local-bg-mix: ${o||n?"100%":t?"12%":"16%"}; 7459 --local-border-radius: var(--wui-border-radius-${t?"xxs":r?"s":"3xl"}); 7460 --local-size: var(--wui-icon-box-size-${this.size}); 7461 --local-border: ${"wui-color-bg-125"===this.borderColor?"2px":"1px"} solid ${this.border?`var(--${this.borderColor})`:"transparent"} 7462 `,Q` <wui-icon color=${this.iconColor} size=${e} name=${this.icon}></wui-icon> `}};rD.styles=[eS,eT,rN],rM([eD()],rD.prototype,"size",void 0),rM([eD()],rD.prototype,"backgroundColor",void 0),rM([eD()],rD.prototype,"iconColor",void 0),rM([eD()],rD.prototype,"iconSize",void 0),rM([eD()],rD.prototype,"background",void 0),rM([eD({type:Boolean})],rD.prototype,"border",void 0),rM([eD()],rD.prototype,"borderColor",void 0),rM([eD()],rD.prototype,"icon",void 0),rD=rM([eR("wui-icon-box")],rD);var rB=h` 7463 :host { 7464 display: block; 7465 } 7466 7467 button { 7468 border-radius: var(--wui-border-radius-3xl); 7469 background: var(--wui-color-gray-glass-002); 7470 display: flex; 7471 gap: var(--wui-spacing-xs); 7472 padding: var(--wui-spacing-3xs) var(--wui-spacing-xs) var(--wui-spacing-3xs) 7473 var(--wui-spacing-xs); 7474 border: 1px solid var(--wui-color-gray-glass-005); 7475 } 7476 7477 button:disabled { 7478 background: var(--wui-color-gray-glass-015); 7479 } 7480 7481 button:disabled > wui-text { 7482 color: var(--wui-color-gray-glass-015); 7483 } 7484 7485 button:disabled > wui-flex > wui-text { 7486 color: var(--wui-color-gray-glass-015); 7487 } 7488 7489 button:disabled > wui-image, 7490 button:disabled > wui-flex > wui-avatar { 7491 filter: grayscale(1); 7492 } 7493 7494 button:has(wui-image) { 7495 padding: var(--wui-spacing-3xs) var(--wui-spacing-3xs) var(--wui-spacing-3xs) 7496 var(--wui-spacing-xs); 7497 } 7498 7499 wui-text { 7500 color: var(--wui-color-fg-100); 7501 } 7502 7503 wui-flex > wui-text { 7504 color: var(--wui-color-fg-200); 7505 } 7506 7507 wui-image, 7508 wui-icon-box { 7509 border-radius: var(--wui-border-radius-3xl); 7510 width: 24px; 7511 height: 24px; 7512 box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); 7513 } 7514 7515 wui-flex { 7516 border-radius: var(--wui-border-radius-3xl); 7517 border: 1px solid var(--wui-color-gray-glass-005); 7518 background: var(--wui-color-gray-glass-005); 7519 padding: 4px var(--wui-spacing-m) 4px var(--wui-spacing-xxs); 7520 } 7521 7522 button.local-no-balance { 7523 border-radius: 0px; 7524 border: none; 7525 background: transparent; 7526 } 7527 7528 wui-avatar { 7529 width: 20px; 7530 height: 20px; 7531 box-shadow: 0 0 0 2px var(--wui-color-accent-glass-010); 7532 } 7533 7534 @media (max-width: 500px) { 7535 button { 7536 gap: 0px; 7537 padding: var(--wui-spacing-3xs) var(--wui-spacing-xs) !important; 7538 height: 32px; 7539 } 7540 wui-image, 7541 wui-icon-box, 7542 button > wui-text { 7543 visibility: hidden; 7544 width: 0px; 7545 height: 0px; 7546 } 7547 button { 7548 border-radius: 0px; 7549 border: none; 7550 background: transparent; 7551 padding: 0px; 7552 } 7553 } 7554 7555 @media (hover: hover) and (pointer: fine) { 7556 button:hover:enabled > wui-flex > wui-text { 7557 color: var(--wui-color-fg-175); 7558 } 7559 7560 button:active:enabled > wui-flex > wui-text { 7561 color: var(--wui-color-fg-175); 7562 } 7563 } 7564`,r$=function(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};let rU=class extends em{constructor(){super(...arguments),this.networkSrc=void 0,this.avatarSrc=void 0,this.balance=void 0,this.isUnsupportedChain=void 0,this.disabled=!1,this.address="",this.profileName="",this.charsStart=4,this.charsEnd=6}render(){return Q` 7565 <button 7566 ?disabled=${this.disabled} 7567 class=${rk(this.balance?void 0:"local-no-balance")} 7568 > 7569 ${this.balanceTemplate()}
7570 <wui-flex gap="xxs" alignItems="center"> 7571 <wui-avatar 7572 .imageSrc=${this.avatarSrc} 7573 alt=${this.address} 7574 address=${this.address} 7575 ></wui-avatar> 7576 <wui-text variant="paragraph-600" color="inherit"> 7577 ${this.address?r_.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?18:this.charsStart,charsEnd:this.profileName?0:this.charsEnd,truncate:this.profileName?"end":"middle"}):null} 7578 </wui-text> 7579 </wui-flex> 7580 </button> 7581 `}balanceTemplate(){if(this.isUnsupportedChain)return Q` <wui-icon-box 7582 size="sm" 7583 iconColor="error-100" 7584 backgroundColor="error-100" 7585 icon="warningCircle" 7586 ></wui-icon-box> 7587 <wui-text variant="paragraph-600" color="inherit"> Switch Network</wui-text>`;if(this.balance){let e=this.networkSrc?Q`<wui-image src=${this.networkSrc}></wui-image>`:Q` 7588 <wui-icon-box 7589 size="sm" 7590 iconColor="fg-200" 7591 backgroundColor="fg-300" 7592 icon="networkPlaceholder" 7593 ></wui-icon-box> 7594 `;return Q` 7595 ${e} 7596 <wui-text variant="paragraph-600" color="inherit"> ${this.balance}</wui-text> 7597 `}return null}};rU.styles=[eS,eT,rB],r$([eD()],rU.prototype,"networkSrc",void 0),r$([eD()],rU.prototype,"avatarSrc",void 0),r$([eD()],rU.prototype,"balance",void 0),r$([eD({type:Boolean})],rU.prototype,"isUnsupportedChain",void 0),r$([eD({type:Boolean})],rU.prototype,"disabled",void 0),r$([eD()],rU.prototype,"address",void 0),r$([eD()],rU.prototype,"profileName",void 0),r$([eD()],rU.prototype,"charsStart",void 0),r$([eD()],rU.prototype,"charsEnd",void 0),rU=r$([eR("wui-account-button")],rU);var rL=h` 7598 :host { 7599 position: relative; 7600 background-color: var(--wui-color-gray-glass-002); 7601 display: flex; 7602 justify-content: center; 7603 align-items: center; 7604 width: var(--local-size); 7605 height: var(--local-size); 7606 border-radius: inherit; 7607 border-radius: var(--local-border-radius); 7608 } 7609 7610 :host > wui-flex { 7611 overflow: hidden; 7612 border-radius: inherit; 7613 border-radius: var(--local-border-radius); 7614 } 7615 7616 :host::after { 7617 content: ''; 7618 position: absolute; 7619 top: 0; 7620 bottom: 0; 7621 left: 0; 7622 right: 0; 7623 border-radius: inherit; 7624 border: 1px solid var(--wui-color-gray-glass-010); 7625 pointer-events: none; 7626 } 7627 7628 :host([name='Extension'])::after { 7629 border: 1px solid var(--wui-color-accent-glass-010); 7630 } 7631 7632 :host([data-wallet-icon='allWallets']) { 7633 background-color: var(--wui-all-wallets-bg-100); 7634 } 7635 7636 :host([data-wallet-icon='allWallets'])::after { 7637 border: 1px solid var(--wui-color-accent-glass-010); 7638 } 7639 7640 wui-icon[data-parent-size='inherit'] { 7641 width: 75%; 7642 height: 75%; 7643 align-items: center; 7644 } 7645 7646 wui-icon[data-parent-size='sm'] { 7647 width: 18px; 7648 height: 18px; 7649 } 7650 7651 wui-icon[data-parent-size='md'] { 7652 width: 24px; 7653 height: 24px; 7654 } 7655 7656 wui-icon[data-parent-size='lg'] { 7657 width: 42px; 7658 height: 42px; 7659 } 7660 7661 wui-icon[data-parent-size='full'] { 7662 width: 100%; 7663 height: 100%; 7664 } 7665 7666 :host > wui-icon-box { 7667 position: absolute; 7668 overflow: hidden; 7669 right: -1px; 7670 bottom: -2px; 7671 z-index: 1; 7672 border: 2px solid var(--wui-color-bg-150, #1e1f1f); 7673 padding: 1px; 7674 } 7675`,rj=function(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};let rz=class extends em{constructor(){super(...arguments),this.size="md",this.name="",this.installed=!1,this.badgeSize="xs"}render(){let e="xxs";return e="lg"===this.size?"m":"md"===this.size?"xs":"xxs",this.style.cssText=` 7676 --local-border-radius: var(--wui-border-radius-${e}); 7677 --local-size: var(--wui-wallet-image-size-${this.size}); 7678 `,this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),Q` 7679 <wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex> 7680 `}templateVisual(){return this.imageSrc?Q`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:this.walletIcon?Q`<wui-icon 7681 data-parent-size="md" 7682 size="md" 7683 color="inherit" 7684 name=${this.walletIcon} 7685 ></wui-icon>`:Q`<wui-icon 7686 data-parent-size=${this.size} 7687 size="inherit" 7688 color="inherit" 7689 name="walletPlaceholder" 7690 ></wui-icon>`}};rz.styles=[eS,rL],rj([eD()],rz.prototype,"size",void 0),rj([eD()],rz.prototype,"name",void 0),rj([eD()],rz.prototype,"imageSrc",void 0),rj([eD()],rz.prototype,"walletIcon",void 0),rj([eD({type:Boolean})],rz.prototype,"installed",void 0),rj([eD()],rz.prototype,"badgeSize",void 0),rz=rj([eR("wui-wallet-image")],rz);var rF=h` 7691 :host { 7692 position: relative; 7693 border-radius: var(--wui-border-radius-xxs); 7694 width: 40px; 7695 height: 40px; 7696 overflow: hidden; 7697 background: var(--wui-color-gray-glass-002); 7698 display: flex; 7699 justify-content: center;
7700 align-items: center; 7701 flex-wrap: wrap; 7702 gap: var(--wui-spacing-4xs); 7703 padding: 3.75px !important; 7704 } 7705 7706 :host::after { 7707 content: ''; 7708 position: absolute; 7709 top: 0; 7710 bottom: 0; 7711 left: 0; 7712 right: 0; 7713 border-radius: inherit; 7714 border: 1px solid var(--wui-color-gray-glass-010); 7715 pointer-events: none; 7716 } 7717 7718 :host > wui-wallet-image { 7719 width: 14px; 7720 height: 14px; 7721 border-radius: var(--wui-border-radius-5xs); 7722 } 7723 7724 :host > wui-flex { 7725 padding: 2px; 7726 position: fixed; 7727 overflow: hidden; 7728 left: 34px; 7729 bottom: 8px; 7730 background: var(--dark-background-150, #1e1f1f); 7731 border-radius: 50%; 7732 z-index: 2; 7733 display: flex; 7734 } 7735`,rH=function(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};let rq=class extends em{constructor(){super(...arguments),this.walletImages=[]}render(){let e=this.walletImages.length<4;return Q`${this.walletImages.slice(0,4).map(({src:e,walletName:t})=>Q` 7736 <wui-wallet-image 7737 size="inherit" 7738 imageSrc=${e} 7739 name=${rk(t)} 7740 ></wui-wallet-image> 7741 `)} 7742 ${e?[...Array(4-this.walletImages.length)].map(()=>Q` <wui-wallet-image size="inherit" name=""></wui-wallet-image>`):null} 7743 <wui-flex> 7744 <wui-icon-box 7745 size="xxs" 7746 iconSize="xxs" 7747 iconcolor="success-100" 7748 backgroundcolor="success-100" 7749 icon="checkmark" 7750 background="opaque" 7751 ></wui-icon-box> 7752 </wui-flex>`}};rq.styles=[eS,rF],rH([eD({type:Array})],rq.prototype,"walletImages",void 0),rq=rH([eR("wui-all-wallets-image")],rq);var rW=h` 7753 :host { 7754 width: var(--local-width); 7755 position: relative; 7756 } 7757 7758 button { 7759 border: none; 7760 border-radius: var(--local-border-radius); 7761 width: var(--local-width); 7762 white-space: nowrap; 7763 } 7764 7765 /* -- Sizes --------------------------------------------------- */ 7766 button[data-size='md'] { 7767 padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-l); 7768 height: 36px; 7769 } 7770 7771 button[data-size='md'][data-icon-left='true'][data-icon-right='false'] { 7772 padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-s); 7773 } 7774 7775 button[data-size='md'][data-icon-right='true'][data-icon-left='false'] { 7776 padding: 8.2px var(--wui-spacing-s) 9px var(--wui-spacing-l); 7777 } 7778 7779 button[data-size='lg'] { 7780 padding: var(--wui-spacing-m) var(--wui-spacing-2l); 7781 height: 48px; 7782 } 7783 7784 /* -- Variants --------------------------------------------------------- */ 7785 button[data-variant='main'] { 7786 background-color: var(--wui-color-accent-100); 7787 color: var(--wui-color-inverse-100); 7788 border: none; 7789 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 7790 } 7791 7792 button[data-variant='inverse'] { 7793 background-color: var(--wui-color-inverse-100); 7794 color: var(--wui-color-inverse-000); 7795 border: none; 7796 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 7797 } 7798 7799 button[data-variant='accent'] { 7800 background-color: var(--wui-color-accent-glass-010); 7801 color: var(--wui-color-accent-100); 7802 border: none; 7803 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 7804 } 7805 7806 button[data-variant='accent-error'] { 7807 background: var(--wui-color-error-glass-015); 7808 color: var(--wui-color-error-100); 7809 border: none; 7810 box-shadow: inset 0 0 0 1px var(--wui-color-error-glass-010); 7811 } 7812 7813 button[data-variant='accent-success'] { 7814 background: var(--wui-color-success-glass-015); 7815 color: var(--wui-color-success-100); 7816 border: none; 7817 box-shadow: inset 0 0 0 1px var(--wui-color-success-glass-010); 7818 } 7819 7820 button[data-variant='neutral'] { 7821 background: transparent; 7822 color: var(--wui-color-fg-100); 7823 border: none; 7824 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 7825 } 7826 7827 /* -- Focus states --------------------------------------------------- */ 7828 button[data-variant='main']:focus-visible:enabled { 7829 background-color: var(--wui-color-accent-090); 7830 box-shadow: 7831 inset 0 0 0 1px var(--wui-color-accent-100), 7832 0 0 0 4px var(--wui-color-accent-glass-020); 7833 } 7834 button[data-variant='inverse']:focus-visible:enabled { 7835 background-color: var(--wui-color-inverse-100); 7836 box-shadow: 7837 inset 0 0 0 1px var(--wui-color-gray-glass-010), 7838 0 0 0 4px var(--wui-color-accent-glass-020); 7839 } 7840 button[data-variant='accent']:focus-visible:enabled { 7841 background-color: var(--wui-color-accent-glass-010); 7842 box-shadow: 7843 inset 0 0 0 1px var(--wui-color-accent-100), 7844 0 0 0 4px var(--wui-color-accent-glass-020); 7845 } 7846 button[data-variant='accent-error']:focus-visible:enabled { 7847 background: var(--wui-color-error-glass-015); 7848 box-shadow: 7849 inset 0 0 0 1px var(--wui-color-error-100), 7850 0 0 0 4px var(--wui-color-error-glass-020); 7851 } 7852 button[data-variant='accent-success']:focus-visible:enabled { 7853 background: var(--wui-color-success-glass-015); 7854 box-shadow: 7855 inset 0 0 0 1px var(--wui-color-success-100), 7856 0 0 0 4px var(--wui-color-success-glass-020); 7857 } 7858 button[data-variant='neutral']:focus-visible:enabled { 7859 background: var(--wui-color-gray-glass-005); 7860 box-shadow: 7861 inset 0 0 0 1px var(--wui-color-gray-glass-010), 7862 0 0 0 4px var(--wui-color-gray-glass-002); 7863 } 7864 7865 /* -- Hover & Active states ----------------------------------------------------------- */ 7866 @media (hover: hover) and (pointer: fine) { 7867 button[data-variant='main']:hover:enabled { 7868 background-color: var(--wui-color-accent-090); 7869 } 7870 7871 button[data-variant='main']:active:enabled { 7872 background-color: var(--wui-color-accent-080); 7873 } 7874 7875 button[data-variant='accent']:hover:enabled { 7876 background-color: var(--wui-color-accent-glass-015); 7877 } 7878 7879 button[data-variant='accent']:active:enabled { 7880 background-color: var(--wui-color-accent-glass-020); 7881 } 7882 7883 button[data-variant='accent-error']:hover:enabled { 7884 background: var(--wui-color-error-glass-020); 7885 color: var(--wui-color-error-100); 7886 } 7887 7888 button[data-variant='accent-error']:active:enabled { 7889 background: var(--wui-color-error-glass-030); 7890 color: var(--wui-color-error-100); 7891 } 7892 7893 button[data-variant='accent-success']:hover:enabled { 7894 background: var(--wui-color-success-glass-020); 7895 color: var(--wui-color-success-100); 7896 } 7897 7898 button[data-variant='accent-success']:active:enabled { 7899 background: var(--wui-color-success-glass-030); 7900 color: var(--wui-color-success-100); 7901 } 7902 7903 button[data-variant='neutral']:hover:enabled { 7904 background: var(--wui-color-gray-glass-002); 7905 } 7906 7907 button[data-variant='neutral']:active:enabled { 7908 background: var(--wui-color-gray-glass-005); 7909 } 7910 7911 button[data-size='lg'][data-icon-left='true'][data-icon-right='false'] { 7912 padding-left: var(--wui-spacing-m); 7913 } 7914 7915 button[data-size='lg'][data-icon-right='true'][data-icon-left='false'] { 7916 padding-right: var(--wui-spacing-m); 7917 } 7918 } 7919 7920 /* -- Disabled state --------------------------------------------------- */ 7921 button:disabled { 7922 background-color: var(--wui-color-gray-glass-002); 7923 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); 7924 color: var(--wui-color-gray-glass-020);
7925 cursor: not-allowed; 7926 } 7927 7928 button > wui-text { 7929 transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); 7930 will-change: opacity; 7931 opacity: var(--local-opacity-100); 7932 } 7933 7934 ::slotted(*) { 7935 transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); 7936 will-change: opacity; 7937 opacity: var(--local-opacity-100); 7938 } 7939 7940 wui-loading-spinner { 7941 position: absolute; 7942 left: 50%; 7943 top: 50%; 7944 transform: translate(-50%, -50%); 7945 opacity: var(--local-opacity-000); 7946 } 7947`,rV=function(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};let rZ={main:"inverse-100",inverse:"inverse-000",accent:"accent-100","accent-error":"error-100","accent-success":"success-100",neutral:"fg-100",disabled:"gray-glass-020"},rG={lg:"paragraph-600",md:"small-600"},rK={lg:"md",md:"md"},rY=class extends em{constructor(){super(...arguments),this.size="lg",this.disabled=!1,this.fullWidth=!1,this.loading=!1,this.variant="main",this.hasIconLeft=!1,this.hasIconRight=!1,this.borderRadius="m"}render(){this.style.cssText=` 7948 --local-width: ${this.fullWidth?"100%":"auto"}; 7949 --local-opacity-100: ${this.loading?0:1}; 7950 --local-opacity-000: ${this.loading?1:0}; 7951 --local-border-radius: var(--wui-border-radius-${this.borderRadius}); 7952 `;let e=this.textVariant??rG[this.size];return Q` 7953 <button 7954 data-variant=${this.variant} 7955 data-icon-left=${this.hasIconLeft} 7956 data-icon-right=${this.hasIconRight} 7957 data-size=${this.size} 7958 ?disabled=${this.disabled} 7959 ontouchstart 7960 > 7961 ${this.loadingTemplate()} 7962 <slot name="iconLeft" @slotchange=${()=>this.handleSlotLeftChange()}></slot> 7963 <wui-text variant=${e} color="inherit"> 7964 <slot></slot> 7965 </wui-text> 7966 <slot name="iconRight" @slotchange=${()=>this.handleSlotRightChange()}></slot> 7967 </button> 7968 `}handleSlotLeftChange(){this.hasIconLeft=!0}handleSlotRightChange(){this.hasIconRight=!0}loadingTemplate(){if(this.loading){let e=rK[this.size],t=this.disabled?rZ.disabled:rZ[this.variant];return Q`<wui-loading-spinner color=${t} size=${e}></wui-loading-spinner>`}return Q``}};rY.styles=[eS,eT,rW],rV([eD()],rY.prototype,"size",void 0),rV([eD({type:Boolean})],rY.prototype,"disabled",void 0),rV([eD({type:Boolean})],rY.prototype,"fullWidth",void 0),rV([eD({type:Boolean})],rY.prototype,"loading",void 0),rV([eD()],rY.prototype,"variant",void 0),rV([eD({type:Boolean})],rY.prototype,"hasIconLeft",void 0),rV([eD({type:Boolean})],rY.prototype,"hasIconRight",void 0),rV([eD()],rY.prototype,"borderRadius",void 0),rV([eD()],rY.prototype,"textVariant",void 0),rY=rV([eR("wui-button")],rY);let rQ=J`<svg viewBox="0 0 48 54" fill="none"> 7969 <path 7970 d="M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z" 7971 /> 7972</svg>`;var rJ=h` 7973 :host { 7974 display: flex; 7975 flex-direction: column; 7976 align-items: center; 7977 width: 76px; 7978 row-gap: var(--wui-spacing-xs); 7979 padding: var(--wui-spacing-xs) 10px; 7980 background-color: var(--wui-color-gray-glass-002); 7981 border-radius: clamp(0px, var(--wui-border-radius-xs), 20px); 7982 position: relative; 7983 } 7984 7985 wui-shimmer[data-type='network'] { 7986 border: none; 7987 -webkit-clip-path: var(--wui-path-network); 7988 clip-path: var(--wui-path-network); 7989 } 7990 7991 svg { 7992 position: absolute; 7993 width: 48px; 7994 height: 54px; 7995 z-index: 1; 7996 } 7997 7998 svg > path { 7999 stroke: var(--wui-color-gray-glass-010); 8000 stroke-width: 1px; 8001 } 8002`,rX=function(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};let r0=class extends em{constructor(){super(...arguments),this.type="wallet"}render(){return Q` 8003 ${this.shimmerTemplate()} 8004 <wui-shimmer width="56px" height="20px" borderRadius="xs"></wui-shimmer> 8005 `}shimmerTemplate(){return"network"===this.type?Q` <wui-shimmer 8006 data-type=${this.type} 8007 width="48px" 8008 height="54px" 8009 borderRadius="xs" 8010 ></wui-shimmer> 8011 ${rQ}`:Q`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}};r0.styles=[eS,eT,rJ],rX([eD()],r0.prototype,"type",void 0),r0=rX([eR("wui-card-select-loader")],r0);let r1=J` 8012 <svg fill="none" viewBox="0 0 36 40"> 8013 <path 8014 d="M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.
801461 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z" 8015 /> 8016 </svg> 8017`,r2=J`<svg width="86" height="96" fill="none"> 8018 <path 8019 d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z" 8020 /> 8021</svg>`;var r3=h` 8022 :host { 8023 position: relative; 8024 border-radius: inherit; 8025 display: flex; 8026 justify-content: center; 8027 align-items: center; 8028 width: var(--local-width); 8029 height: var(--local-height); 8030 } 8031 8032 svg { 8033 position: absolute; 8034 top: 0; 8035 left: 0; 8036 width: 100%; 8037 height: 100%; 8038 z-index: 1; 8039 fill: var(--wui-color-gray-glass-002); 8040 } 8041 8042 svg > path { 8043 stroke: var(--local-stroke); 8044 } 8045 8046 wui-image { 8047 width: 100%; 8048 height: 100%; 8049 -webkit-clip-path: var(--local-path); 8050 clip-path: var(--local-path); 8051 background: var(--wui-color-gray-glass-002); 8052 } 8053 8054 wui-icon { 8055 transform: translateY(-5%); 8056 width: var(--local-icon-size); 8057 height: var(--local-icon-size); 8058 } 8059`,r5=function(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};let r4=class extends em{constructor(){super(...arguments),this.size="md",this.name="uknown",this.selected=!1}render(){return this.style.cssText=` 8060 --local-stroke: ${this.selected?"var(--wui-color-accent-100)":"var(--wui-color-gray-glass-010)"}; 8061 --local-path: var(--wui-path-network-${this.size}); 8062 --local-width: var(--wui-width-network-${this.size}); 8063 --local-height: var(--wui-height-network-${this.size}); 8064 --local-icon-size: var(--wui-icon-size-network-${this.size}); 8065 `,Q`${this.templateVisual()} ${({sm:r1,md:rQ,lg:r2})[this.size]}`}templateVisual(){return this.imageSrc?Q`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:Q`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};r4.styles=[eS,r3],r5([eD()],r4.prototype,"size",void 0),r5([eD()],r4.prototype,"name",void 0),r5([eD()],r4.prototype,"imageSrc",void 0),r5([eD({type:Boolean})],r4.prototype,"selected",void 0),r4=r5([eR("wui-network-image")],r4);var r6=h` 8066 button { 8067 flex-direction: column; 8068 width: 76px; 8069 row-gap: var(--wui-spacing-xs); 8070 padding: var(--wui-spacing-xs) var(--wui-spacing-0); 8071 background-color: var(--wui-color-gray-glass-002); 8072 border-radius: clamp(0px, var(--wui-border-radius-xs), 20px); 8073 } 8074 8075 button > wui-text { 8076 color: var(--wui-color-fg-100); 8077 max-width: var(--wui-icon-box-size-xl); 8078 white-space: nowrap; 8079 overflow: hidden; 8080 text-overflow: ellipsis; 8081 justify-content: center; 8082 } 8083 8084 button:disabled > wui-text { 8085 color: var(--wui-color-gray-glass-015); 8086 } 8087 8088 [data-selected='true'] { 8089 background-color: var(--wui-color-accent-glass-020); 8090 } 8091 8092 @media (hover: hover) and (pointer: fine) { 8093 [data-selected='true']:hover:enabled { 8094 background-color: var(--wui-color-accent-glass-015); 8095 } 8096 } 8097 8098 [data-selected='true']:active:enabled { 8099 background-color: var(--wui-color-accent-glass-010); 8100 } 8101`,r8=function(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};let r9=class extends em{constructor(){super(...arguments),this.name="Unknown",this.type="wallet",this.imageSrc=void 0,this.disabled=!1,this.selected=!1,this.installed=!1}render(){return Q` 8102 <button data-selected=${rk(this.selected)} ?disabled=${this.disabled} ontouchstart> 8103 ${this.imageTemplate()} 8104 <wui-text variant="tiny-500" color=${this.selected?"accent-100":"inherit"}> 8105 ${this.name} 8106 </wui-text> 8107 </button> 8108 `}imageTemplate(){return"network"===this.type?Q` 8109 <wui-network-image 8110 .selected=${this.selected} 8111 imageSrc=${rk(this.imageSrc)} 8112 name=${this.name} 8113 > 8114 </wui-network-image> 8115 `:Q` 8116 <wui-wallet-image 8117 size="md" 8118 imageSrc=${rk(this.imageSrc)} 8119 name=${this.name} 8120 .installed=${this.installed} 8121 badgeSize="sm" 8122 > 8123 </wui-wallet-image> 8124 `}};r9.styles=[eS,eT,r6],r8([eD()],r9.prototype,"name",void 0),r8([eD()],r9.prototype,"type",void 0),r8([eD()],r9.prototype,"imageSrc",void 0),r8([eD({type:Boolean})],r9.prototype,"disabled",void 0),r8([eD({type:Boolean})],r9.prototype,"selected",void 0),r8([eD({type:Boolean})],r9.prototype,"installed",void 0),r9=r8([eR("wui-card-select")],r9);var r7=h` 8125 a { 8126 border: 1px solid var(--wui-color-gray-glass-010); 8127 border-radius: var(--wui-border-radius-3xl); 8128 } 8129 8130 wui-image { 8131 border-radius: var(--wui-border-radius-3xl); 8132 overflow: hidden; 8133 } 8134 8135 a.disabled > wui-icon, 8136 a.disabled > wui-image { 8137 filter: grayscale(1); 8138 } 8139 8140 a[data-variant='fill'] { 8141 color: var(--wui-color-inverse-100); 8142 background-color: var(--wui-color-accent-100); 8143 } 8144 8145 a[data-variant='shade'], 8146 a[data-variant='shadeSmall'] { 8147 background-color: transparent; 8148 background-color: var(--wui-color-gray-glass-010); 8149 color: var(--wui-color-fg-200); 8150 } 8151 8152 a[data-variant='success'] { 8153 column-gap: var(--wui-spacing-xxs); 8154 border: 1px solid var(--wui-color-success-glass-010); 8155 background-color: var(--wui-color-success-glass-010); 8156 color: var(--wui-color-success-100); 8157 } 8158 8159 a[data-variant='error'] { 8160 column-gap: var(--wui-spacing-xxs); 8161 border: 1px solid var(--wui-color-error-glass-010); 8162 background-color: var(--wui-color-error-glass-010); 8163 color: var(--wui-color-error-100); 8164 } 8165 8166 a[data-variant='transparent'] { 8167 column-gap: var(--wui-spacing-xxs); 8168 background-color: transparent; 8169 color: var(--wui-color-fg-150); 8170 } 8171 8172 a[data-variant='transparent'], 8173 a[data-variant='success'], 8174 a[data-variant='shadeSmall'], 8175 a[data-variant='error'] { 8176 padding: 7px var(--wui-spacing-s) 7px 10px; 8177 } 8178 8179 a[data-variant='transparent']:has(wui-text:first-child), 8180 a[data-variant='success']:has(wui-text:first-child), 8181 a[data-variant='shadeSmall']:has(wui-text:first-child), 8182 a[data-variant='error']:has(wui-text:first-child) { 8183 padding: 7px var(--wui-spacing-s); 8184 } 8185 8186 a[data-variant='fill'], 8187 a[data-variant='shade'] { 8188 column-gap: var(--wui-spacing-xs); 8189 padding: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-xxs) 8190 var(--wui-spacing-xs); 8191 } 8192 8193 a[data-variant='fill']:has(wui-text:first-child), 8194 a[data-variant='shade']:has(wui-text:first-child) { 8195 padding: 9px var(--wui-spacing-m) 9px var(--wui-spacing-m); 8196 } 8197 8198 a[data-variant='fill'] > wui-image, 8199 a[data-variant='shade'] > wui-image { 8200 width: 24px; 8201 height: 24px; 8202 } 8203 8204 a[data-variant='fill'] > wui-image { 8205 box-shadow: inset 0 0 0 1px var(--wui-color-accent-090); 8206 } 8207 8208 a[data-variant='shade'] > wui-image, 8209 a[data-variant='shadeSmall'] > wui-image { 8210 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 8211 } 8212 8213 a[data-variant='fill'] > wui-icon, 8214 a[data-variant='shade'] > wui-icon { 8215 width: 14px; 8216 height: 14px; 8217 } 8218 8219 a[data-variant='transparent'] > wui-image, 8220 a[data-variant='success'] > wui-image, 8221 a[data-variant='shadeSmall'] > wui-image, 8222 a[data-variant='error'] > wui-image { 8223 width: 14px; 8224 height: 14px; 8225 } 8226 8227 a[data-variant='transparent'] > wui-icon, 8228 a[data-variant='success'] > wui-icon, 8229 a[data-variant='shadeSmall'] > wui-icon, 8230 a[data-variant='error'] > wui-icon { 8231 width: 12px; 8232 height: 12px; 8233 } 8234 8235 a[data-variant='fill']:focus-visible { 8236 background-color: var(--wui-color-accent-090); 8237 } 8238 8239 a[data-variant='shade']:focus-visible, 8240 a[data-variant='shadeSmall']:focus-visible { 8241 background-color: var(--wui-color-gray-glass-015); 8242 } 8243 8244 a[data-variant='transparent']:focus-visible { 8245 background-color: var(--wui-color-gray-glass-005); 8246 } 8247 8248 a[data-variant='success']:focus-visible { 8249 background-color: var(--wui-color-success-glass-015); 8250 } 8251 8252 a[data-variant='error']:focus-visible { 8253 background-color: var(--wui-color-error-glass-015); 8254 } 8255 8256 a.disabled { 8257 color: var(--wui-color-gray-glass-015); 8258 background-color: var(--wui-color-gray-glass-015); 8259 pointer-events: none; 8260 } 8261 8262 @media (hover: hover) and (pointer: fine) { 8263 a[data-variant='fill']:hover { 8264 background-color: var(--wui-color-accent-090); 8265 } 8266 8267 a[data-variant='shade']:hover, 8268 a[data-variant='shadeSmall']:hover { 8269 background-color: var(--wui-color-gray-glass-015); 8270 } 8271 8272 a[data-variant='transparent']:hover { 8273 background-color: var(--wui-color-gray-glass-005); 8274 } 8275 8276 a[data-variant='success']:hover { 8277 background-color: var(--wui-color-success-glass-015); 8278 } 8279 8280 a[data-variant='error']:hover { 8281 background-color: var(--wui-color-error-glass-015); 8282 } 8283 } 8284 8285 a[data-variant='fill']:active { 8286 background-color: var(--wui-color-accent-080); 8287 } 8288 8289 a[data-variant='shade']:active, 8290 a[data-variant='shadeSmall']:active { 8291 background-color: var(--wui-color-gray-glass-020); 8292 } 8293 8294 a[data-variant='transparent']:active { 8295 background-color: var(--wui-color-gray-glass-010); 8296 } 8297 8298 a[data-variant='success']:active { 8299 background-color: var(--wui-color-success-glass-020); 8300 } 8301 8302 a[data-variant='error']:active { 8303 background-color: var(--wui-color-error-glass-020); 8304 } 8305`,ne=function(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};let nt=class extends em{constructor(){super(...arguments),this.variant="fill",this.imageSrc=void 0,this.disabled=!1,this.icon="externalLink",this.href="",this.text=void 0}render(){let e="success"===this.variant||"transparent"===this.variant||"shadeSmall"===this.variant;return Q` 8306 <a 8307 rel="noreferrer" 8308 target="_blank" 8309 href=${this.href} 8310 class=${this.disabled?"disabled":""} 8311 data-variant=${this.variant} 8312 > 8313 ${this.imageTemplate()} 8314 <wui-text variant=${e?"small-600":"paragraph-600"} color="inherit"> 8315 ${this.title?this.title:r_.getHostName(this.href)} 8316 </wui-text> 8317 <wui-icon name=${this.icon} color="inherit" size="inherit"></wui-icon> 8318 </a> 8319 `}imageTemplate(){return this.imageSrc?Q`<wui-image src=${this.imageSrc}></wui-image>`:null}};nt.styles=[eS,eT,r7],ne([eD()],nt.prototype,"variant",void 0),ne([eD()],nt.prototype,"imageSrc",void 0),ne([eD({type:Boolean})],nt.prototype,"disabled",void 0),ne([eD()],nt.prototype,"icon",void 0),ne([eD()],nt.prototype,"href",void 0),ne([eD()],nt.prototype,"text",void 0),nt=ne([eR("wui-chip")],nt);var nr=h` 8320 :host { 8321 position: relative; 8322 display: block; 8323 } 8324 8325 button { 8326 background: var(--wui-color-accent-100); 8327 border: 1px solid var(--wui-color-gray-glass-010); 8328 border-radius: var(--wui-border-radius-m); 8329 gap: var(--wui-spacing-xs); 8330 } 8331 8332 button.loading { 8333 background: var(--wui-color-gray-glass-010); 8334 border: 1px solid var(--wui-color-gray-glass-010); 8335 pointer-events: none; 8336 } 8337 8338 button:disabled { 8339 background-color: var(--wui-color-gray-glass-015); 8340 border: 1px solid var(--wui-color-gray-glass-010); 8341 } 8342 8343 button:disabled > wui-text { 8344 color: var(--wui-color-gray-glass-015); 8345 } 8346 8347 @media (hover: hover) and (pointer: fine) { 8348 button:hover:enabled { 8349 background-color: var(--wui-color-accent-090); 8350 } 8351 8352 button:active:enabled { 8353 background-color: var(--wui-color-accent-080); 8354 } 8355 } 8356 8357 button:focus-visible { 8358 border: 1px solid var(--wui-color-gray-glass-010); 8359 background-color: var(--wui-color-accent-090);
8360 -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 8361 -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 8362 box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 8363 } 8364 8365 button[data-size='sm'] { 8366 padding: 6.75px 10px 7.25px; 8367 } 8368 8369 ::slotted(*) { 8370 transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); 8371 will-change: opacity; 8372 opacity: var(--local-opacity-100); 8373 } 8374 8375 button > wui-text { 8376 transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); 8377 will-change: opacity; 8378 opacity: var(--local-opacity-100); 8379 color: var(--wui-color-inverse-100); 8380 } 8381 8382 button[data-size='md'] { 8383 padding: 9px var(--wui-spacing-l) 9px var(--wui-spacing-l); 8384 } 8385 8386 button[data-size='md'] + wui-text { 8387 padding-left: var(--wui-spacing-3xs); 8388 } 8389 8390 @media (max-width: 500px) { 8391 button[data-size='md'] { 8392 height: 32px; 8393 padding: 5px 12px; 8394 } 8395 8396 button[data-size='md'] > wui-text > slot { 8397 font-size: 14px !important; 8398 } 8399 } 8400 8401 wui-loading-spinner { 8402 width: 14px; 8403 height: 14px; 8404 } 8405 8406 wui-loading-spinner::slotted(svg) { 8407 width: 10px !important; 8408 height: 10px !important; 8409 } 8410 8411 button[data-size='sm'] > wui-loading-spinner { 8412 width: 12px; 8413 height: 12px; 8414 } 8415`,nn=function(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};let ni=class extends em{constructor(){super(...arguments),this.size="md",this.loading=!1}render(){let e="md"===this.size?"paragraph-600":"small-600";return Q` 8416 <button data-size=${this.size} ?disabled=${this.loading} ontouchstart> 8417 ${this.loadingTemplate()} 8418 <wui-text variant=${e} color=${this.loading?"accent-100":"inherit"}> 8419 <slot></slot> 8420 </wui-text> 8421 </button> 8422 `}loadingTemplate(){return this.loading?Q`<wui-loading-spinner size=${this.size} color="accent-100"></wui-loading-spinner>`:null}};ni.styles=[eS,eT,nr],nn([eD()],ni.prototype,"size",void 0),nn([eD({type:Boolean})],ni.prototype,"loading",void 0),ni=nn([eR("wui-connect-button")],ni);var no=h` 8423 wui-flex { 8424 width: 100%; 8425 background-color: var(--wui-color-gray-glass-002); 8426 border-radius: var(--wui-border-radius-xs); 8427 } 8428`,na=function(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};let ns=class extends em{constructor(){super(...arguments),this.disabled=!1,this.label="",this.buttonLabel=""}render(){return Q` 8429 <wui-flex 8430 justifyContent="space-between" 8431 alignItems="center" 8432 .padding=${["1xs","2l","1xs","2l"]} 8433 > 8434 <wui-text variant="paragraph-500" color="fg-200">${this.label}</wui-text> 8435 <wui-chip-button size="sm" variant="shade" text=${this.buttonLabel} icon="chevronRight"> 8436 </wui-chip-button> 8437 </wui-flex> 8438 `}};ns.styles=[eS,eT,no],na([eD({type:Boolean})],ns.prototype,"disabled",void 0),na([eD()],ns.prototype,"label",void 0),na([eD()],ns.prototype,"buttonLabel",void 0),ns=na([eR("wui-cta-button")],ns);var nc=h` 8439 :host { 8440 display: block; 8441 padding: var(--wui-spacing-l) var(--wui-spacing-m); 8442 background-color: var(--wui-color-gray-glass-002); 8443 border-radius: var(--wui-border-radius-xs); 8444 width: 100%; 8445 } 8446`;let nl=class extends em{render(){return Q` 8447 <wui-flex gap="xl" flexDirection="column" justifyContent="space-between" alignItems="center"> 8448 <slot></slot> 8449 </wui-flex> 8450 `}};nl.styles=[eS,eT,nc],nl=function(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}([eR("wui-details-group")],nl);var nu=h` 8451 :host { 8452 display: flex; 8453 flex-direction: row; 8454 gap: var(--wui-spacing-l); 8455 width: 100%; 8456 border-radius: var(--wui-border-radius-xs); 8457 } 8458`,nd=function(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};let nh=class extends em{constructor(){super(...arguments),this.name=""}render(){return Q` 8459 <wui-flex justifyContent="space-between" alignItems="center"> 8460 <wui-text variant="paragraph-500" color="fg-200">${this.name}</wui-text> 8461 <wui-flex gap="xs" alignItems="center"> 8462 <slot></slot> 8463 </wui-flex> 8464 </wui-flex> 8465 `}};nh.styles=[eS,eT,nu],nd([eD()],nh.prototype,"name",void 0),nh=nd([eR("wui-details-group-item")],nh);var nf=h` 8466 :host { 8467 z-index: calc(var(--w3m-z-index) + 1); 8468 width: 200px; 8469 padding: var(--wui-spacing-3xs); 8470 align-items: center; 8471 display: inherit; 8472 border-radius: var(--wui-border-radius-xs); 8473 border: 1px solid var(--wui-color-gray-glass-002); 8474 background: var(--wui-color-fg-base-125); 8475 /* Dark/Elevation/L */ 8476 box-shadow: 8477 0px 8px 22px -6px rgba(0, 0, 0, 0.12), 8478 0px 14px 64px -4px rgba(0, 0, 0, 0.12); 8479 } 8480`,np=function(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};let ng=class extends em{constructor(){super(...arguments),this.actions=[],this.isOpen=!1}render(){return this.isOpen?Q` 8481 <wui-flex flexDirection="column" gap="4xs"> 8482 ${this.actions.map(e=>Q` 8483 <wui-list-item 8484 icon=${e.icon} 8485 iconSize="sm" 8486 variant="icon" 8487 @click=${e.onClick} 8488 > 8489 <wui-text variant="small-400" color="fg-100">${e.label}</wui-text> 8490 </wui-list-item> 8491 `)} 8492 </wui-flex> 8493 `:null}};ng.styles=[eS,eT,nf],np([eD({type:Array})],ng.prototype,"actions",void 0),np([eD({type:Boolean})],ng.prototype,"isOpen",void 0),ng=np([eR("wui-dropdown-menu")],ng);/** 8494 * @license 8495 * Copyright 2020 Google LLC 8496 * SPDX-License-Identifier: BSD-3-Clause 8497 */let{I:nm}={M:N,P:M,A:D,C:1,L:ei,R:es,D:z,V:ea,I:ec,H:el,N:ed,U:eh,B:eu,F:ef},nw=e=>void 0===e.strings,nb=(e,t)=>
8497{let r=e._$AN;if(void 0===r)return!1;for(let e of r)e._$AO?.(t,!1),nb(e,t);return!0},nv=e=>{let t,r;do{if(void 0===(t=e._$AM))break;(r=t._$AN).delete(e),e=t}while(0===r?.size)},ny=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(void 0===r)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),nA(t)}};function nC(e){void 0!==this._$AN?(nv(this),this._$AM=e,ny(this)):this._$AM=e}function nx(e,t=!1,r=0){let n=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size){if(t){if(Array.isArray(n))for(let e=r;e<n.length;e++)nb(n[e],!1),nv(n[e]);else null!=n&&(nb(n,!1),nv(n))}else nb(this,e)}}let nA=e=>{2==e.type&&(e._$AP??=nx,e._$AQ??=nC)};class nE extends t7{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),ny(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(nb(this,e),nv(this))}setValue(e){if(nw(this.t))this.t._$AI(e,this);else{let t=[...this.t._$AH];t[this.i]=e,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}}/** 8498 * @license 8499 * Copyright 2020 Google LLC 8500 * SPDX-License-Identifier: BSD-3-Clause 8501 */let nk=()=>new n_;class n_{}let nS=new WeakMap,nT=t9(class extends nE{render(e){return ee}update(e,[t]){let r=t!==this.Y;return r&&void 0!==this.Y&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),ee}rt(e){if(this.isConnected||(e=void 0),"function"==typeof this.Y){let t=this.ht??globalThis,r=nS.get(t);void 0===r&&(r=new WeakMap,nS.set(t,r)),void 0!==r.get(this.Y)&&this.Y.call(this.ht,void 0),r.set(this.Y,e),void 0!==e&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){return"function"==typeof this.Y?nS.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var nI=h` 8502 :host { 8503 position: relative; 8504 width: 100%; 8505 display: inline-block; 8506 color: var(--wui-color-fg-275); 8507 } 8508 8509 input { 8510 width: 100%; 8511 border-radius: var(--wui-border-radius-xs); 8512 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); 8513 background: var(--wui-color-gray-glass-002); 8514 font-size: var(--wui-font-size-paragraph); 8515 letter-spacing: var(--wui-letter-spacing-paragraph); 8516 color: var(--wui-color-fg-100); 8517 transition: 8518 background-color var(--wui-ease-inout-power-1) var(--wui-duration-md), 8519 border-color var(--wui-ease-inout-power-1) var(--wui-duration-md), 8520 box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md); 8521 will-change: background-color, border-color, box-shadow; 8522 caret-color: var(--wui-color-accent-100); 8523 } 8524 8525 input:disabled { 8526 cursor: not-allowed; 8527 border: 1px solid var(--wui-color-gray-glass-010); 8528 } 8529 8530 input:disabled::placeholder, 8531 input:disabled + wui-icon { 8532 color: var(--wui-color-fg-300); 8533 } 8534 8535 input::placeholder { 8536 color: var(--wui-color-fg-275); 8537 } 8538 8539 input:focus:enabled { 8540 background-color: var(--wui-color-gray-glass-005); 8541 -webkit-box-shadow: 8542 inset 0 0 0 1px var(--wui-color-accent-100), 8543 0px 0px 0px 4px var(--wui-box-shadow-blue); 8544 -moz-box-shadow: 8545 inset 0 0 0 1px var(--wui-color-accent-100), 8546 0px 0px 0px 4px var(--wui-box-shadow-blue); 8547 box-shadow: 8548 inset 0 0 0 1px var(--wui-color-accent-100), 8549 0px 0px 0px 4px var(--wui-box-shadow-blue); 8550 } 8551 8552 input:hover:enabled { 8553 background-color: var(--wui-color-gray-glass-005); 8554 } 8555 8556 wui-icon { 8557 position: absolute; 8558 top: 50%; 8559 transform: translateY(-50%); 8560 pointer-events: none; 8561 } 8562 8563 .wui-size-sm { 8564 padding: 9px var(--wui-spacing-m) 10px var(--wui-spacing-s); 8565 } 8566 8567 wui-icon + .wui-size-sm { 8568 padding: 9px var(--wui-spacing-m) 10px 36px; 8569 } 8570 8571 wui-icon[data-input='sm'] { 8572 left: var(--wui-spacing-s); 8573 } 8574 8575 .wui-size-md { 8576 padding: 15px var(--wui-spacing-m) var(--wui-spacing-l) var(--wui-spacing-m); 8577 } 8578 8579 wui-icon + .wui-size-md, 8580 wui-loading-spinner + .wui-size-md { 8581 padding: 10.5px var(--wui-spacing-3xl) 10.5px var(--wui-spacing-3xl); 8582 } 8583 8584 wui-icon[data-input='md'] { 8585 left: var(--wui-spacing-l); 8586 } 8587 8588 .wui-size-lg { 8589 padding: var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-l); 8590 letter-spacing: var(--wui-letter-spacing-medium-title); 8591 font-size: var(--wui-font-size-medium-title); 8592 font-weight: var(--wui-font-weight-light); 8593 line-height: 130%; 8594 color: var(--wui-color-fg-100); 8595 height: 64px; 8596 } 8597 8598 .wui-padding-right-xs { 8599 padding-right: var(--wui-spacing-xs); 8600 } 8601 8602 .wui-padding-right-s { 8603 padding-right: var(--wui-spacing-s); 8604 } 8605 8606 .wui-padding-right-m { 8607 padding-right: var(--wui-spacing-m); 8608 } 8609 8610 .wui-padding-right-l { 8611 padding-right: var(--wui-spacing-l); 8612 } 8613 8614 .wui-padding-right-xl { 8615 padding-right: var(--wui-spacing-xl); 8616 } 8617 8618 .wui-padding-right-2xl { 8619 padding-right: var(--wui-spacing-2xl); 8620 } 8621 8622 .wui-padding-right-3xl { 8623 padding-right: var(--wui-spacing-3xl); 8624 } 8625 8626 .wui-padding-right-4xl { 8627 padding-right: var(--wui-spacing-4xl); 8628 } 8629 8630 .wui-padding-right-5xl { 8631 padding-right: var(--wui-spacing-5xl); 8632 } 8633 8634 wui-icon + .wui-size-lg, 8635 wui-loading-spinner + .wui-size-lg { 8636 padding-left: 50px; 8637 } 8638 8639 wui-icon[data-input='lg'] { 8640 left: var(--wui-spacing-l); 8641 } 8642 8643 .wui-size-mdl { 8644 padding: 17.25px var(--wui-spacing-m) 17.25px var(--wui-spacing-m); 8645 } 8646 wui-icon + .wui-size-mdl, 8647 wui-loading-spinner + .wui-size-mdl { 8648 padding: 17.25px var(--wui-spacing-3xl) 17.25px 40px; 8649 } 8650 wui-icon[data-input='mdl'] { 8651 left: var(--wui-spacing-m); 8652 } 8653 8654 input:placeholder-shown ~ ::slotted(wui-input-element), 8655 input:placeholder-shown ~ ::slotted(wui-icon) { 8656 opacity: 0; 8657 pointer-events: none; 8658 } 8659 8660 input::-webkit-outer-spin-button, 8661 input::-webkit-inner-spin-button { 8662 -webkit-appearance: none; 8663 margin: 0; 8664 } 8665 8666 input[type='number'] { 8667 -moz-appearance: textfield; 8668 } 8669 8670 ::slotted(wui-input-element), 8671 ::slotted(wui-icon) { 8672 position: absolute; 8673 top: 50%; 8674 transform: translateY(-50%); 8675 } 8676 8677 ::slotted(wui-input-element) { 8678 right: var(--wui-spacing-m); 8679 } 8680 8681 ::slotted(wui-icon) { 8682 right: 0px; 8683 } 8684`,nR=function(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};let nO=class extends em{constructor(){super(...arguments),this.inputElementRef=nk(),this.size="md",this.disabled=!1,this.placeholder="",this.type="text",this.value=""}render(){let e=`wui-padding-right-${this.inputRightPadding}`,t={[`wui-size-${this.size}`]:!0,[e]:!!this.inputRightPadding};return Q`${this.templateIcon()} 8685 <input 8686 data-testid="wui-input-text" 8687 ${nT(this.inputElementRef)} 8688 class=${re(t)} 8689 type=${this.type} 8690 enterkeyhint=${rk(this.enterKeyHint)} 8691 ?disabled=${this.disabled} 8692 placeholder=${this.placeholder}
8693 @input=${this.dispatchInputChangeEvent.bind(this)} 8694 .value=${this.value||""} 8695 /> 8696 <slot></slot>`}templateIcon(){return this.icon?Q`<wui-icon 8697 data-input=${this.size} 8698 size=${this.size} 8699 color="inherit" 8700 name=${this.icon} 8701 ></wui-icon>`:null}dispatchInputChangeEvent(){this.dispatchEvent(new CustomEvent("inputChange",{detail:this.inputElementRef.value?.value,bubbles:!0,composed:!0}))}};nO.styles=[eS,eT,nI],nR([eD()],nO.prototype,"size",void 0),nR([eD()],nO.prototype,"icon",void 0),nR([eD({type:Boolean})],nO.prototype,"disabled",void 0),nR([eD()],nO.prototype,"placeholder",void 0),nR([eD()],nO.prototype,"type",void 0),nR([eD()],nO.prototype,"keyHint",void 0),nR([eD()],nO.prototype,"value",void 0),nR([eD()],nO.prototype,"inputRightPadding",void 0),nO=nR([eR("wui-input-text")],nO);var nP=h` 8702 :host { 8703 position: relative; 8704 display: inline-block; 8705 } 8706 8707 wui-text { 8708 margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m); 8709 } 8710`,nN=function(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};let nM=class extends em{constructor(){super(...arguments),this.disabled=!1}render(){return Q` 8711 <wui-input-text 8712 placeholder="Email" 8713 icon="mail" 8714 size="mdl" 8715 .disabled=${this.disabled} 8716 .value=${this.value} 8717 data-testid="wui-email-input" 8718 ></wui-input-text> 8719 ${this.templateError()} 8720 `}templateError(){return this.errorMessage?Q`<wui-text variant="tiny-500" color="error-100">${this.errorMessage}</wui-text>`:null}};nM.styles=[eS,nP],nN([eD()],nM.prototype,"errorMessage",void 0),nN([eD({type:Boolean})],nM.prototype,"disabled",void 0),nN([eD()],nM.prototype,"value",void 0),nM=nN([eR("wui-email-input")],nM);var nD=h` 8721 :host { 8722 position: relative; 8723 width: 100%; 8724 display: inline-block; 8725 color: var(--wui-color-fg-275); 8726 } 8727 8728 .error { 8729 margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m); 8730 } 8731 8732 .base-name { 8733 position: absolute; 8734 right: 45px; 8735 top: 15px; 8736 text-align: right; 8737 } 8738`,nB=function(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};let n$=class extends em{constructor(){super(...arguments),this.disabled=!1,this.loading=!1}render(){return Q` 8739 <wui-input-text 8740 value=${rk(this.value)} 8741 ?disabled=${this.disabled} 8742 .value=${this.value||""} 8743 data-testId="wui-ens-input" 8744 inputRightPadding="5xl" 8745 > 8746 ${this.baseNameTemplate()} ${this.errorTemplate()}${this.loadingTemplate()} 8747 </wui-input-text> 8748 `}baseNameTemplate(){return Q`<wui-text variant="paragraph-400" color="fg-200" class="base-name"> 8749 ${ex.bq.WC_NAME_SUFFIX} 8750 </wui-text>`}loadingTemplate(){return this.loading?Q`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`:null}errorTemplate(){return this.errorMessage?Q`<wui-text variant="tiny-500" color="error-100" class="error" 8751 >${this.errorMessage}</wui-text 8752 >`:null}};n$.styles=[eS,nD],nB([eD()],n$.prototype,"errorMessage",void 0),nB([eD({type:Boolean})],n$.prototype,"disabled",void 0),nB([eD()],n$.prototype,"value",void 0),nB([eD({type:Boolean})],n$.prototype,"loading",void 0),n$=nB([eR("wui-ens-input")],n$);var nU=h` 8753 button { 8754 border-radius: var(--local-border-radius); 8755 color: var(--wui-color-fg-100); 8756 padding: var(--local-padding); 8757 } 8758 8759 @media (max-width: 700px) { 8760 button { 8761 padding: var(--wui-spacing-s); 8762 } 8763 } 8764 8765 button > wui-icon { 8766 pointer-events: none; 8767 } 8768 8769 button:disabled > wui-icon { 8770 color: var(--wui-color-bg-300) !important; 8771 } 8772 8773 button:disabled { 8774 background-color: transparent; 8775 } 8776`,nL=function(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};let nj=class extends em{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.icon="copy",this.iconColor="inherit"}
8776render(){let e="lg"===this.size?"--wui-border-radius-xs":"--wui-border-radius-xxs",t="lg"===this.size?"--wui-spacing-1xs":"--wui-spacing-2xs";return this.style.cssText=` 8777 --local-border-radius: var(${e}); 8778 --local-padding: var(${t}); 8779`,Q` 8780 <button ?disabled=${this.disabled} ontouchstart> 8781 <wui-icon color=${this.iconColor} size=${this.size} name=${this.icon}></wui-icon> 8782 </button> 8783 `}};nj.styles=[eS,eT,eI,nU],nL([eD()],nj.prototype,"size",void 0),nL([eD({type:Boolean})],nj.prototype,"disabled",void 0),nL([eD()],nj.prototype,"icon",void 0),nL([eD()],nj.prototype,"iconColor",void 0),nj=nL([eR("wui-icon-link")],nj);var nz=h` 8784 button { 8785 background-color: var(--wui-color-fg-300); 8786 border-radius: var(--wui-border-radius-4xs); 8787 width: 16px; 8788 height: 16px; 8789 } 8790 8791 button:disabled { 8792 background-color: var(--wui-color-bg-300); 8793 } 8794 8795 wui-icon { 8796 color: var(--wui-color-bg-200) !important; 8797 } 8798 8799 button:focus-visible { 8800 background-color: var(--wui-color-fg-250); 8801 border: 1px solid var(--wui-color-accent-100); 8802 } 8803 8804 @media (hover: hover) and (pointer: fine) { 8805 button:hover:enabled { 8806 background-color: var(--wui-color-fg-250); 8807 } 8808 8809 button:active:enabled { 8810 background-color: var(--wui-color-fg-225); 8811 } 8812 } 8813`,nF=function(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};let nH=class extends em{constructor(){super(...arguments),this.icon="copy"}render(){return Q` 8814 <button> 8815 <wui-icon color="inherit" size="xxs" name=${this.icon}></wui-icon> 8816 </button> 8817 `}};nH.styles=[eS,eT,nz],nF([eD()],nH.prototype,"icon",void 0),nH=nF([eR("wui-input-element")],nH);var nq=h` 8818 :host { 8819 position: relative; 8820 display: inline-block; 8821 } 8822 8823 input { 8824 width: 50px; 8825 height: 50px; 8826 background: var(--wui-color-gray-glass-010); 8827 border-radius: var(--wui-border-radius-xs); 8828 border: 1px solid var(--wui-color-gray-glass-005); 8829 font-family: var(--wui-font-family); 8830 font-size: var(--wui-font-size-large); 8831 font-weight: var(--wui-font-weight-regular); 8832 letter-spacing: var(--wui-letter-spacing-large); 8833 text-align: center; 8834 color: var(--wui-color-fg-100); 8835 caret-color: var(--wui-color-accent-100); 8836 transition: 8837 background-color var(--wui-ease-inout-power-1) var(--wui-duration-md), 8838 border-color var(--wui-ease-inout-power-1) var(--wui-duration-md), 8839 box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md); 8840 will-change: background-color, border-color, box-shadow; 8841 box-sizing: border-box; 8842 -webkit-appearance: none; 8843 -moz-appearance: textfield; 8844 padding: 0px; 8845 } 8846 8847 input::-webkit-outer-spin-button, 8848 input::-webkit-inner-spin-button { 8849 -webkit-appearance: none; 8850 margin: 0; 8851 } 8852 8853 input[type='number'] { 8854 -moz-appearance: textfield; 8855 } 8856 8857 input:disabled { 8858 cursor: not-allowed; 8859 border: 1px solid var(--wui-color-gray-glass-010); 8860 background: var(--wui-color-gray-glass-005); 8861 } 8862 8863 input:focus:enabled { 8864 background-color: var(--wui-color-gray-glass-015); 8865 border: 1px solid var(--wui-color-accent-100); 8866 -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 8867 -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 8868 box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 8869 } 8870 8871 @media (hover: hover) and (pointer: fine) { 8872 input:hover:enabled { 8873 background-color: var(--wui-color-gray-glass-015); 8874 } 8875 } 8876`,nW=function(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};let nV=class extends em{constructor(){super(...arguments),this.disabled=!1,this.value=""}render(){return Q`<input 8877 type="number" 8878 maxlength="1" 8879 inputmode="numeric" 8880 autofocus 8881 ?disabled=${this.disabled} 8882 value=${this.value} 8883 /> `}};nV.styles=[eS,eT,nq],nW([eD({type:Boolean})],nV.prototype,"disabled",void 0),nW([eD({type:String})],nV.prototype,"value",void 0),nV=nW([eR("wui-input-numeric")],nV);var nZ=h` 8884 button { 8885 padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs); 8886 border-radius: var(--wui-border-radius-3xs); 8887 background-color: transparent; 8888 color: var(--wui-color-accent-100); 8889 } 8890 8891 button:disabled { 8892 background-color: transparent; 8893 color: var(--wui-color-gray-glass-015); 8894 } 8895 8896 button:hover { 8897 background-color: var(--wui-color-gray-glass-005); 8898 } 8899`,nG=function(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};let nK=class extends em{constructor(){super(...arguments),this.disabled=!1,this.color="inherit"}render(){return Q` 8900 <button ?disabled=${this.disabled} ontouchstart> 8901 <slot name="iconLeft"></slot> 8902 <wui-text variant="small-600" color=${this.color}> 8903 <slot></slot> 8904 </wui-text> 8905 <slot name="iconRight"></slot> 8906 </button> 8907 `}};nK.styles=[eS,eT,nZ],nG([eD({type:Boolean})],nK.prototype,"disabled",void 0),nG([eD()],nK.prototype,"color",void 0),nK=nG([eR("wui-link")],nK);var nY=h` 8908 button { 8909 column-gap: var(--wui-spacing-s); 8910 padding: 11px 18px 11px var(--wui-spacing-s); 8911 width: 100%; 8912 background-color: var(--wui-color-gray-glass-002); 8913 border-radius: var(--wui-border-radius-xs); 8914 color: var(--wui-color-fg-250); 8915 transition: 8916 color var(--wui-ease-out-power-1) var(--wui-duration-md), 8917 background-color var(--wui-ease-out-power-1) var(--wui-duration-md); 8918 will-change: color, background-color; 8919 } 8920 8921 button[data-iconvariant='square'], 8922 button[data-iconvariant='square-blue'] { 8923 padding: 6px 18px 6px 9px; 8924 } 8925 8926 button > wui-flex { 8927 flex: 1; 8928 } 8929 8930 button > wui-image { 8931 width: 32px; 8932 height: 32px; 8933 box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); 8934 border-radius: var(--wui-border-radius-3xl); 8935 } 8936 8937 button > wui-icon { 8938 width: 36px; 8939 height: 36px; 8940 transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); 8941 will-change: opacity; 8942 } 8943 8944 button > wui-icon-box[data-variant='blue'] { 8945 box-shadow: 0 0 0 2px var(--wui-color-accent-glass-005); 8946 } 8947 8948 button > wui-icon-box[data-variant='overlay'] { 8949 box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); 8950 } 8951 8952 button > wui-icon-box[data-variant='square-blue'] { 8953 border-radius: var(--wui-border-radius-3xs); 8954 position: relative; 8955 border: none; 8956 width: 36px; 8957 height: 36px; 8958 } 8959 8960 button > wui-icon-box[data-variant='square-blue']::after { 8961 content: ''; 8962 position: absolute; 8963 top: 0; 8964 bottom: 0; 8965 left: 0; 8966 right: 0; 8967 border-radius: inherit; 8968 border: 1px solid var(--wui-color-accent-glass-010); 8969 pointer-events: none; 8970 } 8971 8972 button > wui-icon:last-child { 8973 width: 14px; 8974 height: 14px; 8975 } 8976 8977 button:disabled { 8978 color: var(--wui-color-gray-glass-020); 8979 } 8980 8981 button[data-loading='true'] > wui-icon { 8982 opacity: 0; 8983 } 8984 8985 wui-loading-spinner { 8986 position: absolute; 8987 right: 18px; 8988 top: 50%; 8989 transform: translateY(-50%); 8990 } 8991`,nQ=function(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};let nJ=class extends em{constructor(){super(...arguments),this.variant="icon",this.disabled=!1,this.imageSrc=void 0,this.alt=void 0,this.chevron=!1,this.loading=!1}render(){return Q` 8992 <button 8993 ?disabled=${!!this.loading||!!this.disabled} 8994 data-loading=${this.loading} 8995 data-iconvariant=${rk(this.iconVariant)} 8996 ontouchstart 8997 > 8998 ${this.loadingTemplate()} ${this.visualTemplate()} 8999 <wui-flex gap="3xs"> 9000 <slot></slot> 9001 </wui-flex> 9002 ${this.chevronTemplate()} 9003 </button> 9004 `}visualTemplate(){if("image"===this.variant&&this.imageSrc)return Q`<wui-image src=${this.imageSrc} alt=${this.alt??"list item"}></wui-image>`;if("square"===this.iconVariant&&this.icon&&"icon"===this.variant)return Q`<wui-icon name=${this.icon}></wui-icon>`;if("icon"===this.variant&&this.icon&&this.iconVariant){let e=["blue","square-blue"].includes(this.iconVariant)?"accent-100":"fg-200",t="square-blue"===this.iconVariant?"mdl":"md",r=this.iconSize?this.iconSize:t;return Q` 9005 <wui-icon-box 9006 data-variant=${this.iconVariant} 9007 icon=${this.icon} 9008 iconSize=${r} 9009 background="transparent" 9010 iconColor=${e} 9011 backgroundColor=${e} 9012 size=${t} 9013 ></wui-icon-box> 9014 `}return null}loadingTemplate(){return this.loading?Q`<wui-loading-spinner color="fg-300"></wui-loading-spinner>`:Q``}chevronTemplate(){return this.chevron?Q`<wui-icon size="inherit" color="fg-200" name="chevronRight"></wui-icon>`:null}};nJ.styles=[eS,eT,nY],nQ([eD()],nJ.prototype,"icon",void 0),nQ([eD()],nJ.prototype,"iconSize",void 0),nQ([eD()],nJ.prototype,"variant",void 0),nQ([eD()],nJ.prototype,"iconVariant",void 0),nQ([eD({type:Boolean})],nJ.prototype,"disabled",void 0),nQ([eD()],nJ.prototype,"imageSrc",void 0),nQ([eD()],nJ.prototype,"alt",void 0),nQ([eD({type:Boolean})],nJ.prototype,"chevron",void 0),nQ([eD({type:Boolean})],nJ.prototype,"loading",void 0),nJ=nQ([eR("wui-list-item")],nJ),(ey=eC||(eC={})).approve="approved",ey.bought="bought",ey.borrow="borrowed",ey.burn="burnt",ey.cancel="canceled",ey.claim="claimed",ey.deploy="deployed",ey.deposit="deposited",ey.execute="executed",ey.mint="minted",ey.receive="received",ey.repay="repaid",ey.send="sent",ey.sell="sold",ey.stake="staked",ey.trade="swapped",ey.unstake="unstaked",ey.withdraw="withdrawn";var nX=h` 9015 :host > wui-flex { 9016 display: flex; 9017 justify-content: center;
9018 align-items: center; 9019 position: relative; 9020 width: 40px; 9021 height: 40px; 9022 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 9023 background-color: var(--wui-color-gray-glass-005); 9024 } 9025 9026 :host > wui-flex wui-image { 9027 display: block; 9028 } 9029 9030 :host > wui-flex, 9031 :host > wui-flex wui-image, 9032 .swap-images-container, 9033 .swap-images-container.nft, 9034 wui-image.nft { 9035 border-top-left-radius: var(--local-left-border-radius); 9036 border-top-right-radius: var(--local-right-border-radius); 9037 border-bottom-left-radius: var(--local-left-border-radius); 9038 border-bottom-right-radius: var(--local-right-border-radius); 9039 } 9040 9041 wui-icon { 9042 width: 20px; 9043 height: 20px; 9044 } 9045 9046 wui-icon-box { 9047 position: absolute; 9048 right: 0; 9049 bottom: 0; 9050 transform: translate(20%, 20%); 9051 } 9052 9053 .swap-images-container { 9054 position: relative; 9055 width: 40px; 9056 height: 40px; 9057 overflow: hidden; 9058 } 9059 9060 .swap-images-container wui-image:first-child { 9061 position: absolute; 9062 width: 40px; 9063 height: 40px; 9064 top: 0; 9065 left: 0%; 9066 clip-path: inset(0px calc(50% + 2px) 0px 0%); 9067 } 9068 9069 .swap-images-container wui-image:last-child { 9070 clip-path: inset(0px 0px 0px calc(50% + 2px)); 9071 } 9072`,n0=function(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};let n1=class extends em{constructor(){super(...arguments),this.images=[],this.secondImage={type:void 0,url:""}}render(){let[e,t]=this.images,r=e?.type==="NFT",n=t?.url?"NFT"===t.type:r;return this.style.cssText=` 9073 --local-left-border-radius: ${r?"var(--wui-border-radius-xxs)":"var(--wui-border-radius-s)"}; 9074 --local-right-border-radius: ${n?"var(--wui-border-radius-xxs)":"var(--wui-border-radius-s)"}; 9075 `,Q`<wui-flex> ${this.templateVisual()} ${this.templateIcon()} </wui-flex>`}templateVisual(){let[e,t]=this.images,r=e?.type;return 2===this.images.length&&(e?.url||t?.url)?Q`<div class="swap-images-container"> 9076 ${e?.url?Q`<wui-image src=${e.url} alt="Transaction image"></wui-image>`:null} 9077 ${t?.url?Q`<wui-image src=${t.url} alt="Transaction image"></wui-image>`:null} 9078 </div>`:e?.url?Q`<wui-image src=${e.url} alt="Transaction image"></wui-image>`:"NFT"===r?Q`<wui-icon size="inherit" color="fg-200" name="nftPlaceholder"></wui-icon>`:Q`<wui-icon size="inherit" color="fg-200" name="coinPlaceholder"></wui-icon>`}templateIcon(){let e,t="accent-100";return(e=this.getIcon(),this.status&&(t=this.getStatusColor()),e)?Q` 9079 <wui-icon-box 9080 size="xxs" 9081 iconColor=${t} 9082 backgroundColor=${t} 9083 background="opaque" 9084 icon=${e} 9085 ?border=${!0} 9086 borderColor="wui-color-bg-125" 9087 ></wui-icon-box> 9088 `:null}getDirectionIcon(){switch(this.direction){case"in":return"arrowBottom";case"out":return"arrowTop";default:return}}getIcon(){return this.onlyDirectionIcon?this.getDirectionIcon():"trade"===this.type?"swapHorizontalBold":"approve"===this.type?"checkmark":"cancel"===this.type?"close":this.getDirectionIcon()}getStatusColor(){switch(this.status){case"confirmed":return"success-100";case"failed":return"error-100";case"pending":return"inverse-100";default:return"accent-100"}}};n1.styles=[nX],n0([eD()],n1.prototype,"type",void 0),n0([eD()],n1.prototype,"status",void 0),n0([eD()],n1.prototype,"direction",void 0),n0([eD({type:Boolean})],n1.prototype,"onlyDirectionIcon",void 0),n0([eD({type:Array})],n1.prototype,"images",void 0),n0([eD({type:Object})],n1.prototype,"secondImage",void 0),n1=n0([eR("wui-transaction-visual")],n1);var n2=h` 9089 :host > wui-flex:first-child { 9090 align-items: center; 9091 column-gap: var(--wui-spacing-s); 9092 padding: 6.5px var(--wui-spacing-xs) 6.5px var(--wui-spacing-xs); 9093 width: 100%; 9094 } 9095 9096 :host > wui-flex:first-child wui-text:nth-child(1) { 9097 text-transform: capitalize; 9098 } 9099 9100 wui-transaction-visual { 9101 width: 40px; 9102 height: 40px; 9103 } 9104 9105 wui-flex { 9106 flex: 1; 9107 } 9108 9109 :host wui-flex wui-flex { 9110 overflow: hidden; 9111 } 9112 9113 :host .description-container wui-text span { 9114 word-break: break-all; 9115 } 9116 9117 :host .description-container wui-text { 9118 overflow: hidden; 9119 } 9120 9121 :host .description-separator-icon { 9122 margin: 0px 6px; 9123 } 9124 9125 :host wui-text > span { 9126 overflow: hidden; 9127 display: -webkit-box; 9128 -webkit-box-orient: vertical; 9129 -webkit-line-clamp: 1; 9130 } 9131`,n3=function(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};let n5=class extends em{constructor(){super(...arguments),this.type="approve",this.onlyDirectionIcon=!1,this.images=[],this.price=[],this.amount=[],this.symbol=[]}render(){return Q` 9132 <wui-flex> 9133 <wui-transaction-visual 9134 .status=${this.status} 9135 direction=${rk(this.direction)} 9136 type=${this.type} 9137 onlyDirectionIcon=${rk(this.onlyDirectionIcon)} 9138 .images=${this.images} 9139 ></wui-transaction-visual> 9140 <wui-flex flexDirection="column" gap="3xs"> 9141 <wui-text variant="paragraph-600" color="fg-100"> 9142 ${eC[this.type]||this.type} 9143 </wui-text> 9144 <wui-flex class="description-container"> 9145 ${this.templateDescription()} ${this.templateSecondDescription()} 9146 </wui-flex> 9147 </wui-flex> 9148 <wui-text variant="micro-700" color="fg-300"><span>${this.date}</span></wui-text> 9149 </wui-flex> 9150 `}templateDescription(){let e=this.descriptions?.[0];return e?Q` 9151 <wui-text variant="small-500" color="fg-200">
9152 <span>${e}</span> 9153 </wui-text> 9154 `:null}templateSecondDescription(){let e=this.descriptions?.[1];return e?Q` 9155 <wui-icon class="description-separator-icon" size="xxs" name="arrowRight"></wui-icon> 9156 <wui-text variant="small-400" color="fg-200"> 9157 <span>${e}</span> 9158 </wui-text> 9159 `:null}};n5.styles=[eS,n2],n3([eD()],n5.prototype,"type",void 0),n3([eD({type:Array})],n5.prototype,"descriptions",void 0),n3([eD()],n5.prototype,"date",void 0),n3([eD({type:Boolean})],n5.prototype,"onlyDirectionIcon",void 0),n3([eD()],n5.prototype,"status",void 0),n3([eD()],n5.prototype,"direction",void 0),n3([eD({type:Array})],n5.prototype,"images",void 0),n3([eD({type:Array})],n5.prototype,"price",void 0),n3([eD({type:Array})],n5.prototype,"amount",void 0),n3([eD({type:Array})],n5.prototype,"symbol",void 0),n5=n3([eR("wui-transaction-list-item")],n5);var n4=h` 9160 :host > wui-flex:first-child { 9161 column-gap: var(--wui-spacing-s); 9162 padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs); 9163 width: 100%; 9164 } 9165 9166 wui-flex { 9167 display: flex; 9168 flex: 1; 9169 } 9170`;let n6=class extends em{render(){return Q` 9171 <wui-flex alignItems="center"> 9172 <wui-shimmer width="40px" height="40px"></wui-shimmer> 9173 <wui-flex flexDirection="column" gap="2xs"> 9174 <wui-shimmer width="72px" height="16px" borderRadius="4xs"></wui-shimmer> 9175 <wui-shimmer width="148px" height="14px" borderRadius="4xs"></wui-shimmer> 9176 </wui-flex> 9177 <wui-shimmer width="24px" height="12px" borderRadius="5xs"></wui-shimmer> 9178 </wui-flex> 9179 `}};n6.styles=[eS,n4],n6=function(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}([eR("wui-transaction-list-item-loader")],n6);var n8=h` 9180 :host { 9181 display: flex; 9182 justify-content: center; 9183 align-items: center; 9184 height: var(--wui-spacing-m); 9185 padding: 0 var(--wui-spacing-3xs) !important; 9186 border-radius: var(--wui-border-radius-5xs); 9187 } 9188 9189 :host > wui-text { 9190 transform: translateY(5%); 9191 } 9192 9193 :host([data-variant='main']) { 9194 background-color: var(--wui-color-accent-glass-015); 9195 color: var(--wui-color-accent-100); 9196 } 9197 9198 :host([data-variant='shade']) { 9199 background-color: var(--wui-color-gray-glass-010); 9200 color: var(--wui-color-fg-200); 9201 } 9202 9203 :host([data-variant='success']) { 9204 background-color: var(--wui-icon-box-bg-success-100); 9205 color: var(--wui-color-success-100); 9206 } 9207 9208 :host([data-variant='error']) { 9209 background-color: var(--wui-icon-box-bg-error-100); 9210 color: var(--wui-color-error-100); 9211 } 9212 9213 :host([data-size='lg']) { 9214 padding: 11px 5px !important; 9215 } 9216 9217 :host([data-size='lg']) > wui-text { 9218 transform: translateY(2%); 9219 } 9220`,n9=function(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};let n7=class extends em{constructor(){super(...arguments),this.variant="main",this.size="lg"}render(){this.dataset.variant=this.variant,this.dataset.size=this.size;let e="md"===this.size?"mini-700":"micro-700";return Q` 9221 <wui-text data-variant=${this.variant} variant=${e} color="inherit"> 9222 <slot></slot> 9223 </wui-text> 9224 `}};n7.styles=[eS,n8],n9([eD()],n7.prototype,"variant",void 0),n9([eD()],n7.prototype,"size",void 0),n7=n9([eR("wui-tag")],n7);var ie=h` 9225 button { 9226 column-gap: var(--wui-spacing-s); 9227 padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs); 9228 width: 100%; 9229 background-color: var(--wui-color-gray-glass-002); 9230 border-radius: var(--wui-border-radius-xs); 9231 color: var(--wui-color-fg-100); 9232 } 9233 9234 button > wui-text:nth-child(2) { 9235 display: flex; 9236 flex: 1; 9237 } 9238 9239 button:disabled { 9240 background-color: var(--wui-color-gray-glass-015); 9241 color: var(--wui-color-gray-glass-015); 9242 } 9243 9244 button:disabled > wui-tag { 9245 background-color: var(--wui-color-gray-glass-010); 9246 color: var(--wui-color-fg-300); 9247 } 9248 9249 wui-icon { 9250 color: var(--wui-color-fg-200) !important; 9251 } 9252`,it=function(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};let ir=class extends em{constructor(){super(...arguments),this.walletImages=[],this.imageSrc="",this.name="",this.installed=!1,this.disabled=!1,this.showAllWallets=!1}render(){return Q` 9253 <button ?disabled=${this.disabled} ontouchstart> 9254 ${this.templateAllWallets()} ${this.templateWalletImage()} 9255 <wui-text variant="paragraph-500" color="inherit">${this.name}</wui-text> 9256 ${this.templateStatus()} 9257 </button> 9258 `}templateAllWallets(){return this.showAllWallets&&this.imageSrc?Q` <wui-all-wallets-image .imageeSrc=${this.imageSrc}> </wui-all-wallets-image> `:this.showAllWallets&&this.walletIcon?Q` <wui-wallet-image .walletIcon=${this.walletIcon} size="sm"> </wui-wallet-image> `:null}templateWalletImage(){return!this.showAllWallets&&this.imageSrc?Q`<wui-wallet-image 9259 size="sm" 9260 imageSrc=${this.imageSrc} 9261 name=${this.name} 9262 .installed=${this.installed} 9263 ></wui-wallet-image>`:this.showAllWallets||this.imageSrc?null:Q`<wui-wallet-image size="sm" name=${this.name}></wui-wallet-image>`}templateStatus(){return this.tagLabel&&this.tagVariant?Q`<wui-tag variant=${this.tagVariant}>${this.tagLabel}</wui-tag>`:this.icon?Q`<wui-icon color="inherit" size="sm" name=${this.icon}></wui-icon>`:null}};ir.styles=[eS,eT,ie],it([eD({type:Array})],ir.prototype,"walletImages",void 0),it([eD()],ir.prototype,"imageSrc",void 0),it([eD()],ir.prototype,"name",void 0),it([eD()],ir.prototype,"tagLabel",void 0),it([eD()],ir.prototype,"tagVariant",void 0),it([eD()],ir.prototype,"icon",void 0),it([eD()],ir.prototype,"walletIcon",void 0),it([eD({type:Boolean})],ir.prototype,"installed",void 0),it([eD({type:Boolean})],ir.prototype,"disabled",void 0),it([eD({type:Boolean})],ir.prototype,"showAllWallets",void 0),ir=it([eR("wui-list-wallet")],ir);var ii=h` 9264 :host { 9265 display: flex; 9266 justify-content: center;
9267 align-items: center; 9268 width: 40px; 9269 height: 40px; 9270 border-radius: var(--wui-border-radius-3xl); 9271 border: 1px solid var(--wui-color-gray-glass-005); 9272 overflow: hidden; 9273 } 9274 9275 wui-icon { 9276 width: 100%; 9277 height: 100%; 9278 } 9279`,io=function(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};let ia=class extends em{constructor(){super(...arguments),this.logo="google"}render(){return Q`<wui-icon color="inherit" size="inherit" name=${this.logo}></wui-icon> `}};ia.styles=[eS,ii],io([eD()],ia.prototype,"logo",void 0),ia=io([eR("wui-logo")],ia);var is=h` 9280 :host { 9281 display: block; 9282 width: 100%; 9283 } 9284 9285 button { 9286 width: 100%; 9287 height: 56px; 9288 background: var(--wui-color-gray-glass-002); 9289 border-radius: var(--wui-border-radius-xs); 9290 } 9291`,ic=function(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};let il=class extends em{constructor(){super(...arguments),this.logo="google",this.disabled=!1}render(){return Q` 9292 <button ?disabled=${this.disabled} ontouchstart> 9293 <wui-logo logo=${this.logo}></wui-logo> 9294 </button> 9295 `}};il.styles=[eS,eT,is],ic([eD()],il.prototype,"logo",void 0),ic([eD({type:Boolean})],il.prototype,"disabled",void 0),il=ic([eR("wui-logo-select")],il);var iu=h` 9296 :host { 9297 display: block; 9298 } 9299 9300 button { 9301 border-radius: var(--wui-border-radius-3xl); 9302 display: flex; 9303 gap: var(--wui-spacing-xs); 9304 padding: var(--wui-spacing-2xs) var(--wui-spacing-s) var(--wui-spacing-2xs) 9305 var(--wui-spacing-xs); 9306 border: 1px solid var(--wui-color-gray-glass-010); 9307 background-color: var(--wui-color-gray-glass-005); 9308 color: var(--wui-color-fg-100); 9309 } 9310 9311 button:disabled { 9312 border: 1px solid var(--wui-color-gray-glass-005); 9313 background-color: var(--wui-color-gray-glass-015); 9314 color: var(--wui-color-gray-glass-015); 9315 } 9316 9317 @media (hover: hover) and (pointer: fine) { 9318 button:hover:enabled { 9319 background-color: var(--wui-color-gray-glass-010); 9320 } 9321 9322 button:active:enabled { 9323 background-color: var(--wui-color-gray-glass-015); 9324 } 9325 } 9326 9327 wui-image, 9328 wui-icon-box { 9329 border-radius: var(--wui-border-radius-3xl); 9330 width: 24px; 9331 height: 24px; 9332 box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); 9333 } 9334`,id=function(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};let ih=class extends em{constructor(){super(...arguments),this.imageSrc=void 0,this.isUnsupportedChain=void 0,this.disabled=!1}render(){return Q` 9335 <button ?disabled=${this.disabled}> 9336 ${this.visualTemplate()} 9337 <wui-text variant="paragraph-600" color="inherit"> 9338 <slot></slot> 9339 </wui-text> 9340 </button> 9341 `}visualTemplate(){return this.isUnsupportedChain?Q` 9342 <wui-icon-box 9343 size="sm" 9344 iconColor="error-100" 9345 backgroundColor="error-100" 9346 icon="warningCircle" 9347 ></wui-icon-box> 9348 `:this.imageSrc?Q`<wui-image src=${this.imageSrc}></wui-image>`:Q` 9349 <wui-icon-box 9350 size="sm" 9351 iconColor="inverse-100" 9352 backgroundColor="fg-100" 9353 icon="networkPlaceholder" 9354 ></wui-icon-box> 9355 `}};ih.styles=[eS,eT,iu],id([eD()],ih.prototype,"imageSrc",void 0),id([eD({type:Boolean})],ih.prototype,"isUnsupportedChain",void 0),id([eD({type:Boolean})],ih.prototype,"disabled",void 0),ih=id([eR("wui-network-button")],ih);var ip=h` 9356 :host { 9357 position: relative; 9358 display: block; 9359 } 9360`,ig=function(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};let im=class extends em{constructor(){super(...arguments),this.length=6,this.otp="",this.values=Array.from({length:this.length}).map(()=>""),this.numerics=[],this.shouldInputBeEnabled=e=>this.values.slice(0,e).every(e=>""!==e),this.handleKeyDown=(e,t)=>{let r=e.target,n=this.getInputElement(r);if(!n)return;
9360["ArrowLeft","ArrowRight","Shift","Delete"].includes(e.key)&&e.preventDefault();let i=n.selectionStart;switch(e.key){case"ArrowLeft":i&&n.setSelectionRange(i+1,i+1),this.focusInputField("prev",t);break;case"ArrowRight":case"Shift":this.focusInputField("next",t);break;case"Delete":case"Backspace":""===n.value?this.focusInputField("prev",t):this.updateInput(n,t,"")}},this.focusInputField=(e,t)=>{if("next"===e){let e=t+1;if(!this.shouldInputBeEnabled(e))return;let r=this.numerics[e<this.length?e:t],n=r?this.getInputElement(r):void 0;n&&(n.disabled=!1,n.focus())}if("prev"===e){let e=t-1,r=this.numerics[e>-1?e:t],n=r?this.getInputElement(r):void 0;n&&n.focus()}}}firstUpdated(){this.otp&&(this.values=this.otp.split(""));let e=this.shadowRoot?.querySelectorAll("wui-input-numeric");e&&(this.numerics=Array.from(e)),this.numerics[0]?.focus()}render(){return Q` 9361 <wui-flex gap="xxs" data-testid="wui-otp-input"> 9362 ${Array.from({length:this.length}).map((e,t)=>Q` 9363 <wui-input-numeric 9364 @input=${e=>this.handleInput(e,t)} 9365 @click=${e=>this.selectInput(e)} 9366 @keydown=${e=>this.handleKeyDown(e,t)} 9367 .disabled=${!this.shouldInputBeEnabled(t)} 9368 .value=${this.values[t]||""} 9369 > 9370 </wui-input-numeric> 9371 `)} 9372 </wui-flex> 9373 `}updateInput(e,t,r){let n=this.numerics[t],i=e||(n?this.getInputElement(n):void 0);i&&(i.value=r,this.values=this.values.map((e,n)=>n===t?r:e))}selectInput(e){let t=e.target;if(t){let e=this.getInputElement(t);e?.select()}}handleInput(e,t){let r=e.target,n=this.getInputElement(r);if(n){let r=n.value;"insertFromPaste"===e.inputType?this.handlePaste(n,r,t):r_.isNumber(r)&&e.data?(this.updateInput(n,t,e.data),this.focusInputField("next",t)):this.updateInput(n,t,"")}this.dispatchInputChangeEvent()}handlePaste(e,t,r){let n=t[0];if(n&&r_.isNumber(n)){this.updateInput(e,r,n);let i=t.substring(1);if(r+1<this.length&&i.length){let e=this.numerics[r+1],t=e?this.getInputElement(e):void 0;t&&this.handlePaste(t,i,r+1)}else this.focusInputField("next",r)}else this.updateInput(e,r,"")}getInputElement(e){return e.shadowRoot?.querySelector("input")?e.shadowRoot.querySelector("input"):null}dispatchInputChangeEvent(){let e=this.values.join("");this.dispatchEvent(new CustomEvent("inputChange",{detail:e,bubbles:!0,composed:!0}))}};im.styles=[eS,ip],ig([eD({type:Number})],im.prototype,"length",void 0),ig([eD({type:String})],im.prototype,"otp",void 0),ig([eB()],im.prototype,"values",void 0),im=ig([eR("wui-otp")],im);var iw=r(19783);function ib(e,t,r){return e!==t&&(e-t<0?t-e:e-t)<=r+.1}let iv={generate(e,t,r){let n="#141414",i=[],o=function(e,t){let r=Array.prototype.slice.call(iw.create(e,{errorCorrectionLevel:"Q"}).modules.data,0),n=Math.sqrt(r.length);return r.reduce((e,t,r)=>(r%n==0?e.push([t]):e[e.length-1].push(t))&&e,[])}(e,0),a=t/o.length,s=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];s.forEach(({x:e,y:t})=>{let r=(o.length-7)*a*e,c=(o.length-7)*a*t;for(let e=0;e<s.length;e+=1){let t=a*(7-2*e);i.push(J` 9374 <rect 9375 fill=${2===e?n:"transparent"} 9376 width=${0===e?t-5:t} 9377 rx= ${0===e?(t-5)*.45:.45*t} 9378 ry= ${0===e?(t-5)*.45:.45*t} 9379 stroke=${n} 9380 stroke-width=${0===e?5:0} 9381 height=${0===e?t-5:t} 9382 x= ${0===e?c+a*e+2.5:c+a*e} 9383 y= ${0===e?r+a*e+2.5:r+a*e} 9384 /> 9385 `)}});let c=Math.floor((r+25)/a),l=o.length/2-c/2,u=o.length/2+c/2-1,d=[];o.forEach((e,t)=>{e.forEach((e,r)=>{!o[t][r]||t<7&&r<7||t>o.length-8&&r<7||t<7&&r>o.length-8||t>l&&t<u&&r>l&&r<u||d.push([t*a+a/2,r*a+a/2])})});let h={};return d.forEach(([e,t])=>{h[e]?h[e]?.push(t):h[e]=[t]}),Object.entries(h).map(([e,t])=>{let r=t.filter(e=>t.every(t=>!ib(e,t,a)));return[Number(e),r]}).forEach(([e,t])=>{t.forEach(t=>{i.push(J`<circle cx=${e} cy=${t} fill=${n} r=${a/2.5} />`)})}),Object.entries(h).filter(([e,t])=>t.length>1).map(([e,t])=>{let r=t.filter(e=>t.some(t=>ib(e,t,a)));return[Number(e),r]}).map(([e,t])=>{t.sort((e,t)=>e<t?-1:1);let r=[];for(let e of t){let t=r.find(t=>t.some(t=>ib(e,t,a)));
9385t?t.push(e):r.push([e])}return[e,r.map(e=>[e[0],e[e.length-1]])]}).forEach(([e,t])=>{t.forEach(([t,r])=>{i.push(J` 9386 <line 9387 x1=${e} 9388 x2=${e} 9389 y1=${t} 9390 y2=${r} 9391 stroke=${n} 9392 stroke-width=${a/1.25} 9393 stroke-linecap="round" 9394 /> 9395 `)})}),i}};var iy=h` 9396 :host { 9397 position: relative; 9398 user-select: none; 9399 display: block; 9400 overflow: hidden; 9401 aspect-ratio: 1 / 1; 9402 width: var(--local-size); 9403 } 9404 9405 :host([data-theme='dark']) { 9406 border-radius: clamp(0px, var(--wui-border-radius-l), 40px); 9407 background-color: var(--wui-color-inverse-100); 9408 padding: var(--wui-spacing-l); 9409 } 9410 9411 :host([data-theme='light']) { 9412 box-shadow: 0 0 0 1px var(--wui-color-bg-125); 9413 background-color: var(--wui-color-bg-125); 9414 } 9415 9416 :host([data-clear='true']) > wui-icon { 9417 display: none; 9418 } 9419 9420 svg:first-child, 9421 wui-image, 9422 wui-icon { 9423 position: absolute; 9424 top: 50%; 9425 left: 50%; 9426 transform: translateY(-50%) translateX(-50%); 9427 } 9428 9429 wui-image { 9430 width: 25%; 9431 height: 25%; 9432 border-radius: var(--wui-border-radius-xs); 9433 } 9434 9435 wui-icon { 9436 width: 100%; 9437 height: 100%; 9438 color: #3396ff !important; 9439 transform: translateY(-50%) translateX(-50%) scale(0.25); 9440 } 9441`,iC=function(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};let ix=class extends em{constructor(){super(...arguments),this.uri="",this.size=0,this.theme="dark",this.imageSrc=void 0,this.alt=void 0,this.arenaClear=void 0,this.farcaster=void 0}render(){return this.dataset.theme=this.theme,this.dataset.clear=String(this.arenaClear),this.style.cssText=`--local-size: ${this.size}px`,Q`${this.templateVisual()} ${this.templateSvg()}`}templateSvg(){let e="light"===this.theme?this.size:this.size-32;return J` 9442 <svg height=${e} width=${e}> 9443 ${iv.generate(this.uri,e,this.arenaClear?0:e/4)} 9444 </svg> 9445 `}templateVisual(){return this.imageSrc?Q`<wui-image src=${this.imageSrc} alt=${this.alt??"logo"}></wui-image>`:this.farcaster?Q`<wui-icon 9446 class="farcaster" 9447 size="inherit" 9448 color="inherit" 9449 name="farcaster" 9450 ></wui-icon>`:Q`<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>`}};ix.styles=[eS,iy],iC([eD()],ix.prototype,"uri",void 0),iC([eD({type:Number})],ix.prototype,"size",void 0),iC([eD()],ix.prototype,"theme",void 0),iC([eD()],ix.prototype,"imageSrc",void 0),iC([eD()],ix.prototype,"alt",void 0),iC([eD({type:Boolean})],ix.prototype,"arenaClear",void 0),iC([eD({type:Boolean})],ix.prototype,"farcaster",void 0),ix=iC([eR("wui-qr-code")],ix);var iA=h` 9451 :host { 9452 position: relative; 9453 display: inline-block; 9454 width: 100%; 9455 } 9456`;let iE=class extends em{constructor(){super(...arguments),this.inputComponentRef=nk()}render(){return Q` 9457 <wui-input-text 9458 ${nT(this.inputComponentRef)} 9459 placeholder="Search wallet" 9460 icon="search" 9461 type="search" 9462 enterKeyHint="search" 9463 size="sm" 9464 > 9465 <wui-input-element @click=${this.clearValue} icon="close"></wui-input-element> 9466 </wui-input-text> 9467 `}clearValue(){let e=this.inputComponentRef.value,t=e?.inputElementRef.value;t&&(t.value="",t.focus(),t.dispatchEvent(new Event("input")))}};iE.styles=[eS,iA],iE=function(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}([eR("wui-search-bar")],iE);var ik=h` 9468 :host { 9469 display: flex; 9470 column-gap: var(--wui-spacing-xs); 9471 align-items: center; 9472 padding: var(--wui-spacing-xs) var(--wui-spacing-m) var(--wui-spacing-xs) var(--wui-spacing-xs); 9473 border-radius: var(--wui-border-radius-3xl); 9474 border: 1px solid var(--wui-color-gray-glass-005); 9475 box-sizing: border-box; 9476 max-height: 40px; 9477 background-color: var(--wui-color-bg-175); 9478 box-shadow: 9479 0px 14px 64px -4px rgba(0, 0, 0, 0.15), 9480 0px 8px 22px -6px rgba(0, 0, 0, 0.15); 9481 } 9482 9483 :host wui-loading-spinner { 9484 margin-left: var(--wui-spacing-3xs); 9485 } 9486`,i_=function(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};let iS=class extends em{constructor(){super(...arguments),this.backgroundColor="accent-100",this.iconColor="accent-100",this.icon="checkmark",this.message="",this.loading=!1}render(){return Q` 9487 ${this.loading?Q`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`:Q`<wui-icon-box 9488 size="sm" 9489 iconSize="xs" 9490 iconColor=${this.iconColor} 9491 backgroundColor=${this.backgroundColor} 9492 icon=${this.icon} 9493 background="opaque" 9494 ></wui-icon-box>`} 9495 <wui-text variant="paragraph-500" color="fg-100">${this.message}</wui-text> 9496 `}};iS.styles=[eS,ik],i_([eD()],iS.prototype,"backgroundColor",void 0),i_([eD()],iS.prototype,"iconColor",void 0),i_([eD()],iS.prototype,"icon",void 0),i_([eD()],iS.prototype,"message",void 0),i_([eD()],iS.prototype,"loading",void 0),iS=i_([eR("wui-snackbar")],iS);var iT=h` 9497 :host { 9498 display: inline-flex; 9499 background-color: var(--wui-color-gray-glass-002); 9500 border-radius: var(--wui-border-radius-3xl); 9501 padding: var(--wui-spacing-3xs); 9502 position: relative; 9503 height: 36px; 9504 min-height: 36px; 9505 overflow: hidden; 9506 } 9507 9508 :host::before { 9509 content: ''; 9510 position: absolute; 9511 pointer-events: none; 9512 top: 4px; 9513 left: 4px; 9514 display: block; 9515 width: var(--local-tab-width); 9516 height: 28px; 9517 border-radius: var(--wui-border-radius-3xl); 9518 background-color: var(--wui-color-gray-glass-002); 9519 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); 9520 transform: translateX(calc(var(--local-tab) * var(--local-tab-width))); 9521 transition: transform var(--wui-ease-out-power-1) var(--wui-duration-md); 9522 will-change: background-color, opacity; 9523 } 9524 9525 :host([data-type='flex'])::before { 9526 left: 3px; 9527 transform: translateX(calc((var(--local-tab) * 34px) + (var(--local-tab) * 4px))); 9528 } 9529 9530 :host([data-type='flex']) { 9531 display: flex; 9532 padding: 0px 0px 0px 12px; 9533 gap: 4px; 9534 } 9535 9536 :host([data-type='flex']) > button > wui-text { 9537 position: absolute; 9538 left: 18px; 9539 opacity: 0; 9540 } 9541 9542 button[data-active='true'] > wui-icon, 9543 button[data-active='true'] > wui-text { 9544 color: var(--wui-color-fg-100); 9545 } 9546 9547 button[data-active='false'] > wui-icon, 9548 button[data-active='false'] > wui-text { 9549 color: var(--wui-color-fg-200); 9550 } 9551 9552 button[data-active='true']:disabled, 9553 button[data-active='false']:disabled { 9554 background-color: transparent; 9555 opacity: 0.5;
9556 cursor: not-allowed; 9557 } 9558 9559 button[data-active='true']:disabled > wui-text { 9560 color: var(--wui-color-fg-200); 9561 } 9562 9563 button[data-active='false']:disabled > wui-text { 9564 color: var(--wui-color-fg-300); 9565 } 9566 9567 button > wui-icon, 9568 button > wui-text { 9569 pointer-events: none; 9570 transition: color var(--wui-e ase-out-power-1) var(--wui-duration-md); 9571 will-change: color; 9572 } 9573 9574 button { 9575 width: var(--local-tab-width); 9576 transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md); 9577 will-change: background-color; 9578 } 9579 9580 :host([data-type='flex']) > button { 9581 width: 34px; 9582 position: relative; 9583 display: flex; 9584 justify-content: flex-start; 9585 } 9586 9587 button:hover:enabled, 9588 button:active:enabled { 9589 background-color: transparent !important; 9590 } 9591 9592 button:hover:enabled > wui-icon, 9593 button:active:enabled > wui-icon { 9594 transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg); 9595 color: var(--wui-color-fg-125); 9596 } 9597 9598 button:hover:enabled > wui-text, 9599 button:active:enabled > wui-text { 9600 transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg); 9601 color: var(--wui-color-fg-125); 9602 } 9603 9604 button { 9605 border-radius: var(--wui-border-radius-3xl); 9606 } 9607`,iI=function(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};let iR=class extends em{constructor(){super(...arguments),this.tabs=[],this.onTabChange=()=>null,this.buttons=[],this.disabled=!1,this.localTabWidth="100px",this.activeTab=0,this.isDense=!1}render(){return this.isDense=this.tabs.length>3,this.style.cssText=` 9608 --local-tab: ${this.activeTab}; 9609 --local-tab-width: ${this.localTabWidth}; 9610 `,this.dataset.type=this.isDense?"flex":"block",this.tabs.map((e,t)=>{let r=t===this.activeTab;return Q` 9611 <button 9612 ?disabled=${this.disabled} 9613 @click=${()=>this.onTabClick(t)} 9614 data-active=${r} 9615 data-testid="tab-${e.label?.toLowerCase()}" 9616 > 9617 ${this.iconTemplate(e)} 9618 <wui-text variant="small-600" color="inherit"> ${e.label} </wui-text> 9619 </button> 9620 `})}firstUpdated(){this.shadowRoot&&this.isDense&&(this.buttons=[...this.shadowRoot.querySelectorAll("button")],setTimeout(()=>{this.animateTabs(0,!0)},0))}iconTemplate(e){return e.icon?Q`<wui-icon size="xs" color="inherit" name=${e.icon}></wui-icon>`:null}onTabClick(e){this.buttons&&this.animateTabs(e,!1),this.activeTab=e,this.onTabChange(e)}animateTabs(e,t){let r=this.buttons[this.activeTab],n=this.buttons[e],i=r?.querySelector("wui-text"),o=n?.querySelector("wui-text"),a=n?.getBoundingClientRect(),s=o?.getBoundingClientRect();r&&i&&!t&&e!==this.activeTab&&(i.animate([{opacity:0}],{duration:50,easing:"ease",fill:"forwards"}),r.animate([{width:"34px"}],{duration:500,easing:"ease",fill:"forwards"})),n&&a&&s&&o&&(e!==this.activeTab||t)&&(this.localTabWidth=`${Math.round(a.width+s.width)+6}px`,n.animate([{width:`${a.width+s.width}px`}],{duration:t?0:500,fill:"forwards",easing:"ease"}),o.animate([{opacity:1}],{duration:t?0:125,delay:t?0:200,fill:"forwards",easing:"ease"}))}};iR.styles=[eS,eT,iT],iI([eD({type:Array})],iR.prototype,"tabs",void 0),iI([eD()],iR.prototype,"onTabChange",void 0),iI([eD({type:Array})],iR.prototype,"buttons",void 0),iI([eD({type:Boolean})],iR.prototype,"disabled",void 0),iI([eD()],iR.prototype,"localTabWidth",void 0),iI([eB()],iR.prototype,"activeTab",void 0),iI([eB()],iR.prototype,"isDense",void 0),iR=iI([eR("wui-tabs")],iR);var iO=h` 9621 :host { 9622 display: block; 9623 } 9624 9625 :host > button { 9626 gap: var(--wui-spacing-xxs); 9627 padding: var(--wui-spacing-xs); 9628 padding-right: var(--wui-spacing-1xs); 9629 height: 40px; 9630 border-radius: var(--wui-border-radius-l); 9631 background: var(--wui-color-gray-glass-002); 9632 border-width: 0px; 9633 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); 9634 } 9635 9636 :host > button wui-image { 9637 width: 24px; 9638 height: 24px; 9639 border-radius: var(--wui-border-radius-s); 9640 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 9641 } 9642`,iP=function(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};let iN=class extends em{constructor(){super(...arguments),this.text=""}render(){return Q` 9643 <button ontouchstart> 9644 ${this.tokenTemplate()} 9645 <wui-text variant="paragraph-600" color="fg-100">${this.text}</wui-text> 9646 </button> 9647 `}tokenTemplate(){return this.imageSrc?Q`<wui-image src=${this.imageSrc}></wui-image>`:Q` 9648 <wui-icon-box 9649 size="sm" 9650 iconColor="fg-200" 9651 backgroundColor="fg-300" 9652 icon="networkPlaceholder" 9653 ></wui-icon-box> 9654 `}};iN.styles=[eS,eT,iO],iP([eD()],iN.prototype,"imageSrc",void 0),iP([eD()],iN.prototype,"text",void 0),iN=iP([eR("wui-token-button")],iN);var iM=h` 9655 :host { 9656 display: block; 9657 padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s); 9658 border-radius: var(--wui-border-radius-xxs); 9659 9660 color: var(--wui-color-bg-100); 9661 position: relative; 9662 } 9663 9664 :host([data-variant='shade']) { 9665 background-color: var(--wui-color-bg-150); 9666 border: 1px solid var(--wui-color-gray-glass-005); 9667 } 9668 9669 :host([data-variant='shade']) > wui-text { 9670 color: var(--wui-color-fg-150); 9671 } 9672 9673 :host([data-variant='fill']) { 9674 background-color: var(--wui-color-fg-100); 9675 border: none; 9676 } 9677 9678 wui-icon { 9679 position: absolute; 9680 width: 12px !important; 9681 height: 4px !important; 9682 } 9683 9684 wui-icon[data-placement='top'] { 9685 bottom: 0px; 9686 left: 50%; 9687 transform: translate(-50%, 95%); 9688 } 9689 9690 wui-icon[data-placement='bottom'] { 9691 top: 0; 9692 left: 50%; 9693 transform: translate(-50%, -95%) rotate(180deg); 9694 } 9695 9696 wui-icon[data-placement='right'] { 9697 top: 50%; 9698 left: 0; 9699 transform: translate(-65%, -50%) rotate(90deg); 9700 } 9701 9702 wui-icon[data-placement='left'] { 9703 top: 50%; 9704 right: 0%; 9705 transform: translate(65%, -50%) rotate(270deg); 9706 } 9707`,iD=function(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};let iB=class extends em{constructor(){super(...arguments),this.placement="top",this.variant="fill",this.message=""}render(){return this.dataset.variant=this.variant,Q`<wui-icon 9708 data-placement=${this.placement} 9709 color="fg-100" 9710 size="inherit"
9711 name=${"fill"===this.variant?"cursor":"cursorTransparent"} 9712 ></wui-icon> 9713 <wui-text color="inherit" variant="small-500">${this.message}</wui-text>`}};iB.styles=[eS,eT,iM],iD([eD()],iB.prototype,"placement",void 0),iD([eD()],iB.prototype,"variant",void 0),iD([eD()],iB.prototype,"message",void 0),iB=iD([eR("wui-tooltip")],iB);var i$=h` 9714 :host { 9715 height: 60px; 9716 min-height: 60px; 9717 } 9718 9719 :host > wui-flex { 9720 cursor: pointer; 9721 height: 100%; 9722 display: flex; 9723 column-gap: var(--wui-spacing-s); 9724 padding: var(--wui-spacing-xs); 9725 padding-right: var(--wui-spacing-l); 9726 width: 100%; 9727 background-color: transparent; 9728 border-radius: var(--wui-border-radius-xs); 9729 color: var(--wui-color-fg-250); 9730 transition: 9731 background-color var(--wui-ease-out-power-1) var(--wui-duration-lg), 9732 opacity var(--wui-ease-out-power-1) var(--wui-duration-lg); 9733 will-change: background-color, opacity; 9734 } 9735 9736 @media (hover: hover) and (pointer: fine) { 9737 :host > wui-flex:hover { 9738 background-color: var(--wui-color-gray-glass-002); 9739 } 9740 9741 :host > wui-flex:active { 9742 background-color: var(--wui-color-gray-glass-005); 9743 } 9744 } 9745 9746 :host([disabled]) > wui-flex { 9747 opacity: 0.6; 9748 } 9749 9750 :host([disabled]) > wui-flex:hover { 9751 background-color: transparent; 9752 } 9753 9754 :host > wui-flex > wui-flex { 9755 flex: 1; 9756 } 9757 9758 :host > wui-flex > wui-image, 9759 :host > wui-flex > .token-item-image-placeholder { 9760 width: 40px; 9761 max-width: 40px; 9762 height: 40px; 9763 border-radius: var(--wui-border-radius-3xl); 9764 position: relative; 9765 } 9766 9767 :host > wui-flex > .token-item-image-placeholder { 9768 display: flex; 9769 align-items: center; 9770 justify-content: center; 9771 } 9772 9773 :host > wui-flex > wui-image::after, 9774 :host > wui-flex > .token-item-image-placeholder::after { 9775 position: absolute; 9776 content: ''; 9777 inset: 0; 9778 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 9779 border-radius: var(--wui-border-radius-l); 9780 } 9781 9782 button > wui-icon-box[data-variant='square-blue'] { 9783 border-radius: var(--wui-border-radius-3xs); 9784 position: relative; 9785 border: none; 9786 width: 36px; 9787 height: 36px; 9788 } 9789`,iU=function(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};let iL=class extends em{constructor(){super(),this.observer=new IntersectionObserver(()=>void 0),this.imageSrc=void 0,this.name=void 0,this.symbol=void 0,this.price=void 0,this.amount=void 0,this.visible=!1,this.imageError=!1,this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?this.visible=!0:this.visible=!1})},{threshold:.1})}firstUpdated(){this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}render(){if(!this.visible)return null;let e=this.amount&&this.price?ex.C6.multiply(this.price,this.amount)?.toFixed(3):null;return Q` 9790 <wui-flex alignItems="center"> 9791 ${this.visualTemplate()} 9792 <wui-flex flexDirection="column" gap="3xs"> 9793 <wui-flex justifyContent="space-between"> 9794 <wui-text variant="paragraph-500" color="fg-100" lineClamp="1">${this.name}</wui-text> 9795 ${e?Q` 9796 <wui-text variant="paragraph-500" color="fg-100"> 9797 $${r_.formatNumberToLocalString(e,3)} 9798 </wui-text> 9799 `:null} 9800 </wui-flex> 9801 <wui-flex justifyContent="space-between"> 9802 <wui-text variant="small-400" color="fg-200" lineClamp="1">${this.symbol}</wui-text> 9803 ${this.amount?Q`<wui-text variant="small-400" color="fg-200"> 9804 ${r_.formatNumberToLocalString(this.amount,4)} 9805 </wui-text>`:null} 9806 </wui-flex> 9807 </wui-flex> 9808 </wui-flex> 9809 `}visualTemplate(){return this.imageError?Q`<wui-flex class="token-item-image-placeholder"> 9810 <wui-icon name="image" color="inherit"></wui-icon> 9811 </wui-flex>`:this.imageSrc?Q`<wui-image 9812 width="40" 9813 height="40" 9814 src=${this.imageSrc} 9815 @onLoadError=${this.imageLoadError} 9816 ></wui-image>`:null}imageLoadError(){this.imageError=!0}};iL.styles=[eS,eT,i$],iU([eD()],iL.prototype,"imageSrc",void 0),iU([eD()],iL.prototype,"name",void 0),iU([eD()],iL.prototype,"symbol",void 0),iU([eD()],iL.prototype,"price",void 0),iU([eD()],iL.prototype,"amount",void 0),iU([eB()],iL.prototype,"visible",void 0),iU([eB()],iL.prototype,"imageError",void 0),iL=iU([eR("wui-token-list-item")],iL);var ij=h` 9817 :host { 9818 display: flex; 9819 justify-content: center;
9820 align-items: center; 9821 width: var(--wui-icon-box-size-xl); 9822 height: var(--wui-icon-box-size-xl); 9823 box-shadow: 0 0 0 8px var(--wui-thumbnail-border); 9824 border-radius: var(--local-border-radius); 9825 overflow: hidden; 9826 } 9827 9828 wui-icon { 9829 width: 32px; 9830 height: 32px; 9831 } 9832`,iz=function(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};let iF=class extends em{render(){return this.style.cssText=`--local-border-radius: ${this.borderRadiusFull?"1000px":"20px"}; background-color: var(--wui-color-modal-bg);`,Q`${this.templateVisual()}`}templateVisual(){return this.imageSrc?Q`<wui-image src=${this.imageSrc} alt=${this.alt??""}></wui-image>`:Q`<wui-icon 9833 data-parent-size="md" 9834 size="inherit" 9835 color="inherit" 9836 name="walletPlaceholder" 9837 ></wui-icon>`}};iF.styles=[eS,ij],iz([eD()],iF.prototype,"imageSrc",void 0),iz([eD()],iF.prototype,"alt",void 0),iz([eD({type:Boolean})],iF.prototype,"borderRadiusFull",void 0),iF=iz([eR("wui-visual-thumbnail")],iF);var iH=h` 9838 :host { 9839 display: block; 9840 } 9841 9842 button { 9843 width: 100%; 9844 display: block; 9845 padding-top: var(--wui-spacing-l); 9846 padding-bottom: var(--wui-spacing-l); 9847 padding-left: var(--wui-spacing-s); 9848 padding-right: var(--wui-spacing-2l); 9849 border-radius: var(--wui-border-radius-s); 9850 background-color: var(--wui-color-accent-glass-010); 9851 } 9852 9853 button:hover { 9854 background-color: var(--wui-color-accent-glass-015) !important; 9855 } 9856 9857 button:active { 9858 background-color: var(--wui-color-accent-glass-020) !important; 9859 } 9860`,iq=function(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};let iW=class extends em{constructor(){super(...arguments),this.label="",this.description="",this.icon="wallet"}render(){return Q` 9861 <button> 9862 <wui-flex gap="m" alignItems="center" justifyContent="space-between"> 9863 <wui-icon-box 9864 size="lg" 9865 iconcolor="accent-100" 9866 backgroundcolor="accent-100" 9867 icon=${this.icon} 9868 background="transparent" 9869 ></wui-icon-box> 9870 9871 <wui-flex flexDirection="column" gap="3xs"> 9872 <wui-text variant="paragraph-500" color="fg-100">${this.label}</wui-text> 9873 <wui-text variant="small-400" color="fg-200">${this.description}</wui-text> 9874 </wui-flex> 9875 9876 <wui-icon size="md" color="fg-200" name="chevronRight"></wui-icon> 9877 </wui-flex> 9878 </button> 9879 `}};iW.styles=[eS,eT,iH],iq([eD()],iW.prototype,"label",void 0),iq([eD()],iW.prototype,"description",void 0),iq([eD()],iW.prototype,"icon",void 0),iW=iq([eR("wui-notice-card")],iW);var iV=h` 9880 button { 9881 height: auto; 9882 position: relative; 9883 flex-direction: column; 9884 gap: var(--wui-spacing-s); 9885 padding: 17px 18px 17px var(--wui-spacing-m); 9886 width: 100%; 9887 background-color: var(--wui-color-gray-glass-002); 9888 border-radius: var(--wui-border-radius-xs); 9889 color: var(--wui-color-fg-250); 9890 } 9891 9892 .overflowedContent { 9893 width: 100%; 9894 overflow: hidden; 9895 } 9896 9897 .overflowedContent[data-active='false']:after { 9898 content: ''; 9899 position: absolute; 9900 top: 50%; 9901 left: 0; 9902 right: 0; 9903 bottom: 0; 9904 background: linear-gradient(to top, var(--wui-color-bg-150), transparent); 9905 border-bottom-left-radius: var(--wui-border-radius-xs); 9906 border-bottom-right-radius: var(--wui-border-radius-xs); 9907 } 9908 9909 .heightContent { 9910 max-height: 100px; 9911 } 9912 9913 pre { 9914 text-align: left; 9915 white-space: pre-wrap; 9916 height: auto; 9917 overflow-x: auto; 9918 overflow-wrap: anywhere; 9919 } 9920`,iZ=function(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};let iG=class extends em{constructor(){super(...arguments),this.textTitle="",this.overflowedContent="",this.toggled=!1,this.enableAccordion=!1,this.scrollElement=void 0,this.scrollHeightElement=0}updated(e){super.updated(e),(e.has("textTitle")||e.has("overflowedContent"))&&setTimeout(()=>{this.checkHeight()},1)}checkHeight(){this.updateComplete.then(()=>{let e=this.shadowRoot?.querySelector(".heightContent"),t=this.shadowRoot?.querySelector(".textContent");
9920if(e&&t){this.scrollElement=e;let r=t?.scrollHeight;r&&r>100&&(this.enableAccordion=!0,this.scrollHeightElement=r,this.requestUpdate())}})}render(){return Q` 9921 <button ontouchstart @click=${()=>this.onClick()}> 9922 <wui-flex justifyContent="space-between" alignItems="center"> 9923 <wui-text variant="paragraph-500" color="fg-100">${this.textTitle}</wui-text> 9924 ${this.chevronTemplate()} 9925 </wui-flex> 9926 <div 9927 data-active=${!this.enableAccordion||!!this.toggled} 9928 class="overflowedContent" 9929 > 9930 <div class="heightContent"> 9931 <wui-text class="textContent" variant="paragraph-400" color="fg-200"> 9932 <pre>${this.overflowedContent}</pre> 9933 </wui-text> 9934 </div> 9935 </div> 9936 </button> 9937 `}onClick(){let e=this.shadowRoot?.querySelector("wui-icon");this.enableAccordion&&(this.toggled=!this.toggled,this.requestUpdate(),this.scrollElement&&this.scrollElement.animate([{maxHeight:this.toggled?"100px":`${this.scrollHeightElement}px`},{maxHeight:this.toggled?`${this.scrollHeightElement}px`:"100px"}],{duration:300,fill:"forwards",easing:"ease"}),e&&e.animate([{transform:this.toggled?"rotate(0deg)":"rotate(180deg)"},{transform:this.toggled?"rotate(180deg)":"rotate(0deg)"}],{duration:300,fill:"forwards",easing:"ease"}))}chevronTemplate(){return this.enableAccordion?Q` <wui-icon color="fg-100" size="sm" name="chevronBottom"></wui-icon>`:null}};iG.styles=[eS,eT,iV],iZ([eD()],iG.prototype,"textTitle",void 0),iZ([eD()],iG.prototype,"overflowedContent",void 0),iG=iZ([eR("wui-list-accordion")],iG);var iK=h` 9938 :host { 9939 display: flex; 9940 column-gap: var(--wui-spacing-s); 9941 padding: 17px 18px 17px var(--wui-spacing-m); 9942 width: 100%; 9943 background-color: var(--wui-color-gray-glass-002); 9944 border-radius: var(--wui-border-radius-xs); 9945 color: var(--wui-color-fg-250); 9946 } 9947 9948 wui-image { 9949 width: var(--wui-icon-size-lg); 9950 height: var(--wui-icon-size-lg); 9951 border-radius: var(--wui-border-radius-3xl); 9952 } 9953 9954 wui-icon { 9955 width: var(--wui-icon-size-lg); 9956 height: var(--wui-icon-size-lg); 9957 } 9958`,iY=function(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};let iQ=class extends em{constructor(){super(...arguments),this.imageSrc=void 0,this.textTitle="",this.textValue=void 0}render(){return Q` 9959 <wui-flex justifyContent="space-between" alignItems="center"> 9960 <wui-text variant="paragraph-500" color=${this.textValue?"fg-200":"fg-100"}> 9961 ${this.textTitle} 9962 </wui-text> 9963 ${this.templateContent()} 9964 </wui-flex> 9965 `}templateContent(){return this.imageSrc?Q`<wui-image src=${this.imageSrc} alt=${this.textTitle}></wui-image>`:this.textValue?Q` <wui-text variant="paragraph-400" color="fg-100"> ${this.textValue} </wui-text>`:Q`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};iQ.styles=[eS,eT,iK],iY([eD()],iQ.prototype,"imageSrc",void 0),iY([eD()],iQ.prototype,"textTitle",void 0),iY([eD()],iQ.prototype,"textValue",void 0),iQ=iY([eR("wui-list-content")],iQ);var iJ=h` 9966 button { 9967 column-gap: var(--wui-spacing-s); 9968 padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs); 9969 width: 100%; 9970 background-color: var(--wui-color-gray-glass-002); 9971 border-radius: var(--wui-border-radius-xs); 9972 color: var(--wui-color-fg-100); 9973 } 9974 9975 button > wui-text:nth-child(2) { 9976 display: flex; 9977 flex: 1; 9978 } 9979 9980 button[data-transparent='true'] { 9981 pointer-events: none; 9982 background-color: transparent; 9983 } 9984 9985 wui-icon { 9986 color: var(--wui-color-fg-200) !important; 9987 } 9988 9989 button:disabled { 9990 background-color: var(--wui-color-gray-glass-015); 9991 color: var(--wui-color-gray-glass-015); 9992 } 9993 9994 button:disabled > wui-tag { 9995 background-color: var(--wui-color-gray-glass-010); 9996 color: var(--wui-color-fg-300); 9997 } 9998`,iX=function(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};let i0=class extends em{constructor(){super(...arguments),this.imageSrc="",this.name="",this.disabled=!1,this.transparent=!1}render(){return Q` 9999 <button data-transparent=${this.transparent} ?disabled=${this.disabled} ontouchstart> 10000 ${this.templateNetworkImage()} 10001 <wui-text variant="paragraph-500" color="inherit">${this.name}</wui-text> 10002 </button> 10003 `}templateNetworkImage(){return this.imageSrc?Q`<wui-network-image 10004 size="sm" 10005 imageSrc=${this.imageSrc} 10006 name=${this.name} 10007 ></wui-network-image>`:this.imageSrc?null:Q`<wui-network-image size="sm" name=${this.name}></wui-network-image>`}};i0.styles=[eS,eT,iJ],iX([eD()],i0.prototype,"imageSrc",void 0),iX([eD()],i0.prototype,"name",void 0),iX([eD({type:Boolean})],i0.prototype,"disabled",void 0),iX([eD({type:Boolean})],i0.prototype,"transparent",void 0),i0=iX([eR("wui-list-network")],i0);var i1=h` 10008 :host { 10009 display: flex; 10010 flex-direction: column; 10011 gap: var(--wui-spacing-l); 10012 padding: 17px 18px 17px var(--wui-spacing-m); 10013 width: 100%; 10014 background-color: var(--wui-color-gray-glass-002); 10015 border-radius: var(--wui-border-radius-xs); 10016 color: var(--wui-color-fg-250); 10017 } 10018 10019 wui-image { 10020 width: var(--wui-icon-size-lg); 10021 height: var(--wui-icon-size-lg); 10022 border-radius: var(--wui-border-radius-3xl); 10023 } 10024 10025 wui-icon { 10026 width: var(--wui-icon-size-lg); 10027 height: var(--wui-icon-size-lg); 10028 } 10029`,i2=function(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};let i3=class extends em{constructor(){super(...arguments),this.amount="",this.networkCurreny="",this.networkImageUrl="",this.receiverAddress="",this.addressExplorerUrl=""}render(){return Q` 10030 <wui-flex justifyContent="space-between" alignItems="center"> 10031 <wui-text variant="paragraph-500" color="fg-200">Sending</wui-text> 10032 <wui-flex gap="xs" alignItems="center"> 10033 <wui-text variant="paragraph-400" color="fg-100"> 10034 ${this.amount} ${this.networkCurreny} 10035 </wui-text> 10036 ${this.templateNetworkVisual()} 10037 </wui-flex> 10038 </wui-flex> 10039 <wui-flex justifyContent="space-between" alignItems="center"> 10040 <wui-text variant="paragraph-500" color="fg-200">To</wui-text> 10041 <wui-chip 10042 icon="externalLink" 10043 variant="shadeSmall" 10044 href=${this.addressExplorerUrl} 10045 title=${this.receiverAddress} 10046 ></wui-chip> 10047 </wui-flex> 10048 `}templateNetworkVisual(){return this.networkImageUrl?Q`<wui-image src=${this.networkImageUrl} alt="Network Image"></wui-image>`:Q`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};i3.styles=[eS,eT,i1],i2([eD()],i3.prototype,"amount",void 0),i2([eD()],i3.prototype,"networkCurreny",void 0),i2([eD()],i3.prototype,"networkImageUrl",void 0),i2([eD()],i3.prototype,"receiverAddress",void 0),i2([eD()],i3.prototype,"addressExplorerUrl",void 0),i3=i2([eR("wui-list-wallet-transaction")],i3);var i5=h` 10049 button { 10050 display: flex; 10051 gap: var(--wui-spacing-3xs); 10052 align-items: center; 10053 padding: 6.25px var(--wui-spacing-xs) 7.25px var(--wui-spacing-s); 10054 background-color: var(--wui-color-gray-glass-090); 10055 border-radius: var(--wui-border-radius-3xl); 10056 border: 1px solid var(--wui-color-gray-glass-060); 10057 transition: background-color var(--wui-duration-md) var(--wui-ease-inout-power-1); 10058 will-change: background-color; 10059 } 10060 10061 @media (hover: hover) and (pointer: fine) { 10062 button:hover:enabled { 10063 background-color: var(--wui-color-gray-glass-080); 10064 } 10065 10066 button:active:enabled { 10067 background-color: var(--wui-color-gray-glass-060); 10068 } 10069 } 10070`,i4=function(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};let i6=class extends em{constructor(){super(...arguments),this.text=""}render(){return Q`<button ontouchstart> 10071 <wui-text variant="small-600" color="bg-100">${this.text}</wui-text> 10072 <wui-icon color="bg-100" size="xs" name="arrowRight"></wui-icon> 10073 </button>`}}
10073;i6.styles=[eS,eT,i5],i4([eD()],i6.prototype,"text",void 0),i6=i4([eR("wui-promo")],i6);var i8=h` 10074 span { 10075 font-weight: 500; 10076 font-size: 40px; 10077 color: var(--wui-color-fg-100); 10078 line-height: 130%; /* 52px */ 10079 letter-spacing: -1.6px; 10080 text-align: center; 10081 } 10082 10083 .pennies { 10084 color: var(--wui-color-fg-200); 10085 } 10086`,i9=function(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};let i7=class extends em{constructor(){super(...arguments),this.dollars="0",this.pennies="00"}render(){return Q`<span>$${this.dollars}<span class="pennies">.${this.pennies}</span></span>`}};i7.styles=[eS,i8],i9([eD()],i7.prototype,"dollars",void 0),i9([eD()],i7.prototype,"pennies",void 0),i7=i9([eR("wui-balance")],i7);var oe=h` 10087 button { 10088 background-color: var(--wui-color-gray-glass-002); 10089 border-radius: var(--wui-border-radius-3xl); 10090 border: 1px solid var(--wui-color-gray-glass-002); 10091 padding: var(--wui-spacing-xs) var(--wui-spacing-s) var(--wui-spacing-xs) var(--wui-spacing-xs); 10092 position: relative; 10093 } 10094 10095 wui-avatar { 10096 width: 32px; 10097 height: 32px; 10098 box-shadow: 0 0 0 0; 10099 outline: 3px solid var(--wui-color-gray-glass-005); 10100 } 10101 10102 wui-icon-box, 10103 wui-image { 10104 width: 16px; 10105 height: 16px; 10106 border-radius: var(--wui-border-radius-3xl); 10107 position: absolute; 10108 left: 26px; 10109 top: 24px; 10110 } 10111 10112 wui-image { 10113 outline: 2px solid var(--wui-color-bg-125); 10114 } 10115 10116 wui-icon-box { 10117 outline: 2px solid var(--wui-color-bg-200); 10118 background-color: var(--wui-color-bg-250); 10119 } 10120`,ot=function(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};let or=class extends em{constructor(){super(...arguments),this.networkSrc=void 0,this.avatarSrc=void 0,this.profileName="",this.address="",this.icon="chevronBottom"}render(){return Q`<button ontouchstart data-testid="wui-profile-button"> 10121 <wui-flex gap="xs" alignItems="center"> 10122 <wui-avatar 10123 .imageSrc=${this.avatarSrc} 10124 alt=${this.address} 10125 address=${this.address} 10126 ></wui-avatar> 10127 ${this.networkImageTemplate()} 10128 <wui-flex gap="xs" alignItems="center"> 10129 <wui-text variant="large-600" color="fg-100"> 10130 ${r_.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?18:4,charsEnd:this.profileName?0:4,truncate:this.profileName?"end":"middle"})} 10131 </wui-text> 10132 <wui-icon size="sm" color="fg-200" name=${this.icon}></wui-icon> 10133 </wui-flex> 10134 </wui-flex> 10135 </button>`}networkImageTemplate(){return this.networkSrc?Q`<wui-image src=${this.networkSrc}></wui-image>`:Q` 10136 <wui-icon-box 10137 size="xxs" 10138 iconColor="fg-200" 10139 backgroundColor="bg-100" 10140 icon="networkPlaceholder" 10141 ></wui-icon-box> 10142 `}};or.styles=[eS,eT,oe],ot([eD()],or.prototype,"networkSrc",void 0),ot([eD()],or.prototype,"avatarSrc",void 0),ot([eD()],or.prototype,"profileName",void 0),ot([eD()],or.prototype,"address",void 0),ot([eD()],or.prototype,"icon",void 0),or=ot([eR("wui-profile-button")],or);var on=h` 10143 button { 10144 background-color: var(--wui-color-gray-glass-002); 10145 border-radius: var(--wui-border-radius-3xl); 10146 border: 1px solid var(--wui-color-gray-glass-002); 10147 padding: var(--wui-spacing-xs) var(--wui-spacing-s) var(--wui-spacing-xs) var(--wui-spacing-xs); 10148 position: relative; 10149 } 10150 10151 wui-avatar { 10152 width: 32px; 10153 height: 32px; 10154 box-shadow: 0 0 0 0; 10155 outline: 3px solid var(--wui-color-gray-glass-005); 10156 } 10157 10158 wui-icon-box, 10159 wui-image { 10160 width: 16px; 10161 height: 16px; 10162 border-radius: var(--wui-border-radius-3xl); 10163 position: absolute; 10164 left: 26px; 10165 top: 24px; 10166 } 10167 10168 wui-image { 10169 outline: 2px solid var(--wui-color-bg-125); 10170 } 10171 10172 wui-icon-box { 10173 outline: 2px solid var(--wui-color-bg-200); 10174 background-color: var(--wui-color-bg-250); 10175 } 10176`,oi=r(75839),oo=function(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};let oa=class extends em{constructor(){super(...arguments),this.avatarSrc=void 0,this.profileName="",this.address="",this.icon="mail",this.connectedConnector=oi.MO.getConnectedConnector(),this.shouldShowIcon="AUTH"===this.connectedConnector}render(){return Q`<button ontouchstart data-testid="wui-profile-button" @click=${this.handleClick}> 10177 <wui-flex gap="xs" alignItems="center"> 10178 <wui-avatar 10179 .imageSrc=${this.avatarSrc} 10180 alt=${this.address} 10181 address=${this.address} 10182 ></wui-avatar> 10183 ${this.shouldShowIcon?this.getIconTemplate(this.icon):""} 10184 <wui-flex gap="xs" alignItems="center"> 10185 <wui-text variant="large-600" color="fg-100"> 10186 ${r_.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?18:4,charsEnd:this.profileName?0:4,truncate:this.profileName?"end":"middle"})} 10187 </wui-text> 10188 <wui-icon size="sm" color="fg-200" name="copy" id="copy-address"></wui-icon> 10189 </wui-flex> 10190 </wui-flex> 10191 </button>`}handleClick(e){if(e.target instanceof HTMLElement&&"copy-address"===e.target.id){this.onCopyClick?.(e);return}this.onProfileClick?.(e)}getIconTemplate(e){return Q` 10192 <wui-icon-box 10193 size="xxs" 10194 iconColor="fg-200" 10195 backgroundColor="bg-100" 10196 icon="${e||"networkPlaceholder"}" 10197 ></wui-icon-box> 10198 `}};oa.styles=[eS,eT,on],oo([eD()],oa.prototype,"avatarSrc",void 0),oo([eD()],oa.prototype,"profileName",void 0),oo([eD()],oa.prototype,"address",void 0),oo([eD()],oa.prototype,"icon",void 0),oo([eD()],oa.prototype,"onProfileClick",void 0),oo([eD()],oa.prototype,"onCopyClick",void 0),oa=oo([eR("wui-profile-button-v2")],oa);var os=h` 10199 button { 10200 border: none; 10201 border-radius: var(--wui-border-radius-3xl); 10202 } 10203 10204 button[data-variant='main'] { 10205 background-color: var(--wui-color-accent-100); 10206 color: var(--wui-color-inverse-100); 10207 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 10208 } 10209 10210 button[data-variant='accent'] { 10211 background-color: var(--wui-color-accent-glass-010); 10212 color: var(--wui-color-accent-100); 10213 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 10214 } 10215 10216 button[data-variant='gray'] { 10217 background-color: transparent; 10218 color: var(--wui-color-fg-200); 10219 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 10220 } 10221 10222 button[data-variant='shade'] { 10223 background-color: transparent; 10224 color: var(--wui-color-accent-100); 10225 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 10226 } 10227 10228 button[data-size='sm'] { 10229 height: 32px; 10230 padding: 0 var(--wui-spacing-s); 10231 } 10232 10233 button[data-size='md'] { 10234 height: 40px; 10235 padding: 0 var(--wui-spacing-l); 10236 } 10237 10238 button[data-size='sm'] > wui-image { 10239 width: 16px; 10240 height: 16px; 10241 } 10242 10243 button[data-size='md'] > wui-image { 10244 width: 24px; 10245 height: 24px; 10246 } 10247 10248 button[data-size='sm'] > wui-icon { 10249 width: 12px; 10250 height: 12px; 10251 } 10252 10253 button[data-size='md'] > wui-icon { 10254 width: 14px; 10255 height: 14px; 10256 } 10257 10258 wui-image { 10259 border-radius: var(--wui-border-radius-3xl); 10260 overflow: hidden; 10261 } 10262 10263 button.disabled > wui-icon, 10264 button.disabled > wui-image { 10265 filter: grayscale(1); 10266 } 10267 10268 button[data-variant='main'] > wui-image { 10269 box-shadow: inset 0 0 0 1px var(--wui-color-accent-090); 10270 } 10271 10272 button[data-variant='shade'] > wui-image, 10273 button[data-variant='gray'] > wui-image { 10274 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 10275 } 10276 10277 @media (hover: hover) and (pointer: fine) { 10278 button[data-variant='main']:focus-visible { 10279 background-color: var(--wui-color-accent-090); 10280 } 10281 10282 button[data-variant='main']:hover:enabled { 10283 background-color: var(--wui-color-accent-090); 10284 } 10285 10286 button[data-variant='main']:active:enabled { 10287 background-color: var(--wui-color-accent-080); 10288 } 10289 10290 button[data-variant='accent']:hover:enabled { 10291 background-color: var(--wui-color-accent-glass-015); 10292 } 10293 10294 button[data-variant='accent']:active:enabled { 10295 background-color: var(--wui-color-accent-glass-020); 10296 } 10297 10298 button[data-variant='shade']:focus-visible, 10299 button[data-variant='gray']:focus-visible, 10300 button[data-variant='shade']:hover, 10301 button[data-variant='gray']:hover { 10302 background-color: var(--wui-color-gray-glass-002); 10303 } 10304 10305 button[data-variant='gray']:active, 10306 button[data-variant='shade']:active { 10307 background-color: var(--wui-color-gray-glass-005); 10308 } 10309 } 10310 10311 button.disabled { 10312 color: var(--wui-color-gray-glass-020); 10313 background-color: var(--wui-color-gray-glass-002); 10314 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); 10315 pointer-events: none; 10316 } 10317`,oc=function(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};let ol=class extends em{constructor(){super(...arguments),this.variant="accent",this.imageSrc="",this.disabled=!1,this.icon="externalLink",this.size="md",this.text=""}render(){let e="sm"===this.size?"small-600":"paragraph-600";return Q` 10318 <button 10319 class=${this.disabled?"disabled":""} 10320 data-variant=${this.variant} 10321 data-size=${this.size} 10322 > 10323 ${this.imageSrc?Q`<wui-image src=${this.imageSrc}></wui-image>`:null} 10324 <wui-text variant=${e} color="inherit"> ${this.text} </wui-text> 10325 <wui-icon name=${this.icon} color="inherit" size="inherit"></wui-icon> 10326 </button> 10327 `}};ol.styles=[eS,eT,os],oc([eD()],ol.prototype,"variant",void 0),oc([eD()],ol.prototype,"imageSrc",void 0),oc([eD({type:Boolean})],ol.prototype,"disabled",void 0),oc([eD()],ol.prototype,"icon",void 0),oc([eD()],ol.prototype,"size",void 0),oc([eD()],ol.prototype,"text",void 0),ol=oc([eR("wui-chip-button")],ol);var ou=h` 10328 button { 10329 display: flex; 10330 gap: var(--wui-spacing-xl); 10331 width: 100%; 10332 background-color: var(--wui-color-gray-glass-002); 10333 border-radius: var(--wui-border-radius-xxs); 10334 padding: var(--wui-spacing-m) var(--wui-spacing-s); 10335 } 10336 10337 wui-text { 10338 width: 100%; 10339 } 10340 10341 wui-flex { 10342 width: auto; 10343 } 10344 10345 .network-icon { 10346 width: var(--wui-spacing-2l); 10347 height: var(--wui-spacing-2l); 10348 border-radius: calc(var(--wui-spacing-2l) / 2); 10349 overflow: hidden; 10350 box-shadow: 10351 0 0 0 3px var(--wui-color-gray-glass-002), 10352 0 0 0 3px var(--wui-color-modal-bg); 10353 } 10354`,od=function(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};let oh=class extends em{constructor(){super(...arguments),this.networkImages=[""],this.text=""}render(){return Q` 10355 <button ontouchstart> 10356 <wui-text variant="small-400" color="fg-200">${this.text}</wui-text> 10357 <wui-flex gap="3xs" alignItems="center"> 10358 ${this.networksTemplate()} 10359 <wui-icon name="chevronRight" size="sm" color="fg-200"></wui-icon> 10360 </wui-flex> 10361 </button> 10362 `}networksTemplate(){let e=this.networkImages.slice(0,5);return Q` <wui-flex class="networks"> 10363 ${e?.map(e=>Q` <wui-flex class="network-icon"> <wui-image src=${e}></wui-image> </wui-flex>`)} 10364 </wui-flex>`}};oh.styles=[eS,eT,ou],od([eD({type:Array})],oh.prototype,"networkImages",void 0),od([eD()],oh.prototype,"text",void 0),oh=od([eR("wui-compatible-network")],oh);var of=h` 10365 wui-flex { 10366 width: 100%; 10367 background-color: var(--wui-color-gray-glass-005); 10368 border-radius: var(--wui-border-radius-s); 10369 padding: var(--wui-spacing-1xs) var(--wui-spacing-s) var(--wui-spacing-1xs) 10370 var(--wui-spacing-1xs); 10371 } 10372`,op=function(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};let og=class extends em{constructor(){super(...arguments),this.icon="externalLink",this.text=""}render(){return Q` 10373 <wui-flex gap="1xs" alignItems="center"> 10374 <wui-icon-box 10375 size="sm" 10376 iconcolor="fg-200" 10377 backgroundcolor="fg-200" 10378 icon=${this.icon} 10379 background="transparent" 10380 ></wui-icon-box> 10381 <wui-text variant="small-400" color="fg-200">${this.text}</wui-text> 10382 </wui-flex> 10383 `}};og.styles=[eS,eT,of],op([eD()],og.prototype,"icon",void 0),op([eD()],og.prototype,"text",void 0),og=op([eR("wui-banner")],og);var om=h` 10384 wui-flex { 10385 width: 100%; 10386 background-color: var(--wui-color-gray-glass-005); 10387 border-radius: var(--wui-border-radius-m); 10388 padding: var(--wui-spacing-1xs) var(--wui-spacing-s) var(--wui-spacing-1xs) 10389 var(--wui-spacing-1xs); 10390 } 10391`,ow=function(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};let ob=class extends em{constructor(){super(...arguments),this.imageSrc="",this.text="",this.size=""}render(){return Q` 10392 <wui-flex gap="1xs" alignItems="center"> 10393 <wui-avatar size=${this.size} imageSrc=${this.imageSrc}></wui-avatar> 10394 <wui-text variant="small-400" color="fg-200">${this.text}</wui-text> 10395 </wui-flex> 10396 `}};ob.styles=[eS,eT,om],ow([eD()],ob.prototype,"imageSrc",void 0),ow([eD()],ob.prototype,"text",void 0),ow([eD()],ob.prototype,"size",void 0),ob=ow([eR("wui-banner-img")],ob);var ov=h` 10397 button { 10398 padding: 6.5px var(--wui-spacing-l) 6.5px var(--wui-spacing-xs); 10399 display: flex; 10400 justify-content: space-between; 10401 width: 100%; 10402 border-radius: var(--wui-border-radius-xs); 10403 background-color: var(--wui-color-gray-glass-002); 10404 } 10405 10406 button[data-clickable='false'] { 10407 pointer-events: none; 10408 background-color: transparent; 10409 } 10410 10411 wui-image, 10412 wui-icon { 10413 width: var(--wui-spacing-3xl); 10414 height: var(--wui-spacing-3xl); 10415 } 10416 10417 wui-image { 10418 border-radius: var(--wui-border-radius-3xl); 10419 } 10420`,oy=function(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};let oC=class extends em{constructor(){super(...arguments),this.tokenName="",this.tokenImageUrl="",this.tokenValue=0,this.tokenAmount="0.0",this.tokenCurrency="",this.clickable=!1}render(){return Q` 10421 <button data-clickable=${String(this.clickable)} ontouchstart> 10422 <wui-flex gap="s" alignItems="center"> 10423 ${this.visualTemplate()} 10424 <wui-flex flexDirection="column" justifyContent="spaceBetween"> 10425 <wui-text variant="paragraph-500" color="fg-100">${this.tokenName}</wui-text> 10426 <wui-text variant="small-400" color="fg-200"> 10427 ${r_.formatNumberToLocalString(this.tokenAmount,4)} ${this.tokenCurrency} 10428 </wui-text> 10429 </wui-flex> 10430 </wui-flex> 10431 <wui-text variant="paragraph-500" color="fg-100">$${this.tokenValue.toFixed(2)}</wui-text> 10432 </button> 10433 `}visualTemplate(){return this.token
10433Name&&this.tokenImageUrl?Q`<wui-image alt=${this.tokenName} src=${this.tokenImageUrl}></wui-image>`:Q`<wui-icon name="coinPlaceholder" color="fg-100"></wui-icon>`}};oC.styles=[eS,eT,ov],oy([eD()],oC.prototype,"tokenName",void 0),oy([eD()],oC.prototype,"tokenImageUrl",void 0),oy([eD({type:Number})],oC.prototype,"tokenValue",void 0),oy([eD()],oC.prototype,"tokenAmount",void 0),oy([eD()],oC.prototype,"tokenCurrency",void 0),oy([eD({type:Boolean})],oC.prototype,"clickable",void 0),oC=oy([eR("wui-list-token")],oC);var ox=h` 10434 button { 10435 width: 100%; 10436 display: flex; 10437 gap: var(--wui-spacing-s); 10438 align-items: center; 10439 justify-content: flex-start; 10440 padding: var(--wui-spacing-s) var(--wui-spacing-m) var(--wui-spacing-s) var(--wui-spacing-s); 10441 background-color: var(--wui-color-gray-glass-002); 10442 border-radius: var(--wui-border-radius-xs); 10443 } 10444 10445 wui-icon-box { 10446 width: var(--wui-spacing-2xl); 10447 height: var(--wui-spacing-2xl); 10448 } 10449 10450 wui-flex { 10451 width: auto; 10452 } 10453`,oA=function(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};let oE=class extends em{constructor(){super(...arguments),this.icon="card",this.text="",this.description="",this.tag=void 0,this.iconBackgroundColor="accent-100",this.iconColor="accent-100",this.disabled=!1}render(){return Q` 10454 <button ontouchstart ?disabled=${this.disabled}> 10455 <wui-icon-box 10456 iconColor=${this.iconColor} 10457 backgroundColor=${this.iconBackgroundColor} 10458 size="inherit" 10459 icon=${this.icon} 10460 iconSize="md" 10461 ></wui-icon-box> 10462 <wui-flex flexDirection="column" justifyContent="spaceBetween"> 10463 ${this.titleTemplate()} 10464 <wui-text variant="small-400" color="fg-200"> ${this.description}</wui-text></wui-flex 10465 > 10466 </button> 10467 `}titleTemplate(){return this.tag?Q` <wui-flex alignItems="center" gap="xxs" 10468 ><wui-text variant="paragraph-500" color="fg-100">${this.text}</wui-text 10469 ><wui-tag tagType="main" size="md">${this.tag}</wui-tag> 10470 </wui-flex>`:Q`<wui-text variant="paragraph-500" color="fg-100">${this.text}</wui-text>`}};oE.styles=[eS,eT,ox],oA([eD()],oE.prototype,"icon",void 0),oA([eD()],oE.prototype,"text",void 0),oA([eD()],oE.prototype,"description",void 0),oA([eD()],oE.prototype,"tag",void 0),oA([eD()],oE.prototype,"iconBackgroundColor",void 0),oA([eD()],oE.prototype,"iconColor",void 0),oA([eD({type:Boolean})],oE.prototype,"disabled",void 0),oE=oA([eR("wui-list-description")],oE);var ok=h` 10471 :host { 10472 position: relative; 10473 display: inline-block; 10474 } 10475 10476 input { 10477 background: transparent; 10478 width: 100%; 10479 height: auto; 10480 font-family: var(--wui-font-family); 10481 color: var(--wui-color-fg-100); 10482 10483 font-feature-settings: 'case' on; 10484 font-size: 32px; 10485 font-weight: var(--wui-font-weight-light); 10486 caret-color: var(--wui-color-accent-100); 10487 line-height: 130%; 10488 letter-spacing: -1.28px; 10489 box-sizing: border-box; 10490 -webkit-appearance: none; 10491 -moz-appearance: textfield; 10492 padding: 0px; 10493 } 10494 10495 input::-webkit-outer-spin-button, 10496 input::-webkit-inner-spin-button { 10497 -webkit-appearance: none; 10498 margin: 0; 10499 } 10500 10501 input::placeholder { 10502 color: var(--wui-color-fg-275); 10503 } 10504`;let o_=/[.*+?^${}()|[\]\\]/gu,oS=/[0-9,.]/u;var oT=function(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};let oI=class extends em{constructor(){super(...arguments),this.inputElementRef=nk(),this.disabled=!1,this.value="",this.placeholder="0"}render(){return this.inputElementRef?.value&&this.value&&(this.inputElementRef.value.value=this.value),Q`<input 10505 ${nT(this.inputElementRef)} 10506 type="text" 10507 inputmode="decimal" 10508 pattern="[0-9,.]*" 10509 placeholder=${this.placeholder} 10510 ?disabled=${this.disabled} 10511 autofocus 10512 value=${this.value??""}
10513 @input=${this.dispatchInputChangeEvent.bind(this)} 10514 /> `}dispatchInputChangeEvent(e){let t=e.data;if(t&&this.inputElementRef?.value){if(","===t){let e=this.inputElementRef.value.value.replace(",",".");this.inputElementRef.value.value=e,this.value=`${this.value}${e}`}else oS.test(t)||(this.inputElementRef.value.value=this.value.replace(RegExp(t.replace(o_,"\\$&"),"gu"),""))}this.dispatchEvent(new CustomEvent("inputChange",{detail:this.inputElementRef.value?.value,bubbles:!0,composed:!0}))}};oI.styles=[eS,eT,ok],oT([eD({type:Boolean})],oI.prototype,"disabled",void 0),oT([eD({type:String})],oI.prototype,"value",void 0),oT([eD({type:String})],oI.prototype,"placeholder",void 0),oI=oT([eR("wui-input-amount")],oI);var oR=h` 10515 :host { 10516 display: flex; 10517 gap: var(--wui-spacing-xs); 10518 border-radius: var(--wui-border-radius-3xl); 10519 border: 1px solid var(--wui-color-gray-glass-002); 10520 background: var(--wui-color-gray-glass-002); 10521 padding: var(--wui-spacing-2xs) var(--wui-spacing-xs) var(--wui-spacing-2xs) 10522 var(--wui-spacing-s); 10523 align-items: center; 10524 } 10525 10526 wui-avatar, 10527 wui-icon, 10528 wui-image { 10529 width: 32px; 10530 height: 32px; 10531 border: 1px solid var(--wui-color-gray-glass-002); 10532 border-radius: var(--wui-border-radius-3xl); 10533 box-shadow: 0 0 0 2px var(--wui-color-gray-glass-002); 10534 } 10535`,oO=function(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};let oP=class extends em{constructor(){super(...arguments),this.text="",this.address="",this.isAddress=!1}render(){return Q`<wui-text variant="large-500" color="fg-100">${this.text}</wui-text> 10536 ${this.imageTemplate()}`}imageTemplate(){return this.isAddress?Q`<wui-avatar address=${this.address} .imageSrc=${this.imageSrc}></wui-avatar>`:this.imageSrc?Q`<wui-image src=${this.imageSrc}></wui-image>`:Q`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};oP.styles=[eS,eT,oR],oO([eD()],oP.prototype,"text",void 0),oO([eD()],oP.prototype,"address",void 0),oO([eD()],oP.prototype,"imageSrc",void 0),oO([eD({type:Boolean})],oP.prototype,"isAddress",void 0),oP=oO([eR("wui-preview-item")],oP);var oN=h` 10537 button { 10538 padding: 6.5px var(--wui-spacing-l) 6.5px var(--wui-spacing-xs); 10539 display: flex; 10540 justify-content: space-between; 10541 width: 100%; 10542 border-radius: var(--wui-border-radius-xs); 10543 background-color: var(--wui-color-gray-glass-002); 10544 } 10545 10546 button[data-clickable='false'] { 10547 pointer-events: none; 10548 background-color: transparent; 10549 } 10550 10551 wui-image { 10552 width: var(--wui-spacing-3xl); 10553 height: var(--wui-spacing-3xl); 10554 border-radius: var(--wui-border-radius-3xl); 10555 } 10556 10557 wui-avatar { 10558 width: var(--wui-spacing-3xl); 10559 height: var(--wui-spacing-3xl); 10560 box-shadow: 0 0 0 0; 10561 } 10562 .address { 10563 color: var(--wui-color-fg-base-100); 10564 } 10565 .address-description { 10566 text-transform: capitalize; 10567 color: var(--wui-color-fg-base-200); 10568 } 10569 10570 wui-icon-box { 10571 position: relative; 10572 right: 15px; 10573 top: 15px; 10574 border: 2px solid var(--wui-color-bg-150); 10575 background-color: var(--wui-color-bg-125); 10576 } 10577`,oM=r(31083),oD=function(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};let oB=class extends em{constructor(){super(...arguments),this.accountAddress="",this.accountType="",this.connectedConnector=oi.MO.getConnectedConnector(),this.labels=oi.AccountController.state.addressLabels,this.caipNetwork=oi.fB.state.caipNetwork,this.socialProvider=oi.MO.getConnectedSocialProvider(),this.balance=0,this.fetchingBalance=!0,this.shouldShowIcon=!1,this.selected=!1}connectedCallback(){super.connectedCallback(),oi.Lr.getBalance(this.accountAddress,this.caipNetwork?.id).then(e=>{let t=this.balance;e.balances.length>0&&(t=e.balances.reduce((e,t)=>
10577e+(t?.value||0),0)),this.balance=t,this.fetchingBalance=!1,this.requestUpdate()})}render(){let e=this.getLabel();return this.shouldShowIcon="AUTH"===this.connectedConnector,Q` 10578 <wui-flex 10579 flexDirection="row" 10580 justifyContent="space-between" 10581 .padding=${["0","0","s","1xs"]} 10582 > 10583 <wui-flex gap="md" alignItems="center"> 10584 <wui-avatar address=${this.accountAddress}></wui-avatar> 10585 ${this.shouldShowIcon?Q`<wui-icon-box 10586 size="sm" 10587 iconcolor="fg-200" 10588 backgroundcolor="fg-300" 10589 icon=${this.accountType===oM.y_.ACCOUNT_TYPES.EOA?this.socialProvider??"mail":"lightbulb"} 10590 background="fg-300" 10591 ></wui-icon-box>`:Q`<wui-flex .padding="${["0","0","0","s"]}"></wui-flex>`} 10592 <wui-flex flexDirection="column"> 10593 <wui-text class="address" variant="paragraph-500" color="fg-100" 10594 >${r_.getTruncateString({string:this.accountAddress,charsStart:4,charsEnd:6,truncate:"middle"})}</wui-text 10595 > 10596 <wui-text class="address-description" variant="small-400">${e}</wui-text></wui-flex 10597 > 10598 </wui-flex> 10599 <wui-flex gap="s" alignItems="center"> 10600 ${this.fetchingBalance?Q`<wui-loading-spinner size="sm" color="accent-100"></wui-loading-spinner>`:Q` <wui-text variant="small-400">$${this.balance.toFixed(2)}</wui-text>`} 10601 <slot name="action"></slot> 10602 </wui-flex> 10603 </wui-flex> 10604 `}getLabel(){let e=this.labels?.get(this.accountAddress);return e||"AUTH"!==this.connectedConnector?(e||"INJECTED"!==this.connectedConnector)&&"ANNOUNCED"!==this.connectedConnector?e||(e="EOA"):e="Injected Account":e=`${"eoa"===this.accountType?this.socialProvider??"Email":"Smart"} Account`,e}};oB.styles=[eS,eT,oN],oD([eD()],oB.prototype,"accountAddress",void 0),oD([eD()],oB.prototype,"accountType",void 0),oD([eD({type:Boolean})],oB.prototype,"selected",void 0),oD([eD({type:Function})],oB.prototype,"onSelect",void 0),oB=oD([eR("wui-list-account")],oB);var o$=h` 10605 :host { 10606 position: relative; 10607 } 10608 10609 button { 10610 display: flex; 10611 justify-content: center; 10612 align-items: center; 10613 height: 48px; 10614 width: 100%; 10615 background-color: var(--wui-color-accent-glass-010); 10616 border-radius: var(--wui-border-radius-xs); 10617 border: 1px solid var(--wui-color-accent-glass-010); 10618 transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md); 10619 will-change: background-color; 10620 } 10621 10622 wui-tooltip { 10623 padding: 7px var(--wui-spacing-s) 8px var(--wui-spacing-s); 10624 position: absolute; 10625 top: -8px; 10626 left: 50%; 10627 transform: translate(-50%, -100%); 10628 opacity: 0; 10629 display: none; 10630 } 10631 10632 @media (hover: hover) and (pointer: fine) { 10633 button:hover:enabled { 10634 background-color: var(--wui-color-accent-glass-015); 10635 } 10636 10637 button:active:enabled { 10638 background-color: var(--wui-color-accent-glass-020); 10639 } 10640 } 10641`,oU=function(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};let oL=class extends em{constructor(){super(...arguments),this.text="",this.icon="card"}render(){return Q`<button> 10642 <wui-icon color="accent-100" name=${this.icon} size="lg"></wui-icon> 10643 </button>`}};oL.styles=[eS,eT,o$],oU([eD()],oL.prototype,"text",void 0),oU([eD()],oL.prototype,"icon",void 0),oL=oU([eR("wui-icon-button")],oL);var oj=h` 10644 button { 10645 column-gap: var(--wui-spacing-s); 10646 padding: 16.5px var(--wui-spacing-l) 16.5px var(--wui-spacing-xs); 10647 width: 100%; 10648 background-color: var(--wui-color-gray-glass-002); 10649 border-radius: var(--wui-border-radius-xs); 10650 color: var(--wui-color-fg-100); 10651 justify-content: center; 10652 align-items: center; 10653 } 10654 10655 button:disabled { 10656 background-color: var(--wui-color-gray-glass-015); 10657 color: var(--wui-color-gray-glass-015); 10658 } 10659`,oz=function(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};
10659let oF=class extends em{constructor(){super(...arguments),this.text="",this.disabled=!1}render(){return Q` 10660 <button ?disabled=${this.disabled} ontouchstart> 10661 <wui-text align="center" variant="paragraph-500" color="inherit">${this.text}</wui-text> 10662 </button> 10663 `}};oF.styles=[eS,eT,oj],oz([eD()],oF.prototype,"text",void 0),oz([eD({type:Boolean})],oF.prototype,"disabled",void 0),oF=oz([eR("wui-list-button")],oF);var oH=h` 10664 button { 10665 column-gap: var(--wui-spacing-s); 10666 padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs); 10667 width: 100%; 10668 justify-content: flex-start; 10669 background-color: var(--wui-color-gray-glass-002); 10670 border-radius: var(--wui-border-radius-xs); 10671 color: var(--wui-color-fg-100); 10672 } 10673 10674 wui-text { 10675 text-transform: capitalize; 10676 } 10677 10678 wui-text[data-align='left'] { 10679 display: flex; 10680 flex: 1; 10681 } 10682 10683 wui-text[data-align='center'] { 10684 display: flex; 10685 flex: 1; 10686 justify-content: center; 10687 } 10688 10689 .invisible { 10690 opacity: 0; 10691 pointer-events: none; 10692 } 10693 10694 button:disabled { 10695 background-color: var(--wui-color-gray-glass-015); 10696 color: var(--wui-color-gray-glass-015); 10697 } 10698`,oq=function(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};let oW=class extends em{constructor(){super(...arguments),this.logo="google",this.name="Continue with google",this.align="left",this.disabled=!1}render(){return Q` 10699 <button ?disabled=${this.disabled} ontouchstart> 10700 <wui-logo logo=${this.logo}></wui-logo> 10701 <wui-text 10702 data-align=${this.align} 10703 variant="paragraph-500" 10704 color="inherit" 10705 align=${this.align} 10706 >${this.name}</wui-text 10707 > 10708 ${this.templatePlacement()} 10709 </button> 10710 `}templatePlacement(){return"center"===this.align?Q` <wui-logo class="invisible" logo=${this.logo}></wui-logo>`:null}};oW.styles=[eS,eT,oH],oq([eD()],oW.prototype,"logo",void 0),oq([eD()],oW.prototype,"name",void 0),oq([eD()],oW.prototype,"align",void 0),oq([eD({type:Boolean})],oW.prototype,"disabled",void 0),oW=oq([eR("wui-list-social")],oW);var oV=h` 10711 :host { 10712 display: grid; 10713 width: inherit; 10714 height: inherit; 10715 } 10716`,oZ=function(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};let oG=class extends em{render(){return this.style.cssText=` 10717 grid-template-rows: ${this.gridTemplateRows}; 10718 grid-template-columns: ${this.gridTemplateColumns}; 10719 justify-items: ${this.justifyItems}; 10720 align-items: ${this.alignItems}; 10721 justify-content: ${this.justifyContent}; 10722 align-content: ${this.alignContent}; 10723 column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`}; 10724 row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`}; 10725 gap: ${this.gap&&`var(--wui-spacing-${this.gap})`}; 10726 padding-top: ${this.padding&&r_.getSpacingStyles(this.padding,0)}; 10727 padding-right: ${this.padding&&r_.getSpacingStyles(this.padding,1)}; 10728 padding-bottom: ${this.padding&&r_.getSpacingStyles(this.padding,2)}; 10729 padding-left: ${this.padding&&r_.getSpacingStyles(this.padding,3)}; 10730 margin-top: ${this.margin&&r_.getSpacingStyles(this.margin,0)}; 10731 margin-right: ${this.margin&&r_.getSpacingStyles(this.margin,1)}; 10732 margin-bottom: ${this.margin&&r_.getSpacingStyles(this.margin,2)}; 10733 margin-left: ${this.margin&&r_.getSpacingStyles(this.margin,3)}; 10734 `,Q`<slot></slot>`}};oG.styles=[eS,oV],oZ([eD()],oG.prototype,"gridTemplateRows",void 0),oZ([eD()],oG.prototype,"gridTemplateColumns",void 0),oZ([eD()],oG.prototype,"justifyItems",void 0),oZ([eD()],oG.prototype,"alignItems",void 0),oZ([eD()],oG.prototype,"justifyContent",void 0),oZ([eD()],oG.prototype,"alignContent",void 0),oZ([eD()],oG.prototype,"columnGap",void 0),oZ([eD()],oG.prototype,"rowGap",void 0),oZ([eD()],oG.prototype,"gap",void 0),oZ([eD()],oG.prototype,"padding",void 0),oZ([eD()],oG.prototype,"margin",void 0),oG=oZ([eR("wui-grid")],oG);var oK=h` 10735 :host { 10736 position: relative; 10737 display: flex; 10738 width: 100%; 10739 height: 1px; 10740 background-color: var(--wui-color-gray-glass-005); 10741 justify-content: center;
10742 align-items: center; 10743 } 10744 10745 :host > wui-text { 10746 position: absolute; 10747 padding: 0px 10px; 10748 background-color: var(--wui-color-modal-bg); 10749 } 10750`,oY=function(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};let oQ=class extends em{constructor(){super(...arguments),this.text=""}render(){return Q`${this.template()}`}template(){return this.text?Q`<wui-text variant="small-500" color="fg-200">${this.text}</wui-text>`:null}};oQ.styles=[eS,oK],oY([eD()],oQ.prototype,"text",void 0),oQ=oY([eR("wui-separator")],oQ);let oJ={interpolate(e,t,r){if(2!==e.length||2!==t.length)throw Error("inputRange and outputRange must be an array of length 2");let n=e[0]||0,i=e[1]||0,o=t[0]||0,a=t[1]||0;return r<n?o:r>i?a:(a-o)/(i-n)*(r-n)+o}},oX=["receive","deposit","borrow","claim"],o0=["withdraw","repay","burn"],o1={getMonthName(e){let t=new Date;return t.setMonth(e),t.toLocaleString("en-US",{month:"long"})},getTransactionGroupTitle(e,t){let r=ex.Em.getYear(),n=this.getMonthName(t);return e===r?n:`${n} ${e}`},getTransactionImages(e){let[t,r]=e,n=!!t&&e?.every(e=>!!e.nft_info),i=e?.length>1;return e?.length!==2||n?i?e.map(e=>this.getTransactionImage(e)):[this.getTransactionImage(t)]:[this.getTransactionImage(t),this.getTransactionImage(r)]},getTransactionImage:e=>({type:o1.getTransactionTransferTokenType(e),url:o1.getTransactionImageURL(e)}),getTransactionImageURL(e){let t;let r=!!e?.nft_info,n=!!e?.fungible_info;return e&&r?t=e?.nft_info?.content?.preview?.url:e&&n&&(t=e?.fungible_info?.icon?.url),t},getTransactionTransferTokenType:e=>e?.fungible_info?"FUNGIBLE":e?.nft_info?"NFT":void 0,getTransactionDescriptions(e){let t=e?.metadata?.operationType,r=e?.transfers,n=e?.transfers?.length>0,i=e?.transfers?.length>1,o=n&&r?.every(e=>!!e?.fungible_info),[a,s]=r,c=this.getTransferDescription(a);if(this.getTransferDescription(s),!n)return("send"===t||"receive"===t)&&o?[c=r_.getTruncateString({string:e?.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),r_.getTruncateString({string:e?.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"})]:[e.metadata.status];if(i)return r.map(e=>this.getTransferDescription(e));let l="";return oX.includes(t)?l="+":o0.includes(t)&&(l="-"),[c=l.concat(c)]},getTransferDescription(e){let t="";return e&&(e?.nft_info?t=e?.nft_info?.name||"-":e?.fungible_info&&(t=this.getFungibleTransferDescription(e)||"-")),t},getFungibleTransferDescription(e){return e?[this.getQuantityFixedValue(e?.quantity.numeric),e?.fungible_info?.symbol].join(" ").trim():null},getQuantityFixedValue:e=>e?parseFloat(e).toFixed(3):null}},44389:function(e,t,r){"use strict";let n;r.d(t,{o:function(){return M}}),r(87336);var i=r(72688);let o=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)},a=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>a(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>a(t)(e)}}},s=(e,t)=>(r,n,i)=>{let o,s,c={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},l=!1,u=new Set,d=new Set;try{o=c.getStorage()}catch(e){}if(!o)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),r(...e)},n,i);let h=a(c.serialize),f=()=>{let e;let t=h({state:c.partialize({...n()}),version:c.version}).then(e=>o.setItem(c.name,e)).catch(t=>{e=t});if(e)throw e;return t},p=i.setState;i.setState=(e,t)=>{p(e,t),f()};let g=e((...e)=>{r(...e),f()},n,i),m=()=>{var e;if(!o)return;l=!1,u.forEach(e=>e(n()));let t=(null==(e=c.onRehydrateStorage)?void 0:e.call(c,n()))||void 0;return a(o.getItem.bind(o))(c.name).then(e=>{if(e)return c.deserialize(e)}).then(e=>
10750{if(e){if("number"!=typeof e.version||e.version===c.version)return e.state;if(c.migrate)return c.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(s=c.merge(e,null!=(t=n())?t:g),!0),f()}).then(()=>{null==t||t(s,void 0),l=!0,d.forEach(e=>e(s))}).catch(e=>{null==t||t(void 0,e)})};return i.persist={setOptions:e=>{c={...c,...e},e.getStorage&&(o=e.getStorage())},clearStorage:()=>{null==o||o.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>m(),hasHydrated:()=>l,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},m(),s||g},c=(e,t)=>(r,n,i)=>{let o,s={storage:function(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var t;let n=e=>null===e?null:JSON.parse(e,void 0),i=null!=(t=r.getItem(e))?t:null;return i instanceof Promise?i.then(n):n(i)},setItem:(e,t)=>r.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>r.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},c=!1,l=new Set,u=new Set,d=s.storage;if(!d)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 h=()=>{let e=s.partialize({...n()});return d.setItem(s.name,{state:e,version:s.version})},f=i.setState;i.setState=(e,t)=>{f(e,t),h()};let p=e((...e)=>{r(...e),h()},n,i),g=()=>{var e,t;if(!d)return;c=!1,l.forEach(e=>{var t;return e(null!=(t=n())?t:p)});let i=(null==(t=s.onRehydrateStorage)?void 0:t.call(s,null!=(e=n())?e:p))||void 0;return a(d.getItem.bind(d))(s.name).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(o=s.merge(e,null!=(t=n())?t:p),!0),h()}).then(()=>{null==i||i(o,void 0),o=n(),c=!0,u.forEach(e=>e(o))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{s={...s,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>g(),hasHydrated:()=>c,onHydrate:e=>(l.add(e),()=>{l.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},s.skipHydration||g(),o||p},l=(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."),s(e,t)):c(e,t),u=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)?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},d=e=>e?u(e):u;var h=r(99112),f=r(96329),p=r(13581),g=r(55894),m=r(95046),w=r(85770),b=r(50571);let v=/(rabby|trustwallet)/,y={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>e?.coinbaseWalletExtension?e.coinbaseWalletExtension:x(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>x(e,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;for(let t of["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPortal","isRabby","isTokenPocket","isTokenary","isZerion"])if(e[t])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider:e=>e?.phantom?.ethereum?e.phantom?.ethereum:x(e,"isPhantom")}};function C(e={}){let t,r,n,i;let{shimDisconnect:o=!0,unstable_shimAsyncInject:a}=e;function s(){let t=e.target;if("function"==typeof t){let e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...y[t]??{id:t,name:`${t[0].toUpperCase()}${t.slice(1)}`,provider:`is${t[0].toUpperCase()}${t.slice(1)}`}}:{id:"injected",name:"Injected",provider:e=>e?.ethereum}}return c=>({get icon(){return s().icon},get id(){return s().id},get name(){return s().name},get supportsSimulation(){return v.test(this.id.toLowerCase())},type:C.type,async setup(){let r=await this.getProvider();r&&e.target&&(n||(n=this.onConnect.bind(this),r.on("connect",n)),t||(t=this.onAccountsChanged.bind(this),r.on("accountsChanged",t)))},async connect({chainId:a,isReconnecting:s}={}){let l=await this.getProvider();if(!l)throw new b.M;let u=[];
10750if(s)u=await this.getAccounts().catch(()=>[]);else if(o)try{let e=await l.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});(u=e[0]?.caveats?.[0]?.value?.map(e=>h.K(e))).length>0&&(u=await this.getAccounts())}catch(e){if(e.code===f.ab.code)throw new f.ab(e);if(e.code===f.pT.code)throw e}try{u?.length||s||(u=(await l.request({method:"eth_requestAccounts"})).map(e=>(0,h.K)(e))),n&&(l.removeListener("connect",n),n=void 0),t||(t=this.onAccountsChanged.bind(this),l.on("accountsChanged",t)),r||(r=this.onChainChanged.bind(this),l.on("chainChanged",r)),i||(i=this.onDisconnect.bind(this),l.on("disconnect",i));let d=await this.getChainId();if(a&&d!==a){let e=await this.switchChain({chainId:a}).catch(e=>{if(e.code===f.ab.code)throw e;return{id:d}});d=e?.id??d}return o&&await c.storage?.removeItem(`${this.id}.disconnected`),e.target||await c.storage?.setItem("injected.connected",!0),{accounts:u,chainId:d}}catch(e){if(e.code===f.ab.code)throw new f.ab(e);if(e.code===f.pT.code)throw new f.pT(e);throw e}},async disconnect(){let t=await this.getProvider();if(!t)throw new b.M;r&&(t.removeListener("chainChanged",r),r=void 0),i&&(t.removeListener("disconnect",i),i=void 0),n||(n=this.onConnect.bind(this),t.on("connect",n));try{await (0,p.F)(()=>t.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}o&&await c.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await c.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new b.M;return(await e.request({method:"eth_accounts"})).map(e=>(0,h.K)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new b.M;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("undefined"==typeof window)return;let t=s();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?x(window,t.provider):t.provider)&&!e.removeListener&&("off"in e&&"function"==typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e},async isAuthorized(){try{if(o&&await c.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await c.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(void 0!==a&&!1!==a){let e=async()=>("undefined"!=typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof a?a:1e3;if(await Promise.race([..."undefined"!=typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(r=>setTimeout(()=>r(e()),t))]))return!0}throw new b.M}return!!(await (0,g.J)(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let r=await this.getProvider();if(!r)throw new b.M;let n=c.chains.find(e=>e.id===t);if(!n)throw new f.x3(new w.X4);try{return await Promise.all([r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,m.eC)(t)}]}).then(async()=>{await this.getChainId()===t&&c.emitter.emit("change",{chainId:t})}),new Promise(e=>c.emitter.once("change",({chainId:r})=>{r===t&&e()}))]),n}catch(i){if(4902===i.code||i?.data?.originalError?.code===4902)try{let i,o;let{default:a,...s}=n.blockExplorers??{};e?.blockExplorerUrls?i=e.blockExplorerUrls:a&&(i=[a.url,...Object.values(s).map(e=>e.url)]),o=e?.rpcUrls?.length?e.rpcUrls:[n.rpcUrls.default?.http[0]??""];let c={blockExplorerUrls:i,chainId:(0,m.eC)(t),chainName:e?.chainName??n.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??n.nativeCurrency,rpcUrls:o};if(await r.request({method:"wallet_addEthereumChain",params:[c]}),await this.getChainId()!==t)throw new f.ab(Error("User rejected switch after adding network."));return n}catch(e){throw new f.ab(e)}if(i.code===f.ab.code)throw new f.ab(i);throw new f.x3(i)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(c.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),o&&await c.storage?.removeItem(`${this.id}.disconnected`)}else c.emitter.emit("change",{accounts:e.map(e=>(0,h.K)(e))})},onChainChanged(e){let t=Number(e);c.emitter.emit("change",{chainId:t})},async onConnect(e){let o=await this.getAccounts();if(0===o.length)return;let a=Number(e.chainId);c.emitter.emit("connect",{accounts:o,chainId:a});let s=await this.getProvider();s&&(n&&(s.removeListener("connect",n),n=void 0),t||(t=this.onAccountsChanged.bind(this),s.on("accountsChanged",t)),r||(r=this.onChainChanged.bind(this),s.on("chainChanged",r)),i||(i=this.onDisconnect.bind(this),s.on("disconnect",i)))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(c.emitter.emit("disconnect"),t&&(r&&(t.removeListener("chainChanged",r),r=void 0),i&&(t.removeListener("disconnect",i),i=void 0),n||(n=this.onConnect.bind(this),t.on("connect",n))))}})}function x(e,t){function r(e){return"function"==typeof t?t(e):"str
10750ing"!=typeof t||e[t]}let n=e.ethereum;return n?.providers?n.providers.find(e=>r(e)):n&&r(n)?n:void 0}C.type="injected";var A=r(37836);class E{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new A})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e,...t){let r=t[0];this._emitter.emit(e,{uid:this.uid,...r})}listenerCount(e){return this._emitter.listenerCount(e)}}var k=r(32048);let _=256;var S=r(52520);function T(e){let t,n,i,o,a,s,c,l;let u=e.isNewChainsStale??!0;return d=>({id:"walletConnect",name:"WalletConnect",type:T.type,async setup(){let e=await this.getProvider().catch(()=>null);e&&(a||(a=this.onConnect.bind(this),e.on("connect",a)),c||(c=this.onSessionDelete.bind(this),e.on("session_delete",c)))},async connect({chainId:e,...t}={}){try{let r=await this.getProvider();if(!r)throw new b.M;s||(s=this.onDisplayUri,r.on("display_uri",s));let n=e;if(!n){let e=await d.storage?.getItem("state")??{};n=d.chains.some(t=>t.id===e.chainId)?e.chainId:d.chains[0]?.id}if(!n)throw Error("No chains found on connector.");let u=await this.isChainsStale();if(r.session&&u&&await r.disconnect(),!r.session||u){let e=d.chains.filter(e=>e.id!==n).map(e=>e.id);await r.connect({optionalChains:[n,...e],..."pairingTopic"in t?{pairingTopic:t.pairingTopic}:{}}),this.setRequestedChainsIds(d.chains.map(e=>e.id))}let f=(await r.enable()).map(e=>(0,h.K)(e)),p=await this.getChainId();return s&&(r.removeListener("display_uri",s),s=void 0),a&&(r.removeListener("connect",a),a=void 0),i||(i=this.onAccountsChanged.bind(this),r.on("accountsChanged",i)),o||(o=this.onChainChanged.bind(this),r.on("chainChanged",o)),l||(l=this.onDisconnect.bind(this),r.on("disconnect",l)),c||(c=this.onSessionDelete.bind(this),r.on("session_delete",c)),{accounts:f,chainId:p}}catch(e){if(/(user rejected|connection request reset)/i.test(e?.message))throw new f.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{o&&(e?.removeListener("chainChanged",o),o=void 0),l&&(e?.removeListener("disconnect",l),l=void 0),a||(a=this.onConnect.bind(this),e?.on("connect",a)),i&&(e?.removeListener("accountsChanged",i),i=void 0),c&&(e?.removeListener("session_delete",c),c=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(e=>(0,h.K)(e))},async getProvider({chainId:i}={}){async function o(){let t=d.chains.map(e=>e.id);if(!t.length)return;let{EthereumProvider:n}=await Promise.all([r.e(764),r.e(30)]).then(r.bind(r,18169));return await n.init({...e,disableProviderPing:!0,optionalChains:t,projectId:e.projectId,rpcMap:Object.fromEntries(d.chains.map(e=>{let[t]=function(e){let{chain:t}=e,r=t.rpcUrls.default.http[0];if(!e.transports)return[r];let n=e.transports?.[t.id]?.({chain:t});return(n?.value?.transports||[n]).map(({value:e})=>e?.url||r)}({chain:e,transports:d.transports});return[e.id,t]})),showQrModal:e.showQrModal??!0})}return t||(n||(n=o()),t=await n,t?.events.setMaxListeners(Number.POSITIVE_INFINITY)),i&&await this.switchChain?.({chainId:i}),t},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccounts(),this.getProvider()]);if(!e.length)return!1;if(await this.isChainsStale()&&t.session)return await t.disconnect().catch(()=>{}),!1;return!0}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let r=await this.getProvider();if(!r)throw new b.M;let n=d.chains.find(e=>e.id===t);if(!n)throw new f.x3(new w.X4);try{await Promise.all([new Promise(e=>{let r=({chainId:n})=>{n===t&&(d.emitter.off("change",r),e())};d.emitter.on("change",r)}),r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,m.eC)(t)}]})]);let e=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...e,t]),n}catch(i){if(/(user rejected)/i.test(i.message))throw new f.ab(i);try{let i,o;i=e?.blockExplorerUrls?e.blockExplorerUrls:n.blockExplorers?.default.url?[n.blockExplorers?.default.url]:[],o=e?.rpcUrls?.length?e.rpcUrls:[...n.rpcUrls.default.http];let a={blockExplorerUrls:i,chainId:(0,m.eC)(t),chainName:e?.chainName??n.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??n.nativeCurrency,rpcUrls:o};await r.request({method:"wallet_addEthereumChain",params:[a]});let s=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...s,t]),n}catch(e){throw new f.ab(e)}}},onAccountsChanged(e){0===e.length?this.onDisconnect():d.emitter.emit("change",{accounts:e.map(e=>(0,h.K)(e))})},onChainChanged(e){let t=Number(e);d.emitter.emit("change",{chainId:t})},async onConnect(e){let t=Number(e.chainId),r=await this.getAccounts();d.emitter.emit("connect",{accounts:r,chainId:t})},async onDisconnect(e){this.setRequestedChainsIds([]),d.emitter.emit("disconnect");let t=await this.getProvider();i&&(t.removeListener("accountsChanged",i),i=void 0),o&&(t.removeListener("chainChanged",o),o=void 0),l&&(t.removeListener("disconnect",l),l=void 0),c&&(t.removeListener("session_delete",c),c=void 0),a||(a=this.onConnect.bind(this),t.on("connect",a))},onDisplayUri(e){d.emitter.emit("message",{type:"display_uri",data:e})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds:()=>t?t.session?.namespaces.eip155?.accounts?.map(e=>Number.parseInt(e.split(":")[1]||""))??[]:[],async getRequestedChainsIds(){return await d.storage?.getItem(this.requestedChainsStorageKey)??[]},async isChainsStale(){if(!u)return!1;let e=d.chains.map(e=>e.id),t=this.getNamespaceChainsIds();if(t.length&&!t.some(t=>e.includes(t)))return!1;let r=await this.getRequestedChainsIds();return!e.every(e=>r.includes(e))},async setRequestedChainsIds(e){await d.storage?.setItem(this.requestedChainsStorageKey,e)},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}})}function I(e={}){let t,n,i,o,a,s,c,l,u;return"3"===e.version||e.headlessMode?s=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",supportsSimulation:!0,type:I.type,async connect({chainId:e}={}){try{let t=await this.getProvider(),r=(await t.request({method:"eth_requestAccounts"})).map(e=>(0,h.K)(e));i||(i=this.onAccountsChanged.bind(this),t.on("accountsChanged",i)),o||(o=this.onChainChanged.bind(this),t.on("chainChanged",o)),a||(a=this.onDisconnect.bind(this),t.on("disconnect",a));let n=await this.getChainId();if(e&&n!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===f.ab.code)throw e;return{id:n}});n=t?.id??n}return{accounts:r,chainId:n}}catch(e){if(/(user closed modal|accounts received is empty|user denied account)/i.test(e.message))throw new f.ab(e);throw e}},async disconnect(){let e=await this.getProvider();i&&(e.removeListener("accountsChanged",i),i=void 0),o&&(e.removeListener("chainChanged",o),o=void 0),a&&(e.removeListener("disconnect",a),a=void 0),e.disconnect(),e.close()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,h.K)(e))},async getChainId(){let e=await this.getProvider();return Number(await e.request({method:"eth_chainId"}))}
10750,async getProvider(){if(!n){t=new(await (async()=>{let{default:e}=await Promise.all([r.e(722),r.e(171),r.e(381),r.e(753)]).then(r.t.bind(r,9381,19));return"function"!=typeof e&&"function"==typeof e.default?e.default:e})())({...e,reloadOnDisconnect:!1});let i=t.walletExtension?.getChainId(),o=s.chains.find(t=>e.chainId?t.id===e.chainId:t.id===i)||s.chains[0],a=e.chainId||o?.id,c=e.jsonRpcUrl||o?.rpcUrls.default.http[0];n=t.makeWeb3Provider(c,a)}return n},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let r=s.chains.find(e=>e.id===t);if(!r)throw new f.x3(new w.X4);let n=await this.getProvider();try{return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,m.eC)(r.id)}]}),r}catch(i){if(4902===i.code)try{let i,o;i=e?.blockExplorerUrls?e.blockExplorerUrls:r.blockExplorers?.default.url?[r.blockExplorers?.default.url]:[],o=e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""];let a={blockExplorerUrls:i,chainId:(0,m.eC)(t),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:o};return await n.request({method:"wallet_addEthereumChain",params:[a]}),r}catch(e){throw new f.ab(e)}throw new f.x3(i)}},onAccountsChanged(e){0===e.length?this.onDisconnect():s.emitter.emit("change",{accounts:e.map(e=>(0,h.K)(e))})},onChainChanged(e){let t=Number(e);s.emitter.emit("change",{chainId:t})},async onDisconnect(e){s.emitter.emit("disconnect");let t=await this.getProvider();i&&(t.removeListener("accountsChanged",i),i=void 0),o&&(t.removeListener("chainChanged",o),o=void 0),a&&(t.removeListener("disconnect",a),a=void 0)}}):t=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",supportsSimulation:!0,type:I.type,async connect({chainId:e}={}){try{let t=await this.getProvider(),r=(await t.request({method:"eth_requestAccounts"})).map(e=>(0,h.K)(e));c||(c=this.onAccountsChanged.bind(this),t.on("accountsChanged",c)),l||(l=this.onChainChanged.bind(this),t.on("chainChanged",l)),u||(u=this.onDisconnect.bind(this),t.on("disconnect",u));let n=await this.getChainId();if(e&&n!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===f.ab.code)throw e;return{id:n}});n=t?.id??n}return{accounts:r,chainId:n}}catch(e){if(/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(e.message))throw new f.ab(e);throw e}},async disconnect(){let e=await this.getProvider();c&&(e.removeListener("accountsChanged",c),c=void 0),l&&(e.removeListener("chainChanged",l),l=void 0),u&&(e.removeListener("disconnect",u),u=void 0),e.disconnect(),e.close?.()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,h.K)(e))},async getChainId(){let e=await this.getProvider();return Number(await e.request({method:"eth_chainId"}))},getProvider:async()=>(s||(s=new(await (async()=>{let{default:e}=await Promise.all([r.e(722),r.e(80),r.e(726)]).then(r.t.bind(r,86080,19));return"function"!=typeof e&&"function"==typeof e.default?e.default:e})())({...e,appChainIds:t.chains.map(e=>e.id)}).makeWeb3Provider({...e,options:e.preference??"all"})),s),async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:r}){let n=t.chains.find(e=>e.id===r);if(!n)throw new f.x3(new w.X4);let i=await this.getProvider();try{return await i.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,m.eC)(n.id)}]}),n}catch(t){if(4902===t.code)try{let t,o;t=e?.blockExplorerUrls?e.blockExplorerUrls:n.blockExplorers?.default.url?[n.blockExplorers?.default.url]:[],o=e?.rpcUrls?.length?e.rpcUrls:[n.rpcUrls.default?.http[0]??""];let a={blockExplorerUrls:t,chainId:(0,m.eC)(r),chainName:e?.chainName??n.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??n.nativeCurrency,rpcUrls:o};return await i.request({method:"wallet_addEthereumChain",params:[a]}),n}catch(e){throw new f.ab(e)}throw new f.x3(t)}},onAccountsChanged(e){0===e.length?this.onDisconnect():t.emitter.emit("change",{accounts:e.map(e=>(0,h.K)(e))})},onChainChanged(e){let r=Number(e);t.emitter.emit("change",{chainId:r})},async onDisconnect(e){t.emitter.emit("disconnect");let r=await this.getProvider();c&&(r.removeListener("accountsChanged",c),c=void 0),l&&(r.removeListener("chainChanged",l),l=void 0),u&&(r.removeListener("disconnect",u),u=void 0)}})}T.type="walletConnect",I.type="coinbaseWallet";var R=r(31083),O=r(40655),P=r(15519),N=r(28049);function M({projectId:e,chains:t,metadata:r,enableCoinbase:a,enableInjected:s,auth:c={},enableWalletConnect:u,enableEIP6963:p,...g}){let m=g?.connectors??[],b=Object.fromEntries(t.map(t=>[t.id,(0,N.h4)({chain:t,projectId:e})]));!1!==u&&m.push(T({projectId:e,metadata:r,showQrModal:!1})),!1!==s&&m.push(C({shimDisconnect:!0})),!1!==a&&m.push(I({version:"4",appName:r?.name??"Unknown",appLogoUrl:r?.icons[0]??"Unknown",preference:g.coinbasePreference||"all"}));let v={email:!0,showWallets:!0,walletFeatures:!0,...c};return(v.email||v.socials)&&m.push(function(e){function t(e){return P.p1.parseEvmChainId(e)||1}return r=>({id:O.bq.AUTH_CONNECTOR_ID,name:"Web3Modal Auth",type:"w3mAuth",socials:e.socials,email:e.email,showWallets:e.showWallets,walletFeatures:e.walletFeatures,async connect(e={}){let r=await this.getProvider(),{address:n,chainId:i}=await r.connect({chainId:e.chainId});await r.getSmartAccountEnabledNetworks();let o=t(i);return{accounts:[n],account:n,chainId:o,chain:{id:o,unsuported:!1}}},async disconnect(){let e=await this.getProvider();await e.disconnect()},async getAccounts(){let e=await this.getProvider(),{address:t}=await e.connect();return r.emitter.emit("change",{accounts:[t]}),[t]},async getProvider(){return this.provider||(this.provider=new R.Sd(e.options.projectId)),Promise.resolve(this.provider)}
10750,async getChainId(){let e=await this.getProvider(),{chainId:r}=await e.getChainId();return t(r)},async isAuthorized(){let e=await this.getProvider(),{isConnected:t}=await e.isConnected();return t},async switchChain({chainId:e}){try{let t=r.chains.find(t=>t.id===e);if(!t)throw new f.x3(Error("chain not found on connector."));let n=await this.getProvider();return await n.switchNetwork(e),r.emitter.emit("change",{chainId:Number(e)}),t}catch(e){if(e instanceof Error)throw new f.x3(e);throw e}},onAccountsChanged(e){0===e.length?this.onDisconnect():r.emitter.emit("change",{accounts:e.map(h.K)})},onChainChanged(e){let t=Number(e);r.emitter.emit("change",{chainId:t})},async onConnect(e){let t=Number(e.chainId),n=await this.getAccounts();r.emitter.emit("connect",{accounts:n,chainId:t})},async onDisconnect(e){let t=await this.getProvider();await t.disconnect()}})}({chains:[...t],options:{projectId:e},socials:v.socials,email:v.email,showWallets:v.showWallets,walletFeatures:v.walletFeatures})),function(e){let t;let{multiInjectedProviderDiscovery:r=!0,storage:a=(0,k.o)({storage:"undefined"!=typeof window&&window.localStorage?window.localStorage:k.w}),syncConnectedChain:s=!0,ssr:c=!1,...u}=e,h="undefined"!=typeof window&&r?function(){let e=new Set,t=[],r=()=>(function(e){if("undefined"==typeof window)return;let t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)})(r=>{t.some(({info:e})=>e.uuid===r.info.uuid)||(t=[...t,r],e.forEach(e=>e(t,{added:[r]})))}),n=r();return{_listeners:()=>e,clear(){e.forEach(e=>e([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),n?.()},findProvider:({rdns:e})=>t.find(t=>t.info.rdns===e),getProviders:()=>t,reset(){this.clear(),n?.(),n=r()},subscribe:(r,{emitImmediately:n}={})=>(e.add(r),n&&r(t,{added:t}),()=>e.delete(r))}}():void 0,f=d(()=>u.chains),p=d(()=>[...u.connectors??[],...c?[]:h?.getProviders().map(m)??[]].map(g));function g(e){let t=new E(function(e=11){if(!n||_+e>512){n="",_=0;for(let e=0;e<256;e++)n+=(256+256*Math.random()|0).toString(16).substring(1)}return n.substring(_,_+++e)}()),r={...e({emitter:t,chains:f.getState(),storage:a,transports:u.transports}),emitter:t,uid:t.uid};return t.on("connect",I),r.setup?.(),r}function m(e){let{info:t}=e,r=e.provider;return C({target:{...t,id:t.rdns,provider:r}})}let b=new Map;function v(){return{chainId:f.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let y="0.0.0-canary-";t=S.i.startsWith(y)?Number.parseInt(S.i.replace(y,"")):Number.parseInt(S.i.split(".")[0]??"0");let x=d(o(a?l(v,{migrate(e,r){if(r===t)return e;let n=v(),i=A(e,n.chainId);return{...n,chainId:i}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(([e,t])=>{let{id:r,name:n,type:i,uid:o}=t.connector;return[e,{...t,connector:{id:r,name:n,type:i,uid:o}}]})},chainId:e.chainId,current:e.current}),merge(e,t){"object"==typeof e&&e&&"status"in e&&delete e.status;let r=A(e,t.chainId);return{...t,...e,chainId:r}},skipHydration:c,storage:a,version:t}):v));function A(e,t){return e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId&&f.getState().some(t=>t.id===e.chainId)?e.chainId:t}function T(e){x.setState(t=>{let r=t.connections.get(e.uid);return r?{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts??r.accounts,chainId:e.chainId??r.chainId,connector:r.connector})}:t})}function I(e){"connecting"!==x.getState().status&&"reconnecting"!==x.getState().status&&x.setState(t=>{let r=p.getState().find(t=>t.uid===e.uid);return r?(r.emitter.listenerCount("connect")&&r.emitter.off("connect",T),r.emitter.listenerCount("change")||r.emitter.on("change",T),r.emitter.listenerCount("disconnect")||r.emitter.on("disconnect",R),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:r}),current:e.uid,status:"connected"}):t})}function R(e){x.setState(t=>{let r=t.connections.get(e.uid);if(r){let e=r.connector;e.emitter.listenerCount("change")&&r.connector.emitter.off("change",T),e.emitter.listenerCount("disconnect")&&r.connector.emitter.off("disconnect",R),e.emitter.listenerCount("connect")||r.connector.emitter.on("connect",I)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};let n=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:n.connector.uid}})}return s&&x.subscribe(({connections:e,current:t})=>t?e.get(t)?.chainId:void 0,e=>{if(f.getState().some(t=>t.id===e))return x.setState(t=>({...t,chainId:e??t.chainId}))}),h?.subscribe(e=>{let t=new Map;for(let e of p.getState())t.set(e.id,!0);let r=[];for(let n of e){let e=g(m(n));t.has(e.id)||r.push(e)}(!a||x.persist.hasHydrated())&&p.setState(e=>[...e,...r],!0)}),{get chains(){return f.getState()},get connectors(){return p.getState()},storage:a,getClient:function(e={}){let t;let r=e.chainId??x.getState().chainId,n=f.getState().find(e=>e.id===r);if(e.chainId&&!n)throw new w.X4;{let e=b.get(x.getState().chainId);if(e&&!n)return e;if(!n)throw new w.X4}{let e=b.get(r);if(e)return e}if(u.client)t=u.client({chain:n});else{let e=n.id,r=f.getState().map(e=>e.id),o={};for(let[t,n]of Object.entries(u))if("chains"!==t&&"client"!==t&&"connectors"!==t&&"transports"!==t){if("object"==typeof n){if(e in n)o[t]=n[e];else{if(r.some(e=>e in n))continue;o[t]=n}}else o[t]=n}t=(0,i.e)({...o,chain:n,batch:o.batch??{multicall:!0},transport:t=>u.transports[e]({...t,connectors:p})})}return b.set(r,t),t}
10750,get state(){return x.getState()},setState(e){let t;t="function"==typeof e?e(x.getState()):e;let r=v();"object"!=typeof t&&(t=r),Object.keys(r).some(e=>!(e in t))&&(t=r),x.setState(t,!0)},subscribe:(e,t,r)=>x.subscribe(e,t,r?{...r,fireImmediately:r.emitImmediately}:void 0),_internal:{mipd:h,store:x,ssr:!!c,syncConnectedChain:s,transports:u.transports,chains:{setState(e){let t="function"==typeof e?e(f.getState()):e;if(0!==t.length)return f.setState(t,!0)},subscribe:e=>f.subscribe(e)},connectors:{providerDetailToConnector:m,setup:g,setState:e=>p.setState("function"==typeof e?e(p.getState()):e,!0),subscribe:e=>p.subscribe(e)},events:{change:T,connect:I,disconnect:R}}}}({chains:t,multiInjectedProviderDiscovery:!1!==p,transports:b,...g,connectors:m})}},36496:function(e,t,r){"use strict";let n,i,o,a,s,c,l,u,d,h,f,p,g,m,w,b;r.d(t,{OY:function(){return eE}}),r(2265),r(68885),r(63088),r(33374),r(65657),r(40);var v="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof r.g?r.g:"u">typeof self?self:{},y={exports:{}};/** 10751 * @license 10752 * Lodash <https://lodash.com/> 10753 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> 10754 * Released under MIT license <https://lodash.com/license> 10755 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> 10756 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors 10757 */!function(e,t){(function(){var r,n="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",a=1/0,s=0/0,c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",u="[object Array]",d="[object Boolean]",h="[object Date]",f="[object Error]",p="[object Function]",g="[object GeneratorFunction]",m="[object Map]",w="[object Number]",b="[object Object]",y="[object Promise]",C="[object RegExp]",x="[object Set]",A="[object String]",E="[object Symbol]",k="[object WeakMap]",_="[object ArrayBuffer]",S="[object DataView]",T="[object Float32Array]",I="[object Float64Array]",R="[object Int8Array]",O="[object Int16Array]",P="[object Int32Array]",N="[object Uint8Array]",M="[object Uint8ClampedArray]",D="[object Uint16Array]",B="[object Uint32Array]",$=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,F=RegExp(j.source),H=RegExp(z.source),q=/<%-([\s\S]+?)%>/g,W=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,G=/^\w*$/,K=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,Q=RegExp(Y.source),J=/^\s+/,X=/\s/,ee=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,et=/\{\n\/\* \[wrapped with (.+)\] \*/,er=/,? & /,en=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ei=/[()=,{}\[\]\/\s]/,eo=/\\(\\)?/g,ea=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,es=/\w*$/,ec=/^[-+]0x[0-9a-f]+$/i,el=/^0b[01]+$/i,eu=/^\[object .+?Constructor\]$/,ed=/^0o[0-7]+$/i,eh=/^(?:0|[1-9]\d*)$/,ef=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
107577f]/g,ep=/($^)/,eg=/['\n\r\u2028\u2029\\]/g,em="\ud800-\udfff",ew="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",eb="\\u2700-\\u27bf",ev="a-z\\xdf-\\xf6\\xf8-\\xff",ey="A-Z\\xc0-\\xd6\\xd8-\\xde",eC="\\ufe0e\\ufe0f",ex="\\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",eA="['â]",eE="["+ex+"]",ek="["+ew+"]",e_="["+ev+"]",eS="[^"+em+ex+"\\d+"+eb+ev+ey+"]",eT="\ud83c[\udffb-\udfff]",eI="[^"+em+"]",eR="(?:\ud83c[\udde6-\uddff]){2}",eO="[\ud800-\udbff][\udc00-\udfff]",eP="["+ey+"]",eN="\\u200d",eM="(?:"+e_+"|"+eS+")",eD="(?:"+eA+"(?:d|ll|m|re|s|t|ve))?",eB="(?:"+eA+"(?:D|LL|M|RE|S|T|VE))?",e$="(?:"+ek+"|"+eT+")?",eU="["+eC+"]?",eL="(?:"+eN+"(?:"+[eI,eR,eO].join("|")+")"+eU+e$+")*",ej=eU+e$+eL,ez="(?:"+["["+eb+"]",eR,eO].join("|")+")"+ej,eF="(?:"+[eI+ek+"?",ek,eR,eO,"["+em+"]"].join("|")+")",eH=RegExp(eA,"g"),eq=RegExp(ek,"g"),eW=RegExp(eT+"(?="+eT+")|"+eF+ej,"g"),eV=RegExp([eP+"?"+e_+"+"+eD+"(?="+[eE,eP,"$"].join("|")+")","(?:"+eP+"|"+eS+")+"+eB+"(?="+[eE,eP+eM,"$"].join("|")+")",eP+"?"+eM+"+"+eD,eP+"+"+eB,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",ez].join("|"),"g"),eZ=RegExp("["+eN+em+ew+eC+"]"),eG=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eK=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],eY=-1,eQ={};eQ[T]=eQ[I]=eQ[R]=eQ[O]=eQ[P]=eQ[N]=eQ[M]=eQ[D]=eQ[B]=!0,eQ[l]=eQ[u]=eQ[_]=eQ[d]=eQ[S]=eQ[h]=eQ[f]=eQ[p]=eQ[m]=eQ[w]=eQ[b]=eQ[C]=eQ[x]=eQ[A]=eQ[k]=!1;var eJ={};eJ[l]=eJ[u]=eJ[_]=eJ[S]=eJ[d]=eJ[h]=eJ[T]=eJ[I]=eJ[R]=eJ[O]=eJ[P]=eJ[m]=eJ[w]=eJ[b]=eJ[C]=eJ[x]=eJ[A]=eJ[E]=eJ[N]=eJ[M]=eJ[D]=eJ[B]=!0,eJ[f]=eJ[p]=eJ[k]=!1;var eX={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},e0=parseFloat,e1=parseInt,e2="object"==typeof v&&v&&v.Object===Object&&v,e3="object"==typeof self&&self&&self.Object===Object&&self,e5=e2||e3||Function("return this")(),e4=t&&!t.nodeType&&t,e6=e4&&e&&!e.nodeType&&e,e8=e6&&e6.exports===e4,e9=e8&&e2.process,e7=function(){try{return e6&&e6.require&&e6.require("util").types||e9&&e9.binding&&e9.binding("util")}catch{}}(),te=e7&&e7.isArrayBuffer,tt=e7&&e7.isDate,tr=e7&&e7.isMap,tn=e7&&e7.isRegExp,ti=e7&&e7.isSet,to=e7&&e7.isTypedArray;function ta(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)}function ts(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(n,a,r(a),e)}return n}function tc(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function tl(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function tu(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}function td(e,t){return!!(null==e?0:e.length)&&tC(e,t,0)>-1}function th(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function tf(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}function tp(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function tg(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}function tm(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function tw(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var tb=tk("length");function tv(e,t,r){var n;return r(e,function(e,r,i){if(t(e,r,i))return n=r,!1}),n}function ty(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}function tC(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}(e,t,r):ty(e,tA,r)}function tx(e,t,r,n){for(var i=r-1,o=e.length;++i<o;)if(n(e[i],t))return i;return -1}function tA(e){return e!=e}function tE(e,t){var r=null==e?0:e.length;return r?tT(e,t)/r:s}function tk(e){return function(t){return null==t?r:t[e]}}function t_(e){return function(t){return null==e?r:e[t]}
vendor: 5,249 bytes, line 10757
10757}function tS(e,t,r,n,i){return i(e,function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)}),r}function tT(e,t){for(var n,i=-1,o=e.length;++i<o;){var a=t(e[i]);a!==r&&(n=n===r?a:n+a)}return n}function tI(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function tR(e){return e&&e.slice(0,tV(e)+1).replace(J,"")}function tO(e){return function(t){return e(t)}}function tP(e,t){return tf(t,function(t){return e[t]})}function tN(e,t){return e.has(t)}function tM(e,t){for(var r=-1,n=e.length;++r<n&&tC(t,e[r],0)>-1;);return r}function tD(e,t){for(var r=e.length;r--&&tC(t,e[r],0)>-1;);return r}var tB=t_({Ã:"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",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"}),t$=t_({"&":"&","<":"<",">":">",'"':""","'":"'"});function tU(e){return"\\"+eX[e]}function tL(e){return eZ.test(e)}function tj(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function tz(e,t){return function(r){return e(t(r))}}function tF(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var s=e[r];(s===t||s===o)&&(e[r]=o,a[i++]=r)}return a}function tH(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function tq(e){return tL(e)?function(e){for(var t=eW.lastIndex=0;eW.test(e);)++t;return t}(e):tb(e)}function tW(e){return tL(e)?e.match(eW)||[]:e.split("")}function tV(e){for(var t=e.length;t--&&X.test(e.charAt(t)););return t}var tZ=t_({"&":"&","<":"<",">":">",""":'"',"'":"'"}),tG=function e(t){var v,X,em,ew,eb=(t=null==t?e5:tG.defaults(e5.Object(),t,tG.pick(e5,eK))).Array,ev=t.Date,ey=t.Error,eC=t.Function,ex=t.Math,eA=t.Object,eE=t.RegExp,ek=t.String,e_=t.TypeError,eS=eb.prototype,eT=eC.prototype,eI=eA.prototype,eR=t["__core-js_shared__"],eO=eT.toString,eP=eI.hasOwnProperty,eN=0,eM=(v=/[^.]+$/.exec(eR&&eR.keys&&eR.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",eD=eI.toString,eB=eO.call(eA),e$=e5._,eU=eE("^"+eO.call(eP).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eL=e8?t.Buffer:r,ej=t.Symbol,ez=t.Uint8Array,eF=eL?eL.allocUnsafe:r,eW=tz(eA.getPrototypeOf,eA),eZ=eA.create,eX=eI.propertyIsEnumerable,e2=eS.splice,e3=ej?ej.isConcatSpreadable:r,e4=ej?ej.iterator:r,e6=ej?ej.toStringTag:r,e9=function(){try{var e=ip(eA,"defineProperty");return e({},"",{}),e}catch{}}(),e7=t.clearTimeout!==e5.clearTimeout&&t.clearTimeout,tb=ev&&ev.now!==e5.Date.now&&ev.now,t_=t.setTimeout!==e5.setTimeout&&t.setTimeout,tK=ex.ceil,tY=ex.floor,tQ=eA.getOwnPropertySymbols,tJ=eL?eL.isBuffer:r,tX=t.isFinite,t0=eS.join,t1=tz(eA.keys,eA),t2=ex.max,t3=ex.min,t5=ev.now,t4=t.parseInt,t6=ex.random,t8=eS.reverse,t9=ip(t,"DataView"),t7=ip(t,"Map"),re=ip(t,"Promise"),rt=ip(t,"Set"),rr=ip(t,"WeakMap"),rn=ip(eA,"create"),ri=rr&&new rr,ro={},ra=iL(t9),rs=iL(t7),rc=iL(re),rl=iL(rt),ru=iL(rr),rd=ej?ej.prototype:r,rh=rd?rd.valueOf:r,rf=rd?rd.toString:r;function rp(e){if(oV(e)&&!oD(e)&&!(e instanceof rb)){if(e instanceof rw)return e;if(eP.call(e,"__wrapped__"))return ij(e)}return new rw(e)}var rg=function(){function e(){}return function(t){if(!oW(t))return{};if(eZ)return eZ(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function rm(){}function rw(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function rb(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function rv(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])}}function ry(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])}}function rC(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])}}function rx(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new rC;++t<r;)this.add(e[t])}function rA(e){var t=this.__data__=new ry(e);this.size=t.size}function rE(e,t){var r=oD(e),n=!r&&oM(e),i=!r&&!n&&oL(e),o=!r&&!n&&!i&&o0(e),a=r||n||i||o,s=a?tI(e.length,ek):[],c=s.length;
10757for(var l in e)(t||eP.call(e,l))&&!(a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||iC(l,c)))&&s.push(l);return s}function rk(e){var t=e.length;return t?e[nl(0,t-1)]:r}function r_(e,t,n){(n===r||oO(e[t],n))&&(n!==r||t in e)||rO(e,t,n)}function rS(e,t,n){var i=e[t];eP.call(e,t)&&oO(i,n)&&(n!==r||t in e)||rO(e,t,n)}function rT(e,t){for(var r=e.length;r--;)if(oO(e[r][0],t))return r;return -1}function rI(e,t,r,n){return rU(e,function(e,i,o){t(n,e,r(e),o)}),n}function rR(e,t){return e&&nz(t,ah(t),e)}function rO(e,t,r){"__proto__"==t&&e9?e9(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function rP(e,t){for(var n=-1,i=t.length,o=eb(i),a=null==e;++n<i;)o[n]=a?r:as(e,t[n]);return o}function rN(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function rM(e,t,n,i,o,a){var s,c=1&t,u=2&t,f=4&t;if(n&&(s=o?n(e,i,o,a):n(e)),s!==r)return s;if(!oW(e))return e;var v=oD(e);if(v){if(y=e.length,k=new e.constructor(y),y&&"string"==typeof e[0]&&eP.call(e,"index")&&(k.index=e.index,k.input=e.input),s=k,!c)return nj(e,s)}else{var y,k,$,U,L,j=iw(e),z=j==p||j==g;if(oL(e))return nM(e,c);if(j==b||j==l||z&&!o){if(s=u||z?{}:iv(e),!c)return u?($=(L=s)&&nz(e,af(e),L),nz(e,im(e),$)):(U=rR(s,e),nz(e,ig(e),U))}else{if(!eJ[j])return o?e:{};s=function(e,t,r){var n,i,o=e.constructor;switch(t){case _:return nD(e);case d:case h:return new o(+e);case S:return n=r?nD(e.buffer):e.buffer,new e.constructor(n,e.byteOffset,e.byteLength);case T:case I:case R:case O:case P:case N:case M:case D:case B:return nB(e,r);case m:return new o;case w:case A:return new o(e);case C:return(i=new e.constructor(e.source,es.exec(e))).lastIndex=e.lastIndex,i;case x:return new o;case E:return rh?eA(rh.call(e)):{}}}(e,j,c)}}a||(a=new rA);var F=a.get(e);if(F)return F;a.set(e,s),oQ(e)?e.forEach(function(r){s.add(rM(r,t,n,r,e,a))}):oZ(e)&&e.forEach(function(r,i){s.set(i,rM(r,t,n,i,e,a))});var H=f?u?ia:io:u?af:ah,q=v?r:H(e);return tc(q||e,function(r,i){q&&(r=e[i=r]),rS(s,i,rM(r,t,n,i,e,a))}),s}function rD(e,t,n){var i=n.length;if(null==e)return!i;for(e=eA(e);i--;){var o=n[i],a=t[o],s=e[o];if(s===r&&!(o in e)||!a(s))return!1}return!0}function rB(e,t,i){if("function"!=typeof e)throw new e_(n);return iP(function(){e.apply(r,i)},t)}function r$(e,t,r,n){var i=-1,o=td,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;r&&(t=tf(t,tO(r))),n?(o=th,a=!1):t.length>=200&&(o=tN,a=!1,t=new rx(t));t:for(;++i<s;){var u=e[i],d=null==r?u:r(u);if(u=n||0!==u?u:0,a&&d==d){for(var h=l;h--;)if(t[h]===d)continue t;c.push(u)}else o(t,d,n)||c.push(u)}return c}rp.templateSettings={escape:q,evaluate:W,interpolate:V,variable:"",imports:{_:rp}},rp.prototype=rm.prototype,rp.prototype.constructor=rp,rw.prototype=rg(rm.prototype),rw.prototype.constructor=rw,rb.prototype=rg(rm.prototype),rb.prototype.constructor=rb,rv.prototype.clear=function(){this.__data__=rn?rn(null):{},this.size=0},rv.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},rv.prototype.get=function(e){var t=this.__data__;if(rn){var n=t[e];return n===i?r:n}return eP.call(t,e)?t[e]:r},rv.prototype.has=function(e){var t=this.__data__;return rn?t[e]!==r:eP.call(t,e)},rv.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=rn&&t===r?i:t,this},ry.prototype.clear=function(){this.__data__=[],this.size=0},ry.prototype.delete=function(e){var t=this.__data__,r=rT(t,e);return!(r<0)&&(r==t.length-1?t.pop():e2.call(t,r,1),--this.size,!0)},ry.prototype.get=function(e){var t=this.__data__,n=rT(t,e);return n<0?r:t[n][1]},ry.prototype.has=function(e){return rT(this.__data__,e)>-1},ry.prototype.set=function(e,t){var r=this.__data__,n=rT(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},rC.prototype.clear=function(){this.size=0,this.__data__={hash:new rv,map:new(t7||ry),string:new rv}},rC.prototype.delete=function(e){var t=id(this,e).delete(e);return this.size-=t?1:0,t},rC.prototype.get=function(e){return id(this,e).get(e)},rC.prototype.has=function(e){return id(this,e).has(e)},rC.prototype.set=function(e,t){var r=id(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},rx.prototype.add=rx.prototype.push=function(e){return this.__data__.set(e,i),this},rx.prototype.has=function(e){return this.__data__.has(e)},rA.prototype.clear=function(){this.__data__=new ry,this.size=0},rA.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},rA.prototype.get=function(e){return this.__data__.get(e)},rA.prototype.has=function(e){return this.__data__.has(e)},rA.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ry){var n=r.__data__;if(!t7||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new rC(n)}return r.set(e,t),this.size=r.size,this};var rU=nq(rV),rL=nq(rZ,!0);function rj(e,t){var r=!0;return rU(e,function(e,n,i){return r=!!t(e,n,i)}),r}function rz(e,t,n){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(c===r?s==s&&!oX(s):n(s,c)))var c=s,l=a}return l}function rF(e,t){var r=[];return rU(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function rH(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=iy),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?rH(s,t-1,r,n,i):tp(i,s):n||(i[i.length]=s)}return i}var rq=nW(),rW=nW(!0);function rV(e,t){return e&&rq(e,t,ah)}function rZ(e,t){return e&&rW(e,t,ah)}function rG(e,t){return tu(t,function(t){return oF(e[t])})}
10757function rK(e,t){t=nO(t,e);for(var n=0,i=t.length;null!=e&&n<i;)e=e[iU(t[n++])];return n&&n==i?e:r}function rY(e,t,r){var n=t(e);return oD(e)?n:tp(n,r(e))}function rQ(e){return null==e?e===r?"[object Undefined]":"[object Null]":e6&&e6 in eA(e)?function(e){var t=eP.call(e,e6),n=e[e6];try{e[e6]=r;var i=!0}catch{}var o=eD.call(e);return i&&(t?e[e6]=n:delete e[e6]),o}(e):eD.call(e)}function rJ(e,t){return e>t}function rX(e,t){return null!=e&&eP.call(e,t)}function r0(e,t){return null!=e&&t in eA(e)}function r1(e,t,n){for(var i=n?th:td,o=e[0].length,a=e.length,s=a,c=eb(a),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=tf(d,tO(t))),l=t3(d.length,l),c[s]=!n&&(t||o>=120&&d.length>=120)?new rx(s&&d):r}d=e[0];var h=-1,f=c[0];t:for(;++h<o&&u.length<l;){var p=d[h],g=t?t(p):p;if(p=n||0!==p?p:0,!(f?tN(f,g):i(u,g,n))){for(s=a;--s;){var m=c[s];if(!(m?tN(m,g):i(e[s],g,n)))continue t}f&&f.push(g),u.push(p)}}return u}function r2(e,t,n){t=nO(t,e);var i=null==(e=iI(e,t))?e:e[iU(iQ(t))];return null==i?r:ta(i,e,n)}function r3(e){return oV(e)&&rQ(e)==l}function r5(e,t,n,i,o){return e===t||(null!=e&&null!=t&&(oV(e)||oV(t))?function(e,t,n,i,o,a){var s=oD(e),c=oD(t),p=s?u:iw(e),g=c?u:iw(t);p=p==l?b:p,g=g==l?b:g;var v=p==b,y=g==b,k=p==g;if(k&&oL(e)){if(!oL(t))return!1;s=!0,v=!1}if(k&&!v)return a||(a=new rA),s||o0(e)?ir(e,t,n,i,o,a):function(e,t,r,n,i,o,a){switch(r){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!o(new ez(e),new ez(t)));case d:case h:case w:return oO(+e,+t);case f:return e.name==t.name&&e.message==t.message;case C:case A:return e==t+"";case m:var s=tj;case x:var c=1&n;if(s||(s=tH),e.size!=t.size&&!c)break;var l=a.get(e);if(l)return l==t;n|=2,a.set(e,t);var u=ir(s(e),s(t),n,i,o,a);return a.delete(e),u;case E:if(rh)return rh.call(e)==rh.call(t)}return!1}(e,t,p,n,i,o,a);if(!(1&n)){var T=v&&eP.call(e,"__wrapped__"),I=y&&eP.call(t,"__wrapped__");
vendor: 6,524 bytes, line 10757
10757if(T||I){var R=T?e.value():e,O=I?t.value():t;return a||(a=new rA),o(R,O,n,i,a)}}return!!k&&(a||(a=new rA),function(e,t,n,i,o,a){var s=1&n,c=io(e),l=c.length;if(l!=io(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:eP.call(t,d)))return!1}var h=a.get(e),f=a.get(t);if(h&&f)return h==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=s;++u<l;){var m=e[d=c[u]],w=t[d];if(i)var b=s?i(w,m,d,t,e,a):i(m,w,d,e,t,a);if(!(b===r?m===w||o(m,w,n,i,a):b)){p=!1;break}g||(g="constructor"==d)}if(p&&!g){var v=e.constructor,y=t.constructor;v!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,i,o,a))}(e,t,n,i,r5,o):e!=e&&t!=t)}function r4(e,t,n,i){var o=n.length,a=o,s=!i;if(null==e)return!a;for(e=eA(e);o--;){var c=n[o];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<a;){var l=(c=n[o])[0],u=e[l],d=c[1];if(s&&c[2]){if(u===r&&!(l in e))return!1}else{var h=new rA;if(i)var f=i(u,d,l,e,t,h);if(!(f===r?r5(d,u,3,i,h):f))return!1}}return!0}function r6(e){return!(!oW(e)||eM&&eM in e)&&(oF(e)?eU:eu).test(iL(e))}function r8(e){return"function"==typeof e?e:null==e?aU:"object"==typeof e?oD(e)?nr(e[0],e[1]):nt(e):aZ(e)}function r9(e){if(!i_(e))return t1(e);var t=[];for(var r in eA(e))eP.call(e,r)&&"constructor"!=r&&t.push(r);return t}function r7(e,t){return e<t}function ne(e,t){var r=-1,n=o$(e)?eb(e.length):[];return rU(e,function(e,i,o){n[++r]=t(e,i,o)}),n}function nt(e){var t=ih(e);return 1==t.length&&t[0][2]?iS(t[0][0],t[0][1]):function(r){return r===e||r4(r,e,t)}}function nr(e,t){var n;return iA(e)&&(n=t)==n&&!oW(n)?iS(iU(e),t):function(n){var i=as(n,e);return i===r&&i===t?ac(n,e):r5(t,i,3)}}function nn(e,t,n,i,o){e!==t&&rq(t,function(a,s){if(o||(o=new rA),oW(a))(function(e,t,n,i,o,a,s){var c=iR(e,n),l=iR(t,n),u=s.get(l);if(u){r_(e,n,u);return}var d=a?a(c,l,n+"",e,t,s):r,h=d===r;if(h){var f=oD(l),p=!f&&oL(l),g=!f&&!p&&o0(l);d=l,f||p||g?oD(c)?d=c:oU(c)?d=nj(c):p?(h=!1,d=nM(l,!0)):g?(h=!1,d=nB(l,!0)):d=[]:oK(l)||oM(l)?(d=c,oM(c)?d=o9(c):(!oW(c)||oF(c))&&(d=iv(l))):h=!1}h&&(s.set(l,d),o(d,l,i,a,s),s.delete(l)),r_(e,n,d)})(e,t,s,n,nn,i,o);else{var c=i?i(iR(e,s),a,s+"",e,t,o):r;c===r&&(c=a),r_(e,s,c)}},af)}function ni(e,t){var n=e.length;if(n)return iC(t+=t<0?n:0,n)?e[t]:r}function no(e,t,r){t=t.length?tf(t,function(e){return oD(e)?function(t){return rK(t,1===e.length?e[0]:e)}:e}):[aU];var n=-1;return t=tf(t,tO(iu())),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(ne(e,function(e,r,i){return{criteria:tf(t,function(t){return t(e)}),index:++n,value:e}}),function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;++n<a;){var c=n$(i[n],o[n]);if(c){if(n>=s)return c;return c*("desc"==r[n]?-1:1)}}return e.index-t.index}(e,t,r)})}function na(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var a=t[n],s=rK(e,a);r(s,a)&&nh(o,nO(a,e),s)}return o}function ns(e,t,r,n){var i=n?tx:tC,o=-1,a=t.length,s=e;for(e===t&&(t=nj(t)),r&&(s=tf(e,tO(r)));++o<a;)for(var c=0,l=t[o],u=r?r(l):l;(c=i(s,u,c,n))>-1;)s!==e&&e2.call(s,c,1),e2.call(e,c,1);return e}function nc(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;iC(i)?e2.call(e,i,1):nA(e,i)}}return e}function nl(e,t){return e+tY(t6()*(t-e+1))}function nu(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do t%2&&(r+=e),(t=tY(t/2))&&(e+=e);while(t);return r}function nd(e,t){return iN(iT(e,t,aU),e+"")}function nh(e,t,n,i){if(!oW(e))return e;t=nO(t,e);for(var o=-1,a=t.length,s=a-1,c=e;null!=c&&++o<a;){var l=iU(t[o]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)break;if(o!=s){var d=c[l];(u=i?i(d,l,c):r)===r&&(u=oW(d)?d:iC(t[o+1])?[]:{})}rS(c,l,u),c=c[l]}return e}var nf=ri?function(e,t){return ri.set(e,t),e}:aU,np=e9?function(e,t){return e9(e,"toString",{configurable:!0,enumerable:!1,value:aD(t),writable:!0})}:aU;function ng(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=eb(i);++n<i;)o[n]=e[n+t];return o}function nm(e,t){var r;return rU(e,function(e,n,i){return!(r=t(e,n,i))}),!!r}function nw(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var o=n+i>>>1,a=e[o];null!==a&&!oX(a)&&(r?a<=t:a<t)?n=o+1:i=o}return i}return nb(e,t,aU,r)}function nb(e,t,n,i){var o=0,a=null==e?0:e.length;if(0===a)return 0;t=n(t);for(var s=t!=t,c=null===t,l=oX(t),u=t===r;o<a;){var d=tY((o+a)/2),h=n(e[d]),f=h!==r,p=null===h,g=h==h,m=oX(h);if(s)var w=i||g;else w=u?g&&(i||f):c?g&&f&&(i||!p):l?g&&f&&!p&&(i||!m):!p&&!m&&(i?h<=t:h<t);w?o=d+1:a=d}return t3(a,4294967294)}function nv(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var a=e[r],s=t?t(a):a;if(!r||!oO(s,c)){var c=s;o[i++]=0===a?0:a}}return o}function ny(e){return"number"==typeof e?e:oX(e)?s:+e}function nC(e){if("string"==typeof e)return e;if(oD(e))return tf(e,nC)+"";if(oX(e))return rf?rf.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}function nx(e,t,r){var n=-1,i=td,o=e.length,a=!0,s=[],c=s;if(r)a=!1,i=th;else if(o>=200){var l=t?null:n6(e);if(l)return tH(l);a=!1,i=tN,c=new rx}else c=t?[]:s;t:for(;++n<o;){var u=e[n],d=t?t(u):u;if(u=r||0!==u?u:0,a&&d==d){for(var h=c.length;h--;)if(c[h]===d)continue t;t&&c.push(d),s.push(u)}else i(c,d,r)||(c!==s&&c.push(d),s.push(u))}return s}function nA(e,t){return t=nO(t,e),null==(e=iI(e,t))||delete e[iU(iQ(t))]}function nE(e,t,r,n){return nh(e,t,r(rK(e,t)),n)}function nk(e,t,r,n){for(var i=e.length,o=n?i:-1;(n?o--:++o<i)&&t(e[o],o,e););return r?ng(e,n?0:o,n?o+1:i):ng(e,n?o+1:0,n?i:o)}function n_(e,t){var r=e;return r instanceof rb&&(r=r.value()),tg(t,function(e,t){return t.func.apply(t.thisArg,tp([e],t.args))},r)}function nS(e,t,r){var n=e.length;if(n<2)return n?nx(e[0]):[];for(var i=-1,o=eb(n);++i<n;)for(var a=e[i],s=-1;++s<n;)s!=i&&(o[i]=r$(o[i]||a,e[s],t,r));return nx(rH(o,1),t,r)}function nT(e,t,n){for(var i=-1,o=e.length,a=t.length,s={};++i<o;){var c=i<a?t[i]:r;n(s,e[i],c)}return s}function nI(e){return oU(e)?e:[]}function nR(e){return"function"==typeof e?e:aU}function nO(e,t){return oD(e)?e:iA(e,t)?[e]:i$(o7(e))}function nP(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:ng(e,t,n)}var nN=e7||function(e){return e5.clearTimeout(e)};function nM(e,t){if(t)return e.slice();var r=e.length,n=eF?eF(r):new e.constructor(r);return e.copy(n),n}function nD(e){var t=new e.constructor(e.byteLength);return new ez(t).set(new ez(e)),t}function nB(e,t){var r=t?nD(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}
vendor: 5,000 bytes, line 10757
10757function n$(e,t){if(e!==t){var n=e!==r,i=null===e,o=e==e,a=oX(e),s=t!==r,c=null===t,l=t==t,u=oX(t);if(!c&&!u&&!a&&e>t||a&&s&&l&&!c&&!u||i&&s&&l||!n&&l||!o)return 1;if(!i&&!a&&!u&&e<t||u&&n&&o&&!i&&!a||c&&n&&o||!s&&o||!l)return -1}return 0}function nU(e,t,r,n){for(var i=-1,o=e.length,a=r.length,s=-1,c=t.length,l=t2(o-a,0),u=eb(c+l),d=!n;++s<c;)u[s]=t[s];for(;++i<a;)(d||i<o)&&(u[r[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function nL(e,t,r,n){for(var i=-1,o=e.length,a=-1,s=r.length,c=-1,l=t.length,u=t2(o-s,0),d=eb(u+l),h=!n;++i<u;)d[i]=e[i];for(var f=i;++c<l;)d[f+c]=t[c];for(;++a<s;)(h||i<o)&&(d[f+r[a]]=e[i++]);return d}function nj(e,t){var r=-1,n=e.length;for(t||(t=eb(n));++r<n;)t[r]=e[r];return t}function nz(e,t,n,i){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var c=t[a],l=i?i(n[c],e[c],c,n,e):r;l===r&&(l=e[c]),o?rO(n,c,l):rS(n,c,l)}return n}function nF(e,t){return function(r,n){var i=oD(r)?ts:rI,o=t?t():{};return i(r,e,iu(n,2),o)}}function nH(e){return nd(function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,s=o>2?n[2]:r;for(a=e.length>3&&"function"==typeof a?(o--,a):r,s&&ix(n[0],n[1],s)&&(a=o<3?r:a,o=1),t=eA(t);++i<o;){var c=n[i];c&&e(t,c,i,a)}return t})}function nq(e,t){return function(r,n){if(null==r)return r;if(!o$(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=eA(r);(t?o--:++o<i)&&!1!==n(a[o],o,a););return r}}function nW(e){return function(t,r,n){for(var i=-1,o=eA(t),a=n(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===r(o[c],c,o))break}return t}}function nV(e){return function(t){var n=tL(t=o7(t))?tW(t):r,i=n?n[0]:t.charAt(0),o=n?nP(n,1).join(""):t.slice(1);return i[e]()+o}}function nZ(e){return function(t){return tg(aP(aE(t).replace(eH,"")),e,"")}}function nG(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=rg(e.prototype),n=e.apply(r,t);return oW(n)?n:r}}function nK(e){return function(t,n,i){var o=eA(t);if(!o$(t)){var a=iu(n,3);t=ah(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,i);return s>-1?o[a?t[s]:s]:r}}function nY(e){return ii(function(t){var i=t.length,o=i,a=rw.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if("function"!=typeof s)throw new e_(n);if(a&&!c&&"wrapper"==ic(s))var c=new rw([],!0)}for(o=c?o:i;++o<i;){var l=ic(s=t[o]),u="wrapper"==l?is(s):r;c=u&&iE(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[ic(u[0])].apply(c,u[3]):1==s.length&&iE(s)?c[l]():c.thru(s)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&oD(r))return c.plant(r).value();for(var n=0,o=i?t[n].apply(this,e):r;++n<i;)o=t[n].call(this,o);return o}})}function nQ(e,t,n,i,o,a,s,c,l,u){var d=128&t,h=1&t,f=2&t,p=24&t,g=512&t,m=f?r:nG(e);return function w(){for(var b=arguments.length,v=eb(b),y=b;y--;)v[y]=arguments[y];if(p)var C=il(w),x=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(v,C);if(i&&(v=nU(v,i,o,p)),a&&(v=nL(v,a,s,p)),b-=x,p&&b<u){var A=tF(v,C);return n5(e,t,nQ,w.placeholder,n,v,A,c,l,u-b)}var E=h?n:this,k=f?E[e]:e;return b=v.length,c?v=function(e,t){for(var n=e.length,i=t3(t.length,n),o=nj(e);i--;){var a=t[i];e[i]=iC(a,n)?o[a]:r}return e}(v,c):g&&b>1&&v.reverse(),d&&l<b&&(v.length=l),this&&this!==e5&&this instanceof w&&(k=m||nG(k)),k.apply(E,v)}}function nJ(e,t){return function(r,n){var i,o;return i=t(n),o={},rV(r,function(t,r,n){e(o,i(t),r,n)}),o}}function nX(e,t){return function(n,i){var o;if(n===r&&i===r)return t;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=nC(n),i=nC(i)):(n=ny(n),i=ny(i)),o=e(n,i)}return o}}function n0(e){return ii(function(t){return t=tf(t,tO(iu())),nd(function(r){var n=this;return e(t,function(e){return ta(e,n,r)})})})}function n1(e,t){var n=(t=t===r?" ":nC(t)).length;if(n<2)return n?nu(t,e):t;var i=nu(t,tK(e/tq(t)));return tL(t)?nP(tW(i),0,e).join(""):i.slice(0,e)}function n2(e){return function(t,n,i){return i&&"number"!=typeof i&&ix(t,n,i)&&(n=i=r),t=o5(t),n===r?(n=t,t=0):n=o5(n),i=i===r?t<n?1:-1:o5(i),function(e,t,r,n){for(var i=-1,o=t2(tK((t-e)/(r||1)),0),a=eb(o);o--;)a[n?o:++i]=e,e+=r;return a}(t,n,i,e)}}function n3(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=o8(t),r=o8(r)),e(t,r)}}function n5(e,t,n,i,o,a,s,c,l,u){var d=8&t,h=d?s:r,f=d?r:s,p=d?a:r,g=d?r:a;t|=d?32:64,4&(t&=~(d?64:32))||(t&=-4);var m=[e,t,o,p,h,g,f,c,l,u],w=n.apply(r,m);return iE(e)&&iO(w,m),w.placeholder=i,iM(w,e,t)}function n4(e){var t=ex[e];return function(e,r){if(e=o8(e),(r=null==r?0:t3(o4(r),292))&&tX(e)){var n=(o7(e)+"e").split("e");return+((n=(o7(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var n6=rt&&1/tH(new rt([,-0]))[1]==a?function(e){return new rt(e)}:aH;function n8(e){return function(t){var r,n,i=iw(t);return i==m?tj(t):i==x?(r=-1,n=Array(t.size),t.forEach(function(e){n[++r]=[e,e]}
10757),n):tf(e(t),function(e){return[e,t[e]]})}}function n9(e,t,i,a,s,c,l,u){var d=2&t;if(!d&&"function"!=typeof e)throw new e_(n);var h=a?a.length:0;if(h||(t&=-97,a=s=r),l=l===r?l:t2(o4(l),0),u=u===r?u:o4(u),h-=s?s.length:0,64&t){var f=a,p=s;a=s=r}var g=d?r:is(e),m=[e,t,i,a,s,f,p,c,l,u];if(g&&function(e,t){var r=e[1],n=t[1],i=r|n,a=i<131,s=128==n&&8==r||128==n&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(a||s){1&n&&(e[2]=t[2],i|=1&r?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?nU(l,c,t[4]):c,e[4]=l?tF(e[3],o):t[4]}(c=t[5])&&(l=e[5],e[5]=l?nL(l,c,t[6]):c,e[6]=l?tF(e[5],o):t[6]),(c=t[7])&&(e[7]=c),128&n&&(e[8]=null==e[8]?t[8]:t3(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}}(m,g),e=m[0],t=m[1],i=m[2],a=m[3],s=m[4],(u=m[9]=m[9]===r?d?0:e.length:t2(m[9]-h,0))||!(24&t)||(t&=-25),t&&1!=t)8==t||16==t?(w=e,b=t,v=u,y=nG(w),P=function e(){for(var t=arguments.length,n=eb(t),i=t,o=il(e);i--;)n[i]=arguments[i];var a=t<3&&n[0]!==o&&n[t-1]!==o?[]:tF(n,o);return(t-=a.length)<v?n5(w,b,nQ,e.placeholder,r,n,a,r,r,v-t):ta(this&&this!==e5&&this instanceof e?y:w,this,n)}):32!=t&&33!=t||s.length?P=nQ.apply(r,m):(C=e,x=t,A=i,E=a,k=1&x,_=nG(C),P=function e(){for(var t=-1,r=arguments.length,n=-1,i=E.length,o=eb(i+r),a=this&&this!==e5&&this instanceof e?_:C;++n<i;)o[n]=E[n];for(;r--;)o[n++]=arguments[++t];return ta(a,k?A:this,o)});else var w,b,v,y,C,x,A,E,k,_,S,T,I,R,O,P=(S=e,T=t,I=i,R=1&T,O=nG(S),function e(){return(this&&this!==e5&&this instanceof e?O:S).apply(R?I:this,arguments)});return iM((g?nf:iO)(P,m),e,t)}function n7(e,t,n,i){return e===r||oO(e,eI[n])&&!eP.call(i,n)?t:e}function ie(e,t,n,i,o,a){return oW(e)&&oW(t)&&(a.set(t,e),nn(e,t,r,ie,a),a.delete(t)),e}function it(e){return oK(e)?r:e}function ir(e,t,n,i,o,a){var s=1&n,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,p=2&n?new rx:r;for(a.set(e,t),a.set(t,e);++h<c;){var g=e[h],m=t[h];if(i)var w=s?i(m,g,h,t,e,a):i(g,m,h,e,t,a);if(w!==r){if(w)continue;f=!1;break}if(p){if(!tw(t,function(e,t){if(!tN(p,t)&&(g===e||o(g,e,n,i,a)))return p.push(t)})){f=!1;break}}else if(!(g===m||o(g,m,n,i,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function ii(e){return iN(iT(e,r,iV),e+"")}function io(e){return rY(e,ah,ig)}function ia(e){return rY(e,af,im)}var is=ri?function(e){return ri.get(e)}:aH;function ic(e){for(var t=e.name+"",r=ro[t],n=eP.call(ro,t)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==e)return i.name}return t}function il(e){return(eP.call(rp,"placeholder")?rp:e).placeholder}function iu(){var e=rp.iteratee||aL;return e=e===aL?r8:e,arguments.length?e(arguments[0],arguments[1]):e}function id(e,t){var r,n=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?n["string"==typeof t?"string":"hash"]:n.map}function ih(e){for(var t=ah(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,i==i&&!oW(i)]}return t}function ip(e,t){var n=null==e?r:e[t];return r6(n)?n:r}var ig=tQ?function(e){return null==e?[]:tu(tQ(e=eA(e)),function(t){return eX.call(e,t)})}:aY,im=tQ?function(e){for(var t=[];e;)tp(t,ig(e)),e=eW(e);return t}:aY,iw=rQ;function ib(e,t,r){t=nO(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=iU(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&oq(i)&&iC(a,i)&&(oD(e)||oM(e))}function iv(e){return"function"!=typeof e.constructor||i_(e)?{}:rg(eW(e))}function iy(e){return oD(e)||oM(e)||!!(e3&&e&&e[e3])}function iC(e,t){var r=typeof e;return!!(t=t??9007199254740991)&&("number"==r||"symbol"!=r&&eh.test(e))&&e>-1&&e%1==0&&e<t}function ix(e,t,r){if(!oW(r))return!1;var n=typeof t;return("number"==n?!!(o$(r)&&iC(t,r.length)):"string"==n&&t in r)&&oO(r[t],e)}function iA(e,t){if(oD(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||oX(e))||G.test(e)||!Z.test(e)||null!=t&&e in eA(t)}function iE(e){var t=ic(e),r=rp[t];if("function"!=typeof r||!(t in rb.prototype))return!1;if(e===r)return!0;var n=is(r);return!!n&&e===n[0]}(t9&&iw(new t9(new ArrayBuffer(1)))!=S||t7&&iw(new t7)!=m||re&&iw(re.resolve())!=y||rt&&iw(new rt)!=x||rr&&iw(new rr)!=k)&&(iw=function(e){var t=rQ(e),n=t==b?e.constructor:r,i=n?iL(n):"";if(i)switch(i){case ra:return S;case rs:return m;case rc:return y;case rl:return x;case ru:return k}return t});var ik=eR?oF:aQ;function i_(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eI)}function iS(e,t){return function(n){return null!=n&&n[e]===t&&(t!==r||e in eA(n))}}function iT(e,t,n){return t=t2(t===r?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=t2(r.length-t,0),a=eb(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=eb(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),ta(e,this,s)}}function iI(e,t){return t.length<2?e:rK(e,ng(t,0,-1))}function iR(e,t){if(!("constructor"===t&&"function"==typeof e[t])&&"__proto__"!=t)return e[t]}var iO=iD(nf),iP=t_||function(e,t){return e5.setTimeout(e,t)},iN=iD(np);function iM(e,t,r){var n,i,o=t+"";return iN(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ee,`{ 10758/* [wrapped with `+t+`] */ 10759`)}(o,(n=(i=o.match(et))?i[1].split(er):[],tc(c,function(e){var t="_."+e[0];r&e[1]&&!td(n,t)&&n.push(t)}),n.sort())))}function iD(e){var t=0,n=0;return function(){var i=t5(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function iB(e,t){var n=-1,i=e.length,o=i-1;for(t=t===r?i:t;++n<t;){var a=nl(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var i$=(em=(X=ok(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(K,function(e,r,n,i){t.push(n?i.replace(eo,"$1"):r||e)}),t},function(e){return 500===em.size&&em.clear(),e})).cache,X);function iU(e){if("string"==typeof e||oX(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}function iL(e){if(null!=e){try{return eO.call(e)}catch{}try{return e+""}catch{}}return""}function ij(e){if(e instanceof rb)return e.clone();var t=new rw(e.__wrapped__,e.__chain__);return t.__actions__=nj(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var iz=nd(function(e,t){return oU(e)?r$(e,rH(t,1,oU,!0)):[]}),iF=nd(function(e,t){var n=iQ(t);return oU(n)&&(n=r),oU(e)?r$(e,rH(t,1,oU,!0),iu(n,2)):[]}),iH=nd(function(e,t){var n=iQ(t);return oU(n)&&(n=r),oU(e)?r$(e,rH(t,1,oU,!0),r,n):[]});function iq(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:o4(r);return i<0&&(i=t2(n+i,0)),ty(e,iu(t,3),i)}function iW(e,t,n){var i=null==e?0:e.length;if(!i)return -1;var o=i-1;return n!==r&&(o=o4(n),o=n<0?t2(i+o,0):t3(o,i-1)),ty(e,iu(t,3),o,!0)}function iV(e){return(null==e?0:e.length)?rH(e,1):[]}function iZ(e){return e&&e.length?e[0]:r}var iG=nd(function(e){var t=tf(e,nI);return t.length&&t[0]===e[0]?r1(t):[]}),iK=nd(function(e){var t=iQ(e),n=tf(e,nI);return t===iQ(n)?t=r:n.pop(),n.length&&n[0]===e[0]?r1(n,iu(t,2)):[]}),iY=nd(function(e){var t=iQ(e),n=tf(e,nI);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?r1(n,r,t):[]});function iQ(e){var t=null==e?0:e.length;return t?e[t-1]:r}var iJ=nd(iX);function iX(e,t){return e&&e.length&&t&&t.length?ns(e,t):e}var i0=ii(function(e,t){var r=null==e?0:e.length,n=rP(e,t);return nc(e,tf(t,function(e){return iC(e,r)?+e:e}).sort(n$)),n});function i1(e){return null==e?e:t8.call(e)}var i2=nd(function(e){return nx(rH(e,1,oU,!0))}),i3=nd(function(e){var t=iQ(e);return oU(t)&&(t=r),nx(rH(e,1,oU,!0),iu(t,2))}),i5=nd(function(e){var t=iQ(e);return t="function"==typeof t?t:r,nx(rH(e,1,oU,!0),r,t)});function i4(e){if(!(e&&e.length))return[];var t=0;return e=tu(e,function(e){if(oU(e))return t=t2(e.length,t),!0}),tI(t,function(t){return tf(e,tk(t))})}function i6(e,t){if(!(e&&e.length))return[];var n=i4(e);return null==t?n:tf(n,function(e){return ta(t,r,e)}
vendor: 11,376 bytes, line 10759
10759)}var i8=nd(function(e,t){return oU(e)?r$(e,t):[]}),i9=nd(function(e){return nS(tu(e,oU))}),i7=nd(function(e){var t=iQ(e);return oU(t)&&(t=r),nS(tu(e,oU),iu(t,2))}),oe=nd(function(e){var t=iQ(e);return t="function"==typeof t?t:r,nS(tu(e,oU),r,t)}),ot=nd(i4),or=nd(function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,i6(e,n)});function on(e){var t=rp(e);return t.__chain__=!0,t}function oi(e,t){return t(e)}var oo=ii(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return rP(t,e)};return!(t>1)&&!this.__actions__.length&&i instanceof rb&&iC(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:oi,args:[o],thisArg:r}),new rw(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(o)}),oa=nF(function(e,t,r){eP.call(e,r)?++e[r]:rO(e,r,1)}),os=nK(iq),oc=nK(iW);function ol(e,t){return(oD(e)?tc:rU)(e,iu(t,3))}function ou(e,t){return(oD(e)?function(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}:rL)(e,iu(t,3))}var od=nF(function(e,t,r){eP.call(e,r)?e[r].push(t):rO(e,r,[t])}),oh=nd(function(e,t,r){var n=-1,i="function"==typeof t,o=o$(e)?eb(e.length):[];return rU(e,function(e){o[++n]=i?ta(t,e,r):r2(e,t,r)}),o}),of=nF(function(e,t,r){rO(e,r,t)});function op(e,t){return(oD(e)?tf:ne)(e,iu(t,3))}var og=nF(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]}),om=nd(function(e,t){if(null==e)return[];var r=t.length;return r>1&&ix(e,t[0],t[1])?t=[]:r>2&&ix(t[0],t[1],t[2])&&(t=[t[0]]),no(e,rH(t,1),[])}),ow=tb||function(){return e5.Date.now()};function ob(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,n9(e,128,r,r,r,r,t)}function ov(e,t){var i;if("function"!=typeof t)throw new e_(n);return e=o4(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=r),i}}var oy=nd(function(e,t,r){var n=1;if(r.length){var i=tF(r,il(oy));n|=32}return n9(e,n,t,r,i)}),oC=nd(function(e,t,r){var n=3;if(r.length){var i=tF(r,il(oC));n|=32}return n9(t,n,e,r,i)});function ox(e,t,i){var o,a,s,c,l,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new e_(n);function g(t){var n=o,i=a;return o=a=r,d=t,c=e.apply(i,n)}function m(e){var n=e-u,i=e-d;return u===r||n>=t||n<0||f&&i>=s}function w(){var e,r,n,i=ow();if(m(i))return b(i);l=iP(w,(e=i-u,r=i-d,n=t-e,f?t3(n,s-r):n))}function b(e){return l=r,p&&o?g(e):(o=a=r,c)}function v(){var e,n=ow(),i=m(n);if(o=arguments,a=this,u=n,i){if(l===r)return d=e=u,l=iP(w,t),h?g(e):c;if(f)return nN(l),l=iP(w,t),g(u)}return l===r&&(l=iP(w,t)),c}return t=o8(t)||0,oW(i)&&(h=!!i.leading,s=(f="maxWait"in i)?t2(o8(i.maxWait)||0,t):s,p="trailing"in i?!!i.trailing:p),v.cancel=function(){l!==r&&nN(l),d=0,o=u=a=l=r},v.flush=function(){return l===r?c:b(ow())},v}var oA=nd(function(e,t){return rB(e,1,t)}),oE=nd(function(e,t,r){return rB(e,o8(t)||0,r)});function ok(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new e_(n);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(ok.Cache||rC),r}function o_(e){if("function"!=typeof e)throw new e_(n);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ok.Cache=rC;var oS=nd(function(e,t){var r=(t=1==t.length&&oD(t[0])?tf(t[0],tO(iu())):tf(rH(t,1),tO(iu()))).length;return nd(function(n){for(var i=-1,o=t3(n.length,r);++i<o;)n[i]=t[i].call(this,n[i]);return ta(e,this,n)})}),oT=nd(function(e,t){var n=tF(t,il(oT));return n9(e,32,r,t,n)}),oI=nd(function(e,t){var n=tF(t,il(oI));return n9(e,64,r,t,n)}),oR=ii(function(e,t){return n9(e,256,r,r,r,t)});function oO(e,t){return e===t||e!=e&&t!=t}var oP=n3(rJ),oN=n3(function(e,t){return e>=t}),oM=r3(function(){return arguments}())?r3:function(e){return oV(e)&&eP.call(e,"callee")&&!eX.call(e,"callee")},oD=eb.isArray,oB=te?tO(te):function(e){return oV(e)&&rQ(e)==_};function o$(e){return null!=e&&oq(e.length)&&!oF(e)}function oU(e){return oV(e)&&o$(e)}var oL=tJ||aQ,oj=tt?tO(tt):function(e){return oV(e)&&rQ(e)==h};function oz(e){if(!oV(e))return!1;var t=rQ(e);return t==f||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!oK(e)}function oF(e){if(!oW(e))return!1;var t=rQ(e);return t==p||t==g||"[object AsyncFunction]"==t||"[object Proxy]"==t}function oH(e){return"number"==typeof e&&e==o4(e)}function oq(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function oW(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function oV(e){return null!=e&&"object"==typeof e}var oZ=tr?tO(tr):function(e){return oV(e)&&iw(e)==m};function oG(e){return"number"==typeof e||oV(e)&&rQ(e)==w}function oK(e){if(!oV(e)||rQ(e)!=b)return!1;var t=eW(e);if(null===t)return!0;var r=eP.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eO.call(r)==eB}var oY=tn?tO(tn):function(e){return oV(e)&&rQ(e)==C},oQ=ti?tO(ti):function(e){return oV(e)&&iw(e)==x};function oJ(e){return"string"==typeof e||!oD(e)&&oV(e)&&rQ(e)==A}function oX(e){return"symbol"==typeof e||oV(e)&&rQ(e)==E}var o0=to?tO(to):function(e){return oV(e)&&oq(e.length)&&!!eQ[rQ(e)]},o1=n3(r7),o2=n3(function(e,t){return e<=t});function o3(e){if(!e)return[];if(o$(e))return oJ(e)?tW(e):nj(e);if(e4&&e[e4])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[e4]());var t=iw(e);return(t==m?tj:t==x?tH:aC)(e)}function o5(e){return e?(e=o8(e))===a||e===-a?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}function o4(e){var t=o5(e),r=t%1;return t==t?r?t-r:t:0}function o6(e){return e?rN(o4(e),0,4294967295):0}function o8(e){if("number"==typeof e)return e;if(oX(e))return s;if(oW(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=oW(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=tR(e);var r=el.test(e);return r||ed.test(e)?e1(e.slice(2),r?2:8):ec.test(e)?s:+e}function o9(e){return nz(e,af(e))}function o7(e){return null==e?"":nC(e)}var ae=nH(function(e,t){if(i_(t)||o$(t)){nz(t,ah(t),e);return}for(var r in t)eP.call(t,r)&&rS(e,r,t[r])}),at=nH(function(e,t){nz(t,af(t),e)}),ar=nH(function(e,t,r,n){nz(t,af(t),e,n)}),an=nH(function(e,t,r,n){nz(t,ah(t),e,n)}),ai=ii(rP),ao=nd(function(e,t){e=eA(e);var n=-1,i=t.length,o=i>2?t[2]:r;for(o&&ix(t[0],t[1],o)&&(i=1);++n<i;)for(var a=t[n],s=af(a),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===r||oO(d,eI[u])&&!eP.call(e,u))&&(e[u]=a[u])}return e}),aa=nd(function(e){return e.push(r,ie),ta(ag,r,e)});function as(e,t,n){var i=null==e?r:rK(e,t);return i===r?n:i}function ac(e,t){return null!=e&&ib(e,t,r0)}var al=nJ(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=eD.call(t)),e[t]=r},aD(aU)),au=nJ(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=eD.call(t)),eP.call(e,t)?e[t].push(r):e[t]=[r]},iu),ad=nd(r2);function ah(e){return o$(e)?rE(e):r9(e)}function af(e){return o$(e)?rE(e,!0):function(e){if(!oW(e))return function(e){var t=[];if(null!=e)for(var r in eA(e))t.push(r);return t}(e);var t=i_(e),r=[];for(var n in e)"constructor"==n&&(t||!eP.call(e,n))||r.push(n);return r}(e)}var ap=nH(function(e,t,r){nn(e,t,r)}),ag=nH(function(e,t,r,n){nn(e,t,r,n)}),am=ii(function(e,t){var r={};if(null==e)return r;var n=!1;t=tf(t,function(t){return t=nO(t,e),n||(n=t.length>1),t}),nz(e,ia(e),r),n&&(r=rM(r,7,it));for(var i=t.length;i--;)nA(r,t[i]);return r}),aw=ii(function(e,t){return null==e?{}:na(e,t,function(t,r){return ac(e,r)})});function ab(e,t){if(null==e)return{};var r=tf(ia(e),function(e){return[e]});return t=iu(t),na(e,r,function(e,r){return t(e,r[0])})}var av=n8(ah),ay=n8(af);function aC(e){return null==e?[]:tP(e,ah(e))}var ax=nZ(function(e,t,r){return t=t.toLowerCase(),e+(r?aA(t):t)});function aA(e){return aO(o7(e).toLowerCase())}function aE(e){return(e=o7(e))&&e.replace(ef,tB).replace(eq,"")}var ak=nZ(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),a_=nZ(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),aS=nV("toLowerCase"),aT=nZ(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}),aI=nZ(function(e,t,r){return e+(r?" ":"")+aO(t)}),aR=nZ(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),aO=nV("toUpperCase");function aP(e,t,n){var i;return e=o7(e),(t=n?r:t)===r?(i=e,eG.test(i))?e.match(eV)||[]:e.match(en)||[]:e.match(t)||[]}var aN=nd(function(e,t){try{return ta(e,r,t)}catch(e){return oz(e)?e:new ey(e)}}),aM=ii(function(e,t){return tc(t,function(t){rO(e,t=iU(t),oy(e[t],e))}),e});function aD(e){return function(){return e}}var aB=nY(),a$=nY(!0);function aU(e){return e}function aL(e){return r8("function"==typeof e?e:rM(e,1))}var aj=nd(function(e,t){return function(r){return r2(r,e,t)}}),az=nd(function(e,t){return function(r){return r2(e,r,t)}});function aF(e,t,r){var n=ah(t),i=rG(t,n);null!=r||oW(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=rG(t,ah(t)));var o=!(oW(r)&&"chain"in r)||!!r.chain,a=oF(e);return tc(i,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=nj(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,tp([this.value()],arguments))})}),e}function aH(){}var aq=n0(tf),aW=n0(tl),aV=n0(tw);function aZ(e){return iA(e)?tk(iU(e)):function(t){return rK(t,e)}}var aG=n2(),aK=n2(!0);function aY(){return[]}function aQ(){return!1}var aJ=nX(function(e,t){return e+t},0),aX=n4("ceil"),a0=nX(function(e,t){return e/t},1),a1=n4("floor"),a2=nX(function(e,t){return e*t},1),a3=n4("round"),a5=nX(function(e,t){return e-t},0);return rp.after=function(e,t){if("function"!=typeof t)throw new e_(n);return e=o4(e),function(){if(--e<1)return t.apply(this,arguments)}},rp.ary=ob,rp.assign=ae,rp.assignIn=at,rp.assignInWith=ar,rp.assignWith=an,rp.at=ai,rp.before=ov,rp.bind=oy,rp.bindAll=aM,rp.bindKey=oC,rp.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return oD(e)?e:[e]},rp.chain=on,rp.chunk=function(e,t,n){t=(n?ix(e,t,n):t===r)?1:t2(o4(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=eb(tK(i/t));o<i;)s[a++]=ng(e,o,o+=t);return s},rp.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var o=e[t];o&&(i[n++]=o)}return i},rp.concat=function(){var e=arguments.length;if(!e)return[];for(var t=eb(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return tp(oD(r)?nj(r):[r],rH(t,1))},rp.cond=function(e){var t=null==e?0:e.length,r=iu();return e=t?tf(e,function(e){if("function"!=typeof e[1])throw new e_(n);return[r(e[0]),e[1]]}):[],nd(function(r){for(var n=-1;++n<t;){var i=e[n];if(ta(i[0],this,r))return ta(i[1],this,r)}})},rp.conforms=function(e){var t,r;return r=ah(t=rM(e,1)),function(e){return rD(e,t,r)}},rp.constant=aD,rp.countBy=oa,rp.create=function(e,t){var r=rg(e);return null==t?r:rR(r,t)},rp.curry=function e(t,n,i){n=i?r:n;var o=n9(t,8,r,r,r,r,r,n);return o.placeholder=e.placeholder,o},rp.curryRight=function e(t,n,i){n=i?r:n;var o=n9(t,16,r,r,r,r,r,n);return o.placeholder=e.placeholder,o},rp.debounce=ox,rp.defaults=ao,rp.defaultsDeep=aa,rp.defer=oA,rp.delay=oE,rp.difference=iz,rp.differenceBy=iF,rp.differenceWith=iH,rp.drop=function(e,t,n){var i=null==e?0:e.length;return i?ng(e,(t=n||t===r?1:o4(t))<0?0:t,i):[]},rp.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?ng(e,0,(t=i-(t=n||t===r?1:o4(t)))<0?0:t):[]},rp.dropRightWhile=function(e,t){return e&&e.length?nk(e,iu(t,3),!0,
vendor: 13,877 bytes, lines 10759-10776
10759!0):[]},rp.dropWhile=function(e,t){return e&&e.length?nk(e,iu(t,3),!0):[]},rp.fill=function(e,t,n,i){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&ix(e,t,n)&&(n=0,i=o),function(e,t,n,i){var o=e.length;for((n=o4(n))<0&&(n=-n>o?0:o+n),(i=i===r||i>o?o:o4(i))<0&&(i+=o),i=n>i?0:o6(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},rp.filter=function(e,t){return(oD(e)?tu:rF)(e,iu(t,3))},rp.flatMap=function(e,t){return rH(op(e,t),1)},rp.flatMapDeep=function(e,t){return rH(op(e,t),a)},rp.flatMapDepth=function(e,t,n){return n=n===r?1:o4(n),rH(op(e,t),n)},rp.flatten=iV,rp.flattenDeep=function(e){return(null==e?0:e.length)?rH(e,a):[]},rp.flattenDepth=function(e,t){return(null==e?0:e.length)?rH(e,t=t===r?1:o4(t)):[]},rp.flip=function(e){return n9(e,512)},rp.flow=aB,rp.flowRight=a$,rp.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},rp.functions=function(e){return null==e?[]:rG(e,ah(e))},rp.functionsIn=function(e){return null==e?[]:rG(e,af(e))},rp.groupBy=od,rp.initial=function(e){return(null==e?0:e.length)?ng(e,0,-1):[]},rp.intersection=iG,rp.intersectionBy=iK,rp.intersectionWith=iY,rp.invert=al,rp.invertBy=au,rp.invokeMap=oh,rp.iteratee=aL,rp.keyBy=of,rp.keys=ah,rp.keysIn=af,rp.map=op,rp.mapKeys=function(e,t){var r={};return t=iu(t,3),rV(e,function(e,n,i){rO(r,t(e,n,i),e)}),r},rp.mapValues=function(e,t){var r={};return t=iu(t,3),rV(e,function(e,n,i){rO(r,n,t(e,n,i))}),r},rp.matches=function(e){return nt(rM(e,1))},rp.matchesProperty=function(e,t){return nr(e,rM(t,1))},rp.memoize=ok,rp.merge=ap,rp.mergeWith=ag,rp.method=aj,rp.methodOf=az,rp.mixin=aF,rp.negate=o_,rp.nthArg=function(e){return e=o4(e),nd(function(t){return ni(t,e)})},rp.omit=am,rp.omitBy=function(e,t){return ab(e,o_(iu(t)))},rp.once=function(e){return ov(2,e)},rp.orderBy=function(e,t,n,i){return null==e?[]:(oD(t)||(t=null==t?[]:[t]),oD(n=i?r:n)||(n=null==n?[]:[n]),no(e,t,n))},rp.over=aq,rp.overArgs=oS,rp.overEvery=aW,rp.overSome=aV,rp.partial=oT,rp.partialRight=oI,rp.partition=og,rp.pick=aw,rp.pickBy=ab,rp.property=aZ,rp.propertyOf=function(e){return function(t){return null==e?r:rK(e,t)}},rp.pull=iJ,rp.pullAll=iX,rp.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?ns(e,t,iu(r,2)):e},rp.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?ns(e,t,r,n):e},rp.pullAt=i0,rp.range=aG,rp.rangeRight=aK,rp.rearg=oR,rp.reject=function(e,t){return(oD(e)?tu:rF)(e,o_(iu(t,3)))},rp.remove=function(e,t){var r=[];if(!(e&&e.length))return r;var n=-1,i=[],o=e.length;for(t=iu(t,3);++n<o;){var a=e[n];t(a,n,e)&&(r.push(a),i.push(n))}return nc(e,i),r},rp.rest=function(e,t){if("function"!=typeof e)throw new e_(n);return nd(e,t=t===r?t:o4(t))},rp.reverse=i1,rp.sampleSize=function(e,t,n){return t=(n?ix(e,t,n):t===r)?1:o4(t),(oD(e)?function(e,t){return iB(nj(e),rN(t,0,e.length))}:function(e,t){var r=aC(e);return iB(r,rN(t,0,r.length))})(e,t)},rp.set=function(e,t,r){return null==e?e:nh(e,t,r)},rp.setWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:nh(e,t,n,i)},rp.shuffle=function(e){return(oD(e)?function(e){return iB(nj(e))}:function(e){return iB(aC(e))})(e)},rp.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ix(e,t,n)?(t=0,n=i):(t=null==t?0:o4(t),n=n===r?i:o4(n)),ng(e,t,n)):[]},rp.sortBy=om,rp.sortedUniq=function(e){return e&&e.length?nv(e):[]},rp.sortedUniqBy=function(e,t){return e&&e.length?nv(e,iu(t,2)):[]},rp.split=function(e,t,n){return n&&"number"!=typeof n&&ix(e,t,n)&&(t=n=r),(n=n===r?4294967295:n>>>0)?(e=o7(e))&&("string"==typeof t||null!=t&&!oY(t))&&!(t=nC(t))&&tL(e)?nP(tW(e),0,n):e.split(t,n):[]},rp.spread=function(e,t){if("function"!=typeof e)throw new e_(n);return t=null==t?0:t2(o4(t),0),nd(function(r){var n=r[t],i=nP(r,0,t);return n&&tp(i,n),ta(e,this,i)})},rp.tail=function(e){var t=null==e?0:e.length;return t?ng(e,1,t):[]},rp.take=function(e,t,n){return e&&e.length?ng(e,0,(t=n||t===r?1:o4(t))<0?0:t):[]},rp.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?ng(e,(t=i-(t=n||t===r?1:o4(t)))<0?0:t,i):[]},rp.takeRightWhile=function(e,t){return e&&e.length?nk(e,iu(t,3),!1,!0):[]},rp.takeWhile=function(e,t){return e&&e.length?nk(e,iu(t,3)):[]},rp.tap=function(e,t){return t(e),e},rp.throttle=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw new e_(n);return oW(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),ox(e,t,{leading:i,maxWait:t,trailing:o})},rp.thru=oi,rp.toArray=o3,rp.toPairs=av,rp.toPairsIn=ay,rp.toPath=function(e){return oD(e)?tf(e,iU):oX(e)?[e]:nj(i$(o7(e)))},rp.toPlainObject=o9,rp.transform=function(e,t,r){var n=oD(e),i=n||oL(e)||o0(e);if(t=iu(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:oW(e)&&oF(o)?rg(eW(e)):{}}return(i?tc:rV)(e,function(e,n,i){return t(r,e,n,i)}),r},rp.unary=function(e){return ob(e,1)},rp.union=i2,rp.unionBy=i3,rp.unionWith=i5,rp.uniq=function(e){return e&&e.length?nx(e):[]},rp.uniqBy=function(e,t){return e&&e.length?nx(e,iu(t,2)):[]},rp.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?nx(e,r,t):[]},rp.unset=function(e,t){return null==e||nA(e,t)},rp.unzip=i4,rp.unzipWith=i6,rp.update=function(e,t,r){return null==e?e:nE(e,t,nR(r))},rp.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:nE(e,t,nR(n),i)},rp.values=aC,rp.valuesIn=function(e){return null==e?[]:tP(e,af(e))},rp.without=i8,rp.words=aP,rp.wrap=function(e,t){return oT(nR(t),e)},rp.xor=i9,rp.xorBy=i7,rp.xorWith=oe,rp.zip=ot,rp.zipObject=function(e,t){return nT(e||[],t||[],rS)},rp.zipObjectDeep=function(e,t){return nT(e||[],t||[],nh)},rp.zipWith=or,rp.entries=av,rp.entriesIn=ay,rp.extend=at,rp.extendWith=ar,aF(rp,rp),rp.add=aJ,rp.attempt=aN,rp.camelCase=ax,rp.capitalize=aA,rp.ceil=aX,rp.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=o8(n))==n?n:0),t!==r&&(t=(t=o8(t))==t?t:0),rN(o8(e),t,n)},rp.clone=function(e){return rM(e,4)},rp.cloneDeep=function(e){return rM(e,5)},rp.cloneDeepWith=function(e,t){return rM(e,5,t="function"==typeof t?t:r)},rp.cloneWith=function(e,t){return rM(e,4,t="function"==typeof t?t:r)},rp.conformsTo=function(e,t){return null==t||rD(e,t,ah(t))},rp.deburr=aE,rp.defaultTo=function(e,t){return null==e||e!=e?t:e},rp.divide=a0,rp.endsWith=function(e,t,n){e=o7(e),t=nC(t);var i=e.length,o=n=n===r?i:rN(o4(n),0,i);return(n-=t.length)>=0&&e.slice(n,o)==t},rp.eq=oO,rp.escape=function(e){return(e=o7(e))&&H.test(e)?e.replace(z,t$):e},rp.escapeRegExp=function(e){return(e=o7(e))&&Q.test(e)?e.replace(Y,"\\$&"):e},rp.every=function(e,t,n){var i=oD(e)?tl:rj;return n&&ix(e,t,n)&&(t=r),i(e,iu(t,3))},rp.find=os,rp.findIndex=iq,rp.findKey=function(e,t){return tv(e,iu(t,3),rV)},rp.findLast=oc,rp.findLastIndex=iW,rp.findLastKey=function(e,t){return tv(e,iu(t,3),rZ)},rp.floor=a1,rp.forEach=ol,rp.forEachRight=ou,rp.forIn=function(e,t){return null==e?e:rq(e,iu(t,3),af)},rp.forInRight=function(e,t){return null==e?e:rW(e,iu(t,3),af)},rp.forOwn=function(e,t){return e&&rV(e,iu(t,3))},rp.forOwnRight=function(e,t){return e&&rZ(e,iu(t,3))},rp.get=as,rp.gt=oP,rp.gte=oN,rp.has=function(e,t){return null!=e&&ib(e,t,rX)},rp.hasIn=ac,rp.head=iZ,rp.identity=aU,rp.includes=function(e,t,r,n){e=o$(e)?e:aC(e),r=r&&!n?o4(r):0;var i=e.length;return r<0&&(r=t2(i+r,0)),oJ(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&tC(e,t,r)>-1},rp.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:o4(r);return i<0&&(i=t2(n+i,0)),tC(e,t,i)},rp.inRange=function(e,t,n){var i,o,a;return t=o5(t),n===r?(n=t,t=0):n=o5(n),(i=e=o8(e))>=t3(o=t,a=n)&&i<t2(o,a)},rp.invoke=ad,rp.isArguments=oM,rp.isArray=oD,rp.isArrayBuffer=oB,rp.isArrayLike=o$,rp.isArrayLikeObject=oU,rp.isBoolean=function(e){return!0===e||!1===e||oV(e)&&rQ(e)==d},rp.isBuffer=oL,rp.isDate=oj,rp.isElement=function(e){return oV(e)&&1===e.nodeType&&!oK(e)},rp.isEmpty=function(e){if(null==e)return!0;if(o$(e)&&(oD(e)||"string"==typeof e||"function"==typeof e.splice||oL(e)||o0(e)||oM(e)))return!e.length;var t=iw(e);if(t==m||t==x)return!e.size;if(i_(e))return!r9(e).length;for(var r in e)if(eP.call(e,r))return!1;return!0},rp.isEqual=function(e,t){return r5(e,t)},rp.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?r5(e,t,r,n):!!i},rp.isError=oz,rp.isFinite=function(e){return"number"==typeof e&&tX(e)},rp.isFunction=oF,rp.isInteger=oH,rp.isLength=oq,rp.isMap=oZ,rp.isMatch=function(e,t){return e===t||r4(e,t,ih(t))},rp.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,r4(e,t,ih(t),n)},rp.isNaN=function(e){return oG(e)&&e!=+e},rp.isNative=function(e){if(ik(e))throw new ey("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return r6(e)},rp.isNil=function(e){return null==e},rp.isNull=function(e){return null===e},rp.isNumber=oG,rp.isObject=oW,rp.isObjectLike=oV,rp.isPlainObject=oK,rp.isRegExp=oY,rp.isSafeInteger=function(e){return oH(e)&&e>=-9007199254740991&&e<=9007199254740991},rp.isSet=oQ,rp.isString=oJ,rp.isSymbol=oX,rp.isTypedArray=o0,rp.isUndefined=function(e){return e===r},rp.isWeakMap=function(e){return oV(e)&&iw(e)==k},rp.isWeakSet=function(e){return oV(e)&&"[object WeakSet]"==rQ(e)},rp.join=function(e,t){return null==e?"":t0.call(e,t)},rp.kebabCase=ak,rp.last=iQ,rp.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return -1;var o=i;return n!==r&&(o=(o=o4(n))<0?t2(i+o,0):t3(o,i-1)),t==t?function(e,t,r){for(var n=r+1;n--&&e[n]!==t;);return n}(e,t,o):ty(e,tA,o,!0)},rp.lowerCase=a_,rp.lowerFirst=aS,rp.lt=o1,rp.lte=o2,rp.max=function(e){return e&&e.length?rz(e,aU,rJ):r},rp.maxBy=function(e,t){return e&&e.length?rz(e,iu(t,2),rJ):r},rp.mean=function(e){return tE(e,aU)},rp.meanBy=function(e,t){return tE(e,iu(t,2))},rp.min=function(e){return e&&e.length?rz(e,aU,r7):r},rp.minBy=function(e,t){return e&&e.length?rz(e,iu(t,2),r7):r},rp.stubArray=aY,rp.stubFalse=aQ,rp.stubObject=function(){return{}},rp.stubString=function(){return""},rp.stubTrue=function(){return!0},rp.multiply=a2,rp.nth=function(e,t){return e&&e.length?ni(e,o4(t)):r},rp.noConflict=function(){return e5._===this&&(e5._=e$),this},rp.noop=aH,rp.now=ow,rp.pad=function(e,t,r){e=o7(e);var n=(t=o4(t))?tq(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return n1(tY(i),r)+e+n1(tK(i),r)},rp.padEnd=function(e,t,r){e=o7(e);var n=(t=o4(t))?tq(e):0;return t&&n<t?e+n1(t-n,r):e},rp.padStart=function(e,t,r){e=o7(e);var n=(t=o4(t))?tq(e):0;return t&&n<t?n1(t-n,r)+e:e},rp.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),t4(o7(e).replace(J,""),t||0)},rp.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ix(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=o5(e),t===r?(t=e,e=0):t=o5(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var o=t6();return t3(e+o*(t-e+e0("1e-"+((o+"").length-1))),t)}return nl(e,t)},rp.reduce=function(e,t,r){var n=oD(e)?tg:tS,i=arguments.length<3;return n(e,iu(t,4),r,i,rU)},rp.reduceRight=function(e,t,r){var n=oD(e)?tm:tS,i=arguments.length<3;return n(e,iu(t,4),r,i,rL)},rp.repeat=function(e,t,n){return t=(n?ix(e,t,n):t===r)?1:o4(t),nu(o7(e),t)},rp.replace=function(){var e=arguments,t=o7(e[0]);return e.length<3?t:t.replace(e[1],e[2])},rp.result=function(e,t,n){t=nO(t,e);var i=-1,o=t.length;for(o||(o=1,e=r);++i<o;){var a=null==e?r:e[iU(t[i])];a===r&&(i=o,a=n),e=oF(a)?a.call(e):a}return e},rp.round=a3,rp.runInContext=e,rp.sample=function(e){return(oD(e)?rk:function(e){return rk(aC(e))})(e)},rp.size=function(e){if(null==e)return 0;if(o$(e))return oJ(e)?tq(e):e.length;var t=iw(e);return t==m||t==x?e.size:r9(e).length},rp.snakeCase=aT,rp.some=function(e,t,n){var i=oD(e)?tw:nm;return n&&ix(e,t,n)&&(t=r),i(e,iu(t,3))},rp.sortedIndex=function(e,t){return nw(e,t)},rp.sortedIndexBy=function(e,t,r){return nb(e,t,iu(r,2))},rp.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=nw(e,t);if(n<r&&oO(e[n],t))return n}return -1},rp.sortedLastIndex=function(e,t){return nw(e,t,!0)},rp.sortedLastIndexBy=function(e,t,r){return nb(e,t,iu(r,2),!0)},rp.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=nw(e,t,!0)-1;if(oO(e[r],t))return r}return -1},rp.startCase=aI,rp.startsWith=function(e,t,r){return e=o7(e),r=null==r?0:rN(o4(r),0,e.length),t=nC(t),e.slice(r,r+t.length)==t},rp.subtract=a5,rp.sum=function(e){return e&&e.length?tT(e,aU):0},rp.sumBy=function(e,t){return e&&e.length?tT(e,iu(t,2)):0},rp.template=function(e,t,n){var i=rp.templateSettings;n&&ix(e,t,n)&&(t=r),e=o7(e),t=ar({},t,i,n7);var o,a,s=ar({},t.imports,i.imports,n7),c=ah(s),l=tP(s,c),u=0,d=t.interpolate||ep,h="__p += '",f=eE((t.escape||ep).source+"|"+d.source+"|"+(d===V?ea:ep).source+"|"+(t.evaluate||ep).source+"|$","g"),p="//# sourceURL="+(eP.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++eY+"]")+` 10760`;e.replace(f,function(t,r,n,i,s,c){return n||(n=i),h+=e.slice(u,c).replace(eg,tU),r&&(o=!0,h+=`' + 10761__e(`+r+`) + 10762'`),s&&(a=!0,h+=`'; 10763`+s+`; 10764__p += '`),n&&(h+=`' + 10765((__t = (`+n+`)) == null ? '' : __t) + 10766'`),u=c+t.length,t}),h+=`'; 10767`;var g=eP.call(t,"variable")&&t.variable;if(g){if(ei.test(g))throw new ey("Invalid `variable` option passed into `_.template`")}else h=`with (obj) { 10768`+h+` 10769} 10770`;h=(a?h.replace($,""):h).replace(U,"$1").replace(L,"$1;"),h="function("+(g||"obj")+`) { 10771`+(g?"":`obj || (obj = {}); 10772`)+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?`, __j = Array.prototype.join; 10773function print() { __p += __j.call(arguments, '') } 10774`:`; 10775`)+h+`return __p 10776}`;var m=aN(function(){return eC(c,p+"return "+h).apply(r,l)});if(m.source=h,oz(m))throw m;return m},rp.times=function(e,t){if((e=o4(e))<1||e>9007199254740991)return[];var r=4294967295,n=t3(e,4294967295);t=iu(t),e-=4294967295;for(var i=tI(n,t);++r<e;)t(r);return i},rp.toFinite=o5,rp.toInteger=o4,rp.toLength=o6,rp.toLower=function(e){return o7(e).toLowerCase()},rp.toNumber=o8,rp.toSafeInteger=function(e){return e?rN(o4(e),-9007199254740991,9007199254740991):0===e?e:0},rp.toString=o7,rp.toUpper=function(e){return o7(e).toUpperCase()}
vendor: 5,066 bytes, line 10776
10776,rp.trim=function(e,t,n){if((e=o7(e))&&(n||t===r))return tR(e);if(!e||!(t=nC(t)))return e;var i=tW(e),o=tW(t),a=tM(i,o),s=tD(i,o)+1;return nP(i,a,s).join("")},rp.trimEnd=function(e,t,n){if((e=o7(e))&&(n||t===r))return e.slice(0,tV(e)+1);if(!e||!(t=nC(t)))return e;var i=tW(e),o=tD(i,tW(t))+1;return nP(i,0,o).join("")},rp.trimStart=function(e,t,n){if((e=o7(e))&&(n||t===r))return e.replace(J,"");if(!e||!(t=nC(t)))return e;var i=tW(e),o=tM(i,tW(t));return nP(i,o).join("")},rp.truncate=function(e,t){var n=30,i="...";if(oW(t)){var o="separator"in t?t.separator:o;n="length"in t?o4(t.length):n,i="omission"in t?nC(t.omission):i}var a=(e=o7(e)).length;if(tL(e)){var s=tW(e);a=s.length}if(n>=a)return e;var c=n-tq(i);if(c<1)return i;var l=s?nP(s,0,c).join(""):e.slice(0,c);if(o===r)return l+i;if(s&&(c+=l.length-c),oY(o)){if(e.slice(c).search(o)){var u,d=l;for(o.global||(o=eE(o.source,o7(es.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var h=u.index;l=l.slice(0,h===r?c:h)}}else if(e.indexOf(nC(o),c)!=c){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+i},rp.unescape=function(e){return(e=o7(e))&&F.test(e)?e.replace(j,tZ):e},rp.uniqueId=function(e){var t=++eN;return o7(e)+t},rp.upperCase=aR,rp.upperFirst=aO,rp.each=ol,rp.eachRight=ou,rp.first=iZ,aF(rp,(ew={},rV(rp,function(e,t){eP.call(rp.prototype,t)||(ew[t]=e)}),ew),{chain:!1}),rp.VERSION="4.17.21",tc(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){rp[e].placeholder=rp}),tc(["drop","take"],function(e,t){rb.prototype[e]=function(n){n=n===r?1:t2(o4(n),0);var i=this.__filtered__&&!t?new rb(this):this.clone();return i.__filtered__?i.__takeCount__=t3(n,i.__takeCount__):i.__views__.push({size:t3(n,4294967295),type:e+(i.__dir__<0?"Right":"")}),i},rb.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),tc(["filter","map","takeWhile"],function(e,t){var r=t+1,n=1==r||3==r;rb.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:iu(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),tc(["head","last"],function(e,t){var r="take"+(t?"Right":"");rb.prototype[e]=function(){return this[r](1).value()[0]}}),tc(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");rb.prototype[e]=function(){return this.__filtered__?new rb(this):this[r](1)}}),rb.prototype.compact=function(){return this.filter(aU)},rb.prototype.find=function(e){return this.filter(e).head()},rb.prototype.findLast=function(e){return this.reverse().find(e)},rb.prototype.invokeMap=nd(function(e,t){return"function"==typeof e?new rb(this):this.map(function(r){return r2(r,e,t)})}),rb.prototype.reject=function(e){return this.filter(o_(iu(e)))},rb.prototype.slice=function(e,t){e=o4(e);var n=this;return n.__filtered__&&(e>0||t<0)?new rb(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=o4(t))<0?n.dropRight(-t):n.take(t-e)),n)},rb.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},rb.prototype.toArray=function(){return this.take(4294967295)},rV(rb.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=rp[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(rp.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof rb,l=s[0],u=c||oD(t),d=function(e){var t=o.apply(rp,tp([e],s));return i&&h?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var h=this.__chain__,f=!!this.__actions__.length,p=a&&!h,g=c&&!f;if(!a&&u){t=g?t:new rb(this);var m=e.apply(t,s);return m.__actions__.push({func:oi,args:[d],thisArg:r}),new rw(m,h)}return p&&g?e.apply(this,s):(m=this.thru(d),p?i?m.value()[0]:m.value():m)})}),tc(["pop","push","shift","sort","splice","unshift"],function(e){var t=eS[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);rp.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(oD(i)?i:[],e)}return this[r](function(r){return t.apply(oD(r)?r:[],e)})}}),rV(rb.prototype,function(e,t){var r=rp[t];if(r){var n=r.name+"";eP.call(ro,n)||(ro[n]=[]),ro[n].push({name:t,func:r})}}),ro[nQ(r,2).name]=[{name:"wrapper",func:r}],rb.prototype.clone=function(){var e=new rb(this.__wrapped__);return e.__actions__=nj(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=nj(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=nj(this.__views__),e},rb.prototype.reverse=function(){if(this.__filtered__){var e=new rb(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e},rb.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=oD(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var o=r[n],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=t3(t,e+a);break;case"takeRight":e=t2(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,c=s-a,l=n?s:a-1,u=this.__iteratees__,d=u.length,h=0,f=t3(c,this.__takeCount__);if(!r||!n&&i==c&&f==c)return n_(e,this.__actions__);var p=[];t:for(;c--&&h<f;){l+=t;
10776for(var g=-1,m=e[l];++g<d;){var w=u[g],b=w.iteratee,v=w.type,y=b(m);if(2==v)m=y;else if(!y){if(1==v)continue t;break t}}p[h++]=m}return p},rp.prototype.at=oo,rp.prototype.chain=function(){return on(this)},rp.prototype.commit=function(){return new rw(this.value(),this.__chain__)},rp.prototype.next=function(){this.__values__===r&&(this.__values__=o3(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}},rp.prototype.plant=function(e){for(var t,n=this;n instanceof rm;){var i=ij(n);i.__index__=0,i.__values__=r,t?o.__wrapped__=i:t=i;var o=i;n=n.__wrapped__}return o.__wrapped__=e,t},rp.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof rb){var t=e;return this.__actions__.length&&(t=new rb(this)),(t=t.reverse()).__actions__.push({func:oi,args:[i1],thisArg:r}),new rw(t,this.__chain__)}return this.thru(i1)},rp.prototype.toJSON=rp.prototype.valueOf=rp.prototype.value=function(){return n_(this.__wrapped__,this.__actions__)},rp.prototype.first=rp.prototype.head,e4&&(rp.prototype[e4]=function(){return this}),rp}();e6?((e6.exports=tG)._=tG,e4._=tG):e5._=tG}).call(v)}(y,y.exports),Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;let C=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode","wallet_sendCalls","wallet_getCapabilities","wallet_getCallsStatus","wallet_showCallsStatus"];Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var x=r(70272),A=r(77671),E=r(71284),k=r(2302),_=r(71791),S=r(26504),T=r(79886),I=r(46717),R=r(90894),O=r(41794),P=r(704),N=r(33878),M=r(30807),D=r(48479),B=r(28562),$=r(16302),U=r(79563),L=r(16491),j=r(10373),z=r(74229);function F(e,t){let[r,n="0"]=e.split("."),i=r.startsWith("-");if(i&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${n}`))&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>t){let[e,i,o]=[n.slice(0,t-1),n.slice(t-1,t),n.slice(t)],a=Math.round(Number(`${i}.${o}`));(n=a>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${a}`).length>t&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,t)}else n=n.padEnd(t,"0");return BigInt(`${i?"-":""}${r}${n}`)}var H=r(42921),q=r(52596),W=r(40655),V=r(15519),Z=r(28049),G=r(31083);let K=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function Y(e){var t;let r;return t=function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,o=[0,1];for(let e=1;e<n;e++)o.push(i+=r());let a=r(),s=t;t+=a;let c=0,l=0;function u(){return 0==c&&(l=l<<8|e[t++],c=8),l>>--c&1}let d=2147483648-1,h=0;for(let e=0;e<31;e++)h=h<<1|u();let f=[],p=0,g=2147483648;for(;;){let e=Math.floor(((h-p+1)*i-1)/g),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<o[n]?r=n:t=n}if(0==t)break;f.push(t);let a=p+Math.floor(g*o[t]/i),s=p+Math.floor(g*o[t+1]/i)-1;for(;((a^s)&1073741824)==0;)h=h<<1&d|u(),a=a<<1&d,s=s<<1&d|1;for(;a&~s&536870912;)h=1073741824&h|h<<1&d>>>1|u(),a=a<<1^1073741824,s=(1073741824^s)<<1|1073741825;p=a,g=1+s-a}let m=n-4;return f.map(t=>{switch(t-m){case 3:return m+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return m+256+(e[s++]<<8|e[s++]);case 1:return m+e[s++];default:return t-1}})}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,r)=>t[e.charCodeAt(0)]=r);let r=e.length,n=new Uint8Array(6*r>>
107763);for(let i=0,o=0,a=0,s=0;i<r;i++)s=s<<6|t[e.charCodeAt(i)],(a+=6)>=8&&(n[o++]=s>>(a-=8));return n}(e)),r=0,()=>t[r++]}function Q(e,t=0){let r=[];for(;;){let n=e(),i=e();if(!i)break;t+=n;for(let e=0;e<i;e++)r.push(t+e);t+=i+1}return r}function J(e){return ee(()=>{let t=Q(e);if(t.length)return t})}function X(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),n=t(),i=ee(t);return et(i.length,1+e,t).flatMap((e,t)=>{let[o,...a]=e;return Array(i[t]).fill().map((e,t)=>{let i=t*n;return[o+t*r,a.map(e=>e+i)]})})}(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(et(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}return t.flat()}function ee(e){let t=[];for(;;){let r=e(t.length);if(!r)break;t.push(r)}return t}function et(e,t,r){let n=Array(e).fill().map(()=>[]);for(let i=0;i<t;i++)(function(e,t){let r=Array(e);for(let i=0,o=0;i<e;i++){var n;r[i]=o+=1&(n=t())?~n>>1:n>>1}return r})(e,r).forEach((e,t)=>n[t].push(e));return n}function er(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function en(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let r=[];for(let n=0;n<t;)r.push(String.fromCodePoint(...e.slice(n,n+=4096)));return r.join("")}function ei(e,t){let r=e.length,n=r-t.length;for(let i=0;0==n&&i<r;i++)n=e[i]-t[i];return n}function eo(e){return e>>24&255}function ea(e){return 16777215&e}function es(e){return e>=44032&&e<55204}function ec(e){n||function(){let e=Y
vendor: 7,457 bytes, line 10776
10776("AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g");f
10776or(let[t,r]of(n=new Map(J(e).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),i=new Set(Q(e)),o=new Map,a=new Map,X(e))){if(!i.has(t)&&2==r.length){let[e,n]=r,i=a.get(e);i||(i=new Map,a.set(e,i)),i.set(n,t)}o.set(t,r.reverse())}}();let t=[],r=[],s=!1;function c(e){let r=n.get(e);r&&(s=!0,e|=r),t.push(e)}for(let n of e)for(;;){if(n<128)t.push(n);else if(es(n)){let e=n-44032,t=e/588|0,r=e%588/28|0,i=e%28;c(4352+t),c(4449+r),i>0&&c(4519+i)}else{let e=o.get(n);e?r.push(...e):c(n)}if(!r.length)break;n=r.pop()}if(s&&t.length>1){let e=eo(t[0]);for(let r=1;r<t.length;r++){let n=eo(t[r]);if(0==n||e<=n){e=n;continue}let i=r-1;for(;;){let r=t[i+1];if(t[i+1]=t[i],t[i]=r,!i||(e=eo(t[--i]))<=n)break}e=eo(t[r])}}return t}function el(e){return function(e){let t=[],r=[],n=-1,i=0;for(let o of e){let e=eo(o),s=ea(o);if(-1==n)0==e?n=s:t.push(s);else if(i>0&&i>=e)0==e?(t.push(n,...r),r.length=0,n=s):r.push(s),i=e;else{let o=function(e,t){if(e>=4352&&e<4371&&t>=4449&&t<4470)return 44032+(e-4352)*588+(t-4449)*28;if(es(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);{let r=a.get(e);return r&&(r=r.get(t))?r:-1}}(n,s);o>=0?n=o:0==i&&0==e?(t.push(n),n=s):(r.push(s),i=e)}}return n>=0&&t.push(n,...r),t}(ec(e))}let eu=e=>Array.from(e);function ed(e,t){return e.P.has(t)||e.Q.has(t)}class eh extends Array{get is_emoji(){return!0}}function ef(){let e,t;if(s)return;let r=Y("AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhT
10776yiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9ey
10776MgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduP
10776jbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESV
10776FFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI"),n=()=>Q(r),i=()=>new Set(n());s=new Map(X(r)),c=i(),l=n(),u=new Set(n().map(e=>l[e])),l=new Set(l),d=i(),i();let o=J(r),a=r(),b=()=>new Set(n().flatMap(e=>o[e]).concat(n()));h=ee(e=>{let t=ee(r).map(e=>e+96);if(t.length){let n=e>=a;return t[0]-=32,t=en(t),n&&(t=`Restricted[${t}]`),{N:t,P:b(),Q:b(),M:!r(),R:n}}}),f=i(),p=new Map;let v=n().concat(eu(f)).sort((e,t)=>
10776e-t);for(let{V:e,M:t}of(v.forEach((e,t)=>{let n=r(),i=v[t]=n?v[t-n]:{V:[],M:new Map};i.V.push(e),f.has(e)||p.set(e,i)}),new Set(p.values()))){let r=[];for(let t of e){let e=h.filter(e=>ed(e,t)),n=r.find(({G:t})=>e.some(e=>t.has(e)));n||(n={G:new Set,V:[]},r.push(n)),n.V.push(t),e.forEach(e=>n.G.add(e))}let n=r.flatMap(e=>eu(e.G));for(let{G:e,V:i}of r){let r=new Set(n.filter(t=>!e.has(t)));for(let e of i)t.set(e,r)}}let y=new Set,C=new Set,x=e=>y.has(e)?C.add(e):y.add(e);for(let e of h){for(let t of e.P)x(t);for(let t of e.Q)x(t)}for(let e of y)p.has(e)||C.has(e)||p.set(e,1);for(let n of(g=new Set(eu(y).concat(eu(ec(y).map(ea)))),m=(e=[],t=Q(r),function t({S:r,B:n},i,o){if(!(4&r)||o!==i[i.length-1])for(let a of(2&r&&(o=i[i.length-1]),1&r&&e.push(i),n))for(let e of a.Q)t(a,[...i,e],o)}(function e(n){return{S:r(),B:ee(()=>{let n=Q(r).map(e=>t[e]);if(n.length)return e(n)}),Q:n}}([]),[]),e).map(e=>eh.from(e)).sort(ei),w=new Map,m)){let e=[w];for(let t of n){let r=e.map(e=>{let r=e.get(t);return r||(r=new Map,e.set(t,r)),r});65039===t?e.push(...r):e=r}for(let t of e)t.V=n}}function ep(e){return(ew(e)?"":`${eg(em([e]))} `)+er(e)}function eg(e){return`"${e}"\u200E`}function em(e,t=er){var r;let n=[];r=e[0],ef(),l.has(r)&&n.push("â");let i=0,o=e.length;for(let r=0;r<o;r++){let o=e[r];ew(o)&&(n.push(en(e.slice(i,r))),n.push(t(o)),i=r+1)}return n.push(en(e.slice(i,o))),n.join("")}function ew(e){return ef(),d.has(e)}function eb(e){return Error(`disallowed character: ${ep(e)}`)}function ev(e,t){let r=ep(t),n=h.find(e=>e.P.has(t));return n&&(r=`${n.N} ${r}`),Error(`illegal mixture: ${e.N} + ${r}`)}function ey(e){return Error(`illegal placement: ${e}`)}function eC(e){return e.filter(e=>65039!=e)}function ex(e){var t;return(t=function(e,t,r){if(!e)return[];ef();let n=0;return e.split(".").map(e=>{let i=function(e){let t=[];for(let r=0,n=e.length;r<n;){let n=e.codePointAt(r);r+=n<65536?1:2,t.push(n)}return t}(e),o={input:i,offset:n};n+=i.length+1;try{let e,n=o.tokens=function(e,t,r){let n=[],i=[];for(e=e.slice().reverse();e.length;){let o=function(e,t){let r,n=w,i=e.length;for(;i&&(n=n.get(e[--i]));){let{V:t}=n;t&&(r=t,e.length=i)}return r}(e);if(o)i.length&&(n.push(t(i)),i=[]),n.push(r(o));else{let t=e.pop();if(g.has(t))i.push(t);else{let e=s.get(t);if(e)i.push(...e);else if(!c.has(t))throw eb(t)}}}return i.length&&n.push(t(i)),n}(i,t,r),a=n.length;if(!a)throw Error("empty label");let d=o.output=n.flat();if(!function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw Error("underscore allowed only at start")}(d),!(o.emoji=a>1||n[0].is_emoji)&&d.every(e=>e<128))!function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw Error(`invalid label extension: "${en(e.slice(0,4))}"`)}(d),e="ASCII";else{let t=n.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(l.has(d[0]))throw ey("leading combining mark");for(let e=1;e<a;e++){let t=n[e];
10776if(!t.is_emoji&&l.has(t[0]))throw ey(`emoji + combining mark: "${en(n[e-1])} + ${em([t[0]])}"`)}!function(e){let t=e[0],r=K.get(t);if(r)throw ey(`leading ${r}`);let n=e.length,i=-1;for(let o=1;o<n;o++){t=e[o];let n=K.get(t);if(n){if(i==o)throw ey(`${r} + ${n}`);i=o+1,r=n}}if(i==n)throw ey(`trailing ${r}`)}(d);let r=eu(new Set(t)),[i]=function(e){let t=h;for(let r of e){let e=t.filter(e=>ed(e,r));if(!e.length){if(h.some(e=>ed(e,r)))throw ev(t[0],r);throw eb(r)}if(t=e,1==e.length)break}return t}(r);(function(e,t){for(let r of t)if(!ed(e,r))throw ev(e,r);if(e.M){let e=ec(t).map(ea);for(let t=1,r=e.length;t<r;t++)if(u.has(e[t])){let n=t+1;for(let i;n<r&&u.has(i=e[n]);n++)for(let r=t;r<n;r++)if(e[r]==i)throw Error(`duplicate non-spacing marks: ${ep(i)}`);if(n-t>4)throw Error(`excessive non-spacing marks: ${eg(em(e.slice(t-1,n)))} (${n-t}/4)`);t=n}}})(i,t),function(e,t){let r;let n=[];for(let e of t){let t=p.get(e);if(1===t)return;if(t){let n=t.M.get(e);if(!(r=r?r.filter(e=>n.has(e)):eu(n)).length)return}else n.push(e)}if(r){for(let t of r)if(n.every(e=>ed(t,e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(i,r),e=i.N}else e="Emoji"}o.type=e}catch(e){o.error=e}return o})}(e,el,eC)).map(({input:e,error:r,output:n})=>{if(r){let n=r.message;throw Error(1==t.length?n:`Invalid label ${eg(em(e))}: ${n}`)}return en(n)}).join(".")}class eA extends q.D4{constructor(e){let{wagmiConfig:t,siweConfig:n,defaultChain:i,tokens:o,_sdkVersion:a,...s}=e;if(!t)throw Error("web3modal:constructor - wagmiConfig is undefined");if(!s.projectId)throw Error("web3modal:constructor - projectId is undefined");super({chain:V.bq.CHAIN.EVM,networkControllerClient:{switchCaipNetwork:async e=>{let t=V.p1.caipNetworkIdToNumber(e?.id);t&&await (0,x.c)(this.wagmiConfig,{chainId:t})},getApprovedCaipNetworksData:async()=>new Promise(e=>{let r=new Map(t.state.connections).get(t.state.current||"");if(r?.connector?.id===W.bq.AUTH_CONNECTOR_ID)e((0,Z.xv)());else if(r?.connector?.id===W.bq.WALLET_CONNECT_CONNECTOR_ID){let r=t.connectors.find(e=>e.id===W.bq.WALLET_CONNECT_CONNECTOR_ID);e((0,Z.Pl)(r))}e({approvedCaipNetworkIds:void 0,supportsAllNetworks:!0})})},connectionControllerClient:{connectWalletConnect:async e=>{let i=t.connectors.find(e=>e.id===W.bq.WALLET_CONNECT_CONNECTOR_ID);if(!i)throw Error("connectionControllerClient:getWalletConnectUri - connector is undefined");let o=await i.getProvider();o.on("display_uri",t=>{e(t)});let a=await o.signer?.client?.core?.crypto?.getClientId();a&&this.setClientId(a);let s=V.p1.caipNetworkIdToNumber(this.getCaipNetwork()?.id),c=await n?.getMessageParams?.();if(n?.options?.enabled&&"function"==typeof o?.authenticate&&c&&Object.keys(c||{}).length>0){let{SIWEController:e,getDidChainId:t,getDidAddress:a}=await Promise.all([r.e(138),r.e(502)]).then(r.bind(r,73344));await i.setRequestedChainsIds(c.chains);let l=c.chains;s&&(l=[s,...c.chains.filter(e=>e!==s)]);let u=await o.authenticate({nonce:await n.getNonce(),methods:[...C],...c,chains:l}),d=u?.auths?.[0];if(d){let{p:r,s:n}=d,i=t(r.iss)||"",s=a(r.iss);s&&i&&e.setSession({address:s,chainId:parseInt(i,10)});try{let t=o.signer.client.formatAuthMessage({request:r,iss:r.iss});await e.verifyMessage({message:t,signature:n.s,cacao:d})}catch(t){throw console.error("Error verifying message",t),await o.disconnect().catch(console.error),await e.signOut().catch(console.error),t}}this.wagmiConfig.state.current=""}await (0,A.$)(this.wagmiConfig,{connector:i,chainId:s})},connectExternal:async({id:e,provider:r,info:n})=>{let i=t.connectors.find(t=>t.id===e);if(!i)throw Error("connectionControllerClient:connectExternal - connector is undefined");this.setClientId(null),r&&n&&i.id===W.bq.EIP6963_CONNECTOR_ID&&i.setEip6963Wallet?.({provider:r,info:n});let o=V.p1.caipNetworkIdToNumber(this.getCaipNetwork()?.id);await (0,A.$)(this.wagmiConfig,{connector:i,chainId:o})},reconnectExternal:async({id:e})=>{let r=t.connectors.find(t=>t.id===e);if(!r)throw Error("connectionControllerClient:connectExternal - connector is undefined");await (0,E.G)(this.wagmiConfig,{connectors:[r]})},checkInstalled:e=>{let t=this.getConnectors().find(e=>"INJECTED"===e.type);return e?!!t&&!!window?.ethereum&&e.some(e=>!!window.ethereum?.[String(e)]):!!window.ethereum},disconnect:async()=>
10776{if(await (0,k.z)(this.wagmiConfig),this.setClientId(null),n?.options?.signOutOnDisconnect){let{SIWEController:e}=await Promise.all([r.e(138),r.e(502)]).then(r.bind(r,73344));await e.signOut()}},signMessage:async e=>{let t=this.getCaipAddress()||"",r=(0,Z.Gn)(t);return(0,_.l)(this.wagmiConfig,{message:e,account:r})},estimateGas:async e=>{try{return await (0,S.Q)(this.wagmiConfig,{account:e.address,to:e.to,data:e.data,type:"legacy"})}catch(e){return 0n}},sendTransaction:async e=>{let{chainId:t}=(0,T.D)(this.wagmiConfig),r={account:e.address,to:e.to,value:e.value,gas:e.gas,gasPrice:e.gasPrice,data:e.data,chainId:t,type:"legacy"};await (0,j.Z)(this.wagmiConfig,r);let n=await (0,z.T)(this.wagmiConfig,r);return await (0,I.e)(this.wagmiConfig,{hash:n,timeout:25e3}),n},writeContract:async e=>{let r=this.getCaipAddress()||"",n=(0,Z.Gn)(r),i=V.p1.caipNetworkIdToNumber(this.getCaipNetwork()?.id);return await (0,R.n)(t,{chainId:i,address:e.tokenAddress,account:n,abi:e.abi,functionName:e.method,args:[e.receiverAddress,e.tokenAmount]})},getEnsAddress:async e=>{try{let t=V.p1.caipNetworkIdToNumber(this.getCaipNetwork()?.id),r=!1,n=!1;return e?.endsWith(V.bq.WC_NAME_SUFFIX)&&(n=await this.resolveWalletConnectName(e)),t===L.R.id&&(r=await (0,O.O)(this.wagmiConfig,{name:ex(e),chainId:t})),r||n||!1}catch{return!1}},getEnsAvatar:async e=>{let t=V.p1.caipNetworkIdToNumber(this.getCaipNetwork()?.id);return t===L.R.id&&(await (0,P.r)(this.wagmiConfig,{name:ex(e),chainId:t})||!1)},parseUnits:F,formatUnits:H.b},siweControllerClient:n,defaultChain:(0,Z.I2)(i),tokens:W.gk.getCaipTokens(o),_sdkVersion:a??`html-wagmi-${W.bq.VERSION}`,...s}),this.hasSyncedConnectedAccount=!1,this.options=void 0,this.chain=V.bq.CHAIN.EVM,this.options=e,this.wagmiConfig=t,this.syncRequestedNetworks([...t.chains]),this.syncConnectors([...t.connectors]),this.initAuthConnectorListeners([...t.connectors]),(0,N.f)(this.wagmiConfig,{onChange:e=>this.syncConnectors(e)}),(0,M.u)(this.wagmiConfig,{onChange:e=>this.syncAccount({...e})}),this.setEIP6963Enabled(!1!==s.enableEIP6963),this.subscribeShouldUpdateToAddress(e=>{if(e){let t=(0,D.E)(this.wagmiConfig),r=t[0]?.connector;r&&(0,B.y)(this.wagmiConfig,{connector:r}).then(t=>this.syncAccount({address:e,isConnected:!0,addresses:t.accounts,connector:r,chainId:t.chainId}))}})}getState(){let e=super.getState();return{...e,selectedNetworkId:V.p1.caipNetworkIdToNumber(e.selectedNetworkId)}}subscribeState(e){return super.subscribeState(t=>e({...t,selectedNetworkId:V.p1.caipNetworkIdToNumber(t.selectedNetworkId)}))}syncRequestedNetworks(e){let t=e?.map(e=>({id:`${W.bq.EIP155}:${e.id}`,name:e.name,imageId:W.CK.EIP155NetworkImageIds[e.id],imageUrl:this.options?.chainImages?.[e.id]}));this.setRequestedCaipNetworks(t??[])}async syncAccount({address:e,isConnected:t,isDisconnected:r,chainId:n,connector:i,addresses:o}){let a=`${W.bq.EIP155}:${n}:${e}`;this.getCaipAddress()!==a&&(t&&e&&n?(this.syncNetwork(e,n,t),this.setIsConnected(t),this.setCaipAddress(a),await Promise.all([this.syncProfile(e,n),this.syncBalance(e,n),this.setApprovedCaipNetworksData()]),i&&this.syncConnectedWalletInfo(i),i?.id!==W.bq.AUTH_CONNECTOR_ID&&o?.length&&this.setAllAccounts(o.map(e=>({address:e,type:"eoa"})),this.chain),this.hasSyncedConnectedAccount=!0):r&&this.hasSyncedConnectedAccount&&(this.resetAccount(),this.resetWcConnection(),this.resetNetwork(),this.setAllAccounts([],this.chain),this.hasSyncedConnectedAccount=!1))}async syncNetwork(e,t,r){let n=this.wagmiConfig.chains.find(e=>e.id===t);if(n||t){let i=n?.name??t?.toString(),o=Number(n?.id??t),a=`${W.bq.EIP155}:${o}`;if(this.setCaipNetwork({id:a,name:i,imageId:W.CK.EIP155NetworkImageIds[o],imageUrl:this.options?.chainImages?.[o],chain:this.chain}),r&&e&&t){let r=`${W.bq.EIP155}:${o}:${e}`;if(this.setCaipAddress(r),n?.blockExplorers?.default?.url){let t=`${n.blockExplorers.default.url}/address/${e}`;this.setAddressExplorerUrl(t)}else this.setAddressExplorerUrl(void 0);this.hasSyncedConnectedAccount&&await this.syncBalance(e,t)}}}async syncWalletConnectName(e){try{let t=await this.getWalletConnectName(e);if(t[0]){let e=t[0];this.setProfileName(e.name)}
10776else this.setProfileName(null)}catch{this.setProfileName(null)}}async syncProfile(e,t){try{let{name:t,avatar:r}=await this.fetchIdentity({address:e});this.setProfileName(t),this.setProfileImage(r),t||await this.syncWalletConnectName(e)}catch{if(t===L.R.id){let r=await (0,$.w)(this.wagmiConfig,{address:e,chainId:t});if(r){this.setProfileName(r);let e=await (0,P.r)(this.wagmiConfig,{name:r,chainId:t});e&&this.setProfileImage(e)}else await this.syncWalletConnectName(e),this.setProfileImage(null)}else await this.syncWalletConnectName(e),this.setProfileImage(null)}}async syncBalance(e,t){let r=this.wagmiConfig.chains.find(e=>e.id===t);if(r){let t=await (0,U.s)(this.wagmiConfig,{address:e,chainId:r.id,token:this.options?.tokens?.[r.id]?.address});this.setBalance(t.formatted,t.symbol);return}this.setBalance(void 0,void 0)}async syncConnectedWalletInfo(e){if(!e)throw Error("syncConnectedWalletInfo - connector is undefined");if(e.id===W.bq.WALLET_CONNECT_CONNECTOR_ID&&e.getProvider){let t=await e.getProvider();t.session&&this.setConnectedWalletInfo({...t.session.peer.metadata,name:t.session.peer.metadata.name,icon:t.session.peer.metadata.icons?.[0]},this.chain)}else this.setConnectedWalletInfo({name:e.name,icon:e.icon},this.chain)}syncConnectors(e){let t=new Set,r=e.filter(e=>!t.has(e.id)&&t.add(e.id)),n=[],i=W.bq.COINBASE_SDK_CONNECTOR_ID,o=r.find(e=>e.id===i);r.forEach(({id:e,name:t,type:r,icon:i})=>{o&&e===W.bq.CONNECTOR_RDNS_MAP[W.bq.COINBASE_CONNECTOR_ID]||W.bq.AUTH_CONNECTOR_ID===e||n.push({id:e,explorerId:W.CK.ConnectorExplorerIds[e],imageUrl:this.options?.connectorImages?.[e]??i,name:W.CK.ConnectorNamesMap[e]??t,imageId:W.CK.ConnectorImageIds[e],type:W.CK.ConnectorTypesMap[r]??"EXTERNAL",info:{rdns:e},chain:this.chain})}),this.setConnectors(n),this.syncAuthConnector(r)}async syncAuthConnector(e){let t=e.find(({id:e})=>e===W.bq.AUTH_CONNECTOR_ID);if(t){let e=await t.getProvider();this.addConnector({id:W.bq.AUTH_CONNECTOR_ID,type:"AUTH",name:"Auth",provider:e,email:t.email,socials:t.socials,showWallets:t.showWallets,chain:this.chain,walletFeatures:t.walletFeatures})}}async initAuthConnectorListeners(e){let t=e.find(({id:e})=>e===W.bq.AUTH_CONNECTOR_ID);t&&(await this.listenAuthConnector(t),await this.listenModal(t))}async listenAuthConnector(e){if("undefined"!=typeof window&&e){super.setLoading(!0);let t=await e.getProvider(),r=t.getLoginEmailUsed();super.setLoading(r),r&&this.setIsConnected(!1),t.onRpcRequest(e=>{if(G.$D.checkIfRequestExists(e)){if(!G.$D.checkIfRequestIsAllowed(e)){if(super.isOpen()){if(super.isTransactionStackEmpty())return;super.isTransactionShouldReplaceView()?super.replace("ApproveTransaction"):super.redirect("ApproveTransaction")}else super.open({view:"ApproveTransaction"})}}else super.open(),console.error(G.y_.RPC_METHOD_NOT_ALLOWED_MESSAGE,{method:e.method}),setTimeout(()=>{this.showErrorMessage(G.y_.RPC_METHOD_NOT_ALLOWED_UI_MESSAGE)},300),t.rejectRpcRequests()}),t.onRpcError(()=>{super.isOpen()&&(super.isTransactionStackEmpty()?super.close():super.popTransactionStack(!0))}),t.onRpcSuccess(()=>{super.isTransactionStackEmpty()?super.close():super.popTransactionStack()}),t.onNotConnected(()=>{this.getIsConnectedState()||(this.setIsConnected(!1),super.setLoading(!1))}),t.onIsConnected(e=>{this.setIsConnected(!0),this.setSmartAccountDeployed(!!e.smartAccountDeployed,this.chain),this.setPreferredAccountType(e.preferredAccountType,this.chain),super.setLoading(!1),this.setAllAccounts(e.accounts||[{address:e.address,type:e.preferredAccountType||"eoa"}],this.chain)}),t.onGetSmartAccountEnabledNetworks(e=>{this.setSmartAccountEnabledNetworks(e)}),t.onSetPreferredAccount(({address:t,type:r})=>{t&&(this.setPreferredAccountType(r,this.chain),this.syncAccount({address:t,isConnected:!0,chainId:V.p1.caipNetworkIdToNumber(this.getCaipNetwork()?.id),connector:e}))})}}async listenModal(e){let t=await e.getProvider();this.subscribeState(e=>{e.open||t.rejectRpcRequests()})}}function eE(e){return b||(b=new eA({...e,_sdkVersion:`react-wagmi-${W.bq.VERSION}`})),b}},28049:function(e,t,r){"use strict";r.d(t,{I2:function(){return u},xv:function(){return h},h4:function(){return f},Pl:function(){return d},Gn:function(){return p}});var n=r(52596),i=r(40655),o=r(28339),a=r(62536),s=r(96329),c=r(97317),l=r(93423);function u(e){if(e)return{id:`${i.bq.EIP155}:${e.id}`,name:e.name,imageId:i.CK.EIP155NetworkImageIds[e.id]}}async function d(e){if(!e)throw Error("networkControllerClient:getApprovedCaipNetworks - connector is undefined");let t=await e?.getProvider(),r=t?.signer?.session?.namespaces,n=r?.[i.bq.
10776EIP155]?.methods,a=(0,o.YHE)(r?.[i.bq.EIP155]?.accounts||[]);return{supportsAllNetworks:!!n?.includes(i.bq.ADD_CHAIN_METHOD),approvedCaipNetworkIds:a}}function h(){return{supportsAllNetworks:!1,approvedCaipNetworkIds:i.CK.WalletConnectRpcChainIds.map(e=>`${i.bq.EIP155}:${e}`)}}function f({chain:e,projectId:t}){let r=n.j1.getBlockchainApiUrl(),o=e.rpcUrls[0]?.http?.[0];return i.CK.WalletConnectRpcChainIds.includes(e.id)?function(e,t={}){let{key:r="fallback",name:n="Fallback",rank:i=!1,retryCount:o,retryDelay:a}=t;return({chain:t,pollingInterval:u=4e3,timeout:d,...h})=>{let f=e,p=()=>{},g=(0,l.q)({key:r,name:n,async request({method:e,params:r}){let n=async(i=0)=>{let o=f[i]({...h,chain:t,retryCount:0,timeout:d});try{let t=await o.request({method:e,params:r});return p({method:e,params:r,response:t,transport:o,status:"success"}),t}catch(t){if(p({error:t,method:e,params:r,transport:o,status:"error"}),"code"in t&&"number"==typeof t.code&&(t.code===s.KB.code||t.code===s.ab.code||5e3===t.code)||i===f.length-1)throw t;return n(i+1)}};return n()},retryCount:o,retryDelay:a,type:"fallback"},{onResponse:e=>p=e,transports:f.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:l=.3}=a,u=[],d=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}}));u.push(a),u.length>n&&u.shift();let h=Math.max(...u.map(e=>Math.max(...e.map(({latency:e})=>e))));r(o.map((e,t)=>{let r=u.map(e=>e[t].latency),n=r.reduce((e,t)=>e+t,0)/r.length,i=u.map(e=>e[t].success),o=i.reduce((e,t)=>e+t,0)/i.length;return 0===o?[0,t]:[l*(1-n/h)+s*o,t]}).sort((e,t)=>t[0]-e[0]).map(([,e])=>
10776o[e])),await (0,c.D)(t),d()};d()}({chain:t,interval:e.interval??u,onTransports:e=>f=e,sampleCount:e.sampleCount,timeout:e.timeout,transports:f,weights:e.weights})}return g}}([(0,a.d)(`${r}/v1/?chainId=${i.bq.EIP155}:${e.id}&projectId=${t}`,{fetchOptions:{headers:{"Content-Type":"text/plain"}}}),(0,a.d)(o)]):(0,a.d)(o)}function p(e){if(!e)throw Error("No CAIP address provided");let t=e.split(":")[2];if(!t)throw Error("Invalid CAIP address");return t}},31083:function(e,t,r){"use strict";let n;r.d(t,{$D:function(){return rf},Sd:function(){return rb},y_:function(){return g}}),r(87336);var i,o,a,s,c,l,u,d=r(20357);let h=d.env.NEXT_PUBLIC_SECURE_SITE_SDK_URL||"https://secure.walletconnect.org/sdk",f=d.env.NEXT_PUBLIC_DEFAULT_LOG_LEVEL||"error",p={APP_EVENT_KEY:"@w3m-app/",FRAME_EVENT_KEY:"@w3m-frame/",RPC_METHOD_KEY:"RPC_",STORAGE_KEY:"@w3m-storage/",SESSION_TOKEN_KEY:"SESSION_TOKEN_KEY",EMAIL_LOGIN_USED_KEY:"EMAIL_LOGIN_USED_KEY",LAST_USED_CHAIN_KEY:"LAST_USED_CHAIN_KEY",LAST_EMAIL_LOGIN_TIME:"LAST_EMAIL_LOGIN_TIME",EMAIL:"EMAIL",PREFERRED_ACCOUNT_TYPE:"PREFERRED_ACCOUNT_TYPE",SMART_ACCOUNT_ENABLED:"SMART_ACCOUNT_ENABLED",SMART_ACCOUNT_ENABLED_NETWORKS:"SMART_ACCOUNT_ENABLED_NETWORKS",SOCIAL_USERNAME:"SOCIAL_USERNAME",SOCIAL:"@w3m/connected_social",APP_SWITCH_NETWORK:"@w3m-app/SWITCH_NETWORK",APP_CONNECT_EMAIL:"@w3m-app/CONNECT_EMAIL",APP_CONNECT_DEVICE:"@w3m-app/CONNECT_DEVICE",APP_CONNECT_OTP:"@w3m-app/CONNECT_OTP",APP_CONNECT_SOCIAL:"@w3m-app/CONNECT_SOCIAL",APP_GET_SOCIAL_REDIRECT_URI:"@w3m-app/GET_SOCIAL_REDIRECT_URI",APP_GET_USER:"@w3m-app/GET_USER",APP_SIGN_OUT:"@w3m-app/SIGN_OUT",APP_IS_CONNECTED:"@w3m-app/IS_CONNECTED",APP_GET_CHAIN_ID:"@w3m-app/GET_CHAIN_ID",APP_RPC_REQUEST:"@w3m-app/RPC_REQUEST",APP_UPDATE_EMAIL:"@w3m-app/UPDATE_EMAIL",APP_UPDATE_EMAIL_PRIMARY_OTP:"@w3m-app/UPDATE_EMAIL_PRIMARY_OTP",APP_UPDATE_EMAIL_SECONDARY_OTP:"@w3m-app/UPDATE_EMAIL_SECONDARY_OTP",APP_AWAIT_UPDATE_EMAIL:"@w3m-app/AWAIT_UPDATE_EMAIL",APP_SYNC_THEME:"@w3m-app/SYNC_THEME",APP_SYNC_DAPP_DATA:"@w3m-app/SYNC_DAPP_DATA",APP_GET_SMART_ACCOUNT_ENABLED_NETWORKS:"@w3m-app/GET_SMART_ACCOUNT_ENABLED_NETWORKS",APP_INIT_SMART_ACCOUNT:"@w3m-app/INIT_SMART_ACCOUNT",APP_SET_PREFERRED_ACCOUNT:"@w3m-app/SET_PREFERRED_ACCOUNT",APP_CONNECT_FARCASTER:"@w3m-app/CONNECT_FARCASTER",APP_GET_FARCASTER_URI:"@w3m-app/GET_FARCASTER_URI",FRAME_SWITCH_NETWORK_ERROR:"@w3m-frame/SWITCH_NETWORK_ERROR",FRAME_SWITCH_NETWORK_SUCCESS:"@w3m-frame/SWITCH_NETWORK_SUCCESS",FRAME_CONNECT_EMAIL_ERROR:"@w3m-frame/CONNECT_EMAIL_ERROR",FRAME_CONNECT_EMAIL_SUCCESS:"@w3m-frame/CONNECT_EMAIL_SUCCESS",FRAME_CONNECT_DEVICE_ERROR:"@w3m-frame/CONNECT_DEVICE_ERROR",FRAME_CONNECT_DEVICE_SUCCESS:"@w3m-frame/CONNECT_DEVICE_SUCCESS",FRAME_CONNECT_OTP_SUCCESS:"@w3m-frame/CONNECT_OTP_SUCCESS",FRAME_CONNECT_OTP_ERROR:"@w3m-frame/CONNECT_OTP_ERROR",FRAME_CONNECT_SOCIAL_SUCCESS:"@w3m-frame/CONNECT_SOCIAL_SUCCESS",FRAME_CONNECT_SOCIAL_ERROR:"@w3m-frame/CONNECT_SOCIAL_ERROR",FRAME_CONNECT_FARCASTER_SUCCESS:"@w3m-frame/CONNECT_FARCASTER_SUCCESS",FRAME_CONNECT_FARCASTER_ERROR:"@w3m-frame/CONNECT_FARCASTER_ERROR",FRAME_GET_FARCASTER_URI_SUCCESS:"@w3m-frame/GET_FARCASTER_URI_SUCCESS",FRAME_GET_FARCASTER_URI_ERROR:"@w3m-frame/GET_FARCASTER_URI_ERROR",FRAME_GET_SOCIAL_REDIRECT_URI_SUCCESS:"@w3m-frame/GET_SOCIAL_REDIRECT_URI_SUCCESS",FRAME_GET_SOCIAL_REDIRECT_URI_ERROR:"@w3m-frame/GET_SOCIAL_REDIRECT_URI_ERROR",FRAME_GET_USER_SUCCESS:"@w3m-frame/GET_USER_SUCCESS",FRAME_GET_USER_ERROR:"@w3m-frame/GET_USER_ERROR",FRAME_SIGN_OUT_SUCCESS:"@w3m-frame/SIGN_OUT_SUCCESS",FRAME_SIGN_OUT_ERROR:"@w3m-frame/SIGN_OUT_ERROR",FRAME_IS_CONNECTED_SUCCESS:"@w3m-frame/IS_CONNECTED_SUCCESS",FRAME_IS_CONNECTED_ERROR:"@w3m-frame/IS_CONNECTED_ERROR",FRAME_GET_CHAIN_ID_SUCCESS:"@w3m-frame/GET_CHAIN_ID_SUCCESS",FRAME_GET_CHAIN_ID_ERROR:"@w3m-frame/GET_CHAIN_ID_ERROR",FRAME_RPC_REQUEST_SUCCESS:"@w3m-frame/RPC_REQUEST_SUCCESS",FRAME_RPC_REQUEST_ERROR:"@w3m-frame/RPC_REQUEST_ERROR",FRAME_SESSION_UPDATE:"@w3m-frame/SESSION_UPDATE",FRAME_UPDATE_EMAIL_SUCCESS:"@w3m-frame/UPDATE_EMAIL_SUCCESS",FRAME_UPDATE_EMAIL_ERROR:"@w3m-frame/UPDATE_EMAIL_ERROR",FRAME_UPDATE_EMAIL_PRIMARY_OTP_SUCCESS:"@w3m-frame/UPDATE_EMAIL_PRIMARY_OTP_SUCCESS",FRAME_UPDATE_EMAIL_PRIMARY_OTP_ERROR:"@w3m-frame/UPDATE_EMAIL_PRIMARY_OTP_ERROR",FRAME_UPDATE_EMAIL_SECONDARY_OTP_SUCCESS:"@w3m-frame/UPDATE_EMAIL_SECONDARY_OTP_SUCCESS",FRAME_UPDATE_EMAIL_SECONDARY_OTP_ERROR:"@w3m-frame/UPDATE_EMAIL_SECONDARY_OTP_ERROR",FRAME_SYNC_THEME_SUCCESS:"@w3m-frame/SYNC_THEME_SUCCESS",FRAME_SYNC_THEME_ERROR:"@w3m-frame/SYNC_THEME_ERROR",FRAME_SYNC_DAPP_DATA_SUCCESS:"@w3m-frame/SYNC_DAPP_DATA_SUCCESS",FRAME_SYNC_DAPP_DATA_ERROR:"@w3m-frame/SYNC_DAPP_DATA_ERROR",FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS:"@w3m-frame/GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS",FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR:"@w3m-frame/GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR",FRAME_INIT_SMART_ACCOUNT_SUCCESS:"@w3m-frame/INIT_SMART_ACCOUNT_SUCCESS",FRAME_INIT_SMART_ACCOUNT_ERROR:"@w3m-frame/INIT_SMART_ACCOUNT_ERROR",FRAME_SET_PREFERRED_ACCOUNT_SUCCESS:"@w3m-frame/SET_PREFERRED_ACCOUNT_SUCCESS",FRAME_SET_PREFERRED_ACCOUNT_ERROR:"@w3m-frame/SET_PREFERRED_ACCOUNT_ERROR",RPC_RESPONSE_TYPE_ER
vendor: 3,022 bytes, line 10776
10776ROR:"RPC_RESPONSE_ERROR",RPC_RESPONSE_TYPE_TX:"RPC_RESPONSE_TRANSACTION_HASH",RPC_RESPONSE_TYPE_OBJECT:"RPC_RESPONSE_OBJECT"},g={SAFE_RPC_METHODS:["eth_accounts","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getAccount","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockReceipts","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_maxPriorityFeePerGas","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter","wallet_getCapabilities","wallet_getCallsStatus"],NOT_SAFE_RPC_METHODS:["personal_sign","eth_signTypedData_v4","eth_sendTransaction","wallet_sendCalls","wallet_grantPermissions"],GET_CHAIN_ID:"eth_chainId",RPC_METHOD_NOT_ALLOWED_MESSAGE:"Requested RPC call is not allowed",RPC_METHOD_NOT_ALLOWED_UI_MESSAGE:"Action not allowed",ACCOUNT_TYPES:{EOA:"eoa",SMART_ACCOUNT:"smartAccount"}};(i=s||(s={})).assertEqual=e=>e,i.assertIs=function(e){},i.assertNever=function(e){throw Error()},i.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},i.getValidEnumValues=e=>{let t=i.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return i.objectValues(r)},i.objectValues=e=>i.objectKeys(e).map(function(t){return e[t]}),i.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},i.find=(e,t)=>{for(let r of e)if(t(r))return r},i.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,i.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},i.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(c||(c={})).mergeShapes=(e,t)=>({...e,...t});let m=s.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),w=e=>{switch(typeof e){case"undefined":return m.undefined;case"string":return m.string;case"number":return isNaN(e)?m.nan:m.number;case"boolean":return m.boolean;case"function":return m.function;case"bigint":return m.bigint;case"symbol":return m.symbol;case"object":if(Array.isArray(e))return m.array;if(null===e)return m.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return m.promise;if("undefined"!=typeof Map&&e instanceof Map)return m.map;if("undefined"!=typeof Set&&e instanceof Set)return m.set;if("undefined"!=typeof Date&&e instanceof Date)return m.date;return m.object;default:return m.unknown}}
10776,b=s.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class v extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,s.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}v.create=e=>new v(e);let y=(e,t)=>{let r;switch(e.code){case b.invalid_type:r=e.received===m.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case b.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,s.jsonStringifyReplacer)}`;break;case b.unrecognized_keys:r=`Unrecognized key(s) in object: ${s.joinValues(e.keys,", ")}`;break;case b.invalid_union:r="Invalid input";break;case b.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${s.joinValues(e.options)}`;break;case b.invalid_enum_value:r=`Invalid enum value. Expected ${s.joinValues(e.options)}, received '${e.received}'`;break;case b.invalid_arguments:r="Invalid function arguments";break;case b.invalid_return_type:r="Invalid function return type";break;case b.invalid_date:r="Invalid date";break;case b.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:s.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case b.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case b.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case b.custom:r="Invalid input";break;case b.invalid_intersection_types:r="Intersection results could not be merged";break;case b.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case b.not_finite:r="Number must be finite";break;default:r=t.defaultError,s.assertNever(e)}return{message:r}},C=y;function x(){return C}let A=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],a={...i,path:o},s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...i,path:o,message:i.message||s}};function E(e,t){let r=A({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,x(),y].filter(e=>!!e)});e.common.issues.push(r)}class k{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return _;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t)r.push({key:await e.key,value:await e.value});return k.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return _;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let _=Object.freeze({status:"aborted"}),S=e=>({status:"dirty",value:e}),T=e=>
10776({status:"valid",value:e}),I=e=>"aborted"===e.status,R=e=>"dirty"===e.status,O=e=>"valid"===e.status,P=e=>"undefined"!=typeof Promise&&e instanceof Promise;(o=l||(l={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},o.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class N{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let M=(e,t)=>{if(O(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new v(e.common.issues);return this._error=t,this._error}}};function D(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=n?n:t.defaultError}:{message:null!=r?r:t.defaultError},description:i}}class B{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return w(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:w(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new k,ctx:{common:e.parent.common,data:e.data,parsedType:w(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(P(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let n={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:w(e)},i=this._parseSync({data:e,path:n.path,parent:n});return M(n,i)}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:w(e)},n=this._parse({data:e,path:r.path,parent:r});return M(r,await (P(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),o=()=>n.addIssue({code:b.custom,...r(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(o(),!1)):!!i||(o(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new ey({schema:this,typeName:u.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return eC.create(this,this._def)}nullable(){return ex.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return en.create(this,this._def)}promise(){return ev.create(this,this._def)}or(e){return eo.create([this,e],this._def)}and(e){return ec.create(this,e,this._def)}transform(e){return new ey({...D(this._def),schema:this,typeName:u.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eA({...D(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:u.ZodDefault})}brand(){return new eS({typeName:u.ZodBranded,type:this,...D(this._def)})}catch(e){return new eE({...D(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:u.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eT.create(this,e)}readonly(){return eI.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let $=/^c[^\s-]{8,}
10776$/i,U=/^[a-z][a-z0-9]*$/,L=/^[0-9A-HJKMNP-TV-Z]{26}$/,j=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,z=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,F=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,H=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,q=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");class W extends B{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==m.string){let t=this._getOrReturnCtx(e);return E(t,{code:b.invalid_type,expected:m.string,received:t.parsedType}),_}let r=new k;for(let a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(E(t=this._getOrReturnCtx(e,t),{code:b.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if("max"===a.kind)e.data.length>a.value&&(E(t=this._getOrReturnCtx(e,t),{code:b.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if("length"===a.kind){let n=e.data.length>a.value,i=e.data.length<a.value;(n||i)&&(t=this._getOrReturnCtx(e,t),n?E(t,{code:b.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):i&&E(t,{code:b.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if("email"===a.kind)z.test(e.data)||(E(t=this._getOrReturnCtx(e,t),{validation:"email",code:b.invalid_string,message:a.message}),r.dirty());else if("emoji"===a.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(E(t=this._getOrReturnCtx(e,t),{validation:"emoji",code:b.invalid_string,message:a.message}),r.dirty());else if("uuid"===a.kind)j.test(e.data)||(E(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:b.invalid_string,message:a.message}),r.dirty());else if("cuid"===a.kind)$.test(e.data)||(E(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:b.invalid_string,message:a.message}),r.dirty());else if("cuid2"===a.kind)U.test(e.data)||(E(t=this._getOrReturnCtx(e,t),{validation:"cuid2",code:b.invalid_string,message:a.message}),r.dirty());else if("ulid"===a.kind)L.test(e.data)||(E(t=this._getOrReturnCtx(e,t),{validation:"ulid",code:b.invalid_string,message:a.message}),r.dirty());else if("url"===a.kind)try{new URL(e.data)}catch(n){E(t=this._getOrReturnCtx(e,t),{validation:"url",code:b.invalid_string,message:a.message}),r.dirty()}else if("regex"===a.kind)a.regex.lastIndex=0,a.regex.test(e.data)||(E(t=this._getOrReturnCtx(e,t),{validation:"regex",code:b.invalid_string,message:a.message}),r.dirty());else if("trim"===a.kind)e.data=e.data.trim();else if("includes"===a.kind)e.data.includes(a.value,a.position)||(E(t=this._getOrReturnCtx(e,t),{code:b.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty());else if("toLowerCase"===a.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===a.kind)e.data=e.data.toUpperCase();else if("startsWith"===a.kind)e.data.startsWith(a.value)||(E(t=this._getOrReturnCtx(e,t),{code:b.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty());else if("endsWith"===a.kind)e.data.endsWith(a.value)||(E(t=this._getOrReturnCtx(e,t),{code:b.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty());else if("datetime"===a.kind)q(a).test(e.data)||(E(t=this._getOrReturnCtx(e,t),{code:b.invali
10776d_string,validation:"datetime",message:a.message}),r.dirty());else if("ip"===a.kind){var i,o;i=e.data,("v4"===(o=a.version)||!o)&&F.test(i)||("v6"===o||!o)&&H.test(i)||(E(t=this._getOrReturnCtx(e,t),{validation:"ip",code:b.invalid_string,message:a.message}),r.dirty())}else s.assertNever(a);return{status:r.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:b.invalid_string,...l.errToObj(r)})}_addCheck(e){return new W({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...l.errToObj(e)})}url(e){return this._addCheck({kind:"url",...l.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...l.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...l.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...l.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...l.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...l.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...l.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...l.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...l.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...l.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...l.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...l.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...l.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...l.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...l.errToObj(t)})}nonempty(e){return this.min(1,l.errToObj(e))}trim(){return new W({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new W({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new W({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}W.create=e=>{var t;return new W({checks:[],typeName:u.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...D(e)})};class V extends B{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==m.number){let t=this._getOrReturnCtx(e);return E(t,{code:b.invalid_type,expected:m.number,received:t.parsedType}),_}let r=new k;for(let n of this._def.checks)"int"===n.kind?s.isInteger(e.data)||(E(t=this._getOrReturnCtx(e,t),{code:b.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(E(t=this._getOrReturnCtx(e,t),{code:b.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(E(t=this._getOrReturnCtx(e,t),{code:b.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}(e.data,n.value)&&(E(t=this._getOrReturnCtx(e,t),{code:b.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(E(t=this._getOrReturnCtx(e,t),{code:b.not_finite,message:n.message}),r.dirty()):s.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,r,n){return new V({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:l.toString(n)}]})}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:l.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:l.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:l.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:l.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&s.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}V.create=e=>new V({checks:[],typeName:u.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...D(e)});class Z extends B{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==m.bigint){let t=this._getOrReturnCtx(e);
10776return E(t,{code:b.invalid_type,expected:m.bigint,received:t.parsedType}),_}let r=new k;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(E(t=this._getOrReturnCtx(e,t),{code:b.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(E(t=this._getOrReturnCtx(e,t),{code:b.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(E(t=this._getOrReturnCtx(e,t),{code:b.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):s.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,r,n){return new Z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:l.toString(n)}]})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Z.create=e=>{var t;return new Z({checks:[],typeName:u.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...D(e)})};class G extends B{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==m.boolean){let t=this._getOrReturnCtx(e);return E(t,{code:b.invalid_type,expected:m.boolean,received:t.parsedType}),_}return T(e.data)}}G.create=e=>new G({typeName:u.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...D(e)});class K extends B{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==m.date){let t=this._getOrReturnCtx(e);return E(t,{code:b.invalid_type,expected:m.date,received:t.parsedType}),_}if(isNaN(e.data.getTime()))return E(this._getOrReturnCtx(e),{code:b.invalid_date}),_;let r=new k;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(E(t=this._getOrReturnCtx(e,t),{code:b.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(E(t=this._getOrReturnCtx(e,t),{code:b.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):s.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new K({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:l.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:l.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}K.create=e=>new K({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:u.ZodDate,...D(e)});class Y extends B{_parse(e){if(this._getType(e)!==m.symbol){let t=this._getOrReturnCtx(e);return E(t,{code:b.invalid_type,expected:m.symbol,received:t.parsedType}),_}return T(e.data)}}Y.create=e=>new Y({typeName:u.ZodSymbol,...D(e)});class Q extends B{_parse(e){if(this._getType(e)!==m.undefined){let t=this._getOrReturnCtx(e);return E(t,{code:b.invalid_type,expected:m.undefined,received:t.parsedType}),_}return T(e.data)}}Q.create=e=>new Q({typeName:u.ZodUndefined,...D(e)});class J extends B{_parse(e){if(this._getType(e)!==m.null){let t=this._getOrReturnCtx(e);
10776return E(t,{code:b.invalid_type,expected:m.null,received:t.parsedType}),_}return T(e.data)}}J.create=e=>new J({typeName:u.ZodNull,...D(e)});class X extends B{constructor(){super(...arguments),this._any=!0}_parse(e){return T(e.data)}}X.create=e=>new X({typeName:u.ZodAny,...D(e)});class ee extends B{constructor(){super(...arguments),this._unknown=!0}_parse(e){return T(e.data)}}ee.create=e=>new ee({typeName:u.ZodUnknown,...D(e)});class et extends B{_parse(e){let t=this._getOrReturnCtx(e);return E(t,{code:b.invalid_type,expected:m.never,received:t.parsedType}),_}}et.create=e=>new et({typeName:u.ZodNever,...D(e)});class er extends B{_parse(e){if(this._getType(e)!==m.undefined){let t=this._getOrReturnCtx(e);return E(t,{code:b.invalid_type,expected:m.void,received:t.parsedType}),_}return T(e.data)}}er.create=e=>new er({typeName:u.ZodVoid,...D(e)});class en extends B{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==m.array)return E(t,{code:b.invalid_type,expected:m.array,received:t.parsedType}),_;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(E(t,{code:e?b.too_big:b.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(E(t,{code:b.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(E(t,{code:b.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new N(t,e,t.path,r)))).then(e=>k.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new N(t,e,t.path,r)));return k.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new en({...this._def,minLength:{value:e,message:l.toString(t)}})}max(e,t){return new en({...this._def,maxLength:{value:e,message:l.toString(t)}})}length(e,t){return new en({...this._def,exactLength:{value:e,message:l.toString(t)}})}nonempty(e){return this.min(1,e)}}en.create=(e,t)=>new en({type:e,minLength:null,maxLength:null,exactLength:null,typeName:u.ZodArray,...D(t)});class ei extends B{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=s.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==m.object){let t=this._getOrReturnCtx(e);return E(t,{code:b.invalid_type,expected:m.object,received:t.parsedType}),_}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof et&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||o.push(e);let a=[];for(let e of i){let t=n[e],i=r.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new N(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof et){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)a.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(E(r,{code:b.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new N(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of a){let r=await t.key;e.push({key:r,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>k.mergeObjectSync(t,e)):k.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return l.errToObj,new ei({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,i,o,a;let s=null!==(o=null===(i=(n=this._def).errorMap)||void 0===i?void 0:i.call(n,t,r).message)&&void 0!==o?o:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=l.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new ei({...this._def,unknownKeys:"strip"})}passthrough(){return new ei({...this._def,unknownKeys:"passthrough"})}extend(e){return new ei({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ei({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:u.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ei({...this._def,catchall:e})}pick(e){let t={};return s.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new ei({...this._def,shape:()=>t})}omit(e){let t={};return s.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new ei({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ei){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=eC.create(e(i))}return new ei({...t._def,shape:()=>r})}return t instanceof en?new en({...t._def,type:e(t.element)}):t instanceof eC?eC.create(e(t.unwrap())):t instanceof ex?ex.create(e(t.unwrap())):t instanceof el?el.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return s.objectKeys(this.shape).forEach(r=>{let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}),new ei({...this._def,shape:()=>t})}required(e){let t={};return s.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof eC;)e=e._def.innerType;t[r]=e}}),new ei({...this._def,shape:()=>t})}keyof(){return em(s.objectKeys(this.shape))}}ei.create=(e,t)=>
10776new ei({shape:()=>e,unknownKeys:"strip",catchall:et.create(),typeName:u.ZodObject,...D(t)}),ei.strictCreate=(e,t)=>new ei({shape:()=>e,unknownKeys:"strict",catchall:et.create(),typeName:u.ZodObject,...D(t)}),ei.lazycreate=(e,t)=>new ei({shape:e,unknownKeys:"strip",catchall:et.create(),typeName:u.ZodObject,...D(t)});class eo extends B{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new v(e.ctx.common.issues));return E(t,{code:b.invalid_union,unionErrors:r}),_});{let e;let n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new v(e));return E(t,{code:b.invalid_union,unionErrors:i}),_}}get options(){return this._def.options}}eo.create=(e,t)=>new eo({options:e,typeName:u.ZodUnion,...D(t)});let ea=e=>{if(e instanceof ep)return ea(e.schema);if(e instanceof ey)return ea(e.innerType());if(e instanceof eg)return[e.value];if(e instanceof ew)return e.options;if(e instanceof eb)return Object.keys(e.enum);if(e instanceof eA)return ea(e._def.innerType);if(e instanceof Q)return[void 0];else if(e instanceof J)return[null];else return null};class es extends B{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==m.object)return E(t,{code:b.invalid_type,expected:m.object,received:t.parsedType}),_;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(E(t,{code:b.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),_)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=ea(r.shape[e]);if(!t)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new es({typeName:u.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...D(r)})}}class ec extends B{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(I(e)||I(n))return _;let i=function e(t,r){let n=w(t),i=w(r);if(t===r)return{valid:!0,data:t};if(n===m.object&&i===m.object){let n=s.objectKeys(r),i=s.objectKeys(t).filter(e=>-1!==n.indexOf(e)),o={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};o[n]=i.data}return{valid:!0,data:o}}if(n===m.array&&i===m.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let o=e(t[i],r[i]);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}return n===m.date&&i===m.date&&+t==+r?{valid:!0,data:t}:{valid:!1}}(e.value,n.value);return i.valid?((R(e)||R(n))&&t.dirty(),{status:t.value,value:i.data}):(E(r,{code:b.invalid_intersection_types}),_)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ec.create=(e,t,r)=>new ec({left:e,right:t,typeName:u.ZodIntersection,...D(r)});class el extends B{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.array)return E(r,{code:b.invalid_type,expected:m.array,received:r.parsedType}),_;if(r.data.length<this._def.items.length)return E(r,{code:b.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),_;!this._def.rest&&r.data.length>this._def.items.length&&(E(r,{code:b.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new N(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>k.mergeArray(t,e)):k.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new el({...this._def,rest:e})}}el.create=(e,t)=>
10776{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new el({items:e,typeName:u.ZodTuple,rest:null,...D(t)})};class eu extends B{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.object)return E(r,{code:b.invalid_type,expected:m.object,received:r.parsedType}),_;let n=[],i=this._def.keyType,o=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new N(r,e,r.path,e)),value:o._parse(new N(r,r.data[e],r.path,e))});return r.common.async?k.mergeObjectAsync(t,n):k.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new eu(t instanceof B?{keyType:e,valueType:t,typeName:u.ZodRecord,...D(r)}:{keyType:W.create(),valueType:e,typeName:u.ZodRecord,...D(t)})}}class ed extends B{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.map)return E(r,{code:b.invalid_type,expected:m.map,received:r.parsedType}),_;let n=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([e,t],o)=>({key:n._parse(new N(r,e,r.path,[o,"key"])),value:i._parse(new N(r,t,r.path,[o,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return _;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return _;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}ed.create=(e,t,r)=>new ed({valueType:t,keyType:e,typeName:u.ZodMap,...D(r)});class eh extends B{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.set)return E(r,{code:b.invalid_type,expected:m.set,received:r.parsedType}),_;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(E(r,{code:b.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(E(r,{code:b.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function o(e){let r=new Set;for(let n of e){if("aborted"===n.status)return _;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let a=[...r.data.values()].map((e,t)=>i._parse(new N(r,e,r.path,t)));return r.common.async?Promise.all(a).then(e=>o(e)):o(a)}min(e,t){return new eh({...this._def,minSize:{value:e,message:l.toString(t)}})}max(e,t){return new eh({...this._def,maxSize:{value:e,message:l.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eh.create=(e,t)=>new eh({valueType:e,minSize:null,maxSize:null,typeName:u.ZodSet,...D(t)});class ef extends B{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==m.function)return E(t,{code:b.invalid_type,expected:m.function,received:t.parsedType}),_;function r(e,r){return A({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,x(),y].filter(e=>!!e),issueData:{code:b.invalid_arguments,argumentsError:r}})}function n(e,r){return A({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,x(),y].filter(e=>!!e),issueData:{code:b.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof ev){let e=this;return T(async function(...t){let a=new v([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw a.addIssue(r(t,e)),a}),c=await Reflect.apply(o,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw a.addIssue(n(c,e)),a})})}{let e=this;return T(function(...t){let a=e._def.args.safeParse(t,i);if(!a.success)throw new v([r(t,a.error)]);let s=Reflect.apply(o,this,a.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new v([n(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ef({...this._def,args:el.create(e).rest(ee.create())})}returns(e){return new ef({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ef({args:e||el.create([]).rest(ee.create()),returns:t||ee.create(),typeName:u.ZodFunction,...D(r)})}}class ep extends B{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ep.create=(e,t)=>
10776new ep({getter:e,typeName:u.ZodLazy,...D(t)});class eg extends B{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return E(t,{received:t.data,code:b.invalid_literal,expected:this._def.value}),_}return{status:"valid",value:e.data}}get value(){return this._def.value}}function em(e,t){return new ew({values:e,typeName:u.ZodEnum,...D(t)})}eg.create=(e,t)=>new eg({value:e,typeName:u.ZodLiteral,...D(t)});class ew extends B{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return E(t,{expected:s.joinValues(r),received:t.parsedType,code:b.invalid_type}),_}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return E(t,{received:t.data,code:b.invalid_enum_value,options:r}),_}return T(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return ew.create(e)}exclude(e){return ew.create(this.options.filter(t=>!e.includes(t)))}}ew.create=em;class eb extends B{_parse(e){let t=s.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==m.string&&r.parsedType!==m.number){let e=s.objectValues(t);return E(r,{expected:s.joinValues(e),received:r.parsedType,code:b.invalid_type}),_}if(-1===t.indexOf(e.data)){let e=s.objectValues(t);return E(r,{received:r.data,code:b.invalid_enum_value,options:e}),_}return T(e.data)}get enum(){return this._def.values}}eb.create=(e,t)=>new eb({values:e,typeName:u.ZodNativeEnum,...D(t)});class ev extends B{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==m.promise&&!1===t.common.async?(E(t,{code:b.invalid_type,expected:m.promise,received:t.parsedType}),_):T((t.parsedType===m.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ev.create=(e,t)=>new ev({type:e,typeName:u.ZodPromise,...D(t)});class ey extends B{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===u.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{E(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:r.path,parent:r})):this._def.schema._parseSync({data:e,path:r.path,parent:r})}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?_:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?_:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type){if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>O(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!O(e))return e;let o=n.transform(e.value,i);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}}s.assertNever(n)}}ey.create=(e,t,r)=>new ey({schema:e,typeName:u.ZodEffects,effect:t,...D(r)}),ey.createWithPreprocess=(e,t,r)=>new ey({schema:t,effect:{type:"preprocess",transform:e},typeName:u.ZodEffects,...D(r)});class eC extends B{_parse(e){return this._getType(e)===m.undefined?T(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eC.create=(e,t)=>
10776new eC({innerType:e,typeName:u.ZodOptional,...D(t)});class ex extends B{_parse(e){return this._getType(e)===m.null?T(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ex.create=(e,t)=>new ex({innerType:e,typeName:u.ZodNullable,...D(t)});class eA extends B{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===m.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eA.create=(e,t)=>new eA({innerType:e,typeName:u.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...D(t)});class eE extends B{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return P(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new v(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new v(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eE.create=(e,t)=>new eE({innerType:e,typeName:u.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...D(t)});class ek extends B{_parse(e){if(this._getType(e)!==m.nan){let t=this._getOrReturnCtx(e);return E(t,{code:b.invalid_type,expected:m.nan,received:t.parsedType}),_}return{status:"valid",value:e.data}}}ek.create=e=>new ek({typeName:u.ZodNaN,...D(e)});let e_=Symbol("zod_brand");class eS extends B{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eT extends B{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?_:"dirty"===e.status?(t.dirty(),S(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?_:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eT({in:e,out:t,typeName:u.ZodPipeline})}}class eI extends B{_parse(e){let t=this._def.innerType._parse(e);return O(t)&&(t.value=Object.freeze(t.value)),t}}eI.create=(e,t)=>new eI({innerType:e,typeName:u.ZodReadonly,...D(t)});let eR=(e,t={},r)=>e?X.create().superRefine((n,i)=>{var o,a;if(!e(n)){let e="function"==typeof t?t(n):"string"==typeof t?{message:t}:t,s=null===(a=null!==(o=e.fatal)&&void 0!==o?o:r)||void 0===a||a;i.addIssue({code:"custom",..."string"==typeof e?{message:e}:e,fatal:s})}}):X.create(),eO={object:ei.lazycreate};(a=u||(u={})).ZodString="ZodString",a.ZodNumber="ZodNumber",a.ZodNaN="ZodNaN",a.ZodBigInt="ZodBigInt",a.ZodBoolean="ZodBoolean",a.ZodDate="ZodDate",a.ZodSymbol="ZodSymbol",a.ZodUndefined="ZodUndefined",a.ZodNull="ZodNull",a.ZodAny="ZodAny",a.ZodUnknown="ZodUnknown",a.ZodNever="ZodNever",a.ZodVoid="ZodVoid",a.ZodArray="ZodArray",a.ZodObject="ZodObject",a.ZodUnion="ZodUnion",a.ZodDiscriminatedUnion="ZodDiscriminatedUnion",a.ZodIntersection="ZodIntersection",a.ZodTuple="ZodTuple",a.ZodRecord="ZodRecord",a.ZodMap="ZodMap",a.ZodSet="ZodSet",a.ZodFunction="ZodFunction",a.ZodLazy="ZodLazy",a.ZodLiteral="ZodLiteral",a.ZodEnum="ZodEnum",a.ZodEffects="ZodEffects",a.ZodNativeEnum="ZodNativeEnum",a.ZodOptional="ZodOptional",a.ZodNullable="ZodNullable",a.ZodDefault="ZodDefault",a.ZodCatch="ZodCatch",a.ZodPromise="ZodPromise",a.ZodBranded="ZodBranded",a.ZodPipeline="ZodPipeline",a.ZodReadonly="ZodReadonly";let eP=W.create,eN=V.create,eM=ek.create,eD=Z.create,eB=G.create,e$=K.create,eU=Y.create,eL=Q.create,ej=J.create,ez=X.create,eF=ee.create,eH=et.create,eq=er.create,eW=en.create,eV=ei.create,eZ=ei.strictCreate,eG=eo.create,eK=es.create,eY=ec.create,eQ=el.create,eJ=eu.create,eX=ed.create,e0=eh.create,e1=ef.create,e2=ep.create,e3=eg.create,e5=ew.create,e4=eb.create,e6=ev.create,e8=ey.create,e9=eC.create,e7=ex.create,te=ey.createWithPreprocess,tt
10776=eT.create;var tr=Object.freeze({__proto__:null,defaultErrorMap:y,setErrorMap:function(e){C=e},getErrorMap:x,makeIssue:A,EMPTY_PATH:[],addIssueToContext:E,ParseStatus:k,INVALID:_,DIRTY:S,OK:T,isAborted:I,isDirty:R,isValid:O,isAsync:P,get util(){return s},get objectUtil(){return c},ZodParsedType:m,getParsedType:w,ZodType:B,ZodString:W,ZodNumber:V,ZodBigInt:Z,ZodBoolean:G,ZodDate:K,ZodSymbol:Y,ZodUndefined:Q,ZodNull:J,ZodAny:X,ZodUnknown:ee,ZodNever:et,ZodVoid:er,ZodArray:en,ZodObject:ei,ZodUnion:eo,ZodDiscriminatedUnion:es,ZodIntersection:ec,ZodTuple:el,ZodRecord:eu,ZodMap:ed,ZodSet:eh,ZodFunction:ef,ZodLazy:ep,ZodLiteral:eg,ZodEnum:ew,ZodNativeEnum:eb,ZodPromise:ev,ZodEffects:ey,ZodTransformer:ey,ZodOptional:eC,ZodNullable:ex,ZodDefault:eA,ZodCatch:eE,ZodNaN:ek,BRAND:e_,ZodBranded:eS,ZodPipeline:eT,ZodReadonly:eI,custom:eR,Schema:B,ZodSchema:B,late:eO,get ZodFirstPartyTypeKind(){return u},coerce:{string:e=>W.create({...e,coerce:!0}),number:e=>V.create({...e,coerce:!0}),boolean:e=>G.create({...e,coerce:!0}),bigint:e=>Z.create({...e,coerce:!0}),date:e=>K.create({...e,coerce:!0})},any:ez,array:eW,bigint:eD,boolean:eB,date:e$,discriminatedUnion:eK,effect:e8,enum:e5,function:e1,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>eR(t=>t instanceof e,t),intersection:eY,lazy:e2,literal:e3,map:eX,nan:eM,nativeEnum:e4,never:eH,null:ej,nullable:e7,number:eN,object:eV,oboolean:()=>eB().optional(),onumber:()=>eN().optional(),optional:e9,ostring:()=>eP().optional(),pipeline:tt,preprocess:te,promise:e6,record:eJ,set:e0,strictObject:eZ,string:eP,symbol:eU,transformer:e8,tuple:eQ,undefined:eL,union:eG,unknown:eF,void:eq,NEVER:_,ZodIssueCode:b,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:v});let tn=tr.object({message:tr.string()});function ti(e){return tr.literal(p[e])}tr.object({accessList:tr.array(tr.string()),blockHash:tr.string().nullable(),blockNumber:tr.string().nullable(),chainId:tr.string().or(tr.number()),from:tr.string(),gas:tr.string(),hash:tr.string(),input:tr.string().nullable(),maxFeePerGas:tr.string(),maxPriorityFeePerGas:tr.string(),nonce:tr.string(),r:tr.string(),s:tr.string(),to:tr.string(),transactionIndex:tr.string().nullable(),type:tr.string(),v:tr.string(),value:tr.string()});let to=tr.object({chainId:tr.string().or(tr.number())}),ta=tr.object({email:tr.string().email()}),ts=tr.object({otp:tr.string()}),tc=tr.object({uri:tr.string()}),tl=tr.object({chainId:tr.optional(tr.string().or(tr.number())),preferredAccountType:tr.optional(tr.string())}),tu=tr.object({provider:tr.enum(["google","github","apple","facebook","x","discord"])}),td=tr.object({email:tr.string().email()}),th=tr.object({otp:tr.string()}),tf=tr.object({otp:tr.string()}),tp=tr.object({themeMode:tr.optional(tr.enum(["light","dark"])),themeVariables:tr.optional(tr.record(tr.string(),tr.string().or(tr.number()))),w3mThemeVariables:tr.optional(tr.record(tr.string(),tr.string()))}),tg=tr.object({metadata:tr.object({name:tr.string(),description:tr.string(),url:tr.string(),icons:tr.array(tr.string())}).optional(),sdkVersion:tr.string(),projectId:tr.string()}),tm=tr.object({type:tr.string()}),tw=tr.object({action:tr.enum(["VERIFY_DEVICE","VERIFY_OTP"])}),tb=tr.object({url:tr.string()}),tv=tr.object({userName:tr.string()}),ty=tr.object({email:tr.string(),address:tr.string(),chainId:tr.string().or(tr.number()),accounts:tr.array(tr.object({address:tr.string(),type:tr.enum([g.ACCOUNT_TYPES.EOA,g.ACCOUNT_TYPES.SMART_ACCOUNT])})).optional(),userName:tr.string().optional()}),tC=tr.object({action:tr.enum(["VERIFY_PRIMARY_OTP","VERIFY_SECONDARY_OTP"])}),tx=tr.object({email:tr.string().email().optional().nullable(),address:tr.string(),chainId:tr.string().or(tr.number()),smartAccountDeployed:tr.optional(tr.boolean()),accounts:tr.array(tr.object({address:tr.string(),type:tr.enum([g.ACCOUNT_TYPES.EOA,g.ACCOUNT_TYPES.SMART_ACCOUNT])})).optional(),preferredAccountType:tr.optional(tr.string())}),tA=tr.object({uri:tr.string()}),tE=tr.object({isConnected:tr.boolean()}),tk=tr.object({chainId:tr.string().or(tr.number())}),t_=tr.object({chainId:tr.string().or(tr.number())}),tS=tr.object({newEmail:tr.string().email()}),tT=tr.object({smartAccountEnabledNetworks:tr.array(tr.number())});tr.object({address:tr.string(),isDeployed:tr.boolean()});let tI=tr.object({type:tr.string(),address:tr.string()}),tR=tr.any(),tO=tr.object({method:tr.literal("eth_accounts")}),tP=tr.object({method:tr.literal("eth_blockNumber")}),tN=tr.object({method:tr.literal("eth_call"),params:tr.array(tr.any())}),tM=tr.object({method:tr.literal("eth_chainId")}),tD=tr.object({method:tr.literal("eth_estimateGas"),params:tr.array(tr.any())}),tB=tr.object({method:tr.literal("eth_feeHistory"),params:tr.array(tr.any())}),t$=tr.object({method:tr.literal("eth_gasPrice")}),tU=tr.object({method:tr.literal("eth_getAccount"),params:tr.array(tr.any())}),tL=tr.object({method:tr.literal("eth_getBalance"),params:tr.array(tr.any())}),tj=tr.object({method:tr.literal("eth_getBlockByHash"),params:tr.array(tr.any())}),tz=tr.object({method:tr.literal("eth_getBlockByNumber"),params:tr.array(tr.any())}),tF=tr.object({method:tr.literal("eth_getBlockReceipts"),params:tr.array(tr.any())}),tH=tr.object({method:tr.literal("eth_getBlockTransactionCountByHash"),params:tr.array(tr.any())}),tq=tr.object({method:tr.literal("eth_getBlockTransactionCountByNumber"),params:tr.array(tr.any())}),tW=tr.object({method:tr.literal("eth_getCode"),params:tr.array(tr.any())}),tV=tr.object({method:tr.literal("eth_getFilterChanges"),params:tr.array(tr.any())}),tZ=tr.object({method:tr.literal("eth_getFilterLogs"),params:tr.array(tr.any())}),tG=tr.object({method:tr.literal("eth_getLogs"),params:tr.array(tr.any())}),tK=tr.object({method:tr.literal("eth_getProof"),params:tr.array(tr.any())}),tY=tr.object({method:tr.literal("eth_getStorageAt"),params:tr.array(tr.any())}),tQ=tr.object({method:tr.literal("eth_getTransactionByBlockHashAndIndex"),params:tr.array(tr.any())}),tJ=tr.object({method:tr.literal("eth_getTransactionByBlockNumberAndIndex"),params:tr.array(tr.any())}),tX=tr.object({method:tr.literal("eth_getTransactionByHash"),params:tr.array(tr.any())}),t0=tr.object({method:tr.literal("eth_getTransactionCount"),params:tr.array(tr.any())}),t1=tr.object({method:tr.literal("eth_getTransactionReceipt"),params:tr.array(tr.any())}
10776),t2=tr.object({method:tr.literal("eth_getUncleCountByBlockHash"),params:tr.array(tr.any())}),t3=tr.object({method:tr.literal("eth_getUncleCountByBlockNumber"),params:tr.array(tr.any())}),t5=tr.object({method:tr.literal("eth_maxPriorityFeePerGas")}),t4=tr.object({method:tr.literal("eth_newBlockFilter")}),t6=tr.object({method:tr.literal("eth_newFilter"),params:tr.array(tr.any())}),t8=tr.object({method:tr.literal("eth_newPendingTransactionFilter")}),t9=tr.object({method:tr.literal("eth_sendRawTransaction"),params:tr.array(tr.any())}),t7=tr.object({method:tr.literal("eth_syncing"),params:tr.array(tr.any())}),re=tr.object({method:tr.literal("eth_uninstallFilter"),params:tr.array(tr.any())}),rt=tr.object({method:tr.literal("personal_sign"),params:tr.array(tr.any())}),rr=tr.object({method:tr.literal("eth_signTypedData_v4"),params:tr.array(tr.any())}),rn=tr.object({method:tr.literal("eth_sendTransaction"),params:tr.array(tr.any())}),ri=tr.object({method:tr.literal("wallet_sendCalls"),params:tr.array(tr.object({chainId:tr.string().or(tr.number()).optional(),from:tr.string().optional(),version:tr.string().optional(),capabilities:tr.any().optional(),calls:tr.array(tr.object({to:tr.string().startsWith("0x"),data:tr.string().startsWith("0x").optional(),value:tr.string().optional()}))}))}),ro=tr.object({method:tr.literal("wallet_getCallsStatus"),params:tr.array(tr.string())}),ra=tr.object({method:tr.literal("wallet_getCapabilities")}),rs=tr.object({method:tr.literal("wallet_grantPermissions"),params:tr.array(tr.any())}),rc=tr.object({token:tr.string()}),rl=tr.object({id:tr.string().optional()}),ru={appEvent:rl.extend({type:ti("APP_SWITCH_NETWORK"),payload:to}).or(rl.extend({type:ti("APP_CONNECT_EMAIL"),payload:ta})).or(rl.extend({type:ti("APP_CONNECT_DEVICE")})).or(rl.extend({type:ti("APP_CONNECT_OTP"),payload:ts})).or(rl.extend({type:ti("APP_CONNECT_SOCIAL"),payload:tc})).or(rl.extend({type:ti("APP_GET_FARCASTER_URI")})).or(rl.extend({type:ti("APP_CONNECT_FARCASTER")})).or(rl.extend({type:ti("APP_GET_USER"),payload:tr.optional(tl)})).or(rl.extend({type:ti("APP_GET_SOCIAL_REDIRECT_URI"),payload:tu})).or(rl.extend({type:ti("APP_SIGN_OUT")})).or(rl.extend({type:ti("APP_IS_CONNECTED"),payload:tr.optional(rc)})).or(rl.extend({type:ti("APP_GET_CHAIN_ID")})).or(rl.extend({type:ti("APP_GET_SMART_ACCOUNT_ENABLED_NETWORKS")})).or(rl.extend({type:ti("APP_INIT_SMART_ACCOUNT")})).or(rl.extend({type:ti("APP_SET_PREFERRED_ACCOUNT"),payload:tm})).or(rl.extend({type:ti("APP_RPC_REQUEST"),payload:rt.or(rn).or(tO).or(tP).or(tN).or(tM).or(tD).or(tB).or(t$).or(tU).or(tL).or(tj).or(tz).or(tF).or(tH).or(tq).or(tW).or(tV).or(tZ).or(tG).or(tK).or(tY).or(tQ).or(tJ).or(tX).or(t0).or(t1).or(t2).or(t3).or(t5).or(t4).or(t6).or(t8).or(t9).or(t7).or(re).or(rt).or(rr).or(rn).or(ro).or(ri).or(ra).or(rs)})).or(rl.extend({type:ti("APP_UPDATE_EMAIL"),payload:td})).or(rl.extend({type:ti("APP_UPDATE_EMAIL_PRIMARY_OTP"),payload:th})).or(rl.extend({type:ti("APP_UPDATE_EMAIL_SECONDARY_OTP"),payload:tf})).or(rl.extend({type:ti("APP_SYNC_THEME"),payload:tp})).or(rl.extend({type:ti("APP_SYNC_DAPP_DATA"),payload:tg})),frameEvent:rl.extend({type:ti("FRAME_SWITCH_NETWORK_ERROR"),payload:tn}).or(rl.extend({type:ti("FRAME_SWITCH_NETWORK_SUCCESS"),payload:t_})).or(rl.extend({type:ti("FRAME_CONNECT_EMAIL_SUCCESS"),payload:tw})).or(rl.extend({type:ti("FRAME_CONNECT_EMAIL_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_GET_FARCASTER_URI_SUCCESS"),payload:tb})).or(rl.extend({type:ti("FRAME_GET_FARCASTER_URI_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_CONNECT_FARCASTER_SUCCESS"),payload:tv})).or(rl.extend({type:ti("FRAME_CONNECT_FARCASTER_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_CONNECT_OTP_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_CONNECT_OTP_SUCCESS")})).or(rl.extend({type:ti("FRAME_CONNECT_DEVICE_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_CONNECT_DEVICE_SUCCESS")})).or(rl.extend({type:ti("FRAME_CONNECT_SOCIAL_SUCCESS"),payload:ty})).or(rl.extend({type:ti("FRAME_CONNECT_SOCIAL_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_GET_USER_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_GET_USER_SUCCESS"),payload:tx})).or(rl.extend({type:ti("FRAME_GET_SOCIAL_REDIRECT_URI_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_GET_SOCIAL_REDIRECT_URI_SUCCESS"),payload:tA})).or(rl.extend({type:ti("FRAME_SIGN_OUT_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_SIGN_OUT_SUCCESS")})).or(rl.extend({type:ti("FRAME_IS_CONNECTED_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_IS_CONNECTED_SUCCESS"),payload:tE})).or(rl.extend({type:ti("FRAME_GET_CHAIN_ID_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_GET_CHAIN_ID_SUCCESS"),payload:tk})).or(rl.extend({type:ti("FRAME_RPC_REQUEST_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_RPC_REQUEST_SUCCESS"),payload:tR})).or(rl.extend({type:ti("FRAME_SESSION_UPDATE"),payload:rc})).or(rl.extend({type:ti("FRAME_UPDATE_EMAIL_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_UPDATE_EMAIL_SUCCESS"),payload:tC})).or(rl.extend({type:ti("FRAME_UPDATE_EMAIL_PRIMARY_OTP_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_UPDATE_EMAIL_PRIMARY_OTP_SUCCESS")})).or(rl.extend({type:ti("FRAME_UPDATE_EMAIL_SECONDARY_OTP_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_UPDATE_EMAIL_SECONDARY_OTP_SUCCESS"),payload:tS})).or(rl.extend({type:ti("FRAME_SYNC_THEME_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_SYNC_THEME_SUCCESS")})).or(rl.extend({type:ti("FRAME_SYNC_DAPP_DATA_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_SYNC_DAPP_DATA_SUCCESS")})).or(rl.extend({type:ti("FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS"),payload:tT})).or(rl.extend({type:ti("FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_INIT_SMART_ACCOUNT_ERROR"),payload:tn})).or(rl.extend({type:ti("FRAME_SET_PREFERRED_ACCOUNT_SUCCESS"),payload:tI})).or(rl.extend({type:ti("FRAME_SET_PREFERRED_ACCOUNT_ERROR"),payload:tn}))},rd={set(e,t){rf.isClient&&localStorage.setItem(`${p.STORAGE_KEY}${e}`,t)},get:e=>rf.isClient?localStorage.getItem(`${p.STORAGE_KEY}${e}`):null,delete(e,t){rf.isClient&&(t?localStorage.removeItem(e):localStorage.removeItem(`${p.STORAGE_KEY}${e}`))}}
10776,rh={transactionHash:/^0x(?:[A-Fa-f0-9]{64})$/u,signedMessage:/^0x(?:[a-fA-F0-9]{62,})$/u},rf={checkIfAllowedToTriggerEmail(){let e=rd.get(p.LAST_EMAIL_LOGIN_TIME);if(e){let t=Date.now()-Number(e);if(t<3e4)throw Error(`Please try again after ${Math.ceil((3e4-t)/1e3)} seconds`)}},getTimeToNextEmailLogin(){let e=rd.get(p.LAST_EMAIL_LOGIN_TIME);if(e){let t=Date.now()-Number(e);if(t<3e4)return Math.ceil((3e4-t)/1e3)}return 0},checkIfRequestExists:e=>g.NOT_SAFE_RPC_METHODS.includes(e.method)||g.SAFE_RPC_METHODS.includes(e.method),getResponseType:e=>"string"==typeof e&&(e?.match(rh.transactionHash)||e?.match(rh.signedMessage))?p.RPC_RESPONSE_TYPE_TX:p.RPC_RESPONSE_TYPE_OBJECT,checkIfRequestIsAllowed:e=>g.SAFE_RPC_METHODS.includes(e.method),isClient:"undefined"!=typeof window};var rp=r(15519);class rg{constructor(e,t=!1){if(this.iframe=null,this.rpcUrl=rp.bq.BLOCKCHAIN_API_RPC_URL,this.events={registerFrameEventHandler:(e,t,r)=>{function n({data:r}){if(!r.type?.includes(p.FRAME_EVENT_KEY))return;let i=ru.frameEvent.parse(r);i.id===e&&(t(i),window.removeEventListener("message",n))}rf.isClient&&(window.addEventListener("message",n),r.addEventListener("abort",()=>{window.removeEventListener("message",n)}))},onFrameEvent:e=>{rf.isClient&&window.addEventListener("message",({data:t})=>{t.type?.includes(p.FRAME_EVENT_KEY)&&e(ru.frameEvent.parse(t))})},onAppEvent:e=>{rf.isClient&&window.addEventListener("message",({data:t})=>{t.type?.includes(p.APP_EVENT_KEY)&&e(ru.appEvent.parse(t))})},postAppEvent:e=>{if(rf.isClient){if(!this.iframe?.contentWindow)throw Error("W3mFrame: iframe is not set");ru.appEvent.parse(e),this.iframe.contentWindow.postMessage(e,"*")}},postFrameEvent:e=>{if(rf.isClient){if(!parent)throw Error("W3mFrame: parent is not set");ru.frameEvent.parse(e),parent.postMessage(e,"*")}}},this.projectId=e,this.frameLoadPromise=new Promise((e,t)=>{this.frameLoadPromiseResolver={resolve:e,reject:t}}),t&&(this.frameLoadPromise=new Promise((e,t)=>{this.frameLoadPromiseResolver={resolve:e,reject:t}}),rf.isClient)){let t=document.createElement("iframe");t.id="w3m-iframe",t.src=`${h}?projectId=${e}`,t.style.position="fixed",t.style.zIndex="999999",t.style.display="none",t.style.animationDelay="0s, 50ms",t.style.borderBottomLeftRadius="clamp(0px, var(--wui-border-radius-l), 44px)",t.style.borderBottomRightRadius="clamp(0px, var(--wui-border-radius-l), 44px)",document.body.appendChild(t),this.iframe=t,this.iframe.onload=()=>{this.frameLoadPromiseResolver?.resolve(void 0)},this.iframe.onerror=()=>{this.frameLoadPromiseResolver?.reject("Unable to load email login dependency")}}}get networks(){return Object.assign({},...[1,5,11155111,10,420,42161,421613,137,80001,42220,1313161554,1313161555,56,97,43114,43113,324,280,100,8453,84531,7777777,999].map(e=>({[e]:{rpcUrl:`${this.rpcUrl}/v1/?chainId=eip155:${e}&projectId=${this.projectId}`,chainId:e}})))}}var rm=r(63088);class rw{constructor(e){let t=(0,rm.jI)({level:f}),{logger:r,chunkLoggerController:n}=(0,rm.Rt)({opts:t});this.logger=(0,rm.Ep)(r,this.constructor.name),this.chunkLoggerController=n,"undefined"!=typeof window&&this.chunkLoggerController?.downloadLogsBlobInBrowser&&(window.downloadAppKitLogsBlob||(window.downloadAppKitLogsBlob={}),window.downloadAppKitLogsBlob.sdk=()=>{this.chunkLoggerController?.downloadLogsBlobInBrowser&&this.chunkLoggerController.downloadLogsBlobInBrowser({projectId:e})})}}class rb{constructor(e){this.openRpcRequests=[],this.w3mLogger=new rw(e),this.w3mFrame=new rg(e,!0)}getLoginEmailUsed(){return!!rd.get(p.EMAIL_LOGIN_USED_KEY)}getEmail(){return rd.get(p.EMAIL)}async connectEmail(e){try{rf.checkIfAllowedToTriggerEmail();let t=await this.appEvent({type:p.APP_CONNECT_EMAIL,payload:e});return this.setNewLastEmailLoginTime(),t}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting email"),e}}async connectDevice(){try{return this.appEvent({type:p.APP_CONNECT_DEVICE})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting device"),e}}async connectOtp(e){try{return this.appEvent({type:p.APP_CONNECT_OTP,payload:e})}catch(e){throw this.w3mLogger.logger.error({error:e}
10776,"Error connecting otp"),e}}async isConnected(){try{let e=await this.appEvent({type:p.APP_IS_CONNECTED});return e.isConnected||this.deleteAuthLoginCache(),e}catch(e){throw this.deleteAuthLoginCache(),this.w3mLogger.logger.error({error:e},"Error checking connection"),e}}async getChainId(){try{let e=await this.appEvent({type:p.APP_GET_CHAIN_ID});return this.setLastUsedChainId(e.chainId),e}catch(e){throw this.w3mLogger.logger.error({error:e},"Error getting chain id"),e}}async getSocialRedirectUri(e){try{return this.appEvent({type:p.APP_GET_SOCIAL_REDIRECT_URI,payload:e})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error getting social redirect uri"),e}}async updateEmail(e){try{let t=await this.appEvent({type:p.APP_UPDATE_EMAIL,payload:e});return this.setNewLastEmailLoginTime(),t}catch(e){throw this.w3mLogger.logger.error({error:e},"Error updating email"),e}}async updateEmailPrimaryOtp(e){try{return this.appEvent({type:p.APP_UPDATE_EMAIL_PRIMARY_OTP,payload:e})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error updating email primary otp"),e}}async updateEmailSecondaryOtp(e){try{let t=await this.appEvent({type:p.APP_UPDATE_EMAIL_SECONDARY_OTP,payload:e});return this.setLoginSuccess(t.newEmail),t}catch(e){throw this.w3mLogger.logger.error({error:e},"Error updating email secondary otp"),e}}async syncTheme(e){try{return this.appEvent({type:p.APP_SYNC_THEME,payload:e})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error syncing theme"),e}}async syncDappData(e){try{return this.appEvent({type:p.APP_SYNC_DAPP_DATA,payload:e})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error syncing dapp data"),e}}async getSmartAccountEnabledNetworks(){try{let e=await this.appEvent({type:p.APP_GET_SMART_ACCOUNT_ENABLED_NETWORKS});return this.persistSmartAccountEnabledNetworks(e.smartAccountEnabledNetworks),e}catch(e){throw this.persistSmartAccountEnabledNetworks([]),this.w3mLogger.logger.error({error:e},"Error getting smart account enabled networks"),e}}async setPreferredAccount(e){try{return this.appEvent({type:p.APP_SET_PREFERRED_ACCOUNT,payload:{type:e}})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error setting preferred account"),e}}async connect(e){try{let t=e?.chainId??this.getLastUsedChainId()??1,r=await this.appEvent({type:p.APP_GET_USER,payload:{...e,chainId:t}});return this.setLoginSuccess(r.email),this.setLastUsedChainId(r.chainId),r}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting"),e}}async connectSocial(e){try{let t=await this.appEvent({type:p.APP_CONNECT_SOCIAL,payload:{uri:e}});return t.userName&&this.setSocialLoginSuccess(t.userName),t}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting social"),e}}async getFarcasterUri(){try{return await this.appEvent({type:p.APP_GET_FARCASTER_URI})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error getting farcaster uri"),e}}async connectFarcaster(){try{let e=await this.appEvent({type:p.APP_CONNECT_FARCASTER});return e.userName&&this.setSocialLoginSuccess(e.userName),e}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting farcaster"),e}}async switchNetwork(e){try{let t=await this.appEvent({type:p.APP_SWITCH_NETWORK,payload:{chainId:e}});return this.setLastUsedChainId(t.chainId),t}catch(e){throw this.w3mLogger.logger.error({error:e},"Error switching network"),e}}async disconnect(){try{let e=await this.appEvent({type:p.APP_SIGN_OUT});return this.deleteAuthLoginCache(),e}catch(e){throw this.w3mLogger.logger.error({error:e},"Error disconnecting"),e}}async request(e){try{if(g.GET_CHAIN_ID===e.method)return this.getLastUsedChainId();this.rpcRequestHandler?.(e);let t=await this.appEvent({type:p.APP_RPC_REQUEST,payload:e});return this.rpcSuccessHandler?.(t),t}catch(e){throw this.rpcErrorHandler?.(e),this.w3mLogger.logger.error({error:e},"Error requesting"),e}}onRpcRequest(e){this.rpcRequestHandler=e}onRpcSuccess(e){this.rpcSuccessHandler=e}onRpcError(e){this.rpcErrorHandler=e}onIsConnected(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===p.FRAME_GET_USER_SUCCESS&&e(t.payload)})}onNotConnected(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===p.FRAME_IS_CONNECTED_ERROR&&e(),t.type!==p.FRAME_IS_CONNECTED_SUCCESS||t.payload.isConnected||e()})}async getCapabilities(){try{return await this.request({method:"wallet_getCapabilities"})||{}}catch{return{}}}onSetPreferredAccount(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===p.FRAME_SET_PREFERRED_ACCOUNT_SUCCESS?e(t.payload):t.type===p.FRAME_SET_PREFERRED_ACCOUNT_ERROR&&e({type:g.ACCOUNT_TYPES.EOA})})}onGetSmartAccountEnabledNetworks(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===p.FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS?e(t.payload.smartAccountEnabledNetworks):t.type===p.FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR&&e([])})}
10776rejectRpcRequests(){try{this.openRpcRequests.forEach(({abortController:e,method:t})=>{g.SAFE_RPC_METHODS.includes(t)||e.abort()}),this.openRpcRequests=[]}catch(e){this.w3mLogger.logger.error({error:e},"Error aborting RPC request")}}async appEvent(e){await this.w3mFrame.frameLoadPromise;let t=e.type.replace("@w3m-app/","");return new Promise((r,n)=>{let i=Math.random().toString(36).substring(7);this.w3mLogger.logger.info?.({event:e,id:i},"Sending app event"),this.w3mFrame.events.postAppEvent({...e,id:i});let o=new AbortController;"RPC_REQUEST"===t&&(this.openRpcRequests=[...this.openRpcRequests,{...e.payload,abortController:o}]),o.signal.addEventListener("abort",()=>{"RPC_REQUEST"===t&&n(Error("Request was aborted"))}),this.w3mFrame.events.registerFrameEventHandler(i,function(e){e.type===`@w3m-frame/${t}_SUCCESS`?("payload"in e&&r(e.payload),r(void 0)):e.type===`@w3m-frame/${t}_ERROR`&&("payload"in e&&n(Error(e.payload?.message||"An error occurred")),n(Error("An error occurred")))},o.signal)})}setNewLastEmailLoginTime(){rd.set(p.LAST_EMAIL_LOGIN_TIME,Date.now().toString())}setSocialLoginSuccess(e){rd.set(p.SOCIAL_USERNAME,e)}setLoginSuccess(e){e&&rd.set(p.EMAIL,e),rd.set(p.EMAIL_LOGIN_USED_KEY,"true"),rd.delete(p.LAST_EMAIL_LOGIN_TIME)}deleteAuthLoginCache(){rd.delete(p.EMAIL_LOGIN_USED_KEY),rd.delete(p.EMAIL),rd.delete(p.LAST_USED_CHAIN_KEY),rd.delete(p.SOCIAL_USERNAME),rd.delete(p.SOCIAL,!0)}setLastUsedChainId(e){rd.set(p.LAST_USED_CHAIN_KEY,String(e))}getLastUsedChainId(){return Number(rd.get(p.LAST_USED_CHAIN_KEY))}persistSmartAccountEnabledNetworks(e){rd.set(p.SMART_ACCOUNT_ENABLED_NETWORKS,e.join(","))}}},43197:function(e,t,r){"use strict";function n(e,t){let r=e.exec(t);return r?.groups}r.d(t,{Zw:function(){return n},cN:function(){return a},eL:function(){return i},lh:function(){return o}});let i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,o=/^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)?$/,a=/^\(.+?\).*?$/},88726:function(e,t,r){"use strict";let n,i;function o(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{Toaster:function(){return eT}});var a,s=r(2265);let c={data:""},l=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||c,u=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,d=/\/\*[^]*?\*\/| +/g,h=/\n+/g,f=(e,t)=>{let r="",n="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?r=o+" "+a+";":n+="f"==o[1]?f(a,o):o+"{"+f(a,"k"==o[1]?"":t)+"}":"object"==typeof a?n+=f(a,t?t.replace(/([^,])+/g,e=>o.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=a&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=f.p?f.p(o,a):o+":"+a+";")}return r+(t&&i?t+"{"+i+"}":i)+n},p={},g=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+g(e[r]);return t}return e},m=(e,t,r,n,i)=>{var o;let a=g(e),s=p[a]||(p[a]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(a));if(!p[s]){let t=a!==e?e:(e=>{let t,r,n=[{}];for(;t=u.exec(e.replace(d,""));)t[4]?n.shift():t[3]?(r=t[3].replace(h," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(h," ").trim();return n[0]})(e);p[s]=f(i?{["@keyframes "+s]:t}:t,r?"":"."+s)}let c=r&&p.g?p.g:null;return r&&(p.g=p[s]),o=p[s],c?t.data=t.data.replace(c,o):-1===t.data.indexOf(o)&&(t.data=n?o+t.data:t.data+o),s},w=(e,t,r)=>e.reduce((e,n,i)=>{let o=t[i];if(o&&o.call){let e=o(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":f(e,""):!1===e?"":e}return e+n+(null==o?"":o)},"");function b(e){let t=this||{},r=e.call?e(t.p):e;return m(r.unshift?r.raw?w(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,l(t.target),t.g,t.o,t.k)}b.bind({g:1});let v,y,C,x=b.bind({k:1});function A(e,t){let r=this||{};return function(){let n=arguments;function i(o,a){let s=Object.assign({},o),c=s.className||i.className;r.p=Object.assign({theme:y&&y()},s),r.o=/ *go\d+/.test(c),s.className=b.apply(r,n)+(c?" "+c:""),t&&(s.ref=a);let l=e;return e[0]&&(l=s.as||e,delete s.as),C&&l[0]&&C(s),v(l,s)}return t?t(i):i}}function E(){let e=o(["\nfrom {\n transform: scale(0) rotate(45deg);\n opacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n opacity: 1;\n}"]);return E=function(){return e},e}function k(){let e=o(["\nfrom {\n transform: scale(0);\n opacity: 0;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]);return k=function(){return e},e}function _(){let e=o(["\nfrom {\n transform: scale(0) rotate(90deg);\n opacity: 0;\n}\nto {\n transform: scale(1) rotate(90deg);\n opacity: 1;\n}"]);return _=function(){return e},e}
10776function S(){let e=o(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n\n &:after,\n &:before {\n content: '';\n animation: "," 0.15s ease-out forwards;\n animation-delay: 150ms;\n position: absolute;\n border-radius: 3px;\n opacity: 0;\n background: ",";\n bottom: 9px;\n left: 4px;\n height: 2px;\n width: 12px;\n }\n\n &:before {\n animation: "," 0.15s ease-out forwards;\n animation-delay: 180ms;\n transform: rotate(90deg);\n }\n"]);return S=function(){return e},e}function T(){let e=o(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]);return T=function(){return e},e}function I(){let e=o(["\n width: 12px;\n height: 12px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: ",";\n border-right-color: ",";\n animation: "," 1s linear infinite;\n"]);return I=function(){return e},e}function R(){let e=o(["\nfrom {\n transform: scale(0) rotate(45deg);\n opacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n opacity: 1;\n}"]);return R=function(){return e},e}function O(){let e=o(["\n0% {\n height: 0;\n width: 0;\n opacity: 0;\n}\n40% {\n height: 0;\n width: 6px;\n opacity: 1;\n}\n100% {\n opacity: 1;\n height: 10px;\n}"]);return O=function(){return e},e}function P(){let e=o(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n &:after {\n content: '';\n box-sizing: border-box;\n animation: "," 0.2s ease-out forwards;\n opacity: 0;\n animation-delay: 200ms;\n position: absolute;\n border-right: 2px solid;\n border-bottom: 2px solid;\n border-color: ",";\n bottom: 6px;\n left: 6px;\n height: 10px;\n width: 6px;\n }\n"]);return P=function(){return e},e}function N(){let e=o(["\n position: absolute;\n"]);return N=function(){return e},e}function M(){let e=o(["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 20px;\n min-height: 20px;\n"]);return M=function(){return e},e}function D(){let e=o(["\nfrom {\n transform: scale(0.6);\n opacity: 0.4;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]);return D=function(){return e},e}function B(){let e=o(["\n position: relative;\n transform: scale(0.6);\n opacity: 0.4;\n min-width: 20px;\n animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n"]);return B=function(){return e},e}function $(){let e=o(["\n display: flex;\n align-items: center;\n background: #fff;\n color: #363636;\n line-height: 1.3;\n will-change: transform;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n max-width: 350px;\n pointer-events: auto;\n padding: 8px 10px;\n border-radius: 8px;\n"]);return $=function(){return e},e}function U(){let e=o(["\n display: flex;\n justify-content: center;\n margin: 4px 10px;\n color: inherit;\n flex: 1 1 auto;\n white-space: pre-line;\n"]);return U=function(){return e},e}function L(){let e=o(["\n z-index: 9999;\n > * {\n pointer-events: auto;\n }\n"]);return L=function(){return e},e}var j=e=>"function"==typeof e,z=(e,t)=>j(e)?e(t):e,F=(n=0,()=>(++n).toString()),H=()=>{if(void 0===i&&"u">typeof window){let e=matchMedia("(prefers-reduced-motion: reduce)");i=!e||e.matches}return i},q=new Map,W=e=>{if(q.has(e))return;let t=setTimeout(()=>{q.delete(e),Y({type:4,toastId:e})},1e3);q.set(e,t)},V=e=>{let t=q.get(e);t&&clearTimeout(t)},Z=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&V(t.toast.id),{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:r}=t;return e.toasts.find(e=>e.id===r.id)?Z(e,{type:1,toast:r}):Z(e,{type:0,toast:r});case 3:let{toastId:n}=t;
10776return n?W(n):e.toasts.forEach(e=>{W(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+i}))}}},G=[],K={toasts:[],pausedAt:void 0},Y=e=>{K=Z(K,e),G.forEach(e=>{e(K)})},Q={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},J=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,r]=(0,s.useState)(K);(0,s.useEffect)(()=>(G.push(r),()=>{let e=G.indexOf(r);e>-1&&G.splice(e,1)}),[t]);let n=t.toasts.map(t=>{var r,n;return{...e,...e[t.type],...t,duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||Q[t.type],style:{...e.style,...null==(n=e[t.type])?void 0:n.style,...t.style}}});return{...t,toasts:n}},X=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",r=arguments.length>2?arguments[2]:void 0;return{createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||F()}},ee=e=>(t,r)=>{let n=X(t,e,r);return Y({type:2,toast:n}),n.id},et=(e,t)=>ee("blank")(e,t);et.error=ee("error"),et.success=ee("success"),et.loading=ee("loading"),et.custom=ee("custom"),et.dismiss=e=>{Y({type:3,toastId:e})},et.remove=e=>Y({type:4,toastId:e}),et.promise=(e,t,r)=>{let n=et.loading(t.loading,{...r,...null==r?void 0:r.loading});return e.then(e=>(et.success(z(t.success,e),{id:n,...r,...null==r?void 0:r.success}),e)).catch(e=>{et.error(z(t.error,e),{id:n,...r,...null==r?void 0:r.error})}),e};var er=(e,t)=>{Y({type:1,toast:{id:e,height:t}})},en=()=>{Y({type:5,time:Date.now()})},ei=e=>{let{toasts:t,pausedAt:r}=J(e);(0,s.useEffect)(()=>{if(r)return;let e=Date.now(),n=t.map(t=>{if(t.duration===1/0)return;let r=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(r<0){t.visible&&et.dismiss(t.id);return}return setTimeout(()=>et.dismiss(t.id),r)});return()=>{n.forEach(e=>e&&clearTimeout(e))}},[t,r]);let n=(0,s.useCallback)(()=>{r&&Y({type:6,time:Date.now()})},[r]),i=(0,s.useCallback)((e,r)=>{let{reverseOrder:n=!1,gutter:i=8,defaultPosition:o}=r||{},a=t.filter(t=>(t.position||o)===(e.position||o)&&t.height),s=a.findIndex(t=>t.id===e.id),c=a.filter((e,t)=>t<s&&e.visible).length;return a.filter(e=>e.visible).slice(...n?[c+1]:[0,c]).reduce((e,t)=>e+(t.height||0)+i,0)},[t]);return{toasts:t,handlers:{updateHeight:er,startPause:en,endPause:n,calculateOffset:i}}},eo=x(E()),ea=x(k()),es=x(_()),ec=A("div")(S(),e=>e.primary||"#ff4b4b",eo,ea,e=>e.secondary||"#fff",es),el=x(T()),eu=A("div")(I(),e=>e.secondary||"#e0e0e0",e=>e.primary||"#616161",el),ed=x(R()),eh=x(O()),ef=A("div")(P(),e=>e.primary||"#61d345",ed,eh,e=>e.secondary||"#fff"),ep=A("div")(N()),eg=A("div")(M()),em=x(D()),ew=A("div")(B(),em),eb=e=>{let{toast:t}=e,{icon:r,type:n,iconTheme:i}=t;return void 0!==r?"string"==typeof r?s.createElement(ew,null,r):r:"blank"===n?null:s.createElement(eg,null,s.createElement(eu,{...i}),"loading"!==n&&s.createElement(ep,null,"error"===n?s.createElement(ec,{...i}):s.createElement(ef,{...i})))},ev=e=>"\n0% {transform: translate3d(0,".concat(-200*e,"%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n"),ey=e=>"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,".concat(-150*e,"%,-1px) scale(.6); opacity:0;}\n"),eC=A("div")($()),ex=A("div")(U()),eA=(e,t)=>{let r=e.includes("top")?1:-1,[n,i]=H()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[ev(r),ey(r)];return{animation:t?"".concat(x(n)," 0.35s cubic-bezier(.21,1.02,.73,1) forwards"):"".concat(x(i)," 0.4s forwards cubic-bezier(.06,.71,.55,1)")}},eE=s.memo(e=>{let{toast:t,position:r,style:n,children:i}=e,o=t.height?eA(t.position||r||"top-center",t.visible):{opacity:0},a=s.createElement(eb,{toast:t}),c=s.createElement(ex,{...t.ariaProps},z(t.message,t));return s.createElement(eC,{className:t.className,style:{...o,...n,...t.style}},"function"==typeof i?i({icon:a,message:c}
10776):s.createElement(s.Fragment,null,a,c))});a=s.createElement,f.p=void 0,v=a,y=void 0,C=void 0;var ek=e=>{let{id:t,className:r,style:n,onHeightUpdate:i,children:o}=e,a=s.useCallback(e=>{if(e){let r=()=>{i(t,e.getBoundingClientRect().height)};r(),new MutationObserver(r).observe(e,{subtree:!0,childList:!0,characterData:!0})}},[t,i]);return s.createElement("div",{ref:a,className:r,style:n},o)},e_=(e,t)=>{let r=e.includes("top"),n=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:H()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(t*(r?1:-1),"px)"),...r?{top:0}:{bottom:0},...n}},eS=b(L()),eT=e=>{let{reverseOrder:t,position:r="top-center",toastOptions:n,gutter:i,children:o,containerStyle:a,containerClassName:c}=e,{toasts:l,handlers:u}=ei(n);return s.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...a},className:c,onMouseEnter:u.startPause,onMouseLeave:u.endPause},l.map(e=>{let n=e.position||r,a=e_(n,u.calculateOffset(e,{reverseOrder:t,gutter:i,defaultPosition:r}));return s.createElement(ek,{id:e.id,key:e.id,onHeightUpdate:u.updateHeight,className:e.visible?eS:"",style:a},"custom"===e.type?z(e.message,e):o?o(e):s.createElement(eE,{toast:e,position:n}))}))}},69199:function(e,t,r){"use strict";function n(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}r.d(t,{E:function(){return n}})},69717:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});var n=r(69199);function i(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));let r=(0,n.E)(t),i=0;for(let t of e)r.set(t,i),i+=t.length;return r}},55522:function(e,t,r){"use strict";r.d(t,{m:function(){return i}});var n=r(49112);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,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}},39613: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(69717),i=r(55522),o=r(3767)},3767:function(e,t,r){"use strict";r.d(t,{B:function(){return i}});var n=r(49112);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)}},49112:function(e,t,r){"use strict";r.d(t,{Z:function(){return eZ}});var n={};r.r(n),r.d(n,{identity:function(){return P}});var i={};r.r(i),r.d(i,{base2:function(){return N}});var o={};r.r(o),r.d(o,{base8:function(){return M}});var a={};r.r(a),r.d(a,{base10:function(){return D}});var s={};r.r(s),r.d(s,{base16:function(){return B},base16upper:function(){return $}});var c={};r.r(c),r.d(c,{base32:function(){return U},base32hex:function(){return F},base32hexpad:function(){return q},base32hexpadupper:function(){return W},base32hexupper:function(){return H},base32pad:function(){return j},base32padupper:function(){return z},base32upper:function(){return L},base32z:function(){return V}});var l={};r.r(l),r.d(l,{base36:function(){return Z},base36upper:function(){return G}});var u={};r.r(u),r.d(u,{base58btc:function(){return K},base58flickr:function(){return Y}});var d={};r.r(d),r.d(d,{base64:function(){return Q},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 f={};r.r(f),r.d(f,{sha256:function(){return ew},sha512:function(){return eb}});var p={};r.r(p),r.d(p,{identity:function(){return ev}});var g={};r.r(g),r.d(g,{code:function(){return eC},decode:function(){return eA},encode:function(){return ex},name:function(){return ey}});var m={};r.r(m),r.d(m,{code:function(){return eS},decode:function(){return eI},encode:function(){return eT},name:function(){return e_}});var w=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");
10776for(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,c=e.charAt(0),l=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function d(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]===c;)n++,t++;for(var o=(e.length-t)*l+1>>>0,a=new Uint8Array(o);e[t];){var u=r[e.charCodeAt(t)];if(255===u)return;for(var d=0,h=o-1;(0!==u||d<i)&&-1!==h;h--,d++)u+=s*a[h]>>>0,a[h]=u%256>>>0,u=u/256>>>0;if(0!==u)throw Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var f=o-i;f!==o&&0===a[f];)f++;for(var p=new Uint8Array(n+(o-f)),g=n;f!==o;)p[g++]=a[f++];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)*u+1>>>0,l=new Uint8Array(a);i!==o;){for(var d=t[i],h=0,f=a-1;(0!==d||h<n)&&-1!==f;f--,h++)d+=256*l[f]>>>0,l[f]=d%s>>>0,d=d/s>>>0;if(0!==d)throw Error("Non-zero carry");n=h,i++}for(var p=a-n;p!==a&&0===l[p];)p++;for(var g=c.repeat(r);p<a;++p)g+=e.charAt(l[p]);return g},decodeUnsafe:d,decode:function(e){var r=d(e);if(r)return r;throw Error(`Non-${t} character`)}}};new Uint8Array(0);let b=(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")},y=e=>new TextEncoder().encode(e),C=e=>new TextDecoder().decode(e);class x{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 A{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 k(this,e)}}class E{constructor(e){this.decoders=e}or(e){return k(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 k=(e,t)=>new E({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class _{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new x(e,t,r),this.decoder=new A(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let S=({name:e,prefix:t,encode:r,decode:n})=>new _(e,t,r,n),T=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=w(r,t);return S({prefix:e,name:t,encode:n,decode:e=>v(i(e))})},I=(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,c=0,l=0;for(let t=0;t<o;++t){let o=i[e[t]];if(void 0===o)throw SyntaxError(`Non-${n} character`);c=c<<r|o,(s+=r)>=8&&(s-=8,a[l++]=255&c>>s)}if(s>=r||255&c<<8-s)throw SyntaxError("Unexpected end of data");return a},R=(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},O=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>S({prefix:t,name:e,encode:e=>R(e,n,r),decode:t=>I(t,n,r,e)}),P=S({prefix:"\0",name:"identity",encode:e=>C(e),decode:e=>y(e)}),N=O({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),M=O({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),D=T({prefix:"9",name:"base10",alphabet:"0123456789"}),B=O({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),$=O({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),U=O({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),L=O({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),j=O({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),z=O({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),F=O({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),H=O({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),q=O({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),W=O({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),V=O({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),Z=T({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),G=T({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),K=T({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Y=T({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Q=O({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
10776+/",bitsPerChar:6}),J=O({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),X=O({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ee=O({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=S({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=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},ea=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};let es=(e,t=0)=>[ea(e,t),ea.bytes],ec=(e,t,r=0)=>(eo(e,t,r),t),el=e=>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,eu=(e,t)=>
10776{let r=t.byteLength,n=el(e),i=n+el(r),o=new Uint8Array(i+r);return ec(e,o,0),ec(r,o,n),o.set(t,i),new ef(e,r,t,o)},ed=e=>{let t=v(e),[r,n]=es(t),[i,o]=es(t.subarray(n)),a=t.subarray(n+o);if(a.byteLength!==i)throw Error("Incorrect length");return new ef(r,i,a,t)},eh=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&b(e.bytes,t.bytes);class ef{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let ep=({name:e,code:t,encode:r})=>new eg(e,t,r);class eg{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?eu(this.code,t):t.then(e=>eu(this.code,e))}throw Error("Unknown type, must be binary type")}}let em=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),ew=ep({name:"sha2-256",code:18,encode:em("SHA-256")}),eb=ep({name:"sha2-512",code:19,encode:em("SHA-512")}),ev={code:0,name:"identity",encode:v,digest:e=>eu(0,v(e))},ey="raw",eC=85,ex=e=>v(e),eA=e=>v(e),eE=new TextEncoder,ek=new TextDecoder,e_="json",eS=512,eT=e=>eE.encode(JSON.stringify(e)),eI=e=>JSON.parse(ek.decode(e));class eR{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:eL,byteLength:eL,code:eU,version:eU,multihash:eU,bytes:eU,_baseCache:eL,asCID:eL})}toV0(){if(0===this.version)return this;{let{code:e,multihash:t}=this;if(e!==eM)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==eD)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return eR.createV0(t)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,r=eu(e,t);return eR.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&&eh(this.multihash,e.multihash)}toString(e){let{bytes:t,version:r,_baseCache:n}=this;return 0===r?eP(t,n,e||K.encoder):eN(t,n,e||U.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 ej(/^0\.0/,ez),!!(e&&(e[e$]||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 eR)return e;if(null!=e&&e.asCID===e){let{version:t,code:r,multihash:n,bytes:i}=e;return new eR(t,r,n,i||eB(t,r,n.bytes))}if(null==e||!0!==e[e$])return null;{let{version:t,multihash:r,code:n}=e,i=ed(r);return eR.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===eM)return new eR(e,t,r,r.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${eM}) block encoding`);case 1:{let n=eB(e,t,r.bytes);return new eR(e,t,r,n)}default:throw Error("Invalid version")}}static createV0(e){return eR.create(0,eM,e)}static createV1(e,t){return eR.create(1,e,t)}static decode(e){let[t,r]=eR.decodeFirst(e);if(r.length)throw Error("Incorrect length");return t}static decodeFirst(e){let t=eR.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 ef(t.multihashCode,t.digestSize,i,n);return[0===t.version?eR.createV0(o):eR.createV1(t.codec,o),e.subarray(t.size)]}static inspectBytes(e){let t=0,r=()=>{let[r,n]=es(e.subarray(t));return t+=n,r},n=r(),i=eM;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(),c=t+s;return{version:n,codec:i,multihashCode:a,digestSize:s,multihashSize:c-o,size:c}}static parse(e,t){let[r,n]=eO(e,t),i=eR.decode(n);return i._baseCache.set(r,e),i}}let eO=(e,t)=>{switch(e[0]){case"Q":return[K.prefix,(t||K).decode(`${K.prefix}${e}`)];case K.prefix:return[K.prefix,(t||K).decode(e)];case U.prefix:return[U.prefix,(t||U).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)]}},eP=(e,t,r)=>{let{prefix:n}=r;if(n!==K.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}},eN=(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}},eM=112,eD=18,eB=(e,t,r)=>{let n=el(e),i=n+el(t),o=new Uint8Array(i+r.byteLength);return ec(e,o,0),ec(t,o,n),o.set(r,i),o}
10776,e$=Symbol.for("@ipld/js-cid/CID"),eU={writable:!1,configurable:!1,enumerable:!0},eL={writable:!1,enumerable:!1,configurable:!1},ej=(e,t)=>{if(e.test("0.0.0-dev"))console.warn(t);else throw Error(t)},ez=`CID.isCID(v) is deprecated and will be removed in the next major release. 10777Following code pattern: 10778 10779if (CID.isCID(value)) { 10780 doSomethingWithCID(value) 10781} 10782 10783Is replaced with: 10784 10785const cid = CID.asCID(value) 10786if (cid) { 10787 // Make sure to use cid instead of value 10788 doSomethingWithCID(cid) 10789} 10790`,eF={...n,...i,...o,...a,...s,...c,...l,...u,...d,...h};({...f,...p});var eH=r(69199);function eq(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}let eW=eq("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),eV=eq("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,eH.E)(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t});var eZ={utf8:eW,"utf-8":eW,hex:eF.base16,latin1:eV,ascii:eV,binary:eV,...eF}},83044:function(e,t,r){"use strict";r.d(t,{sj:function(){return f},iH:function(){return m},CO:function(){return g},Ld:function(){return p}}),Symbol();let n=Symbol(),i=Object.getPrototypeOf,o=new WeakMap,a=e=>e&&(o.has(e)?o.get(e):i(e)===Object.prototype||i(e)===Array.prototype),s=e=>a(e)&&e[n]||null,c=(e,t=!0)=>{o.set(e,t)},l=e=>"object"==typeof e&&null!==e,u=new WeakMap,d=new WeakSet,[h]=((e=Object.is,t=(e,t)=>new Proxy(e,t),r=e=>l(e)&&!d.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),n=e=>{switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e}},i=new WeakMap,o=(e,t,r=n)=>{let a=i.get(e);if((null==a?void 0:a[0])===t)return a[1];let s=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return c(s,!0),i.set(e,[t,s]),Reflect.ownKeys(e).forEach(t=>{if(Object.getOwnPropertyDescriptor(s,t))return;let n=Reflect.get(e,t),i={value:n,enumerable:!0,configurable:!0};if(d.has(n))c(n,!1);else if(n instanceof Promise)delete i.value,i.get=()=>r(n);else if(u.has(n)){let[e,t]=u.get(n);i.value=o(e,t(),r)}Object.defineProperty(s,t,i)}),Object.preventExtensions(s)},a=new WeakMap,h=[1,1],f=n=>{if(!l(n))throw Error("object required");let i=a.get(n);if(i)return i;let c=h[0],p=new Set,g=(e,t=++h[0])=>{c!==t&&(c=t,p.forEach(r=>r(e,t)))},m=h[1],w=(e=++h[1])=>(m===e||p.size||(m=e,v.forEach(([t])=>{let r=t[1](e);r>c&&(c=r)})),c),b=e=>(t,r)=>{let n=[...t];n[1]=[e,...n[1]],g(n,r)},v=new Map,y=(e,t)=>{if(v.has(e))throw Error("prop listener already exists");if(p.size){let r=t[3](b(e));v.set(e,[t,r])}else v.set(e,[t])},C=e=>{var t;let r=v.get(e);r&&(v.delete(e),null==(t=r[1])||t.call(r))},x=e=>{p.add(e),1===p.size&&v.forEach(([e,t],r)=>{if(t)throw Error("remove already exists");let n=e[3](b(r));v.set(r,[e,n])});let t=()=>{p.delete(e),0===p.size&&v.forEach(([e,t],r)=>{t&&(t(),v.set(r,[e]))})};return t},A=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),E={deleteProperty(e,t){let r=Reflect.get(e,t);C(t);let n=Reflect.deleteProperty(e,t);return n&&g(["delete",[t],r]),n},set(t,n,i,o){let c=Reflect.has(t,n),h=Reflect.get(t,n,o);if(c&&(e(h,i)||a.has(i)&&e(h,a.get(i))))return!0;C(n),l(i)&&(i=s(i)||i);let p=i;if(i instanceof Promise)i.then(e=>{i.status="fulfilled",i.value=e,g(["resolve",[n],e])}).catch(e=>{i.status="rejected",i.reason=e,g(["reject",[n],e])});else{!u.has(i)&&r(i)&&(p=f(i));let e=!d.has(p)&&u.get(p);e&&y(n,e)}return Reflect.set(t,n,p,o),g(["set",[n],i,h]),!0}},k=t(A,E);a.set(n,k);let _=[A,w,o,x];return u.set(k,_),Reflect.ownKeys(n).forEach(e=>{let t=Object.getOwnPropertyDescriptor(n,e);"value"in t&&(k[e]=n[e],delete t.value,delete t.writable),Object.defineProperty(A,e,t)}),k})=>[f,u,d,e,t,r,n,i,o,a,h])();function f(e={}){return h(e)}function p(e,t,r){let n;let i=u.get(e);i||console.warn("Please use proxy object");let o=[],a=i[3],s=!1,c=a(e=>{if(o.push(e),r){t(o.splice(0));return}
10790n||(n=Promise.resolve().then(()=>{n=void 0,s&&t(o.splice(0))}))});return s=!0,()=>{s=!1,c()}}function g(e,t){let r=u.get(e);r||console.warn("Please use proxy object");let[n,i,o]=r;return o(n,i(),t)}function m(e){return d.add(e),e}},10164:function(e,t,r){"use strict";r.d(t,{VW:function(){return i},Yr:function(){return o}});var n=r(83044);function i(e,t,r,i){let o=e[t];return(0,n.Ld)(e,()=>{let n=e[t];Object.is(o,n)||r(o=n)},i)}function o(e){let t=(0,n.sj)({data:Array.from(e||[]),has(e){return this.data.some(t=>t[0]===e)},set(e,t){let r=this.data.find(t=>t[0]===e);return r?r[1]=t:this.data.push([e,t]),this},get(e){var t;return null==(t=this.data.find(t=>t[0]===e))?void 0:t[1]},delete(e){let t=this.data.findIndex(t=>t[0]===e);return -1!==t&&(this.data.splice(t,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(e){this.data.forEach(t=>{e(t[1],t[0],this)})},keys(){return this.data.map(e=>e[0]).values()},values(){return this.data.map(e=>e[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}Symbol()},96104: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}})},78045:function(e,t,r){"use strict";r.d(t,{O:function(){return p}});var n=r(21620),i=r(97225),o=r(31006),a=r(18543),s=r(77955),c=r(95046),l=r(25652),u=r(82978),d=r(68890),h=r(93413),f=r(3796);async function p(e,{blockNumber:t,blockTag:r,coinType:p,name:g,gatewayUrls:m,strict:w,universalResolverAddress:b}){let v=b;if(!v){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");v=(0,a.L)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let a=(0,o.R)({abi:n.X$,functionName:"addr",...null!=p?{args:[(0,u.V)(g),BigInt(p)]}:{args:[(0,u.V)(g)]}}),l={address:v,abi:n.k3,functionName:"resolve",args:[(0,c.NC)((0,d.T)(g)),a],blockNumber:t,blockTag:r},w=(0,h.s)(e,f.L,"readContract"),b=m?await w({...l,args:[...l.args,m]}):await w(l);if("0x"===b[0])return null;let y=(0,i.k)({abi:n.X$,args:null!=p?[(0,u.V)(g),BigInt(p)]:void 0,functionName:"addr",data:b[0]});if("0x"===y||"0x00"===(0,s.f)(y))return null;return y}catch(e){if(w)throw e;if((0,l.c)(e,"resolve"))return null;throw e}}},48061:function(e,t,r){"use strict";r.d(t,{r:function(){return E}});var n=r(3796),i=r(6649);class o extends i.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)}`],name:"EnsAvatarInvalidMetadataError"})}}class a extends i.G{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}class s extends i.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.`,{name:"EnsAvatarUriResolutionError"})}}class c extends i.G{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}let l=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,u=/^(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>\/.*)?$/,d=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,h=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function f(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 p(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function g({uri:e,gatewayUrls:t}){let r=d.test(e);
vendor: 3,455 bytes, line 10790
10790if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=p(t?.ipfs,"https://ipfs.io"),i=p(t?.arweave,"https://arweave.net"),o=e.match(l),{protocol:a,subpath:c,target:f,subtarget:g=""}=o?.groups||{},m="ipns:/"===a||"ipns/"===c,w="ipfs:/"===a||"ipfs/"===c||u.test(e);if(e.startsWith("http")&&!m&&!w){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((m||w)&&f)return{uri:`${n}/${m?"ipns":"ipfs"}/${f}${g}`,isOnChain:!1,isEncoded:!1};if("ar:/"===a&&f)return{uri:`${i}/${f}${g||""}`,isOnChain:!1,isEncoded:!1};let b=e.replace(h,"");if(b.startsWith("<svg")&&(b=`data:image/svg+xml;base64,${btoa(b)}`),b.startsWith("data:")||b.startsWith("{"))return{uri:b,isOnChain:!0,isEncoded:!1};throw new s({uri:e})}function m(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new o({data:e});return e.image||e.image_url||e.image_data}async function w({gatewayUrls:e,uri:t}){try{let r=await fetch(t).then(e=>e.json());return await b({gatewayUrls:e,uri:m(r)})}catch{throw new s({uri:t})}}async function b({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=g({uri:t,gatewayUrls:e});if(n||await f(r))return r;throw new s({uri:t})}async function v(e,{nft:t}){if("erc721"===t.namespace)return(0,n.L)(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(0,n.L)(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 c({namespace:t.namespace})}async function y(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?C(e,{gatewayUrls:t,record:r}):b({uri:r,gatewayUrls:t})}async function C(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,s]=r.split(":"),[c,l]=n.split(":");if(!o||"eip155"!==o.toLowerCase())throw new a({reason:"Only EIP-155 supported"});if(!s)throw new a({reason:"Chain ID not found"});if(!l)throw new a({reason:"Contract address not found"});if(!i)throw new a({reason:"Token ID not found"});if(!c)throw new a({reason:"ERC namespace not found"});return{chainID:Number.parseInt(s),namespace:c.toLowerCase(),contractAddress:l,tokenID:i}}(r),{uri:i,isOnChain:o,isEncoded:s}=g({uri:await v(e,{nft:n}),gatewayUrls:t});if(o&&(i.includes("data:application/json;base64,")||i.startsWith("{")))return b({uri:m(JSON.parse(s?atob(i.replace("data:application/json;base64,","")):i)),gatewayUrls:t});let c=n.tokenID;return"erc1155"===n.namespace&&(c=c.replace("0x","").padStart(64,"0")),w({gatewayUrls:t,uri:i.replace(/(?:0x)?{id}/,c)})}var x=r(93413),A=r(133);async function E(e,{blockNumber:t,blockTag:r,assetGatewayUrls:n,name:i,gatewayUrls:o,strict:a,universalResolverAddress:s}){let c=await (0,x.s)(e,A.g,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:i,universalResolverAddress:s,gatewayUrls:o,strict:a});if(!c)return null;try{return await y(e,{record:c,gatewayUrls:n})}catch{return null}}},48729:function(e,t,r){"use strict";r.d(t,{w:function(){return u}});var n=r(21620),i=r(18543),o=r(95046),a=r(25652),s=r(68890),c=r(93413),l=r(3796);async function u(e,{address:t,blockNumber:r,blockTag:u,gatewayUrls:d,str
10790ict:h,universalResolverAddress:f}){let p=f;if(!p){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");p=(0,i.L)({blockNumber:r,chain:e.chain,contract:"ensUniversalResolver"})}let g=`${t.toLowerCase().substring(2)}.addr.reverse`;try{let i={address:p,abi:n.du,functionName:"reverse",args:[(0,o.NC)((0,s.T)(g))],blockNumber:r,blockTag:u},a=(0,c.s)(e,l.L,"readContract"),[h,f]=d?await a({...i,args:[...i.args,d]}):await a(i);if(t.toLowerCase()!==f.toLowerCase())return null;return h}catch(e){if(h)throw e;if((0,a.c)(e,"reverse"))return null;throw e}}},2886:function(e,t,r){"use strict";r.d(t,{S:function(){return c}});var n=r(18543),i=r(95046),o=r(68890),a=r(93413),s=r(3796);async function c(e,{blockNumber:t,blockTag:r,name:c,universalResolverAddress:l}){let u=l;if(!u){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");u=(0,n.L)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}let[d]=await (0,a.s)(e,s.L,"readContract")({address:u,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,i.NC)((0,o.T)(c))],blockNumber:t,blockTag:r});return d}},133:function(e,t,r){"use strict";r.d(t,{g:function(){return f}});var n=r(21620),i=r(97225),o=r(31006),a=r(18543),s=r(95046),c=r(25652),l=r(82978),u=r(68890),d=r(93413),h=r(3796);async function f(e,{blockNumber:t,blockTag:r,name:f,key:p,gatewayUrls:g,strict:m,universalResolverAddress:w}){let b=w;if(!b){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");b=(0,a.L)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let a={address:b,abi:n.k3,functionName:"resolve",args:[(0,s.NC)((0,u.T)(f)),(0,o.R)({abi:n.nZ,functionName:"text",args:[(0,l.V)(f),p]})],blockNumber:t,blockTag:r},c=(0,d.s)(e,h.L,"readContract"),m=g?await c({...a,args:[...a.args,g]}):await c(a);if("0x"===m[0])return null;let w=(0,i.k)({abi:n.nZ,functionName:"text",data:m[0]});return""===w?null:w}catch(e){if(m)throw e;if((0,c.c)(e,"resolve"))return null;throw e}}},12994:function(e,t,r){"use strict";r.d(t,{R:function(){return ee}});var n=r(43197);let i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,o=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,a=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/,s=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/,c=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/,l=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/,u=/^receive\(\) external payable$/,d=new Set(["indexed"]),h=new Set(["calldata","memory","storage"]);class f extends Error{constructor(e,t={}){let r=t.cause instanceof f?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof f&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...r?[`Details: ${r}`]:[],"Version: [email protected]"].join("\n")),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:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}}class p extends f{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class g extends f{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class m extends f{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class w extends f{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class b extends f{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class v extends f{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class y extends f{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invali
10790d."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class C extends f{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class x extends f{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class A extends f{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class E extends f{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class k extends f{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let _=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]),S=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,T=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,I=/^u?int$/;function R(e,t){var r,i,o;let a;let s=(r=t?.type)?`${r}:${e}`:e;if(_.has(s))return _.get(s);let c=n.cN.test(e),l=(0,n.Zw)(c?T:S,e);if(!l)throw new m({param:e});if(l.name&&("address"===(i=l.name)||"bool"===i||"function"===i||"string"===i||"tuple"===i||n.eL.test(i)||n.lh.test(i)||N.test(i)))throw new w({param:e,name:l.name});let u=l.name?{name:l.name}:{},d="indexed"===l.modifier?{indexed:!0}:{},f=t?.structs??{},p={};if(c){a="tuple";let e=O(l.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(R(e[n],{structs:f}));p={components:t}}else if(l.type in f)a="tuple",p={components:f[l.type]};else if(I.test(l.type))a=`${l.type}256`;else if(a=l.type,t?.type!=="struct"&&!P(a))throw new g({type:a});if(l.modifier){if(!t?.modifiers?.has?.(l.modifier))throw new b({param:e,type:t?.type,modifier:l.modifier});if(h.has(l.modifier)&&(o=a,!l.array&&"bytes"!==o&&"string"!==o&&"tuple"!==o))throw new v({param:e,type:t?.type,modifier:l.modifier})}let y={type:`${a}${l.array??""}`,...u,...d,...p};return _.set(s,y),y}function O(e,t=[],r="",n=0){let i=e.trim().length;for(let o=0;o<i;o++){let i=e[o],a=e.slice(o+1);switch(i){case",":return 0===n?O(a,[...t,r.trim()]):O(a,t,`${r}${i}`,n);case"(":return O(a,t,`${r}${i}`,n+1);case")":return O(a,t,`${r}${i}`,n-1);default:return O(a,t,`${r}${i}`,n)}}if(""===r)return t;if(0!==n)throw new k({current:r,depth:n});return t.push(r.trim()),t}function P(e){return"address"===e||"bool"===e||"function"===e||"string"===e||n.eL.test(e)||n.lh.test(e)}let N=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/,M=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function D(e){let t=function(e){let t={},r=e.length;for(let i=0;i<r;i++){let r=e[i];if(!s.test(r))continue;let o=(0,n.Zw)(s,r);if(!o)throw new C({signature:r,type:"struct"});let a=o.properties.split(";"),c=[],l=a.length;for(let e=0;e<l;e++){let t=a[e].trim();if(!t)continue;let r=R(t,{type:"struct"});c.push(r)}if(!c.length)throw new A({signature:r});t[o.name]=c}let i={},o=Object.entries(t),a=o.length;for(let e=0;e<a;e++){let[r,a]=o[e];i[r]=function e(t,r,i=new Set){let o=[],a=t.length;for(let s=0;s<a;s++){let a=t[s];if(n.cN.test(a.type))o.push(a);else{let t=(0,n.Zw)(M,a.type);if(!t?.type)throw new y({abiParameter:a});let{array:s,type:c}=t;if(c in r){if(i.has(c))throw new E({type:c});o.push({...a,type:`tuple${s??""}`,components:e(r[c]??[],r,new Set([...i,c]))})}else if(P(c))o.push(a);else throw new p({type:c})}}return o}(a,t)}return i}(e),r=[],f=e.length;for(let p=0;p<f;p++){let f=e[p];s.test(f)||r.push(function(e,t={}){if(a.test(e)){let r=(0,n.Zw)(a,e);if(!r)throw new C({signature:e,type:"function"});let i=O(r.parameters),o=[],s=i.length;for(let e=0;e<s;e++)o.push(R(i[e],{modifiers:h,structs:t,type:"function"}));let c=[];if(r.returns){let e=O(r.returns),n=e.length;for(let r=0;r<n;r++)c.push(R(e[r],{modifiers:h,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:o,outputs:c}}if(o.test(e)){let r=(0,n.Zw)(o,e);if(!r)throw new C({signature:e,type:"event"});let i=O(r.parameters),a=[],s=i.length;for(let e=0;e<s;e++)a.push(R(i[e],{modifiers:d,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:a}}if(i.test(e)){let r=(0,n.Zw)(i,e);if(!r)throw new C({signature:e,type:"error"});let o=O(r.parameters),a=[],s=o.length;for(let e=0;e<s;e++)a.push(R(o[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:a}}if(c.test(e)){let r=(0,n.Zw)(c,e);if(!r)throw new C({signature:e,type:"constructor"});let i=O(r.parameters),o=[],a=i.length;for(let e=0;e<a;e++)o.push(R(i[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:o}}if(l.test(e))return{type:"fallback"};if(u.test(e))return{type:"receive",stateMutability:"payable"};throw new x({signature:e})}(f,t))}return r}var B=r(96104),$=r(21620),U=r(13955),L=r(6649),j=r(89045),z=r(58591),F=r(97225),H=r(32637),q=r(31006),W=r(18543),V=r(95046),Z=r(37764),G=r(43149),K=r(27031),Y=r(37669),Q=r(10639),J=r(11667),X=r(82857);async function ee(e,t){let{account:n=e.account,batch:i=!!e.batch?.multicall,blockNumber:o,blockTag:a="latest",accessList:s,blobs:c,code:l,data:u,factory:d,factoryData:h,gas:f,gasPrice:p,maxFeePerBlobGas:g,maxFeePerGas:m,maxPriorityFeePerGas:w,nonce:b,to:v,value:y,stateOverride:C,...x}=t,A=n?(0,B.T)(n):void 0;if(l&&(d||h))throw new L.G("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(l&&v)throw new L.G("Cannot provide both `code` & `to` as parameters.");
10790let E=l&&u,k=d&&h&&v&&u,_=E||k,S=E?function(e){let{code:t,data:r}=e;return(0,H.w)({abi:D(["constructor(bytes, bytes)"]),bytecode:U.NO,args:[t,r]})}({code:l,data:u}):k?function(e){let{data:t,factory:r,factoryData:n,to:i}=e;return(0,H.w)({abi:D(["constructor(address, bytes, address, bytes)"]),bytecode:U.pG,args:[i,t,r,n]})}({data:u,factory:d,factoryData:h,to:v}):u;try{(0,X.F)(t);let r=(o?(0,V.eC)(o):void 0)||a,n=(0,J.mF)(C),l=e.chain?.formatters?.transactionRequest?.format,u=(l||Y.tG)({...(0,K.K)(x,{format:l}),from:A?.address,accessList:s,blobs:c,data:S,gas:f,gasPrice:p,maxFeePerBlobGas:g,maxFeePerGas:m,maxPriorityFeePerGas:w,nonce:b,to:_?void 0:v,value:y});if(i&&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:u})&&!n)try{return await et(e,{...u,blockNumber:o,blockTag:a})}catch(e){if(!(e instanceof j.pZ)&&!(e instanceof j.mm))throw e}let d=await e.request({method:"eth_call",params:n?[u,r,n]:[u,r]});if("0x"===d)return{data:void 0};return{data:d}}catch(a){let n=function(e){if(!(e instanceof L.G))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(a),{offchainLookup:i,offchainLookupSignature:o}=await r.e(26).then(r.bind(r,35026));if(!1!==e.ccipRead&&n?.slice(0,10)===o&&v)return{data:await i(e,{data:n,to:v})};if(_&&n?.slice(0,10)==="0x101bb98d")throw new z.Mo({factory:d});throw function(e,{docsPath:t,...r}){let n=(()=>{let t=(0,G.k)(e,r);return t instanceof Z.cj?e:t})();return new z.cg(n,{docsPath:t,...r})}(a,{...t,account:A,chain:e.chain})}}async function et(e,t){let{batchSize:r=1024,wait:n=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:i,blockTag:o="latest",data:a,multicallAddress:s,to:c}=t,l=s;if(!l){if(!e.chain)throw new j.pZ;l=(0,W.L)({blockNumber:i,chain:e.chain,contract:"multicall3"})}let u=(i?(0,V.eC)(i):void 0)||o,{schedule:d}=(0,Q.S)({id:`${e.uid}.${u}`,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,q.R)({abi:$.F8,args:[r],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{data:n,to:l},u]});return(0,F.k)({abi:$.F8,args:[r],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:h,success:f}]=await d({data:a,to:c});if(!f)throw new z.VQ({data:h});return"0x"===h?{data:void 0}:{data:h}}},92498:function(e,t,r){"use strict";r.d(t,{A:function(){return a}});var n=r(36212),i=r(95046),o=r(48586);async function a(e,t){let{address:r,abi:a,args:s,eventName:c,fromBlock:l,strict:u,toBlock:d}=t,h=(0,o.g)(e,{method:"eth_newFilter"}),f=c?(0,n.O)({abi:a,args:s,eventName:c}):void 0,p=await e.request({method:"eth_newFilter",params:[{address:r,fromBlock:"bigint"==typeof l?(0,i.eC)(l):l,toBlock:"bigint"==typeof d?(0,i.eC)(d):d,topics:f}]});return{abi:a,args:s,eventName:c,id:p,request:h(p),strict:!!u,type:"event"}}},41146:function(e,t,r){"use strict";r.d(t,{W:function(){return i}});var n=r(48586);async function i(e){let t=(0,n.g)(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}},42665:function(e,t,r){"use strict";r.d(t,{C:function(){return l},X:function(){return c}});var n=r(25511),i=r(93413),o=r(72127),a=r(49235),s=r(48206);async function c(e,t){return l(e,t)}async function l(e,t){let{block:r,chain:c=e.chain,request:l,type:u="eip1559"}=t||{},d=await (async()=>"function"==typeof c?.fees?.baseFeeMultiplier?c.fees.baseFeeMultiplier({block:r,client:e,request:l}):c?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new n.Fz;let h=10**(d.toString().split(".")[1]?.length??0),f=e=>e*BigInt(Math.ceil(d*h))/BigInt(h),p=r||await (0,i.s)(e,a.Q,"getBlock")({});if("function"==typeof c?.fees?.estimateFeesPerGas){let t=await c.fees.estimateFeesPerGas({block:r,client:e,multiply:f,request:l,type:u});if(null!==t)return t}if("eip1559"===u){if("bigint"!=typeof p.baseFeePerGas)throw new n.e5;let t="bigint"==typeof l?.maxPriorityFeePerGas?l.maxPriorityFeePerGas:await (0,o.h)(e,{block:p,chain:c,request:l}),r=f(p.baseFeePerGas);return{maxFeePerGas:l?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:l?.gasPrice??f(await (0,i.s)(e,s.o,"getGasPrice")({}))}}},60730:function(e,t,r){"use strict";r.d(t,{Q:function(){return v}});var n=r(96104),i=r(6649),o=r(84284),a=r(95046),s=r(85053),c=r(49268),l=r(97658);class u extends i.G{constructor(e,{account:t,docsPath:r,chain:n,data:i,gas:o,gasPrice:a,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:h,to:f,value:p}){super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,l.xr)({from:t?.address,to:f,value:void 0!==p&&`${(0,s.d)(p)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:o,gasPrice:void 0!==a&&`${(0,c.o)(a)} gwei`,maxFeePerGas:void 0!==u&&`${(0,c.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,c.o)(d)} gwei`,nonce:h}
10790)].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var d=r(37764),h=r(43149),f=r(27031),p=r(37669),g=r(11667),m=r(82857),w=r(12062),b=r(5106);async function v(e,t){let r=t.account??e.account,s=r?(0,n.T)(r):void 0;try{let{accessList:r,authorizationList:n,blobs:l,blobVersionedHashes:u,blockNumber:d,blockTag:h,data:v,gas:y,gasPrice:C,maxFeePerBlobGas:x,maxFeePerGas:A,maxPriorityFeePerGas:E,nonce:k,value:_,stateOverride:S,...T}=await (0,w.Z)(e,{...t,parameters:s?.type==="local"?void 0:["blobVersionedHashes"]}),I=(d?(0,a.eC)(d):void 0)||h,R=(0,g.mF)(S),O=await (async()=>T.to?T.to:n&&n.length>0?await (0,o.z)({authorization:n[0]}).catch(()=>{throw new i.G("`to` is required. Could not infer from `authorizationList`")}):void 0)();(0,m.F)(t);let P=e.chain?.formatters?.transactionRequest?.format,N=(P||p.tG)({...(0,f.K)(T,{format:P}),from:s?.address,accessList:r,authorizationList:n,blobs:l,blobVersionedHashes:u,data:v,gas:y,gasPrice:C,maxFeePerBlobGas:x,maxFeePerGas:A,maxPriorityFeePerGas:E,nonce:k,to:O,value:_});function c(t){let{block:r,request:n,rpcStateOverride:i}=t;return e.request({method:"eth_estimateGas",params:i?[n,r??"latest",i]:r?[n,r]:[n]})}let M=BigInt(await c({block:I,request:N,rpcStateOverride:R}));if(n){let t=await (0,b.s)(e,{address:N.from}),r=await Promise.all(n.map(async e=>{let{contractAddress:r}=e,n=await c({block:I,request:{authorizationList:void 0,data:v,from:s?.address,to:r,value:(0,a.eC)(t)},rpcStateOverride:R}).catch(()=>100000n);return 2n*BigInt(n)}));M+=r.reduce((e,t)=>e+t,0n)}return M}catch(r){throw function(e,{docsPath:t,...r}){return new u((()=>{let t=(0,h.k)(e,r);return t instanceof d.cj?e:t})(),{docsPath:t,...r})}(r,{...t,account:s,chain:e.chain})}}},72127:function(e,t,r){"use strict";r.d(t,{_:function(){return c},h:function(){return l}});var n=r(25511),i=r(21019),o=r(93413),a=r(49235),s=r(48206);async function c(e,t){return l(e,t)}async function l(e,t){let{block:r,chain:c=e.chain,request:l}=t||{};if("function"==typeof c?.fees?.defaultPriorityFee){let t=r||await (0,o.s)(e,a.Q,"getBlock")({});return c.fees.defaultPriorityFee({block:t,client:e,request:l})}if(void 0!==c?.fees?.defaultPriorityFee)return c?.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 c=i-t.baseFeePerGas;if(c<0n)return 0n;return c}}},5106:function(e,t,r){"use strict";r.d(t,{s:function(){return i}});var n=r(95046);async function i(e,{address:t,blockNumber:r,blockTag:i="latest"}){let o=r?(0,n.eC)(r):void 0;return BigInt(await e.request({method:"eth_getBalance",params:[t,o||i]}))}},49235:function(e,t,r){"use strict";r.d(t,{Q:function(){return a}});var n=r(87655),i=r(95046),o=r(20621);async function a(e,{blockHash:t,blockNumber:r,blockTag:a,includeTransactions:s}={}){let c=s??!1,l=void 0!==r?(0,i.eC)(r):void 0,u=null;if(!(u=t?await e.request({method:"eth_getBlockByHash",params:[t,c]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[l||(a??"latest"),c]},{dedupe:!!l})))throw new n.f({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||o.Z)(u)}},75304:function(e,t,r){"use strict";r.d(t,{z:function(){return s}});let n=new Map,i=new Map;async function o(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){let o=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),r=t(e,n),o=t(e,i);return{clear:()=>{r.clear(),o.clear()},promise:r,response:o}}(t),a=o.response.get();if(a&&r>0&&new Date().getTime()-a.created.getTime()<r)return a.data;let s=o.promise.get();s||(s=e(),o.promise.set(s));try{let e=await s;return o.response.set({created:new Date,data:e}),e}finally{o.promise.clear()}}let a=e=>`blockNumber.${e}`;async function s(e,{cacheTime:t=e.cacheTime}={}){return BigInt(await o(()=>e.request({method:"eth_blockNumber"}),{cacheKey:a(e.uid),cacheTime:t}))}},68796:function(e,t,r){"use strict";r.d(t,{c:function(){return o}});var n=r(21019),i=r(95046);async function o(e,{blockHash:t,blockNumber:r,blockTag:o="latest"}={}){let a;let s=void 0!==r?(0,i.eC)(r):void 0;return a=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[s||o]},{dedupe:!!s}),(0,n.ly)(a)}},16416:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(21019);async function i(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,n.ly)(t)}},55094:function(e,t,r){"use strict";r.d(t,{C:function(){return i}});var n=r(95046);async function i(e,{address:t,blockNumber:r,blockTag:i="latest"}){let o=void 0!==r?(0,n.eC)(r):void 0,a=await e.request({method:"eth_getCode",params:[t,o||i]},{dedupe:!!o});if("0x"!==a)return a}},83677:function(e,t,r){"use strict";r.d(t,{m:function(){return a}});var n=r(18748),i=r(93413),o=r(5729);async function a(e,t){let{abi:r,address:a,args:s,blockHash:c,eventName:l,fromBlock:u,toBlock:d,strict:h}=t,f=l?(0,n.mE)({abi:r,name:l}):void 0,p=f?void 0:r.filter(e=>"event"===e.type);return(0,i.s)(e,o.y,"getLogs")({address:a,args:s,blockHash:c,event:f,events:p,fromBlock:u,toBlock:d,strict:h})}},70072:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(95046);async function i(e,{blockCount:t,blockNumber:r,blockTag:i="latest",rewardPercentiles:o}){var a;let s=r?(0,n.eC)(r):void 0;return{baseFeePerGas:(a=await e.request({method:"eth_feeHistory",params:[(0,n.eC)(t),s||i,o]},{dedupe:!!s})).baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:a.gasUsedRatio,oldestBlock:BigInt(a.oldestBlock),reward:a.reward?.map(e=>e.map(e=>BigInt(e)))}}},99597:function(e,t,r){"use strict";r.d(t,{K:function(){return o}});var n=r(31703),i=r(21677);async function o(e,{filter:t}){let r="strict"in t&&t.strict,o=await t.request({method:"eth_getFilterChanges",params:[t.id]});if("string"==typeof o[0])return o;let a=o.map(e=>(0,i.U)(e));return"abi"in t&&t.abi?(0,n.h)({abi:t.abi,logs:a,strict:r}):a}},48206: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}})},5729:function(e,t,r){"use strict";r.d(t,{y:function(){return s}});var n=r(36212),i=r(31703),o=r(95046),a=r(21677);async function s(e,{address:t,blockHash:r,fromBlock:s,toBlock:c,event:l,events:u,args:d,strict:h}={}){let f=u??(l?[l]:void 0),p=[];f&&(p=[f.flatMap(e=>(0,n.O)({abi:[e],eventName:e.name,args:u?void 0:d}))],l&&(p=p[0]));let g=(r?await e.request({method:"eth_getLogs",params:[{address:t,topics:p,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:p,fromBlock:"bigint"==typeof s?(0,o.eC)(s):s,toBlock:"bigint"==typeof c?(0,o.eC)(c):c}]})).map(e=>(0,a.U)(e));return f?(0,i.h)({abi:f,args:d,logs:g,strict:h??!1}):g}},69631:function(e,t,r){"use strict";r.d(t,{S:function(){return o}});var n=r(95046),i=r(21019);async function o(e,{address:t,blockNumber:r,blockTag:o,storageKeys:a}){var s;let c=void 0!==r?(0,n.eC)(r):void 0;return{...s=await e.request({method:"eth_getProof",params:[t,a,c||(o??"latest")]}),balance:s.balance?BigInt(s.balance):void 0,nonce:s.nonce?(0,i.ly)(s.nonce):void 0,storageProof:s.storageProof?s.storageProof.map(e=>
10790({...e,value:BigInt(e.value)})):void 0}}},96985:function(e,t,r){"use strict";r.d(t,{Y:function(){return i}});var n=r(95046);async function i(e,{address:t,blockNumber:r,blockTag:i="latest",slot:o}){let a=void 0!==r?(0,n.eC)(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,o,a||i]})}},85753:function(e,t,r){"use strict";r.d(t,{f:function(){return a}});var n=r(97658),i=r(95046),o=r(16719);async function a(e,{blockHash:t,blockNumber:r,blockTag:a,hash:s,index:c}){let l=a||"latest",u=void 0!==r?(0,i.eC)(r):void 0,d=null;if(s?d=await e.request({method:"eth_getTransactionByHash",params:[s]},{dedupe:!0}):t?d=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,i.eC)(c)]},{dedupe:!0}):(u||l)&&(d=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[u||l,(0,i.eC)(c)]},{dedupe:!!u})),!d)throw new n.Bh({blockHash:t,blockNumber:r,blockTag:l,hash:s,index:c});return(e.chain?.formatters?.transaction?.format||o.Tr)(d)}},98624:function(e,t,r){"use strict";r.d(t,{a:function(){return a}});var n=r(93413),i=r(75304),o=r(85753);async function a(e,{hash:t,transactionReceipt:r}){let[a,s]=await Promise.all([(0,n.s)(e,i.z,"getBlockNumber")({}),t?(0,n.s)(e,o.f,"getTransaction")({hash:t}):void 0]),c=r?.blockNumber||s?.blockNumber;return c?a-c+1n:0n}},33208:function(e,t,r){"use strict";r.d(t,{K:function(){return o}});var n=r(21019),i=r(95046);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]},{dedupe:!!o});return(0,n.ly)(a)}},93672:function(e,t,r){"use strict";r.d(t,{a:function(){return c}});var n=r(97658),i=r(21019),o=r(21677),a=r(16719);let s={"0x0":"reverted","0x1":"success"};async function c(e,{hash:t}){let r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new n.Yb({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||function(e){let t={...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=>(0,o.U)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,i.ly)(e.transactionIndex):null,status:e.status?s[e.status]:null,type:e.type?a.c8[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t})(r)}},6577:function(e,t,r){"use strict";r.d(t,{A:function(){return f}});var n=r(21620),i=r(52186),o=r(6649),a=r(58591),s=r(97225),c=r(31006),l=r(18543),u=r(92915),d=r(93413),h=r(3796);async function f(e,t){let{allowFailure:r=!0,batchSize:f,blockNumber:p,blockTag:g,multicallAddress:m,stateOverride:w}=t,b=t.contracts,v=f??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),y=m;if(!y){if(!e.chain)throw Error("client chain not configured. multicallAddress is required.");y=(0,l.L)({blockNumber:p,chain:e.chain,contract:"multicall3"})}let C=[[]],x=0,A=0;for(let e=0;e<b.length;e++){let{abi:t,address:n,args:i,functionName:o}=b[e];try{let e=(0,c.R)({abi:t,args:i,functionName:o});A+=(e.length-2)/2,v>0&&A>v&&C[x].length>0&&(x++,A=(e.length-2)/2,C[x]=[]),C[x]=[...C[x],{allowFailure:!0,callData:e,target:n}]}catch(a){let e=(0,u.S)(a,{abi:t,address:n,args:i,docsPath:"/docs/contract/multicall",functionName:o});if(!r)throw e;C[x]=[...C[x],{allowFailure:!0,callData:"0x",target:n}]}}let E=await Promise.allSettled(C.map(t=>(0,d.s)(e,h.L,"readContract")({abi:n.F8,address:y,args:[t],blockNumber:p,blockTag:g,functionName:"aggregate3",stateOverride:w}))),k=[];for(let e=0;e<E.length;e++){let t=E[e];if("rejected"===t.status){if(!r)throw t.reason;for(let r=0;r<C[e].length;r++)k.push({status:"failure",error:t.reason,result:void 0});continue}let n=t.value;for(let t=0;t<n.length;t++){let{returnData:o,success:c}=n[t],{callData:l}=C[e][t],{abi:d,address:h,functionName:f,args:p}=b[k.length];try{if("0x"===l)throw new i.wb;if(!c)throw new a.VQ({data:o});let e=(0,s.k)({abi:d,args:p,data:o,functionName:f});k.push(r?{result:e,status:"success"}:e)}catch(t){let e=(0,u.S)(t,{abi:d,address:h,args:p,docsPath:"/docs/contract/multicall",functionName:f});if(!r)throw e;k.push({error:e,result:void 0,status:"failure"})}}}if(k.length!==b.length)throw new o.G("multicall results mismatch");return k}},3796:function(e,t,r){"use strict";r.d(t,{L:function(){return c}});var n=r(97225),i=r(31006),o=r(92915),a=r(93413),s=r(12994);async function c(e,t){let{abi:r,address:c,args:l,functionName:u,...d}=t,h=(0,i.R)({abi:r,args:l,functionName:u});try{let{data:t}=await (0,a.s)(e,s.R,"call")({...d,data:h,to:c});return(0,n.k)({abi:r,args:l,functionName:u,data:t||"0x"})}catch(e){throw(0,o.S)(e,{abi:r,address:c,args:l,docsPath:"/docs/contract/readContract",functionName:u})}}},9660:function(e,t,r){"use strict";r.d(t,{a:function(){return l}});var n=r(96104),i=r(97225),o=r(31006),a=r(92915),s=r(93413),c=r(12994);async function l(e,t){let{abi:r,address:l,args:u,dataSuffix:d,functionName:h,...f}=t,p=f.account?(0,n.T)(f.account):e.account,g=(0,o.R)({abi:r,args:u,functionName:h});try{let{data:n}=await (0,s.s)(e,c.R,"call")({batch:!1,data:`${g}${d?d.replace("0x",""):""}`,to:l,...f,account:p}),o=(0,i.k)({abi:r,args:u,functionName:h,data:n||"0x"}),a=r.filter(e=>"name"in e&&e.name===t.functionName);return{result:o,request:{abi:a,address:l,args:u,dataSuffix:d,functionName:h,...f,account:p}}}catch(e){throw(0,a.S)(e,{abi:r,address:l,args:u,docsPath:"/docs/contract/simulateContract",functionName:h,sender:p?.address})}}},57478:function(e,t,r){"use strict";async function n(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}r.d(t,{W:function(){return n}})},60300:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var n=r(21620),i=r(13955),o=r(58591),a=r(32637),s=r(99112),c=r(65937),l=r(91678),u=r(82361),d=r(40369),h=r(95046),f=r(93413);let p="0x6492649264926492649264926492649264926492649264926492649264926492";var g=r(49014),m=r(97261),w=r(39480),b=r(53932),v=r(26335),y=r(21019),C=r(12994);async function x(e,t){let{address:r,factory:x,factoryData:A,hash:E,signature:k,..._}=t,S=(0,d.v)(k)?k:"object"==typeof k&&"r"in k&&"s"in k?function({r:e,s:t,to:r="hex",v:n,yParity:i}){let o=(()=>
10790{if(0===i||1===i)return i;if(n&&(27n===n||28n===n||n>=35n))return n%2n===0n?1:0;throw Error("Invalid `v` or `yParity` value")})(),a=`0x${new v.secp256k1.Signature((0,y.y_)(e),(0,y.y_)(t)).toCompactHex()}${0===o?"1b":"1c"}`;return"hex"===r?a:(0,u.nr)(a)}(k):(0,h.ci)(k),T=await (async()=>x||A?(0,g.p5)(S,-32)===p?S:function(e){let{address:t,data:r,signature:n,to:i="hex"}=e,o=(0,b.SM)([(0,w.E)([{type:"address"},{type:"bytes"},{type:"bytes"}],[t,r,n]),p]);return"hex"===i?o:(0,u.nr)(o)}({address:x,data:A,signature:S}):S)();try{let{data:t}=await (0,f.s)(e,C.R,"call")({data:(0,a.w)({abi:n.$o,args:[r,E,T],bytecode:i.ST}),..._});return function(e,t){let r=(0,d.v)(e)?(0,u.O0)(e):e,n=(0,d.v)("0x1")?(0,u.O0)("0x1"):"0x1";return(0,l.Wd)(r,n)}(t??"0x0","0x1")}catch(e){try{if((0,c.E)((0,s.K)(r),await (0,m.R)({hash:E,signature:k})))return!0}catch{}if(e instanceof o.cg)return!1;throw e}}},64845:function(e,t,r){"use strict";r.d(t,{n:function(){return o}});var n=r(32933),i=r(60300);async function o(e,{address:t,message:r,factory:o,factoryData:a,signature:s,...c}){let l=(0,n.r)(r);return(0,i.Z)(e,{address:t,factory:o,factoryData:a,hash:l,signature:s,...c})}},44138:function(e,t,r){"use strict";r.d(t,{B:function(){return u}});var n=r(39480),i=r(53932),o=r(95046),a=r(36494),s=r(92416);function c({data:e,primaryType:t,types:r}){let i=function e({data:t,primaryType:r,types:i}){let s=[{type:"bytes32"}],c=[function({primaryType:e,types:t}){let r=(0,o.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,a.w)(r)}({primaryType:r,types:i})];for(let l of i[r]){let[r,u]=function t({types:r,name:i,type:s,value:c}){if(void 0!==r[s])return[{type:"bytes32"},(0,a.w)(e({data:c,primaryType:s,types:r}))];if("bytes"===s){let e=c.length%2?"0":"";return c=`0x${e+c.slice(2)}`,[{type:"bytes32"},(0,a.w)(c)]}if("string"===s)return[{type:"bytes32"},(0,a.w)((0,o.NC)(c))];if(s.lastIndexOf("]")===s.length-1){let e=s.slice(0,s.lastIndexOf("[")),o=c.map(n=>t({name:i,type:e,types:r,value:n}));return[{type:"bytes32"},(0,a.w)((0,n.E)(o.map(([e])=>e),o.map(([,e])=>e)))]}return[{type:s},c]}({types:i,name:l.name,type:l.type,value:t[l.name]});s.push(r),c.push(u)}return(0,n.E)(s,c)}({data:e,primaryType:t,types:r});return(0,a.w)(i)}var l=r(60300);async function u(e,t){let{address:r,factory:n,factoryData:o,signature:u,message:d,primaryType:h,types:f,domain:p,...g}=t,m=function(e){let{domain:t={},message:r,primaryType:n}=e,o={EIP712Domain:(0,s.cj)({domain:t}),...e.types};(0,s.iC)({domain:t,message:r,primaryType:n,types:o});let l=["0x1901"];return t&&l.push(function({domain:e,types:t}){return c({data:e,primaryType:"EIP712Domain",types:t})}({domain:t,types:o})),"EIP712Domain"!==n&&l.push(c({data:r,primaryType:n,types:o})),(0,a.w)((0,i.zo)(l))}({message:d,primaryType:h,types:f,domain:p});return(0,l.Z)(e,{address:r,factory:n,factoryData:o,hash:m,signature:u,...g})}},95131:function(e,t,r){"use strict";r.d(t,{e:function(){return f}});var n=r(87655),i=r(97658),o=r(93413),a=r(24606),s=r(55894),c=r(47499),l=r(49235),u=r(85753),d=r(93672),h=r(38128);async function f(e,{confirmations:t=1,hash:r,onReplaced:f,pollingInterval:p=e.pollingInterval,retryCount:g=6,retryDelay:m=({count:e})=>200*~~(1<<e),timeout:w}){let b,v,y;let C=(0,c.P)(["waitForTransactionReceipt",e.uid,r]),x=0,A=!1;return new Promise((c,E)=>{w&&setTimeout(()=>E(new i.mc({hash:r})),w);let k=(0,a.N7)(C,{onReplaced:f,resolve:c,reject:E},a=>{let c=(0,o.s)(e,h.q,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber(h){let f=e=>{c(),e(),k()},p=h;if(!A){x>g&&f(()=>a.reject(new i.mc({hash:r})));try{if(y){if(t>1&&(!y.blockNumber||p-y.blockNumber+1n<t))return;f(()=>a.resolve(y));return}if(b||(A=!0,await (0,s.J)(async()=>{(b=await (0,o.s)(e,u.f,"getTransaction")({hash:r})).blockNumber&&(p=b.blockNumber)},{delay:m,retryCount:g}),A=!1),y=await (0,o.s)(e,d.a,"getTransactionReceipt")({hash:r}),t>1&&(!y.blockNumber||p-y.blockNumber+1n<t))return;f(()=>a.resolve(y))}catch(r){if(r instanceof i.Bh||r instanceof i.Yb){if(!b){A=!1;return}try{v=b,A=!0;let r=await (0,s.J)(()=>(0,o.s)(e,l.Q,"getBlock")({blockNumber:p,includeTransactions:!0}),{delay:m,retryCount:g,shouldRetry:({error:e})=>e instanceof n.f});A=!1;let i=r.transactions.find(({from:e,nonce:t})=>
10790e===v.from&&t===v.nonce);if(!i||(y=await (0,o.s)(e,d.a,"getTransactionReceipt")({hash:i.hash}),t>1&&(!y.blockNumber||p-y.blockNumber+1n<t)))return;let c="replaced";i.to===v.to&&i.value===v.value?c="repriced":i.from===i.to&&0n===i.value&&(c="cancelled"),f(()=>{a.onReplaced?.({reason:c,replacedTransaction:v,transaction:i,transactionReceipt:y}),a.resolve(y)})}catch(e){f(()=>a.reject(e))}}else f(()=>a.reject(r))}finally{x++}}}})})})}},38128:function(e,t,r){"use strict";r.d(t,{q:function(){return l}});var n=r(21019),i=r(93413),o=r(24606),a=r(9338),s=r(47499),c=r(75304);function l(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:l,onError:u,poll:d,pollingInterval:h=e.pollingInterval}){let f;return(void 0!==d?d:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type))?(()=>{let n=(0,s.P)(["watchBlockNumber",e.uid,t,r,h]);return(0,o.N7)(n,{onBlockNumber:l,onError:u},n=>(0,a.$)(async()=>{try{let t=await (0,i.s)(e,c.z,"getBlockNumber")({cacheTime:0});if(f){if(t===f)return;if(t-f>1&&r)for(let e=f+1n;e<t;e++)n.onBlockNumber(e,f),f=e}(!f||t>f)&&(n.onBlockNumber(t,f),f=t)}catch(e){n.onError?.(e)}},{emitOnBegin:t,interval:h}))})():(()=>{let i=(0,s.P)(["watchBlockNumber",e.uid,t,r]);return(0,o.N7)(i,{onBlockNumber:l,onError:u},t=>{let r=!0,i=()=>r=!1;return(async()=>{try{let o=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:a}=await o.subscribe({params:["newHeads"],onData(e){if(!r)return;let i=(0,n.y_)(e.result?.number);t.onBlockNumber(i,f),f=i},onError(e){t.onError?.(e)}});i=a,r||i()}catch(e){u?.(e)}})(),()=>i()})})()}},86387:function(e,t,r){"use strict";r.d(t,{p:function(){return l}});var n=r(20621),i=r(93413),o=r(24606),a=r(9338),s=r(47499),c=r(49235);function l(e,{blockTag:t="latest",emitMissed:r=!1,emitOnBegin:l=!1,onBlock:u,onError:d,includeTransactions:h,poll:f,pollingInterval:p=e.pollingInterval}){let g,m,w;let b=void 0!==f?f:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
10790onfig.type),v=h??!1;return b?(()=>{let n=(0,s.P)(["watchBlocks",e.uid,t,r,l,v,p]);return(0,o.N7)(n,{onBlock:u,onError:d},n=>(0,a.$)(async()=>{try{let o=await (0,i.s)(e,c.Q,"getBlock")({blockTag:t,includeTransactions:v});if(o.number&&g?.number){if(o.number===g.number)return;if(o.number-g.number>1&&r)for(let t=g?.number+1n;t<o.number;t++){let r=await (0,i.s)(e,c.Q,"getBlock")({blockNumber:t,includeTransactions:v});n.onBlock(r,g),g=r}}(!g?.number||"pending"===t&&!o?.number||o.number&&o.number>g.number)&&(n.onBlock(o,g),g=o)}catch(e){n.onError?.(e)}},{emitOnBegin:l,interval:p}))})():(m=!0,w=()=>m=!1,(async()=>{try{let t=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:r}=await t.subscribe({params:["newHeads"],onData(t){if(!m)return;let r=(e.chain?.formatters?.block?.format||n.Z)(t.result);u(r,g),g=r},onError(e){d?.(e)}});w=r,m||w()}catch(e){d?.(e)}})(),()=>w())}},19205:function(e,t,r){"use strict";r.d(t,{Y:function(){return w}});var n=r(52186),i=r(96329),o=r(46699),a=r(36212),s=r(21677),c=r(93413),l=r(24606),u=r(9338),d=r(47499),h=r(92498),f=r(75304),p=r(83677),g=r(99597),m=r(57478);function w(e,t){let{abi:r,address:w,args:b,batch:v=!0,eventName:y,fromBlock:C,onError:x,onLogs:A,poll:E,pollingInterval:k=e.pollingInterval,strict:_}=t;return(void 0!==E?E:"bigint"==typeof C||"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
10790onfig.type))?(()=>{let t=_??!1,n=(0,d.P)(["watchContractEvent",w,b,v,e.uid,y,k,t,C]);return(0,l.N7)(n,{onLogs:A,onError:x},n=>{let o,a;void 0!==C&&(o=C-1n);let s=!1,l=(0,u.$)(async()=>{if(!s){try{a=await (0,c.s)(e,h.A,"createContractEventFilter")({abi:r,address:w,args:b,eventName:y,strict:t,fromBlock:C})}catch{}s=!0;return}try{let i;if(a)i=await (0,c.s)(e,g.K,"getFilterChanges")({filter:a});else{let n=await (0,c.s)(e,f.z,"getBlockNumber")({});i=o&&o<n?await (0,c.s)(e,p.m,"getContractEvents")({abi:r,address:w,args:b,eventName:y,fromBlock:o+1n,toBlock:n,strict:t}):[],o=n}if(0===i.length)return;if(v)n.onLogs(i);else for(let e of i)n.onLogs([e])}catch(e){a&&e instanceof i.yR&&(s=!1),n.onError?.(e)}},{emitOnBegin:!0,interval:k});return async()=>{a&&await (0,c.s)(e,m.W,"uninstallFilter")({filter:a}),l()}})})():(()=>{let t=(0,d.P)(["watchContractEvent",w,b,v,e.uid,y,k,_??!1]),i=!0,c=()=>i=!1;return(0,l.N7)(t,{onLogs:A,onError:x},t=>((async()=>{try{let l=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),u=y?(0,a.O)({abi:r,eventName:y,args:b}):[],{unsubscribe:d}=await l.subscribe({params:["logs",{address:w,topics:u}],onData(e){if(!i)return;let a=e.result;try{let{eventName:e,args:n}=(0,o.F)({abi:r,data:a.data,topics:a.topics,strict:_}),i=(0,s.U)(a,{args:n,eventName:e});t.onLogs([i])}catch(o){let e,r;if(o instanceof n.SM||o instanceof n.Gy){if(_)return;e=o.abiItem.name,r=o.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let i=(0,s.U)(a,{args:r?[]:{},eventName:e});t.onLogs([i])}},onError(e){t.onError?.(e)}});c=d,i||c()}catch(e){x?.(e)}})(),()=>c()))})()}},22099:function(e,t,r){"use strict";r.d(t,{O:function(){return u}});var n=r(93413),i=r(24606),o=r(9338),a=r(47499),s=r(41146),c=r(99597),l=r(57478);function u(e,{batch:t=!0,onError:r,onTransactions:u,poll:d,pollingInterval:h=e.pollingInterval}){let f,p;return(void 0!==d?d:"webSocket"!==e.transport.type)?(()=>{let d=(0,a.P)(["watchPendingTransactions",e.uid,t,h]);return(0,i.N7)(d,{onTransactions:u,onError:r},r=>{let i;let a=(0,o.$)(async()=>{try{if(!i)try{i=await (0,n.s)(e,s.W,"createPendingTransactionFilter")({});return}catch(e){throw a(),e}let o=await (0,n.s)(e,c.K,"getFilterChanges")({filter:i});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:h});return async()=>{i&&await (0,n.s)(e,l.W,"uninstallFilter")({filter:i}),a()}})})():(f=!0,p=()=>f=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!f)return;let t=e.result;u([t])},onError(e){r?.(e)}});p=t,f||p()}catch(e){r?.(e)}})(),()=>p())}},79542:function(e,t,r){"use strict";r.d(t,{P:function(){return o}});var n=r(32637),i=r(28703);function o(e,t){let{abi:r,args:o,bytecode:a,...s}=t,c=(0,n.w)({abi:r,args:o,bytecode:a});return(0,i.T)(e,{...s,data:c})}},12062:function(e,t,r){"use strict";r.d(t,{Q:function(){return E},Z:function(){return k}});var n=r(96104),i=r(42665),o=r(60730),a=r(49235),s=r(33208),c=r(25511),l=r(82361),u=r(95046);function d(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),n="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,l.nr)(e)):e.blobs,i=[];for(let e of n)i.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===r?i:i.map(e=>(0,u.ci)(e))}function h(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),n="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,l.nr)(e)):e.blobs,i="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,l.nr)(e)):e.commitments,o=[];for(let e=0;e<n.length;e++){let r=n[e],a=i[e];o.push(Uint8Array.from(t.computeBlobKzgProof(r,a)))}return"bytes"===r?o:o.map(e=>(0,u.ci)(e))}var f=r(80543),p=r(40369),g=r(6649);class m extends g.G{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class w extends g.G{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}var b=r(15222),v=r(7508),y=r(93413),C=r(82857),x=r(97658),A=r(16416);let E=["blobVersionedHashes","chainId","fees","gas","nonce","type"];async function k(e,t){let r,g;let{account:k=e.account,blobs:_,chain:S,gas:T,kzg:I,nonce:R,parameters:O=E,type:P}=t,N=k?(0,n.T)(k):void 0,M={...t,...N?{from:N?.address}:{}};async function D(){return r||(r=await (0,y.s)(e,a.Q,"getBlock")({blockTag:"latest"}))}async function B(){return g||(S?S.id:void 0!==t.chainId?t.chainId:g=await (0,y.s)(e,A.L,"getChainId")({}))}if((O.includes("blobVersionedHashes")||O.includes("sidecars"))&&_&&I){let e=d({blobs:_,kzg:I});
10790if(O.includes("blobVersionedHashes")){let t=function(e){let{commitments:t,version:r}=e,n=e.to??("string"==typeof t[0]?"hex":"bytes"),i=[];for(let e of t)i.push(function(e){let{commitment:t,version:r=1}=e,n=e.to??("string"==typeof t?"hex":"bytes"),i=function(e,t){let r=(0,f.J)((0,p.v)(e,{strict:!1})?(0,l.O0)(e):e);return"bytes"===(t||"hex")?r:(0,u.NC)(r)}(t,"bytes");return i.set([r],0),"bytes"===n?i:(0,u.ci)(i)}({commitment:e,to:n,version:r}));return i}({commitments:e,to:"hex"});M.blobVersionedHashes=t}if(O.includes("sidecars")){let t=h({blobs:_,commitments:e,kzg:I}),r=function(e){let{data:t,kzg:r,to:n}=e,i=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),r="string"==typeof e.data?(0,l.nr)(e.data):e.data,n=(0,v.d)(r);if(!n)throw new w;if(n>761855)throw new m({maxSize:761855,size:n});let i=[],o=!0,a=0;for(;o;){let e=(0,b.q)(new Uint8Array(131072)),t=0;for(;t<4096;){let n=r.slice(a,a+31);if(e.pushByte(0),e.pushBytes(n),n.length<31){e.pushByte(128),o=!1;break}t++,a+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>(0,u.ci)(e.bytes))}({data:t,to:n}),o=e.commitments??d({blobs:i,kzg:r,to:n}),a=e.proofs??h({blobs:i,commitments:o,kzg:r,to:n}),s=[];for(let e=0;e<i.length;e++)s.push({blob:i[e],commitment:o[e],proof:a[e]});return s}({blobs:_,commitments:e,proofs:t,to:"hex"});M.sidecars=r}}if(O.includes("chainId")&&(M.chainId=await B()),O.includes("nonce")&&void 0===R&&N){if(N.nonceManager){let t=await B();M.nonce=await N.nonceManager.consume({address:N.address,chainId:t,client:e})}else M.nonce=await (0,y.s)(e,s.K,"getTransactionCount")({address:N.address,blockTag:"pending"})}if((O.includes("fees")||O.includes("type"))&&void 0===P)try{M.type=function(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";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 x.j3({transaction:e})}(M)}catch{let e=await D();M.type="bigint"==typeof e?.baseFeePerGas?"eip1559":"legacy"}if(O.includes("fees")){if("legacy"!==M.type&&"eip2930"!==M.type){if(void 0===M.maxFeePerGas||void 0===M.maxPriorityFeePerGas){let r=await D(),{maxFeePerGas:n,maxPriorityFeePerGas:o}=await (0,i.C)(e,{block:r,chain:S,request:M});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<o)throw new c.ld({maxPriorityFeePerGas:o});M.maxPriorityFeePerGas=o,M.maxFeePerGas=n}}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new c.e5;let r=await D(),{gasPrice:n}=await (0,i.C)(e,{block:r,chain:S,request:M,type:"legacy"});M.gasPrice=n}}return O.includes("gas")&&void 0===T&&(M.gas=await (0,y.s)(e,o.Q,"estimateGas")({...M,account:N?{address:N.address,type:"json-rpc"}:void 0})),(0,C.F)(M),delete M.parameters,M}},96432:function(e,t,r){"use strict";async function n(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}r.d(t,{p:function(){return n}})},28703:function(e,t,r){"use strict";r.d(t,{T:function(){return b}});var n=r(96104),i=r(25355),o=r(6649),a=r(84284),s=r(63659),c=r(37764),l=r(97658),u=r(43149),d=r(27031),h=r(37669),f=r(93413),p=r(82857),g=r(16416),m=r(12062),w=r(96432);async function b(e,t){let{account:r=e.account,chain:b=e.chain,accessList:v,authorizationList:y,blobs:C,data:x,gas:A,gasPrice:E,maxFeePerBlobGas:k,maxFeePerGas:_,maxPriorityFeePerGas:S,nonce:T,value:I,...R}=t;if(!r)throw new i.o({docsPath:"/docs/actions/wallet/sendTransaction"});let O=(0,n.T)(r);try{let r;(0,p.F)(t),null!==b&&(r=await (0,f.s)(e,g.L,"getChainId")({}),(0,s.q)({currentChainId:r,chain:b}));let n=await (async()=>t.to?t.to:y&&y.length>0?await (0,a.z)({authorization:y[0]}).catch(()=>{throw new o.G("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if("json-rpc"===O.type){let t=e.chain?.formatters?.transactionRequest?.format,i=(t||h.tG)({...(0,d.K)(R,{format:t}),accessList:v,authorizationList:y,blobs:C,chainId:r,data:x,from:O.address,gas:A,gasPrice:E,maxFeePerBlobGas:k,maxFeePerGas:_,maxPriorityFeePerGas:S,nonce:T,to:n,value:
10790I});return await e.request({method:"eth_sendTransaction",params:[i]},{retryCount:0})}if("local"===O.type){let t=await (0,f.s)(e,m.Z,"prepareTransactionRequest")({account:O,accessList:v,authorizationList:y,blobs:C,chain:b,chainId:r,data:x,gas:A,gasPrice:E,maxFeePerBlobGas:k,maxFeePerGas:_,maxPriorityFeePerGas:S,nonce:T,parameters:[...m.Q,"sidecars"],value:I,...R,to:n}),i=b?.serializers?.transaction,o=await O.signTransaction(t,{serializer:i});return await (0,f.s)(e,w.p,"sendRawTransaction")({serializedTransaction:o})}if("smart"===O.type)throw new i.Y({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new i.Y({docsPath:"/docs/actions/wallet/sendTransaction",type:O.type})}catch(e){if(e instanceof i.Y)throw e;throw function(e,{docsPath:t,...r}){let n=(()=>{let t=(0,u.k)(e,r);return t instanceof c.cj?e:t})();return new l.mk(n,{docsPath:t,...r})}(e,{...t,account:O,chain:t.chain||void 0})}}},99154:function(e,t,r){"use strict";r.d(t,{l:function(){return a}});var n=r(96104),i=r(25355),o=r(95046);async function a(e,{account:t=e.account,message:r}){if(!t)throw new i.o({docsPath:"/docs/actions/wallet/signMessage"});let a=(0,n.T)(t);if(a.signMessage)return a.signMessage({message:r});let s="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:[s,a.address]},{retryCount:0})}},64435:function(e,t,r){"use strict";r.d(t,{x:function(){return a}});var n=r(96104),i=r(25355),o=r(92416);async function a(e,t){let{account:r=e.account,domain:a,message:s,primaryType:c}=t;if(!r)throw new i.o({docsPath:"/docs/actions/wallet/signTypedData"});let l=(0,n.T)(r),u={EIP712Domain:(0,o.cj)({domain:a}),...t.types};if((0,o.iC)({domain:a,message:s,primaryType:c,types:u}),l.signTypedData)return l.signTypedData({domain:a,message:s,primaryType:c,types:u});let d=(0,o.H6)({domain:a,message:s,primaryType:c,types:u});return e.request({method:"eth_signTypedData_v4",params:[l.address,d]},{retryCount:0})}},32775:function(e,t,r){"use strict";async function n(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}r.d(t,{d:function(){return n}})},85721:function(e,t,r){"use strict";r.d(t,{n:function(){return a}});var n=r(31006),i=r(93413),o=r(28703);async function a(e,t){let{abi:r,address:a,args:s,dataSuffix:c,functionName:l,...u}=t,d=(0,n.R)({abi:r,args:s,functionName:l});return(0,i.s)(e,o.T,"sendTransaction")({data:`${d}${c?c.replace("0x",""):""}`,to:a,...u})}},23281:function(e,t,r){"use strict";r.d(t,{e:function(){return n}});let n=(0,r(95258).a)({id:56,name:"BNB Smart Chain",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}})},41619:function(e,t,r){"use strict";r.d(t,{Y:function(){return n}});let n=(0,r(95258).a)({id:1017,name:"BNB Greenfield Chain",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://greenfield-chain.bnbchain.org"]}},blockExplorers:{default:{name:"BNB Greenfield Mainnet Scan",url:"https://greenfieldscan.com"}},testnet:!1})},62146:function(e,t,r){"use strict";r.d(t,{d:function(){return n}});let n=(0,r(95258).a)({id:97,name:"Binance Smart Chain Testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{default:{name:"BscScan",url:"https://testnet.bscscan.com",apiUrl:"https://testnet.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0})},16491:function(e,t,r){"use strict";r.d(t,{R:function(){return n}});let n=(0,r(95258).a)({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cloudflare-eth.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},8483:function(e,t,r){"use strict";r.d(t,{F:function(){return n}});let n=(0,r(95258).a)({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol
10790:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0})},72688:function(e,t,r){"use strict";r.d(t,{e:function(){return o}});var n=r(96104),i=r(14851);function o(e){let{batch:t,cacheTime:r=e.pollingInterval??4e3,ccipRead:o,key:a="base",name:s="Base Client",pollingInterval:c=4e3,type:l="base"}=e,u=e.chain,d=e.account?(0,n.T)(e.account):void 0,{config:h,request:f,value:p}=e.transport({chain:u,pollingInterval:c}),g={account:d,batch:t,cacheTime:r,ccipRead:o,chain:u,key:a,name:s,pollingInterval:c,request:f,transport:{...h,...p},type:l,uid:(0,i.h)()};return Object.assign(g,{extend:function e(t){return r=>{let n=r(t);for(let e in g)delete n[e];let i={...t,...n};return Object.assign(i,{extend:e(i)})}}(g)})}},93423:function(e,t,r){"use strict";r.d(t,{q:function(){return h}});var n=r(6649),i=r(4456),o=r(96329),a=r(95046),s=r(36494);let c=new(r(98992)).k(8192);var l=r(55894),u=r(47499),d=r(14851);function h({key:e,name:t,request:r,retryCount:h=3,retryDelay:f=150,timeout:p,type:g},m){return{config:{key:e,name:t,request:r,retryCount:h,retryDelay:f,timeout:p,type:g},request:function(e,t={}){return async(r,d={})=>{let{dedupe:h=!1,retryDelay:f=150,retryCount:p=3,uid:g}={...t,...d},m=h?(0,s.w)((0,a.$G)(`${g}.${(0,u.P)(r)}`)):void 0;return function(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(c.get(r))return c.get(r);let n=e().finally(()=>c.delete(r));return c.set(r,n),n}(()=>(0,l.J)(async()=>{try{return await e(r)}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,{method:r.method});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,{method:r.method});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:t})=>{if(t&&t instanceof i.Gg){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e)}return~~(1<<e)*f},retryCount:p,shouldRetry:({error:e})=>"code"in e&&"number"==typeof e.code?-1===e.code||e.code===o.Pv.code||e.code===o.XS.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}),{enabled:h,id:m})}}(r,{retryCount:h,retryDelay:f,uid:(0,d.h)()}),value:m}}},62536:function(e,t,r){"use strict";r.d(t,{d:function(){return d}});var n=r(4456),i=r(6649);class o extends i.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}var a=r(10639),s=r(13581),c=r(47499);let l={current:0,take(){return this.current++},reset(){this.current=0}};var u=r(93423);function d(e,t={}){let{batch:r,fetchOptions:i,key:d="http",name:h="HTTP JSON-RPC",onFetchRequest:f,onFetchResponse:p,retryDelay:g}=t;return({chain:m,retryCount:w,timeout:b})=>{let{batchSize:v=1e3,wait:y=0}="object"==typeof r?r:{},C=t.retryCount??w,x=b??t.timeout??1e4,A=e||m?.rpcUrls.default.http[0];if(!A)throw new o;let E=function(e,t={}){return{async request(r){let{body:i,onRequest:o=t.onRequest,onResponse:a=t.onResponse,timeout:u=t.timeout??1e4}=r,d={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:h,method:f,signal:p}=d;try{let t;let r=await (0,s.F)(async({signal:t})=>{let r={...d,body:Array.isArray(i)?(0,c.P)(i.map(e=>({jsonrpc:"2.0",id:e.id??l.take(),...e}))):(0,c.P)({jsonrpc:"2.0",id:i.id??l.take(),...i}),headers:{"Content-Type":"application/json",...h},method:f||"POST",signal:p||(u>0?t:null)}
10790,n=new Request(e,r);return o&&await o(n),await fetch(e,r)},{errorInstance:new n.W5({body:i,url:e}),timeout:u,signal:!0});if(a&&await a(r),r.headers.get("Content-Type")?.startsWith("application/json")?t=await r.json():(t=await r.text(),t=JSON.parse(t||"{}")),!r.ok)throw new n.Gg({body:i,details:(0,c.P)(t.error)||r.statusText,headers:r.headers,status:r.status,url:e});return t}catch(t){if(t instanceof n.Gg||t instanceof n.W5)throw t;throw new n.Gg({body:i,cause:t,url:e})}}}}(A,{fetchOptions:i,onRequest:f,onResponse:p,timeout:x});return(0,u.q)({key:d,name:h,async request({method:e,params:t}){let i={method:e,params:t},{schedule:o}=(0,a.S)({id:A,wait:y,shouldSplitBatch:e=>e.length>v,fn:e=>E.request({body:e}),sort:(e,t)=>e.id-t.id}),s=async e=>r?o(e):[await E.request({body:e})],[{error:c,result:l}]=await s(i);if(c)throw new n.bs({body:i,error:c,url:A});return l},retryCount:C,retryDelay:g,timeout:x,type:"http"},{fetchOptions:i,url:A})}}},21620:function(e,t,r){"use strict";r.d(t,{$o:function(){return l},F8:function(){return n},X$:function(){return c},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"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",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"}]},{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],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"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],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"}]}],c=[{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"}]}],l=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},13955:function(e,t,r){"use strict";r.d(t,{NO:function(){return n},ST:function(){return o},pG:function(){return i}});let n="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b
10790602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",i="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",o="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848
10790603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},47807: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:"Arithmetic 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"}},90408: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}},52186:function(e,t,r){"use strict";r.d(t,{CI:function(){return E},FM:function(){return p},Gy:function(){return x},KY:function(){return y},M4:function(){return d},MX:function(){return b},S4:function(){return v},SM:function(){return C},cO:function(){return s},dh:function(){return A},fM:function(){return a},fs:function(){return h},gr:function(){return u},hn:function(){return k},lC:function(){return g},mv:function(){return m},wM:function(){return _},wb:function(){return l},xB:function(){return c},xL:function(){return w},yP:function(){return f}});var n=r(20101),i=r(7508),o=r(6649);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,name:"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,name:"AbiConstructorParamsNotFoundError"})}}class c 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)`],name:"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 l extends o.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class u extends o.G{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}. 10791Expected length: ${e} 10792Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class d 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}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class h extends o.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. 10793Expected length (params): ${e} 10794Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class f extends o.G{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI. 10795Make sure you are using the correct ABI and that the error exists on it. 10796You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"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,name:"AbiEventSignatureEmptyTopicsError"})}}class g extends o.G{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. 10797Make sure you are using the correct ABI and that the event exists on it. 10798You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class m extends o.G{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. 10799Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class w extends o.G{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. 10800Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class b extends o.G{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. 10801Cannot decode function result without knowing what the parameter types are. 10802Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"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."],name:"AbiItemAmbiguityError"})}}class y extends o.G{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class C 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)`],name:"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 x 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})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class A extends o.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. 10803Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class E extends o.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. 10804Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class k extends o.G{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class _ extends o.G{constructor(e){super(`"${e}" is not a valid definition type. 10805Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}},25355:function(e,t,r){"use strict";r.d(t,{Y:function(){return o},o:function(){return i}});var n=r(6649);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 Client.",{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}class o extends n.G{constructor({docsPath:e,metaMessages:t,type:r}){super(`Account type "${r}" is not supported.`,{docsPath:e,metaMessages:t,name:"AccountTypeNotSupportedError"})}}},51359:function(e,t,r){"use strict";r.d(t,{b:function(){return i}});var n=r(6649);class i extends n.G{constructor({address:e}){super(`Address "${e}
10805" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},6649:function(e,t,r){"use strict";r.d(t,{G:function(){return o}});let n="2.19.3",i={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:n};class o extends Error{constructor(e,t={}){let r=t.cause instanceof o?t.cause.details:t.cause?.message?t.cause.message:t.details,a=t.cause instanceof o&&t.cause.docsPath||t.docsPath,s=i.getDocsUrl?.({...t,docsPath:a});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...r?[`Details: ${r}`]:[],...i.version?[`Version: ${i.version}`]:[]].join("\n"),t.cause?{cause:t.cause}:void 0),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,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=a,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=n}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)}}},87655:function(e,t,r){"use strict";r.d(t,{f:function(){return i}});var n=r(6649);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.`,{name:"BlockNotFoundError"})}}},89045: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(6649);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.`]],name:"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}`],name:"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.",{name:"ChainNotFoundError"})}}class s extends n.G{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}},58591:function(e,t,r){"use strict";r.d(t,{cg:function(){return w},uq:function(){return b},Lu:function(){return v},Dk:function(){return y},Mo:function(){return C},VQ:function(){return x}});var n=r(96104),i=r(47807),o=r(71108),a=r(20101),s=r(47499);function c({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 l=r(18748),u=r(85053),d=r(49268),h=r(52186),f=r(6649),p=r(75534),g=r(97658),m=r(87137);class w extends f.G{constructor(e,{account:t,docsPath:r,chain:i,data:o,gas:a,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:h,to:f,value:m,stateOverride:w}){let b=t?(0,n.T)(t):void 0,v=(0,g.xr)({from:b?.address,to:f,value:void 0!==m&&`${(0,u.d)(m)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:a,gasPrice:void 0!==s&&`${(0,d.o)(s)} gwei`,maxFeePerGas:void 0!==c&&`${(0,d.o)(c)}
10805 gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,d.o)(l)} gwei`,nonce:h});w&&(v+=` 10806${(0,p.Bj)(w)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",v].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class b extends f.G{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:o,sender:s}){let u=(0,l.mE)({abi:t,args:r,name:o}),d=u?c({abiItem:u,args:r,includeFunctionName:!1,includeName:!1}):void 0,h=u?(0,a.t)(u,{includeName:!0}):void 0,f=(0,g.xr)({address:n&&(0,m.C)(n),function:h,args:d&&"()"!==d&&`${[...Array(o?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:s});super(e.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],f&&"Contract Call:",f].filter(Boolean),name:"ContractFunctionExecutionError"}),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}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=o,this.sender=s}}class v extends f.G{constructor({abi:e,data:t,functionName:r,message:n}){let s,l,u,d,f;if(t&&"0x"!==t)try{let{abiItem:r,errorName:n,args:s}=f=(0,o.p)({abi:e,data:t});if("Error"===n)u=s[0];else if("Panic"===n){let[e]=s;u=i.$[e]}else{let e=r?(0,a.t)(r,{includeName:!0}):void 0,t=r&&s?c({abiItem:r,args:s,includeFunctionName:!1,includeName:!1}):void 0;l=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(n?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){s=e}else n&&(u=n);s instanceof h.yP&&(d=s.signature,l=[`Unable to decode signature "${d}" 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=${d}.`]),super(u&&"execution reverted"!==u||d?[`The contract function "${r}" reverted with the following ${d?"signature":"reason"}:`,u||d].join("\n"):`The contract function "${r}" reverted.`,{cause:s,metaMessages:l,name:"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=f,this.reason=u,this.signature=d}}class y extends f.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."],name:"ContractFunctionZeroDataError"})}}class C extends f.G{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class x extends f.G{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},19477:function(e,t,r){"use strict";r.d(t,{KD:function(){return a},T_:function(){return i},lQ:function(){return o}});var n=r(6649);class i extends n.G{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class o extends n.G{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class a extends n.G{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},75057:function(e,t,r){"use strict";r.d(t,{$s:function(){return o},W_:function(){return a},mV:function(){return i}});var n=r(6649);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}).`,{name:"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}).`,{name:"SizeExceedsPaddingSizeError"})}}class a extends n.G{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}},74188:function(e,t,r){"use strict";r.d(t,{J5:function(){return i},M6:function(){return a},yr:function(){return o}});var n=r(6649);class i extends n.G{constructor({max:e,min:t,signed:r,size:n,value:i}
vendor: 4,912 bytes, lines 10806-10807
10806){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class o extends n.G{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class a extends n.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},25511:function(e,t,r){"use strict";r.d(t,{Fz:function(){return o},e5:function(){return a},ld:function(){return s}});var n=r(49268),i=r(6649);class o extends i.G{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class a extends i.G{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class s extends i.G{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,n.o)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}},37764:function(e,t,r){"use strict";r.d(t,{C_:function(){return d},G$:function(){return s},Hh:function(){return a},M_:function(){return o},WF:function(){return h},ZI:function(){return c},cj:function(){return m},cs:function(){return g},dR:function(){return f},pZ:function(){return p},se:function(){return u},vU:function(){return l}});var n=r(49268),i=r(6649);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,name:"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,name:"FeeCapTooHighError"})}}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,name:"FeeCapTooLowError"})}}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 c 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,name:"NonceTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class l 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. 10807Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class u extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d 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."],name:"InsufficientFundsError"})}}Object.defineProperty(d,"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,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class f extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}
vendor: 4,659 bytes, line 10807
10807Object.defineProperty(f,"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,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class g 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,name:"TipAboveFeeCapError"})}}Object.defineProperty(g,"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,name:"UnknownNodeError"})}}},4456:function(e,t,r){"use strict";r.d(t,{Gg:function(){return a},W5:function(){return c},bs:function(){return s}});var n=r(47499),i=r(6649),o=r(87137);class a extends i.G{constructor({body:e,cause:t,details:r,headers:i,status:a,url:s}){super("HTTP request failed.",{cause:t,details:r,metaMessages:[a&&`Status: ${a}`,`URL: ${(0,o.G)(s)}`,e&&`Request body: ${(0,n.P)(e)}`].filter(Boolean),name:"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=i,this.status=a,this.url=s}}class s extends i.G{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,o.G)(r)}`,`Request body: ${(0,n.P)(e)}`],name:"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.G)(t)}`,`Request body: ${(0,n.P)(e)}`],name:"TimeoutError"})}}},96329:function(e,t,r){"use strict";r.d(t,{B:function(){return c},GD:function(){return b},I0:function(){return A},KB:function(){return g},LX:function(){return l},Og:function(){return f},PE:function(){return y},Pv:function(){return w},Ts:function(){return C},XS:function(){return d},ab:function(){return v},gS:function(){return m},ir:function(){return k},nY:function(){return u},pT:function(){return p},s7:function(){return s},u5:function(){return x},x3:function(){return E},yR:function(){return h}});var n=r(6649),i=r(4456);class o extends n.G{constructor(e,{code:t,docsPath:r,metaMessages:n,name:o,shortMessage:a}){super(a,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages,name:o||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=o||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,"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,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class c extends o{constructor(e){super(e,{code:c.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class l extends o{constructor(e,{method:t}={}){super(e,{code:l.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class u extends o{constructor(e){super(e,{code:u.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends o{constructor(e){super(e,{code:d.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});
10807class h extends o{constructor(e){super(e,{code:h.code,name:"InvalidInputRpcError",shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class f extends o{constructor(e){super(e,{code:f.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends o{constructor(e){super(e,{code:p.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class g extends o{constructor(e){super(e,{code:g.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class m extends o{constructor(e,{method:t}={}){super(e,{code:m.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not implemented.`})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class w extends o{constructor(e){super(e,{code:w.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class b extends o{constructor(e){super(e,{code:b.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class v extends a{constructor(e){super(e,{code:v.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class y extends a{constructor(e){super(e,{code:y.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class C extends a{constructor(e,{method:t}={}){super(e,{code:C.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class x extends a{constructor(e){super(e,{code:x.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class A extends a{constructor(e){super(e,{code:A.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class E extends a{constructor(e){super(e,{code:E.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class k extends o{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}},75534:function(e,t,r){"use strict";r.d(t,{Bj:function(){return s},Nc:function(){return i},Z8:function(){return o}});var n=r(6649);class i extends n.G{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class o extends n.G{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function a(e){return e.reduce((e,{slot:t,value:r})=>`${e} ${t}: ${r} 10808`,"")}function s(e){return e.reduce((e,{address:t,...r})=>{let n=`${e} ${t}: 10809`;return r.nonce&&(n+=` nonce: ${r.nonce} 10810`),r.balance&&(n+=` balance: ${r.balance} 10811`),r.code&&(n+=` code: ${r.code} 10812`),r.state&&(n+=" state:\n"+a(r.state)),r.stateDiff&&(n+=" stateDiff:\n"+a(r.stateDiff)),n}," State Override:\n").slice(0,-1)}},97658:function(e,t,r){"use strict";r.d(t,{Bh:function(){return u},Yb:function(){return d},j3:function(){return c},mc:function(){return h},mk:function(){return l},xY:function(){return s},xr:function(){return a}});var n=r(85053),i=r(49268),o=r(6649);function a(e){let t=Object.entries(e).map(([e,t])=>
10812void 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.",{name:"FeeConflictError"})}}class c 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","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class l extends o.G{constructor(e,{account:t,docsPath:r,chain:o,data:s,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:h,to:f,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:f,value:void 0!==p&&`${(0,n.d)(p)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:c,gasPrice:void 0!==l&&`${(0,i.o)(l)} gwei`,maxFeePerGas:void 0!==u&&`${(0,i.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.o)(d)} gwei`,nonce:h})].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class u 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.`,{name:"TransactionNotFoundError"})}}class d 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.`,{name:"TransactionReceiptNotFoundError"})}}class h extends o.G{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}},87137:function(e,t,r){"use strict";r.d(t,{C:function(){return n},G:function(){return i}});let n=e=>e,i=e=>e},84284:function(e,t,r){"use strict";r.d(t,{z:function(){return d}});var n=r(97261),i=r(53932),o=r(82361),a=r(95046),s=r(6649),c=r(15222);function l(e){if(e<256)return 1;if(e<65536)return 2;if(e<16777216)return 3;if(e<4294967296)return 4;throw new s.G("Length is too large.")}var u=r(36494);async function d(e){let{authorization:t,signature:r}=e;return(0,n.R)({hash:function(e){let{chainId:t,contractAddress:r,nonce:n,to:s}=e,d=(0,u.w)((0,i.SM)(["0x05",function(e,t="hex"){let r=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),r=l(t);return{length:t<=55?1+t:1+r+t,encode(n){for(let{encode:i}of(t<=55?n.pushByte(192+t):(n.pushByte(247+r),1===r?n.pushUint8(t):2===r?n.pushUint16(t):3===r?n.pushUint24(t):n.pushUint32(t)),e))i(n)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,o.nr)(e):e,r=l(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),n=(0,c.q)(new Uint8Array(r.length));return(r.encode(n),"hex"===t)?(0,a.ci)(n.bytes):n.bytes}([(0,a.eC)(t),r,[n?(0,a.eC)(n):"0x"]])]));return"bytes"===s?(0,o.nr)(d):d}(t),signature:r??t})}},52998:function(e,t,r){"use strict";r.d(t,{r:function(){return g}});var n=r(52186),i=r(99112),o=r(15222),a=r(7508),s=r(49014),c=r(77955),l=r(74188),u=r(21019),d=r(95046);function h(e,t={}){void 0!==t.size&&(0,u.Yf)(e,{size:t.size});let r=(0,d.ci)(e,t);return(0,u.ly)(r,t)}var f=r(82361),p=r(39480);function g(e,t){let r="string"==typeof t?(0,f.nr)(t):t,g=(0,o.q)(r);if(0===(0,a.d)(r)&&e.length>0)throw new n.wb;if((0,a.d)(t)&&32>(0,a.d)(t))throw new n.xB({data:"string"==typeof t?t:(0,d.ci)(t),params:e,size:(0,a.d)(t)});let w=0,b=[];for(let t=0;t<e.length;++t){let r=e[t];g.setPosition(w);let[o,a]=function e(t,r,{staticPosition:o}){let a=(0,p.S)(r.type);
vendor: 4,104 bytes, line 10812
10812if(a){let[n,i]=a;return function(t,r,{length:n,staticPosition:i}){if(!n){let n=i+h(t.readBytes(32)),o=n+32;t.setPosition(n);let a=h(t.readBytes(32)),s=m(r),c=0,l=[];for(let n=0;n<a;++n){t.setPosition(o+(s?32*n:c));let[i,a]=e(t,r,{staticPosition:o});c+=a,l.push(i)}return t.setPosition(i+32),[l,32]}if(m(r)){let o=i+h(t.readBytes(32)),a=[];for(let i=0;i<n;++i){t.setPosition(o+32*i);let[n]=e(t,r,{staticPosition:o});a.push(n)}return t.setPosition(i+32),[a,32]}let o=0,a=[];for(let s=0;s<n;++s){let[n,s]=e(t,r,{staticPosition:i+o});o+=s,a.push(n)}return[a,o]}(t,{...r,type:i},{length:n,staticPosition:o})}if("tuple"===r.type)return function(t,r,{staticPosition:n}){let i=0===r.components.length||r.components.some(({name:e})=>!e),o=i?[]:{},a=0;if(m(r)){let s=n+h(t.readBytes(32));for(let n=0;n<r.components.length;++n){let c=r.components[n];t.setPosition(s+a);let[l,u]=e(t,c,{staticPosition:s});a+=u,o[i?n:c?.name]=l}return t.setPosition(n+32),[o,32]}for(let s=0;s<r.components.length;++s){let c=r.components[s],[l,u]=e(t,c,{staticPosition:n});o[i?s:c?.name]=l,a+=u}return[o,a]}(t,r,{staticPosition:o});if("address"===r.type)return function(e){let t=e.readBytes(32);return[(0,i.x)((0,d.ci)((0,s.T4)(t,-20))),32]}(t);if("bool"===r.type)return[function(e,t={}){let r=e;if(void 0!==t.size&&((0,u.Yf)(r,{size:t.size}),r=(0,c.f)(r)),r.length>1||r[0]>1)throw new l.yr(r);return!!r[0]}(t.readBytes(32),{size:32}),32];if(r.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){let[n,i]=t.type.split("bytes");if(!i){let t=h(e.readBytes(32));e.setPosition(r+t);let n=h(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];let i=e.readBytes(n);return e.setPosition(r+32),[(0,d.ci)(i),32]}return[(0,d.ci)(e.readBytes(Number.parseInt(i),32)),32]}(t,r,{staticPosition:o});if(r.type.startsWith("uint")||r.type.startsWith("int"))return function(e,t){let r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256"),i=e.readBytes(32);return[n>48?function(e,t={}){void 0!==t.size&&(0,u.Yf)(e,{size:t.size});let r=(0,d.ci)(e,t);return(0,u.y_)(r,t)}(i,{signed:r}):h(i,{signed:r}),32]}(t,r);if("string"===r.type)return function(e,{staticPosition:t}){let r=h(e.readBytes(32));e.setPosition(t+r);let n=h(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];let i=e.readBytes(n,32),o=function(e,t={}){let r=e;return void 0!==t.size&&((0,u.Yf)(r,{size:t.size}),r=(0,c.f)(r,{dir:"right"})),new TextDecoder().decode(r)}((0,c.f)(i));return e.setPosition(t+32),[o,32]}(t,{staticPosition:o});throw new n.CI(r.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(g,r,{staticPosition:0});w+=a,b.push(o)}return b}function m(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(m);let r=(0,p.S)(e.type);return!!(r&&m({...e,type:r[1]}))}},71108:function(e,t,r){"use strict";r.d(t,{p:function(){return l}});var n=r(47807),i=r(52186),o=r(49014),a=r(87522),s=r(52998),c=r(20101);function l(e){let{abi:t,data:r}=e,l=(0,o.tP)(r,0,4);if("0x"===l)throw new i.wb;let u=[...t||[],n.Up,n.hZ].find(e=>"error"===e.type&&l===(0,a.C)((0,c.t)(e)));if(!u)throw new i.yP(l,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:u,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,s.r)(u.inputs,(0,o.tP)(r,4)):void 0,errorName:u.name}}},46699:function(e,t,r){"use strict";r.d(t,{F:function(){return u}});var n=r(52186),i=r(7508),o=r(53263),a=r(19477),s=r(52998),c=r(20101);let l="/docs/contract/decodeEventLog";function u(e){let{abi:t,data:r,strict:u,topics:d}=e,h=u??!0,[f,...p]=d;if(!f)throw new n.FM({docsPath:l});let g=t.find(e=>"event"===e.type&&f===(0,o.n)((0,c.t)(e)));if(!(g&&"name"in g)||"event"!==g.type)throw new n.lC(f,{docsPath:l});let{name:m,inputs:w}=g,b=w?.some(e=>!("name"in e&&e.name)),v=b?[]:{},y=w.filter(e=>"indexed"in e&&e.indexed);for(let e=0;e<y.length;e++){let t=y[e],r=p[e];if(!r)throw new n.Gy({abiItem:g,param:t});v[b?e:t.name||e]=function({param:e,value:t}){return"string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,s.r)([e],t)||[])[0]}({param:t,value:r})}let C=w.filter(e=>
10812!("indexed"in e&&e.indexed));if(C.length>0){if(r&&"0x"!==r)try{let e=(0,s.r)(C,r);if(e){if(b)v=[...v,...e];else for(let t=0;t<C.length;t++)v[C[t].name]=e[t]}}catch(e){if(h){if(e instanceof n.xB||e instanceof a.lQ)throw new n.SM({abiItem:g,data:r,params:C,size:(0,i.d)(r)});throw e}}else if(h)throw new n.SM({abiItem:g,data:"0x",params:C,size:0})}return{eventName:m,args:Object.values(v).length>0?v:void 0}}},97225:function(e,t,r){"use strict";r.d(t,{k:function(){return s}});var n=r(52186),i=r(52998),o=r(18748);let a="/docs/contract/decodeFunctionResult";function s(e){let{abi:t,args:r,functionName:s,data:c}=e,l=t[0];if(s){let e=(0,o.mE)({abi:t,args:r,name:s});if(!e)throw new n.xL(s,{docsPath:a});l=e}if("function"!==l.type)throw new n.xL(void 0,{docsPath:a});if(!l.outputs)throw new n.MX(l.name,{docsPath:a});let u=(0,i.r)(l.outputs,c);return u&&u.length>1?u:u&&1===u.length?u[0]:void 0}},39480:function(e,t,r){"use strict";r.d(t,{E:function(){return h},S:function(){return p}});var n=r(52186),i=r(51359),o=r(6649),a=r(64113),s=r(53932),c=r(88202),l=r(7508),u=r(49014),d=r(95046);function h(e,t){if(e.length!==t.length)throw new n.fs({expectedLength:e.length,givenLength:t.length});let r=f(function({params:e,values:t}){let r=[];for(let h=0;h<e.length;h++)r.push(function e({param:t,value:r}){let h=p(t.type);if(h){let[i,o]=h;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 a=!1,c=[];for(let r=0;r<t.length;r++){let n=e({param:i,value:t[r]});n.dynamic&&(a=!0),c.push(n)}if(o||a){let e=f(c);if(o){let t=(0,d.eC)(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?(0,s.zo)([t,e]):t}}if(a)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,s.zo)(c.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,c=e({param:a,value:t[s]});i.push(c),c.dynamic&&(n=!0)}return{dynamic:n,encoded:n?f(i):(0,s.zo)(i.map(({encoded:e})=>e))}}(r,{param:t});if("address"===t.type)return function(e){if(!(0,a.U)(e))throw new i.b({address:e});return{dynamic:!1,encoded:(0,c.gc)(e.toLowerCase())}}(r);if("bool"===t.type)return function(e){if("boolean"!=typeof e)throw new o.G(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,c.gc)((0,d.C4)(e))}}(r);if(t.type.startsWith("uint")||t.type.startsWith("int"))return function(e,{signed:t}){return{dynamic:!1,encoded:(0,d.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,l.d)(e);if(!r){let t=e;return i%32!=0&&(t=(0,c.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,s.zo)([(0,c.gc)((0,d.eC)(i,{size:32})),t])}}if(i!==Number.parseInt(r))throw new n.M4({expectedSize:Number.parseInt(r),value:e});return{dynamic:!1,encoded:(0,c.gc)(e,{dir:"right"})}}(r,{param:t});if("string"===t.type)return function(e){let t=(0,d.$G)(e),r=Math.ceil((0,l.d)(t)/32),n=[];for(let e=0;e<r;e++)n.push((0,c.gc)((0,u.tP)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,s.zo)([(0,c.gc)((0,d.eC)((0,l.d)(t),{size:32})),...n])}}(r);throw new n.dh(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[h],value:t[h]}));return r}({params:e,values:t}));return 0===r.length?"0x":r}function f(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:i}=e[r];n?t+=32:t+=(0,l.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,d.eC)(t+i,{size:32})),n.push(s),i+=(0,l.d)(s)):r.push(s)}return(0,s.zo)([...r,...n])}function p(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},32637:function(e,t,r){"use strict";r.d(t,{w:function(){return s}});var n=r(52186),i=r(53932),o=r(39480);let a="/docs/contract/encodeDeployData";function s(e){let{abi:t,args:r,bytecode:s}=e;if(!r||0===r.length)return s;let c=t.find(e=>"type"in e&&"constructor"===e.type);if(!c)throw new n.fM({docsPath:a});if(!("inputs"in c)||!c.inputs||0===c.inputs.length)throw new n.cO({docsPath:a});let l=(0,o.E)(c.inputs,r);return(0,i.SM)([s,l])}}
vendor: 3,320 bytes, line 10812
10812,36212:function(e,t,r){"use strict";r.d(t,{O:function(){return f}});var n=r(52186),i=r(6649);class o extends i.G{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}var a=r(82361),s=r(36494),c=r(53263),l=r(39480),u=r(20101),d=r(18748);let h="/docs/contract/encodeEventTopics";function f(e){let{abi:t,eventName:r,args:i}=e,o=t[0];if(r){let e=(0,d.mE)({abi:t,name:r});if(!e)throw new n.mv(r,{docsPath:h});o=e}if("event"!==o.type)throw new n.mv(void 0,{docsPath:h});let a=(0,u.t)(o),s=(0,c.n)(a),l=[];if(i&&"inputs"in o){let e=o.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(i)?i:Object.values(i).length>0?e?.map(e=>i[e.name])??[]:[];t.length>0&&(l=e?.map((e,r)=>Array.isArray(t[r])?t[r].map((n,i)=>p({param:e,value:t[r][i]})):t[r]?p({param:e,value:t[r]}):null)??[])}return[s,...l]}function p({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,s.w)((0,a.O0)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new o(e.type);return(0,l.E)([e],[t])}},31006:function(e,t,r){"use strict";r.d(t,{R:function(){return u}});var n=r(53932),i=r(39480),o=r(52186),a=r(87522),s=r(20101),c=r(18748);let l="/docs/contract/encodeFunctionData";function u(e){let{args:t}=e,{abi:r,functionName:u}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){let{abi:t,args:r,functionName:n}=e,i=t[0];if(n){let e=(0,c.mE)({abi:t,args:r,name:n});if(!e)throw new o.xL(n,{docsPath:l});i=e}if("function"!==i.type)throw new o.xL(void 0,{docsPath:l});return{abi:[i],functionName:(0,a.C)((0,s.t)(i))}}(e),d=r[0],h="inputs"in d&&d.inputs?(0,i.E)(d.inputs,t??[]):void 0;return(0,n.SM)([u,h??"0x"])}},20101:function(e,t,r){"use strict";r.d(t,{h:function(){return o},t:function(){return i}});var n=r(52186);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?", ":","):""}},18748:function(e,t,r){"use strict";r.d(t,{mE:function(){return c}});var n=r(52186),i=r(40369),o=r(64113),a=r(53263),s=r(87522);function c(e){let t;let{abi:r,args:c=[],name:l}=e,u=(0,i.v)(l,{strict:!1}),d=r.filter(e=>u?"function"===e.type?(0,s.C)(e)===l:"event"===e.type&&(0,a.n)(e)===l:"name"in e&&e.name===l);if(0!==d.length){if(1===d.length)return d[0];for(let e of d)if("inputs"in e){if(!c||0===c.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===c.length&&c.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,o.U)(t,{strict:!1});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;
vendor: 7,241 bytes, line 10812
10812if(/[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(t&&"inputs"in t&&t.inputs){let r=function e(t,r,n){for(let i in t){let a=t[i],s=r[i];if("tuple"===a.type&&"tuple"===s.type&&"components"in a&&"components"in s)return e(a.components,s.components,n[i]);let c=[a.type,s.type];if(c.includes("address")&&c.includes("bytes20")||(c.includes("address")&&c.includes("string")||c.includes("address")&&c.includes("bytes"))&&(0,o.U)(n[i],{strict:!1}))return c}}(e.inputs,t.inputs,c);if(r)throw new n.S4({abiItem:e,type:r[0]},{abiItem:t,type:r[1]})}t=e}}return t||d[0]}}},31703:function(e,t,r){"use strict";r.d(t,{h:function(){return l}});var n=r(52186),i=r(65937),o=r(82361),a=r(36494),s=r(46699),c=r(18748);function l(e){let{abi:t,args:r,logs:l,strict:u=!0}=e,d=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return l.map(e=>{try{let n=(0,c.mE)({abi:t,name:e.topics[0]});if(!n)return null;let l=(0,s.F)({...e,abi:[n],strict:u});if(d&&!d.includes(l.eventName)||!function(e){let{args:t,inputs:r,matchArgs:n}=e;if(!n)return!0;if(!t)return!1;function s(e,t,r){try{if("address"===e.type)return(0,i.E)(t,r);if("string"===e.type||"bytes"===e.type)return(0,a.w)((0,o.O0)(t))===r;return t===r}catch{return!1}}return Array.isArray(t)&&Array.isArray(n)?n.every((e,n)=>{if(!e)return!0;let i=r[n];return!!i&&(Array.isArray(e)?e:[e]).some(e=>s(i,e,t[n]))}):!("object"!=typeof t||Array.isArray(t)||"object"!=typeof n||Array.isArray(n))&&Object.entries(n).every(([e,n])=>{if(!n)return!0;let i=r.find(t=>t.name===e);return!!i&&(Array.isArray(n)?n:[n]).some(r=>s(i,r,t[e]))})}({args:l.args,inputs:n.inputs,matchArgs:r}))return null;return{...l,...e}}catch(i){let t,r;if(i instanceof n.lC)return null;if(i instanceof n.SM||i instanceof n.Gy){if(u)return null;t=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return{...e,args:r?[]:{},eventName:t}}}).filter(Boolean)}},99112:function(e,t,r){"use strict";r.d(t,{K:function(){return u},x:function(){return l}});var n=r(51359),i=r(82361),o=r(36494),a=r(98992),s=r(64113);let c=new a.k(8192);function l(e,t){if(c.has(`${e}.${t}`))return c.get(`${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());let s=`0x${a.join("")}`;return c.set(`${e}.${t}`,s),s}function u(e,t){if(!(0,s.U)(e,{strict:!1}))throw new n.b({address:e});return l(e,t)}},64113:function(e,t,r){"use strict";r.d(t,{U:function(){return s}});var n=r(98992),i=r(99112);let o=/^0x[a-fA-F0-9]{40}$/,a=new n.k(8192);function s(e,t){let{strict:r=!0}=t??{},n=`${e}.${r}`;if(a.has(n))return a.get(n);let s=!!o.test(e)&&(e.toLowerCase()===e||!r||(0,i.x)(e)===e);return a.set(n,s),s}},65937:function(e,t,r){"use strict";r.d(t,{E:function(){return o}});var n=r(51359),i=r(64113);function o(e,t){if(!(0,i.U)(e,{strict:!1}))throw new n.b({address:e});if(!(0,i.U)(t,{strict:!1}))throw new n.b({address:t});return e.toLowerCase()===t.toLowerCase()}},63659:function(e,t,r){"use strict";r.d(t,{q:function(){return i}});var n=r(89045);function i({chain:e,currentChainId:t}){if(!e)throw new n.Bk;if(t!==e.id)throw new n.Yl({chain:e,currentChainId:t})}},95258:function(e,t,r){"use strict";function n(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}r.d(t,{a:function(){return n}})},18543:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(89045);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}},15222:function(e,t,r){"use strict";r.d(t,{q:function(){return o}});var n=r(19477);let i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new n.KD({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new n.lQ({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n.T_({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new n.T_({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function o(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(i);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}},53932:function(e,t,r){"use strict";function n(e){return"string"==typeof e[0]?i(e):function(e){let t=0;
10812for(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}})},40369: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}})},88202:function(e,t,r){"use strict";r.d(t,{gc:function(){return o},vk:function(){return i}});var n=r(75057);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.$s({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.$s({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}},7508:function(e,t,r){"use strict";r.d(t,{d:function(){return i}});var n=r(40369);function i(e){return(0,n.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},49014:function(e,t,r){"use strict";r.d(t,{T4:function(){return l},p5:function(){return u},tP:function(){return a}});var n=r(75057),i=r(40369),o=r(7508);function a(e,t,r,{strict:n}={}){return(0,i.v)(e,{strict:!1})?u(e,t,r,{strict:n}):l(e,t,r,{strict:n})}function s(e,t){if("number"==typeof t&&t>0&&t>(0,o.d)(e)-1)throw new n.mV({offset:t,position:"start",size:(0,o.d)(e)})}function c(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,o.d)(e)!==r-t)throw new n.mV({offset:r,position:"end",size:(0,o.d)(e)})}function l(e,t,r,{strict:n}={}){s(e,t);let i=e.slice(t,r);return n&&c(i,t,r),i}function u(e,t,r,{strict:n}={}){s(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&c(i,t,r),i}},77955: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}})},21019:function(e,t,r){"use strict";r.d(t,{Yf:function(){return s},ly:function(){return l},rR:function(){return u},y_:function(){return c}});var n=r(74188),i=r(7508),o=r(77955),a=r(82361);function s(e,{size:t}){if((0,i.d)(e)>t)throw new n.M6({givenSize:(0,i.d)(e),maxSize:t})}function c(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 l(e,t={}){return Number(c(e,t))}function u(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)}},82361:function(e,t,r){"use strict";r.d(t,{O0:function(){return l},nr:function(){return h},qX:function(){return f}});var n=r(6649),i=r(40369),o=r(88202),a=r(21019),s=r(95046);let c=new TextEncoder;function l(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):f(e,t)}let u={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=u.zero&&e<=u.nine?e-u.zero:e>=u.A&&e<=u.F?e-(u.A-10):e>=u.a&&e<=u.f?e-(u.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,c=new Uint8Array(s);for(let e=0,t=0;e<s;e++){let r=d(i.charCodeAt(t++)),o=d(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}").`);c[e]=16*r+o}return c}function f(e,t={}){let r=c.encode(e);return"number"==typeof t.size?((0,a.Yf)(r,{size:t.size}),(0,o.vk)(r,{dir:"right",size:t.size})):r}},95046:function(e,t,r){"use strict";r.d(t,{$G:function(){return h},C4:function(){return c},NC:function(){return s},ci:function(){return l},eC:function(){return u}});var n=r(74188),i=r(88202),o=r(21019);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?u(e,t):"string"==typeof e?h(e,t):"boolean"==typeof e?c(e,t):l(e,t)}function c(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 l(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 u(e,t={}){let r;let{signed:o,size:a}=t,s=BigInt(e);
10812a?r=o?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let c="bigint"==typeof r&&o?-r-1n:0;if(r&&s>r||s<c){let t="bigint"==typeof e?"n":"";throw new n.J5({max:r?`${r}${t}`:void 0,min:`${c}${t}`,signed:o,size:a,value:`${e}${t}`})}let l=`0x${(o&&s<0?(1n<<BigInt(8*a))+BigInt(s):s).toString(16)}`;return a?(0,i.vk)(l,{size:a}):l}let d=new TextEncoder;function h(e,t={}){return l(d.encode(e),t)}},48:function(e,t,r){"use strict";r.d(t,{i:function(){return i}});var n=r(40369);function i(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,n.v)(t)?t:null}},25652:function(e,t,r){"use strict";r.d(t,{c:function(){return a}});var n=r(47807),i=r(6649),o=r(58591);function a(e,t){if(!(e instanceof i.G))return!1;let r=e.walk(e=>e instanceof o.Lu);return r instanceof o.Lu&&(!!(r.data?.errorName==="ResolverNotFound"||r.data?.errorName==="ResolverWildcardNotSupported"||r.data?.errorName==="ResolverNotContract"||r.data?.errorName==="ResolverError"||r.data?.errorName==="HttpError"||r.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&r.reason===n.$[50])}},82978:function(e,t,r){"use strict";r.d(t,{V:function(){return c}});var n=r(53932),i=r(82361),o=r(95046),a=r(36494),s=r(48);function c(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,o.ci)(t);let r=e.split(".");for(let e=r.length-1;e>=0;e-=1){let o=(0,s.i)(r[e]),c=o?(0,i.O0)(o):(0,a.w)((0,i.qX)(r[e]),"bytes");t=(0,a.w)((0,n.zo)([t,c]),"bytes")}return(0,o.ci)(t)}},68890:function(e,t,r){"use strict";r.d(t,{T:function(){return s}});var n=r(82361),i=r(95046),o=r(36494),a=r(48);function s(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let r=new Uint8Array((0,n.qX)(t).byteLength+2),s=0,c=t.split(".");for(let e=0;e<c.length;e++){let t=(0,n.qX)(c[e]);if(t.byteLength>255){var l;t=(0,n.qX)((l=function(e){let t=new Uint8Array(32).fill(0);return e?(0,a.i)(e)||(0,o.w)((0,n.qX)(e)):(0,i.ci)(t)}(c[e]),`[${l.slice(2)}]`))}r[s]=t.length,r.set(t,s+1),s+=t.length+1}return r.byteLength!==s+1?r.slice(0,s+1):r}},92915:function(e,t,r){"use strict";r.d(t,{S:function(){return s}});var n=r(52186),i=r(6649),o=r(58591),a=r(96329);function s(e,{abi:t,address:r,args:s,docsPath:c,functionName:l,sender:u}){let{code:d,data:h,message:f,shortMessage:p}=e instanceof o.VQ?e:e instanceof i.G?e.walk(e=>"data"in e)||e.walk():{},g=e instanceof n.wb?new o.Dk({functionName:l}):[3,a.XS.code].includes(d)&&(h||f||p)?new o.Lu({abi:t,data:"object"==typeof h?h.data:h,functionName:l,message:p??f}):e;return new o.uq(g,{abi:t,args:s,contractAddress:r,docsPath:c,functionName:l,sender:u})}},43149:function(e,t,r){"use strict";r.d(t,{k:function(){return o}});var n=r(6649),i=r(37764);function o(e,t){let r=(e.details||"").toLowerCase(),o=e instanceof n.G?e.walk(e=>e.code===i.M_.code):e;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})}},48586:function(e,t,r){"use strict";function n(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}r.d(t,{g:function(){return n}})},20621:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(16719);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,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLim
10812it?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}}},27031: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}})},21677:function(e,t,r){"use strict";function n(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}:{}}}r.d(t,{U:function(){return n}})},16719:function(e,t,r){"use strict";r.d(t,{Tr:function(){return o},c8:function(){return i}});var n=r(21019);let i={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};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,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):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 e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({contractAddress:e.address,r:e.r,s:e.s,chainId:Number(e.chainId),nonce:Number(e.nonce),...void 0!==e.yParity?{yParity:Number(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:Number(e.v)}:{}}))),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.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}},37669:function(e,t,r){"use strict";r.d(t,{tG:function(){return o}});var n=r(95046);let i={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function o(e){let t={};return void 0!==e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.contractAddress,r:e.r,s:e.s,chainId:(0,n.eC)(e.chainId),nonce:(0,n.eC)(e.nonce),...void 0!==e.yParity?{yParity:(0,n.eC)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,n.eC)(e.v)}:{}}))),void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?t.blobs=e.blobs.map(e=>(0,n.ci)(e)):t.blobs=e.blobs),void 0!==e.data&&(t.data=e.data),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=(0,n.eC)(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=(0,n.eC)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=(0,n.eC)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=(0,n.eC)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,n.eC)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=(0,n.eC)(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=i[e.type]),void 0!==e.value&&(t.value=(0,n.eC)(e.value)),t}},93413:function(e,t,r){"use strict";function n(e,t,r){let n=e[t.name];if("function"==typeof n)return n;let i=e[r];return"function"==typeof i?i:r=>t(e,r)}r.d(t,{s:function(){return n}})},36494:function(e,t,r){"use strict";r.d(t,{w:function(){return I}});var n=r(65376);let i=BigInt(4294967296-1),o=BigInt(32),a=(e,t,r)=>e<<r|t>>>32-r,s=(e,t,r)=>t<<r|e>>>32-r,c=(e,t,r)=>t<<r-32|e>>>64-r,l=(e,t,r)=>e<<r-32|t>>>64-r;var u=r(68104);
10812let d=[],h=[],f=[],p=BigInt(0),g=BigInt(1),m=BigInt(2),w=BigInt(7),b=BigInt(256),v=BigInt(113);for(let e=0,t=g,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],d.push(2*(5*n+r)),h.push((e+1)*(e+2)/2%64);let i=p;for(let e=0;e<7;e++)(t=(t<<g^(t>>w)*v)%b)&m&&(i^=g<<(g<<BigInt(e))-g);f.push(i)}let[y,C]=function(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let a=0;a<e.length;a++){let{h:s,l:c}=function(e,t=!1){return t?{h:Number(e&i),l:Number(e>>o&i)}:{h:0|Number(e>>o&i),l:0|Number(e&i)}}(e[a],t);[r[a],n[a]]=[s,c]}return[r,n]}(f,!0),x=(e,t,r)=>r>32?c(e,t,r):a(e,t,r),A=(e,t,r)=>r>32?l(e,t,r):s(e,t,r);class E extends u.kb{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,(0,n.Rx)(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,u.Jq)(this.state)}keccak(){u.iA||(0,u.l1)(this.state32),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=x(o,a,1)^r[n],c=A(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=c}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=h[r],o=x(t,i,n),a=A(t,i,n),s=d[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]^=y[n],e[1]^=C[n]}r.fill(0)}(this.state32,this.rounds),u.iA||(0,u.l1)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.Gg)(this);let{blockLen:t,state:r}=this,i=(e=(0,u.O0)(e)).length;for(let n=0;n<i;){let o=Math.min(t-this.pos,i-n);for(let t=0;t<o;t++)r[this.pos++]^=e[n++];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){(0,n.Gg)(this,!1),(0,n.aI)(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(0,n.Rx)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.J8)(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 E(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 k=(0,u.hE)(()=>new E(136,1,32));var _=r(40369),S=r(82361),T=r(95046);function I(e,t){let r=k((0,_.v)(e,{strict:!1})?(0,S.O0)(e):e);return"bytes"===(t||"hex")?r:(0,T.NC)(r)}},53263:function(e,t,r){"use strict";r.d(t,{n:function(){return n}});let n=r(99530).r},87522:function(e,t,r){"use strict";r.d(t,{C:function(){return o}});var n=r(49014),i=r(99530);let o=e=>(0,n.tP)((0,i.r)(e),0,4)},99530:function(e,t,r){"use strict";r.d(t,{r:function(){return d}});var n=r(82361),i=r(36494);let o=e=>(0,i.w)((0,n.O0)(e));var a=r(43197);let s=/^tuple(?<array>(\[(\d*)\])*)$/;function c(e){let t="",r=e.length;for(let n=0;n<r;n++)t+=function e(t){let r=t.type;if(s.test(t.type)&&"components"in t){r="(";let n=t.components.length;for(let i=0;i<n;i++)r+=e(t.components[i]),i<n-1&&(r+=", ");let i=(0,a.Zw)(s,t.type);return r+=`)${i?.array??""}`,e({...t,type:r})}return("indexed"in t&&t.indexed&&(r=`${r}
10812 indexed`),t.name)?`${r} ${t.name}`:r}(e[n]),n!==r-1&&(t+=", ");return t}var l=r(6649);let u=e=>(function(e){let t=!0,r="",n=0,i="",o=!1;for(let a=0;a<e.length;a++){let s=e[a];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){o=!0;break}continue}if(" "===s){","!==e[a-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}i+=s,r+=s}}if(!o)throw new l.G("Unable to normalize signature.");return i})("string"==typeof e?e:"function"===e.type?`function ${e.name}(${c(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs.length?` returns (${c(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${c(e.inputs)})`:"error"===e.type?`error ${e.name}(${c(e.inputs)})`:"constructor"===e.type?`constructor(${c(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback()":"receive() external payable");function d(e){return o(u(e))}},98992:function(e,t,r){"use strict";r.d(t,{k:function(){return n}});class n extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}set(e,t){return super.set(e,t),this.maxSize&&this.size>this.maxSize&&this.delete(this.keys().next().value),this}}},24606:function(e,t,r){"use strict";r.d(t,{N7:function(){return a}});let n=new Map,i=new Map,o=0;function a(e,t,r){let a=++o,s=()=>n.get(e)||[],c=()=>{let t=s();n.set(e,t.filter(e=>e.id!==a))},l=()=>{let t=i.get(e);1===s().length&&t&&t(),c()},u=s();if(n.set(e,[...u,{id:a,fns:t}]),u&&u.length>0)return l;let d={};for(let e in t)d[e]=(...t)=>{let r=s();if(0!==r.length)for(let n of r)n.fns[e]?.(...t)};let h=r(d);return"function"==typeof h&&i.set(e,h),l}},9338:function(e,t,r){"use strict";r.d(t,{$:function(){return i}});var n=r(97317);function i(e,{emitOnBegin:t,initialWaitTime:r,interval:i}){let o=!0,a=()=>o=!1;return(async()=>{let s;t&&(s=await e({unpoll:a}));let c=await r?.(s)??i;await (0,n.D)(c);let l=async()=>{o&&(await e({unpoll:a}),await (0,n.D)(i),l())};l()})(),a}},10639: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=l();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),c=()=>l().map(({args:e})=>e),l=()=>n.get(t)||[],u=e=>n.set(t,[...l(),e]);return{flush:s,async schedule(e){let t={},n=new Promise((e,r)=>{t.resolve=e,t.reject=r});return(r?.([...c(),e])&&a(),l().length>0)?u({args:e,pendingPromise:t}):(u({args:e,pendingPromise:t}),setTimeout(a,i)),n}}}},55894:function(e,t,r){"use strict";r.d(t,{J:function(){return i}});var n=r(97317);function i(e,{delay:t=100,retryCount:r=2,shouldRetry:i=()=>!0}={}){return new Promise((o,a)=>{let s=async({count:c=0}={})=>{let l=async({error:e})=>{let r="function"==typeof t?t({count:c,error:e}):t;r&&await (0,n.D)(r),s({count:c+1})};try{let t=await e();o(t)}catch(e){if(c<r&&await i({count:c,error:e}))return l({error:e});a(e)}};s()})}},13581:function(e,t,r){"use strict";function n(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||null}))}catch(e){e?.name==="AbortError"&&o(t),o(e)}finally{clearTimeout(a)}})()})}r.d(t,{F:function(){return n}})},32933:function(e,t,r){"use strict";r.d(t,{r:function(){return s}});var n=r(36494),i=r(53932),o=r(7508),a=r(95046);function s(e,t){return(0,n.w)(function(e){let t="string"==typeof e?(0,a.$G)(e):"string"==typeof e.raw?e.raw:(0,a.ci)(e.raw),r=(0,a.$G)(`\x19Ethereum Signed Message: 10813${(0,o.d)(t)}`);return(0,i.zo)([r,t])}(e),t)}},97261:function(e,t,r){"use strict";r.d(t,{R:function(){return u}});var n=r(99112),i=r(36494),o=r(40369),a=r(21019),s=r(95046);async function c({hash:e,signature:t}){let n=(0,o.v)(e)?e:(0,s.NC)(e),{secp256k1:i}=await Promise.resolve().then(r.bind(r,26335)),c=(()=>
10813{if("object"==typeof t&&"r"in t&&"s"in t){let{r:e,s:r,v:n,yParity:o}=t,s=l(Number(o??n));return new i.Signature((0,a.y_)(e),(0,a.y_)(r)).addRecoveryBit(s)}let e=(0,o.v)(t)?t:(0,s.NC)(t),r=l((0,a.ly)(`0x${e.slice(130)}`));return i.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(r)})().recoverPublicKey(n.substring(2)).toHex(!1);return`0x${c}`}function l(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw Error("Invalid yParityOrV value")}async function u({hash:e,signature:t}){return function(e){let t=(0,i.w)(`0x${e.substring(4)}`).substring(26);return(0,n.x)(`0x${t}`)}(await c({hash:e,signature:t}))}},11667:function(e,t,r){"use strict";r.d(t,{mF:function(){return l}});var n=r(51359),i=r(75057),o=r(75534),a=r(64113),s=r(95046);function c(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:r})=>{if(66!==t.length)throw new i.W_({size:t.length,targetSize:66,type:"hex"});if(66!==r.length)throw new i.W_({size:r.length,targetSize:66,type:"hex"});return e[t]=r,e},{})}function l(e){if(!e)return;let t={};for(let{address:r,...i}of e){if(!(0,a.U)(r,{strict:!1}))throw new n.b({address:r});if(t[r])throw new o.Nc({address:r});t[r]=function(e){let{balance:t,nonce:r,state:n,stateDiff:i,code:a}=e,l={};if(void 0!==a&&(l.code=a),void 0!==t&&(l.balance=(0,s.eC)(t)),void 0!==r&&(l.nonce=(0,s.eC)(r)),void 0!==n&&(l.state=c(n)),void 0!==i){if(l.state)throw new o.Z8;l.stateDiff=c(i)}return l}(i)}return t}},47499: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)},82857:function(e,t,r){"use strict";r.d(t,{F:function(){return c}});var n=r(96104),i=r(51359),o=r(37764),a=r(97658),s=r(64113);function c(e){let{account:t,gasPrice:r,maxFeePerGas:c,maxPriorityFeePerGas:l,to:u}=e,d=t?(0,n.T)(t):void 0;if(d&&!(0,s.U)(d.address))throw new i.b({address:d.address});if(u&&!(0,s.U)(u))throw new i.b({address:u});if(void 0!==r&&(void 0!==c||void 0!==l))throw new a.xY;if(c&&c>2n**256n-1n)throw new o.Hh({maxFeePerGas:c});if(l&&c&&l>c)throw new o.cs({maxFeePerGas:c,maxPriorityFeePerGas:l})}},92416:function(e,t,r){"use strict";r.d(t,{cj:function(){return f},H6:function(){return d},iC:function(){return h}});var n=r(52186),i=r(51359),o=r(64113),a=r(7508),s=r(95046);let c=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,l=/^(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)?$/;var u=r(47499);function d(e){let{domain:t,message:r,primaryType:n,types:i}=e,o=(e,t)=>{let r={...t};for(let t of e){let{name:e,type:n}=t;"address"===n&&(r[e]=r[e].toLowerCase())}return r},a=i.EIP712Domain&&t?o(i.EIP712Domain,t):{},s=(()=>{if("EIP712Domain"!==n)return o(i[n],r)})();return(0,u.P)({domain:a,message:s,primaryType:n,types:i})}function h(e){let{domain:t,message:r,primaryType:u,types:d}=e,h=(e,t)=>{for(let r of e){let{name:e,type:u}=r,f=t[e],p=u.match(l);if(p&&("number"==typeof f||"bigint"==typeof f)){let[e,t,r]=p;(0,s.eC)(f,{signed:"int"===t,size:Number.parseInt(r)/8})}if("address"===u&&"string"==typeof f&&!(0,o.U)(f))throw new i.b({address:f});let g=u.match(c);if(g){let[e,t]=g;if(t&&(0,a.d)(f)!==Number.parseInt(t))throw new n.KY({expectedSize:Number.parseInt(t),givenSize:(0,a.d)(f)})}let m=d[u];m&&h(m,f)}};d.EIP712Domain&&t&&h(d.EIP712Domain,t),"EIP712Domain"!==u&&h(d[u],r)}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)}},14851:function(e,t,r){"use strict";let n;r.d(t,{h:function(){return o}});let i=256;function o(e=11){if(!n||i+e>512){n="",i=0;for(let e=0;e<256;e++)n+=(256+256*Math.random()|0).toString(16).substring(1)}return n.substring(i,i+++e)}},85053:function(e,t,r){"use strict";r.d(t,{d:function(){return o}});var n=r(90408),i=r(42921);function o(e,t="wei"){return(0,i.b)(e,n.ez[t])}},49268:function(e,t,r){"use strict";r.d(t,{o:function(){return o}});var n=r(90408),i=r(42921);function o(e,t="wei"){return(0,i.b)(e,n.Zn[t])}},42921: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}})},97317:function(e,t,r){"use strict";async function n(e){return new Promise(t=>setTimeout(t,e))}r.d(t,{D:function(){return n}})},59440:function(e,t,r){"use strict";r.d(t,{useAccountEffect:function(){return a}});var n=r(30807),i=r(2265),o=r(94956);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onConnect:t,onDisconnect:r}=e,a=(0,o.useConfig)(e);(0,i.useEffect)(()=>(0,n.u)(a,{onChange(e,n){if(("reconnecting"===n.status||"connecting"===n.status&&void 0===n.address)&&"connected"===e.status){let{address:r,addresses:i,chain:o,chainId:a,connector:s}=e,c="reconnecting"===n.status||void 0===n.status;null==t||t({address:r,addresses:i,chain:o,chainId:a,connector:s,isReconnected:c})}else"connected"===n.status&&"disconnected"===e.status&&(null==r||r())}}),[a,t,r])}},19050:function(e,t,r){"use strict";r.d(t,{useBalance:function(){return c}});
10813var n=r(79563),i=r(34954),o=r(53206),a=r(98286),s=r(94956);function c(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:c,query:l={}}=r,u=(0,s.useConfig)(r),d=(0,a.useChainId)({config:u}),h=function(e,t={}){return{async queryFn({queryKey:t}){let{address:r,scopeKey:i,...o}=t[1];if(!r)throw Error("address is required");return await (0,n.s)(e,{...o,address:r})??null},queryKey:function(e={}){return["balance",(0,i.OP)(e)]}(t)}}(u,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:d}),f=!!(c&&(null===(t=l.enabled)||void 0===t||t));return(0,o.aM)({...l,...h,enabled:f})}},31189:function(e,t,r){"use strict";r.d(t,{useBlock:function(){return h}});var n=r(93191),i=r(49235),o=r(61954);async function a(e,t={}){let{chainId:r,...n}=t,a=e.getClient({chainId:r}),s=(0,o.s)(a,i.Q,"getBlock");return{...await s(n),chainId:a.chain.id}}var s=r(34954),c=r(53206),l=r(98286),u=r(94956),d=r(70799);function h(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:i={},watch:o}=r,h=(0,u.useConfig)(r),f=(0,n.NL)(),p=(0,l.useChainId)({config:h}),g=null!==(e=r.chainId)&&void 0!==e?e:p,m=function(e,t={}){return{async queryFn({queryKey:t}){let{scopeKey:r,...n}=t[1];return await a(e,n)??null},queryKey:function(e={}){return["block",(0,s.OP)(e)]}(t)}}(h,{...r,chainId:g}),w=!!(null===(t=i.enabled)||void 0===t||t);return(0,d.useWatchBlocks)({...{config:r.config,chainId:r.chainId,..."object"==typeof o?o:{}},enabled:!!(w&&("object"==typeof o?o.enabled:o)),onBlock(e){f.setQueryData(m.queryKey,e)}}),(0,c.aM)({...i,...m,enabled:w})}},87688:function(e,t,r){"use strict";r.d(t,{useBlockNumber:function(){return d}});var n=r(93191),i=r(75304),o=r(61954),a=r(34954),s=r(53206),c=r(98286),l=r(94956),u=r(5850);function d(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:d={},watch:h}=r,f=(0,l.useConfig)(r),p=(0,n.NL)(),g=(0,c.useChainId)({config:f}),m=null!==(e=r.chainId)&&void 0!==e?e:g,w=function(e,t={}){return{gcTime:0,async queryFn({queryKey:t}){let{scopeKey:r,...n}=t[1];return await function(e,t={}){let{chainId:r,...n}=t,a=e.getClient({chainId:r});return(0,o.s)(a,i.z,"getBlockNumber")(n)}(e,n)??null},queryKey:function(e={}){return["blockNumber",(0,a.OP)(e)]}(t)}}(f,{...r,chainId:m});return(0,u.useWatchBlockNumber)({...{config:r.config,chainId:r.chainId,..."object"==typeof h?h:{}},enabled:!!((null===(t=d.enabled)||void 0===t||t)&&("object"==typeof h?h.enabled:h)),onBlockNumber(e){p.setQueryData(w.queryKey,e)}}),(0,s.aM)({...d,...w})}},64714:function(e,t,r){"use strict";r.d(t,{useBlockTransactionCount:function(){return l}});var n=r(68796),i=r(61954),o=r(34954),a=r(53206),s=r(98286),c=r(94956);function l(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:r={}}=t,l=(0,c.useConfig)(t),u=(0,s.useChainId)({config:l}),d=null!==(e=t.chainId)&&void 0!==e?e:u,h=function(e,t={}){return{async queryFn({queryKey:t}){let{scopeKey:r,...o}=t[1];return await function(e,t={}){let{chainId:r,...o}=t,a=e.getClient({chainId:r});return(0,i.s)(a,n.c,"getBlockTransactionCount")(o)}(e,o)??null},queryKey:function(e={}){return["blockTransactionCount",(0,o.OP)(e)]}(t)}}(l,{...t,chainId:d});return(0,a.aM)({...r,...h})}},17812:function(e,t,r){"use strict";r.d(t,{useBytecode:function(){return u}});var n=r(55094),i=r(61954);async function o(e,t){let{chainId:r,...o}=t,a=e.getClient({chainId:r});return(0,i.s)(a,n.C,"getBytecode")(o)}var a=r(34954),s=r(53206),c=r(98286),l=r(94956);function u(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:n,query:i={}}=r,u=(0,l.useConfig)(r),d=(0,c.useChainId)({config:u}),h=function(e,t={}){return{async queryFn({queryKey:t}){let{address:r,scopeKey:n,...i}=t[1];if(!r)throw Error("address is required");return await o(e,{...i,address:r})??null},queryKey:["getBytecode",(0,a.OP)(t)]}}(u,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:d}),f=!!(n&&(null===(t=i.enabled)||void 0===t||t));return(0,s.aM)({...i,...h,enabled:f})}},77031:function(e,t,r){"use strict";r.d(t,{useCall:function(){return u}});var n=r(12994),i=r(61954);async function o(e,t){let{chainId:r,...o}=t,a=e.getClient({chainId:r});return(0,i.s)(a,n.R,"call")(o)}var a=r(34954),s=r(53206),c=r(98286),l=r(94956);function u(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:r={}}=t,n=(0,l.useConfig)(t),i=(0,c.useChainId)({config:n}),u=function(e,t={}){return{async queryFn({queryKey:t}){let{scopeKey:r,...n}=t[1];return await o(e,{...n})??null},queryKey:["call",(0,a.OP)(t)]}}(n,{...t,chainId:null!==(e=t.chainId)&&void 0!==e?e:i});return(0,s.aM)({...r,...u})}},98286:function(e,t,r){"use strict";function n(e){return e.state.chainId}r.d(t,{useChainId:function(){return a}});var i=r(2265),o=r(94956);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,o.useConfig)(e);return(0,i.useSyncExternalStore)(e=>(function(e,t){let{onChange:r}=t;return e.subscribe(e=>e.chainId,r)})(t,{onChange:e}),()=>n(t),()=>n(t))}},28421:function(e,t,r){"use strict";r.d(t,{useChains:function(){return c}});var n=r(90331);let i=[];function o(e){let t=e.chains;return(0,n.v)(i,t)?i:(i=t,t)}var a=r(2265),s=r(94956);function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.useConfig)(e);return(0,a.useSyncExternalStore)(e=>(function(e,t){let{onChange:r}=t;return e._internal.chains.subscribe((e,t)=>{r(e,t)})})(t,{onChange:e}),()=>o(t),()=>o(t))}},36463:function(e,t,r){"use strict";r.d(t,{useClient:function(){return a}});var n=r(80660),i=r(35006),o=r(94956);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,o.useConfig)(e);return(0,i.useSyncExternalStoreWithSelector)(e=>(function(e,t){let{onChange:r}=t;return e.subscribe(()=>(0,n.s)(e),r,{equalityFn:(e,t)=>e?.uid===t?.uid})})(t,{onChange:e}),()=>(0,n.s)(t,e),()=>(0,n.s)(t,e),e=>e,(e,t)=>(null==e?void 0:e.uid)===(null==t?void 0:t.uid))}},99504:function(e,t,r){"use strict";r.d(t,{useConnect:function(){return c}});var n=r(25524),i=r(77671),o=r(2265),a=r(94956),s=r(92134);function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,r=(0,a.useConfig)(e),{mutate:c,mutateAsync:l,...u}=(0,n.D)({...t,mutationFn:e=>(0,i.$)(r,e),mutationKey:["connect"]});return(0,o.useEffect)(()=>r.subscribe(e=>{let{status:t}=e;return t},(e,t)=>{"connected"===t&&"disconnected"===e&&u.reset()}),[r,u.reset]),{...u,connect:c,connectAsync:l,connectors:(0,s.useConnectors)({config:r})}}},79730:function(e,t,r){"use strict";r.d(t,{useConnections:function(){return s}});var n=r(90331),i=r(48479),o=r(2265),a=r(94956);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,a.useConfig)(e);return(0,o.useSyncExternalStore)(e=>(function(e,t){let{onChange:r}=t;return e.subscribe(()=>(0,i.E)(e),r,{equalityFn:n.v})})(t,{onChange:e}),()=>(0,i.E)(t),()=>(0,i.E)(t))}},79447:function(e,t,r){"use strict";r.d(t,{useConnectorClient:function(){return d}});
10813var n=r(93191),i=r(33281),o=r(34954),a=r(2265),s=r(53206),c=r(26735),l=r(98286),u=r(94956);function d(){var e,t,r;let d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:h={},...f}=d,p=(0,u.useConfig)(f),g=(0,n.NL)(),{address:m,connector:w,status:b}=(0,c.useAccount)({config:p}),v=(0,l.useChainId)({config:p}),{queryKey:y,...C}=function(e,t={}){return{gcTime:0,async queryFn({queryKey:r}){let{connector:n}=t,{connectorUid:o,scopeKey:a,...s}=r[1];return(0,i.e)(e,{...s,connector:n})},queryKey:function(e={}){let{connector:t,...r}=e;return["connectorClient",{...(0,o.OP)(r),connectorUid:t?.uid}]}(t)}}(p,{...d,chainId:null!==(e=d.chainId)&&void 0!==e?e:v,connector:null!==(t=d.connector)&&void 0!==t?t:w}),x=!!(("connected"===b||"reconnecting"===b)&&(null===(r=h.enabled)||void 0===r||r)),A=(0,a.useRef)(m);return(0,a.useEffect)(()=>{let e=A.current;!m&&e?(g.removeQueries({queryKey:y}),A.current=void 0):m!==e&&(g.invalidateQueries({queryKey:y}),A.current=m)},[m,g]),(0,s.aM)({...h,...C,queryKey:y,enabled:x,staleTime:Number.POSITIVE_INFINITY})}},92134:function(e,t,r){"use strict";r.d(t,{useConnectors:function(){return l}});var n=r(33878),i=r(90331);let o=[];function a(e){let t=e.connectors;return(0,i.v)(o,t)?o:(o=t,t)}var s=r(2265),c=r(94956);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,c.useConfig)(e);return(0,s.useSyncExternalStore)(e=>(0,n.f)(t,{onChange:e}),()=>a(t),()=>a(t))}},28565:function(e,t,r){"use strict";r.d(t,{useDeployContract:function(){return l}});var n=r(25524),i=r(79542),o=r(61954),a=r(33281);async function s(e,t){let r;let{account:n,chainId:s,connector:c,...l}=t;r="object"==typeof n&&"local"===n.type?e.getClient({chainId:s}):await (0,a.e)(e,{account:n,chainId:s,connector:c});let u=(0,o.s)(r,i.P,"deployContract");return await u({...l,...n?{account:n}:{},chain:s?{id:s}:null})}var c=r(94956);function l(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:r}=t,i=(e=(0,c.useConfig)(t),{mutationFn:t=>s(e,t),mutationKey:["deployContract"]}),{mutate:o,mutateAsync:a,...l}=(0,n.D)({...r,...i});return{...l,deployContract:o,deployContractAsync:a}}},25148:function(e,t,r){"use strict";r.d(t,{useDisconnect:function(){return s}});var n=r(25524),i=r(2302),o=r(94956),a=r(79730);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,r=(0,o.useConfig)(e),{mutate:s,mutateAsync:c,...l}=(0,n.D)({...t,mutationFn:e=>(0,i.z)(r,e),mutationKey:["disconnect"]});return{...l,connectors:(0,a.useConnections)({config:r}).map(e=>e.connector),disconnect:s,disconnectAsync:c}}},73172:function(e,t,r){"use strict";r.d(t,{useEnsAddress:function(){return c}});var n=r(41794),i=r(34954),o=r(53206),a=r(98286),s=r(94956);function c(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:c,query:l={}}=r,u=(0,s.useConfig)(r),d=(0,a.useChainId)({config:u}),h=function(e,t={}){return{async queryFn({queryKey:t}){let{name:r,scopeKey:i,...o}=t[1];if(!r)throw Error("name is required");return(0,n.O)(e,{...o,name:r})},queryKey:function(e={}){return["ensAddress",(0,i.OP)(e)]}(t)}}(u,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:d}),f=!!(c&&(null===(t=l.enabled)||void 0===t||t));return(0,o.aM)({...l,...h,enabled:f})}},95120:function(e,t,r){"use strict";r.d(t,{useEnsAvatar:function(){return c}});var n=r(704),i=r(34954),o=r(53206),a=r(98286),s=r(94956);function c(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:c,query:l={}}=r,u=(0,s.useConfig)(r),d=(0,a.useChainId)({config:u}),h=function(e,t={}){return{async queryFn({queryKey:t}){let{name:r,scopeKey:i,...o}=t[1];if(!r)throw Error("name is required");return(0,n.r)(e,{...o,name:r})},queryKey:function(e={}){return["ensAvatar",(0,i.OP)(e)]}(t)}}(u,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:d}),f=!!(c&&(null===(t=l.enabled)||void 0===t||t));return(0,o.aM)({...l,...h,enabled:f})}},89057:function(e,t,r){"use strict";r.d(t,{useEnsName:function(){return c}});var n=r(16302),i=r(34954),o=r(53206),a=r(98286),s=r(94956);function c(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:c,query:l={}}=r,u=(0,s.useConfig)(r),d=(0,a.useChainId)({config:u}),h=function(e,t={}){return{async queryFn({queryKey:t}){let{address:r,scopeKey:i,...o}=t[1];if(!r)throw Error("address is required");return(0,n.w)(e,{...o,address:r})},queryKey:function(e={}){return["ensName",(0,i.OP)(e)]}(t)}}(u,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:d}),f=!!(c&&(null===(t=l.enabled)||void 0===t||t));return(0,o.aM)({...l,...h,enabled:f})}},88888:function(e,t,r){"use strict";r.d(t,{useEnsResolver:function(){return l}});
10813var n=r(2886),i=r(61954),o=r(34954),a=r(53206),s=r(98286),c=r(94956);function l(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:l,query:u={}}=r,d=(0,c.useConfig)(r),h=(0,s.useChainId)({config:d}),f=function(e,t={}){return{async queryFn({queryKey:t}){let{name:r,scopeKey:o,...a}=t[1];if(!r)throw Error("name is required");return function(e,t){let{chainId:r,...o}=t,a=e.getClient({chainId:r});return(0,i.s)(a,n.S,"getEnsResolver")(o)}(e,{...a,name:r})},queryKey:function(e={}){return["ensResolver",(0,o.OP)(e)]}(t)}}(d,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:h}),p=!!(l&&(null===(t=u.enabled)||void 0===t||t));return(0,a.aM)({...u,...f,enabled:p})}},95730:function(e,t,r){"use strict";r.d(t,{useEnsText:function(){return l}});var n=r(133),i=r(61954),o=r(34954),a=r(53206),s=r(98286),c=r(94956);function l(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{key:l,name:u,query:d={}}=r,h=(0,c.useConfig)(r),f=(0,s.useChainId)({config:h}),p=function(e,t={}){return{async queryFn({queryKey:t}){let{key:r,name:o,scopeKey:a,...s}=t[1];if(!r||!o)throw Error("key and name are required");return function(e,t){let{chainId:r,...o}=t,a=e.getClient({chainId:r});return(0,i.s)(a,n.g,"getEnsText")(o)}(e,{...s,key:r,name:o})},queryKey:function(e={}){return["ensText",(0,o.OP)(e)]}(t)}}(h,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:f}),g=!!(l&&u&&(null===(t=d.enabled)||void 0===t||t));return(0,a.aM)({...d,...p,enabled:g})}},94671:function(e,t,r){"use strict";r.d(t,{useEstimateFeesPerGas:function(){return h}});var n=r(42921),i=r(42665),o=r(61954),a=r(29690);async function s(e,t={}){let{chainId:r,formatUnits:s="gwei",...c}=t,l=e.getClient({chainId:r}),u=(0,o.s)(l,i.X,"estimateFeesPerGas"),{gasPrice:d,maxFeePerGas:h,maxPriorityFeePerGas:f}=await u({...c,chain:l.chain}),p=(0,a.W)(s);return{formatted:{gasPrice:d?(0,n.b)(d,p):void 0,maxFeePerGas:h?(0,n.b)(h,p):void 0,maxPriorityFeePerGas:f?(0,n.b)(f,p):void 0},gasPrice:d,maxFeePerGas:h,maxPriorityFeePerGas:f}}var c=r(34954),l=r(53206),u=r(98286),d=r(94956);function h(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:r={}}=t,n=(0,d.useConfig)(t),i=(0,u.useChainId)({config:n}),o=function(e,t={}){return{async queryFn({queryKey:t}){let{scopeKey:r,...n}=t[1];return s(e,n)},queryKey:function(e={}){return["estimateFeesPerGas",(0,c.OP)(e)]}(t)}}(n,{...t,chainId:null!==(e=t.chainId)&&void 0!==e?e:i});return(0,l.aM)({...r,...o})}},74589:function(e,t,r){"use strict";r.d(t,{useEstimateGas:function(){return l}});var n=r(26504),i=r(34954),o=r(53206),a=r(98286),s=r(94956),c=r(79447);function l(){var e,t,r;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{connector:u,query:d={}}=l,h=(0,s.useConfig)(l),{data:f}=(0,c.useConnectorClient)({connector:u,query:{enabled:void 0===l.account}}),p=null!==(e=l.account)&&void 0!==e?e:null==f?void 0:f.account,g=(0,a.useChainId)({config:h}),m=function(e,t={}){return{async queryFn({queryKey:r}){let{connector:i}=t,{account:o,scopeKey:a,...s}=r[1];if(!o&&!i)throw Error("account or connector is required");return(0,n.Q)(e,{account:o,connector:i,...s})},queryKey:function(e={}){let{connector:t,...r}=e;return["estimateGas",(0,i.OP)(r)]}(t)}}(h,{...l,account:p,chainId:null!==(t=l.chainId)&&void 0!==t?t:g,connector:u}),w=!!((p||u)&&(null===(r=d.enabled)||void 0===r||r));return(0,o.aM)({...d,...m,enabled:w})}},24976:function(e,t,r){"use strict";r.d(t,{useEstimateMaxPriorityFeePerGas:function(){return u}});var n=r(72127),i=r(61954);async function o(e,t={}){let{chainId:r}=t,o=e.getClient({chainId:r});return(0,i.s)(o,n._,"estimateMaxPriorityFeePerGas")({chain:o.chain})}var a=r(34954),s=r(53206),c=r(98286),l=r(94956);function u(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:r={}}=t,n=(0,l.useConfig)(t),i=(0,c.useChainId)({config:n}),u=function(e,t={}){return{async queryFn({queryKey:t}){let{scopeKey:r,...n}=t[1];return o(e,n)},queryKey:function(e={}){return["estimateMaxPriorityFeePerGas",(0,a.OP)(e)]}(t)}}(n,{...t,chainId:null!==(e=t.chainId)&&void 0!==e?e:i});return(0,s.aM)({...r,...u})}},14327:function(e,t,r){"use strict";r.d(t,{useFeeHistory:function(){return l}});
10813var n=r(70072),i=r(61954),o=r(34954),a=r(53206),s=r(98286),c=r(94956);function l(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{blockCount:l,rewardPercentiles:u,query:d={}}=r,h=(0,c.useConfig)(r),f=(0,s.useChainId)({config:h}),p=function(e,t={}){return{async queryFn({queryKey:t}){let{blockCount:r,rewardPercentiles:o,scopeKey:a,...s}=t[1];if(!r)throw Error("blockCount is required");if(!o)throw Error("rewardPercentiles is required");return await function(e,t){let{chainId:r,...o}=t,a=e.getClient({chainId:r});return(0,i.s)(a,n.Z,"getFeeHistory")(o)}(e,{...s,blockCount:r,rewardPercentiles:o})??null},queryKey:function(e={}){return["feeHistory",(0,o.OP)(e)]}(t)}}(h,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:f}),g=!!(l&&u&&(null===(t=d.enabled)||void 0===t||t));return(0,a.aM)({...d,...p,enabled:g})}},73550:function(e,t,r){"use strict";r.d(t,{useGasPrice:function(){return l}});var n=r(48206),i=r(61954),o=r(34954),a=r(53206),s=r(98286),c=r(94956);function l(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:r={}}=t,l=(0,c.useConfig)(t),u=(0,s.useChainId)({config:l}),d=null!==(e=t.chainId)&&void 0!==e?e:u,h=function(e,t={}){return{async queryFn({queryKey:t}){let{scopeKey:r,...o}=t[1];return await function(e,t={}){let{chainId:r}=t,o=e.getClient({chainId:r});return(0,i.s)(o,n.o,"getGasPrice")({})}(e,o)??null},queryKey:function(e={}){return["gasPrice",(0,o.OP)(e)]}(t)}}(l,{...t,chainId:d});return(0,a.aM)({...r,...h})}},55979:function(e,t,r){"use strict";r.d(t,{useInfiniteReadContracts:function(){return c}});var n=r(56872),i=r(34954),o=r(53206),a=r(98286),s=r(94956);function c(e){var t,r;let{contracts:c=[],query:l}=e,u=(0,s.useConfig)(e),d=(0,a.useChainId)({config:u}),h={...(r={...e,chainId:d,contracts:c,query:l}).query,async queryFn({pageParam:e,queryKey:t}){let{contracts:i}=r,{cacheKey:o,scopeKey:a,...s}=t[1];return await (0,n.J)(u,{...s,contracts:i(e)})},queryKey:function(e){let{contracts:t,query:r,...n}=e;return["infiniteReadContracts",(0,i.OP)(n)]}(r)};return(0,o.NS)({...l,...h,initialPageParam:h.initialPageParam,structuralSharing:null!==(t=l.structuralSharing)&&void 0!==t?t:i.if})}},81025:function(e,t,r){"use strict";r.d(t,{usePrepareTransactionRequest:function(){return c}});var n=r(10373),i=r(34954),o=r(53206),a=r(98286),s=r(94956);function c(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{to:c,query:l={}}=r,u=(0,s.useConfig)(r),d=(0,a.useChainId)({config:u}),h=function(e,t={}){return{queryFn({queryKey:t}){let{scopeKey:r,to:i,...o}=t[1];if(!i)throw Error("to is required");return(0,n.Z)(e,{to:i,...o})},queryKey:["prepareTransactionRequest",(0,i.OP)(t)]}}(u,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:d}),f=!!(c&&(null===(t=l.enabled)||void 0===t||t));return(0,o.aM)({...l,...h,enabled:f})}},46884:function(e,t,r){"use strict";r.d(t,{useProof:function(){return u}});var n=r(69631),i=r(61954);async function o(e,t){let{chainId:r,...o}=t,a=e.getClient({chainId:r});return(0,i.s)(a,n.S,"getProof")(o)}var a=r(34954),s=r(53206),c=r(98286),l=r(94956);function u(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:n,storageKeys:i,query:u={}}=r,d=(0,l.useConfig)(r),h=(0,c.useChainId)({config:d}),f=function(e,t={}){return{async queryFn({queryKey:t}){let{address:r,scopeKey:n,storageKeys:i,...a}=t[1];if(!r||!i)throw Error("address and storageKeys are required");return o(e,{...a,address:r,storageKeys:i})},queryKey:["getProof",(0,a.OP)(t)]}}(d,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:h}),p=!!(n&&i&&(null===(t=u.enabled)||void 0===t||t));return(0,s.aM)({...u,...f,enabled:p})}},66496:function(e,t,r){"use strict";r.d(t,{usePublicClient:function(){return ek}});var n=r(78045),i=r(48061),o=r(48729),a=r(2886),s=r(133),c=r(12994),l=r(48586);async function u(e){let t=(0,l.g)(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}var d=r(92498),h=r(36212),f=r(95046);async function p(e,{address:t,args:r,event:n,events:i,fromBlock:o,strict:a,toBlock:s}={}){let c=i??(n?[n]:void 0),u=(0,l.g)(e,{method:"eth_newFilter"}),d=[];c&&(d=[c.flatMap(e=>(0,h.O)({abi:[e],eventName:e.name,args:r}))],n&&(d=d[0]));let p=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof o?(0,f.eC)(o):o,toBlock:"bigint"==typeof s?(0,f.eC)(s):s,...d.length?{topics:d}:{}}]});return{abi:c,args:r,eventName:n?n.name:void 0,fromBlock:o,id:p,request:u(p),strict:!!a,toBlock:s,type:"event"}}var g=r(41146),m=r(96104),w=r(31006),b=r(92915),v=r(93413),y=r(60730);async function C(e,t){let{abi:r,address:n,args:i,functionName:o,...a}=t,s=(0,w.R)({abi:r,args:i,functionName:o});try{return await (0,v.s)(e,y.Q,"estimateGas")({data:s,to:n,...a})}catch(t){let e=a.account?(0,m.T)(a.account):void 0;throw(0,b.S)(t,{abi:r,address:n,args:i,docsPath:"/docs/contract/estimateContractGas",functionName:o,sender:e?.address})}}var x=r(42665),A=r(72127),E=r(5106);async function k(e){return BigInt(await e.request({method:"eth_blobBaseFee"}))}var _=r(49235),S=r(75304),T=r(68796),I=r(16416),R=r(55094),O=r(83677),P=r(6649);class N extends P.G{constructor({address:e}){super(`No EIP-712 domain found on contract "${e}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${e}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}var M=r(3796);async function D(e,t){let{address:r,factory:n,factoryData:i}=t;try{let[t,o,a,s,c,l,u]=await (0,v.s)(e,M.L,"readContract")({abi:B,address:r,functionName:"eip712Domain",factory:n,factoryData:i});return{domain:{name:o,version:a,chainId:Number(s),verifyingContract:c,salt:l},extensions:u,fields:t}}catch(e){if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new N({address:r});throw e}}let B=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];var $=r(70072),U=r(99597),L=r(31703),j=r(21677);async function z(e,{filter:t}){let r=t.strict??!1,n=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>(0,j.U)(e));return t.abi?(0,L.h)({abi:t.abi,logs:n,strict:r}):n}var F=r(48206),H=r(5729),q=r(69631),W=r(96985),V=r(85753),Z=r(98624),G=r(33208),K=r(93672),Y=r(6577),Q=r(9660),J=r(57478),X=r(64845),ee=r(44138),et=r(95131),er=r(38128),en=r(86387),ei=r(19205),eo=r(24606),ea=r(9338),es=r(47499),ec=r(52186),el=r(96329),eu=r(46699),ed=r(22099),eh=r(32933);let ef=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,ep=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;var eg=r(65937),em=r(60300);async function ew(e,t){let{address:r,domain:n,message:i,nonce:o,scheme:a,signature:s,time:c=new Date,...l}=t,u=function(e){let{scheme:t,statement:r,...n}=e.match(ef)?.groups??{},{chainId:i,expirationTime:o,issuedAt:a,notBefore:s,requestId:c,...l}=e.match(ep)?.groups??{},u=e.split("Resources:")[1]?.split("\n- ").slice(1);return{...n,...l,...i?{chainId:Number(i)}:{},...o?{expirationTime:new Date(o)}:{},...a?{issuedAt:new Date(a)}:{},...s?{notBefore:new Date(s)}:{},...c?{requestId:c}:{},...u?{resources:u}:{},...t?{scheme:t}:{},...r?{statement:r}:{}}}(i);if(!u.address||!function(e){let{address:t,domain:r,message:n,nonce:i,scheme:o,time:a=new Date}=e;if(r&&n.domain!==r||i&&n.nonce!==i||o&&n.scheme!==o||n.expirationTime&&a>=n.expirationTime||n.notBefore&&a<n.notBefore)return!1;try{if(!n.address||t&&!(0,eg.E)(n.address,t))return!1}catch{return!1}return!0}
10813({address:r,domain:n,message:u,nonce:o,scheme:a,time:c}))return!1;let d=(0,eh.r)(i);return(0,em.Z)(e,{address:u.address,hash:d,signature:s,...l})}var eb=r(12062),ev=r(96432);function ey(e){return{call:t=>(0,c.R)(e,t),createBlockFilter:()=>u(e),createContractEventFilter:t=>(0,d.A)(e,t),createEventFilter:t=>p(e,t),createPendingTransactionFilter:()=>(0,g.W)(e),estimateContractGas:t=>C(e,t),estimateGas:t=>(0,y.Q)(e,t),getBalance:t=>(0,E.s)(e,t),getBlobBaseFee:()=>k(e),getBlock:t=>(0,_.Q)(e,t),getBlockNumber:t=>(0,S.z)(e,t),getBlockTransactionCount:t=>(0,T.c)(e,t),getBytecode:t=>(0,R.C)(e,t),getChainId:()=>(0,I.L)(e),getCode:t=>(0,R.C)(e,t),getContractEvents:t=>(0,O.m)(e,t),getEip712Domain:t=>D(e,t),getEnsAddress:t=>(0,n.O)(e,t),getEnsAvatar:t=>(0,i.r)(e,t),getEnsName:t=>(0,o.w)(e,t),getEnsResolver:t=>(0,a.S)(e,t),getEnsText:t=>(0,s.g)(e,t),getFeeHistory:t=>(0,$.Z)(e,t),estimateFeesPerGas:t=>(0,x.X)(e,t),getFilterChanges:t=>(0,U.K)(e,t),getFilterLogs:t=>z(e,t),getGasPrice:()=>(0,F.o)(e),getLogs:t=>(0,H.y)(e,t),getProof:t=>(0,q.S)(e,t),estimateMaxPriorityFeePerGas:t=>(0,A._)(e,t),getStorageAt:t=>(0,W.Y)(e,t),getTransaction:t=>(0,V.f)(e,t),getTransactionConfirmations:t=>(0,Z.a)(e,t),getTransactionCount:t=>(0,G.K)(e,t),getTransactionReceipt:t=>(0,K.a)(e,t),multicall:t=>(0,Y.A)(e,t),prepareTransactionRequest:t=>(0,eb.Z)(e,t),readContract:t=>(0,M.L)(e,t),sendRawTransaction:t=>(0,ev.p)(e,t),simulateContract:t=>(0,Q.a)(e,t),verifyMessage:t=>(0,X.n)(e,t),verifySiweMessage:t=>ew(e,t),verifyTypedData:t=>(0,ee.B)(e,t),uninstallFilter:t=>(0,J.W)(e,t),waitForTransactionReceipt:t=>(0,et.e)(e,t),watchBlocks:t=>(0,en.p)(e,t),watchBlockNumber:t=>(0,er.q)(e,t),watchContractEvent:t=>(0,ei.Y)(e,t),watchEvent:t=>(function(e,{address:t,args:r,batch:n=!0,event:i,events:o,fromBlock:a,onError:s,onLogs:c,poll:l,pollingInterval:u=e.pollingInterval,strict:d}){let f,g;let m=void 0!==l?l:"bigint"==typeof a||"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
10813onfig.type),w=d??!1;return m?(()=>{let l=(0,es.P)(["watchEvent",t,r,n,e.uid,i,u,a]);return(0,eo.N7)(l,{onLogs:c,onError:s},s=>{let c,l;void 0!==a&&(c=a-1n);let d=!1,h=(0,ea.$)(async()=>{if(!d){try{l=await (0,v.s)(e,p,"createEventFilter")({address:t,args:r,event:i,events:o,strict:w,fromBlock:a})}catch{}d=!0;return}try{let a;if(l)a=await (0,v.s)(e,U.K,"getFilterChanges")({filter:l});else{let n=await (0,v.s)(e,S.z,"getBlockNumber")({});a=c&&c!==n?await (0,v.s)(e,H.y,"getLogs")({address:t,args:r,event:i,events:o,fromBlock:c+1n,toBlock:n}):[],c=n}if(0===a.length)return;if(n)s.onLogs(a);else for(let e of a)s.onLogs([e])}catch(e){l&&e instanceof el.yR&&(d=!1),s.onError?.(e)}},{emitOnBegin:!0,interval:u});return async()=>{l&&await (0,v.s)(e,J.W,"uninstallFilter")({filter:l}),h()}})})():(f=!0,g=()=>f=!1,(async()=>{try{let n=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),a=o??(i?[i]:void 0),l=[];a&&(l=[a.flatMap(e=>(0,h.O)({abi:[e],eventName:e.name,args:r}))],i&&(l=l[0]));let{unsubscribe:u}=await n.subscribe({params:["logs",{address:t,topics:l}],onData(e){if(!f)return;let t=e.result;try{let{eventName:e,args:r}=(0,eu.F)({abi:a??[],data:t.data,topics:t.topics,strict:w}),n=(0,j.U)(t,{args:r,eventName:e});c([n])}catch(i){let e,r;if(i instanceof ec.SM||i instanceof ec.Gy){if(d)return;e=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let n=(0,j.U)(t,{args:r?[]:{},eventName:e});c([n])}},onError(e){s?.(e)}});g=u,f||g()}catch(e){s?.(e)}})(),()=>g())})(e,t),watchPendingTransactions:t=>(0,ed.O)(e,t)}}var eC=r(80660);function ex(e,t={}){let r=(0,eC.s)(e,t);return r?.extend(ey)}var eA=r(35006),eE=r(94956);function ek(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,eE.useConfig)(e);return(0,eA.useSyncExternalStoreWithSelector)(e=>(function(e,t){let{onChange:r}=t;return e.subscribe(()=>ex(e),r,{equalityFn:(e,t)=>e?.uid===t?.uid})})(t,{onChange:e}),()=>ex(t,e),()=>ex(t,e),e=>e,(e,t)=>(null==e?void 0:e.uid)===(null==t?void 0:t.uid))}},53507:function(e,t,r){"use strict";r.d(t,{useReadContract:function(){return c}});var n=r(42467),i=r(34954),o=r(53206),a=r(98286),s=r(94956);function c(){var e,t,r;let c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{abi:l,address:u,functionName:d,query:h={}}=c,f=(0,s.useConfig)(c),p=(0,a.useChainId)({config:f}),g=function(e,t={}){return{async queryFn({queryKey:r}){let i=t.abi;if(!i)throw Error("abi is required");let{address:o,functionName:a,scopeKey:s,...c}=r[1];if(!o)throw Error("address is required");if(!a)throw Error("functionName is required");let l=c.args;return(0,n.L)(e,{abi:i,address:o,functionName:a,args:l,...c})},queryKey:function(e={}){let{abi:t,...r}=e;return["readContract",(0,i.OP)(r)]}(t)}}(f,{...c,chainId:null!==(e=c.chainId)&&void 0!==e?e:p}),m=!!(u&&l&&d&&(null===(t=h.enabled)||void 0===t||t));return(0,o.aM)({...h,...g,enabled:m,structuralSharing:null!==(r=h.structuralSharing)&&void 0!==r?r:i.if})}},26953:function(e,t,r){"use strict";r.d(t,{useReadContracts:function(){return l}});var n=r(56872),i=r(34954),o=r(2265),a=r(53206),s=r(98286),c=r(94956);function l(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{contracts:r=[],query:l={}}=t,u=(0,c.useConfig)(t),d=(0,s.useChainId)({config:u}),h=function(e,t={}){return{async queryFn({queryKey:r}){let i=[],o=r[1].contracts.length;for(let e=0;e<o;e++){let n=r[1].contracts[e],o=(t.contracts?.[e]).abi;i.push({...n,abi:o})}let{scopeKey:a,...s}=r[1];return(0,n.J)(e,{...s,contracts:i})},queryKey:function(e={}){let t=[];for(let r of e.contracts??[]){let{abi:n,...i}=r;t.push({...i,chainId:i.chainId??e.chainId})}return["readContracts",(0,i.OP)({...e,contracts:t})]}(t)}}(u,{...t,chainId:d}),f=(0,o.useMemo)(()=>{var e;let t=!1;for(let e of r){let{abi:r,address:n,functionName:i}=e;if(!r||!n||!i){t=!1;break}t=!0}return!!(t&&(null===(e=l.enabled)||void 0===e||e))},[r,l.enabled]);return(0,a.aM)({...h,...l,enabled:f,structuralSharing:null!==(e=l.structuralSharing)&&void 0!==e?e:i.if})}},89468:function(e,t,r){"use strict";r.d(t,{useReconnect:function(){return a}});var n=r(25524),i=r(71284),o=r(94956);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,r=(0,o.useConfig)(e),{mutate:a,mutateAsync:s,...c}=(0,n.D)({...t,mutationFn:e=>(0,i.G)(r,e),mutationKey:["reconnect"]});return{...c,connectors:r.connectors,reconnect:a,reconnectAsync:s}}},74165:function(e,t,r){"use strict";r.d(t,{useSendTransaction:function(){return a}});var n=r(25524),i=r(74229),o=r(94956);function a(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:r}=t,a=(e=(0,o.useConfig)(t),{mutationFn:t=>(0,i.T)(e,t),mutationKey:["sendTransaction"]}),{mutate:s,mutateAsync:c,...l}=(0,n.D)({...r,...a});return{...l,sendTransaction:s,sendTransactionAsync:c}}},83801:function(e,t,r){"use strict";r.d(t,{useSignMessage:function(){return a}});var n=r(25524),i=r(71791),o=r(94956);function a(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:r}=t,a=(e=(0,o.useConfig)(t),{mutationFn:t=>(0,i.l)(e,t),mutationKey:["signMessage"]}),{mutate:s,mutateAsync:c,...l}=(0,n.D)({...r,...a});return{...l,signMessage:s,signMessageAsync:c}}},32855:function(e,t,r){"use strict";r.d(t,{useSignTypedData:function(){return l}});var n=r(25524),i=r(64435),o=r(61954),a=r(33281);async function s(e,t){let r;let{account:n,connector:s,...c}=t;return r="object"==typeof n&&"local"===n.type?e.getClient():await (0,a.e)(e,{account:n,connector:s}),(0,o.s)(r,i.x,"signTypedData")({...c,...n?{account:n}:{}})}var c=r(94956);function l(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:r}=t,i=(e=(0,c.useConfig)(t),{mutationFn:t=>s(e,t),mutationKey:["signTypedData"]}),{mutate:o,mutateAsync:a,...l}=(0,n.D)({...r,...i});return{...l,signTypedData:o,signTypedDataAsync:a}}},96519:function(e,t,r){"use strict";r.d(t,{useSimulateContract:function(){return l}});
10813var n=r(53231),i=r(34954),o=r(53206),a=r(98286),s=r(94956),c=r(79447);function l(){var e,t,r;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{abi:u,address:d,connector:h,functionName:f,query:p={}}=l,g=(0,s.useConfig)(l),{data:m}=(0,c.useConnectorClient)({connector:h,query:{enabled:void 0===l.account}}),w=(0,a.useChainId)({config:g}),b=function(e,t={}){return{async queryFn({queryKey:r}){let{abi:i,connector:o}=t;if(!i)throw Error("abi is required");let{scopeKey:a,...s}=r[1],{address:c,functionName:l}=s;if(!c)throw Error("address is required");if(!l)throw Error("functionName is required");return(0,n.a)(e,{abi:i,connector:o,...s})},queryKey:function(e={}){let{abi:t,connector:r,...n}=e;return["simulateContract",(0,i.OP)(n)]}(t)}}(g,{...l,account:null!==(e=l.account)&&void 0!==e?e:null==m?void 0:m.account,chainId:null!==(t=l.chainId)&&void 0!==t?t:w}),v=!!(u&&d&&f&&(null===(r=p.enabled)||void 0===r||r));return(0,o.aM)({...p,...b,enabled:v})}},83095:function(e,t,r){"use strict";r.d(t,{useStorageAt:function(){return u}});var n=r(96985),i=r(61954);async function o(e,t){let{chainId:r,...o}=t,a=e.getClient({chainId:r});return(0,i.s)(a,n.Y,"getStorageAt")(o)}var a=r(34954),s=r(53206),c=r(98286),l=r(94956);function u(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:n,slot:i,query:u={}}=r,d=(0,l.useConfig)(r),h=(0,c.useChainId)({config:d}),f=function(e,t={}){return{queryFn({queryKey:t}){let{address:r,slot:n,scopeKey:i,...a}=t[1];if(!r||!n)throw Error("address and slot are required");return o(e,{...a,address:r,slot:n})},queryKey:["getStorageAt",(0,a.OP)(t)]}}(d,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:h}),p=!!(n&&i&&(null===(t=u.enabled)||void 0===t||t));return(0,s.aM)({...u,...f,enabled:p})}},70571:function(e,t,r){"use strict";r.d(t,{useSwitchAccount:function(){return s}});var n=r(25524),i=r(28562),o=r(94956),a=r(79730);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,r=(0,o.useConfig)(e),{mutate:s,mutateAsync:c,...l}=(0,n.D)({...t,mutationFn:e=>(0,i.y)(r,e),mutationKey:["switchAccount"]});return{...l,connectors:(0,a.useConnections)({config:r}).map(e=>e.connector),switchAccount:s,switchAccountAsync:c}}},89745:function(e,t,r){"use strict";r.d(t,{useSwitchChain:function(){return s}});var n=r(25524),i=r(70272),o=r(28421),a=r(94956);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,r=(0,a.useConfig)(e),{mutate:s,mutateAsync:c,...l}=(0,n.D)({...t,mutationFn:e=>(0,i.c)(r,e),mutationKey:["switchChain"]});return{...l,chains:(0,o.useChains)({config:r}),switchChain:s,switchChainAsync:c}}},14704:function(e,t,r){"use strict";r.d(t,{useToken:function(){return p}});var n=r(58591),i=r(42921),o=r(21019),a=r(77955),s=r(29690),c=r(56872);async function l(e,t){let{address:r,chainId:l,formatUnits:u=18}=t;function d(e){return[{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:e}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:e}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]}]}try{let t=d("string"),o={address:r,abi:t,chainId:l},[a,h,f,p]=await (0,c.J)(e,{allowFailure:!0,contracts:[{...o,functionName:"decimals"},{...o,functionName:"name"},{...o,functionName:"symbol"},{...o,functionName:"totalSupply"}]});if(h.error instanceof n.uq)throw h.error;if(f.error instanceof n.uq)throw f.error;if(a.error)throw a.error;if(p.error)throw p.error;return{address:r,decimals:a.result,name:h.result,symbol:f.result,totalSupply:{formatted:(0,i.b)(p.result,(0,s.W)(u)),value:p.result}}}catch(t){if(t instanceof n.uq){let t={address:r,abi:d("bytes32"),chainId:l},[n,h,f,p]=await (0,c.J)(e,{allowFailure:!1,contracts:[{...t,functionName:"decimals"},{...t,functionName:"name"},{...t,functionName:"symbol"},{...t,functionName:"totalSupply"}]});return{address:r,decimals:n,name:(0,o.rR)((0,a.f)(h,{dir:"right"})),symbol:(0,o.rR)((0,a.f)(f,{dir:"right"})),totalSupply:{formatted:(0,i.b)(p,(0,s.W)(u)),value:p}}}throw t}}
10813var u=r(34954),d=r(53206),h=r(98286),f=r(94956);function p(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:n,query:i={}}=r,o=(0,f.useConfig)(r),a=(0,h.useChainId)({config:o}),s=function(e,t={}){return{async queryFn({queryKey:t}){let{address:r,scopeKey:n,...i}=t[1];if(!r)throw Error("address is required");return l(e,{...i,address:r})},queryKey:function(e={}){return["token",(0,u.OP)(e)]}(t)}}(o,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:a}),c=!!(n&&(null===(t=i.enabled)||void 0===t||t));return(0,d.aM)({...i,...s,enabled:c})}},9156:function(e,t,r){"use strict";r.d(t,{useTransaction:function(){return l}});var n=r(85753),i=r(61954),o=r(34954),a=r(53206),s=r(98286),c=r(94956);function l(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{blockHash:l,blockNumber:u,blockTag:d,hash:h,query:f={}}=r,p=(0,c.useConfig)(r),g=(0,s.useChainId)({config:p}),m=function(e,t={}){return{async queryFn({queryKey:t}){let{blockHash:r,blockNumber:o,blockTag:a,hash:s,index:c}=t[1];if(!r&&!o&&!a&&!s)throw Error("blockHash, blockNumber, blockTag, or hash is required");if(!s&&!c)throw Error("index is required for blockHash, blockNumber, or blockTag");let{scopeKey:l,...u}=t[1];return function(e,t){let{chainId:r,...o}=t,a=e.getClient({chainId:r});return(0,i.s)(a,n.f,"getTransaction")(o)}(e,u)},queryKey:function(e={}){return["transaction",(0,o.OP)(e)]}(t)}}(p,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:g}),w=!!(!(l&&u&&d&&h)&&(null===(t=f.enabled)||void 0===t||t));return(0,a.aM)({...f,...m,enabled:w})}},37624:function(e,t,r){"use strict";r.d(t,{useTransactionConfirmations:function(){return l}});var n=r(98624),i=r(61954),o=r(34954),a=r(53206),s=r(98286),c=r(94956);function l(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{hash:l,transactionReceipt:u,query:d={}}=r,h=(0,c.useConfig)(r),f=(0,s.useChainId)({config:h}),p=function(e,t={}){return{async queryFn({queryKey:t}){let{hash:r,transactionReceipt:o,scopeKey:a,...s}=t[1];if(!r&&!o)throw Error("hash or transactionReceipt is required");return await function(e,t){let{chainId:r,...o}=t,a=e.getClient({chainId:r});return(0,i.s)(a,n.a,"getTransactionConfirmations")(o)}(e,{hash:r,transactionReceipt:o,...s})??null},queryKey:function(e={}){return["transactionConfirmations",(0,o.OP)(e)]}(t)}}(h,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:f}),g=!!(!(l&&u)&&(l||u)&&(null===(t=d.enabled)||void 0===t||t));return(0,a.aM)({...d,...p,enabled:g})}},53707:function(e,t,r){"use strict";r.d(t,{useTransactionCount:function(){return u}});var n=r(33208),i=r(61954);async function o(e,t){let{address:r,blockNumber:o,blockTag:a,chainId:s}=t,c=e.getClient({chainId:s});return(0,i.s)(c,n.K,"getTransactionCount")(o?{address:r,blockNumber:o}:{address:r,blockTag:a})}var a=r(34954),s=r(53206),c=r(98286),l=r(94956);function u(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:n,query:i={}}=r,u=(0,l.useConfig)(r),d=(0,c.useChainId)({config:u}),h=function(e,t={}){return{async queryFn({queryKey:t}){let{address:r,scopeKey:n,...i}=t[1];if(!r)throw Error("address is required");return await o(e,{...i,address:r})??null},queryKey:function(e={}){return["transactionCount",(0,a.OP)(e)]}(t)}}(u,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:d}),f=!!(n&&(null===(t=i.enabled)||void 0===t||t));return(0,s.aM)({...i,...h,enabled:f})}},71293:function(e,t,r){"use strict";r.d(t,{useTransactionReceipt:function(){return u}});var n=r(93672),i=r(61954);async function o(e,t){let{chainId:r,...o}=t,a=e.getClient({chainId:r});return(0,i.s)(a,n.a,"getTransactionReceipt")(o)}var a=r(34954),s=r(53206),c=r(98286),l=r(94956);function u(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{hash:n,query:i={}}=r,u=(0,l.useConfig)(r),d=(0,c.useChainId)({config:u}),h=function(e,t={}){return{queryFn({queryKey:t}){let{hash:r,scopeKey:n,...i}=t[1];if(!r)throw Error("hash is required");return o(e,{...i,hash:r})},queryKey:["getTransactionReceipt",(0,a.OP)(t)]}}(u,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:d}),f=!!(n&&(null===(t=i.enabled)||void 0===t||t));return(0,s.aM)({...i,...h,enabled:f})}},66494:function(e,t,r){"use strict";r.d(t,{useVerifyMessage:function(){return u}});var n=r(64845),i=r(61954);async function o(e,t){let{chainId:r,...o}=t,a=e.getClient({chainId:r});return(0,i.s)(a,n.n,"verifyMessage")(o)}var a=r(34954),s=r(53206),c=r(98286),l=r(94956);function u(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:n,message:i,signature:u,query:d={}}=r,h=(0,l.useConfig)(r),f=(0,c.useChainId)({config:h}),p=function(e,t={}){return{async queryFn({queryKey:t}){let{address:r,message:n,signature:i}=t[1];if(!r||!n||!i)throw Error("address, message, and signature are required");let{scopeKey:a,...s}=t[1];return await o(e,s)??null},queryKey:["verifyMessage",(0,a.OP)(t)]}}(h,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:f}),g=!!(n&&i&&u&&(null===(t=d.enabled)||void 0===t||t));return(0,s.aM)({...d,...p,enabled:g})}},60343:function(e,t,r){"use strict";r.d(t,{useVerifyTypedData:function(){return u}});var n=r(44138),i=r(61954);async function o(e,t){let{chainId:r,...o}=t,a=e.getClient({chainId:r});return(0,i.s)(a,n.B,"verifyTypedData")(o)}var a=r(34954),s=r(53206),c=r(98286),l=r(94956);function u(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:n,message:i,primaryType:u,signature:d,types:h,query:f={}}=r,p=(0,l.useConfig)(r),g=(0,c.useChainId)({config:p}),m=function(e,t={}){return{async queryFn({queryKey:t}){let{address:r,message:n,primaryType:i,signature:a,types:s,scopeKey:c,...l}=t[1];if(!r)throw Error("address is required");if(!n)throw Error("message is required");if(!i)throw Error("primaryType is required");if(!a)throw Error("signature is required");if(!s)throw Error("types is required");return await o(e,{...l,address:r,message:n,primaryType:i,signature:a,types:s})??null},queryKey:["verifyTypedData",(0,a.OP)(t)]}}(p,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:g}),w=!!(n&&i&&u&&d&&h&&(null===(t=f.enabled)||void 0===t||t));return(0,s.aM)({...f,...m,enabled:w})}},70899:function(e,t,r){"use strict";r.d(t,{useWaitForTransactionReceipt:function(){return c}});
10813var n=r(46717),i=r(34954),o=r(53206),a=r(98286),s=r(94956);function c(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{hash:c,query:l={}}=r,u=(0,s.useConfig)(r),d=(0,a.useChainId)({config:u}),h=function(e,t={}){return{async queryFn({queryKey:r}){let{hash:i,...o}=r[1];if(!i)throw Error("hash is required");return(0,n.e)(e,{...o,onReplaced:t.onReplaced,hash:i})},queryKey:function(e={}){let{onReplaced:t,...r}=e;return["waitForTransactionReceipt",(0,i.OP)(r)]}(t)}}(u,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:d}),f=!!(c&&(null===(t=l.enabled)||void 0===t||t));return(0,o.aM)({...l,...h,enabled:f})}},2173:function(e,t,r){"use strict";r.d(t,{useWalletClient:function(){return $}});var n=r(93191),i=r(16416),o=r(95046);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}]},{dedupe:!0,retryCount:0})}var s=r(79542),c=r(99112);async function l(e){return e.account?.type==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(e=>(0,c.x)(e))}async function u(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}var d=r(12062);async function h(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(e=>(0,c.K)(e))}async function f(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}var p=r(96432),g=r(28703),m=r(99154),w=r(96104),b=r(25355),v=r(63659),y=r(37669),C=r(93413),x=r(82857);async function A(e,t){let{account:r=e.account,chain:n=e.chain,...a}=t;if(!r)throw new b.o({docsPath:"/docs/actions/wallet/signTransaction"});let s=(0,w.T)(r);(0,x.F)({account:s,...t});let c=await (0,C.s)(e,i.L,"getChainId")({});null!==n&&(0,v.q)({currentChainId:c,chain:n});let l=n?.formatters||e.chain?.formatters,u=l?.transactionRequest?.format||y.tG;return s.signTransaction?s.signTransaction({...a,chainId:c},{serializer:e.chain?.serializers?.transaction}):await e.request({method:"eth_signTransaction",params:[{...u(a),chainId:(0,o.eC)(c),from:s.address}]},{retryCount:0})}var E=r(64435);async function k(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,o.eC)(t)}]},{retryCount:0})}var _=r(32775),S=r(85721);function T(e){return{addChain:t=>a(e,t),deployContract:t=>(0,s.P)(e,t),getAddresses:()=>l(e),getChainId:()=>(0,i.L)(e),getPermissions:()=>u(e),prepareTransactionRequest:t=>(0,d.Z)(e,t),requestAddresses:()=>h(e),requestPermissions:t=>f(e,t),sendRawTransaction:t=>(0,p.p)(e,t),sendTransaction:t=>(0,g.T)(e,t),signMessage:t=>(0,m.l)(e,t),signTransaction:t=>A(e,t),signTypedData:t=>(0,E.x)(e,t),switchChain:t=>k(e,t),watchAsset:t=>(0,_.d)(e,t),writeContract:t=>(0,S.n)(e,t)}}var I=r(33281);async function R(e,t={}){let r=await (0,I.e)(e,t);return r.extend(T),r.extend(T)}var O=r(34954),P=r(2265),N=r(53206),M=r(26735),D=r(98286),B=r(94956);function $(){var e,t,r;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:o={},...a}=i,s=(0,B.useConfig)(a),c=(0,n.NL)(),{address:l,connector:u,status:d}=(0,M.useAccount)({config:s}),h=(0,D.useChainId)({config:s}),{queryKey:f,...p}=function(e,t={}){return{gcTime:0,async queryFn({queryKey:r}){let{connector:n}=t,{connectorUid:i,scopeKey:o,...a}=r[1];return R(e,{...a,connector:n})},queryKey:function(e={}){let{connector:t,...r}=e;return["walletClient",{...(0,O.OP)(r),connectorUid:t?.uid}]}(t)}}(s,{...i,chainId:null!==(e=i.chainId)&&void 0!==e?e:h,connector:null!==(t=i.connector)&&void 0!==t?t:u}),g=!!("disconnected"!==d&&(null===(r=o.enabled)||void 0===r||r)),m=(0,P.useRef)(l);return(0,P.useEffect)(()=>{let e=m.current;!l&&e?(c.removeQueries({queryKey:f}),m.current=void 0):l!==e&&(c.invalidateQueries({queryKey:f}),m.current=l)},[l,c]),(0,N.aM)({...o,...p,queryKey:f,enabled:g,staleTime:Number.POSITIVE_INFINITY})}},86861:function(e,t,r){"use strict";r.d(t,{useWatchAsset:function(){return l}});var n=r(25524),i=r(32775),o=r(61954),a=r(33281);
10813async function s(e,t){let{connector:r,...n}=t,s=await (0,a.e)(e,{connector:r});return(0,o.s)(s,i.d,"watchAsset")(n)}var c=r(94956);function l(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:r}=t,i=(e=(0,c.useConfig)(t),{mutationFn:t=>s(e,t),mutationKey:["watchAsset"]}),{mutate:o,mutateAsync:a,...l}=(0,n.D)({...r,...i});return{...l,watchAsset:o,watchAssetAsync:a}}},5850:function(e,t,r){"use strict";r.d(t,{useWatchBlockNumber:function(){return c}});var n=r(38128),i=r(61954),o=r(2265),a=r(98286),s=r(94956);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:r=!0,onBlockNumber:c,config:l,...u}=t,d=(0,s.useConfig)(t),h=(0,a.useChainId)({config:d}),f=null!==(e=t.chainId)&&void 0!==e?e:h;(0,o.useEffect)(()=>{if(r&&c)return function(e,t){let r,o;let{syncConnectedChain:a=e._internal.syncConnectedChain,...s}=t,c=t=>{r&&r();let o=e.getClient({chainId:t});return r=(0,i.s)(o,n.q,"watchBlockNumber")(s)},l=c(t.chainId);return a&&!t.chainId&&(o=e.subscribe(({chainId:e})=>e,async e=>c(e))),()=>{l?.(),o?.()}}(d,{...u,chainId:f,onBlockNumber:c})},[f,d,r,c,u.onError,u.emitMissed,u.emitOnBegin,u.poll,u.pollingInterval,u.syncConnectedChain])}},70799:function(e,t,r){"use strict";r.d(t,{useWatchBlocks:function(){return c}});var n=r(86387),i=r(61954),o=r(2265),a=r(98286),s=r(94956);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:r=!0,onBlock:c,config:l,...u}=t,d=(0,s.useConfig)(t),h=(0,a.useChainId)({config:d}),f=null!==(e=t.chainId)&&void 0!==e?e:h;(0,o.useEffect)(()=>{if(r&&c)return function(e,t){let r,o;let{syncConnectedChain:a=e._internal.syncConnectedChain,...s}=t,c=t=>{r&&r();let o=e.getClient({chainId:t});return r=(0,i.s)(o,n.p,"watchBlocks")(s)},l=c(t.chainId);return a&&!t.chainId&&(o=e.subscribe(({chainId:e})=>e,async e=>c(e))),()=>{l?.(),o?.()}}(d,{...u,chainId:f,onBlock:c})},[f,d,r,c,u.blockTag,u.emitMissed,u.emitOnBegin,u.includeTransactions,u.onError,u.poll,u.pollingInterval,u.syncConnectedChain])}},20710:function(e,t,r){"use strict";r.d(t,{useWatchContractEvent:function(){return c}});var n=r(19205),i=r(61954),o=r(2265),a=r(98286),s=r(94956);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:r=!0,onLogs:c,config:l,...u}=t,d=(0,s.useConfig)(t),h=(0,a.useChainId)({config:d}),f=null!==(e=t.chainId)&&void 0!==e?e:h;(0,o.useEffect)(()=>{if(r&&c)return function(e,t){let r,o;let{syncConnectedChain:a=e._internal.syncConnectedChain,...s}=t,c=t=>{r&&r();let o=e.getClient({chainId:t});return r=(0,i.s)(o,n.Y,"watchContractEvent")(s)},l=c(t.chainId);return a&&!t.chainId&&(o=e.subscribe(({chainId:e})=>e,async e=>c(e))),()=>{l?.(),o?.()}}(d,{...u,chainId:f,onLogs:c})},[f,d,r,c,u.abi,u.address,u.args,u.batch,u.eventName,u.fromBlock,u.onError,u.poll,u.pollingInterval,u.strict,u.syncConnectedChain])}},32366:function(e,t,r){"use strict";r.d(t,{useWatchPendingTransactions:function(){return c}});var n=r(22099),i=r(61954),o=r(2265),a=r(98286),s=r(94956);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:r=!0,onTransactions:c,config:l,...u}=t,d=(0,s.useConfig)(t),h=(0,a.useChainId)({config:d}),f=null!==(e=t.chainId)&&void 0!==e?e:h;(0,o.useEffect)(()=>{if(r&&c)return function(e,t){let r,o;let{syncConnectedChain:a=e._internal.syncConnectedChain,...s}=t,c=t=>{r&&r();let o=e.getClient({chainId:t});return r=(0,i.s)(o,n.O,"watchPendingTransactions")(s)},l=c(t.chainId);return a&&!t.chainId&&(o=e.subscribe(({chainId:e})=>e,async e=>c(e))),()=>{l?.(),o?.()}}(d,{...u,chainId:f,onTransactions:c})},[f,d,r,c,u.batch,u.onError,u.poll,u.pollingInterval,u.syncConnectedChain])}},468:function(e,t,r){"use strict";r.d(t,{useWriteContract:function(){return a}});var n=r(25524),i=r(90894),o=r(94956);function a(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:r}=t,a=(e=(0,o.useConfig)(t),{mutationFn:t=>(0,i.n)(e,t),mutationKey:["writeContract"]}),{mutate:s,mutateAsync:c,...l}=(0,n.D)({...r,...a});return{...l,writeContract:s,writeContractAsync:c}}},53206:function(e,t,r){"use strict";let n;r.d(t,{NS:function(){return P},aM:function(){return O}});
10813var i=r(56298),o=r(69948),a=r(34939),s=r(49010),c=r(2459),l=class extends s.l{constructor(e,t){super(),this.options=t,this.#A=e,this.#I=null,this.bindMethods(),this.setOptions(t)}#A;#R=void 0;#O=void 0;#E=void 0;#P;#N;#I;#M;#D;#B;#$;#U;#L;#j=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#R.addObserver(this),u(this.#R,this.options)?this.#z():this.updateResult(),this.#F())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#R,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#R,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#H(),this.#q(),this.#R.removeObserver(this)}setOptions(e,t){let r=this.options,n=this.#R;if(this.options=this.#A.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,i.Nc)(this.options.enabled,this.#R))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#W(),this.#R.setOptions(this.options),r._defaulted&&!(0,i.VS)(this.options,r)&&this.#A.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#R,observer:this});let o=this.hasListeners();o&&h(this.#R,n,this.options,r)&&this.#z(),this.updateResult(t),o&&(this.#R!==n||(0,i.Nc)(this.options.enabled,this.#R)!==(0,i.Nc)(r.enabled,this.#R)||(0,i.KC)(this.options.staleTime,this.#R)!==(0,i.KC)(r.staleTime,this.#R))&&this.#V();let a=this.#Z();o&&(this.#R!==n||(0,i.Nc)(this.options.enabled,this.#R)!==(0,i.Nc)(r.enabled,this.#R)||a!==this.#L)&&this.#G(a)}getOptimisticResult(e){let t=this.#A.getQueryCache().build(this.#A,e),r=this.createResult(t,e);return(0,i.VS)(this.getCurrentResult(),r)||(this.#E=r,this.#N=this.options,this.#P=this.#R.state),r}getCurrentResult(){return this.#E}trackResult(e,t){let r={};return Object.keys(e).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),t?.(n),e[n])})}),r}trackProp(e){this.#j.add(e)}getCurrentQuery(){return this.#R}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#A.defaultQueryOptions(e),r=this.#A.getQueryCache().build(this.#A,t);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#z({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#E))}#z(e){this.#W();let t=this.#R.fetch(this.options,e);return e?.throwOnError||(t=t.catch(i.ZT)),t}#V(){this.#H();let e=(0,i.KC)(this.options.staleTime,this.#R);if(i.sk||this.#E.isStale||!(0,i.PN)(e))return;let t=(0,i.Kp)(this.#E.dataUpdatedAt,e);this.#$=setTimeout(()=>{this.#E.isStale||this.updateResult()},t+1)}#Z(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#R):this.options.refetchInterval)??!1}#G(e){this.#q(),this.#L=e,!i.sk&&!1!==(0,i.Nc)(this.options.enabled,this.#R)&&(0,i.PN)(this.#L)&&0!==this.#L&&(this.#U=setInterval(()=>{(this.options.refetchIntervalInBackground||a.j.isFocused())&&this.#z()},this.#L))}#F(){this.#V(),this.#G(this.#Z())}#H(){this.#$&&(clearTimeout(this.#$),this.#$=void 0)}#q(){this.#U&&(clearInterval(this.#U),this.#U=void 0)}createResult(e,t){let r;let n=this.#R,o=this.options,a=this.#E,s=this.#P,l=this.#N,d=e!==n?e.state:this.#O,{state:p}=e,g={...p},m=!1;if(t._optimisticResults){let r=this.hasListeners(),i=!r&&u(e,t),a=r&&h(e,n,t,o);(i||a)&&(g={...g,...(0,c.z)(p.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:w,errorUpdatedAt:b,status:v}=g;if(t.select&&void 0!==g.data){if(a&&g.data===s?.data&&t.select===this.#M)r=this.#D;else try{this.#M=t.select,r=t.select(g.data),r=(0,i.oE)(a?.data,r,t),this.#D=r,this.#I=null}catch(e){this.#I=e}}else r=g.data;if(void 0!==t.placeholderData&&void 0===r&&"pending"===v){let e;if(a?.isPlaceholderData&&t.placeholderData===l?.placeholderData)e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#B?.state.data,this.#B):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#I=null}catch(e){this.#I=e}void 0!==e&&(v="success",r=(0,i.oE)(a?.data,e,t),m=!0)}this.#I&&(w=this.#I,r=this.#D,b=Date.now(),v="error");let y="fetching"===g.fetchStatus,C="pending"===v,x="error"===v,A=C&&y,E=void 0!==r;return{status:v,fetchStatus:g.fetchStatus,isPending:C,isSuccess:"success"===v,isError:x,isInitialLoading:A,isLoading:A,data:r,dataUpdatedAt:g.dataUpdatedAt,error:w,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdate
10813Count:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>d.dataUpdateCount||g.errorUpdateCount>d.errorUpdateCount,isFetching:y,isRefetching:y&&!C,isLoadingError:x&&!E,isPaused:"paused"===g.fetchStatus,isPlaceholderData:m,isRefetchError:x&&E,isStale:f(e,t),refetch:this.refetch}}updateResult(e){let t=this.#E,r=this.createResult(this.#R,this.options);if(this.#P=this.#R.state,this.#N=this.options,void 0!==this.#P.data&&(this.#B=this.#R),(0,i.VS)(r,t))return;this.#E=r;let n={};e?.listeners!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.#j.size)return!0;let n=new Set(r??this.#j);return this.options.throwOnError&&n.add("error"),Object.keys(this.#E).some(e=>this.#E[e]!==t[e]&&n.has(e))})()&&(n.listeners=!0),this.#T({...n,...e})}#W(){let e=this.#A.getQueryCache().build(this.#A,this.options);if(e===this.#R)return;let t=this.#R;this.#R=e,this.#O=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#F()}#T(e){o.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#E)}),this.#A.getQueryCache().notify({query:this.#R,type:"observerResultsUpdated"})})}};function u(e,t){return!1!==(0,i.Nc)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,r){if(!1!==(0,i.Nc)(t.enabled,e)){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&f(e,t)}return!1}function h(e,t,r,n){return(e!==t||!1===(0,i.Nc)(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&f(e,r)}function f(e,t){return!1!==(0,i.Nc)(t.enabled,e)&&e.isStaleByTime((0,i.KC)(t.staleTime,e))}var p=r(2265);r(57437);var g=p.createContext((n=!1,{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n})),m=()=>p.useContext(g),w=r(93191),b=p.createContext(!1),v=()=>p.useContext(b);b.Provider;var y=r(37832),C=(e,t)=>{(e.suspense||e.throwOnError)&&!t.isReset()&&(e.retryOnMount=!1)},x=e=>{p.useEffect(()=>{e.clearReset()},[e])},A=e=>{let{result:t,errorResetBoundary:r,throwOnError:n,query:i}=e;return t.isError&&!r.isReset()&&!t.isFetching&&i&&(0,y.L)(n,[t.error,i])},E=e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},k=(e,t)=>e?.suspense&&t.isPending,_=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function S(e,t,r){var n,i,a,s;let c=(0,w.NL)(r),l=v(),u=m(),d=c.defaultQueryOptions(e);
10813null===(i=c.getDefaultOptions().queries)||void 0===i||null===(n=i._experimental_beforeQuery)||void 0===n||n.call(i,d),d._optimisticResults=l?"isRestoring":"optimistic",E(d),C(d,u),x(u);let[h]=p.useState(()=>new t(c,d)),f=h.getOptimisticResult(d);if(p.useSyncExternalStore(p.useCallback(e=>{let t=l?()=>void 0:h.subscribe(o.V.batchCalls(e));return h.updateResult(),t},[h,l]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),p.useEffect(()=>{h.setOptions(d,{listeners:!1})},[d,h]),k(d,f))throw _(d,h,u);if(A({result:f,errorResetBoundary:u,throwOnError:d.throwOnError,query:c.getQueryCache().get(d.queryHash)}))throw f.error;return null===(s=c.getDefaultOptions().queries)||void 0===s||null===(a=s._experimental_afterQuery)||void 0===a||a.call(s,d,f),d.notifyOnChangeProps?f:h.trackResult(f)}var T=r(50836),I=class extends l{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,T.Gm)()},t)}getOptimisticResult(e){return e.behavior=(0,T.Gm)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:r}=e,n=super.createResult(e,t),{isFetching:i,isRefetching:o,isError:a,isRefetchError:s}=n,c=r.fetchMeta?.fetchMore?.direction,l=a&&"forward"===c,u=i&&"forward"===c,d=a&&"backward"===c,h=i&&"backward"===c;return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,T.Qy)(t,r.data),hasPreviousPage:(0,T.ZF)(t,r.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:h,isRefetchError:s&&!l&&!d,isRefetching:o&&!u&&!h}}},R=r(34954);function O(e){let t=S({...e,queryKeyHashFn:R.kq},l,void 0);return t.queryKey=e.queryKey,t}function P(e){let t=S({...e,queryKeyHashFn:R.kq},I,void 0);return t.queryKey=e.queryKey,t}},58274:function(e){"use strict";e.exports={i8:"6.5.7"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.